diff --git a/public/build/assets/About-vX0VlAm6.js b/public/build/assets/About-Ngp69KLb.js similarity index 99% rename from public/build/assets/About-vX0VlAm6.js rename to public/build/assets/About-Ngp69KLb.js index d3fa50d99..9d8faaf52 100644 --- a/public/build/assets/About-vX0VlAm6.js +++ b/public/build/assets/About-Ngp69KLb.js @@ -1 +1 @@ -import{_ as i,a as e}from"./android-BlaF6v8Z.js";import{_ as o}from"./IMG_0556-0A1kBpHu.js";import{n as c}from"./app-DpqRw90N.js";/* empty css */const l="/build/assets/iphone-BXDqbS6h.png",r="/build/assets/facemask-tag-DTb-EcZv.png",n="/build/assets/facemask-map-BqUpLVXB.png",_="/build/assets/cigbutts-CVuuOzE4.jpg",b="/build/assets/nlbrands-DL1esRqV.png",u="/build/assets/marinelitter-CVAxhBMz.jpg",d="/build/assets/microplastics_oranmore-CI7v0KxT.jpg",m="/build/assets/urban-D96wAs5R.jpg",h="/build/assets/IMG_0554-BicQT55Q.jpg",p="/build/assets/butts-DfH5MkNF.jpg",v="/build/assets/cigbutts_jar-BL7Z4hk3.jpg",g="/build/assets/plastic_bottles-DUxEtUtl.jpg",C={name:"About",methods:{android(){window.open("https://play.google.com/store/apps/details?id=com.geotech.openlittermap","_blank")},ios(){window.open("https://apps.apple.com/us/app/openlittermap/id1475982147","_blank")}}};var f=function(){var t=this,s=t._self._c;return s("div",[s("section",{staticClass:"section"},[s("div",{staticClass:"columns"},[t._m(0),s("div",{staticClass:"column cig-2"},[s("h2",{staticClass:"title is-2",staticStyle:{color:"red","text-align":"center"},attrs:{id:"butts1txt"}},[s("strong",[t._v(t._s(t.$t("home.about.about2")))])])])]),s("br"),s("br"),s("div",{staticClass:"columns"},[s("div",{staticClass:"column is-one-third is-offset-1"},[s("h1",{staticClass:"title is-1",staticStyle:{"text-align":"center"}},[s("strong",[t._v(t._s(t.$t("home.about.about3")))])]),s("br"),s("h1",{staticClass:"subtitle is-3"},[t._v(t._s(t.$t("home.about.about4")))]),s("br"),s("h1",{staticClass:"subtitle is-3"},[t._v(t._s(t.$t("home.about.about5")))]),s("br"),s("p",{staticClass:"subtitle is-3"},[t._v(t._s(t.$t("home.about.about6")))])]),t._m(1)])]),s("section",{staticClass:"hero is-success"},[s("div",{staticClass:"hero-body"},[s("div",{staticClass:"container has-text-centered"},[s("h1",{staticClass:"title"},[s("strong",[t._v(" "+t._s(t.$t("home.about.about7"))+" ")])])]),s("div",{staticClass:"has-text-centered",staticStyle:{"padding-top":"2em"}},[s("router-link",{attrs:{to:"/signup"}},[s("button",{staticClass:"button is-large is-info hov"},[t._v(t._s(t.$t("home.about.about9")))])])],1)])]),s("div",{staticClass:"has-text-centered pt3"},[s("h1",{staticClass:"title is-1"},[t._v("1. "+t._s(t.$t("home.about.about9a")))]),s("img",{attrs:{src:l}})]),s("div",{staticClass:"has-text-centered pt3"},[s("h1",{staticClass:"title is-1"},[t._v("2. "+t._s(t.$t("home.about.about9b")))]),s("img",{attrs:{src:r}})]),s("div",{staticClass:"has-text-centered pt3"},[s("h1",{staticClass:"title is-1"},[t._v("3. "+t._s(t.$t("home.about.about9c")))]),s("img",{attrs:{src:n}})]),s("div",{staticClass:"flex jc pt3"},[s("img",{staticClass:"app-icon",staticStyle:{"margin-right":"1em"},attrs:{src:i},on:{click:t.ios}}),s("img",{staticClass:"app-icon",attrs:{src:e},on:{click:t.android}})]),s("section",[s("div",{staticClass:"columns",staticStyle:{"padding-top":"4em","padding-bottom":"4em"}},[s("div",{staticClass:"column is-one-third is-offset-1",staticStyle:{"padding-left":"2em",margin:"auto"}},[s("h1",{staticClass:"title is-2",staticStyle:{"text-align":"center"}},[s("strong",{staticStyle:{color:"red"}},[t._v(t._s(t.$t("home.about.about10")))])]),s("br"),s("h1",{staticClass:"title is-2",staticStyle:{"text-align":"center"}},[s("strong",{staticStyle:{color:"red"}},[t._v(t._s(t.$t("home.about.about11")))])])]),t._m(2)])]),s("section",{staticClass:"hero is-warning"},[s("div",{staticClass:"hero-body"},[s("div",{staticClass:"container"},[s("h1",{staticClass:"title is-1"},[t._v(" "+t._s(t.$t("home.about.about12"))+" ")]),s("img",{attrs:{src:_}}),s("h1",{staticClass:"title is-1 has-text-right"},[t._v(" "+t._s(t.$t("home.about.about13"))+" ")])])])]),s("div",{staticClass:"hero-body"},[s("div",{staticClass:"container"},[s("div",{staticClass:"tile is-ancestor"},[s("div",{staticClass:"tile is-vertical is-8"},[s("div",{staticClass:"tile"},[s("div",{staticClass:"tile is-parent is-vertical"},[s("article",{staticClass:"tile is-child notification is-primary"},[s("p",{staticClass:"title"},[t._v(t._s(t.$t("home.about.about14"))+" "),s("b",{staticStyle:{color:"black"}},[t._v(t._s(t.$t("home.about.about14a")))])]),s("p",{staticClass:"title",staticStyle:{"padding-bottom":"1em"}},[t._v(t._s(t.$t("home.about.about14b")))]),s("p",{staticClass:"subtitle",staticStyle:{"text-align":"right",color:"red"}},[s("strong",[t._v(t._s(t.$t("home.about.about15")))])])]),s("article",{staticClass:"tile is-child notification is-warning"},[s("p",{staticClass:"title",staticStyle:{"padding-bottom":"1em"}},[t._v(t._s(t.$t("home.about.about16")))]),s("p",{staticClass:"subtitle",staticStyle:{"text-align":"right",color:"red","padding-bottom":"1em"}},[s("b",[t._v(t._s(t.$t("home.about.about17")))])])])]),s("div",{staticClass:"tile is-parent"},[s("article",{staticClass:"tile is-child notification is-info"},[s("p",{staticClass:"title"},[t._v(t._s(t.$t("home.about.about17a")))]),s("p",{staticClass:"subtitle"},[t._v(t._s(t.$t("home.about.about17b")))]),s("a",{attrs:{href:"https://openlittermap.com/world/The%20Netherlands/Zuid-Holland/Wassenaar/map"}},[t._v("https://openlittermap.com/world/The%20Netherlands/Zuid-Holland/Wassenaar/map")]),s("br"),s("br"),s("img",{attrs:{src:b}}),s("br"),s("br"),s("p",{staticClass:"subtitle"},[t._v(t._s(t.$t("home.about.about17c")))]),s("a",{attrs:{href:"https://openlittermap.com/world/The%20Netherlands/Zuid-Holland"}},[t._v("https://openlittermap.com/world/The%20Netherlands/Zuid-Holland")]),s("br")])])]),s("div",{staticClass:"tile is-parent"},[s("article",{staticClass:"tile is-child notification is-danger"},[s("p",{staticClass:"title"},[t._v(t._s(t.$t("home.about.about18")))]),s("p",{staticClass:"subtitle"},[t._v(t._s(t.$t("home.about.about19"))),s("strong",[t._v(t._s(t.$t("home.about.about20")))]),t._v(" "+t._s(t.$t("home.about.about21")))]),s("div",{staticClass:"content"})])])]),s("div",{staticClass:"tile is-parent is-5"},[s("article",{staticClass:"tile is-child is-10 notification is-success"},[s("div",{staticClass:"content"},[s("p",{staticClass:"title"},[t._v(t._s(t.$t("home.about.about22")))]),s("div",{staticClass:"content"},[s("ul",[s("li",[t._v(t._s(t.$t("home.about.about24")))]),s("li",[t._v(t._s(t.$t("home.about.about25")))]),s("li",[t._v(t._s(t.$t("home.about.about26")))]),s("li",[t._v(t._s(t.$t("home.about.about27")))]),s("li",[t._v(t._s(t.$t("home.about.about28")))]),s("li",[t._v(t._s(t.$t("home.about.about29")))]),s("li",[t._v(t._s(t.$t("home.about.about29a")))])])])])])])])])]),s("div",[s("br"),s("h1",{staticClass:"title is-1",staticStyle:{color:"black","text-align":"center"}},[s("strong",[t._v(t._s(t.$t("home.about.about30")))]),t._v(" "),s("strong",{staticStyle:{color:"red"}},[t._v(t._s(t.$t("home.about.about301")))])]),s("br")]),s("div",{staticClass:"container",staticStyle:{"padding-bottom":"5em","text-align":"center"}},[s("img",{attrs:{src:u}}),s("p",{staticStyle:{"padding-bottom":"3em"}},[t._v("Dublin, Ireland.")]),s("h1",{staticClass:"title is-1",staticStyle:{color:"black","text-align":"center"}},[s("strong",{staticStyle:{color:"red"}},[t._v(t._s(t.$t("home.about.about302")))])]),s("img",{attrs:{src:d}}),s("p",[t._v("Microplastics in Oranmore, Co. Galway.")])]),s("div",{staticClass:"container"},[s("h1",{staticClass:"title is-1"},[t._v(" "+t._s(t.$t("home.about.about31"))+" ")]),s("br"),s("br")]),s("img",{staticStyle:{"padding-bottom":"1em"},attrs:{src:m}}),s("p",{staticStyle:{"padding-bottom":"5em","text-align":"center"}},[t._v("Penrose Wharf, Cork City, Ireland (above)")]),s("div",{staticStyle:{"text-align":"center"}},[s("img",{staticStyle:{"padding-bottom":"2em"},attrs:{src:h}}),t._m(3),s("img",{staticStyle:{"padding-bottom":"2em"},attrs:{src:o}}),s("p",{staticStyle:{"padding-bottom":"5em"}},[t._v(t._s(t.$t("home.about.about32")))])]),s("div",{staticClass:"container"},[s("h1",{staticClass:"title is-1 has-text-left"},[t._v(" "+t._s(t.$t("home.about.about33"))+" ")])]),s("br"),s("br"),s("div",{staticClass:"container"},[s("h1",{staticClass:"title is-1 has-text-left"},[t._v(" "+t._s(t.$t("home.about.about34"))+" ")]),s("br"),s("div",{staticClass:"has-text-centered",staticStyle:{"padding-top":"2em"}},[s("form",{attrs:{action:"/signup"}},[s("button",{staticClass:"button is-large is-primary hov"},[t._v(t._s(t.$t("home.about.about35")))])])]),s("br"),s("br")]),t._m(4)])},$=[function(){var a=this,t=a._self._c;return t("div",{staticClass:"column is-one-third is-offset-1",staticStyle:{"text-align":"center"}},[t("img",{attrs:{src:p}})])},function(){var a=this,t=a._self._c;return t("div",{staticClass:"column is-offset-1 butts-img"},[t("img",{staticStyle:{height:"600px"},attrs:{src:v}})])},function(){var a=this,t=a._self._c;return t("div",{staticClass:"column is-one-third is-offset-1",staticStyle:{"padding-top":"4em","padding-bottom":"4em",margin:"auto"}},[t("img",{attrs:{src:g}})])},function(){var a=this,t=a._self._c;return t("p",{staticStyle:{"padding-bottom":"5em","text-align":"center"}},[a._v("Accra, Capital of Ghana, North-Western Coast of Africa "),t("a",{attrs:{href:"https://www.facebook.com/nshorena/posts/1652239435009949"}},[a._v("more photos on facebook")])])},function(){var a=this,t=a._self._c;return t("footer",{staticClass:"footer"},[t("div",{staticClass:"container"},[t("div",{staticClass:"content has-text-centered"},[t("p",[t("strong",[a._v("OpenLitterMap")]),a._v(" by "),t("a",{attrs:{href:"https://ie.linkedin.com/in/seanlynchgis"}},[a._v("Seán Lynch, M.Sc, M.Sc., B.A.")]),t("br")]),t("p",[a._v("info@openlittermap.com")])])])])}],y=c(C,f,$,!1,null,"ced4cfc5");const w=y.exports;export{w as default}; +import{_ as i,a as e}from"./android-BlaF6v8Z.js";import{_ as o}from"./IMG_0556-0A1kBpHu.js";import{n as c}from"./app-DGjOB0Vc.js";/* empty css */const l="/build/assets/iphone-BXDqbS6h.png",r="/build/assets/facemask-tag-DTb-EcZv.png",n="/build/assets/facemask-map-BqUpLVXB.png",_="/build/assets/cigbutts-CVuuOzE4.jpg",b="/build/assets/nlbrands-DL1esRqV.png",u="/build/assets/marinelitter-CVAxhBMz.jpg",d="/build/assets/microplastics_oranmore-CI7v0KxT.jpg",m="/build/assets/urban-D96wAs5R.jpg",h="/build/assets/IMG_0554-BicQT55Q.jpg",p="/build/assets/butts-DfH5MkNF.jpg",v="/build/assets/cigbutts_jar-BL7Z4hk3.jpg",g="/build/assets/plastic_bottles-DUxEtUtl.jpg",C={name:"About",methods:{android(){window.open("https://play.google.com/store/apps/details?id=com.geotech.openlittermap","_blank")},ios(){window.open("https://apps.apple.com/us/app/openlittermap/id1475982147","_blank")}}};var f=function(){var t=this,s=t._self._c;return s("div",[s("section",{staticClass:"section"},[s("div",{staticClass:"columns"},[t._m(0),s("div",{staticClass:"column cig-2"},[s("h2",{staticClass:"title is-2",staticStyle:{color:"red","text-align":"center"},attrs:{id:"butts1txt"}},[s("strong",[t._v(t._s(t.$t("home.about.about2")))])])])]),s("br"),s("br"),s("div",{staticClass:"columns"},[s("div",{staticClass:"column is-one-third is-offset-1"},[s("h1",{staticClass:"title is-1",staticStyle:{"text-align":"center"}},[s("strong",[t._v(t._s(t.$t("home.about.about3")))])]),s("br"),s("h1",{staticClass:"subtitle is-3"},[t._v(t._s(t.$t("home.about.about4")))]),s("br"),s("h1",{staticClass:"subtitle is-3"},[t._v(t._s(t.$t("home.about.about5")))]),s("br"),s("p",{staticClass:"subtitle is-3"},[t._v(t._s(t.$t("home.about.about6")))])]),t._m(1)])]),s("section",{staticClass:"hero is-success"},[s("div",{staticClass:"hero-body"},[s("div",{staticClass:"container has-text-centered"},[s("h1",{staticClass:"title"},[s("strong",[t._v(" "+t._s(t.$t("home.about.about7"))+" ")])])]),s("div",{staticClass:"has-text-centered",staticStyle:{"padding-top":"2em"}},[s("router-link",{attrs:{to:"/signup"}},[s("button",{staticClass:"button is-large is-info hov"},[t._v(t._s(t.$t("home.about.about9")))])])],1)])]),s("div",{staticClass:"has-text-centered pt3"},[s("h1",{staticClass:"title is-1"},[t._v("1. "+t._s(t.$t("home.about.about9a")))]),s("img",{attrs:{src:l}})]),s("div",{staticClass:"has-text-centered pt3"},[s("h1",{staticClass:"title is-1"},[t._v("2. "+t._s(t.$t("home.about.about9b")))]),s("img",{attrs:{src:r}})]),s("div",{staticClass:"has-text-centered pt3"},[s("h1",{staticClass:"title is-1"},[t._v("3. "+t._s(t.$t("home.about.about9c")))]),s("img",{attrs:{src:n}})]),s("div",{staticClass:"flex jc pt3"},[s("img",{staticClass:"app-icon",staticStyle:{"margin-right":"1em"},attrs:{src:i},on:{click:t.ios}}),s("img",{staticClass:"app-icon",attrs:{src:e},on:{click:t.android}})]),s("section",[s("div",{staticClass:"columns",staticStyle:{"padding-top":"4em","padding-bottom":"4em"}},[s("div",{staticClass:"column is-one-third is-offset-1",staticStyle:{"padding-left":"2em",margin:"auto"}},[s("h1",{staticClass:"title is-2",staticStyle:{"text-align":"center"}},[s("strong",{staticStyle:{color:"red"}},[t._v(t._s(t.$t("home.about.about10")))])]),s("br"),s("h1",{staticClass:"title is-2",staticStyle:{"text-align":"center"}},[s("strong",{staticStyle:{color:"red"}},[t._v(t._s(t.$t("home.about.about11")))])])]),t._m(2)])]),s("section",{staticClass:"hero is-warning"},[s("div",{staticClass:"hero-body"},[s("div",{staticClass:"container"},[s("h1",{staticClass:"title is-1"},[t._v(" "+t._s(t.$t("home.about.about12"))+" ")]),s("img",{attrs:{src:_}}),s("h1",{staticClass:"title is-1 has-text-right"},[t._v(" "+t._s(t.$t("home.about.about13"))+" ")])])])]),s("div",{staticClass:"hero-body"},[s("div",{staticClass:"container"},[s("div",{staticClass:"tile is-ancestor"},[s("div",{staticClass:"tile is-vertical is-8"},[s("div",{staticClass:"tile"},[s("div",{staticClass:"tile is-parent is-vertical"},[s("article",{staticClass:"tile is-child notification is-primary"},[s("p",{staticClass:"title"},[t._v(t._s(t.$t("home.about.about14"))+" "),s("b",{staticStyle:{color:"black"}},[t._v(t._s(t.$t("home.about.about14a")))])]),s("p",{staticClass:"title",staticStyle:{"padding-bottom":"1em"}},[t._v(t._s(t.$t("home.about.about14b")))]),s("p",{staticClass:"subtitle",staticStyle:{"text-align":"right",color:"red"}},[s("strong",[t._v(t._s(t.$t("home.about.about15")))])])]),s("article",{staticClass:"tile is-child notification is-warning"},[s("p",{staticClass:"title",staticStyle:{"padding-bottom":"1em"}},[t._v(t._s(t.$t("home.about.about16")))]),s("p",{staticClass:"subtitle",staticStyle:{"text-align":"right",color:"red","padding-bottom":"1em"}},[s("b",[t._v(t._s(t.$t("home.about.about17")))])])])]),s("div",{staticClass:"tile is-parent"},[s("article",{staticClass:"tile is-child notification is-info"},[s("p",{staticClass:"title"},[t._v(t._s(t.$t("home.about.about17a")))]),s("p",{staticClass:"subtitle"},[t._v(t._s(t.$t("home.about.about17b")))]),s("a",{attrs:{href:"https://openlittermap.com/world/The%20Netherlands/Zuid-Holland/Wassenaar/map"}},[t._v("https://openlittermap.com/world/The%20Netherlands/Zuid-Holland/Wassenaar/map")]),s("br"),s("br"),s("img",{attrs:{src:b}}),s("br"),s("br"),s("p",{staticClass:"subtitle"},[t._v(t._s(t.$t("home.about.about17c")))]),s("a",{attrs:{href:"https://openlittermap.com/world/The%20Netherlands/Zuid-Holland"}},[t._v("https://openlittermap.com/world/The%20Netherlands/Zuid-Holland")]),s("br")])])]),s("div",{staticClass:"tile is-parent"},[s("article",{staticClass:"tile is-child notification is-danger"},[s("p",{staticClass:"title"},[t._v(t._s(t.$t("home.about.about18")))]),s("p",{staticClass:"subtitle"},[t._v(t._s(t.$t("home.about.about19"))),s("strong",[t._v(t._s(t.$t("home.about.about20")))]),t._v(" "+t._s(t.$t("home.about.about21")))]),s("div",{staticClass:"content"})])])]),s("div",{staticClass:"tile is-parent is-5"},[s("article",{staticClass:"tile is-child is-10 notification is-success"},[s("div",{staticClass:"content"},[s("p",{staticClass:"title"},[t._v(t._s(t.$t("home.about.about22")))]),s("div",{staticClass:"content"},[s("ul",[s("li",[t._v(t._s(t.$t("home.about.about24")))]),s("li",[t._v(t._s(t.$t("home.about.about25")))]),s("li",[t._v(t._s(t.$t("home.about.about26")))]),s("li",[t._v(t._s(t.$t("home.about.about27")))]),s("li",[t._v(t._s(t.$t("home.about.about28")))]),s("li",[t._v(t._s(t.$t("home.about.about29")))]),s("li",[t._v(t._s(t.$t("home.about.about29a")))])])])])])])])])]),s("div",[s("br"),s("h1",{staticClass:"title is-1",staticStyle:{color:"black","text-align":"center"}},[s("strong",[t._v(t._s(t.$t("home.about.about30")))]),t._v(" "),s("strong",{staticStyle:{color:"red"}},[t._v(t._s(t.$t("home.about.about301")))])]),s("br")]),s("div",{staticClass:"container",staticStyle:{"padding-bottom":"5em","text-align":"center"}},[s("img",{attrs:{src:u}}),s("p",{staticStyle:{"padding-bottom":"3em"}},[t._v("Dublin, Ireland.")]),s("h1",{staticClass:"title is-1",staticStyle:{color:"black","text-align":"center"}},[s("strong",{staticStyle:{color:"red"}},[t._v(t._s(t.$t("home.about.about302")))])]),s("img",{attrs:{src:d}}),s("p",[t._v("Microplastics in Oranmore, Co. Galway.")])]),s("div",{staticClass:"container"},[s("h1",{staticClass:"title is-1"},[t._v(" "+t._s(t.$t("home.about.about31"))+" ")]),s("br"),s("br")]),s("img",{staticStyle:{"padding-bottom":"1em"},attrs:{src:m}}),s("p",{staticStyle:{"padding-bottom":"5em","text-align":"center"}},[t._v("Penrose Wharf, Cork City, Ireland (above)")]),s("div",{staticStyle:{"text-align":"center"}},[s("img",{staticStyle:{"padding-bottom":"2em"},attrs:{src:h}}),t._m(3),s("img",{staticStyle:{"padding-bottom":"2em"},attrs:{src:o}}),s("p",{staticStyle:{"padding-bottom":"5em"}},[t._v(t._s(t.$t("home.about.about32")))])]),s("div",{staticClass:"container"},[s("h1",{staticClass:"title is-1 has-text-left"},[t._v(" "+t._s(t.$t("home.about.about33"))+" ")])]),s("br"),s("br"),s("div",{staticClass:"container"},[s("h1",{staticClass:"title is-1 has-text-left"},[t._v(" "+t._s(t.$t("home.about.about34"))+" ")]),s("br"),s("div",{staticClass:"has-text-centered",staticStyle:{"padding-top":"2em"}},[s("form",{attrs:{action:"/signup"}},[s("button",{staticClass:"button is-large is-primary hov"},[t._v(t._s(t.$t("home.about.about35")))])])]),s("br"),s("br")]),t._m(4)])},$=[function(){var a=this,t=a._self._c;return t("div",{staticClass:"column is-one-third is-offset-1",staticStyle:{"text-align":"center"}},[t("img",{attrs:{src:p}})])},function(){var a=this,t=a._self._c;return t("div",{staticClass:"column is-offset-1 butts-img"},[t("img",{staticStyle:{height:"600px"},attrs:{src:v}})])},function(){var a=this,t=a._self._c;return t("div",{staticClass:"column is-one-third is-offset-1",staticStyle:{"padding-top":"4em","padding-bottom":"4em",margin:"auto"}},[t("img",{attrs:{src:g}})])},function(){var a=this,t=a._self._c;return t("p",{staticStyle:{"padding-bottom":"5em","text-align":"center"}},[a._v("Accra, Capital of Ghana, North-Western Coast of Africa "),t("a",{attrs:{href:"https://www.facebook.com/nshorena/posts/1652239435009949"}},[a._v("more photos on facebook")])])},function(){var a=this,t=a._self._c;return t("footer",{staticClass:"footer"},[t("div",{staticClass:"container"},[t("div",{staticClass:"content has-text-centered"},[t("p",[t("strong",[a._v("OpenLitterMap")]),a._v(" by "),t("a",{attrs:{href:"https://ie.linkedin.com/in/seanlynchgis"}},[a._v("Seán Lynch, M.Sc, M.Sc., B.A.")]),t("br")]),t("p",[a._v("info@openlittermap.com")])])])])}],y=c(C,f,$,!1,null,"ced4cfc5");const w=y.exports;export{w as default}; diff --git a/public/build/assets/Account-FMlRedLX.js b/public/build/assets/Account-DSpVKzjv.js similarity index 96% rename from public/build/assets/Account-FMlRedLX.js rename to public/build/assets/Account-DSpVKzjv.js index 111c08120..b55aefda7 100644 --- a/public/build/assets/Account-FMlRedLX.js +++ b/public/build/assets/Account-DSpVKzjv.js @@ -1 +1 @@ -import{n as a}from"./app-DpqRw90N.js";/* empty css */const o={name:"Account",async created(){await this.$store.dispatch("GET_PLANS")},data(){return{btn:"button is-danger",processing:!1,password:""}},computed:{button(){return this.processing?this.btn+" is-loading":this.btn},errors(){return this.$store.state.user.errors},plans(){return this.$store.state.createaccount.plans}},methods:{clearError(r){this.errors[r]&&this.$store.commit("deleteUserError",r)},getFirstError(r){return this.errors[r][0]},errorExists(r){return this.errors.hasOwnProperty(r)},async submit(){this.processing=!0,await this.$store.dispatch("DELETE_ACCOUNT",this.password),this.processing=!1,this.password=""}}};var n=function(){var t=this,s=t._self._c;return s("div",{staticStyle:{"padding-left":"1em","padding-right":"1em"}},[s("h1",{staticClass:"title is-4"},[t._v(t._s(t.$t("settings.account.delete-account")))]),s("hr"),s("p",[t._v(t._s(t.$t("settings.account.delete-account")))]),s("br"),s("div",{staticClass:"columns"},[s("div",{staticClass:"column is-one-third is-offset-1"},[s("div",{staticClass:"row"},[s("form",{attrs:{method:"POST"},on:{submit:function(e){return e.preventDefault(),t.submit.apply(null,arguments)},keydown:function(e){return t.clearError(e.target.name)}}},[s("label",{attrs:{for:"password"}},[t._v(t._s(t.$t("settings.account.delete-account?")))]),t.errorExists("password")?s("span",{staticClass:"is-danger",domProps:{textContent:t._s(t.getFirstError("password"))}}):t._e(),s("div",{staticClass:"field"},[s("div",{staticClass:"control"},[s("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)}}})])]),s("button",{class:t.button},[t._v(t._s(t.$t("settings.account.enter-password")))])])])])])])},i=[],c=a(o,n,i,!1,null,null);const l=c.exports;export{l as default}; +import{n as a}from"./app-DGjOB0Vc.js";/* empty css */const o={name:"Account",async created(){await this.$store.dispatch("GET_PLANS")},data(){return{btn:"button is-danger",processing:!1,password:""}},computed:{button(){return this.processing?this.btn+" is-loading":this.btn},errors(){return this.$store.state.user.errors},plans(){return this.$store.state.createaccount.plans}},methods:{clearError(r){this.errors[r]&&this.$store.commit("deleteUserError",r)},getFirstError(r){return this.errors[r][0]},errorExists(r){return this.errors.hasOwnProperty(r)},async submit(){this.processing=!0,await this.$store.dispatch("DELETE_ACCOUNT",this.password),this.processing=!1,this.password=""}}};var n=function(){var t=this,s=t._self._c;return s("div",{staticStyle:{"padding-left":"1em","padding-right":"1em"}},[s("h1",{staticClass:"title is-4"},[t._v(t._s(t.$t("settings.account.delete-account")))]),s("hr"),s("p",[t._v(t._s(t.$t("settings.account.delete-account")))]),s("br"),s("div",{staticClass:"columns"},[s("div",{staticClass:"column is-one-third is-offset-1"},[s("div",{staticClass:"row"},[s("form",{attrs:{method:"POST"},on:{submit:function(e){return e.preventDefault(),t.submit.apply(null,arguments)},keydown:function(e){return t.clearError(e.target.name)}}},[s("label",{attrs:{for:"password"}},[t._v(t._s(t.$t("settings.account.delete-account?")))]),t.errorExists("password")?s("span",{staticClass:"is-danger",domProps:{textContent:t._s(t.getFirstError("password"))}}):t._e(),s("div",{staticClass:"field"},[s("div",{staticClass:"control"},[s("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)}}})])]),s("button",{class:t.button},[t._v(t._s(t.$t("settings.account.enter-password")))])])])])])])},i=[],c=a(o,n,i,!1,null,null);const l=c.exports;export{l as default}; diff --git a/public/build/assets/BaseCharts-JIcpo9yP.js b/public/build/assets/BaseCharts-B-MueZ-x.js similarity index 99% rename from public/build/assets/BaseCharts-JIcpo9yP.js rename to public/build/assets/BaseCharts-B-MueZ-x.js index fc6d97309..cb977c198 100644 --- a/public/build/assets/BaseCharts-JIcpo9yP.js +++ b/public/build/assets/BaseCharts-B-MueZ-x.js @@ -1,4 +1,4 @@ -import{d as Zi,c as Ji,g as Qi}from"./app-DpqRw90N.js";import{m as eo}from"./moment-zH0z38ay.js";var Xr={exports:{}};const to=Zi(eo);/*! +import{d as Zi,c as Ji,g as Qi}from"./app-DGjOB0Vc.js";import{m as eo}from"./moment-zH0z38ay.js";var Xr={exports:{}};const to=Zi(eo);/*! * Chart.js v2.9.4 * https://www.chartjs.org * (c) 2020 Chart.js Contributors diff --git a/public/build/assets/BoundingBox-C1AMzGRO.js b/public/build/assets/BoundingBox-gzJ6JdUL.js similarity index 99% rename from public/build/assets/BoundingBox-C1AMzGRO.js rename to public/build/assets/BoundingBox-gzJ6JdUL.js index cf3e4e68f..a33631d50 100644 --- a/public/build/assets/BoundingBox-C1AMzGRO.js +++ b/public/build/assets/BoundingBox-gzJ6JdUL.js @@ -1,4 +1,4 @@ -import{L as H}from"./vue-loading-Bl53SHQy.js";/* empty css */import{n as I,g as j,T as P,A as W,C as V}from"./app-DpqRw90N.js";/* empty css */const G={name:"BrandsBox",computed:{brands:{get(){return this.$store.state.bbox.brands},set(h){this.$store.commit("setBrandsBox",h)}},selectedBrandIndex(){return this.$store.state.bbox.selectedBrandIndex}},methods:{brandClass(h){return this.selectedBrandIndex===h?"is-brand-card selected":"is-brand-card"},isSelected(h){return this.selectedBrandIndex===h?" - selected":""},select(h){this.$store.commit("selectBrandBoxIndex",h)}}};var F=function(){var e=this,r=e._self._c;return r("div",{staticClass:"fit-content",on:{click:function(o){o.stopPropagation()}}},[r("p",{directives:[{name:"show",rawName:"v-show",value:e.brands.length>0,expression:"brands.length > 0"}]},[e._v("Select a brand to add to a box")]),r("p",{directives:[{name:"show",rawName:"v-show",value:e.selectedBrandIndex!==null,expression:"selectedBrandIndex !== null"}],staticClass:"mb1"},[e._v("When a box is selected, click a box to add the brand")]),e._l(e.brands,function(o,v){return r("div",{key:o+v,class:e.brandClass(v),on:{mousedown:function(f){return e.select(v)}}},[e._v(e._s(o)+" "+e._s(e.isSelected(v)))])})],2)},q=[],J=I(G,F,q,!1,null,"420638e6");const O=J.exports,K={name:"Boxes",components:{BrandsBox:O},computed:{boxes(){return this.$store.state.bbox.boxes},boxHidden(){return this.$store.state.bbox.boxes.find(h=>h.hidden)},manyBoxes(){return this.$store.state.bbox.boxes.length>1}},methods:{activateAndCheckBox(h){this.$store.commit("activateBox",h),this.$store.state.bbox.selectedBrandIndex!==null&&this.$store.commit("addSelectedBrandToBox",h)},boxClass(h){return h?"is-box is-active":"is-box"},duplicate(h){this.$store.commit("duplicateBox",h)},getCategories(h){let e=[];return Object.entries(h).map(r=>{Object.keys(r[1]).length>0&&e.push({category:r[0],tags:r[1]})}),e},getCategory(h){return this.$i18n.t("litter.categories."+h)},getTags(h,e){return this.$i18n.t("litter."+h+"."+e)+": 1"},hideInactive(){this.$store.commit("toggleHiddenBoxes")},removeTag(h,e){this.$store.commit("removeBboxTag",{category:h,tag_key:e})},rotate(h){this.$store.commit("rotateBox",h)},showAll(){this.$store.commit("showAllBoxes")},toggleLabel(h){this.$store.commit("toggleBoxLabel",h)}}};var Q=function(){var e=this,r=e._self._c;return r("div",{staticClass:"column is-one-third pl3 pt7"},[r("BrandsBox"),r("button",{directives:[{name:"show",rawName:"v-show",value:e.manyBoxes,expression:"manyBoxes"}],staticClass:"button is-small is-primary mb1",on:{click:function(o){return o.stopPropagation(),e.hideInactive.apply(null,arguments)}}},[e._v("Hide boxes")]),r("button",{directives:[{name:"show",rawName:"v-show",value:e.boxHidden,expression:"boxHidden"}],staticClass:"button is-small is-info mb1",on:{click:e.showAll}},[e._v("Show boxes")]),e._l(e.boxes,function(o,v){return r("div",{key:o.id,class:e.boxClass(o.active),on:{click:function(f){return f.stopPropagation(),e.activateAndCheckBox(o.id)}}},[r("p",{staticClass:"ma"},[e._v("Box: "),r("span",{staticClass:"is-bold"},[e._v(e._s(o.id))])]),r("button",{staticClass:"button is-small duplicate-box",attrs:{disabled:""},on:{click:function(f){return e.duplicate(o.id)}}},[e._v("Todo - Duplicate Box")]),r("button",{staticClass:"button is-small toggle-box",on:{click:function(f){return e.toggleLabel(o.id)}}},[e._v("Toggle Label")]),r("button",{staticClass:"button is-small is-dark rotate-box",on:{click:function(f){return e.rotate(o.id)}}},[e._v("Rotate")]),r("p",[e._v("Left: "+e._s(o.left))]),r("p",[e._v("Top: "+e._s(o.top))]),r("p",[e._v("Width: "+e._s(o.width))]),r("p",{staticClass:"mb1"},[e._v("Height: "+e._s(o.height))]),r("div",{staticClass:"container"},[r("div",{staticClass:"box-categories"},[r("span",{staticClass:"box-category"},[e._v(e._s(e.getCategory(o.category)))]),r("span",{staticClass:"tag is-medium is-info box-label",domProps:{innerHTML:e._s(e.getTags(o.category,o.tag))},on:{click:function(f){return e.removeTag(o.category,o.tag)}}}),o.brand?r("div",[r("p",{staticClass:"box-category"},[e._v("Brand")]),r("span",{staticClass:"tag is-medium is-info box-label w100",domProps:{innerHTML:e._s(e.getTags("brands",o.brand))},on:{click:function(f){return e.removeTag("brands",o.brand)}}})]):e._e()])])])})],2)},Z=[],tt=I(K,Q,Z,!1,null,"754c37be");const et=tt.exports;var Y={exports:{}};(function(h,e){(function(r,o){h.exports=o()})(window,function(){return function(r){function o(f){if(v[f])return v[f].exports;var b=v[f]={i:f,l:!1,exports:{}};return r[f].call(b.exports,b,b.exports,o),b.l=!0,b.exports}var v={};return o.m=r,o.c=v,o.d=function(f,b,_){o.o(f,b)||Object.defineProperty(f,b,{configurable:!1,enumerable:!0,get:_})},o.r=function(f){Object.defineProperty(f,"__esModule",{value:!0})},o.n=function(f){var b=f&&f.__esModule?function(){return f.default}:function(){return f};return o.d(b,"a",b),b},o.o=function(f,b){return Object.prototype.hasOwnProperty.call(f,b)},o.p="",o(o.s=25)}([function(r,o,v){var f=v(11);typeof f=="string"&&(f=[[r.i,f,""]]);var b={};b.transform=void 0,v(3)(f,b),f.locals&&(r.exports=f.locals)},function(r,o,v){function f(b,_,w,x,y,B,T,k){var $=typeof b=="function"?b.options:b;_&&($.render=_,$.staticRenderFns=w,$._compiled=!0),x&&($.functional=!0),B&&($._scopeId="data-v-"+B);var M;if(T?(M=function(S){S=S||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,S||typeof __VUE_SSR_CONTEXT__>"u"||(S=__VUE_SSR_CONTEXT__),y&&y.call(this,S),S&&S._registeredComponents&&S._registeredComponents.add(T)},$._ssrRegister=M):y&&(M=k?function(){y.call(this,this.$root.$options.shadowRoot)}:y),M)if($.functional){$._injectStyles=M;var D=$.render;$.render=function(S,A){return M.call(A),D(S,A)}}else{var z=$.beforeCreate;$.beforeCreate=z?[].concat(z,M):[M]}return{exports:b,options:$}}v.d(o,"a",function(){return f})},function(r,o,v){function f(t){return x(t)||w(t)||_(t)||b()}function b(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +import{L as H}from"./vue-loading-Kx5ngqlf.js";/* empty css */import{n as I,g as j,T as P,A as W,C as V}from"./app-DGjOB0Vc.js";/* empty css */const G={name:"BrandsBox",computed:{brands:{get(){return this.$store.state.bbox.brands},set(h){this.$store.commit("setBrandsBox",h)}},selectedBrandIndex(){return this.$store.state.bbox.selectedBrandIndex}},methods:{brandClass(h){return this.selectedBrandIndex===h?"is-brand-card selected":"is-brand-card"},isSelected(h){return this.selectedBrandIndex===h?" - selected":""},select(h){this.$store.commit("selectBrandBoxIndex",h)}}};var F=function(){var e=this,r=e._self._c;return r("div",{staticClass:"fit-content",on:{click:function(o){o.stopPropagation()}}},[r("p",{directives:[{name:"show",rawName:"v-show",value:e.brands.length>0,expression:"brands.length > 0"}]},[e._v("Select a brand to add to a box")]),r("p",{directives:[{name:"show",rawName:"v-show",value:e.selectedBrandIndex!==null,expression:"selectedBrandIndex !== null"}],staticClass:"mb1"},[e._v("When a box is selected, click a box to add the brand")]),e._l(e.brands,function(o,v){return r("div",{key:o+v,class:e.brandClass(v),on:{mousedown:function(f){return e.select(v)}}},[e._v(e._s(o)+" "+e._s(e.isSelected(v)))])})],2)},q=[],J=I(G,F,q,!1,null,"420638e6");const O=J.exports,K={name:"Boxes",components:{BrandsBox:O},computed:{boxes(){return this.$store.state.bbox.boxes},boxHidden(){return this.$store.state.bbox.boxes.find(h=>h.hidden)},manyBoxes(){return this.$store.state.bbox.boxes.length>1}},methods:{activateAndCheckBox(h){this.$store.commit("activateBox",h),this.$store.state.bbox.selectedBrandIndex!==null&&this.$store.commit("addSelectedBrandToBox",h)},boxClass(h){return h?"is-box is-active":"is-box"},duplicate(h){this.$store.commit("duplicateBox",h)},getCategories(h){let e=[];return Object.entries(h).map(r=>{Object.keys(r[1]).length>0&&e.push({category:r[0],tags:r[1]})}),e},getCategory(h){return this.$i18n.t("litter.categories."+h)},getTags(h,e){return this.$i18n.t("litter."+h+"."+e)+": 1"},hideInactive(){this.$store.commit("toggleHiddenBoxes")},removeTag(h,e){this.$store.commit("removeBboxTag",{category:h,tag_key:e})},rotate(h){this.$store.commit("rotateBox",h)},showAll(){this.$store.commit("showAllBoxes")},toggleLabel(h){this.$store.commit("toggleBoxLabel",h)}}};var Q=function(){var e=this,r=e._self._c;return r("div",{staticClass:"column is-one-third pl3 pt7"},[r("BrandsBox"),r("button",{directives:[{name:"show",rawName:"v-show",value:e.manyBoxes,expression:"manyBoxes"}],staticClass:"button is-small is-primary mb1",on:{click:function(o){return o.stopPropagation(),e.hideInactive.apply(null,arguments)}}},[e._v("Hide boxes")]),r("button",{directives:[{name:"show",rawName:"v-show",value:e.boxHidden,expression:"boxHidden"}],staticClass:"button is-small is-info mb1",on:{click:e.showAll}},[e._v("Show boxes")]),e._l(e.boxes,function(o,v){return r("div",{key:o.id,class:e.boxClass(o.active),on:{click:function(f){return f.stopPropagation(),e.activateAndCheckBox(o.id)}}},[r("p",{staticClass:"ma"},[e._v("Box: "),r("span",{staticClass:"is-bold"},[e._v(e._s(o.id))])]),r("button",{staticClass:"button is-small duplicate-box",attrs:{disabled:""},on:{click:function(f){return e.duplicate(o.id)}}},[e._v("Todo - Duplicate Box")]),r("button",{staticClass:"button is-small toggle-box",on:{click:function(f){return e.toggleLabel(o.id)}}},[e._v("Toggle Label")]),r("button",{staticClass:"button is-small is-dark rotate-box",on:{click:function(f){return e.rotate(o.id)}}},[e._v("Rotate")]),r("p",[e._v("Left: "+e._s(o.left))]),r("p",[e._v("Top: "+e._s(o.top))]),r("p",[e._v("Width: "+e._s(o.width))]),r("p",{staticClass:"mb1"},[e._v("Height: "+e._s(o.height))]),r("div",{staticClass:"container"},[r("div",{staticClass:"box-categories"},[r("span",{staticClass:"box-category"},[e._v(e._s(e.getCategory(o.category)))]),r("span",{staticClass:"tag is-medium is-info box-label",domProps:{innerHTML:e._s(e.getTags(o.category,o.tag))},on:{click:function(f){return e.removeTag(o.category,o.tag)}}}),o.brand?r("div",[r("p",{staticClass:"box-category"},[e._v("Brand")]),r("span",{staticClass:"tag is-medium is-info box-label w100",domProps:{innerHTML:e._s(e.getTags("brands",o.brand))},on:{click:function(f){return e.removeTag("brands",o.brand)}}})]):e._e()])])])})],2)},Z=[],tt=I(K,Q,Z,!1,null,"754c37be");const et=tt.exports;var Y={exports:{}};(function(h,e){(function(r,o){h.exports=o()})(window,function(){return function(r){function o(f){if(v[f])return v[f].exports;var b=v[f]={i:f,l:!1,exports:{}};return r[f].call(b.exports,b,b.exports,o),b.l=!0,b.exports}var v={};return o.m=r,o.c=v,o.d=function(f,b,_){o.o(f,b)||Object.defineProperty(f,b,{configurable:!1,enumerable:!0,get:_})},o.r=function(f){Object.defineProperty(f,"__esModule",{value:!0})},o.n=function(f){var b=f&&f.__esModule?function(){return f.default}:function(){return f};return o.d(b,"a",b),b},o.o=function(f,b){return Object.prototype.hasOwnProperty.call(f,b)},o.p="",o(o.s=25)}([function(r,o,v){var f=v(11);typeof f=="string"&&(f=[[r.i,f,""]]);var b={};b.transform=void 0,v(3)(f,b),f.locals&&(r.exports=f.locals)},function(r,o,v){function f(b,_,w,x,y,B,T,k){var $=typeof b=="function"?b.options:b;_&&($.render=_,$.staticRenderFns=w,$._compiled=!0),x&&($.functional=!0),B&&($._scopeId="data-v-"+B);var M;if(T?(M=function(S){S=S||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,S||typeof __VUE_SSR_CONTEXT__>"u"||(S=__VUE_SSR_CONTEXT__),y&&y.call(this,S),S&&S._registeredComponents&&S._registeredComponents.add(T)},$._ssrRegister=M):y&&(M=k?function(){y.call(this,this.$root.$options.shadowRoot)}:y),M)if($.functional){$._injectStyles=M;var D=$.render;$.render=function(S,A){return M.call(A),D(S,A)}}else{var z=$.beforeCreate;$.beforeCreate=z?[].concat(z,M):[M]}return{exports:b,options:$}}v.d(o,"a",function(){return f})},function(r,o,v){function f(t){return x(t)||w(t)||_(t)||b()}function b(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _(t,s){if(t){if(typeof t=="string")return y(t,s);var a=Object.prototype.toString.call(t).slice(8,-1);return a==="Object"&&t.constructor&&(a=t.constructor.name),a==="Map"||a==="Set"?Array.from(t):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?y(t,s):void 0}}function w(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function x(t){if(Array.isArray(t))return y(t)}function y(t,s){(s==null||s>t.length)&&(s=t.length);for(var a=0,u=new Array(s);a=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:[String,Number],default:200,validator:function(t){return typeof t=="string"?t==="auto":t>=0}},h:{type:[String,Number],default:200,validator:function(t){return typeof t=="string"?t==="auto":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 typeof t=="number"}},y:{type:Number,default:0,validator:function(t){return typeof t=="number"}},z:{type:[String,Number],default:"auto",validator:function(t){return typeof t=="string"?t==="auto":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["x","y","both","none"].indexOf(t)!==-1}},contentClass:{type:String,required:!1,default:""}},data:function(){return{fixAspectRatio:null,active:null,zIndex:null,parentWidth:null,parentHeight:null,left:null,top:null,right:null,bottom:null,minHeight:null}},beforeCreate:function(){this.stickDrag=!1,this.bodyDrag=!1,this.dimensionsBeforeMove={pointerX:0,pointerY:0,x:0,y:0,w:0,h:0},this.limits={left:{min:null,max:null},right:{min:null,max:null},top:{min:null,max:null},bottom:{min:null,max:null}},this.currentStick=null},mounted:function(){var t=this;this.parentElement=this.$el.parentNode,this.parentWidth=this.parentW?this.parentW:this.parentElement.clientWidth,this.parentHeight=this.parentH?this.parentH:this.parentElement.clientHeight,this.left=this.x,this.top=this.y,this.right=this.parentWidth-(this.w==="auto"?this.$refs.container.scrollWidth:this.w)-this.left,this.bottom=this.parentHeight-(this.h==="auto"?this.$refs.container.scrollHeight:this.h)-this.top,this.domEvents=new Map([["mousemove",this.move],["mouseup",this.up],["mouseleave",this.up],["mousedown",this.deselect],["touchmove",this.move],["touchend",this.up],["touchcancel",this.up],["touchstart",this.up]]),B(this.domEvents),this.dragHandle&&f(this.$el.querySelectorAll(this.dragHandle)).forEach(function(s){s.setAttribute("data-drag-handle",t._uid)}),this.dragCancel&&f(this.$el.querySelectorAll(this.dragCancel)).forEach(function(s){s.setAttribute("data-drag-cancel",t._uid)})},beforeDestroy:function(){T(this.domEvents)},methods:{deselect:function(){this.preventActiveBehavior||(this.active=!1)},move:function(t){if(this.stickDrag||this.bodyDrag){t.stopPropagation();var s=t.pageX!==void 0?t.pageX:t.touches[0].pageX,a=t.pageY!==void 0?t.pageY:t.touches[0].pageY,u=this.dimensionsBeforeMove,i={x:(u.pointerX-s)/this.parentScaleX,y:(u.pointerY-a)/this.parentScaleY};if(this.stickDrag&&this.stickMove(i),this.bodyDrag){if(this.axis==="x")i.y=0;else if(this.axis==="y")i.x=0;else if(this.axis==="none")return;this.bodyMove(i)}}},up:function(t){this.stickDrag?this.stickUp(t):this.bodyDrag&&this.bodyUp(t)},bodyDown:function(t){var s=t.target,a=t.button;if(this.preventActiveBehavior||(this.active=!0),(!a||a===0)&&(this.$emit("clicked",t),this.active&&!(this.dragHandle&&s.getAttribute("data-drag-handle")!==this._uid.toString()||this.dragCancel&&s.getAttribute("data-drag-cancel")===this._uid.toString()))){t.stopPropagation!==void 0&&t.stopPropagation(),t.preventDefault!==void 0&&t.preventDefault(),this.isDraggable&&(this.bodyDrag=!0);var u=t.pageX!==void 0?t.pageX:t.touches[0].pageX,i=t.pageY!==void 0?t.pageY:t.touches[0].pageY;this.saveDimensionsBeforeMove({pointerX:u,pointerY:i}),this.parentLimitation&&(this.limits=this.calcDragLimitation())}},bodyMove:function(t){var s=this.dimensionsBeforeMove,a=this.parentWidth,u=this.parentHeight,i=this.gridX,n=this.gridY,c=this.width,m=this.height,l=s.top-t.y,d=s.bottom+t.y,p=s.left-t.x,g=s.right+t.x;if(this.snapToGrid){var C=!0,L=!0,R=l-Math.floor(l/n)*n,E=u-d-Math.floor((u-d)/n)*n,X=p-Math.floor(p/i)*i,U=a-g-Math.floor((a-g)/i)*i;R>n/2&&(R-=n),E>n/2&&(E-=n),X>i/2&&(X-=i),U>i/2&&(U-=i),Math.abs(E)2&&arguments[2]!==void 0&&arguments[2];if(this.isResizable&&this.active||a){this.stickDrag=!0;var u=s.pageX!==void 0?s.pageX:s.touches[0].pageX,i=s.pageY!==void 0?s.pageY:s.touches[0].pageY;this.saveDimensionsBeforeMove({pointerX:u,pointerY:i}),this.currentStick=t,this.limits=this.calcResizeLimits()}},saveDimensionsBeforeMove:function(t){var s=t.pointerX,a=t.pointerY;this.dimensionsBeforeMove.pointerX=s,this.dimensionsBeforeMove.pointerY=a,this.dimensionsBeforeMove.left=this.left,this.dimensionsBeforeMove.right=this.right,this.dimensionsBeforeMove.top=this.top,this.dimensionsBeforeMove.bottom=this.bottom,this.dimensionsBeforeMove.width=this.width,this.dimensionsBeforeMove.height=this.height,this.aspectFactor=this.width/this.height},stickMove:function(t){var s=this.currentStick,a=this.dimensionsBeforeMove,u=this.gridY,i=this.gridX,n=this.snapToGrid,c=this.parentHeight,m=this.parentWidth,l=a.top,d=a.bottom,p=a.left,g=a.right;switch(s[0]){case"b":d=a.bottom+t.y,n&&(d=c-Math.round((c-d)/u)*u);break;case"t":l=a.top-t.y,n&&(l=Math.round(l/u)*u)}switch(s[1]){case"r":g=a.right+t.x,n&&(g=m-Math.round((m-g)/i)*i);break;case"l":p=a.left-t.x,n&&(p=Math.round(p/i)*i)}var C=this.rectCorrectionByLimit({newLeft:p,newRight:g,newTop:l,newBottom:d});if(p=C.newLeft,g=C.newRight,l=C.newTop,d=C.newBottom,this.aspectRatio){var L=this.rectCorrectionByAspectRatio({newLeft:p,newRight:g,newTop:l,newBottom:d});p=L.newLeft,g=L.newRight,l=L.newTop,d=L.newBottom}this.left=p,this.right=g,this.top=l,this.bottom=d,this.$emit("resizing",this.rect)},stickUp:function(){this.stickDrag=!1,this.dimensionsBeforeMove={pointerX:0,pointerY:0,x:0,y:0,w:0,h:0},this.limits={left:{min:null,max:null},right:{min:null,max:null},top:{min:null,max:null},bottom:{min:null,max:null}},this.$emit("resizing",this.rect),this.$emit("resizestop",this.rect)},calcDragLimitation:function(){var t=this.parentWidth,s=this.parentHeight;return{left:{min:0,max:t-this.width},right:{min:0,max:t-this.width},top:{min:0,max:s-this.height},bottom:{min:0,max:s-this.height}}},calcResizeLimits:function(){var t=this.aspectFactor,s=this.width,a=this.height,u=this.bottom,i=this.top,n=this.left,c=this.right,m=this.minh,l=this.minw,d=this.parentLimitation?0:null;this.aspectRatio&&(l/m>t?m=l/t:l=t*m);var p={left:{min:d,max:n+(s-l)},right:{min:d,max:c+(s-l)},top:{min:d,max:i+(a-m)},bottom:{min:d,max:u+(a-m)}};if(this.aspectRatio){var g={left:{min:n-Math.min(i,u)*t*2,max:n+(a-m)/2*t*2},right:{min:c-Math.min(i,u)*t*2,max:c+(a-m)/2*t*2},top:{min:i-Math.min(n,c)/t*2,max:i+(s-l)/2/t*2},bottom:{min:u-Math.min(n,c)/t*2,max:u+(s-l)/2/t*2}};this.currentStick[0]==="m"?(p.left={min:Math.max(p.left.min,g.left.min),max:Math.min(p.left.max,g.left.max)},p.right={min:Math.max(p.right.min,g.right.min),max:Math.min(p.right.max,g.right.max)}):this.currentStick[1]==="m"&&(p.top={min:Math.max(p.top.min,g.top.min),max:Math.min(p.top.max,g.top.max)},p.bottom={min:Math.max(p.bottom.min,g.bottom.min),max:Math.min(p.bottom.max,g.bottom.max)})}return p},sideCorrectionByLimit:function(t,s){var a=s;return t.min!==null&&sl?(p=l*g,m[1]==="l"?s=n-a-p:a=n-s-p):(g=p/l,m[0]==="t"?u=c-i-g:i=c-u-g);return{newLeft:s,newRight:a,newTop:u,newBottom:i}}},computed:{positionStyle:function(){return{top:this.top+"px",left:this.left+"px",zIndex:this.zIndex}},sizeStyle:function(){return{width:this.w=="auto"?"auto":this.width+"px",height:this.h=="auto"?"auto":this.height+"px"}},vdrStick:function(){var t=this;return function(s){var a={width:"".concat(t.stickSize/t.parentScaleX,"px"),height:"".concat(t.stickSize/t.parentScaleY,"px")};return a[M.y[s[0]]]="".concat(t.stickSize/t.parentScaleX/-2,"px"),a[M.x[s[1]]]="".concat(t.stickSize/t.parentScaleX/-2,"px"),a}},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:{active:function(t){t?this.$emit("activated"):this.$emit("deactivated")},isActive:{immediate:!0,handler:function(t){this.active=t}},z:{immediate:!0,handler:function(t){(t>=0||t==="auto")&&(this.zIndex=t)}},x:{handler:function(t,s){var a=this;if(!this.stickDrag&&!this.bodyDrag&&t!==this.left){var u=s-t;this.bodyDown({pageX:this.left,pageY:this.top}),this.bodyMove({x:u,y:0}),this.$nextTick(function(){a.bodyUp()})}}},y:{handler:function(t,s){var a=this;if(!this.stickDrag&&!this.bodyDrag&&t!==this.top){var u=s-t;this.bodyDown({pageX:this.left,pageY:this.top}),this.bodyMove({x:0,y:u}),this.$nextTick(function(){a.bodyUp()})}}},w:{handler:function(t,s){var a=this;if(!this.stickDrag&&!this.bodyDrag&&t!==this.width){var u=s-t;this.stickDown("mr",{pageX:this.right,pageY:this.top+this.height/2},!0),this.stickMove({x:u,y:0}),this.$nextTick(function(){a.stickUp()})}}},h:{handler:function(t,s){var a=this;if(!this.stickDrag&&!this.bodyDrag&&t!==this.height){var u=s-t;this.stickDown("bm",{pageX:this.left+this.width/2,pageY:this.bottom},!0),this.stickMove({x:0,y:u}),this.$nextTick(function(){a.stickUp()})}}},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}}},z=D,S=(v(12),v(1)),A=Object(S.a)(z,k,$,!1,null,null,null);A.options.__file="src/components/vue-drag-resize.vue",o.a=A.exports},function(r,o,v){function f(i,n){for(var c=0;c=0&&s.splice(n,1)}function x(i){var n=document.createElement("style");return i.attrs.type="text/css",B(n,i.attrs),_(i,n),n}function y(i){var n=document.createElement("link");return i.attrs.type="text/css",i.attrs.rel="stylesheet",B(n,i.attrs),_(i,n),n}function B(i,n){Object.keys(n).forEach(function(c){i.setAttribute(c,n[c])})}function T(i,n){var c,m,l,d;if(n.transform&&i.css){if(!(d=n.transform(i.css)))return function(){};i.css=d}if(n.singleton){var p=t++;c=A||(A=x(n)),m=k.bind(null,c,p,!1),l=k.bind(null,c,p,!0)}else i.sourceMap&&typeof URL=="function"&&typeof URL.createObjectURL=="function"&&typeof URL.revokeObjectURL=="function"&&typeof Blob=="function"&&typeof btoa=="function"?(c=y(n),m=M.bind(null,c,n),l=function(){w(c),c.href&&URL.revokeObjectURL(c.href)}):(c=x(n),m=$.bind(null,c),l=function(){w(c)});return m(i),function(g){if(g){if(g.css===i.css&&g.media===i.media&&g.sourceMap===i.sourceMap)return;m(i=g)}else l()}}function k(i,n,c,m){var l=c?"":m.css;if(i.styleSheet)i.styleSheet.cssText=u(n,l);else{var d=document.createTextNode(l),p=i.childNodes;p[n]&&i.removeChild(p[n]),p.length?i.insertBefore(d,p[n]):i.appendChild(d)}}function $(i,n){var c=n.css,m=n.media;if(m&&i.setAttribute("media",m),i.styleSheet)i.styleSheet.cssText=c;else{for(;i.firstChild;)i.removeChild(i.firstChild);i.appendChild(document.createTextNode(c))}}function M(i,n,c){var m=c.css,l=c.sourceMap,d=n.convertToAbsoluteUrls===void 0&&l;(n.convertToAbsoluteUrls||d)&&(m=a(m)),l&&(m+=` /*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(l))))+" */");var p=new Blob([m],{type:"text/css"}),g=i.href;i.href=URL.createObjectURL(p),g&&URL.revokeObjectURL(g)}var D={},z=function(i){var n;return function(){return n===void 0&&(n=i.apply(this,arguments)),n}}(function(){return window&&document&&document.all&&!window.atob}),S=function(i){var n={};return function(c){return n[c]===void 0&&(n[c]=i.call(this,c)),n[c]}}(function(i){return document.querySelector(i)}),A=null,t=0,s=[],a=v(10);r.exports=function(i,n){if(typeof DEBUG<"u"&&DEBUG&&typeof document!="object")throw new Error("The style-loader cannot be used in a non-browser environment");n=n||{},n.attrs=typeof n.attrs=="object"?n.attrs:{},n.singleton||(n.singleton=z()),n.insertInto||(n.insertInto="head"),n.insertAt||(n.insertAt="bottom");var c=b(i,n);return f(c,n),function(m){for(var l=[],d=0;d{await this.getPhotos(),this.processing=!1},500)},toggleAll(){this.$store.commit("selectAllPhotos",this.selectAll)},toggleCalendar(){this.showCalendar=!this.showCalendar}}};var m=function(){var t=this,s=t._self._c;return s("div",{staticClass:"flex mb1 filter-my-photos"},[s("router-link",{attrs:{to:"/tag"}},[s("button",{staticClass:"button is-primary"},[t._v("Tag individually")])]),s("div",{staticClass:"field mb0 pt0"},[s("div",{staticClass:"control has-icons-left"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.filter_by_id,expression:"filter_by_id"}],staticClass:"input w10",attrs:{placeholder:t.$t("common.search-by-id")},domProps:{value:t.filter_by_id},on:{input:[function(o){o.target.composing||(t.filter_by_id=o.target.value)},t.search]}}),s("span",{staticClass:"icon is-small is-left z-index-0"},[s("i",{class:t.spinner})])])]),s("button",{staticClass:"button is-primary select-all-photos",on:{click:t.toggleAll}},[t._v(" "+t._s(t.getSelectAllText)+" ")]),s("div",{class:t.calendar},[s("div",{staticClass:"dropdown-trigger"},[s("button",{staticClass:"button dropdownButtonLeft",on:{click:t.toggleCalendar}},[s("span",[t._v(t._s(t.showCalendarDates))])])]),s("div",{staticClass:"dropdown-menu"},[s("div",{staticClass:"dropdown-content calendar-box"},[s("FunctionalCalendar",{ref:"calendar",attrs:{"day-names":t.$t("common.day-names"),"month-names":t.$t("common.month-names"),"short-month-names":t.$t("common.short-month-names"),"change-month-function":!0,"change-year-function":!0,"is-date-range":!0,"date-format":"yyyy/mm/dd"},on:{selectedDaysCount:t.toggleCalendar},model:{value:t.filter_by_calendar,callback:function(o){t.filter_by_calendar=o},expression:"filter_by_calendar"}})],1)])]),s("div",[s("select",{directives:[{name:"model",rawName:"v-model",value:t.period,expression:"period"}],staticClass:"input",on:{change:[function(o){var a=Array.prototype.filter.call(o.target.options,function(i){return i.selected}).map(function(i){var r="_value"in i?i._value:i.value;return r});t.period=o.target.multiple?a:a[0]},t.getPhotos]}},t._l(t.periods,function(o){return s("option",{domProps:{value:o}},[t._v(t._s(t.getPeriod(o)))])}),0)])],1)},u=[],p=n(h,m,u,!1,null,"a15747e1");const g=p.exports,_={name:"PhotoDetailsPopup",computed:{photo(){const e=this.$store.state.photos.showDetailsPhotoId;return this.$store.state.photos.bulkPaginate.data.find(t=>t.id===e)}},methods:{getCategoryName(e){return this.$i18n.t(`litter.categories.${e}`)},getTagName(e,t){return this.$i18n.t(`litter.${e}.${t}`)},removeTag(e,t){this.$store.commit("removeTagFromPhoto",{photoId:this.photo.id,category:e,tag:t})},clearCustomTag(e){this.$store.commit("removeCustomTagFromPhoto",{photoId:this.photo.id,customTag:e})},togglePickedUp(){this.$store.commit("setPhotoPickedUp",{photoId:this.photo.id,picked_up:!this.photo.picked_up})}}};var f=function(){var t=this,s=t._self._c;return t.photo?s("div",[s("div",[s("div",{staticClass:"top-row"},[s("div",{staticClass:"switch-container"},[s("p",{staticClass:"mr-2"},[s("strong",[t._v(t._s(t.$t("tags.picked-up-title")))])]),s("label",{staticClass:"switch"},[s("input",{attrs:{type:"checkbox"},domProps:{checked:t.photo.picked_up},on:{change:t.togglePickedUp}}),s("span",{staticClass:"slider round"})])])]),s("div",{staticClass:"close-popup",on:{click:function(o){return t.$emit("close")}}},[s("i",{staticClass:"fa fa-times"})])]),t.photo.custom_tags&&t.photo.custom_tags.length||Object.keys(t.photo.tags).length?s("div",{staticClass:"photo-tags-container"},[t.photo.custom_tags&&t.photo.custom_tags.length?s("div",[s("p",{staticClass:"has-text-centered"},[t._v(t._s(t.$t("tags.custom-tags")))]),s("transition-group",{staticClass:"tags-list",attrs:{name:"list",tag:"div"}},t._l(t.photo.custom_tags,function(o){return s("div",{key:o,staticClass:"litter-tag"},[s("span",{staticClass:"close",on:{click:function(a){return a.preventDefault(),a.stopPropagation(),t.clearCustomTag(o)}}},[s("i",{staticClass:"fa fa-times"})]),s("p",{staticClass:"has-text-white"},[t._v(t._s(o))])])}),0)],1):t._e(),s("transition-group",{attrs:{name:"categories",tag:"div"}},t._l(Object.keys(t.photo.tags||{}),function(o){return s("div",{key:o},[s("p",{staticClass:"has-text-centered"},[t._v(t._s(t.getCategoryName(o)))]),s("transition-group",{staticClass:"tags-list",attrs:{name:"list",tag:"div"}},t._l(Object.keys(t.photo.tags[o]),function(a){return s("div",{key:a,staticClass:"litter-tag"},[s("span",{staticClass:"close",on:{click:function(i){return i.preventDefault(),i.stopPropagation(),t.removeTag(o,a)}}},[s("i",{staticClass:"fa fa-times"})]),s("p",{staticClass:"has-text-white"},[t._v(" "+t._s(t.getTagName(o,a))+": "+t._s(t.photo.tags[o][a])+" ")])])}),0)],1)}),0)],1):t._e()]):t._e()},v=[],C=n(_,f,v,!1,null,"c3ddc111");const $=C.exports,b={name:"BulkTag",components:{Loading:c,FilterMyPhotos:g,PhotoDetailsPopup:$},data(){return{processing:!1}},async mounted(){this.$store.commit("resetPhotoState"),await this.$store.dispatch("LOAD_MY_PHOTOS")},computed:{calendar(){return this.showCalendar?"dropdown is-active mr1":"dropdown mr1"},paginate(){return this.$store.state.photos.bulkPaginate},photos(){return this.paginate.data},selectedCount(){return this.$store.state.photos.selectedCount},hasAddedTags(){return this.processing?!1:this.photos.filter(this.photoIsTagged).length}},methods:{addTags(){this.$store.commit("showModal",{type:"AddManyTagsToManyPhotos",title:this.$t("common.add-many-tags")})},async submit(){this.hasAddedTags&&(this.processing=!0,await this.$store.dispatch("BULK_TAG_PHOTOS"),this.processing=!1,setTimeout(()=>{window.location.reload()},2e3))},async applyTags(){if(!this.hasAddedTags)return;this.processing=!0;const e=this.photos.filter(this.photoIsTagged);for(let t in e){Object.entries(e[t].tags??{}).forEach(([o,a])=>{Object.entries(a).forEach(([i,r])=>{this.$store.commit("addTag",{photoId:e[t].id,category:o,tag:i,quantity:r})})});const s=e[t].custom_tags??[];for(const o in s)this.$store.commit("addCustomTag",{photoId:e[t].id,customTag:s[o]})}setTimeout(()=>{this.processing=!1,this.$router.push("/tag")},300)},deletePhotos(){this.$store.commit("showModal",{type:"ConfirmDeleteManyPhotos",title:this.$t("common.confirm-delete")})},togglePhotoDetailsPopup(e){const t=this.showPhotoDetails(e)?null:e.id;this.$store.commit("setPhotoToShowDetails",t)},getDate(e){return d(e).format("LL")},previous(){this.$store.dispatch("PREVIOUS_PHOTOS_PAGE")},next(){this.$store.dispatch("NEXT_PHOTOS_PAGE")},select(e){this.$store.commit("togglePhotoSelected",e)},photoIsTagged(e){var o;const t=e.tags&&Object.keys(e.tags).length,s=(o=e.custom_tags)==null?void 0:o.length;return t||s},showPhotoDetails(e){return this.$store.state.photos.showDetailsPhotoId===e.id}}};var y=function(){var t=this,s=t._self._c;return s("section",{staticClass:"hero fullheight bulk-tag"},[s("loading",{directives:[{name:"show",rawName:"v-show",value:t.processing,expression:"processing"}],attrs:{"is-full-page":!0},model:{value:t.processing,callback:function(o){t.processing=o},expression:"processing"}}),s("FilterMyPhotos"),s("div",{staticClass:"my-photos-grid-container"},t._l(t.photos,function(o){return s("div",{key:o.id,staticClass:"my-grid-photo"},[s("img",{directives:[{name:"img",rawName:"v-img",value:{sourceButton:!0,openOn:"dblclick"},expression:"{sourceButton: true, openOn: 'dblclick'}"}],staticClass:"litter",attrs:{src:o.filename},on:{click:function(a){return t.select(o.id)}}}),o.selected?s("div",{staticClass:"grid-checkmark"},[t._m(0,!0)]):t._e(),t.photoIsTagged(o)?s("div",{staticClass:"grid-tagged tooltip",on:{click:function(a){return a.preventDefault(),a.stopPropagation(),t.togglePhotoDetailsPopup(o)}}},[t._m(1,!0)]):t._e(),s("transition",{attrs:{name:"fade"}},[t.showPhotoDetails(o)?s("div",{staticClass:"photo-tags"},[s("PhotoDetailsPopup",{on:{close:function(a){return t.togglePhotoDetailsPopup(o)}}})],1):t._e()])],1)}),0),s("div",{staticClass:"bottom-actions"},[s("div",{staticClass:"bottom-navigation"},[s("button",{directives:[{name:"show",rawName:"v-show",value:this.paginate.prev_page_url,expression:"this.paginate.prev_page_url"}],staticClass:"button is-medium mr1",on:{click:t.previous}},[t._v(t._s(t.$t("common.previous")))]),s("button",{directives:[{name:"show",rawName:"v-show",value:this.paginate.next_page_url,expression:"this.paginate.next_page_url"}],staticClass:"button is-medium mr1",on:{click:t.next}},[t._v(t._s(t.$t("common.next")))]),s("div",{staticClass:"photos-info"},[t._m(2),s("div",[t._v(t._s(t.$t("profile.dashboard.bulk-tag-dblclick-info")))])])]),s("div",[s("button",{staticClass:"button is-medium is-primary",attrs:{disabled:t.selectedCount===0},on:{click:t.addTags}},[t._v(t._s(t.$t("common.add-tags")))])]),s("div",{staticClass:"bottom-right-actions"},[s("button",{staticClass:"button is-medium is-primary",attrs:{disabled:!t.hasAddedTags},on:{click:t.applyTags}},[t._v("Add and tag one by one")]),s("button",{staticClass:"button is-medium is-primary",attrs:{disabled:!t.hasAddedTags},on:{click:t.submit}},[t._v(t._s(t.$t("common.submit")))])])])],1)},P=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"tag-icon"},[t("i",{staticClass:"fa fa-check"})])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"tag-icon"},[t("span",{staticClass:"tooltip-text is-size-7"},[e._v("View tags")]),t("i",{staticClass:"fa fa-tags"})])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"info-icon"},[t("i",{staticClass:"fa fa-info"})])}],T=n(b,y,P,!1,null,"b14971f8");const I=T.exports;export{I as default}; +import{F as l}from"./FunctionalCalendar-DnoJkPHM.js";import{n}from"./app-DGjOB0Vc.js";import{L as c}from"./vue-loading-Kx5ngqlf.js";/* empty css */import{h as d}from"./moment-zH0z38ay.js";/* empty css */const h={name:"FilterMyPhotos",components:{FunctionalCalendar:l},data(){return{periods:["created_at","datetime"],processing:!1,showCalendar:!1}},computed:{calendar(){return this.showCalendar?"dropdown is-active":"dropdown"},filters(){return this.$store.state.photos.filters},filter_by_calendar:{get(){return this.filters.calendar},set(e){this.$store.commit("filter_photos_calendar",{min:e.dateRange.start,max:e.dateRange.end}),e.dateRange.end&&this.getPhotos()}},filter_by_id:{get(){return this.filters.id},set(e){this.$store.commit("filter_photos",{key:"id",v:e})}},getSelectAllText(){return this.selectAll?this.$t("common.de-select-all"):this.$t("common.select-all")},period:{get(){return this.filters.period},set(e){this.$store.commit("filter_photos",{key:"period",v:e})}},selectAll:{get(){return this.$store.state.photos.selectAll},set(e){this.$store.commit("selectAllPhotos",e)}},showCalendarDates(){return this.filters.dateRange.start&&this.filters.dateRange.end?`${this.filters.dateRange.start} - ${this.filters.dateRange.end}`:this.$t("common.choose-dates")},spinner(){return this.processing?"fa fa-refresh fa-spin":"fa fa-refresh"},verifiedIndex:{get(){return this.filters.verified},set(e){this.$store.commit("filter_photos",{key:"verified",v:e})}}},methods:{getPeriod(e){return e||(e=this.period),this.$t("teams.dashboard.times."+e)},async getPhotos(){await this.$store.dispatch("GET_USERS_FILTERED_PHOTOS")},getVerifiedText(e){return e===0?this.$t("common.not-verified"):this.$t("common.verified")},search(){this.processing=!0,this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(async()=>{await this.getPhotos(),this.processing=!1},500)},toggleAll(){this.$store.commit("selectAllPhotos",this.selectAll)},toggleCalendar(){this.showCalendar=!this.showCalendar}}};var m=function(){var t=this,s=t._self._c;return s("div",{staticClass:"flex mb1 filter-my-photos"},[s("router-link",{attrs:{to:"/tag"}},[s("button",{staticClass:"button is-primary"},[t._v("Tag individually")])]),s("div",{staticClass:"field mb0 pt0"},[s("div",{staticClass:"control has-icons-left"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.filter_by_id,expression:"filter_by_id"}],staticClass:"input w10",attrs:{placeholder:t.$t("common.search-by-id")},domProps:{value:t.filter_by_id},on:{input:[function(o){o.target.composing||(t.filter_by_id=o.target.value)},t.search]}}),s("span",{staticClass:"icon is-small is-left z-index-0"},[s("i",{class:t.spinner})])])]),s("button",{staticClass:"button is-primary select-all-photos",on:{click:t.toggleAll}},[t._v(" "+t._s(t.getSelectAllText)+" ")]),s("div",{class:t.calendar},[s("div",{staticClass:"dropdown-trigger"},[s("button",{staticClass:"button dropdownButtonLeft",on:{click:t.toggleCalendar}},[s("span",[t._v(t._s(t.showCalendarDates))])])]),s("div",{staticClass:"dropdown-menu"},[s("div",{staticClass:"dropdown-content calendar-box"},[s("FunctionalCalendar",{ref:"calendar",attrs:{"day-names":t.$t("common.day-names"),"month-names":t.$t("common.month-names"),"short-month-names":t.$t("common.short-month-names"),"change-month-function":!0,"change-year-function":!0,"is-date-range":!0,"date-format":"yyyy/mm/dd"},on:{selectedDaysCount:t.toggleCalendar},model:{value:t.filter_by_calendar,callback:function(o){t.filter_by_calendar=o},expression:"filter_by_calendar"}})],1)])]),s("div",[s("select",{directives:[{name:"model",rawName:"v-model",value:t.period,expression:"period"}],staticClass:"input",on:{change:[function(o){var a=Array.prototype.filter.call(o.target.options,function(i){return i.selected}).map(function(i){var r="_value"in i?i._value:i.value;return r});t.period=o.target.multiple?a:a[0]},t.getPhotos]}},t._l(t.periods,function(o){return s("option",{domProps:{value:o}},[t._v(t._s(t.getPeriod(o)))])}),0)])],1)},u=[],p=n(h,m,u,!1,null,"a15747e1");const g=p.exports,_={name:"PhotoDetailsPopup",computed:{photo(){const e=this.$store.state.photos.showDetailsPhotoId;return this.$store.state.photos.bulkPaginate.data.find(t=>t.id===e)}},methods:{getCategoryName(e){return this.$i18n.t(`litter.categories.${e}`)},getTagName(e,t){return this.$i18n.t(`litter.${e}.${t}`)},removeTag(e,t){this.$store.commit("removeTagFromPhoto",{photoId:this.photo.id,category:e,tag:t})},clearCustomTag(e){this.$store.commit("removeCustomTagFromPhoto",{photoId:this.photo.id,customTag:e})},togglePickedUp(){this.$store.commit("setPhotoPickedUp",{photoId:this.photo.id,picked_up:!this.photo.picked_up})}}};var f=function(){var t=this,s=t._self._c;return t.photo?s("div",[s("div",[s("div",{staticClass:"top-row"},[s("div",{staticClass:"switch-container"},[s("p",{staticClass:"mr-2"},[s("strong",[t._v(t._s(t.$t("tags.picked-up-title")))])]),s("label",{staticClass:"switch"},[s("input",{attrs:{type:"checkbox"},domProps:{checked:t.photo.picked_up},on:{change:t.togglePickedUp}}),s("span",{staticClass:"slider round"})])])]),s("div",{staticClass:"close-popup",on:{click:function(o){return t.$emit("close")}}},[s("i",{staticClass:"fa fa-times"})])]),t.photo.custom_tags&&t.photo.custom_tags.length||Object.keys(t.photo.tags).length?s("div",{staticClass:"photo-tags-container"},[t.photo.custom_tags&&t.photo.custom_tags.length?s("div",[s("p",{staticClass:"has-text-centered"},[t._v(t._s(t.$t("tags.custom-tags")))]),s("transition-group",{staticClass:"tags-list",attrs:{name:"list",tag:"div"}},t._l(t.photo.custom_tags,function(o){return s("div",{key:o,staticClass:"litter-tag"},[s("span",{staticClass:"close",on:{click:function(a){return a.preventDefault(),a.stopPropagation(),t.clearCustomTag(o)}}},[s("i",{staticClass:"fa fa-times"})]),s("p",{staticClass:"has-text-white"},[t._v(t._s(o))])])}),0)],1):t._e(),s("transition-group",{attrs:{name:"categories",tag:"div"}},t._l(Object.keys(t.photo.tags||{}),function(o){return s("div",{key:o},[s("p",{staticClass:"has-text-centered"},[t._v(t._s(t.getCategoryName(o)))]),s("transition-group",{staticClass:"tags-list",attrs:{name:"list",tag:"div"}},t._l(Object.keys(t.photo.tags[o]),function(a){return s("div",{key:a,staticClass:"litter-tag"},[s("span",{staticClass:"close",on:{click:function(i){return i.preventDefault(),i.stopPropagation(),t.removeTag(o,a)}}},[s("i",{staticClass:"fa fa-times"})]),s("p",{staticClass:"has-text-white"},[t._v(" "+t._s(t.getTagName(o,a))+": "+t._s(t.photo.tags[o][a])+" ")])])}),0)],1)}),0)],1):t._e()]):t._e()},v=[],C=n(_,f,v,!1,null,"c3ddc111");const $=C.exports,b={name:"BulkTag",components:{Loading:c,FilterMyPhotos:g,PhotoDetailsPopup:$},data(){return{processing:!1}},async mounted(){this.$store.commit("resetPhotoState"),await this.$store.dispatch("LOAD_MY_PHOTOS")},computed:{calendar(){return this.showCalendar?"dropdown is-active mr1":"dropdown mr1"},paginate(){return this.$store.state.photos.bulkPaginate},photos(){return this.paginate.data},selectedCount(){return this.$store.state.photos.selectedCount},hasAddedTags(){return this.processing?!1:this.photos.filter(this.photoIsTagged).length}},methods:{addTags(){this.$store.commit("showModal",{type:"AddManyTagsToManyPhotos",title:this.$t("common.add-many-tags")})},async submit(){this.hasAddedTags&&(this.processing=!0,await this.$store.dispatch("BULK_TAG_PHOTOS"),this.processing=!1,setTimeout(()=>{window.location.reload()},2e3))},async applyTags(){if(!this.hasAddedTags)return;this.processing=!0;const e=this.photos.filter(this.photoIsTagged);for(let t in e){Object.entries(e[t].tags??{}).forEach(([o,a])=>{Object.entries(a).forEach(([i,r])=>{this.$store.commit("addTag",{photoId:e[t].id,category:o,tag:i,quantity:r})})});const s=e[t].custom_tags??[];for(const o in s)this.$store.commit("addCustomTag",{photoId:e[t].id,customTag:s[o]})}setTimeout(()=>{this.processing=!1,this.$router.push("/tag")},300)},deletePhotos(){this.$store.commit("showModal",{type:"ConfirmDeleteManyPhotos",title:this.$t("common.confirm-delete")})},togglePhotoDetailsPopup(e){const t=this.showPhotoDetails(e)?null:e.id;this.$store.commit("setPhotoToShowDetails",t)},getDate(e){return d(e).format("LL")},previous(){this.$store.dispatch("PREVIOUS_PHOTOS_PAGE")},next(){this.$store.dispatch("NEXT_PHOTOS_PAGE")},select(e){this.$store.commit("togglePhotoSelected",e)},photoIsTagged(e){var o;const t=e.tags&&Object.keys(e.tags).length,s=(o=e.custom_tags)==null?void 0:o.length;return t||s},showPhotoDetails(e){return this.$store.state.photos.showDetailsPhotoId===e.id}}};var y=function(){var t=this,s=t._self._c;return s("section",{staticClass:"hero fullheight bulk-tag"},[s("loading",{directives:[{name:"show",rawName:"v-show",value:t.processing,expression:"processing"}],attrs:{"is-full-page":!0},model:{value:t.processing,callback:function(o){t.processing=o},expression:"processing"}}),s("FilterMyPhotos"),s("div",{staticClass:"my-photos-grid-container"},t._l(t.photos,function(o){return s("div",{key:o.id,staticClass:"my-grid-photo"},[s("img",{directives:[{name:"img",rawName:"v-img",value:{sourceButton:!0,openOn:"dblclick"},expression:"{sourceButton: true, openOn: 'dblclick'}"}],staticClass:"litter",attrs:{src:o.filename},on:{click:function(a){return t.select(o.id)}}}),o.selected?s("div",{staticClass:"grid-checkmark"},[t._m(0,!0)]):t._e(),t.photoIsTagged(o)?s("div",{staticClass:"grid-tagged tooltip",on:{click:function(a){return a.preventDefault(),a.stopPropagation(),t.togglePhotoDetailsPopup(o)}}},[t._m(1,!0)]):t._e(),s("transition",{attrs:{name:"fade"}},[t.showPhotoDetails(o)?s("div",{staticClass:"photo-tags"},[s("PhotoDetailsPopup",{on:{close:function(a){return t.togglePhotoDetailsPopup(o)}}})],1):t._e()])],1)}),0),s("div",{staticClass:"bottom-actions"},[s("div",{staticClass:"bottom-navigation"},[s("button",{directives:[{name:"show",rawName:"v-show",value:this.paginate.prev_page_url,expression:"this.paginate.prev_page_url"}],staticClass:"button is-medium mr1",on:{click:t.previous}},[t._v(t._s(t.$t("common.previous")))]),s("button",{directives:[{name:"show",rawName:"v-show",value:this.paginate.next_page_url,expression:"this.paginate.next_page_url"}],staticClass:"button is-medium mr1",on:{click:t.next}},[t._v(t._s(t.$t("common.next")))]),s("div",{staticClass:"photos-info"},[t._m(2),s("div",[t._v(t._s(t.$t("profile.dashboard.bulk-tag-dblclick-info")))])])]),s("div",[s("button",{staticClass:"button is-medium is-primary",attrs:{disabled:t.selectedCount===0},on:{click:t.addTags}},[t._v(t._s(t.$t("common.add-tags")))])]),s("div",{staticClass:"bottom-right-actions"},[s("button",{staticClass:"button is-medium is-primary",attrs:{disabled:!t.hasAddedTags},on:{click:t.applyTags}},[t._v("Add and tag one by one")]),s("button",{staticClass:"button is-medium is-primary",attrs:{disabled:!t.hasAddedTags},on:{click:t.submit}},[t._v(t._s(t.$t("common.submit")))])])])],1)},P=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"tag-icon"},[t("i",{staticClass:"fa fa-check"})])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"tag-icon"},[t("span",{staticClass:"tooltip-text is-size-7"},[e._v("View tags")]),t("i",{staticClass:"fa fa-tags"})])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"info-icon"},[t("i",{staticClass:"fa fa-info"})])}],T=n(b,y,P,!1,null,"b14971f8");const I=T.exports;export{I as default}; diff --git a/public/build/assets/Cities-Bv3JQze8.js b/public/build/assets/Cities-iIHk-5m6.js similarity index 82% rename from public/build/assets/Cities-Bv3JQze8.js rename to public/build/assets/Cities-iIHk-5m6.js index 8e31c2fee..712622020 100644 --- a/public/build/assets/Cities-Bv3JQze8.js +++ b/public/build/assets/Cities-iIHk-5m6.js @@ -1 +1 @@ -import{S as a}from"./SortLocations-ByYVFC2-.js";import{L as o}from"./vue-loading-Bl53SHQy.js";/* empty css */import{n as i}from"./app-DpqRw90N.js";import"./moment-zH0z38ay.js";import"./LeaderboardList-B_0yi0QA.js";/* empty css */const e={name:"Cities",async created(){this.loading=!0,await this.$store.dispatch("GET_CITIES",{country:window.location.href.split("/")[4],state:window.location.href.split("/")[5]}),this.loading=!1},components:{SortLocations:a,Loading:o},data(){return{loading:!0}},computed:{countryName(){return this.$store.state.locations.countryName},stateName(){return this.$store.state.locations.stateName}},methods:{goBack(){return this.$store.commit("setLocations",[]),this.$router.push({path:"/world/"+this.countryName})}}};var r=function(){var s=this,t=s._self._c;return t("div",{staticClass:"locations-container"},[t("section",{staticClass:"hero is-info is-medium"},[t("div",{staticClass:"hero-body"},[t("div",{staticClass:"container"},[t("div",{staticClass:"columns"},[t("div",{staticClass:"column is-4"},[t("h1",{staticClass:"title is-1 flex pointer",on:{click:s.goBack}},[t("i",{directives:[{name:"show",rawName:"v-show",value:!s.loading,expression:"!loading"}],staticClass:"fa fa-chevron-left country-back"}),s._v(" "+s._s(s.countryName)+" ")]),t("h1",{staticClass:"subtitle is-3"},[s._v(s._s(s.stateName))])])])])])]),t("sort-locations",{attrs:{locationType:"city"}})],1)},n=[],c=i(e,r,n,!1,null,"8a16333f");const v=c.exports;export{v as default}; +import{S as a}from"./SortLocations-DyyPIY2N.js";import{L as o}from"./vue-loading-Kx5ngqlf.js";/* empty css */import{n as i}from"./app-DGjOB0Vc.js";import"./moment-zH0z38ay.js";import"./LeaderboardList-Cz6T5MVY.js";/* empty css */const e={name:"Cities",async created(){this.loading=!0,await this.$store.dispatch("GET_CITIES",{country:window.location.href.split("/")[4],state:window.location.href.split("/")[5]}),this.loading=!1},components:{SortLocations:a,Loading:o},data(){return{loading:!0}},computed:{countryName(){return this.$store.state.locations.countryName},stateName(){return this.$store.state.locations.stateName}},methods:{goBack(){return this.$store.commit("setLocations",[]),this.$router.push({path:"/world/"+this.countryName})}}};var r=function(){var s=this,t=s._self._c;return t("div",{staticClass:"locations-container"},[t("section",{staticClass:"hero is-info is-medium"},[t("div",{staticClass:"hero-body"},[t("div",{staticClass:"container"},[t("div",{staticClass:"columns"},[t("div",{staticClass:"column is-4"},[t("h1",{staticClass:"title is-1 flex pointer",on:{click:s.goBack}},[t("i",{directives:[{name:"show",rawName:"v-show",value:!s.loading,expression:"!loading"}],staticClass:"fa fa-chevron-left country-back"}),s._v(" "+s._s(s.countryName)+" ")]),t("h1",{staticClass:"subtitle is-3"},[s._v(s._s(s.stateName))])])])])])]),t("sort-locations",{attrs:{locationType:"city"}})],1)},n=[],c=i(e,r,n,!1,null,"8a16333f");const v=c.exports;export{v as default}; diff --git a/public/build/assets/CityMapContainer-4GSuKutZ.js b/public/build/assets/CityMapContainer-Pa77RRSW.js similarity index 99% rename from public/build/assets/CityMapContainer-4GSuKutZ.js rename to public/build/assets/CityMapContainer-Pa77RRSW.js index 035861c4c..9cf5c5627 100644 --- a/public/build/assets/CityMapContainer-4GSuKutZ.js +++ b/public/build/assets/CityMapContainer-Pa77RRSW.js @@ -1,4 +1,4 @@ -import{L as Ra}from"./vue-loading-Bl53SHQy.js";/* empty css */import{L as he,h as Mo}from"./mapHelpers-BwpDWaTU.js";import{n as Po,a as ba,l as Ma}from"./app-DpqRw90N.js";import"./moment-zH0z38ay.js";/* empty css */(function(h){if(typeof exports=="object"&&typeof module<"u")module.exports=h();else if(typeof define=="function"&&define.amd)define([],h);else{var E;typeof window<"u"?E=window:typeof global<"u"?E=global:typeof self<"u"?E=self:E=this,E.turf=h()}})(function(){return function h(E,u,_){function d(c,f){if(!u[c]){if(!E[c]){var p=typeof require=="function"&&require;if(!f&&p)return p(c,!0);if(S)return S(c,!0);var g=new Error("Cannot find module '"+c+"'");throw g.code="MODULE_NOT_FOUND",g}var m=u[c]={exports:{}};E[c][0].call(m.exports,function(N){var y=E[c][1][N];return d(y||N)},m,m.exports,h,E,u,_)}return u[c].exports}for(var S=typeof require=="function"&&require,a=0;a<_.length;a++)d(_[a]);return d}({1:[function(h,E,u){var _=h("@turf/helpers"),d=h("@turf/invariant"),S=h("@turf/meta"),a={isolines:h("@turf/isolines"),convex:h("@turf/convex"),within:h("@turf/within"),concave:h("@turf/concave"),difference:h("@turf/difference"),dissolve:h("@turf/dissolve"),collect:h("@turf/collect"),flip:h("@turf/flip"),simplify:h("@turf/simplify"),bezier:h("@turf/bezier"),tag:h("@turf/tag"),sample:h("@turf/sample"),envelope:h("@turf/envelope"),square:h("@turf/square"),circle:h("@turf/circle"),midpoint:h("@turf/midpoint"),buffer:h("@turf/buffer"),center:h("@turf/center"),centerOfMass:h("@turf/center-of-mass"),centroid:h("@turf/centroid"),combine:h("@turf/combine"),distance:h("@turf/distance"),explode:h("@turf/explode"),bbox:h("@turf/bbox"),tesselate:h("@turf/tesselate"),bboxPolygon:h("@turf/bbox-polygon"),inside:h("@turf/inside"),intersect:h("@turf/intersect"),nearest:h("@turf/nearest"),planepoint:h("@turf/planepoint"),random:h("@turf/random"),tin:h("@turf/tin"),union:h("@turf/union"),bearing:h("@turf/bearing"),destination:h("@turf/destination"),kinks:h("@turf/kinks"),pointOnSurface:h("@turf/point-on-surface"),area:h("@turf/area"),along:h("@turf/along"),lineDistance:h("@turf/line-distance"),lineSlice:h("@turf/line-slice"),lineSliceAlong:h("@turf/line-slice-along"),pointOnLine:h("@turf/point-on-line"),pointGrid:h("@turf/point-grid"),squareGrid:h("@turf/square-grid"),triangleGrid:h("@turf/triangle-grid"),hexGrid:h("@turf/hex-grid"),idw:h("@turf/idw"),truncate:h("@turf/truncate"),flatten:h("@turf/flatten"),lineIntersect:h("@turf/line-intersect"),mask:h("@turf/mask"),lineChunk:h("@turf/line-chunk"),unkinkPolygon:h("@turf/unkink-polygon"),greatCircle:h("@turf/great-circle"),lineSegment:h("@turf/line-segment"),point:_.point,polygon:_.polygon,lineString:_.lineString,multiPoint:_.multiPoint,multiPolygon:_.multiPolygon,multiLineString:_.multiLineString,feature:_.feature,featureCollection:_.featureCollection,geometryCollection:_.geometryCollection,getCoord:d.getCoord,getCoords:d.getCoords,geojsonType:d.geojsonType,featureOf:d.featureOf,collectionOf:d.collectionOf,coordEach:S.coordEach,coordReduce:S.coordReduce,propEach:S.propEach,propReduce:S.propReduce,featureEach:S.featureEach,featureReduce:S.featureReduce,coordAll:S.coordAll,geomEach:S.geomEach,geomReduce:S.geomReduce};E.exports=a},{"@turf/along":2,"@turf/area":12,"@turf/bbox":18,"@turf/bbox-polygon":16,"@turf/bearing":20,"@turf/bezier":22,"@turf/buffer":25,"@turf/center":57,"@turf/center-of-mass":29,"@turf/centroid":61,"@turf/circle":64,"@turf/collect":69,"@turf/combine":76,"@turf/concave":78,"@turf/convex":86,"@turf/destination":105,"@turf/difference":108,"@turf/dissolve":110,"@turf/distance":121,"@turf/envelope":124,"@turf/explode":129,"@turf/flatten":132,"@turf/flip":136,"@turf/great-circle":139,"@turf/helpers":141,"@turf/hex-grid":142,"@turf/idw":147,"@turf/inside":163,"@turf/intersect":165,"@turf/invariant":167,"@turf/isolines":169,"@turf/kinks":192,"@turf/line-chunk":194,"@turf/line-distance":221,"@turf/line-intersect":231,"@turf/line-segment":247,"@turf/line-slice":265,"@turf/line-slice-along":255,"@turf/mask":277,"@turf/meta":286,"@turf/midpoint":287,"@turf/nearest":296,"@turf/planepoint":300,"@turf/point-grid":301,"@turf/point-on-line":308,"@turf/point-on-surface":318,"@turf/random":332,"@turf/sample":334,"@turf/simplify":336,"@turf/square":345,"@turf/square-grid":338,"@turf/tag":349,"@turf/tesselate":352,"@turf/tin":355,"@turf/triangle-grid":357,"@turf/truncate":362,"@turf/union":363,"@turf/unkink-polygon":365,"@turf/within":384}],2:[function(h,E,u){var _=h("@turf/distance"),d=h("@turf/helpers").point,S=h("@turf/bearing"),a=h("@turf/destination");E.exports=function(c,f,p){var g;if(c.type==="Feature")g=c.geometry.coordinates;else if(c.type==="LineString")g=c.coordinates;else throw new Error("input must be a LineString Feature or Geometry");for(var m=0,N=0;N=m&&N===g.length-1);N++)if(m>=f){var y=f-m;if(y){var R=S(g[N],g[N-1])-180,I=a(g[N],y,R,p);return I}else return d(g[N])}else m+=_(g[N],g[N+1],p);return d(g[g.length-1])}},{"@turf/bearing":3,"@turf/destination":5,"@turf/distance":8,"@turf/helpers":11}],3:[function(h,E,u){var _=h("@turf/invariant").getCoord;function d(a,c,f){if(f===!0)return S(a,c);var p=Math.PI/180,g=180/Math.PI,m=_(a),N=_(c),y=p*m[0],R=p*N[0],I=p*m[1],v=p*N[1],M=Math.sin(R-y)*Math.cos(v),T=Math.cos(I)*Math.sin(v)-Math.sin(I)*Math.cos(v)*Math.cos(R-y),w=g*Math.atan2(M,T);return w}function S(a,c){var f=d(c,a);return f=(f+180)%360,f}E.exports=d},{"@turf/invariant":4}],4:[function(h,E,u){function _(p){if(!p)throw new Error("No obj passed");var g=d(p);if(g.length>1&&typeof g[0]=="number"&&typeof g[1]=="number")return g;throw new Error("Coordinate is not a valid Point")}function d(p){if(!p)throw new Error("No obj passed");var g;if(p.length?g=p:p.coordinates?g=p.coordinates:p.geometry&&p.geometry.coordinates&&(g=p.geometry.coordinates),g)return S(g),g;throw new Error("No valid coordinates")}function S(p){if(p.length>1&&typeof p[0]=="number"&&typeof p[1]=="number")return!0;if(p[0].length)return S(p[0]);throw new Error("coordinates must only contain numbers")}function a(p,g,m){if(!g||!m)throw new Error("type and name required");if(!p||p.type!==g)throw new Error("Invalid input to "+m+": must be a "+g+", given "+p.type)}function c(p,g,m){if(!p)throw new Error("No feature passed");if(!m)throw new Error(".featureOf() requires a name");if(!p||p.type!=="Feature"||!p.geometry)throw new Error("Invalid input to "+m+", Feature with geometry required");if(!p.geometry||p.geometry.type!==g)throw new Error("Invalid input to "+m+": must be a "+g+", given "+p.geometry.type)}function f(p,g,m){if(!p)throw new Error("No featureCollection passed");if(!m)throw new Error(".collectionOf() requires a name");if(!p||p.type!=="FeatureCollection")throw new Error("Invalid input to "+m+", FeatureCollection required");for(var N=0;N0){p+=Math.abs(a(f[0]));for(var g=1;g2){for(I=0;Ia[0]&&(S[0]=a[0]),S[1]>a[1]&&(S[1]=a[1]),S[2]d&&(S.push(c),a=f)}return S},_.prototype.vector=function(d){var S=this.pos(d+10),a=this.pos(d-10);return{angle:180*Math.atan2(S.y-a.y,S.x-a.x)/3.14,speed:Math.sqrt((a.x-S.x)*(a.x-S.x)+(a.y-S.y)*(a.y-S.y)+(a.z-S.z)*(a.z-S.z))}},_.prototype.pos=function(d){function S(g,m,N,y,R){var I=function(T){var w=T*T,b=w*T;return[b,3*w*(1-T),3*T*(1-T)*(1-T),(1-T)*(1-T)*(1-T)]},v=I(g),M={x:R.x*v[0]+y.x*v[1]+N.x*v[2]+m.x*v[3],y:R.y*v[0]+y.y*v[1]+N.y*v[2]+m.y*v[3],z:R.z*v[0]+y.z*v[1]+N.z*v[2]+m.z*v[3]};return M}var a=d-this.delay;a<0&&(a=0),a>this.duration&&(a=this.duration-1);var c=a/this.duration;if(c>=1)return this.points[this.length-1];var f=Math.floor((this.points.length-1)*c),p=(this.length-1)*c-f;return S(p,this.points[f],this.controls[f][1],this.controls[f+1][0],this.points[f+1])},E.exports=_},{}],25:[function(h,E,u){var _=h("@turf/helpers"),d=_.featureCollection,S=h("jsts"),a=h("@mapbox/geojson-normalize");E.exports=function(f,p,g){var m=_.distanceToDegrees(p,g),N=a(f),y=a(d(N.features.map(function(R){return c(R,m)})));if(y.features.length>1)return y;if(y.features.length===1)return y.features[0]};function c(f,p){var g=new S.io.GeoJSONReader,m=g.read(f.geometry),N=m.buffer(p),y=new S.io.GeoJSONWriter;return N=y.write(N),{type:"Feature",geometry:N,properties:{}}}},{"@mapbox/geojson-normalize":26,"@turf/helpers":27,jsts:28}],26:[function(h,E,u){E.exports=d;var _={Point:"geometry",MultiPoint:"geometry",LineString:"geometry",MultiLineString:"geometry",Polygon:"geometry",MultiPolygon:"geometry",GeometryCollection:"geometry",Feature:"feature",FeatureCollection:"featurecollection"};function d(S){if(!S||!S.type)return null;var a=_[S.type];if(!a)return null;if(a==="geometry")return{type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:S}]};if(a==="feature")return{type:"FeatureCollection",features:[S]};if(a==="featurecollection")return S}},{}],27:[function(h,E,u){arguments[4][6][0].apply(u,arguments)},{dup:6}],28:[function(h,E,u){(function(_,d){d(typeof u=="object"&&typeof E<"u"?u:_.jsts=_.jsts||{})})(this,function(_){function d(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}function S(){}function a(){}function c(){}function f(){}function p(){}function g(){}function m(){}function N(t){this.name="RuntimeException",this.message=t,this.stack=new Error().stack,Error.call(this,t)}function y(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t}function R(){if(arguments.length===0)N.call(this);else if(arguments.length===1){var t=arguments[0];N.call(this,t)}}function I(){}function v(){if(this.x=null,this.y=null,this.z=null,arguments.length===0)v.call(this,0,0);else if(arguments.length===1){var t=arguments[0];v.call(this,t.x,t.y,t.z)}else if(arguments.length===2){var e=arguments[0],n=arguments[1];v.call(this,e,n,v.NULL_ORDINATE)}else if(arguments.length===3){var r=arguments[0],s=arguments[1],o=arguments[2];this.x=r,this.y=s,this.z=o}}function M(){if(this.dimensionsToTest=2,arguments.length===0)M.call(this,2);else if(arguments.length===1){var t=arguments[0];if(t!==2&&t!==3)throw new a;this.dimensionsToTest=t}}function T(){}function w(){}function b(t){this.message=t||""}function P(){}function O(t){this.message=t||""}function D(t){this.message=t||""}function C(){this.array_=[],arguments[0]instanceof w&&this.addAll(arguments[0])}function q(){if(C.apply(this),arguments.length!==0){if(arguments.length===1){var t=arguments[0];this.ensureCapacity(t.length),this.add(t,!0)}else if(arguments.length===2){var e=arguments[0],n=arguments[1];this.ensureCapacity(e.length),this.add(e,n)}}}function B(){if(this.minx=null,this.maxx=null,this.miny=null,this.maxy=null,arguments.length===0)this.init();else if(arguments.length===1){if(arguments[0]instanceof v){var t=arguments[0];this.init(t.x,t.x,t.y,t.y)}else if(arguments[0]instanceof B){var e=arguments[0];this.init(e)}}else if(arguments.length===2){var n=arguments[0],r=arguments[1];this.init(n.x,r.x,n.y,r.y)}else if(arguments.length===4){var s=arguments[0],o=arguments[1],l=arguments[2],x=arguments[3];this.init(s,o,l,x)}}function U(){}function W(){U.call(this,"Projective point not representable on the Cartesian plane.")}function L(){}function X(t,e){return t.interfaces_&&t.interfaces_().indexOf(e)>-1}function ot(){}function F(t){this.str=t}function Y(t){this.value=t}function H(){}function z(){if(this.hi=0,this.lo=0,arguments.length===0)this.init(0);else if(arguments.length===1){if(typeof arguments[0]=="number"){var t=arguments[0];this.init(t)}else if(arguments[0]instanceof z){var e=arguments[0];this.init(e)}else if(typeof arguments[0]=="string"){var n=arguments[0];z.call(this,z.parse(n))}}else if(arguments.length===2){var r=arguments[0],s=arguments[1];this.init(r,s)}}function J(){}function G(){}function k(){}function j(){if(this.x=null,this.y=null,this.w=null,arguments.length===0)this.x=0,this.y=0,this.w=1;else if(arguments.length===1){var t=arguments[0];this.x=t.x,this.y=t.y,this.w=1}else if(arguments.length===2){if(typeof arguments[0]=="number"&&typeof arguments[1]=="number"){var e=arguments[0],n=arguments[1];this.x=e,this.y=n,this.w=1}else if(arguments[0]instanceof j&&arguments[1]instanceof j){var r=arguments[0],s=arguments[1];this.x=r.y*s.w-s.y*r.w,this.y=s.x*r.w-r.x*s.w,this.w=r.x*s.y-s.x*r.y}else if(arguments[0]instanceof v&&arguments[1]instanceof v){var o=arguments[0],l=arguments[1];this.x=o.y-l.y,this.y=l.x-o.x,this.w=o.x*l.y-l.x*o.y}}else if(arguments.length===3){var x=arguments[0],A=arguments[1],V=arguments[2];this.x=x,this.y=A,this.w=V}else if(arguments.length===4){var Z=arguments[0],K=arguments[1],$=arguments[2],ut=arguments[3],ft=Z.y-K.y,gt=K.x-Z.x,Ot=Z.x*K.y-K.x*Z.y,Xt=$.y-ut.y,Ve=ut.x-$.x,ir=$.x*ut.y-ut.x*$.y;this.x=gt*ir-Ve*Ot,this.y=Xt*Ot-ft*ir,this.w=ft*Ve-Xt*gt}}function rt(){}function it(){}function Q(){this.envelope=null,this.factory=null,this.SRID=null,this.userData=null;var t=arguments[0];this.factory=t,this.SRID=t.getSRID()}function lt(){}function st(){}function ct(){}function vt(){}function Re(){}function Qt(){}function at(){}function Nn(){}function sr(){}function $e(){}function Yt(){}function zt(){}function Rt(){this.array_=[],arguments[0]instanceof w&&this.addAll(arguments[0])}function ke(t){return t==null?fn:t.color}function Et(t){return t==null?null:t.parent}function Oe(t,e){t!==null&&(t.color=e)}function Mr(t){return t==null?null:t.left}function Ni(t){return t==null?null:t.right}function Vt(){this.root_=null,this.size_=0}function or(){}function Ci(){}function Jt(){this.array_=[],arguments[0]instanceof w&&this.addAll(arguments[0])}function _e(){}function tt(){}function tn(){}function zn(){}function xt(){this.geometries=null;var t=arguments[0],e=arguments[1];if(Q.call(this,e),t===null&&(t=[]),Q.hasNullElements(t))throw new a;this.geometries=t}function ce(){var t=arguments[0],e=arguments[1];xt.call(this,t,e)}function pn(){if(this.geom=null,this.geomFact=null,this.bnRule=null,this.endpointMap=null,arguments.length===1){var t=arguments[0];pn.call(this,t,st.MOD2_BOUNDARY_RULE)}else if(arguments.length===2){var e=arguments[0],n=arguments[1];this.geom=e,this.geomFact=e.getFactory(),this.bnRule=n}}function Ls(){this.count=null}function To(){}function Oo(){}function _o(){}function Ao(){}function Do(){}function Fo(){}function ye(){}function kt(){}function mt(){this.points=null;var t=arguments[0],e=arguments[1];Q.call(this,e),this.init(t)}function wi(){}function At(){this.coordinates=null;var t=arguments[0],e=arguments[1];Q.call(this,e),this.init(t)}function en(){}function Mt(){this.shell=null,this.holes=null;var t=arguments[0],e=arguments[1],n=arguments[2];if(Q.call(this,n),t===null&&(t=this.getFactory().createLinearRing()),e===null&&(e=[]),Q.hasNullElements(e))throw new a;if(t.isEmpty()&&Q.hasNonEmptyElements(e))throw new a;this.shell=t,this.holes=e}function fe(){var t=arguments[0],e=arguments[1];xt.call(this,t,e)}function qt(){if(arguments[0]instanceof v&&arguments[1]instanceof yt){var t=arguments[0],e=arguments[1];qt.call(this,e.getCoordinateSequenceFactory().create(t),e)}else if(X(arguments[0],G)&&arguments[1]instanceof yt){var n=arguments[0],r=arguments[1];mt.call(this,n,r),this.validateConstruction()}}function Zt(){var t=arguments[0],e=arguments[1];xt.call(this,t,e)}function xe(){if(this.factory=null,this.isUserDataCopied=!1,arguments.length!==0){if(arguments.length===1){var t=arguments[0];this.factory=t}}}function Si(){}function Rs(){}function bs(){}function Ms(){}function Ee(){if(this.dimension=3,this.coordinates=null,arguments.length===1){if(arguments[0]instanceof Array){var t=arguments[0];Ee.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 Vo(t){return this.has(t)?this._values[Ke]:void 0}function ko(t,e){if(this.objectOnly&&e!==Object(e))throw new TypeError("Invalid value used as weak collection key");if(e!==e||e===0)for(Ke=t.length;Ke--&&!qo(t[Ke],e););else Ke=t.indexOf(e);return Ke>-1}function Xo(t){return ko.call(this,this._keys,t)}function Uo(t,e){return this.has(t)?this._values[Ke]=e:this._values[this._keys.push(t)-1]=e,this}function Yo(){(this._keys||0).length=this._values.length=0}function Ho(){return Ps(this._itp,this._keys)}function Wo(){return Ps(this._itp,this._values)}function Zo(){return Ps(this._itp,this._keys,this._values)}function Ps(t,e,n){var r=[0],s=!1;return t.push(r),{next:function(){var o,l=r[0];return!s&&l1,"Node capacity must be greater than 1"),this.nodeCapacity=t}}function Ko(){}function Pi(){}function Dt(){if(arguments.length===0)Dt.call(this,Dt.DEFAULT_NODE_CAPACITY);else if(arguments.length===1){var t=arguments[0];Gt.call(this,t)}}function Ar(){var t=arguments[0];se.call(this,t)}function ue(){}function As(){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],r=arguments[3];this.segString=t,this.coord=new v(e),this.segmentIndex=n,this.segmentOctant=r,this._isInterior=!e.equals2D(t.getCoordinate(n))}function Ds(){this.nodeMap=new Vt,this.edge=null;var t=arguments[0];this.edge=t}function wo(){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 Fs(){}function Ue(){this.nodeList=new Ds(this),this.pts=null,this.data=null;var t=arguments[0],e=arguments[1];this.pts=t,this.data=e}function Dr(){this.tempEnv1=new B,this.tempEnv2=new B,this.overlapSeg1=new dt,this.overlapSeg2=new dt}function qs(){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],r=arguments[3];this.pts=t,this.start=e,this.end=n,this.context=r}function Nt(){}function Ae(){}function Fr(){}function Ti(){if(this.segInt=null,arguments.length!==0){if(arguments.length===1){var t=arguments[0];this.setSegmentIntersector(t)}}}function wn(){if(this.monoChains=new C,this.index=new Dt,this.idCounter=0,this.nodedSegStrings=null,this.nOverlaps=0,arguments.length!==0){if(arguments.length===1){var t=arguments[0];Ti.call(this,t)}}}function qr(){Dr.apply(this),this.si=null;var t=arguments[0];this.si=t}function ge(){if(this.pt=null,arguments.length===1){var t=arguments[0];N.call(this,t)}else if(arguments.length===2){var e=arguments[0],n=arguments[1];N.call(this,ge.msgWithCoord(e,n)),this.name="TopologyException",this.pt=new v(n)}}function Gr(){}function vn(){this.findAllIntersections=!1,this.isCheckEndSegmentsOnly=!1,this.li=null,this.interiorIntersection=null,this.intSegments=null,this.intersections=new C,this.intersectionCount=0,this.keepIntersections=!0;var t=arguments[0];this.li=t,this.interiorIntersection=null}function Br(){this.li=new Ht,this.segStrings=null,this.findAllIntersections=!1,this.segInt=null,this._isValid=!0;var t=arguments[0];this.segStrings=t}function Yn(){this.nv=null;var t=arguments[0];this.nv=new Br(Yn.toSegmentStrings(t))}function cr(){this.mapOp=null;var t=arguments[0];this.mapOp=t}function et(){}function de(){if(this.location=null,arguments.length===1){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[et.ON]=e}else if(arguments[0]instanceof de){var n=arguments[0];if(this.init(n.location.length),n!==null)for(var r=0;r=0?this.setComputationPrecision(r.getPrecisionModel()):this.setComputationPrecision(s.getPrecisionModel()),this.arg=new Array(2).fill(null),this.arg[0]=new le(0,r,o),this.arg[1]=new le(1,s,o)}}function bn(){this.pts=null,this._orientation=null;var t=arguments[0];this.pts=t,this._orientation=bn.orientation(t)}function Xi(){this.edges=new C,this.ocaMap=new Vt}function ht(){this.ptLocator=new Un,this.geomFact=null,this.resultGeom=null,this.graph=null,this.edgeList=new Xi,this.resultPolyList=new C,this.resultLineList=new C,this.resultPointList=new C;var t=arguments[0],e=arguments[1];Rn.call(this,t,e),this.graph=new He(new dr),this.geomFact=t.getFactory()}function Me(){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 Wt(){this.geom=new Array(2).fill(null);var t=arguments[0],e=arguments[1];this.geom[0]=t,this.geom[1]=e}function Fe(){this.factory=null,this.interiorPoint=null,this.maxWidth=0;var t=arguments[0];this.factory=t.getFactory(),this.add(t)}function pr(){this.poly=null,this.centreY=null,this.hiY=c.MAX_VALUE,this.loY=-c.MAX_VALUE;var t=arguments[0];this.poly=t,this.hiY=t.getEnvelopeInternal().getMaxY(),this.loY=t.getEnvelopeInternal().getMinY(),this.centreY=Fe.avg(this.loY,this.hiY)}function Ui(){this.centroid=null,this.minDistance=c.MAX_VALUE,this.interiorPoint=null;var t=arguments[0];this.centroid=t.getCentroid().getCoordinate(),this.addInterior(t),this.interiorPoint===null&&this.addEndpoints(t)}function Yi(){this.centroid=null,this.minDistance=c.MAX_VALUE,this.interiorPoint=null;var t=arguments[0];this.centroid=t.getCentroid().getCoordinate(),this.add(t)}function Mn(){this.tempEnv1=new B,this.selectedSegment=new dt}function We(){this.items=new C,this.subnode=[null,null]}function ln(){if(this.min=null,this.max=null,arguments.length===0)this.min=0,this.max=0;else if(arguments.length===1){var t=arguments[0];this.init(t.min,t.max)}else if(arguments.length===2){var e=arguments[0],n=arguments[1];this.init(e,n)}}function jn(){}function Qo(t,e){var n,r,s,o,l={32:{d:127,c:128,b:0,a:0},64:{d:32752,c:0,b:0,a:0}},x={32:8,64:11}[t];if(o||(n=e<0||1/e<0,isFinite(e)||(o=l[t],n&&(o.d+=1<=2;)r++,s/=2;for(;s<1&&r>0;)r--,s*=2;r<=0&&(s/=2)}return r}function Xr(){this.pt=0,this.level=0,this.interval=null;var t=arguments[0];this.computeKey(t)}function yn(){We.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 Pn(){}function mr(){We.apply(this)}function vr(){this.root=null,this.minExtent=1,this.root=new mr}function Hs(){}function Ur(){this.ring=null,this.tree=null,this.crossings=0,this.interval=new ln;var t=arguments[0];this.ring=t,this.buildIndex()}function Yr(){Mn.apply(this),this.mcp=null,this.p=null;var t=arguments[0],e=arguments[1];this.mcp=t,this.p=e}function pt(){}function Tt(){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 xn(){this.input=null,this.extremalPts=null,this.centre=null,this.radius=0;var t=arguments[0];this.input=t}function ee(){if(this.inputGeom=null,this.isConvex=null,this.convexHullPts=null,this.minBaseSeg=new dt,this.minWidthPt=null,this.minPtIndex=null,this.minWidth=0,arguments.length===1){var t=arguments[0];ee.call(this,t,!1)}else if(arguments.length===2){var e=arguments[0],n=arguments[1];this.inputGeom=e,this.isConvex=n}}function Tn(){this.inputGeom=null,this.distanceTolerance=null;var t=arguments[0];this.inputGeom=t}function Hr(){oe.apply(this),this.distanceTolerance=null;var t=arguments[0];this.distanceTolerance=t}function hn(){this._orig=null,this._sym=null,this._next=null;var t=arguments[0];this._orig=t}function pe(){this._isMarked=!1;var t=arguments[0];hn.call(this,t)}function yr(){this.vertexMap=new nn}function Hi(){this._isStart=!1;var t=arguments[0];pe.call(this,t)}function Wi(){yr.apply(this)}function Wr(){this.result=null,this.factory=null,this.graph=null,this.lines=new C,this.nodeEdgeStack=new re,this.ringStartEdge=null,this.graph=new Wi}function Ze(){this.items=new C,this.subnode=new Array(4).fill(null)}function Zr(){this.pt=new v,this.level=0,this.env=null;var t=arguments[0];this.computeKey(t)}function En(){Ze.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 Kn(){Ze.apply(this)}function On(){this.root=null,this.minExtent=1,this.root=new Kn}function Ws(t){this.geometryFactory=t||new yt}function So(t){this.geometryFactory=t||new yt,this.precisionModel=this.geometryFactory.getPrecisionModel(),this.parser=new Ws(this.geometryFactory)}function Lo(){this.parser=new Ws(this.geometryFactory)}function Ro(t){this.geometryFactory=t||new yt,this.precisionModel=this.geometryFactory.getPrecisionModel(),this.parser=new Ts(this.geometryFactory)}function Jr(t){return[t.x,t.y]}function bo(t,e){this.geometryFactory=t||new yt,this.ol=e||typeof ol<"u"&&ol}function jr(){if(this.noder=null,this.scaleFactor=null,this.offsetX=null,this.offsetY=null,this.isScaled=!1,arguments.length===2){var t=arguments[0],e=arguments[1];jr.call(this,t,e,0,0)}else if(arguments.length===4){var n=arguments[0],r=arguments[1];this.noder=n,this.scaleFactor=r,this.isScaled=!this.isIntegerPrecision()}}function Kr(){if(this.inputGeom=null,this.isClosedEndpointsInInterior=!0,this.nonSimpleLocation=null,arguments.length===1){var t=arguments[0];this.inputGeom=t}else if(arguments.length===2){var e=arguments[0],n=arguments[1];this.inputGeom=e,this.isClosedEndpointsInInterior=!n.isInBoundary(2)}}function Zi(){this.pt=null,this.isClosed=null,this.degree=null;var t=arguments[0];this.pt=t,this.isClosed=!1,this.degree=0}function Ct(){if(this.quadrantSegments=Ct.DEFAULT_QUADRANT_SEGMENTS,this.endCapStyle=Ct.CAP_ROUND,this.joinStyle=Ct.JOIN_ROUND,this.mitreLimit=Ct.DEFAULT_MITRE_LIMIT,this._isSingleSided=!1,this.simplifyFactor=Ct.DEFAULT_SIMPLIFY_FACTOR,arguments.length!==0){if(arguments.length===1){var t=arguments[0];this.setQuadrantSegments(t)}else if(arguments.length===2){var e=arguments[0],n=arguments[1];this.setQuadrantSegments(e),this.setEndCapStyle(n)}else if(arguments.length===4){var r=arguments[0],s=arguments[1],o=arguments[2],l=arguments[3];this.setQuadrantSegments(r),this.setEndCapStyle(s),this.setJoinStyle(o),this.setMitreLimit(l)}}}function Zs(){this.minIndex=-1,this.minCoord=null,this.minDe=null,this.orientedDe=null}function Ji(){this.array_=[]}function Js(){this.finder=null,this.dirEdgeList=new C,this.nodes=new C,this.rightMostCoord=null,this.env=null,this.finder=new Zs}function jt(){this.inputLine=null,this.distanceTol=null,this.isDeleted=null,this.angleOrientation=nt.COUNTERCLOCKWISE;var t=arguments[0];this.inputLine=t}function Qr(){this.ptList=null,this.precisionModel=null,this.minimimVertexDistance=0,this.ptList=new C}function Je(){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 dt,this.seg1=new dt,this.offset0=new dt,this.offset1=new dt,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 Ht,this.filletAngleQuantum=Math.PI/2/e.getQuadrantSegments(),e.getQuadrantSegments()>=8&&e.getJoinStyle()===Ct.JOIN_ROUND&&(this.closingSegLengthFactor=Je.MAX_CLOSING_SEG_LEN_FACTOR),this.init(n)}function $r(){this.distance=0,this.precisionModel=null,this.bufParams=null;var t=arguments[0],e=arguments[1];this.precisionModel=t,this.bufParams=e}function ji(){this.subgraphs=null,this.seg=new dt,this.cga=new nt;var t=arguments[0];this.subgraphs=t}function Ki(){this.upwardSeg=null,this.leftDepth=null;var t=arguments[0],e=arguments[1];this.upwardSeg=new dt(t),this.leftDepth=e}function js(){this.inputGeom=null,this.distance=null,this.curveBuilder=null,this.curveList=new C;var t=arguments[0],e=arguments[1],n=arguments[2];this.inputGeom=t,this.distance=e,this.curveBuilder=n}function ti(){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 _n(){this.bufParams=null,this.workingPrecisionModel=null,this.workingNoder=null,this.geomFact=null,this.graph=null,this.edgeList=new Xi;var t=arguments[0];this.bufParams=t}function ei(){this.li=new Ht,this.segStrings=null;var t=arguments[0];this.segStrings=t}function xr(){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 a;e!==1&&(this.pt=new v(this.scale(t.x),this.scale(t.y)),this.p0Scaled=new v,this.p1Scaled=new v),this.initCorners(this.pt)}function Qi(){this.index=null;var t=arguments[0];this.index=t}function ni(){Mn.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 Ks(){this.li=null,this.interiorIntersections=null;var t=arguments[0];this.li=t,this.interiorIntersections=new C}function Qs(){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 Ht,this.li.setPrecisionModel(t),this.scaleFactor=t.getScale()}function Kt(){if(this.argGeom=null,this.distance=null,this.bufParams=new Ct,this.resultGeometry=null,this.saveException=null,arguments.length===1){var t=arguments[0];this.argGeom=t}else if(arguments.length===2){var e=arguments[0],n=arguments[1];this.argGeom=e,this.bufParams=n}}function Qn(){this.comps=null;var t=arguments[0];this.comps=t}function me(){if(this.component=null,this.segIndex=null,this.pt=null,arguments.length===2){var t=arguments[0],e=arguments[1];me.call(this,t,me.INSIDE_AREA,e)}else if(arguments.length===3){var n=arguments[0],r=arguments[1],s=arguments[2];this.component=n,this.segIndex=r,this.pt=s}}function $n(){this.pts=null;var t=arguments[0];this.pts=t}function ri(){this.locations=null;var t=arguments[0];this.locations=t}function qe(){if(this.geom=null,this.terminateDistance=0,this.ptLocator=new Un,this.minDistanceLocation=null,this.minDistance=c.MAX_VALUE,arguments.length===2){var t=arguments[0],e=arguments[1];qe.call(this,t,e,0)}else if(arguments.length===3){var n=arguments[0],r=arguments[1],s=arguments[2];this.geom=new Array(2).fill(null),this.geom[0]=n,this.geom[1]=r,this.terminateDistance=s}}function $s(){this.factory=null,this.directedEdges=new C,this.coordinates=null;var t=arguments[0];this.factory=t}function Pe(){this._isMarked=!1,this._isVisited=!1,this.data=null}function Ce(){Pe.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],r=arguments[3];this.from=t,this.to=e,this.edgeDirection=r,this.p0=t.getCoordinate(),this.p1=n;var s=this.p1.x-this.p0.x,o=this.p1.y-this.p0.y;this.quadrant=Nt.quadrant(s,o),this.angle=Math.atan2(o,s)}function ii(){var t=arguments[0],e=arguments[1],n=arguments[2],r=arguments[3];Ce.call(this,t,e,n,r)}function je(){if(Pe.apply(this),this.dirEdge=null,arguments.length!==0){if(arguments.length===2){var t=arguments[0],e=arguments[1];this.setDirectedEdges(t,e)}}}function to(){this.outEdges=new C,this.sorted=!1}function cn(){if(Pe.apply(this),this.pt=null,this.deStar=null,arguments.length===1){var t=arguments[0];cn.call(this,t,new to)}else if(arguments.length===2){var e=arguments[0],n=arguments[1];this.pt=e,this.deStar=n}}function $i(){je.apply(this),this.line=null;var t=arguments[0];this.line=t}function eo(){this.nodeMap=new Vt}function Er(){this.edges=new Rt,this.dirEdges=new Rt,this.nodeMap=new eo}function ts(){Er.apply(this)}function no(){this.graph=new ts,this.mergedLineStrings=null,this.factory=null,this.edgeStrings=null}function si(){this.edgeRing=null,this.next=null,this.label=-1;var t=arguments[0],e=arguments[1],n=arguments[2],r=arguments[3];Ce.call(this,t,e,n,r)}function es(){je.apply(this),this.line=null;var t=arguments[0];this.line=t}function oi(){this.geometryFactory=new yt,this.geomGraph=null,this.disconnectedRingcoord=null;var t=arguments[0];this.geomGraph=t}function ns(){}function ai(){if(this.edgeEnds=new C,arguments.length===1){var t=arguments[0];ai.call(this,null,t)}else if(arguments.length===2){var e=arguments[1];Ye.call(this,e.getEdge(),e.getCoordinate(),e.getDirectedCoordinate(),new Bt(e.getLabel())),this.insert(e)}}function rs(){Zn.apply(this)}function is(){var t=arguments[0],e=arguments[1];an.call(this,t,e)}function ui(){Wn.apply(this)}function ro(){this.nodes=new gr(new ui)}function ss(){this.li=new Ht,this.geomGraph=null,this.nodeGraph=new ro,this.invalidPoint=null;var t=arguments[0];this.geomGraph=t}function io(){this.graph=null,this.rings=new C,this.totalEnv=new B,this.index=null,this.nestedPt=null;var t=arguments[0];this.graph=t}function It(){if(this.errorType=null,this.pt=null,arguments.length===1){var t=arguments[0];It.call(this,t,null)}else if(arguments.length===2){var e=arguments[0],n=arguments[1];this.errorType=e,n!==null&&(this.pt=n.copy())}}function we(){this.parentGeometry=null,this.isSelfTouchingRingFormingHoleValid=!1,this.validErr=null;var t=arguments[0];this.parentGeometry=t}function Ge(){this.factory=null,this.deList=new C,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 so(){}function Ut(){Er.apply(this),this.factory=null;var t=arguments[0];this.factory=t}function ve(){if(this.lineStringAdder=new os(this),this.graph=null,this.dangles=new C,this.cutEdges=new C,this.invalidRingLines=new C,this.holeList=null,this.shellList=null,this.polyList=null,this.isCheckingRingsValid=!0,this.extractOnlyPolygonal=null,this.geomFactory=null,arguments.length===0)ve.call(this,!1);else if(arguments.length===1){var t=arguments[0];this.extractOnlyPolygonal=t}}function os(){this.p=null;var t=arguments[0];this.p=t}function as(){this.li=new Ht,this.ptLocator=new Un,this.arg=null,this.nodes=new gr(new ui),this.im=null,this.isolatedEdges=new C,this.invalidPoint=null;var t=arguments[0];this.arg=t}function li(){this.rectEnv=null;var t=arguments[0];this.rectEnv=t.getEnvelopeInternal()}function oo(){this.li=new Ht,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 v(t.getMinX(),t.getMinY()),this.diagUp1=new v(t.getMaxX(),t.getMaxY()),this.diagDown0=new v(t.getMinX(),t.getMaxY()),this.diagDown1=new v(t.getMaxX(),t.getMinY())}function An(){this._isDone=!1}function Ir(){this.rectangle=null,this.rectEnv=null;var t=arguments[0];this.rectangle=t,this.rectEnv=t.getEnvelopeInternal()}function us(){An.apply(this),this.rectEnv=null,this._intersects=!1;var t=arguments[0];this.rectEnv=t}function ls(){An.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 hs(){An.apply(this),this.rectEnv=null,this.rectIntersector=null,this.hasIntersection=!1,this.p0=new v,this.p1=new v;var t=arguments[0];this.rectEnv=t.getEnvelopeInternal(),this.rectIntersector=new oo(this.rectEnv)}function wt(){if(this._relate=null,arguments.length===2){var t=arguments[0],e=arguments[1];Rn.call(this,t,e),this._relate=new as(this.arg)}else if(arguments.length===3){var n=arguments[0],r=arguments[1],s=arguments[2];Rn.call(this,n,r,s),this._relate=new as(this.arg)}}function Se(){this.geomFactory=null,this.skipEmpty=!1,this.inputGeoms=null;var t=arguments[0];this.geomFactory=Se.extractFactory(t),this.inputGeoms=t}function hi(){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 Dn(){this.sortIndex=-1,this.comps=null;var t=arguments[0],e=arguments[1];this.sortIndex=t,this.comps=e}function Te(){this.inputPolys=null,this.geomFactory=null;var t=arguments[0];this.inputPolys=t,this.inputPolys===null&&(this.inputPolys=new C)}function Fn(){if(this.polygons=new C,this.lines=new C,this.points=new C,this.geomFact=null,arguments.length===1){if(X(arguments[0],w)){var t=arguments[0];this.extract(t)}else if(arguments[0]instanceof Q){var e=arguments[0];this.extract(e)}}else if(arguments.length===2){var n=arguments[0],r=arguments[1];this.geomFact=r,this.extract(n)}}function cs(){xe.CoordinateOperation.apply(this),this.targetPM=null,this.removeCollapsed=!0;var t=arguments[0],e=arguments[1];this.targetPM=t,this.removeCollapsed=e}function tr(){this.targetPM=null,this.removeCollapsed=!0,this.changePrecisionModel=!1,this.isPointwise=!1;var t=arguments[0];this.targetPM=t}function ci(){this.pts=null,this.usePt=null,this.distanceTolerance=null,this.seg=new dt;var t=arguments[0];this.pts=t}function Nr(){this.inputGeom=null,this.distanceTolerance=null,this.isEnsureValidTopology=!0;var t=arguments[0];this.inputGeom=t}function fi(){oe.apply(this),this.isEnsureValidTopology=!0,this.distanceTolerance=null;var t=arguments[0],e=arguments[1];this.isEnsureValidTopology=t,this.distanceTolerance=e}function gi(){if(this.parent=null,this.index=null,arguments.length===2){var t=arguments[0],e=arguments[1];gi.call(this,t,e,null,-1)}else if(arguments.length===4){var n=arguments[0],r=arguments[1],s=arguments[2],o=arguments[3];dt.call(this,n,r),this.parent=s,this.index=o}}function In(){if(this.parentLine=null,this.segs=null,this.resultSegs=new C,this.minimumSize=null,arguments.length===1){var t=arguments[0];In.call(this,t,2)}else if(arguments.length===2){var e=arguments[0],n=arguments[1];this.parentLine=e,this.minimumSize=n,this.init()}}function Cr(){this.index=new On}function ao(){this.querySeg=null,this.items=new C;var t=arguments[0];this.querySeg=t}function di(){this.li=new Ht,this.inputIndex=new Cr,this.outputIndex=new Cr,this.line=null,this.linePts=null,this.distanceTolerance=0;var t=arguments[0],e=arguments[1];this.inputIndex=t,this.outputIndex=e}function uo(){this.inputIndex=new Cr,this.outputIndex=new Cr,this.distanceTolerance=0}function er(){this.inputGeom=null,this.lineSimplifier=new uo,this.linestringMap=null;var t=arguments[0];this.inputGeom=t}function pi(){oe.apply(this),this.linestringMap=null;var t=arguments[0];this.linestringMap=t}function fs(){this.tps=null;var t=arguments[0];this.tps=t}function wr(){this.seg=null,this.segLen=null,this.splitPt=null,this.minimumLen=0;var t=arguments[0];this.seg=t,this.segLen=t.getLength()}function lo(){}function mi(){}function _t(){}function Lt(){if(this.p=null,arguments.length===1){var t=arguments[0];this.p=new v(t)}else if(arguments.length===2){var e=arguments[0],n=arguments[1];this.p=new v(e,n)}else if(arguments.length===3){var r=arguments[0],s=arguments[1],o=arguments[2];this.p=new v(r,s,o)}}function qn(){this._isOnConstraint=null,this.constraint=null;var t=arguments[0];Lt.call(this,t)}function Ft(){this._rot=null,this.vertex=null,this.next=null,this.data=null}function vi(){this.subdiv=null,this.isUsingTolerance=!1;var t=arguments[0];this.subdiv=t,this.isUsingTolerance=t.getTolerance()>0}function ho(){}function gs(){this.subdiv=null,this.lastEdge=null;var t=arguments[0];this.subdiv=t,this.init()}function Sr(){if(this.seg=null,arguments.length===1){if(typeof arguments[0]=="string"){var t=arguments[0];N.call(this,t)}else if(arguments[0]instanceof dt){var e=arguments[0];N.call(this,"Locate failed to converge (at edge: "+e+"). Possible causes include invalid Subdivision topology or very close sites"),this.seg=new dt(e)}}else if(arguments.length===2){var n=arguments[0],r=arguments[1];N.call(this,Sr.msgWithSpatial(n,r)),this.seg=new dt(r)}}function Lr(){}function Le(){this.visitedKey=0,this.quadEdges=new C,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 dt,this.triEdges=new Array(3).fill(null);var t=arguments[0],e=arguments[1];this.tolerance=e,this.edgeCoincidenceTolerance=e/Le.EDGE_COINCIDENCE_TOL_FACTOR,this.createFrame(t),this.startingEdge=this.initSubdiv(),this.locator=new gs(this)}function ds(){}function ps(){this.triList=new C}function ms(){this.triList=new C}function vs(){this.coordList=new q,this.triCoords=new C}function nr(){if(this.ls=null,this.data=null,arguments.length===2){var t=arguments[0],e=arguments[1];this.ls=new dt(t,e)}else if(arguments.length===3){var n=arguments[0],r=arguments[1],s=arguments[2];this.ls=new dt(n,r),this.data=s}else if(arguments.length===6){var o=arguments[0],l=arguments[1],x=arguments[2],A=arguments[3],V=arguments[4],Z=arguments[5];nr.call(this,new v(o,l,x),new v(A,V,Z))}else if(arguments.length===7){var K=arguments[0],$=arguments[1],ut=arguments[2],ft=arguments[3],gt=arguments[4],Ot=arguments[5],Xt=arguments[6];nr.call(this,new v(K,$,ut),new v(ft,gt,Ot),Xt)}}function yi(){}function ys(){if(this.p=null,this.data=null,this.left=null,this.right=null,this.count=null,arguments.length===2){var t=arguments[0],e=arguments[1];this.p=new v(t),this.left=null,this.right=null,this.count=1,this.data=e}else if(arguments.length===3){var n=arguments[0],r=arguments[1],s=arguments[2];this.p=new v(n,r),this.left=null,this.right=null,this.count=1,this.data=s}}function rr(){if(this.root=null,this.numberOfNodes=null,this.tolerance=null,arguments.length===0)rr.call(this,0);else if(arguments.length===1){var t=arguments[0];this.tolerance=t}}function xs(){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 Gn(){this.initialVertices=null,this.segVertices=null,this.segments=new C,this.subdiv=null,this.incDel=null,this.convexHull=null,this.splitFinder=new mi,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 C(t),this.tolerance=e,this.kdt=new rr(e)}function ne(){this.siteCoords=null,this.tolerance=0,this.subdiv=null}function Rr(){this.siteCoords=null,this.constraintLines=null,this.tolerance=0,this.subdiv=null,this.constraintVertexMap=new Vt}function xi(){this.siteCoords=null,this.tolerance=0,this.subdiv=null,this.clipEnv=null,this.diagramEnv=null}function Es(){}"fill"in Array.prototype||Object.defineProperty(Array.prototype,"fill",{configurable:!0,value:function(t){if(this===void 0||this===null)throw new TypeError(this+" is not an object");var e=Object(this),n=Math.max(Math.min(e.length,9007199254740991),0)||0,r=1 in arguments&&parseInt(Number(arguments[1]),10)||0;r=r<0?Math.max(n+r,0):Math.min(r,n);var s=2 in arguments&&arguments[2]!==void 0?parseInt(Number(arguments[2]),10)||0:n;for(s=s<0?Math.max(n+arguments[2],0):Math.min(s,n);re.x?1:this.ye.y?1:0},clone:function(){try{var t=null;return t}catch(e){if(e instanceof CloneNotSupportedException)return I.shouldNeverReachHere("this shouldn't happen because this class is Cloneable"),null;throw e}finally{}},copy:function(){return new v(this)},toString:function(){return"("+this.x+", "+this.y+", "+this.z+")"},distance3D:function(t){var e=this.x-t.x,n=this.y-t.y,r=this.z-t.z;return Math.sqrt(e*e+n*n+r*r)},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 t=37*t+v.hashCode(this.x),t=37*t+v.hashCode(this.y)},setCoordinate:function(t){this.x=t.x,this.y=t.y,this.z=t.z},interfaces_:function(){return[f,p,m]},getClass:function(){return v}}),v.hashCode=function(){if(arguments.length===1){var t=arguments[0],e=c.doubleToLongBits(t);return Math.trunc(e^e>>>32)}},d(M.prototype,{compare:function(t,e){var n=t,r=e,s=M.compare(n.x,r.x);if(s!==0)return s;var o=M.compare(n.y,r.y);if(o!==0)return o;if(this.dimensionsToTest<=2)return 0;var l=M.compare(n.z,r.z);return l},interfaces_:function(){return[g]},getClass:function(){return M}}),M.compare=function(t,e){return te?1:c.isNaN(t)?c.isNaN(e)?0:-1:c.isNaN(e)?1:0},v.DimensionalComparator=M,v.serialVersionUID=6683108902428367e3,v.NULL_ORDINATE=c.NaN,v.X=0,v.Y=1,v.Z=2,T.prototype.hasNext=function(){},T.prototype.next=function(){},T.prototype.remove=function(){},w.prototype.add=function(){},w.prototype.addAll=function(){},w.prototype.isEmpty=function(){},w.prototype.iterator=function(){},w.prototype.size=function(){},w.prototype.toArray=function(){},w.prototype.remove=function(){},b.prototype=new Error,b.prototype.name="IndexOutOfBoundsException",P.prototype=Object.create(w.prototype),P.prototype.constructor=P,P.prototype.get=function(){},P.prototype.set=function(){},P.prototype.isEmpty=function(){},O.prototype=new Error,O.prototype.name="NoSuchElementException",D.prototype=new Error,D.prototype.name="OperationNotSupported",C.prototype=Object.create(P.prototype),C.prototype.constructor=C,C.prototype.ensureCapacity=function(){},C.prototype.interfaces_=function(){return[P,w]},C.prototype.add=function(t){return arguments.length===1?this.array_.push(t):this.array_.splice(arguments[0],arguments[1]),!0},C.prototype.clear=function(){this.array_=[]},C.prototype.addAll=function(t){for(var e=t.iterator();e.hasNext();)this.add(e.next());return!0},C.prototype.set=function(t,e){var n=this.array_[t];return this.array_[t]=e,n},C.prototype.iterator=function(){return new Ei(this)},C.prototype.get=function(t){if(t<0||t>=this.size())throw new b;return this.array_[t]},C.prototype.isEmpty=function(){return this.array_.length===0},C.prototype.size=function(){return this.array_.length},C.prototype.toArray=function(){for(var t=[],e=0,n=this.array_.length;e=1){var o=this.get(this.size()-1);if(o.equals2D(r))return null}C.prototype.add.call(this,r)}else if(arguments[0]instanceof Object&&typeof arguments[1]=="boolean"){var l=arguments[0],x=arguments[1];return this.add(l,x),!0}}else if(arguments.length===3){if(typeof arguments[2]=="boolean"&&arguments[0]instanceof Array&&typeof arguments[1]=="boolean"){var A=arguments[0],V=arguments[1],Z=arguments[2];if(Z)for(var K=0;K=0;K--)this.add(A[K],V);return!0}if(typeof arguments[2]=="boolean"&&Number.isInteger(arguments[0])&&arguments[1]instanceof v){var $=arguments[0],ut=arguments[1],ft=arguments[2];if(!ft){var gt=this.size();if(gt>0){if($>0){var Ot=this.get($-1);if(Ot.equals2D(ut))return null}if($ws&&(Ss=-1);for(var K=Cs;K!==ws;K+=Ss)this.add(Ve[K],ir);return!0}},closeRing:function(){this.size()>0&&this.add(new v(this.get(0)),!1)},interfaces_:function(){return[]},getClass:function(){return q}}),q.coordArrayType=new Array(0).fill(null),d(B.prototype,{getArea:function(){return this.getWidth()*this.getHeight()},equals:function(t){if(!(t instanceof B))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 B;var e=this.minx>t.minx?this.minx:t.minx,n=this.miny>t.miny?this.miny:t.miny,r=this.maxx=this.minx&&e.getMaxX()<=this.maxx&&e.getMinY()>=this.miny&&e.getMaxY()<=this.maxy}}else if(arguments.length===2){var n=arguments[0],r=arguments[1];return!this.isNull()&&n>=this.minx&&n<=this.maxx&&r>=this.miny&&r<=this.maxy}},intersects:function(){if(arguments.length===1){if(arguments[0]instanceof B){var t=arguments[0];return!this.isNull()&&!t.isNull()&&!(t.minx>this.maxx||t.maxxthis.maxy||t.maxythis.maxx||nthis.maxy||rthis.maxx&&(this.maxx=e.maxx),e.minythis.maxy&&(this.maxy=e.maxy))}}else if(arguments.length===2){var n=arguments[0],r=arguments[1];this.isNull()?(this.minx=n,this.maxx=n,this.miny=r,this.maxy=r):(nthis.maxx&&(this.maxx=n),rthis.maxy&&(this.maxy=r))}},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(arguments.length===1){var t=arguments[0];this.expandBy(t,t)}else if(arguments.length===2){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(arguments.length===1){if(arguments[0]instanceof B){var t=arguments[0];return this.covers(t)}if(arguments[0]instanceof v){var e=arguments[0];return this.covers(e)}}else if(arguments.length===2){var n=arguments[0],r=arguments[1];return this.covers(n,r)}},centre:function(){return this.isNull()?null:new v((this.getMinX()+this.getMaxX())/2,(this.getMinY()+this.getMaxY())/2)},init:function(){if(arguments.length===0)this.setToNull();else if(arguments.length===1){if(arguments[0]instanceof v){var t=arguments[0];this.init(t.x,t.x,t.y,t.y)}else if(arguments[0]instanceof B){var e=arguments[0];this.minx=e.minx,this.maxx=e.maxx,this.miny=e.miny,this.maxy=e.maxy}}else if(arguments.length===2){var n=arguments[0],r=arguments[1];this.init(n.x,r.x,n.y,r.y)}else if(arguments.length===4){var s=arguments[0],o=arguments[1],l=arguments[2],x=arguments[3];st.maxx&&(e=this.minx-t.maxx);var n=0;return this.maxyt.maxy&&(n=this.miny-t.maxy),e===0?n:n===0?e:Math.sqrt(e*e+n*n)},hashCode:function(){var t=17;return t=37*t+v.hashCode(this.minx),t=37*t+v.hashCode(this.maxx),t=37*t+v.hashCode(this.miny),t=37*t+v.hashCode(this.maxy)},interfaces_:function(){return[f,m]},getClass:function(){return B}}),B.intersects=function(){if(arguments.length===3){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(arguments.length===4){var r=arguments[0],s=arguments[1],o=arguments[2],l=arguments[3],x=Math.min(o.x,l.x),A=Math.max(o.x,l.x),V=Math.min(r.x,s.x),Z=Math.max(r.x,s.x);return!(V>A)&&!(ZA)&&!(Zn?n:t}if(Number.isInteger(arguments[2])&&Number.isInteger(arguments[0])&&Number.isInteger(arguments[1])){var r=arguments[0],s=arguments[1],o=arguments[2];return ro?o:r}},ot.wrap=function(t,e){return t<0?e- -t%e:t%e},ot.max=function(){if(arguments.length===3){var t=arguments[0],e=arguments[1],n=arguments[2],r=t;return e>r&&(r=e),n>r&&(r=n),r}if(arguments.length===4){var s=arguments[0],o=arguments[1],l=arguments[2],x=arguments[3],r=s;return o>r&&(r=o),l>r&&(r=l),x>r&&(r=x),r}},ot.average=function(t,e){return(t+e)/2},ot.LOG_10=Math.log(10),F.prototype.append=function(t){this.str+=t},F.prototype.setCharAt=function(t,e){this.str=this.str.substr(0,t)+e+this.str.substr(t+1)},F.prototype.toString=function(t){return this.str},Y.prototype.intValue=function(){return this.value},Y.prototype.compareTo=function(t){return this.valuet?1:0},Y.isNaN=function(t){return Number.isNaN(t)},H.isWhitespace=function(t){return t<=32&&t>=0||t==127},H.toUpperCase=function(t){return t.toUpperCase()},d(z.prototype,{le:function(t){return this.hi9?(Z=!0,K="9"):K="0"+V,l.append(K),n=n.subtract(z.valueOf(V)).multiply(z.TEN),Z&&n.selfAdd(z.TEN);var $=!0,ut=z.magnitude(n.hi);if(ut<0&&Math.abs(ut)>=x-A&&($=!1),!$)break}return e[0]=r,l.toString()},sqr:function(){return this.multiply(this)},doubleValue:function(){return this.hi+this.lo},subtract:function(){if(arguments[0]instanceof z){var t=arguments[0];return this.add(t.negate())}if(typeof arguments[0]=="number"){var e=arguments[0];return this.add(-e)}},equals:function(){if(arguments.length===1){var t=arguments[0];return this.hi===t.hi&&this.lo===t.lo}},isZero:function(){return this.hi===0&&this.lo===0},selfSubtract:function(){if(arguments[0]instanceof z){var t=arguments[0];return this.isNaN()?this:this.selfAdd(-t.hi,-t.lo)}if(typeof arguments[0]=="number"){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(arguments.length===1){if(arguments[0]instanceof z){var t=arguments[0];return this.selfDivide(t.hi,t.lo)}if(typeof arguments[0]=="number"){var e=arguments[0];return this.selfDivide(e,0)}}else if(arguments.length===2){var n=arguments[0],r=arguments[1],s=null,o=null,l=null,x=null,A=null,V=null,Z=null,K=null;return A=this.hi/n,V=z.SPLIT*A,s=V-A,K=z.SPLIT*n,s=V-s,o=A-s,l=K-n,Z=A*n,l=K-l,x=n-l,K=s*l-Z+s*x+o*l+o*x,V=(this.hi-Z-K+this.lo-A*r)/n,K=A+V,this.hi=K,this.lo=A-K+V,this}},dump:function(){return"DD<"+this.hi+", "+this.lo+">"},divide:function(){if(arguments[0]instanceof z){var t=arguments[0],e=null,n=null,r=null,s=null,o=null,l=null,x=null,A=null;o=this.hi/t.hi,l=z.SPLIT*o,e=l-o,A=z.SPLIT*t.hi,e=l-e,n=o-e,r=A-t.hi,x=o*t.hi,r=A-r,s=t.hi-r,A=e*r-x+e*s+n*r+n*s,l=(this.hi-x-A+this.lo-o*t.lo)/t.hi,A=o+l;var V=A,Z=o-A+l;return new z(V,Z)}if(typeof arguments[0]=="number"){var K=arguments[0];return c.isNaN(K)?z.createNaN():z.copy(this).selfDivide(K,0)}},ge:function(t){return this.hi>t.hi||this.hi===t.hi&&this.lo>=t.lo},pow:function(t){if(t===0)return z.valueOf(1);var e=new z(this),n=z.valueOf(1),r=Math.abs(t);if(r>1)for(;r>0;)r%2===1&&n.selfMultiply(e),r/=2,r>0&&(e=e.sqr());else n=e;return t<0?n.reciprocal():n},ceil:function(){if(this.isNaN())return z.NaN;var t=Math.ceil(this.hi),e=0;return t===this.hi&&(e=Math.ceil(this.lo)),new z(t,e)},compareTo:function(t){var e=t;return this.hie.hi?1:this.loe.lo?1:0},rint:function(){if(this.isNaN())return this;var t=this.add(.5);return t.floor()},setValue:function(){if(arguments[0]instanceof z){var t=arguments[0];return this.init(t),this}if(typeof arguments[0]=="number"){var e=arguments[0];return this.init(e),this}},max:function(t){return this.ge(t)?this:t},sqrt:function(){if(this.isZero())return z.valueOf(0);if(this.isNegative())return z.NaN;var t=1/Math.sqrt(this.hi),e=this.hi*t,n=z.valueOf(e),r=this.subtract(n.sqr()),s=r.hi*(.5*t);return n.add(s)},selfAdd:function(){if(arguments.length===1){if(arguments[0]instanceof z){var t=arguments[0];return this.selfAdd(t.hi,t.lo)}if(typeof arguments[0]=="number"){var e=arguments[0],n=null,r=null,s=null,o=null,l=null,x=null;return s=this.hi+e,l=s-this.hi,o=s-l,o=e-l+(this.hi-o),x=o+this.lo,n=s+x,r=x+(s-n),this.hi=n+r,this.lo=r+(n-this.hi),this}}else if(arguments.length===2){var A=arguments[0],V=arguments[1],n=null,r=null,Z=null,K=null,s=null,o=null,l=null,x=null;s=this.hi+A,Z=this.lo+V,l=s-this.hi,x=Z-this.lo,o=s-l,K=Z-x,o=A-l+(this.hi-o),K=V-x+(this.lo-K),l=o+Z,n=s+l,r=l+(s-n),l=K+r;var $=n+l,ut=l+(n-$);return this.hi=$,this.lo=ut,this}},selfMultiply:function(){if(arguments.length===1){if(arguments[0]instanceof z){var t=arguments[0];return this.selfMultiply(t.hi,t.lo)}if(typeof arguments[0]=="number"){var e=arguments[0];return this.selfMultiply(e,0)}}else if(arguments.length===2){var n=arguments[0],r=arguments[1],s=null,o=null,l=null,x=null,A=null,V=null;A=z.SPLIT*this.hi,s=A-this.hi,V=z.SPLIT*n,s=A-s,o=this.hi-s,l=V-n,A=this.hi*n,l=V-l,x=n-l,V=s*l-A+s*x+o*l+o*x+(this.hi*r+this.lo*n);var Z=A+V;s=A-Z;var K=V+s;return this.hi=Z,this.lo=K,this}},selfSqr:function(){return this.selfMultiply(this)},floor:function(){if(this.isNaN())return z.NaN;var t=Math.floor(this.hi),e=0;return t===this.hi&&(e=Math.floor(this.lo)),new z(t,e)},negate:function(){return this.isNaN()?this:new z(-this.hi,-this.lo)},clone:function(){try{return null}catch(t){if(t instanceof CloneNotSupportedException)return null;throw t}finally{}},multiply:function(){if(arguments[0]instanceof z){var t=arguments[0];return t.isNaN()?z.createNaN():z.copy(this).selfMultiply(t)}if(typeof arguments[0]=="number"){var e=arguments[0];return c.isNaN(e)?z.createNaN():z.copy(this).selfMultiply(e,0)}},isNaN:function(){return c.isNaN(this.hi)},intValue:function(){return Math.trunc(this.hi)},toString:function(){var t=z.magnitude(this.hi);return t>=-3&&t<=20?this.toStandardNotation():this.toSciNotation()},toStandardNotation:function(){var t=this.getSpecialNumberString();if(t!==null)return t;var e=new Array(1).fill(null),n=this.extractSignificantDigits(!0,e),r=e[0]+1,s=n;if(n.charAt(0)===".")s="0"+n;else if(r<0)s="0."+z.stringOfChar("0",-r)+n;else if(n.indexOf(".")===-1){var o=r-n.length,l=z.stringOfChar("0",o);s=n+l+".0"}return this.isNegative()?"-"+s:s},reciprocal:function(){var t=null,e=null,n=null,r=null,s=null,o=null,l=null,x=null;s=1/this.hi,o=z.SPLIT*s,t=o-s,x=z.SPLIT*this.hi,t=o-t,e=s-t,n=x-this.hi,l=s*this.hi,n=x-n,r=this.hi-n,x=t*n-l+t*r+e*n+e*r,o=(1-l-x-s*this.lo)/this.hi;var A=s+o,V=s-A+o;return new z(A,V)},toSciNotation:function(){if(this.isZero())return z.SCI_NOT_ZERO;var t=this.getSpecialNumberString();if(t!==null)return t;var e=new Array(1).fill(null),n=this.extractSignificantDigits(!1,e),r=z.SCI_NOT_EXPONENT_CHAR+e[0];if(n.charAt(0)==="0")throw new IllegalStateException("Found leading zero: "+n);var s="";n.length>1&&(s=n.substring(1));var o=n.charAt(0)+"."+s;return this.isNegative()?"-"+o+r:o+r},abs:function(){return this.isNaN()?z.NaN:this.isNegative()?this.negate():new z(this)},isPositive:function(){return this.hi>0||this.hi===0&&this.lo>0},lt:function(t){return this.hit.hi||this.hi===t.hi&&this.lo>t.lo},isNegative:function(){return this.hi<0||this.hi===0&&this.lo<0},trunc:function(){return this.isNaN()?z.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[m,f,p]},getClass:function(){return z}}),z.sqr=function(t){return z.valueOf(t).selfMultiply(t)},z.valueOf=function(){if(typeof arguments[0]=="string"){var t=arguments[0];return z.parse(t)}if(typeof arguments[0]=="number"){var e=arguments[0];return new z(e)}},z.sqrt=function(t){return z.valueOf(t).sqrt()},z.parse=function(t){for(var e=0,n=t.length;H.isWhitespace(t.charAt(e));)e++;var r=!1;if(e=n);){var V=t.charAt(e);if(e++,H.isDigit(V)){var Z=V-"0";o.selfMultiply(z.TEN),o.selfAdd(Z),l++}else{if(V!=="."){if(V==="e"||V==="E"){var K=t.substring(e);try{A=Y.parseInt(K)}catch(gt){throw gt instanceof NumberFormatException?new NumberFormatException("Invalid exponent "+K+" in string "+t):gt}finally{}break}throw new NumberFormatException("Unexpected character '"+V+"' at position "+e+" in string "+t)}x=l}}var $=o,ut=l-x-A;if(ut===0)$=o;else if(ut>0){var ft=z.TEN.pow(ut);$=o.divide(ft)}else if(ut<0){var ft=z.TEN.pow(-ut);$=o.multiply(ft)}return r?$.negate():$},z.createNaN=function(){return new z(c.NaN,c.NaN)},z.copy=function(t){return new z(t)},z.magnitude=function(t){var e=Math.abs(t),n=Math.log(e)/Math.log(10),r=Math.trunc(Math.floor(n)),s=Math.pow(10,r);return 10*s<=e&&(r+=1),r},z.stringOfChar=function(t,e){for(var n=new F,r=0;r0){if(o<=0)return J.signum(l);r=s+o}else{if(!(s<0)||o>=0)return J.signum(l);r=-s-o}var x=J.DP_SAFE_EPSILON*r;return l>=x||-l>=x?J.signum(l):2},J.signum=function(t){return t>0?1:t<0?-1:0},J.DP_SAFE_EPSILON=1e-15,d(G.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[p]},getClass:function(){return G}}),G.X=0,G.Y=1,G.Z=2,G.M=3,k.arraycopy=function(t,e,n,r,s){for(var o=0,l=e;l=m&&N===g.length-1);N++)if(m>=f){var y=f-m;if(y){var R=S(g[N],g[N-1])-180,I=a(g[N],y,R,p);return I}else return d(g[N])}else m+=_(g[N],g[N+1],p);return d(g[g.length-1])}},{"@turf/bearing":3,"@turf/destination":5,"@turf/distance":8,"@turf/helpers":11}],3:[function(h,E,u){var _=h("@turf/invariant").getCoord;function d(a,c,f){if(f===!0)return S(a,c);var p=Math.PI/180,g=180/Math.PI,m=_(a),N=_(c),y=p*m[0],R=p*N[0],I=p*m[1],v=p*N[1],M=Math.sin(R-y)*Math.cos(v),T=Math.cos(I)*Math.sin(v)-Math.sin(I)*Math.cos(v)*Math.cos(R-y),w=g*Math.atan2(M,T);return w}function S(a,c){var f=d(c,a);return f=(f+180)%360,f}E.exports=d},{"@turf/invariant":4}],4:[function(h,E,u){function _(p){if(!p)throw new Error("No obj passed");var g=d(p);if(g.length>1&&typeof g[0]=="number"&&typeof g[1]=="number")return g;throw new Error("Coordinate is not a valid Point")}function d(p){if(!p)throw new Error("No obj passed");var g;if(p.length?g=p:p.coordinates?g=p.coordinates:p.geometry&&p.geometry.coordinates&&(g=p.geometry.coordinates),g)return S(g),g;throw new Error("No valid coordinates")}function S(p){if(p.length>1&&typeof p[0]=="number"&&typeof p[1]=="number")return!0;if(p[0].length)return S(p[0]);throw new Error("coordinates must only contain numbers")}function a(p,g,m){if(!g||!m)throw new Error("type and name required");if(!p||p.type!==g)throw new Error("Invalid input to "+m+": must be a "+g+", given "+p.type)}function c(p,g,m){if(!p)throw new Error("No feature passed");if(!m)throw new Error(".featureOf() requires a name");if(!p||p.type!=="Feature"||!p.geometry)throw new Error("Invalid input to "+m+", Feature with geometry required");if(!p.geometry||p.geometry.type!==g)throw new Error("Invalid input to "+m+": must be a "+g+", given "+p.geometry.type)}function f(p,g,m){if(!p)throw new Error("No featureCollection passed");if(!m)throw new Error(".collectionOf() requires a name");if(!p||p.type!=="FeatureCollection")throw new Error("Invalid input to "+m+", FeatureCollection required");for(var N=0;N0){p+=Math.abs(a(f[0]));for(var g=1;g2){for(I=0;Ia[0]&&(S[0]=a[0]),S[1]>a[1]&&(S[1]=a[1]),S[2]d&&(S.push(c),a=f)}return S},_.prototype.vector=function(d){var S=this.pos(d+10),a=this.pos(d-10);return{angle:180*Math.atan2(S.y-a.y,S.x-a.x)/3.14,speed:Math.sqrt((a.x-S.x)*(a.x-S.x)+(a.y-S.y)*(a.y-S.y)+(a.z-S.z)*(a.z-S.z))}},_.prototype.pos=function(d){function S(g,m,N,y,R){var I=function(T){var w=T*T,b=w*T;return[b,3*w*(1-T),3*T*(1-T)*(1-T),(1-T)*(1-T)*(1-T)]},v=I(g),M={x:R.x*v[0]+y.x*v[1]+N.x*v[2]+m.x*v[3],y:R.y*v[0]+y.y*v[1]+N.y*v[2]+m.y*v[3],z:R.z*v[0]+y.z*v[1]+N.z*v[2]+m.z*v[3]};return M}var a=d-this.delay;a<0&&(a=0),a>this.duration&&(a=this.duration-1);var c=a/this.duration;if(c>=1)return this.points[this.length-1];var f=Math.floor((this.points.length-1)*c),p=(this.length-1)*c-f;return S(p,this.points[f],this.controls[f][1],this.controls[f+1][0],this.points[f+1])},E.exports=_},{}],25:[function(h,E,u){var _=h("@turf/helpers"),d=_.featureCollection,S=h("jsts"),a=h("@mapbox/geojson-normalize");E.exports=function(f,p,g){var m=_.distanceToDegrees(p,g),N=a(f),y=a(d(N.features.map(function(R){return c(R,m)})));if(y.features.length>1)return y;if(y.features.length===1)return y.features[0]};function c(f,p){var g=new S.io.GeoJSONReader,m=g.read(f.geometry),N=m.buffer(p),y=new S.io.GeoJSONWriter;return N=y.write(N),{type:"Feature",geometry:N,properties:{}}}},{"@mapbox/geojson-normalize":26,"@turf/helpers":27,jsts:28}],26:[function(h,E,u){E.exports=d;var _={Point:"geometry",MultiPoint:"geometry",LineString:"geometry",MultiLineString:"geometry",Polygon:"geometry",MultiPolygon:"geometry",GeometryCollection:"geometry",Feature:"feature",FeatureCollection:"featurecollection"};function d(S){if(!S||!S.type)return null;var a=_[S.type];if(!a)return null;if(a==="geometry")return{type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:S}]};if(a==="feature")return{type:"FeatureCollection",features:[S]};if(a==="featurecollection")return S}},{}],27:[function(h,E,u){arguments[4][6][0].apply(u,arguments)},{dup:6}],28:[function(h,E,u){(function(_,d){d(typeof u=="object"&&typeof E<"u"?u:_.jsts=_.jsts||{})})(this,function(_){function d(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}function S(){}function a(){}function c(){}function f(){}function p(){}function g(){}function m(){}function N(t){this.name="RuntimeException",this.message=t,this.stack=new Error().stack,Error.call(this,t)}function y(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t}function R(){if(arguments.length===0)N.call(this);else if(arguments.length===1){var t=arguments[0];N.call(this,t)}}function I(){}function v(){if(this.x=null,this.y=null,this.z=null,arguments.length===0)v.call(this,0,0);else if(arguments.length===1){var t=arguments[0];v.call(this,t.x,t.y,t.z)}else if(arguments.length===2){var e=arguments[0],n=arguments[1];v.call(this,e,n,v.NULL_ORDINATE)}else if(arguments.length===3){var r=arguments[0],s=arguments[1],o=arguments[2];this.x=r,this.y=s,this.z=o}}function M(){if(this.dimensionsToTest=2,arguments.length===0)M.call(this,2);else if(arguments.length===1){var t=arguments[0];if(t!==2&&t!==3)throw new a;this.dimensionsToTest=t}}function T(){}function w(){}function b(t){this.message=t||""}function P(){}function O(t){this.message=t||""}function D(t){this.message=t||""}function C(){this.array_=[],arguments[0]instanceof w&&this.addAll(arguments[0])}function q(){if(C.apply(this),arguments.length!==0){if(arguments.length===1){var t=arguments[0];this.ensureCapacity(t.length),this.add(t,!0)}else if(arguments.length===2){var e=arguments[0],n=arguments[1];this.ensureCapacity(e.length),this.add(e,n)}}}function B(){if(this.minx=null,this.maxx=null,this.miny=null,this.maxy=null,arguments.length===0)this.init();else if(arguments.length===1){if(arguments[0]instanceof v){var t=arguments[0];this.init(t.x,t.x,t.y,t.y)}else if(arguments[0]instanceof B){var e=arguments[0];this.init(e)}}else if(arguments.length===2){var n=arguments[0],r=arguments[1];this.init(n.x,r.x,n.y,r.y)}else if(arguments.length===4){var s=arguments[0],o=arguments[1],l=arguments[2],x=arguments[3];this.init(s,o,l,x)}}function U(){}function W(){U.call(this,"Projective point not representable on the Cartesian plane.")}function L(){}function X(t,e){return t.interfaces_&&t.interfaces_().indexOf(e)>-1}function ot(){}function F(t){this.str=t}function Y(t){this.value=t}function H(){}function z(){if(this.hi=0,this.lo=0,arguments.length===0)this.init(0);else if(arguments.length===1){if(typeof arguments[0]=="number"){var t=arguments[0];this.init(t)}else if(arguments[0]instanceof z){var e=arguments[0];this.init(e)}else if(typeof arguments[0]=="string"){var n=arguments[0];z.call(this,z.parse(n))}}else if(arguments.length===2){var r=arguments[0],s=arguments[1];this.init(r,s)}}function J(){}function G(){}function k(){}function j(){if(this.x=null,this.y=null,this.w=null,arguments.length===0)this.x=0,this.y=0,this.w=1;else if(arguments.length===1){var t=arguments[0];this.x=t.x,this.y=t.y,this.w=1}else if(arguments.length===2){if(typeof arguments[0]=="number"&&typeof arguments[1]=="number"){var e=arguments[0],n=arguments[1];this.x=e,this.y=n,this.w=1}else if(arguments[0]instanceof j&&arguments[1]instanceof j){var r=arguments[0],s=arguments[1];this.x=r.y*s.w-s.y*r.w,this.y=s.x*r.w-r.x*s.w,this.w=r.x*s.y-s.x*r.y}else if(arguments[0]instanceof v&&arguments[1]instanceof v){var o=arguments[0],l=arguments[1];this.x=o.y-l.y,this.y=l.x-o.x,this.w=o.x*l.y-l.x*o.y}}else if(arguments.length===3){var x=arguments[0],A=arguments[1],V=arguments[2];this.x=x,this.y=A,this.w=V}else if(arguments.length===4){var Z=arguments[0],K=arguments[1],$=arguments[2],ut=arguments[3],ft=Z.y-K.y,gt=K.x-Z.x,Ot=Z.x*K.y-K.x*Z.y,Xt=$.y-ut.y,Ve=ut.x-$.x,ir=$.x*ut.y-ut.x*$.y;this.x=gt*ir-Ve*Ot,this.y=Xt*Ot-ft*ir,this.w=ft*Ve-Xt*gt}}function rt(){}function it(){}function Q(){this.envelope=null,this.factory=null,this.SRID=null,this.userData=null;var t=arguments[0];this.factory=t,this.SRID=t.getSRID()}function lt(){}function st(){}function ct(){}function vt(){}function Re(){}function Qt(){}function at(){}function Nn(){}function sr(){}function $e(){}function Yt(){}function zt(){}function Rt(){this.array_=[],arguments[0]instanceof w&&this.addAll(arguments[0])}function ke(t){return t==null?fn:t.color}function Et(t){return t==null?null:t.parent}function Oe(t,e){t!==null&&(t.color=e)}function Mr(t){return t==null?null:t.left}function Ni(t){return t==null?null:t.right}function Vt(){this.root_=null,this.size_=0}function or(){}function Ci(){}function Jt(){this.array_=[],arguments[0]instanceof w&&this.addAll(arguments[0])}function _e(){}function tt(){}function tn(){}function zn(){}function xt(){this.geometries=null;var t=arguments[0],e=arguments[1];if(Q.call(this,e),t===null&&(t=[]),Q.hasNullElements(t))throw new a;this.geometries=t}function ce(){var t=arguments[0],e=arguments[1];xt.call(this,t,e)}function pn(){if(this.geom=null,this.geomFact=null,this.bnRule=null,this.endpointMap=null,arguments.length===1){var t=arguments[0];pn.call(this,t,st.MOD2_BOUNDARY_RULE)}else if(arguments.length===2){var e=arguments[0],n=arguments[1];this.geom=e,this.geomFact=e.getFactory(),this.bnRule=n}}function Ls(){this.count=null}function To(){}function Oo(){}function _o(){}function Ao(){}function Do(){}function Fo(){}function ye(){}function kt(){}function mt(){this.points=null;var t=arguments[0],e=arguments[1];Q.call(this,e),this.init(t)}function wi(){}function At(){this.coordinates=null;var t=arguments[0],e=arguments[1];Q.call(this,e),this.init(t)}function en(){}function Mt(){this.shell=null,this.holes=null;var t=arguments[0],e=arguments[1],n=arguments[2];if(Q.call(this,n),t===null&&(t=this.getFactory().createLinearRing()),e===null&&(e=[]),Q.hasNullElements(e))throw new a;if(t.isEmpty()&&Q.hasNonEmptyElements(e))throw new a;this.shell=t,this.holes=e}function fe(){var t=arguments[0],e=arguments[1];xt.call(this,t,e)}function qt(){if(arguments[0]instanceof v&&arguments[1]instanceof yt){var t=arguments[0],e=arguments[1];qt.call(this,e.getCoordinateSequenceFactory().create(t),e)}else if(X(arguments[0],G)&&arguments[1]instanceof yt){var n=arguments[0],r=arguments[1];mt.call(this,n,r),this.validateConstruction()}}function Zt(){var t=arguments[0],e=arguments[1];xt.call(this,t,e)}function xe(){if(this.factory=null,this.isUserDataCopied=!1,arguments.length!==0){if(arguments.length===1){var t=arguments[0];this.factory=t}}}function Si(){}function Rs(){}function bs(){}function Ms(){}function Ee(){if(this.dimension=3,this.coordinates=null,arguments.length===1){if(arguments[0]instanceof Array){var t=arguments[0];Ee.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 Vo(t){return this.has(t)?this._values[Ke]:void 0}function ko(t,e){if(this.objectOnly&&e!==Object(e))throw new TypeError("Invalid value used as weak collection key");if(e!==e||e===0)for(Ke=t.length;Ke--&&!qo(t[Ke],e););else Ke=t.indexOf(e);return Ke>-1}function Xo(t){return ko.call(this,this._keys,t)}function Uo(t,e){return this.has(t)?this._values[Ke]=e:this._values[this._keys.push(t)-1]=e,this}function Yo(){(this._keys||0).length=this._values.length=0}function Ho(){return Ps(this._itp,this._keys)}function Wo(){return Ps(this._itp,this._values)}function Zo(){return Ps(this._itp,this._keys,this._values)}function Ps(t,e,n){var r=[0],s=!1;return t.push(r),{next:function(){var o,l=r[0];return!s&&l1,"Node capacity must be greater than 1"),this.nodeCapacity=t}}function Ko(){}function Pi(){}function Dt(){if(arguments.length===0)Dt.call(this,Dt.DEFAULT_NODE_CAPACITY);else if(arguments.length===1){var t=arguments[0];Gt.call(this,t)}}function Ar(){var t=arguments[0];se.call(this,t)}function ue(){}function As(){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],r=arguments[3];this.segString=t,this.coord=new v(e),this.segmentIndex=n,this.segmentOctant=r,this._isInterior=!e.equals2D(t.getCoordinate(n))}function Ds(){this.nodeMap=new Vt,this.edge=null;var t=arguments[0];this.edge=t}function wo(){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 Fs(){}function Ue(){this.nodeList=new Ds(this),this.pts=null,this.data=null;var t=arguments[0],e=arguments[1];this.pts=t,this.data=e}function Dr(){this.tempEnv1=new B,this.tempEnv2=new B,this.overlapSeg1=new dt,this.overlapSeg2=new dt}function qs(){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],r=arguments[3];this.pts=t,this.start=e,this.end=n,this.context=r}function Nt(){}function Ae(){}function Fr(){}function Ti(){if(this.segInt=null,arguments.length!==0){if(arguments.length===1){var t=arguments[0];this.setSegmentIntersector(t)}}}function wn(){if(this.monoChains=new C,this.index=new Dt,this.idCounter=0,this.nodedSegStrings=null,this.nOverlaps=0,arguments.length!==0){if(arguments.length===1){var t=arguments[0];Ti.call(this,t)}}}function qr(){Dr.apply(this),this.si=null;var t=arguments[0];this.si=t}function ge(){if(this.pt=null,arguments.length===1){var t=arguments[0];N.call(this,t)}else if(arguments.length===2){var e=arguments[0],n=arguments[1];N.call(this,ge.msgWithCoord(e,n)),this.name="TopologyException",this.pt=new v(n)}}function Gr(){}function vn(){this.findAllIntersections=!1,this.isCheckEndSegmentsOnly=!1,this.li=null,this.interiorIntersection=null,this.intSegments=null,this.intersections=new C,this.intersectionCount=0,this.keepIntersections=!0;var t=arguments[0];this.li=t,this.interiorIntersection=null}function Br(){this.li=new Ht,this.segStrings=null,this.findAllIntersections=!1,this.segInt=null,this._isValid=!0;var t=arguments[0];this.segStrings=t}function Yn(){this.nv=null;var t=arguments[0];this.nv=new Br(Yn.toSegmentStrings(t))}function cr(){this.mapOp=null;var t=arguments[0];this.mapOp=t}function et(){}function de(){if(this.location=null,arguments.length===1){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[et.ON]=e}else if(arguments[0]instanceof de){var n=arguments[0];if(this.init(n.location.length),n!==null)for(var r=0;r=0?this.setComputationPrecision(r.getPrecisionModel()):this.setComputationPrecision(s.getPrecisionModel()),this.arg=new Array(2).fill(null),this.arg[0]=new le(0,r,o),this.arg[1]=new le(1,s,o)}}function bn(){this.pts=null,this._orientation=null;var t=arguments[0];this.pts=t,this._orientation=bn.orientation(t)}function Xi(){this.edges=new C,this.ocaMap=new Vt}function ht(){this.ptLocator=new Un,this.geomFact=null,this.resultGeom=null,this.graph=null,this.edgeList=new Xi,this.resultPolyList=new C,this.resultLineList=new C,this.resultPointList=new C;var t=arguments[0],e=arguments[1];Rn.call(this,t,e),this.graph=new He(new dr),this.geomFact=t.getFactory()}function Me(){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 Wt(){this.geom=new Array(2).fill(null);var t=arguments[0],e=arguments[1];this.geom[0]=t,this.geom[1]=e}function Fe(){this.factory=null,this.interiorPoint=null,this.maxWidth=0;var t=arguments[0];this.factory=t.getFactory(),this.add(t)}function pr(){this.poly=null,this.centreY=null,this.hiY=c.MAX_VALUE,this.loY=-c.MAX_VALUE;var t=arguments[0];this.poly=t,this.hiY=t.getEnvelopeInternal().getMaxY(),this.loY=t.getEnvelopeInternal().getMinY(),this.centreY=Fe.avg(this.loY,this.hiY)}function Ui(){this.centroid=null,this.minDistance=c.MAX_VALUE,this.interiorPoint=null;var t=arguments[0];this.centroid=t.getCentroid().getCoordinate(),this.addInterior(t),this.interiorPoint===null&&this.addEndpoints(t)}function Yi(){this.centroid=null,this.minDistance=c.MAX_VALUE,this.interiorPoint=null;var t=arguments[0];this.centroid=t.getCentroid().getCoordinate(),this.add(t)}function Mn(){this.tempEnv1=new B,this.selectedSegment=new dt}function We(){this.items=new C,this.subnode=[null,null]}function ln(){if(this.min=null,this.max=null,arguments.length===0)this.min=0,this.max=0;else if(arguments.length===1){var t=arguments[0];this.init(t.min,t.max)}else if(arguments.length===2){var e=arguments[0],n=arguments[1];this.init(e,n)}}function jn(){}function Qo(t,e){var n,r,s,o,l={32:{d:127,c:128,b:0,a:0},64:{d:32752,c:0,b:0,a:0}},x={32:8,64:11}[t];if(o||(n=e<0||1/e<0,isFinite(e)||(o=l[t],n&&(o.d+=1<=2;)r++,s/=2;for(;s<1&&r>0;)r--,s*=2;r<=0&&(s/=2)}return r}function Xr(){this.pt=0,this.level=0,this.interval=null;var t=arguments[0];this.computeKey(t)}function yn(){We.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 Pn(){}function mr(){We.apply(this)}function vr(){this.root=null,this.minExtent=1,this.root=new mr}function Hs(){}function Ur(){this.ring=null,this.tree=null,this.crossings=0,this.interval=new ln;var t=arguments[0];this.ring=t,this.buildIndex()}function Yr(){Mn.apply(this),this.mcp=null,this.p=null;var t=arguments[0],e=arguments[1];this.mcp=t,this.p=e}function pt(){}function Tt(){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 xn(){this.input=null,this.extremalPts=null,this.centre=null,this.radius=0;var t=arguments[0];this.input=t}function ee(){if(this.inputGeom=null,this.isConvex=null,this.convexHullPts=null,this.minBaseSeg=new dt,this.minWidthPt=null,this.minPtIndex=null,this.minWidth=0,arguments.length===1){var t=arguments[0];ee.call(this,t,!1)}else if(arguments.length===2){var e=arguments[0],n=arguments[1];this.inputGeom=e,this.isConvex=n}}function Tn(){this.inputGeom=null,this.distanceTolerance=null;var t=arguments[0];this.inputGeom=t}function Hr(){oe.apply(this),this.distanceTolerance=null;var t=arguments[0];this.distanceTolerance=t}function hn(){this._orig=null,this._sym=null,this._next=null;var t=arguments[0];this._orig=t}function pe(){this._isMarked=!1;var t=arguments[0];hn.call(this,t)}function yr(){this.vertexMap=new nn}function Hi(){this._isStart=!1;var t=arguments[0];pe.call(this,t)}function Wi(){yr.apply(this)}function Wr(){this.result=null,this.factory=null,this.graph=null,this.lines=new C,this.nodeEdgeStack=new re,this.ringStartEdge=null,this.graph=new Wi}function Ze(){this.items=new C,this.subnode=new Array(4).fill(null)}function Zr(){this.pt=new v,this.level=0,this.env=null;var t=arguments[0];this.computeKey(t)}function En(){Ze.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 Kn(){Ze.apply(this)}function On(){this.root=null,this.minExtent=1,this.root=new Kn}function Ws(t){this.geometryFactory=t||new yt}function So(t){this.geometryFactory=t||new yt,this.precisionModel=this.geometryFactory.getPrecisionModel(),this.parser=new Ws(this.geometryFactory)}function Lo(){this.parser=new Ws(this.geometryFactory)}function Ro(t){this.geometryFactory=t||new yt,this.precisionModel=this.geometryFactory.getPrecisionModel(),this.parser=new Ts(this.geometryFactory)}function Jr(t){return[t.x,t.y]}function bo(t,e){this.geometryFactory=t||new yt,this.ol=e||typeof ol<"u"&&ol}function jr(){if(this.noder=null,this.scaleFactor=null,this.offsetX=null,this.offsetY=null,this.isScaled=!1,arguments.length===2){var t=arguments[0],e=arguments[1];jr.call(this,t,e,0,0)}else if(arguments.length===4){var n=arguments[0],r=arguments[1];this.noder=n,this.scaleFactor=r,this.isScaled=!this.isIntegerPrecision()}}function Kr(){if(this.inputGeom=null,this.isClosedEndpointsInInterior=!0,this.nonSimpleLocation=null,arguments.length===1){var t=arguments[0];this.inputGeom=t}else if(arguments.length===2){var e=arguments[0],n=arguments[1];this.inputGeom=e,this.isClosedEndpointsInInterior=!n.isInBoundary(2)}}function Zi(){this.pt=null,this.isClosed=null,this.degree=null;var t=arguments[0];this.pt=t,this.isClosed=!1,this.degree=0}function Ct(){if(this.quadrantSegments=Ct.DEFAULT_QUADRANT_SEGMENTS,this.endCapStyle=Ct.CAP_ROUND,this.joinStyle=Ct.JOIN_ROUND,this.mitreLimit=Ct.DEFAULT_MITRE_LIMIT,this._isSingleSided=!1,this.simplifyFactor=Ct.DEFAULT_SIMPLIFY_FACTOR,arguments.length!==0){if(arguments.length===1){var t=arguments[0];this.setQuadrantSegments(t)}else if(arguments.length===2){var e=arguments[0],n=arguments[1];this.setQuadrantSegments(e),this.setEndCapStyle(n)}else if(arguments.length===4){var r=arguments[0],s=arguments[1],o=arguments[2],l=arguments[3];this.setQuadrantSegments(r),this.setEndCapStyle(s),this.setJoinStyle(o),this.setMitreLimit(l)}}}function Zs(){this.minIndex=-1,this.minCoord=null,this.minDe=null,this.orientedDe=null}function Ji(){this.array_=[]}function Js(){this.finder=null,this.dirEdgeList=new C,this.nodes=new C,this.rightMostCoord=null,this.env=null,this.finder=new Zs}function jt(){this.inputLine=null,this.distanceTol=null,this.isDeleted=null,this.angleOrientation=nt.COUNTERCLOCKWISE;var t=arguments[0];this.inputLine=t}function Qr(){this.ptList=null,this.precisionModel=null,this.minimimVertexDistance=0,this.ptList=new C}function Je(){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 dt,this.seg1=new dt,this.offset0=new dt,this.offset1=new dt,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 Ht,this.filletAngleQuantum=Math.PI/2/e.getQuadrantSegments(),e.getQuadrantSegments()>=8&&e.getJoinStyle()===Ct.JOIN_ROUND&&(this.closingSegLengthFactor=Je.MAX_CLOSING_SEG_LEN_FACTOR),this.init(n)}function $r(){this.distance=0,this.precisionModel=null,this.bufParams=null;var t=arguments[0],e=arguments[1];this.precisionModel=t,this.bufParams=e}function ji(){this.subgraphs=null,this.seg=new dt,this.cga=new nt;var t=arguments[0];this.subgraphs=t}function Ki(){this.upwardSeg=null,this.leftDepth=null;var t=arguments[0],e=arguments[1];this.upwardSeg=new dt(t),this.leftDepth=e}function js(){this.inputGeom=null,this.distance=null,this.curveBuilder=null,this.curveList=new C;var t=arguments[0],e=arguments[1],n=arguments[2];this.inputGeom=t,this.distance=e,this.curveBuilder=n}function ti(){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 _n(){this.bufParams=null,this.workingPrecisionModel=null,this.workingNoder=null,this.geomFact=null,this.graph=null,this.edgeList=new Xi;var t=arguments[0];this.bufParams=t}function ei(){this.li=new Ht,this.segStrings=null;var t=arguments[0];this.segStrings=t}function xr(){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 a;e!==1&&(this.pt=new v(this.scale(t.x),this.scale(t.y)),this.p0Scaled=new v,this.p1Scaled=new v),this.initCorners(this.pt)}function Qi(){this.index=null;var t=arguments[0];this.index=t}function ni(){Mn.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 Ks(){this.li=null,this.interiorIntersections=null;var t=arguments[0];this.li=t,this.interiorIntersections=new C}function Qs(){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 Ht,this.li.setPrecisionModel(t),this.scaleFactor=t.getScale()}function Kt(){if(this.argGeom=null,this.distance=null,this.bufParams=new Ct,this.resultGeometry=null,this.saveException=null,arguments.length===1){var t=arguments[0];this.argGeom=t}else if(arguments.length===2){var e=arguments[0],n=arguments[1];this.argGeom=e,this.bufParams=n}}function Qn(){this.comps=null;var t=arguments[0];this.comps=t}function me(){if(this.component=null,this.segIndex=null,this.pt=null,arguments.length===2){var t=arguments[0],e=arguments[1];me.call(this,t,me.INSIDE_AREA,e)}else if(arguments.length===3){var n=arguments[0],r=arguments[1],s=arguments[2];this.component=n,this.segIndex=r,this.pt=s}}function $n(){this.pts=null;var t=arguments[0];this.pts=t}function ri(){this.locations=null;var t=arguments[0];this.locations=t}function qe(){if(this.geom=null,this.terminateDistance=0,this.ptLocator=new Un,this.minDistanceLocation=null,this.minDistance=c.MAX_VALUE,arguments.length===2){var t=arguments[0],e=arguments[1];qe.call(this,t,e,0)}else if(arguments.length===3){var n=arguments[0],r=arguments[1],s=arguments[2];this.geom=new Array(2).fill(null),this.geom[0]=n,this.geom[1]=r,this.terminateDistance=s}}function $s(){this.factory=null,this.directedEdges=new C,this.coordinates=null;var t=arguments[0];this.factory=t}function Pe(){this._isMarked=!1,this._isVisited=!1,this.data=null}function Ce(){Pe.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],r=arguments[3];this.from=t,this.to=e,this.edgeDirection=r,this.p0=t.getCoordinate(),this.p1=n;var s=this.p1.x-this.p0.x,o=this.p1.y-this.p0.y;this.quadrant=Nt.quadrant(s,o),this.angle=Math.atan2(o,s)}function ii(){var t=arguments[0],e=arguments[1],n=arguments[2],r=arguments[3];Ce.call(this,t,e,n,r)}function je(){if(Pe.apply(this),this.dirEdge=null,arguments.length!==0){if(arguments.length===2){var t=arguments[0],e=arguments[1];this.setDirectedEdges(t,e)}}}function to(){this.outEdges=new C,this.sorted=!1}function cn(){if(Pe.apply(this),this.pt=null,this.deStar=null,arguments.length===1){var t=arguments[0];cn.call(this,t,new to)}else if(arguments.length===2){var e=arguments[0],n=arguments[1];this.pt=e,this.deStar=n}}function $i(){je.apply(this),this.line=null;var t=arguments[0];this.line=t}function eo(){this.nodeMap=new Vt}function Er(){this.edges=new Rt,this.dirEdges=new Rt,this.nodeMap=new eo}function ts(){Er.apply(this)}function no(){this.graph=new ts,this.mergedLineStrings=null,this.factory=null,this.edgeStrings=null}function si(){this.edgeRing=null,this.next=null,this.label=-1;var t=arguments[0],e=arguments[1],n=arguments[2],r=arguments[3];Ce.call(this,t,e,n,r)}function es(){je.apply(this),this.line=null;var t=arguments[0];this.line=t}function oi(){this.geometryFactory=new yt,this.geomGraph=null,this.disconnectedRingcoord=null;var t=arguments[0];this.geomGraph=t}function ns(){}function ai(){if(this.edgeEnds=new C,arguments.length===1){var t=arguments[0];ai.call(this,null,t)}else if(arguments.length===2){var e=arguments[1];Ye.call(this,e.getEdge(),e.getCoordinate(),e.getDirectedCoordinate(),new Bt(e.getLabel())),this.insert(e)}}function rs(){Zn.apply(this)}function is(){var t=arguments[0],e=arguments[1];an.call(this,t,e)}function ui(){Wn.apply(this)}function ro(){this.nodes=new gr(new ui)}function ss(){this.li=new Ht,this.geomGraph=null,this.nodeGraph=new ro,this.invalidPoint=null;var t=arguments[0];this.geomGraph=t}function io(){this.graph=null,this.rings=new C,this.totalEnv=new B,this.index=null,this.nestedPt=null;var t=arguments[0];this.graph=t}function It(){if(this.errorType=null,this.pt=null,arguments.length===1){var t=arguments[0];It.call(this,t,null)}else if(arguments.length===2){var e=arguments[0],n=arguments[1];this.errorType=e,n!==null&&(this.pt=n.copy())}}function we(){this.parentGeometry=null,this.isSelfTouchingRingFormingHoleValid=!1,this.validErr=null;var t=arguments[0];this.parentGeometry=t}function Ge(){this.factory=null,this.deList=new C,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 so(){}function Ut(){Er.apply(this),this.factory=null;var t=arguments[0];this.factory=t}function ve(){if(this.lineStringAdder=new os(this),this.graph=null,this.dangles=new C,this.cutEdges=new C,this.invalidRingLines=new C,this.holeList=null,this.shellList=null,this.polyList=null,this.isCheckingRingsValid=!0,this.extractOnlyPolygonal=null,this.geomFactory=null,arguments.length===0)ve.call(this,!1);else if(arguments.length===1){var t=arguments[0];this.extractOnlyPolygonal=t}}function os(){this.p=null;var t=arguments[0];this.p=t}function as(){this.li=new Ht,this.ptLocator=new Un,this.arg=null,this.nodes=new gr(new ui),this.im=null,this.isolatedEdges=new C,this.invalidPoint=null;var t=arguments[0];this.arg=t}function li(){this.rectEnv=null;var t=arguments[0];this.rectEnv=t.getEnvelopeInternal()}function oo(){this.li=new Ht,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 v(t.getMinX(),t.getMinY()),this.diagUp1=new v(t.getMaxX(),t.getMaxY()),this.diagDown0=new v(t.getMinX(),t.getMaxY()),this.diagDown1=new v(t.getMaxX(),t.getMinY())}function An(){this._isDone=!1}function Ir(){this.rectangle=null,this.rectEnv=null;var t=arguments[0];this.rectangle=t,this.rectEnv=t.getEnvelopeInternal()}function us(){An.apply(this),this.rectEnv=null,this._intersects=!1;var t=arguments[0];this.rectEnv=t}function ls(){An.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 hs(){An.apply(this),this.rectEnv=null,this.rectIntersector=null,this.hasIntersection=!1,this.p0=new v,this.p1=new v;var t=arguments[0];this.rectEnv=t.getEnvelopeInternal(),this.rectIntersector=new oo(this.rectEnv)}function wt(){if(this._relate=null,arguments.length===2){var t=arguments[0],e=arguments[1];Rn.call(this,t,e),this._relate=new as(this.arg)}else if(arguments.length===3){var n=arguments[0],r=arguments[1],s=arguments[2];Rn.call(this,n,r,s),this._relate=new as(this.arg)}}function Se(){this.geomFactory=null,this.skipEmpty=!1,this.inputGeoms=null;var t=arguments[0];this.geomFactory=Se.extractFactory(t),this.inputGeoms=t}function hi(){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 Dn(){this.sortIndex=-1,this.comps=null;var t=arguments[0],e=arguments[1];this.sortIndex=t,this.comps=e}function Te(){this.inputPolys=null,this.geomFactory=null;var t=arguments[0];this.inputPolys=t,this.inputPolys===null&&(this.inputPolys=new C)}function Fn(){if(this.polygons=new C,this.lines=new C,this.points=new C,this.geomFact=null,arguments.length===1){if(X(arguments[0],w)){var t=arguments[0];this.extract(t)}else if(arguments[0]instanceof Q){var e=arguments[0];this.extract(e)}}else if(arguments.length===2){var n=arguments[0],r=arguments[1];this.geomFact=r,this.extract(n)}}function cs(){xe.CoordinateOperation.apply(this),this.targetPM=null,this.removeCollapsed=!0;var t=arguments[0],e=arguments[1];this.targetPM=t,this.removeCollapsed=e}function tr(){this.targetPM=null,this.removeCollapsed=!0,this.changePrecisionModel=!1,this.isPointwise=!1;var t=arguments[0];this.targetPM=t}function ci(){this.pts=null,this.usePt=null,this.distanceTolerance=null,this.seg=new dt;var t=arguments[0];this.pts=t}function Nr(){this.inputGeom=null,this.distanceTolerance=null,this.isEnsureValidTopology=!0;var t=arguments[0];this.inputGeom=t}function fi(){oe.apply(this),this.isEnsureValidTopology=!0,this.distanceTolerance=null;var t=arguments[0],e=arguments[1];this.isEnsureValidTopology=t,this.distanceTolerance=e}function gi(){if(this.parent=null,this.index=null,arguments.length===2){var t=arguments[0],e=arguments[1];gi.call(this,t,e,null,-1)}else if(arguments.length===4){var n=arguments[0],r=arguments[1],s=arguments[2],o=arguments[3];dt.call(this,n,r),this.parent=s,this.index=o}}function In(){if(this.parentLine=null,this.segs=null,this.resultSegs=new C,this.minimumSize=null,arguments.length===1){var t=arguments[0];In.call(this,t,2)}else if(arguments.length===2){var e=arguments[0],n=arguments[1];this.parentLine=e,this.minimumSize=n,this.init()}}function Cr(){this.index=new On}function ao(){this.querySeg=null,this.items=new C;var t=arguments[0];this.querySeg=t}function di(){this.li=new Ht,this.inputIndex=new Cr,this.outputIndex=new Cr,this.line=null,this.linePts=null,this.distanceTolerance=0;var t=arguments[0],e=arguments[1];this.inputIndex=t,this.outputIndex=e}function uo(){this.inputIndex=new Cr,this.outputIndex=new Cr,this.distanceTolerance=0}function er(){this.inputGeom=null,this.lineSimplifier=new uo,this.linestringMap=null;var t=arguments[0];this.inputGeom=t}function pi(){oe.apply(this),this.linestringMap=null;var t=arguments[0];this.linestringMap=t}function fs(){this.tps=null;var t=arguments[0];this.tps=t}function wr(){this.seg=null,this.segLen=null,this.splitPt=null,this.minimumLen=0;var t=arguments[0];this.seg=t,this.segLen=t.getLength()}function lo(){}function mi(){}function _t(){}function Lt(){if(this.p=null,arguments.length===1){var t=arguments[0];this.p=new v(t)}else if(arguments.length===2){var e=arguments[0],n=arguments[1];this.p=new v(e,n)}else if(arguments.length===3){var r=arguments[0],s=arguments[1],o=arguments[2];this.p=new v(r,s,o)}}function qn(){this._isOnConstraint=null,this.constraint=null;var t=arguments[0];Lt.call(this,t)}function Ft(){this._rot=null,this.vertex=null,this.next=null,this.data=null}function vi(){this.subdiv=null,this.isUsingTolerance=!1;var t=arguments[0];this.subdiv=t,this.isUsingTolerance=t.getTolerance()>0}function ho(){}function gs(){this.subdiv=null,this.lastEdge=null;var t=arguments[0];this.subdiv=t,this.init()}function Sr(){if(this.seg=null,arguments.length===1){if(typeof arguments[0]=="string"){var t=arguments[0];N.call(this,t)}else if(arguments[0]instanceof dt){var e=arguments[0];N.call(this,"Locate failed to converge (at edge: "+e+"). Possible causes include invalid Subdivision topology or very close sites"),this.seg=new dt(e)}}else if(arguments.length===2){var n=arguments[0],r=arguments[1];N.call(this,Sr.msgWithSpatial(n,r)),this.seg=new dt(r)}}function Lr(){}function Le(){this.visitedKey=0,this.quadEdges=new C,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 dt,this.triEdges=new Array(3).fill(null);var t=arguments[0],e=arguments[1];this.tolerance=e,this.edgeCoincidenceTolerance=e/Le.EDGE_COINCIDENCE_TOL_FACTOR,this.createFrame(t),this.startingEdge=this.initSubdiv(),this.locator=new gs(this)}function ds(){}function ps(){this.triList=new C}function ms(){this.triList=new C}function vs(){this.coordList=new q,this.triCoords=new C}function nr(){if(this.ls=null,this.data=null,arguments.length===2){var t=arguments[0],e=arguments[1];this.ls=new dt(t,e)}else if(arguments.length===3){var n=arguments[0],r=arguments[1],s=arguments[2];this.ls=new dt(n,r),this.data=s}else if(arguments.length===6){var o=arguments[0],l=arguments[1],x=arguments[2],A=arguments[3],V=arguments[4],Z=arguments[5];nr.call(this,new v(o,l,x),new v(A,V,Z))}else if(arguments.length===7){var K=arguments[0],$=arguments[1],ut=arguments[2],ft=arguments[3],gt=arguments[4],Ot=arguments[5],Xt=arguments[6];nr.call(this,new v(K,$,ut),new v(ft,gt,Ot),Xt)}}function yi(){}function ys(){if(this.p=null,this.data=null,this.left=null,this.right=null,this.count=null,arguments.length===2){var t=arguments[0],e=arguments[1];this.p=new v(t),this.left=null,this.right=null,this.count=1,this.data=e}else if(arguments.length===3){var n=arguments[0],r=arguments[1],s=arguments[2];this.p=new v(n,r),this.left=null,this.right=null,this.count=1,this.data=s}}function rr(){if(this.root=null,this.numberOfNodes=null,this.tolerance=null,arguments.length===0)rr.call(this,0);else if(arguments.length===1){var t=arguments[0];this.tolerance=t}}function xs(){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 Gn(){this.initialVertices=null,this.segVertices=null,this.segments=new C,this.subdiv=null,this.incDel=null,this.convexHull=null,this.splitFinder=new mi,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 C(t),this.tolerance=e,this.kdt=new rr(e)}function ne(){this.siteCoords=null,this.tolerance=0,this.subdiv=null}function Rr(){this.siteCoords=null,this.constraintLines=null,this.tolerance=0,this.subdiv=null,this.constraintVertexMap=new Vt}function xi(){this.siteCoords=null,this.tolerance=0,this.subdiv=null,this.clipEnv=null,this.diagramEnv=null}function Es(){}"fill"in Array.prototype||Object.defineProperty(Array.prototype,"fill",{configurable:!0,value:function(t){if(this===void 0||this===null)throw new TypeError(this+" is not an object");var e=Object(this),n=Math.max(Math.min(e.length,9007199254740991),0)||0,r=1 in arguments&&parseInt(Number(arguments[1]),10)||0;r=r<0?Math.max(n+r,0):Math.min(r,n);var s=2 in arguments&&arguments[2]!==void 0?parseInt(Number(arguments[2]),10)||0:n;for(s=s<0?Math.max(n+arguments[2],0):Math.min(s,n);re.x?1:this.ye.y?1:0},clone:function(){try{var t=null;return t}catch(e){if(e instanceof CloneNotSupportedException)return I.shouldNeverReachHere("this shouldn't happen because this class is Cloneable"),null;throw e}finally{}},copy:function(){return new v(this)},toString:function(){return"("+this.x+", "+this.y+", "+this.z+")"},distance3D:function(t){var e=this.x-t.x,n=this.y-t.y,r=this.z-t.z;return Math.sqrt(e*e+n*n+r*r)},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 t=37*t+v.hashCode(this.x),t=37*t+v.hashCode(this.y)},setCoordinate:function(t){this.x=t.x,this.y=t.y,this.z=t.z},interfaces_:function(){return[f,p,m]},getClass:function(){return v}}),v.hashCode=function(){if(arguments.length===1){var t=arguments[0],e=c.doubleToLongBits(t);return Math.trunc(e^e>>>32)}},d(M.prototype,{compare:function(t,e){var n=t,r=e,s=M.compare(n.x,r.x);if(s!==0)return s;var o=M.compare(n.y,r.y);if(o!==0)return o;if(this.dimensionsToTest<=2)return 0;var l=M.compare(n.z,r.z);return l},interfaces_:function(){return[g]},getClass:function(){return M}}),M.compare=function(t,e){return te?1:c.isNaN(t)?c.isNaN(e)?0:-1:c.isNaN(e)?1:0},v.DimensionalComparator=M,v.serialVersionUID=6683108902428367e3,v.NULL_ORDINATE=c.NaN,v.X=0,v.Y=1,v.Z=2,T.prototype.hasNext=function(){},T.prototype.next=function(){},T.prototype.remove=function(){},w.prototype.add=function(){},w.prototype.addAll=function(){},w.prototype.isEmpty=function(){},w.prototype.iterator=function(){},w.prototype.size=function(){},w.prototype.toArray=function(){},w.prototype.remove=function(){},b.prototype=new Error,b.prototype.name="IndexOutOfBoundsException",P.prototype=Object.create(w.prototype),P.prototype.constructor=P,P.prototype.get=function(){},P.prototype.set=function(){},P.prototype.isEmpty=function(){},O.prototype=new Error,O.prototype.name="NoSuchElementException",D.prototype=new Error,D.prototype.name="OperationNotSupported",C.prototype=Object.create(P.prototype),C.prototype.constructor=C,C.prototype.ensureCapacity=function(){},C.prototype.interfaces_=function(){return[P,w]},C.prototype.add=function(t){return arguments.length===1?this.array_.push(t):this.array_.splice(arguments[0],arguments[1]),!0},C.prototype.clear=function(){this.array_=[]},C.prototype.addAll=function(t){for(var e=t.iterator();e.hasNext();)this.add(e.next());return!0},C.prototype.set=function(t,e){var n=this.array_[t];return this.array_[t]=e,n},C.prototype.iterator=function(){return new Ei(this)},C.prototype.get=function(t){if(t<0||t>=this.size())throw new b;return this.array_[t]},C.prototype.isEmpty=function(){return this.array_.length===0},C.prototype.size=function(){return this.array_.length},C.prototype.toArray=function(){for(var t=[],e=0,n=this.array_.length;e=1){var o=this.get(this.size()-1);if(o.equals2D(r))return null}C.prototype.add.call(this,r)}else if(arguments[0]instanceof Object&&typeof arguments[1]=="boolean"){var l=arguments[0],x=arguments[1];return this.add(l,x),!0}}else if(arguments.length===3){if(typeof arguments[2]=="boolean"&&arguments[0]instanceof Array&&typeof arguments[1]=="boolean"){var A=arguments[0],V=arguments[1],Z=arguments[2];if(Z)for(var K=0;K=0;K--)this.add(A[K],V);return!0}if(typeof arguments[2]=="boolean"&&Number.isInteger(arguments[0])&&arguments[1]instanceof v){var $=arguments[0],ut=arguments[1],ft=arguments[2];if(!ft){var gt=this.size();if(gt>0){if($>0){var Ot=this.get($-1);if(Ot.equals2D(ut))return null}if($ws&&(Ss=-1);for(var K=Cs;K!==ws;K+=Ss)this.add(Ve[K],ir);return!0}},closeRing:function(){this.size()>0&&this.add(new v(this.get(0)),!1)},interfaces_:function(){return[]},getClass:function(){return q}}),q.coordArrayType=new Array(0).fill(null),d(B.prototype,{getArea:function(){return this.getWidth()*this.getHeight()},equals:function(t){if(!(t instanceof B))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 B;var e=this.minx>t.minx?this.minx:t.minx,n=this.miny>t.miny?this.miny:t.miny,r=this.maxx=this.minx&&e.getMaxX()<=this.maxx&&e.getMinY()>=this.miny&&e.getMaxY()<=this.maxy}}else if(arguments.length===2){var n=arguments[0],r=arguments[1];return!this.isNull()&&n>=this.minx&&n<=this.maxx&&r>=this.miny&&r<=this.maxy}},intersects:function(){if(arguments.length===1){if(arguments[0]instanceof B){var t=arguments[0];return!this.isNull()&&!t.isNull()&&!(t.minx>this.maxx||t.maxxthis.maxy||t.maxythis.maxx||nthis.maxy||rthis.maxx&&(this.maxx=e.maxx),e.minythis.maxy&&(this.maxy=e.maxy))}}else if(arguments.length===2){var n=arguments[0],r=arguments[1];this.isNull()?(this.minx=n,this.maxx=n,this.miny=r,this.maxy=r):(nthis.maxx&&(this.maxx=n),rthis.maxy&&(this.maxy=r))}},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(arguments.length===1){var t=arguments[0];this.expandBy(t,t)}else if(arguments.length===2){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(arguments.length===1){if(arguments[0]instanceof B){var t=arguments[0];return this.covers(t)}if(arguments[0]instanceof v){var e=arguments[0];return this.covers(e)}}else if(arguments.length===2){var n=arguments[0],r=arguments[1];return this.covers(n,r)}},centre:function(){return this.isNull()?null:new v((this.getMinX()+this.getMaxX())/2,(this.getMinY()+this.getMaxY())/2)},init:function(){if(arguments.length===0)this.setToNull();else if(arguments.length===1){if(arguments[0]instanceof v){var t=arguments[0];this.init(t.x,t.x,t.y,t.y)}else if(arguments[0]instanceof B){var e=arguments[0];this.minx=e.minx,this.maxx=e.maxx,this.miny=e.miny,this.maxy=e.maxy}}else if(arguments.length===2){var n=arguments[0],r=arguments[1];this.init(n.x,r.x,n.y,r.y)}else if(arguments.length===4){var s=arguments[0],o=arguments[1],l=arguments[2],x=arguments[3];st.maxx&&(e=this.minx-t.maxx);var n=0;return this.maxyt.maxy&&(n=this.miny-t.maxy),e===0?n:n===0?e:Math.sqrt(e*e+n*n)},hashCode:function(){var t=17;return t=37*t+v.hashCode(this.minx),t=37*t+v.hashCode(this.maxx),t=37*t+v.hashCode(this.miny),t=37*t+v.hashCode(this.maxy)},interfaces_:function(){return[f,m]},getClass:function(){return B}}),B.intersects=function(){if(arguments.length===3){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(arguments.length===4){var r=arguments[0],s=arguments[1],o=arguments[2],l=arguments[3],x=Math.min(o.x,l.x),A=Math.max(o.x,l.x),V=Math.min(r.x,s.x),Z=Math.max(r.x,s.x);return!(V>A)&&!(ZA)&&!(Zn?n:t}if(Number.isInteger(arguments[2])&&Number.isInteger(arguments[0])&&Number.isInteger(arguments[1])){var r=arguments[0],s=arguments[1],o=arguments[2];return ro?o:r}},ot.wrap=function(t,e){return t<0?e- -t%e:t%e},ot.max=function(){if(arguments.length===3){var t=arguments[0],e=arguments[1],n=arguments[2],r=t;return e>r&&(r=e),n>r&&(r=n),r}if(arguments.length===4){var s=arguments[0],o=arguments[1],l=arguments[2],x=arguments[3],r=s;return o>r&&(r=o),l>r&&(r=l),x>r&&(r=x),r}},ot.average=function(t,e){return(t+e)/2},ot.LOG_10=Math.log(10),F.prototype.append=function(t){this.str+=t},F.prototype.setCharAt=function(t,e){this.str=this.str.substr(0,t)+e+this.str.substr(t+1)},F.prototype.toString=function(t){return this.str},Y.prototype.intValue=function(){return this.value},Y.prototype.compareTo=function(t){return this.valuet?1:0},Y.isNaN=function(t){return Number.isNaN(t)},H.isWhitespace=function(t){return t<=32&&t>=0||t==127},H.toUpperCase=function(t){return t.toUpperCase()},d(z.prototype,{le:function(t){return this.hi9?(Z=!0,K="9"):K="0"+V,l.append(K),n=n.subtract(z.valueOf(V)).multiply(z.TEN),Z&&n.selfAdd(z.TEN);var $=!0,ut=z.magnitude(n.hi);if(ut<0&&Math.abs(ut)>=x-A&&($=!1),!$)break}return e[0]=r,l.toString()},sqr:function(){return this.multiply(this)},doubleValue:function(){return this.hi+this.lo},subtract:function(){if(arguments[0]instanceof z){var t=arguments[0];return this.add(t.negate())}if(typeof arguments[0]=="number"){var e=arguments[0];return this.add(-e)}},equals:function(){if(arguments.length===1){var t=arguments[0];return this.hi===t.hi&&this.lo===t.lo}},isZero:function(){return this.hi===0&&this.lo===0},selfSubtract:function(){if(arguments[0]instanceof z){var t=arguments[0];return this.isNaN()?this:this.selfAdd(-t.hi,-t.lo)}if(typeof arguments[0]=="number"){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(arguments.length===1){if(arguments[0]instanceof z){var t=arguments[0];return this.selfDivide(t.hi,t.lo)}if(typeof arguments[0]=="number"){var e=arguments[0];return this.selfDivide(e,0)}}else if(arguments.length===2){var n=arguments[0],r=arguments[1],s=null,o=null,l=null,x=null,A=null,V=null,Z=null,K=null;return A=this.hi/n,V=z.SPLIT*A,s=V-A,K=z.SPLIT*n,s=V-s,o=A-s,l=K-n,Z=A*n,l=K-l,x=n-l,K=s*l-Z+s*x+o*l+o*x,V=(this.hi-Z-K+this.lo-A*r)/n,K=A+V,this.hi=K,this.lo=A-K+V,this}},dump:function(){return"DD<"+this.hi+", "+this.lo+">"},divide:function(){if(arguments[0]instanceof z){var t=arguments[0],e=null,n=null,r=null,s=null,o=null,l=null,x=null,A=null;o=this.hi/t.hi,l=z.SPLIT*o,e=l-o,A=z.SPLIT*t.hi,e=l-e,n=o-e,r=A-t.hi,x=o*t.hi,r=A-r,s=t.hi-r,A=e*r-x+e*s+n*r+n*s,l=(this.hi-x-A+this.lo-o*t.lo)/t.hi,A=o+l;var V=A,Z=o-A+l;return new z(V,Z)}if(typeof arguments[0]=="number"){var K=arguments[0];return c.isNaN(K)?z.createNaN():z.copy(this).selfDivide(K,0)}},ge:function(t){return this.hi>t.hi||this.hi===t.hi&&this.lo>=t.lo},pow:function(t){if(t===0)return z.valueOf(1);var e=new z(this),n=z.valueOf(1),r=Math.abs(t);if(r>1)for(;r>0;)r%2===1&&n.selfMultiply(e),r/=2,r>0&&(e=e.sqr());else n=e;return t<0?n.reciprocal():n},ceil:function(){if(this.isNaN())return z.NaN;var t=Math.ceil(this.hi),e=0;return t===this.hi&&(e=Math.ceil(this.lo)),new z(t,e)},compareTo:function(t){var e=t;return this.hie.hi?1:this.loe.lo?1:0},rint:function(){if(this.isNaN())return this;var t=this.add(.5);return t.floor()},setValue:function(){if(arguments[0]instanceof z){var t=arguments[0];return this.init(t),this}if(typeof arguments[0]=="number"){var e=arguments[0];return this.init(e),this}},max:function(t){return this.ge(t)?this:t},sqrt:function(){if(this.isZero())return z.valueOf(0);if(this.isNegative())return z.NaN;var t=1/Math.sqrt(this.hi),e=this.hi*t,n=z.valueOf(e),r=this.subtract(n.sqr()),s=r.hi*(.5*t);return n.add(s)},selfAdd:function(){if(arguments.length===1){if(arguments[0]instanceof z){var t=arguments[0];return this.selfAdd(t.hi,t.lo)}if(typeof arguments[0]=="number"){var e=arguments[0],n=null,r=null,s=null,o=null,l=null,x=null;return s=this.hi+e,l=s-this.hi,o=s-l,o=e-l+(this.hi-o),x=o+this.lo,n=s+x,r=x+(s-n),this.hi=n+r,this.lo=r+(n-this.hi),this}}else if(arguments.length===2){var A=arguments[0],V=arguments[1],n=null,r=null,Z=null,K=null,s=null,o=null,l=null,x=null;s=this.hi+A,Z=this.lo+V,l=s-this.hi,x=Z-this.lo,o=s-l,K=Z-x,o=A-l+(this.hi-o),K=V-x+(this.lo-K),l=o+Z,n=s+l,r=l+(s-n),l=K+r;var $=n+l,ut=l+(n-$);return this.hi=$,this.lo=ut,this}},selfMultiply:function(){if(arguments.length===1){if(arguments[0]instanceof z){var t=arguments[0];return this.selfMultiply(t.hi,t.lo)}if(typeof arguments[0]=="number"){var e=arguments[0];return this.selfMultiply(e,0)}}else if(arguments.length===2){var n=arguments[0],r=arguments[1],s=null,o=null,l=null,x=null,A=null,V=null;A=z.SPLIT*this.hi,s=A-this.hi,V=z.SPLIT*n,s=A-s,o=this.hi-s,l=V-n,A=this.hi*n,l=V-l,x=n-l,V=s*l-A+s*x+o*l+o*x+(this.hi*r+this.lo*n);var Z=A+V;s=A-Z;var K=V+s;return this.hi=Z,this.lo=K,this}},selfSqr:function(){return this.selfMultiply(this)},floor:function(){if(this.isNaN())return z.NaN;var t=Math.floor(this.hi),e=0;return t===this.hi&&(e=Math.floor(this.lo)),new z(t,e)},negate:function(){return this.isNaN()?this:new z(-this.hi,-this.lo)},clone:function(){try{return null}catch(t){if(t instanceof CloneNotSupportedException)return null;throw t}finally{}},multiply:function(){if(arguments[0]instanceof z){var t=arguments[0];return t.isNaN()?z.createNaN():z.copy(this).selfMultiply(t)}if(typeof arguments[0]=="number"){var e=arguments[0];return c.isNaN(e)?z.createNaN():z.copy(this).selfMultiply(e,0)}},isNaN:function(){return c.isNaN(this.hi)},intValue:function(){return Math.trunc(this.hi)},toString:function(){var t=z.magnitude(this.hi);return t>=-3&&t<=20?this.toStandardNotation():this.toSciNotation()},toStandardNotation:function(){var t=this.getSpecialNumberString();if(t!==null)return t;var e=new Array(1).fill(null),n=this.extractSignificantDigits(!0,e),r=e[0]+1,s=n;if(n.charAt(0)===".")s="0"+n;else if(r<0)s="0."+z.stringOfChar("0",-r)+n;else if(n.indexOf(".")===-1){var o=r-n.length,l=z.stringOfChar("0",o);s=n+l+".0"}return this.isNegative()?"-"+s:s},reciprocal:function(){var t=null,e=null,n=null,r=null,s=null,o=null,l=null,x=null;s=1/this.hi,o=z.SPLIT*s,t=o-s,x=z.SPLIT*this.hi,t=o-t,e=s-t,n=x-this.hi,l=s*this.hi,n=x-n,r=this.hi-n,x=t*n-l+t*r+e*n+e*r,o=(1-l-x-s*this.lo)/this.hi;var A=s+o,V=s-A+o;return new z(A,V)},toSciNotation:function(){if(this.isZero())return z.SCI_NOT_ZERO;var t=this.getSpecialNumberString();if(t!==null)return t;var e=new Array(1).fill(null),n=this.extractSignificantDigits(!1,e),r=z.SCI_NOT_EXPONENT_CHAR+e[0];if(n.charAt(0)==="0")throw new IllegalStateException("Found leading zero: "+n);var s="";n.length>1&&(s=n.substring(1));var o=n.charAt(0)+"."+s;return this.isNegative()?"-"+o+r:o+r},abs:function(){return this.isNaN()?z.NaN:this.isNegative()?this.negate():new z(this)},isPositive:function(){return this.hi>0||this.hi===0&&this.lo>0},lt:function(t){return this.hit.hi||this.hi===t.hi&&this.lo>t.lo},isNegative:function(){return this.hi<0||this.hi===0&&this.lo<0},trunc:function(){return this.isNaN()?z.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[m,f,p]},getClass:function(){return z}}),z.sqr=function(t){return z.valueOf(t).selfMultiply(t)},z.valueOf=function(){if(typeof arguments[0]=="string"){var t=arguments[0];return z.parse(t)}if(typeof arguments[0]=="number"){var e=arguments[0];return new z(e)}},z.sqrt=function(t){return z.valueOf(t).sqrt()},z.parse=function(t){for(var e=0,n=t.length;H.isWhitespace(t.charAt(e));)e++;var r=!1;if(e=n);){var V=t.charAt(e);if(e++,H.isDigit(V)){var Z=V-"0";o.selfMultiply(z.TEN),o.selfAdd(Z),l++}else{if(V!=="."){if(V==="e"||V==="E"){var K=t.substring(e);try{A=Y.parseInt(K)}catch(gt){throw gt instanceof NumberFormatException?new NumberFormatException("Invalid exponent "+K+" in string "+t):gt}finally{}break}throw new NumberFormatException("Unexpected character '"+V+"' at position "+e+" in string "+t)}x=l}}var $=o,ut=l-x-A;if(ut===0)$=o;else if(ut>0){var ft=z.TEN.pow(ut);$=o.divide(ft)}else if(ut<0){var ft=z.TEN.pow(-ut);$=o.multiply(ft)}return r?$.negate():$},z.createNaN=function(){return new z(c.NaN,c.NaN)},z.copy=function(t){return new z(t)},z.magnitude=function(t){var e=Math.abs(t),n=Math.log(e)/Math.log(10),r=Math.trunc(Math.floor(n)),s=Math.pow(10,r);return 10*s<=e&&(r+=1),r},z.stringOfChar=function(t,e){for(var n=new F,r=0;r0){if(o<=0)return J.signum(l);r=s+o}else{if(!(s<0)||o>=0)return J.signum(l);r=-s-o}var x=J.DP_SAFE_EPSILON*r;return l>=x||-l>=x?J.signum(l):2},J.signum=function(t){return t>0?1:t<0?-1:0},J.DP_SAFE_EPSILON=1e-15,d(G.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[p]},getClass:function(){return G}}),G.X=0,G.Y=1,G.Z=2,G.M=3,k.arraycopy=function(t,e,n,r,s){for(var o=0,l=e;l0},interfaces_:function(){return[st]},getClass:function(){return vt}}),d(Re.prototype,{isInBoundary:function(t){return t>1},interfaces_:function(){return[st]},getClass:function(){return Re}}),d(Qt.prototype,{isInBoundary:function(t){return t===1},interfaces_:function(){return[st]},getClass:function(){return Qt}}),st.Mod2BoundaryNodeRule=ct,st.EndPointBoundaryNodeRule=vt,st.MultiValentEndPointBoundaryNodeRule=Re,st.MonoValentEndPointBoundaryNodeRule=Qt,st.MOD2_BOUNDARY_RULE=new ct,st.ENDPOINT_BOUNDARY_RULE=new vt,st.MULTIVALENT_ENDPOINT_BOUNDARY_RULE=new Re,st.MONOVALENT_ENDPOINT_BOUNDARY_RULE=new Qt,st.OGC_SFS_BOUNDARY_RULE=st.MOD2_BOUNDARY_RULE,d(at.prototype,{interfaces_:function(){return[]},getClass:function(){return at}}),at.isRing=function(t){return!(t.length<4)&&!!t[0].equals2D(t[t.length-1])},at.ptNotInList=function(t,e){for(var n=0;n=t?e:[]},at.indexOf=function(t,e){for(var n=0;n0)&&(e=t[n]);return e},at.extract=function(t,e,n){e=ot.clamp(e,0,t.length),n=ot.clamp(n,-1,t.length);var r=n-e+1;n<0&&(r=0),e>=t.length&&(r=0),nr.length)return 1;if(n.length===0)return 0;var s=at.compare(n,r),o=at.isEqualReversed(n,r);return o?0:s},OLDcompare:function(t,e){var n=t,r=e;if(n.lengthr.length)return 1;if(n.length===0)return 0;for(var s=at.increasingDirection(n),o=at.increasingDirection(r),l=s>0?0:n.length-1,x=o>0?0:n.length-1,A=0;A0))return e.value;e=e.right}}return null},Vt.prototype.put=function(t,e){if(this.root_===null)return this.root_={key:t,value:e,left:null,right:null,parent:null,color:fn,getValue:function(){return this.value},getKey:function(){return this.key}},this.size_=1,null;var n,r,s=this.root_;do if(n=s,r=t.compareTo(s.key),r<0)s=s.left;else{if(!(r>0)){var o=s.value;return s.value=e,o}s=s.right}while(s!==null);var l={key:t,left:null,right:null,value:e,parent:n,color:fn,getValue:function(){return this.value},getKey:function(){return this.key}};return r<0?n.left=l:n.right=l,this.fixAfterInsertion(l),this.size_++,null},Vt.prototype.fixAfterInsertion=function(t){for(t.color=Bn;t!=null&&t!=this.root_&&t.parent.color==Bn;)if(Et(t)==Mr(Et(Et(t)))){var e=Ni(Et(Et(t)));ke(e)==Bn?(Oe(Et(t),fn),Oe(e,fn),Oe(Et(Et(t)),Bn),t=Et(Et(t))):(t==Ni(Et(t))&&(t=Et(t),this.rotateLeft(t)),Oe(Et(t),fn),Oe(Et(Et(t)),Bn),this.rotateRight(Et(Et(t))))}else{var e=Mr(Et(Et(t)));ke(e)==Bn?(Oe(Et(t),fn),Oe(e,fn),Oe(Et(Et(t)),Bn),t=Et(Et(t))):(t==Mr(Et(t))&&(t=Et(t),this.rotateRight(t)),Oe(Et(t),fn),Oe(Et(Et(t)),Bn),this.rotateLeft(Et(Et(t))))}this.root_.color=fn},Vt.prototype.values=function(){var t=new C,e=this.getFirstEntry();if(e!==null)for(t.add(e.value);(e=Vt.successor(e))!==null;)t.add(e.value);return t},Vt.prototype.entrySet=function(){var t=new Rt,e=this.getFirstEntry();if(e!==null)for(t.add(e);(e=Vt.successor(e))!==null;)t.add(e);return t},Vt.prototype.rotateLeft=function(t){if(t!=null){var e=t.right;t.right=e.left,e.left!=null&&(e.left.parent=t),e.parent=t.parent,t.parent==null?this.root_=e:t.parent.left==t?t.parent.left=e:t.parent.right=e,e.left=t,t.parent=e}},Vt.prototype.rotateRight=function(t){if(t!=null){var e=t.left;t.left=e.right,e.right!=null&&(e.right.parent=t),e.parent=t.parent,t.parent==null?this.root_=e:t.parent.right==t?t.parent.right=e:t.parent.left=e,e.right=t,t.parent=e}},Vt.prototype.getFirstEntry=function(){var t=this.root_;if(t!=null)for(;t.left!=null;)t=t.left;return t},Vt.successor=function(t){if(t===null)return null;if(t.right!==null){for(var e=t.right;e.left!==null;)e=e.left;return e}for(var e=t.parent,n=t;e!==null&&n===e.right;)n=e,e=e.parent;return e},Vt.prototype.size=function(){return this.size_},d(or.prototype,{interfaces_:function(){return[]},getClass:function(){return or}}),Ci.prototype=new zt,Jt.prototype=new Ci,Jt.prototype.contains=function(t){for(var e=0,n=this.array_.length;e=0;){var l=s.substring(0,o);r.add(l),s=s.substring(o+n),o=s.indexOf(e)}s.length>0&&r.add(s);for(var x=new Array(r.size()).fill(null),A=0;A0)for(var o=s;o0&&r.append(" ");for(var o=0;o0&&r.append(","),r.append(ye.toString(t.getOrdinate(s,o)))}return r.append(")"),r.toString()}},kt.ensureValidRing=function(t,e){var n=e.size();if(n===0)return e;if(n<=3)return kt.createClosedRing(t,e,4);var r=e.getOrdinate(0,G.X)===e.getOrdinate(n-1,G.X)&&e.getOrdinate(0,G.Y)===e.getOrdinate(n-1,G.Y);return r?e:kt.createClosedRing(t,e,n+1)},kt.createClosedRing=function(t,e,n){var r=t.create(n,e.getDimension()),s=e.size();kt.copy(e,0,r,0,s);for(var o=s;o0&&kt.reverse(this.points),null}},getCoordinate:function(){return this.isEmpty()?null:this.points.getCoordinate(0)},getBoundaryDimension:function(){return this.isClosed()?tt.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 nt.computeLength(this.points)},getNumPoints:function(){return this.points.size()},reverse:function(){var t=this.points.copy();kt.reverse(t);var e=this.getFactory().createLineString(t);return e},compareToSameClass:function(){if(arguments.length===1){for(var t=arguments[0],e=t,n=0,r=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 qt(this.points.copy(),this.factory)},interfaces_:function(){return[]},getClass:function(){return qt}}),qt.MINIMUM_VALID_SIZE=4,qt.serialVersionUID=-0x3b229e262367a600,y(Zt,xt),d(Zt.prototype,{getSortIndex:function(){return Q.SORTINDEX_MULTIPOLYGON},equalsExact:function(){if(arguments.length===2){var t=arguments[0],e=arguments[1];return!!this.isEquivalentClass(t)&&xt.prototype.equalsExact.call(this,t,e)}return xt.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[Si]},getClass:function(){return bs}}),d(Ms.prototype,{edit:function(t,e){return t instanceof qt?e.createLinearRing(this.edit(t.getCoordinateSequence(),t)):t instanceof mt?e.createLineString(this.edit(t.getCoordinateSequence(),t)):t instanceof At?e.createPoint(this.edit(t.getCoordinateSequence(),t)):t},interfaces_:function(){return[Si]},getClass:function(){return Ms}}),xe.NoOpGeometryOperation=Rs,xe.CoordinateOperation=bs,xe.CoordinateSequenceOperation=Ms,d(Ee.prototype,{setOrdinate:function(t,e,n){switch(e){case G.X:this.coordinates[t].x=n;break;case G.Y:this.coordinates[t].y=n;break;case G.Z:this.coordinates[t].z=n;break;default:throw new a}},size:function(){return this.coordinates.length},getOrdinate:function(t,e){switch(e){case G.X:return this.coordinates[t].x;case G.Y:return this.coordinates[t].y;case G.Z:return this.coordinates[t].z}return c.NaN},getCoordinate:function(){if(arguments.length===1){var t=arguments[0];return this.coordinates[t]}if(arguments.length===2){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 v(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 F(17*this.coordinates.length);t.append("("),t.append(this.coordinates[0]);for(var e=1;e3&&(r=3),r<2?new Ee(n):new Ee(n,r)}},interfaces_:function(){return[rt,m]},getClass:function(){return mn}}),mn.instance=function(){return mn.instanceObject},mn.serialVersionUID=-0x38e49fa6cf6f2e00,mn.instanceObject=new mn;var Ke,$o=Object.defineProperty,ta=Go({delete:zo,has:Xo,get:Vo,set:Uo,keys:Ho,values:Wo,entries:Zo,forEach:jo,clear:Yo}),ea=typeof Map<"u"&&Map.prototype.values?Map:ta;nn.prototype=new $e,nn.prototype.get=function(t){return this.map_.get(t)||null},nn.prototype.put=function(t,e){return this.map_.set(t,e),e},nn.prototype.values=function(){for(var t=new C,e=this.map_.values(),n=e.next();!n.done;)t.add(n.value),n=e.next();return t},nn.prototype.entrySet=function(){var t=new Rt;return this.map_.entries().forEach(function(e){return t.add(e)}),t},nn.prototype.size=function(){return this.map_.size()},d(St.prototype,{equals:function(t){if(!(t instanceof St))return!1;var e=t;return this.modelType===e.modelType&&this.scale===e.scale},compareTo:function(t){var e=t,n=this.getMaximumSignificantDigits(),r=e.getMaximumSignificantDigits();return new Y(n).compareTo(new Y(r))},getScale:function(){return this.scale},isFloating:function(){return this.modelType===St.FLOATING||this.modelType===St.FLOATING_SINGLE},getType:function(){return this.modelType},toString:function(){var t="UNKNOWN";return this.modelType===St.FLOATING?t="Floating":this.modelType===St.FLOATING_SINGLE?t="Floating-Single":this.modelType===St.FIXED&&(t="Fixed (Scale="+this.getScale()+")"),t},makePrecise:function(){if(typeof arguments[0]=="number"){var t=arguments[0];if(c.isNaN(t))return t;if(this.modelType===St.FLOATING_SINGLE){var e=t;return e}return this.modelType===St.FIXED?Math.round(t*this.scale)/this.scale:t}if(arguments[0]instanceof v){var n=arguments[0];if(this.modelType===St.FLOATING)return null;n.x=this.makePrecise(n.x),n.y=this.makePrecise(n.y)}},getMaximumSignificantDigits:function(){var t=16;return this.modelType===St.FLOATING?t=16:this.modelType===St.FLOATING_SINGLE?t=6:this.modelType===St.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[m,f]},getClass:function(){return St}}),St.mostPrecise=function(t,e){return t.compareTo(e)>=0?t:e},d(Xe.prototype,{readResolve:function(){return Xe.nameToTypeMap.get(this.name)},toString:function(){return this.name},interfaces_:function(){return[m]},getClass:function(){return Xe}}),Xe.serialVersionUID=-552860263173159e4,Xe.nameToTypeMap=new nn,St.Type=Xe,St.serialVersionUID=7777263578777804e3,St.FIXED=new Xe("FIXED"),St.FLOATING=new Xe("FLOATING"),St.FLOATING_SINGLE=new Xe("FLOATING SINGLE"),St.maximumPreciseValue=9007199254740992,d(yt.prototype,{toGeometry:function(t){return t.isNull()?this.createPoint(null):t.getMinX()===t.getMaxX()&&t.getMinY()===t.getMaxY()?this.createPoint(new v(t.getMinX(),t.getMinY())):t.getMinX()===t.getMaxX()||t.getMinY()===t.getMaxY()?this.createLineString([new v(t.getMinX(),t.getMinY()),new v(t.getMaxX(),t.getMaxY())]):this.createPolygon(this.createLinearRing([new v(t.getMinX(),t.getMinY()),new v(t.getMinX(),t.getMaxY()),new v(t.getMaxX(),t.getMaxY()),new v(t.getMaxX(),t.getMinY()),new v(t.getMinX(),t.getMinY())]),null)},createLineString:function(){if(arguments.length===0)return this.createLineString(this.getCoordinateSequenceFactory().create([]));if(arguments.length===1){if(arguments[0]instanceof Array){var t=arguments[0];return this.createLineString(t!==null?this.getCoordinateSequenceFactory().create(t):null)}if(X(arguments[0],G)){var e=arguments[0];return new mt(e,this)}}},createMultiLineString:function(){if(arguments.length===0)return new ce(null,this);if(arguments.length===1){var t=arguments[0];return new ce(t,this)}},buildGeometry:function(t){for(var e=null,n=!1,r=!1,s=t.iterator();s.hasNext();){var o=s.next(),l=o.getClass();e===null&&(e=l),l!==e&&(n=!0),o.isGeometryCollectionOrDerived()&&(r=!0)}if(e===null)return this.createGeometryCollection();if(n||r)return this.createGeometryCollection(yt.toGeometryArray(t));var x=t.iterator().next(),A=t.size()>1;if(A){if(x instanceof Mt)return this.createMultiPolygon(yt.toPolygonArray(t));if(x instanceof mt)return this.createMultiLineString(yt.toLineStringArray(t));if(x instanceof At)return this.createMultiPoint(yt.toPointArray(t));I.shouldNeverReachHere("Unhandled class: "+x.getClass().getName())}return x},createMultiPointFromCoords:function(t){return this.createMultiPoint(t!==null?this.getCoordinateSequenceFactory().create(t):null)},createPoint:function(){if(arguments.length===0)return this.createPoint(this.getCoordinateSequenceFactory().create([]));if(arguments.length===1){if(arguments[0]instanceof v){var t=arguments[0];return this.createPoint(t!==null?this.getCoordinateSequenceFactory().create([t]):null)}if(X(arguments[0],G)){var e=arguments[0];return new At(e,this)}}},getCoordinateSequenceFactory:function(){return this.coordinateSequenceFactory},createPolygon:function(){if(arguments.length===0)return new Mt(null,null,this);if(arguments.length===1){if(X(arguments[0],G)){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 qt){var n=arguments[0];return this.createPolygon(n,null)}}else if(arguments.length===2){var r=arguments[0],s=arguments[1];return new Mt(r,s,this)}},getSRID:function(){return this.SRID},createGeometryCollection:function(){if(arguments.length===0)return new xt(null,this);if(arguments.length===1){var t=arguments[0];return new xt(t,this)}},createGeometry:function(t){var e=new xe(this);return e.edit(t,{edit:function(){if(arguments.length===2){var n=arguments[0];return this.coordinateSequenceFactory.create(n)}}})},getPrecisionModel:function(){return this.precisionModel},createLinearRing:function(){if(arguments.length===0)return this.createLinearRing(this.getCoordinateSequenceFactory().create([]));if(arguments.length===1){if(arguments[0]instanceof Array){var t=arguments[0];return this.createLinearRing(t!==null?this.getCoordinateSequenceFactory().create(t):null)}if(X(arguments[0],G)){var e=arguments[0];return new qt(e,this)}}},createMultiPolygon:function(){if(arguments.length===0)return new Zt(null,this);if(arguments.length===1){var t=arguments[0];return new Zt(t,this)}},createMultiPoint:function(){if(arguments.length===0)return new fe(null,this);if(arguments.length===1){if(arguments[0]instanceof Array){var t=arguments[0];return new fe(t,this)}if(arguments[0]instanceof Array){var e=arguments[0];return this.createMultiPoint(e!==null?this.getCoordinateSequenceFactory().create(e):null)}if(X(arguments[0],G)){var n=arguments[0];if(n===null)return this.createMultiPoint(new Array(0).fill(null));for(var r=new Array(n.size()).fill(null),s=0;sn?(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(arguments.length===0)return!!this.isInteriorIntersection(0)||!!this.isInteriorIntersection(1);if(arguments.length===1){for(var t=arguments[0],e=0;es?r:s;else{var l=Math.abs(t.x-e.x),x=Math.abs(t.y-e.y);o=r>s?l:x,o!==0||t.equals(e)||(o=Math.max(l,x))}return I.isTrue(!(o===0&&!t.equals(e)),"Bad distance calculation"),o},Pt.nonRobustComputeEdgeDistance=function(t,e,n){var r=t.x-e.x,s=t.y-e.y,o=Math.sqrt(r*r+s*s);return I.isTrue(!(o===0&&!t.equals(e)),"Invalid distance calculation"),o},Pt.DONT_INTERSECT=0,Pt.DO_INTERSECT=1,Pt.COLLINEAR=2,Pt.NO_INTERSECTION=0,Pt.POINT_INTERSECTION=1,Pt.COLLINEAR_INTERSECTION=2,y(Ht,Pt),d(Ht.prototype,{isInSegmentEnvelopes:function(t){var e=new B(this.inputLines[0][0],this.inputLines[0][1]),n=new B(this.inputLines[1][0],this.inputLines[1][1]);return e.contains(t)&&n.contains(t)},computeIntersection:function(){if(arguments.length!==3)return Pt.prototype.computeIntersection.apply(this,arguments);var t=arguments[0],e=arguments[1],n=arguments[2];return this._isProper=!1,B.intersects(e,n,t)&&nt.orientationIndex(e,n,t)===0&&nt.orientationIndex(n,e,t)===0?(this._isProper=!0,(t.equals(e)||t.equals(n))&&(this._isProper=!1),this.result=Pt.POINT_INTERSECTION,null):void(this.result=Pt.NO_INTERSECTION)},normalizeToMinimum:function(t,e,n,r,s){s.x=this.smallestInAbsValue(t.x,e.x,n.x,r.x),s.y=this.smallestInAbsValue(t.y,e.y,n.y,r.y),t.x-=s.x,t.y-=s.y,e.x-=s.x,e.y-=s.y,n.x-=s.x,n.y-=s.y,r.x-=s.x,r.y-=s.y},safeHCoordinateIntersection:function(t,e,n,r){var s=null;try{s=j.intersection(t,e,n,r)}catch(o){if(!(o instanceof W))throw o;s=Ht.nearestEndpoint(t,e,n,r)}finally{}return s},intersection:function(t,e,n,r){var s=this.intersectionWithNormalization(t,e,n,r);return this.isInSegmentEnvelopes(s)||(s=new v(Ht.nearestEndpoint(t,e,n,r))),this.precisionModel!==null&&this.precisionModel.makePrecise(s),s},smallestInAbsValue:function(t,e,n,r){var s=t,o=Math.abs(s);return Math.abs(e)1e-4&&k.out.println("Distance = "+s.distance(o))},intersectionWithNormalization:function(t,e,n,r){var s=new v(t),o=new v(e),l=new v(n),x=new v(r),A=new v;this.normalizeToEnvCentre(s,o,l,x,A);var V=this.safeHCoordinateIntersection(s,o,l,x);return V.x+=A.x,V.y+=A.y,V},computeCollinearIntersection:function(t,e,n,r){var s=B.intersects(t,e,n),o=B.intersects(t,e,r),l=B.intersects(n,r,t),x=B.intersects(n,r,e);return s&&o?(this.intPt[0]=n,this.intPt[1]=r,Pt.COLLINEAR_INTERSECTION):l&&x?(this.intPt[0]=t,this.intPt[1]=e,Pt.COLLINEAR_INTERSECTION):s&&l?(this.intPt[0]=n,this.intPt[1]=t,!n.equals(t)||o||x?Pt.COLLINEAR_INTERSECTION:Pt.POINT_INTERSECTION):s&&x?(this.intPt[0]=n,this.intPt[1]=e,!n.equals(e)||o||l?Pt.COLLINEAR_INTERSECTION:Pt.POINT_INTERSECTION):o&&l?(this.intPt[0]=r,this.intPt[1]=t,!r.equals(t)||s||x?Pt.COLLINEAR_INTERSECTION:Pt.POINT_INTERSECTION):o&&x?(this.intPt[0]=r,this.intPt[1]=e,!r.equals(e)||s||l?Pt.COLLINEAR_INTERSECTION:Pt.POINT_INTERSECTION):Pt.NO_INTERSECTION},normalizeToEnvCentre:function(t,e,n,r,s){var o=t.xe.x?t.x:e.x,A=t.y>e.y?t.y:e.y,V=n.xr.x?n.x:r.x,$=n.y>r.y?n.y:r.y,ut=o>V?o:V,ft=xZ?l:Z,Ot=A<$?A:$,Xt=(ut+ft)/2,Ve=(gt+Ot)/2;s.x=Xt,s.y=Ve,t.x-=s.x,t.y-=s.y,e.x-=s.x,e.y-=s.y,n.x-=s.x,n.y-=s.y,r.x-=s.x,r.y-=s.y},computeIntersect:function(t,e,n,r){if(this._isProper=!1,!B.intersects(t,e,n,r))return Pt.NO_INTERSECTION;var s=nt.orientationIndex(t,e,n),o=nt.orientationIndex(t,e,r);if(s>0&&o>0||s<0&&o<0)return Pt.NO_INTERSECTION;var l=nt.orientationIndex(n,r,t),x=nt.orientationIndex(n,r,e);if(l>0&&x>0||l<0&&x<0)return Pt.NO_INTERSECTION;var A=s===0&&o===0&&l===0&&x===0;return A?this.computeCollinearIntersection(t,e,n,r):(s===0||o===0||l===0||x===0?(this._isProper=!1,t.equals2D(n)||t.equals2D(r)?this.intPt[0]=t:e.equals2D(n)||e.equals2D(r)?this.intPt[0]=e:s===0?this.intPt[0]=new v(n):o===0?this.intPt[0]=new v(r):l===0?this.intPt[0]=new v(t):x===0&&(this.intPt[0]=new v(e))):(this._isProper=!0,this.intPt[0]=this.intersection(t,e,n,r)),Pt.POINT_INTERSECTION)},interfaces_:function(){return[]},getClass:function(){return Ht}}),Ht.nearestEndpoint=function(t,e,n,r){var s=t,o=nt.distancePointLine(t,n,r),l=nt.distancePointLine(e,n,r);return l0?n>0?-s:s:n>0?s:-s;if(e===0||n===0)return r>0?t>0?s:-s:t>0?-s:s;if(0=r?(t=-t,e=-e,n=-n,r=-r):(s=-s,o=-t,t=-n,n=o,o=-e,e=-r,r=o),0=n))return-s;s=-s,t=-t,n=-n}for(;;){if(l=Math.floor(n/t),n-=l*t,r-=l*e,r<0)return-s;if(r>e)return s;if(t>n+n){if(er+r)return-s;n=t-n,r=e-r,s=-s}if(r===0)return n===0?0:-s;if(n===0||(l=Math.floor(t/n),t-=l*n,e-=l*r,e<0))return s;if(e>r)return-s;if(n>t+t){if(re+e)return s;t=n-t,e=r-e,s=-s}if(e===0)return t===0?0:s;if(t===0)return-s}},d(kn.prototype,{countSegment:function(t,e){if(t.xr&&(n=e.x,r=t.x),this.p.x>=n&&this.p.x<=r&&(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 s=t.x-this.p.x,o=t.y-this.p.y,l=e.x-this.p.x,x=e.y-this.p.y,A=Vn.signOfDet2x2(s,o,l,x);if(A===0)return this.isPointOnSegment=!0,null;x0&&this.crossingCount++}},isPointInPolygon:function(){return this.getLocation()!==L.EXTERIOR},getLocation:function(){return this.isPointOnSegment?L.BOUNDARY:this.crossingCount%2===1?L.INTERIOR:L.EXTERIOR},isOnSegment:function(){return this.isPointOnSegment},interfaces_:function(){return[]},getClass:function(){return kn}}),kn.locatePointInRing=function(){if(arguments[0]instanceof v&&X(arguments[1],G)){for(var t=arguments[0],e=arguments[1],n=new kn(t),r=new v,s=new v,o=1;o1||A<0||A>1)&&(s=!0)}}else s=!0;return s?ot.min(nt.distancePointLine(t,n,r),nt.distancePointLine(e,n,r),nt.distancePointLine(n,t,e),nt.distancePointLine(r,t,e)):0},nt.isPointInRing=function(t,e){return nt.locatePointInRing(t,e)!==L.EXTERIOR},nt.computeLength=function(t){var e=t.size();if(e<=1)return 0;var n=0,r=new v;t.getCoordinate(0,r);for(var s=r.x,o=r.y,l=1;ln.y&&(n=o,r=s)}var l=r;do l-=1,l<0&&(l=e);while(t[l].equals2D(n)&&l!==r);var x=r;do x=(x+1)%e;while(t[x].equals2D(n)&&x!==r);var A=t[l],V=t[x];if(A.equals2D(n)||V.equals2D(n)||A.equals2D(V))return!1;var Z=nt.computeOrientation(A,n,V);return Z===0?A.x>V.x:Z>0},nt.locatePointInRing=function(t,e){return kn.locatePointInRing(t,e)},nt.distancePointLinePerpendicular=function(t,e,n){var r=(n.x-e.x)*(n.x-e.x)+(n.y-e.y)*(n.y-e.y),s=((e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y))/r;return Math.abs(s)*Math.sqrt(r)},nt.computeOrientation=function(t,e,n){return nt.orientationIndex(t,e,n)},nt.distancePointLine=function(){if(arguments.length===2){var t=arguments[0],e=arguments[1];if(e.length===0)throw new a;for(var n=t.distance(e[0]),r=0;r=1)return o.distance(x);var Z=((l.y-o.y)*(x.x-l.x)-(l.x-o.x)*(x.y-l.y))/A;return Math.abs(Z)*Math.sqrt(A)}},nt.isOnLine=function(t,e){for(var n=new Ht,r=1;r=0&&n>=0||e<=0&&n<=0?Math.max(e,n):0}if(arguments[0]instanceof v){var r=arguments[0];return nt.orientationIndex(this.p0,this.p1,r)}},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 dt))return!1;var e=t;return this.p0.equals(e.p0)&&this.p1.equals(e.p1)},intersection:function(t){var e=new Ht;return e.computeIntersection(this.p0,this.p1,t.p0,t.p1),e.hasIntersection()?e.getIntersection(0):null},project:function(){if(arguments[0]instanceof v){var t=arguments[0];if(t.equals(this.p0)||t.equals(this.p1))return new v(t);var e=this.projectionFactor(t),n=new v;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 dt){var r=arguments[0],s=this.projectionFactor(r.p0),o=this.projectionFactor(r.p1);if(s>=1&&o>=1||s<=0&&o<=0)return null;var l=this.project(r.p0);s<0&&(l=this.p0),s>1&&(l=this.p1);var x=this.project(r.p1);return o<0&&(x=this.p0),o>1&&(x=this.p1),new dt(l,x)}},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 t===0?this.p0:this.p1},distancePerpendicular:function(t){return nt.distancePointLinePerpendicular(t,this.p0,this.p1)},minY:function(){return Math.min(this.p0.y,this.p1.y)},midPoint:function(){return dt.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,r=e*e+n*n;if(r<=0)return c.NaN;var s=((t.x-this.p0.x)*e+(t.y-this.p0.y)*n)/r;return s},closestPoints:function(t){var e=this.intersection(t);if(e!==null)return[e,e];var n=new Array(2).fill(null),r=c.MAX_VALUE,s=null,o=this.closestPoint(t.p0);r=o.distance(t.p0),n[0]=o,n[1]=t.p0;var l=this.closestPoint(t.p1);s=l.distance(t.p1),s0&&e<1)return this.project(t);var n=this.p0.distance(t),r=this.p1.distance(t);return n1||c.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 dt){var t=arguments[0];return nt.distanceLineLine(this.p0,this.p1,t.p0,t.p1)}if(arguments[0]instanceof v){var e=arguments[0];return nt.distancePointLine(e,this.p0,this.p1)}},pointAlong:function(t){var e=new v;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);n^=31*java.lang.Double.doubleToLongBits(this.p1.y);var r=Math.trunc(n)^Math.trunc(n>>32);return e^r},interfaces_:function(){return[f,m]},getClass:function(){return dt}}),dt.midPoint=function(t,e){return new v((t.x+e.x)/2,(t.y+e.y)/2)},dt.serialVersionUID=0x2d2172135f411c00,d(bt.prototype,{isIntersects:function(){return!this.isDisjoint()},isCovers:function(){var t=bt.isTrue(this.matrix[L.INTERIOR][L.INTERIOR])||bt.isTrue(this.matrix[L.INTERIOR][L.BOUNDARY])||bt.isTrue(this.matrix[L.BOUNDARY][L.INTERIOR])||bt.isTrue(this.matrix[L.BOUNDARY][L.BOUNDARY]);return t&&this.matrix[L.EXTERIOR][L.INTERIOR]===tt.FALSE&&this.matrix[L.EXTERIOR][L.BOUNDARY]===tt.FALSE},isCoveredBy:function(){var t=bt.isTrue(this.matrix[L.INTERIOR][L.INTERIOR])||bt.isTrue(this.matrix[L.INTERIOR][L.BOUNDARY])||bt.isTrue(this.matrix[L.BOUNDARY][L.INTERIOR])||bt.isTrue(this.matrix[L.BOUNDARY][L.BOUNDARY]);return t&&this.matrix[L.INTERIOR][L.EXTERIOR]===tt.FALSE&&this.matrix[L.BOUNDARY][L.EXTERIOR]===tt.FALSE},set:function(){if(arguments.length===1)for(var t=arguments[0],e=0;e=0&&e>=0&&this.setAtLeast(t,e,n)},isWithin:function(){return bt.isTrue(this.matrix[L.INTERIOR][L.INTERIOR])&&this.matrix[L.INTERIOR][L.EXTERIOR]===tt.FALSE&&this.matrix[L.BOUNDARY][L.EXTERIOR]===tt.FALSE},isTouches:function(t,e){return t>e?this.isTouches(e,t):(t===tt.A&&e===tt.A||t===tt.L&&e===tt.L||t===tt.L&&e===tt.A||t===tt.P&&e===tt.A||t===tt.P&&e===tt.L)&&this.matrix[L.INTERIOR][L.INTERIOR]===tt.FALSE&&(bt.isTrue(this.matrix[L.INTERIOR][L.BOUNDARY])||bt.isTrue(this.matrix[L.BOUNDARY][L.INTERIOR])||bt.isTrue(this.matrix[L.BOUNDARY][L.BOUNDARY]))},isOverlaps:function(t,e){return t===tt.P&&e===tt.P||t===tt.A&&e===tt.A?bt.isTrue(this.matrix[L.INTERIOR][L.INTERIOR])&&bt.isTrue(this.matrix[L.INTERIOR][L.EXTERIOR])&&bt.isTrue(this.matrix[L.EXTERIOR][L.INTERIOR]):t===tt.L&&e===tt.L&&this.matrix[L.INTERIOR][L.INTERIOR]===1&&bt.isTrue(this.matrix[L.INTERIOR][L.EXTERIOR])&&bt.isTrue(this.matrix[L.EXTERIOR][L.INTERIOR])},isEquals:function(t,e){return t===e&&bt.isTrue(this.matrix[L.INTERIOR][L.INTERIOR])&&this.matrix[L.INTERIOR][L.EXTERIOR]===tt.FALSE&&this.matrix[L.BOUNDARY][L.EXTERIOR]===tt.FALSE&&this.matrix[L.EXTERIOR][L.INTERIOR]===tt.FALSE&&this.matrix[L.EXTERIOR][L.BOUNDARY]===tt.FALSE},toString:function(){for(var t=new F("123456789"),e=0;e<3;e++)for(var n=0;n<3;n++)t.setCharAt(3*e+n,tt.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(t.length!==9)throw new a;for(var e=0;e<3;e++)for(var n=0;n<3;n++)if(!bt.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[L.INTERIOR][L.INTERIOR]===tt.FALSE&&this.matrix[L.INTERIOR][L.BOUNDARY]===tt.FALSE&&this.matrix[L.BOUNDARY][L.INTERIOR]===tt.FALSE&&this.matrix[L.BOUNDARY][L.BOUNDARY]===tt.FALSE},isCrosses:function(t,e){return t===tt.P&&e===tt.L||t===tt.P&&e===tt.A||t===tt.L&&e===tt.A?bt.isTrue(this.matrix[L.INTERIOR][L.INTERIOR])&&bt.isTrue(this.matrix[L.INTERIOR][L.EXTERIOR]):t===tt.L&&e===tt.P||t===tt.A&&e===tt.P||t===tt.A&&e===tt.L?bt.isTrue(this.matrix[L.INTERIOR][L.INTERIOR])&&bt.isTrue(this.matrix[L.EXTERIOR][L.INTERIOR]):t===tt.L&&e===tt.L&&this.matrix[L.INTERIOR][L.INTERIOR]===0},interfaces_:function(){return[p]},getClass:function(){return bt}}),bt.matches=function(){if(Number.isInteger(arguments[0])&&typeof arguments[1]=="string"){var t=arguments[0],e=arguments[1];return e===tt.SYM_DONTCARE||e===tt.SYM_TRUE&&(t>=0||t===tt.TRUE)||e===tt.SYM_FALSE&&t===tt.FALSE||e===tt.SYM_P&&t===tt.P||e===tt.SYM_L&&t===tt.L||e===tt.SYM_A&&t===tt.A}if(typeof arguments[0]=="string"&&typeof arguments[1]=="string"){var n=arguments[0],r=arguments[1],s=new bt(n);return s.matches(r)}},bt.isTrue=function(t){return t>=0||t===tt.TRUE};var na=Object.freeze({Coordinate:v,CoordinateList:q,Envelope:B,LineSegment:dt,GeometryFactory:yt,Geometry:Q,Point:At,LineString:mt,LinearRing:qt,Polygon:Mt,GeometryCollection:xt,MultiPoint:fe,MultiLineString:ce,MultiPolygon:Zt,Dimension:tt,IntersectionMatrix:bt,PrecisionModel:St});d(rn.prototype,{addPoint:function(t){this.ptCount+=1,this.ptCentSum.x+=t.x,this.ptCentSum.y+=t.y},setBasePoint:function(t){this.areaBasePt===null&&(this.areaBasePt=t)},addLineSegments:function(t){for(var e=0,n=0;n0&&this.addPoint(t[0])},addHole:function(t){for(var e=nt.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=!nt.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(this.array_.length===0)throw new Li;return this.array_.pop()},re.prototype.peek=function(){if(this.array_.length===0)throw new Li;return this.array_[this.array_.length-1]},re.prototype.empty=function(){return this.array_.length===0},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),r=this.toCoordinateArray(n);return this.lineOrPolygon(r)},padArray3:function(t){for(var e=new Array(3).fill(null),n=0;ne[2].y&&(e[2]=t[r]),t[r].x+t[r].y>e[3].x+e[3].y&&(e[3]=t[r]),t[r].x>e[4].x&&(e[4]=t[r]),t[r].x-t[r].y>e[5].x-e[5].y&&(e[5]=t[r]),t[r].y0;)e=n.pop();e=n.push(e),e=n.push(t[r])}return e=n.push(t[0]),n},interfaces_:function(){return[]},getClass:function(){return sn}}),sn.extractCoordinates=function(t){var e=new ar;return t.apply(e),e.getCoordinates()},d(ur.prototype,{compare:function(t,e){var n=t,r=e;return ur.polarCompare(this.origin,n,r)},interfaces_:function(){return[g]},getClass:function(){return ur}}),ur.polarCompare=function(t,e,n){var r=e.x-t.x,s=e.y-t.y,o=n.x-t.x,l=n.y-t.y,x=nt.computeOrientation(t,e,n);if(x===nt.COUNTERCLOCKWISE)return 1;if(x===nt.CLOCKWISE)return-1;var A=r*r+s*s,V=o*o+l*l;return AV?1:0},sn.RadialComparator=ur,d(oe.prototype,{transformPoint:function(t,e){return this.factory.createPoint(this.transformCoordinates(t.getCoordinateSequence(),t))},transformPolygon:function(t,e){var n=!0,r=this.transformLinearRing(t.getExteriorRing(),t);r!==null&&r instanceof qt&&!r.isEmpty()||(n=!1);for(var s=new C,o=0;o0&&r<4&&!this.preserveType?this.factory.createLineString(n):this.factory.createLinearRing(n)},interfaces_:function(){return[]},getClass:function(){return oe}}),d(lr.prototype,{snapVertices:function(t,e){for(var n=this._isClosed?t.size()-1:t.size(),r=0;r=0&&t.add(o+1,new v(s),!1)}},findSegmentIndexToSnap:function(t,e){for(var n=c.MAX_VALUE,r=-1,s=0;se&&(e=r)}return e}if(arguments.length===2){var s=arguments[0],o=arguments[1];return Math.min(ie.computeOverlaySnapTolerance(s),ie.computeOverlaySnapTolerance(o))}},ie.computeSizeBasedSnapTolerance=function(t){var e=t.getEnvelopeInternal(),n=Math.min(e.getHeight(),e.getWidth()),r=n*ie.SNAP_PRECISION_FACTOR;return r},ie.snapToSelf=function(t,e,n){var r=new ie(t);return r.snapToSelf(e,n)},ie.SNAP_PRECISION_FACTOR=1e-9,y(Pr,oe),d(Pr.prototype,{snapLine:function(t,e){var n=new lr(t,this.snapTolerance);return n.setAllowSnappingToSourceVertices(this.isSelfSnap),n.snapTo(e)},transformCoordinates:function(t,e){var n=t.toCoordinateArray(),r=this.snapLine(n,this.snapPts);return this.factory.getCoordinateSequenceFactory().create(r)},interfaces_:function(){return[]},getClass:function(){return Pr}}),d(Ie.prototype,{getCommon:function(){return c.longBitsToDouble(this.commonBits)},add:function(t){var e=c.doubleToLongBits(t);if(this.isFirst)return this.commonBits=e,this.commonSignExp=Ie.signExpBits(this.commonBits),this.isFirst=!1,null;var n=Ie.signExpBits(e);return n!==this.commonSignExp?(this.commonBits=0,null):(this.commonMantissaBitsCount=Ie.numCommonMostSigMantissaBits(this.commonBits,e),void(this.commonBits=Ie.zeroLowerBits(this.commonBits,64-(12+this.commonMantissaBitsCount))))},toString:function(){if(arguments.length===1){var t=arguments[0],e=c.longBitsToDouble(t),n=Long.toBinaryString(t),r="0000000000000000000000000000000000000000000000000000000000000000"+n,s=r.substring(r.length-64),o=s.substring(0,1)+" "+s.substring(1,12)+"(exp) "+s.substring(12)+" [ "+e+" ]";return o}},interfaces_:function(){return[]},getClass:function(){return Ie}}),Ie.getBit=function(t,e){var n=1<>52},Ie.zeroLowerBits=function(t,e){var n=(1<=0;r--){if(Ie.getBit(t,r)!==Ie.getBit(e,r))return n;n++}return 52},d(Tr.prototype,{addCommonBits:function(t){var e=new Or(this.commonCoord);t.apply(e),t.geometryChanged()},removeCommonBits:function(t){if(this.commonCoord.x===0&&this.commonCoord.y===0)return t;var e=new v(this.commonCoord);e.x=-e.x,e.y=-e.y;var n=new Or(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 Tr}}),d(Ri.prototype,{filter:function(t){this.commonBitsX.add(t.x),this.commonBitsY.add(t.y)},getCommonCoordinate:function(){return new v(this.commonBitsX.getCommon(),this.commonBitsY.getCommon())},interfaces_:function(){return[lt]},getClass:function(){return Ri}}),d(Or.prototype,{filter:function(t,e){var n=t.getOrdinate(e,0)+this.trans.x,r=t.getOrdinate(e,1)+this.trans.y;t.setOrdinate(e,0,n),t.setOrdinate(e,1,r)},isDone:function(){return!1},isGeometryChanged:function(){return!0},interfaces_:function(){return[zn]},getClass:function(){return Or}}),Tr.CommonCoordinateFilter=Ri,Tr.Translater=Or,d(Xn.prototype,{next:function(){if(this.atStart)return this.atStart=!1,Xn.isAtomic(this.parent)&&this.index++,this.parent;if(this.subcollectionIterator!==null){if(this.subcollectionIterator.hasNext())return this.subcollectionIterator.next();this.subcollectionIterator=null}if(this.index>=this.max)throw new O;var t=this.parent.getGeometryN(this.index++);return t instanceof xt?(this.subcollectionIterator=new Xn(t),this.subcollectionIterator.next()):t},remove:function(){throw new UnsupportedOperationException(this.getClass().getName())},hasNext:function(){if(this.atStart)return!0;if(this.subcollectionIterator!==null){if(this.subcollectionIterator.hasNext())return!0;this.subcollectionIterator=null}return!(this.index>=this.max)},interfaces_:function(){return[T]},getClass:function(){return Xn}}),Xn.isAtomic=function(t){return!(t instanceof xt)},d(Un.prototype,{locateInternal:function(){if(arguments[0]instanceof v&&arguments[1]instanceof Mt){var t=arguments[0],e=arguments[1];if(e.isEmpty())return L.EXTERIOR;var n=e.getExteriorRing(),r=this.locateInPolygonRing(t,n);if(r===L.EXTERIOR)return L.EXTERIOR;if(r===L.BOUNDARY)return L.BOUNDARY;for(var s=0;s0||this.isIn?L.INTERIOR:L.EXTERIOR)},interfaces_:function(){return[]},getClass:function(){return Un}}),d(hr.prototype,{interfaces_:function(){return[]},getClass:function(){return hr}}),hr.octant=function(){if(typeof arguments[0]=="number"&&typeof arguments[1]=="number"){var t=arguments[0],e=arguments[1];if(t===0&&e===0)throw new a;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 v&&arguments[1]instanceof v){var s=arguments[0],o=arguments[1],l=o.x-s.x,x=o.y-s.y;if(l===0&&x===0)throw new a;return hr.octant(l,x)}},d(_r.prototype,{getCoordinates:function(){},size:function(){},getCoordinate:function(t){},isClosed:function(){},setData:function(t){},getData:function(){},interfaces_:function(){return[]},getClass:function(){return _r}}),d(Os.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:hr.octant(this.getCoordinate(t),this.getCoordinate(t+1))},setData:function(t){this.data=t},getData:function(){return this.data},toString:function(){return $t.toLineString(new Ee(this.pts))},interfaces_:function(){return[_r]},getClass:function(){return Os}}),d(bi.prototype,{getBounds:function(){},interfaces_:function(){return[]},getClass:function(){return bi}}),d(on.prototype,{getItem:function(){return this.item},getBounds:function(){return this.bounds},interfaces_:function(){return[bi,m]},getClass:function(){return on}}),d(_s.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,e!==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 this._size===0},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 _s}}),d(Cn.prototype,{visitItem:function(t){},interfaces_:function(){return[]},getClass:function(){return Cn}}),d(Mi.prototype,{insert:function(t,e){},remove:function(t,e){},query:function(){},interfaces_:function(){return[]},getClass:function(){return Mi}}),d(se.prototype,{getLevel:function(){return this.level},size:function(){return this.childBoundables.size()},getChildBoundables:function(){return this.childBoundables},addChildBoundable:function(t){I.isTrue(this.bounds===null),this.childBoundables.add(t)},isEmpty:function(){return this.childBoundables.isEmpty()},getBounds:function(){return this.bounds===null&&(this.bounds=this.computeBounds()),this.bounds},interfaces_:function(){return[bi,m]},getClass:function(){return se}}),se.serialVersionUID=6493722185909574e3;var Qe={reverseOrder:function(){return{compare:function(t,e){return e.compareTo(t)}}},min:function(t){return Qe.sort(t),t.get(0)},sort:function(t,e){var n=t.toArray();e?_e.sort(n,e):_e.sort(n);for(var r=t.iterator(),s=0,o=n.length;sae.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 a},isLeaves:function(){return!(ae.isComposite(this.boundable1)||ae.isComposite(this.boundable2))},compareTo:function(t){var e=t;return this._distancee._distance?1:0},expand:function(t,e,n,r){for(var s=t.getChildBoundables(),o=s.iterator();o.hasNext();){var l=o.next(),x=new ae(l,e,this.itemDistance);x.getDistance()-2),r.getLevel()===n)return s.add(r),null;for(var o=r.getChildBoundables().iterator();o.hasNext();){var l=o.next();l instanceof se?this.boundablesAtLevel(n,l,s):(I.isTrue(l instanceof on),n===-1&&s.add(l))}return null}},query:function(){if(arguments.length===1){var t=arguments[0];this.build();var e=new C;return this.isEmpty()||this.getIntersectsOp().intersects(this.root.getBounds(),t)&&this.query(t,this.root,e),e}if(arguments.length===2){var n=arguments[0],r=arguments[1];if(this.build(),this.isEmpty())return null;this.getIntersectsOp().intersects(this.root.getBounds(),n)&&this.query(n,this.root,r)}else if(arguments.length===3){if(X(arguments[2],Cn)&&arguments[0]instanceof Object&&arguments[1]instanceof se)for(var s=arguments[0],o=arguments[1],l=arguments[2],x=o.getChildBoundables(),A=0;Ae&&(e=s)}}return e+1}},createParentBoundables:function(t,e){I.isTrue(!t.isEmpty());var n=new C;n.add(this.createNode(e));var r=new C(t);Qe.sort(r,this.getComparator());for(var s=r.iterator();s.hasNext();){var o=s.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[m]},getClass:function(){return Gt}}),Gt.compareDoubles=function(t,e){return t>e?1:t0);for(var n=new C,r=0;r0;){var Z=V.poll(),K=Z.getDistance();if(K>=x)break;Z.isLeaves()?(x=K,A=Z):Z.expandToQueue(V,x)}return[A.getBoundable(0).getItem(),A.getBoundable(1).getItem()]}}else if(arguments.length===3){var $=arguments[0],ut=arguments[1],ft=arguments[2],gt=new on($,ut),e=new ae(this.getRoot(),gt,ft);return this.nearestNeighbour(e)[0]}},interfaces_:function(){return[Mi,m]},getClass:function(){return Dt}}),Dt.centreX=function(t){return Dt.avg(t.getMinX(),t.getMaxX())},Dt.avg=function(t,e){return(t+e)/2},Dt.centreY=function(t){return Dt.avg(t.getMinY(),t.getMaxY())},y(Ar,se),d(Ar.prototype,{computeBounds:function(){for(var t=null,e=this.getChildBoundables().iterator();e.hasNext();){var n=e.next();t===null?t=new B(n.getBounds()):t.expandToInclude(n.getBounds())}return t},interfaces_:function(){return[]},getClass:function(){return Ar}}),Dt.STRtreeNode=Ar,Dt.serialVersionUID=0x39920f7d5f261e0,Dt.xComparator={interfaces_:function(){return[g]},compare:function(t,e){return Gt.compareDoubles(Dt.centreX(t.getBounds()),Dt.centreX(e.getBounds()))}},Dt.yComparator={interfaces_:function(){return[g]},compare:function(t,e){return Gt.compareDoubles(Dt.centreY(t.getBounds()),Dt.centreY(e.getBounds()))}},Dt.intersectsOp={interfaces_:function(){return[IntersectsOp]},intersects:function(t,e){return t.intersects(e)}},Dt.DEFAULT_NODE_CAPACITY=10,d(ue.prototype,{interfaces_:function(){return[]},getClass:function(){return ue}}),ue.relativeSign=function(t,e){return te?1:0},ue.compare=function(t,e,n){if(e.equals2D(n))return 0;var r=ue.relativeSign(e.x,n.x),s=ue.relativeSign(e.y,n.y);switch(t){case 0:return ue.compareValue(r,s);case 1:return ue.compareValue(s,r);case 2:return ue.compareValue(s,-r);case 3:return ue.compareValue(-r,s);case 4:return ue.compareValue(-r,-s);case 5:return ue.compareValue(-s,-r);case 6:return ue.compareValue(-s,r);case 7:return ue.compareValue(r,-s)}return I.shouldNeverReachHere("invalid octant value"),0},ue.compareValue=function(t,e){return t<0?-1:t>0?1:e<0?-1:e>0?1:0},d(As.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:ue.compare(this.segmentOctant,this.coord,e.coord)},isEndPoint:function(t){return this.segmentIndex===0&&!this._isInterior||this.segmentIndex===t},isInterior:function(){return this._isInterior},interfaces_:function(){return[f]},getClass:function(){return As}}),d(Ds.prototype,{getSplitCoordinates:function(){var t=new q;this.addEndpoints();for(var e=this.iterator(),n=e.next();e.hasNext();){var r=e.next();this.addEdgeCoordinates(n,r,t),n=r}return t.toCoordinateArray()},addCollapsedNodes:function(){var t=new C;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();){var n=e.next();n.print(t)}},findCollapsesFromExistingVertices:function(t){for(var e=0;ethis.currNode.segmentIndex,null)},remove:function(){throw new UnsupportedOperationException(this.getClass().getName())},hasNext:function(){return this.nextNode!==null},readNextNode:function(){this.nodeIt.hasNext()?this.nextNode=this.nodeIt.next():this.nextNode=null},interfaces_:function(){return[T]},getClass:function(){return wo}}),d(Fs.prototype,{addIntersection:function(t,e){},interfaces_:function(){return[_r]},getClass:function(){return Fs}}),d(Ue.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:this.safeOctant(this.getCoordinate(t),this.getCoordinate(t+1))},setData:function(t){this.data=t},safeOctant:function(t,e){return t.equals2D(e)?0:hr.octant(t,e)},getData:function(){return this.data},addIntersection:function(){if(arguments.length===2){var t=arguments[0],e=arguments[1];this.addIntersectionNode(t,e)}else if(arguments.length===4){var n=arguments[0],r=arguments[1],s=arguments[3],o=new v(n.getIntersection(s));this.addIntersection(o,r)}},toString:function(){return $t.toLineString(new Ee(this.pts))},getNodeList:function(){return this.nodeList},addIntersectionNode:function(t,e){var n=e,r=n+1;if(re?t:e;return r===0&&s===3?3:r},Nt.isInHalfPlane=function(t,e){return e===Nt.SE?t===Nt.SE||t===Nt.SW:t===e||t===e+1},Nt.quadrant=function(){if(typeof arguments[0]=="number"&&typeof arguments[1]=="number"){var t=arguments[0],e=arguments[1];if(t===0&&e===0)throw new a;return t>=0?e>=0?Nt.NE:Nt.SE:e>=0?Nt.NW:Nt.SW}if(arguments[0]instanceof v&&arguments[1]instanceof v){var n=arguments[0],r=arguments[1];if(r.x===n.x&&r.y===n.y)throw new a;return r.x>=n.x?r.y>=n.y?Nt.NE:Nt.SE:r.y>=n.y?Nt.NW:Nt.SW}},Nt.NE=0,Nt.NW=1,Nt.SW=2,Nt.SE=3,d(Ae.prototype,{interfaces_:function(){return[]},getClass:function(){return Ae}}),Ae.getChainStartIndices=function(t){var e=0,n=new C;n.add(new Y(e));do{var r=Ae.findChainEnd(t,e);n.add(new Y(r)),e=r}while(e=t.length-1)return t.length-1;for(var r=Nt.quadrant(t[n],t[n+1]),s=e+1;sn.getId()&&(n.computeOverlaps(o,t),this.nOverlaps++),this.segInt.isDone())return null}},interfaces_:function(){return[]},getClass:function(){return wn}}),y(qr,Dr),d(qr.prototype,{overlap:function(){if(arguments.length!==4)return Dr.prototype.overlap.apply(this,arguments);var t=arguments[0],e=arguments[1],n=arguments[2],r=arguments[3],s=t.getContext(),o=n.getContext();this.si.processIntersections(s,e,o,r)},interfaces_:function(){return[]},getClass:function(){return qr}}),wn.SegmentOverlapAction=qr,y(ge,N),d(ge.prototype,{getCoordinate:function(){return this.pt},interfaces_:function(){return[]},getClass:function(){return ge}}),ge.msgWithCoord=function(t,e){return e!==null?t+" [ "+e+" ]":t},d(Gr.prototype,{processIntersections:function(t,e,n,r){},isDone:function(){},interfaces_:function(){return[]},getClass:function(){return Gr}}),d(vn.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,r){if(!this.findAllIntersections&&this.hasIntersection()||t===n&&e===r)return null;if(this.isCheckEndSegmentsOnly){var s=this.isEndSegment(t,e)||this.isEndSegment(n,r);if(!s)return null}var o=t.getCoordinates()[e],l=t.getCoordinates()[e+1],x=n.getCoordinates()[r],A=n.getCoordinates()[r+1];this.li.computeIntersection(o,l,x,A),this.li.hasIntersection()&&this.li.isInteriorIntersection()&&(this.intSegments=new Array(4).fill(null),this.intSegments[0]=o,this.intSegments[1]=l,this.intSegments[2]=x,this.intSegments[3]=A,this.interiorIntersection=this.li.getIntersection(0),this.keepIntersections&&this.intersections.add(this.interiorIntersection),this.intersectionCount++)},isEndSegment:function(t,e){return e===0||e>=t.size()-2},hasIntersection:function(){return this.interiorIntersection!==null},isDone:function(){return!this.findAllIntersections&&this.interiorIntersection!==null},interfaces_:function(){return[Gr]},getClass:function(){return vn}}),vn.createAllIntersectionsFinder=function(t){var e=new vn(t);return e.setFindAllIntersections(!0),e},vn.createAnyIntersectionFinder=function(t){return new vn(t)},vn.createIntersectionCounter=function(t){var e=new vn(t);return e.setFindAllIntersections(!0),e.setKeepIntersections(!1),e},d(Br.prototype,{execute:function(){return this.segInt!==null?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 vn(this.li),this.segInt.setFindAllIntersections(this.findAllIntersections);var t=new wn;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 ge(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 "+$t.toLineString(t[0],t[1])+" and "+$t.toLineString(t[2],t[3])},interfaces_:function(){return[]},getClass:function(){return Br}}),Br.computeIntersections=function(t){var e=new Br(t);return e.setFindAllIntersections(!0),e.isValid(),e.getIntersections()},d(Yn.prototype,{checkValid:function(){this.nv.checkValid()},interfaces_:function(){return[]},getClass:function(){return Yn}}),Yn.toSegmentStrings=function(t){for(var e=new C,n=t.iterator();n.hasNext();){var r=n.next();e.add(new Os(r.getCoordinates(),r))}return e},Yn.checkValid=function(t){var e=new Yn(t);e.checkValid()},d(cr.prototype,{map:function(t){for(var e=new C,n=0;nthis.location.length){var e=new Array(3).fill(null);e[et.ON]=this.location[et.ON],e[et.LEFT]=L.NONE,e[et.RIGHT]=L.NONE,this.location=e}for(var n=0;n1&&t.append(L.toLocationSymbol(this.location[et.LEFT])),t.append(L.toLocationSymbol(this.location[et.ON])),this.location.length>1&&t.append(L.toLocationSymbol(this.location[et.RIGHT])),t.toString()},setLocations:function(t,e,n){this.location[et.ON]=t,this.location[et.LEFT]=e,this.location[et.RIGHT]=n},get:function(t){return t1},isAnyNull:function(){for(var t=0;tthis.maxNodeDegree&&(this.maxNodeDegree=n),t=this.getNext(t)}while(t!==this.startDe);this.maxNodeDegree*=2},addPoints:function(t,e,n){var r=t.getCoordinates();if(e){var s=1;n&&(s=0);for(var o=s;o=0;o--)this.pts.add(r[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(),n=e.getEnvelopeInternal();if(!n.contains(t)||!nt.isPointInRing(t,e.getCoordinates()))return!1;for(var r=this.holes.iterator();r.hasNext();){var s=r.next();if(s.containsPoint(t))return!1}return!0},addHole:function(t){this.holes.add(t)},isShell:function(){return this.shell===null},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(arguments.length===1){var t=arguments[0];this.mergeLabel(t,0),this.mergeLabel(t,1)}else if(arguments.length===2){var e=arguments[0],n=arguments[1],r=e.getLocation(n,et.RIGHT);if(r===L.NONE)return null;if(this.label.getLocation(n)===L.NONE)return this.label.setLocation(n,r),null}},setShell:function(t){this.shell=t,t!==null&&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 Sn}}),y(an,Sn),d(an.prototype,{isIncidentEdgeInResult:function(){for(var t=this.getEdges().getEdges().iterator();t.hasNext();){var e=t.next();if(e.getEdge().isInResult())return!0}return!1},isIsolated:function(){return this.label.getGeometryCount()===1},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=L.NONE;if(n=this.label.getLocation(e),!t.isNull(e)){var r=t.getLocation(e);n!==L.BOUNDARY&&(n=r)}return n},setLabel:function(){if(arguments.length!==2)return Sn.prototype.setLabel.apply(this,arguments);var t=arguments[0],e=arguments[1];this.label===null?this.label=new Bt(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 Bt)for(var e=arguments[0],n=0;n<2;n++){var r=this.computeMergedLocation(e,n),s=this.label.getLocation(n);s===L.NONE&&this.label.setLocation(n,r)}},add:function(t){this.edges.insert(t),t.setNode(this)},setLabelBoundary:function(t){if(this.label===null)return null;var e=L.NONE;this.label!==null&&(e=this.label.getLocation(t));var n=null;switch(e){case L.BOUNDARY:n=L.INTERIOR;break;case L.INTERIOR:n=L.BOUNDARY;break;default:n=L.BOUNDARY}this.label.setLocation(t,n)},interfaces_:function(){return[]},getClass:function(){return an}}),d(gr.prototype,{find:function(t){return this.nodeMap.get(t)},addNode:function(){if(arguments[0]instanceof v){var t=arguments[0],e=this.nodeMap.get(t);return e===null&&(e=this.nodeFact.createNode(t),this.nodeMap.put(t,e)),e}if(arguments[0]instanceof an){var n=arguments[0],e=this.nodeMap.get(n.getCoordinate());return e===null?(this.nodeMap.put(n.getCoordinate(),n),n):(e.mergeLabel(n),e)}},print:function(t){for(var e=this.iterator();e.hasNext();){var n=e.next();n.print(t)}},iterator:function(){return this.nodeMap.values().iterator()},values:function(){return this.nodeMap.values()},getBoundaryNodes:function(t){for(var e=new C,n=this.iterator();n.hasNext();){var r=n.next();r.getLabel().getLocation(t)===L.BOUNDARY&&e.add(r)}return e},add:function(t){var e=t.getCoordinate(),n=this.addNode(e);n.add(t)},interfaces_:function(){return[]},getClass:function(){return gr}}),d(Ye.prototype,{compareDirection:function(t){return this.dx===t.dx&&this.dy===t.dy?0:this.quadrant>t.quadrant?1:this.quadrant2){o.linkDirectedEdgesForMinimalEdgeRings();var l=o.buildMinimalRings(),x=this.findShell(l);x!==null?(this.placePolygonHoles(x,l),e.add(x)):n.addAll(l)}else r.add(o)}return r},containsPoint:function(t){for(var e=this.shellList.iterator();e.hasNext();){var n=e.next();if(n.containsPoint(t))return!0}return!1},buildMaximalEdgeRings:function(t){for(var e=new C,n=t.iterator();n.hasNext();){var r=n.next();if(r.isInResult()&&r.getLabel().isArea()&&r.getEdgeRing()===null){var s=new zr(r,this.geometryFactory);e.add(s),s.setInResult()}}return e},placePolygonHoles:function(t,e){for(var n=e.iterator();n.hasNext();){var r=n.next();r.isHole()&&r.setShell(t)}},getPolygons:function(){var t=this.computePolygons(this.shellList);return t},findEdgeRingContaining:function(t,e){for(var n=t.getLinearRing(),r=n.getEnvelopeInternal(),s=n.getCoordinateN(0),o=null,l=null,x=e.iterator();x.hasNext();){var A=x.next(),V=A.getLinearRing(),Z=V.getEnvelopeInternal();o!==null&&(l=o.getLinearRing().getEnvelopeInternal());var K=!1;Z.contains(r)&&nt.isPointInRing(s,V.getCoordinates())&&(K=!0),K&&(o===null||l.contains(Z))&&(o=A)}return o},findShell:function(t){for(var e=0,n=null,r=t.iterator();r.hasNext();){var s=r.next();s.isHole()||(n=s,e++)}return I.isTrue(e<=1,"found two shells in MinimalEdgeRing list"),n},add:function(){if(arguments.length===1){var t=arguments[0];this.add(t.getEdgeEnds(),t.getNodes())}else if(arguments.length===2){var e=arguments[0],n=arguments[1];He.linkResultDirectedEdges(n);var r=this.buildMaximalEdgeRings(e),s=new C,o=this.buildMinimalEdgeRings(r,this.shellList,s);this.sortShellsAndHoles(o,this.shellList,s),this.placeFreeHoles(this.shellList,s)}},interfaces_:function(){return[]},getClass:function(){return _i}}),d(Gs.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 r=t.getLabel(),s=t.getEdge();t.isLineEdge()&&(t.isVisited()||!ht.isResultOfOp(r,e)||s.isCovered()||(n.add(s),t.setVisitedEdge(!0)))},findCoveredLineEdges:function(){for(var t=this.op.getGraph().getNodes().iterator();t.hasNext();){var e=t.next();e.getEdges().findCoveredLineEdges()}for(var n=this.op.getGraph().getEdgeEnds().iterator();n.hasNext();){var r=n.next(),s=r.getEdge();if(r.isLineEdge()&&!s.isCoveredSet()){var o=this.op.isCoveredByA(r.getCoordinate());s.setCovered(o)}}},labelIsolatedLines:function(t){for(var e=t.iterator();e.hasNext();){var n=e.next(),r=n.getLabel();n.isIsolated()&&(r.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(),r=(n.getLabel(),this.geometryFactory.createLineString(n.getCoordinates()));this.resultLineList.add(r),n.setInResult(!0)}},collectBoundaryTouchEdge:function(t,e,n){var r=t.getLabel();return t.isLineEdge()||t.isVisited()||t.isInteriorAreaEdge()||t.getEdge().isInResult()?null:(I.isTrue(!(t.isInResult()||t.getSym().isInResult())||!t.getEdge().isInResult()),void(ht.isResultOfOp(r,e)&&e===ht.INTERSECTION&&(n.add(t.getEdge()),t.setVisitedEdge(!0))))},interfaces_:function(){return[]},getClass:function(){return Gs}}),d(Bs.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()||n.getEdges().getDegree()!==0&&t!==ht.INTERSECTION)){var r=n.getLabel();ht.isResultOfOp(r,t)&&this.filterCoveredNodeToPoint(n)}}},build:function(t){return this.extractNonCoveredResultNodes(t),this.resultPointList},interfaces_:function(){return[]},getClass:function(){return Bs}}),d(Ai.prototype,{locate:function(t){},interfaces_:function(){return[]},getClass:function(){return Ai}}),d(Ne.prototype,{locate:function(t){return Ne.locate(t,this.geom)},interfaces_:function(){return[Ai]},getClass:function(){return Ne}}),Ne.isPointInRing=function(t,e){return!!e.getEnvelopeInternal().intersects(t)&&nt.isPointInRing(t,e.getCoordinates())},Ne.containsPointInPolygon=function(t,e){if(e.isEmpty())return!1;var n=e.getExteriorRing();if(!Ne.isPointInRing(t,n))return!1;for(var r=0;r=0;n--){var r=this.edgeList.get(n),s=r.getSym();e===null&&(e=s),t!==null&&s.setNext(t),t=r}e.setNext(t)},computeDepths:function(){if(arguments.length===1){var t=arguments[0],e=this.findIndex(t),n=(t.getLabel(),t.getDepth(et.LEFT)),r=t.getDepth(et.RIGHT),s=this.computeDepths(e+1,this.edgeList.size(),n),o=this.computeDepths(0,e,s);if(o!==r)throw new ge("depth mismatch at "+t.getCoordinate())}else if(arguments.length===3){for(var l=arguments[0],x=arguments[1],A=arguments[2],V=A,Z=l;Z=0;s--){var o=this.resultAreaEdgeList.get(s),l=o.getSym();switch(e===null&&o.getEdgeRing()===t&&(e=o),r){case this.SCANNING_FOR_INCOMING:if(l.getEdgeRing()!==t)continue;n=l,r=this.LINKING_TO_OUTGOING;break;case this.LINKING_TO_OUTGOING:if(o.getEdgeRing()!==t)continue;n.setNextMin(o),r=this.SCANNING_FOR_INCOMING}}r===this.LINKING_TO_OUTGOING&&(I.isTrue(e!==null,"found null for first outgoing dirEdge"),I.isTrue(e.getEdgeRing()===t,"unable to link last incoming dirEdge"),n.setNextMin(e))},getOutgoingDegree:function(){if(arguments.length===0){for(var t=0,e=this.iterator();e.hasNext();){var n=e.next();n.isInResult()&&t++}return t}if(arguments.length===1){for(var r=arguments[0],t=0,e=this.iterator();e.hasNext();){var n=e.next();n.getEdgeRing()===r&&t++}return t}},getLabel:function(){return this.label},findCoveredLineEdges:function(){for(var t=L.NONE,e=this.iterator();e.hasNext();){var n=e.next(),r=n.getSym();if(!n.isLineEdge()){if(n.isInResult()){t=L.INTERIOR;break}if(r.isInResult()){t=L.EXTERIOR;break}}}if(t===L.NONE)return null;for(var s=t,e=this.iterator();e.hasNext();){var n=e.next(),r=n.getSym();n.isLineEdge()?n.getEdge().setCovered(s===L.INTERIOR):(n.isInResult()&&(s=L.EXTERIOR),r.isInResult()&&(s=L.INTERIOR))}},computeLabelling:function(t){Zn.prototype.computeLabelling.call(this,t),this.label=new Bt(L.NONE);for(var e=this.iterator();e.hasNext();)for(var n=e.next(),r=n.getEdge(),s=r.getLabel(),o=0;o<2;o++){var l=s.getLocation(o);l!==L.INTERIOR&&l!==L.BOUNDARY||this.label.setLocation(o,L.INTERIOR)}},interfaces_:function(){return[]},getClass:function(){return Di}}),y(dr,Wn),d(dr.prototype,{createNode:function(t){return new an(t,new Di)},interfaces_:function(){return[]},getClass:function(){return dr}}),d(zs.prototype,{computeIntersections:function(t,e){this.mce.computeIntersectsForChain(this.chainIndex,t.mce,t.chainIndex,e)},interfaces_:function(){return[]},getClass:function(){return zs}}),d(un.prototype,{isDelete:function(){return this.eventType===un.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===un.INSERT},isSameLabel:function(t){return this.label!==null&&this.label===t.label},getDeleteEventIndex:function(){return this.deleteEventIndex},interfaces_:function(){return[f]},getClass:function(){return un}}),un.INSERT=1,un.DELETE=2,d(Fi.prototype,{interfaces_:function(){return[]},getClass:function(){return Fi}}),d(Ln.prototype,{isTrivialIntersection:function(t,e,n,r){if(t===n&&this.li.getIntersectionNum()===1){if(Ln.isAdjacentSegments(e,r))return!0;if(t.isClosed()){var s=t.getNumPoints()-1;if(e===0&&r===s||r===0&&e===s)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 r=n.next(),s=r.getCoordinate();if(t.isIntersection(s))return!0}return!1},hasProperIntersection:function(){return this.hasProper},hasIntersection:function(){return this._hasIntersection},isDone:function(){return this._isDone},isBoundaryPoint:function(t,e){return e!==null&&(!!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,r){if(t===n&&e===r)return null;this.numTests++;var s=t.getCoordinates()[e],o=t.getCoordinates()[e+1],l=n.getCoordinates()[r],x=n.getCoordinates()[r+1];this.li.computeIntersection(s,o,l,x),this.li.hasIntersection()&&(this.recordIsolated&&(t.setIsolated(!1),n.setIsolated(!1)),this.numIntersections++,this.isTrivialIntersection(t,e,n,r)||(this._hasIntersection=!0,!this.includeProper&&this.li.isProper()||(t.addIntersections(this.li,e,0),n.addIntersections(this.li,r,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 Ln}}),Ln.isAdjacentSegments=function(t,e){return Math.abs(t-e)===1},y(qi,Fi),d(qi.prototype,{prepareEvents:function(){Qe.sort(this.events);for(var t=0;te||this.maxo?1:0},interfaces_:function(){return[g]},getClass:function(){return Vs}}),Jn.NodeComparator=Vs,y(Gi,Jn),d(Gi.prototype,{query:function(t,e,n){return this.intersects(t,e)?void n.visitItem(this.item):null},interfaces_:function(){return[]},getClass:function(){return Gi}}),y(Bi,Jn),d(Bi.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)?(this.node1!==null&&this.node1.query(t,e,n),void(this.node2!==null&&this.node2.query(t,e,n))):null},interfaces_:function(){return[]},getClass:function(){return Bi}}),d(ks.prototype,{buildTree:function(){Qe.sort(this.leaves,new IntervalRTreeNode.NodeComparator);for(var t=this.leaves,e=null,n=new C;;){if(this.buildLevel(t,n),n.size()===1)return n.get(0);e=t,t=n,n=e}},insert:function(t,e,n){if(this.root!==null)throw new IllegalStateException("Index cannot be added to once it has been queried");this.leaves.add(new Gi(t,e,n))},query:function(t,e,n){this.init(),this.root.query(t,e,n)},buildRoot:function(){return this.root!==null?null:void(this.root=this.buildTree())},printNode:function(t){k.out.println($t.toLineString(new v(t.min,this.level),new v(t.max,this.level)))},init:function(){return this.root!==null?null:void this.buildRoot()},buildLevel:function(t,e){this.level++,e.clear();for(var n=0;n0||!e.coord.equals2D(r);s||n--;var o=new Array(n).fill(null),l=0;o[l++]=new v(t.coord);for(var x=t.segmentIndex+1;x<=e.segmentIndex;x++)o[l++]=this.edge.pts[x];return s&&(o[l]=e.coord),new be(o,new Bt(this.edge.label))},add:function(t,e,n){var r=new Xs(t,e,n),s=this.nodeMap.get(r);return s!==null?s:(this.nodeMap.put(r,r),r)},isIntersection:function(t){for(var e=this.iterator();e.hasNext();){var n=e.next();if(n.coord.equals(t))return!0}return!1},interfaces_:function(){return[]},getClass:function(){return Us}}),d(kr.prototype,{getChainStartIndices:function(t){var e=0,n=new C;n.add(new Y(e));do{var r=this.findChainEnd(t,e);n.add(new Y(r)),e=r}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&&(r=1),this.depth[t][n]=r}}},getDelta:function(t){return this.depth[t][et.RIGHT]-this.depth[t][et.LEFT]},getLocation:function(t,e){return this.depth[t][e]<=0?L.EXTERIOR:L.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(arguments.length===1)for(var t=arguments[0],e=0;e<2;e++)for(var n=1;n<3;n++){var r=t.getLocation(e,n);r!==L.EXTERIOR&&r!==L.INTERIOR||(this.isNull(e,n)?this.depth[e][n]=De.depthAtLocation(r):this.depth[e][n]+=De.depthAtLocation(r))}else if(arguments.length===3){var s=arguments[0],o=arguments[1],l=arguments[2];l===L.INTERIOR&&this.depth[s][o]++}},interfaces_:function(){return[]},getClass:function(){return De}}),De.depthAtLocation=function(t){return t===L.EXTERIOR?0:t===L.INTERIOR?1:De.NULL_VALUE},De.NULL_VALUE=-1,y(be,Sn),d(be.prototype,{getDepth:function(){return this.depth},getCollapsedEdge:function(){var t=new Array(2).fill(null);t[0]=this.pts[0],t[1]=this.pts[1];var e=new be(t,Bt.toLineLabel(this.label));return e},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 be))return!1;var e=t;if(this.pts.length!==e.pts.length)return!1;for(var n=!0,r=!0,s=this.pts.length,o=0;o0?this.pts[0]:null;if(arguments.length===1){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){be.updateIM(this.label,t)},isCollapsed:function(){return!!this.label.isArea()&&this.pts.length===3&&!!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 this.mce===null&&(this.mce=new Ys(this)),this.mce},getEnvelope:function(){if(this.env===null){this.env=new B;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,r=t.iterator();r.hasNext();){var s=r.next();e[n++]=s.getCoordinate().copy()}return e},getBoundaryNodes:function(){return this.boundaryNodes===null&&(this.boundaryNodes=this.nodes.getBoundaryNodes(this.argIndex)),this.boundaryNodes},addSelfIntersectionNode:function(t,e,n){return this.isBoundaryNode(t,e)?null:void(n===L.BOUNDARY&&this.useBoundaryDeterminationRule?this.insertBoundaryPoint(t,e):this.insertPoint(t,e,n))},addPolygonRing:function(t,e,n){if(t.isEmpty())return null;var r=at.removeRepeatedPoints(t.getCoordinates());if(r.length<4)return this._hasTooFewPoints=!0,this.invalidPoint=r[0],null;var s=e,o=n;nt.isCCW(r)&&(s=n,o=e);var l=new be(r,new Bt(this.argIndex,L.BOUNDARY,s,o));this.lineEdgeMap.put(t,l),this.insertEdge(l),this.insertPoint(this.argIndex,r[0],L.BOUNDARY)},insertPoint:function(t,e,n){var r=this.nodes.addNode(e),s=r.getLabel();s===null?r.label=new Bt(t,n):s.setLocation(t,n)},createEdgeSetIntersector:function(){return new qi},addSelfIntersectionNodes:function(t){for(var e=this.edges.iterator();e.hasNext();)for(var n=e.next(),r=n.getLabel().getLocation(t),s=n.eiList.iterator();s.hasNext();){var o=s.next();this.addSelfIntersectionNode(t,o.coord,r)}},add:function(){if(arguments.length!==1)return He.prototype.add.apply(this,arguments);var t=arguments[0];if(t.isEmpty())return null;if(t instanceof Zt&&(this.useBoundaryDeterminationRule=!1),t instanceof Mt)this.addPolygon(t);else if(t instanceof mt)this.addLineString(t);else if(t instanceof At)this.addPoint(t);else if(t instanceof fe)this.addCollection(t);else if(t instanceof ce)this.addCollection(t);else if(t instanceof Zt)this.addCollection(t);else{if(!(t instanceof xt))throw new UnsupportedOperationException(t.getClass().getName());this.addCollection(t)}},addCollection:function(t){for(var e=0;e50?(this.areaPtLocator===null&&(this.areaPtLocator=new Vr(this.parentGeom)),this.areaPtLocator.locate(t)):this.ptLocator.locate(t,this.parentGeom)},findEdge:function(){if(arguments.length===1){var t=arguments[0];return this.lineEdgeMap.get(t)}return He.prototype.findEdge.apply(this,arguments)},interfaces_:function(){return[]},getClass:function(){return le}}),le.determineBoundary=function(t,e){return t.isInBoundary(e)?L.BOUNDARY:L.INTERIOR},d(Rn.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 Rn}}),d(bn.prototype,{compareTo:function(t){var e=t,n=bn.compareOriented(this.pts,this._orientation,e.pts,e._orientation);return n},interfaces_:function(){return[f]},getClass:function(){return bn}}),bn.orientation=function(t){return at.increasingDirection(t)===1},bn.compareOriented=function(t,e,n,r){for(var s=e?1:-1,o=r?1:-1,l=e?t.length:-1,x=r?n.length:-1,A=e?0:t.length-1,V=r?0:n.length-1;;){var Z=t[A].compareTo(n[V]);if(Z!==0)return Z;A+=s,V+=o;var K=A===l,$=V===x;if(K&&!$)return-1;if(!K&&$)return 1;if(K&&$)return 0}},d(Xi.prototype,{print:function(t){t.print("MULTILINESTRING ( ");for(var e=0;e0&&t.print(","),t.print("(");for(var r=n.getCoordinates(),s=0;s0&&t.print(","),t.print(r[s].x+" "+r[s].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 xt){var e=arguments[0];if(e.isEmpty())return e;for(var n=e.getGeometryN(0),r=1;rn.getEnvelopeInternal().getWidth()&&(n=e.getGeometryN(r));return n}if(arguments[0]instanceof Q){var s=arguments[0];return s instanceof xt?this.widestGeometry(s):s}},horizontalBisector:function(t){var e=t.getEnvelopeInternal(),n=pr.getBisectorY(t);return this.factory.createLineString([new v(e.getMinX(),n),new v(e.getMaxX(),n)])},add:function(t){if(t instanceof Mt)this.addPolygon(t);else if(t instanceof xt)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++)this.subnode[e]!==null&&(t+=this.subnode[e].nodeSize());return t+1},add:function(t){this.items.add(t)},interfaces_:function(){return[]},getClass:function(){return We}}),We.getSubnodeIndex=function(t,e){var n=-1;return t.min>=e&&(n=1),t.max<=e&&(n=0),n},d(ln.prototype,{expandToInclude:function(t){t.max>this.max&&(this.max=t.max),t.minn||this.max=this.min&&e<=this.max}}else if(arguments.length===2){var n=arguments[0],r=arguments[1];return n>=this.min&&r<=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 ln}}),jn.exponent=function(t){return Qo(64,t)-1023},jn.powerOf2=function(t){return Math.pow(2,t)},d(Xr.prototype,{getInterval:function(){return this.interval},getLevel:function(){return this.level},computeKey:function(t){for(this.level=Xr.computeLevel(t),this.interval=new ln,this.computeInterval(this.level,t);!this.interval.contains(t);)this.level+=1,this.computeInterval(this.level,t)},computeInterval:function(t,e){var n=jn.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 Xr}}),Xr.computeLevel=function(t){var e=t.getWidth(),n=jn.exponent(e)+1;return n},y(yn,We),d(yn.prototype,{getInterval:function(){return this.interval},find:function(t){var e=We.getSubnodeIndex(t,this.centre);if(e===-1)return this;if(this.subnode[e]!==null){var n=this.subnode[e];return n.find(t)}return this},insert:function(t){I.isTrue(this.interval===null||this.interval.contains(t.interval));var e=We.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 this.subnode[t]===null&&(this.subnode[t]=this.createSubnode(t)),this.subnode[t]},getNode:function(t){var e=We.getSubnodeIndex(t,this.centre);if(e!==-1){var n=this.getSubnode(e);return n.getNode(t)}return 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()}var r=new ln(e,n),s=new yn(r,this.level-1);return s},interfaces_:function(){return[]},getClass:function(){return yn}}),yn.createNode=function(t){var e=new Xr(t),n=new yn(e.getInterval(),e.getLevel());return n},yn.createExpanded=function(t,e){var n=new ln(e);t!==null&&n.expandToInclude(t.interval);var r=yn.createNode(n);return t!==null&&r.insert(t),r},d(Pn.prototype,{interfaces_:function(){return[]},getClass:function(){return Pn}}),Pn.isZeroWidth=function(t,e){var n=e-t;if(n===0)return!0;var r=Math.max(Math.abs(t),Math.abs(e)),s=n/r,o=jn.exponent(s);return o<=Pn.MIN_BINARY_EXPONENT},Pn.MIN_BINARY_EXPONENT=-50,y(mr,We),d(mr.prototype,{insert:function(t,e){var n=We.getSubnodeIndex(t,mr.origin);if(n===-1)return this.add(e),null;var r=this.subnode[n];if(r===null||!r.getInterval().contains(t)){var s=yn.createExpanded(r,t);this.subnode[n]=s}this.insertContained(this.subnode[n],t,e)},isSearchMatch:function(t){return!0},insertContained:function(t,e,n){I.isTrue(t.getInterval().contains(e));var r=Pn.isZeroWidth(e.getMin(),e.getMax()),s=null;s=r?t.find(e):t.getNode(e),s.add(n)},interfaces_:function(){return[]},getClass:function(){return mr}}),mr.origin=0,d(vr.prototype,{size:function(){return this.root!==null?this.root.size():0},insert:function(t,e){this.collectStats(t);var n=vr.ensureExtent(t,this.minExtent);this.root.insert(n,e)},query:function(){if(arguments.length===1){if(typeof arguments[0]=="number"){var t=arguments[0];return this.query(new ln(t,t))}if(arguments[0]instanceof ln){var e=arguments[0],n=new C;return this.query(e,n),n}}else if(arguments.length===2){var r=arguments[0],s=arguments[1];this.root.addAllItemsFromOverlapping(r,s)}},iterator:function(){var t=new C;return this.root.addAllItems(t),t.iterator()},remove:function(t,e){var n=vr.ensureExtent(t,this.minExtent);return this.root.remove(n,e)},collectStats:function(t){var e=t.getWidth();e0&&(this.minExtent=e)},depth:function(){return this.root!==null?this.root.depth():0},nodeSize:function(){return this.root!==null?this.root.nodeSize():0},interfaces_:function(){return[]},getClass:function(){return vr}}),vr.ensureExtent=function(t,e){var n=t.getMin(),r=t.getMax();return n!==r?t:(n===r&&(n-=e/2,r=n+e/2),new ln(n,r))},d(Hs.prototype,{isInside:function(t){},interfaces_:function(){return[]},getClass:function(){return Hs}}),d(Ur.prototype,{testLineSegment:function(t,e){var n=null,r=null,s=null,o=null,l=null,x=e.p0,A=e.p1;r=x.x-t.x,s=x.y-t.y,o=A.x-t.x,l=A.y-t.y,(s>0&&l<=0||l>0&&s<=0)&&(n=Vn.signOfDet2x2(r,s,o,l)/(l-s),0Math.PI;)t-=pt.PI_TIMES_2;for(;t<=-Math.PI;)t+=pt.PI_TIMES_2;return t},pt.angle=function(){if(arguments.length===1){var t=arguments[0];return Math.atan2(t.y,t.x)}if(arguments.length===2){var e=arguments[0],n=arguments[1],r=n.x-e.x,s=n.y-e.y;return Math.atan2(s,r)}},pt.isAcute=function(t,e,n){var r=t.x-e.x,s=t.y-e.y,o=n.x-e.x,l=n.y-e.y,x=r*o+s*l;return x>0},pt.isObtuse=function(t,e,n){var r=t.x-e.x,s=t.y-e.y,o=n.x-e.x,l=n.y-e.y,x=r*o+s*l;return x<0},pt.interiorAngle=function(t,e,n){var r=pt.angle(e,t),s=pt.angle(e,n);return Math.abs(s-r)},pt.normalizePositive=function(t){if(t<0){for(;t<0;)t+=pt.PI_TIMES_2;t>=pt.PI_TIMES_2&&(t=0)}else{for(;t>=pt.PI_TIMES_2;)t-=pt.PI_TIMES_2;t<0&&(t=0)}return t},pt.angleBetween=function(t,e,n){var r=pt.angle(e,t),s=pt.angle(e,n);return pt.diff(r,s)},pt.diff=function(t,e){var n=null;return n=tMath.PI&&(n=2*Math.PI-n),n},pt.toRadians=function(t){return t*Math.PI/180},pt.getTurn=function(t,e){var n=Math.sin(e-t);return n>0?pt.COUNTERCLOCKWISE:n<0?pt.CLOCKWISE:pt.NONE},pt.angleBetweenOriented=function(t,e,n){var r=pt.angle(e,t),s=pt.angle(e,n),o=s-r;return o<=-Math.PI?o+pt.PI_TIMES_2:o>Math.PI?o-pt.PI_TIMES_2:o},pt.PI_TIMES_2=2*Math.PI,pt.PI_OVER_2=Math.PI/2,pt.PI_OVER_4=Math.PI/4,pt.COUNTERCLOCKWISE=nt.COUNTERCLOCKWISE,pt.CLOCKWISE=nt.CLOCKWISE,pt.NONE=nt.COLLINEAR,d(Tt.prototype,{area:function(){return Tt.area(this.p0,this.p1,this.p2)},signedArea:function(){return Tt.signedArea(this.p0,this.p1,this.p2)},interpolateZ:function(t){if(t===null)throw new a;return Tt.interpolateZ(t,this.p0,this.p1,this.p2)},longestSideLength:function(){return Tt.longestSideLength(this.p0,this.p1,this.p2)},isAcute:function(){return Tt.isAcute(this.p0,this.p1,this.p2)},circumcentre:function(){return Tt.circumcentre(this.p0,this.p1,this.p2)},area3D:function(){return Tt.area3D(this.p0,this.p1,this.p2)},centroid:function(){return Tt.centroid(this.p0,this.p1,this.p2)},inCentre:function(){return Tt.inCentre(this.p0,this.p1,this.p2)},interfaces_:function(){return[]},getClass:function(){return Tt}}),Tt.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)},Tt.signedArea=function(t,e,n){return((n.x-t.x)*(e.y-t.y)-(e.x-t.x)*(n.y-t.y))/2},Tt.det=function(t,e,n,r){return t*r-e*n},Tt.interpolateZ=function(t,e,n,r){var s=e.x,o=e.y,l=n.x-s,x=r.x-s,A=n.y-o,V=r.y-o,Z=l*V-x*A,K=t.x-s,$=t.y-o,ut=(V*K-x*$)/Z,ft=(-A*K+l*$)/Z,gt=e.z+ut*(n.z-e.z)+ft*(r.z-e.z);return gt},Tt.longestSideLength=function(t,e,n){var r=t.distance(e),s=e.distance(n),o=n.distance(t),l=r;return s>l&&(l=s),o>l&&(l=o),l},Tt.isAcute=function(t,e,n){return!!pt.isAcute(t,e,n)&&!!pt.isAcute(e,n,t)&&!!pt.isAcute(n,t,e)},Tt.circumcentre=function(t,e,n){var r=n.x,s=n.y,o=t.x-r,l=t.y-s,x=e.x-r,A=e.y-s,V=2*Tt.det(o,l,x,A),Z=Tt.det(l,o*o+l*l,A,x*x+A*A),K=Tt.det(o,o*o+l*l,x,x*x+A*A),$=r-Z/V,ut=s+K/V;return new v($,ut)},Tt.perpendicularBisector=function(t,e){var n=e.x-t.x,r=e.y-t.y,s=new j(t.x+n/2,t.y+r/2,1),o=new j(t.x-r+n/2,t.y+n+r/2,1);return new j(s,o)},Tt.angleBisector=function(t,e,n){var r=e.distance(t),s=e.distance(n),o=r/(r+s),l=n.x-t.x,x=n.y-t.y,A=new v(t.x+o*l,t.y+o*x);return A},Tt.area3D=function(t,e,n){var r=e.x-t.x,s=e.y-t.y,o=e.z-t.z,l=n.x-t.x,x=n.y-t.y,A=n.z-t.z,V=s*A-o*x,Z=o*l-r*A,K=r*x-s*l,$=V*V+Z*Z+K*K,ut=Math.sqrt($)/2;return ut},Tt.centroid=function(t,e,n){var r=(t.x+e.x+n.x)/3,s=(t.y+e.y+n.y)/3;return new v(r,s)},Tt.inCentre=function(t,e,n){var r=e.distance(n),s=t.distance(n),o=t.distance(e),l=r+s+o,x=(r*t.x+s*e.x+o*n.x)/l,A=(r*t.y+s*e.y+o*n.y)/l;return new v(x,A)},d(xn.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(this.input.getNumPoints()===1){var n=this.input.getCoordinates();return this.extremalPts=[new v(n[0])],null}var t=this.input.convexHull(),e=t.getCoordinates(),n=e;if(e[0].equals2D(e[e.length-1])&&(n=new Array(e.length-1).fill(null),at.copyDeep(e,0,n,0,e.length-1)),n.length<=2)return this.extremalPts=at.copyDeep(n),null;for(var r=xn.lowestPoint(n),s=xn.pointWitMinAngleWithX(n,r),o=0;o=r;)r=s,o=l,l=ee.nextIndex(t,o),s=e.distancePerpendicular(t[l]);return rr&&(r=x),xo&&(o=A),A=t.length&&(e=0),e},ee.computeC=function(t,e,n){return t*n.y-e*n.x},ee.getMinimumDiameter=function(t){return new ee(t).getDiameter()},ee.getMinimumRectangle=function(t){return new ee(t).getMinimumRectangle()},ee.computeSegmentForLine=function(t,e,n){var r=null,s=null;return Math.abs(e)>Math.abs(t)?(r=new v(0,n/e),s=new v(1,n/e-t/e)):(r=new v(n/t,0),s=new v(n/t-e/t,1)),new dt(r,s)};var ra=Object.freeze({Centroid:rn,CGAlgorithms:nt,ConvexHull:sn,InteriorPointArea:Fe,InteriorPointLine:Ui,InteriorPointPoint:Yi,RobustLineIntersector:Ht,MCPointInRing:Ur,MinimumBoundingCircle:xn,MinimumDiameter:ee});d(Tn.prototype,{getResultGeometry:function(){return new Hr(this.distanceTolerance).transform(this.inputGeom)},setDistanceTolerance:function(t){if(t<=0)throw new a;this.distanceTolerance=t},interfaces_:function(){return[]},getClass:function(){return Tn}}),Tn.densifyPoints=function(t,e,n){for(var r=new dt,s=new q,o=0;o1)for(var A=l/x,V=1;Vl?1:ot&&(t=n)}return t+1},isEmpty:function(){var e=!0;this.items.isEmpty()||(e=!1);for(var n=0;n<4;n++)this.subnode[n]!==null&&(this.subnode[n].isEmpty()||(e=!1));return e},add:function(t){this.items.add(t)},interfaces_:function(){return[m]},getClass:function(){return Ze}}),Ze.getSubnodeIndex=function(t,e,n){var r=-1;return t.getMinX()>=e&&(t.getMinY()>=n&&(r=3),t.getMaxY()<=n&&(r=1)),t.getMaxX()<=e&&(t.getMinY()>=n&&(r=2),t.getMaxY()<=n&&(r=0)),r},d(Zr.prototype,{getLevel:function(){return this.level},computeKey:function(){if(arguments.length===1){var t=arguments[0];for(this.level=Zr.computeQuadLevel(t),this.env=new B,this.computeKey(this.level,t);!this.env.contains(t);)this.level+=1,this.computeKey(this.level,t)}else if(arguments.length===2){var e=arguments[0],n=arguments[1],r=jn.powerOf2(e);this.pt.x=Math.floor(n.getMinX()/r)*r,this.pt.y=Math.floor(n.getMinY()/r)*r,this.env.init(this.pt.x,this.pt.x+r,this.pt.y,this.pt.y+r)}},getEnvelope:function(){return this.env},getCentre:function(){return new v((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 Zr}}),Zr.computeQuadLevel=function(t){var e=t.getWidth(),n=t.getHeight(),r=e>n?e:n,s=jn.exponent(r)+1;return s},y(En,Ze),d(En.prototype,{find:function(t){var e=Ze.getSubnodeIndex(t,this.centrex,this.centrey);if(e===-1)return this;if(this.subnode[e]!==null){var n=this.subnode[e];return n.find(t)}return this},isSearchMatch:function(t){return this.env.intersects(t)},getSubnode:function(t){return this.subnode[t]===null&&(this.subnode[t]=this.createSubnode(t)),this.subnode[t]},getEnvelope:function(){return this.env},getNode:function(t){var e=Ze.getSubnodeIndex(t,this.centrex,this.centrey);if(e!==-1){var n=this.getSubnode(e);return n.getNode(t)}return this},createSubnode:function(t){var e=0,n=0,r=0,s=0;switch(t){case 0:e=this.env.getMinX(),n=this.centrex,r=this.env.getMinY(),s=this.centrey;break;case 1:e=this.centrex,n=this.env.getMaxX(),r=this.env.getMinY(),s=this.centrey;break;case 2:e=this.env.getMinX(),n=this.centrex,r=this.centrey,s=this.env.getMaxY();break;case 3:e=this.centrex,n=this.env.getMaxX(),r=this.centrey,s=this.env.getMaxY()}var o=new B(e,n,r,s),l=new En(o,this.level-1);return l},insertNode:function(t){I.isTrue(this.env===null||this.env.contains(t.env));var e=Ze.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 En}}),En.createNode=function(t){var e=new Zr(t),n=new En(e.getEnvelope(),e.getLevel());return n},En.createExpanded=function(t,e){var n=new B(e);t!==null&&n.expandToInclude(t.env);var r=En.createNode(n);return t!==null&&r.insertNode(t),r},y(Kn,Ze),d(Kn.prototype,{insert:function(t,e){var n=Ze.getSubnodeIndex(t,Kn.origin.x,Kn.origin.y);if(n===-1)return this.add(e),null;var r=this.subnode[n];if(r===null||!r.getEnvelope().contains(t)){var s=En.createExpanded(r,t);this.subnode[n]=s}this.insertContained(this.subnode[n],t,e)},isSearchMatch:function(t){return!0},insertContained:function(t,e,n){I.isTrue(t.getEnvelope().contains(e));var r=Pn.isZeroWidth(e.getMinX(),e.getMaxX()),s=Pn.isZeroWidth(e.getMinY(),e.getMaxY()),o=null;o=r||s?t.find(e):t.getNode(e),o.add(n)},interfaces_:function(){return[]},getClass:function(){return Kn}}),Kn.origin=new v(0,0),d(On.prototype,{size:function(){return this.root!==null?this.root.size():0},insert:function(t,e){this.collectStats(t);var n=On.ensureExtent(t,this.minExtent);this.root.insert(n,e)},query:function(){if(arguments.length===1){var t=arguments[0],e=new zi;return this.query(t,e),e.getItems()}if(arguments.length===2){var n=arguments[0],r=arguments[1];this.root.visit(n,r)}},queryAll:function(){var t=new C;return this.root.addAllItems(t),t},remove:function(t,e){var n=On.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 this.root!==null?this.root.depth():0},isEmpty:function(){return this.root===null},interfaces_:function(){return[Mi,m]},getClass:function(){return On}}),On.ensureExtent=function(t,e){var n=t.getMinX(),r=t.getMaxX(),s=t.getMinY(),o=t.getMaxY();return n!==r&&s!==o?t:(n===r&&(n-=e/2,r=n+e/2),s===o&&(s-=e/2,o=s+e/2),new B(n,r,s,o))},On.serialVersionUID=-7461163625812743e3;var aa=Object.freeze({Quadtree:On}),ua=Object.freeze({STRtree:Dt}),la=Object.freeze({quadtree:aa,strtree:ua}),ha=["Point","MultiPoint","LineString","MultiLineString","Polygon","MultiPolygon"];d(Ws.prototype,{read:function(t){var e=void 0;e=typeof t=="string"?JSON.parse(t):t;var n=e.type;if(!ze[n])throw new Error("Unknown GeoJSON type: "+e.type);return ha.indexOf(n)!==-1?ze[n].apply(this,[e.coordinates]):n==="GeometryCollection"?ze[n].apply(this,[e.geometries]):ze[n].apply(this,[e])},write:function(t){var e=t.getGeometryType();if(!dn[e])throw new Error("Geometry is not supported");return dn[e].apply(this,[t])}});var ze={Feature:function(t){var e={};for(var n in t)e[n]=t[n];if(t.geometry){var r=t.geometry.type;if(!ze[r])throw new Error("Unknown GeoJSON type: "+t.type);e.geometry=this.read(t.geometry)}return t.bbox&&(e.bbox=ze.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&&r===nt.CLOCKWISE)&&(s=!0),s&&(this.minIndex=this.minIndex-1)},getRightmostSideOfSegment:function(t,e){var n=t.getEdge(),r=n.getCoordinates();if(e<0||e+1>=r.length||r[e].y===r[e+1].y)return-1;var s=et.LEFT;return r[e].ythis.minCoord.x)&&(this.minDe=t,this.minIndex=n,this.minCoord=e[n])},findRightmostEdgeAtNode:function(){var t=this.minDe.getNode(),e=t.getEdges();this.minDe=e.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)}I.isTrue(this.minIndex!==0||this.minCoord.equals(this.minDe.getCoordinate()),"inconsistency in rightmost processing"),this.minIndex===0?this.findRightmostEdgeAtNode():this.findRightmostEdgeAtVertex(),this.orientedDe=this.minDe;var r=this.getRightmostSide(this.minDe,this.minIndex);r===et.LEFT&&(this.orientedDe=this.minDe.getSym())},interfaces_:function(){return[]},getClass:function(){return Zs}}),Ji.prototype.addLast=function(t){this.array_.push(t)},Ji.prototype.removeFirst=function(){return this.array_.shift()},Ji.prototype.isEmpty=function(){return this.array_.length===0},d(Js.prototype,{clearVisitedEdges:function(){for(var t=this.dirEdgeList.iterator();t.hasNext();){var e=t.next();e.setVisited(!1)}},getRightmostCoordinate:function(){return this.rightMostCoord},computeNodeDepth:function(t){for(var e=null,n=t.getEdges().iterator();n.hasNext();){var r=n.next();if(r.isVisited()||r.getSym().isVisited()){e=r;break}}if(e===null)throw new ge("unable to find edge to compute depths at "+t.getCoordinate());t.getEdges().computeDepths(e);for(var n=t.getEdges().iterator();n.hasNext();){var r=n.next();r.setVisited(!0),this.copySymDepths(r)}},computeDepth:function(t){this.clearVisitedEdges();var e=this.finder.getEdge();e.getNode(),e.getLabel(),e.setEdgeDepths(et.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(et.RIGHT)>=1&&e.getDepth(et.LEFT)<=0&&!e.isInteriorAreaEdge()&&e.setInResult(!0)}},computeDepths:function(t){var e=new Rt,n=new Ji,r=t.getNode();for(n.addLast(r),e.add(r),t.setVisited(!0);!n.isEmpty();){var s=n.removeFirst();e.add(s),this.computeNodeDepth(s);for(var o=s.getEdges().iterator();o.hasNext();){var l=o.next(),x=l.getSym();if(!x.isVisited()){var A=x.getNode();e.contains(A)||(n.addLast(A),e.add(A))}}}},compareTo:function(t){var e=t;return this.rightMostCoord.xe.rightMostCoord.x?1:0},getEnvelope:function(){if(this.env===null){for(var t=new B,e=this.dirEdgeList.iterator();e.hasNext();)for(var n=e.next(),r=n.getEdge().getCoordinates(),s=0;s=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),n=t.distance(e);return n=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 Qr}}),Qr.COORDINATE_ARRAY_TYPE=new Array(0).fill(null),d(Je.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=nt.computeOrientation(this.s0,this.s1,this.s2),r=n===nt.CLOCKWISE&&this.side===et.LEFT||n===nt.COUNTERCLOCKWISE&&this.side===et.RIGHT;n===0?this.addCollinear(e):r?this.addOutsideTurn(n,e):this.addInsideTurn(n,e)},addLineEndCap:function(t,e){var n=new dt(t,e),r=new dt;this.computeOffsetSegment(n,et.LEFT,this.distance,r);var s=new dt;this.computeOffsetSegment(n,et.RIGHT,this.distance,s);var o=e.x-t.x,l=e.y-t.y,x=Math.atan2(l,o);switch(this.bufParams.getEndCapStyle()){case Ct.CAP_ROUND:this.segList.addPt(r.p1),this.addFilletArc(e,x+Math.PI/2,x-Math.PI/2,nt.CLOCKWISE,this.distance),this.segList.addPt(s.p1);break;case Ct.CAP_FLAT:this.segList.addPt(r.p1),this.segList.addPt(s.p1);break;case Ct.CAP_SQUARE:var A=new v;A.x=Math.abs(this.distance)*Math.cos(x),A.y=Math.abs(this.distance)*Math.sin(x);var V=new v(r.p1.x+A.x,r.p1.y+A.y),Z=new v(s.p1.x+A.x,s.p1.y+A.y);this.segList.addPt(V),this.segList.addPt(Z)}},getCoordinates:function(){var t=this.segList.getCoordinates();return t},addMitreJoin:function(t,e,n,r){var s=!0,o=null;try{o=j.intersection(e.p0,e.p1,n.p0,n.p1);var l=r<=0?1:o.distance(t)/Math.abs(r);l>this.bufParams.getMitreLimit()&&(s=!1)}catch(x){if(!(x instanceof W))throw x;o=new v(0,0),s=!1}finally{}s?this.segList.addPt(o):this.addLimitedMitreJoin(e,n,r,this.bufParams.getMitreLimit())},addFilletCorner:function(t,e,n,r,s){var o=e.x-t.x,l=e.y-t.y,x=Math.atan2(l,o),A=n.x-t.x,V=n.y-t.y,Z=Math.atan2(V,A);r===nt.CLOCKWISE?x<=Z&&(x+=2*Math.PI):x>=Z&&(x-=2*Math.PI),this.segList.addPt(e),this.addFilletArc(t,x,Z,r,s),this.segList.addPt(n)},addOutsideTurn:function(t,e){return this.offset0.p1.distance(this.offset1.p0)0){var n=new v((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 r=new v((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(r)}else this.segList.addPt(this.s1);this.segList.addPt(this.offset1.p0)}},createCircle:function(t){var e=new v(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 Qr,this.segList.setPrecisionModel(this.precisionModel),this.segList.setMinimumVertexDistance(t*Je.CURVE_VERTEX_SNAP_DISTANCE_FACTOR)},addCollinear:function(t){this.li.computeIntersection(this.s0,this.s1,this.s1,this.s2);var e=this.li.getIntersectionNum();e>=2&&(this.bufParams.getJoinStyle()===Ct.JOIN_BEVEL||this.bufParams.getJoinStyle()===Ct.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,nt.CLOCKWISE,this.distance))},closeRing:function(){this.segList.closeRing()},hasNarrowConcaveAngle:function(){return this._hasNarrowConcaveAngle},interfaces_:function(){return[]},getClass:function(){return Je}}),Je.OFFSET_SEGMENT_SEPARATION_FACTOR=.001,Je.INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR=.001,Je.CURVE_VERTEX_SNAP_DISTANCE_FACTOR=1e-6,Je.MAX_CLOSING_SEG_LEN_FACTOR=80,d($r.prototype,{getOffsetCurve:function(t,e){if(this.distance=e,e===0)return null;var n=e<0,r=Math.abs(e),s=this.getSegGen(r);t.length<=1?this.computePointCurve(t[0],s):this.computeOffsetCurve(t,n,s);var o=s.getCoordinates();return n&&at.reverse(o),o},computeSingleSidedBufferCurve:function(t,e,n){var r=this.simplifyTolerance(this.distance);if(e){n.addSegments(t,!0);var s=jt.simplify(t,-r),o=s.length-1;n.initSideSegments(s[o],s[o-1],et.LEFT),n.addFirstSegment();for(var l=o-2;l>=0;l--)n.addNextSegment(s[l],!0)}else{n.addSegments(t,!1);var x=jt.simplify(t,r),A=x.length-1;n.initSideSegments(x[0],x[1],et.LEFT),n.addFirstSegment();for(var l=2;l<=A;l++)n.addNextSegment(x[l],!0)}n.addLastSegment(),n.closeRing()},computeRingBufferCurve:function(t,e,n){var r=this.simplifyTolerance(this.distance);e===et.RIGHT&&(r=-r);var s=jt.simplify(t,r),o=s.length-1;n.initSideSegments(s[o-1],s[0],e);for(var l=1;l<=o;l++){var x=l!==1;n.addNextSegment(s[l],x)}n.closeRing()},computeLineBufferCurve:function(t,e){var n=this.simplifyTolerance(this.distance),r=jt.simplify(t,n),s=r.length-1;e.initSideSegments(r[0],r[1],et.LEFT);for(var o=2;o<=s;o++)e.addNextSegment(r[o],!0);e.addLastSegment(),e.addLineEndCap(r[s-1],r[s]);var l=jt.simplify(t,-n),x=l.length-1;e.initSideSegments(l[x],l[x-1],et.LEFT);for(var o=x-2;o>=0;o--)e.addNextSegment(l[o],!0);e.addLastSegment(),e.addLineEndCap(l[1],l[0]),e.closeRing()},computePointCurve:function(t,e){switch(this.bufParams.getEndCapStyle()){case Ct.CAP_ROUND:e.createCircle(t);break;case Ct.CAP_SQUARE:e.createSquare(t)}},getLineCurve:function(t,e){if(this.distance=e,e<0&&!this.bufParams.isSingleSided()||e===0)return null;var n=Math.abs(e),r=this.getSegGen(n);if(t.length<=1)this.computePointCurve(t[0],r);else if(this.bufParams.isSingleSided()){var s=e<0;this.computeSingleSidedBufferCurve(t,s,r)}else this.computeLineBufferCurve(t,r);var o=r.getCoordinates();return o},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(n===0)return $r.copyCoordinates(t);var r=this.getSegGen(n);return this.computeRingBufferCurve(t,e,r),r.getCoordinates()},computeOffsetCurve:function(t,e,n){var r=this.simplifyTolerance(this.distance);if(e){var s=jt.simplify(t,-r),o=s.length-1;n.initSideSegments(s[o],s[o-1],et.LEFT),n.addFirstSegment();for(var l=o-2;l>=0;l--)n.addNextSegment(s[l],!0)}else{var x=jt.simplify(t,r),A=x.length-1;n.initSideSegments(x[0],x[1],et.LEFT),n.addFirstSegment();for(var l=2;l<=A;l++)n.addNextSegment(x[l],!0)}n.addLastSegment()},getSegGen:function(t){return new Je(this.precisionModel,this.bufParams,t)},interfaces_:function(){return[]},getClass:function(){return $r}}),$r.copyCoordinates=function(t){for(var e=new Array(t.length).fill(null),n=0;ns.getMaxY()||this.findStabbedSegments(t,r.getDirectedEdges(),e)}return e}if(arguments.length===3){if(X(arguments[2],P)&&arguments[0]instanceof v&&arguments[1]instanceof Hn)for(var o=arguments[0],l=arguments[1],x=arguments[2],A=l.getEdge().getCoordinates(),n=0;nthis.seg.p1.y&&this.seg.reverse();var V=Math.max(this.seg.p0.x,this.seg.p1.x);if(!(Vthis.seg.p1.y||nt.computeOrientation(this.seg.p0,this.seg.p1,o)===nt.RIGHT)){var Z=l.getDepth(et.LEFT);this.seg.p0.equals(A[n])||(Z=l.getDepth(et.RIGHT));var K=new Ki(this.seg,Z);x.add(K)}}else if(X(arguments[2],P)&&arguments[0]instanceof v&&X(arguments[1],P))for(var $=arguments[0],ut=arguments[1],ft=arguments[2],n=ut.iterator();n.hasNext();){var gt=n.next();gt.isForward()&&this.findStabbedSegments($,gt,ft)}}},getDepth:function(t){var e=this.findStabbedSegments(t);if(e.size()===0)return 0;var n=Qe.min(e);return n.leftDepth},interfaces_:function(){return[]},getClass:function(){return ji}}),d(Ki.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 n!==0?n:(n=-1*e.upwardSeg.orientationIndex(this.upwardSeg),n!==0?n:this.upwardSeg.compareTo(e.upwardSeg))},compareX:function(t,e){var n=t.p0.compareTo(e.p0);return n!==0?n:t.p1.compareTo(e.p1)},toString:function(){return this.upwardSeg.toString()},interfaces_:function(){return[f]},getClass:function(){return Ki}}),ji.DepthSegment=Ki,d(js.prototype,{addPoint:function(t){if(this.distance<=0)return null;var e=t.getCoordinates(),n=this.curveBuilder.getLineCurve(e,this.distance);this.addCurve(n,L.EXTERIOR,L.INTERIOR)},addPolygon:function(t){var e=this.distance,n=et.LEFT;this.distance<0&&(e=-this.distance,n=et.RIGHT);var r=t.getExteriorRing(),s=at.removeRepeatedPoints(r.getCoordinates());if(this.distance<0&&this.isErodedCompletely(r,this.distance)||this.distance<=0&&s.length<3)return null;this.addPolygonRing(s,e,n,L.EXTERIOR,L.INTERIOR);for(var o=0;o0&&this.isErodedCompletely(l,-this.distance)||this.addPolygonRing(x,e,et.opposite(n),L.INTERIOR,L.EXTERIOR)}},isTriangleErodedCompletely:function(t,e){var n=new Tt(t[0],t[1],t[2]),r=n.inCentre(),s=nt.distancePointLine(r,n.p0,n.p1);return s=qt.MINIMUM_VALID_SIZE&&nt.isCCW(t)&&(o=s,l=r,n=et.opposite(n));var x=this.curveBuilder.getRingCurve(t,n,e);this.addCurve(x,o,l)},add:function(t){if(t.isEmpty())return null;if(t instanceof Mt)this.addPolygon(t);else if(t instanceof mt)this.addLineString(t);else if(t instanceof At)this.addPoint(t);else if(t instanceof fe)this.addCollection(t);else if(t instanceof ce)this.addCollection(t);else if(t instanceof Zt)this.addCollection(t);else{if(!(t instanceof xt))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(n.length===4)return this.isTriangleErodedCompletely(n,e);var r=t.getEnvelopeInternal(),s=Math.min(r.getHeight(),r.getWidth());return e<0&&2*Math.abs(e)>s},addCollection:function(t){for(var e=0;er||this.maxyo;if(l)return!1;var x=this.intersectsToleranceSquare(t,e);return I.isTrue(!(l&&x),"Found bad envelope test"),x},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 v(this.maxx,this.maxy),this.corner[1]=new v(this.minx,this.maxy),this.corner[2]=new v(this.minx,this.miny),this.corner[3]=new v(this.maxx,this.miny)},intersects:function(t,e){return this.scaleFactor===1?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(this.safeEnv===null){var t=xr.SAFE_ENV_EXPANSION_FACTOR/this.scaleFactor;this.safeEnv=new B(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,r=!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()&&(r=!0),this.li.computeIntersection(t,e,this.corner[3],this.corner[0]),!!this.li.isProper()||!(!n||!r)||!!t.equals(this.pt)||!!e.equals(this.pt))))},addSnappedNode:function(t,e){var n=t.getCoordinate(e),r=t.getCoordinate(e+1);return!!this.intersects(n,r)&&(t.addIntersection(this.getCoordinate(),e),!0)},interfaces_:function(){return[]},getClass:function(){return xr}}),xr.SAFE_ENV_EXPANSION_FACTOR=.75,d(Qi.prototype,{snap:function(){if(arguments.length===1){var t=arguments[0];return this.snap(t,null,-1)}if(arguments.length===3){var e=arguments[0],n=arguments[1],r=arguments[2],s=e.getSafeEnvelope(),o=new ni(e,n,r);return this.index.query(s,{interfaces_:function(){return[Cn]},visitItem:function(l){var x=l;x.select(s,o)}}),o.isNodeAdded()}},interfaces_:function(){return[]},getClass:function(){return Qi}}),y(ni,Mn),d(ni.prototype,{isNodeAdded:function(){return this._isNodeAdded},select:function(){if(arguments.length!==2)return Mn.prototype.select.apply(this,arguments);var t=arguments[0],e=arguments[1],n=t.getContext();return this.parentEdge!==null&&n===this.parentEdge&&e===this.hotPixelVertexIndex?null:void(this._isNodeAdded=this.hotPixel.addSnappedNode(n,e))},interfaces_:function(){return[]},getClass:function(){return ni}}),Qi.HotPixelSnapAction=ni,d(Ks.prototype,{processIntersections:function(t,e,n,r){if(t===n&&e===r)return null;var s=t.getCoordinates()[e],o=t.getCoordinates()[e+1],l=n.getCoordinates()[r],x=n.getCoordinates()[r+1];if(this.li.computeIntersection(s,o,l,x),this.li.hasIntersection()&&this.li.isInteriorIntersection()){for(var A=0;A=0;t--){try{this.bufferReducedPrecision(t)}catch(s){if(!(s instanceof ge))throw s;this.saveException=s}finally{}if(this.resultGeometry!==null)return null}throw this.saveException}if(arguments.length===1){var e=arguments[0],n=Kt.precisionScaleFactor(this.argGeom,this.distance,e),r=new St(n);this.bufferFixedPrecision(r)}},computeGeometry:function(){if(this.bufferOriginalPrecision(),this.resultGeometry!==null)return null;var t=this.argGeom.getFactory().getPrecisionModel();t.getType()===St.FIXED?this.bufferFixedPrecision(t):this.bufferReducedPrecision()},setQuadrantSegments:function(t){this.bufParams.setQuadrantSegments(t)},bufferOriginalPrecision:function(){try{var t=new _n(this.bufParams);this.resultGeometry=t.buffer(this.argGeom,this.distance)}catch(e){if(!(e instanceof N))throw e;this.saveException=e}finally{}},getResultGeometry:function(t){return this.distance=t,this.computeGeometry(),this.resultGeometry},setEndCapStyle:function(t){this.bufParams.setEndCapStyle(t)},interfaces_:function(){return[]},getClass:function(){return Kt}}),Kt.bufferOp=function(){if(arguments.length===2){var t=arguments[0],e=arguments[1],n=new Kt(t),r=n.getResultGeometry(e);return r}if(arguments.length===3){if(Number.isInteger(arguments[2])&&arguments[0]instanceof Q&&typeof arguments[1]=="number"){var s=arguments[0],o=arguments[1],l=arguments[2],x=new Kt(s);x.setQuadrantSegments(l);var r=x.getResultGeometry(o);return r}if(arguments[2]instanceof Ct&&arguments[0]instanceof Q&&typeof arguments[1]=="number"){var A=arguments[0],V=arguments[1],Z=arguments[2],x=new Kt(A,Z),r=x.getResultGeometry(V);return r}}else if(arguments.length===4){var K=arguments[0],$=arguments[1],ut=arguments[2],ft=arguments[3],x=new Kt(K);x.setQuadrantSegments(ut),x.setEndCapStyle(ft);var r=x.getResultGeometry($);return r}},Kt.precisionScaleFactor=function(t,e,n){var r=t.getEnvelopeInternal(),s=ot.max(Math.abs(r.getMaxX()),Math.abs(r.getMaxY()),Math.abs(r.getMinX()),Math.abs(r.getMinY())),o=e>0?e:0,l=s+2*o,x=Math.trunc(Math.log(l)/Math.log(10)+1),A=n-x,V=Math.pow(10,A);return V},Kt.CAP_ROUND=Ct.CAP_ROUND,Kt.CAP_BUTT=Ct.CAP_FLAT,Kt.CAP_FLAT=Ct.CAP_FLAT,Kt.CAP_SQUARE=Ct.CAP_SQUARE,Kt.MAX_PRECISION_DIGITS=12;var ga=Object.freeze({BufferOp:Kt,BufferParameters:Ct});d(Qn.prototype,{filter:function(t){t instanceof Mt&&this.comps.add(t)},interfaces_:function(){return[tn]},getClass:function(){return Qn}}),Qn.getPolygons=function(){if(arguments.length===1){var t=arguments[0];return Qn.getPolygons(t,new C)}if(arguments.length===2){var e=arguments[0],n=arguments[1];return e instanceof Mt?n.add(e):e instanceof xt&&e.apply(new Qn(n)),n}},d(me.prototype,{isInsideArea:function(){return this.segIndex===me.INSIDE_AREA},getCoordinate:function(){return this.pt},getGeometryComponent:function(){return this.component},getSegmentIndex:function(){return this.segIndex},interfaces_:function(){return[]},getClass:function(){return me}}),me.INSIDE_AREA=-1,d($n.prototype,{filter:function(t){t instanceof At&&this.pts.add(t)},interfaces_:function(){return[tn]},getClass:function(){return $n}}),$n.getPoints=function(){if(arguments.length===1){var t=arguments[0];return t instanceof At?Qe.singletonList(t):$n.getPoints(t,new C)}if(arguments.length===2){var e=arguments[0],n=arguments[1];return e instanceof At?n.add(e):e instanceof xt&&e.apply(new $n(n)),n}},d(ri.prototype,{filter:function(t){(t instanceof At||t instanceof mt||t instanceof Mt)&&this.locations.add(new me(t,0,t.getCoordinate()))},interfaces_:function(){return[tn]},getClass:function(){return ri}}),ri.getLocations=function(t){var e=new C;return t.apply(new ri(e)),e},d(qe.prototype,{computeContainmentDistance:function(){if(arguments.length===0){var t=new Array(2).fill(null);if(this.computeContainmentDistance(0,t),this.minDistance<=this.terminateDistance)return null;this.computeContainmentDistance(1,t)}else if(arguments.length===2){var e=arguments[0],n=arguments[1],r=1-e,s=Qn.getPolygons(this.geom[e]);if(s.size()>0){var o=ri.getLocations(this.geom[r]);if(this.computeContainmentDistance(o,s,n),this.minDistance<=this.terminateDistance)return this.minDistanceLocation[r]=n[0],this.minDistanceLocation[e]=n[1],null}}else if(arguments.length===3){if(arguments[2]instanceof Array&&X(arguments[0],P)&&X(arguments[1],P)){for(var l=arguments[0],x=arguments[1],A=arguments[2],V=0;Vthis.minDistance)return null;for(var r=t.getCoordinates(),s=e.getCoordinate(),o=0;othis.minDistance)return null;for(var r=V.getCoordinates(),$=Z.getCoordinates(),o=0;ot&&at.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 $s}}),d(Pe.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 Pe}}),Pe.getComponentWithVisitedState=function(t,e){for(;t.hasNext();){var n=t.next();if(n.isVisited()===e)return n}return null},Pe.setVisited=function(t,e){for(;t.hasNext();){var n=t.next();n.setVisited(e)}},Pe.setMarked=function(t,e){for(;t.hasNext();){var n=t.next();n.setMarked(e)}},y(Ce,Pe),d(Ce.prototype,{isRemoved:function(){return this.parentEdge===null},compareDirection:function(t){return this.quadrant>t.quadrant?1:this.quadrant=t.getNumPoints()&&r===null)return null;var o=t.getCoordinate(s);r!==null&&r.segmentIndex===n.segmentIndex&&(o=r.coord);var l=new Ye(t,n.coord,o,new Bt(t.getLabel()));e.add(l)},createEdgeEndForPrev:function(t,e,n,r){var s=n.segmentIndex;if(n.dist===0){if(s===0)return null;s--}var o=t.getCoordinate(s);r!==null&&r.segmentIndex>=s&&(o=r.coord);var l=new Bt(t.getLabel());l.flip();var x=new Ye(t,n.coord,o,l);e.add(x)},computeEdgeEnds:function(){if(arguments.length===1){for(var t=arguments[0],e=new C,n=t;n.hasNext();){var r=n.next();this.computeEdgeEnds(r,e)}return e}if(arguments.length===2){var s=arguments[0],o=arguments[1],l=s.getEdgeIntersectionList();l.addEndpoints();var x=l.iterator(),A=null,V=null;if(!x.hasNext())return null;var Z=x.next();do A=V,V=Z,Z=null,x.hasNext()&&(Z=x.next()),V!==null&&(this.createEdgeEndForPrev(s,o,V,A),this.createEdgeEndForNext(s,o,V,Z));while(V!==null)}},interfaces_:function(){return[]},getClass:function(){return ns}}),y(ai,Ye),d(ai.prototype,{insert:function(t){this.edgeEnds.add(t)},print:function(t){t.println("EdgeEndBundle--> Label: "+this.label);for(var e=this.iterator();e.hasNext();){var n=e.next();n.print(t),t.println()}},iterator:function(){return this.edgeEnds.iterator()},getEdgeEnds:function(){return this.edgeEnds},computeLabelOn:function(t,e){for(var n=0,r=!1,s=this.iterator();s.hasNext();){var o=s.next(),l=o.getLabel().getLocation(t);l===L.BOUNDARY&&n++,l===L.INTERIOR&&(r=!0)}var l=L.NONE;r&&(l=L.INTERIOR),n>0&&(l=le.determineBoundary(e,n)),this.label.setLocation(t,l)},computeLabelSide:function(t,e){for(var n=this.iterator();n.hasNext();){var r=n.next();if(r.getLabel().isArea()){var s=r.getLabel().getLocation(t,e);if(s===L.INTERIOR)return this.label.setLocation(t,e,L.INTERIOR),null;s===L.EXTERIOR&&this.label.setLocation(t,e,L.EXTERIOR)}}},getLabel:function(){return this.label},computeLabelSides:function(t){this.computeLabelSide(t,et.LEFT),this.computeLabelSide(t,et.RIGHT)},updateIM:function(t){be.updateIM(this.label,t)},computeLabel:function(t){for(var e=!1,n=this.iterator();n.hasNext();){var r=n.next();r.getLabel().isArea()&&(e=!0)}e?this.label=new Bt(L.NONE,L.NONE,L.NONE):this.label=new Bt(L.NONE);for(var s=0;s<2;s++)this.computeLabelOn(s,t),e&&this.computeLabelSides(s)},interfaces_:function(){return[]},getClass:function(){return ai}}),y(rs,Zn),d(rs.prototype,{updateIM:function(t){for(var e=this.iterator();e.hasNext();){var n=e.next();n.updateIM(t)}},insert:function(t){var e=this.edgeMap.get(t);e===null?(e=new ai(t),this.insertEdgeEnd(t,e)):e.insert(t)},interfaces_:function(){return[]},getClass:function(){return rs}}),y(is,an),d(is.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 is}}),y(ui,Wn),d(ui.prototype,{createNode:function(t){return new is(t,new rs)},interfaces_:function(){return[]},getClass:function(){return ui}}),d(ro.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 r=n.next(),s=this.nodes.addNode(r.getCoordinate());s.setLabel(e,r.getLabel().getLocation(e))}},build:function(t){this.computeIntersectionNodes(t,0),this.copyNodesAndLabels(t,0);var e=new ns,n=e.computeEdgeEnds(t.getEdgeIterator());this.insertEdgeEnds(n)},computeIntersectionNodes:function(t,e){for(var n=t.getEdgeIterator();n.hasNext();)for(var r=n.next(),s=r.getLabel().getLocation(e),o=r.getEdgeIntersectionList().iterator();o.hasNext();){var l=o.next(),x=this.nodes.addNode(l.coord);s===L.BOUNDARY?x.setLabelBoundary(e):x.getLabel().isNull(e)&&x.setLabel(e,L.INTERIOR)}},interfaces_:function(){return[]},getClass:function(){return ro}}),d(ss.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(),n=e.getEdges().iterator();n.hasNext();){var r=n.next();if(r.getEdgeEnds().size()>1)return this.invalidPoint=r.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 ss}}),d(io.prototype,{buildIndex:function(){this.index=new Dt;for(var t=0;t=1&&(e=t.getCoordinateN(0)),this.validErr=new It(It.RING_NOT_CLOSED,e)}},checkShellsNotNested:function(t,e){for(var n=0;n=0;r--)n.add(t[r],!1)},Ge.findEdgeRingContaining=function(t,e){for(var n=t.getRing(),r=n.getEnvelopeInternal(),s=n.getCoordinateN(0),o=null,l=null,x=e.iterator();x.hasNext();){var A=x.next(),V=A.getRing(),Z=V.getEnvelopeInternal();if(!Z.equals(r)&&Z.contains(r)){s=at.ptNotInList(n.getCoordinates(),V.getCoordinates());var K=!1;nt.isPointInRing(s,V.getCoordinates())&&(K=!0),K&&(o===null||l.contains(Z))&&(o=A,l=o.getRing().getEnvelopeInternal())}}return o},d(so.prototype,{compare:function(t,e){var n=t,r=e;return n.getRing().getEnvelope().compareTo(r.getRing().getEnvelope())},interfaces_:function(){return[g]},getClass:function(){return so}}),Ge.EnvelopeComparator=so,y(Ut,Er),d(Ut.prototype,{findEdgeRing:function(t){var e=new Ge(this.factory);return e.build(t),e},computeDepthParity:function(){if(arguments.length===0)for(;;){var t=null;if(t===null)return null;this.computeDepthParity(t)}},computeNextCWEdges:function(){for(var t=this.nodeIterator();t.hasNext();){var e=t.next();Ut.computeNextCWEdges(e)}},addEdge:function(t){if(t.isEmpty())return null;var e=at.removeRepeatedPoints(t.getCoordinates());if(e.length<2)return null;var n=e[0],r=e[e.length-1],s=this.getNode(n),o=this.getNode(r),l=new si(s,o,e[1],!0),x=new si(o,s,e[e.length-2],!1),A=new es(t);A.setDirectedEdges(l,x),this.add(A)},deleteCutEdges:function(){this.computeNextCWEdges(),Ut.findLabeledEdgeRings(this.dirEdges);for(var t=new C,e=this.dirEdges.iterator();e.hasNext();){var n=e.next();if(!n.isMarked()){var r=n.getSym();if(n.getLabel()===r.getLabel()){n.setMarked(!0),r.setMarked(!0);var s=n.getEdge();t.add(s.getLine())}}}return t},getEdgeRings:function(){this.computeNextCWEdges(),Ut.label(this.dirEdges,-1);var t=Ut.findLabeledEdgeRings(this.dirEdges);this.convertMaximalToMinimalEdgeRings(t);for(var e=new C,n=this.dirEdges.iterator();n.hasNext();){var r=n.next();if(!r.isMarked()&&!r.isInRing()){var s=this.findEdgeRing(r);e.add(s)}}return e},getNode:function(t){var e=this.findNode(t);return e===null&&(e=new cn(t),this.add(e)),e},convertMaximalToMinimalEdgeRings:function(t){for(var e=t.iterator();e.hasNext();){var n=e.next(),r=n.getLabel(),s=Ut.findIntersectionNodes(n,r);if(s!==null)for(var o=s.iterator();o.hasNext();){var l=o.next();Ut.computeNextCCWEdges(l,r)}}},deleteDangles:function(){for(var t=this.findNodesOfDegree(1),e=new Rt,n=new re,r=t.iterator();r.hasNext();)n.push(r.next());for(;!n.isEmpty();){var s=n.pop();Ut.deleteAllEdges(s);for(var o=s.getOutEdges().getEdges(),r=o.iterator();r.hasNext();){var l=r.next();l.setMarked(!0);var x=l.getSym();x!==null&&x.setMarked(!0);var A=l.getEdge();e.add(A.getLine());var V=l.getToNode();Ut.getDegreeNonDeleted(V)===1&&n.push(V)}}return e},interfaces_:function(){return[]},getClass:function(){return Ut}}),Ut.findLabeledEdgeRings=function(t){for(var e=new C,n=1,r=t.iterator();r.hasNext();){var s=r.next();if(!(s.isMarked()||s.getLabel()>=0)){e.add(s);var o=Ge.findDirEdgesInRing(s);Ut.label(o,n),n++}}return e},Ut.getDegreeNonDeleted=function(t){for(var e=t.getOutEdges().getEdges(),n=0,r=e.iterator();r.hasNext();){var s=r.next();s.isMarked()||n++}return n},Ut.deleteAllEdges=function(t){for(var e=t.getOutEdges().getEdges(),n=e.iterator();n.hasNext();){var r=n.next();r.setMarked(!0);var s=r.getSym();s!==null&&s.setMarked(!0)}},Ut.label=function(t,e){for(var n=t.iterator();n.hasNext();){var r=n.next();r.setLabel(e)}},Ut.computeNextCWEdges=function(t){for(var e=t.getOutEdges(),n=null,r=null,s=e.getEdges().iterator();s.hasNext();){var o=s.next();if(!o.isMarked()){if(n===null&&(n=o),r!==null){var l=r.getSym();l.setNext(o)}r=o}}if(r!==null){var l=r.getSym();l.setNext(n)}},Ut.computeNextCCWEdges=function(t,e){for(var n=t.getOutEdges(),r=null,s=null,o=n.getEdges(),l=o.size()-1;l>=0;l--){var x=o.get(l),A=x.getSym(),V=null;x.getLabel()===e&&(V=x);var Z=null;A.getLabel()===e&&(Z=A),V===null&&Z===null||(Z!==null&&(s=Z),V!==null&&(s!==null&&(s.setNext(V),s=null),r===null&&(r=V)))}s!==null&&(I.isTrue(r!==null),s.setNext(r))},Ut.getDegree=function(t,e){for(var n=t.getOutEdges().getEdges(),r=0,s=n.iterator();s.hasNext();){var o=s.next();o.getLabel()===e&&r++}return r},Ut.findIntersectionNodes=function(t,e){var n=t,r=null;do{var s=n.getFromNode();Ut.getDegree(s,e)>1&&(r===null&&(r=new C),r.add(s)),n=n.getNext(),I.isTrue(n!==null,"found null DE in ring"),I.isTrue(n===t||!n.isInRing(),"found DE already in ring")}while(n!==t);return r},d(ve.prototype,{getGeometry:function(){return this.geomFactory===null&&(this.geomFactory=new yt),this.polygonize(),this.extractOnlyPolygonal?this.geomFactory.buildGeometry(this.polyList):this.geomFactory.createGeometryCollection(yt.toGeometryArray(this.polyList))},getInvalidRingLines:function(){return this.polygonize(),this.invalidRingLines},findValidRings:function(t,e,n){for(var r=t.iterator();r.hasNext();){var s=r.next();s.isValid()?e.add(s):n.add(s.getLineString())}},polygonize:function(){if(this.polyList!==null||(this.polyList=new C,this.graph===null))return null;this.dangles=this.graph.deleteDangles(),this.cutEdges=this.graph.deleteCutEdges();var t=this.graph.getEdgeRings(),e=new C;this.invalidRingLines=new C,this.isCheckingRingsValid?this.findValidRings(t,e,this.invalidRingLines):e=t,this.findShellsAndHoles(e),ve.assignHolesToShells(this.holeList,this.shellList),Qe.sort(this.shellList,new Ge.EnvelopeComparator);var n=!0;this.extractOnlyPolygonal&&(ve.findDisjointShells(this.shellList),n=!1),this.polyList=ve.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(X(arguments[0],w))for(var t=arguments[0],e=t.iterator();e.hasNext();){var n=e.next();this.add(n)}else if(arguments[0]instanceof mt){var r=arguments[0];this.geomFactory=r.getFactory(),this.graph===null&&(this.graph=new Ut(this.geomFactory)),this.graph.addEdge(r)}else if(arguments[0]instanceof Q){var s=arguments[0];s.apply(this.lineStringAdder)}},setCheckRingsValid:function(t){this.isCheckingRingsValid=t},findShellsAndHoles:function(t){this.holeList=new C,this.shellList=new C;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 ve}}),ve.findOuterShells=function(t){for(var e=t.iterator();e.hasNext();){var n=e.next(),r=n.getOuterHole();r===null||r.isProcessed()||(n.setIncluded(!0),r.setProcessed(!0))}},ve.extractPolygons=function(t,e){for(var n=new C,r=t.iterator();r.hasNext();){var s=r.next();(e||s.isIncluded())&&n.add(s.getPolygon())}return n},ve.assignHolesToShells=function(t,e){for(var n=t.iterator();n.hasNext();){var r=n.next();ve.assignHoleToShell(r,e)}},ve.assignHoleToShell=function(t,e){var n=Ge.findEdgeRingContaining(t,e);n!==null&&n.addHole(t)},ve.findDisjointShells=function(t){ve.findOuterShells(t);var e=null;do{e=!1;for(var n=t.iterator();n.hasNext();){var r=n.next();r.isIncludedSet()||(r.updateIncluded(),r.isIncludedSet()||(e=!0))}}while(e)},d(os.prototype,{filter:function(t){t instanceof mt&&this.p.add(t)},interfaces_:function(){return[it]},getClass:function(){return os}}),ve.LineStringAdder=os;var va=Object.freeze({Polygonizer:ve});d(as.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(),r=this.arg[1].getGeometry().getDimension(),s=t.hasProperIntersection(),o=t.hasProperInteriorIntersection();n===2&&r===2?s&&e.setAtLeast("212101212"):n===2&&r===1?(s&&e.setAtLeast("FFF0FFFF2"),o&&e.setAtLeast("1FFFFF1FF")):n===1&&r===2?(s&&e.setAtLeast("F0FFFFFF2"),o&&e.setAtLeast("1F1FFFFFF")):n===1&&r===1&&o&&e.setAtLeast("0FFFFFFFF")},labelIsolatedEdges:function(t,e){for(var n=this.arg[t].getEdgeIterator();n.hasNext();){var r=n.next();r.isIsolated()&&(this.labelIsolatedEdge(r,e,this.arg[e].getGeometry()),this.isolatedEdges.add(r))}},labelIsolatedEdge:function(t,e,n){if(n.getDimension()>0){var r=this.ptLocator.locate(t.getCoordinate(),n);t.getLabel().setAllLocations(e,r)}else t.getLabel().setAllLocations(e,L.EXTERIOR)},computeIM:function(){var t=new bt;if(t.set(L.EXTERIOR,L.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 ns,r=n.computeEdgeEnds(this.arg[0].getEdgeIterator());this.insertEdgeEnds(r);var s=n.computeEdgeEnds(this.arg[1].getEdgeIterator());return this.insertEdgeEnds(s),this.labelNodeEdges(),this.labelIsolatedEdges(0,1),this.labelIsolatedEdges(1,0),this.updateIM(t),t},labelNodeEdges:function(){for(var t=this.nodes.iterator();t.hasNext();){var e=t.next();e.getEdges().computeLabelling(this.arg)}},copyNodesAndLabels:function(t){for(var e=this.arg[t].getNodeIterator();e.hasNext();){var n=e.next(),r=this.nodes.addNode(n.getCoordinate());r.setLabel(t,n.getLabel().getLocation(t))}},labelIntersectionNodes:function(t){for(var e=this.arg[t].getEdgeIterator();e.hasNext();)for(var n=e.next(),r=n.getLabel().getLocation(t),s=n.getEdgeIntersectionList().iterator();s.hasNext();){var o=s.next(),l=this.nodes.find(o.coord);l.getLabel().isNull(t)&&(r===L.BOUNDARY?l.setLabelBoundary(t):l.setLabel(t,L.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(),r=n.getLabel().getLocation(t),s=n.getEdgeIntersectionList().iterator();s.hasNext();){var o=s.next(),l=this.nodes.addNode(o.coord);r===L.BOUNDARY?l.setLabelBoundary(t):l.getLabel().isNull(t)&&l.setLabel(t,L.INTERIOR)}},labelIsolatedNodes:function(){for(var t=this.nodes.iterator();t.hasNext();){var e=t.next(),n=e.getLabel();I.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();){var n=e.next();n.updateIM(t)}for(var r=this.nodes.iterator();r.hasNext();){var s=r.next();s.updateIM(t),s.updateIMFromEdges(t)}},computeDisjointIM:function(t){var e=this.arg[0].getGeometry();e.isEmpty()||(t.set(L.INTERIOR,L.EXTERIOR,e.getDimension()),t.set(L.BOUNDARY,L.EXTERIOR,e.getBoundaryDimension()));var n=this.arg[1].getGeometry();n.isEmpty()||(t.set(L.EXTERIOR,L.INTERIOR,n.getDimension()),t.set(L.EXTERIOR,L.BOUNDARY,n.getBoundaryDimension()))},interfaces_:function(){return[]},getClass:function(){return as}}),d(li.prototype,{isContainedInBoundary:function(t){if(t instanceof Mt)return!1;if(t instanceof At)return this.isPointContainedInBoundary(t);if(t instanceof mt)return this.isLineStringContainedInBoundary(t);for(var e=0;e0){var r=t;t=e,e=r}var s=!1;return e.y>t.y&&(s=!0),s?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 oo}}),d(An.prototype,{applyTo:function(t){for(var e=0;e=this.rectEnv.getMinX()&&e.getMaxX()<=this.rectEnv.getMaxX()?(this._intersects=!0,null):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 us}}),y(ls,An),d(ls.prototype,{isDone:function(){return this._containsPoint===!0},visit:function(t){if(!(t instanceof Mt))return null;var e=t.getEnvelopeInternal();if(!this.rectEnv.intersects(e))return null;for(var n=new v,r=0;r<4;r++)if(this.rectSeq.getCoordinate(r,n),e.contains(n)&&Ne.containsPointInPolygon(n,t))return this._containsPoint=!0,null},containsPoint:function(){return this._containsPoint},interfaces_:function(){return[]},getClass:function(){return ls}}),y(hs,An),d(hs.prototype,{intersects:function(){return this.hasIntersection},isDone:function(){return this.hasIntersection===!0},visit:function(t){var e=t.getEnvelopeInternal();if(!this.rectEnv.intersects(e))return null;var n=te.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)},Te.union=function(t){var e=new Te(t);return e.union()},Te.STRTREE_NODE_CAPACITY=4,d(Fn.prototype,{unionNoOpt:function(t){var e=this.geomFact.createPoint();return Wt.overlayOp(t,e,ht.UNION)},unionWithNull:function(t,e){return t===null&&e===null?null:e===null?t:t===null?e:t.union(e)},extract:function(){if(X(arguments[0],w))for(var t=arguments[0],e=t.iterator();e.hasNext();){var n=e.next();this.extract(n)}else if(arguments[0]instanceof Q){var r=arguments[0];this.geomFact===null&&(this.geomFact=r.getFactory()),Dn.extract(r,Q.SORTINDEX_POLYGON,this.polygons),Dn.extract(r,Q.SORTINDEX_LINESTRING,this.lines),Dn.extract(r,Q.SORTINDEX_POINT,this.points)}},union:function(){if(this.geomFact===null)return null;var e=null;if(this.points.size()>0){var n=this.geomFact.buildGeometry(this.points);e=this.unionNoOpt(n)}var r=null;if(this.lines.size()>0){var s=this.geomFact.buildGeometry(this.lines);r=this.unionNoOpt(s)}var o=null;this.polygons.size()>0&&(o=Te.union(this.polygons));var l=this.unionWithNull(r,o),x=null;return x=e===null?l:l===null?e:hi.union(e,l),x===null?this.geomFact.createGeometryCollection():x},interfaces_:function(){return[]},getClass:function(){return Fn}}),Fn.union=function(){if(arguments.length===1){if(X(arguments[0],w)){var t=arguments[0],e=new Fn(t);return e.union()}if(arguments[0]instanceof Q){var n=arguments[0],e=new Fn(n);return e.union()}}else if(arguments.length===2){var r=arguments[0],s=arguments[1],e=new Fn(r,s);return e.union()}};var xa=Object.freeze({UnaryUnionOp:Fn}),Ea=Object.freeze({IsValidOp:we,ConsistentAreaTester:ss}),Ia=Object.freeze({BoundaryOp:pn,IsSimpleOp:Kr,buffer:ga,distance:da,linemerge:pa,overlay:ma,polygonize:va,relate:ya,union:xa,valid:Ea});y(cs,xe.CoordinateOperation),d(cs.prototype,{editCoordinates:function(t,e){if(t.length===0)return null;for(var n=new Array(t.length).fill(null),r=0;r=2&&(r=!0);var s=e.edit(t,new cs(this.targetPM,r));return s},changePM:function(t,e){var n=this.createEditor(t.getFactory(),e);return n.edit(t,new xe.NoOpGeometryOperation)},setRemoveCollapsedComponents:function(t){this.removeCollapsed=t},createFactory:function(t,e){var n=new yt(e,t.getSRID(),t.getCoordinateSequenceFactory());return n},setChangePrecisionModel:function(t){this.changePrecisionModel=t},reduce:function(t){var e=this.reducePointwise(t);return this.isPointwise?e:X(e,en)?e.isValid()?e:this.fixPolygonalTopology(e):e},setPointwise:function(t){this.isPointwise=t},createEditor:function(t,e){if(t.getPrecisionModel()===e)return new xe;var n=this.createFactory(t,e),r=new xe(n);return r},interfaces_:function(){return[]},getClass:function(){return tr}}),tr.reduce=function(t,e){var n=new tr(e);return n.reduce(t)},tr.reducePointwise=function(t,e){var n=new tr(e);return n.setPointwise(!0),n.reduce(t)};var Na=Object.freeze({GeometryPrecisionReducer:tr});d(ci.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,r=t,s=t+1;sn&&(n=o,r=s)}if(n<=this.distanceTolerance)for(var s=t+1;sthis.distanceTolerance&&(o=!1);var V=new dt;if(V.p0=this.linePts[t],V.p1=this.linePts[e],r[0]=t,r[1]=e,this.hasBadIntersection(this.line,r,V)&&(o=!1),o){var s=this.flatten(t,e);return this.line.addToResult(s),null}this.simplifySection(t,A,n),this.simplifySection(A,e,n)},hasBadOutputIntersection:function(t){for(var e=this.outputIndex.query(t),n=e.iterator();n.hasNext();){var r=n.next();if(this.hasInteriorIntersection(r,t))return!0}return!1},findFurthestPoint:function(t,e,n,r){var s=new dt;s.p0=t[e],s.p1=t[n];for(var o=-1,l=e,x=e+1;xo&&(o=V,l=x)}return r[0]=o,l},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 r=e;r=e[0]&&rs&&(A=s),o.setMinimumLength(A),o.splitAt(l),o.getSplitPoint()},interfaces_:function(){return[lo]},getClass:function(){return mi}}),mi.projectedSplitPoint=function(t,e){var n=t.getLineSegment(),r=n.project(e);return r},d(_t.prototype,{interfaces_:function(){return[]},getClass:function(){return _t}}),_t.triArea=function(t,e,n){return(e.x-t.x)*(n.y-t.y)-(e.y-t.y)*(n.x-t.x)},_t.isInCircleDDNormalized=function(t,e,n,r){var s=z.valueOf(t.x).selfSubtract(r.x),o=z.valueOf(t.y).selfSubtract(r.y),l=z.valueOf(e.x).selfSubtract(r.x),x=z.valueOf(e.y).selfSubtract(r.y),A=z.valueOf(n.x).selfSubtract(r.x),V=z.valueOf(n.y).selfSubtract(r.y),Z=s.multiply(x).selfSubtract(l.multiply(o)),K=l.multiply(V).selfSubtract(A.multiply(x)),$=A.multiply(o).selfSubtract(s.multiply(V)),ut=s.multiply(s).selfAdd(o.multiply(o)),ft=l.multiply(l).selfAdd(x.multiply(x)),gt=A.multiply(A).selfAdd(V.multiply(V)),Ot=ut.selfMultiply(K).selfAdd(ft.selfMultiply($)).selfAdd(gt.selfMultiply(Z)),Xt=Ot.doubleValue()>0;return Xt},_t.checkRobustInCircle=function(t,e,n,r){var s=_t.isInCircleNonRobust(t,e,n,r),o=_t.isInCircleDDSlow(t,e,n,r),l=_t.isInCircleCC(t,e,n,r),x=Tt.circumcentre(t,e,n);k.out.println("p radius diff a = "+Math.abs(r.distance(x)-t.distance(x))/t.distance(x)),s===o&&s===l||(k.out.println("inCircle robustness failure (double result = "+s+", DD result = "+o+", CC result = "+l+")"),k.out.println($t.toLineString(new Ee([t,e,n,r]))),k.out.println("Circumcentre = "+$t.toPoint(x)+" radius = "+t.distance(x)),k.out.println("p radius diff a = "+Math.abs(r.distance(x)/t.distance(x)-1)),k.out.println("p radius diff b = "+Math.abs(r.distance(x)/e.distance(x)-1)),k.out.println("p radius diff c = "+Math.abs(r.distance(x)/n.distance(x)-1)),k.out.println())},_t.isInCircleDDFast=function(t,e,n,r){var s=z.sqr(t.x).selfAdd(z.sqr(t.y)).selfMultiply(_t.triAreaDDFast(e,n,r)),o=z.sqr(e.x).selfAdd(z.sqr(e.y)).selfMultiply(_t.triAreaDDFast(t,n,r)),l=z.sqr(n.x).selfAdd(z.sqr(n.y)).selfMultiply(_t.triAreaDDFast(t,e,r)),x=z.sqr(r.x).selfAdd(z.sqr(r.y)).selfMultiply(_t.triAreaDDFast(t,e,n)),A=s.selfSubtract(o).selfAdd(l).selfSubtract(x),V=A.doubleValue()>0;return V},_t.isInCircleCC=function(t,e,n,r){var s=Tt.circumcentre(t,e,n),o=t.distance(s),l=r.distance(s)-o;return l<=0},_t.isInCircleNormalized=function(t,e,n,r){var s=t.x-r.x,o=t.y-r.y,l=e.x-r.x,x=e.y-r.y,A=n.x-r.x,V=n.y-r.y,Z=s*x-l*o,K=l*V-A*x,$=A*o-s*V,ut=s*s+o*o,ft=l*l+x*x,gt=A*A+V*V,Ot=ut*K+ft*$+gt*Z;return Ot>0},_t.isInCircleDDSlow=function(t,e,n,r){var s=z.valueOf(r.x),o=z.valueOf(r.y),l=z.valueOf(t.x),x=z.valueOf(t.y),A=z.valueOf(e.x),V=z.valueOf(e.y),Z=z.valueOf(n.x),K=z.valueOf(n.y),$=l.multiply(l).add(x.multiply(x)).multiply(_t.triAreaDDSlow(A,V,Z,K,s,o)),ut=A.multiply(A).add(V.multiply(V)).multiply(_t.triAreaDDSlow(l,x,Z,K,s,o)),ft=Z.multiply(Z).add(K.multiply(K)).multiply(_t.triAreaDDSlow(l,x,A,V,s,o)),gt=s.multiply(s).add(o.multiply(o)).multiply(_t.triAreaDDSlow(l,x,A,V,Z,K)),Ot=$.subtract(ut).add(ft).subtract(gt),Xt=Ot.doubleValue()>0;return Xt},_t.isInCircleNonRobust=function(t,e,n,r){var s=(t.x*t.x+t.y*t.y)*_t.triArea(e,n,r)-(e.x*e.x+e.y*e.y)*_t.triArea(t,n,r)+(n.x*n.x+n.y*n.y)*_t.triArea(t,e,r)-(r.x*r.x+r.y*r.y)*_t.triArea(t,e,n)>0;return s},_t.isInCircleRobust=function(t,e,n,r){return _t.isInCircleNormalized(t,e,n,r)},_t.triAreaDDSlow=function(t,e,n,r,s,o){return n.subtract(t).multiply(o.subtract(e)).subtract(r.subtract(e).multiply(s.subtract(t)))},_t.triAreaDDFast=function(t,e,n){var r=z.valueOf(e.x).selfSubtract(t.x).selfMultiply(z.valueOf(n.y).selfSubtract(t.y)),s=z.valueOf(e.y).selfSubtract(t.y).selfMultiply(z.valueOf(n.x).selfSubtract(t.x));return r.selfSubtract(s)},d(Lt.prototype,{circleCenter:function(t,e){var n=new Lt(this.getX(),this.getY()),r=this.bisector(n,t),s=this.bisector(t,e),o=new j(r,s),l=null;try{l=new Lt(o.getX(),o.getY())}catch(x){if(!(x instanceof W))throw x;k.err.println("a: "+n+" b: "+t+" c: "+e),k.err.println(x)}finally{}return l},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(),r=e.getY()-t.getY(),s=new j(t.getX()+n/2,t.getY()+r/2,1),o=new j(t.getX()-r+n/2,t.getY()+n+r/2,1);return new j(s,o)},equals:function(){if(arguments.length===1){var t=arguments[0];return this.p.x===t.getX()&&this.p.y===t.getY()}if(arguments.length===2){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 Lt(t*this.p.x,t*this.p.y)},cross:function(){return new Lt(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 Lt(this.p.x-t.getX(),this.p.y-t.getY())},getY:function(){return this.p.y},classify:function(t,e){var n=this,r=e.sub(t),s=n.sub(t),o=r.crossProduct(s);return o>0?Lt.LEFT:o<0?Lt.RIGHT:r.getX()*s.getX()<0||r.getY()*s.getY()<0?Lt.BEHIND:r.magn()n?10*e:10*n,this.frameVertex[0]=new Lt((t.getMaxX()+t.getMinX())/2,t.getMaxY()+r),this.frameVertex[1]=new Lt(t.getMinX()-r,t.getMinY()-r),this.frameVertex[2]=new Lt(t.getMaxX()+r,t.getMinY()-r),this.frameEnv=new B(this.frameVertex[0].getCoordinate(),this.frameVertex[1].getCoordinate()),this.frameEnv.expandToInclude(this.frameVertex[2].getCoordinate())},getTriangleCoordinates:function(t){var e=new vs;return this.visitTriangles(e,t),e.getTriangles()},getVertices:function(t){for(var e=new Rt,n=this.quadEdges.iterator();n.hasNext();){var r=n.next(),s=r.orig();!t&&this.isFrameVertex(s)||e.add(s);var o=r.dest();!t&&this.isFrameVertex(o)||e.add(o)}return e},fetchTriangleToVisit:function(t,e,n,r){var s=t,o=0,l=!1;do{this.triEdges[o]=s,this.isFrameEdge(s)&&(l=!0);var x=s.sym();r.contains(x)||e.push(x),r.add(s),o++,s=s.lNext()}while(s!==t);return l&&!n?null:this.triEdges},getEdges:function(){if(arguments.length===0)return this.quadEdges;if(arguments.length===1){for(var t=arguments[0],e=this.getPrimaryEdges(!1),n=new Array(e.size()).fill(null),r=0,s=e.iterator();s.hasNext();){var o=s.next();n[r++]=t.createLineString([o.orig().getCoordinate(),o.dest().getCoordinate()])}return t.createMultiLineString(n)}},getVertexUniqueEdges:function(t){for(var e=new C,n=new Rt,r=this.quadEdges.iterator();r.hasNext();){var s=r.next(),o=s.orig();n.contains(o)||(n.add(o),!t&&this.isFrameVertex(o)||e.add(s));var l=s.sym(),x=l.orig();n.contains(x)||(n.add(x),!t&&this.isFrameVertex(x)||e.add(l))}return e},getTriangleEdges:function(t){var e=new ps;return this.visitTriangles(e,t),e.getTriangleEdges()},getPrimaryEdges:function(t){this.visitedKey++;var e=new C,n=new re;n.push(this.startingEdge);for(var r=new Rt;!n.empty();){var s=n.pop();if(!r.contains(s)){var o=s.getPrimary();!t&&this.isFrameEdge(o)||e.add(o),n.push(s.oNext()),n.push(s.sym().oNext()),r.add(s),r.add(s.sym())}}return e},delete:function(t){Ft.splice(t,t.oPrev()),Ft.splice(t.sym(),t.sym().oPrev());var e=t.sym(),n=t.rot(),r=t.rot().sym();this.quadEdges.remove(t),this.quadEdges.remove(e),this.quadEdges.remove(n),this.quadEdges.remove(r),t.delete(),e.delete(),n.delete(),r.delete()},locateFromEdge:function(t,e){for(var n=0,r=this.quadEdges.size(),s=e;;){if(n++,n>r)throw new Sr(s.toLineSegment());if(t.equals(s.orig())||t.equals(s.dest()))break;if(t.rightOf(s))s=s.sym();else if(t.rightOf(s.oNext())){if(t.rightOf(s.dPrev()))break;s=s.dPrev()}else s=s.oNext()}return s},getTolerance:function(){return this.tolerance},getVoronoiCellPolygons:function(t){this.visitTriangles(new ds,!0);for(var e=new C,n=this.getVertexUniqueEdges(!1),r=n.iterator();r.hasNext();){var s=r.next();e.add(this.getVoronoiCellPolygon(s,t))}return e},getVoronoiDiagram:function(t){var e=this.getVoronoiCellPolygons(t);return t.createGeometryCollection(yt.toGeometryArray(e))},getTriangles:function(t){for(var e=this.getTriangleCoordinates(!1),n=new Array(e.size()).fill(null),r=0,s=e.iterator();s.hasNext();){var o=s.next();n[r++]=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);Ft.splice(n,e);var r=n;do n=this.connect(e,n.sym()),e=n.oPrev();while(e.lNext()!==r);return r},locate:function(){if(arguments.length===1){if(arguments[0]instanceof Lt){var t=arguments[0];return this.locator.locate(t)}if(arguments[0]instanceof v){var e=arguments[0];return this.locator.locate(new Lt(e))}}else if(arguments.length===2){var n=arguments[0],r=arguments[1],s=this.locator.locate(new Lt(n));if(s===null)return null;var o=s;s.dest().getCoordinate().equals2D(n)&&(o=s.sym());var l=o;do{if(l.dest().getCoordinate().equals2D(r))return l;l=l.oNext()}while(l!==o);return null}},interfaces_:function(){return[]},getClass:function(){return Le}}),Le.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 a},d(ds.prototype,{visit:function(t){for(var e=t[0].orig().getCoordinate(),n=t[1].orig().getCoordinate(),r=t[2].orig().getCoordinate(),s=Tt.circumcentre(e,n,r),o=new Lt(s),l=0;l<3;l++)t[l].rot().setOrig(o)},interfaces_:function(){return[Lr]},getClass:function(){return ds}}),d(ps.prototype,{getTriangleEdges:function(){return this.triList},visit:function(t){this.triList.add(t.clone())},interfaces_:function(){return[Lr]},getClass:function(){return ps}}),d(ms.prototype,{visit:function(t){this.triList.add([t[0].orig(),t[1].orig(),t[2].orig()])},getTriangleVertices:function(){return this.triList},interfaces_:function(){return[Lr]},getClass:function(){return ms}}),d(vs.prototype,{checkTriangleSize:function(t){t.length>=2?$t.toLineString(t[0],t[1]):t.length>=1&&$t.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 r=this.coordList.toCoordinateArray();if(r.length!==4)return null;this.triCoords.add(r)}},getTriangles:function(){return this.triCoords},interfaces_:function(){return[Lr]},getClass:function(){return vs}}),Le.TriangleCircumcentreVisitor=ds,Le.TriangleEdgesListVisitor=ps,Le.TriangleVertexListVisitor=ms,Le.TriangleCoordinatesVisitor=vs,Le.EDGE_COINCIDENCE_TOL_FACTOR=1e3,d(nr.prototype,{getLineSegment:function(){return this.ls},getEndZ:function(){var t=this.ls.getCoordinate(1);return t.z},getStartZ:function(){var t=this.ls.getCoordinate(0);return t.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(){var t=this.ls.getCoordinate(1);return t.y},getStartX:function(){var t=this.ls.getCoordinate(0);return t.x},equalsTopo:function(t){return this.ls.equalsTopo(t.getLineSegment())},getStartY:function(){var t=this.ls.getCoordinate(0);return t.y},setData:function(t){this.data=t},getData:function(){return this.data},getEndX:function(){var t=this.ls.getCoordinate(1);return t.x},toString:function(){return this.ls.toString()},interfaces_:function(){return[]},getClass:function(){return nr}}),d(yi.prototype,{visit:function(t){},interfaces_:function(){return[]},getClass:function(){return yi}}),d(ys.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 ys}}),d(rr.prototype,{insert:function(){if(arguments.length===1){var t=arguments[0];return this.insert(t,null)}if(arguments.length===2){var e=arguments[0],n=arguments[1];if(this.root===null)return this.root=new ys(e,n),this.root;if(this.tolerance>0){var r=this.findBestMatchNode(e);if(r!==null)return r.increment(),r}return this.insertExact(e,n)}},query:function(){var t=arguments,e=this;if(arguments.length===1){var n=arguments[0],r=new C;return this.query(n,r),r}if(arguments.length===2){if(arguments[0]instanceof B&&X(arguments[1],P))(function(){var l=t[0],x=t[1];e.queryNode(e.root,l,!0,{interfaces_:function(){return[yi]},visit:function(A){x.add(A)}})})();else if(arguments[0]instanceof B&&X(arguments[1],yi)){var s=arguments[0],o=arguments[1];this.queryNode(this.root,s,!0,o)}}},queryNode:function(t,e,n,r){if(t===null)return null;var s=null,o=null,l=null;n?(s=e.getMinX(),o=e.getMaxX(),l=t.getX()):(s=e.getMinY(),o=e.getMaxY(),l=t.getY());var x=s0&&te)&&qe.isWithinDistance(this,t,e)},distance:function(t){return qe.distance(this,t)},isEquivalentClass:function(t){return this.getClass()===t.getClass()}});var La="1.3.0 (6e65adb)";_.version=La,_.algorithm=ra,_.densify=ia,_.dissolve=sa,_.geom=na,_.geomgraph=oa,_.index=la,_.io=ca,_.noding=fa,_.operation=Ia,_.precision=Na,_.simplify=Ca,_.triangulate=Sa,Object.defineProperty(_,"__esModule",{value:!0})})},{}],29:[function(h,E,u){var _=h("@turf/meta").coordEach,d=h("@turf/centroid"),S=h("@turf/convex"),a=h("@turf/explode"),c=h("@turf/helpers").point;function f(p){if(p.type==="Feature"&&p.geometry.type==="Polygon"){var g=[];_(p,function(W){g.push(W)});var m=d(p),N=m.geometry.coordinates,y=0,R=0,I=0,v,M,T,w,b,P,O,D,C=g.map(function(W){return[W[0]-N[0],W[1]-N[1]]});for(v=0;v=3){for(var p=[],g=0;g0)-(a<0)},u.abs=function(a){var c=a>>_-1;return(a^c)-c},u.min=function(a,c){return c^(a^c)&-(a65535)<<4,a>>>=c,f=(a>255)<<3,a>>>=f,c|=f,f=(a>15)<<2,a>>>=f,c|=f,f=(a>3)<<1,a>>>=f,c|=f,c|a>>1},u.log10=function(a){return a>=1e9?9:a>=1e8?8:a>=1e7?7:a>=1e6?6:a>=1e5?5:a>=1e4?4:a>=1e3?3:a>=100?2:a>=10?1:0},u.popCount=function(a){return a=a-(a>>>1&1431655765),a=(a&858993459)+(a>>>2&858993459),(a+(a>>>4)&252645135)*16843009>>>24};function d(a){var c=32;return a&=-a,a&&c--,a&65535&&(c-=16),a&16711935&&(c-=8),a&252645135&&(c-=4),a&858993459&&(c-=2),a&1431655765&&(c-=1),c}u.countTrailingZeros=d,u.nextPow2=function(a){return a+=a===0,--a,a|=a>>>1,a|=a>>>2,a|=a>>>4,a|=a>>>8,a|=a>>>16,a+1},u.prevPow2=function(a){return a|=a>>>1,a|=a>>>2,a|=a>>>4,a|=a>>>8,a|=a>>>16,a-(a>>>1)},u.parity=function(a){return a^=a>>>16,a^=a>>>8,a^=a>>>4,a&=15,27030>>>a&1};var S=new Array(256);(function(a){for(var c=0;c<256;++c){var f=c,p=c,g=7;for(f>>>=1;f;f>>>=1)p<<=1,p|=f&1,--g;a[c]=p<>>8&255]<<16|S[a>>>16&255]<<8|S[a>>>24&255]},u.interleave2=function(a,c){return a&=65535,a=(a|a<<8)&16711935,a=(a|a<<4)&252645135,a=(a|a<<2)&858993459,a=(a|a<<1)&1431655765,c&=65535,c=(c|c<<8)&16711935,c=(c|c<<4)&252645135,c=(c|c<<2)&858993459,c=(c|c<<1)&1431655765,a|c<<1},u.deinterleave2=function(a,c){return a=a>>>c&1431655765,a=(a|a>>>1)&858993459,a=(a|a>>>2)&252645135,a=(a|a>>>4)&16711935,a=(a|a>>>16)&65535,a<<16>>16},u.interleave3=function(a,c,f){return a&=1023,a=(a|a<<16)&4278190335,a=(a|a<<8)&251719695,a=(a|a<<4)&3272356035,a=(a|a<<2)&1227133513,c&=1023,c=(c|c<<16)&4278190335,c=(c|c<<8)&251719695,c=(c|c<<4)&3272356035,c=(c|c<<2)&1227133513,a|=c<<1,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,a|f<<2},u.deinterleave3=function(a,c){return a=a>>>c&1227133513,a=(a|a>>>2)&3272356035,a=(a|a>>>4)&251719695,a=(a|a>>>8)&4278190335,a=(a|a>>>16)&1023,a<<22>>22},u.nextCombination=function(a){var c=a|a-1;return c+1|(~c&-~c)-1>>>d(a)+1}},{}],38:[function(h,E,u){var _=h("./lib/ch1d"),d=h("./lib/ch2d"),S=h("./lib/chnd");E.exports=a;function a(c){var f=c.length;if(f===0)return[];if(f===1)return[[0]];var p=c[0].length;return p===0?[]:p===1?_(c):p===2?d(c):S(c,p)}},{"./lib/ch1d":39,"./lib/ch2d":40,"./lib/chnd":41}],39:[function(h,E,u){E.exports=_;function _(d){for(var S=0,a=0,c=1;cd[a][0]&&(a=c);return Sa?[[a],[S]]:[[S]]}},{}],40:[function(h,E,u){E.exports=d;var _=h("monotone-convex-hull-2d");function d(S){var a=_(S),c=a.length;if(c<=2)return[];for(var f=new Array(c),p=a[c-1],g=0;g=p[v]&&(I+=1);y[R]=I}}return f}function c(f,p){try{return _(f,!0)}catch{var g=d(f);if(g.length<=p)return[];var m=S(f,g),N=_(m,!0);return a(N,g)}}},{"affine-hull":36,"incremental-convex-hull":42}],42:[function(h,E,u){E.exports=N;var _=h("robust-orientation"),d=h("simplicial-complex").compareCells;function S(y,R,I){this.vertices=y,this.adjacent=R,this.boundary=I,this.lastVisited=-1}S.prototype.flip=function(){var y=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=y;var R=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=R};function a(y,R,I){this.vertices=y,this.cell=R,this.index=I}function c(y,R){return d(y.vertices,R.vertices)}function f(y){for(var R=["function orient(){var tuple=this.tuple;return test("],I=0;I<=y;++I)I>0&&R.push(","),R.push("tuple[",I,"]");R.push(")}return orient");var v=new Function("test",R.join("")),M=_[y+1];return M||(M=_),v(M)}var p=[];function g(y,R,I){this.dimension=y,this.vertices=R,this.simplices=I,this.interior=I.filter(function(T){return!T.boundary}),this.tuple=new Array(y+1);for(var v=0;v<=y;++v)this.tuple[v]=this.vertices[v];var M=p[y];M||(M=p[y]=f(y)),this.orient=M}var m=g.prototype;m.handleBoundaryDegeneracy=function(y,R){var I=this.dimension,v=this.vertices.length-1,M=this.tuple,T=this.vertices,w=[y];for(y.lastVisited=-v;w.length>0;){y=w.pop(),y.vertices;for(var b=y.adjacent,P=0;P<=I;++P){var O=b[P];if(!(!O.boundary||O.lastVisited<=-v)){for(var D=O.vertices,C=0;C<=I;++C){var q=D[C];q<0?M[C]=R:M[C]=T[q]}var B=this.orient();if(B>0)return O;O.lastVisited=-v,B===0&&w.push(O)}}}return null},m.walk=function(y,R){var I=this.vertices.length-1,v=this.dimension,M=this.vertices,T=this.tuple,w=R?this.interior.length*Math.random()|0:this.interior.length-1,b=this.interior[w];t:for(;!b.boundary;){for(var P=b.vertices,O=b.adjacent,D=0;D<=v;++D)T[D]=M[P[D]];b.lastVisited=I;for(var D=0;D<=v;++D){var C=O[D];if(!(C.lastVisited>=I)){var q=T[D];T[D]=y;var B=this.orient();if(T[D]=q,B<0){b=C;continue t}else C.boundary?C.lastVisited=-I:C.lastVisited=I}}return}return b},m.addPeaks=function(y,R){var I=this.vertices.length-1,v=this.dimension,M=this.vertices,T=this.tuple,w=this.interior,b=this.simplices,P=[R];R.lastVisited=I,R.vertices[R.vertices.indexOf(-1)]=I,R.boundary=!1,w.push(R);for(var O=[];P.length>0;){var R=P.pop(),D=R.vertices,C=R.adjacent,q=D.indexOf(I);if(!(q<0)){for(var B=0;B<=v;++B)if(B!==q){var U=C[B];if(!(!U.boundary||U.lastVisited>=I)){var W=U.vertices;if(U.lastVisited!==-I){for(var L=0,X=0;X<=v;++X)W[X]<0?(L=X,T[X]=y):T[X]=M[W[X]];var ot=this.orient();if(ot>0){W[L]=I,U.boundary=!1,w.push(U),P.push(U),U.lastVisited=I;continue}else U.lastVisited=-I}var F=U.adjacent,Y=D.slice(),H=C.slice(),z=new S(Y,H,!0);b.push(z);var J=F.indexOf(R);if(!(J<0)){F[J]=z,H[q]=U,Y[B]=-1,H[B]=R,C[B]=z,z.flip();for(var X=0;X<=v;++X){var G=Y[X];if(!(G<0||G===I)){for(var k=new Array(v-1),j=0,rt=0;rt<=v;++rt){var it=Y[rt];it<0||rt===X||(k[j++]=it)}O.push(new a(k,z,X))}}}}}}}O.sort(c);for(var B=0;B+1=0?w[P++]=b[D]:O=D&1;if(O===(y&1)){var C=w[0];w[0]=w[1],w[1]=C}R.push(w)}}return R};function N(y,R){var I=y.length;if(I===0)throw new Error("Must have at least d+1 points");var v=y[0].length;if(I<=v)throw new Error("Must input at least d+1 points");var M=y.slice(0,v+1),T=_.apply(void 0,M);if(T===0)throw new Error("Input not in general position");for(var w=new Array(v+1),b=0;b<=v;++b)w[b]=b;T<0&&(w[0]=1,w[1]=0);for(var P=new S(w,new Array(v+1),!1),O=P.adjacent,D=new Array(v+2),b=0;b<=v;++b){for(var C=w.slice(),q=0;q<=v;++q)q===b&&(C[q]=-1);var B=C[0];C[0]=C[1],C[1]=B;var U=new S(C,new Array(v+1),!0);O[b]=U,D[b]=U}D[v+1]=P;for(var b=0;b<=v;++b)for(var C=O[b].vertices,W=O[b].adjacent,q=0;q<=v;++q){var L=C[q];if(L<0){W[q]=P;continue}for(var X=0;X<=v;++X)O[X].vertices.indexOf(L)<0&&(W[q]=O[X])}for(var ot=new g(v,M,D),F=!!R,b=v+1;b1&&_(S[p[y-2]],S[p[y-1]],N)<=0;)y-=1,p.pop();for(p.push(m),y=g.length;y>1&&_(S[g[y-2]],S[g[y-1]],N)>=0;)y-=1,g.pop();g.push(m)}for(var R=new Array(g.length+p.length-2),I=0,c=0,v=p.length;c0;--M)R[I++]=g[M];return R}},{"robust-orientation":44}],44:[function(h,E,u){var _=h("two-product"),d=h("robust-sum"),S=h("robust-scale"),a=h("robust-subtract"),c=5,f=11102230246251565e-32,p=(3+16*f)*f,g=(7+56*f)*f;function m(O,D){for(var C=new Array(O.length-1),q=1;q>1;return["sum(",R(O.slice(0,D)),",",R(O.slice(D)),")"].join("")}function I(O){if(O.length===2)return[["sum(prod(",O[0][0],",",O[1][1],"),prod(-",O[0][1],",",O[1][0],"))"].join("")];for(var D=[],C=0;C0){if(U<=0)return W;L=B+U}else if(B<0){if(U>=0)return W;L=-(B+U)}else return W;var X=p*L;return W>=X||W<=-X?W:M(D,C,q)},function(D,C,q,B){var U=D[0]-B[0],W=C[0]-B[0],L=q[0]-B[0],X=D[1]-B[1],ot=C[1]-B[1],F=q[1]-B[1],Y=D[2]-B[2],H=C[2]-B[2],z=q[2]-B[2],J=W*F,G=L*ot,k=L*X,j=U*F,rt=U*ot,it=W*X,Q=Y*(J-G)+H*(k-j)+z*(rt-it),lt=(Math.abs(J)+Math.abs(G))*Math.abs(Y)+(Math.abs(k)+Math.abs(j))*Math.abs(H)+(Math.abs(rt)+Math.abs(it))*Math.abs(z),st=g*lt;return Q>st||-Q>st?Q:T(D,C,q,B)}];function b(O){var D=w[O.length];return D||(D=w[O.length]=v(O.length)),D.apply(void 0,O)}function P(){for(;w.length<=c;)w.push(v(w.length));for(var O=[],D=["slow"],C=0;C<=c;++C)O.push("a"+C),D.push("o"+C);for(var q=["function getOrientation(",O.join(),"){switch(arguments.length){case 0:case 1:return 0;"],C=2;C<=c;++C)q.push("case ",C,":return o",C,"(",O.slice(0,C).join(),");");q.push("}var s=new Array(arguments.length);for(var i=0;i=f?(w=I,N+=1,N=f?(w=I,N+=1,N>1,U=f(P[B],O);U<=0?(U===0&&(q=B),D=B+1):U>0&&(C=B-1)}return q}u.findCell=N;function y(P,O){for(var D=new Array(P.length),C=0,q=D.length;C=P.length||f(P[H],B)!==0););}return D}u.incidence=y;function R(P,O){if(!O)return y(m(v(P,0)),P);for(var D=new Array(O),C=0;C>>X&1&&L.push(q[X]);O.push(L)}return g(O)}u.explode=I;function v(P,O){if(O<0)return[];for(var D=[],C=(1<S[1]!=R>S[1]&&S[0]<(y-m)*(S[1]-N)/(R-N)+m;v&&(f=!f)}return f}},{"@turf/invariant":73}],73:[function(h,E,u){arguments[4][4][0].apply(u,arguments)},{dup:4}],74:[function(h,E,u){E.exports=_;function _(a,c,f,p,g){for(f=f||0,p=p||a.length-1,g=g||S;p>f;){if(p-f>600){var m=p-f+1,N=c-f+1,y=Math.log(m),R=.5*Math.exp(2*y/3),I=.5*Math.sqrt(y*R*(m-R)/m)*(N-m/2<0?-1:1),v=Math.max(f,Math.floor(c-N*R/m+I)),M=Math.min(p,Math.floor(c+(m-N)*R/m+I));_(a,c,v,M,g)}var T=a[c],w=f,b=p;for(d(a,f,c),g(a[p],T)>0&&d(a,f,p);w0;)b--}g(a[f],T)===0?d(a,f,b):(b++,d(a,b,p)),b<=c&&(f=b+1),c<=b&&(p=b-1)}}function d(a,c,f){var p=a[c];a[c]=a[f],a[f]=p}function S(a,c){return ac?1:0}},{}],75:[function(h,E,u){E.exports=d;var _=h("quickselect");function d(w,b){if(!(this instanceof d))return new d(w,b);this._maxEntries=Math.max(4,w||9),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),b&&this._initFormat(b),this.clear()}d.prototype={all:function(){return this._all(this.data,[])},search:function(w){var b=this.data,P=[],O=this.toBBox;if(!v(w,b))return P;for(var D=[],C,q,B,U;b;){for(C=0,q=b.children.length;C=0&&C[b].children.length>this._maxEntries;)this._split(C,b),b--;this._adjustParentBBoxes(D,C,b)},_split:function(w,b){var P=w[b],O=P.children.length,D=this._minEntries;this._chooseSplitAxis(P,D,O);var C=this._chooseSplitIndex(P,D,O),q=M(P.children.splice(C,P.children.length-C));q.height=P.height,q.leaf=P.leaf,a(P,this.toBBox),a(q,this.toBBox),b?w[b-1].children.push(q):this._splitRoot(P,q)},_splitRoot:function(w,b){this.data=M([w,b]),this.data.height=w.height+1,this.data.leaf=!1,a(this.data,this.toBBox)},_chooseSplitIndex:function(w,b,P){var O,D,C,q,B,U,W,L;for(U=W=1/0,O=b;O<=P-b;O++)D=c(w,0,O,this.toBBox),C=c(w,O,P,this.toBBox),q=R(D,C),B=m(D)+m(C),q=b;U--)W=w.children[U],f(q,w.leaf?D(W):W),B+=N(q);return B},_adjustParentBBoxes:function(w,b,P){for(var O=P;O>=0;O--)f(b[O],w)},_condense:function(w){for(var b=w.length-1,P;b>=0;b--)w[b].children.length===0?b>0?(P=w[b-1].children,P.splice(P.indexOf(w[b]),1)):this.clear():a(w[b],this.toBBox)},_initFormat:function(w){var b=["return a"," - b",";"];this.compareMinX=new Function("a","b",b.join(w[0])),this.compareMinY=new Function("a","b",b.join(w[1])),this.toBBox=new Function("a","return {minX: a"+w[0]+", minY: a"+w[1]+", maxX: a"+w[2]+", maxY: a"+w[3]+"};")}};function S(w,b,P){if(!P)return b.indexOf(w);for(var O=0;O=w.minX&&b.maxY>=w.minY}function M(w){return{children:w,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function T(w,b,P,O,D){for(var C=[b,P],q;C.length;)P=C.pop(),b=C.pop(),!(P-b<=O)&&(q=b+Math.ceil((P-b)/O/2)*O,_(w,q,b,P,D),C.push(b,q,q,P))}},{quickselect:74}],76:[function(h,E,u){var _=h("@turf/meta");E.exports=function(d){var S={MultiPoint:{coordinates:[],properties:[]},MultiLineString:{coordinates:[],properties:[]},MultiPolygon:{coordinates:[],properties:[]}},a=Object.keys(S).reduce(function(f,p){return f[p.replace("Multi","")]=p,f},{});function c(f,p,g){g?S[p].coordinates=S[p].coordinates.concat(f.geometry.coordinates):S[p].coordinates.push(f.geometry.coordinates),S[p].properties.push(f.properties)}return _.featureEach(d,function(f){f.geometry&&(S[f.geometry.type]?c(f,f.geometry.type,!0):a[f.geometry.type]&&c(f,a[f.geometry.type],!1))}),{type:"FeatureCollection",features:Object.keys(S).filter(function(f){return S[f].coordinates.length}).sort().map(function(f){return{type:"Feature",properties:{collectedProperties:S[f].properties},geometry:{type:f,coordinates:S[f].coordinates}}})}}},{"@turf/meta":77}],77:[function(h,E,u){arguments[4][14][0].apply(u,arguments)},{dup:14}],78:[function(h,E,u){var _=h("@turf/tin"),d=h("@turf/union"),S=h("@turf/distance");function a(f,p,g){if(typeof p!="number")throw new Error("maxEdge parameter is required");var m=_(f),N=m.features.filter(y);if(m.features=N,m.features.length<1)throw new Error("too few polygons found to compute concave hull");function y(R){var I=R.geometry.coordinates[0][0],v=R.geometry.coordinates[0][1],M=R.geometry.coordinates[0][2],T=S(I,v,g),w=S(v,M,g),b=S(I,M,g);return T<=p&&w<=p&&b<=p}return c(m)}function c(f){for(var p=JSON.parse(JSON.stringify(f.features[0])),g=f.features,m=0,N=g.length;mR&&(R=p[g].y);var O=N-m,D=R-y,C=O>D?O:D,q=(N+m)*.5,B=(R+y)*.5,U=[new S({x:q-20*C,y:B-C,__sentinel:!0},{x:q,y:B+20*C,__sentinel:!0},{x:q+20*C,y:B-C,__sentinel:!0})],W=[],L=[],X;for(g=p.length;g--;){for(L.length=0,X=U.length;X--;){if(O=p[g].x-U[X].x,O>0&&O*O>U[X].r){W.push(U[X]),U.splice(X,1);continue}D=p[g].y-U[X].y,!(O*O+D*D>U[X].r)&&(L.push(U[X].a,U[X].b,U[X].b,U[X].c,U[X].c,U[X].a),U.splice(X,1))}for(c(L),X=L.length;X;)M=L[--X],v=L[--X],T=p[g],w=M.x-v.x,b=M.y-v.y,P=2*(w*(T.y-M.y)-b*(T.x-M.x)),Math.abs(P)>I&&U.push(new S(v,M,T))}for(Array.prototype.push.apply(W,U),g=W.length;g--;)(W[g].a.__sentinel||W[g].b.__sentinel||W[g].c.__sentinel)&&W.splice(g,1);return W}},{"@turf/helpers":83}],83:[function(h,E,u){arguments[4][6][0].apply(u,arguments)},{dup:6}],84:[function(h,E,u){var _=h("jsts");E.exports=function(){for(var d=new _.io.GeoJSONReader,S=d.read(JSON.stringify(arguments[0].geometry)),a=1;a0&&q!==0)if(q>N[N.length-1])q=q-N.length;else{var B=f.greaterNumber(q,N);B!==0&&(q=q-B)}if(q!==T){var U=g.features[q];if(!(typeof m!==void 0&&U.properties[m]!==w.properties[m])){var W=d(w,U);if(!W){var L=JSON.stringify(w),X=JSON.stringify(U),ot=p(JSON.parse(L)),F=p(JSON.parse(X));W=c.lineStringsIntersect(ot.geometry,F.geometry)}W&&(g.features[T]=_(w,U),N.push(O[C].origIndexPosition),N.sort(function(H,z){return H-z}),R.remove(O[C]),g.features.splice(q,1),P.origIndexPosition=T,R.remove(P,function(H,z){return H.origIndexPosition===z.origIndexPosition}),D=!0)}}}if(D){var Y=S(w);R.insert({minX:Y[0],minY:Y[1],maxX:Y[2],maxY:Y[3],origIndexPosition:T}),T--}}return g};function p(g){if(g==null)throw new Error("No polygon was passed");g.geometry.type="LineString";var m=[].concat.apply([],g.geometry.coordinates);return g.geometry.coordinates=m,g}},{"@turf/bbox":111,"@turf/union":113,"geojson-utils":115,"get-closest":116,rbush:118,"turf-overlaps":120}],111:[function(h,E,u){arguments[4][18][0].apply(u,arguments)},{"@turf/meta":112,dup:18}],112:[function(h,E,u){arguments[4][14][0].apply(u,arguments)},{dup:14}],113:[function(h,E,u){arguments[4][84][0].apply(u,arguments)},{dup:84,jsts:114}],114:[function(h,E,u){arguments[4][28][0].apply(u,arguments)},{dup:28}],115:[function(h,E,u){(function(){var _=this.gju={};typeof E<"u"&&E.exports&&(E.exports=_),_.lineStringsIntersect=function(a,c){for(var f=[],p=0;p<=a.coordinates.length-2;++p)for(var g=0;g<=c.coordinates.length-2;++g){var m={x:a.coordinates[p][1],y:a.coordinates[p][0]},N={x:a.coordinates[p+1][1],y:a.coordinates[p+1][0]},y={x:c.coordinates[g][1],y:c.coordinates[g][0]},R={x:c.coordinates[g+1][1],y:c.coordinates[g+1][0]},I=(R.x-y.x)*(m.y-y.y)-(R.y-y.y)*(m.x-y.x),v=(N.x-m.x)*(m.y-y.y)-(N.y-m.y)*(m.x-y.x),M=(R.y-y.y)*(N.x-m.x)-(R.x-y.x)*(N.y-m.y);if(M!=0){var T=I/M,w=v/M;0<=T&&T<=1&&0<=w&&w<=1&&f.push({type:"Point",coordinates:[m.x+T*(N.x-m.x),m.y+T*(N.y-m.y)]})}}return f.length==0&&(f=!1),f};function d(a){for(var c=[],f=[],p=0;pc[1][0]||a.coordinates[0]c[1][1])};function S(a,c,f){for(var p=[[0,0]],g=0;gc!=p[m][0]>c&&a<(p[m][1]-p[g][1])*(c-p[g][0])/(p[m][0]-p[g][0])+p[g][1]&&(N=!N);return N}_.pointInPolygon=function(a,c){for(var f=c.type=="Polygon"?[c.coordinates]:c.coordinates,p=!1,g=0;gf)return!1}return!0},_.area=function(a){for(var c=0,f=a.coordinates[0],p=f.length-1,g,m,N=0;N0;)if(m=L[p-1],N=X[p-1],p--,N-m>1){for(T=a[N].lng()-a[m].lng(),w=a[N].lat()-a[m].lat(),Math.abs(T)>180&&(T=360-Math.abs(T)),T*=Math.cos(U*(a[N].lat()+a[m].lat())),b=T*T+w*w,y=m+1,R=m,v=-1;y180&&(P=360-Math.abs(P)),P*=Math.cos(U*(a[y].lat()+a[m].lat())),D=P*P+O*O,C=a[y].lng()-a[N].lng(),q=a[y].lat()-a[N].lat(),Math.abs(C)>180&&(C=360-Math.abs(C)),C*=Math.cos(U*(a[y].lat()+a[N].lat())),B=C*C+q*q,D>=b+B?I=B:B>=b+D?I=D:I=(P*w-O*T)*(P*w-O*T)/b,I>v&&(R=y,v=I);v=0&&(typeof p>"u"||N0}},{}],120:[function(h,E,u){var _=h("turf-is-clockwise");function d(c,f){var p=c[0],g=c[1],m=f[0],N=f[1];return _([p,m,N,p])!=_([g,m,N,g])&&_([p,g,m,p])!=_([p,g,N,p])}function S(c,f){for(var p=0;pP&&(C>w&&Dw&&CM&&(M=q)}var B=[];if(v&&M0&&Math.abs(L-m[W-1][0])>P){var X=parseFloat(m[W-1][0]),ot=parseFloat(m[W-1][1]),F=parseFloat(m[W][0]),Y=parseFloat(m[W][1]);if(X>-180&&X-180&&m[W-1][0]w&&X<180&&F===-180&&W+1w&&m[W-1][0]<180){U.push([180,m[W][1]]),W++,U.push([m[W][0],m[W][1]]);continue}if(Xw){var H=X;X=F,F=H;var z=ot;ot=Y,Y=z}if(X>w&&F=180&&Xw?180:-180,G]),U=[],U.push([m[W-1][0]>w?-180:180,G]),B.push(U)}else U=[],B.push(U);U.push([L,m[W][1]])}else U.push([m[W][0],m[W][1]])}}else{var k=[];B.push(k);for(var j=0;jC/2;H&&(Y-=C/4);for(var z=a([]),J=0;J=m;G--)for(var k=p;k<=g-1;k++){var j,rt;if(j=Math.min(f[k][G],f[k][G+1]),rt=Math.min(f[k+1][G],f[k+1][G+1]),W=Math.min(j,rt),j=Math.max(f[k][G],f[k][G+1]),rt=Math.max(f[k+1][G],f[k+1][G+1]),L=Math.max(j,rt),L>=v[0]&&W<=v[I-1]){for(var it=0;it=W&&v[it]<=L){for(var Q=4;Q>=0;Q--)Q>0?(M[Q]=f[k+H[Q-1]][G+z[Q-1]]-v[it],w[Q]=y[k+H[Q-1]],b[Q]=R[G+z[Q-1]]):(M[0]=.25*(M[1]+M[2]+M[3]+M[4]),w[0]=.5*(y[k]+y[k+1]),b[0]=.5*(R[G]+R[G+1])),M[Q]>_?T[Q]=1:M[Q]<-_?T[Q]=-1:T[Q]=0;for(Q=1;Q<=4;Q++)if(C=Q,q=0,Q!=4?B=Q+1:B=1,U=J[T[C]+1][T[q]+1][T[B]+1],U!=0){switch(U){case 1:X=w[C],F=b[C],ot=w[q],Y=b[q];break;case 2:X=w[q],F=b[q],ot=w[B],Y=b[B];break;case 3:X=w[B],F=b[B],ot=w[C],Y=b[C];break;case 4:X=w[C],F=b[C],ot=O(q,B),Y=D(q,B);break;case 5:X=w[q],F=b[q],ot=O(B,C),Y=D(B,C);break;case 6:X=w[B],F=b[B],ot=O(C,q),Y=D(C,q);break;case 7:X=O(C,q),F=D(C,q),ot=O(q,B),Y=D(q,B);break;case 8:X=O(q,B),F=D(q,B),ot=O(B,C),Y=D(B,C);break;case 9:X=O(B,C),F=D(B,C),ot=O(C,q),Y=D(C,q);break}P(X,F,ot,Y,v[it],it)}}}}}},{}],169:[function(h,E,u){var _=h("@turf/tin"),d=h("@turf/inside"),S=h("@turf/point-grid"),a=h("@turf/distance"),c=h("@turf/bbox"),f=h("@turf/planepoint"),p=h("@turf/helpers").featureCollection,g=h("@turf/helpers").lineString,m=h("@turf/helpers").point,N=h("@turf/square"),y=h("./conrec");E.exports=function(R,I,v,M){for(var T=_(R,I),w=c(R),b=N(w),P=a(m([b[0],b[1]]),m([b[2],b[1]]),"kilometers")/v,O=S(b,P,"kilometers"),D=[],C=0;C2){var it=[];rt.forEach(function(lt){it.push([lt.x,lt.y])});var Q=g(it);Q.properties={},Q.properties[I]=rt.level,j.features.push(Q)}}),j}},{"./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(h,E,u){arguments[4][18][0].apply(u,arguments)},{"@turf/meta":171,dup:18}],171:[function(h,E,u){arguments[4][14][0].apply(u,arguments)},{dup:14}],172:[function(h,E,u){arguments[4][8][0].apply(u,arguments)},{"@turf/helpers":173,"@turf/invariant":174,dup:8}],173:[function(h,E,u){arguments[4][6][0].apply(u,arguments)},{dup:6}],174:[function(h,E,u){arguments[4][4][0].apply(u,arguments)},{dup:4}],175:[function(h,E,u){arguments[4][6][0].apply(u,arguments)},{dup:6}],176:[function(h,E,u){arguments[4][72][0].apply(u,arguments)},{"@turf/invariant":177,dup:72}],177:[function(h,E,u){arguments[4][4][0].apply(u,arguments)},{dup:4}],178:[function(h,E,u){E.exports=function(_,d){var S=_.geometry.coordinates[0],a=_.geometry.coordinates[1],c=d.geometry.coordinates[0][0][0],f=d.geometry.coordinates[0][0][1],p=d.properties.a,g=d.geometry.coordinates[0][1][0],m=d.geometry.coordinates[0][1][1],N=d.properties.b,y=d.geometry.coordinates[0][2][0],R=d.geometry.coordinates[0][2][1],I=d.properties.c,v=(I*(S-c)*(a-m)+p*(S-g)*(a-R)+N*(S-y)*(a-f)-N*(S-c)*(a-R)-I*(S-g)*(a-f)-p*(S-y)*(a-m))/((S-c)*(a-m)+(S-g)*(a-R)+(S-y)*(a-f)-(S-c)*(a-R)-(S-g)*(a-f)-(S-y)*(a-m));return v}},{}],179:[function(h,E,u){var _=h("@turf/helpers").point,d=h("@turf/helpers").featureCollection,S=h("@turf/distance"),a=h("@turf/bbox");E.exports=function(c,f,p){var g=[];if(!c)throw new Error("bbox is required");if(Array.isArray(c)||(c=a(c)),c.length!==4)throw new Error("bbox must contain 4 numbers");for(var m=c[0],N=c[1],y=c[2],R=c[3],I=f/S(_([m,N]),_([y,N]),p),v=I*(y-m),M=f/S(_([m,N]),_([m,R]),p),T=M*(R-N),w=m;w<=y;){for(var b=N;b<=R;)g.push(_([w,b])),b+=T;w+=v}return d(g)}},{"@turf/bbox":180,"@turf/distance":182,"@turf/helpers":185}],180:[function(h,E,u){arguments[4][18][0].apply(u,arguments)},{"@turf/meta":181,dup:18}],181:[function(h,E,u){arguments[4][14][0].apply(u,arguments)},{dup:14}],182:[function(h,E,u){arguments[4][8][0].apply(u,arguments)},{"@turf/helpers":183,"@turf/invariant":184,dup:8}],183:[function(h,E,u){arguments[4][6][0].apply(u,arguments)},{dup:6}],184:[function(h,E,u){arguments[4][4][0].apply(u,arguments)},{dup:4}],185:[function(h,E,u){arguments[4][6][0].apply(u,arguments)},{dup:6}],186:[function(h,E,u){var _=h("@turf/distance");E.exports=function(d){var S=d[0],a=d[1],c=d[2],f=d[3],p=_(d.slice(0,2),[c,a]),g=_(d.slice(0,2),[S,f]);if(p>=g){var m=(a+f)/2;return[S,m-(c-S)/2,c,m+(c-S)/2]}else{var N=(S+c)/2;return[N-(f-a)/2,a,N+(f-a)/2,f]}}},{"@turf/distance":187}],187:[function(h,E,u){arguments[4][8][0].apply(u,arguments)},{"@turf/helpers":188,"@turf/invariant":189,dup:8}],188:[function(h,E,u){arguments[4][6][0].apply(u,arguments)},{dup:6}],189:[function(h,E,u){arguments[4][4][0].apply(u,arguments)},{dup:4}],190:[function(h,E,u){arguments[4][82][0].apply(u,arguments)},{"@turf/helpers":191,dup:82}],191:[function(h,E,u){arguments[4][6][0].apply(u,arguments)},{dup:6}],192:[function(h,E,u){var _=h("@turf/helpers").point;E.exports=function(S){var a,c,f={type:"FeatureCollection",features:[]};if(S.type==="Feature"?c=S.geometry:c=S,c.type==="LineString")a=[c.coordinates];else if(c.type==="MultiLineString")a=c.coordinates;else if(c.type==="MultiPolygon")a=[].concat.apply([],c.coordinates);else if(c.type==="Polygon")a=c.coordinates;else throw new Error("Input must be a LineString, MultiLineString, Polygon, or MultiPolygon Feature or Geometry");return a.forEach(function(p){a.forEach(function(g){for(var m=0;m=0&&R<=1&&(T.onLine1=!0),I>=0&&I<=1&&(T.onLine2=!0),T.onLine1&&T.onLine2?[T.x,T.y]:!1)}},{"@turf/helpers":193}],193:[function(h,E,u){arguments[4][6][0].apply(u,arguments)},{dup:6}],194:[function(h,E,u){var _=h("@turf/line-slice-along"),d=h("@turf/line-distance"),S=h("@turf/helpers").featureCollection,a=h("@turf/meta").featureEach,c=h("@turf/flatten");E.exports=function(p,g,m,N){var y=[],R=arguments[4];return a(p,function(I){I.geometry.type==="MultiLineString"&&(I=c(I)),a(I,function(v){N&&(v.geometry.coordinates=v.geometry.coordinates.reverse());var M=f(v,g,m);M.forEach(function(T,w){if(R===!0){var b=w%2===0?"F":"0",P=(w%2===0,"0"),O=w%2===0?"0":"F";T.properties.stroke="#"+b+P+O,T.properties["stroke-width"]=6}y.push(T)})})}),S(y)};function f(p,g,m){var N=[],y=d(p,m);if(y<=g)return[p];for(var R=Math.floor(y/g)+1,I=0;I=y&&M===m.length-1);M++){if(y>f&&N.length===0){if(R=f-y,!R)return N.push(m[M]),a(N);I=_(m[M],m[M-1])-180,v=S(m[M],R,I,g),N.push(v.geometry.coordinates)}if(y>=p)return R=p-y,R?(I=_(m[M],m[M-1])-180,v=S(m[M],R,I,g),N.push(v.geometry.coordinates),a(N)):(N.push(m[M]),a(N));if(y>=f&&N.push(m[M]),M===m.length-1)return a(N);y+=d(m[M],m[M+1],g)}return a(m[m.length-1])}},{"@turf/bearing":211,"@turf/destination":213,"@turf/distance":216,"@turf/helpers":219}],211:[function(h,E,u){arguments[4][3][0].apply(u,arguments)},{"@turf/invariant":212,dup:3}],212:[function(h,E,u){arguments[4][4][0].apply(u,arguments)},{dup:4}],213:[function(h,E,u){arguments[4][5][0].apply(u,arguments)},{"@turf/helpers":214,"@turf/invariant":215,dup:5}],214:[function(h,E,u){arguments[4][6][0].apply(u,arguments)},{dup:6}],215:[function(h,E,u){arguments[4][4][0].apply(u,arguments)},{dup:4}],216:[function(h,E,u){arguments[4][8][0].apply(u,arguments)},{"@turf/helpers":217,"@turf/invariant":218,dup:8}],217:[function(h,E,u){arguments[4][6][0].apply(u,arguments)},{dup:6}],218:[function(h,E,u){arguments[4][4][0].apply(u,arguments)},{dup:4}],219:[function(h,E,u){arguments[4][6][0].apply(u,arguments)},{dup:6}],220:[function(h,E,u){arguments[4][14][0].apply(u,arguments)},{dup:14}],221:[function(h,E,u){arguments[4][200][0].apply(u,arguments)},{"@turf/distance":222,"@turf/flatten":225,"@turf/helpers":229,"@turf/meta":230,dup:200}],222:[function(h,E,u){arguments[4][8][0].apply(u,arguments)},{"@turf/helpers":223,"@turf/invariant":224,dup:8}],223:[function(h,E,u){arguments[4][6][0].apply(u,arguments)},{dup:6}],224:[function(h,E,u){arguments[4][4][0].apply(u,arguments)},{dup:4}],225:[function(h,E,u){arguments[4][132][0].apply(u,arguments)},{"@turf/helpers":226,"@turf/invariant":227,"@turf/meta":228,dup:132}],226:[function(h,E,u){arguments[4][6][0].apply(u,arguments)},{dup:6}],227:[function(h,E,u){arguments[4][4][0].apply(u,arguments)},{dup:4}],228:[function(h,E,u){arguments[4][14][0].apply(u,arguments)},{dup:14}],229:[function(h,E,u){arguments[4][6][0].apply(u,arguments)},{dup:6}],230:[function(h,E,u){arguments[4][14][0].apply(u,arguments)},{dup:14}],231:[function(h,E,u){var _=h("@turf/helpers"),d=h("@turf/meta"),S=h("@turf/line-segment"),a=h("@turf/invariant").getCoords,c=h("geojson-rbush"),f=_.point,p=_.featureCollection,g=d.featureEach;E.exports=function(N,y){var R=[];if(N.geometry.type==="LineString"&&y.geometry.type==="LineString"&&N.geometry.coordinates.length===2&&y.geometry.coordinates.length===2){var I=m(N,y);return I&&R.push(I),p(R)}var v=c();return v.load(S(y)),g(S(N),function(M){g(v.search(M),function(T){var w=m(M,T);w&&R.push(w)})}),p(R)};function m(N,y){var R=a(N),I=a(y);if(R.length!==2)throw new Error(" line1 must only contain 2 coordinates");if(I.length!==2)throw new Error(" line2 must only contain 2 coordinates");var v=R[0][0],M=R[0][1],T=R[1][0],w=R[1][1],b=I[0][0],P=I[0][1],O=I[1][0],D=I[1][1],C=(D-P)*(T-v)-(O-b)*(w-M),q=(O-b)*(M-P)-(D-P)*(v-b),B=(T-v)*(M-P)-(w-M)*(v-b);if(C===0)return null;var U=q/C,W=B/C;if(U>=0&&U<=1&&W>=0&&W<=1){var L=v+U*(T-v),X=M+U*(w-M);return f([L,X])}return null}},{"@turf/helpers":233,"@turf/invariant":234,"@turf/line-segment":235,"@turf/meta":243,"geojson-rbush":244}],232:[function(h,E,u){arguments[4][18][0].apply(u,arguments)},{"@turf/meta":243,dup:18}],233:[function(h,E,u){arguments[4][6][0].apply(u,arguments)},{dup:6}],234:[function(h,E,u){arguments[4][4][0].apply(u,arguments)},{dup:4}],235:[function(h,E,u){var _=h("@turf/flatten"),d=h("@turf/meta").featureEach,S=h("@turf/helpers").lineString,a=h("@turf/helpers").featureCollection,c=h("@turf/invariant").getCoords;E.exports=function(g){var m=[],N=0;return d(g,function(y){d(_(y),function(R){var I=[],v=R.geometry?R.geometry.type:R.type;switch(v){case"Polygon":I=c(R);break;case"LineString":I=[c(R)]}I.forEach(function(M){var T=f(M,R.properties);T.forEach(function(w){w.id=N,m.push(w),N++})})})}),a(m)};function f(g,m){var N=[];return g.reduce(function(y,R){var I=S([y,R],m);return I.bbox=p(y,R),N.push(I),R}),N}function p(g,m){var N=g[0],y=g[1],R=m[0],I=m[1],v=NR?N:R,w=y>I?y:I;return[v,M,T,w]}},{"@turf/flatten":236,"@turf/helpers":240,"@turf/invariant":241,"@turf/meta":242}],236:[function(h,E,u){arguments[4][132][0].apply(u,arguments)},{"@turf/helpers":237,"@turf/invariant":238,"@turf/meta":239,dup:132}],237:[function(h,E,u){arguments[4][6][0].apply(u,arguments)},{dup:6}],238:[function(h,E,u){arguments[4][4][0].apply(u,arguments)},{dup:4}],239:[function(h,E,u){arguments[4][14][0].apply(u,arguments)},{dup:14}],240:[function(h,E,u){arguments[4][6][0].apply(u,arguments)},{dup:6}],241:[function(h,E,u){arguments[4][4][0].apply(u,arguments)},{dup:4}],242:[function(h,E,u){arguments[4][14][0].apply(u,arguments)},{dup:14}],243:[function(h,E,u){arguments[4][14][0].apply(u,arguments)},{dup:14}],244:[function(h,E,u){var _=h("@turf/bbox"),d=h("@turf/helpers").featureCollection,S=h("@turf/meta").featureEach,a=h("rbush");E.exports=function(c){var f=a(c);return f.insert=function(p){return p.bbox=p.bbox?p.bbox:_(p),a.prototype.insert.call(this,p)},f.load=function(p){var g=[];return S(p,function(m){m.bbox=m.bbox?m.bbox:_(m),g.push(m)}),a.prototype.load.call(this,g)},f.remove=function(p){return a.prototype.remove.call(this,p)},f.clear=function(){return a.prototype.clear.call(this)},f.search=function(p){var g=a.prototype.search.call(this,this.toBBox(p));return d(g)},f.collides=function(p){return a.prototype.collides.call(this,this.toBBox(p))},f.all=function(){var p=a.prototype.all.call(this);return d(p)},f.toJSON=function(){return a.prototype.toJSON.call(this)},f.fromJSON=function(p){return a.prototype.fromJSON.call(this,p)},f.toBBox=function(p){var g=p.bbox?p.bbox:_(p);return{minX:g[0],minY:g[1],maxX:g[2],maxY:g[3]}},f}},{"@turf/bbox":232,"@turf/helpers":233,"@turf/meta":243,rbush:246}],245:[function(h,E,u){arguments[4][74][0].apply(u,arguments)},{dup:74}],246:[function(h,E,u){arguments[4][75][0].apply(u,arguments)},{dup:75,quickselect:245}],247:[function(h,E,u){arguments[4][235][0].apply(u,arguments)},{"@turf/flatten":248,"@turf/helpers":252,"@turf/invariant":253,"@turf/meta":254,dup:235}],248:[function(h,E,u){arguments[4][132][0].apply(u,arguments)},{"@turf/helpers":249,"@turf/invariant":250,"@turf/meta":251,dup:132}],249:[function(h,E,u){arguments[4][6][0].apply(u,arguments)},{dup:6}],250:[function(h,E,u){arguments[4][4][0].apply(u,arguments)},{dup:4}],251:[function(h,E,u){arguments[4][14][0].apply(u,arguments)},{dup:14}],252:[function(h,E,u){arguments[4][6][0].apply(u,arguments)},{dup:6}],253:[function(h,E,u){arguments[4][4][0].apply(u,arguments)},{dup:4}],254:[function(h,E,u){arguments[4][14][0].apply(u,arguments)},{dup:14}],255:[function(h,E,u){arguments[4][210][0].apply(u,arguments)},{"@turf/bearing":256,"@turf/destination":258,"@turf/distance":261,"@turf/helpers":264,dup:210}],256:[function(h,E,u){arguments[4][3][0].apply(u,arguments)},{"@turf/invariant":257,dup:3}],257:[function(h,E,u){arguments[4][4][0].apply(u,arguments)},{dup:4}],258:[function(h,E,u){arguments[4][5][0].apply(u,arguments)},{"@turf/helpers":259,"@turf/invariant":260,dup:5}],259:[function(h,E,u){arguments[4][6][0].apply(u,arguments)},{dup:6}],260:[function(h,E,u){arguments[4][4][0].apply(u,arguments)},{dup:4}],261:[function(h,E,u){arguments[4][8][0].apply(u,arguments)},{"@turf/helpers":262,"@turf/invariant":263,dup:8}],262:[function(h,E,u){arguments[4][6][0].apply(u,arguments)},{dup:6}],263:[function(h,E,u){arguments[4][4][0].apply(u,arguments)},{dup:4}],264:[function(h,E,u){arguments[4][6][0].apply(u,arguments)},{dup:6}],265:[function(h,E,u){var _=h("@turf/helpers").lineString,d=h("@turf/point-on-line");E.exports=function(a,c,f){var p;if(f.type==="Feature")p=f.geometry.coordinates;else if(f.type==="LineString")p=f.coordinates;else throw new Error("input must be a LineString Feature or Geometry");var g=d(f,a),m=d(f,c),N;g.properties.index<=m.properties.index?N=[g,m]:N=[m,g];for(var y=_([N[0].geometry.coordinates],{}),R=N[0].properties.index+1;R0&&M<1&&(P.onLine1=!0),T>0&&T<1&&(P.onLine2=!0),P.onLine1&&P.onLine2?[P.x,P.y]:!1)}},{"@turf/bearing":268,"@turf/destination":270,"@turf/distance":273,"@turf/helpers":276}],268:[function(h,E,u){arguments[4][3][0].apply(u,arguments)},{"@turf/invariant":269,dup:3}],269:[function(h,E,u){arguments[4][4][0].apply(u,arguments)},{dup:4}],270:[function(h,E,u){arguments[4][5][0].apply(u,arguments)},{"@turf/helpers":271,"@turf/invariant":272,dup:5}],271:[function(h,E,u){arguments[4][6][0].apply(u,arguments)},{dup:6}],272:[function(h,E,u){arguments[4][4][0].apply(u,arguments)},{dup:4}],273:[function(h,E,u){arguments[4][8][0].apply(u,arguments)},{"@turf/helpers":274,"@turf/invariant":275,dup:8}],274:[function(h,E,u){arguments[4][6][0].apply(u,arguments)},{dup:6}],275:[function(h,E,u){arguments[4][4][0].apply(u,arguments)},{dup:4}],276:[function(h,E,u){arguments[4][6][0].apply(u,arguments)},{dup:6}],277:[function(h,E,u){var _=h("@turf/meta").featureEach,d=h("rbush"),S=h("@turf/bbox"),a=h("@turf/helpers"),c=h("@turf/union");E.exports=function(I,v){var M=m(v),T=p(I),w=T[0],b=T[1];w=N(w),b=N(b);var P=f(M,w,b);return P};function f(I,v,M){var T=[];return T.push(I.geometry.coordinates[0]),_(v,function(w){T.push(w.geometry.coordinates[0])}),_(M,function(w){T.push(w.geometry.coordinates[0])}),a.polygon(T)}function p(I){var v=[],M=[];return _(I,function(T){T.geometry.type==="MultiPolygon"&&(T=g(T)),_(T,function(w){var b=w.geometry.coordinates,P=b[0],O=b.slice(1);v.push(a.polygon([P])),O.forEach(function(D){M.push(a.polygon([D]))})})}),[a.featureCollection(v),a.featureCollection(M)]}function g(I){var v=[];return I.geometry.coordinates.forEach(function(M){v.push(a.polygon(M))}),a.featureCollection(v)}function m(I){var v=[[[180,90],[-180,90],[-180,-90],[180,-90],[180,90]]],M=I&&I.geometry.coordinates||v;return a.polygon(M)}function N(I){if(I.features.length<=1)return I;var v=R(I),M=[],T={};return _(I,function(w,b){if(T[b])return!0;for(v.remove({index:b},y),T[b]=!0;;){var P=S(w),O=v.search({minX:P[0],minY:P[1],maxX:P[2],maxY:P[3]});if(O.length>0){var D=O.map(function(C){return T[C.index]=!0,v.remove({index:C.index},y),C.geojson});D.push(w),w=c.apply(this,D)}if(O.length===0)break}M.push(w)}),a.featureCollection(M)}function y(I,v){return I.index===v.index}function R(I){var v=d(),M=[];return _(I,function(T,w){var b=S(T);M.push({minX:b[0],minY:b[1],maxX:b[2],maxY:b[3],geojson:T,index:w})}),v.load(M),v}},{"@turf/bbox":278,"@turf/helpers":280,"@turf/meta":281,"@turf/union":282,rbush:285}],278:[function(h,E,u){arguments[4][18][0].apply(u,arguments)},{"@turf/meta":279,dup:18}],279:[function(h,E,u){arguments[4][14][0].apply(u,arguments)},{dup:14}],280:[function(h,E,u){arguments[4][6][0].apply(u,arguments)},{dup:6}],281:[function(h,E,u){arguments[4][14][0].apply(u,arguments)},{dup:14}],282:[function(h,E,u){arguments[4][84][0].apply(u,arguments)},{dup:84,jsts:283}],283:[function(h,E,u){arguments[4][28][0].apply(u,arguments)},{dup:28}],284:[function(h,E,u){arguments[4][74][0].apply(u,arguments)},{dup:74}],285:[function(h,E,u){arguments[4][75][0].apply(u,arguments)},{dup:75,quickselect:284}],286:[function(h,E,u){arguments[4][14][0].apply(u,arguments)},{dup:14}],287:[function(h,E,u){var _=h("@turf/bearing"),d=h("@turf/destination"),S=h("@turf/distance");E.exports=function(a,c){var f=S(a,c,"miles"),p=_(a,c),g=d(a,f/2,p,"miles");return g}},{"@turf/bearing":288,"@turf/destination":290,"@turf/distance":293}],288:[function(h,E,u){arguments[4][3][0].apply(u,arguments)},{"@turf/invariant":289,dup:3}],289:[function(h,E,u){arguments[4][4][0].apply(u,arguments)},{dup:4}],290:[function(h,E,u){arguments[4][5][0].apply(u,arguments)},{"@turf/helpers":291,"@turf/invariant":292,dup:5}],291:[function(h,E,u){arguments[4][6][0].apply(u,arguments)},{dup:6}],292:[function(h,E,u){arguments[4][4][0].apply(u,arguments)},{dup:4}],293:[function(h,E,u){arguments[4][8][0].apply(u,arguments)},{"@turf/helpers":294,"@turf/invariant":295,dup:8}],294:[function(h,E,u){arguments[4][6][0].apply(u,arguments)},{dup:6}],295:[function(h,E,u){arguments[4][4][0].apply(u,arguments)},{dup:4}],296:[function(h,E,u){var _=h("@turf/distance");E.exports=function(d,S){for(var a,c=1/0,f=0;f0?O+C[D-1]:O}function P(O,D){O=O*2*Math.PI/w[w.length-1];var C=Math.random();T.push([C*I*Math.sin(O),C*I*Math.cos(O)])}return N(M)};function d(y){return function(R,I){return[R[0]+y[0],R[1]+y[1]]}}function S(){return Math.random()-.5}function a(){return S()*360}function c(){return S()*180}function f(y){return{type:"Point",coordinates:y||[a(),c()]}}function p(y){return[Math.random()*(y[2]-y[0])+y[0],Math.random()*(y[3]-y[1])+y[1]]}function g(y){return{type:"Polygon",coordinates:y}}function m(y){return{type:"Feature",geometry:y,properties:{}}}function N(y){return{type:"FeatureCollection",features:y}}},{}],334:[function(h,E,u){var _=h("@turf/helpers").featureCollection;E.exports=function(S,a){var c=_(d(S.features,a));return c};function d(S,a){for(var c=S.slice(0),f=S.length,p=f-a,g,m;f-- >p;)m=Math.floor((f+1)*Math.random()),g=c[m],c[m]=c[f],c[f]=g;return c.slice(p)}},{"@turf/helpers":335}],335:[function(h,E,u){arguments[4][6][0].apply(u,arguments)},{dup:6}],336:[function(h,E,u){var _=h("simplify-js"),d=["LineString","MultiLineString","Polygon","MultiPolygon"];E.exports=function(g,m,N){return g.type==="Feature"?c(S(g,m,N),g.properties):g.type==="FeatureCollection"?{type:"FeatureCollection",features:g.features.map(function(y){var R=S(y,m,N);return d.indexOf(R.type)>-1?c(R,y.properties):R})}:g.type==="GeometryCollection"?{type:"GeometryCollection",geometries:g.geometries.map(function(y){return d.indexOf(y.type)>-1?S({type:"Feature",geometry:y},m,N):y})}:g};function S(g,m,N){return g.geometry.type==="LineString"?{type:"LineString",coordinates:f(g.geometry.coordinates,m,N)}:g.geometry.type==="MultiLineString"?{type:"MultiLineString",coordinates:g.geometry.coordinates.map(function(y){return f(y,m,N)})}:g.geometry.type==="Polygon"?{type:"Polygon",coordinates:p(g.geometry.coordinates,m,N)}:g.geometry.type==="MultiPolygon"?{type:"MultiPolygon",coordinates:g.geometry.coordinates.map(function(y){return p(y,m,N)})}:g}function a(g){return g.length<3?!1:!(g.length===3&&g[2][0]===g[0][0]&&g[2][1]===g[0][1])}function c(g,m){return{type:"Feature",geometry:g,properties:m}}function f(g,m,N){return _(g.map(function(y){return{x:y[0],y:y[1],z:y[2]}}),m,N).map(function(y){return y.z?[y.x,y.y,y.z]:[y.x,y.y]})}function p(g,m,N){return g.map(function(y){var R=y.map(function(v){return{x:v[0],y:v[1]}});if(R.length<4)throw new Error("Invalid polygon");for(var I=_(R,m,N).map(function(v){return[v.x,v.y]});!a(I);)m-=m*.01,I=_(R,m,N).map(function(v){return[v.x,v.y]});return(I[I.length-1][0]!==I[0][0]||I[I.length-1][1]!==I[0][1])&&I.push(I[0]),I})}},{"simplify-js":337}],337:[function(h,E,u){(function(){function _(f,p){var g=f.x-p.x,m=f.y-p.y;return g*g+m*m}function d(f,p,g){var m=p.x,N=p.y,y=g.x-m,R=g.y-N;if(y!==0||R!==0){var I=((f.x-m)*y+(f.y-N)*R)/(y*y+R*R);I>1?(m=g.x,N=g.y):I>0&&(m+=y*I,N+=R*I)}return y=f.x-m,R=f.y-N,y*y+R*R}function S(f,p){for(var g=f[0],m=[g],N,y=1,R=f.length;yp&&(m.push(N),g=N);return g!==N&&m.push(N),m}function a(f,p){var g=f.length,m=typeof Uint8Array<"u"?Uint8Array:Array,N=new m(g),y=0,R=g-1,I=[],v=[],M,T,w,b;for(N[y]=N[R]=1;R;){for(T=0,M=y+1;MT&&(b=M,T=w);T>p&&(N[b]=1,I.push(y,b,b,R)),R=I.pop(),y=I.pop()}for(M=0;M0&&(g+=c[m-1].length,p.holes.push(g))}return p}},{"@turf/helpers":353,earcut:354}],353:[function(h,E,u){arguments[4][6][0].apply(u,arguments)},{dup:6}],354:[function(h,E,u){E.exports=_;function _(F,Y,H){H=H||2;var z=Y&&Y.length,J=z?Y[0]*H:F.length,G=d(F,0,J,H,!0),k=[];if(!G)return k;var j,rt,it,Q,lt,st,ct;if(z&&(G=m(F,Y,G,H)),F.length>80*H){j=it=F[0],rt=Q=F[1];for(var vt=H;vtit&&(it=lt),st>Q&&(Q=st);ct=Math.max(it-j,Q-rt)}return a(G,k,H,j,rt,ct),k}function d(F,Y,H,z,J){var G,k;if(J===ot(F,Y,H,z)>0)for(G=Y;G=Y;G-=z)k=W(G,F[G],F[G+1],k);return k&&O(k,k.next)&&(L(k),k=k.next),k}function S(F,Y){if(!F)return F;Y||(Y=F);var H=F,z;do if(z=!1,!H.steiner&&(O(H,H.next)||P(H.prev,H,H.next)===0)){if(L(H),H=Y=H.prev,H===H.next)return null;z=!0}else H=H.next;while(z||H!==Y);return Y}function a(F,Y,H,z,J,G,k){if(F){!k&&G&&I(F,z,J,G);for(var j=F,rt,it;F.prev!==F.next;){if(rt=F.prev,it=F.next,G?f(F,z,J,G):c(F)){Y.push(rt.i/H),Y.push(F.i/H),Y.push(it.i/H),L(F),F=it.next,j=it.next;continue}if(F=it,F===j){k?k===1?(F=p(F,Y,H),a(F,Y,H,z,J,G,2)):k===2&&g(F,Y,H,z,J,G):a(S(F),Y,H,z,J,G,1);break}}}}function c(F){var Y=F.prev,H=F,z=F.next;if(P(Y,H,z)>=0)return!1;for(var J=F.next.next;J!==F.prev;){if(w(Y.x,Y.y,H.x,H.y,z.x,z.y,J.x,J.y)&&P(J.prev,J,J.next)>=0)return!1;J=J.next}return!0}function f(F,Y,H,z){var J=F.prev,G=F,k=F.next;if(P(J,G,k)>=0)return!1;for(var j=J.xG.x?J.x>k.x?J.x:k.x:G.x>k.x?G.x:k.x,Q=J.y>G.y?J.y>k.y?J.y:k.y:G.y>k.y?G.y:k.y,lt=M(j,rt,Y,H,z),st=M(it,Q,Y,H,z),ct=F.nextZ;ct&&ct.z<=st;){if(ct!==F.prev&&ct!==F.next&&w(J.x,J.y,G.x,G.y,k.x,k.y,ct.x,ct.y)&&P(ct.prev,ct,ct.next)>=0)return!1;ct=ct.nextZ}for(ct=F.prevZ;ct&&ct.z>=lt;){if(ct!==F.prev&&ct!==F.next&&w(J.x,J.y,G.x,G.y,k.x,k.y,ct.x,ct.y)&&P(ct.prev,ct,ct.next)>=0)return!1;ct=ct.prevZ}return!0}function p(F,Y,H){var z=F;do{var J=z.prev,G=z.next.next;!O(J,G)&&D(J,z,z.next,G)&&q(J,G)&&q(G,J)&&(Y.push(J.i/H),Y.push(z.i/H),Y.push(G.i/H),L(z),L(z.next),z=F=G),z=z.next}while(z!==F);return z}function g(F,Y,H,z,J,G){var k=F;do{for(var j=k.next.next;j!==k.prev;){if(k.i!==j.i&&b(k,j)){var rt=U(k,j);k=S(k,k.next),rt=S(rt,rt.next),a(k,Y,H,z,J,G),a(rt,Y,H,z,J,G);return}j=j.next}k=k.next}while(k!==F)}function m(F,Y,H,z){var J=[],G,k,j,rt,it;for(G=0,k=Y.length;G=H.next.y){var j=H.x+(J-H.y)*(H.next.x-H.x)/(H.next.y-H.y);if(j<=z&&j>G){if(G=j,j===z){if(J===H.y)return H;if(J===H.next.y)return H.next}k=H.x=H.x&&H.x>=it&&w(Jk.x)&&q(H,F)&&(k=H,lt=st)),H=H.next;return k}function I(F,Y,H,z){var J=F;do J.z===null&&(J.z=M(J.x,J.y,Y,H,z)),J.prevZ=J.prev,J.nextZ=J.next,J=J.next;while(J!==F);J.prevZ.nextZ=null,J.prevZ=null,v(J)}function v(F){var Y,H,z,J,G,k,j,rt,it=1;do{for(H=F,F=null,G=null,k=0;H;){for(k++,z=H,j=0,Y=0;Y0||rt>0&&z;)j===0?(J=z,z=z.nextZ,rt--):rt===0||!z||H.z<=z.z?(J=H,H=H.nextZ,j--):(J=z,z=z.nextZ,rt--),G?G.nextZ=J:F=J,J.prevZ=G,G=J;H=z}G.nextZ=null,it*=2}while(k>1);return F}function M(F,Y,H,z,J){return F=32767*(F-H)/J,Y=32767*(Y-z)/J,F=(F|F<<8)&16711935,F=(F|F<<4)&252645135,F=(F|F<<2)&858993459,F=(F|F<<1)&1431655765,Y=(Y|Y<<8)&16711935,Y=(Y|Y<<4)&252645135,Y=(Y|Y<<2)&858993459,Y=(Y|Y<<1)&1431655765,F|Y<<1}function T(F){var Y=F,H=F;do Y.x=0&&(F-k)*(z-j)-(H-k)*(Y-j)>=0&&(H-k)*(G-j)-(J-k)*(z-j)>=0}function b(F,Y){return F.next.i!==Y.i&&F.prev.i!==Y.i&&!C(F,Y)&&q(F,Y)&&q(Y,F)&&B(F,Y)}function P(F,Y,H){return(Y.y-F.y)*(H.x-Y.x)-(Y.x-F.x)*(H.y-Y.y)}function O(F,Y){return F.x===Y.x&&F.y===Y.y}function D(F,Y,H,z){return O(F,Y)&&O(H,z)||O(F,z)&&O(H,Y)?!0:P(F,Y,H)>0!=P(F,Y,z)>0&&P(H,z,F)>0!=P(H,z,Y)>0}function C(F,Y){var H=F;do{if(H.i!==F.i&&H.next.i!==F.i&&H.i!==Y.i&&H.next.i!==Y.i&&D(H,H.next,F,Y))return!0;H=H.next}while(H!==F);return!1}function q(F,Y){return P(F.prev,F,F.next)<0?P(F,Y,F.next)>=0&&P(F,F.prev,Y)>=0:P(F,Y,F.prev)<0||P(F,F.next,Y)<0}function B(F,Y){var H=F,z=!1,J=(F.x+Y.x)/2,G=(F.y+Y.y)/2;do H.y>G!=H.next.y>G&&J<(H.next.x-H.x)*(G-H.y)/(H.next.y-H.y)+H.x&&(z=!z),H=H.next;while(H!==F);return z}function U(F,Y){var H=new X(F.i,F.x,F.y),z=new X(Y.i,Y.x,Y.y),J=F.next,G=Y.prev;return F.next=Y,Y.prev=F,H.next=J,J.prev=H,z.next=H,H.prev=z,G.next=z,z.prev=G,z}function W(F,Y,H,z){var J=new X(F,Y,H);return z?(J.next=z.next,J.prev=z,z.next.prev=J,z.next=J):(J.prev=J,J.next=J),J}function L(F){F.next.prev=F.prev,F.prev.next=F.next,F.prevZ&&(F.prevZ.nextZ=F.nextZ),F.nextZ&&(F.nextZ.prevZ=F.prevZ)}function X(F,Y,H){this.i=F,this.x=Y,this.y=H,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}_.deviation=function(F,Y,H,z){var J=Y&&Y.length,G=J?Y[0]*H:F.length,k=Math.abs(ot(F,0,G,H));if(J)for(var j=0,rt=Y.length;j0&&(z+=F[J-1].length,H.holes.push(z))}return H}},{}],355:[function(h,E,u){arguments[4][82][0].apply(u,arguments)},{"@turf/helpers":356,dup:82}],356:[function(h,E,u){arguments[4][6][0].apply(u,arguments)},{dup:6}],357:[function(h,E,u){var _=h("@turf/helpers").featureCollection,d=h("@turf/helpers").polygon,S=h("@turf/distance");E.exports=function(a,c,f){for(var p=_([]),g=c/S([a[0],a[1]],[a[2],a[1]],f),m=g*(a[2]-a[0]),N=c/S([a[0],a[1]],[a[0],a[3]],f),y=N*(a[3]-a[1]),R=0,I=a[0];I<=a[2];){for(var v=0,M=a[1];M<=a[3];)R%2===0&&v%2===0?p.features.push(d([[[I,M],[I,M+y],[I+m,M],[I,M]]]),d([[[I,M+y],[I+m,M+y],[I+m,M],[I,M+y]]])):R%2===0&&v%2===1?p.features.push(d([[[I,M],[I+m,M+y],[I+m,M],[I,M]]]),d([[[I,M],[I,M+y],[I+m,M+y],[I,M]]])):v%2===0&&R%2===1?p.features.push(d([[[I,M],[I,M+y],[I+m,M+y],[I,M]]]),d([[[I,M],[I+m,M+y],[I+m,M],[I,M]]])):v%2===1&&R%2===1&&p.features.push(d([[[I,M],[I,M+y],[I+m,M],[I,M]]]),d([[[I,M+y],[I+m,M+y],[I+m,M],[I,M+y]]])),M+=y,v++;R++,I+=m}return p}},{"@turf/distance":358,"@turf/helpers":361}],358:[function(h,E,u){arguments[4][8][0].apply(u,arguments)},{"@turf/helpers":359,"@turf/invariant":360,dup:8}],359:[function(h,E,u){arguments[4][6][0].apply(u,arguments)},{dup:6}],360:[function(h,E,u){arguments[4][4][0].apply(u,arguments)},{dup:4}],361:[function(h,E,u){arguments[4][6][0].apply(u,arguments)},{dup:6}],362:[function(h,E,u){E.exports=function(a,c,f){if(c=c||6,f=f||2,a===void 0)throw new Error("layer is required");switch(a.type){case"FeatureCollection":return a.features=a.features.map(function(p){return _(p,c,f)}),a;case"Feature":return _(a,c,f);default:throw new Error("invalid type")}};function _(a,c,f){return f!==void 0&&(a.geometry.coordinates=S(a.geometry.coordinates,0,f)),a.geometry.coordinates=d(a.geometry.coordinates,c),a}function d(a,c){return a.map(function(f){return typeof f=="object"?d(f,c):Number(f.toFixed(c))})}function S(a,c,f){return typeof a[0]!="object"?a.slice(c,f):a.map(function(p){return S(p,c,f)})}},{}],363:[function(h,E,u){arguments[4][84][0].apply(u,arguments)},{dup:84,jsts:364}],364:[function(h,E,u){arguments[4][28][0].apply(u,arguments)},{dup:28}],365:[function(h,E,u){var _=h("simplepolygon"),d=h("@turf/flatten"),S=h("@turf/meta").featureEach,a=h("@turf/helpers").featureCollection;E.exports=function(c){var f=a([]);return S(c,function(p){p.geometry.type==="MultiPolygon"&&(p=d(p)),S(p,function(g){var m=_(g);S(m,function(N){N.properties=g.properties?g.properties:{},f.features.push(N)})})}),f}},{"@turf/flatten":370,"@turf/helpers":374,"@turf/meta":375,simplepolygon:383}],366:[function(h,E,u){arguments[4][12][0].apply(u,arguments)},{"@mapbox/geojson-area":367,"@turf/meta":368,dup:12}],367:[function(h,E,u){arguments[4][13][0].apply(u,arguments)},{dup:13,wgs84:369}],368:[function(h,E,u){arguments[4][14][0].apply(u,arguments)},{dup:14}],369:[function(h,E,u){arguments[4][15][0].apply(u,arguments)},{dup:15}],370:[function(h,E,u){arguments[4][132][0].apply(u,arguments)},{"@turf/helpers":371,"@turf/invariant":372,"@turf/meta":373,dup:132}],371:[function(h,E,u){arguments[4][6][0].apply(u,arguments)},{dup:6}],372:[function(h,E,u){arguments[4][4][0].apply(u,arguments)},{dup:4}],373:[function(h,E,u){arguments[4][14][0].apply(u,arguments)},{dup:14}],374:[function(h,E,u){arguments[4][6][0].apply(u,arguments)},{dup:6}],375:[function(h,E,u){arguments[4][14][0].apply(u,arguments)},{dup:14}],376:[function(h,E,u){var _=h("@turf/inside"),d=h("@turf/helpers").featureCollection;E.exports=function(S,a){for(var c=d([]),f=0;f=1||X<=0||ot>=1||ot<=0)){var F=L,Y=!m[F];Y&&(m[F]=!0),c?g.push(c(L,P,O,q,B,X,D,C,U,W,ot,Y)):g.push(L)}}}function b(P,O){var D=p[P][O],C=p[P][O+1];if(D[0]D[zt.isect].coord?-1:1});for(var G=[];ot.length>0;){var k=ot.pop(),j=k.isect,rt=k.parent,it=k.winding,Q=G.length,lt=[D[j].coord],st=j;if(D[j].ringAndEdge1Walkable)var ct=D[j].ringAndEdge1,vt=D[j].nxtIsectAlongRingAndEdge1;else var ct=D[j].ringAndEdge2,vt=D[j].nxtIsectAlongRingAndEdge2;for(;!y(D[j].coord,D[vt].coord);){lt.push(D[vt].coord);for(var Re=void 0,F=0;F1)for(var zt=0;zt"u"&&(v=!0),I.length!=3)throw new Error("This function requires an array of three points [x,y]");var M=(I[1][0]-I[0][0])*(I[2][1]-I[0][1])-(I[1][1]-I[0][1])*(I[2][0]-I[0][0]);return M>=0==v}function N(I){for(var v=0,M=0;M0}},methods:{clearError(i){this.errors&&this.errors[i]&&this.$store.commit("clearError",i)},errorExists(i){return this.errors?this.errors.hasOwnProperty(i):!1},getFirstError(i){return this.errors[i][0]}}},o={name:"CreateCleanup",mixins:[n],data(){return{name:"",description:"",time:"",date:"",invite_link:"",processing:!1}},computed:{cleanup(){return this.$store.state.cleanups},getInviteLink(){let i="https://openlittermap.com/cleanups/";return this.invite_link===""?i:i+this.invite_link+"/join"}},methods:{async submit(){this.processing=!0,await this.$store.dispatch("CREATE_CLEANUP_EVENT",{name:this.name,date:this.date,lat:this.cleanup.lat,lon:this.cleanup.lon,time:this.time,description:this.description,invite_link:this.invite_link}),this.processing=!1}}};var l=function(){var t=this,e=t._self._c;return e("div",{staticClass:"cleanup-container"},[e("form",{attrs:{method:"post"},on:{submit:function(s){return s.preventDefault(),t.submit.apply(null,arguments)},keydown:function(s){return t.clearError(s.target.name)}}},[e("div",{staticClass:"flex"},[e("p",{staticClass:"flex-1"},[t._v("Name")]),t.errorExists("name")?e("p",{staticClass:"help is-danger",domProps:{textContent:t._s(t.getFirstError("name"))}}):t._e()]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.name,expression:"name"}],staticClass:"input mb1",class:t.errorExists("name")?"is-danger":"",attrs:{name:"name",placeholder:"My Awesome Cleanup",required:""},domProps:{value:t.name},on:{input:function(s){s.target.composing||(t.name=s.target.value)}}}),e("div",{staticClass:"flex"},[e("p",{staticClass:"flex-1"},[t._v("Date")]),t.errorExists("date")?e("p",{staticClass:"help is-danger",domProps:{textContent:t._s(t.getFirstError("date"))}}):t._e()]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.date,expression:"date"}],staticClass:"input mb1",class:t.errorExists("date")?"is-danger":"",attrs:{name:"date",type:"date"},domProps:{value:t.date},on:{input:function(s){s.target.composing||(t.date=s.target.value)}}}),e("div",{staticClass:"flex"},[e("p",{staticClass:"flex-1"},[t._v("Location:")]),t.errorExists("lat")||t.errorExists("lon")?e("div",[e("p",{staticClass:"help is-danger"},[t._v(" You have not set a location. ")])]):t._e()]),e("div",{staticClass:"mb1"},[t.cleanup.lat?e("div",[e("p",[t._v(" Lat: "+t._s(t.cleanup.lat)+" ")]),e("p",[t._v(" Lon: "+t._s(t.cleanup.lon)+" ")])]):e("p",[t._v(" Click anywhere on the map to set the location ")])]),e("div",{staticClass:"flex"},[e("p",{staticClass:"flex-1"},[t._v("Time")]),t.errorExists("time")?e("p",{staticClass:"help is-danger",domProps:{textContent:t._s(t.getFirstError("time"))}}):t._e()]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.time,expression:"time"}],staticClass:"input mb1",class:t.errorExists("time")?"is-danger":"",attrs:{name:"time",placeholder:"Enter time",required:""},domProps:{value:t.time},on:{input:function(s){s.target.composing||(t.time=s.target.value)}}}),e("div",{staticClass:"flex"},[e("p",{staticClass:"flex-1"},[t._v("Description")]),t.errorExists("description")?e("p",{staticClass:"help is-danger",domProps:{textContent:t._s(t.getFirstError("description"))}}):t._e()]),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.description,expression:"description"}],staticClass:"input mb1",class:t.errorExists("description")?"is-danger":"",staticStyle:{height:"2.65em"},attrs:{name:"description",placeholder:"Enter information about your event",required:""},domProps:{value:t.description},on:{input:function(s){s.target.composing||(t.description=s.target.value)}}}),e("div",{staticClass:"flex"},[e("p",{staticClass:"flex-1"},[t._v(" Create an invite link ")]),t.errorExists("invite_link")?e("p",{staticClass:"help is-danger",domProps:{textContent:t._s(t.getFirstError("invite_link"))}}):t._e()]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.invite_link,expression:"invite_link"}],staticClass:"input mb-05",class:t.errorExists("invite_link")?"is-danger":"",attrs:{name:"invite_link",placeholder:"openlittermap.com/cleanups/my-cleanup-event"},domProps:{value:t.invite_link},on:{input:function(s){s.target.composing||(t.invite_link=s.target.value)}}}),e("p",{staticClass:"is-grey mb2"},[t._v(" "+t._s(t.getInviteLink)+" ")]),e("div",{staticClass:"flex"},[e("button",{staticClass:"button is-info is-medium",class:t.processing?"is-loading":"",attrs:{disabled:t.processing,type:"submit"}},[t._v(" Let's Cleanup! ")])])])])},c=[],p=a(o,l,c,!1,null,"6fc26179");const u=p.exports,m={name:"JoinCleanup",data(){return{invite_link:"",processing:!1}},mixins:[n],methods:{async submit(){this.processing=!0,await this.$store.dispatch("JOIN_CLEANUP",{link:this.invite_link}),this.processing=!1}}};var d=function(){var t=this,e=t._self._c;return e("div",{staticClass:"has-text-left"},[e("form",{attrs:{method:"post"},on:{submit:function(s){return s.preventDefault(),t.submit.apply(null,arguments)},keydown:function(s){return t.clearError(s.target.name)}}},[e("div",{staticClass:"flex"},[e("p",{staticClass:"flex-1"},[t._v("Join a cleanup")]),t.errorExists("invite_link")?e("p",{staticClass:"help is-danger",domProps:{textContent:t._s(t.getFirstError("invite_link"))}}):t._e()]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.invite_link,expression:"invite_link"}],staticClass:"input",class:t.errorExists("invite_link")?"is-danger":"",attrs:{name:"invite_link",required:"",placeholder:"Enter invitation code to join a cleanup"},domProps:{value:t.invite_link},on:{input:function(s){s.target.composing||(t.invite_link=s.target.value)}}}),e("div",{staticClass:"flex mt1 jc"},[e("button",{staticClass:"button is-info is-medium",class:t.processing?"is-loading":"",attrs:{disabled:t.processing,type:"submit"}},[t._v(" Join Cleanup! ")])])])])},_=[],v=a(m,d,_,!1,null,"65f99a5b");const C=v.exports,g="https://img.freepik.com/free-vector/volunteers-cleaning-up-garbage-city-park_74855-17942.jpg?w=1380&t=st=1659282438~exp=1659283038~hmac=b3c1ecc87fa677a97391b1f182f0e8674f32684d632f8d5df366bfe8204ee62e",f={name:"CleanupSidebar",components:{CreateCleanup:u,JoinCleanup:C},props:["creatingCleanup","joiningCleanup"],data(){return{processing:!1}},computed:{auth(){return this.$store.state.user.auth},getCreateCleanupImg(){return g},getTitle(){return this.$store.state.globalmap.creating?"Create a new cleanup event!":"Help us clean the planet!"}},methods:{goBack(){this.$store.commit("clearErrors"),this.$store.commit("creatingCleanup",!1),this.$store.commit("joiningCleanup",!1)},startCreatingCleanup(){this.$store.commit("creatingCleanup",!0)},startJoiningCleanup(){this.$store.commit("joiningCleanup",!0)}}};var h=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"pt3 pb3 flex",staticStyle:{"align-items":"center"}},[t.joiningCleanup||t.creatingCleanup?e("i",{staticClass:"fa fa-arrow-left pointer",on:{click:t.goBack}}):t._e(),e("p",{staticClass:"title is-3 flex-1"},[t._v(" "+t._s(t.getTitle)+" ")])]),e("div",{staticClass:"cleanup-buttons"},[!t.creatingCleanup&&!t.joiningCleanup?e("div",[e("img",{staticClass:"pb1",attrs:{src:t.getCreateCleanupImg}}),t.auth?e("div",[e("button",{staticClass:"button is-medium is-info mb1",on:{click:t.startCreatingCleanup}},[t._v(" Create a cleanup ")]),e("button",{staticClass:"button is-medium is-primary mb1",on:{click:t.startJoiningCleanup}},[t._v(" Join a cleanup ")])]):e("p",{staticClass:"mb1"},[t._v(" Log In to Create or Join a Cleanup ")]),e("p",{staticClass:"mb1"},[t._v(" Cleanups are a great way to bring people together, quantify, and communicate your positive environmental impact. ")]),e("p",[t._v(" Clean up, have fun and share data! ")])]):t._e(),t.creatingCleanup?e("CreateCleanup"):t._e(),t.joiningCleanup?e("JoinCleanup"):t._e()],1)])},x=[],b=a(f,h,x,!1,null,"4ce4c465");const E=b.exports,k={name:"Cleanups",components:{Supercluster:r,CleanupSidebar:E},data(){return{loading:!1}},async created(){this.loading=!0,await this.$store.dispatch("GET_CLEANUPS");const i=this.$route;i.params.hasOwnProperty("invite_link")&&await this.$store.dispatch("JOIN_CLEANUP",{link:i.params.invite_link}),this.loading=!1},computed:{creatingCleanup(){return this.$store.state.cleanups.creating},joiningCleanup(){return this.$store.state.cleanups.joining}}};var y=function(){var t=this,e=t._self._c;return e("div",{staticClass:"cleanups-container"},[e("CleanupSidebar",{staticClass:"cleanup-sidebar",class:t.creatingCleanup?"find-location":"",attrs:{creatingCleanup:t.creatingCleanup,joiningCleanup:t.joiningCleanup}}),e("div",{staticClass:"cleanup-map",class:t.creatingCleanup?"find-location":""},[t.loading?e("div"):e("Supercluster",{attrs:{activeLayer:"cleanups"}})],1)],1)},$=[],w=a(k,y,$,!1,null,"7732288b");const I=w.exports;export{I as default}; +import{S as r}from"./Supercluster-9K_eifTI.js";import{n as a}from"./app-DGjOB0Vc.js";import"./index-Dxbj43yt.js";import"./mapHelpers-CwWoNy74.js";import"./moment-zH0z38ay.js";import"./glify-browser-25hBm06M.js";/* empty css */const n={computed:{errors(){return this.$store.state.errors.errorsObject},errorsExist(){return this.errors&&Object.keys(this.errors).length>0}},methods:{clearError(i){this.errors&&this.errors[i]&&this.$store.commit("clearError",i)},errorExists(i){return this.errors?this.errors.hasOwnProperty(i):!1},getFirstError(i){return this.errors[i][0]}}},o={name:"CreateCleanup",mixins:[n],data(){return{name:"",description:"",time:"",date:"",invite_link:"",processing:!1}},computed:{cleanup(){return this.$store.state.cleanups},getInviteLink(){let i="https://openlittermap.com/cleanups/";return this.invite_link===""?i:i+this.invite_link+"/join"}},methods:{async submit(){this.processing=!0,await this.$store.dispatch("CREATE_CLEANUP_EVENT",{name:this.name,date:this.date,lat:this.cleanup.lat,lon:this.cleanup.lon,time:this.time,description:this.description,invite_link:this.invite_link}),this.processing=!1}}};var l=function(){var t=this,e=t._self._c;return e("div",{staticClass:"cleanup-container"},[e("form",{attrs:{method:"post"},on:{submit:function(s){return s.preventDefault(),t.submit.apply(null,arguments)},keydown:function(s){return t.clearError(s.target.name)}}},[e("div",{staticClass:"flex"},[e("p",{staticClass:"flex-1"},[t._v("Name")]),t.errorExists("name")?e("p",{staticClass:"help is-danger",domProps:{textContent:t._s(t.getFirstError("name"))}}):t._e()]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.name,expression:"name"}],staticClass:"input mb1",class:t.errorExists("name")?"is-danger":"",attrs:{name:"name",placeholder:"My Awesome Cleanup",required:""},domProps:{value:t.name},on:{input:function(s){s.target.composing||(t.name=s.target.value)}}}),e("div",{staticClass:"flex"},[e("p",{staticClass:"flex-1"},[t._v("Date")]),t.errorExists("date")?e("p",{staticClass:"help is-danger",domProps:{textContent:t._s(t.getFirstError("date"))}}):t._e()]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.date,expression:"date"}],staticClass:"input mb1",class:t.errorExists("date")?"is-danger":"",attrs:{name:"date",type:"date"},domProps:{value:t.date},on:{input:function(s){s.target.composing||(t.date=s.target.value)}}}),e("div",{staticClass:"flex"},[e("p",{staticClass:"flex-1"},[t._v("Location:")]),t.errorExists("lat")||t.errorExists("lon")?e("div",[e("p",{staticClass:"help is-danger"},[t._v(" You have not set a location. ")])]):t._e()]),e("div",{staticClass:"mb1"},[t.cleanup.lat?e("div",[e("p",[t._v(" Lat: "+t._s(t.cleanup.lat)+" ")]),e("p",[t._v(" Lon: "+t._s(t.cleanup.lon)+" ")])]):e("p",[t._v(" Click anywhere on the map to set the location ")])]),e("div",{staticClass:"flex"},[e("p",{staticClass:"flex-1"},[t._v("Time")]),t.errorExists("time")?e("p",{staticClass:"help is-danger",domProps:{textContent:t._s(t.getFirstError("time"))}}):t._e()]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.time,expression:"time"}],staticClass:"input mb1",class:t.errorExists("time")?"is-danger":"",attrs:{name:"time",placeholder:"Enter time",required:""},domProps:{value:t.time},on:{input:function(s){s.target.composing||(t.time=s.target.value)}}}),e("div",{staticClass:"flex"},[e("p",{staticClass:"flex-1"},[t._v("Description")]),t.errorExists("description")?e("p",{staticClass:"help is-danger",domProps:{textContent:t._s(t.getFirstError("description"))}}):t._e()]),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.description,expression:"description"}],staticClass:"input mb1",class:t.errorExists("description")?"is-danger":"",staticStyle:{height:"2.65em"},attrs:{name:"description",placeholder:"Enter information about your event",required:""},domProps:{value:t.description},on:{input:function(s){s.target.composing||(t.description=s.target.value)}}}),e("div",{staticClass:"flex"},[e("p",{staticClass:"flex-1"},[t._v(" Create an invite link ")]),t.errorExists("invite_link")?e("p",{staticClass:"help is-danger",domProps:{textContent:t._s(t.getFirstError("invite_link"))}}):t._e()]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.invite_link,expression:"invite_link"}],staticClass:"input mb-05",class:t.errorExists("invite_link")?"is-danger":"",attrs:{name:"invite_link",placeholder:"openlittermap.com/cleanups/my-cleanup-event"},domProps:{value:t.invite_link},on:{input:function(s){s.target.composing||(t.invite_link=s.target.value)}}}),e("p",{staticClass:"is-grey mb2"},[t._v(" "+t._s(t.getInviteLink)+" ")]),e("div",{staticClass:"flex"},[e("button",{staticClass:"button is-info is-medium",class:t.processing?"is-loading":"",attrs:{disabled:t.processing,type:"submit"}},[t._v(" Let's Cleanup! ")])])])])},c=[],p=a(o,l,c,!1,null,"6fc26179");const u=p.exports,m={name:"JoinCleanup",data(){return{invite_link:"",processing:!1}},mixins:[n],methods:{async submit(){this.processing=!0,await this.$store.dispatch("JOIN_CLEANUP",{link:this.invite_link}),this.processing=!1}}};var d=function(){var t=this,e=t._self._c;return e("div",{staticClass:"has-text-left"},[e("form",{attrs:{method:"post"},on:{submit:function(s){return s.preventDefault(),t.submit.apply(null,arguments)},keydown:function(s){return t.clearError(s.target.name)}}},[e("div",{staticClass:"flex"},[e("p",{staticClass:"flex-1"},[t._v("Join a cleanup")]),t.errorExists("invite_link")?e("p",{staticClass:"help is-danger",domProps:{textContent:t._s(t.getFirstError("invite_link"))}}):t._e()]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.invite_link,expression:"invite_link"}],staticClass:"input",class:t.errorExists("invite_link")?"is-danger":"",attrs:{name:"invite_link",required:"",placeholder:"Enter invitation code to join a cleanup"},domProps:{value:t.invite_link},on:{input:function(s){s.target.composing||(t.invite_link=s.target.value)}}}),e("div",{staticClass:"flex mt1 jc"},[e("button",{staticClass:"button is-info is-medium",class:t.processing?"is-loading":"",attrs:{disabled:t.processing,type:"submit"}},[t._v(" Join Cleanup! ")])])])])},_=[],v=a(m,d,_,!1,null,"65f99a5b");const C=v.exports,g="https://img.freepik.com/free-vector/volunteers-cleaning-up-garbage-city-park_74855-17942.jpg?w=1380&t=st=1659282438~exp=1659283038~hmac=b3c1ecc87fa677a97391b1f182f0e8674f32684d632f8d5df366bfe8204ee62e",f={name:"CleanupSidebar",components:{CreateCleanup:u,JoinCleanup:C},props:["creatingCleanup","joiningCleanup"],data(){return{processing:!1}},computed:{auth(){return this.$store.state.user.auth},getCreateCleanupImg(){return g},getTitle(){return this.$store.state.globalmap.creating?"Create a new cleanup event!":"Help us clean the planet!"}},methods:{goBack(){this.$store.commit("clearErrors"),this.$store.commit("creatingCleanup",!1),this.$store.commit("joiningCleanup",!1)},startCreatingCleanup(){this.$store.commit("creatingCleanup",!0)},startJoiningCleanup(){this.$store.commit("joiningCleanup",!0)}}};var h=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"pt3 pb3 flex",staticStyle:{"align-items":"center"}},[t.joiningCleanup||t.creatingCleanup?e("i",{staticClass:"fa fa-arrow-left pointer",on:{click:t.goBack}}):t._e(),e("p",{staticClass:"title is-3 flex-1"},[t._v(" "+t._s(t.getTitle)+" ")])]),e("div",{staticClass:"cleanup-buttons"},[!t.creatingCleanup&&!t.joiningCleanup?e("div",[e("img",{staticClass:"pb1",attrs:{src:t.getCreateCleanupImg}}),t.auth?e("div",[e("button",{staticClass:"button is-medium is-info mb1",on:{click:t.startCreatingCleanup}},[t._v(" Create a cleanup ")]),e("button",{staticClass:"button is-medium is-primary mb1",on:{click:t.startJoiningCleanup}},[t._v(" Join a cleanup ")])]):e("p",{staticClass:"mb1"},[t._v(" Log In to Create or Join a Cleanup ")]),e("p",{staticClass:"mb1"},[t._v(" Cleanups are a great way to bring people together, quantify, and communicate your positive environmental impact. ")]),e("p",[t._v(" Clean up, have fun and share data! ")])]):t._e(),t.creatingCleanup?e("CreateCleanup"):t._e(),t.joiningCleanup?e("JoinCleanup"):t._e()],1)])},x=[],b=a(f,h,x,!1,null,"4ce4c465");const E=b.exports,k={name:"Cleanups",components:{Supercluster:r,CleanupSidebar:E},data(){return{loading:!1}},async created(){this.loading=!0,await this.$store.dispatch("GET_CLEANUPS");const i=this.$route;i.params.hasOwnProperty("invite_link")&&await this.$store.dispatch("JOIN_CLEANUP",{link:i.params.invite_link}),this.loading=!1},computed:{creatingCleanup(){return this.$store.state.cleanups.creating},joiningCleanup(){return this.$store.state.cleanups.joining}}};var y=function(){var t=this,e=t._self._c;return e("div",{staticClass:"cleanups-container"},[e("CleanupSidebar",{staticClass:"cleanup-sidebar",class:t.creatingCleanup?"find-location":"",attrs:{creatingCleanup:t.creatingCleanup,joiningCleanup:t.joiningCleanup}}),e("div",{staticClass:"cleanup-map",class:t.creatingCleanup?"find-location":""},[t.loading?e("div"):e("Supercluster",{attrs:{activeLayer:"cleanups"}})],1)],1)},$=[],w=a(k,y,$,!1,null,"7732288b");const I=w.exports;export{I as default}; diff --git a/public/build/assets/ContactUs-BdqXRh5d.js b/public/build/assets/ContactUs-CEd8pbQS.js similarity index 98% rename from public/build/assets/ContactUs-BdqXRh5d.js rename to public/build/assets/ContactUs-CEd8pbQS.js index 9f9ea635c..0bb57fdce 100644 --- a/public/build/assets/ContactUs-BdqXRh5d.js +++ b/public/build/assets/ContactUs-CEd8pbQS.js @@ -1 +1 @@ -import{V as i}from"./vue-recaptcha.es-KbLMYh7d.js";import{n as r}from"./app-DpqRw90N.js";/* empty css */var l={};const c={name:"ContactUs",components:{VueRecaptcha:i},data(){return{name:"",email:"",subject:"",message:"",g_recaptcha_response:"",processing:!1}},computed:{errors(){return this.$store.state.user.errors},computedKey(){return l.MIX_GOOGLE_RECAPTCHA_KEY}},methods:{async submit(){this.processing=!0,await this.$store.dispatch("SEND_EMAIL_TO_US",{name:this.name,email:this.email,subject:this.subject,message:this.message,"g-recaptcha-response":this.g_recaptcha_response}),this.processing=!1},clearErrors(e){this.$store.commit("deleteUserError",e)},hasError(e){return this.errors.hasOwnProperty(e)},getError(e){return this.errors[e][0]},recaptcha(e){this.g_recaptcha_response=e}}};var o=function(){var s=this,t=s._self._c;return t("section",{staticClass:"hero is-info is-fullheight"},[t("div",{staticClass:"columns centered"},[t("div",{staticClass:"column"}),t("div",{staticClass:"column is-half-tablet is-one-third-desktop is-one-quarter-fullhd"},[t("p",{staticClass:"title is-1 has-text-centered"},[s._v("Contact Us")]),t("div",{staticClass:"panel-body"},[t("form",{staticClass:"form-horizontal",attrs:{role:"form"},on:{submit:function(a){return a.preventDefault(),s.submit.apply(null,arguments)},keydown:function(a){return s.clearErrors(a.target.name)}}},[s._m(0),t("div",{staticClass:"field with-x-spacing"},[t("label",{staticClass:"label has-text-white",attrs:{for:"name"}},[s._v("Your Name (optional)")]),t("div",{staticClass:"control has-icons-left",class:s.processing?"is-loading":""},[t("input",{directives:[{name:"model",rawName:"v-model",value:s.name,expression:"name"}],staticClass:"input",class:s.hasError("name")?"is-danger":"",attrs:{id:"name",type:"text",name:"name",autofocus:""},domProps:{value:s.name},on:{input:function(a){a.target.composing||(s.name=a.target.value)}}}),s._m(1),s.hasError("name")?t("p",{staticClass:"help has-text-white has-text-weight-bold"},[s._v(s._s(s.getError("name")))]):s._e()])]),t("div",{staticClass:"field with-x-spacing"},[t("label",{staticClass:"label has-text-white",attrs:{for:"email"}},[s._v("Your Email")]),t("div",{staticClass:"control has-icons-left",class:s.processing?"is-loading":""},[t("input",{directives:[{name:"model",rawName:"v-model",value:s.email,expression:"email"}],staticClass:"input",class:s.hasError("email")?"is-danger":"",attrs:{id:"email",type:"email",name:"email",required:"",placeholder:"you@email.com"},domProps:{value:s.email},on:{input:function(a){a.target.composing||(s.email=a.target.value)}}}),s._m(2),s.hasError("email")?t("p",{staticClass:"help has-text-white has-text-weight-bold"},[s._v(s._s(s.getError("email")))]):s._e()])]),t("div",{staticClass:"field with-x-spacing"},[t("label",{staticClass:"label has-text-white",attrs:{for:"subject"}},[s._v("Subject")]),t("div",{staticClass:"control has-icons-left",class:s.processing?"is-loading":""},[t("input",{directives:[{name:"model",rawName:"v-model",value:s.subject,expression:"subject"}],staticClass:"input",class:s.hasError("subject")?"is-danger":"",attrs:{id:"subject",type:"text",name:"subject",required:""},domProps:{value:s.subject},on:{input:function(a){a.target.composing||(s.subject=a.target.value)}}}),s._m(3),s.hasError("subject")?t("p",{staticClass:"help has-text-white has-text-weight-bold"},[s._v(s._s(s.getError("subject")))]):s._e()])]),t("div",{staticClass:"field with-x-spacing"},[t("label",{staticClass:"label has-text-white",attrs:{for:"message"}},[s._v("Message")]),t("div",{staticClass:"control has-icons-left",class:s.processing?"is-loading":""},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:s.message,expression:"message"}],staticClass:"textarea",class:s.hasError("message")?"is-danger":"",attrs:{id:"message",required:""},domProps:{value:s.message},on:{input:function(a){a.target.composing||(s.message=a.target.value)}}}),s.hasError("message")?t("p",{staticClass:"help has-text-white has-text-weight-bold"},[s._v(s._s(s.getError("message")))]):s._e()])]),t("div",{staticClass:"field with-x-spacing"},[t("div",{staticClass:"control recaptcha"},[t("vue-recaptcha",{attrs:{sitekey:s.computedKey,loadRecaptchaScript:!0},on:{verify:s.recaptcha},model:{value:s.g_recaptcha_response,callback:function(a){s.g_recaptcha_response=a},expression:"g_recaptcha_response"}}),s.hasError("g-recaptcha-response")?t("p",{staticClass:"help has-text-white has-text-weight-bold"},[s._v(s._s(s.getError("g-recaptcha-response")))]):s._e()],1)]),t("div",{staticClass:"field has-text-centered"},[t("div",{staticClass:"control"},[t("button",{staticClass:"button is-primary",class:s.processing?"is-loading":"",attrs:{type:"submit",disabled:s.processing}},[s._v(" Send Email ")])])])])])]),t("div",{staticClass:"column"})])])},n=[function(){var e=this,s=e._self._c;return s("div",{staticClass:"field with-x-spacing"},[s("label",{staticClass:"label has-text-white",attrs:{for:"to"}},[e._v("To")]),s("div",{staticClass:"control"},[s("input",{staticClass:"input",attrs:{type:"text",value:"info@openlittermap.com",readonly:""}})])])},function(){var e=this,s=e._self._c;return s("span",{staticClass:"icon is-small is-left"},[s("i",{staticClass:"fa fa-user"})])},function(){var e=this,s=e._self._c;return s("span",{staticClass:"icon is-small is-left"},[s("i",{staticClass:"fa fa-envelope"})])},function(){var e=this,s=e._self._c;return s("span",{staticClass:"icon is-small is-left"},[s("i",{staticClass:"fa fa-info"})])}],m=r(c,o,n,!1,null,"156071c9");const d=m.exports;export{d as default}; +import{V as i}from"./vue-recaptcha.es-KbLMYh7d.js";import{n as r}from"./app-DGjOB0Vc.js";/* empty css */var l={};const c={name:"ContactUs",components:{VueRecaptcha:i},data(){return{name:"",email:"",subject:"",message:"",g_recaptcha_response:"",processing:!1}},computed:{errors(){return this.$store.state.user.errors},computedKey(){return l.MIX_GOOGLE_RECAPTCHA_KEY}},methods:{async submit(){this.processing=!0,await this.$store.dispatch("SEND_EMAIL_TO_US",{name:this.name,email:this.email,subject:this.subject,message:this.message,"g-recaptcha-response":this.g_recaptcha_response}),this.processing=!1},clearErrors(e){this.$store.commit("deleteUserError",e)},hasError(e){return this.errors.hasOwnProperty(e)},getError(e){return this.errors[e][0]},recaptcha(e){this.g_recaptcha_response=e}}};var o=function(){var s=this,t=s._self._c;return t("section",{staticClass:"hero is-info is-fullheight"},[t("div",{staticClass:"columns centered"},[t("div",{staticClass:"column"}),t("div",{staticClass:"column is-half-tablet is-one-third-desktop is-one-quarter-fullhd"},[t("p",{staticClass:"title is-1 has-text-centered"},[s._v("Contact Us")]),t("div",{staticClass:"panel-body"},[t("form",{staticClass:"form-horizontal",attrs:{role:"form"},on:{submit:function(a){return a.preventDefault(),s.submit.apply(null,arguments)},keydown:function(a){return s.clearErrors(a.target.name)}}},[s._m(0),t("div",{staticClass:"field with-x-spacing"},[t("label",{staticClass:"label has-text-white",attrs:{for:"name"}},[s._v("Your Name (optional)")]),t("div",{staticClass:"control has-icons-left",class:s.processing?"is-loading":""},[t("input",{directives:[{name:"model",rawName:"v-model",value:s.name,expression:"name"}],staticClass:"input",class:s.hasError("name")?"is-danger":"",attrs:{id:"name",type:"text",name:"name",autofocus:""},domProps:{value:s.name},on:{input:function(a){a.target.composing||(s.name=a.target.value)}}}),s._m(1),s.hasError("name")?t("p",{staticClass:"help has-text-white has-text-weight-bold"},[s._v(s._s(s.getError("name")))]):s._e()])]),t("div",{staticClass:"field with-x-spacing"},[t("label",{staticClass:"label has-text-white",attrs:{for:"email"}},[s._v("Your Email")]),t("div",{staticClass:"control has-icons-left",class:s.processing?"is-loading":""},[t("input",{directives:[{name:"model",rawName:"v-model",value:s.email,expression:"email"}],staticClass:"input",class:s.hasError("email")?"is-danger":"",attrs:{id:"email",type:"email",name:"email",required:"",placeholder:"you@email.com"},domProps:{value:s.email},on:{input:function(a){a.target.composing||(s.email=a.target.value)}}}),s._m(2),s.hasError("email")?t("p",{staticClass:"help has-text-white has-text-weight-bold"},[s._v(s._s(s.getError("email")))]):s._e()])]),t("div",{staticClass:"field with-x-spacing"},[t("label",{staticClass:"label has-text-white",attrs:{for:"subject"}},[s._v("Subject")]),t("div",{staticClass:"control has-icons-left",class:s.processing?"is-loading":""},[t("input",{directives:[{name:"model",rawName:"v-model",value:s.subject,expression:"subject"}],staticClass:"input",class:s.hasError("subject")?"is-danger":"",attrs:{id:"subject",type:"text",name:"subject",required:""},domProps:{value:s.subject},on:{input:function(a){a.target.composing||(s.subject=a.target.value)}}}),s._m(3),s.hasError("subject")?t("p",{staticClass:"help has-text-white has-text-weight-bold"},[s._v(s._s(s.getError("subject")))]):s._e()])]),t("div",{staticClass:"field with-x-spacing"},[t("label",{staticClass:"label has-text-white",attrs:{for:"message"}},[s._v("Message")]),t("div",{staticClass:"control has-icons-left",class:s.processing?"is-loading":""},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:s.message,expression:"message"}],staticClass:"textarea",class:s.hasError("message")?"is-danger":"",attrs:{id:"message",required:""},domProps:{value:s.message},on:{input:function(a){a.target.composing||(s.message=a.target.value)}}}),s.hasError("message")?t("p",{staticClass:"help has-text-white has-text-weight-bold"},[s._v(s._s(s.getError("message")))]):s._e()])]),t("div",{staticClass:"field with-x-spacing"},[t("div",{staticClass:"control recaptcha"},[t("vue-recaptcha",{attrs:{sitekey:s.computedKey,loadRecaptchaScript:!0},on:{verify:s.recaptcha},model:{value:s.g_recaptcha_response,callback:function(a){s.g_recaptcha_response=a},expression:"g_recaptcha_response"}}),s.hasError("g-recaptcha-response")?t("p",{staticClass:"help has-text-white has-text-weight-bold"},[s._v(s._s(s.getError("g-recaptcha-response")))]):s._e()],1)]),t("div",{staticClass:"field has-text-centered"},[t("div",{staticClass:"control"},[t("button",{staticClass:"button is-primary",class:s.processing?"is-loading":"",attrs:{type:"submit",disabled:s.processing}},[s._v(" Send Email ")])])])])])]),t("div",{staticClass:"column"})])])},n=[function(){var e=this,s=e._self._c;return s("div",{staticClass:"field with-x-spacing"},[s("label",{staticClass:"label has-text-white",attrs:{for:"to"}},[e._v("To")]),s("div",{staticClass:"control"},[s("input",{staticClass:"input",attrs:{type:"text",value:"info@openlittermap.com",readonly:""}})])])},function(){var e=this,s=e._self._c;return s("span",{staticClass:"icon is-small is-left"},[s("i",{staticClass:"fa fa-user"})])},function(){var e=this,s=e._self._c;return s("span",{staticClass:"icon is-small is-left"},[s("i",{staticClass:"fa fa-envelope"})])},function(){var e=this,s=e._self._c;return s("span",{staticClass:"icon is-small is-left"},[s("i",{staticClass:"fa fa-info"})])}],m=r(c,o,n,!1,null,"156071c9");const d=m.exports;export{d as default}; diff --git a/public/build/assets/Countries-C5OIHLn3.js b/public/build/assets/Countries-BeLJk20u.js similarity index 96% rename from public/build/assets/Countries-C5OIHLn3.js rename to public/build/assets/Countries-BeLJk20u.js index f48387cf8..6c202f59b 100644 --- a/public/build/assets/Countries-C5OIHLn3.js +++ b/public/build/assets/Countries-BeLJk20u.js @@ -1 +1 @@ -import{L as r}from"./vue-loading-Bl53SHQy.js";/* empty css */import{n as a}from"./app-DpqRw90N.js";import{L as i}from"./LeaderboardList-B_0yi0QA.js";import{S as l}from"./SortLocations-ByYVFC2-.js";/* empty css */import"./moment-zH0z38ay.js";const n={name:"TotalGlobalCounts",props:["loading"],computed:{previous_littercoin(){let e=0;return this.$localStorage.get("littercoin_owed")&&(e=this.$localStorage.get("littercoin_owed")),this.$localStorage.set("littercoin_owed",this.littercoin),e},previous_total_litter(){let e=0;return this.$localStorage.get("total_litter")&&(e=this.$localStorage.get("total_litter")),this.$localStorage.set("total_litter",this.total_litter),e},previous_total_photos(){let e=0;return this.$localStorage.get("total_photos")&&(e=this.$localStorage.get("total_photos")),this.$localStorage.set("total_photos",this.total_photos),e},total_litter(){return this.$store.state.locations.total_litter},total_photos(){return this.$store.state.locations.total_photos},total_littercoin(){return this.$store.state.locations.littercoin}},methods:{commas(e){return parseInt(e).toLocaleString()}}};var c=function(){var t=this,s=t._self._c;return s("div",{staticClass:"stats"},[s("div",{staticClass:"stat"},[s("h1",{staticClass:"subtitle is-5 has-text-centered"},[s("strong",{staticClass:"has-text-black font-800"},[t._v(" "+t._s(t.$t("location.total-verified-litter"))+" ")])]),s("h1",{staticClass:"title is-2 has-text-centered has-text-white"},[s("strong",[t.loading?s("span",[t._v("...")]):s("number",{attrs:{from:t.previous_total_litter,to:t.total_litter,duration:3,delay:1,easing:"Power1.easeOut",format:t.commas}})],1)])]),s("div",{staticClass:"stat"},[s("h1",{staticClass:"subtitle is-5 has-text-centered"},[s("strong",{staticClass:"has-text-black font-800"},[t._v(" "+t._s(t.$t("location.total-verified-photos"))+" ")])]),s("h1",{staticClass:"title is-2 has-text-centered has-text-white"},[s("strong",[t.loading?s("span",[t._v("...")]):s("number",{attrs:{from:t.previous_total_photos,to:t.total_photos,duration:3,delay:1,easing:"Power1.easeOut",format:t.commas}})],1)])]),s("div",{staticClass:"stat"},[s("h1",{staticClass:"subtitle is-5 has-text-centered"},[s("strong",{staticClass:"has-text-black font-800"},[t._v(" "+t._s(t.$t("location.total-littercoin-issued"))+" ")])]),s("h1",{staticClass:"title is-2 has-text-centered has-text-white"},[s("strong",[t.loading?s("span",[t._v("...")]):s("number",{attrs:{from:t.previous_littercoin,to:t.total_littercoin,duration:3,delay:1,easing:"Power1.easeOut",format:t.commas}})],1)])])])},_=[],d=a(n,c,_,!1,null,"c7421a37");const p=d.exports,h={name:"ProgressBar",props:["currentxp","xpneeded","startingxp"],computed:{currentValue(){let e=this.xpneeded-this.startingxp;return(this.currentxp-this.startingxp)*100/e}}};var u=function(){var t=this,s=t._self._c;return s("progress",{staticClass:"progress is-large is-success",attrs:{max:100},domProps:{value:t.currentValue}})},m=[],g=a(h,u,m,!1,null,null);const v=g.exports,f={name:"Progress",props:["loading"],components:{ProgressBar:v},methods:{commas(e){return parseInt(e).toLocaleString()}},computed:{littercoin(){return this.$store.state.locations.littercoin},previousXp(){return this.$store.state.locations.level.previousXp},nextXp(){return this.$store.state.locations.level.nextXp},total_litter(){return this.$store.state.locations.total_litter},progress(){let e=this.nextXp-this.previousXp;return((this.total_litter-this.previousXp)*100/e).toFixed(2)},total_photos(){return this.$store.state.locations.total_photos}}};var x=function(){var t=this,s=t._self._c;return s("div",{staticClass:"container mt4 progress-bar"},[s("div",[s("div",{staticClass:"flex mb1"},[s("h4",{staticClass:"flex-1 has-text-white"},[t._v(" "+t._s(t.$t("location.previous-target"))+": "),s("br"),s("strong",{staticClass:"has-text-white"},[t._v(" "+t._s(t._f("commas")(this.previousXp))+" "+t._s(t.$t("location.litter"))+" ")])]),s("h4",{staticClass:"has-text-white"},[t._v(t._s(t.$t("location.next-target"))+": "),s("br"),s("strong",{staticClass:"has-text-white"},[t._v(" "+t._s(t._f("commas")(this.nextXp))+" "+t._s(t.$t("location.litter"))+" ")])])]),s("ProgressBar",{staticClass:"mb1em",attrs:{currentxp:t.total_litter,startingxp:t.previousXp,xpneeded:t.nextXp}}),t.loading?s("p",{staticClass:"has-text-centered has-text-white mb2"},[t._v("...%")]):s("p",{staticClass:"has-text-centered has-text-white mb2"},[t._v(t._s(this.progress)+"%")])],1)])},$=[],C=a(f,x,$,!1,null,"fdd75015");const b=C.exports,w={name:"GlobalMetaData",props:["loading"],components:{LeaderboardList:i,Progress:b,TotalGlobalCounts:p},channel:"main",echo:{ImageUploaded:(e,t)=>{e.isUserVerified&&t.$store.commit("incrementTotalPhotos")},ImageDeleted:(e,t)=>{e.isUserVerified&&t.$store.commit("decrementTotalPhotos")},TagsVerifiedByAdmin:(e,t)=>{t.$store.commit("incrementTotalLitter",e.total_litter_all_categories),e.isUserVerified||t.$store.commit("incrementTotalPhotos")}},computed:{leaders(){return this.$store.state.locations.globalLeaders}},methods:{openLeaderboard(e){this.$router.push({path:"/leaderboard"})}}};var L=function(){var t=this,s=t._self._c;return s("section",{staticClass:"is-link hero is-bold"},[s("section",{staticClass:"wrapper is-link is-bold"},[s("div",{staticClass:"container"},[s("div",{staticClass:"typed-container"},[s("vue-typed-js",{attrs:{strings:["Community ^2000","Impact ^3000","Progress ^4000"],loop:!0,typespeed:5,startDelay:1e3,backSpeed:10,showCursor:!1}},[s("h1",{staticClass:"worldcup-title"},[t._v("Our Global "),s("span",{staticClass:"typing"})])])],1),s("TotalGlobalCounts",{attrs:{loading:t.loading}}),s("div",{staticClass:"leaderboard-heading",on:{click:t.openLeaderboard}},[s("h3",{staticClass:"title is-2 has-text-centered"},[t._v(" "+t._s(t.$t("location.global-leaderboard"))+" ")]),s("i",{staticClass:"fa fa-arrow-right"})]),s("LeaderboardList",{attrs:{leaders:t.leaders}})],1),s("Progress",{attrs:{loading:t.loading}})],1)])},P=[],S=a(w,L,P,!1,null,"bd523968");const y=S.exports,T={name:"Countries",components:{Loading:r,GlobalMetaData:y,SortLocations:l},async created(){this.loading=!0,await this.$store.dispatch("GET_WORLD_CUP_DATA"),this.loading=!1},data(){return{loading:!0}}};var X=function(){var t=this,s=t._self._c;return s("div",[s("loading",{directives:[{name:"show",rawName:"v-show",value:t.loading,expression:"loading"}],attrs:{active:t.loading,"is-full-page":!0},on:{"update:active":function(o){t.loading=o}}}),s("GlobalMetaData",{attrs:{loading:t.loading}}),s("SortLocations",{attrs:{locationType:"country"}})],1)},V=[],G=a(T,X,V,!1,null,null);const B=G.exports;export{B as default}; +import{L as r}from"./vue-loading-Kx5ngqlf.js";/* empty css */import{n as a}from"./app-DGjOB0Vc.js";import{L as i}from"./LeaderboardList-Cz6T5MVY.js";import{S as l}from"./SortLocations-DyyPIY2N.js";/* empty css */import"./moment-zH0z38ay.js";const n={name:"TotalGlobalCounts",props:["loading"],computed:{previous_littercoin(){let e=0;return this.$localStorage.get("littercoin_owed")&&(e=this.$localStorage.get("littercoin_owed")),this.$localStorage.set("littercoin_owed",this.littercoin),e},previous_total_litter(){let e=0;return this.$localStorage.get("total_litter")&&(e=this.$localStorage.get("total_litter")),this.$localStorage.set("total_litter",this.total_litter),e},previous_total_photos(){let e=0;return this.$localStorage.get("total_photos")&&(e=this.$localStorage.get("total_photos")),this.$localStorage.set("total_photos",this.total_photos),e},total_litter(){return this.$store.state.locations.total_litter},total_photos(){return this.$store.state.locations.total_photos},total_littercoin(){return this.$store.state.locations.littercoin}},methods:{commas(e){return parseInt(e).toLocaleString()}}};var c=function(){var t=this,s=t._self._c;return s("div",{staticClass:"stats"},[s("div",{staticClass:"stat"},[s("h1",{staticClass:"subtitle is-5 has-text-centered"},[s("strong",{staticClass:"has-text-black font-800"},[t._v(" "+t._s(t.$t("location.total-verified-litter"))+" ")])]),s("h1",{staticClass:"title is-2 has-text-centered has-text-white"},[s("strong",[t.loading?s("span",[t._v("...")]):s("number",{attrs:{from:t.previous_total_litter,to:t.total_litter,duration:3,delay:1,easing:"Power1.easeOut",format:t.commas}})],1)])]),s("div",{staticClass:"stat"},[s("h1",{staticClass:"subtitle is-5 has-text-centered"},[s("strong",{staticClass:"has-text-black font-800"},[t._v(" "+t._s(t.$t("location.total-verified-photos"))+" ")])]),s("h1",{staticClass:"title is-2 has-text-centered has-text-white"},[s("strong",[t.loading?s("span",[t._v("...")]):s("number",{attrs:{from:t.previous_total_photos,to:t.total_photos,duration:3,delay:1,easing:"Power1.easeOut",format:t.commas}})],1)])]),s("div",{staticClass:"stat"},[s("h1",{staticClass:"subtitle is-5 has-text-centered"},[s("strong",{staticClass:"has-text-black font-800"},[t._v(" "+t._s(t.$t("location.total-littercoin-issued"))+" ")])]),s("h1",{staticClass:"title is-2 has-text-centered has-text-white"},[s("strong",[t.loading?s("span",[t._v("...")]):s("number",{attrs:{from:t.previous_littercoin,to:t.total_littercoin,duration:3,delay:1,easing:"Power1.easeOut",format:t.commas}})],1)])])])},_=[],d=a(n,c,_,!1,null,"c7421a37");const p=d.exports,h={name:"ProgressBar",props:["currentxp","xpneeded","startingxp"],computed:{currentValue(){let e=this.xpneeded-this.startingxp;return(this.currentxp-this.startingxp)*100/e}}};var u=function(){var t=this,s=t._self._c;return s("progress",{staticClass:"progress is-large is-success",attrs:{max:100},domProps:{value:t.currentValue}})},m=[],g=a(h,u,m,!1,null,null);const v=g.exports,f={name:"Progress",props:["loading"],components:{ProgressBar:v},methods:{commas(e){return parseInt(e).toLocaleString()}},computed:{littercoin(){return this.$store.state.locations.littercoin},previousXp(){return this.$store.state.locations.level.previousXp},nextXp(){return this.$store.state.locations.level.nextXp},total_litter(){return this.$store.state.locations.total_litter},progress(){let e=this.nextXp-this.previousXp;return((this.total_litter-this.previousXp)*100/e).toFixed(2)},total_photos(){return this.$store.state.locations.total_photos}}};var x=function(){var t=this,s=t._self._c;return s("div",{staticClass:"container mt4 progress-bar"},[s("div",[s("div",{staticClass:"flex mb1"},[s("h4",{staticClass:"flex-1 has-text-white"},[t._v(" "+t._s(t.$t("location.previous-target"))+": "),s("br"),s("strong",{staticClass:"has-text-white"},[t._v(" "+t._s(t._f("commas")(this.previousXp))+" "+t._s(t.$t("location.litter"))+" ")])]),s("h4",{staticClass:"has-text-white"},[t._v(t._s(t.$t("location.next-target"))+": "),s("br"),s("strong",{staticClass:"has-text-white"},[t._v(" "+t._s(t._f("commas")(this.nextXp))+" "+t._s(t.$t("location.litter"))+" ")])])]),s("ProgressBar",{staticClass:"mb1em",attrs:{currentxp:t.total_litter,startingxp:t.previousXp,xpneeded:t.nextXp}}),t.loading?s("p",{staticClass:"has-text-centered has-text-white mb2"},[t._v("...%")]):s("p",{staticClass:"has-text-centered has-text-white mb2"},[t._v(t._s(this.progress)+"%")])],1)])},$=[],C=a(f,x,$,!1,null,"fdd75015");const b=C.exports,w={name:"GlobalMetaData",props:["loading"],components:{LeaderboardList:i,Progress:b,TotalGlobalCounts:p},channel:"main",echo:{ImageUploaded:(e,t)=>{e.isUserVerified&&t.$store.commit("incrementTotalPhotos")},ImageDeleted:(e,t)=>{e.isUserVerified&&t.$store.commit("decrementTotalPhotos")},TagsVerifiedByAdmin:(e,t)=>{t.$store.commit("incrementTotalLitter",e.total_litter_all_categories),e.isUserVerified||t.$store.commit("incrementTotalPhotos")}},computed:{leaders(){return this.$store.state.locations.globalLeaders}},methods:{openLeaderboard(e){this.$router.push({path:"/leaderboard"})}}};var L=function(){var t=this,s=t._self._c;return s("section",{staticClass:"is-link hero is-bold"},[s("section",{staticClass:"wrapper is-link is-bold"},[s("div",{staticClass:"container"},[s("div",{staticClass:"typed-container"},[s("vue-typed-js",{attrs:{strings:["Community ^2000","Impact ^3000","Progress ^4000"],loop:!0,typespeed:5,startDelay:1e3,backSpeed:10,showCursor:!1}},[s("h1",{staticClass:"worldcup-title"},[t._v("Our Global "),s("span",{staticClass:"typing"})])])],1),s("TotalGlobalCounts",{attrs:{loading:t.loading}}),s("div",{staticClass:"leaderboard-heading",on:{click:t.openLeaderboard}},[s("h3",{staticClass:"title is-2 has-text-centered"},[t._v(" "+t._s(t.$t("location.global-leaderboard"))+" ")]),s("i",{staticClass:"fa fa-arrow-right"})]),s("LeaderboardList",{attrs:{leaders:t.leaders}})],1),s("Progress",{attrs:{loading:t.loading}})],1)])},P=[],S=a(w,L,P,!1,null,"bd523968");const y=S.exports,T={name:"Countries",components:{Loading:r,GlobalMetaData:y,SortLocations:l},async created(){this.loading=!0,await this.$store.dispatch("GET_WORLD_CUP_DATA"),this.loading=!1},data(){return{loading:!0}}};var X=function(){var t=this,s=t._self._c;return s("div",[s("loading",{directives:[{name:"show",rawName:"v-show",value:t.loading,expression:"loading"}],attrs:{active:t.loading,"is-full-page":!0},on:{"update:active":function(o){t.loading=o}}}),s("GlobalMetaData",{attrs:{loading:t.loading}}),s("SortLocations",{attrs:{locationType:"country"}})],1)},V=[],G=a(T,X,V,!1,null,null);const B=G.exports;export{B as default}; diff --git a/public/build/assets/Credits--YHLhBef.js b/public/build/assets/Credits-Clgc6zgC.js similarity index 96% rename from public/build/assets/Credits--YHLhBef.js rename to public/build/assets/Credits-Clgc6zgC.js index f65173c9b..d6b2f29f4 100644 --- a/public/build/assets/Credits--YHLhBef.js +++ b/public/build/assets/Credits-Clgc6zgC.js @@ -1 +1 @@ -import{n as e}from"./app-DpqRw90N.js";/* empty css */const o={name:"Credits"};var r=function(){var a=this;return a._self._c,a._m(0)},c=[function(){var t=this,a=t._self._c;return a("div",[a("div",[t._v("Icons made by "),a("a",{attrs:{href:"https://www.flaticon.com/authors/pixel-buddha",title:"Pixel Buddha"}},[t._v("Pixel Buddha")]),t._v(" from "),a("a",{attrs:{href:"https://www.flaticon.com/",title:"Flaticon"}},[t._v("www.flaticon.com")])]),a("div",[t._v("Icons made by "),a("a",{attrs:{href:"https://www.freepik.com",title:"Freepik"}},[t._v("Freepik")]),t._v(" from "),a("a",{attrs:{href:"https://www.flaticon.com/",title:"Flaticon"}},[t._v("www.flaticon.com")])]),a("div",[t._v("Icons made by "),a("a",{attrs:{href:"https://www.flaticon.com/authors/smashicons",title:"Smashicons"}},[t._v("Smashicons")]),t._v(" from "),a("a",{attrs:{href:"https://www.flaticon.com/",title:"Flaticon"}},[t._v("www.flaticon.com")])]),a("div",[t._v("Icons made by "),a("a",{attrs:{href:"https://www.flaticon.com/authors/alfredo-hernandez",title:"Alfredo Hernandez"}},[t._v("Alfredo Hernandez")]),t._v(" from "),a("a",{attrs:{href:"https://www.flaticon.com/",title:"Flaticon"}},[t._v("www.flaticon.com")])]),a("div",[t._v("Icons made by "),a("a",{attrs:{href:"https://www.flaticon.com/authors/sbts2018",title:"sbts2018"}},[t._v("sbts2018")]),t._v(" from "),a("a",{attrs:{href:"https://www.flaticon.com/",title:"Flaticon"}},[t._v("www.flaticon.com")])]),a("a",{attrs:{href:"https://www.freepik.com/vectors/garbage-man"}},[t._v("Garbage man vector created by pch.vector - www.freepik.com")]),a("a",{attrs:{href:"https://create.vista.com/unlimited/stock-photos/164344014/stock-photo-volunteer-with-trash-bag-and/"}},[t._v("Photo Volunteering, people and ecology concept - volunteer woman with garbage bag and glass bottle cleaning area in park created by Syda_Productions")])])}],s=e(o,r,c,!1,null,"bbbc3a94");const w=s.exports;export{w as default}; +import{n as e}from"./app-DGjOB0Vc.js";/* empty css */const o={name:"Credits"};var r=function(){var a=this;return a._self._c,a._m(0)},c=[function(){var t=this,a=t._self._c;return a("div",[a("div",[t._v("Icons made by "),a("a",{attrs:{href:"https://www.flaticon.com/authors/pixel-buddha",title:"Pixel Buddha"}},[t._v("Pixel Buddha")]),t._v(" from "),a("a",{attrs:{href:"https://www.flaticon.com/",title:"Flaticon"}},[t._v("www.flaticon.com")])]),a("div",[t._v("Icons made by "),a("a",{attrs:{href:"https://www.freepik.com",title:"Freepik"}},[t._v("Freepik")]),t._v(" from "),a("a",{attrs:{href:"https://www.flaticon.com/",title:"Flaticon"}},[t._v("www.flaticon.com")])]),a("div",[t._v("Icons made by "),a("a",{attrs:{href:"https://www.flaticon.com/authors/smashicons",title:"Smashicons"}},[t._v("Smashicons")]),t._v(" from "),a("a",{attrs:{href:"https://www.flaticon.com/",title:"Flaticon"}},[t._v("www.flaticon.com")])]),a("div",[t._v("Icons made by "),a("a",{attrs:{href:"https://www.flaticon.com/authors/alfredo-hernandez",title:"Alfredo Hernandez"}},[t._v("Alfredo Hernandez")]),t._v(" from "),a("a",{attrs:{href:"https://www.flaticon.com/",title:"Flaticon"}},[t._v("www.flaticon.com")])]),a("div",[t._v("Icons made by "),a("a",{attrs:{href:"https://www.flaticon.com/authors/sbts2018",title:"sbts2018"}},[t._v("sbts2018")]),t._v(" from "),a("a",{attrs:{href:"https://www.flaticon.com/",title:"Flaticon"}},[t._v("www.flaticon.com")])]),a("a",{attrs:{href:"https://www.freepik.com/vectors/garbage-man"}},[t._v("Garbage man vector created by pch.vector - www.freepik.com")]),a("a",{attrs:{href:"https://create.vista.com/unlimited/stock-photos/164344014/stock-photo-volunteer-with-trash-bag-and/"}},[t._v("Photo Volunteering, people and ecology concept - volunteer woman with garbage bag and glass bottle cleaning area in park created by Syda_Productions")])])}],s=e(o,r,c,!1,null,"bbbc3a94");const w=s.exports;export{w as default}; diff --git a/public/build/assets/Details-CbKeCWBq.js b/public/build/assets/Details-BxAUz3B8.js similarity index 98% rename from public/build/assets/Details-CbKeCWBq.js rename to public/build/assets/Details-BxAUz3B8.js index 4f707fdbf..e17367246 100644 --- a/public/build/assets/Details-CbKeCWBq.js +++ b/public/build/assets/Details-BxAUz3B8.js @@ -1 +1 @@ -import{n as a}from"./app-DpqRw90N.js";/* empty css */const i={name:"Details",data(){return{btn:"button is-medium is-info",processing:!1}},computed:{button(){return this.processing?this.btn+" is-loading":this.btn},email:{get(){return this.user.email},set(t){this.$store.commit("changeUserEmail",t)}},errors(){return this.$store.state.user.errors},name:{get(){return this.user.name},set(t){this.$store.commit("changeUserName",t)}},user(){return this.$store.state.user.user},username:{get(){return this.user.username},set(t){this.$store.commit("changeUserUsername",t)}}},methods:{clearError(t){this.errors[t]&&this.$store.commit("deleteUserError",t)},getFirstError(t){return this.errors[t][0]},errorExists(t){return this.errors.hasOwnProperty(t)},async submit(){this.processing=!0,await this.$store.dispatch("UPDATE_DETAILS"),this.processing=!1}}};var n=function(){var e=this,s=e._self._c;return s("div",{staticStyle:{"padding-left":"1em","padding-right":"1em"}},[s("h1",{staticClass:"title is-4"},[e._v(e._s(e.$t("settings.details.change-details")))]),s("hr"),s("br"),s("div",{staticClass:"columns"},[s("div",{staticClass:"column is-one-third is-offset-1"},[s("form",{on:{submit:function(r){return r.preventDefault(),e.submit.apply(null,arguments)},keydown:function(r){return e.clearError(r.target.name)}}},[s("label",{attrs:{for:"name"}},[e._v(e._s(e.$t("settings.details.your-name")))]),e.errorExists("name")?s("span",{staticClass:"error",domProps:{textContent:e._s(e.getFirstError("name"))}}):e._e(),s("div",{staticClass:"field"},[s("div",{staticClass:"control has-icons-left"},[s("input",{directives:[{name:"model",rawName:"v-model",value:e.name,expression:"name"}],staticClass:"input",attrs:{type:"text",name:"name",id:"name",placeholder:e.name,required:""},domProps:{value:e.name},on:{input:function(r){r.target.composing||(e.name=r.target.value)}}}),e._m(0)])]),s("label",{attrs:{for:"username"}},[e._v(e._s(e.$t("settings.details.unique-id")))]),e.errorExists("username")?s("span",{staticClass:"error",domProps:{textContent:e._s(e.getFirstError("username"))}}):e._e(),s("div",{staticClass:"field"},[s("div",{staticClass:"control has-icons-left"},[s("input",{directives:[{name:"model",rawName:"v-model",value:e.username,expression:"username"}],staticClass:"input",attrs:{type:"text",name:"username",id:"username",placeholder:e.username,required:""},domProps:{value:e.username},on:{input:function(r){r.target.composing||(e.username=r.target.value)}}}),s("span",{staticClass:"icon is-small is-left"},[e._v(" @ ")])])]),s("label",{attrs:{for:"email"}},[e._v(e._s(e.$t("settings.details.email")))]),e.errorExists("email")?s("span",{staticClass:"error",domProps:{textContent:e._s(e.getFirstError("email"))}}):e._e(),s("div",{staticClass:"field mb2"},[s("div",{staticClass:"control has-icons-left"},[s("input",{directives:[{name:"model",rawName:"v-model",value:e.email,expression:"email"}],staticClass:"input",attrs:{type:"email",name:"email",id:"email",placeholder:e.email,required:""},domProps:{value:e.email},on:{input:function(r){r.target.composing||(e.email=r.target.value)}}}),e._m(1)])]),s("button",{class:e.button,attrs:{disabled:e.processing}},[e._v(e._s(e.$t("settings.details.update-details")))])])])])])},o=[function(){var t=this,e=t._self._c;return e("span",{staticClass:"icon is-small is-left"},[e("i",{staticClass:"fa fa-user"})])},function(){var t=this,e=t._self._c;return e("span",{staticClass:"icon is-small is-left"},[e("i",{staticClass:"fa fa-envelope"})])}],l=a(i,n,o,!1,null,null);const c=l.exports;export{c as default}; +import{n as a}from"./app-DGjOB0Vc.js";/* empty css */const i={name:"Details",data(){return{btn:"button is-medium is-info",processing:!1}},computed:{button(){return this.processing?this.btn+" is-loading":this.btn},email:{get(){return this.user.email},set(t){this.$store.commit("changeUserEmail",t)}},errors(){return this.$store.state.user.errors},name:{get(){return this.user.name},set(t){this.$store.commit("changeUserName",t)}},user(){return this.$store.state.user.user},username:{get(){return this.user.username},set(t){this.$store.commit("changeUserUsername",t)}}},methods:{clearError(t){this.errors[t]&&this.$store.commit("deleteUserError",t)},getFirstError(t){return this.errors[t][0]},errorExists(t){return this.errors.hasOwnProperty(t)},async submit(){this.processing=!0,await this.$store.dispatch("UPDATE_DETAILS"),this.processing=!1}}};var n=function(){var e=this,s=e._self._c;return s("div",{staticStyle:{"padding-left":"1em","padding-right":"1em"}},[s("h1",{staticClass:"title is-4"},[e._v(e._s(e.$t("settings.details.change-details")))]),s("hr"),s("br"),s("div",{staticClass:"columns"},[s("div",{staticClass:"column is-one-third is-offset-1"},[s("form",{on:{submit:function(r){return r.preventDefault(),e.submit.apply(null,arguments)},keydown:function(r){return e.clearError(r.target.name)}}},[s("label",{attrs:{for:"name"}},[e._v(e._s(e.$t("settings.details.your-name")))]),e.errorExists("name")?s("span",{staticClass:"error",domProps:{textContent:e._s(e.getFirstError("name"))}}):e._e(),s("div",{staticClass:"field"},[s("div",{staticClass:"control has-icons-left"},[s("input",{directives:[{name:"model",rawName:"v-model",value:e.name,expression:"name"}],staticClass:"input",attrs:{type:"text",name:"name",id:"name",placeholder:e.name,required:""},domProps:{value:e.name},on:{input:function(r){r.target.composing||(e.name=r.target.value)}}}),e._m(0)])]),s("label",{attrs:{for:"username"}},[e._v(e._s(e.$t("settings.details.unique-id")))]),e.errorExists("username")?s("span",{staticClass:"error",domProps:{textContent:e._s(e.getFirstError("username"))}}):e._e(),s("div",{staticClass:"field"},[s("div",{staticClass:"control has-icons-left"},[s("input",{directives:[{name:"model",rawName:"v-model",value:e.username,expression:"username"}],staticClass:"input",attrs:{type:"text",name:"username",id:"username",placeholder:e.username,required:""},domProps:{value:e.username},on:{input:function(r){r.target.composing||(e.username=r.target.value)}}}),s("span",{staticClass:"icon is-small is-left"},[e._v(" @ ")])])]),s("label",{attrs:{for:"email"}},[e._v(e._s(e.$t("settings.details.email")))]),e.errorExists("email")?s("span",{staticClass:"error",domProps:{textContent:e._s(e.getFirstError("email"))}}):e._e(),s("div",{staticClass:"field mb2"},[s("div",{staticClass:"control has-icons-left"},[s("input",{directives:[{name:"model",rawName:"v-model",value:e.email,expression:"email"}],staticClass:"input",attrs:{type:"email",name:"email",id:"email",placeholder:e.email,required:""},domProps:{value:e.email},on:{input:function(r){r.target.composing||(e.email=r.target.value)}}}),e._m(1)])]),s("button",{class:e.button,attrs:{disabled:e.processing}},[e._v(e._s(e.$t("settings.details.update-details")))])])])])])},o=[function(){var t=this,e=t._self._c;return e("span",{staticClass:"icon is-small is-left"},[e("i",{staticClass:"fa fa-user"})])},function(){var t=this,e=t._self._c;return e("span",{staticClass:"icon is-small is-left"},[e("i",{staticClass:"fa fa-envelope"})])}],l=a(i,n,o,!1,null,null);const c=l.exports;export{c as default}; diff --git a/public/build/assets/Donate-D1PFkBAC.js b/public/build/assets/Donate-BbIhjhFR.js similarity index 95% rename from public/build/assets/Donate-D1PFkBAC.js rename to public/build/assets/Donate-BbIhjhFR.js index 6bb02f4de..3763932b9 100644 --- a/public/build/assets/Donate-D1PFkBAC.js +++ b/public/build/assets/Donate-BbIhjhFR.js @@ -1 +1 @@ -import{L as n}from"./vue-loading-Bl53SHQy.js";/* empty css */import{n as i}from"./app-DpqRw90N.js";import{_ as o}from"./IMG_0556-0A1kBpHu.js";/* empty css */const r={name:"DonateButtons",components:{Loading:n},data(){return{stripeEmail:"",stripeToken:"",amount:"",loading:!0}},async created(){this.loading=!0,await this.$store.dispatch("GET_DONATION_AMOUNTS"),this.$emit("donations-loaded"),this.loading=!1},computed:{amounts(){return this.$store.state.donate.amounts}},methods:{donate(a){this.amount=this.prices[a]*100,this.stripe=StripeCheckout.configure({key:OLM.stripeKey,image:"https://stripe.com/img/documentation/checkout/marketplace.png",locale:"auto",panelLabel:"One-time Donation",token:e=>{this.stripeToken=e.id,this.stripeEmail=e.email,axios.post("/donate",this.$data).then(t=>{alert("Congratulations! Your payment was successful. Thanks!")}).catch(t=>{alert("Sorry, there was an error processing your card! You have not been charged. Please try again")})}}),this.stripe.open({name:"€"+this.prices[a],description:"OpenLitterMap",zipCode:!1,amount:this.prices[a]*100})}}};var c=function(){var e=this,t=e._self._c;return t("div",[e.loading?t("loading",{attrs:{active:e.loading,"is-full-page":!1},on:{"update:active":function(s){e.loading=s}}}):t("div",{staticClass:"box"},[t("h3",{staticClass:"title is-2 mb1em"},[t("strong",{staticStyle:{color:"#363636"}},[e._v("Select an amount:")])]),t("div",{staticClass:"grid-container has-text-centered"},e._l(e.amounts,function(s){return t("div",[t("div",{staticClass:"box",staticStyle:{"background-color":"lightgreen"}},[t("h3",{staticClass:"title is-3 mb1em"},[t("strong",[e._v("€"+e._s(s.amount/100))])]),t("button",{staticClass:"button is-medium is-primary",on:{click:function(v){return e.donate(s.id)}}},[e._v("Donate now")])])])}),0),t("h3",{staticClass:"title is-1",staticStyle:{"text-align":"right"}},[t("strong",{staticStyle:{color:"#363636"}},[e._v("Thank you.")])])])],1)},l=[],d=i(r,c,l,!1,null,"9c0de48a");const p=d.exports,m={name:"Donate",components:{DonateButtons:p},data(){return{loading:!0}}};var _=function(){var e=this,t=e._self._c;return t("section",{staticClass:"section hero is-fullheight is-primary is-bold"},[t("div",{staticClass:"container"},[t("h3",{staticClass:"title is-3"},[e._v(e._s(e.$t("home.donate.olm-dependent-on-donations")))]),t("br"),t("img",{staticStyle:{height:"450px",display:"block",margin:"auto","object-fit":"cover"},attrs:{src:o,alt:"It's important",title:"It's important"}}),t("p",{staticStyle:{"text-align":"center","margin-top":"12px"}},[e._v(e._s(e.$t("home.donate.its-important")))]),t("br"),t("div",{staticStyle:{"word-break":"break-all"}},[t("p",[e._v("Bitcoin: 3Cvyhhec777Dnc6a5QHZ1S8DZpL3nodZ2K")]),t("p",[e._v("Bitcoin Cash: 14FEA8ckGiTf5HvYhANBAEpmvawdJpFFU6")]),t("p",[e._v("Ethereum: 0x43DbD68771cEDad272dcC78c4108B543DDF8a449")]),t("p",[e._v("Dash: XfLLMTKeSwXhaoUGpUJVTV9KrtGTXiMoAG")]),e.loading?t("p",[e._v("Updating....")]):e._e()]),t("br"),t("div",{staticClass:"container"},[t("donate-buttons",{on:{"donations-loaded":function(s){e.loading=!1}}})],1)])])},u=[],h=i(m,_,u,!1,null,"60e4ca1c");const D=h.exports;export{D as default}; +import{L as n}from"./vue-loading-Kx5ngqlf.js";/* empty css */import{n as i}from"./app-DGjOB0Vc.js";import{_ as o}from"./IMG_0556-0A1kBpHu.js";/* empty css */const r={name:"DonateButtons",components:{Loading:n},data(){return{stripeEmail:"",stripeToken:"",amount:"",loading:!0}},async created(){this.loading=!0,await this.$store.dispatch("GET_DONATION_AMOUNTS"),this.$emit("donations-loaded"),this.loading=!1},computed:{amounts(){return this.$store.state.donate.amounts}},methods:{donate(a){this.amount=this.prices[a]*100,this.stripe=StripeCheckout.configure({key:OLM.stripeKey,image:"https://stripe.com/img/documentation/checkout/marketplace.png",locale:"auto",panelLabel:"One-time Donation",token:e=>{this.stripeToken=e.id,this.stripeEmail=e.email,axios.post("/donate",this.$data).then(t=>{alert("Congratulations! Your payment was successful. Thanks!")}).catch(t=>{alert("Sorry, there was an error processing your card! You have not been charged. Please try again")})}}),this.stripe.open({name:"€"+this.prices[a],description:"OpenLitterMap",zipCode:!1,amount:this.prices[a]*100})}}};var c=function(){var e=this,t=e._self._c;return t("div",[e.loading?t("loading",{attrs:{active:e.loading,"is-full-page":!1},on:{"update:active":function(s){e.loading=s}}}):t("div",{staticClass:"box"},[t("h3",{staticClass:"title is-2 mb1em"},[t("strong",{staticStyle:{color:"#363636"}},[e._v("Select an amount:")])]),t("div",{staticClass:"grid-container has-text-centered"},e._l(e.amounts,function(s){return t("div",[t("div",{staticClass:"box",staticStyle:{"background-color":"lightgreen"}},[t("h3",{staticClass:"title is-3 mb1em"},[t("strong",[e._v("€"+e._s(s.amount/100))])]),t("button",{staticClass:"button is-medium is-primary",on:{click:function(v){return e.donate(s.id)}}},[e._v("Donate now")])])])}),0),t("h3",{staticClass:"title is-1",staticStyle:{"text-align":"right"}},[t("strong",{staticStyle:{color:"#363636"}},[e._v("Thank you.")])])])],1)},l=[],d=i(r,c,l,!1,null,"9c0de48a");const p=d.exports,m={name:"Donate",components:{DonateButtons:p},data(){return{loading:!0}}};var _=function(){var e=this,t=e._self._c;return t("section",{staticClass:"section hero is-fullheight is-primary is-bold"},[t("div",{staticClass:"container"},[t("h3",{staticClass:"title is-3"},[e._v(e._s(e.$t("home.donate.olm-dependent-on-donations")))]),t("br"),t("img",{staticStyle:{height:"450px",display:"block",margin:"auto","object-fit":"cover"},attrs:{src:o,alt:"It's important",title:"It's important"}}),t("p",{staticStyle:{"text-align":"center","margin-top":"12px"}},[e._v(e._s(e.$t("home.donate.its-important")))]),t("br"),t("div",{staticStyle:{"word-break":"break-all"}},[t("p",[e._v("Bitcoin: 3Cvyhhec777Dnc6a5QHZ1S8DZpL3nodZ2K")]),t("p",[e._v("Bitcoin Cash: 14FEA8ckGiTf5HvYhANBAEpmvawdJpFFU6")]),t("p",[e._v("Ethereum: 0x43DbD68771cEDad272dcC78c4108B543DDF8a449")]),t("p",[e._v("Dash: XfLLMTKeSwXhaoUGpUJVTV9KrtGTXiMoAG")]),e.loading?t("p",[e._v("Updating....")]):e._e()]),t("br"),t("div",{staticClass:"container"},[t("donate-buttons",{on:{"donations-loaded":function(s){e.loading=!1}}})],1)])])},u=[],h=i(m,_,u,!1,null,"60e4ca1c");const D=h.exports;export{D as default}; diff --git a/public/build/assets/Email-BtwOyGAm.js b/public/build/assets/Email-C_VsyhAa.js similarity index 97% rename from public/build/assets/Email-BtwOyGAm.js rename to public/build/assets/Email-C_VsyhAa.js index 8c47fe11b..1555347c5 100644 --- a/public/build/assets/Email-BtwOyGAm.js +++ b/public/build/assets/Email-C_VsyhAa.js @@ -1 +1 @@ -import{n as i}from"./app-DpqRw90N.js";/* empty css */const r={name:"Email",data(){return{email:"",processing:!1}},computed:{validationErrors(){let a=this.$store.state.user.errors;return a&&a.email?a.email[0]:null}},methods:{async submit(){this.processing=!0,await this.$store.dispatch("SEND_PASSWORD_RESET_LINK",this.email),this.processing=!1},clearErrors(){this.$store.commit("errors",[])}}};var l=function(){var s=this,t=s._self._c;return t("section",{staticClass:"hero is-info is-fullheight"},[t("div",{staticClass:"columns centered"},[t("div",{staticClass:"column"}),t("div",{staticClass:"column is-half-tablet is-one-third-desktop is-one-quarter-fullhd"},[t("p",{staticClass:"title is-1 has-text-centered"},[s._v("Reset Password")]),t("div",{staticClass:"panel-body"},[t("form",{staticClass:"form-horizontal",attrs:{role:"form"},on:{submit:function(e){return e.preventDefault(),s.submit.apply(null,arguments)}}},[t("div",{staticClass:"field with-x-spacing"},[t("label",{staticClass:"label has-text-white",attrs:{for:"email"}},[s._v("E-Mail Address")]),t("div",{staticClass:"control has-icons-left",class:s.processing?"is-loading":""},[t("input",{directives:[{name:"model",rawName:"v-model",value:s.email,expression:"email"}],staticClass:"input",class:s.validationErrors?"is-danger":"",attrs:{id:"email",type:"email",name:"email",required:"",autofocus:"",placeholder:"you@email.com"},domProps:{value:s.email},on:{input:[function(e){e.target.composing||(s.email=e.target.value)},s.clearErrors]}}),s._m(0),s.validationErrors?t("p",{staticClass:"help has-text-white has-text-weight-bold"},[s._v(s._s(s.validationErrors))]):s._e()])]),t("div",{staticClass:"field has-text-centered"},[t("div",{staticClass:"control"},[t("button",{staticClass:"button is-primary",class:s.processing?"is-loading":"",attrs:{type:"submit",disabled:s.processing}},[s._v(" Send Password Reset Link ")])])])])])]),t("div",{staticClass:"column"})])])},o=[function(){var a=this,s=a._self._c;return s("span",{staticClass:"icon is-small is-left"},[s("i",{staticClass:"fa fa-envelope"})])}],n=i(r,l,o,!1,null,"4ded61d5");const d=n.exports;export{d as default}; +import{n as i}from"./app-DGjOB0Vc.js";/* empty css */const r={name:"Email",data(){return{email:"",processing:!1}},computed:{validationErrors(){let a=this.$store.state.user.errors;return a&&a.email?a.email[0]:null}},methods:{async submit(){this.processing=!0,await this.$store.dispatch("SEND_PASSWORD_RESET_LINK",this.email),this.processing=!1},clearErrors(){this.$store.commit("errors",[])}}};var l=function(){var s=this,t=s._self._c;return t("section",{staticClass:"hero is-info is-fullheight"},[t("div",{staticClass:"columns centered"},[t("div",{staticClass:"column"}),t("div",{staticClass:"column is-half-tablet is-one-third-desktop is-one-quarter-fullhd"},[t("p",{staticClass:"title is-1 has-text-centered"},[s._v("Reset Password")]),t("div",{staticClass:"panel-body"},[t("form",{staticClass:"form-horizontal",attrs:{role:"form"},on:{submit:function(e){return e.preventDefault(),s.submit.apply(null,arguments)}}},[t("div",{staticClass:"field with-x-spacing"},[t("label",{staticClass:"label has-text-white",attrs:{for:"email"}},[s._v("E-Mail Address")]),t("div",{staticClass:"control has-icons-left",class:s.processing?"is-loading":""},[t("input",{directives:[{name:"model",rawName:"v-model",value:s.email,expression:"email"}],staticClass:"input",class:s.validationErrors?"is-danger":"",attrs:{id:"email",type:"email",name:"email",required:"",autofocus:"",placeholder:"you@email.com"},domProps:{value:s.email},on:{input:[function(e){e.target.composing||(s.email=e.target.value)},s.clearErrors]}}),s._m(0),s.validationErrors?t("p",{staticClass:"help has-text-white has-text-weight-bold"},[s._v(s._s(s.validationErrors))]):s._e()])]),t("div",{staticClass:"field has-text-centered"},[t("div",{staticClass:"control"},[t("button",{staticClass:"button is-primary",class:s.processing?"is-loading":"",attrs:{type:"submit",disabled:s.processing}},[s._v(" Send Password Reset Link ")])])])])])]),t("div",{staticClass:"column"})])])},o=[function(){var a=this,s=a._self._c;return s("span",{staticClass:"icon is-small is-left"},[s("i",{staticClass:"fa fa-envelope"})])}],n=i(r,l,o,!1,null,"4ded61d5");const d=n.exports;export{d as default}; diff --git a/public/build/assets/Emails-mF8r9mTN.js b/public/build/assets/Emails-C5x0nnqX.js similarity index 94% rename from public/build/assets/Emails-mF8r9mTN.js rename to public/build/assets/Emails-C5x0nnqX.js index 53dfc68f1..1a30c8b78 100644 --- a/public/build/assets/Emails-mF8r9mTN.js +++ b/public/build/assets/Emails-C5x0nnqX.js @@ -1 +1 @@ -import{n as e}from"./app-DpqRw90N.js";/* empty css */const i={name:"Emails",data(){return{processing:!1}},computed:{button(){return this.processing?"button is-info is-loading":"button is-info"},color(){return this.$store.state.user.user.emailsub?"color: green":"color: red"},computedPresence(){return this.$store.state.user.user.emailsub?"Subscribed":"Unsubscribed"}},methods:{async toggle(){this.processing=!0,this.$store.dispatch("TOGGLE_EMAIL_SUBSCRIPTION"),this.processing=!1}}};var r=function(){var s=this,t=s._self._c;return t("div",{staticStyle:{padding:"0 1em"}},[t("h1",{staticClass:"title is-4"},[s._v(s._s(s.$t("settings.emails.toggle-email")))]),t("hr"),t("p",[s._v(s._s(s.$t("settings.emails.we-send-updates")))]),t("p",[s._v(s._s(s.$t("settings.emails.subscribe")))]),t("br"),t("p",[t("b",[s._v(s._s(s.$t("settings.emails.current-status"))+":")])]),t("p",[t("b",{style:s.color},[s._v(s._s(this.computedPresence))])]),t("br"),t("div",{staticClass:"columns"},[t("div",{staticClass:"column is-one-third is-offset-1"},[t("button",{class:s.button,attrs:{disabled:s.processing},on:{click:s.toggle}},[s._v(s._s(s.$t("settings.emails.change-status")))])])])])},n=[],o=e(i,r,n,!1,null,null);const u=o.exports;export{u as default}; +import{n as e}from"./app-DGjOB0Vc.js";/* empty css */const i={name:"Emails",data(){return{processing:!1}},computed:{button(){return this.processing?"button is-info is-loading":"button is-info"},color(){return this.$store.state.user.user.emailsub?"color: green":"color: red"},computedPresence(){return this.$store.state.user.user.emailsub?"Subscribed":"Unsubscribed"}},methods:{async toggle(){this.processing=!0,this.$store.dispatch("TOGGLE_EMAIL_SUBSCRIPTION"),this.processing=!1}}};var r=function(){var s=this,t=s._self._c;return t("div",{staticStyle:{padding:"0 1em"}},[t("h1",{staticClass:"title is-4"},[s._v(s._s(s.$t("settings.emails.toggle-email")))]),t("hr"),t("p",[s._v(s._s(s.$t("settings.emails.we-send-updates")))]),t("p",[s._v(s._s(s.$t("settings.emails.subscribe")))]),t("br"),t("p",[t("b",[s._v(s._s(s.$t("settings.emails.current-status"))+":")])]),t("p",[t("b",{style:s.color},[s._v(s._s(this.computedPresence))])]),t("br"),t("div",{staticClass:"columns"},[t("div",{staticClass:"column is-one-third is-offset-1"},[t("button",{class:s.button,attrs:{disabled:s.processing},on:{click:s.toggle}},[s._v(s._s(s.$t("settings.emails.change-status")))])])])])},n=[],o=e(i,r,n,!1,null,null);const u=o.exports;export{u as default}; diff --git a/public/build/assets/FAQ-CQwmYNmO.js b/public/build/assets/FAQ-fSjBP7PH.js similarity index 99% rename from public/build/assets/FAQ-CQwmYNmO.js rename to public/build/assets/FAQ-fSjBP7PH.js index c94de0fc6..43faed45a 100644 --- a/public/build/assets/FAQ-CQwmYNmO.js +++ b/public/build/assets/FAQ-fSjBP7PH.js @@ -1 +1 @@ -import{n as a}from"./app-DpqRw90N.js";/* empty css */const i={name:"FAQ",mounted(){window.scrollTo(0,0)}};var n=function(){var e=this,o=e._self._c;return o("section",{staticClass:"hero section-faq"},[o("div",{staticClass:"hero-body"},[o("div",{staticClass:"py-2 mb-6"},[o("div",{staticClass:"title has-text-light has-text-centered"},[e._v(" "+e._s(e.$t("common.faq"))+" ")])]),e._m(0)])])},r=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"faq"},[e("ul",[e("li",[e("input",{attrs:{type:"checkbox",checked:""}}),e("i"),e("h2",[t._v("What is OpenLitterMap?")]),e("p",[t._v("OpenLitterMap is an open source, interactive, and accessible databsase of the world's litter & plastic pollution. We are turning cleaning the planet into a game, to make it fun and easy to collect data. This data is important to give visibility to litter, and help find solutions like where to put bins, ashtrays & more. ")])]),e("li",[e("input",{attrs:{type:"checkbox",checked:""}}),e("i"),e("h2",[t._v("Why is it called OpenLitterMap?")]),e("p",[t._v(` "Open" - because all of our code & data is open source. This means that anyone can access the code, learn from it, improvee it, or use it in another project! You don't have to be a developer to appreciate how powerful this is. Open source code can be passed on from generation to generation, who can build on it, learn from it and use it to continue to help improve society for the betterment of humanity. `),e("br"),t._v(" "),e("br"),t._v(" Not only is all of our code open source, which you can find at "),e("a",{attrs:{href:"https://github.com/openlittermap"}},[t._v("https://github.com/openlittermap")]),t._v(" but all of our data is also openly available for anyone to download and start using. This is in contrast to many other apps, who do not open up access to their code and data as they are trying to keep it for themselves (booo!!!) "),e("br"),t._v(' "LitterMap" - because we visualise our entire global repository on the global map, which loads all data in 30kb and 33ms (August 2022). '),e("br"),t._v(" The OpenLitterMap name was inspired by "),e("a",{attrs:{href:"https://openstreetmap.org"}},[t._v("OpenStreetMap")]),t._v(" which is the most detailed & comprehensive map of the world ever created by over 2-million volunteers that contiunes to be updated constantly. Unlike other services like Google Maps, which is not open and owned by Google, OpenStreetMap code and data is open to everyone, allowing anyone to be a part of adding, editing or using the code and/or data. Inspired by the open source values of OpenStreetMap, we decided to apply the same open values to litter and plastic pollution. ")])]),e("li",[e("input",{attrs:{type:"checkbox",checked:""}}),e("i"),e("h2",[t._v("How do I take pictures?")]),e("p",[t._v(" Firstly, make sure that your phone has the right settings: "),e("br"),t._v('  • iPhone. Open Settings -> Privacy -> Location. Turn "Camera On While Using". '),e("br"),t._v("  • Android. Open the Camera. "),e("br"),t._v("Go to camera settings => Activate Geotagging. "),e("br"),t._v("Pull down top-menu and Activate GPS "),e("br"),e("br"),t._v("There are different ways to take pictures: "),e("br"),t._v("  • Open your normal camera and use that to take the photos (our preferred way) "),e("br"),t._v("  • Open the app and take pictures from within the app (This is currently disabled.) "),e("br"),e("br"),t._v("There are 2 ways to upload and tag your data. You can use the mobile app, or you can use openlittermap.com and log in there. If you visit the website, you have to upload your images first, then tag them. Some people prefer this way, as you get a full screen, a keyboard, and you can tag many items at once. Other people prefer using the mobile app, where you have to select your images first, tag them, and upload the tagged ones. "),e("br"),t._v("Check your setting: do you normally pick up the litter or not? "),e("br"),t._v("If you want to take pictures without draining your battery, it is okay to put it in flight-mode! To determine your location, you need the GPS sensor in your device to connect to a location-tracking satellite, not your cellular or wifi network. You can collect geospatial data anywhere, without needing a connection to anything else. This means that it works in the most remote parts of the world, but you need to connect to the internet if you want to upload your data. ")])]),e("li",[e("input",{attrs:{type:"checkbox",checked:""}}),e("i"),e("h2",[t._v("What is Littercoin?")]),e("p",[t._v("Littercoin is the reward that our users get for producing geographic information. You can not buy Littercoin. You can only earn it by joining the community and helping us collect data. "),e("br"),t._v("Littercoin does not yet have a value, but we are working on it by locking ADA in a smart contract which will give each Littercoin value. Our vision is that your Littercoin can only be spent at participating pre-approved zero-waste stores that partner up. Unlike traditional government money that is printed out of thin-air, Littercoin is a new type of environmental currency that is created by people helping to clean the planet and can be spent in climate-approved stores only. "),e("br"),t._v("Unlike other cryptocurrencies, we are not going to list Littercoin on any exchange, making it non-tradable. The smart contract will be able to verify the integrity of each token, proving it has not been traded or listed on an exchange. "),e("br"),t._v("Cheating the system (‘oh, let me just drop a bunch of litter here and take a lot of photos of it’) is possible, but in reality, nobody does this and the benefits will far outweigh any cheating. There is also so much litter out there that finding it is much easier than carrying it around. We have a system in place that involves reviewing all tags on each image. This is generating high quality data that is being used to train the OpenLitterAI, which will make verification easier. If you really want to cheat the system, you might as well rob a zero-waste store. (Please don’t). ")])]),e("li",[e("input",{attrs:{type:"checkbox",checked:""}}),e("i"),e("h2",[t._v("How can I download the images?")]),e("p",[t._v("This feature is not working properly yet as openlittermap is still in development. Do you think the development of this technology is important? https://gofundme.com/openlittermap ")])]),e("li",[e("input",{attrs:{type:"checkbox",checked:""}}),e("i"),e("h2",[t._v("What’s the use of having an option ‘I did not pick it up’?")]),e("p",[t._v("Isn’t it all about cleaning the earth and picking litter? Good question! Yes, the idea is to make the world a better place, and there are many ways to do that. Most of us pick litter, so right at that moment, a difference is being made, the world is a bit cleaner than before. And we don’t just pick the litter, but we also take a picture to create data about that litter that can be used long after the litter is gone. "),e("br"),t._v("However, there are situatuibs when someone would take a picture without picking the litter: "),e("br"),t._v("  • The litter is too big. You are walking with your dog and picking some litter while doing so, but suddenly you see something that shouldn’t be there but it is too big. (a car-wheel, a broken toilet, etc.). "),e("br"),t._v("  • It’s too dangerous. For instance during Covid, a lot of litter-pickers stopped picking litter like facemasks because of the risk of Covid. However, taking pictures of the facemasks was still possible and welcome. "),e("br"),t._v("  • You believe that leaving the litter where it was found is making a bigger impact. This might also be true. Some people believe that by removing the litter, you are in fact saying ‘dump whatever you want, I’ll come around and pick it up’. Others believe ‘if the place is clean, it will stay clean for a longer period of time. We ourselves don’t believe in either of them. Anyway, if you want to make an impact by not touching the litter, you can still register it. "),e("br"),t._v("   • Someone else can pick it up. Suppose you are in a wheelchair, or late for a meeting. By collecting data, you can create data that other people can respond to. This feature is still in development. "),e("br"),t._v("   • We can also use those pictures to train our Machine Learning model. The more pictures we have from different kinds of litter, the better we can train the computer to recognise the litter; eventually it can help us in predicting what the litter in the picture is and lessen the trouble of you or us having to tag it manually "),e("br"),t._v("   • The data tells an important story. Some people don't want to pick up litter, but they are happy to try and help educate society. We have been picking up litter for decades and its getting worse, so clearly picking up litter alone is not working. If picking up litter is all we do, that is all we will ever do. Collecting data can be a more effective educational tool long-term to fix the problem. ")])]),e("li",[e("input",{attrs:{type:"checkbox",checked:""}}),e("i"),e("h2",[t._v("Taking pictures and tagging them is taking a lot of time, what to do?")]),e("p",[t._v("You could try our ‘bulk-tag’option. You can find this on the add-tags page, or your profile. Here you can see the photos that you uploaded from web that you need to tag. If you have similar photos (for instance all pictures with a redbull-can), you can select all of them and then choose ‘start tagging’, now you only have to give the right tags once and these will be applied to all selected pictures. The pictures that were not selected remain so you could repeat the process if you want to. This tool actually works really good, go check it out! ")])]),e("li",[e("input",{attrs:{type:"checkbox",checked:""}}),e("i"),e("h2",[t._v("What kind of pictures should I take?")]),e("p",[e("br"),t._v("  • This is entirely up to you and depends on what kind of story you want to take. "),e("br"),t._v("  • If you want, you can add 1 tag to each photo. "),e("br"),t._v("  • Or, you can include many objects in a single photo. "),e("br"),t._v("  • If its not possible to count the litter, you can use the Dumping category (small, medium, large) and pick a number between 0-100 depending on how bad you think the problem is. "),e("br"),t._v("  • When possible, hold your camera as close to the item as possible. "),e("br"),t._v("  • If there is a brand on the item, make sure that is also visible in the picture. "),e("br"),t._v("  • Don't include people, faces, shadows, feet, or clothes. Please take photos of litter ONLY. With these guidelines, you can help us create an excellent quality datasetset and you will make life easier for those who need to help verify the data. However, there are situations where this is not possible. For instance, you see something floating in the water and are not able to pick it, or turn it to see if there is a brand on it, or to zoom in. That’s okay, it is still valuable data and we welcome your contribution. "),e("br"),t._v("Do I have to take 1 photo per item? "),e("br"),t._v("  • No, you don’t. You can take 1 photo, apply a tag of cigarette butts tag with a quantity of 50. "),e("br"),t._v("And if I find different objects close together, do i have to sort those first? "),e("br"),t._v("  • Some people do this, but its not necessary. It all depends what kind of story you want to tell. "),e("br"),t._v("So do whatever you prefer, but do try and help us build a high quality database! ")])]),e("li",[e("input",{attrs:{type:"checkbox",checked:""}}),e("i"),e("h2",[t._v("How to tag correctly?")]),e("p",[t._v(" There is no single method to tag pictures, all data is valuable. It is also 'your story' to tell. However, you should try to tell what kind of item it is (it should be available under some category, and only if it is not, use 'other') and if possible add the brand as well (if the brand is not available yet, you could use the custom tags input). But try to use the pre-defined tags as much as possible. "),e("br"),t._v("If possible, tag the ‘worst’ material. So an item with both plastic and paper, tag as plastic. "),e("br"),e("br"),t._v("Some examples: "),e("br"),t._v("red bull can → 2 tags: ‘the object’ (look for the best ‘can’ that you can find) + brand "),e("br"),t._v("Soda can with a brand that we don’t have yet → 1 predefined tag (can) + 1 customtag:somebrandname "),e("br"),t._v("If you have found an energy-can, only give 1 tag for the item: so don’t tag it as ‘can’ and ‘energycan’, but just as an energycan "),e("br"),e("br"),t._v("Multiple litter items in a photo can be tagged with appropriate counts applied. A photo can contain a mixture of beer bottles, beer cans, plastic cups, or any number of recognized category items. Multiple recognized brands and their counts can also be applied. ")])])])])}],s=a(i,n,r,!1,null,"a00c8460");const c=s.exports;export{c as default}; +import{n as a}from"./app-DGjOB0Vc.js";/* empty css */const i={name:"FAQ",mounted(){window.scrollTo(0,0)}};var n=function(){var e=this,o=e._self._c;return o("section",{staticClass:"hero section-faq"},[o("div",{staticClass:"hero-body"},[o("div",{staticClass:"py-2 mb-6"},[o("div",{staticClass:"title has-text-light has-text-centered"},[e._v(" "+e._s(e.$t("common.faq"))+" ")])]),e._m(0)])])},r=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"faq"},[e("ul",[e("li",[e("input",{attrs:{type:"checkbox",checked:""}}),e("i"),e("h2",[t._v("What is OpenLitterMap?")]),e("p",[t._v("OpenLitterMap is an open source, interactive, and accessible databsase of the world's litter & plastic pollution. We are turning cleaning the planet into a game, to make it fun and easy to collect data. This data is important to give visibility to litter, and help find solutions like where to put bins, ashtrays & more. ")])]),e("li",[e("input",{attrs:{type:"checkbox",checked:""}}),e("i"),e("h2",[t._v("Why is it called OpenLitterMap?")]),e("p",[t._v(` "Open" - because all of our code & data is open source. This means that anyone can access the code, learn from it, improvee it, or use it in another project! You don't have to be a developer to appreciate how powerful this is. Open source code can be passed on from generation to generation, who can build on it, learn from it and use it to continue to help improve society for the betterment of humanity. `),e("br"),t._v(" "),e("br"),t._v(" Not only is all of our code open source, which you can find at "),e("a",{attrs:{href:"https://github.com/openlittermap"}},[t._v("https://github.com/openlittermap")]),t._v(" but all of our data is also openly available for anyone to download and start using. This is in contrast to many other apps, who do not open up access to their code and data as they are trying to keep it for themselves (booo!!!) "),e("br"),t._v(' "LitterMap" - because we visualise our entire global repository on the global map, which loads all data in 30kb and 33ms (August 2022). '),e("br"),t._v(" The OpenLitterMap name was inspired by "),e("a",{attrs:{href:"https://openstreetmap.org"}},[t._v("OpenStreetMap")]),t._v(" which is the most detailed & comprehensive map of the world ever created by over 2-million volunteers that contiunes to be updated constantly. Unlike other services like Google Maps, which is not open and owned by Google, OpenStreetMap code and data is open to everyone, allowing anyone to be a part of adding, editing or using the code and/or data. Inspired by the open source values of OpenStreetMap, we decided to apply the same open values to litter and plastic pollution. ")])]),e("li",[e("input",{attrs:{type:"checkbox",checked:""}}),e("i"),e("h2",[t._v("How do I take pictures?")]),e("p",[t._v(" Firstly, make sure that your phone has the right settings: "),e("br"),t._v('  • iPhone. Open Settings -> Privacy -> Location. Turn "Camera On While Using". '),e("br"),t._v("  • Android. Open the Camera. "),e("br"),t._v("Go to camera settings => Activate Geotagging. "),e("br"),t._v("Pull down top-menu and Activate GPS "),e("br"),e("br"),t._v("There are different ways to take pictures: "),e("br"),t._v("  • Open your normal camera and use that to take the photos (our preferred way) "),e("br"),t._v("  • Open the app and take pictures from within the app (This is currently disabled.) "),e("br"),e("br"),t._v("There are 2 ways to upload and tag your data. You can use the mobile app, or you can use openlittermap.com and log in there. If you visit the website, you have to upload your images first, then tag them. Some people prefer this way, as you get a full screen, a keyboard, and you can tag many items at once. Other people prefer using the mobile app, where you have to select your images first, tag them, and upload the tagged ones. "),e("br"),t._v("Check your setting: do you normally pick up the litter or not? "),e("br"),t._v("If you want to take pictures without draining your battery, it is okay to put it in flight-mode! To determine your location, you need the GPS sensor in your device to connect to a location-tracking satellite, not your cellular or wifi network. You can collect geospatial data anywhere, without needing a connection to anything else. This means that it works in the most remote parts of the world, but you need to connect to the internet if you want to upload your data. ")])]),e("li",[e("input",{attrs:{type:"checkbox",checked:""}}),e("i"),e("h2",[t._v("What is Littercoin?")]),e("p",[t._v("Littercoin is the reward that our users get for producing geographic information. You can not buy Littercoin. You can only earn it by joining the community and helping us collect data. "),e("br"),t._v("Littercoin does not yet have a value, but we are working on it by locking ADA in a smart contract which will give each Littercoin value. Our vision is that your Littercoin can only be spent at participating pre-approved zero-waste stores that partner up. Unlike traditional government money that is printed out of thin-air, Littercoin is a new type of environmental currency that is created by people helping to clean the planet and can be spent in climate-approved stores only. "),e("br"),t._v("Unlike other cryptocurrencies, we are not going to list Littercoin on any exchange, making it non-tradable. The smart contract will be able to verify the integrity of each token, proving it has not been traded or listed on an exchange. "),e("br"),t._v("Cheating the system (‘oh, let me just drop a bunch of litter here and take a lot of photos of it’) is possible, but in reality, nobody does this and the benefits will far outweigh any cheating. There is also so much litter out there that finding it is much easier than carrying it around. We have a system in place that involves reviewing all tags on each image. This is generating high quality data that is being used to train the OpenLitterAI, which will make verification easier. If you really want to cheat the system, you might as well rob a zero-waste store. (Please don’t). ")])]),e("li",[e("input",{attrs:{type:"checkbox",checked:""}}),e("i"),e("h2",[t._v("How can I download the images?")]),e("p",[t._v("This feature is not working properly yet as openlittermap is still in development. Do you think the development of this technology is important? https://gofundme.com/openlittermap ")])]),e("li",[e("input",{attrs:{type:"checkbox",checked:""}}),e("i"),e("h2",[t._v("What’s the use of having an option ‘I did not pick it up’?")]),e("p",[t._v("Isn’t it all about cleaning the earth and picking litter? Good question! Yes, the idea is to make the world a better place, and there are many ways to do that. Most of us pick litter, so right at that moment, a difference is being made, the world is a bit cleaner than before. And we don’t just pick the litter, but we also take a picture to create data about that litter that can be used long after the litter is gone. "),e("br"),t._v("However, there are situatuibs when someone would take a picture without picking the litter: "),e("br"),t._v("  • The litter is too big. You are walking with your dog and picking some litter while doing so, but suddenly you see something that shouldn’t be there but it is too big. (a car-wheel, a broken toilet, etc.). "),e("br"),t._v("  • It’s too dangerous. For instance during Covid, a lot of litter-pickers stopped picking litter like facemasks because of the risk of Covid. However, taking pictures of the facemasks was still possible and welcome. "),e("br"),t._v("  • You believe that leaving the litter where it was found is making a bigger impact. This might also be true. Some people believe that by removing the litter, you are in fact saying ‘dump whatever you want, I’ll come around and pick it up’. Others believe ‘if the place is clean, it will stay clean for a longer period of time. We ourselves don’t believe in either of them. Anyway, if you want to make an impact by not touching the litter, you can still register it. "),e("br"),t._v("   • Someone else can pick it up. Suppose you are in a wheelchair, or late for a meeting. By collecting data, you can create data that other people can respond to. This feature is still in development. "),e("br"),t._v("   • We can also use those pictures to train our Machine Learning model. The more pictures we have from different kinds of litter, the better we can train the computer to recognise the litter; eventually it can help us in predicting what the litter in the picture is and lessen the trouble of you or us having to tag it manually "),e("br"),t._v("   • The data tells an important story. Some people don't want to pick up litter, but they are happy to try and help educate society. We have been picking up litter for decades and its getting worse, so clearly picking up litter alone is not working. If picking up litter is all we do, that is all we will ever do. Collecting data can be a more effective educational tool long-term to fix the problem. ")])]),e("li",[e("input",{attrs:{type:"checkbox",checked:""}}),e("i"),e("h2",[t._v("Taking pictures and tagging them is taking a lot of time, what to do?")]),e("p",[t._v("You could try our ‘bulk-tag’option. You can find this on the add-tags page, or your profile. Here you can see the photos that you uploaded from web that you need to tag. If you have similar photos (for instance all pictures with a redbull-can), you can select all of them and then choose ‘start tagging’, now you only have to give the right tags once and these will be applied to all selected pictures. The pictures that were not selected remain so you could repeat the process if you want to. This tool actually works really good, go check it out! ")])]),e("li",[e("input",{attrs:{type:"checkbox",checked:""}}),e("i"),e("h2",[t._v("What kind of pictures should I take?")]),e("p",[e("br"),t._v("  • This is entirely up to you and depends on what kind of story you want to take. "),e("br"),t._v("  • If you want, you can add 1 tag to each photo. "),e("br"),t._v("  • Or, you can include many objects in a single photo. "),e("br"),t._v("  • If its not possible to count the litter, you can use the Dumping category (small, medium, large) and pick a number between 0-100 depending on how bad you think the problem is. "),e("br"),t._v("  • When possible, hold your camera as close to the item as possible. "),e("br"),t._v("  • If there is a brand on the item, make sure that is also visible in the picture. "),e("br"),t._v("  • Don't include people, faces, shadows, feet, or clothes. Please take photos of litter ONLY. With these guidelines, you can help us create an excellent quality datasetset and you will make life easier for those who need to help verify the data. However, there are situations where this is not possible. For instance, you see something floating in the water and are not able to pick it, or turn it to see if there is a brand on it, or to zoom in. That’s okay, it is still valuable data and we welcome your contribution. "),e("br"),t._v("Do I have to take 1 photo per item? "),e("br"),t._v("  • No, you don’t. You can take 1 photo, apply a tag of cigarette butts tag with a quantity of 50. "),e("br"),t._v("And if I find different objects close together, do i have to sort those first? "),e("br"),t._v("  • Some people do this, but its not necessary. It all depends what kind of story you want to tell. "),e("br"),t._v("So do whatever you prefer, but do try and help us build a high quality database! ")])]),e("li",[e("input",{attrs:{type:"checkbox",checked:""}}),e("i"),e("h2",[t._v("How to tag correctly?")]),e("p",[t._v(" There is no single method to tag pictures, all data is valuable. It is also 'your story' to tell. However, you should try to tell what kind of item it is (it should be available under some category, and only if it is not, use 'other') and if possible add the brand as well (if the brand is not available yet, you could use the custom tags input). But try to use the pre-defined tags as much as possible. "),e("br"),t._v("If possible, tag the ‘worst’ material. So an item with both plastic and paper, tag as plastic. "),e("br"),e("br"),t._v("Some examples: "),e("br"),t._v("red bull can → 2 tags: ‘the object’ (look for the best ‘can’ that you can find) + brand "),e("br"),t._v("Soda can with a brand that we don’t have yet → 1 predefined tag (can) + 1 customtag:somebrandname "),e("br"),t._v("If you have found an energy-can, only give 1 tag for the item: so don’t tag it as ‘can’ and ‘energycan’, but just as an energycan "),e("br"),e("br"),t._v("Multiple litter items in a photo can be tagged with appropriate counts applied. A photo can contain a mixture of beer bottles, beer cans, plastic cups, or any number of recognized category items. Multiple recognized brands and their counts can also be applied. ")])])])])}],s=a(i,n,r,!1,null,"a00c8460");const c=s.exports;export{c as default}; diff --git a/public/build/assets/FunctionalCalendar-CGa8lc5b.js b/public/build/assets/FunctionalCalendar-DnoJkPHM.js similarity index 99% rename from public/build/assets/FunctionalCalendar-CGa8lc5b.js rename to public/build/assets/FunctionalCalendar-DnoJkPHM.js index ffafcf5c0..25d8f4a96 100644 --- a/public/build/assets/FunctionalCalendar-CGa8lc5b.js +++ b/public/build/assets/FunctionalCalendar-DnoJkPHM.js @@ -1,4 +1,4 @@ -import{n as p}from"./app-DpqRw90N.js";Date.prototype.getWeekNumber=function(t){if(!t){let a=(this.getDay()+6)%7;this.setDate(this.getDate()-a+3)}let e=new Date(this.getFullYear(),0,4);return Math.ceil(((this-e)/864e5+e.getDay()+1)/7)};class C{constructor(e,a,i,s){this.sundayStart=e,this.leftAndRightDays=a,this.dateFormat=i,this.dayNames=s}formatDate(e){let a=e.getDate(),i=e.getMonth()+1,s=e.getFullYear(),n=this.dateFormat.replace("dd",a.toString());return n=n.replace("mm",i.toString()),n=n.replace("yyyy",s.toString()),n.split(" ")[0]}getDateFromFormat(e){let a=this.dateFormat.split(" ")[0];if(e=e.split(" ")[0],a.indexOf("/")!==-1)a=a.split("/"),e=e.split("/");else if(a.indexOf("-")!==-1)a=a.split("-"),e=e.split("-");else if(a.indexOf(".")!==-1)a=a.split("."),e=e.split(".");else throw new Error("Your date format not valid. Please read documentation.!");let i=a.indexOf("yyyy"),s=a.indexOf("mm"),n=a.indexOf("dd");return new Date(e[i],e[s]-1,e[n])}checkValidDate(e){return e=this.getDateFromFormat(e),e!="Invalid Date"}getWeeksInMonth(e,a){let i=[],s=new Date(a,e,1),n=new Date(a,e+1,0),r=n.getDate(),l=1,o=this.sundayStart?7-s.getDay():s.getDay()===0?1:7-s.getDay()+1;for(;l<=r;)i.push({year:a,start:l,end:o,number:new Date(a,e,l).getWeekNumber(this.sundayStart),days:[]}),l=o+1,o=o+7,o>r&&(o=r);return{weeks:i,month:n.getMonth(),year:n.getFullYear()}}getLeftMonthDays(e,a){let s=this.getWeeksInMonth(e,a).weeks[0],n=s.end-s.start+1,r=[],l=0,o=0;if(n!==7){let d=this.getWeeksInMonth(e-1,a),f=d.weeks[d.weeks.length-1];for(let h=f.start;h<=f.end;h++)r.push(h);o=d.month,l=d.year}return{days:r.reverse(),month:o,year:l}}getRightMonthDays(e,a){let i=this.getWeeksInMonth(e,a),s=i.weeks[i.weeks.length-1],n=s.end-s.start+1,r=[],l=0,o=0;if(n!==7){let d=this.getWeeksInMonth(e+1,a),f=d.weeks[0];for(let h=f.start;h<=f.end;h++)r.push(h);o=d.month,l=d.year}return{days:r,month:o,year:l}}getFinalizedWeeks(e,a){let i=this.getWeeksInMonth(e,a),s=this.getLeftMonthDays(e,a),n=this.getRightMonthDays(e,a);return i.weeks.forEach(r=>{for(let l=r.start;l<=r.end;l++)r.days.push({day:l,month:i.month,year:i.year,hide:!1,hideLeftAndRightDays:!1})}),s.days.length&&s.days.forEach(r=>{let l=!1;this.leftAndRightDays||(r="",l=!0),i.weeks[0].days.unshift({day:r,month:s.month,year:s.year,hide:!0,hideLeftAndRightDays:l})}),n.days.length&&n.days.forEach(r=>{let l=!1;this.leftAndRightDays||(r="",l=!0),i.weeks[i.weeks.length-1].days.push({day:r,month:n.month,year:n.year,hide:!0,hideLeftAndRightDays:l})}),i.weeks.forEach(r=>{delete r.year}),i.weeks}mask(e){let a=this.getDateFromFormat(e).getDate().toString().length,i=this.getDateFromFormat(e).getMonth(),s="00";a===1&&(s="0");let n="00";i+1<=9&&(n="0");let r=this.dateFormat.replace("dd",s).replace("mm",n).replace("yyyy","0000"),l=/[0\*]/,o=/[0-9]/,d="";for(let f=0,h=0;h=e.length||r[h]==="0"&&e[f].match(o)==null);){for(;r[h].match(l)==null&&e[f]!==r[h];)d+=r[h++];d+=e[f++],h++}return d}}const m=()=>{},y={props:{activeHours:{type:Array,required:!1},activeMinutes:{type:Array,required:!1},borderColor:{type:String,default:""},displayTimeInput:{type:Boolean,default:!1},configs:{type:Object,default:()=>{}},sundayStart:{type:Boolean,default:m},placeholder:{type:[String,Boolean],default:m},dateFormat:{type:String,validator(t){let e=t.split(" ")[1];return e?!!~["HH:MM","HH:mm","hh:MM","hh:mm"].indexOf(e):!0}},canClearRange:{type:Boolean,default:!1},isMultiple:{type:Boolean,default:m},isSeparately:{type:Boolean,default:m},isDatePicker:{type:Boolean,default:m},isMultipleDatePicker:{type:Boolean,default:m},isMultipleDateRange:{type:Boolean,default:m},isDateRange:{type:Boolean,default:m},withTimePicker:{type:Boolean,default:m},calendarsCount:{type:Number},isModal:{type:Boolean,default:m},isTypeable:{type:Boolean,default:m},changeMonthFunction:{type:Boolean,default:m},changeYearFunction:{type:Boolean,default:m},changeYearStep:{type:Number,default:()=>3},changeMonthStep:{type:Number,default:()=>1},newCurrentDate:{type:Date},markedDates:{type:Array,default:()=>[]},markedDateRange:{type:[Object,Array]},disabledDayNames:{type:Array},disabledDates:{type:Array,default:()=>[]},enabledDates:{type:Array,default:()=>[]},limits:{type:[Object,Boolean],default:m},minSelDays:{type:[Number,Boolean],default:m},maxSelDays:{type:[Number,Boolean],default:m},dayNames:{type:Array},monthNames:{type:Array},shortMonthNames:{type:Array},showWeekNumbers:{type:Boolean,default:m},value:{type:Object},transition:{type:Boolean,default:m},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"},alwaysUseDefaultClasses:{type:Boolean,default:!1}},data(){return{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,changeMonthStep:1,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"}}}},k={name:"TimePicker",data(){return{startDateActive:!0,currentSelectedDate:""}},props:{height:{type:Number,required:!0},hours:{type:Array,default:function(){return[...Array(24).keys()]},required:!1},minutes:{type:Array,default:function(){return[...Array(60).keys()]},required:!1}},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)a.date===this.getCurrentDate);e.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){let e=this.$parent.calendar.selectedDates.find(a=>a.date===this.getCurrentDate);e.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(e=>e.date===this.getCurrentDate);t.dateTime=t.date+" "+t.hour+":"+t.minute}},checkStartDate(){return this.startDateActive},checkHourActiveClass(t){let e;return this.$parent.fConfigs.isDateRange?this.checkStartDate()?e=this.$parent.calendar.dateRange.start.split(" ")[1].split(":")[0]:e=this.$parent.calendar.dateRange.end.split(" ")[1].split(":")[0]:this.$parent.fConfigs.isMultipleDatePicker?e=this.$parent.calendar.selectedDates.find(a=>a.date===this.getCurrentDate).hour:e=this.$parent.calendar.selectedHour,this.hours.length&&!this.hours.some(a=>a==e)&&(e=this.hours[0]),e==this.formatTime(t)},checkMinuteActiveClass(t){let e;return this.$parent.fConfigs.isDateRange?this.checkStartDate()?e=this.$parent.calendar.dateRange.start.split(":")[1]:e=this.$parent.calendar.dateRange.end.split(":")[1]:this.$parent.fConfigs.isMultipleDatePicker?e=this.$parent.calendar.selectedDates.find(a=>a.date===this.getCurrentDate).minute:e=this.$parent.calendar.selectedMinute,this.minutes.length&&!this.minutes.some(a=>a==e)&&(e=this.minutes[0]),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"),a=this.$refs.minuteList.querySelector(".vfc-time-picker__item--selected");this.$refs.hourList.scrollTop=e?e.offsetTop-t.clientHeight/2:0,this.$refs.minuteList.scrollTop=a?a.offsetTop-t.clientHeight/2:0})}}};var v=function(){var e=this,a=e._self._c;return a("div",{staticClass:"vfc-time-picker-container"},[a("div",{staticClass:"vfc-close",on:{click:function(i){return e.close()}}}),a("div",{staticClass:"vfc-modal-time-mechanic"},[a("div",{staticClass:"vfc-modal-time-line",attrs:{id:"time-line"}},[a("span",[e.$parent.fConfigs.isDateRange?[a("span",{class:{"vfc-active":e.startDateActive},on:{click:function(i){e.startDateActive=!0}}},[e._v(e._s(e.$parent.calendar.dateRange.start))]),e.$parent.calendar.dateRange.end?[a("span",[e._v("-")]),a("span",{class:{"vfc-active":!e.startDateActive},on:{click:function(i){e.startDateActive=!1}}},[e._v(e._s(e.$parent.calendar.dateRange.end))])]:e._e()]:e.$parent.fConfigs.isMultipleDatePicker?[e._v(e._s(e.getCurrentDateTime))]:[e._v(e._s(e.$parent.calendar.selectedDateTime))]],2)]),e._m(0),a("div",{staticClass:"vfc-time-picker"},[a("div",{ref:"hourList",staticClass:"vfc-time-picker__list vfc-time-picker__list--hours"},e._l(e.hours,function(i){return a("div",{key:i,staticClass:"vfc-time-picker__item",class:{"vfc-time-picker__item--selected":e.checkHourActiveClass(i)},on:{click:function(s){e.changeHour(e.formatTime(i))}}},[e._v(" "+e._s(e.formatTime(i))+" ")])}),0),a("div",{ref:"minuteList",staticClass:"vfc-time-picker__list vfc-time-picker__list--minutes"},e._l(e.minutes,function(i){return a("div",{key:i,staticClass:"vfc-time-picker__item",class:{"vfc-time-picker__item--selected":e.checkMinuteActiveClass(i)},on:{click:function(s){e.changeMinute(e.formatTime(i))}}},[e._v(" "+e._s(e.formatTime(i))+" ")])}),0)])])])},w=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"titles"},[e("div",[t._v("Hour")]),e("div",[t._v("Minute")])])}],R=p(k,v,w,!1,null,"10658a87");const M=R.exports,_={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}}};var F=function(){var e=this,a=e._self._c;return a("div",[e.oneArrows||e.manyArrows?a("div",{staticClass:"vfc-separately-navigation-buttons",class:"vfc-"+e.fConfigs.arrowsPosition},[a("div",{class:{"vfc-cursor-pointer":e.allowPreDate},on:{click:function(i){return e.$parent.PreMonth(e.oneArrows?0:e.calendarKey)}}},[e._t("navigationArrowLeft",function(){return[a("div",{staticClass:"vfc-arrow-left",class:{"vfc-disabled":!e.allowPreDate}})]})],2),a("div",{class:{"vfc-cursor-pointer":e.allowNextDate},on:{click:function(i){return e.$parent.NextMonth(e.oneArrows?0:e.calendarKey)}}},[e._t("navigationArrowRight",function(){return[a("div",{staticClass:"vfc-arrow-right",class:{"vfc-disabled":!e.allowNextDate}})]})],2)]):e._e()])},T=[],S=p(_,F,T,!1,null,null);const $=S.exports,P={name:"WeekNumbers",props:{number:{tyoe:Number,required:!0},borderColor:{type:String,default:""}}};var b=function(){var e=this,a=e._self._c;return a("div",{staticClass:"vfc-day vfc-week-number",style:{borderRightColor:e.borderColor}},[a("span",{staticClass:"vfc-span-day"},[e._v(e._s(e.number))])])},x=[],A=p(P,b,x,!1,null,"334cd43d");const N=A.exports,Y={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},alwaysUseDefaultClasses:{type:Boolean,default:!1}},data(){return{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 a=~this.calendar.multipleDateRange.map(s=>s.start).indexOf(this.day.date),i=~this.calendar.multipleDateRange.map(s=>s.end).indexOf(this.day.date);return a===i&&i?t:a&&~a>-1&&this.calendar.multipleDateRange[~a].end||!e.start&&!e.end?a||t:(this.day.isDateRangeStart||this.day.isMouseToLeft)&&!this.day.hideLeftAndRightDays||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 a=~this.calendar.multipleDateRange.map(s=>s.start).indexOf(this.day.date),i=~this.calendar.multipleDateRange.map(s=>s.end).indexOf(this.day.date);return a===i&&i?t:i?!0:!e.start&&!e.end?e.start===e.end?!1:i:(this.day.isDateRangeEnd||this.day.isMouseToRight)&&!this.day.hideLeftAndRightDays||t},numberShow(){return this.fConfigs.isMultipleDateRange?!!(~this.calendar.multipleDateRange.map(e=>e.end).indexOf(this.day.date)||~this.calendar.multipleDateRange.map(e=>e.start).indexOf(this.day.date)):!1},timesShow(){let t=this.calendar.multipleDateRange?~this.calendar.multipleDateRange.map(e=>e.end).indexOf(this.day.date):-1;return this.fConfigs.isMultipleDateRange&&t},getDaysNumber(){const t=this.calendar.multipleDateRange.map(s=>s.end).indexOf(this.day.date),e=this.calendar.multipleDateRange.map(s=>s.start).indexOf(this.day.date),a=this.calendar.multipleDateRange.map(s=>s.end).lastIndexOf(this.day.date),i=this.calendar.multipleDateRange.map(s=>s.start).lastIndexOf(this.day.date);return this.toolTip=t!==a||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(r=>r.end),a=this.calendar.multipleDateRange.map(r=>r.start);let i=0,s=0,n=e.indexOf(this.day.date,i);for(;~e.indexOf(this.day.date,i);)n=e.indexOf(this.day.date,i),t.push(n),i=n+1;for(n=a.indexOf(this.day.date,s);~a.indexOf(this.day.date,s);)n=a.indexOf(this.day.date,s),t.push(n),s=n+1;return t.sort((r,l)=>r-l)},inRangeInit(){//!!!!\\ +import{n as p}from"./app-DGjOB0Vc.js";Date.prototype.getWeekNumber=function(t){if(!t){let a=(this.getDay()+6)%7;this.setDate(this.getDate()-a+3)}let e=new Date(this.getFullYear(),0,4);return Math.ceil(((this-e)/864e5+e.getDay()+1)/7)};class C{constructor(e,a,i,s){this.sundayStart=e,this.leftAndRightDays=a,this.dateFormat=i,this.dayNames=s}formatDate(e){let a=e.getDate(),i=e.getMonth()+1,s=e.getFullYear(),n=this.dateFormat.replace("dd",a.toString());return n=n.replace("mm",i.toString()),n=n.replace("yyyy",s.toString()),n.split(" ")[0]}getDateFromFormat(e){let a=this.dateFormat.split(" ")[0];if(e=e.split(" ")[0],a.indexOf("/")!==-1)a=a.split("/"),e=e.split("/");else if(a.indexOf("-")!==-1)a=a.split("-"),e=e.split("-");else if(a.indexOf(".")!==-1)a=a.split("."),e=e.split(".");else throw new Error("Your date format not valid. Please read documentation.!");let i=a.indexOf("yyyy"),s=a.indexOf("mm"),n=a.indexOf("dd");return new Date(e[i],e[s]-1,e[n])}checkValidDate(e){return e=this.getDateFromFormat(e),e!="Invalid Date"}getWeeksInMonth(e,a){let i=[],s=new Date(a,e,1),n=new Date(a,e+1,0),r=n.getDate(),l=1,o=this.sundayStart?7-s.getDay():s.getDay()===0?1:7-s.getDay()+1;for(;l<=r;)i.push({year:a,start:l,end:o,number:new Date(a,e,l).getWeekNumber(this.sundayStart),days:[]}),l=o+1,o=o+7,o>r&&(o=r);return{weeks:i,month:n.getMonth(),year:n.getFullYear()}}getLeftMonthDays(e,a){let s=this.getWeeksInMonth(e,a).weeks[0],n=s.end-s.start+1,r=[],l=0,o=0;if(n!==7){let d=this.getWeeksInMonth(e-1,a),f=d.weeks[d.weeks.length-1];for(let h=f.start;h<=f.end;h++)r.push(h);o=d.month,l=d.year}return{days:r.reverse(),month:o,year:l}}getRightMonthDays(e,a){let i=this.getWeeksInMonth(e,a),s=i.weeks[i.weeks.length-1],n=s.end-s.start+1,r=[],l=0,o=0;if(n!==7){let d=this.getWeeksInMonth(e+1,a),f=d.weeks[0];for(let h=f.start;h<=f.end;h++)r.push(h);o=d.month,l=d.year}return{days:r,month:o,year:l}}getFinalizedWeeks(e,a){let i=this.getWeeksInMonth(e,a),s=this.getLeftMonthDays(e,a),n=this.getRightMonthDays(e,a);return i.weeks.forEach(r=>{for(let l=r.start;l<=r.end;l++)r.days.push({day:l,month:i.month,year:i.year,hide:!1,hideLeftAndRightDays:!1})}),s.days.length&&s.days.forEach(r=>{let l=!1;this.leftAndRightDays||(r="",l=!0),i.weeks[0].days.unshift({day:r,month:s.month,year:s.year,hide:!0,hideLeftAndRightDays:l})}),n.days.length&&n.days.forEach(r=>{let l=!1;this.leftAndRightDays||(r="",l=!0),i.weeks[i.weeks.length-1].days.push({day:r,month:n.month,year:n.year,hide:!0,hideLeftAndRightDays:l})}),i.weeks.forEach(r=>{delete r.year}),i.weeks}mask(e){let a=this.getDateFromFormat(e).getDate().toString().length,i=this.getDateFromFormat(e).getMonth(),s="00";a===1&&(s="0");let n="00";i+1<=9&&(n="0");let r=this.dateFormat.replace("dd",s).replace("mm",n).replace("yyyy","0000"),l=/[0\*]/,o=/[0-9]/,d="";for(let f=0,h=0;h=e.length||r[h]==="0"&&e[f].match(o)==null);){for(;r[h].match(l)==null&&e[f]!==r[h];)d+=r[h++];d+=e[f++],h++}return d}}const m=()=>{},y={props:{activeHours:{type:Array,required:!1},activeMinutes:{type:Array,required:!1},borderColor:{type:String,default:""},displayTimeInput:{type:Boolean,default:!1},configs:{type:Object,default:()=>{}},sundayStart:{type:Boolean,default:m},placeholder:{type:[String,Boolean],default:m},dateFormat:{type:String,validator(t){let e=t.split(" ")[1];return e?!!~["HH:MM","HH:mm","hh:MM","hh:mm"].indexOf(e):!0}},canClearRange:{type:Boolean,default:!1},isMultiple:{type:Boolean,default:m},isSeparately:{type:Boolean,default:m},isDatePicker:{type:Boolean,default:m},isMultipleDatePicker:{type:Boolean,default:m},isMultipleDateRange:{type:Boolean,default:m},isDateRange:{type:Boolean,default:m},withTimePicker:{type:Boolean,default:m},calendarsCount:{type:Number},isModal:{type:Boolean,default:m},isTypeable:{type:Boolean,default:m},changeMonthFunction:{type:Boolean,default:m},changeYearFunction:{type:Boolean,default:m},changeYearStep:{type:Number,default:()=>3},changeMonthStep:{type:Number,default:()=>1},newCurrentDate:{type:Date},markedDates:{type:Array,default:()=>[]},markedDateRange:{type:[Object,Array]},disabledDayNames:{type:Array},disabledDates:{type:Array,default:()=>[]},enabledDates:{type:Array,default:()=>[]},limits:{type:[Object,Boolean],default:m},minSelDays:{type:[Number,Boolean],default:m},maxSelDays:{type:[Number,Boolean],default:m},dayNames:{type:Array},monthNames:{type:Array},shortMonthNames:{type:Array},showWeekNumbers:{type:Boolean,default:m},value:{type:Object},transition:{type:Boolean,default:m},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"},alwaysUseDefaultClasses:{type:Boolean,default:!1}},data(){return{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,changeMonthStep:1,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"}}}},k={name:"TimePicker",data(){return{startDateActive:!0,currentSelectedDate:""}},props:{height:{type:Number,required:!0},hours:{type:Array,default:function(){return[...Array(24).keys()]},required:!1},minutes:{type:Array,default:function(){return[...Array(60).keys()]},required:!1}},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)a.date===this.getCurrentDate);e.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){let e=this.$parent.calendar.selectedDates.find(a=>a.date===this.getCurrentDate);e.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(e=>e.date===this.getCurrentDate);t.dateTime=t.date+" "+t.hour+":"+t.minute}},checkStartDate(){return this.startDateActive},checkHourActiveClass(t){let e;return this.$parent.fConfigs.isDateRange?this.checkStartDate()?e=this.$parent.calendar.dateRange.start.split(" ")[1].split(":")[0]:e=this.$parent.calendar.dateRange.end.split(" ")[1].split(":")[0]:this.$parent.fConfigs.isMultipleDatePicker?e=this.$parent.calendar.selectedDates.find(a=>a.date===this.getCurrentDate).hour:e=this.$parent.calendar.selectedHour,this.hours.length&&!this.hours.some(a=>a==e)&&(e=this.hours[0]),e==this.formatTime(t)},checkMinuteActiveClass(t){let e;return this.$parent.fConfigs.isDateRange?this.checkStartDate()?e=this.$parent.calendar.dateRange.start.split(":")[1]:e=this.$parent.calendar.dateRange.end.split(":")[1]:this.$parent.fConfigs.isMultipleDatePicker?e=this.$parent.calendar.selectedDates.find(a=>a.date===this.getCurrentDate).minute:e=this.$parent.calendar.selectedMinute,this.minutes.length&&!this.minutes.some(a=>a==e)&&(e=this.minutes[0]),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"),a=this.$refs.minuteList.querySelector(".vfc-time-picker__item--selected");this.$refs.hourList.scrollTop=e?e.offsetTop-t.clientHeight/2:0,this.$refs.minuteList.scrollTop=a?a.offsetTop-t.clientHeight/2:0})}}};var v=function(){var e=this,a=e._self._c;return a("div",{staticClass:"vfc-time-picker-container"},[a("div",{staticClass:"vfc-close",on:{click:function(i){return e.close()}}}),a("div",{staticClass:"vfc-modal-time-mechanic"},[a("div",{staticClass:"vfc-modal-time-line",attrs:{id:"time-line"}},[a("span",[e.$parent.fConfigs.isDateRange?[a("span",{class:{"vfc-active":e.startDateActive},on:{click:function(i){e.startDateActive=!0}}},[e._v(e._s(e.$parent.calendar.dateRange.start))]),e.$parent.calendar.dateRange.end?[a("span",[e._v("-")]),a("span",{class:{"vfc-active":!e.startDateActive},on:{click:function(i){e.startDateActive=!1}}},[e._v(e._s(e.$parent.calendar.dateRange.end))])]:e._e()]:e.$parent.fConfigs.isMultipleDatePicker?[e._v(e._s(e.getCurrentDateTime))]:[e._v(e._s(e.$parent.calendar.selectedDateTime))]],2)]),e._m(0),a("div",{staticClass:"vfc-time-picker"},[a("div",{ref:"hourList",staticClass:"vfc-time-picker__list vfc-time-picker__list--hours"},e._l(e.hours,function(i){return a("div",{key:i,staticClass:"vfc-time-picker__item",class:{"vfc-time-picker__item--selected":e.checkHourActiveClass(i)},on:{click:function(s){e.changeHour(e.formatTime(i))}}},[e._v(" "+e._s(e.formatTime(i))+" ")])}),0),a("div",{ref:"minuteList",staticClass:"vfc-time-picker__list vfc-time-picker__list--minutes"},e._l(e.minutes,function(i){return a("div",{key:i,staticClass:"vfc-time-picker__item",class:{"vfc-time-picker__item--selected":e.checkMinuteActiveClass(i)},on:{click:function(s){e.changeMinute(e.formatTime(i))}}},[e._v(" "+e._s(e.formatTime(i))+" ")])}),0)])])])},w=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"titles"},[e("div",[t._v("Hour")]),e("div",[t._v("Minute")])])}],R=p(k,v,w,!1,null,"10658a87");const M=R.exports,_={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}}};var F=function(){var e=this,a=e._self._c;return a("div",[e.oneArrows||e.manyArrows?a("div",{staticClass:"vfc-separately-navigation-buttons",class:"vfc-"+e.fConfigs.arrowsPosition},[a("div",{class:{"vfc-cursor-pointer":e.allowPreDate},on:{click:function(i){return e.$parent.PreMonth(e.oneArrows?0:e.calendarKey)}}},[e._t("navigationArrowLeft",function(){return[a("div",{staticClass:"vfc-arrow-left",class:{"vfc-disabled":!e.allowPreDate}})]})],2),a("div",{class:{"vfc-cursor-pointer":e.allowNextDate},on:{click:function(i){return e.$parent.NextMonth(e.oneArrows?0:e.calendarKey)}}},[e._t("navigationArrowRight",function(){return[a("div",{staticClass:"vfc-arrow-right",class:{"vfc-disabled":!e.allowNextDate}})]})],2)]):e._e()])},T=[],S=p(_,F,T,!1,null,null);const $=S.exports,P={name:"WeekNumbers",props:{number:{tyoe:Number,required:!0},borderColor:{type:String,default:""}}};var b=function(){var e=this,a=e._self._c;return a("div",{staticClass:"vfc-day vfc-week-number",style:{borderRightColor:e.borderColor}},[a("span",{staticClass:"vfc-span-day"},[e._v(e._s(e.number))])])},x=[],A=p(P,b,x,!1,null,"334cd43d");const N=A.exports,Y={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},alwaysUseDefaultClasses:{type:Boolean,default:!1}},data(){return{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 a=~this.calendar.multipleDateRange.map(s=>s.start).indexOf(this.day.date),i=~this.calendar.multipleDateRange.map(s=>s.end).indexOf(this.day.date);return a===i&&i?t:a&&~a>-1&&this.calendar.multipleDateRange[~a].end||!e.start&&!e.end?a||t:(this.day.isDateRangeStart||this.day.isMouseToLeft)&&!this.day.hideLeftAndRightDays||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 a=~this.calendar.multipleDateRange.map(s=>s.start).indexOf(this.day.date),i=~this.calendar.multipleDateRange.map(s=>s.end).indexOf(this.day.date);return a===i&&i?t:i?!0:!e.start&&!e.end?e.start===e.end?!1:i:(this.day.isDateRangeEnd||this.day.isMouseToRight)&&!this.day.hideLeftAndRightDays||t},numberShow(){return this.fConfigs.isMultipleDateRange?!!(~this.calendar.multipleDateRange.map(e=>e.end).indexOf(this.day.date)||~this.calendar.multipleDateRange.map(e=>e.start).indexOf(this.day.date)):!1},timesShow(){let t=this.calendar.multipleDateRange?~this.calendar.multipleDateRange.map(e=>e.end).indexOf(this.day.date):-1;return this.fConfigs.isMultipleDateRange&&t},getDaysNumber(){const t=this.calendar.multipleDateRange.map(s=>s.end).indexOf(this.day.date),e=this.calendar.multipleDateRange.map(s=>s.start).indexOf(this.day.date),a=this.calendar.multipleDateRange.map(s=>s.end).lastIndexOf(this.day.date),i=this.calendar.multipleDateRange.map(s=>s.start).lastIndexOf(this.day.date);return this.toolTip=t!==a||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(r=>r.end),a=this.calendar.multipleDateRange.map(r=>r.start);let i=0,s=0,n=e.indexOf(this.day.date,i);for(;~e.indexOf(this.day.date,i);)n=e.indexOf(this.day.date,i),t.push(n),i=n+1;for(n=a.indexOf(this.day.date,s);~a.indexOf(this.day.date,s);)n=a.indexOf(this.day.date,s),t.push(n),s=n+1;return t.sort((r,l)=>r-l)},inRangeInit(){//!!!!\\ const t=this.helpCalendar;String.prototype.inRange=function(e){let a=!1;return e.forEach(i=>{const s=+t.getDateFromFormat(i.start.split(" ")[0]),n=+t.getDateFromFormat(i.end.split(" ")[0]),r=+t.getDateFromFormat(this.split(" ")[0]);s!==n&&s&&n&&(a=a||se.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.isDateIncludedInDatesCollection(t,e)||!this.isEnabledDate(t)},isEnabledDate(t){const e=this.fConfigs.enabledDates;return!e.length||this.isDateIncludedInDatesCollection(t,e)},isDateIncludedInDatesCollection(t,e){let a=new Date;a.setHours(0,0,0,0);let i=this.helpCalendar.getDateFromFormat(t);return e.includes(t)||e.includes("beforeToday")&&i.getTime()a.getTime()},getClassNames(t){let e=[];(!this.hasSlot("default")||this.alwaysUseDefaultClasses)&&e.push("vfc-span-day");let a=this.helpCalendar.getDateFromFormat(t.date).getDay()-1;a===-1&&(a=6);let i=this.fConfigs.dayNames[a];this.fConfigs.disabledDayNames.includes(i)&&(t.hide=!0,e.push("vfc-cursor-not-allowed"));let s=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 r=this.helpCalendar.getDateFromFormat(this.fConfigs.limits.min).getTime(),l=this.helpCalendar.getDateFromFormat(this.fConfigs.limits.max).getTime();(s.getTime()l)&&(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(r=>{this.helpCalendar.getDateFromFormat(r.start)<=this.helpCalendar.getDateFromFormat(t.date)&&this.helpCalendar.getDateFromFormat(r.end)>=this.helpCalendar.getDateFromFormat(t.date)&&e.push("vfc-marked"),t.date===r.start?e.push("vfc-start-marked"):t.date===r.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(r=>r.start.split(" ")[0]).indexOf(t.date)||~this.calendar.multipleDateRange.map(r=>r.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(r=>r.start.split(" ")[0]).indexOf(t.date)&&e.push("vfc-start-marked"),~this.calendar.multipleDateRange.map(r=>r.end.split(" ")[0]).indexOf(t.date)&&e.push("vfc-end-marked")),typeof this.fConfigs.markedDates=="object"){let r=this.fConfigs.markedDates.find(l=>l.date===t.date);typeof r<"u"&&e.push(r.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(r=>r.date===t.date))&&e.push("vfc-borderd"),e}}};var O=function(){var e=this,a=e._self._c;return a("div",{staticClass:"vfc-day"},[e.startActive?a("div",{staticClass:"vfc-base-start"}):e._e(),e.endActive?a("div",{staticClass:"vfc-base-end"}):e._e(),e.day.hideLeftAndRightDays?e._e():a("span",{class:e.getClassNames(e.day),on:{click:function(i){return i.target!==i.currentTarget?null:e.$parent.$parent.clickDay(e.day,e.isDisabledDate)},mouseover:e.dayMouseOver}},[e._t("default",function(){return[e._v(e._s(e.day.day))]},{week:e.week,day:e.day}),e.timesShow?a("span",{staticClass:"times",on:{click:e.clearRange}},[e._v("×")]):e._e(),e.numberShow?a("span",{staticClass:"number",on:{mouseover:function(i){e.toolTip&&(e.onNumber=!0)},mouseleave:function(i){e.onNumber=!1}}},[e._v(e._s(e.getDaysNumber)+" "),a("div",{directives:[{name:"show",rawName:"v-show",value:e.toolTip&&e.onNumber,expression:"toolTip && onNumber"}],staticClass:"toolTip"},[e._v(" "+e._s(e.toolTipTxt().join(" "))+" ")])]):e._e()],2)])},E=[],L=p(Y,O,E,!1,null,"2af096af");const H=L.exports,I={name:"MonthYearPicker",props:{calendarKey:{type:Number,default:0},changeYearStep:{type:Number,default:3}},data(){return{delta:0}},watch:{delta(t){t<-new Date().getFullYear()&&(this.delta=0)}},methods:{changePicker(t){if(this.$parent.showMonthPicker){t==="right"?this.$parent.NextYear(this.calendarKey):this.$parent.PreYear(this.calendarKey);return}t==="right"?this.delta+=this.changeYearStep:this.delta-=this.changeYearStep}}};var B=function(){var e=this,a=e._self._c;return a("div",{staticClass:"vfc-months-container"},[a("div",{staticClass:"vfc-content vfc-content-MY-picker"},[a("div",{staticClass:"vfc-navigation-buttons"},[a("div",{on:{click:function(i){return e.changePicker("left")}}},[a("div",{staticClass:"vfc-arrow-left"})]),a("h2",{class:["vfc-top-date",e.delta!==0&&"vfc-top-date-has-delta"],on:{click:function(i){e.delta=0}}},[a("span",{staticClass:"vfc-popover-caret"}),e._v(" "+e._s(e.$parent.listCalendars[e.calendarKey].date.getFullYear())+" ")]),a("div",{on:{click:function(i){return e.changePicker("right")}}},[a("div",{staticClass:"vfc-arrow-right"})])]),a("div",{staticClass:"vfc-months"},[e.$parent.showMonthPicker?e._l(e.$parent.fConfigs.shortMonthNames,function(i,s){return a("div",{key:s,staticClass:"vfc-item",class:{"vfc-selected":e.$parent.listCalendars[e.calendarKey].date.getMonth()===s},on:{click:function(n){return e.$parent.pickMonth(s,e.calendarKey)}}},[e._v(" "+e._s(i)+" ")])}):e.$parent.showYearPicker?e._l(e.$parent.getYearList(e.$parent.listCalendars[e.calendarKey].date,e.delta),function(i,s){return a("div",{key:s,staticClass:"vfc-item",class:{"vfc-selected":e.$parent.listCalendars[e.calendarKey].date.getFullYear()===i.year},on:{click:function(n){return e.$parent.pickYear(i.year,e.calendarKey)}}},[e._v(" "+e._s(i.year)+" ")])}):e._e()],2)])])},W=[],q=p(I,B,W,!1,null,"5a5ef54d");const j=q.exports,U={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)}}}};var J=function(){var e=this,a=e._self._c;return a("div",[e.fConfigs.isModal&&e.fConfigs.isDateRange?a("div",{staticClass:"vfc-multiple-input",class:{"vfc-dark":e.fConfigs.isDark}},[e._t("dateRangeInputs",function(){return[a("input",{directives:[{name:"model",rawName:"v-model",value:e.dateRangeSelectedStartDate,expression:"dateRangeSelectedStartDate"}],attrs:{type:"text",title:"Start Date",placeholder:e.fConfigs.placeholder.split(" ")[0],readonly:!e.fConfigs.isTypeable,maxlength:e.fConfigs.dateFormat.length},domProps:{value:e.dateRangeSelectedStartDate},on:{input:function(i){i.target.composing||(e.dateRangeSelectedStartDate=i.target.value)}}}),a("input",{directives:[{name:"model",rawName:"v-model",value:e.dateRangeSelectedEndDate,expression:"dateRangeSelectedEndDate"}],attrs:{type:"text",title:"End Date",placeholder:e.fConfigs.placeholder.split(" ")[0],readonly:!e.fConfigs.isTypeable,maxlength:e.fConfigs.dateFormat.length},domProps:{value:e.dateRangeSelectedEndDate},on:{input:function(i){i.target.composing||(e.dateRangeSelectedEndDate=i.target.value)}}})]},{startDate:e.dateRangeSelectedStartDate,endDate:e.dateRangeSelectedEndDate,isTypeable:e.fConfigs.isTypeable})],2):e.fConfigs.isModal&&e.fConfigs.isDatePicker?a("div",{class:{"vfc-dark":e.fConfigs.isDark}},[e._t("datePickerInput",function(){return[a("input",{directives:[{name:"model",rawName:"v-model",value:e.singleSelectedDate,expression:"singleSelectedDate"}],staticClass:"vfc-single-input",attrs:{type:"text",title:"Date",placeholder:e.fConfigs.placeholder,readonly:!e.fConfigs.isTypeable,maxlength:e.fConfigs.dateFormat.length},domProps:{value:e.singleSelectedDate},on:{input:function(i){i.target.composing||(e.singleSelectedDate=i.target.value)}}})]},{selectedDate:e.singleSelectedDate,isTypeable:e.fConfigs.isTypeable})],2):e.fConfigs.isModal&&e.fConfigs.isMultipleDatePicker?a("div",{staticClass:"vfc-tags-input-root",class:{"vfc-dark":e.fConfigs.isDark}},[a("div",{staticClass:"vfc-tags-input-wrapper-default vfc-tags-input"},[e._l(e.calendar.selectedDates,function(i,s){return a("span",{key:s,staticClass:"vfc-tags-input-badge vfc-tags-input-badge-pill vfc-tags-input-badge-selected-default"},[a("span",{domProps:{innerHTML:e._s(i.date)}}),a("a",{staticClass:"vfc-tags-input-remove",attrs:{href:"#"},on:{click:function(n){return n.preventDefault(),e.removeFromSelectedDates(s)}}})])}),a("input",{directives:[{name:"model",rawName:"v-model",value:e.calendar.selectedDatesItem,expression:"calendar.selectedDatesItem"}],attrs:{type:"text",placeholder:"Add a date"},domProps:{value:e.calendar.selectedDatesItem},on:{keydown:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:(i.preventDefault(),e.$parent.addToSelectedDates.apply(null,arguments))},input:function(i){i.target.composing||e.$set(e.calendar,"selectedDatesItem",i.target.value)}}})],2)]):e._e()])},z=[],G=p(U,J,z,!1,null,"d846c6d7");const Q=G.exports,X={name:"Footer"};var Z=function(){var e=this,a=e._self._c;return a("div",{staticClass:"footerCon"},[e._t("cleaner"),e._t("footer")],2)},V=[],K=p(X,Z,V,!1,null,"40e6eac8");const ee=K.exports,te=(t,e)=>!!t&&!!e&&(t===e||t.contains(e)),D=()=>new Date().getUTCMilliseconds(),ae={name:"FunctionalCalendar",components:{MonthYearPicker:j,TimePicker:M,PickerInputs:Q,Arrows:$,Footer:ee,Day:H,WeekNumbers:N},mixins:[y],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 C(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 a=this.fConfigs.dateFormat;this.dateFormat&&(a=this.dateFormat),e.indexOf(a.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(){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(typeof t=="object"&&(t.hasOwnProperty("dateRange")||t.hasOwnProperty("selectedDate")))this.calendar=t;else if(typeof t=="object"&&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||t==0},setCalendarData(){let t=this.calendar.currentDate;t=new Date(t.getFullYear(),t.getMonth()-1),this.listCalendars=[];for(let e=0;e{typeof this.fConfigs[e]<"u"&&this.$set(this.fConfigs,e,t[e])})),typeof this.configs<"u"?Object.keys(this.fConfigs).forEach(e=>{typeof this.configs[e]<"u"&&this.$set(this.fConfigs,e,this.configs[e])}):Object.keys(this.$props).forEach(e=>{typeof this.fConfigs[e]<"u"&&typeof this.$props[e]<"u"&&this.$set(this.fConfigs,e,this.$props[e])}),this.fConfigs.isModal&&(this.showCalendar=!1),this.fConfigs.placeholder||(this.fConfigs.placeholder=this.fConfigs.dateFormat),typeof this.newCurrentDate<"u"&&(this.calendar.currentDate=this.newCurrentDate),this.fConfigs.sundayStart){let e=[...this.fConfigs.dayNames],a=e[e.length-1];e.splice(e.length-1,1),e.unshift(a),this.fConfigs.dayNames=e}},listRendering(){this.listCalendars.forEach(t=>{t.weeks.forEach(e=>{let a=[];e.days.forEach(i=>{let s=new Date(i.year,i.month,i.day),n=new Date,r=!1;s.setHours(0,0,0,0),n.setHours(0,0,0,0),s.getTime()===n.getTime()&&(r=!0);let l;typeof this.fConfigs.markedDates[0]=="object"?l=this.fConfigs.markedDates.find(d=>d.date===this.helpCalendar.formatDate(s)):l=this.fConfigs.markedDates.find(d=>d===this.helpCalendar.formatDate(s)),this.startDMY===this.helpCalendar.formatDate(s)&&(l=!0);let o=!1;typeof l<"u"&&(o=!0),a.push({day:i.day,date:this.helpCalendar.formatDate(s),hide:i.hide,isMouseToLeft:!1,isMouseToRight:!1,isHovered:!1,isDateRangeStart:this.checkDateRangeStart(this.helpCalendar.formatDate(s)),isDateRangeEnd:this.checkDateRangeEnd(this.helpCalendar.formatDate(s)),hideLeftAndRightDays:i.hideLeftAndRightDays,isToday:r,isMarked:o})}),e.days=a})})},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 a=this.helpCalendar.getDateFromFormat(t.date).getDay()-1;a===-1&&(a=6);let i=this.fConfigs.dayNames[a];if(this.fConfigs.disabledDayNames.includes(i)||e(t.date))return!1;if(this.fConfigs.limits){let s=this.helpCalendar.getDateFromFormat(this.fConfigs.limits.min).getTime(),n=this.helpCalendar.getDateFromFormat(this.fConfigs.limits.max).getTime(),r=this.helpCalendar.getDateFromFormat(t.date).getTime();if(rn)return!1}if(this.fConfigs.isMultipleDateRange){let s=this.helpCalendar.getDateFromFormat(t.date.split(" ")[0]).getTime(),n=this.calendar.multipleDateRange.length,r=this.calendar.multipleDateRange[n-1],l="";if(r||(this.calendar.multipleDateRange.push({end:"",start:""}),n=this.calendar.multipleDateRange.length,r=this.calendar.multipleDateRange[n-1]),r.start&&(l=this.helpCalendar.getDateFromFormat(r.start)),r.start!==""&&r.end!==""?this.calendar.multipleDateRange.push({end:"",start:t.date}):r.start===""&&r.end===""?r.start=t.date:r.end===""&&s>l.getTime()?r.end=t.date:r.start!==""&&s<=l.getTime()&&(this.$nextTick(()=>{this.calendar.withTimePicker&&(this.$refs.timePicker.startDateActive=!0)}),r.end=r.start,r.start=t.date),r.start!==""&&r.end!==""){let o=864e5,d=this.helpCalendar.getDateFromFormat(r.start),f=this.helpCalendar.getDateFromFormat(r.end),h=Math.round(Math.abs((d.getTime()-f.getTime())/o)),u=this.helpCalendar.getDateFromFormat(t.date).getTime();this.$emit("selectedDaysCount",h),this.fConfigs.isModal&&this.fConfigs.isAutoCloseable&&(this.showCalendar=!1);let c=this.fConfigs.minSelDays;c&&u>=l.getTime()&&h=l.getTime()&&h>=g&&(l.setDate(l.getDate()+(g-1)),r.end=this.helpCalendar.formatDate(l)),g&&u=g&&(l.setDate(l.getDate()-(g-1)),r.start=this.helpCalendar.formatDate(l))}this.$emit("input",this.calendar)}else if(this.fConfigs.isDateRange){let s=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===""&&s>n.getTime()?this.calendar.dateRange.end=t.date:this.calendar.dateRange.start!==""&&s<=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 r=864e5,l=this.helpCalendar.getDateFromFormat(this.calendar.dateRange.start),o=this.helpCalendar.getDateFromFormat(this.calendar.dateRange.end),d=Math.round(Math.abs((l.getTime()-o.getTime())/r)),f=this.helpCalendar.getDateFromFormat(t.date).getTime();this.$emit("selectedDaysCount",d),this.fConfigs.isModal&&this.fConfigs.isAutoCloseable&&(this.showCalendar=!1);let h=this.fConfigs.minSelDays;h&&f>=n.getTime()&&d=n.getTime()&&d>=u&&(n.setDate(n.getDate()+(u-1)),this.calendar.dateRange.end=this.helpCalendar.formatDate(n)),u&&f=u&&(n.setDate(n.getDate()-(u-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(s=>s.date===t.date)){let s=this.calendar.selectedDates.findIndex(n=>n.date===t.date);this.calendar.selectedDates.splice(s,1)}else{let s=Object.assign({},this.defaultDateFormat);s.date=t.date,this.calendar.hasOwnProperty("selectedDates")||(this.calendar.selectedDates=[]),this.calendar.selectedDates.push(s)}this.$emit("input",this.calendar)}this.markChooseDays(),this.fConfigs.withTimePicker&&((this.fConfigs.isDateRange||this.fConfigs.isDatePicker)&&this.openTimePicker(),this.calendar.selectedDates.find(s=>s.date===t.date)&&this.fConfigs.isMultipleDatePicker&&this.openTimePicker()),this.$emit("choseDay",t)},markChooseDays(){let t=this.startDMY,e=this.endDMY;this.listCalendars.forEach(a=>{a.weeks.forEach(i=>{i.days.forEach(s=>{s.isMarked=!1,s.date=s.date.split(" ")[0],this.fConfigs.isDatePicker?this.calendar.selectedDate===s.date&&(s.isMarked=!0):this.fConfigs.isMultipleDatePicker?this.calendar.hasOwnProperty("selectedDates")&&this.calendar.selectedDates.find(n=>n.date===s.date)&&(s.isMarked=!0):(s.isMouseToLeft=!1,s.isMouseToRight=!1,t===s.date&&(s.isMouseToLeft=!!e,s.isMarked=!0),e===s.date&&(s.isMouseToRight=!!e,s.isMarked=!0),this.calendar.multipleDateRange&&(~this.calendar.multipleDateRange.map(n=>n.start.split(" ")[0]).indexOf(s.date)&&(s.isMouseToLeft=!!e,s.isMarked=!0),~this.calendar.multipleDateRange.map(n=>n.end.split(" ")[0]).indexOf(s.date)&&(s.isMouseToRight=!!e,s.isMarked=!0),this.calendar.multipleDateRange.forEach(n=>{n.start&&n.start===n.end&&(s.isMouseToLeft=!1,s.isMouseToRight=!1),n.start&&n.end&&this.helpCalendar.getDateFromFormat(s.date).getTime()>this.helpCalendar.getDateFromFormat(n.start)&&this.helpCalendar.getDateFromFormat(s.date)this.helpCalendar.getDateFromFormat(t)&&this.helpCalendar.getDateFromFormat(s.date)a)return!1}if((this.calendar.dateRange.start===""||this.calendar.dateRange.end==="")&&(this.calendar.dateRange.start!==""||this.calendar.dateRange.end!==""))for(let e=0;ed.getTime()||l===o&&od.getTime();let f=this.helpCalendar.getDateFromFormat(r.date).getDay()-1;f===-1&&(f=6);let h=this.fConfigs.dayNames[f];if(!this.fConfigs.disabledDayNames.includes(h)&&(l>d.getTime()&&lo)&&(this.listCalendars[e].weeks[i].days[n].isMarked=!0),!this.calendar.dateRange.end&&l===o&&(this.listCalendars[e].weeks[i].days[n].isHovered=!1),this.checkSelDates("min",this.calendar.dateRange.start,r.date,t)){this.listCalendars[e].weeks[i].days[n].isMarked=!0;let u,c;c=new Date(d.getTime()),u=new Date(d.getTime()),c.setDate(c.getDate()-this.fConfigs.minSelDays+1),u.setDate(u.getDate()+this.fConfigs.minSelDays-1),o>=c.getTime()&&this.helpCalendar.formatDate(c)===r.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):o<=u.getTime()&&this.helpCalendar.formatDate(u)===r.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,r.date,t)){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;let u,c;u=new Date(d.getTime()),c=new Date(d.getTime()),u.setDate(u.getDate()-this.fConfigs.maxSelDays+1),c.setDate(c.getDate()+this.fConfigs.maxSelDays-1),o<=u.getTime()&&this.helpCalendar.formatDate(u)===r.date&&(this.listCalendars[e].weeks[i].days[n].isHovered=!0,this.listCalendars[e].weeks[i].days[n].isMouseToLeft=!0),o>=c.getTime()&&this.helpCalendar.formatDate(c)===r.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 a=0;af.getTime()||o===d&&df.getTime();let h=this.helpCalendar.getDateFromFormat(l.date).getDay()-1;h===-1&&(h=6);let u=this.fConfigs.dayNames[h];if(!this.fConfigs.disabledDayNames.includes(u)&&(o>f.getTime()&&od)&&(this.listCalendars[a].weeks[s].days[r].isMarked=!0),!e.end&&o===d&&(this.listCalendars[a].weeks[s].days[r].isHovered=!1),this.checkSelDates("min",e.start,l.date,t)){this.listCalendars[a].weeks[s].days[r].isMarked=!0;let c,g;g=new Date(f.getTime()),c=new Date(f.getTime()),g.setDate(g.getDate()-this.fConfigs.minSelDays+1),c.setDate(c.getDate()+this.fConfigs.minSelDays-1),d>=g.getTime()&&this.helpCalendar.formatDate(g)===l.date?(this.listCalendars[a].weeks[s].days[r].isMarked=!1,this.listCalendars[a].weeks[s].days[r].isMouseToLeft=!0,this.listCalendars[a].weeks[s].days[r].isHovered=!0):d<=c.getTime()&&this.helpCalendar.formatDate(c)===l.date&&(this.listCalendars[a].weeks[s].days[r].isMarked=!1,this.listCalendars[a].weeks[s].days[r].isMouseToRight=!0,this.listCalendars[a].weeks[s].days[r].isHovered=!0)}if(this.checkSelDates("max",e.start,l.date,t)){this.listCalendars[a].weeks[s].days[r].isMarked=!1,this.listCalendars[a].weeks[s].days[r].isHovered=!1,this.listCalendars[a].weeks[s].days[r].isMouseToLeft=!1,this.listCalendars[a].weeks[s].days[r].isMouseToRight=!1;let c,g;c=new Date(f.getTime()),g=new Date(f.getTime()),c.setDate(c.getDate()-this.fConfigs.maxSelDays+1),g.setDate(g.getDate()+this.fConfigs.maxSelDays-1),d<=c.getTime()&&this.helpCalendar.formatDate(c)===l.date&&(this.listCalendars[a].weeks[s].days[r].isHovered=!0,this.listCalendars[a].weeks[s].days[r].isMouseToLeft=!0),d>=g.getTime()&&this.helpCalendar.formatDate(g)===l.date&&(this.listCalendars[a].weeks[s].days[r].isHovered=!0,this.listCalendars[a].weeks[s].days[r].isMouseToRight=!0)}}}}}}},PreMonth(t=null){if(!this.allowPreDate)return!1;this.transitionPrefix="right";let e=this.fConfigs.changeMonthStep;t=t!==null?t:0;let a=this.listCalendars[t];a.date=new Date(a.date.getFullYear(),a.date.getMonth()-e),a.key-=D(),this.updateCalendar(),this.fConfigs.isSeparately||(this.calendar.currentDate=a.date,this.initCalendar()),this.$emit("changedMonth",a.date)},NextMonth(t=null){if(!this.allowNextDate)return!1;this.transitionPrefix="left";let e=this.fConfigs.changeMonthStep;t=t!==null?t:0;let a=this.listCalendars[t];a.date=new Date(a.date.getFullYear(),a.date.getMonth()+e),a.key+=D(),this.updateCalendar(),this.fConfigs.isSeparately||(this.calendar.currentDate=a.date,this.initCalendar()),this.$emit("changedMonth",a.date)},PreYear(t=null){if(!this.allowPreDate)return!1;let e=this.showYearPicker?this.fConfigs.changeYearStep:1;t=t!==null?t:0;let a=this.listCalendars[t];a.date=new Date(a.date.getFullYear()-e,a.date.getMonth()),this.updateCalendar(),this.fConfigs.isSeparately||(this.calendar.currentDate=a.date,this.initCalendar()),this.$emit("changedYear",a.date)},NextYear(t=null){if(!this.allowNextDate)return!1;let e=this.showYearPicker?this.fConfigs.changeYearStep:1;t=t!==null?t:0;let a=this.listCalendars[t];a.date=new Date(a.date.getFullYear()+e,a.date.getMonth()),this.updateCalendar(),this.fConfigs.isSeparately||(this.calendar.currentDate=a.date,this.initCalendar()),this.$emit("changedYear",a.date)},ChooseDate(t){let e=this.helpCalendar.getDateFromFormat(t);t==="today"&&(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?!1:t,this.showYearPicker=!1)},openYearPicker(t){this.fConfigs.changeYearFunction&&(this.showYearPicker=t===this.showYearPicker?!1:t,this.showMonthPicker=!1)},openTimePicker(){this.showTimePicker=!0},pickMonth(t,e){if(this.showMonthPicker=!1,!this.isSeparately)this.listCalendars.forEach((i,s)=>{let n=i.date;i.date=new Date(n.getFullYear(),t+1+s,0),i.key+=D()});else{let i=this.listCalendars[e],s=i.date;i.date=new Date(s.getFullYear(),t+1,0),i.key+=D()}let a=this.listCalendars[e];this.$emit("changedMonth",a.date),this.updateCalendar()},pickYear(t,e){if(this.showYearPicker=!1,!this.isSeparately)this.listCalendars.forEach(a=>{let i=a.date;a.date=new Date(t,i.getMonth()+1,0),a.key+=D(),this.$emit("changedYear",a.date)});else{let a=this.listCalendars[e],i=a.date;a.date=new Date(t,i.getMonth()+1,0),a.key+=D(),this.$emit("changedYear",a.date)}this.updateCalendar()},getYearList(t,e){let a=[],i=t.getFullYear()-4+e;for(let s=0;s<12;s++){let n=i+s;a.push({year:n})}return a},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)?this.fConfigs.markedDateRange.findIndex(e=>e.end===t)!==-1:t===this.fConfigs.markedDateRange.end},checkSelDates(t,e,a,i){let s=this.helpCalendar.getDateFromFormat(e).getTime(),n=this.helpCalendar.getDateFromFormat(a).getTime(),r=this.helpCalendar.getDateFromFormat(i).getTime(),o=(t==="min"?this.fConfigs.minSelDays:this.fConfigs.maxSelDays-2)*1e3*60*60*24,d=s+o,f=s-o,h;return r>s?t==="min"?h=ns&&this.fConfigs.minSelDays:h=n>d&&n>s&&this.fConfigs.maxSelDays:rf&&n=a&&(this.allowNextDate=!1)}},getTransition_(){if(!this.fConfigs.transition)return"";let t="";return this.transitionPrefix==="left"?t="vfc-calendar-slide-left":this.transitionPrefix==="right"&&(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&&!te(this.popoverElement,t.relatedTarget))return this.showCalendar=this.showMonthPicker=this.showYearPicker=!1},hideMonthYearPicker(t){this.$nextTick(()=>{if(this.showMonthPicker||this.showYearPicker){let e=this.showMonthPicker?this.showMonthPicker-1:this.showYearPicker-1;return this.$refs.calendars.querySelectorAll(".vfc-content-MY-picker")[e].contains(t.target)?void 0:this.showMonthPicker=this.showYearPicker=!1}})},checkDateRangeStart(t){return Array.isArray(this.fConfigs.markedDateRange)?this.fConfigs.markedDateRange.findIndex(e=>e.start===t)!==-1:t===this.fConfigs.markedDateRange.start},cleanRange(){if(!this.isMultipleDateRange){this.calendar.dateRange.end="",this.calendar.dateRange.start="";return}this.calendar.multipleDateRange=[]}}};var se=function(){var e=this,a=e._self._c;return a("div",{ref:"popoverElement",staticClass:"vfc-popover-container",attrs:{tabindex:"0"}},[a("PickerInputs",{attrs:{fConfigs:e.fConfigs,singleSelectedDate:e.singleSelectedDate,calendar:e.calendar},scopedSlots:e._u([{key:"dateRangeInputs",fn:function(i){return[e._t("dateRangeInputs",null,{startDate:i.startDate,endDate:i.endDate,isTypeable:e.fConfigs.isTypeable})]}},{key:"datePickerInput",fn:function(i){return[e._t("datePickerInput",null,{selectedDate:i.selectedDate,isTypeable:e.fConfigs.isTypeable})]}}],null,!0)}),a("div",{directives:[{name:"show",rawName:"v-show",value:e.showCalendar,expression:"showCalendar"}],ref:"mainContainer",staticClass:"vfc-main-container",class:{"vfc-modal":e.fConfigs.isModal&&(e.fConfigs.isDatePicker||e.fConfigs.isDateRange||e.fConfigs.isMultipleDatePicker),"vfc-dark":e.fConfigs.isDark}},[e.showTimePicker?a("time-picker",{ref:"timePicker",attrs:{height:e.$refs.popoverElement.clientHeight,hours:e.activeHours,minutes:e.activeMinutes}}):[a("div",{staticClass:"vfc-calendars-container"},[a("Arrows",{attrs:{isMultiple:!1,fConfigs:e.fConfigs,allowPreDate:e.allowPreDate,allowNextDate:e.allowNextDate},scopedSlots:e._u([{key:"navigationArrowLeft",fn:function(){return[e._t("navigationArrowLeft")]},proxy:!0},{key:"navigationArrowRight",fn:function(){return[e._t("navigationArrowRight")]},proxy:!0}],null,!0)}),a("div",{ref:"calendars",staticClass:"vfc-calendars"},e._l(e.listCalendars,function(i,s){return a("div",{key:i.key,staticClass:"vfc-calendar"},[a("month-year-picker",{directives:[{name:"show",rawName:"v-show",value:e.showMonthPicker===s+1||e.showYearPicker===s+1,expression:` showMonthPicker === key + 1 || showYearPicker === key + 1 diff --git a/public/build/assets/GlobalFlag-CmS90N9I.js b/public/build/assets/GlobalFlag-DjPPgtZl.js similarity index 95% rename from public/build/assets/GlobalFlag-CmS90N9I.js rename to public/build/assets/GlobalFlag-DjPPgtZl.js index d3f352e39..d3575e1d8 100644 --- a/public/build/assets/GlobalFlag-CmS90N9I.js +++ b/public/build/assets/GlobalFlag-DjPPgtZl.js @@ -1 +1 @@ -import{L as o}from"./vue-loading-Bl53SHQy.js";/* empty css */import{n as a,e as l}from"./app-DpqRw90N.js";/* empty css */const n={name:"GlobalFlag",components:{Loading:o,VueSimpleSuggest:l},async created(){this.loading=!0,await this.$store.dispatch("GET_COUNTRIES_FOR_FLAGS"),this.loading=!1},data(){return{btn:"button mt1 is-primary is-medium",country:"",processing:!1,loading:!0,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:{button(){return this.processing?this.btn+" is-loading":this.btn},countries(){return this.$store.state.user.countries}},methods:{getCountries(){return Object.values(this.countries)},getSelected(){return this.$store.state.user.user.global_flag?this.countries[this.$store.state.user.user.global_flag]:!1},onFocus(){this.$refs.vss.suggestions=this.$refs.vss.list},onSuggestion(){this.$nextTick(function(){Array.prototype.forEach.call(document.getElementsByClassName("input"),function(i){i.blur()})})},async save(){this.processing=!0;let i=Object.keys(this.countries).find(t=>this.countries[t]===this.country);await this.$store.dispatch("UPDATE_GLOBAL_FLAG",i),this.processing=!1}}};var r=function(){var t=this,s=t._self._c;return s("div",{staticStyle:{"padding-left":"1em","padding-right":"1em"}},[s("h1",{staticClass:"title is-4"},[t._v(t._s(t.$t("settings.globalFlag.show-flag")))]),s("hr"),s("br"),t.loading?s("loading",{attrs:{active:t.loading,"is-full-page":!0},on:{"update:active":function(e){t.loading=e}}}):s("div",{staticClass:"columns"},[s("div",{staticClass:"column is-offset-1"},[s("p",{staticClass:"title is-5 mb20 green"},[t._v(t._s(t.$t("settings.globalFlag.top-10")))]),s("div",{directives:[{name:"show",rawName:"v-show",value:this.$store.state.user.user.global_flag,expression:"this.$store.state.user.user.global_flag"}],staticClass:"mb20"},[s("p",{staticClass:"strong"},[t._v(t._s(t.$t("settings.globalFlag.global-top-10-challenge"))+": "+t._s(this.getSelected()))])]),s("p",{staticClass:"mb20"},[t._v(t._s(t.$t("settings.globalFlag.action-select")))]),s("p",{staticClass:"mb20"},[t._v(t._s(t.$t("settings.globalFlag.select-country")))]),s("vue-simple-suggest",{ref:"vss",attrs:{"filter-by-query":!0,list:t.getCountries(),"min-length":0,"max-suggestions":0,mode:"select",placeholder:t.$t("settings.globalFlag.select-country"),styles:t.autoCompleteStyle},on:{focus:function(e){return t.onFocus()},"suggestion-click":function(e){return t.onSuggestion()}},model:{value:t.country,callback:function(e){t.country=e},expression:"country"}}),s("button",{class:t.button,attrs:{disabled:t.processing},on:{click:t.save}},[t._v(t._s(t.$t("settings.globalFlag.save-flag")))])],1)])],1)},u=[],c=a(n,r,u,!1,null,null);const f=c.exports;export{f as default}; +import{L as o}from"./vue-loading-Kx5ngqlf.js";/* empty css */import{n as a,e as l}from"./app-DGjOB0Vc.js";/* empty css */const n={name:"GlobalFlag",components:{Loading:o,VueSimpleSuggest:l},async created(){this.loading=!0,await this.$store.dispatch("GET_COUNTRIES_FOR_FLAGS"),this.loading=!1},data(){return{btn:"button mt1 is-primary is-medium",country:"",processing:!1,loading:!0,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:{button(){return this.processing?this.btn+" is-loading":this.btn},countries(){return this.$store.state.user.countries}},methods:{getCountries(){return Object.values(this.countries)},getSelected(){return this.$store.state.user.user.global_flag?this.countries[this.$store.state.user.user.global_flag]:!1},onFocus(){this.$refs.vss.suggestions=this.$refs.vss.list},onSuggestion(){this.$nextTick(function(){Array.prototype.forEach.call(document.getElementsByClassName("input"),function(i){i.blur()})})},async save(){this.processing=!0;let i=Object.keys(this.countries).find(t=>this.countries[t]===this.country);await this.$store.dispatch("UPDATE_GLOBAL_FLAG",i),this.processing=!1}}};var r=function(){var t=this,s=t._self._c;return s("div",{staticStyle:{"padding-left":"1em","padding-right":"1em"}},[s("h1",{staticClass:"title is-4"},[t._v(t._s(t.$t("settings.globalFlag.show-flag")))]),s("hr"),s("br"),t.loading?s("loading",{attrs:{active:t.loading,"is-full-page":!0},on:{"update:active":function(e){t.loading=e}}}):s("div",{staticClass:"columns"},[s("div",{staticClass:"column is-offset-1"},[s("p",{staticClass:"title is-5 mb20 green"},[t._v(t._s(t.$t("settings.globalFlag.top-10")))]),s("div",{directives:[{name:"show",rawName:"v-show",value:this.$store.state.user.user.global_flag,expression:"this.$store.state.user.user.global_flag"}],staticClass:"mb20"},[s("p",{staticClass:"strong"},[t._v(t._s(t.$t("settings.globalFlag.global-top-10-challenge"))+": "+t._s(this.getSelected()))])]),s("p",{staticClass:"mb20"},[t._v(t._s(t.$t("settings.globalFlag.action-select")))]),s("p",{staticClass:"mb20"},[t._v(t._s(t.$t("settings.globalFlag.select-country")))]),s("vue-simple-suggest",{ref:"vss",attrs:{"filter-by-query":!0,list:t.getCountries(),"min-length":0,"max-suggestions":0,mode:"select",placeholder:t.$t("settings.globalFlag.select-country"),styles:t.autoCompleteStyle},on:{focus:function(e){return t.onFocus()},"suggestion-click":function(e){return t.onSuggestion()}},model:{value:t.country,callback:function(e){t.country=e},expression:"country"}}),s("button",{class:t.button,attrs:{disabled:t.processing},on:{click:t.save}},[t._v(t._s(t.$t("settings.globalFlag.save-flag")))])],1)])],1)},u=[],c=a(n,r,u,!1,null,null);const f=c.exports;export{f as default}; diff --git a/public/build/assets/GlobalMapContainer-CHWgXsCS.js b/public/build/assets/GlobalMapContainer-C2R3PWrX.js similarity index 79% rename from public/build/assets/GlobalMapContainer-CHWgXsCS.js rename to public/build/assets/GlobalMapContainer-C2R3PWrX.js index 79478fff2..5a390cc51 100644 --- a/public/build/assets/GlobalMapContainer-CHWgXsCS.js +++ b/public/build/assets/GlobalMapContainer-C2R3PWrX.js @@ -1 +1 @@ -import{L as r}from"./vue-loading-Bl53SHQy.js";/* empty css */import{S as o}from"./Supercluster-DPM8aljq.js";import{n}from"./app-DpqRw90N.js";import"./index-Dxbj43yt.js";import"./mapHelpers-BwpDWaTU.js";import"./moment-zH0z38ay.js";import"./glify-browser-D9ojku05.js";/* empty css */const s={name:"GlobalMapContainer",components:{Loading:r,Supercluster:o},data(){return{mapHeight:window.outerHeight-72}},async created(){this.isMobile&&this.addEventListenerIfMobile();let i=parseInt(new URLSearchParams(window.location.search).get("year"))||null;await this.$store.dispatch("GET_CLUSTERS",{zoom:2,year:i}),await this.$store.dispatch("GET_ART_DATA"),await this.$store.dispatch("GET_CLEANUPS"),await this.$store.dispatch("GET_MERCHANTS_GEOJSON"),this.$store.commit("globalLoading",!1)},async destroyed(){window.removeEventListener("resize",this.resizeHandler)},computed:{loading(){return this.$store.state.globalmap.loading},isMobile(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}},methods:{addEventListenerIfMobile(){this.mapHeight=window.innerHeight-72+"px",window.addEventListener("resize",this.resizeHandler)},resizeHandler(){this.mapHeight=window.innerHeight-72+"px"}}};var d=function(){var e=this,t=e._self._c;return t("div",{staticClass:"global-map-container",style:{height:e.mapHeight}},[e.loading?t("loading",{attrs:{active:e.loading,"is-full-page":!0},on:{"update:active":function(a){e.loading=a}}}):t("supercluster")],1)},l=[],p=n(s,d,l,!1,null,"8375a653");const E=p.exports;export{E as default}; +import{L as r}from"./vue-loading-Kx5ngqlf.js";/* empty css */import{S as o}from"./Supercluster-9K_eifTI.js";import{n}from"./app-DGjOB0Vc.js";import"./index-Dxbj43yt.js";import"./mapHelpers-CwWoNy74.js";import"./moment-zH0z38ay.js";import"./glify-browser-25hBm06M.js";/* empty css */const s={name:"GlobalMapContainer",components:{Loading:r,Supercluster:o},data(){return{mapHeight:window.outerHeight-72}},async created(){this.isMobile&&this.addEventListenerIfMobile();let i=parseInt(new URLSearchParams(window.location.search).get("year"))||null;await this.$store.dispatch("GET_CLUSTERS",{zoom:2,year:i}),await this.$store.dispatch("GET_ART_DATA"),await this.$store.dispatch("GET_CLEANUPS"),await this.$store.dispatch("GET_MERCHANTS_GEOJSON"),this.$store.commit("globalLoading",!1)},async destroyed(){window.removeEventListener("resize",this.resizeHandler)},computed:{loading(){return this.$store.state.globalmap.loading},isMobile(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}},methods:{addEventListenerIfMobile(){this.mapHeight=window.innerHeight-72+"px",window.addEventListener("resize",this.resizeHandler)},resizeHandler(){this.mapHeight=window.innerHeight-72+"px"}}};var d=function(){var e=this,t=e._self._c;return t("div",{staticClass:"global-map-container",style:{height:e.mapHeight}},[e.loading?t("loading",{attrs:{active:e.loading,"is-full-page":!0},on:{"update:active":function(a){e.loading=a}}}):t("supercluster")],1)},l=[],p=n(s,d,l,!1,null,"8375a653");const E=p.exports;export{E as default}; diff --git a/public/build/assets/History-Rdw-MXuh.js b/public/build/assets/History-DPDbqk3e.js similarity index 76% rename from public/build/assets/History-Rdw-MXuh.js rename to public/build/assets/History-DPDbqk3e.js index 39b145280..65521fa2e 100644 --- a/public/build/assets/History-Rdw-MXuh.js +++ b/public/build/assets/History-DPDbqk3e.js @@ -1 +1 @@ -import{L as e}from"./vue-loading-Bl53SHQy.js";/* empty css */import{L as o}from"./LitterTable-D4FISOEt.js";import{n as r}from"./app-DpqRw90N.js";/* empty css */const s={name:"History",components:{Loading:e,LitterTable:o},data(){return{loading:!0}},async created(){await this.$store.dispatch("GET_ALL_PHOTOS_PAGINATED"),await this.$store.dispatch("GET_LIST_OF_COUNTRY_NAMES"),this.loading=!1},computed:{paginatedPhotos(){return this.$store.state.alldata.paginated}}};var i=function(){var t=this,a=t._self._c;return a("div",[t.loading?a("loading",{attrs:{active:!0,"is-full-page":!0}}):a("LitterTable",{attrs:{title:"All Uploads",paginatedPhotos:t.paginatedPhotos,action:"GET_ALL_PHOTOS_PAGINATED"}})],1)},n=[],_=r(s,i,n,!1,null,"10e55381");const u=_.exports;export{u as default}; +import{L as e}from"./vue-loading-Kx5ngqlf.js";/* empty css */import{L as o}from"./LitterTable-C1e1cJcP.js";import{n as r}from"./app-DGjOB0Vc.js";/* empty css */const s={name:"History",components:{Loading:e,LitterTable:o},data(){return{loading:!0}},async created(){await this.$store.dispatch("GET_ALL_PHOTOS_PAGINATED"),await this.$store.dispatch("GET_LIST_OF_COUNTRY_NAMES"),this.loading=!1},computed:{paginatedPhotos(){return this.$store.state.alldata.paginated}}};var i=function(){var t=this,a=t._self._c;return a("div",[t.loading?a("loading",{attrs:{active:!0,"is-full-page":!0}}):a("LitterTable",{attrs:{title:"All Uploads",paginatedPhotos:t.paginatedPhotos,action:"GET_ALL_PHOTOS_PAGINATED"}})],1)},n=[],_=r(s,i,n,!1,null,"10e55381");const u=_.exports;export{u as default}; diff --git a/public/build/assets/Index-CbrbZ16G.js b/public/build/assets/Index-CLzG7JZH.js similarity index 98% rename from public/build/assets/Index-CbrbZ16G.js rename to public/build/assets/Index-CLzG7JZH.js index 5315ebe6a..279019676 100644 --- a/public/build/assets/Index-CbrbZ16G.js +++ b/public/build/assets/Index-CLzG7JZH.js @@ -1 +1 @@ -import{n as r}from"./app-DpqRw90N.js";import{L as p}from"./BaseCharts-JIcpo9yP.js";/* empty css */import"./moment-zH0z38ay.js";const v={name:"SocialSection",data(){return{cards:[{title:"Slack",link:"https://join.slack.com/t/openlittermap/shared_invite/zt-fdctasud-mu~OBQKReRdC9Ai9KgGROw",icon:"fa fa-slack"},{title:"Twitter",link:"https://twitter.com/OpenLitterMap",icon:"fa fa-twitter"},{title:"Facebook",link:"https://www.facebook.com/openlittermap/",icon:"fa fa-facebook"},{title:"Instagram",link:"https://www.instagram.com/openlittermap/",icon:"fa fa-instagram"},{title:"Reddit",link:"https://www.reddit.com/r/openlittermap/",icon:"fa fa-reddit"},{title:"YouTube",link:"https://www.youtube.com/channel/UCfUT45IaIoxSCdQwv7-cTRg",icon:"fa fa-youtube"},{title:"LinkedIn",link:"https://www.linkedin.com/company/openlittermap/",icon:"fa fa-linkedin"},{title:"GitHub",link:"https://github.com/openlittermap",icon:"fa fa-github"}]}}};var y=function(){var t=this,s=t._self._c;return s("section",{staticClass:"hero section-social"},[s("div",{staticClass:"hero-body"},[s("div",{staticClass:"py-2 social-links"},[t._l(t.cards,function(i){return s("div",{staticClass:"social-card"},[s("a",{attrs:{href:i.link,title:i.title,target:"_blank"}},[s("i",{staticClass:"fa-4x fa-fw is-large has-text-light",class:i.icon})])])}),s("a",{staticClass:"discord-link",attrs:{href:"https://discord.gg/z6Pg2g5y6G",target:"_blank"}},[t._v(" and discord ")])],2)])])},g=[],C=r(v,y,g,!1,null,"42339a2b");const b=C.exports,k={name:"HeroSection",computed:{imageStyle(){return`linear-gradient(to left, transparent 0%, black 100%), url("${window.location.origin}/assets/grass.jpg")`}}};var w=function(){var t=this,s=t._self._c;return s("section",{staticClass:"community",style:{backgroundImage:t.imageStyle}},[s("div",{staticClass:"hero is-medium container"},[s("div",{staticClass:"hero-body community-hero"},[s("h1",{staticClass:"title has-text-white has-text-weight-bold is-size-2 is-size-1-desktop"},[t._v(" "+t._s(t.$t("home.community.title"))+" ")]),s("h2",{staticClass:"subtitle has-text-white-bis is-size-4 mt-1"},[t._v(" "+t._s(t.$t("home.community.subtitle"))+" ")])])]),t._m(0)])},x=[function(){var e=this,t=e._self._c;return t("p",{staticClass:"copyright"},[t("a",{attrs:{target:"_blank",href:"https://www.pexels.com/photo/green-grass-field-during-sun-rise-997121/"}},[e._v(" Photo by Peter Fazekas from Pexels ")])])}],$=r(k,w,x,!1,null,"ee714f81");const S=$.exports;function _(e,t){if(t){var s=this.$data._chart,i=e.datasets.map(function(a){return a.label}),c=t.datasets.map(function(a){return a.label}),l=JSON.stringify(c),m=JSON.stringify(i);m===l&&t.datasets.length===e.datasets.length?(e.datasets.forEach(function(a,o){var h=Object.keys(t.datasets[o]),n=Object.keys(a),f=h.filter(function(d){return d!=="_meta"&&n.indexOf(d)===-1});f.forEach(function(d){delete s.data.datasets[o][d]});for(var u in a)a.hasOwnProperty(u)&&(s.data.datasets[o][u]=a[u])}),e.hasOwnProperty("labels")&&(s.data.labels=e.labels,this.$emit("labels:update")),e.hasOwnProperty("xLabels")&&(s.data.xLabels=e.xLabels,this.$emit("xlabels:update")),e.hasOwnProperty("yLabels")&&(s.data.yLabels=e.yLabels,this.$emit("ylabels:update")),s.update(),this.$emit("chart:update")):(s&&(s.destroy(),this.$emit("chart:destroy")),this.renderChart(this.chartData,this.options),this.$emit("chart:render"))}else this.$data._chart&&(this.$data._chart.destroy(),this.$emit("chart:destroy")),this.renderChart(this.chartData,this.options),this.$emit("chart:render")}var M={data:function(){return{chartData:null}},watch:{chartData:_}},T={props:{chartData:{type:Object,required:!0,default:function(){}}},watch:{chartData:_}};const P={reactiveData:M,reactiveProp:T},{reactiveProp:z}=P,O={extends:p,mixins:[z],props:["options"],mounted(){this.renderChart(this.chartData,this.options)}},D={name:"StatsSection",components:{StatsChart:O},data(){return{options:{aspectRatio:3,maintainAspectRatio:!1,legend:{labels:{fontColor:"whitesmoke"}},scales:{xAxes:[{gridLines:{display:!1},ticks:{fontColor:"whitesmoke"}}],yAxes:[{id:"photos",type:"linear",position:"left",gridLines:{display:!1},ticks:{fontColor:"whitesmoke"}},{id:"users",type:"linear",position:"right",gridLines:{display:!1},ticks:{fontColor:"whitesmoke"}}]}}}},computed:{getUploadsPerMinute(){return(this.stats.photosPerMonth/30/24/60).toFixed(2)+" per minute"},getNewUsersPerDay(){return(this.stats.usersPerMonth/30).toFixed(2)+" per day"},getTagsPerMinute(){return(this.stats.litterTagsPerMonth/30/24/60).toFixed(2)+" per minute"},stats(){return this.$store.state.community},yearlyStats(){return this.stats.statsByMonth?{labels:this.stats.statsByMonth.periods,datasets:[{label:this.$i18n.t("home.community.photos-every-month-label"),yAxisID:"photos",borderColor:"#1DD3B0",borderWidth:3,pointBackgroundColor:"#008080",pointBorderColor:"#008080",backgroundColor:"transparent",data:this.stats.statsByMonth.photosByMonth},{label:this.$i18n.t("home.community.users-every-month-label"),yAxisID:"users",borderColor:"#c2f970",borderWidth:3,pointBackgroundColor:"#008080",pointBorderColor:"#008080",backgroundColor:"transparent",data:this.stats.statsByMonth.usersByMonth}]}:{}}},async mounted(){await this.$store.dispatch("GET_STATS")},methods:{commas(e){return parseInt(e).toLocaleString()}}};var R=function(){var t=this,s=t._self._c;return s("section",{staticClass:"hero section-stats"},[s("div",{staticClass:"hero-body is-flex"},[s("div",{staticClass:"stats"},[s("div",{staticClass:"stat has-text-light has-text-centered"},[s("div",{staticClass:"total has-text-weight-bold"},[s("number",{attrs:{from:0,to:t.stats.photosPerMonth,duration:2,delay:0,easing:"Power1.easeOut",format:t.commas}})],1),s("div",{staticClass:"is-size-5"},[t._v(t._s(t.$t("home.community.photos-last-30-days")))]),s("p",[t._v(t._s(t.getUploadsPerMinute))])]),s("div",{staticClass:"stat has-text-light has-text-centered"},[s("div",{staticClass:"total has-text-weight-bold"},[s("number",{attrs:{from:0,to:t.stats.usersPerMonth,duration:2,delay:0,easing:"Power1.easeOut",format:t.commas}})],1),s("div",{staticClass:"is-size-5"},[t._v(t._s(t.$t("home.community.users-last-30-days")))]),s("p",[t._v(t._s(t.getNewUsersPerDay))])]),s("div",{staticClass:"stat has-text-light has-text-centered"},[s("div",{staticClass:"total has-text-weight-bold"},[s("number",{attrs:{from:0,to:t.stats.litterTagsPerMonth,duration:2,delay:0,easing:"Power1.easeOut",format:t.commas}})],1),s("div",{staticClass:"is-size-5"},[t._v(t._s(t.$t("home.community.litter-tags-last-30-days")))]),s("p",[t._v(t._s(t.getTagsPerMinute))])])]),s("div",{staticClass:"charts mt-6"},[s("div",{staticClass:"chart"},[s("StatsChart",{attrs:{"chart-data":t.yearlyStats,options:t.options}})],1)])])])},B=[],U=r(D,R,B,!1,null,"e5c6f815");const L=U.exports,F="/build/assets/zoom-brand-logo-DPOquhA7.png",j={name:"ZoomSection",data(){return{days:null,hours:null,minutes:null,isLive:!1}},mounted(){setInterval(()=>{let e=new Date,t=new Date;t.setUTCDate(e.getUTCDate()+(11-e.getUTCDay())%7+1);let s=new Date(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),18,0,0,0);if(e.getDay()===5){let a=new Date(e.getTime());const o=17,h=19;a.setUTCHours(o),a.setUTCMinutes(0),a.setUTCSeconds(0),a.setUTCMilliseconds(0);let n=new Date(a.getTime());n.setUTCHours(h),n.setUTCMinutes(30),this.isLive=e>=a&&e{let e=new Date,t=new Date;t.setUTCDate(e.getUTCDate()+(11-e.getUTCDay())%7+1);let s=new Date(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),18,0,0,0);if(e.getDay()===5){let a=new Date(e.getTime());const o=17,h=19;a.setUTCHours(o),a.setUTCMinutes(0),a.setUTCSeconds(0),a.setUTCMilliseconds(0);let n=new Date(a.getTime());n.setUTCHours(h),n.setUTCMinutes(30),this.isLive=e>=a&&e1,expression:"leaderboard.currentPage > 1"}],staticClass:"button is-medium mr-1",on:{click:e.loadPreviousPage}},[e._v(" "+e._s(e.$t("common.previous"))+" ")]),a("button",{directives:[{name:"show",rawName:"v-show",value:e.leaderboard.hasNextPage,expression:"leaderboard.hasNextPage"}],staticClass:"button is-medium",on:{click:e.loadNextPage}},[e._v(" "+e._s(e.$t("common.next"))+" ")])]):e._e()],1)],1)])},d=[],l=o(r,i,d,!1,null,"2d78ff5e");const p=l.exports;export{p as default}; +import{L as t}from"./vue-loading-Kx5ngqlf.js";import{L as s}from"./LeaderboardList-Cz6T5MVY.js";import{n as o}from"./app-DGjOB0Vc.js";import"./moment-zH0z38ay.js";/* empty css */const r={name:"Leaderboard",components:{Loading:t,LeaderboardList:s},data(){return{loading:!0}},async created(){this.loading=!0,await this.$store.dispatch("GET_USERS_FOR_GLOBAL_LEADERBOARD","today"),this.loading=!1},computed:{leaderboard(){return this.$store.state.leaderboard}},methods:{async loadPreviousPage(){this.loading=!0,window.scrollTo({top:0,behavior:"smooth"}),await this.$store.dispatch("GET_PREVIOUS_LEADERBOARD_PAGE"),this.loading=!1},async loadNextPage(){this.loading=!0,window.scrollTo({top:0,behavior:"smooth"}),await this.$store.dispatch("GET_NEXT_LEADERBOARD_PAGE"),this.loading=!1},openWorldCup(){this.$router.push({path:"/world"})}}};var i=function(){var e=this,a=e._self._c;return a("section",{staticClass:"is-link hero is-bold is-fullheight"},[a("section",{staticClass:"wrapper is-link is-bold"},[a("div",{staticClass:"leaderboard-heading",on:{click:e.openWorldCup}},[a("i",{staticClass:"fa fa-arrow-left has-text-white"}),a("h3",{staticClass:"title is-2 has-text-centered has-text-white"},[e._v(" "+e._s(e.$t("location.global-leaderboard"))+" ")])]),e.loading?a("loading",{attrs:{active:!0,"is-full-page":!0,"background-color":"transparent",color:"white"}}):e._e(),e.loading?e._e():a("div",[a("LeaderboardList",{attrs:{leaders:e.leaderboard.users}}),e.leaderboard.users.length?a("div",{staticClass:"flex jc"},[a("button",{directives:[{name:"show",rawName:"v-show",value:e.leaderboard.currentPage>1,expression:"leaderboard.currentPage > 1"}],staticClass:"button is-medium mr-1",on:{click:e.loadPreviousPage}},[e._v(" "+e._s(e.$t("common.previous"))+" ")]),a("button",{directives:[{name:"show",rawName:"v-show",value:e.leaderboard.hasNextPage,expression:"leaderboard.hasNextPage"}],staticClass:"button is-medium",on:{click:e.loadNextPage}},[e._v(" "+e._s(e.$t("common.next"))+" ")])]):e._e()],1)],1)])},d=[],l=o(r,i,d,!1,null,"2d78ff5e");const p=l.exports;export{p as default}; diff --git a/public/build/assets/LeaderboardList-B_0yi0QA.js b/public/build/assets/LeaderboardList-Cz6T5MVY.js similarity index 98% rename from public/build/assets/LeaderboardList-B_0yi0QA.js rename to public/build/assets/LeaderboardList-Cz6T5MVY.js index 81eae5cc0..4fd27cbc0 100644 --- a/public/build/assets/LeaderboardList-B_0yi0QA.js +++ b/public/build/assets/LeaderboardList-Cz6T5MVY.js @@ -1 +1 @@ -import{h as d}from"./moment-zH0z38ay.js";import{n as _}from"./app-DpqRw90N.js";const m={name:"LeaderboardFilters",props:["locationType","locationId"],data(){return{processing:!1,selected:"today",options:["all-time","today","yesterday","this-month","last-month","this-year"]}},methods:{async changeOption(e){this.selected=e,this.processing=!0,this.locationId&&this.locationType?await this.$store.dispatch("GET_USERS_FOR_LOCATION_LEADERBOARD",{timeFilter:e,locationId:this.locationId,locationType:this.locationType}):await this.$store.dispatch("GET_USERS_FOR_GLOBAL_LEADERBOARD",e),this.processing=!1},getNameForOption(e){return e==="today"?"Today":e==="yesterday"?"Yesterday":e==="this-month"?"This Month":e==="last-month"?"Last Month":e==="this-year"?"This Year":e==="all-time"?"All Time":""},async optionChanged(e){const t=e.target.value;this.selected=t,this.processing=!0,await this.$store.dispatch("GET_GLOBAL_LEADERBOARD",t),this.processing=!1}}};var p=function(){var t=this,s=t._self._c;return s("div",[s("div",{staticClass:"leaderboard-filters-container"},t._l(t.options,function(a){return s("p",{staticClass:"leaderboard-option",class:a===t.selected?"is-selected":"",on:{click:function(r){return t.changeOption(a)}}},[t._v(" "+t._s(t.getNameForOption(a))+" ")])}),0),s("div",{staticClass:"mobile-filters-container"},[s("select",{directives:[{name:"model",rawName:"v-model",value:t.selected,expression:"selected"}],staticClass:"input mb1",on:{change:[function(a){var r=Array.prototype.filter.call(a.target.options,function(i){return i.selected}).map(function(i){var n="_value"in i?i._value:i.value;return n});t.selected=a.target.multiple?r:r[0]},t.optionChanged]}},t._l(t.options,function(a){return s("option",{domProps:{value:a}},[t._v(" "+t._s(t.getNameForOption(a))+" ")])}),0)])])},f=[],u=_(m,p,f,!1,null,"4aab6639");const v=u.exports,o="/build/assets/gold-medal-2-DT1ucjbO.png",l="/build/assets/silver-medal-2-Dx0QRhyS.png",c="/build/assets/bronze-medal-2-DyRiKOrS.png",g={name:"LeaderboardList",props:["leaders","locationId","locationType"],components:{LeaderboardFilters:v},methods:{getCountryFlag(e){return e?(e=e.toLowerCase(),"/assets/icons/flags/"+e+".png"):""},getPosition(e){return d.localeData().ordinal(e)}}};var h=function(){var t=this,s=t._self._c;return s("div",{staticClass:"global-leaders"},[s("LeaderboardFilters",{attrs:{locationId:t.locationId,locationType:t.locationType}}),t.leaders.length===0?s("div",[s("p",{staticClass:"empty-leaderboard-title"},[t._v("Nobody has uploaded yet!")])]):t._e(),t._l(t.leaders,function(a,r){return s("div",{staticClass:"leader wow slideInLeft"},[a.rank?s("div",{staticClass:"medal"},[a.rank===1?s("img",{attrs:{src:o,alt:"Gold spot"}}):t._e(),a.rank===2?s("img",{attrs:{src:l,alt:"Silver spot"}}):t._e(),a.rank===3?s("img",{attrs:{src:c,alt:"Bronze spot"}}):t._e()]):s("div",{staticClass:"medal"},[r===0?s("img",{attrs:{src:o,alt:"Gold spot"}}):t._e(),r===1?s("img",{attrs:{src:l,alt:"Silver spot"}}):t._e(),r===2?s("img",{attrs:{src:c,alt:"Bronze spot"}}):t._e()]),s("div",{staticClass:"rank"},[a.rank?s("span",[t._v(t._s(t.getPosition(a.rank)))]):s("span",[t._v(t._s(t.getPosition(r+1)))]),s("div",{staticClass:"flag"},[s("img",{directives:[{name:"show",rawName:"v-show",value:a.global_flag,expression:"leader.global_flag"}],attrs:{src:t.getCountryFlag(a.global_flag),alt:a.global_flag}})])]),s("div",{staticClass:"details"},[s("div",{staticClass:"name"},[a.name||a.username?s("span",[t._v(t._s(a.name)+" "+t._s(a.username))]):s("span",[t._v(t._s(t.$t("common.anonymous")))])]),a.team?s("div",{staticClass:"team"},[t._v(" "+t._s(t.$t("common.team"))+" "+t._s(a.team)+" ")]):t._e(),a.social?s("div",{staticClass:"social-container"},t._l(a.social,function(i,n){return s("a",{attrs:{target:"_blank",href:i}},[s("i",{staticClass:"fa",class:n==="personal"?"fa-link":`fa-${n}`})])}),0):t._e()]),a.social?s("div",{staticClass:"social-container"},t._l(a.social,function(i,n){return s("a",{attrs:{target:"_blank",href:i}},[s("i",{staticClass:"fa",class:n==="personal"?"fa-link":`fa-${n}`})])}),0):t._e(),s("div",{staticClass:"xp"},[s("div",{staticClass:"value"},[t._v(t._s(a.xp))]),s("div",{staticClass:"text"},[t._v("XP")])])])})],2)},C=[],b=_(g,h,C,!1,null,"5ae5a51c");const O=b.exports;export{O as L}; +import{h as d}from"./moment-zH0z38ay.js";import{n as _}from"./app-DGjOB0Vc.js";const m={name:"LeaderboardFilters",props:["locationType","locationId"],data(){return{processing:!1,selected:"today",options:["all-time","today","yesterday","this-month","last-month","this-year"]}},methods:{async changeOption(e){this.selected=e,this.processing=!0,this.locationId&&this.locationType?await this.$store.dispatch("GET_USERS_FOR_LOCATION_LEADERBOARD",{timeFilter:e,locationId:this.locationId,locationType:this.locationType}):await this.$store.dispatch("GET_USERS_FOR_GLOBAL_LEADERBOARD",e),this.processing=!1},getNameForOption(e){return e==="today"?"Today":e==="yesterday"?"Yesterday":e==="this-month"?"This Month":e==="last-month"?"Last Month":e==="this-year"?"This Year":e==="all-time"?"All Time":""},async optionChanged(e){const t=e.target.value;this.selected=t,this.processing=!0,await this.$store.dispatch("GET_GLOBAL_LEADERBOARD",t),this.processing=!1}}};var p=function(){var t=this,s=t._self._c;return s("div",[s("div",{staticClass:"leaderboard-filters-container"},t._l(t.options,function(a){return s("p",{staticClass:"leaderboard-option",class:a===t.selected?"is-selected":"",on:{click:function(r){return t.changeOption(a)}}},[t._v(" "+t._s(t.getNameForOption(a))+" ")])}),0),s("div",{staticClass:"mobile-filters-container"},[s("select",{directives:[{name:"model",rawName:"v-model",value:t.selected,expression:"selected"}],staticClass:"input mb1",on:{change:[function(a){var r=Array.prototype.filter.call(a.target.options,function(i){return i.selected}).map(function(i){var n="_value"in i?i._value:i.value;return n});t.selected=a.target.multiple?r:r[0]},t.optionChanged]}},t._l(t.options,function(a){return s("option",{domProps:{value:a}},[t._v(" "+t._s(t.getNameForOption(a))+" ")])}),0)])])},f=[],u=_(m,p,f,!1,null,"4aab6639");const v=u.exports,o="/build/assets/gold-medal-2-DT1ucjbO.png",l="/build/assets/silver-medal-2-Dx0QRhyS.png",c="/build/assets/bronze-medal-2-DyRiKOrS.png",g={name:"LeaderboardList",props:["leaders","locationId","locationType"],components:{LeaderboardFilters:v},methods:{getCountryFlag(e){return e?(e=e.toLowerCase(),"/assets/icons/flags/"+e+".png"):""},getPosition(e){return d.localeData().ordinal(e)}}};var h=function(){var t=this,s=t._self._c;return s("div",{staticClass:"global-leaders"},[s("LeaderboardFilters",{attrs:{locationId:t.locationId,locationType:t.locationType}}),t.leaders.length===0?s("div",[s("p",{staticClass:"empty-leaderboard-title"},[t._v("Nobody has uploaded yet!")])]):t._e(),t._l(t.leaders,function(a,r){return s("div",{staticClass:"leader wow slideInLeft"},[a.rank?s("div",{staticClass:"medal"},[a.rank===1?s("img",{attrs:{src:o,alt:"Gold spot"}}):t._e(),a.rank===2?s("img",{attrs:{src:l,alt:"Silver spot"}}):t._e(),a.rank===3?s("img",{attrs:{src:c,alt:"Bronze spot"}}):t._e()]):s("div",{staticClass:"medal"},[r===0?s("img",{attrs:{src:o,alt:"Gold spot"}}):t._e(),r===1?s("img",{attrs:{src:l,alt:"Silver spot"}}):t._e(),r===2?s("img",{attrs:{src:c,alt:"Bronze spot"}}):t._e()]),s("div",{staticClass:"rank"},[a.rank?s("span",[t._v(t._s(t.getPosition(a.rank)))]):s("span",[t._v(t._s(t.getPosition(r+1)))]),s("div",{staticClass:"flag"},[s("img",{directives:[{name:"show",rawName:"v-show",value:a.global_flag,expression:"leader.global_flag"}],attrs:{src:t.getCountryFlag(a.global_flag),alt:a.global_flag}})])]),s("div",{staticClass:"details"},[s("div",{staticClass:"name"},[a.name||a.username?s("span",[t._v(t._s(a.name)+" "+t._s(a.username))]):s("span",[t._v(t._s(t.$t("common.anonymous")))])]),a.team?s("div",{staticClass:"team"},[t._v(" "+t._s(t.$t("common.team"))+" "+t._s(a.team)+" ")]):t._e(),a.social?s("div",{staticClass:"social-container"},t._l(a.social,function(i,n){return s("a",{attrs:{target:"_blank",href:i}},[s("i",{staticClass:"fa",class:n==="personal"?"fa-link":`fa-${n}`})])}),0):t._e()]),a.social?s("div",{staticClass:"social-container"},t._l(a.social,function(i,n){return s("a",{attrs:{target:"_blank",href:i}},[s("i",{staticClass:"fa",class:n==="personal"?"fa-link":`fa-${n}`})])}),0):t._e(),s("div",{staticClass:"xp"},[s("div",{staticClass:"value"},[t._v(t._s(a.xp))]),s("div",{staticClass:"text"},[t._v("XP")])])])})],2)},C=[],b=_(g,h,C,!1,null,"5ae5a51c");const O=b.exports;export{O as L}; diff --git a/public/build/assets/LitterTable-D4FISOEt.js b/public/build/assets/LitterTable-C1e1cJcP.js similarity index 99% rename from public/build/assets/LitterTable-D4FISOEt.js rename to public/build/assets/LitterTable-C1e1cJcP.js index 4d8c2bc3f..6eb062c8e 100644 --- a/public/build/assets/LitterTable-D4FISOEt.js +++ b/public/build/assets/LitterTable-C1e1cJcP.js @@ -1 +1 @@ -import{n as l}from"./app-DpqRw90N.js";const n={name:"FilterPhotos",props:["action","parent"],methods:{async getData(){await this.$store.dispatch(this.action)}},computed:{countries(){return this.$store.state.locations.countryNames},filterTag:{get(){return this.$store.state.user.filterPhotos.filterTag},set(a){this.$store.commit("setFilterTag",a)}},filterCustomTag:{get(){return this.$store.state.user.filterPhotos.filterCustomTag},set(a){this.$store.commit("setFilterCustomTag",a)}},filterDateFrom:{get(){return this.$store.state.user.filterPhotos.filterDateFrom},set(a){this.$store.commit("setFilterDateFrom",a)}},filterDateTo:{get(){return this.$store.state.user.filterPhotos.filterDateTo},set(a){this.$store.commit("setFilterDateTo",a)}},filterCountry:{get(){return this.$store.state.user.filterPhotos.filterCountry},set(a){this.$store.commit("setFilterCountry",a)}},paginationAmount:{get(){return this.$store.state.user.filterPhotos.paginationAmount},set(a){this.$store.commit("setFilterPhotosPaginationAmount",a)}}}};var c=function(){var t=this,e=t._self._c;return e("div",{staticClass:"filters"},[e("div",{staticClass:"filter-item"},[e("label",{attrs:{for:"filterTag"}},[t._v(" Tag ")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.filterTag,expression:"filterTag"}],staticClass:"input",attrs:{id:"filterTag",name:"filterTag",placeholder:"Enter a tag"},domProps:{value:t.filterTag},on:{input:function(o){o.target.composing||(t.filterTag=o.target.value)}}})]),e("div",{staticClass:"filter-item"},[e("label",{attrs:{for:"filterCustomTag"}},[t._v(" Custom Tag ")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.filterCustomTag,expression:"filterCustomTag"}],staticClass:"input",attrs:{id:"filterCustomTag",name:"filterCustomTag",placeholder:"Enter a custom tag"},domProps:{value:t.filterCustomTag},on:{input:function(o){o.target.composing||(t.filterCustomTag=o.target.value)}}})]),e("div",{staticClass:"filter-item"},[e("label",{attrs:{for:"uploadedFrom"}},[t._v(" Uploaded From ")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.filterDateFrom,expression:"filterDateFrom"}],staticClass:"input",attrs:{id:"uploadedFrom",name:"uploadedFrom",type:"date",placeholder:"From"},domProps:{value:t.filterDateFrom},on:{input:function(o){o.target.composing||(t.filterDateFrom=o.target.value)}}})]),e("div",{staticClass:"filter-item"},[e("label",{attrs:{for:"uploadedTo"}},[t._v(" Uploaded To ")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.filterDateTo,expression:"filterDateTo"}],staticClass:"input",attrs:{id:"uploadedTo",name:"uploadedTo",type:"date",placeholder:"To"},domProps:{value:t.filterDateTo},on:{input:function(o){o.target.composing||(t.filterDateTo=o.target.value)}}})]),t.parent==="global"?e("div",{staticClass:"filter-item"},[e("label",{attrs:{for:"filterCountry"}},[t._v(" Country ")]),e("select",{directives:[{name:"model",rawName:"v-model",value:t.filterCountry,expression:"filterCountry"}],staticClass:"input",on:{change:function(o){var r=Array.prototype.filter.call(o.target.options,function(i){return i.selected}).map(function(i){var s="_value"in i?i._value:i.value;return s});t.filterCountry=o.target.multiple?r:r[0]}}},[e("option",{attrs:{value:"all",selected:""}},[t._v("All")]),t._l(t.countries,function(o){return e("option",{key:o.id,domProps:{value:o.id}},[t._v(t._s(o.country))])})],2)]):t._e(),e("div",{staticClass:"filter-item"},[e("label",{attrs:{for:"uploadedTo"}},[t._v(" Amount ")]),e("select",{directives:[{name:"model",rawName:"v-model",value:t.paginationAmount,expression:"paginationAmount"}],staticClass:"input",on:{change:function(o){var r=Array.prototype.filter.call(o.target.options,function(i){return i.selected}).map(function(i){var s="_value"in i?i._value:i.value;return s});t.paginationAmount=o.target.multiple?r:r[0]}}},[e("option",{attrs:{value:"25"}},[t._v("25")]),e("option",{attrs:{value:"50"}},[t._v("50")]),e("option",{attrs:{value:"100"}},[t._v("100")])])]),e("button",{staticClass:"button is-small is-primary",staticStyle:{"margin-top":"25px"},on:{click:t.getData}},[t._v("Apply Filters")])])},u=[],d=l(n,c,u,!1,null,"f169fac0");const m=d.exports,p={name:"LitterTable",components:{FilterPhotos:m},props:["title","action","paginatedPhotos"],data(){return{showCopyNotification:!1,currentPage:1,lastPage:1}},methods:{getCustomTags(a){return a.map(t=>t.tag).join(", ")},async copyLinkToClipboard(a){const t=`https://openlittermap.com/global?lat=${a.lat}&lon=${a.lon}&zoom=17&photo=${a.id}`;if(navigator.clipboard)try{await navigator.clipboard.writeText(t);return}catch(e){console.error("Failed to copy with Clipboard API: ",e)}this.copyToFallbackClipboard(t)},copyToFallbackClipboard(a){const t=document.createElement("textarea");t.value=a,document.body.appendChild(t),t.focus(),t.select();try{document.execCommand("copy")}catch(e){console.error("Fallback copy to clipboard failed: ",e)}finally{document.body.removeChild(t)}},openLinkNewTab(a){const t=`${window.location.origin}/global?lat=${a.lat}&lon=${a.lon}&zoom=17&photo=${a.id}`;window.open(t,"_blank")},async loadPreviousPage(){const a=this.paginatedPhotos.current_page-1;await this.$store.dispatch(this.action,a)},async loadNextPage(){const a=this.paginatedPhotos.current_page+1;await this.$store.dispatch(this.action,a)}}};var g=function(){var t=this,e=t._self._c;return e("div",{staticClass:"uploads-container"},[e("h3",{staticClass:"uploads-title"},[t._v(" "+t._s(this.title)+" "),e("span",[t._v(" ("+t._s(this.paginatedPhotos.total)+")")])]),e("FilterPhotos",{attrs:{action:this.action,parent:"global"}}),e("div",{staticClass:"table-wrapper"},[e("table",{staticClass:"uploads-table"},[t._m(0),e("tbody",t._l(t.paginatedPhotos.data,function(o){return e("tr",{key:o.id},[e("td",[t._v(" "+t._s(o.id)+" ")]),e("td",[t._v(" "+t._s(o.result_string?o.result_string:"No tags")+" ")]),e("td",[t._v(" "+t._s(o.custom_tags.length?t.getCustomTags(o.custom_tags):"No tags")+" ")]),e("td",[t._v(" "+t._s(o.datetime)+" ")]),e("td",{staticStyle:{"max-width":"15em"}},[t._v(" "+t._s(o.display_name)+" ")]),e("td",{staticClass:"centre-table-buttons"},[e("button",{on:{click:function(r){return t.copyLinkToClipboard(o)}}},[t._v(" Copy Link ")]),e("button",{on:{click:function(r){return t.openLinkNewTab(o)}}},[t._v(" Open ")])])])}),0)])]),e("div",{staticClass:"pagination"},[e("button",{attrs:{disabled:this.paginatedPhotos.current_page===1},on:{click:t.loadPreviousPage}},[t._v(" Previous ")]),e("p",[t._v(t._s(this.paginatedPhotos.current_page))]),e("button",{attrs:{disabled:this.paginatedPhotos.next_page_url===null},on:{click:t.loadNextPage}},[t._v(" Next ")])])],1)},v=[function(){var a=this,t=a._self._c;return t("thead",[t("tr",[t("th",[a._v("ID")]),t("th",[a._v("Tags")]),t("th",[a._v("Custom Tags")]),t("th",[a._v("Taken at")]),t("th",{staticStyle:{"max-width":"15em"}},[a._v("Address")]),t("th",[a._v("Actions")])])])}],f=l(p,g,v,!1,null,"03a1a97e");const h=f.exports;export{h as L}; +import{n as l}from"./app-DGjOB0Vc.js";const n={name:"FilterPhotos",props:["action","parent"],methods:{async getData(){await this.$store.dispatch(this.action)}},computed:{countries(){return this.$store.state.locations.countryNames},filterTag:{get(){return this.$store.state.user.filterPhotos.filterTag},set(a){this.$store.commit("setFilterTag",a)}},filterCustomTag:{get(){return this.$store.state.user.filterPhotos.filterCustomTag},set(a){this.$store.commit("setFilterCustomTag",a)}},filterDateFrom:{get(){return this.$store.state.user.filterPhotos.filterDateFrom},set(a){this.$store.commit("setFilterDateFrom",a)}},filterDateTo:{get(){return this.$store.state.user.filterPhotos.filterDateTo},set(a){this.$store.commit("setFilterDateTo",a)}},filterCountry:{get(){return this.$store.state.user.filterPhotos.filterCountry},set(a){this.$store.commit("setFilterCountry",a)}},paginationAmount:{get(){return this.$store.state.user.filterPhotos.paginationAmount},set(a){this.$store.commit("setFilterPhotosPaginationAmount",a)}}}};var c=function(){var t=this,e=t._self._c;return e("div",{staticClass:"filters"},[e("div",{staticClass:"filter-item"},[e("label",{attrs:{for:"filterTag"}},[t._v(" Tag ")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.filterTag,expression:"filterTag"}],staticClass:"input",attrs:{id:"filterTag",name:"filterTag",placeholder:"Enter a tag"},domProps:{value:t.filterTag},on:{input:function(o){o.target.composing||(t.filterTag=o.target.value)}}})]),e("div",{staticClass:"filter-item"},[e("label",{attrs:{for:"filterCustomTag"}},[t._v(" Custom Tag ")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.filterCustomTag,expression:"filterCustomTag"}],staticClass:"input",attrs:{id:"filterCustomTag",name:"filterCustomTag",placeholder:"Enter a custom tag"},domProps:{value:t.filterCustomTag},on:{input:function(o){o.target.composing||(t.filterCustomTag=o.target.value)}}})]),e("div",{staticClass:"filter-item"},[e("label",{attrs:{for:"uploadedFrom"}},[t._v(" Uploaded From ")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.filterDateFrom,expression:"filterDateFrom"}],staticClass:"input",attrs:{id:"uploadedFrom",name:"uploadedFrom",type:"date",placeholder:"From"},domProps:{value:t.filterDateFrom},on:{input:function(o){o.target.composing||(t.filterDateFrom=o.target.value)}}})]),e("div",{staticClass:"filter-item"},[e("label",{attrs:{for:"uploadedTo"}},[t._v(" Uploaded To ")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.filterDateTo,expression:"filterDateTo"}],staticClass:"input",attrs:{id:"uploadedTo",name:"uploadedTo",type:"date",placeholder:"To"},domProps:{value:t.filterDateTo},on:{input:function(o){o.target.composing||(t.filterDateTo=o.target.value)}}})]),t.parent==="global"?e("div",{staticClass:"filter-item"},[e("label",{attrs:{for:"filterCountry"}},[t._v(" Country ")]),e("select",{directives:[{name:"model",rawName:"v-model",value:t.filterCountry,expression:"filterCountry"}],staticClass:"input",on:{change:function(o){var r=Array.prototype.filter.call(o.target.options,function(i){return i.selected}).map(function(i){var s="_value"in i?i._value:i.value;return s});t.filterCountry=o.target.multiple?r:r[0]}}},[e("option",{attrs:{value:"all",selected:""}},[t._v("All")]),t._l(t.countries,function(o){return e("option",{key:o.id,domProps:{value:o.id}},[t._v(t._s(o.country))])})],2)]):t._e(),e("div",{staticClass:"filter-item"},[e("label",{attrs:{for:"uploadedTo"}},[t._v(" Amount ")]),e("select",{directives:[{name:"model",rawName:"v-model",value:t.paginationAmount,expression:"paginationAmount"}],staticClass:"input",on:{change:function(o){var r=Array.prototype.filter.call(o.target.options,function(i){return i.selected}).map(function(i){var s="_value"in i?i._value:i.value;return s});t.paginationAmount=o.target.multiple?r:r[0]}}},[e("option",{attrs:{value:"25"}},[t._v("25")]),e("option",{attrs:{value:"50"}},[t._v("50")]),e("option",{attrs:{value:"100"}},[t._v("100")])])]),e("button",{staticClass:"button is-small is-primary",staticStyle:{"margin-top":"25px"},on:{click:t.getData}},[t._v("Apply Filters")])])},u=[],d=l(n,c,u,!1,null,"f169fac0");const m=d.exports,p={name:"LitterTable",components:{FilterPhotos:m},props:["title","action","paginatedPhotos"],data(){return{showCopyNotification:!1,currentPage:1,lastPage:1}},methods:{getCustomTags(a){return a.map(t=>t.tag).join(", ")},async copyLinkToClipboard(a){const t=`https://openlittermap.com/global?lat=${a.lat}&lon=${a.lon}&zoom=17&photo=${a.id}`;if(navigator.clipboard)try{await navigator.clipboard.writeText(t);return}catch(e){console.error("Failed to copy with Clipboard API: ",e)}this.copyToFallbackClipboard(t)},copyToFallbackClipboard(a){const t=document.createElement("textarea");t.value=a,document.body.appendChild(t),t.focus(),t.select();try{document.execCommand("copy")}catch(e){console.error("Fallback copy to clipboard failed: ",e)}finally{document.body.removeChild(t)}},openLinkNewTab(a){const t=`${window.location.origin}/global?lat=${a.lat}&lon=${a.lon}&zoom=17&photo=${a.id}`;window.open(t,"_blank")},async loadPreviousPage(){const a=this.paginatedPhotos.current_page-1;await this.$store.dispatch(this.action,a)},async loadNextPage(){const a=this.paginatedPhotos.current_page+1;await this.$store.dispatch(this.action,a)}}};var g=function(){var t=this,e=t._self._c;return e("div",{staticClass:"uploads-container"},[e("h3",{staticClass:"uploads-title"},[t._v(" "+t._s(this.title)+" "),e("span",[t._v(" ("+t._s(this.paginatedPhotos.total)+")")])]),e("FilterPhotos",{attrs:{action:this.action,parent:"global"}}),e("div",{staticClass:"table-wrapper"},[e("table",{staticClass:"uploads-table"},[t._m(0),e("tbody",t._l(t.paginatedPhotos.data,function(o){return e("tr",{key:o.id},[e("td",[t._v(" "+t._s(o.id)+" ")]),e("td",[t._v(" "+t._s(o.result_string?o.result_string:"No tags")+" ")]),e("td",[t._v(" "+t._s(o.custom_tags.length?t.getCustomTags(o.custom_tags):"No tags")+" ")]),e("td",[t._v(" "+t._s(o.datetime)+" ")]),e("td",{staticStyle:{"max-width":"15em"}},[t._v(" "+t._s(o.display_name)+" ")]),e("td",{staticClass:"centre-table-buttons"},[e("button",{on:{click:function(r){return t.copyLinkToClipboard(o)}}},[t._v(" Copy Link ")]),e("button",{on:{click:function(r){return t.openLinkNewTab(o)}}},[t._v(" Open ")])])])}),0)])]),e("div",{staticClass:"pagination"},[e("button",{attrs:{disabled:this.paginatedPhotos.current_page===1},on:{click:t.loadPreviousPage}},[t._v(" Previous ")]),e("p",[t._v(t._s(this.paginatedPhotos.current_page))]),e("button",{attrs:{disabled:this.paginatedPhotos.next_page_url===null},on:{click:t.loadNextPage}},[t._v(" Next ")])])],1)},v=[function(){var a=this,t=a._self._c;return t("thead",[t("tr",[t("th",[a._v("ID")]),t("th",[a._v("Tags")]),t("th",[a._v("Custom Tags")]),t("th",[a._v("Taken at")]),t("th",{staticStyle:{"max-width":"15em"}},[a._v("Address")]),t("th",[a._v("Actions")])])])}],f=l(p,g,v,!1,null,"03a1a97e");const h=f.exports;export{h as L}; diff --git a/public/build/assets/Littercoin-bucTPJ3h.js b/public/build/assets/Littercoin-B9T3_uDX.js similarity index 99% rename from public/build/assets/Littercoin-bucTPJ3h.js rename to public/build/assets/Littercoin-B9T3_uDX.js index 535079db6..eb0d1ce1f 100644 --- a/public/build/assets/Littercoin-bucTPJ3h.js +++ b/public/build/assets/Littercoin-B9T3_uDX.js @@ -1 +1 @@ -import{n as c}from"./app-DpqRw90N.js";/* empty css */const l="/build/assets/nami-BuYycVV_.png",d="/build/assets/eternl-CDqNp3Eg.png",u={name:"Littercoin",async created(){this.loading=!0,await axios.get("/get-users-littercoin").then(a=>{this.littercoinEarned=a.data.littercoinEarned,this.littercoinDue=a.data.littercoinDue}).catch(a=>{console.error("littercoin",a)}),await axios.get("/littercoin-info").then(async a=>{const t=await JSON.parse(a.data);if(t.status==200)this.adaAmount=t.payload.list[0].int/1e6,this.lcAmount=t.payload.list[1].int,this.ratio=this.adaAmount/this.lcAmount,this.lcAddr=t.payload.addr,this.lcAddrURL="https://cexplorer.io/address/"+t.payload.addr,this.lcScriptName=t.payload.scriptName,this.lcScriptURL="/contracts/"+t.payload.scriptName;else throw console.error("Could not fetch littercoin contract info")}).catch(a=>{console.error("littercoin-info",a)}),await axios.get("https://api.coingecko.com/api/v3/simple/price?ids=cardano&vs_currencies=usd").then(a=>{console.log("ada-price",a),this.adaValues=a.data.cardano}).catch(a=>{console.error("ada-price",a)}),this.loading=!1},data(){return{loading:!0,adaAmount:0,lcAmount:0,ratio:0,adaValues:{},selectedCurrency:"usd",currencySymbols:{usd:"$",eur:"€",btc:"₿"},lcAddr:"",lcAddrURL:"",lcScriptName:"",lcScriptURL:"",littercoinEarned:0,littercoinDue:0,walletChoice:"",walletLoading:!1,adaBalance:0,littercoinBalance:0,merchTokenBalance:0,mintDestAddr:"",merchDestAddr:"",addAdaQty:0,lcQty:0,mintFormSubmitted:!1,burnFormSubmitted:!1,merchFormSubmitted:!1,addAdaFormSubmitted:!1,mintSuccess:!1,burnSuccess:!1,merchSuccess:!1,addAdaSuccess:!1,mintTxId:"",burnTxId:"",merchTxId:"",addAdaTxId:"",mintTxIdURL:"",burnTxIdURL:"",merchTxIdURL:"",addAdaTxIdURL:""}},computed:{user(){return this.$store.state.user.user},isAdmin(){return this.$store.state.user.admin},checkMintDisabled(){return!!this.mintFormSubmitted},checkBurnDisabled(){return!!this.burnFormSubmitted},checkMerchDisabled(){return!!this.merchFormSubmitted},checkAddAdaDisabled(){return!!this.addAdaFormSubmitted},getLittercoinPrice(){const a=this.currencySymbols[this.selectedCurrency],t=this.adaValues[this.selectedCurrency];return this.lcAmount===0?0:a.toString()+(this.ratio*t).toFixed(2).toString()}},methods:{async getWalletInfo(){this.walletLoading=!0;try{var a;this.walletChoice==="nami"?a=await window.cardano.nami.enable():this.walletChoice==="eternl"?a=await window.cardano.eternl.enable():(alert("No wallet selected"),this.mintFormSubmitted=!1);const t=await a.getBalance();console.log({balanceCbor:t});const e=await a.getUtxos();console.log({cborUtxos:e}),await axios.post("/wallet-info",{balanceCborHex:t,utxos:e}).then(async i=>{const s=await JSON.parse(i.data);this.adaBalance=s.payload.adaAmt,this.littercoinBalance=s.payload.lcAmt,this.merchTokenBalance=s.payload.mtAmt,this.walletLoading=!1}).catch(i=>{console.error("Error accessing user wallet",i.response.data.errors),alert("Error accessing user wallet")})}catch(t){console.error(t)}},submitForm:function(a){if(!this.walletChoice){alert("Please select a wallet");return}if(this.adaBalance<5){alert("Not enough Ada in the wallet for a transaction, please make sure there is 5 or more Ada in your wallet");return}if(a==="mint"){if(!this.mintDestAddr.match(/^addr/)){alert("Please enter a valid mint littercoin destination address");return}if(!this.littercoinDue>0){alert("There are no littercoin due for minting");return}this.mintFormSubmitted=!0,this.submitMint()}if(a==="burn"){if(this.lcQty<1){alert("Minimum 1 littercoin required for burn");return}if(this.lcQty>this.littercoinBalance){alert("The amount of littercoin to burn exceeds the amount of littercoin in the wallet");return}if(this.merchTokenBalance<1){alert("No Merchant Tokens founds in the wallet");return}this.burnFormSubmitted=!0,this.submitBurn()}if(a==="merchant"){if(!this.merchDestAddr.match(/^addr/)){alert("Please enter a valid mint merchant token destination address");return}this.merchFormSubmitted=!0,this.merchMint()}if(a==="addAda"){if(!this.addAdaQty>2){alert("Minimum 2 Ada donation amount required");return}this.addAdaFormSubmitted=!0,this.addAda()}},async submitMint(){try{var a;this.walletChoice==="nami"?a=await window.cardano.nami.enable():this.walletChoice==="eternl"?a=await window.cardano.eternl.enable():(alert("No wallet selected"),this.mintFormSubmitted=!1);const t=await a.getUtxos(),e=await a.getChangeAddress();await axios.post("/littercoin-mint-tx",{destAddr:this.mintDestAddr,changeAddr:e,utxos:t}).then(async i=>{const s=await JSON.parse(i.data);if(s.status==200){console.log("Get wallet signature");var o;try{o=await a.signTx(s.cborTx,!0)}catch(r){console.error(r),this.mintFormSubmitted=!1;return}console.log("Submit transaction..."),await axios.post("/littercoin-submit-mint-tx",{cborSig:o,cborTx:s.cborTx}).then(async r=>{const n=await JSON.parse(r.data);n.status==200?(this.mintTxId=n.txId,this.mintTxIdURL="https://cexplorer.io/tx/"+n.txId,this.mintSuccess=!0):(console.error("Littercoin Mint transaction could not be submitted"),alert("Littercoin Mint transaction could not be submitted, please try again"),this.mintFormSubmitted=!1)}).catch(r=>{r.response.status==422?console.error("Invalid Wallet Input",r.response.data.errors):console.error("littercoin-submit-mint-tx: ",r),alert("Littercoin Mint transaction could not be submitted, please try again"),this.mintFormSubmitted=!1})}else console.error("Littercoin Mint transaction could not be submitted"),alert("Littercoin Mint transaction could not be submitted, please try again"),this.mintFormSubmitted=!1}).catch(i=>{i.response.status==422?(console.error("Invalid User Input",i.response.data.errors),alert("Please check that you have entered a valid destination address")):(console.error("littercoin-mint-tx",i),alert("Littercoin Mint transaction could not be submitted, please try again")),this.mintFormSubmitted=!1})}catch(t){console.error(t),this.mintFormSubmitted=!1}},async submitBurn(){try{var a;this.walletChoice==="nami"?a=await window.cardano.nami.enable():this.walletChoice==="eternl"?a=await window.cardano.eternl.enable():(alert("No wallet selected"),this.burnFormSubmitted=!1);const t=await a.getUtxos(),e=await a.getChangeAddress();await axios.post("/littercoin-burn-tx",{lcQty:this.lcQty,changeAddr:e,utxos:t}).then(async i=>{const s=await JSON.parse(i.data);if(s.status==200){console.log("Get wallet signature");var o;try{o=await a.signTx(s.cborTx,!0)}catch(r){console.error(r),this.burnFormSubmitted=!1;return}console.log("Submit transaction..."),await axios.post("/littercoin-submit-burn-tx",{cborSig:o,cborTx:s.cborTx}).then(async r=>{const n=await JSON.parse(r.data);n.status==200?(this.burnTxId=n.txId,this.burnTxIdURL="https://cexplorer.io/tx/"+n.txId,this.burnSuccess=!0):(console.error("Littercoin Burn transaction was not successful"),alert("Littercoin Burn transaction could not be submitted, please try again"),this.burnFormSubmitted=!1)}).catch(r=>{r.response.status==422?console.error("Invalid Wallet Input",r.response.data.errors):console.error("littercoin-submit-burn-tx: ",r),alert("Littercoin Burn transaction could not be submitted, please try again"),this.burnFormSubmitted=!1})}else s.status==401?(console.error("Insufficient Littercoin In Wallet For Burn"),alert("Insufficient Littercoin In Wallet For Burn"),this.burnFormSubmitted=!1):s.status==402?(console.error("Merchant Token Not Found"),alert("Merchant Token Not Found"),this.burnFormSubmitted=!1):s.status==403?(console.error("Ada Withdraw amount is less than the minimum 2 Ada"),alert("Ada Withdraw amount is less than the minimum 2 Ada"),this.burnFormSubmitted=!1):s.status==404?(console.error("Insufficient funds in Littercoin contract"),alert("Insufficient funds in Littercoin contract"),this.burnFormSubmitted=!1):s.status==405?(console.error("No valid merchant token found in the wallet"),alert("No valid merchant token found in the wallet"),this.burnFormSubmitted=!1):(console.error("Littercoin Burn transaction was not successful"),alert("Littercoin Burn transaction could not be submitted, please try again"),this.burnFormSubmitted=!1)}).catch(i=>{i.response.status==422?(console.error("Invalid User Input",i.response.data.errors),alert("Please check that you have entered a valid destination address")):(console.error("littercoin-burn-tx",i),alert("Littercoin Burn transaction could not be submitted, please try again")),this.burnFormSubmitted=!1})}catch(t){console.error(t),this.burnFormSubmitted=!1}},async merchMint(){try{var a;this.walletChoice==="nami"?a=await window.cardano.nami.enable():this.walletChoice==="eternl"?a=await window.cardano.eternl.enable():(alert("No wallet selected"),this.merchFormSubmitted=!1);const t=await a.getUtxos(),e=await a.getChangeAddress();await axios.post("/merchant-mint-tx",{destAddr:this.merchDestAddr,changeAddr:e,utxos:t}).then(async i=>{const s=await JSON.parse(i.data);if(s.status==200){console.log("Get wallet signature");var o;try{o=await a.signTx(s.cborTx,!0)}catch(r){console.error(r),this.merchFormSubmitted=!1;return}console.log("Submit transaction..."),await axios.post("/merchant-submit-mint-tx",{cborSig:o,cborTx:s.cborTx}).then(async r=>{const n=await JSON.parse(r.data);n.status==200?(this.merchTxId=n.txId,this.merchTxIdURL="https://cexplorer.io/tx/"+n.txId,this.merchSuccess=!0):(console.error("Merchant Token Mint transaction could not be submitted"),alert("Merchant Token Mint transaction could not be submitted, please try again"),this.merchFormSubmitted=!1)}).catch(r=>{r.response.status==422?console.error("Invalid Wallet Input",r.response.data.errors):console.error("merchant-submit-mint-tx: ",r),alert("Merchant Token Mint transaction could not be submitted, please try again"),this.merchFormSubmitted=!1})}else s.status==407?(console.error("Must be an admin user to mint a merchant token"),alert("Must be an admin user to mint a merchant token"),this.merchFormSubmitted=!1):(console.error("Merchant Token Mint transaction could not be submitted"),alert("Merchant Token Mint transaction could not be submitted, please try again"),this.merchFormSubmitted=!1)}).catch(i=>{i.response.status==422?(console.error("Invalid User Input",i.response.data.errors),alert("Please check that you have entered a valid destination address")):(console.error("merchant-submit-mint-tx: ",i),alert("Merchant Token Mint transaction could not be submitted, please try again")),this.merchFormSubmitted=!1})}catch(t){console.error(t),this.merchFormSubmitted=!1}},async addAda(){try{var a;this.walletChoice==="nami"?a=await window.cardano.nami.enable():this.walletChoice==="eternl"?a=await window.cardano.eternl.enable():(alert("No wallet selected"),this.addAdaFormSubmitted=!1);const t=await a.getUtxos(),e=await a.getChangeAddress();await axios.post("/add-ada-tx",{adaQty:this.addAdaQty,changeAddr:e,utxos:t}).then(async i=>{const s=await JSON.parse(i.data);if(s.status==200){console.log("Get wallet signature");var o;try{o=await a.signTx(s.cborTx,!0)}catch(r){console.error(r),this.addAdaFormSubmitted=!1;return}await axios.post("/add-ada-submit-tx",{cborSig:o,cborTx:s.cborTx}).then(async r=>{const n=await JSON.parse(r.data);n.status==200?(this.addAdaTxId=n.txId,this.addAdaTxIdURL="https://cexplorer.io/tx/"+n.txId,this.addAdaSuccess=!0):(console.error("Could not submit transaction"),alert("Add Ada transaction could not be submitted, please try again"),this.addAdaFormSubmitted=!1)}).catch(r=>{r.response.status==422?console.error("Invalid Wallet Input",r.response.data.errors):console.error("add-ada-submit-tx: ",r),alert("Add Ada transaction could not be submitted, please try again"),this.addAdaFormSubmitted=!1})}else s.status==408?(console.error("More Ada in the wallet required for this transaction"),alert('More Ada in the wallet required for this transaction"'),this.addAdaFormSubmitted=!1):(console.error("Add Ada transaction was not successful"),alert("Add Ada transaction could not be submitted, please try again"),this.addAdaFormSubmitted=!1)}).catch(i=>{i.response.status==422?(console.error("Invalid User Input",i.response.data.errors),alert("Please check that you have entered a valid destination address")):(console.error("add-ada-tx",i),alert("Add Ada transaction could not be submitted, please try again")),this.addAdaFormSubmitted=!1})}catch(t){console.error(t),this.addAdaFormSubmitted=!1}}}};var m=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{"padding-left":"1em","padding-right":"1em"}},[e("h1",{staticClass:"title is-4"},[t._v(" "+t._s(t.$t("settings.littercoin.littercoin-header")))]),e("hr"),e("br"),e("div",{staticClass:"columns"},[e("div",{staticClass:"column is-two-thirds is-offset-1"},[e("h1",{staticClass:"title is-4"},[t._v("Littercoin Smart Contract ")]),t.loading?e("p",[t._v("Loading...")]):e("div",[e("div",{staticClass:"mb-2"},[e("strong",[t._v("Ada Locked at the Smart Contract")]),e("p",[t._v(t._s(this.adaAmount.toLocaleString())+" ada")])]),e("div",{staticClass:"mb-2"},[e("strong",[t._v("Total Littercoin In Circulation")]),e("p",[t._v(t._s(this.lcAmount.toLocaleString())+" Littercoin")])]),e("div",{staticClass:"mb-2"},[e("strong",[t._v("Ratio:")]),e("p",[t._v(t._s(this.ratio.toLocaleString())+" ada per Littercoin")]),e("p",[t._v("or "+t._s(this.getLittercoinPrice)+" per Littercoin")])]),e("p",[t._v("Source Code: "),e("a",{attrs:{href:this.lcScriptURL,target:"_blank",rel:"noopener noreferrer"}},[t._v(t._s(this.lcScriptName))])]),e("p",[t._v("Address: "),e("a",{staticStyle:{"font-size":"small"},attrs:{href:this.lcAddrURL,target:"_blank",rel:"noopener noreferrer"}},[t._v(t._s(this.lcAddr))])])]),e("hr"),e("h1",{staticClass:"title is-4"},[t._v("My Littercoin")]),e("p",[t._v("Total Littercoin Earned: "+t._s(this.littercoinEarned))]),e("p",[t._v("Total Littercoin Received: "+t._s(this.littercoinEarned-this.littercoinDue))]),e("p",[t._v("Littercoin Due: "+t._s(this.littercoinDue))]),e("hr"),e("div",[e("h1",{staticClass:"title is-4"},[t._v("Select Your Wallet")]),e("p",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.walletChoice,expression:"walletChoice"}],attrs:{type:"radio",value:"nami"},domProps:{checked:t._q(t.walletChoice,"nami")},on:{change:[function(i){t.walletChoice="nami"},t.getWalletInfo]}}),t._v("   "),e("img",{staticStyle:{width:"20px",height:"20px"},attrs:{src:l,alt:"Nami Wallet"}}),e("label",[t._v("  Nami")])]),e("br"),e("p",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.walletChoice,expression:"walletChoice"}],attrs:{type:"radio",value:"eternl"},domProps:{checked:t._q(t.walletChoice,"eternl")},on:{change:[function(i){t.walletChoice="eternl"},t.getWalletInfo]}}),t._v("  "),e("img",{staticStyle:{width:"20px",height:"20px"},attrs:{src:d,alt:"Eternl Wallet"}}),e("label",[t._v("  Eternl")])]),e("br"),t.walletChoice?e("div",[t.walletLoading?e("p",[t._v("Loading...")]):e("div",[t._v(" Ada amount: "+t._s(this.adaBalance.toLocaleString())+" "),e("br"),t._v(" Littercoin amount: "+t._s(this.littercoinBalance.toLocaleString())+" "),e("br"),t._v(" Merchant Token amount: "+t._s(this.merchTokenBalance.toLocaleString())+" "),e("br")])]):t._e(),e("hr"),t.walletChoice?e("div",[t.mintSuccess?t._e():e("form",{attrs:{method:"post"},on:{submit:function(i){return i.preventDefault(),t.submitForm("mint")}}},[e("h1",{staticClass:"title is-4"},[t._v("Mint Littercoin")]),t._v(" Enter the wallet where you want your Littercoin to be sent "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.mintDestAddr,expression:"mintDestAddr"}],staticClass:"input",attrs:{placeholder:"Enter destination wallet address"},domProps:{value:t.mintDestAddr},on:{input:function(i){i.target.composing||(t.mintDestAddr=i.target.value)}}}),e("div",{staticStyle:{"text-align":"center","padding-bottom":"1em"}},[e("button",{staticClass:"button is-medium is-primary mb1 mt1",class:t.mintFormSubmitted?"is-loading":"",attrs:{disabled:t.checkMintDisabled}},[t._v("Submit Tx")])])]),t.mintSuccess?e("div",[e("p"),e("h1",{staticClass:"title is-4"},[t._v("Mint Littercoin Success!!!")]),e("p"),e("p",[t._v("Please wait approximately 20-60 seconds for the littercoin to show up in your wallet.")]),e("p",[t._v("To track this transaction on the blockchain, select the TxId link below.")]),e("p",[t._v("TxId: "),e("a",{staticStyle:{"font-size":"small"},attrs:{href:this.mintTxIdURL,target:"_blank",rel:"noopener noreferrer"}},[t._v(t._s(this.mintTxId))])])]):t._e(),e("hr")]):t._e(),t.walletChoice?e("div",[t.burnSuccess?t._e():e("form",{attrs:{method:"post"},on:{submit:function(i){return i.preventDefault(),t.submitForm("burn")}}},[e("h1",{staticClass:"title is-4"},[t._v("Burn Littercoin")]),t._v(" Only those holding a Merchant Token can burn Littercoin to received Ada from the Littercoin Smart Contract "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.lcQty,expression:"lcQty"}],staticClass:"input",attrs:{type:"number",placeholder:"Enter number of littercoins to burn"},domProps:{value:t.lcQty},on:{input:function(i){i.target.composing||(t.lcQty=i.target.value)}}}),e("div",{staticStyle:{"text-align":"center","padding-bottom":"1em"}},[e("button",{staticClass:"button is-medium is-primary mb1 mt1",class:t.burnFormSubmitted?"is-loading":"",attrs:{disabled:t.checkBurnDisabled}},[t._v("Submit Tx")])]),t._v(" Note: There is a 4.2% (or 1 Ada minimum) service fee included in the burn transaction ")]),t.burnSuccess?e("div",[e("p"),e("h1",{staticClass:"title is-4"},[t._v("Burn Littercoin Success!!!")]),e("p"),e("p",[t._v("Please wait approximately 20-60 seconds for the Ada to show up in your wallet.")]),e("p",[t._v("To track this transaction on the blockchain, select the TxId link below.")]),e("p",[t._v("TxId: "),e("a",{staticStyle:{"font-size":"small"},attrs:{href:this.burnTxIdURL,target:"_blank",rel:"noopener noreferrer"}},[t._v(t._s(this.burnTxId))])])]):t._e(),e("hr")]):t._e(),t.walletChoice?e("div",[!t.merchSuccess&&t.isAdmin?e("form",{attrs:{method:"post"},on:{submit:function(i){return i.preventDefault(),t.submitForm("merchant")}}},[e("p"),e("h1",{staticClass:"title is-4"},[t._v("Mint Merchant Token")]),e("p"),t._v(" Enter the wallet where you want a Merchant Token to be sent "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.merchDestAddr,expression:"merchDestAddr"}],staticClass:"input",attrs:{placeholder:"Enter destination wallet address"},domProps:{value:t.merchDestAddr},on:{input:function(i){i.target.composing||(t.merchDestAddr=i.target.value)}}}),e("div",{staticStyle:{"text-align":"center","padding-bottom":"1em"}},[e("button",{staticClass:"button is-medium is-primary mb1 mt1",class:t.merchFormSubmitted?"is-loading":"",attrs:{disabled:t.checkMerchDisabled}},[t._v("Submit Tx")])])]):t._e(),t.merchSuccess&&t.isAdmin?e("div",[e("p"),e("h1",{staticClass:"title is-4"},[t._v("Mint Merchant Token Success!!!")]),e("p"),e("p",[t._v("Please wait approximately 20-60 seconds for the merchant token to show up in the wallet.")]),e("p",[t._v("To track this transaction on the blockchain, select the TxId link below.")]),e("p",[t._v("TxId: "),e("a",{staticStyle:{"font-size":"small"},attrs:{href:this.merchTxIdURL,target:"_blank",rel:"noopener noreferrer"}},[t._v(t._s(this.merchTxId))])])]):t._e(),e("hr")]):t._e(),t.walletChoice?e("div",[t.addAdaSuccess?t._e():e("form",{attrs:{method:"post"},on:{submit:function(i){return i.preventDefault(),t.submitForm("addAda")}}},[e("p"),e("h1",{staticClass:"title is-4"},[t._v("Add Ada To Littercoin Smart Contract")]),e("p"),e("input",{directives:[{name:"model",rawName:"v-model",value:t.addAdaQty,expression:"addAdaQty"}],staticClass:"input",attrs:{type:"number",placeholder:"Enter amount of Ada to send"},domProps:{value:t.addAdaQty},on:{input:function(i){i.target.composing||(t.addAdaQty=i.target.value)}}}),e("div",{staticStyle:{"text-align":"center","padding-bottom":"1em"}},[e("button",{staticClass:"button is-medium is-primary mb1 mt1",class:t.addAdaFormSubmitted?"is-loading":"",attrs:{disabled:t.checkAddAdaDisabled}},[t._v("Submit Tx")])])]),t.addAdaSuccess?e("div",[e("p"),e("h1",{staticClass:"title is-4"},[t._v("Add Ada Success!!!")]),e("p"),e("p",[t._v("Please wait approximately 20-60 seconds and refresh this page for the Ada to show up in the Littercoin Smart Contract.")]),e("p",[t._v("To track this transaction on the blockchain, select the TxId link below.")]),e("p",[t._v("TxId: "),e("a",{staticStyle:{"font-size":"small"},attrs:{href:this.addAdaTxIdURL,target:"_blank",rel:"noopener noreferrer"}},[t._v(t._s(this.addAdaTxId))])])]):t._e(),e("hr")]):t._e()])])])])},h=[],b=c(u,m,h,!1,null,null);const v=b.exports;export{v as default}; +import{n as c}from"./app-DGjOB0Vc.js";/* empty css */const l="/build/assets/nami-BuYycVV_.png",d="/build/assets/eternl-CDqNp3Eg.png",u={name:"Littercoin",async created(){this.loading=!0,await axios.get("/get-users-littercoin").then(a=>{this.littercoinEarned=a.data.littercoinEarned,this.littercoinDue=a.data.littercoinDue}).catch(a=>{console.error("littercoin",a)}),await axios.get("/littercoin-info").then(async a=>{const t=await JSON.parse(a.data);if(t.status==200)this.adaAmount=t.payload.list[0].int/1e6,this.lcAmount=t.payload.list[1].int,this.ratio=this.adaAmount/this.lcAmount,this.lcAddr=t.payload.addr,this.lcAddrURL="https://cexplorer.io/address/"+t.payload.addr,this.lcScriptName=t.payload.scriptName,this.lcScriptURL="/contracts/"+t.payload.scriptName;else throw console.error("Could not fetch littercoin contract info")}).catch(a=>{console.error("littercoin-info",a)}),await axios.get("https://api.coingecko.com/api/v3/simple/price?ids=cardano&vs_currencies=usd").then(a=>{console.log("ada-price",a),this.adaValues=a.data.cardano}).catch(a=>{console.error("ada-price",a)}),this.loading=!1},data(){return{loading:!0,adaAmount:0,lcAmount:0,ratio:0,adaValues:{},selectedCurrency:"usd",currencySymbols:{usd:"$",eur:"€",btc:"₿"},lcAddr:"",lcAddrURL:"",lcScriptName:"",lcScriptURL:"",littercoinEarned:0,littercoinDue:0,walletChoice:"",walletLoading:!1,adaBalance:0,littercoinBalance:0,merchTokenBalance:0,mintDestAddr:"",merchDestAddr:"",addAdaQty:0,lcQty:0,mintFormSubmitted:!1,burnFormSubmitted:!1,merchFormSubmitted:!1,addAdaFormSubmitted:!1,mintSuccess:!1,burnSuccess:!1,merchSuccess:!1,addAdaSuccess:!1,mintTxId:"",burnTxId:"",merchTxId:"",addAdaTxId:"",mintTxIdURL:"",burnTxIdURL:"",merchTxIdURL:"",addAdaTxIdURL:""}},computed:{user(){return this.$store.state.user.user},isAdmin(){return this.$store.state.user.admin},checkMintDisabled(){return!!this.mintFormSubmitted},checkBurnDisabled(){return!!this.burnFormSubmitted},checkMerchDisabled(){return!!this.merchFormSubmitted},checkAddAdaDisabled(){return!!this.addAdaFormSubmitted},getLittercoinPrice(){const a=this.currencySymbols[this.selectedCurrency],t=this.adaValues[this.selectedCurrency];return this.lcAmount===0?0:a.toString()+(this.ratio*t).toFixed(2).toString()}},methods:{async getWalletInfo(){this.walletLoading=!0;try{var a;this.walletChoice==="nami"?a=await window.cardano.nami.enable():this.walletChoice==="eternl"?a=await window.cardano.eternl.enable():(alert("No wallet selected"),this.mintFormSubmitted=!1);const t=await a.getBalance();console.log({balanceCbor:t});const e=await a.getUtxos();console.log({cborUtxos:e}),await axios.post("/wallet-info",{balanceCborHex:t,utxos:e}).then(async i=>{const s=await JSON.parse(i.data);this.adaBalance=s.payload.adaAmt,this.littercoinBalance=s.payload.lcAmt,this.merchTokenBalance=s.payload.mtAmt,this.walletLoading=!1}).catch(i=>{console.error("Error accessing user wallet",i.response.data.errors),alert("Error accessing user wallet")})}catch(t){console.error(t)}},submitForm:function(a){if(!this.walletChoice){alert("Please select a wallet");return}if(this.adaBalance<5){alert("Not enough Ada in the wallet for a transaction, please make sure there is 5 or more Ada in your wallet");return}if(a==="mint"){if(!this.mintDestAddr.match(/^addr/)){alert("Please enter a valid mint littercoin destination address");return}if(!this.littercoinDue>0){alert("There are no littercoin due for minting");return}this.mintFormSubmitted=!0,this.submitMint()}if(a==="burn"){if(this.lcQty<1){alert("Minimum 1 littercoin required for burn");return}if(this.lcQty>this.littercoinBalance){alert("The amount of littercoin to burn exceeds the amount of littercoin in the wallet");return}if(this.merchTokenBalance<1){alert("No Merchant Tokens founds in the wallet");return}this.burnFormSubmitted=!0,this.submitBurn()}if(a==="merchant"){if(!this.merchDestAddr.match(/^addr/)){alert("Please enter a valid mint merchant token destination address");return}this.merchFormSubmitted=!0,this.merchMint()}if(a==="addAda"){if(!this.addAdaQty>2){alert("Minimum 2 Ada donation amount required");return}this.addAdaFormSubmitted=!0,this.addAda()}},async submitMint(){try{var a;this.walletChoice==="nami"?a=await window.cardano.nami.enable():this.walletChoice==="eternl"?a=await window.cardano.eternl.enable():(alert("No wallet selected"),this.mintFormSubmitted=!1);const t=await a.getUtxos(),e=await a.getChangeAddress();await axios.post("/littercoin-mint-tx",{destAddr:this.mintDestAddr,changeAddr:e,utxos:t}).then(async i=>{const s=await JSON.parse(i.data);if(s.status==200){console.log("Get wallet signature");var o;try{o=await a.signTx(s.cborTx,!0)}catch(r){console.error(r),this.mintFormSubmitted=!1;return}console.log("Submit transaction..."),await axios.post("/littercoin-submit-mint-tx",{cborSig:o,cborTx:s.cborTx}).then(async r=>{const n=await JSON.parse(r.data);n.status==200?(this.mintTxId=n.txId,this.mintTxIdURL="https://cexplorer.io/tx/"+n.txId,this.mintSuccess=!0):(console.error("Littercoin Mint transaction could not be submitted"),alert("Littercoin Mint transaction could not be submitted, please try again"),this.mintFormSubmitted=!1)}).catch(r=>{r.response.status==422?console.error("Invalid Wallet Input",r.response.data.errors):console.error("littercoin-submit-mint-tx: ",r),alert("Littercoin Mint transaction could not be submitted, please try again"),this.mintFormSubmitted=!1})}else console.error("Littercoin Mint transaction could not be submitted"),alert("Littercoin Mint transaction could not be submitted, please try again"),this.mintFormSubmitted=!1}).catch(i=>{i.response.status==422?(console.error("Invalid User Input",i.response.data.errors),alert("Please check that you have entered a valid destination address")):(console.error("littercoin-mint-tx",i),alert("Littercoin Mint transaction could not be submitted, please try again")),this.mintFormSubmitted=!1})}catch(t){console.error(t),this.mintFormSubmitted=!1}},async submitBurn(){try{var a;this.walletChoice==="nami"?a=await window.cardano.nami.enable():this.walletChoice==="eternl"?a=await window.cardano.eternl.enable():(alert("No wallet selected"),this.burnFormSubmitted=!1);const t=await a.getUtxos(),e=await a.getChangeAddress();await axios.post("/littercoin-burn-tx",{lcQty:this.lcQty,changeAddr:e,utxos:t}).then(async i=>{const s=await JSON.parse(i.data);if(s.status==200){console.log("Get wallet signature");var o;try{o=await a.signTx(s.cborTx,!0)}catch(r){console.error(r),this.burnFormSubmitted=!1;return}console.log("Submit transaction..."),await axios.post("/littercoin-submit-burn-tx",{cborSig:o,cborTx:s.cborTx}).then(async r=>{const n=await JSON.parse(r.data);n.status==200?(this.burnTxId=n.txId,this.burnTxIdURL="https://cexplorer.io/tx/"+n.txId,this.burnSuccess=!0):(console.error("Littercoin Burn transaction was not successful"),alert("Littercoin Burn transaction could not be submitted, please try again"),this.burnFormSubmitted=!1)}).catch(r=>{r.response.status==422?console.error("Invalid Wallet Input",r.response.data.errors):console.error("littercoin-submit-burn-tx: ",r),alert("Littercoin Burn transaction could not be submitted, please try again"),this.burnFormSubmitted=!1})}else s.status==401?(console.error("Insufficient Littercoin In Wallet For Burn"),alert("Insufficient Littercoin In Wallet For Burn"),this.burnFormSubmitted=!1):s.status==402?(console.error("Merchant Token Not Found"),alert("Merchant Token Not Found"),this.burnFormSubmitted=!1):s.status==403?(console.error("Ada Withdraw amount is less than the minimum 2 Ada"),alert("Ada Withdraw amount is less than the minimum 2 Ada"),this.burnFormSubmitted=!1):s.status==404?(console.error("Insufficient funds in Littercoin contract"),alert("Insufficient funds in Littercoin contract"),this.burnFormSubmitted=!1):s.status==405?(console.error("No valid merchant token found in the wallet"),alert("No valid merchant token found in the wallet"),this.burnFormSubmitted=!1):(console.error("Littercoin Burn transaction was not successful"),alert("Littercoin Burn transaction could not be submitted, please try again"),this.burnFormSubmitted=!1)}).catch(i=>{i.response.status==422?(console.error("Invalid User Input",i.response.data.errors),alert("Please check that you have entered a valid destination address")):(console.error("littercoin-burn-tx",i),alert("Littercoin Burn transaction could not be submitted, please try again")),this.burnFormSubmitted=!1})}catch(t){console.error(t),this.burnFormSubmitted=!1}},async merchMint(){try{var a;this.walletChoice==="nami"?a=await window.cardano.nami.enable():this.walletChoice==="eternl"?a=await window.cardano.eternl.enable():(alert("No wallet selected"),this.merchFormSubmitted=!1);const t=await a.getUtxos(),e=await a.getChangeAddress();await axios.post("/merchant-mint-tx",{destAddr:this.merchDestAddr,changeAddr:e,utxos:t}).then(async i=>{const s=await JSON.parse(i.data);if(s.status==200){console.log("Get wallet signature");var o;try{o=await a.signTx(s.cborTx,!0)}catch(r){console.error(r),this.merchFormSubmitted=!1;return}console.log("Submit transaction..."),await axios.post("/merchant-submit-mint-tx",{cborSig:o,cborTx:s.cborTx}).then(async r=>{const n=await JSON.parse(r.data);n.status==200?(this.merchTxId=n.txId,this.merchTxIdURL="https://cexplorer.io/tx/"+n.txId,this.merchSuccess=!0):(console.error("Merchant Token Mint transaction could not be submitted"),alert("Merchant Token Mint transaction could not be submitted, please try again"),this.merchFormSubmitted=!1)}).catch(r=>{r.response.status==422?console.error("Invalid Wallet Input",r.response.data.errors):console.error("merchant-submit-mint-tx: ",r),alert("Merchant Token Mint transaction could not be submitted, please try again"),this.merchFormSubmitted=!1})}else s.status==407?(console.error("Must be an admin user to mint a merchant token"),alert("Must be an admin user to mint a merchant token"),this.merchFormSubmitted=!1):(console.error("Merchant Token Mint transaction could not be submitted"),alert("Merchant Token Mint transaction could not be submitted, please try again"),this.merchFormSubmitted=!1)}).catch(i=>{i.response.status==422?(console.error("Invalid User Input",i.response.data.errors),alert("Please check that you have entered a valid destination address")):(console.error("merchant-submit-mint-tx: ",i),alert("Merchant Token Mint transaction could not be submitted, please try again")),this.merchFormSubmitted=!1})}catch(t){console.error(t),this.merchFormSubmitted=!1}},async addAda(){try{var a;this.walletChoice==="nami"?a=await window.cardano.nami.enable():this.walletChoice==="eternl"?a=await window.cardano.eternl.enable():(alert("No wallet selected"),this.addAdaFormSubmitted=!1);const t=await a.getUtxos(),e=await a.getChangeAddress();await axios.post("/add-ada-tx",{adaQty:this.addAdaQty,changeAddr:e,utxos:t}).then(async i=>{const s=await JSON.parse(i.data);if(s.status==200){console.log("Get wallet signature");var o;try{o=await a.signTx(s.cborTx,!0)}catch(r){console.error(r),this.addAdaFormSubmitted=!1;return}await axios.post("/add-ada-submit-tx",{cborSig:o,cborTx:s.cborTx}).then(async r=>{const n=await JSON.parse(r.data);n.status==200?(this.addAdaTxId=n.txId,this.addAdaTxIdURL="https://cexplorer.io/tx/"+n.txId,this.addAdaSuccess=!0):(console.error("Could not submit transaction"),alert("Add Ada transaction could not be submitted, please try again"),this.addAdaFormSubmitted=!1)}).catch(r=>{r.response.status==422?console.error("Invalid Wallet Input",r.response.data.errors):console.error("add-ada-submit-tx: ",r),alert("Add Ada transaction could not be submitted, please try again"),this.addAdaFormSubmitted=!1})}else s.status==408?(console.error("More Ada in the wallet required for this transaction"),alert('More Ada in the wallet required for this transaction"'),this.addAdaFormSubmitted=!1):(console.error("Add Ada transaction was not successful"),alert("Add Ada transaction could not be submitted, please try again"),this.addAdaFormSubmitted=!1)}).catch(i=>{i.response.status==422?(console.error("Invalid User Input",i.response.data.errors),alert("Please check that you have entered a valid destination address")):(console.error("add-ada-tx",i),alert("Add Ada transaction could not be submitted, please try again")),this.addAdaFormSubmitted=!1})}catch(t){console.error(t),this.addAdaFormSubmitted=!1}}}};var m=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{"padding-left":"1em","padding-right":"1em"}},[e("h1",{staticClass:"title is-4"},[t._v(" "+t._s(t.$t("settings.littercoin.littercoin-header")))]),e("hr"),e("br"),e("div",{staticClass:"columns"},[e("div",{staticClass:"column is-two-thirds is-offset-1"},[e("h1",{staticClass:"title is-4"},[t._v("Littercoin Smart Contract ")]),t.loading?e("p",[t._v("Loading...")]):e("div",[e("div",{staticClass:"mb-2"},[e("strong",[t._v("Ada Locked at the Smart Contract")]),e("p",[t._v(t._s(this.adaAmount.toLocaleString())+" ada")])]),e("div",{staticClass:"mb-2"},[e("strong",[t._v("Total Littercoin In Circulation")]),e("p",[t._v(t._s(this.lcAmount.toLocaleString())+" Littercoin")])]),e("div",{staticClass:"mb-2"},[e("strong",[t._v("Ratio:")]),e("p",[t._v(t._s(this.ratio.toLocaleString())+" ada per Littercoin")]),e("p",[t._v("or "+t._s(this.getLittercoinPrice)+" per Littercoin")])]),e("p",[t._v("Source Code: "),e("a",{attrs:{href:this.lcScriptURL,target:"_blank",rel:"noopener noreferrer"}},[t._v(t._s(this.lcScriptName))])]),e("p",[t._v("Address: "),e("a",{staticStyle:{"font-size":"small"},attrs:{href:this.lcAddrURL,target:"_blank",rel:"noopener noreferrer"}},[t._v(t._s(this.lcAddr))])])]),e("hr"),e("h1",{staticClass:"title is-4"},[t._v("My Littercoin")]),e("p",[t._v("Total Littercoin Earned: "+t._s(this.littercoinEarned))]),e("p",[t._v("Total Littercoin Received: "+t._s(this.littercoinEarned-this.littercoinDue))]),e("p",[t._v("Littercoin Due: "+t._s(this.littercoinDue))]),e("hr"),e("div",[e("h1",{staticClass:"title is-4"},[t._v("Select Your Wallet")]),e("p",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.walletChoice,expression:"walletChoice"}],attrs:{type:"radio",value:"nami"},domProps:{checked:t._q(t.walletChoice,"nami")},on:{change:[function(i){t.walletChoice="nami"},t.getWalletInfo]}}),t._v("   "),e("img",{staticStyle:{width:"20px",height:"20px"},attrs:{src:l,alt:"Nami Wallet"}}),e("label",[t._v("  Nami")])]),e("br"),e("p",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.walletChoice,expression:"walletChoice"}],attrs:{type:"radio",value:"eternl"},domProps:{checked:t._q(t.walletChoice,"eternl")},on:{change:[function(i){t.walletChoice="eternl"},t.getWalletInfo]}}),t._v("  "),e("img",{staticStyle:{width:"20px",height:"20px"},attrs:{src:d,alt:"Eternl Wallet"}}),e("label",[t._v("  Eternl")])]),e("br"),t.walletChoice?e("div",[t.walletLoading?e("p",[t._v("Loading...")]):e("div",[t._v(" Ada amount: "+t._s(this.adaBalance.toLocaleString())+" "),e("br"),t._v(" Littercoin amount: "+t._s(this.littercoinBalance.toLocaleString())+" "),e("br"),t._v(" Merchant Token amount: "+t._s(this.merchTokenBalance.toLocaleString())+" "),e("br")])]):t._e(),e("hr"),t.walletChoice?e("div",[t.mintSuccess?t._e():e("form",{attrs:{method:"post"},on:{submit:function(i){return i.preventDefault(),t.submitForm("mint")}}},[e("h1",{staticClass:"title is-4"},[t._v("Mint Littercoin")]),t._v(" Enter the wallet where you want your Littercoin to be sent "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.mintDestAddr,expression:"mintDestAddr"}],staticClass:"input",attrs:{placeholder:"Enter destination wallet address"},domProps:{value:t.mintDestAddr},on:{input:function(i){i.target.composing||(t.mintDestAddr=i.target.value)}}}),e("div",{staticStyle:{"text-align":"center","padding-bottom":"1em"}},[e("button",{staticClass:"button is-medium is-primary mb1 mt1",class:t.mintFormSubmitted?"is-loading":"",attrs:{disabled:t.checkMintDisabled}},[t._v("Submit Tx")])])]),t.mintSuccess?e("div",[e("p"),e("h1",{staticClass:"title is-4"},[t._v("Mint Littercoin Success!!!")]),e("p"),e("p",[t._v("Please wait approximately 20-60 seconds for the littercoin to show up in your wallet.")]),e("p",[t._v("To track this transaction on the blockchain, select the TxId link below.")]),e("p",[t._v("TxId: "),e("a",{staticStyle:{"font-size":"small"},attrs:{href:this.mintTxIdURL,target:"_blank",rel:"noopener noreferrer"}},[t._v(t._s(this.mintTxId))])])]):t._e(),e("hr")]):t._e(),t.walletChoice?e("div",[t.burnSuccess?t._e():e("form",{attrs:{method:"post"},on:{submit:function(i){return i.preventDefault(),t.submitForm("burn")}}},[e("h1",{staticClass:"title is-4"},[t._v("Burn Littercoin")]),t._v(" Only those holding a Merchant Token can burn Littercoin to received Ada from the Littercoin Smart Contract "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.lcQty,expression:"lcQty"}],staticClass:"input",attrs:{type:"number",placeholder:"Enter number of littercoins to burn"},domProps:{value:t.lcQty},on:{input:function(i){i.target.composing||(t.lcQty=i.target.value)}}}),e("div",{staticStyle:{"text-align":"center","padding-bottom":"1em"}},[e("button",{staticClass:"button is-medium is-primary mb1 mt1",class:t.burnFormSubmitted?"is-loading":"",attrs:{disabled:t.checkBurnDisabled}},[t._v("Submit Tx")])]),t._v(" Note: There is a 4.2% (or 1 Ada minimum) service fee included in the burn transaction ")]),t.burnSuccess?e("div",[e("p"),e("h1",{staticClass:"title is-4"},[t._v("Burn Littercoin Success!!!")]),e("p"),e("p",[t._v("Please wait approximately 20-60 seconds for the Ada to show up in your wallet.")]),e("p",[t._v("To track this transaction on the blockchain, select the TxId link below.")]),e("p",[t._v("TxId: "),e("a",{staticStyle:{"font-size":"small"},attrs:{href:this.burnTxIdURL,target:"_blank",rel:"noopener noreferrer"}},[t._v(t._s(this.burnTxId))])])]):t._e(),e("hr")]):t._e(),t.walletChoice?e("div",[!t.merchSuccess&&t.isAdmin?e("form",{attrs:{method:"post"},on:{submit:function(i){return i.preventDefault(),t.submitForm("merchant")}}},[e("p"),e("h1",{staticClass:"title is-4"},[t._v("Mint Merchant Token")]),e("p"),t._v(" Enter the wallet where you want a Merchant Token to be sent "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.merchDestAddr,expression:"merchDestAddr"}],staticClass:"input",attrs:{placeholder:"Enter destination wallet address"},domProps:{value:t.merchDestAddr},on:{input:function(i){i.target.composing||(t.merchDestAddr=i.target.value)}}}),e("div",{staticStyle:{"text-align":"center","padding-bottom":"1em"}},[e("button",{staticClass:"button is-medium is-primary mb1 mt1",class:t.merchFormSubmitted?"is-loading":"",attrs:{disabled:t.checkMerchDisabled}},[t._v("Submit Tx")])])]):t._e(),t.merchSuccess&&t.isAdmin?e("div",[e("p"),e("h1",{staticClass:"title is-4"},[t._v("Mint Merchant Token Success!!!")]),e("p"),e("p",[t._v("Please wait approximately 20-60 seconds for the merchant token to show up in the wallet.")]),e("p",[t._v("To track this transaction on the blockchain, select the TxId link below.")]),e("p",[t._v("TxId: "),e("a",{staticStyle:{"font-size":"small"},attrs:{href:this.merchTxIdURL,target:"_blank",rel:"noopener noreferrer"}},[t._v(t._s(this.merchTxId))])])]):t._e(),e("hr")]):t._e(),t.walletChoice?e("div",[t.addAdaSuccess?t._e():e("form",{attrs:{method:"post"},on:{submit:function(i){return i.preventDefault(),t.submitForm("addAda")}}},[e("p"),e("h1",{staticClass:"title is-4"},[t._v("Add Ada To Littercoin Smart Contract")]),e("p"),e("input",{directives:[{name:"model",rawName:"v-model",value:t.addAdaQty,expression:"addAdaQty"}],staticClass:"input",attrs:{type:"number",placeholder:"Enter amount of Ada to send"},domProps:{value:t.addAdaQty},on:{input:function(i){i.target.composing||(t.addAdaQty=i.target.value)}}}),e("div",{staticStyle:{"text-align":"center","padding-bottom":"1em"}},[e("button",{staticClass:"button is-medium is-primary mb1 mt1",class:t.addAdaFormSubmitted?"is-loading":"",attrs:{disabled:t.checkAddAdaDisabled}},[t._v("Submit Tx")])])]),t.addAdaSuccess?e("div",[e("p"),e("h1",{staticClass:"title is-4"},[t._v("Add Ada Success!!!")]),e("p"),e("p",[t._v("Please wait approximately 20-60 seconds and refresh this page for the Ada to show up in the Littercoin Smart Contract.")]),e("p",[t._v("To track this transaction on the blockchain, select the TxId link below.")]),e("p",[t._v("TxId: "),e("a",{staticStyle:{"font-size":"small"},attrs:{href:this.addAdaTxIdURL,target:"_blank",rel:"noopener noreferrer"}},[t._v(t._s(this.addAdaTxId))])])]):t._e(),e("hr")]):t._e()])])])])},h=[],b=c(u,m,h,!1,null,null);const v=b.exports;export{v as default}; diff --git a/public/build/assets/Merchants-WG2K8u9v.js b/public/build/assets/Merchants-BPcgP76S.js similarity index 95% rename from public/build/assets/Merchants-WG2K8u9v.js rename to public/build/assets/Merchants-BPcgP76S.js index 73ebb1a7d..8e0ee6d42 100644 --- a/public/build/assets/Merchants-WG2K8u9v.js +++ b/public/build/assets/Merchants-BPcgP76S.js @@ -1 +1 @@ -import{S as o}from"./Supercluster-DPM8aljq.js";import{n,V as c}from"./app-DpqRw90N.js";import{v as l}from"./vue2Dropzone-Czi6LJhW.js";import"./index-Dxbj43yt.js";import"./mapHelpers-BwpDWaTU.js";import"./moment-zH0z38ay.js";import"./glify-browser-D9ojku05.js";/* empty css */const m={name:"MerchantMap",components:{Supercluster:o},data(){return{loading:!1}},async created(){this.loading=!0,await this.$store.dispatch("GET_MERCHANTS_GEOJSON"),this.loading=!1}};var p=function(){var e=this,t=e._self._c;return t("div",{staticClass:"h100"},[e.loading?t("div"):t("Supercluster",{attrs:{activeLayer:"merchants"}})],1)},h=[],d=n(m,p,h,!1,null,"d1448ca1");const u=d.exports,_={name:"CreateMerchant",components:{vueDropzone:l},data(){return{name:"",address:"",email:"",website:"",about:"",processing:!1,merchantWasCreated:!1,dropzoneOptions:{url:"/merchants/upload-photo",thumbnailWidth:150,maxFilesize:20,headers:{"X-CSRF-TOKEN":window.axios.defaults.headers.common["X-CSRF-TOKEN"]},paramName:"file",acceptedFiles:"image/*,.heic,.heif",params:{merchantId:0}}}},computed:{merchant(){return this.$store.state.merchants.merchant}},methods:{async submit(){if(this.merchant.lat===0&&this.merchant.lon===0){alert("Please select a location");return}if(this.name===""||this.email===""||this.website===""||this.about===""){alert("Please enter something into all fields");return}this.processing=!0,await this.$store.dispatch("CREATE_MERCHANT",{name:this.name,lat:this.merchant.lat,lon:this.merchant.lon,email:this.email,about:this.about,website:this.website}),this.name="",this.email="",this.about="",this.website="",this.merchantWasCreated=!0,this.dropzoneOptions.params.merchantId=this.merchant.id,this.processing=!1},failed(s,e){const t=e.message,a=s.previewElement.querySelector(".dz-error-message");a&&(a.textContent=t,a.style.opacity=1,a.style.pointerEvents="auto");const r=this.$t("notifications.error"),i=e.message;c.$vToastify.error({title:r,body:i,position:"top-right",type:"error"})}}};var v=function(){var e=this,t=e._self._c;return t("div",[t("p",{staticClass:"title is-1"},[e._v(" "+e._s(this.merchantWasCreated?"Upload photos":"Create a Merchant!")+" ")]),e.merchantWasCreated?t("vue-dropzone",{attrs:{id:"dropzone",options:e.dropzoneOptions,"use-custom-slot":!0},on:{"vdropzone-error":e.failed}},[t("i",{staticClass:"fa fa-image upload-icon",attrs:{"aria-hidden":"true"}})]):t("div",[t("p",{staticClass:"merchant-label"},[e._v("Name")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.name,expression:"name"}],staticClass:"input w50 merchant-input",attrs:{placeholder:"Name of the business"},domProps:{value:e.name},on:{input:function(a){a.target.composing||(e.name=a.target.value)}}}),t("div",{staticClass:"mb1"},[e.merchant.lat?t("div",[t("p",[e._v(" Lat: "+e._s(e.merchant.lat)+" ")]),t("p",[e._v(" Lon: "+e._s(e.merchant.lon)+" ")])]):t("p",[e._v(" Click anywhere on the map to set the location ")])]),t("p",{staticClass:"merchant-label"},[e._v("Email")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.email,expression:"email"}],staticClass:"input w50 merchant-input",attrs:{placeholder:"Enter their email",type:"email"},domProps:{value:e.email},on:{input:function(a){a.target.composing||(e.email=a.target.value)}}}),t("p",{staticClass:"merchant-label"},[e._v("Website")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.website,expression:"website"}],staticClass:"input w50 merchant-input",attrs:{placeholder:"https://website.com"},domProps:{value:e.website},on:{input:function(a){a.target.composing||(e.website=a.target.value)}}}),t("p",{staticClass:"merchant-label"},[e._v("About")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.about,expression:"about"}],staticClass:"input w50 merchant-input",staticStyle:{"margin-bottom":"2em"},attrs:{placeholder:"Information or keywords"},domProps:{value:e.about},on:{input:function(a){a.target.composing||(e.about=a.target.value)}}}),t("br"),t("button",{staticClass:"button is-medium is-primary",class:e.processing?"is-loading":"",attrs:{disabled:e.processing},on:{click:e.submit}},[e._v(" Create ")])])],1)},f=[],b=n(_,v,f,!1,null,"3385c883");const g=b.exports,C={name:"ApproveMerchant",data(){return{processing:!1,processingDelete:!1,loading:!0}},async created(){this.loading=!0,await this.$store.dispatch("GET_NEXT_MERCHANT_TO_APPROVE"),this.loading=!1},computed:{merchant(){return this.$store.state.merchants.merchant}},methods:{async approveMerchant(){this.processing=!0,await this.$store.dispatch("APPROVE_MERCHANT"),this.processing=!1},async deleteMerchant(){this.processingDelete=!0,await this.$store.dispatch("DELETE_MERCHANT"),this.processingDelete=!1}}};var w=function(){var e=this,t=e._self._c;return t("div",[e.loading?t("p",[e._v("Loading...")]):this.merchant.lat===0&&this.merchant.lon===0?t("p",[e._v("Done - Thank you!")]):t("div",[t("p",[e._v("Name: "+e._s(this.merchant.name))]),t("p",[e._v("About: "+e._s(this.merchant.about))]),t("p",[e._v("Website: "+e._s(this.merchant.website))]),t("div",{staticClass:"flex mt1"},[t("button",{staticClass:"button is-medium is-primary mr1",class:e.processing?"is-loading":"",attrs:{disabled:e.processing},on:{click:e.approveMerchant}},[e._v(" Approve ")]),t("button",{staticClass:"button is-medium is-danger",class:e.processingDelete?"is-loading":"",attrs:{disabled:e.processingDelete},on:{click:e.deleteMerchant}},[e._v(" Delete ")])])])])},M=[],E=n(C,w,M,!1,null,"ae67b4fd");const y=E.exports,$={name:"Merchants",components:{MerchantMap:u,CreateMerchant:g,ApproveMerchant:y},data(){return{selectedComponent:"CreateMerchant"}},methods:{changeComponent(s){this.selectedComponent=s}}};var N=function(){var e=this,t=e._self._c;return t("div",{staticClass:"h100"},[t("div",{staticClass:"columns h100"},[t("div",{staticClass:"column is-half"},[t("MerchantMap")],1),t("div",{staticClass:"column is-half pt5 pl5"},[e.can("approve merchants")?t("div",{staticClass:"mb3"},[t("button",{staticClass:"button is-small is-info",on:{click:function(a){return e.changeComponent("CreateMerchant")}}},[e._v("Create Merchants")]),t("button",{staticClass:"button is-small is-warning",on:{click:function(a){return e.changeComponent("ApproveMerchant")}}},[e._v("Approve Merchants")])]):e._e(),t(e.selectedComponent,{tag:"component"})],1)])])},A=[],T=n($,N,A,!1,null,"becb4ef6");const F=T.exports;export{F as default}; +import{S as o}from"./Supercluster-9K_eifTI.js";import{n,V as c}from"./app-DGjOB0Vc.js";import{v as l}from"./vue2Dropzone-B-5Nz8-V.js";import"./index-Dxbj43yt.js";import"./mapHelpers-CwWoNy74.js";import"./moment-zH0z38ay.js";import"./glify-browser-25hBm06M.js";/* empty css */const m={name:"MerchantMap",components:{Supercluster:o},data(){return{loading:!1}},async created(){this.loading=!0,await this.$store.dispatch("GET_MERCHANTS_GEOJSON"),this.loading=!1}};var p=function(){var e=this,t=e._self._c;return t("div",{staticClass:"h100"},[e.loading?t("div"):t("Supercluster",{attrs:{activeLayer:"merchants"}})],1)},h=[],d=n(m,p,h,!1,null,"d1448ca1");const u=d.exports,_={name:"CreateMerchant",components:{vueDropzone:l},data(){return{name:"",address:"",email:"",website:"",about:"",processing:!1,merchantWasCreated:!1,dropzoneOptions:{url:"/merchants/upload-photo",thumbnailWidth:150,maxFilesize:20,headers:{"X-CSRF-TOKEN":window.axios.defaults.headers.common["X-CSRF-TOKEN"]},paramName:"file",acceptedFiles:"image/*,.heic,.heif",params:{merchantId:0}}}},computed:{merchant(){return this.$store.state.merchants.merchant}},methods:{async submit(){if(this.merchant.lat===0&&this.merchant.lon===0){alert("Please select a location");return}if(this.name===""||this.email===""||this.website===""||this.about===""){alert("Please enter something into all fields");return}this.processing=!0,await this.$store.dispatch("CREATE_MERCHANT",{name:this.name,lat:this.merchant.lat,lon:this.merchant.lon,email:this.email,about:this.about,website:this.website}),this.name="",this.email="",this.about="",this.website="",this.merchantWasCreated=!0,this.dropzoneOptions.params.merchantId=this.merchant.id,this.processing=!1},failed(s,e){const t=e.message,a=s.previewElement.querySelector(".dz-error-message");a&&(a.textContent=t,a.style.opacity=1,a.style.pointerEvents="auto");const r=this.$t("notifications.error"),i=e.message;c.$vToastify.error({title:r,body:i,position:"top-right",type:"error"})}}};var v=function(){var e=this,t=e._self._c;return t("div",[t("p",{staticClass:"title is-1"},[e._v(" "+e._s(this.merchantWasCreated?"Upload photos":"Create a Merchant!")+" ")]),e.merchantWasCreated?t("vue-dropzone",{attrs:{id:"dropzone",options:e.dropzoneOptions,"use-custom-slot":!0},on:{"vdropzone-error":e.failed}},[t("i",{staticClass:"fa fa-image upload-icon",attrs:{"aria-hidden":"true"}})]):t("div",[t("p",{staticClass:"merchant-label"},[e._v("Name")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.name,expression:"name"}],staticClass:"input w50 merchant-input",attrs:{placeholder:"Name of the business"},domProps:{value:e.name},on:{input:function(a){a.target.composing||(e.name=a.target.value)}}}),t("div",{staticClass:"mb1"},[e.merchant.lat?t("div",[t("p",[e._v(" Lat: "+e._s(e.merchant.lat)+" ")]),t("p",[e._v(" Lon: "+e._s(e.merchant.lon)+" ")])]):t("p",[e._v(" Click anywhere on the map to set the location ")])]),t("p",{staticClass:"merchant-label"},[e._v("Email")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.email,expression:"email"}],staticClass:"input w50 merchant-input",attrs:{placeholder:"Enter their email",type:"email"},domProps:{value:e.email},on:{input:function(a){a.target.composing||(e.email=a.target.value)}}}),t("p",{staticClass:"merchant-label"},[e._v("Website")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.website,expression:"website"}],staticClass:"input w50 merchant-input",attrs:{placeholder:"https://website.com"},domProps:{value:e.website},on:{input:function(a){a.target.composing||(e.website=a.target.value)}}}),t("p",{staticClass:"merchant-label"},[e._v("About")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.about,expression:"about"}],staticClass:"input w50 merchant-input",staticStyle:{"margin-bottom":"2em"},attrs:{placeholder:"Information or keywords"},domProps:{value:e.about},on:{input:function(a){a.target.composing||(e.about=a.target.value)}}}),t("br"),t("button",{staticClass:"button is-medium is-primary",class:e.processing?"is-loading":"",attrs:{disabled:e.processing},on:{click:e.submit}},[e._v(" Create ")])])],1)},f=[],b=n(_,v,f,!1,null,"3385c883");const g=b.exports,C={name:"ApproveMerchant",data(){return{processing:!1,processingDelete:!1,loading:!0}},async created(){this.loading=!0,await this.$store.dispatch("GET_NEXT_MERCHANT_TO_APPROVE"),this.loading=!1},computed:{merchant(){return this.$store.state.merchants.merchant}},methods:{async approveMerchant(){this.processing=!0,await this.$store.dispatch("APPROVE_MERCHANT"),this.processing=!1},async deleteMerchant(){this.processingDelete=!0,await this.$store.dispatch("DELETE_MERCHANT"),this.processingDelete=!1}}};var w=function(){var e=this,t=e._self._c;return t("div",[e.loading?t("p",[e._v("Loading...")]):this.merchant.lat===0&&this.merchant.lon===0?t("p",[e._v("Done - Thank you!")]):t("div",[t("p",[e._v("Name: "+e._s(this.merchant.name))]),t("p",[e._v("About: "+e._s(this.merchant.about))]),t("p",[e._v("Website: "+e._s(this.merchant.website))]),t("div",{staticClass:"flex mt1"},[t("button",{staticClass:"button is-medium is-primary mr1",class:e.processing?"is-loading":"",attrs:{disabled:e.processing},on:{click:e.approveMerchant}},[e._v(" Approve ")]),t("button",{staticClass:"button is-medium is-danger",class:e.processingDelete?"is-loading":"",attrs:{disabled:e.processingDelete},on:{click:e.deleteMerchant}},[e._v(" Delete ")])])])])},M=[],E=n(C,w,M,!1,null,"ae67b4fd");const y=E.exports,$={name:"Merchants",components:{MerchantMap:u,CreateMerchant:g,ApproveMerchant:y},data(){return{selectedComponent:"CreateMerchant"}},methods:{changeComponent(s){this.selectedComponent=s}}};var N=function(){var e=this,t=e._self._c;return t("div",{staticClass:"h100"},[t("div",{staticClass:"columns h100"},[t("div",{staticClass:"column is-half"},[t("MerchantMap")],1),t("div",{staticClass:"column is-half pt5 pl5"},[e.can("approve merchants")?t("div",{staticClass:"mb3"},[t("button",{staticClass:"button is-small is-info",on:{click:function(a){return e.changeComponent("CreateMerchant")}}},[e._v("Create Merchants")]),t("button",{staticClass:"button is-small is-warning",on:{click:function(a){return e.changeComponent("ApproveMerchant")}}},[e._v("Approve Merchants")])]):e._e(),t(e.selectedComponent,{tag:"component"})],1)])])},A=[],T=n($,N,A,!1,null,"becb4ef6");const F=T.exports;export{F as default}; diff --git a/public/build/assets/Merchants-BNZkaw7y.js b/public/build/assets/Merchants-sFxzBn9N.js similarity index 98% rename from public/build/assets/Merchants-BNZkaw7y.js rename to public/build/assets/Merchants-sFxzBn9N.js index 06c668120..ca5271149 100644 --- a/public/build/assets/Merchants-BNZkaw7y.js +++ b/public/build/assets/Merchants-sFxzBn9N.js @@ -1 +1 @@ -import{n as a}from"./app-DpqRw90N.js";/* empty css */const o={name:"Merchants",data(){return{storeName:"",storeAddress:"",storeEmail:"",storePhone:"",storeWebsite:"",message:"",formSubmitted:!1}},methods:{submitForm(){this.formSubmitted=!0,axios.post("/api/littercoin/merchants",{name:this.storeName,address:this.storeAddress,email:this.storeEmail,phone:this.storePhone,website:this.storeWebsite,message:this.message}).then(r=>{console.log("merchants",r)}).catch(r=>{console.log("merchants",r)})}}};var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"container p-10-mob"},[t("div",[t("p",{staticClass:"title is-2 has-text-centered mb1",staticStyle:{"margin-top":"1em"}},[e._v(" Become a Littercoin partner! ")]),e._m(0),t("transition",{attrs:{name:"fade"}},[e.formSubmitted?t("div",[t("p",{staticClass:"has-text-centered"},[e._v("Thank you for submitting your store's information!")])]):e._e()]),e.formSubmitted?e._e():t("form",{on:{submit:function(s){return s.preventDefault(),e.submitForm.apply(null,arguments)}}},[t("div",{staticClass:"form-group"},[t("label",{attrs:{for:"store-name"}},[e._v("Store Name:")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.storeName,expression:"storeName"}],attrs:{placeholder:"Your stores name",type:"text",id:"store-name",name:"store-name",required:""},domProps:{value:e.storeName},on:{input:function(s){s.target.composing||(e.storeName=s.target.value)}}})]),t("div",{staticClass:"form-group"},[t("label",{attrs:{for:"store-address"}},[e._v("Store Address:")]),t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.storeAddress,expression:"storeAddress"}],attrs:{placeholder:"Your stores address",id:"store-address",name:"store-address",required:""},domProps:{value:e.storeAddress},on:{input:function(s){s.target.composing||(e.storeAddress=s.target.value)}}})]),t("div",{staticClass:"form-group"},[t("label",{attrs:{for:"store-email"}},[e._v("Email:")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.storeEmail,expression:"storeEmail"}],attrs:{placeholder:"Your stores email",type:"email",id:"store-email",name:"store-email",required:""},domProps:{value:e.storeEmail},on:{input:function(s){s.target.composing||(e.storeEmail=s.target.value)}}})]),t("div",{staticClass:"form-group"},[t("label",{attrs:{for:"store-phone"}},[e._v("Phone:")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.storePhone,expression:"storePhone"}],attrs:{placeholder:"Your phone",type:"tel",id:"store-phone",name:"store-phone",required:""},domProps:{value:e.storePhone},on:{input:function(s){s.target.composing||(e.storePhone=s.target.value)}}})]),t("div",{staticClass:"form-group"},[t("label",{attrs:{for:"store-website"}},[e._v("Website:")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.storeWebsite,expression:"storeWebsite"}],attrs:{placeholder:"Your stores website",type:"url",id:"store-website",name:"store-website"},domProps:{value:e.storeWebsite},on:{input:function(s){s.target.composing||(e.storeWebsite=s.target.value)}}})]),t("div",{staticClass:"form-group"},[t("label",{attrs:{for:"message"}},[e._v("Message:")]),t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.message,expression:"message"}],attrs:{placeholder:"Write us a message",id:"message",name:"message"},domProps:{value:e.message},on:{input:function(s){s.target.composing||(e.message=s.target.value)}}})]),e._m(1)])],1)])},n=[function(){var r=this,e=r._self._c;return e("div",{staticClass:"has-text-centered"},[e("p",[r._v(" Be a zero-waste hero, join us and accept Littercoin ")]),e("p",{staticClass:"mb1"},[r._v(" It's like getting paid to save the planet! ")])])},function(){var r=this,e=r._self._c;return e("div",{staticClass:"flex jc",staticStyle:{"padding-bottom":"3em"}},[e("button",{attrs:{type:"submit"}},[r._v("Submit")])])}],m=a(o,i,n,!1,null,"7797c8ba");const u=m.exports;export{u as default}; +import{n as a}from"./app-DGjOB0Vc.js";/* empty css */const o={name:"Merchants",data(){return{storeName:"",storeAddress:"",storeEmail:"",storePhone:"",storeWebsite:"",message:"",formSubmitted:!1}},methods:{submitForm(){this.formSubmitted=!0,axios.post("/api/littercoin/merchants",{name:this.storeName,address:this.storeAddress,email:this.storeEmail,phone:this.storePhone,website:this.storeWebsite,message:this.message}).then(r=>{console.log("merchants",r)}).catch(r=>{console.log("merchants",r)})}}};var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"container p-10-mob"},[t("div",[t("p",{staticClass:"title is-2 has-text-centered mb1",staticStyle:{"margin-top":"1em"}},[e._v(" Become a Littercoin partner! ")]),e._m(0),t("transition",{attrs:{name:"fade"}},[e.formSubmitted?t("div",[t("p",{staticClass:"has-text-centered"},[e._v("Thank you for submitting your store's information!")])]):e._e()]),e.formSubmitted?e._e():t("form",{on:{submit:function(s){return s.preventDefault(),e.submitForm.apply(null,arguments)}}},[t("div",{staticClass:"form-group"},[t("label",{attrs:{for:"store-name"}},[e._v("Store Name:")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.storeName,expression:"storeName"}],attrs:{placeholder:"Your stores name",type:"text",id:"store-name",name:"store-name",required:""},domProps:{value:e.storeName},on:{input:function(s){s.target.composing||(e.storeName=s.target.value)}}})]),t("div",{staticClass:"form-group"},[t("label",{attrs:{for:"store-address"}},[e._v("Store Address:")]),t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.storeAddress,expression:"storeAddress"}],attrs:{placeholder:"Your stores address",id:"store-address",name:"store-address",required:""},domProps:{value:e.storeAddress},on:{input:function(s){s.target.composing||(e.storeAddress=s.target.value)}}})]),t("div",{staticClass:"form-group"},[t("label",{attrs:{for:"store-email"}},[e._v("Email:")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.storeEmail,expression:"storeEmail"}],attrs:{placeholder:"Your stores email",type:"email",id:"store-email",name:"store-email",required:""},domProps:{value:e.storeEmail},on:{input:function(s){s.target.composing||(e.storeEmail=s.target.value)}}})]),t("div",{staticClass:"form-group"},[t("label",{attrs:{for:"store-phone"}},[e._v("Phone:")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.storePhone,expression:"storePhone"}],attrs:{placeholder:"Your phone",type:"tel",id:"store-phone",name:"store-phone",required:""},domProps:{value:e.storePhone},on:{input:function(s){s.target.composing||(e.storePhone=s.target.value)}}})]),t("div",{staticClass:"form-group"},[t("label",{attrs:{for:"store-website"}},[e._v("Website:")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.storeWebsite,expression:"storeWebsite"}],attrs:{placeholder:"Your stores website",type:"url",id:"store-website",name:"store-website"},domProps:{value:e.storeWebsite},on:{input:function(s){s.target.composing||(e.storeWebsite=s.target.value)}}})]),t("div",{staticClass:"form-group"},[t("label",{attrs:{for:"message"}},[e._v("Message:")]),t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.message,expression:"message"}],attrs:{placeholder:"Write us a message",id:"message",name:"message"},domProps:{value:e.message},on:{input:function(s){s.target.composing||(e.message=s.target.value)}}})]),e._m(1)])],1)])},n=[function(){var r=this,e=r._self._c;return e("div",{staticClass:"has-text-centered"},[e("p",[r._v(" Be a zero-waste hero, join us and accept Littercoin ")]),e("p",{staticClass:"mb1"},[r._v(" It's like getting paid to save the planet! ")])])},function(){var r=this,e=r._self._c;return e("div",{staticClass:"flex jc",staticStyle:{"padding-bottom":"3em"}},[e("button",{attrs:{type:"submit"}},[r._v("Submit")])])}],m=a(o,i,n,!1,null,"7797c8ba");const u=m.exports;export{u as default}; diff --git a/public/build/assets/MyUploads-CTx1CJ5B.js b/public/build/assets/MyUploads-9HtKM7WO.js similarity index 75% rename from public/build/assets/MyUploads-CTx1CJ5B.js rename to public/build/assets/MyUploads-9HtKM7WO.js index 36fe5e9a0..2ad1acf9c 100644 --- a/public/build/assets/MyUploads-CTx1CJ5B.js +++ b/public/build/assets/MyUploads-9HtKM7WO.js @@ -1 +1 @@ -import{L as e}from"./LitterTable-D4FISOEt.js";import{n as o}from"./app-DpqRw90N.js";/* empty css */const s={name:"MyUploads",components:{LitterTable:e},async created(){await this.$store.dispatch("GET_MY_PHOTOS")},computed:{paginatedPhotos(){return this.$store.state.photos.myUploadsPaginate}}};var n=function(){var t=this,a=t._self._c;return a("LitterTable",{attrs:{title:"My Uploads",paginatedPhotos:t.paginatedPhotos,action:"GET_MY_PHOTOS"}})},r=[],i=o(s,n,r,!1,null,null);const d=i.exports;export{d as default}; +import{L as e}from"./LitterTable-C1e1cJcP.js";import{n as o}from"./app-DGjOB0Vc.js";/* empty css */const s={name:"MyUploads",components:{LitterTable:e},async created(){await this.$store.dispatch("GET_MY_PHOTOS")},computed:{paginatedPhotos(){return this.$store.state.photos.myUploadsPaginate}}};var n=function(){var t=this,a=t._self._c;return a("LitterTable",{attrs:{title:"My Uploads",paginatedPhotos:t.paginatedPhotos,action:"GET_MY_PHOTOS"}})},r=[],i=o(s,n,r,!1,null,null);const d=i.exports;export{d as default}; diff --git a/public/build/assets/Payments-C35ltisY.js b/public/build/assets/Payments-B5uzbkav.js similarity index 95% rename from public/build/assets/Payments-C35ltisY.js rename to public/build/assets/Payments-B5uzbkav.js index 3cdc28a76..5b474e472 100644 --- a/public/build/assets/Payments-C35ltisY.js +++ b/public/build/assets/Payments-B5uzbkav.js @@ -1 +1 @@ -import{L as n}from"./vue-loading-Bl53SHQy.js";/* empty css */import{n as a}from"./app-DpqRw90N.js";/* empty css */const r={name:"Payments",components:{Loading:n},async created(){this.loading=!0,this.$store.state.plans.plans.length===0&&await this.$store.dispatch("GET_PLANS"),this.$store.state.user.user.stripe_id&&await this.$store.dispatch("GET_USERS_SUBSCRIPTIONS"),this.loading=!1},data(){return{loading:!0,plan:"Startup"}},computed:{check_for_stripe_id(){return this.$store.state.user.user.stripe_id},current_plan(){return this.plans.find(e=>e.name===this.subscription.name)},plans(){return this.$store.state.plans.plans},subscription(){return this.$store.state.subscriber.subscription}},methods:{async cancel_active_subscription(){await this.$store.dispatch("DELETE_ACTIVE_SUBSCRIPTION")},async resubscribe(){await this.$store.dispatch("RESUBSCRIBE",this.plan)},subscribe(){console.log("todo - load stripe")}}};var o=function(){var t=this,s=t._self._c;return s("div",{staticStyle:{"padding-left":"1em","padding-right":"1em"}},[s("h1",{staticClass:"title is-4"},[t._v(t._s(t.$t("settings.payments.finance")))]),s("hr"),s("br"),s("div",{staticClass:"columns"},[t.loading?s("loading",{attrs:{active:t.loading,"is-full-page":!0},on:{"update:active":function(i){t.loading=i}}}):s("div",{staticClass:"column one-third is-offset-1"},[t.check_for_stripe_id?s("div",[t.subscription.stripe_status==="active"?s("div",[s("p",[t._v("You are currently subscribed to the "),s("strong",{staticClass:"green"},[t._v(t._s(t.subscription.name))]),t._v(" plan")]),s("p",{staticClass:"mb1"},[t._v("Helping us with "),s("strong",{staticClass:"green"},[t._v("€"+t._s(t.current_plan.price/100))]),t._v(" per month")]),s("p",[t._v("Thank you for helping the development of OpenLitterMap!")]),s("p",{staticClass:"mb1"},[t._v("You can change or cancel your subscription at any time.")]),s("button",{staticClass:"button is-medium is-danger",on:{click:t.cancel_active_subscription}},[t._v("Cancel Subscription")])]):s("div",[s("p",{staticClass:"mb1"},[t._v("You have unsubscribed from "),s("strong",{staticClass:"green"},[t._v(t._s(t.subscription.name))])]),s("p",{staticClass:"mb1"},[t._v("Thank you for supporting the development of OpenLitterMap")]),s("p",[t._v("Please contact us if you would like to resubscribe, or else create a new account. Thanks!")])])]):s("div",[s("p",[t._v(t._s(t.$t("settings.payments.help")))]),s("ul",[s("li",[t._v("- "+t._s(t.$t("settings.payments.support")))]),s("li",[t._v("- "+t._s(t.$t("settings.payments.help-costs")))]),s("li",[t._v("- "+t._s(t.$t("settings.payments.help-hire")))]),s("li",[t._v("- "+t._s(t.$t("settings.payments.help-produce")))]),s("li",[t._v("- "+t._s(t.$t("settings.payments.help-write")))]),s("li",[t._v("- "+t._s(t.$t("settings.payments.help-outreach")))]),s("li",[t._v("- "+t._s(t.$t("settings.payments.help-incentivize")))]),s("li",[t._v("- "+t._s(t.$t("settings.payments.more-soon")))])]),s("button",{staticClass:"button is-medium is-primary",on:{click:t.subscribe}},[t._v(t._s(t.$t("settings.payments.click-to-support")))])])])],1)])},c=[],p=a(r,o,c,!1,null,null);const d=p.exports;export{d as default}; +import{L as n}from"./vue-loading-Kx5ngqlf.js";/* empty css */import{n as a}from"./app-DGjOB0Vc.js";/* empty css */const r={name:"Payments",components:{Loading:n},async created(){this.loading=!0,this.$store.state.plans.plans.length===0&&await this.$store.dispatch("GET_PLANS"),this.$store.state.user.user.stripe_id&&await this.$store.dispatch("GET_USERS_SUBSCRIPTIONS"),this.loading=!1},data(){return{loading:!0,plan:"Startup"}},computed:{check_for_stripe_id(){return this.$store.state.user.user.stripe_id},current_plan(){return this.plans.find(e=>e.name===this.subscription.name)},plans(){return this.$store.state.plans.plans},subscription(){return this.$store.state.subscriber.subscription}},methods:{async cancel_active_subscription(){await this.$store.dispatch("DELETE_ACTIVE_SUBSCRIPTION")},async resubscribe(){await this.$store.dispatch("RESUBSCRIBE",this.plan)},subscribe(){console.log("todo - load stripe")}}};var o=function(){var t=this,s=t._self._c;return s("div",{staticStyle:{"padding-left":"1em","padding-right":"1em"}},[s("h1",{staticClass:"title is-4"},[t._v(t._s(t.$t("settings.payments.finance")))]),s("hr"),s("br"),s("div",{staticClass:"columns"},[t.loading?s("loading",{attrs:{active:t.loading,"is-full-page":!0},on:{"update:active":function(i){t.loading=i}}}):s("div",{staticClass:"column one-third is-offset-1"},[t.check_for_stripe_id?s("div",[t.subscription.stripe_status==="active"?s("div",[s("p",[t._v("You are currently subscribed to the "),s("strong",{staticClass:"green"},[t._v(t._s(t.subscription.name))]),t._v(" plan")]),s("p",{staticClass:"mb1"},[t._v("Helping us with "),s("strong",{staticClass:"green"},[t._v("€"+t._s(t.current_plan.price/100))]),t._v(" per month")]),s("p",[t._v("Thank you for helping the development of OpenLitterMap!")]),s("p",{staticClass:"mb1"},[t._v("You can change or cancel your subscription at any time.")]),s("button",{staticClass:"button is-medium is-danger",on:{click:t.cancel_active_subscription}},[t._v("Cancel Subscription")])]):s("div",[s("p",{staticClass:"mb1"},[t._v("You have unsubscribed from "),s("strong",{staticClass:"green"},[t._v(t._s(t.subscription.name))])]),s("p",{staticClass:"mb1"},[t._v("Thank you for supporting the development of OpenLitterMap")]),s("p",[t._v("Please contact us if you would like to resubscribe, or else create a new account. Thanks!")])])]):s("div",[s("p",[t._v(t._s(t.$t("settings.payments.help")))]),s("ul",[s("li",[t._v("- "+t._s(t.$t("settings.payments.support")))]),s("li",[t._v("- "+t._s(t.$t("settings.payments.help-costs")))]),s("li",[t._v("- "+t._s(t.$t("settings.payments.help-hire")))]),s("li",[t._v("- "+t._s(t.$t("settings.payments.help-produce")))]),s("li",[t._v("- "+t._s(t.$t("settings.payments.help-write")))]),s("li",[t._v("- "+t._s(t.$t("settings.payments.help-outreach")))]),s("li",[t._v("- "+t._s(t.$t("settings.payments.help-incentivize")))]),s("li",[t._v("- "+t._s(t.$t("settings.payments.more-soon")))])]),s("button",{staticClass:"button is-medium is-primary",on:{click:t.subscribe}},[t._v(t._s(t.$t("settings.payments.click-to-support")))])])])],1)])},c=[],p=a(r,o,c,!1,null,null);const d=p.exports;export{d as default}; diff --git a/public/build/assets/PickedUp-BtD7Sfsj.js b/public/build/assets/PickedUp-D-geuGl2.js similarity index 95% rename from public/build/assets/PickedUp-BtD7Sfsj.js rename to public/build/assets/PickedUp-D-geuGl2.js index 2e29deeb7..2d6abbe14 100644 --- a/public/build/assets/PickedUp-BtD7Sfsj.js +++ b/public/build/assets/PickedUp-D-geuGl2.js @@ -1 +1 @@ -import{n as e}from"./app-DpqRw90N.js";/* empty css */const i={name:"PickedUp",data(){return{processing:!1}},methods:{async toggle(){this.processing=!0,await this.$store.dispatch("TOGGLE_LITTER_PICKED_UP_SETTING"),this.processing=!1}},computed:{button(){return this.processing?"button is-info is-loading":"button is-info"},picked_up(){return!this.$store.state.user.user.items_remaining},text(){return this.picked_up?"Your litter will be logged as picked up.":"Your litter is logged as not picked up."}}};var n=function(){var s=this,t=s._self._c;return t("div",{staticStyle:{"padding-left":"1em","padding-right":"1em"}},[t("h1",{staticClass:"title is-4"},[s._v(s._s(s.$t("settings.presence.do-you-pickup")))]),t("hr"),t("p",{staticClass:"mb1"},[s._v(s._s(s.$t("settings.presence.save-def-settings")))]),t("p",{staticClass:"mb1"},[s._v(s._s(s.$t("settings.presence.change-value-of-litter")))]),t("p",[s._v(s._s(s.$t("settings.presence.status")))]),t("br"),t("p",[t("b",[s._v(s._s(s.$t("settings.presence.toggle-presence"))+":")])]),t("p",[t("b",{style:s.picked_up?"color: green":"color: red"},[s._v(s._s(this.text))])]),t("br"),t("div",{staticClass:"columns"},[t("div",{staticClass:"column is-one-third is-offset-1"},[t("div",{staticClass:"row"},[t("button",{class:s.button,attrs:{disabled:s.processing},on:{click:s.toggle}},[s._v(s._s(s.$t("settings.presence.pickup?")))])])])])])},r=[],o=e(i,n,r,!1,null,null);const l=o.exports;export{l as default}; +import{n as e}from"./app-DGjOB0Vc.js";/* empty css */const i={name:"PickedUp",data(){return{processing:!1}},methods:{async toggle(){this.processing=!0,await this.$store.dispatch("TOGGLE_LITTER_PICKED_UP_SETTING"),this.processing=!1}},computed:{button(){return this.processing?"button is-info is-loading":"button is-info"},picked_up(){return!this.$store.state.user.user.items_remaining},text(){return this.picked_up?"Your litter will be logged as picked up.":"Your litter is logged as not picked up."}}};var n=function(){var s=this,t=s._self._c;return t("div",{staticStyle:{"padding-left":"1em","padding-right":"1em"}},[t("h1",{staticClass:"title is-4"},[s._v(s._s(s.$t("settings.presence.do-you-pickup")))]),t("hr"),t("p",{staticClass:"mb1"},[s._v(s._s(s.$t("settings.presence.save-def-settings")))]),t("p",{staticClass:"mb1"},[s._v(s._s(s.$t("settings.presence.change-value-of-litter")))]),t("p",[s._v(s._s(s.$t("settings.presence.status")))]),t("br"),t("p",[t("b",[s._v(s._s(s.$t("settings.presence.toggle-presence"))+":")])]),t("p",[t("b",{style:s.picked_up?"color: green":"color: red"},[s._v(s._s(this.text))])]),t("br"),t("div",{staticClass:"columns"},[t("div",{staticClass:"column is-one-third is-offset-1"},[t("div",{staticClass:"row"},[t("button",{class:s.button,attrs:{disabled:s.processing},on:{click:s.toggle}},[s._v(s._s(s.$t("settings.presence.pickup?")))])])])])])},r=[],o=e(i,n,r,!1,null,null);const l=o.exports;export{l as default}; diff --git a/public/build/assets/Privacy-B8KK08gb.js b/public/build/assets/Privacy-BscPAnSV.js similarity index 99% rename from public/build/assets/Privacy-B8KK08gb.js rename to public/build/assets/Privacy-BscPAnSV.js index 0bf29bdc7..9058f8388 100644 --- a/public/build/assets/Privacy-B8KK08gb.js +++ b/public/build/assets/Privacy-BscPAnSV.js @@ -1 +1 @@ -import{n as a}from"./app-DpqRw90N.js";/* empty css */const i={name:"Privacy"};var o=function(){var e=this;return e._self._c,e._m(0)},r=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"container"},[e("h1",[t._v("PLEASE READ CAREFULLY BEFORE USING OPENLITTERMAP.COM:")]),e("p",[e("i",[t._v(" Last updated: 14"),e("sup",[t._v("th")]),t._v(" April 2017 ")])]),e("br"),e("h1",[t._v("Privacy Policy of OpenLitterMap.com")]),e("br"),e("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. "),e("br"),e("br"),e("br"),t._v(" 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).")]),e("br"),e("br"),e("h3",[t._v("People under the age of 13")]),e("br"),e("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.")]),e("br"),e("h3",[t._v("People aged 13-17")]),e("br"),e("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.")]),e("br"),e("h3",{staticStyle:{color:"red"}},[t._v("If you require urgent medical treatment")]),e("br"),e("p",[e("b",[t._v("Please call 112, 999 or your appropriate emergency line and ask for an ambulance.")])]),e("br"),e("br"),e("h3",[t._v("We collect the following information:")]),e("br"),e("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) "),e("br"),t._v(" - The images you submit. "),e("br"),t._v(" - The metadata associated with the images. "),e("br"),t._v(" - The attribute information associated with each image. "),e("br"),t._v(" - Cumulate statistics and geostatistics based on the analysis of each and all images. ")]),e("br"),e("h3",[t._v("We do not collect the following information:")]),e("p",[e("br"),t._v(" - Cookies. "),e("br"),t._v(" - Your IP address. "),e("br"),t._v(" - The website you have come for, or are going to. "),e("br"),t._v(" - The type of browser you are using. "),e("br"),t._v(" - “Clickstream” data. "),e("br"),t._v(" - How you use this website. "),e("br")]),e("br"),e("h3",[t._v("Other people including 3rd parties may use the information you decide to make public accessible.")]),e("br"),e("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. ")]),e("br"),e("h3",[t._v("Security and your Password")]),e("br"),e("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")]),e("br"),e("h3",[t._v("Feedback")]),e("br"),e("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")])])}],n=a(i,o,r,!1,null,"f7be5479");const c=n.exports;export{c as default}; +import{n as a}from"./app-DGjOB0Vc.js";/* empty css */const i={name:"Privacy"};var o=function(){var e=this;return e._self._c,e._m(0)},r=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"container"},[e("h1",[t._v("PLEASE READ CAREFULLY BEFORE USING OPENLITTERMAP.COM:")]),e("p",[e("i",[t._v(" Last updated: 14"),e("sup",[t._v("th")]),t._v(" April 2017 ")])]),e("br"),e("h1",[t._v("Privacy Policy of OpenLitterMap.com")]),e("br"),e("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. "),e("br"),e("br"),e("br"),t._v(" 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).")]),e("br"),e("br"),e("h3",[t._v("People under the age of 13")]),e("br"),e("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.")]),e("br"),e("h3",[t._v("People aged 13-17")]),e("br"),e("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.")]),e("br"),e("h3",{staticStyle:{color:"red"}},[t._v("If you require urgent medical treatment")]),e("br"),e("p",[e("b",[t._v("Please call 112, 999 or your appropriate emergency line and ask for an ambulance.")])]),e("br"),e("br"),e("h3",[t._v("We collect the following information:")]),e("br"),e("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) "),e("br"),t._v(" - The images you submit. "),e("br"),t._v(" - The metadata associated with the images. "),e("br"),t._v(" - The attribute information associated with each image. "),e("br"),t._v(" - Cumulate statistics and geostatistics based on the analysis of each and all images. ")]),e("br"),e("h3",[t._v("We do not collect the following information:")]),e("p",[e("br"),t._v(" - Cookies. "),e("br"),t._v(" - Your IP address. "),e("br"),t._v(" - The website you have come for, or are going to. "),e("br"),t._v(" - The type of browser you are using. "),e("br"),t._v(" - “Clickstream” data. "),e("br"),t._v(" - How you use this website. "),e("br")]),e("br"),e("h3",[t._v("Other people including 3rd parties may use the information you decide to make public accessible.")]),e("br"),e("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. ")]),e("br"),e("h3",[t._v("Security and your Password")]),e("br"),e("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")]),e("br"),e("h3",[t._v("Feedback")]),e("br"),e("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")])])}],n=a(i,o,r,!1,null,"f7be5479");const c=n.exports;export{c as default}; diff --git a/public/build/assets/Privacy-C_8rYXtv.js b/public/build/assets/Privacy-DoyV9tEI.js similarity index 99% rename from public/build/assets/Privacy-C_8rYXtv.js rename to public/build/assets/Privacy-DoyV9tEI.js index de99818bc..4f5972eb9 100644 --- a/public/build/assets/Privacy-C_8rYXtv.js +++ b/public/build/assets/Privacy-DoyV9tEI.js @@ -1 +1 @@ -import{n as m}from"./app-DpqRw90N.js";/* empty css */const o={name:"MapsPrivacy",computed:{maps_name:{get(){return this.$store.getters.user.show_name_maps},set(c){this.$store.commit("changePrivacy",{column:"show_name_maps",v:c})}},maps_username:{get(){return this.$store.getters.user.show_username_maps},set(c){this.$store.commit("changePrivacy",{column:"show_username_maps",v:c})}}}};var l=function(){var e=this,a=e._self._c;return a("div",[a("h1",{staticClass:"title is-4"},[e._v(" "+e._s(e.$t("settings.privacy.maps"))+": ")]),a("div",{staticClass:"mb1"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.maps_name,expression:"maps_name"}],attrs:{id:"settings_maps_change_name",name:"settings_maps_change_name",type:"checkbox"},domProps:{checked:Array.isArray(e.maps_name)?e._i(e.maps_name,null)>-1:e.maps_name},on:{change:function(i){var s=e.maps_name,r=i.target,_=!!r.checked;if(Array.isArray(s)){var n=null,t=e._i(s,n);r.checked?t<0&&(e.maps_name=s.concat([n])):t>-1&&(e.maps_name=s.slice(0,t).concat(s.slice(t+1)))}else e.maps_name=_}}}),a("label",{staticClass:"checkbox",attrs:{for:"settings_maps_change_name"}},[e._v(" "+e._s(e.$t("settings.privacy.credit-name"))+" ")]),a("br"),a("input",{directives:[{name:"model",rawName:"v-model",value:e.maps_username,expression:"maps_username"}],attrs:{id:"settings_maps_change_username",name:"settings_maps_change_username",type:"checkbox"},domProps:{checked:Array.isArray(e.maps_username)?e._i(e.maps_username,null)>-1:e.maps_username},on:{change:function(i){var s=e.maps_username,r=i.target,_=!!r.checked;if(Array.isArray(s)){var n=null,t=e._i(s,n);r.checked?t<0&&(e.maps_username=s.concat([n])):t>-1&&(e.maps_username=s.slice(0,t).concat(s.slice(t+1)))}else e.maps_username=_}}}),a("label",{staticClass:"checkbox",attrs:{for:"settings_maps_change_username"}},[e._v(" "+e._s(e.$t("settings.privacy.credit-username"))+" ")])]),a("div",{staticClass:"mb1"},[e.maps_name&&e.maps_username?a("h1",{staticClass:"success-privacy-text"},[e._v(" Both your name and username will appear on each image you upload to the maps. ")]):e.maps_name&&!e.maps_username?a("h1",{staticClass:"success-privacy-text"},[e._v(" "+e._s(e.$t("settings.privacy.name-imgs-yes"))+" ")]):!e.maps_name&&e.maps_username?a("h1",{staticClass:"success-privacy-text"},[e._v(" "+e._s(e.$t("settings.privacy.username-imgs-yes"))+" ")]):!e.maps_name&&!e.maps_username?a("h1",{staticClass:"failed-privacy-text"},[e._v(" "+e._s(e.$t("settings.privacy.name-username-map-no"))+" ")]):e._e()])])},d=[],p=m(o,l,d,!1,null,null);const u=p.exports,y={name:"LeaderboardsPrivacy",computed:{leaderboard_name:{get(){return this.$store.getters.user.show_name},set(c){this.$store.commit("changePrivacy",{column:"show_name",v:c})}},leaderboard_username:{get(){return this.$store.getters.user.show_username},set(c){this.$store.commit("changePrivacy",{column:"show_username",v:c})}}}};var v=function(){var e=this,a=e._self._c;return a("div",[a("h1",{staticClass:"title is-4"},[e._v(" "+e._s(e.$t("settings.privacy.leaderboards"))+": ")]),a("div",{staticClass:"mb1"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.leaderboard_name,expression:"leaderboard_name"}],attrs:{id:"settings_privacy_leaderboards_name",name:"settings_privacy_leaderboards_name",type:"checkbox"},domProps:{checked:Array.isArray(e.leaderboard_name)?e._i(e.leaderboard_name,null)>-1:e.leaderboard_name},on:{change:function(i){var s=e.leaderboard_name,r=i.target,_=!!r.checked;if(Array.isArray(s)){var n=null,t=e._i(s,n);r.checked?t<0&&(e.leaderboard_name=s.concat([n])):t>-1&&(e.leaderboard_name=s.slice(0,t).concat(s.slice(t+1)))}else e.leaderboard_name=_}}}),a("label",{staticClass:"checkbox",attrs:{for:"settings_privacy_leaderboards_name"}},[e._v(" "+e._s(e.$t("settings.privacy.credit-my-name"))+" ")]),a("br"),a("input",{directives:[{name:"model",rawName:"v-model",value:e.leaderboard_username,expression:"leaderboard_username"}],attrs:{id:"settings_privacy_leaderboards_username",name:"settings_privacy_leaderboards_username",type:"checkbox"},domProps:{checked:Array.isArray(e.leaderboard_username)?e._i(e.leaderboard_username,null)>-1:e.leaderboard_username},on:{change:function(i){var s=e.leaderboard_username,r=i.target,_=!!r.checked;if(Array.isArray(s)){var n=null,t=e._i(s,n);r.checked?t<0&&(e.leaderboard_username=s.concat([n])):t>-1&&(e.leaderboard_username=s.slice(0,t).concat(s.slice(t+1)))}else e.leaderboard_username=_}}}),a("label",{staticClass:"checkbox",attrs:{for:"settings_privacy_leaderboards_username"}},[e._v(" "+e._s(e.$t("settings.privacy.credit-my-username"))+" ")])]),a("div",{staticClass:"mb1"},[e.leaderboard_name&&e.leaderboard_username?a("h1",{staticClass:"success-privacy-text"},[e._v(" Both your name and username will appear on the Leaderboards. Good luck! ")]):e.leaderboard_name&&!e.leaderboard_username?a("h1",{staticClass:"success-privacy-text"},[e._v(" "+e._s(e.$t("settings.privacy.name-leaderboards-yes"))+" ")]):!e.leaderboard_name&&e.leaderboard_username?a("h1",{staticClass:"success-privacy-text"},[e._v(" "+e._s(e.$t("settings.privacy.username-leaderboards-yes"))+" ")]):!e.leaderboard_name&&!e.leaderboard_username?a("h1",{staticClass:"failed-privacy-text"},[e._v(" "+e._s(e.$t("settings.privacy.name-username-leaderboards-no"))+" ")]):e._e()])])},h=[],g=m(y,v,h,!1,null,null);const b=g.exports,f={name:"CreatedByPrivacy",computed:{createdby_name:{get(){return this.$store.getters.user.show_name_createdby},set(c){this.$store.commit("changePrivacy",{column:"show_name_createdby",v:c})}},createdby_username:{get(){return this.$store.getters.user.show_username_createdby},set(c){this.$store.commit("changePrivacy",{column:"show_username_createdby",v:c})}}}};var C=function(){var e=this,a=e._self._c;return a("div",[a("h1",{staticClass:"title is-4"},[e._v(" "+e._s(e.$t("settings.privacy.created-by"))+": ")]),a("div",{staticClass:"mb1"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.createdby_name,expression:"createdby_name"}],attrs:{id:"settings_privacy_createdby_name",name:"settings_privacy_createdby_name",type:"checkbox"},domProps:{checked:Array.isArray(e.createdby_name)?e._i(e.createdby_name,null)>-1:e.createdby_name},on:{change:function(i){var s=e.createdby_name,r=i.target,_=!!r.checked;if(Array.isArray(s)){var n=null,t=e._i(s,n);r.checked?t<0&&(e.createdby_name=s.concat([n])):t>-1&&(e.createdby_name=s.slice(0,t).concat(s.slice(t+1)))}else e.createdby_name=_}}}),a("label",{staticClass:"checkbox",attrs:{for:"settings_privacy_createdby_name"}},[e._v(" "+e._s(e.$t("settings.privacy.credit-name"))+" ")]),a("br"),a("input",{directives:[{name:"model",rawName:"v-model",value:e.createdby_username,expression:"createdby_username"}],attrs:{id:"settings_privacy_createdby_username",name:"settings_privacy_createdby_username",type:"checkbox"},domProps:{checked:Array.isArray(e.createdby_username)?e._i(e.createdby_username,null)>-1:e.createdby_username},on:{change:function(i){var s=e.createdby_username,r=i.target,_=!!r.checked;if(Array.isArray(s)){var n=null,t=e._i(s,n);r.checked?t<0&&(e.createdby_username=s.concat([n])):t>-1&&(e.createdby_username=s.slice(0,t).concat(s.slice(t+1)))}else e.createdby_username=_}}}),a("label",{staticClass:"checkbox",attrs:{for:"settings_privacy_createdby_username"}},[e._v(" "+e._s(e.$t("settings.privacy.credit-username"))+" ")])]),a("div",{staticClass:"mb1"},[e.createdby_name&&e.createdby_username?a("h1",{staticClass:"success-privacy-text"},[e._v(" Both your name and username will appear in the Created By section of any new locations you create by being the first to upload. ")]):e.createdby_name&&!e.createdby_username?a("h1",{staticClass:"success-privacy-text"},[e._v(" "+e._s(e.$t("settings.privacy.name-locations-yes"))+" ")]):!e.createdby_name&&e.createdby_username?a("h1",{staticClass:"success-privacy-text"},[e._v(" "+e._s(e.$t("settings.privacy.username-locations-yes"))+" ")]):!e.createdby_name&&!e.createdby_username?a("h1",{staticClass:"failed-privacy-text"},[e._v(" "+e._s(e.$t("settings.privacy.name-username-locations-yes"))+" ")]):e._e()])])},x=[],k=m(f,C,x,!1,null,null);const $=k.exports,P={name:"PreventOthersTaggingMyPhotos",computed:{prevent_others_tagging_my_photos:{get(){return this.$store.getters.user.prevent_others_tagging_my_photos},set(c){this.$store.commit("changePrivacy",{column:"prevent_others_tagging_my_photos",v:c})}}}};var A=function(){var e=this,a=e._self._c;return a("div",[a("h1",{staticClass:"title is-4"},[e._v(" Prevent others tagging my photos: ")]),a("div",{staticClass:"mb1"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.prevent_others_tagging_my_photos,expression:"prevent_others_tagging_my_photos"}],attrs:{id:"settings_privacy_prevent_others_tagging_my_photos",name:"settings_privacy_prevent_others_tagging_my_photos",type:"checkbox"},domProps:{checked:Array.isArray(e.prevent_others_tagging_my_photos)?e._i(e.prevent_others_tagging_my_photos,null)>-1:e.prevent_others_tagging_my_photos},on:{change:function(i){var s=e.prevent_others_tagging_my_photos,r=i.target,_=!!r.checked;if(Array.isArray(s)){var n=null,t=e._i(s,n);r.checked?t<0&&(e.prevent_others_tagging_my_photos=s.concat([n])):t>-1&&(e.prevent_others_tagging_my_photos=s.slice(0,t).concat(s.slice(t+1)))}else e.prevent_others_tagging_my_photos=_}}}),a("label",{staticClass:"checkbox",attrs:{for:"settings_privacy_prevent_others_tagging_my_photos"}},[e._v(" Prevent others tagging my photos ")])])])},w=[],N=m(P,A,w,!1,null,null);const B=N.exports,M={name:"Privacy",components:{PreventOthersTaggingMyPhotos:B,MapsPrivacy:u,LeaderboardsPrivacy:b,CreatedByPrivacy:$},data(){return{processing:!1}},methods:{async submit(){this.processing=!0,await this.$store.dispatch("SAVE_PRIVACY_SETTINGS"),this.processing=!1}}};var R=function(){var e=this,a=e._self._c;return a("div",{staticStyle:{"padding-left":"1em","padding-right":"1em"}},[a("h1",{staticClass:"title is-4"},[e._v(" "+e._s(e.$t("settings.privacy.change-privacy"))+" ")]),a("hr"),a("br"),a("div",{staticClass:"columns"},[a("div",{staticClass:"column one-third is-offset-1"},[a("div",{staticClass:"field"},[a("MapsPrivacy"),a("LeaderboardsPrivacy"),a("CreatedByPrivacy"),a("PreventOthersTaggingMyPhotos")],1),a("button",{staticClass:"button is-medium is-info",class:e.processing?"is-loading":"",attrs:{disabled:e.processing},on:{click:e.submit}},[e._v(" "+e._s(e.$t("settings.privacy.update"))+" ")])])])])},F=[],T=m(M,R,F,!1,null,null);const O=T.exports;export{O as default}; +import{n as m}from"./app-DGjOB0Vc.js";/* empty css */const o={name:"MapsPrivacy",computed:{maps_name:{get(){return this.$store.getters.user.show_name_maps},set(c){this.$store.commit("changePrivacy",{column:"show_name_maps",v:c})}},maps_username:{get(){return this.$store.getters.user.show_username_maps},set(c){this.$store.commit("changePrivacy",{column:"show_username_maps",v:c})}}}};var l=function(){var e=this,a=e._self._c;return a("div",[a("h1",{staticClass:"title is-4"},[e._v(" "+e._s(e.$t("settings.privacy.maps"))+": ")]),a("div",{staticClass:"mb1"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.maps_name,expression:"maps_name"}],attrs:{id:"settings_maps_change_name",name:"settings_maps_change_name",type:"checkbox"},domProps:{checked:Array.isArray(e.maps_name)?e._i(e.maps_name,null)>-1:e.maps_name},on:{change:function(i){var s=e.maps_name,r=i.target,_=!!r.checked;if(Array.isArray(s)){var n=null,t=e._i(s,n);r.checked?t<0&&(e.maps_name=s.concat([n])):t>-1&&(e.maps_name=s.slice(0,t).concat(s.slice(t+1)))}else e.maps_name=_}}}),a("label",{staticClass:"checkbox",attrs:{for:"settings_maps_change_name"}},[e._v(" "+e._s(e.$t("settings.privacy.credit-name"))+" ")]),a("br"),a("input",{directives:[{name:"model",rawName:"v-model",value:e.maps_username,expression:"maps_username"}],attrs:{id:"settings_maps_change_username",name:"settings_maps_change_username",type:"checkbox"},domProps:{checked:Array.isArray(e.maps_username)?e._i(e.maps_username,null)>-1:e.maps_username},on:{change:function(i){var s=e.maps_username,r=i.target,_=!!r.checked;if(Array.isArray(s)){var n=null,t=e._i(s,n);r.checked?t<0&&(e.maps_username=s.concat([n])):t>-1&&(e.maps_username=s.slice(0,t).concat(s.slice(t+1)))}else e.maps_username=_}}}),a("label",{staticClass:"checkbox",attrs:{for:"settings_maps_change_username"}},[e._v(" "+e._s(e.$t("settings.privacy.credit-username"))+" ")])]),a("div",{staticClass:"mb1"},[e.maps_name&&e.maps_username?a("h1",{staticClass:"success-privacy-text"},[e._v(" Both your name and username will appear on each image you upload to the maps. ")]):e.maps_name&&!e.maps_username?a("h1",{staticClass:"success-privacy-text"},[e._v(" "+e._s(e.$t("settings.privacy.name-imgs-yes"))+" ")]):!e.maps_name&&e.maps_username?a("h1",{staticClass:"success-privacy-text"},[e._v(" "+e._s(e.$t("settings.privacy.username-imgs-yes"))+" ")]):!e.maps_name&&!e.maps_username?a("h1",{staticClass:"failed-privacy-text"},[e._v(" "+e._s(e.$t("settings.privacy.name-username-map-no"))+" ")]):e._e()])])},d=[],p=m(o,l,d,!1,null,null);const u=p.exports,y={name:"LeaderboardsPrivacy",computed:{leaderboard_name:{get(){return this.$store.getters.user.show_name},set(c){this.$store.commit("changePrivacy",{column:"show_name",v:c})}},leaderboard_username:{get(){return this.$store.getters.user.show_username},set(c){this.$store.commit("changePrivacy",{column:"show_username",v:c})}}}};var v=function(){var e=this,a=e._self._c;return a("div",[a("h1",{staticClass:"title is-4"},[e._v(" "+e._s(e.$t("settings.privacy.leaderboards"))+": ")]),a("div",{staticClass:"mb1"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.leaderboard_name,expression:"leaderboard_name"}],attrs:{id:"settings_privacy_leaderboards_name",name:"settings_privacy_leaderboards_name",type:"checkbox"},domProps:{checked:Array.isArray(e.leaderboard_name)?e._i(e.leaderboard_name,null)>-1:e.leaderboard_name},on:{change:function(i){var s=e.leaderboard_name,r=i.target,_=!!r.checked;if(Array.isArray(s)){var n=null,t=e._i(s,n);r.checked?t<0&&(e.leaderboard_name=s.concat([n])):t>-1&&(e.leaderboard_name=s.slice(0,t).concat(s.slice(t+1)))}else e.leaderboard_name=_}}}),a("label",{staticClass:"checkbox",attrs:{for:"settings_privacy_leaderboards_name"}},[e._v(" "+e._s(e.$t("settings.privacy.credit-my-name"))+" ")]),a("br"),a("input",{directives:[{name:"model",rawName:"v-model",value:e.leaderboard_username,expression:"leaderboard_username"}],attrs:{id:"settings_privacy_leaderboards_username",name:"settings_privacy_leaderboards_username",type:"checkbox"},domProps:{checked:Array.isArray(e.leaderboard_username)?e._i(e.leaderboard_username,null)>-1:e.leaderboard_username},on:{change:function(i){var s=e.leaderboard_username,r=i.target,_=!!r.checked;if(Array.isArray(s)){var n=null,t=e._i(s,n);r.checked?t<0&&(e.leaderboard_username=s.concat([n])):t>-1&&(e.leaderboard_username=s.slice(0,t).concat(s.slice(t+1)))}else e.leaderboard_username=_}}}),a("label",{staticClass:"checkbox",attrs:{for:"settings_privacy_leaderboards_username"}},[e._v(" "+e._s(e.$t("settings.privacy.credit-my-username"))+" ")])]),a("div",{staticClass:"mb1"},[e.leaderboard_name&&e.leaderboard_username?a("h1",{staticClass:"success-privacy-text"},[e._v(" Both your name and username will appear on the Leaderboards. Good luck! ")]):e.leaderboard_name&&!e.leaderboard_username?a("h1",{staticClass:"success-privacy-text"},[e._v(" "+e._s(e.$t("settings.privacy.name-leaderboards-yes"))+" ")]):!e.leaderboard_name&&e.leaderboard_username?a("h1",{staticClass:"success-privacy-text"},[e._v(" "+e._s(e.$t("settings.privacy.username-leaderboards-yes"))+" ")]):!e.leaderboard_name&&!e.leaderboard_username?a("h1",{staticClass:"failed-privacy-text"},[e._v(" "+e._s(e.$t("settings.privacy.name-username-leaderboards-no"))+" ")]):e._e()])])},h=[],g=m(y,v,h,!1,null,null);const b=g.exports,f={name:"CreatedByPrivacy",computed:{createdby_name:{get(){return this.$store.getters.user.show_name_createdby},set(c){this.$store.commit("changePrivacy",{column:"show_name_createdby",v:c})}},createdby_username:{get(){return this.$store.getters.user.show_username_createdby},set(c){this.$store.commit("changePrivacy",{column:"show_username_createdby",v:c})}}}};var C=function(){var e=this,a=e._self._c;return a("div",[a("h1",{staticClass:"title is-4"},[e._v(" "+e._s(e.$t("settings.privacy.created-by"))+": ")]),a("div",{staticClass:"mb1"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.createdby_name,expression:"createdby_name"}],attrs:{id:"settings_privacy_createdby_name",name:"settings_privacy_createdby_name",type:"checkbox"},domProps:{checked:Array.isArray(e.createdby_name)?e._i(e.createdby_name,null)>-1:e.createdby_name},on:{change:function(i){var s=e.createdby_name,r=i.target,_=!!r.checked;if(Array.isArray(s)){var n=null,t=e._i(s,n);r.checked?t<0&&(e.createdby_name=s.concat([n])):t>-1&&(e.createdby_name=s.slice(0,t).concat(s.slice(t+1)))}else e.createdby_name=_}}}),a("label",{staticClass:"checkbox",attrs:{for:"settings_privacy_createdby_name"}},[e._v(" "+e._s(e.$t("settings.privacy.credit-name"))+" ")]),a("br"),a("input",{directives:[{name:"model",rawName:"v-model",value:e.createdby_username,expression:"createdby_username"}],attrs:{id:"settings_privacy_createdby_username",name:"settings_privacy_createdby_username",type:"checkbox"},domProps:{checked:Array.isArray(e.createdby_username)?e._i(e.createdby_username,null)>-1:e.createdby_username},on:{change:function(i){var s=e.createdby_username,r=i.target,_=!!r.checked;if(Array.isArray(s)){var n=null,t=e._i(s,n);r.checked?t<0&&(e.createdby_username=s.concat([n])):t>-1&&(e.createdby_username=s.slice(0,t).concat(s.slice(t+1)))}else e.createdby_username=_}}}),a("label",{staticClass:"checkbox",attrs:{for:"settings_privacy_createdby_username"}},[e._v(" "+e._s(e.$t("settings.privacy.credit-username"))+" ")])]),a("div",{staticClass:"mb1"},[e.createdby_name&&e.createdby_username?a("h1",{staticClass:"success-privacy-text"},[e._v(" Both your name and username will appear in the Created By section of any new locations you create by being the first to upload. ")]):e.createdby_name&&!e.createdby_username?a("h1",{staticClass:"success-privacy-text"},[e._v(" "+e._s(e.$t("settings.privacy.name-locations-yes"))+" ")]):!e.createdby_name&&e.createdby_username?a("h1",{staticClass:"success-privacy-text"},[e._v(" "+e._s(e.$t("settings.privacy.username-locations-yes"))+" ")]):!e.createdby_name&&!e.createdby_username?a("h1",{staticClass:"failed-privacy-text"},[e._v(" "+e._s(e.$t("settings.privacy.name-username-locations-yes"))+" ")]):e._e()])])},x=[],k=m(f,C,x,!1,null,null);const $=k.exports,P={name:"PreventOthersTaggingMyPhotos",computed:{prevent_others_tagging_my_photos:{get(){return this.$store.getters.user.prevent_others_tagging_my_photos},set(c){this.$store.commit("changePrivacy",{column:"prevent_others_tagging_my_photos",v:c})}}}};var A=function(){var e=this,a=e._self._c;return a("div",[a("h1",{staticClass:"title is-4"},[e._v(" Prevent others tagging my photos: ")]),a("div",{staticClass:"mb1"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.prevent_others_tagging_my_photos,expression:"prevent_others_tagging_my_photos"}],attrs:{id:"settings_privacy_prevent_others_tagging_my_photos",name:"settings_privacy_prevent_others_tagging_my_photos",type:"checkbox"},domProps:{checked:Array.isArray(e.prevent_others_tagging_my_photos)?e._i(e.prevent_others_tagging_my_photos,null)>-1:e.prevent_others_tagging_my_photos},on:{change:function(i){var s=e.prevent_others_tagging_my_photos,r=i.target,_=!!r.checked;if(Array.isArray(s)){var n=null,t=e._i(s,n);r.checked?t<0&&(e.prevent_others_tagging_my_photos=s.concat([n])):t>-1&&(e.prevent_others_tagging_my_photos=s.slice(0,t).concat(s.slice(t+1)))}else e.prevent_others_tagging_my_photos=_}}}),a("label",{staticClass:"checkbox",attrs:{for:"settings_privacy_prevent_others_tagging_my_photos"}},[e._v(" Prevent others tagging my photos ")])])])},w=[],N=m(P,A,w,!1,null,null);const B=N.exports,M={name:"Privacy",components:{PreventOthersTaggingMyPhotos:B,MapsPrivacy:u,LeaderboardsPrivacy:b,CreatedByPrivacy:$},data(){return{processing:!1}},methods:{async submit(){this.processing=!0,await this.$store.dispatch("SAVE_PRIVACY_SETTINGS"),this.processing=!1}}};var R=function(){var e=this,a=e._self._c;return a("div",{staticStyle:{"padding-left":"1em","padding-right":"1em"}},[a("h1",{staticClass:"title is-4"},[e._v(" "+e._s(e.$t("settings.privacy.change-privacy"))+" ")]),a("hr"),a("br"),a("div",{staticClass:"columns"},[a("div",{staticClass:"column one-third is-offset-1"},[a("div",{staticClass:"field"},[a("MapsPrivacy"),a("LeaderboardsPrivacy"),a("CreatedByPrivacy"),a("PreventOthersTaggingMyPhotos")],1),a("button",{staticClass:"button is-medium is-info",class:e.processing?"is-loading":"",attrs:{disabled:e.processing},on:{click:e.submit}},[e._v(" "+e._s(e.$t("settings.privacy.update"))+" ")])])])])},F=[],T=m(M,R,F,!1,null,null);const O=T.exports;export{O as default}; diff --git a/public/build/assets/Profile-DWB6o1qE.js b/public/build/assets/Profile-WBTeH2S1.js similarity index 97% rename from public/build/assets/Profile-DWB6o1qE.js rename to public/build/assets/Profile-WBTeH2S1.js index df15400fb..35e7fc0f0 100644 --- a/public/build/assets/Profile-DWB6o1qE.js +++ b/public/build/assets/Profile-WBTeH2S1.js @@ -1 +1 @@ -import{h as p}from"./moment-zH0z38ay.js";import{n as r,a as _}from"./app-DpqRw90N.js";import{_ as m,a as u}from"./phone-lg_u1nSM.js";import{R as f,L as h}from"./BaseCharts-JIcpo9yP.js";import{L as i,h as c}from"./mapHelpers-BwpDWaTU.js";import"./leaflet.timedimension.control-CN77PDZq.js";import{F as d}from"./FunctionalCalendar-CGa8lc5b.js";/* empty css */const v={name:"ProfileWelcome",computed:{name(){return this.user.user.name},totalUsers(){return this.user.totalUsers},usersPosition(){return p.localeData().ordinal(this.user.position)},user(){return this.$store.state.user}}};var g=function(){var e=this,t=e._self._c;return t("div",{staticClass:"profile-card"},[t("p",{staticClass:"mb1"},[e._v(" "+e._s(e.$t("profile.dashboard.welcome"))+", "+e._s(e.name)+" ")]),t("p",{staticClass:"mb1"},[e._v(" "+e._s(e.$t("profile.dashboard.out-of",{total:e.totalUsers}))+" ")]),t("p",{staticClass:"mb1 is-secondary"},[e._v(" "+e._s(e.$t("profile.dashboard.rank",{rank:e.usersPosition}))+" ")]),t("p",{staticClass:"mb1"},[e._v(" Next Littercoin: "+e._s(this.user.user.littercoin_progress)+"% ")]),t("p",[e._v(" Total Littercoin: "+e._s(this.user.user.total_littercoin)+" ")])])},$=[],b=r(v,g,$,!1,null,"f145dc52");const C=b.exports,y={name:"ProfileStats",computed:{photoPercent(){return this.user.photoPercent},tagPercent(){return this.user.tagPercent},userTagsCount(){return this.user.user.total_tags},userPhotoCount(){return this.user.user.total_images},user(){return this.$store.state.user}}};var P=function(){var e=this,t=e._self._c;return t("div",{staticClass:"profile-card"},[t("p",{staticClass:"mb1"},[e._v(e._s(e.$t("profile.dashboard.have-uploaded")))]),t("div",{staticClass:"flex"},[t("div",{staticClass:"profile-stat-card"},[t("img",{attrs:{src:m}}),t("div",[t("p",{staticClass:"profile-stat"},[e._v(e._s(e.userPhotoCount))]),t("p",{staticClass:"profile-text"},[e._v(e._s(e.$t("profile.dashboard.photos")))])])]),t("div",{staticClass:"profile-stat-card"},[t("img",{attrs:{src:u}}),t("div",[t("p",{staticClass:"profile-stat"},[e._v(e._s(e.userTagsCount))]),t("p",{staticClass:"profile-text"},[e._v(e._s(e.$t("profile.dashboard.tags")))])])]),t("div",{staticClass:"profile-stat-card"},[t("p",{staticClass:"profile-percent"},[e._v("%")]),t("div",[t("p",{staticClass:"profile-stat"},[e._v(e._s(e.photoPercent))]),t("p",{staticClass:"profile-text"},[e._v(e._s(e.$t("profile.dashboard.all-photos")))])])]),t("div",{staticClass:"profile-stat-card"},[t("p",{staticClass:"profile-percent"},[e._v("%")]),t("div",[t("p",{staticClass:"profile-stat"},[e._v(e._s(e.tagPercent))]),t("p",{staticClass:"profile-text"},[e._v(e._s(e.$t("profile.dashboard.all-tags")))])])])])])},D=[],x=r(y,P,D,!1,null,"97e77d3c");const L=x.exports,w={name:"ProfileNextTarget",computed:{currentLevel(){return this.user.level},currentXp(){return this.user.xp_redis},neededXp(){return this.$store.state.user.requiredXp},user(){return this.$store.state.user.user}}};var R=function(){var e=this,t=e._self._c;return t("div",{staticClass:"profile-card"},[t("p",{staticClass:"mb1"},[e._v(" "+e._s(e.$t("profile.dashboard.your-level"))+" ")]),t("p",{staticClass:"is-secondary"},[e._v(" "+e._s(e.$t("profile.dashboard.reached-level"))+" "),t("strong",{staticClass:"is-white"},[e._v(" "+e._s(e.currentLevel)+" ")])]),t("p",{staticClass:"is-secondary mb1"},[e._v(" "+e._s(e.$t("profile.dashboard.have-xp"))+" "),t("strong",{staticClass:"is-white"},[e._v(" "+e._s(e.currentXp)+" xp ")])]),t("p",{staticClass:"is-secondary mb2"},[e._v(" "+e._s(e.$t("profile.dashboard.need-xp"))+" "),t("strong",{staticClass:"is-white"},[e._v(" "+e._s(e.neededXp)+" xp ")]),e._v(" "+e._s(e.$t("profile.dashboard.to-reach-level"))+" ")])])},T=[],k=r(w,R,T,!1,null,"68e020ba");const S=k.exports,F={extends:f,name:"Radar",props:["categories"],mounted(){let s=[];_.filter(e=>e!=="art"&&e!=="dogshit").map(e=>{s.push(this.$t("litter.categories."+e))}),this.renderChart({labels:s,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:(e,t)=>t.labels[e[0].index]}}})}},A=null,O=null;var B=r(F,A,O,!1,null,null);const E=B.exports,M={name:"ProfileCategories",components:{Radar:E},computed:{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]},user(){return this.$store.state.user.user}}};var N=function(){var e=this,t=e._self._c;return t("div",{staticClass:"profile-card"},[t("Radar",{key:e.user.total_tags,attrs:{categories:e.categories}})],1)},U=[],W=r(M,N,U,!1,null,"3a36a1f8");const X=W.exports,z={name:"ProfileMap",data(){return{map:null,loading:!0,fullscreen:!1,pointsLayer:null,timeLayer:null,player:null}},async mounted(){this.map=i.map("hexmap",{center:[0,0],zoom:2,scrollWheelZoom:!1,smoothWheelZoom:!0,smoothSensitivity:1});const e=new Date().getFullYear();i.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:"Map data © "+'OpenStreetMap'+" & Contributors",maxZoom:20,minZoom:1}).addTo(this.map),this.map.attributionControl.addAttribution("Litter data © OpenLitterMap & Contributors "+e);let a=new i.TimeDimension({});this.map.timeDimension=a,this.player=new i.TimeDimension.Player({transitionTime:1e3,loop:!0},a),this.player.on("play",()=>{var n;(n=this.map)!=null&&n.hasLayer(this.pointsLayer)&&this.map.removeLayer(this.pointsLayer)}),this.map.addControl(new i.Control.TimeDimension({player:this.player,timeDimension:a,timeSliderDragUpdate:!0,loopButton:!0,autoPlay:!1,minSpeed:5,maxSpeed:100})),this.loading=!1},computed:{geojson(){return this.$store.state.user.geojson.features}},watch:{geojson(s){this.pointsLayer&&this.pointsLayer.remove(),this.timeLayer&&this.timeLayer.remove(),this.player&&this.player.stop(),this.pointsLayer=i.geoJSON(s,{pointToLayer:(e,t)=>i.marker([t.lng,t.lat]),onEachFeature:(e,t)=>{t.on("click",a=>{i.popup(c.popupOptions).setLatLng(e.geometry.coordinates).setContent(c.getMapImagePopupContent(e.properties)).openOn(this.map)})}}),this.timeLayer=i.timeDimension.layer.geoJson(this.pointsLayer,{updateTimeDimension:!0,updateTimeDimensionMode:"replace"}),this.pointsLayer.addTo(this.map),this.timeLayer.addTo(this.map)}},methods:{fullscreenChange(s){this.fullscreen=s},toggle(){this.$refs.fullscreen.toggle()}}};var I=function(){var e=this,t=e._self._c;return t("div",{staticClass:"profile-card",staticStyle:{padding:"0 !important"}},[t("fullscreen",{ref:"fullscreen",staticClass:"profile-map-container",on:{change:e.fullscreenChange}},[t("button",{staticClass:"btn-map-fullscreen",on:{click:e.toggle}},[t("i",{staticClass:"fa fa-expand"})]),t("div",{ref:"hexmap",attrs:{id:"hexmap"}})])],1)},Z=[],j=r(z,I,Z,!1,null,null);const q=j.exports,G={name:"ProfileCalendar",components:{FunctionalCalendar:d},data(){return{btn:"button is-primary is-fullwidth",calendarData:{},period:"created_at",periods:["created_at","datetime"]}},computed:{button(){return this.processing?this.btn+" is-loading":this.btn},disabled(){return!!(this.processing||!this.calendarData.hasOwnProperty("dateRange")||!this.calendarData.dateRange.hasOwnProperty("start")&&!this.calendarData.dateRange.hasOwnProperty("end"))}},methods:{async changePeriod(){this.disabled||await this.$store.dispatch("GET_USERS_PROFILE_MAP_DATA",{period:this.period,start:this.calendarData.dateRange.start,end:this.calendarData.dateRange.end})},getPeriod(s){return s||(s=this.period),this.$t("teams.dashboard.times."+s)}}};var J=function(){var e=this,t=e._self._c;return t("div",{staticClass:"profile-card"},[t("FunctionalCalendar",{attrs:{"day-names":e.$t("common.day-names"),"month-names":e.$t("common.month-names"),"short-month-names":e.$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:e.calendarData,callback:function(a){e.calendarData=a},expression:"calendarData"}}),t("select",{directives:[{name:"model",rawName:"v-model",value:e.period,expression:"period"}],staticClass:"input mt1 mb1",on:{change:function(a){var n=Array.prototype.filter.call(a.target.options,function(o){return o.selected}).map(function(o){var l="_value"in o?o._value:o.value;return l});e.period=a.target.multiple?n:n[0]}}},e._l(e.periods,function(a){return t("option",{domProps:{value:a}},[e._v(e._s(e.getPeriod(a)))])}),0),t("button",{class:e.button,attrs:{disabled:e.disabled},on:{click:e.changePeriod}},[e._v(e._s(e.$t("profile.dashboard.calendar-load-data")))])],1)},V=[],Y=r(G,J,V,!1,null,"310729d1");const H=Y.exports,K={name:"ProfileDownload",components:{FunctionalCalendar:d},data(){return{btn:"button tooltip is-primary",processing:!1,calendarData:{},period:"created_at",periods:["created_at","datetime"]}},computed:{button(){return this.processing?this.btn+" is-loading":this.btn}},methods:{async download(){var s,e,t,a;this.processing=!0,await this.$store.dispatch("DOWNLOAD_MY_DATA",{dateField:this.period,fromDate:(e=(s=this.calendarData)==null?void 0:s.dateRange)==null?void 0:e.start,toDate:(a=(t=this.calendarData)==null?void 0:t.dateRange)==null?void 0:a.end}),this.processing=!1}}};var Q=function(){var e=this,t=e._self._c;return t("div",{staticClass:"profile-card"},[t("p",{staticClass:"profile-dl-title"},[e._v(e._s(e.$t("profile.dashboard.download-data")))]),t("FunctionalCalendar",{attrs:{"day-names":e.$t("common.day-names"),"month-names":e.$t("common.month-names"),"short-month-names":e.$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:e.calendarData,callback:function(a){e.calendarData=a},expression:"calendarData"}}),t("div",{staticClass:"inputs-wrapper"},[t("select",{directives:[{name:"model",rawName:"v-model",value:e.period,expression:"period"}],staticClass:"input mt1 mb1",on:{change:function(a){var n=Array.prototype.filter.call(a.target.options,function(o){return o.selected}).map(function(o){var l="_value"in o?o._value:o.value;return l});e.period=a.target.multiple?n:n[0]}}},e._l(e.periods,function(a){return t("option",{domProps:{value:a}},[e._v(e._s(e.$t("teams.dashboard.times."+a)))])}),0),t("button",{class:e.button,attrs:{disabled:e.processing},on:{click:e.download}},[t("span",{staticClass:"tooltip-text is-size-6"},[e._v(e._s(e.$t("profile.dashboard.email-send-msg")))]),e._v(" "+e._s(e.$t("common.download"))+" ")])])],1)},ee=[],te=r(K,Q,ee,!1,null,"324f02ec");const se=te.exports,ae={extends:h,name:"TimeSeriesLine",props:["ppm"],data(){return{months:this.$t("common.short-month-names")}},mounted(){let s=JSON.parse(this.ppm),e=[],t=[];for(let a in s)e.push(this.months[parseInt(a.substring(0,2))-1]+a.substring(2,5)),t.push(s[a]);this.renderChart({labels:e,datasets:[{label:this.$t("profile.dashboard.timeseries-verified-photos"),backgroundColor:"#1DD3B0",data:t,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"}}]}})}},re=null,oe=null;var ie=r(ae,re,oe,!1,null,null);const ne=ie.exports,le={name:"ProfileTimeSeries",components:{TimeSeriesLine:ne},computed:{ppm(){return this.$store.state.user.user.photos_per_month}}};var ce=function(){var e=this,t=e._self._c;return t("div",{staticClass:"profile-card"},[t("TimeSeriesLine",{attrs:{ppm:e.ppm}})],1)},de=[],pe=r(le,ce,de,!1,null,"0a4093f8");const _e=pe.exports,me={name:"ProfilePhotos"};var ue=function(){var e=this,t=e._self._c;return t("div",{staticClass:"profile-card"},[t("p",{staticClass:"mb1"},[e._v(e._s(e.$t("profile.dashboard.manage-my-photos")))]),t("router-link",{attrs:{to:"/bulk-tag"}},[t("button",{staticClass:"button is-medium is-primary"},[e._v(e._s(e.$t("profile.dashboard.view-my-photos")))])])],1)},fe=[],he=r(me,ue,fe,!1,null,"8c86183f");const ve=he.exports,ge={name:"Profile",components:{ProfileWelcome:C,ProfileTimeSeries:_e,ProfileStats:L,ProfileNextTarget:S,ProfileCategories:X,ProfileMap:q,ProfileCalendar:H,ProfileDownload:se,ProfilePhotos:ve},async mounted(){await this.$store.dispatch("GET_CURRENT_USER"),await this.$store.dispatch("GET_USERS_PROFILE_DATA")}};var $e=function(){var e=this,t=e._self._c;return t("section",{staticClass:"profile-container"},[t("ProfileWelcome"),t("ProfileStats"),t("ProfileNextTarget"),t("ProfileCategories"),t("ProfileMap"),t("ProfileCalendar"),t("ProfileDownload"),t("ProfileTimeSeries"),t("ProfilePhotos")],1)},be=[],Ce=r(ge,$e,be,!1,null,null);const ke=Ce.exports;export{ke as default}; +import{h as p}from"./moment-zH0z38ay.js";import{n as r,a as _}from"./app-DGjOB0Vc.js";import{_ as m,a as u}from"./phone-lg_u1nSM.js";import{R as f,L as h}from"./BaseCharts-B-MueZ-x.js";import{L as i,h as c}from"./mapHelpers-CwWoNy74.js";import"./leaflet.timedimension.control-DO8BfIK-.js";import{F as d}from"./FunctionalCalendar-DnoJkPHM.js";/* empty css */const v={name:"ProfileWelcome",computed:{name(){return this.user.user.name},totalUsers(){return this.user.totalUsers},usersPosition(){return p.localeData().ordinal(this.user.position)},user(){return this.$store.state.user}}};var g=function(){var e=this,t=e._self._c;return t("div",{staticClass:"profile-card"},[t("p",{staticClass:"mb1"},[e._v(" "+e._s(e.$t("profile.dashboard.welcome"))+", "+e._s(e.name)+" ")]),t("p",{staticClass:"mb1"},[e._v(" "+e._s(e.$t("profile.dashboard.out-of",{total:e.totalUsers}))+" ")]),t("p",{staticClass:"mb1 is-secondary"},[e._v(" "+e._s(e.$t("profile.dashboard.rank",{rank:e.usersPosition}))+" ")]),t("p",{staticClass:"mb1"},[e._v(" Next Littercoin: "+e._s(this.user.user.littercoin_progress)+"% ")]),t("p",[e._v(" Total Littercoin: "+e._s(this.user.user.total_littercoin)+" ")])])},$=[],b=r(v,g,$,!1,null,"f145dc52");const C=b.exports,y={name:"ProfileStats",computed:{photoPercent(){return this.user.photoPercent},tagPercent(){return this.user.tagPercent},userTagsCount(){return this.user.user.total_tags},userPhotoCount(){return this.user.user.total_images},user(){return this.$store.state.user}}};var P=function(){var e=this,t=e._self._c;return t("div",{staticClass:"profile-card"},[t("p",{staticClass:"mb1"},[e._v(e._s(e.$t("profile.dashboard.have-uploaded")))]),t("div",{staticClass:"flex"},[t("div",{staticClass:"profile-stat-card"},[t("img",{attrs:{src:m}}),t("div",[t("p",{staticClass:"profile-stat"},[e._v(e._s(e.userPhotoCount))]),t("p",{staticClass:"profile-text"},[e._v(e._s(e.$t("profile.dashboard.photos")))])])]),t("div",{staticClass:"profile-stat-card"},[t("img",{attrs:{src:u}}),t("div",[t("p",{staticClass:"profile-stat"},[e._v(e._s(e.userTagsCount))]),t("p",{staticClass:"profile-text"},[e._v(e._s(e.$t("profile.dashboard.tags")))])])]),t("div",{staticClass:"profile-stat-card"},[t("p",{staticClass:"profile-percent"},[e._v("%")]),t("div",[t("p",{staticClass:"profile-stat"},[e._v(e._s(e.photoPercent))]),t("p",{staticClass:"profile-text"},[e._v(e._s(e.$t("profile.dashboard.all-photos")))])])]),t("div",{staticClass:"profile-stat-card"},[t("p",{staticClass:"profile-percent"},[e._v("%")]),t("div",[t("p",{staticClass:"profile-stat"},[e._v(e._s(e.tagPercent))]),t("p",{staticClass:"profile-text"},[e._v(e._s(e.$t("profile.dashboard.all-tags")))])])])])])},D=[],x=r(y,P,D,!1,null,"97e77d3c");const L=x.exports,w={name:"ProfileNextTarget",computed:{currentLevel(){return this.user.level},currentXp(){return this.user.xp_redis},neededXp(){return this.$store.state.user.requiredXp},user(){return this.$store.state.user.user}}};var R=function(){var e=this,t=e._self._c;return t("div",{staticClass:"profile-card"},[t("p",{staticClass:"mb1"},[e._v(" "+e._s(e.$t("profile.dashboard.your-level"))+" ")]),t("p",{staticClass:"is-secondary"},[e._v(" "+e._s(e.$t("profile.dashboard.reached-level"))+" "),t("strong",{staticClass:"is-white"},[e._v(" "+e._s(e.currentLevel)+" ")])]),t("p",{staticClass:"is-secondary mb1"},[e._v(" "+e._s(e.$t("profile.dashboard.have-xp"))+" "),t("strong",{staticClass:"is-white"},[e._v(" "+e._s(e.currentXp)+" xp ")])]),t("p",{staticClass:"is-secondary mb2"},[e._v(" "+e._s(e.$t("profile.dashboard.need-xp"))+" "),t("strong",{staticClass:"is-white"},[e._v(" "+e._s(e.neededXp)+" xp ")]),e._v(" "+e._s(e.$t("profile.dashboard.to-reach-level"))+" ")])])},T=[],k=r(w,R,T,!1,null,"68e020ba");const S=k.exports,F={extends:f,name:"Radar",props:["categories"],mounted(){let s=[];_.filter(e=>e!=="art"&&e!=="dogshit").map(e=>{s.push(this.$t("litter.categories."+e))}),this.renderChart({labels:s,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:(e,t)=>t.labels[e[0].index]}}})}},A=null,O=null;var B=r(F,A,O,!1,null,null);const E=B.exports,M={name:"ProfileCategories",components:{Radar:E},computed:{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]},user(){return this.$store.state.user.user}}};var N=function(){var e=this,t=e._self._c;return t("div",{staticClass:"profile-card"},[t("Radar",{key:e.user.total_tags,attrs:{categories:e.categories}})],1)},U=[],W=r(M,N,U,!1,null,"3a36a1f8");const X=W.exports,z={name:"ProfileMap",data(){return{map:null,loading:!0,fullscreen:!1,pointsLayer:null,timeLayer:null,player:null}},async mounted(){this.map=i.map("hexmap",{center:[0,0],zoom:2,scrollWheelZoom:!1,smoothWheelZoom:!0,smoothSensitivity:1});const e=new Date().getFullYear();i.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:"Map data © "+'OpenStreetMap'+" & Contributors",maxZoom:20,minZoom:1}).addTo(this.map),this.map.attributionControl.addAttribution("Litter data © OpenLitterMap & Contributors "+e);let a=new i.TimeDimension({});this.map.timeDimension=a,this.player=new i.TimeDimension.Player({transitionTime:1e3,loop:!0},a),this.player.on("play",()=>{var n;(n=this.map)!=null&&n.hasLayer(this.pointsLayer)&&this.map.removeLayer(this.pointsLayer)}),this.map.addControl(new i.Control.TimeDimension({player:this.player,timeDimension:a,timeSliderDragUpdate:!0,loopButton:!0,autoPlay:!1,minSpeed:5,maxSpeed:100})),this.loading=!1},computed:{geojson(){return this.$store.state.user.geojson.features}},watch:{geojson(s){this.pointsLayer&&this.pointsLayer.remove(),this.timeLayer&&this.timeLayer.remove(),this.player&&this.player.stop(),this.pointsLayer=i.geoJSON(s,{pointToLayer:(e,t)=>i.marker([t.lng,t.lat]),onEachFeature:(e,t)=>{t.on("click",a=>{i.popup(c.popupOptions).setLatLng(e.geometry.coordinates).setContent(c.getMapImagePopupContent(e.properties)).openOn(this.map)})}}),this.timeLayer=i.timeDimension.layer.geoJson(this.pointsLayer,{updateTimeDimension:!0,updateTimeDimensionMode:"replace"}),this.pointsLayer.addTo(this.map),this.timeLayer.addTo(this.map)}},methods:{fullscreenChange(s){this.fullscreen=s},toggle(){this.$refs.fullscreen.toggle()}}};var I=function(){var e=this,t=e._self._c;return t("div",{staticClass:"profile-card",staticStyle:{padding:"0 !important"}},[t("fullscreen",{ref:"fullscreen",staticClass:"profile-map-container",on:{change:e.fullscreenChange}},[t("button",{staticClass:"btn-map-fullscreen",on:{click:e.toggle}},[t("i",{staticClass:"fa fa-expand"})]),t("div",{ref:"hexmap",attrs:{id:"hexmap"}})])],1)},Z=[],j=r(z,I,Z,!1,null,null);const q=j.exports,G={name:"ProfileCalendar",components:{FunctionalCalendar:d},data(){return{btn:"button is-primary is-fullwidth",calendarData:{},period:"created_at",periods:["created_at","datetime"]}},computed:{button(){return this.processing?this.btn+" is-loading":this.btn},disabled(){return!!(this.processing||!this.calendarData.hasOwnProperty("dateRange")||!this.calendarData.dateRange.hasOwnProperty("start")&&!this.calendarData.dateRange.hasOwnProperty("end"))}},methods:{async changePeriod(){this.disabled||await this.$store.dispatch("GET_USERS_PROFILE_MAP_DATA",{period:this.period,start:this.calendarData.dateRange.start,end:this.calendarData.dateRange.end})},getPeriod(s){return s||(s=this.period),this.$t("teams.dashboard.times."+s)}}};var J=function(){var e=this,t=e._self._c;return t("div",{staticClass:"profile-card"},[t("FunctionalCalendar",{attrs:{"day-names":e.$t("common.day-names"),"month-names":e.$t("common.month-names"),"short-month-names":e.$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:e.calendarData,callback:function(a){e.calendarData=a},expression:"calendarData"}}),t("select",{directives:[{name:"model",rawName:"v-model",value:e.period,expression:"period"}],staticClass:"input mt1 mb1",on:{change:function(a){var n=Array.prototype.filter.call(a.target.options,function(o){return o.selected}).map(function(o){var l="_value"in o?o._value:o.value;return l});e.period=a.target.multiple?n:n[0]}}},e._l(e.periods,function(a){return t("option",{domProps:{value:a}},[e._v(e._s(e.getPeriod(a)))])}),0),t("button",{class:e.button,attrs:{disabled:e.disabled},on:{click:e.changePeriod}},[e._v(e._s(e.$t("profile.dashboard.calendar-load-data")))])],1)},V=[],Y=r(G,J,V,!1,null,"310729d1");const H=Y.exports,K={name:"ProfileDownload",components:{FunctionalCalendar:d},data(){return{btn:"button tooltip is-primary",processing:!1,calendarData:{},period:"created_at",periods:["created_at","datetime"]}},computed:{button(){return this.processing?this.btn+" is-loading":this.btn}},methods:{async download(){var s,e,t,a;this.processing=!0,await this.$store.dispatch("DOWNLOAD_MY_DATA",{dateField:this.period,fromDate:(e=(s=this.calendarData)==null?void 0:s.dateRange)==null?void 0:e.start,toDate:(a=(t=this.calendarData)==null?void 0:t.dateRange)==null?void 0:a.end}),this.processing=!1}}};var Q=function(){var e=this,t=e._self._c;return t("div",{staticClass:"profile-card"},[t("p",{staticClass:"profile-dl-title"},[e._v(e._s(e.$t("profile.dashboard.download-data")))]),t("FunctionalCalendar",{attrs:{"day-names":e.$t("common.day-names"),"month-names":e.$t("common.month-names"),"short-month-names":e.$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:e.calendarData,callback:function(a){e.calendarData=a},expression:"calendarData"}}),t("div",{staticClass:"inputs-wrapper"},[t("select",{directives:[{name:"model",rawName:"v-model",value:e.period,expression:"period"}],staticClass:"input mt1 mb1",on:{change:function(a){var n=Array.prototype.filter.call(a.target.options,function(o){return o.selected}).map(function(o){var l="_value"in o?o._value:o.value;return l});e.period=a.target.multiple?n:n[0]}}},e._l(e.periods,function(a){return t("option",{domProps:{value:a}},[e._v(e._s(e.$t("teams.dashboard.times."+a)))])}),0),t("button",{class:e.button,attrs:{disabled:e.processing},on:{click:e.download}},[t("span",{staticClass:"tooltip-text is-size-6"},[e._v(e._s(e.$t("profile.dashboard.email-send-msg")))]),e._v(" "+e._s(e.$t("common.download"))+" ")])])],1)},ee=[],te=r(K,Q,ee,!1,null,"324f02ec");const se=te.exports,ae={extends:h,name:"TimeSeriesLine",props:["ppm"],data(){return{months:this.$t("common.short-month-names")}},mounted(){let s=JSON.parse(this.ppm),e=[],t=[];for(let a in s)e.push(this.months[parseInt(a.substring(0,2))-1]+a.substring(2,5)),t.push(s[a]);this.renderChart({labels:e,datasets:[{label:this.$t("profile.dashboard.timeseries-verified-photos"),backgroundColor:"#1DD3B0",data:t,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"}}]}})}},re=null,oe=null;var ie=r(ae,re,oe,!1,null,null);const ne=ie.exports,le={name:"ProfileTimeSeries",components:{TimeSeriesLine:ne},computed:{ppm(){return this.$store.state.user.user.photos_per_month}}};var ce=function(){var e=this,t=e._self._c;return t("div",{staticClass:"profile-card"},[t("TimeSeriesLine",{attrs:{ppm:e.ppm}})],1)},de=[],pe=r(le,ce,de,!1,null,"0a4093f8");const _e=pe.exports,me={name:"ProfilePhotos"};var ue=function(){var e=this,t=e._self._c;return t("div",{staticClass:"profile-card"},[t("p",{staticClass:"mb1"},[e._v(e._s(e.$t("profile.dashboard.manage-my-photos")))]),t("router-link",{attrs:{to:"/bulk-tag"}},[t("button",{staticClass:"button is-medium is-primary"},[e._v(e._s(e.$t("profile.dashboard.view-my-photos")))])])],1)},fe=[],he=r(me,ue,fe,!1,null,"8c86183f");const ve=he.exports,ge={name:"Profile",components:{ProfileWelcome:C,ProfileTimeSeries:_e,ProfileStats:L,ProfileNextTarget:S,ProfileCategories:X,ProfileMap:q,ProfileCalendar:H,ProfileDownload:se,ProfilePhotos:ve},async mounted(){await this.$store.dispatch("GET_CURRENT_USER"),await this.$store.dispatch("GET_USERS_PROFILE_DATA")}};var $e=function(){var e=this,t=e._self._c;return t("section",{staticClass:"profile-container"},[t("ProfileWelcome"),t("ProfileStats"),t("ProfileNextTarget"),t("ProfileCategories"),t("ProfileMap"),t("ProfileCalendar"),t("ProfileDownload"),t("ProfileTimeSeries"),t("ProfilePhotos")],1)},be=[],Ce=r(ge,$e,be,!1,null,null);const ke=Ce.exports;export{ke as default}; diff --git a/public/build/assets/RecentTags-DuOWttRH.js b/public/build/assets/RecentTags-CSDARdpT.js similarity index 97% rename from public/build/assets/RecentTags-DuOWttRH.js rename to public/build/assets/RecentTags-CSDARdpT.js index a8c01c139..cc0494632 100644 --- a/public/build/assets/RecentTags-DuOWttRH.js +++ b/public/build/assets/RecentTags-CSDARdpT.js @@ -1 +1 @@ -import{n as r}from"./app-DpqRw90N.js";const o={name:"RecentTags",props:["photoId"],computed:{recentTags(){return this.$store.state.litter.recentTags},recentCustomTags(){return this.$store.state.litter.recentCustomTags}},methods:{getCategoryName(e){return this.$i18n.t(`litter.categories.${e}`)},getTagName(e,t){return this.$i18n.t(`litter.${e}.${t}`)},addRecentTag(e,t){let s=1;this.$store.state.litter.tags.hasOwnProperty(this.photoId)&&this.$store.state.litter.tags[this.photoId].hasOwnProperty(e)&&this.$store.state.litter.tags[this.photoId][e].hasOwnProperty(t)&&(s=parseInt(this.$store.state.litter.tags[this.photoId][e][t])+1),this.$store.commit("changeCategory",e),this.$store.commit("changeTag",t),this.$store.commit("addTag",{photoId:this.photoId,category:e,tag:t,quantity:s})},addRecentCustomTag(e){this.$store.commit("addCustomTag",{photoId:this.photoId,customTag:e})},clearRecentTags(){this.$store.commit("initRecentTags",{}),this.$store.commit("initRecentCustomTags",[]),this.$localStorage.remove("recentTags"),this.$localStorage.remove("recentCustomTags")},clearRecentTag(e,t){this.$store.commit("removeRecentTag",{category:e,tag:t}),this.$localStorage.set("recentTags",JSON.stringify(this.recentTags))},clearRecentCustomTag(e){this.$store.commit("removeRecentCustomTag",e),this.$localStorage.set("recentCustomTags",JSON.stringify(this.recentCustomTags))}}};var c=function(){var t=this,s=t._self._c;return Object.keys(t.recentTags).length>0||t.recentCustomTags.length?s("div",{staticClass:"tags-container"},[s("p",{staticClass:"recent-tags-title mb-5 has-text-weight-bold"},[t._v(t._s(t.$t("tags.recently-tags")))]),t.recentCustomTags.length?s("div",[s("p",[t._v(t._s(t.$t("tags.custom-tags")))]),s("transition-group",{staticClass:"recent-tags",attrs:{name:"list",tag:"div"}},t._l(t.recentCustomTags,function(a){return s("div",{key:a,staticClass:"litter-tag",on:{click:function(i){return t.addRecentCustomTag(a)}}},[s("span",{staticClass:"close",on:{click:function(i){return i.preventDefault(),i.stopPropagation(),t.clearRecentCustomTag(a)}}},[s("i",{staticClass:"fa fa-times"})]),s("p",{staticClass:"has-text-white"},[t._v(t._s(a))])])}),0)],1):t._e(),s("transition-group",{attrs:{name:"categories",tag:"div"}},t._l(Object.keys(t.recentTags),function(a){return s("div",{key:a},[s("p",[t._v(t._s(t.getCategoryName(a)))]),s("transition-group",{staticClass:"recent-tags",attrs:{name:"list",tag:"div"}},t._l(Object.keys(t.recentTags[a]),function(i){return s("div",{key:i,staticClass:"litter-tag",on:{click:function(n){return t.addRecentTag(a,i)}}},[s("span",{staticClass:"close",on:{click:function(n){return n.preventDefault(),n.stopPropagation(),t.clearRecentTag(a,i)}}},[s("i",{staticClass:"fa fa-times"})]),s("p",{staticClass:"has-text-white"},[t._v(t._s(t.getTagName(a,i)))])])}),0)],1)}),0),s("div",{staticClass:"clear-tags-button"},[s("button",{staticClass:"button is-danger is-small tooltip",on:{click:t.clearRecentTags}},[s("span",{staticClass:"tooltip-text"},[t._v(t._s(t.$t("tags.clear-tags-btn")))]),s("i",{staticClass:"fa fa-trash"})])])],1):t._e()},l=[],g=r(o,c,l,!1,null,"8cffa47b");const h=g.exports;export{h as R}; +import{n as r}from"./app-DGjOB0Vc.js";const o={name:"RecentTags",props:["photoId"],computed:{recentTags(){return this.$store.state.litter.recentTags},recentCustomTags(){return this.$store.state.litter.recentCustomTags}},methods:{getCategoryName(e){return this.$i18n.t(`litter.categories.${e}`)},getTagName(e,t){return this.$i18n.t(`litter.${e}.${t}`)},addRecentTag(e,t){let s=1;this.$store.state.litter.tags.hasOwnProperty(this.photoId)&&this.$store.state.litter.tags[this.photoId].hasOwnProperty(e)&&this.$store.state.litter.tags[this.photoId][e].hasOwnProperty(t)&&(s=parseInt(this.$store.state.litter.tags[this.photoId][e][t])+1),this.$store.commit("changeCategory",e),this.$store.commit("changeTag",t),this.$store.commit("addTag",{photoId:this.photoId,category:e,tag:t,quantity:s})},addRecentCustomTag(e){this.$store.commit("addCustomTag",{photoId:this.photoId,customTag:e})},clearRecentTags(){this.$store.commit("initRecentTags",{}),this.$store.commit("initRecentCustomTags",[]),this.$localStorage.remove("recentTags"),this.$localStorage.remove("recentCustomTags")},clearRecentTag(e,t){this.$store.commit("removeRecentTag",{category:e,tag:t}),this.$localStorage.set("recentTags",JSON.stringify(this.recentTags))},clearRecentCustomTag(e){this.$store.commit("removeRecentCustomTag",e),this.$localStorage.set("recentCustomTags",JSON.stringify(this.recentCustomTags))}}};var c=function(){var t=this,s=t._self._c;return Object.keys(t.recentTags).length>0||t.recentCustomTags.length?s("div",{staticClass:"tags-container"},[s("p",{staticClass:"recent-tags-title mb-5 has-text-weight-bold"},[t._v(t._s(t.$t("tags.recently-tags")))]),t.recentCustomTags.length?s("div",[s("p",[t._v(t._s(t.$t("tags.custom-tags")))]),s("transition-group",{staticClass:"recent-tags",attrs:{name:"list",tag:"div"}},t._l(t.recentCustomTags,function(a){return s("div",{key:a,staticClass:"litter-tag",on:{click:function(i){return t.addRecentCustomTag(a)}}},[s("span",{staticClass:"close",on:{click:function(i){return i.preventDefault(),i.stopPropagation(),t.clearRecentCustomTag(a)}}},[s("i",{staticClass:"fa fa-times"})]),s("p",{staticClass:"has-text-white"},[t._v(t._s(a))])])}),0)],1):t._e(),s("transition-group",{attrs:{name:"categories",tag:"div"}},t._l(Object.keys(t.recentTags),function(a){return s("div",{key:a},[s("p",[t._v(t._s(t.getCategoryName(a)))]),s("transition-group",{staticClass:"recent-tags",attrs:{name:"list",tag:"div"}},t._l(Object.keys(t.recentTags[a]),function(i){return s("div",{key:i,staticClass:"litter-tag",on:{click:function(n){return t.addRecentTag(a,i)}}},[s("span",{staticClass:"close",on:{click:function(n){return n.preventDefault(),n.stopPropagation(),t.clearRecentTag(a,i)}}},[s("i",{staticClass:"fa fa-times"})]),s("p",{staticClass:"has-text-white"},[t._v(t._s(t.getTagName(a,i)))])])}),0)],1)}),0),s("div",{staticClass:"clear-tags-button"},[s("button",{staticClass:"button is-danger is-small tooltip",on:{click:t.clearRecentTags}},[s("span",{staticClass:"tooltip-text"},[t._v(t._s(t.$t("tags.clear-tags-btn")))]),s("i",{staticClass:"fa fa-trash"})])])],1):t._e()},l=[],g=r(o,c,l,!1,null,"8cffa47b");const h=g.exports;export{h as R}; diff --git a/public/build/assets/References-B9olV9TH.js b/public/build/assets/References-DDlcc228.js similarity index 99% rename from public/build/assets/References-B9olV9TH.js rename to public/build/assets/References-DDlcc228.js index 7dd1cb000..781e52341 100644 --- a/public/build/assets/References-B9olV9TH.js +++ b/public/build/assets/References-DDlcc228.js @@ -1,3 +1,3 @@ -import{h as n}from"./moment-zH0z38ay.js";import{n as o}from"./app-DpqRw90N.js";/* empty css */const r={name:"References",created(){window.scrollTo(0,0)},data(){return{references:[{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:"2021/01/05",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/01/13",title:"Enabling a large-scale assessment of litter along Saudi Arabian red sea shores by combining drones and machine learning",link:"https://www.sciencedirect.com/science/article/abs/pii/S0269749121003109",author:"Martin et al."},{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/04/18",title:"Environmental fate and impacts of microplastics in aquatic ecosystems: a review",link:"https://pubs.rsc.org/en/content/articlehtml/2021/ra/d1ra00880c",author:"Du 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."},{date:"2021/10/21",title:"From City to Sea: Integrated Management of Litter and Plastics and Their Effects on Waterways - A Guide for Municipalities",link:"https://openknowledge.worldbank.org/handle/10986/36523",author:"World Bank"},{date:"2021/10/27",title:"A Systematic Literature Review of Blockchain Technology for Smart Villages",link:"https://link.springer.com/article/10.1007/s11831-021-09659-7",author:"Kaur & Parashar"},{date:"2021/11/02",title:"Environmental Governance. In: Handbook of Environmental Sociology. Handbooks of Sociology and Social Research.",link:"https://link.springer.com/chapter/10.1007/978-3-030-77712-8_16",author:"Fisher et al."},{date:"2021/11/05",title:"Recycling Waste Classification Using Vision Transformer on Portable Device",link:"https://www.mdpi.com/2071-1050/13/21/11572",author:"Huang et al."},{date:"2021/11/23",title:"Litter origins, accumulation rates, and hierarchical composition on urban roadsides of the Inland Empire, California",link:"https://iopscience.iop.org/article/10.1088/1748-9326/ac3c6a",author:"W. Cowger et al."},{date:"2021/12/13",title:"Citizen science at public libraries: Data on librarians and users perceptions of participating in a citizen science project in Catalunya, Spain",link:"https://www.sciencedirect.com/science/article/pii/S2352340921009884",author:"Cigarini et al"},{date:"2022/01/20",title:"Real-Time Litter Detection System for Moving Vehicles Using YOLO",link:"https://ieeexplore.ieee.org/document/9716512",author:"Amrutha et al"},{date:"2022/02/01",title:"Deep learning-based waste detection in natural and urban environments",link:"https://www.sciencedirect.com/science/article/pii/S0956053X21006474",author:"Majchrowskaa et al"},{date:"2022/02/24",title:"Image Classification Approaches for Segregation of Plastic Waste Based on Resin Identification Code",link:"https://link.springer.com/article/10.1007/s41403-022-00324-4",author:"Agarwal et al"},{date:"2022/02/24",title:"Toward smarter management and recovery of municipal solid waste: A critical review on deep learning approaches",link:"https://www.sciencedirect.com/science/article/abs/pii/S0959652622005807",author:"Kunsen et al"},{date:"2022/03/31",title:"Retraining of object detectors to become suitable for trash detection in the context of autonomous driving",link:"https://www.researchgate.net/profile/Ishan-Srivastava-8/publication/360688760_Object_detection_in_self_driving_cars_using_YOLOv5/links/6285697c50c4566fc2744ac0/Object-detection-in-self-driving-cars-using-YOLOv5.pdf",author:"Srivastava, I"},{date:"2022/04/26",title:"Beach beauty in Bengal: Perception of scenery and its implications for coastal management in Purba Medinipur district, eastern India",link:"https://www.sciencedirect.com/science/article/abs/pii/S0308597X22000811",author:"Chatterjee et al"},{date:"2022/04/26",title:"Application of blockchain technology for geospatial data protection and management",link:"http://zgt.com.ua/en/%D0%B7%D0%B0%D1%81%D1%82%D0%BE%D1%81%D1%83%D0%B2%D0%B0%D0%BD%D0%BD%D1%8F-%D1%82%D0%B5%D1%85%D0%BD%D0%BE%D0%BB%D0%BE%D0%B3%D1%96%D1%97-blockchain-%D0%B4%D0%BB%D1%8F-%D0%B7%D0%B0%D1%85%D0%B8%D1%81%D1%82/",author:"Chetverikov, B & Kilaru, V"},{date:"2022/06/11",title:"Towards geospatial blockchain: A review of research on blockchain technology applied to geospatial data",link:"https://agile-giss.copernicus.org/articles/3/71/2022/agile-giss-3-71-2022.pdf",author:"Zhao et al"},{date:"2022/07/01",title:"Determinants of Household Waste Disposal Practices and Implications for Practical Community Interventions: Lessons from Lilongwe",link:"https://papers.ssrn.com/sol3/papers.cfm?abstract_id=4151604",author:"Kalonde et al"},{date:"2022/07/29",title:"Plastic waste mapping and monitoring using geospatial approaches",link:"https://iopscience.iop.org/article/10.1088/1755-1315/1064/1/012008",author:"Zulkifli et al"},{date:"2022/07/29",title:"Smart waste segmentation deep learning based approach",link:"http://dspace.univ-tebessa.dz:8080/jspui/bitstream/123456789/4951/1/Achi%20Belgacem%20Aimen%20pfe_finale.pdf",author:"Belgacem, A"},{date:"2022/10/15",title:"Role of Citizen Scientists in Environmental Plastic Litter Research—A Systematic Review",link:"https://www.proquest.com/openview/aa8927ea09166e0b8af056edc05e6b19/1?pq-origsite=gscholar&cbl=2032327",author:"Cristina et al"},{date:"2022/11/22",title:"The Sharing Green Economy: Sharing What’s Possible with New Labor Economics ",link:"https://www.amazon.com/dp/B0BN6W4W15",author:"Mike Duwe"},{date:"2022/11/25",title:"Waste management: A comprehensive state of the art about the rise of blockchain technology",link:"https://www.sciencedirect.com/science/article/abs/pii/S0166361522002081",author:"Baralla et al"},{date:"2023/01/17",title:"Smardy: Zero-Trust FAIR Marketplace for Research Data",link:"https://ieeexplore.ieee.org/abstract/document/10020710",author:"Ion-Dorinel et al"},{date:"2023/02/24",title:"Monitoring contaminants of emerging concern in aquatic systems through the lens of citizen science",link:"https://www.sciencedirect.com/science/article/pii/S0048969723011439?ref=pdf_download&fr=RR-2&rr=7c4c1b55da651c89",author:"Raman et al"},{date:"2023/03/01",title:"Applications of convolutional neural networks for intelligent waste identification and recycling: A review",link:"https://www.sciencedirect.com/science/article/abs/pii/S0921344922006450",author:"Wu et al"},{date:"2023/03/07",title:"Determinants of household waste disposal practices and implications for practical community interventions: lessons from Lilongwe",link:"https://iopscience.iop.org/article/10.1088/2634-4505/acbcec/meta",author:"Kalonde et al"},{date:"2023/04/12",title:"Understanding GIS through Sustainable Development Goals",link:"https://www.taylorfrancis.com/books/mono/10.1201/9781003220510/understanding-gis-sustainable-development-goals-paul-holloway",author:"Holloway, P."},{date:"2023/04/27",title:"INTERACT Pocket guide on how to reduce plastic consumption and pollution",link:"https://eu-interact.org/app/uploads/2023/05/D2.11.pdf",author:"Arndal et al"},{date:"2023/04/27",title:`Evaluation of a smartphone-based methodology that integrates +import{h as n}from"./moment-zH0z38ay.js";import{n as o}from"./app-DGjOB0Vc.js";/* empty css */const r={name:"References",created(){window.scrollTo(0,0)},data(){return{references:[{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:"2021/01/05",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/01/13",title:"Enabling a large-scale assessment of litter along Saudi Arabian red sea shores by combining drones and machine learning",link:"https://www.sciencedirect.com/science/article/abs/pii/S0269749121003109",author:"Martin et al."},{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/04/18",title:"Environmental fate and impacts of microplastics in aquatic ecosystems: a review",link:"https://pubs.rsc.org/en/content/articlehtml/2021/ra/d1ra00880c",author:"Du 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."},{date:"2021/10/21",title:"From City to Sea: Integrated Management of Litter and Plastics and Their Effects on Waterways - A Guide for Municipalities",link:"https://openknowledge.worldbank.org/handle/10986/36523",author:"World Bank"},{date:"2021/10/27",title:"A Systematic Literature Review of Blockchain Technology for Smart Villages",link:"https://link.springer.com/article/10.1007/s11831-021-09659-7",author:"Kaur & Parashar"},{date:"2021/11/02",title:"Environmental Governance. In: Handbook of Environmental Sociology. Handbooks of Sociology and Social Research.",link:"https://link.springer.com/chapter/10.1007/978-3-030-77712-8_16",author:"Fisher et al."},{date:"2021/11/05",title:"Recycling Waste Classification Using Vision Transformer on Portable Device",link:"https://www.mdpi.com/2071-1050/13/21/11572",author:"Huang et al."},{date:"2021/11/23",title:"Litter origins, accumulation rates, and hierarchical composition on urban roadsides of the Inland Empire, California",link:"https://iopscience.iop.org/article/10.1088/1748-9326/ac3c6a",author:"W. Cowger et al."},{date:"2021/12/13",title:"Citizen science at public libraries: Data on librarians and users perceptions of participating in a citizen science project in Catalunya, Spain",link:"https://www.sciencedirect.com/science/article/pii/S2352340921009884",author:"Cigarini et al"},{date:"2022/01/20",title:"Real-Time Litter Detection System for Moving Vehicles Using YOLO",link:"https://ieeexplore.ieee.org/document/9716512",author:"Amrutha et al"},{date:"2022/02/01",title:"Deep learning-based waste detection in natural and urban environments",link:"https://www.sciencedirect.com/science/article/pii/S0956053X21006474",author:"Majchrowskaa et al"},{date:"2022/02/24",title:"Image Classification Approaches for Segregation of Plastic Waste Based on Resin Identification Code",link:"https://link.springer.com/article/10.1007/s41403-022-00324-4",author:"Agarwal et al"},{date:"2022/02/24",title:"Toward smarter management and recovery of municipal solid waste: A critical review on deep learning approaches",link:"https://www.sciencedirect.com/science/article/abs/pii/S0959652622005807",author:"Kunsen et al"},{date:"2022/03/31",title:"Retraining of object detectors to become suitable for trash detection in the context of autonomous driving",link:"https://www.researchgate.net/profile/Ishan-Srivastava-8/publication/360688760_Object_detection_in_self_driving_cars_using_YOLOv5/links/6285697c50c4566fc2744ac0/Object-detection-in-self-driving-cars-using-YOLOv5.pdf",author:"Srivastava, I"},{date:"2022/04/26",title:"Beach beauty in Bengal: Perception of scenery and its implications for coastal management in Purba Medinipur district, eastern India",link:"https://www.sciencedirect.com/science/article/abs/pii/S0308597X22000811",author:"Chatterjee et al"},{date:"2022/04/26",title:"Application of blockchain technology for geospatial data protection and management",link:"http://zgt.com.ua/en/%D0%B7%D0%B0%D1%81%D1%82%D0%BE%D1%81%D1%83%D0%B2%D0%B0%D0%BD%D0%BD%D1%8F-%D1%82%D0%B5%D1%85%D0%BD%D0%BE%D0%BB%D0%BE%D0%B3%D1%96%D1%97-blockchain-%D0%B4%D0%BB%D1%8F-%D0%B7%D0%B0%D1%85%D0%B8%D1%81%D1%82/",author:"Chetverikov, B & Kilaru, V"},{date:"2022/06/11",title:"Towards geospatial blockchain: A review of research on blockchain technology applied to geospatial data",link:"https://agile-giss.copernicus.org/articles/3/71/2022/agile-giss-3-71-2022.pdf",author:"Zhao et al"},{date:"2022/07/01",title:"Determinants of Household Waste Disposal Practices and Implications for Practical Community Interventions: Lessons from Lilongwe",link:"https://papers.ssrn.com/sol3/papers.cfm?abstract_id=4151604",author:"Kalonde et al"},{date:"2022/07/29",title:"Plastic waste mapping and monitoring using geospatial approaches",link:"https://iopscience.iop.org/article/10.1088/1755-1315/1064/1/012008",author:"Zulkifli et al"},{date:"2022/07/29",title:"Smart waste segmentation deep learning based approach",link:"http://dspace.univ-tebessa.dz:8080/jspui/bitstream/123456789/4951/1/Achi%20Belgacem%20Aimen%20pfe_finale.pdf",author:"Belgacem, A"},{date:"2022/10/15",title:"Role of Citizen Scientists in Environmental Plastic Litter Research—A Systematic Review",link:"https://www.proquest.com/openview/aa8927ea09166e0b8af056edc05e6b19/1?pq-origsite=gscholar&cbl=2032327",author:"Cristina et al"},{date:"2022/11/22",title:"The Sharing Green Economy: Sharing What’s Possible with New Labor Economics ",link:"https://www.amazon.com/dp/B0BN6W4W15",author:"Mike Duwe"},{date:"2022/11/25",title:"Waste management: A comprehensive state of the art about the rise of blockchain technology",link:"https://www.sciencedirect.com/science/article/abs/pii/S0166361522002081",author:"Baralla et al"},{date:"2023/01/17",title:"Smardy: Zero-Trust FAIR Marketplace for Research Data",link:"https://ieeexplore.ieee.org/abstract/document/10020710",author:"Ion-Dorinel et al"},{date:"2023/02/24",title:"Monitoring contaminants of emerging concern in aquatic systems through the lens of citizen science",link:"https://www.sciencedirect.com/science/article/pii/S0048969723011439?ref=pdf_download&fr=RR-2&rr=7c4c1b55da651c89",author:"Raman et al"},{date:"2023/03/01",title:"Applications of convolutional neural networks for intelligent waste identification and recycling: A review",link:"https://www.sciencedirect.com/science/article/abs/pii/S0921344922006450",author:"Wu et al"},{date:"2023/03/07",title:"Determinants of household waste disposal practices and implications for practical community interventions: lessons from Lilongwe",link:"https://iopscience.iop.org/article/10.1088/2634-4505/acbcec/meta",author:"Kalonde et al"},{date:"2023/04/12",title:"Understanding GIS through Sustainable Development Goals",link:"https://www.taylorfrancis.com/books/mono/10.1201/9781003220510/understanding-gis-sustainable-development-goals-paul-holloway",author:"Holloway, P."},{date:"2023/04/27",title:"INTERACT Pocket guide on how to reduce plastic consumption and pollution",link:"https://eu-interact.org/app/uploads/2023/05/D2.11.pdf",author:"Arndal et al"},{date:"2023/04/27",title:`Evaluation of a smartphone-based methodology that integrates long-term tracking of mobility, place experiences, heart rate variability, and subjective well-being`,link:"https://www.cell.com/heliyon/pdf/S2405-8440(23)02958-4.pdf",author:"Giusti et al"},{date:"2023/05/01",title:"Waste classification using vision transformer based on multilayer hybrid convolution neural network",link:"https://www.sciencedirect.com/science/article/abs/pii/S2212095523000779",author:"Alrayes et al"},{date:"2023/05/25",title:"Optimized Custom Dataset for Efficient Detection of Underwater Trash",link:"https://arxiv.org/pdf/2305.16460.pdf",author:"Walia et al"},{date:"2023/05/29",title:"A methodology for quantifying and characterizing litter from trash capture devices (TCDs) to measure impact and inform upstream solutions",link:"https://www.facetsjournal.com/doi/full/10.1139/facets-2022-0034",author:"Sherlock et al"},{date:"2023/07/01",title:"Study on the real-time object detection approach for end-of-life battery-powered electronics in the waste of electrical and electronic equipment recycling process",link:"https://www.sciencedirect.com/science/article/abs/pii/S0956053X23003355",author:"Yang et al"},{date:"2023/08/16",title:"Mapping Waste Piles in an Urban Environment Using Ground Surveys, Manual Digitization of Drone Imagery, and Object Based Image Classification Approach",link:"https://assets.researchsquare.com/files/rs-3244445/v1/ae8bcfa1-65c2-4ca1-ab43-8216902c2b0b.pdf?c=1692214271",author:"Kalonde et al"},{date:"2023/08/16",title:"The Privacy-Value-App Relationship and the Value-Centered Privacy Assistant",link:"https://arxiv.org/pdf/2308.05700.pdf",author:"Carter et al"},{date:"2023/08/18",title:"Centralized road to a decentralized circular plastics economy",link:"https://dutchblockchaincoalition.org/assets/images/default/Msc_Thesis_NinaHuijberts.pdf",author:"Huijberts, N."},{date:"2023/08/23",title:"A survey on bias in machine learning research",link:"https://arxiv.org/pdf/2308.11254.pdf",author:"Mikolajczyk-Bare & Grochowski"},{date:"2023/08/31",title:"Deep learning-based object detection for smart solid waste management system",link:"https://www.peertechzpublications.org/articles/AEST-7-170.pdf",author:"Desta et al"},{date:"2023/09/01",title:"Machine Learning-Based Garbage Detection and 3D Spatial Localization for Intelligent Robotic Grasp",link:"https://www.mdpi.com/2076-3417/13/18/10018",author:"Zhenwei et al"},{date:"2023/09/12",title:"Do We Consume a Lot? Citizen Science Activity for a Circular Economy of Single-Use Plastics in the European Union and North America",link:"https://papers.ssrn.com/sol3/papers.cfm?abstract_id=4569668",author:"Salas et al"},{date:"2023/09/23",title:"Outdoor Trash Detection in Natural Environment Using a Deep Learning Model",link:"https://ieeexplore.ieee.org/abstract/document/10244010",author:"Das et al"},{date:"2023/09/29",title:"Trash AI: A Web GUI for Serverless Computer Vision Analysis of Images of Trash",link:"https://joss.theoj.org/papers/10.21105/joss.05136.pdf",author:"Cowger et al"},{date:"2023/11/16",title:"Public geography and citizen science: participatory practices for action research",link:"https://rosa.uniroma1.it/rosa02/annali_memotef/article/view/1538",author:"Capinera, C."},{date:"2024/01/15",title:"German artificial intelligence (AI) technologies in waste management industry that can be implemented in Iran",link:"https://d1wqtxts1xzle7.cloudfront.net/115878636/Milad_Shokrollahi_Paper_92103552_-libre.pdf?1718099227=&response-content-disposition=inline%3B+filename%3DGerman_artificial_intelligence_AI_techn.pdf&Expires=1727174926&Signature=QqRyD8qAGQuQFsAJb0LYB21c18TpbmIz21p4fHMADTWxZOxbIpObVinLLdzFVWbe~mNiklw~M8Do4yn51ODUIG5QuOlHjfnSIxQK7Fxx1TY1s8xEp-hRDgM4K32XTxI-QymY1nrIBy7mhvYcXzu4x~c6S4AVXPUIS1zf-YNdNyAd7mtKKyGQxpE0R5RZghIxNtQHt1isrGT8iDqIJd0~804OgMG0P3SjM-cwIaQS1qKA7Nwjo6SUzlKrzZLOCVNZ~qLUCQWxj5MkYdo9QUijzaGeOlzAVqjLwexOY9RqjrFQu5Adbt~B8UPSW3xTmCPh1Ssd2Y6Y0cUkkuZ169d0Nw__&Key-Pair-Id=APKAJLOHF5GGSLRBV4ZA",author:"Shokrollahi, M."},{date:"2024/01/26",title:"pLitterStreet: Street Level Plastic Litter Detection and Mapping",link:"https://arxiv.org/abs/2401.14719",author:"Reddy et al"},{date:"2024/02/01",title:"Hierarchical waste detection with weakly supervised segmentation in images from recycling plants",link:"https://www.sciencedirect.com/science/article/abs/pii/S0952197623017268",author:"Yudin et al"},{date:"2024/02/28",title:"Optical Detection of Plastic Waste Through Computer Vision",link:"https://www.sciencedirect.com/science/article/pii/S2667305324000176",author:"Shukratov et al"},{date:"2024/03/01",title:"GENII: A graph neural network-based model for citywide litter prediction leveraging crowdsensing data",link:"https://www.sciencedirect.com/science/article/abs/pii/S0957417423020675",author:"Wang et al"},{date:"2024/03/02",title:"Application Research of Waterborne Plastic Waste Recycling Device Based on Green Design Principles ",link:"https://ebooks.iospress.nl/doi/10.3233/FAIA231470",author:"Zheng & Biao"},{date:"2024/03/19",title:"AI-enhanced Collective Intelligence: The State of the Art and Prospects",link:"https://arxiv.org/pdf/2403.10433.pdf",author:"Cui & Yasseri"},{date:"2024/04/24",title:"Machine Vision for Solid Waste Detection",link:"https://link.springer.com/chapter/10.1007/978-3-031-59531-8_12",author:"Pimenov et al"},{date:"2024/04/25",title:"A Review on Open Data Storage and Retrieval Techniques in Blockchain-based Applications",link:"https://ieeexplore.ieee.org/abstract/document/10533356",author:"Fateminasab et al"},{date:"2024/04/30",title:"Identifying E-Governance Approaches And Their Potential To Support Progress Toward The EU Green Deal",link:"https://edepot.wur.nl/659247",author:"Kogut et al"},{date:"2024/05/07",title:"Open Data Sources for Post-Consumer Plastic Sorting: What We Have and What We Still Need",link:"https://www.sciencedirect.com/science/article/pii/S2212827124001847",author:"Basedow et al"},{date:"2024/06/08",title:"Deep Learning in Waste Management: A Brief Survey",link:"https://www.preprints.org/manuscript/202407.0637/v1",author:"Kunwar et al"},{date:"2024/06/10",title:"The use of citizen science data for biodiversity monitoring and informing the GBF indicators",link:"https://pure.iiasa.ac.at/id/eprint/19822/1/GBF%20ppt%20-%20Fraisl%20v0.pdf",author:"Fraisl, D"},{date:"2024/06/12",title:"Design of an autonomous litter detection and collection system for Icelandic beaches",link:"https://skemman.is/handle/1946/47664",author:"Frey René"},{date:"2024/06/28",title:"Quantification of litter in cities using a smartphone application and citizen science in conjunction with deep learning-based image processing",link:"https://www.sciencedirect.com/science/article/pii/S0956053X24003817",author:"Kako et al"},{date:"2024/08/18",title:"Enhancing Μaritime Lοgistics with Blοckchain Τechnοlοgy : Applicatiοn tο secure and trace dangerοus gοοds in smart pοrts",link:"https://theses.hal.science/tel-04652638/",author:"Abdallah, R."},{date:"2024/08/29",title:"A Deep Learning-Based Approach to Garbage Detection in urban centers",link:"https://eajse.tiu.edu.iq/index.php/eajse/article/view/25",author:"Arif et al"},{date:"2024/09/14",title:"Blockchain on Sustainable Environmental Measures: A Review",link:"https://www.mdpi.com/2813-5288/2/3/16",author:"Vladucu et al"},{date:"2024/09/20",title:"Uncollected Solid Waste Detection and Reporting Using Machine-learning and Geotagging",link:"https://papers.academic-conferences.org/index.php/ecie/article/view/2581",author:"Ndlovu et al"}]}},methods:{getDate(a){return n(a).format("LL")},open(a){window.open(a,"_blank")}}};var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"content p2"},[t("p",{staticClass:"ref-title"},[e._v(" OpenLitterMap has been referenced "+e._s(e.references.length)+" times and counting ")]),t("ul",e._l(e.references.slice().reverse(),function(i){return t("li",[t("div",{staticClass:"mb1"},[t("p",[e._v(e._s(e.getDate(i.date)))]),t("a",{on:{click:function(d){return e.open(i.link)}}},[e._v(e._s(i.title))]),t("p",[e._v(e._s(i.author))])])])}),0)])},l=[],c=o(r,s,l,!1,null,"58d4ec2a");const m=c.exports;export{m as default}; diff --git a/public/build/assets/Reset-BReAmnsL.js b/public/build/assets/Reset-nZXHeAW-.js similarity index 99% rename from public/build/assets/Reset-BReAmnsL.js rename to public/build/assets/Reset-nZXHeAW-.js index cb0a6a528..e2bc4a958 100644 --- a/public/build/assets/Reset-BReAmnsL.js +++ b/public/build/assets/Reset-nZXHeAW-.js @@ -1 +1 @@ -import{n as d}from"./app-DpqRw90N.js";/* empty css */const c={name:"Email",props:["token"],data(){return{email:this.$route.query.email,password:"",passwordConfirmation:"",processing:!1,isPasswordVisible:!1,isPasswordConfirmationVisible:!1}},computed:{errors(){return this.$store.state.user.errors},emailErrors(){return this.errors.email?this.errors.email[0]:null},passwordErrors(){return this.errors.password?this.errors.password[0]:null},passwordConfirmationErrors(){return this.errors.password_confirmation?this.errors.password_confirmation[0]:null}},methods:{async submit(){if(this.password!==this.passwordConfirmation){let t={...this.errors,password:["The password confirmation does not match."]};this.$store.commit("errors",t);return}this.processing=!0,await this.$store.dispatch("RESET_PASSWORD",{email:this.email,password:this.password,password_confirmation:this.passwordConfirmation,token:this.token}),this.processing=!1},clearErrors(){this.$store.commit("errors",[])}}};var p=function(){var s=this,a=s._self._c;return a("section",{staticClass:"hero is-info is-fullheight"},[a("div",{staticClass:"columns centered"},[a("div",{staticClass:"column"}),a("div",{staticClass:"column is-half-tablet is-one-third-desktop is-one-quarter-fullhd"},[a("p",{staticClass:"title is-1 has-text-centered"},[s._v("Reset Your Password")]),a("div",{staticClass:"panel-body"},[a("form",{staticClass:"form-horizontal",attrs:{role:"form"},on:{submit:function(r){return r.preventDefault(),s.submit.apply(null,arguments)}}},[a("div",{staticClass:"field with-x-spacing"},[a("label",{staticClass:"label has-text-white",attrs:{for:"email"}},[s._v(s._s(s.$t("settings.details.email")))]),a("div",{staticClass:"control has-icons-left",class:s.processing?"is-loading":""},[a("input",{directives:[{name:"model",rawName:"v-model",value:s.email,expression:"email"}],staticClass:"input",class:s.emailErrors?"is-danger":"",attrs:{id:"email",type:"email",name:"email",required:"",autofocus:"",placeholder:"you@email.com"},domProps:{value:s.email},on:{input:[function(r){r.target.composing||(s.email=r.target.value)},s.clearErrors]}}),s._m(0),s.emailErrors?a("p",{staticClass:"help has-text-white has-text-weight-bold"},[s._v(s._s(s.emailErrors))]):s._e()])]),a("div",{staticClass:"field with-x-spacing"},[a("label",{staticClass:"label has-text-white",attrs:{for:"password"}},[s._v(s._s(s.$t("settings.password.enter-new-password")))]),a("div",{staticClass:"control has-icons-left has-icons-right",class:s.processing?"is-loading":""},[(s.isPasswordVisible?"text":"password")=="checkbox"?a("input",{directives:[{name:"model",rawName:"v-model",value:s.password,expression:"password"}],staticClass:"input",class:s.passwordErrors?"is-danger":"",attrs:{id:"password",name:"password",required:"",placeholder:"********",type:"checkbox"},domProps:{checked:Array.isArray(s.password)?s._i(s.password,null)>-1:s.password},on:{input:s.clearErrors,change:function(r){var i=s.password,e=r.target,l=!!e.checked;if(Array.isArray(i)){var n=null,o=s._i(i,n);e.checked?o<0&&(s.password=i.concat([n])):o>-1&&(s.password=i.slice(0,o).concat(i.slice(o+1)))}else s.password=l}}}):(s.isPasswordVisible?"text":"password")=="radio"?a("input",{directives:[{name:"model",rawName:"v-model",value:s.password,expression:"password"}],staticClass:"input",class:s.passwordErrors?"is-danger":"",attrs:{id:"password",name:"password",required:"",placeholder:"********",type:"radio"},domProps:{checked:s._q(s.password,null)},on:{input:s.clearErrors,change:function(r){s.password=null}}}):a("input",{directives:[{name:"model",rawName:"v-model",value:s.password,expression:"password"}],staticClass:"input",class:s.passwordErrors?"is-danger":"",attrs:{id:"password",name:"password",required:"",placeholder:"********",type:s.isPasswordVisible?"text":"password"},domProps:{value:s.password},on:{input:[function(r){r.target.composing||(s.password=r.target.value)},s.clearErrors]}}),s._m(1),a("span",{staticClass:"icon is-small is-right cursor-pointer",staticStyle:{"pointer-events":"all"},on:{click:function(r){s.isPasswordVisible=!s.isPasswordVisible}}},[a("i",{staticClass:"fa",class:s.isPasswordVisible?"fa-eye":"fa-eye-slash"})]),s.passwordErrors?a("p",{staticClass:"help has-text-white has-text-weight-bold"},[s._v(s._s(s.passwordErrors))]):s._e()])]),a("div",{staticClass:"field with-x-spacing"},[a("label",{staticClass:"label has-text-white",attrs:{for:"password_conf"}},[s._v(s._s(s.$t("settings.password.confirm-new-password")))]),a("div",{staticClass:"control has-icons-left has-icons-right",class:s.processing?"is-loading":""},[(s.isPasswordConfirmationVisible?"text":"password")=="checkbox"?a("input",{directives:[{name:"model",rawName:"v-model",value:s.passwordConfirmation,expression:"passwordConfirmation"}],staticClass:"input",class:s.passwordConfirmationErrors?"is-danger":"",attrs:{id:"password_conf",name:"password_conf",required:"",placeholder:"********",type:"checkbox"},domProps:{checked:Array.isArray(s.passwordConfirmation)?s._i(s.passwordConfirmation,null)>-1:s.passwordConfirmation},on:{input:s.clearErrors,change:function(r){var i=s.passwordConfirmation,e=r.target,l=!!e.checked;if(Array.isArray(i)){var n=null,o=s._i(i,n);e.checked?o<0&&(s.passwordConfirmation=i.concat([n])):o>-1&&(s.passwordConfirmation=i.slice(0,o).concat(i.slice(o+1)))}else s.passwordConfirmation=l}}}):(s.isPasswordConfirmationVisible?"text":"password")=="radio"?a("input",{directives:[{name:"model",rawName:"v-model",value:s.passwordConfirmation,expression:"passwordConfirmation"}],staticClass:"input",class:s.passwordConfirmationErrors?"is-danger":"",attrs:{id:"password_conf",name:"password_conf",required:"",placeholder:"********",type:"radio"},domProps:{checked:s._q(s.passwordConfirmation,null)},on:{input:s.clearErrors,change:function(r){s.passwordConfirmation=null}}}):a("input",{directives:[{name:"model",rawName:"v-model",value:s.passwordConfirmation,expression:"passwordConfirmation"}],staticClass:"input",class:s.passwordConfirmationErrors?"is-danger":"",attrs:{id:"password_conf",name:"password_conf",required:"",placeholder:"********",type:s.isPasswordConfirmationVisible?"text":"password"},domProps:{value:s.passwordConfirmation},on:{input:[function(r){r.target.composing||(s.passwordConfirmation=r.target.value)},s.clearErrors]}}),s._m(2),a("div",{staticClass:"icon is-small is-right cursor-pointer",staticStyle:{"pointer-events":"all"},on:{click:function(r){s.isPasswordConfirmationVisible=!s.isPasswordConfirmationVisible}}},[a("i",{staticClass:"fa",class:s.isPasswordConfirmationVisible?"fa-eye":"fa-eye-slash"})]),s.passwordConfirmationErrors?a("p",{staticClass:"help has-text-white has-text-weight-bold"},[s._v(s._s(s.passwordConfirmationErrors))]):s._e()])]),a("div",{staticClass:"field has-text-centered"},[a("div",{staticClass:"control"},[a("button",{staticClass:"button is-primary",class:s.processing?"is-loading":"",attrs:{type:"submit",disabled:s.processing}},[s._v(" Reset Password ")])])])])])]),a("div",{staticClass:"column"})])])},m=[function(){var t=this,s=t._self._c;return s("span",{staticClass:"icon is-small is-left"},[s("i",{staticClass:"fa fa-envelope"})])},function(){var t=this,s=t._self._c;return s("span",{staticClass:"icon is-small is-left"},[s("i",{staticClass:"fa fa-lock"})])},function(){var t=this,s=t._self._c;return s("span",{staticClass:"icon is-small is-left"},[s("i",{staticClass:"fa fa-lock"})])}],w=d(c,p,m,!1,null,"9f4d8a55");const h=w.exports;export{h as default}; +import{n as d}from"./app-DGjOB0Vc.js";/* empty css */const c={name:"Email",props:["token"],data(){return{email:this.$route.query.email,password:"",passwordConfirmation:"",processing:!1,isPasswordVisible:!1,isPasswordConfirmationVisible:!1}},computed:{errors(){return this.$store.state.user.errors},emailErrors(){return this.errors.email?this.errors.email[0]:null},passwordErrors(){return this.errors.password?this.errors.password[0]:null},passwordConfirmationErrors(){return this.errors.password_confirmation?this.errors.password_confirmation[0]:null}},methods:{async submit(){if(this.password!==this.passwordConfirmation){let t={...this.errors,password:["The password confirmation does not match."]};this.$store.commit("errors",t);return}this.processing=!0,await this.$store.dispatch("RESET_PASSWORD",{email:this.email,password:this.password,password_confirmation:this.passwordConfirmation,token:this.token}),this.processing=!1},clearErrors(){this.$store.commit("errors",[])}}};var p=function(){var s=this,a=s._self._c;return a("section",{staticClass:"hero is-info is-fullheight"},[a("div",{staticClass:"columns centered"},[a("div",{staticClass:"column"}),a("div",{staticClass:"column is-half-tablet is-one-third-desktop is-one-quarter-fullhd"},[a("p",{staticClass:"title is-1 has-text-centered"},[s._v("Reset Your Password")]),a("div",{staticClass:"panel-body"},[a("form",{staticClass:"form-horizontal",attrs:{role:"form"},on:{submit:function(r){return r.preventDefault(),s.submit.apply(null,arguments)}}},[a("div",{staticClass:"field with-x-spacing"},[a("label",{staticClass:"label has-text-white",attrs:{for:"email"}},[s._v(s._s(s.$t("settings.details.email")))]),a("div",{staticClass:"control has-icons-left",class:s.processing?"is-loading":""},[a("input",{directives:[{name:"model",rawName:"v-model",value:s.email,expression:"email"}],staticClass:"input",class:s.emailErrors?"is-danger":"",attrs:{id:"email",type:"email",name:"email",required:"",autofocus:"",placeholder:"you@email.com"},domProps:{value:s.email},on:{input:[function(r){r.target.composing||(s.email=r.target.value)},s.clearErrors]}}),s._m(0),s.emailErrors?a("p",{staticClass:"help has-text-white has-text-weight-bold"},[s._v(s._s(s.emailErrors))]):s._e()])]),a("div",{staticClass:"field with-x-spacing"},[a("label",{staticClass:"label has-text-white",attrs:{for:"password"}},[s._v(s._s(s.$t("settings.password.enter-new-password")))]),a("div",{staticClass:"control has-icons-left has-icons-right",class:s.processing?"is-loading":""},[(s.isPasswordVisible?"text":"password")=="checkbox"?a("input",{directives:[{name:"model",rawName:"v-model",value:s.password,expression:"password"}],staticClass:"input",class:s.passwordErrors?"is-danger":"",attrs:{id:"password",name:"password",required:"",placeholder:"********",type:"checkbox"},domProps:{checked:Array.isArray(s.password)?s._i(s.password,null)>-1:s.password},on:{input:s.clearErrors,change:function(r){var i=s.password,e=r.target,l=!!e.checked;if(Array.isArray(i)){var n=null,o=s._i(i,n);e.checked?o<0&&(s.password=i.concat([n])):o>-1&&(s.password=i.slice(0,o).concat(i.slice(o+1)))}else s.password=l}}}):(s.isPasswordVisible?"text":"password")=="radio"?a("input",{directives:[{name:"model",rawName:"v-model",value:s.password,expression:"password"}],staticClass:"input",class:s.passwordErrors?"is-danger":"",attrs:{id:"password",name:"password",required:"",placeholder:"********",type:"radio"},domProps:{checked:s._q(s.password,null)},on:{input:s.clearErrors,change:function(r){s.password=null}}}):a("input",{directives:[{name:"model",rawName:"v-model",value:s.password,expression:"password"}],staticClass:"input",class:s.passwordErrors?"is-danger":"",attrs:{id:"password",name:"password",required:"",placeholder:"********",type:s.isPasswordVisible?"text":"password"},domProps:{value:s.password},on:{input:[function(r){r.target.composing||(s.password=r.target.value)},s.clearErrors]}}),s._m(1),a("span",{staticClass:"icon is-small is-right cursor-pointer",staticStyle:{"pointer-events":"all"},on:{click:function(r){s.isPasswordVisible=!s.isPasswordVisible}}},[a("i",{staticClass:"fa",class:s.isPasswordVisible?"fa-eye":"fa-eye-slash"})]),s.passwordErrors?a("p",{staticClass:"help has-text-white has-text-weight-bold"},[s._v(s._s(s.passwordErrors))]):s._e()])]),a("div",{staticClass:"field with-x-spacing"},[a("label",{staticClass:"label has-text-white",attrs:{for:"password_conf"}},[s._v(s._s(s.$t("settings.password.confirm-new-password")))]),a("div",{staticClass:"control has-icons-left has-icons-right",class:s.processing?"is-loading":""},[(s.isPasswordConfirmationVisible?"text":"password")=="checkbox"?a("input",{directives:[{name:"model",rawName:"v-model",value:s.passwordConfirmation,expression:"passwordConfirmation"}],staticClass:"input",class:s.passwordConfirmationErrors?"is-danger":"",attrs:{id:"password_conf",name:"password_conf",required:"",placeholder:"********",type:"checkbox"},domProps:{checked:Array.isArray(s.passwordConfirmation)?s._i(s.passwordConfirmation,null)>-1:s.passwordConfirmation},on:{input:s.clearErrors,change:function(r){var i=s.passwordConfirmation,e=r.target,l=!!e.checked;if(Array.isArray(i)){var n=null,o=s._i(i,n);e.checked?o<0&&(s.passwordConfirmation=i.concat([n])):o>-1&&(s.passwordConfirmation=i.slice(0,o).concat(i.slice(o+1)))}else s.passwordConfirmation=l}}}):(s.isPasswordConfirmationVisible?"text":"password")=="radio"?a("input",{directives:[{name:"model",rawName:"v-model",value:s.passwordConfirmation,expression:"passwordConfirmation"}],staticClass:"input",class:s.passwordConfirmationErrors?"is-danger":"",attrs:{id:"password_conf",name:"password_conf",required:"",placeholder:"********",type:"radio"},domProps:{checked:s._q(s.passwordConfirmation,null)},on:{input:s.clearErrors,change:function(r){s.passwordConfirmation=null}}}):a("input",{directives:[{name:"model",rawName:"v-model",value:s.passwordConfirmation,expression:"passwordConfirmation"}],staticClass:"input",class:s.passwordConfirmationErrors?"is-danger":"",attrs:{id:"password_conf",name:"password_conf",required:"",placeholder:"********",type:s.isPasswordConfirmationVisible?"text":"password"},domProps:{value:s.passwordConfirmation},on:{input:[function(r){r.target.composing||(s.passwordConfirmation=r.target.value)},s.clearErrors]}}),s._m(2),a("div",{staticClass:"icon is-small is-right cursor-pointer",staticStyle:{"pointer-events":"all"},on:{click:function(r){s.isPasswordConfirmationVisible=!s.isPasswordConfirmationVisible}}},[a("i",{staticClass:"fa",class:s.isPasswordConfirmationVisible?"fa-eye":"fa-eye-slash"})]),s.passwordConfirmationErrors?a("p",{staticClass:"help has-text-white has-text-weight-bold"},[s._v(s._s(s.passwordConfirmationErrors))]):s._e()])]),a("div",{staticClass:"field has-text-centered"},[a("div",{staticClass:"control"},[a("button",{staticClass:"button is-primary",class:s.processing?"is-loading":"",attrs:{type:"submit",disabled:s.processing}},[s._v(" Reset Password ")])])])])])]),a("div",{staticClass:"column"})])])},m=[function(){var t=this,s=t._self._c;return s("span",{staticClass:"icon is-small is-left"},[s("i",{staticClass:"fa fa-envelope"})])},function(){var t=this,s=t._self._c;return s("span",{staticClass:"icon is-small is-left"},[s("i",{staticClass:"fa fa-lock"})])},function(){var t=this,s=t._self._c;return s("span",{staticClass:"icon is-small is-left"},[s("i",{staticClass:"fa fa-lock"})])}],w=d(c,p,m,!1,null,"9f4d8a55");const h=w.exports;export{h as default}; diff --git a/public/build/assets/Settings-qX2oFDkn.js b/public/build/assets/Settings-D0KprKgT.js similarity index 92% rename from public/build/assets/Settings-qX2oFDkn.js rename to public/build/assets/Settings-D0KprKgT.js index 722ab7f91..9d8945093 100644 --- a/public/build/assets/Settings-qX2oFDkn.js +++ b/public/build/assets/Settings-D0KprKgT.js @@ -1 +1 @@ -import i from"./Details-CbKeCWBq.js";import e from"./Social-IjUuJI_Y.js";import n from"./Account-FMlRedLX.js";import{n as o}from"./app-DpqRw90N.js";import l from"./Payments-C35ltisY.js";import c from"./Privacy-C_8rYXtv.js";import d from"./Littercoin-bucTPJ3h.js";import p from"./PickedUp-BtD7Sfsj.js";import m from"./Emails-mF8r9mTN.js";import u from"./GlobalFlag-CmS90N9I.js";/* empty css */import"./vue-loading-Bl53SHQy.js";/* empty css */const f={name:"Password",data(){return{processing:!1,oldpassword:"",password:"",password_confirmation:"",btn:"button is-medium is-info"}},computed:{button(){return this.processing?this.btn+" is-loading":this.btn},errors(){return this.$store.state.user.errors}},methods:{clearError(r){this.errors[r]&&this.$store.commit("deleteUserError",r)},getFirstError(r){return this.errors[r][0]},errorExists(r){return this.errors.hasOwnProperty(r)},async submit(){this.processing=!0,await this.$store.dispatch("CHANGE_PASSWORD",{oldpassword:this.oldpassword,password:this.password,password_confirmation:this.password_confirmation}),this.processing=!1},translate(r){return this.$t("settings."+r)}}};var _=function(){var s=this,t=s._self._c;return t("div",{staticStyle:{"padding-left":"1em","padding-right":"1em"}},[t("h1",{staticClass:"title is-4"},[s._v(" "+s._s(s.$t("settings.password.change-password")))]),t("hr"),t("br"),t("div",{staticClass:"columns"},[t("div",{staticClass:"column is-one-third is-offset-1"},[t("form",{attrs:{method:"POST"},on:{submit:function(a){return a.preventDefault(),s.submit.apply(null,arguments)},keydown:function(a){return s.clearError(a.target.name)}}},[t("label",{attrs:{for:"oldpassword"}},[s._v(" "+s._s(s.$t("settings.password.enter-old-password")))]),s.errorExists("oldpassword")?t("span",{staticClass:"error",domProps:{textContent:s._s(s.getFirstError("oldpassword"))}}):s._e(),t("div",{staticClass:"field"},[t("div",{staticClass:"control has-icons-left"},[t("input",{directives:[{name:"model",rawName:"v-model",value:s.oldpassword,expression:"oldpassword"}],staticClass:"input",attrs:{type:"password",name:"oldpassword",placeholder:"*********",required:""},domProps:{value:s.oldpassword},on:{input:function(a){a.target.composing||(s.oldpassword=a.target.value)}}}),s._m(0)])]),t("label",{attrs:{for:"password"}},[s._v(s._s(s.$t("settings.password.enter-new-password")))]),s.errorExists("password")?t("span",{staticClass:"error",domProps:{textContent:s._s(s.getFirstError("password"))}}):s._e(),t("div",{staticClass:"field"},[t("div",{staticClass:"control has-icons-left"},[t("input",{directives:[{name:"model",rawName:"v-model",value:s.password,expression:"password"}],staticClass:"input",attrs:{id:"password",type:"password",name:"password",placeholder:s.translate("password.enter-strong-password"),required:""},domProps:{value:s.password},on:{input:function(a){a.target.composing||(s.password=a.target.value)}}}),s._m(1)])]),t("label",{attrs:{for:"password_confirmation"}},[s._v(s._s(s.$t("settings.password.confirm-new-password")))]),s.errorExists("password_confirmation")?t("span",{staticClass:"error",domProps:{textContent:s._s(s.getFirstError("password_confirmation"))}}):s._e(),t("div",{staticClass:"field mb2"},[t("div",{staticClass:"control has-icons-left"},[t("input",{directives:[{name:"model",rawName:"v-model",value:s.password_confirmation,expression:"password_confirmation"}],staticClass:"input",attrs:{type:"password",name:"password_confirmation",placeholder:s.translate("password.repeat-strong-password"),required:""},domProps:{value:s.password_confirmation},on:{input:function(a){a.target.composing||(s.password_confirmation=a.target.value)}}}),s._m(2)])]),t("div",{staticClass:"col-md-12",staticStyle:{"text-align":"center"}},[t("button",{class:s.button,attrs:{disabled:s.processing}},[s._v(s._s(s.$t("settings.password.update-password")))])])])])])])},w=[function(){var r=this,s=r._self._c;return s("span",{staticClass:"icon is-small is-left"},[s("i",{staticClass:"fa fa-key"})])},function(){var r=this,s=r._self._c;return s("span",{staticClass:"icon is-small is-left"},[s("i",{staticClass:"fa fa-key"})])},function(){var r=this,s=r._self._c;return s("span",{staticClass:"icon is-small is-left"},[s("i",{staticClass:"fa fa-key"})])}],v=o(f,_,w,!1,null,null);const h=v.exports,g={name:"Settings",components:{Details:i,Social:e,Account:n,Password:h,Payments:l,Privacy:c,Littercoin:d,PickedUp:p,Emails:m,GlobalFlag:u},async created(){window.location.href.split("/")[4]&&(this.link=window.location.href.split("/")[4])},data(){return{links:["details","social","account","password","payments","privacy","littercoin","picked-up","emails","show-flag"],link:"password",types:{details:"Details",social:"Social",account:"Account",password:"Password",payments:"Payments",privacy:"Privacy",littercoin:"Littercoin","picked-up":"PickedUp",emails:"Emails","show-flag":"GlobalFlag"}}},methods:{change(r){this.link=r},translate(r){return this.$t("settings.common."+r)}}};var C=function(){var s=this,t=s._self._c;return t("div",{staticClass:"container mt5"},[t("div",{staticClass:"columns"},[t("div",{staticClass:"column is-2"},[t("aside",{staticClass:"menu",attrs:{id:"panel"}},[t("p",{staticClass:"menu-label"},[s._v(" "+s._s(s.$t("settings.common.general"))+" ")]),t("ul",{staticClass:"menu-list"},s._l(s.links,function(a){return t("li",[t("router-link",{attrs:{to:"/settings/"+a},nativeOn:{click:function(P){return s.change(a)}}},[s._v(" "+s._s(s.translate(a))+" ")])],1)}),0)])]),t("div",{staticClass:"column is-three-quarters is-offset-1"},[t(this.types[this.link],{tag:"component"})],1)])])},y=[],b=o(g,C,y,!1,null,null);const U=b.exports;export{U as default}; +import i from"./Details-BxAUz3B8.js";import e from"./Social-Bi1QwlXO.js";import n from"./Account-DSpVKzjv.js";import{n as o}from"./app-DGjOB0Vc.js";import l from"./Payments-B5uzbkav.js";import c from"./Privacy-DoyV9tEI.js";import d from"./Littercoin-B9T3_uDX.js";import p from"./PickedUp-D-geuGl2.js";import m from"./Emails-C5x0nnqX.js";import u from"./GlobalFlag-DjPPgtZl.js";/* empty css */import"./vue-loading-Kx5ngqlf.js";/* empty css */const f={name:"Password",data(){return{processing:!1,oldpassword:"",password:"",password_confirmation:"",btn:"button is-medium is-info"}},computed:{button(){return this.processing?this.btn+" is-loading":this.btn},errors(){return this.$store.state.user.errors}},methods:{clearError(r){this.errors[r]&&this.$store.commit("deleteUserError",r)},getFirstError(r){return this.errors[r][0]},errorExists(r){return this.errors.hasOwnProperty(r)},async submit(){this.processing=!0,await this.$store.dispatch("CHANGE_PASSWORD",{oldpassword:this.oldpassword,password:this.password,password_confirmation:this.password_confirmation}),this.processing=!1},translate(r){return this.$t("settings."+r)}}};var _=function(){var s=this,t=s._self._c;return t("div",{staticStyle:{"padding-left":"1em","padding-right":"1em"}},[t("h1",{staticClass:"title is-4"},[s._v(" "+s._s(s.$t("settings.password.change-password")))]),t("hr"),t("br"),t("div",{staticClass:"columns"},[t("div",{staticClass:"column is-one-third is-offset-1"},[t("form",{attrs:{method:"POST"},on:{submit:function(a){return a.preventDefault(),s.submit.apply(null,arguments)},keydown:function(a){return s.clearError(a.target.name)}}},[t("label",{attrs:{for:"oldpassword"}},[s._v(" "+s._s(s.$t("settings.password.enter-old-password")))]),s.errorExists("oldpassword")?t("span",{staticClass:"error",domProps:{textContent:s._s(s.getFirstError("oldpassword"))}}):s._e(),t("div",{staticClass:"field"},[t("div",{staticClass:"control has-icons-left"},[t("input",{directives:[{name:"model",rawName:"v-model",value:s.oldpassword,expression:"oldpassword"}],staticClass:"input",attrs:{type:"password",name:"oldpassword",placeholder:"*********",required:""},domProps:{value:s.oldpassword},on:{input:function(a){a.target.composing||(s.oldpassword=a.target.value)}}}),s._m(0)])]),t("label",{attrs:{for:"password"}},[s._v(s._s(s.$t("settings.password.enter-new-password")))]),s.errorExists("password")?t("span",{staticClass:"error",domProps:{textContent:s._s(s.getFirstError("password"))}}):s._e(),t("div",{staticClass:"field"},[t("div",{staticClass:"control has-icons-left"},[t("input",{directives:[{name:"model",rawName:"v-model",value:s.password,expression:"password"}],staticClass:"input",attrs:{id:"password",type:"password",name:"password",placeholder:s.translate("password.enter-strong-password"),required:""},domProps:{value:s.password},on:{input:function(a){a.target.composing||(s.password=a.target.value)}}}),s._m(1)])]),t("label",{attrs:{for:"password_confirmation"}},[s._v(s._s(s.$t("settings.password.confirm-new-password")))]),s.errorExists("password_confirmation")?t("span",{staticClass:"error",domProps:{textContent:s._s(s.getFirstError("password_confirmation"))}}):s._e(),t("div",{staticClass:"field mb2"},[t("div",{staticClass:"control has-icons-left"},[t("input",{directives:[{name:"model",rawName:"v-model",value:s.password_confirmation,expression:"password_confirmation"}],staticClass:"input",attrs:{type:"password",name:"password_confirmation",placeholder:s.translate("password.repeat-strong-password"),required:""},domProps:{value:s.password_confirmation},on:{input:function(a){a.target.composing||(s.password_confirmation=a.target.value)}}}),s._m(2)])]),t("div",{staticClass:"col-md-12",staticStyle:{"text-align":"center"}},[t("button",{class:s.button,attrs:{disabled:s.processing}},[s._v(s._s(s.$t("settings.password.update-password")))])])])])])])},w=[function(){var r=this,s=r._self._c;return s("span",{staticClass:"icon is-small is-left"},[s("i",{staticClass:"fa fa-key"})])},function(){var r=this,s=r._self._c;return s("span",{staticClass:"icon is-small is-left"},[s("i",{staticClass:"fa fa-key"})])},function(){var r=this,s=r._self._c;return s("span",{staticClass:"icon is-small is-left"},[s("i",{staticClass:"fa fa-key"})])}],v=o(f,_,w,!1,null,null);const h=v.exports,g={name:"Settings",components:{Details:i,Social:e,Account:n,Password:h,Payments:l,Privacy:c,Littercoin:d,PickedUp:p,Emails:m,GlobalFlag:u},async created(){window.location.href.split("/")[4]&&(this.link=window.location.href.split("/")[4])},data(){return{links:["details","social","account","password","payments","privacy","littercoin","picked-up","emails","show-flag"],link:"password",types:{details:"Details",social:"Social",account:"Account",password:"Password",payments:"Payments",privacy:"Privacy",littercoin:"Littercoin","picked-up":"PickedUp",emails:"Emails","show-flag":"GlobalFlag"}}},methods:{change(r){this.link=r},translate(r){return this.$t("settings.common."+r)}}};var C=function(){var s=this,t=s._self._c;return t("div",{staticClass:"container mt5"},[t("div",{staticClass:"columns"},[t("div",{staticClass:"column is-2"},[t("aside",{staticClass:"menu",attrs:{id:"panel"}},[t("p",{staticClass:"menu-label"},[s._v(" "+s._s(s.$t("settings.common.general"))+" ")]),t("ul",{staticClass:"menu-list"},s._l(s.links,function(a){return t("li",[t("router-link",{attrs:{to:"/settings/"+a},nativeOn:{click:function(P){return s.change(a)}}},[s._v(" "+s._s(s.translate(a))+" ")])],1)}),0)])]),t("div",{staticClass:"column is-three-quarters is-offset-1"},[t(this.types[this.link],{tag:"component"})],1)])])},y=[],b=o(g,C,y,!1,null,null);const U=b.exports;export{U as default}; diff --git a/public/build/assets/SignUp-CGZxR1n0.js b/public/build/assets/SignUp-R8efMgFv.js similarity index 98% rename from public/build/assets/SignUp-CGZxR1n0.js rename to public/build/assets/SignUp-R8efMgFv.js index ba45d4d96..99f0dc446 100644 --- a/public/build/assets/SignUp-CGZxR1n0.js +++ b/public/build/assets/SignUp-R8efMgFv.js @@ -1 +1 @@ -import{n as s}from"./app-DpqRw90N.js";/* empty css */const i={name:"SignUp"};var n=function(){var t=this,a=t._self._c;return a("section",{staticClass:"section hero fullheight is-primary is-bold"},[a("div",{staticClass:"container"},[a("h1",{staticClass:"title"},[t._v(" "+t._s(t.$t("auth.signup.ready-to-join"))+" ")]),a("h2",{staticClass:"subtitle"},[t._v(" "+t._s(t.$t("auth.signup.join-subtitle"))+" ")]),a("div",{staticClass:"columns"},[a("div",{staticClass:"column wow bounceInRight"},[a("div",{staticClass:"box",attrs:{id:"first"}},[a("p",{staticClass:"card-header-title",staticStyle:{color:"#3273dc","margin-bottom":"-20px"}},[t._v(" "+t._s(t.$t("auth.signup.free-plan"))+" ")]),a("div",{staticClass:"content"},[a("ul",[a("li",[t._v(t._s(t.$t("auth.signup.free-plan-feature1")))]),a("li",[t._v(t._s(t.$t("auth.signup.free-plan-feature2")))]),a("li",[t._v(t._s(t.$t("auth.signup.free-plan-feature3")))]),a("li",[t._v(t._s(t.$t("auth.signup.free-plan-feature4")))])])]),a("div",{staticStyle:{"text-align":"center"}},[a("router-link",{attrs:{to:"/join?plan=free"}},[a("button",{staticClass:"button is-primary is-center",staticStyle:{"margin-top":"-10px"}},[t._v(" "+t._s(t.$t("auth.signup.free-plan-join"))+" ")])])],1)])]),a("div",{staticClass:"column wow bounceInDown"},[a("div",{staticClass:"box"},[a("p",{staticClass:"card-header-title",staticStyle:{color:"orange"}},[t._v(" "+t._s(t.$t("auth.signup.startup-plan"))+" "),a("strong",{staticStyle:{"padding-left":"30px"}},[t._v(t._s(t.$t("auth.signup.startup-plan-donation")))])]),a("div",{staticClass:"content"},[a("ul",[a("li",[t._v(t._s(t.$t("auth.signup.startup-plan-feature1")))]),a("li",[t._v(t._s(t.$t("auth.signup.startup-plan-feature2")))]),a("li",[t._v(t._s(t.$t("auth.signup.startup-plan-feature3")))])])]),a("div",{staticStyle:{"text-align":"center"}},[a("router-link",{attrs:{to:"/join?plan=startup"}},[a("button",{staticClass:"button is-warning"},[t._v(" "+t._s(t.$t("auth.signup.startup-plan-join"))+" ")])])],1)])]),a("div",{staticClass:"column wow bounceInLeft"},[a("div",{staticClass:"box"},[a("p",{staticClass:"card-header-title",staticStyle:{color:"green"}},[t._v(" "+t._s(t.$t("auth.signup.basic-plan"))),a("strong",{staticStyle:{"padding-left":"30px"}},[t._v(t._s(t.$t("auth.signup.basic-plan-donation")))])]),a("div",{staticClass:"content"},[a("ul",[a("li",[t._v(t._s(t.$t("auth.signup.basic-plan-feature1")))]),a("li",[t._v(t._s(t.$t("auth.signup.basic-plan-feature2")))]),a("li",[t._v(t._s(t.$t("auth.signup.basic-plan-feature3")))])])]),a("div",{staticStyle:{"text-align":"center"}},[a("router-link",{attrs:{to:"/join?plan=basic"}},[a("button",{staticClass:"button is-success"},[t._v(" "+t._s(t.$t("auth.signup.basic-plan-join"))+" ")])])],1)])])]),a("div",{staticClass:"columns"},[a("div",{staticClass:"column is-4 is-offset-2 wow bounceInLeft"},[a("div",{staticClass:"box"},[a("p",{staticClass:"card-header-title"},[t._v(" "+t._s(t.$t("auth.signup.advanced-plan"))+" "),a("strong",{staticStyle:{"padding-left":"12px"}},[t._v(t._s(t.$t("auth.signup.advanced-plan-donation"))+" ")])]),a("div",{staticClass:"content"},[a("ul",[a("li",[t._v(t._s(t.$t("auth.signup.advanced-plan-feature1")))]),a("li",[t._v(t._s(t.$t("auth.signup.advanced-plan-feature2")))]),a("li",[t._v(t._s(t.$t("auth.signup.advanced-plan-feature3")))])])]),a("div",{staticStyle:{"text-align":"center"}},[a("router-link",{attrs:{to:"/join?plan=advanced"}},[a("button",{staticClass:"button is-dark"},[t._v(" "+t._s(t.$t("auth.signup.advanced-plan-join"))+" ")])])],1)])]),a("div",{staticClass:"column is-4 wow bounceInRight"},[a("div",{staticClass:"box"},[a("p",{staticClass:"card-header-title",staticStyle:{color:"red"}},[t._v(" "+t._s(t.$t("auth.signup.pro-plan"))+" "),a("strong",{staticStyle:{"padding-left":"45px"}},[t._v(t._s(t.$t("auth.signup.pro-plan-donation")))])]),a("div",{staticClass:"content"},[a("ul",[a("li",[t._v(t._s(t.$t("auth.signup.pro-plan-feature1")))]),a("li",[t._v(t._s(t.$t("auth.signup.pro-plan-feature2")))]),a("li",[t._v(t._s(t.$t("auth.signup.pro-plan-feature3")))])])]),a("div",{staticStyle:{"text-align":"center"}},[a("router-link",{attrs:{to:"/join?plan=pro"}},[a("button",{staticClass:"button is-danger"},[t._v(" "+t._s(t.$t("auth.signup.pro-plan-join"))+" ")])])],1)])])])])])},e=[],l=s(i,n,e,!1,null,"895a84a0");const c=l.exports;export{c as default}; +import{n as s}from"./app-DGjOB0Vc.js";/* empty css */const i={name:"SignUp"};var n=function(){var t=this,a=t._self._c;return a("section",{staticClass:"section hero fullheight is-primary is-bold"},[a("div",{staticClass:"container"},[a("h1",{staticClass:"title"},[t._v(" "+t._s(t.$t("auth.signup.ready-to-join"))+" ")]),a("h2",{staticClass:"subtitle"},[t._v(" "+t._s(t.$t("auth.signup.join-subtitle"))+" ")]),a("div",{staticClass:"columns"},[a("div",{staticClass:"column wow bounceInRight"},[a("div",{staticClass:"box",attrs:{id:"first"}},[a("p",{staticClass:"card-header-title",staticStyle:{color:"#3273dc","margin-bottom":"-20px"}},[t._v(" "+t._s(t.$t("auth.signup.free-plan"))+" ")]),a("div",{staticClass:"content"},[a("ul",[a("li",[t._v(t._s(t.$t("auth.signup.free-plan-feature1")))]),a("li",[t._v(t._s(t.$t("auth.signup.free-plan-feature2")))]),a("li",[t._v(t._s(t.$t("auth.signup.free-plan-feature3")))]),a("li",[t._v(t._s(t.$t("auth.signup.free-plan-feature4")))])])]),a("div",{staticStyle:{"text-align":"center"}},[a("router-link",{attrs:{to:"/join?plan=free"}},[a("button",{staticClass:"button is-primary is-center",staticStyle:{"margin-top":"-10px"}},[t._v(" "+t._s(t.$t("auth.signup.free-plan-join"))+" ")])])],1)])]),a("div",{staticClass:"column wow bounceInDown"},[a("div",{staticClass:"box"},[a("p",{staticClass:"card-header-title",staticStyle:{color:"orange"}},[t._v(" "+t._s(t.$t("auth.signup.startup-plan"))+" "),a("strong",{staticStyle:{"padding-left":"30px"}},[t._v(t._s(t.$t("auth.signup.startup-plan-donation")))])]),a("div",{staticClass:"content"},[a("ul",[a("li",[t._v(t._s(t.$t("auth.signup.startup-plan-feature1")))]),a("li",[t._v(t._s(t.$t("auth.signup.startup-plan-feature2")))]),a("li",[t._v(t._s(t.$t("auth.signup.startup-plan-feature3")))])])]),a("div",{staticStyle:{"text-align":"center"}},[a("router-link",{attrs:{to:"/join?plan=startup"}},[a("button",{staticClass:"button is-warning"},[t._v(" "+t._s(t.$t("auth.signup.startup-plan-join"))+" ")])])],1)])]),a("div",{staticClass:"column wow bounceInLeft"},[a("div",{staticClass:"box"},[a("p",{staticClass:"card-header-title",staticStyle:{color:"green"}},[t._v(" "+t._s(t.$t("auth.signup.basic-plan"))),a("strong",{staticStyle:{"padding-left":"30px"}},[t._v(t._s(t.$t("auth.signup.basic-plan-donation")))])]),a("div",{staticClass:"content"},[a("ul",[a("li",[t._v(t._s(t.$t("auth.signup.basic-plan-feature1")))]),a("li",[t._v(t._s(t.$t("auth.signup.basic-plan-feature2")))]),a("li",[t._v(t._s(t.$t("auth.signup.basic-plan-feature3")))])])]),a("div",{staticStyle:{"text-align":"center"}},[a("router-link",{attrs:{to:"/join?plan=basic"}},[a("button",{staticClass:"button is-success"},[t._v(" "+t._s(t.$t("auth.signup.basic-plan-join"))+" ")])])],1)])])]),a("div",{staticClass:"columns"},[a("div",{staticClass:"column is-4 is-offset-2 wow bounceInLeft"},[a("div",{staticClass:"box"},[a("p",{staticClass:"card-header-title"},[t._v(" "+t._s(t.$t("auth.signup.advanced-plan"))+" "),a("strong",{staticStyle:{"padding-left":"12px"}},[t._v(t._s(t.$t("auth.signup.advanced-plan-donation"))+" ")])]),a("div",{staticClass:"content"},[a("ul",[a("li",[t._v(t._s(t.$t("auth.signup.advanced-plan-feature1")))]),a("li",[t._v(t._s(t.$t("auth.signup.advanced-plan-feature2")))]),a("li",[t._v(t._s(t.$t("auth.signup.advanced-plan-feature3")))])])]),a("div",{staticStyle:{"text-align":"center"}},[a("router-link",{attrs:{to:"/join?plan=advanced"}},[a("button",{staticClass:"button is-dark"},[t._v(" "+t._s(t.$t("auth.signup.advanced-plan-join"))+" ")])])],1)])]),a("div",{staticClass:"column is-4 wow bounceInRight"},[a("div",{staticClass:"box"},[a("p",{staticClass:"card-header-title",staticStyle:{color:"red"}},[t._v(" "+t._s(t.$t("auth.signup.pro-plan"))+" "),a("strong",{staticStyle:{"padding-left":"45px"}},[t._v(t._s(t.$t("auth.signup.pro-plan-donation")))])]),a("div",{staticClass:"content"},[a("ul",[a("li",[t._v(t._s(t.$t("auth.signup.pro-plan-feature1")))]),a("li",[t._v(t._s(t.$t("auth.signup.pro-plan-feature2")))]),a("li",[t._v(t._s(t.$t("auth.signup.pro-plan-feature3")))])])]),a("div",{staticStyle:{"text-align":"center"}},[a("router-link",{attrs:{to:"/join?plan=pro"}},[a("button",{staticClass:"button is-danger"},[t._v(" "+t._s(t.$t("auth.signup.pro-plan-join"))+" ")])])],1)])])])])])},e=[],l=s(i,n,e,!1,null,"895a84a0");const c=l.exports;export{c as default}; diff --git a/public/build/assets/Social-IjUuJI_Y.js b/public/build/assets/Social-Bi1QwlXO.js similarity index 98% rename from public/build/assets/Social-IjUuJI_Y.js rename to public/build/assets/Social-Bi1QwlXO.js index f70b320df..1f047fb87 100644 --- a/public/build/assets/Social-IjUuJI_Y.js +++ b/public/build/assets/Social-Bi1QwlXO.js @@ -1 +1 @@ -import{n}from"./app-DpqRw90N.js";/* empty css */const o={name:"Social",data(){return{btn:"button is-medium is-info",processing:!1,twitter:null,facebook:null,instagram:null,linkedin:null,reddit:null,personal:null}},mounted(){var e,t,s,i,a,r;this.$store.commit("errors",{}),this.twitter=(e=this.user.settings)==null?void 0:e.social_twitter,this.facebook=(t=this.user.settings)==null?void 0:t.social_facebook,this.instagram=(s=this.user.settings)==null?void 0:s.social_instagram,this.linkedin=(i=this.user.settings)==null?void 0:i.social_linkedin,this.reddit=(a=this.user.settings)==null?void 0:a.social_reddit,this.personal=(r=this.user.settings)==null?void 0:r.social_personal},computed:{button(){return this.processing?this.btn+" is-loading":this.btn},errors(){return this.$store.state.user.errors},user(){return this.$store.state.user.user}},methods:{getFirstError(e){return this.errors.hasOwnProperty(e)?this.errors[e][0]:null},async submit(){this.processing=!0,await this.$store.dispatch("UPDATE_SETTINGS",{social_twitter:this.twitter,social_facebook:this.facebook,social_instagram:this.instagram,social_linkedin:this.linkedin,social_reddit:this.reddit,social_personal:this.personal}),this.processing=!1}}};var l=function(){var t=this,s=t._self._c;return s("div",{staticStyle:{"padding-left":"1em","padding-right":"1em"}},[s("h1",{staticClass:"title is-4"},[t._v(t._s(t.$t("settings.common.social")))]),s("hr"),s("p",[t._v(t._s(t.$t("settings.social.description")))]),s("br"),s("div",{staticClass:"columns"},[s("div",{staticClass:"column is-half"},[s("form",{on:{submit:function(i){return i.preventDefault(),t.submit.apply(null,arguments)}}},[s("label",{attrs:{for:"twitter"}},[t._v("Twitter")]),s("div",{staticClass:"field"},[s("div",{staticClass:"control has-icons-left"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.twitter,expression:"twitter"}],staticClass:"input",attrs:{type:"text",name:"twitter",id:"twitter",placeholder:"Twitter URL"},domProps:{value:t.twitter},on:{input:function(i){i.target.composing||(t.twitter=i.target.value)}}}),t._m(0)]),t.getFirstError("social_twitter")?s("p",{staticClass:"help is-danger is-size-6",domProps:{textContent:t._s(t.getFirstError("social_twitter"))}}):t._e()]),s("label",{attrs:{for:"facebook"}},[t._v("Facebook")]),s("div",{staticClass:"field"},[s("div",{staticClass:"control has-icons-left"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.facebook,expression:"facebook"}],staticClass:"input",attrs:{type:"text",name:"facebook",id:"facebook",placeholder:"Facebook URL"},domProps:{value:t.facebook},on:{input:function(i){i.target.composing||(t.facebook=i.target.value)}}}),t._m(1)]),t.getFirstError("social_facebook")?s("p",{staticClass:"help is-danger is-size-6",domProps:{textContent:t._s(t.getFirstError("social_facebook"))}}):t._e()]),s("label",{attrs:{for:"instagram"}},[t._v("Instagram")]),s("div",{staticClass:"field"},[s("div",{staticClass:"control has-icons-left"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.instagram,expression:"instagram"}],staticClass:"input",attrs:{type:"text",name:"instagram",id:"instagram",placeholder:"Instagram URL"},domProps:{value:t.instagram},on:{input:function(i){i.target.composing||(t.instagram=i.target.value)}}}),t._m(2)]),t.getFirstError("social_instagram")?s("p",{staticClass:"help is-danger is-size-6",domProps:{textContent:t._s(t.getFirstError("social_instagram"))}}):t._e()]),s("label",{attrs:{for:"linkedin"}},[t._v("LinkedIn")]),s("div",{staticClass:"field"},[s("div",{staticClass:"control has-icons-left"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.linkedin,expression:"linkedin"}],staticClass:"input",attrs:{type:"text",name:"linkedin",id:"linkedin",placeholder:"LinkedIn URL"},domProps:{value:t.linkedin},on:{input:function(i){i.target.composing||(t.linkedin=i.target.value)}}}),t._m(3)]),t.getFirstError("social_linkedin")?s("p",{staticClass:"help is-danger is-size-6",domProps:{textContent:t._s(t.getFirstError("social_linkedin"))}}):t._e()]),s("label",{attrs:{for:"reddit"}},[t._v("Reddit")]),s("div",{staticClass:"field"},[s("div",{staticClass:"control has-icons-left"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.reddit,expression:"reddit"}],staticClass:"input",attrs:{type:"text",name:"reddit",id:"reddit",placeholder:"Reddit URL"},domProps:{value:t.reddit},on:{input:function(i){i.target.composing||(t.reddit=i.target.value)}}}),t._m(4)]),t.getFirstError("social_reddit")?s("p",{staticClass:"help is-danger is-size-6",domProps:{textContent:t._s(t.getFirstError("social_reddit"))}}):t._e()]),s("label",{attrs:{for:"personal"}},[t._v(t._s(t.$t("settings.social.personal-website")))]),s("div",{staticClass:"field"},[s("div",{staticClass:"control has-icons-left"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.personal,expression:"personal"}],staticClass:"input",attrs:{type:"text",name:"personal",id:"personal",placeholder:t.$t("settings.social.personal-website-url")},domProps:{value:t.personal},on:{input:function(i){i.target.composing||(t.personal=i.target.value)}}}),t._m(5)]),t.getFirstError("social_personal")?s("p",{staticClass:"help is-danger is-size-6",domProps:{textContent:t._s(t.getFirstError("social_personal"))}}):t._e()]),s("button",{class:t.button,attrs:{disabled:t.processing}},[t._v(t._s(t.$t("common.submit")))])])])])])},c=[function(){var e=this,t=e._self._c;return t("span",{staticClass:"icon is-small is-left"},[t("i",{staticClass:"fa fa-twitter"})])},function(){var e=this,t=e._self._c;return t("span",{staticClass:"icon is-small is-left"},[t("i",{staticClass:"fa fa-facebook"})])},function(){var e=this,t=e._self._c;return t("span",{staticClass:"icon is-small is-left"},[t("i",{staticClass:"fa fa-instagram"})])},function(){var e=this,t=e._self._c;return t("span",{staticClass:"icon is-small is-left"},[t("i",{staticClass:"fa fa-linkedin"})])},function(){var e=this,t=e._self._c;return t("span",{staticClass:"icon is-small is-left"},[t("i",{staticClass:"fa fa-reddit"})])},function(){var e=this,t=e._self._c;return t("span",{staticClass:"icon is-small is-left"},[t("i",{staticClass:"fa fa-link"})])}],d=n(o,l,c,!1,null,null);const u=d.exports;export{u as default}; +import{n}from"./app-DGjOB0Vc.js";/* empty css */const o={name:"Social",data(){return{btn:"button is-medium is-info",processing:!1,twitter:null,facebook:null,instagram:null,linkedin:null,reddit:null,personal:null}},mounted(){var e,t,s,i,a,r;this.$store.commit("errors",{}),this.twitter=(e=this.user.settings)==null?void 0:e.social_twitter,this.facebook=(t=this.user.settings)==null?void 0:t.social_facebook,this.instagram=(s=this.user.settings)==null?void 0:s.social_instagram,this.linkedin=(i=this.user.settings)==null?void 0:i.social_linkedin,this.reddit=(a=this.user.settings)==null?void 0:a.social_reddit,this.personal=(r=this.user.settings)==null?void 0:r.social_personal},computed:{button(){return this.processing?this.btn+" is-loading":this.btn},errors(){return this.$store.state.user.errors},user(){return this.$store.state.user.user}},methods:{getFirstError(e){return this.errors.hasOwnProperty(e)?this.errors[e][0]:null},async submit(){this.processing=!0,await this.$store.dispatch("UPDATE_SETTINGS",{social_twitter:this.twitter,social_facebook:this.facebook,social_instagram:this.instagram,social_linkedin:this.linkedin,social_reddit:this.reddit,social_personal:this.personal}),this.processing=!1}}};var l=function(){var t=this,s=t._self._c;return s("div",{staticStyle:{"padding-left":"1em","padding-right":"1em"}},[s("h1",{staticClass:"title is-4"},[t._v(t._s(t.$t("settings.common.social")))]),s("hr"),s("p",[t._v(t._s(t.$t("settings.social.description")))]),s("br"),s("div",{staticClass:"columns"},[s("div",{staticClass:"column is-half"},[s("form",{on:{submit:function(i){return i.preventDefault(),t.submit.apply(null,arguments)}}},[s("label",{attrs:{for:"twitter"}},[t._v("Twitter")]),s("div",{staticClass:"field"},[s("div",{staticClass:"control has-icons-left"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.twitter,expression:"twitter"}],staticClass:"input",attrs:{type:"text",name:"twitter",id:"twitter",placeholder:"Twitter URL"},domProps:{value:t.twitter},on:{input:function(i){i.target.composing||(t.twitter=i.target.value)}}}),t._m(0)]),t.getFirstError("social_twitter")?s("p",{staticClass:"help is-danger is-size-6",domProps:{textContent:t._s(t.getFirstError("social_twitter"))}}):t._e()]),s("label",{attrs:{for:"facebook"}},[t._v("Facebook")]),s("div",{staticClass:"field"},[s("div",{staticClass:"control has-icons-left"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.facebook,expression:"facebook"}],staticClass:"input",attrs:{type:"text",name:"facebook",id:"facebook",placeholder:"Facebook URL"},domProps:{value:t.facebook},on:{input:function(i){i.target.composing||(t.facebook=i.target.value)}}}),t._m(1)]),t.getFirstError("social_facebook")?s("p",{staticClass:"help is-danger is-size-6",domProps:{textContent:t._s(t.getFirstError("social_facebook"))}}):t._e()]),s("label",{attrs:{for:"instagram"}},[t._v("Instagram")]),s("div",{staticClass:"field"},[s("div",{staticClass:"control has-icons-left"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.instagram,expression:"instagram"}],staticClass:"input",attrs:{type:"text",name:"instagram",id:"instagram",placeholder:"Instagram URL"},domProps:{value:t.instagram},on:{input:function(i){i.target.composing||(t.instagram=i.target.value)}}}),t._m(2)]),t.getFirstError("social_instagram")?s("p",{staticClass:"help is-danger is-size-6",domProps:{textContent:t._s(t.getFirstError("social_instagram"))}}):t._e()]),s("label",{attrs:{for:"linkedin"}},[t._v("LinkedIn")]),s("div",{staticClass:"field"},[s("div",{staticClass:"control has-icons-left"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.linkedin,expression:"linkedin"}],staticClass:"input",attrs:{type:"text",name:"linkedin",id:"linkedin",placeholder:"LinkedIn URL"},domProps:{value:t.linkedin},on:{input:function(i){i.target.composing||(t.linkedin=i.target.value)}}}),t._m(3)]),t.getFirstError("social_linkedin")?s("p",{staticClass:"help is-danger is-size-6",domProps:{textContent:t._s(t.getFirstError("social_linkedin"))}}):t._e()]),s("label",{attrs:{for:"reddit"}},[t._v("Reddit")]),s("div",{staticClass:"field"},[s("div",{staticClass:"control has-icons-left"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.reddit,expression:"reddit"}],staticClass:"input",attrs:{type:"text",name:"reddit",id:"reddit",placeholder:"Reddit URL"},domProps:{value:t.reddit},on:{input:function(i){i.target.composing||(t.reddit=i.target.value)}}}),t._m(4)]),t.getFirstError("social_reddit")?s("p",{staticClass:"help is-danger is-size-6",domProps:{textContent:t._s(t.getFirstError("social_reddit"))}}):t._e()]),s("label",{attrs:{for:"personal"}},[t._v(t._s(t.$t("settings.social.personal-website")))]),s("div",{staticClass:"field"},[s("div",{staticClass:"control has-icons-left"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.personal,expression:"personal"}],staticClass:"input",attrs:{type:"text",name:"personal",id:"personal",placeholder:t.$t("settings.social.personal-website-url")},domProps:{value:t.personal},on:{input:function(i){i.target.composing||(t.personal=i.target.value)}}}),t._m(5)]),t.getFirstError("social_personal")?s("p",{staticClass:"help is-danger is-size-6",domProps:{textContent:t._s(t.getFirstError("social_personal"))}}):t._e()]),s("button",{class:t.button,attrs:{disabled:t.processing}},[t._v(t._s(t.$t("common.submit")))])])])])])},c=[function(){var e=this,t=e._self._c;return t("span",{staticClass:"icon is-small is-left"},[t("i",{staticClass:"fa fa-twitter"})])},function(){var e=this,t=e._self._c;return t("span",{staticClass:"icon is-small is-left"},[t("i",{staticClass:"fa fa-facebook"})])},function(){var e=this,t=e._self._c;return t("span",{staticClass:"icon is-small is-left"},[t("i",{staticClass:"fa fa-instagram"})])},function(){var e=this,t=e._self._c;return t("span",{staticClass:"icon is-small is-left"},[t("i",{staticClass:"fa fa-linkedin"})])},function(){var e=this,t=e._self._c;return t("span",{staticClass:"icon is-small is-left"},[t("i",{staticClass:"fa fa-reddit"})])},function(){var e=this,t=e._self._c;return t("span",{staticClass:"icon is-small is-left"},[t("i",{staticClass:"fa fa-link"})])}],d=n(o,l,c,!1,null,null);const u=d.exports;export{u as default}; diff --git a/public/build/assets/SortLocations-BQcJVR0g.css b/public/build/assets/SortLocations-BQcJVR0g.css new file mode 100644 index 000000000..77a5cb5bf --- /dev/null +++ b/public/build/assets/SortLocations-BQcJVR0g.css @@ -0,0 +1 @@ +.locations-control[data-v-d74a7dec]{text-align:right}@media screen and (max-width: 768px){.locations-control[data-v-d74a7dec]{text-align:center}}.green[data-v-f276ecc3]{color:green!important}.panel-block[data-v-f276ecc3],.panel-block-without-flex[data-v-f276ecc3]{color:#000;background-color:#fff}.location-title[data-v-f276ecc3]:hover{color:green!important;border-bottom:1px solid green}.total-photos-percentage[data-v-f276ecc3]{color:green;font-weight:700}.img-flag[data-v-f276ecc3]{padding-right:1.5em;border-radius:1px;flex:.1}.inner-locations-container[data-v-f3e84495]{flex:1;background-color:#48c774;background-image:linear-gradient(to right bottom,#7ed56fcc,#28b485cc)}.l-tab.is-active[data-v-f3e84495]{border-bottom:2px solid white!important}.location-tab[data-v-f3e84495]{background-color:#fff;border-radius:6px;padding:.5em 1.5em;cursor:pointer}.location-tab.location-tab-is-active[data-v-f3e84495]{background-color:#3273dc;color:#fff}.h65pc[data-v-f3e84495]{height:65%}.world-cup-title[data-v-f3e84495]{color:#34495e} diff --git a/public/build/assets/SortLocations-ByYVFC2-.js b/public/build/assets/SortLocations-ByYVFC2-.js deleted file mode 100644 index ee157a5e3..000000000 --- a/public/build/assets/SortLocations-ByYVFC2-.js +++ /dev/null @@ -1,14 +0,0 @@ -import{c as ae,g as mr,n as se,r as rn}from"./app-DpqRw90N.js";import{h as nn}from"./moment-zH0z38ay.js";import{L as on}from"./LeaderboardList-B_0yi0QA.js";var De={exports:{}};De.exports;(function(L,u){var v=200,A="Expected a function",C="__lodash_hash_undefined__",m=1,f=2,R=1/0,I=9007199254740991,F="[object Arguments]",N="[object Array]",p="[object Boolean]",K="[object Date]",T="[object Error]",$="[object Function]",k="[object GeneratorFunction]",q="[object Map]",y="[object Number]",H="[object Object]",tt="[object Promise]",Y="[object RegExp]",g="[object Set]",x="[object String]",U="[object Symbol]",w="[object WeakMap]",E="[object ArrayBuffer]",P="[object DataView]",j="[object Float32Array]",D="[object Float64Array]",M="[object Int8Array]",X="[object Int16Array]",et="[object Int32Array]",gt="[object Uint8Array]",st="[object Uint8ClampedArray]",ht="[object Uint16Array]",Ce="[object Uint32Array]",Ee=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Wt=/^\w*$/,Re=/^\./,Te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Le=/[\\^$.*+?()[\]{}|]/g,je=/\\(\\)?/g,jt=/^\[object .+?Constructor\]$/,lt=/^(?:0|[1-9]\d*)$/,z={};z[j]=z[D]=z[M]=z[X]=z[et]=z[gt]=z[st]=z[ht]=z[Ce]=!0,z[F]=z[N]=z[E]=z[p]=z[P]=z[K]=z[T]=z[$]=z[q]=z[y]=z[H]=z[Y]=z[g]=z[x]=z[w]=!1;var $t=typeof ae=="object"&&ae&&ae.Object===Object&&ae,Dt=typeof self=="object"&&self&&self.Object===Object&&self,yt=$t||Dt||Function("return this")(),ue=u&&!u.nodeType&&u,le=ue&&!0&&L&&!L.nodeType&&L,$e=le&&le.exports===ue,ce=$e&&$t.process,de=function(){try{return ce&&ce.binding("util")}catch{}}(),vt=de&&de.isTypedArray;function rt(t,n,s){switch(s.length){case 0:return t.call(n);case 1:return t.call(n,s[0]);case 2:return t.call(n,s[0],s[1]);case 3:return t.call(n,s[0],s[1],s[2])}return t.apply(n,s)}function ct(t,n){for(var s=-1,d=t?t.length:0,b=Array(d);++s-1}function e(t,n){var s=this.__data__,d=zt(s,t);return d<0?s.push([t,n]):s[d][1]=n,this}ut.prototype.clear=Je,ut.prototype.delete=re,ut.prototype.get=Qe,ut.prototype.has=r,ut.prototype.set=e;function i(t){var n=-1,s=t?t.length:0;for(this.clear();++nn||h&&S&&B&&!V&&!W||d&&S&&B||!s&&B||!b)return 1;if(!d&&!h&&!W&&t=V)return B;var W=s[d];return B*(W=="desc"?-1:1)}}return t.index-n.index}function Br(t,n){return function(s,d){if(s==null)return s;if(!ne(s))return t(s,d);for(var b=s.length,h=-1,S=Object(s);++hV))return!1;var W=h.get(t);if(W&&h.get(n))return W==n;var it=-1,at=!0,nt=b&m?new O:void 0;for(h.set(t,n),h.set(n,t);++it-1&&t%1==0&&t1&&dr(t,n[0],n[1])?n=[]:s>2&&dr(n[0],n[1],n[2])&&(n=[n[0]]),Tr(t,_e(n),[])});function or(t,n){if(typeof t!="function"||n&&typeof n!="function")throw new TypeError(A);var s=function(){var d=arguments,b=n?n.apply(this,d):d[0],h=s.cache;if(h.has(b))return h.get(b);var S=t.apply(this,d);return s.cache=h.set(b,S),S};return s.cache=new(or.Cache||i),s}or.Cache=i;function ir(t,n){return t===n||t!==t&&n!==n}function ar(t){return Yr(t)&&pt.call(t,"callee")&&(!Zt.call(t,"callee")||kt.call(t)==F)}var Pt=Array.isArray;function ne(t){return t!=null&&sr(t.length)&&!hr(t)}function Yr(t){return ke(t)&&ne(t)}function hr(t){var n=oe(t)?kt.call(t):"";return n==$||n==k}function sr(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=I}function oe(t){var n=typeof t;return!!t&&(n=="object"||n=="function")}function ke(t){return!!t&&typeof t=="object"}function ie(t){return typeof t=="symbol"||ke(t)&&kt.call(t)==U}var Zr=vt?pe(vt):Pr;function Jr(t){return t==null?"":$r(t)}function Qr(t,n,s){var d=t==null?void 0:ur(t,n);return d===void 0?s:d}function tn(t,n){return t!=null&&Ur(t,n,xr)}function Se(t){return ne(t)?be(t):Dr(t)}function yr(t){return t}function en(t){return xe(t)?Ne(Oe(t)):Lr(t)}L.exports=qr})(De,De.exports);var an=De.exports;const Kt=mr(an),sn={name:"LocationNavbar",data(){return{options:[{text:"A-Z",value:"alphabetical"},{text:this.$t("location.most-data"),value:"most-data"},{text:this.$t("location.most-data-person"),value:"most-data-per-person"},{text:"Total Contributors",value:"total-contributors"},{text:"First Created",value:"first-created"},{text:"Most Recently Created",value:"most-recently-created"},{text:"Most Recently Updated",value:"most-recently-updated"}]}},computed:{sortLocationsBy:{get(){return this.$store.state.locations.sortLocationsBy},set(L){this.$store.commit("setSortLocationsBy",L)}}}};var un=function(){var u=this,v=u._self._c;return v("div",{staticClass:"container w100"},[v("br"),v("div",{staticClass:"control locations-control"},[v("div",{staticClass:"select"},[v("select",{directives:[{name:"model",rawName:"v-model",value:u.sortLocationsBy,expression:"sortLocationsBy"}],on:{change:function(A){var C=Array.prototype.filter.call(A.target.options,function(m){return m.selected}).map(function(m){var f="_value"in m?m._value:m.value;return f});u.sortLocationsBy=A.target.multiple?C:C[0]}}},u._l(u.options,function(A){return v("option",{key:A.value,domProps:{value:A.value}},[u._v(u._s(A.text))])}),0)])])])},ln=[],cn=se(sn,un,ln,!1,null,"d74a7dec");const dn=cn.exports,fn={name:"LocationMetadata",props:["index","location","locationType","category"],data(){return{dir:"/assets/icons/flags/"}},computed:{country(){return this.$store.state.locations.country},countryName(){return this.$store.state.locations.countryName},stateName(){return this.$store.state.locations.stateName},state(){return this.$store.state.locations.state},textSize(){return this.category==="A-Z"?"title is-1 flex-1 ma":"title is-3 flex-1 ma"}},methods:{getCountryFlag(L){if(L)return L=L.toLowerCase(),this.dir+L+".png"},getDataForLocation(L){if(this.$store.commit("setLocations",[]),this.locationType==="country"){const u=L.country;this.$store.commit("countryName",u),this.$router.push({path:"/world/"+u})}else if(this.locationType==="state"){const u=this.countryName,v=L.state;this.$store.commit("stateName",v),this.$router.push({path:"/world/"+u+"/"+v})}else if(this.locationType==="city"){const u=this.countryName,v=this.stateName,A=L.city;L.hasOwnProperty("hex")&&this.$router.push({path:"/world/"+u+"/"+v+"/"+A+"/map/"}),this.$router.push({path:"/world/"+u+"/"+v+"/"+A+"/map"})}},getLocationName(L){return L[this.locationType]},positions(L){return nn.localeData().ordinal(L+1)}}};var pn=function(){var u=this,v=u._self._c;return v("div",{staticClass:"column is-3"},[v("div",{staticClass:"flex pb1"},[u.locationType==="country"?v("img",{staticClass:"img-flag",attrs:{height:"15",src:u.getCountryFlag(u.location.shortcode)}}):u._e(),v("h2",{class:u.textSize},[v("a",{staticClass:"is-link has-text-centered location-title",attrs:{id:u.location[u.locationType]},on:{click:function(A){return u.getDataForLocation(u.location)}}},[v("span",{directives:[{name:"show",rawName:"v-show",value:u.category!=="A-Z"&&u.index<100,expression:"category !== 'A-Z' && index < 100"}]},[u._v(u._s(u.positions(u.index))+" -")]),v("span",[u._v(u._s(u.getLocationName(u.location)))])])])]),v("div",{staticClass:"panel"},[v("div",{staticClass:"panel-block"},[u._v(u._s(u.$t("location.total-verified-litter"))+": "),v("strong",{staticClass:"green flex-1"},[u._v("  "+u._s(u.location.total_litter_redis.toLocaleString())+" ")]),u.locationType==="country"?v("p",{staticClass:"total-photos-percentage"},[u._v(" "+u._s((u.location.total_litter_redis/this.$store.state.locations.total_litter*100).toFixed(2)+"% Total")+" ")]):u._e()]),v("div",{staticClass:"panel-block"},[u._v(" "+u._s(u.$t("location.total-verified-photos"))+": "),v("strong",{staticClass:"green flex-1"},[u._v("  "+u._s(u.location.total_photos_redis.toLocaleString())+" ")]),u.locationType==="country"?v("p",{staticClass:"total-photos-percentage"},[u._v(" "+u._s((u.location.total_photos_redis/this.$store.state.locations.total_photos*100).toFixed(2)+"% Total")+" ")]):u._e()]),v("div",{staticClass:"panel-block"},[u._v(u._s(u.$t("common.created"))+": "),v("strong",{staticClass:"green"},[u._v("  "+u._s(u.location.diffForHumans))])]),v("div",{staticClass:"panel-block"},[u._v(u._s(u.$t("location.number-of-contributors"))+": "),v("strong",{staticClass:"green"},[u._v("  "+u._s(u.location.total_contributors_redis.toLocaleString()))])]),v("div",{staticClass:"panel-block"},[u._v(u._s(u.$t("location.avg-img-per-person"))+": "),v("strong",{staticClass:"green"},[u._v("  "+u._s(u.location.avg_photo_per_user.toLocaleString()))])]),v("div",{staticClass:"panel-block"},[u._v(u._s(u.$t("location.avg-litter-per-person"))+": "),v("strong",{staticClass:"green"},[u._v("  "+u._s(u.location.avg_litter_per_user.toLocaleString()))])]),v("div",{staticClass:"panel-block"},[u._v(u._s(u.$t("common.created-by"))+": "),v("strong",{staticClass:"green"},[u._v("  "+u._s(u.location.created_by_name)+" "+u._s(u.location.created_by_username))])]),v("div",{staticClass:"panel-block-without-flex"},[u._v(" Last Updated: "),v("strong",{staticClass:"green"},[u._v("  "+u._s(u.location.updatedAtDiffForHumans))]),v("p",[u._v("by "),v("strong",{staticClass:"is-green"},[u._v(" "+u._s(u.location.last_uploader_name)+" "+u._s(u.location.last_uploader_username)+" ")])])])])])},hn=[],yn=se(fn,pn,hn,!1,null,"f276ecc3");const vn=yn.exports;var gr={exports:{}};(function(L,u){(function(v,A){L.exports=A(rn)})(typeof self<"u"?self:ae,function(v){return function(A){var C={};function m(f){if(C[f])return C[f].exports;var R=C[f]={i:f,l:!1,exports:{}};return A[f].call(R.exports,R,R.exports,m),R.l=!0,R.exports}return m.m=A,m.c=C,m.d=function(f,R,I){m.o(f,R)||Object.defineProperty(f,R,{enumerable:!0,get:I})},m.r=function(f){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(f,"__esModule",{value:!0})},m.t=function(f,R){if(1&R&&(f=m(f)),8&R||4&R&&typeof f=="object"&&f&&f.__esModule)return f;var I=Object.create(null);if(m.r(I),Object.defineProperty(I,"default",{enumerable:!0,value:f}),2&R&&typeof f!="string")for(var F in f)m.d(I,F,(function(N){return f[N]}).bind(null,F));return I},m.n=function(f){var R=f&&f.__esModule?function(){return f.default}:function(){return f};return m.d(R,"a",R),R},m.o=function(f,R){return Object.prototype.hasOwnProperty.call(f,R)},m.p="",m(m.s="fb15")}({"091b":function(A,C,m){var f=m("24fb");C=f(!1),C.push([A.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%)}",""]),A.exports=C},"24fb":function(A,C,m){function f(I,F){var N=I[1]||"",p=I[3];if(!p)return N;if(F&&typeof btoa=="function"){var K=R(p),T=p.sources.map(function($){return"/*# sourceURL=".concat(p.sourceRoot||"").concat($," */")});return[N].concat(T).concat([K]).join(` -`)}return[N].join(` -`)}function R(I){var F=btoa(unescape(encodeURIComponent(JSON.stringify(I)))),N="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(F);return"/*# ".concat(N," */")}A.exports=function(I){var F=[];return F.toString=function(){return this.map(function(N){var p=f(N,I);return N[2]?"@media ".concat(N[2]," {").concat(p,"}"):p}).join("")},F.i=function(N,p,K){typeof N=="string"&&(N=[[null,N,""]]);var T={};if(K)for(var $=0;$P.parts.length&&(j.parts.length=P.parts.length)}else{var M=[];for(D=0;D-1)x[D]=U[D];else{var M=Object.getOwnPropertyDescriptor(U,D);M.value!==void 0?typeof M.value=="function"?(x.methods||(x.methods={}))[D]=M.value:(x.mixins||(x.mixins=[])).push({data:function(){var X;return X={},X[D]=M.value,X}}):(M.get||M.set)&&((x.computed||(x.computed={}))[D]={get:M.get,set:M.set})}}),(x.mixins||(x.mixins=[])).push({data:function(){return q(this,g)}});var w=g.__decorators__;w&&(w.forEach(function(D){return D(x)}),delete g.__decorators__);var E=Object.getPrototypeOf(g.prototype),P=E instanceof R?E.constructor:R,j=P.extend(x);return tt(j,g,P),I&&F(j,g),j}function tt(g,x,U){Object.getOwnPropertyNames(x).forEach(function(w){if(w!=="prototype"){var E=Object.getOwnPropertyDescriptor(g,w);if(!E||E.configurable){var P=Object.getOwnPropertyDescriptor(x,w);if(!K){if(w==="cid")return;var j=Object.getOwnPropertyDescriptor(U,w);if(!k(P.value)&&j&&j.value===P.value)return}Object.defineProperty(g,w,P)}}})}function Y(g){return typeof g=="function"?H(g):function(x){return H(x,g)}}Y.registerHooks=function(g){y.push.apply(y,g)},C.default=Y,C.createDecorator=T,C.mixins=$},"7a57":function(A,C,m){var f=m("24fb");C=f(!1),C.push([A.i,".vue-slider{position:relative;-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.vue-slider-rail{position:relative;width:100%;height:100%;-webkit-transition-property:width,height,left,right,top,bottom;transition-property:width,height,left,right,top,bottom}.vue-slider-process{position:absolute;z-index:1}",""]),A.exports=C},8875:function(A,C,m){var f,R,I;(function(F,N){R=[],f=N,I=typeof f=="function"?f.apply(C,R):f,I===void 0||(A.exports=I)})(typeof self<"u"&&self,function(){function F(){var N=Object.getOwnPropertyDescriptor(document,"currentScript");if(!N&&"currentScript"in document&&document.currentScript||N&&N.get!==F&&document.currentScript)return document.currentScript;try{throw new Error}catch(x){var p,K,T,$=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,k=/@([^@]*):(\d+):(\d+)\s*$/gi,q=$.exec(x.stack)||k.exec(x.stack),y=q&&q[1]||!1,H=q&&q[2]||!1,tt=document.location.href.replace(document.location.hash,""),Y=document.getElementsByTagName("script");y===tt&&(p=document.documentElement.outerHTML,K=new RegExp("(?:[^\\n]+?\\n){0,"+(H-2)+"}[^<]*