PageSourceSearch

https://web.plant-for-the-planet.org/_next/static/chunks/6254-ce3e96bec8c45d17.js

js plant-for-the-planet.org collected 2026-09-24 08:32:40 UTC 17,577 bytes, 2 lines download raw bytes

1!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="4212ed08-c225-4318-a6bd-3e6f1a724bb0",t._sentryDebugIdIdentifier="sentry-dbid-4212ed08-c225-4318-a6bd-3e6f1a724bb0")}catch(t){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6254],{5926:(t,e,n)=>{"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n(42646),s=n(82780),u=n(57767),c=n(34657),a=n(51592);n(49518).polyfill(),n(60563),t.exports=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.options=e,this.endpoint=this.options.endpoint||"https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/",this.cache={},this.options.client_id&&this.options.client_secret&&(this.arcgisauth=new a({client_id:this.options.client_id,client_secret:this.options.client_secret}))}return o(t,[{key:"findAddressCandidates",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.forStorage?this._runAuth("findAddressCandidates",t,e):this._run("findAddressCandidates",t,e)}},{key:"geocode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.forStorage?this._runAuth("findAddressCandidates",t,e):this._run("findAddressCandidates",t,e)}},{key:"reverse",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.forStorage?this._runAuth("reverseGeocode",t,e):this._run("reverseGeocode",t,e)}},{key:"suggest",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._run("suggest",t,e)}},{key:"geocodeAddresses",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._runAuth("geocodeAddresses",t,e)}},{key:"_getQuery",value:function(t,e,n){var r=void 0;switch(t){case"find":r=this._getQueryGeocode(e,n);break;case"reverseGeocode":r=this._getQueryReverse(e,n);break;case"suggest":r=this._getQuerySuggest(e,n);break;case"findAddressCandidates":r=this._getQueryFindAddressCandidates(e,n);break;case"geocodeAddresses":r=this._getQueryGeocodeAddresses(e,n)}return r.f=n.f||"json",r=Object.assign(n,r)}},{key:"_getQueryGeocode",value:function(t,e){return{text:t,outFields:e.outFields||"*",maxLocations:e.maxLocations||10}}},{key:"_getQueryReverse",value:function(t,e){return this.validateLngLat(t)?{location:t,maxLocations:e.maxLocations||10}:{error:"LatLng wrong!"}}},{key:"_getQuerySuggest",value:function(t,e){return{text:t,outFields:e.outFields||"*",maxSuggestions:e.maxSuggestions||10}}},{key:"_getQueryFindAddressCandidates",value:function(t){return u(t)?{SingleLine:t}:c(t)?t:void 0}},{key:"_getQueryGeocodeAddresses",value:function(t){var e=[];return t.forEach(function(t,n){u(t)?e.push({attributes:{OBJECTID:n,SingleLine:t}}):(t.OBJECTID||(t.OBJECTID=n),e.push({attributes:t}))}),{addresses:{records:e}}}},{key:"_run",value:function(t,e,n){var r=this;return new Promise(function(o,i){var s=r._getQuery(t,e,n);s.error&&i(s.error),r._execute(r.endpoint,t,s).then(o).catch(i)})}},{key:"_runAuth",value:function(t,e,n){var r=this;if(!this.arcgisauth)throw Error("Please specify client_id and client_secret!");return new Promise(function(o,i){r.arcgisauth.auth().then(function(s){var u=r._getQuery(t,e,n);u.token=s,u.error&&i(u.error),r._execute(r.endpoint,t,u).then(o).catch(i)}).catch(i)})}},{key:"_execute",value:function(t,e,n){var o=this;return new Promise(function(s,u){var c=void 0,a=void 0;if("geocodeAddresses"===e){a=""+t+e;var f=new i;
1Object.keys(n).forEach(function(t){var e=n[t];f.append(t,(void 0===e?"undefined":r(e))==="object"?JSON.stringify(e):e)}),c={body:f,method:"POST"}}else a=""+t+e+"?"+o.getQueryString(n),c={method:"GET",qs:n};fetch(a,c).then(function(t){return t.status>=400&&u({code:404,msg:"Bad request to "+a}),t.json()}).then(function(t){s(t)}).catch(console.log)})}},{key:"getQueryString",value:function(t){return Object.keys(t).map(function(e){return Array.isArray(t[e])?t[e].map(function(t){return encodeURIComponent(e)+"[]="+encodeURIComponent(t)}).join("&"):encodeURIComponent(e)+"="+encodeURIComponent(t[e])}).join("&")}},{key:"parseError",value:function(t){return 400===t.code&&t.details&&t.details.length?{code:t.code,msg:s(t,"details")[0]||"Error"}:t}},{key:"validateLngLat",value:function(t){var e=t.split(",");if(2===e.length){var n=Number(e[1]),r=Number(e[0]);if(r>-180&&r<180&&n>-90&&n<90)return!0}}}]),t}()},34657:t=>{t.exports=function(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}},42646:t=>{"use strict";t.exports="object"==typeof self?self.FormData:window.FormData},49518:function(t,e,n){var r=n(99742);t.exports=function(){"use strict";function t(t){return"function"==typeof t}var e,o,i,s,u=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},c=0,a=void 0,f=void 0,l=function(t,e){g[c]=t,g[c+1]=e,2===(c+=2)&&(f?f(b):m())},h="undefined"!=typeof window?window:void 0,d=h||{},p=d.MutationObserver||d.WebKitMutationObserver,v="undefined"==typeof self&&void 0!==r&&"[object process]"===({}).toString.call(r),y="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function _(){var t=setTimeout;return function(){return t(b,1)}}var g=Array(1e3);function b(){for(var t=0;t<c;t+=2)(0,g[t])(g[t+1]),g[t]=void 0,g[t+1]=void 0;c=0}var m=void 0;function w(t,e){var n=this,r=new this.constructor(j);void 0===r[A]&&Q(r);var o=n._state;if(o){var i=arguments[o-1];l(function(){return R(o,r,i,n._result)})}else P(n,r,t,e);return r}function k(t){if(t&&"object"==typeof t&&t.constructor===this)return t;var e=new this(j);return x(e,t),e}v?m=function(){return r.nextTick(b)}:p?(e=0,o=new p(b),i=document.createTextNode(""),o.observe(i,{characterData:!0}),m=function(){i.data=e=++e%2}):y?((s=new MessageChannel).port1.onmessage=b,m=function(){return s.port2.postMessage(0)}):m=void 0===h?function(){try{var t=Function("return this")().require("vertx");return a=t.runOnLoop||t.runOnContext,void 0!==a?function(){a(b)}:_()}catch(t){return _()}}():_();var A=Math.random().toString(36).substring(2);function j(){}var S=void 0;function C(e,n,r){n.constructor===e.constructor&&r===w&&n.constructor.resolve===k?1===n._state?O(e,n._result):2===n._state?T(e,n._result):P(n,void 0,function(t){return x(e,t)},function(t){return T(e,t)}):void 0===r?O(e,n):t(r)?l(function(t){var e=!1,o=function(t,e,n,r){try{t.call(e,n,r)}catch(t){return t}}(r,n,function(r){e||(e=!0,n!==r?x(t,r):O(t,r))},function(n){e||(e=!0,T(t,n))},"Settle: "+(t._label||" unknown promise"));!e&&o&&(e=!0,T(t,o))},e):O(e,n)}function x(t,e){if(t===e)T(t,TypeError("You cannot resolve a promise with itself"));else if(n=typeof e,null!==e&&("object"===n||"function"===n)){var n,r=void 0;try{r=e.then}catch(e){T(t,e);return}C(t,e,r)}else O(t,e)}function E(t){t._onerror&&t._onerror(t._result),I(t)}function O(t,e){t._state===S&&(t._result=e,t._state=1,0!==t._subscribers.length&&l(I,t))}function T(t,e){t._state===S&&(t._state=2,t._result=e,l(E,t))}function P(t,e,n,r){var o=t._subscribers,i=o.length;t._onerror=null,o[i]=e,o[i+1]=n,o[i+2]=r,0===i&&t._state&&l(I,t)}function I(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r=void 0,o=void 0,i=t._result,s=0;s<e.length;s+=3)r=e[s],o=e[s+n],r?R(n,r,o,i):o(i);t._subscribers.length=0}}function R(e,n,r,o){var i=t(r),s=void 0,u=void 0,c=!0;if(i){try{s=r(o)}catch(t){c=!1,u=t}if(n===s)return void T(n,TypeError("A promises callback cannot return that same promise."))}else s=o;n._state!==S||(i&&c?x(n,s):!1===c?T(n,u):1===e?O(n,s):2===e&&T(n,s))}var F=0;function Q(t){t[A]=F++,t._state=void 0,t._result=void 0,t._subscribers=[]}var D=function(){function t(t,e){this._instanceConstructor=t,this.promise=new t(j),this.promise[A]||Q(this.promise),u(e)?(this.length=e.length,this._remaining=e.length,this._result=Array(this.length),0===this.length?O(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&&O(this.promise,this._result))):T(this.promise,Error("Array Methods must be provided an Array"))}return t.prototype._enumerate=function(t){for(var e=0;this._state===S&&e<t.length;e++)this._eachEntry(t[e],e)},t.prototype._eachEntry=function(t,e){var n=this._instanceConstructor,r=n.resolve;if(r===k){var o=void 0,i=void 0,s=!1;try{o=t.then}catch(t){s=!0,i=t}
1if(o===w&&t._state!==S)this._settledAt(t._state,e,t._result);else if("function"!=typeof o)this._remaining--,this._result[e]=t;else if(n===L){var u=new n(j);s?T(u,i):C(u,t,o),this._willSettleAt(u,e)}else this._willSettleAt(new n(function(e){return e(t)}),e)}else this._willSettleAt(r(t),e)},t.prototype._settledAt=function(t,e,n){var r=this.promise;r._state===S&&(this._remaining--,2===t?T(r,n):this._result[e]=n),0===this._remaining&&O(r,this._result)},t.prototype._willSettleAt=function(t,e){var n=this;P(t,void 0,function(t){return n._settledAt(1,e,t)},function(t){return n._settledAt(2,e,t)})},t}(),L=function(){function e(t){this[A]=F++,this._result=this._state=void 0,this._subscribers=[],j!==t&&("function"!=typeof t&&function(){throw TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof e?function(t,e){try{e(function(e){x(t,e)},function(e){T(t,e)})}catch(e){T(t,e)}}(this,t):function(){throw TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object c
1onstructor cannot be called as a function.")}())}return e.prototype.catch=function(t){return this.then(null,t)},e.prototype.finally=function(e){var n=this.constructor;return t(e)?this.then(function(t){return n.resolve(e()).then(function(){return t})},function(t){return n.resolve(e()).then(function(){throw t})}):this.then(e,e)},e}();return L.prototype.then=w,L.all=function(t){return new D(this,t).promise},L.race=function(t){var e=this;return new e(u(t)?function(n,r){for(var o=t.length,i=0;i<o;i++)e.resolve(t[i]).then(n,r)}:function(t,e){return e(TypeError("You must pass an array to race."))})},L.resolve=k,L.reject=function(t){var e=new this(j);return T(e,t),e},L._setScheduler=function(t){f=t},L._setAsap=function(t){l=t},L._asap=l,L.polyfill=function(){var t=void 0;if(void 0!==n.g)t=n.g;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(t){throw Error("polyfill failed because global object is unavailable in this environment")}var e=t.Promise;if(e){var r=null;try{r=Object.prototype.toString.call(e.resolve())}catch(t){}if("[object Promise]"===r&&!e.cast)return}t.Promise=L},L.Promise=L,L}()},51592:(t,e,n)=>{"use strict";var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();n(49518).polyfill(),n(60563);var o=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!(this instanceof t))throw TypeError("Cannot call a class as a function");if(this.options=e,this.options.client_secret=e.client_secret||null,this.options.client_id=e.client_id||null,this.authendpoint=e.authendpoint||"https://www.arcgis.com/sharing/oauth2/token",!this.options.client_id||!this.options.client_secret)throw Error("Please specify client_id and client_secret!");this.cache={}}return r(t,[{key:"putToken",value:function(t,e){this.cache.token=t,this.cache.tokenExp=new Date().getTime()+(e-30)}},{key:"getToken",value:function(){return this.cache&&new Date().getTime()<=this.cache.tokenExp?this.cache.token:null}},{key:"auth",value:function(){var t=this;return new Promise(function(e,n){var r=t.getToken();if(null!==r)return void e(r);var o={url:t.authendpoint,qs:{client_secret:t.options.client_secret,client_id:t.options.client_id,grant_type:"client_credentials",expiration:1440,f:"json"},method:"POST"},s=i(o.qs),u=o.url+"?"+s;fetch(u,o).then(function(t){return t.status>=400&&n({code:404,msg:"Bad request to "+u}),t.json()}).then(function(n){var r=new Date().getTime()+n.expires_in,o=n.access_token;t.putToken(o,r),e(o),e(n)}).catch(console.log)})}}]),t}(),i=function(t){return Object.keys(t).map(function(e){return Array.isArray(t[e])?t[e].map(function(t){return encodeURIComponent(e)+"[]="+encodeURIComponent(t)}).join("&"):encodeURIComponent(e)+"="+encodeURIComponent(t[e])}).join("&")};t.exports=o},57767:t=>{var e=Object.prototype.toString,n=Array.isArray;t.exports=function(t){var r;return"string"==typeof t||!n(t)&&!!(r=t)&&"object"==typeof r&&"[object String]"==e.call(t)}},60563:function(t,e,n){n(79151);var r="undefined"!=typeof self&&self||this;t.exports=r.fetch.bind(r)},66254:(t,e,n)=>{"use strict";t.exports=n(5926)},79151:(t,e)=>{"use strict";e.Headers=self.Headers,e.Request=self.Request,e.Response=self.Response,e.fetch=self.fetch},82780:(t,e,n)=>{var r="__lodash_hash_undefined__",o=1/0,i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/,u=/^\./,c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,f=/^\[object .+?Constructor\]$/,l="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,h="object"==typeof self&&self&&self.Object===Object&&self,d=l||h||Function("return this")(),p=Array.prototype,v=Function.prototype,y=Object.prototype,_=d["__core-js_shared__"],g=function(){var t=/[^.]+$/.exec(_&&_.keys&&_.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),b=v.toString,m=y.hasOwnProperty,w=y.toString,k=RegExp("^"+b.call(m).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),A=d.Symbol,j=p.splice,S=F(d,"Map"),C=F(Object,"create"),x=A?A.prototype:void 0,E=x?x.toString:void 0;function O(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function T(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function P(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function I(t,e){for(var n,r,o=t.length;o--;){if(n=t[o][0],n===(r=e)||n!=n&&r!=r)return o}return -1}function R(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function F(t,e){var n,r,o,i=null==t?void 0:t[e];return!(!G(i)||(n=i,g&&g in n))&&("[object Function]"==(o=G(r=i)?w.call(r):"")||"[object GeneratorFunction]"==o||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(i)?k:f).test(function(t){if(null!=t){try{return b.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(i))?i:void 0}O.prototype.clear=function(){this.__data__=C?C(null):{}},O.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},O.prototype.get=function(t){var e=this.__data__;if(C){var n=e[t];return n===r?void 0:n}return m.call(e,t)?e[t]:void 0},O.prototype.has=function(t){var e=this.__data__;return C?void 0!==e[t]:m.call(e,t)},O.prototype.set=function(t,e){return this.__data__[t]=C&&void 0===e?r:e,this},T.prototype.clear=function(){this.__data__=[]},T.prototype.delete=function(t){var e=this.__data__,n=I(e,t);return!(n<0)&&(n==e.length-1?e.pop():j.call(e,n,1),!0)},T.prototype.get=function(t){var e=this.__data__,n=I(e,t);return n<0?void 0:e[n][1]},T.prototype.has=function(t){return I(this.__data__,t)>-1}
1,T.prototype.set=function(t,e){var n=this.__data__,r=I(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},P.prototype.clear=function(){this.__data__={hash:new O,map:new(S||T),string:new O}},P.prototype.delete=function(t){return R(this,t).delete(t)},P.prototype.get=function(t){return R(this,t).get(t)},P.prototype.has=function(t){return R(this,t).has(t)},P.prototype.set=function(t,e){return R(this,t).set(t,e),this};var Q=D(function(t){t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(U(t))return E?E.call(t):"";var e=t+"";return"0"==e&&1/t==-o?"-0":e}(e);var e,n=[];return u.test(t)&&n.push(""),t.replace(c,function(t,e,r,o){n.push(r?o.replace(a,"$1"):e||t)}),n});function D(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw TypeError("Expected a function");var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=t.apply(this,r);return n.cache=i.set(o,s),s};return n.cache=new(D.Cache||P),n}D.Cache=P;var L=Array.isArray;function G(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function U(t){return"symbol"==typeof t||!!t&&"object"==typeof t&&"[object Symbol]"==w.call(t)}t.exports=function(t,e,n){var r=null==t?void 0:function(t,e){var n;e=!function(t,e){if(L(t))return!1;var n=typeof t;return!!("number"==n||"symbol"==n||"boolean"==n||null==t||U(t))||s.test(t)||!i.test(t)||null!=e&&t in Object(e)}(e,t)?L(n=e)?n:Q(n):[e];for(var r=0,u=e.length;null!=t&&r<u;)t=t[function(t){if("string"==typeof t||U(t))return t;var e=t+"";return"0"==e&&1/t==-o?"-0":e}(e[r++])];return r&&r==u?t:void 0}(t,e);return void 0===r?n:r}}}]);
2//# sourceMappingURL=6254-ce3e96bec8c45d17.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.