diff --git a/geonode_mapstore_client/client/version.txt b/geonode_mapstore_client/client/version.txt index e2c8e1b1f0..44c2e1d787 100644 --- a/geonode_mapstore_client/client/version.txt +++ b/geonode_mapstore_client/client/version.txt @@ -1 +1 @@ -geonode-mapstore-client-v4.0.0-d7bc021d5ebf97297e90c45214159c7a7143374b \ No newline at end of file +geonode-mapstore-client-v4.0.0-bca0cb1b1915d82ce8a4a3f8d9ef061686e393f1 \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/0.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/0.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/0.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/0.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/10025.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/10025.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/10025.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/10025.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/10027.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/10027.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/10027.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/10027.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/10038.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/10038.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/10038.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/10038.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/10175.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/10175.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/10175.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/10175.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/10181.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/10181.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/10181.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/10181.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/10222.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/10222.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/10222.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/10222.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/10279.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/10279.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/10279.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/10279.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/10375.018dc26183efb561a8b1.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/10375.018dc26183efb561a8b1.chunk.js new file mode 100644 index 0000000000..6df36350a6 --- /dev/null +++ b/geonode_mapstore_client/static/mapstore/dist/js/10375.018dc26183efb561a8b1.chunk.js @@ -0,0 +1 @@ +(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[10375],{810375:(n,t,e)=>{"use strict";e.r(t),e.d(t,{default:()=>p});var r=e(845243),o=e.n(r),i=e(984596),l=e.n(i);function c(n){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},c(n)}function u(n,t){for(var e=0;en.length)&&(t=n.length);for(var e=0,r=new Array(t);e0&&void 0!==arguments[0]?arguments[0]:{}).opacity,t=void 0===n?1:n;return{filter:function(n){var t,e=null==n||null===(t=n.geometry)||void 0===t?void 0:t.type;if(0===d.length)return!1;var r=s[e]||[];return!!d.find((function(t){var e;return(null==t||null===(e=t.symbolizers)||void 0===e?void 0:e.find((function(n){return r.includes(n.kind)})))&&(!t.filter||c(n,t.filter))}))},pointToLayer:function(n,e){var r,i,f=null==n||null===(r=n.geometry)||void 0===r?void 0:r.type,y=s[f]||[],v=d.find((function(t){var e;return(null==t||null===(e=t.symbolizers)||void 0===e?void 0:e.find((function(n){return y.includes(n.kind)})))&&(!t.filter||c(n,t.filter))}))||{},p=(null==v||null===(i=v.symbolizers)||void 0===i?void 0:i.find((function(n){return y.includes(n.kind)})))||{};if("Mark"===p.kind){var m=u.find((function(n){return n.id===a(p)}))||{},b=m.image,g=m.src,h=m.width,S=m.height;if(b){var w=h/S,k=2*p.radius,O=k,j=O/w;return S>h&&(O=(j=k)*w),o().marker(e,{icon:o().icon({iconUrl:g,iconSize:[O,j],iconAnchor:[O/2,j/2]}),opacity:1*t})}}if("Icon"===p.kind){var I=u.find((function(n){return n.id===a(p)}))||{},P=I.image,z=I.src,F=I.width,x=I.height;if(P){var A=F/x,_=p.size,C=_/A;return x>F&&(_=(C=p.size)*A),o().marker(e,{icon:o().icon({iconUrl:z,iconSize:[_,C],iconAnchor:[_/2,C/2]}),opacity:p.opacity*t})}}if("Text"===p.kind){var M,T,E,L,D,W=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return n.properties?Object.keys(n.properties).reduce((function(t,e){var r,o=new RegExp("\\{\\{".concat(e,"\\}\\}"),"g");return t.replace(o,null!==(r=n.properties[e])&&void 0!==r?r:"")}),t):t}(n,p.label),U="\n -webkit-text-stroke-width:".concat(p.haloWidth,"px;\n -webkit-text-stroke-color:").concat(p.haloColor||"",";\n "),J=o().divIcon({html:'
0?U:"",'\n ">\n ').concat(W,"\n
"),className:""});return o().marker(e,{icon:J,opacity:1*t})}return null},style:function(n){var e,r,o,i,l=null==n||null===(e=n.geometry)||void 0===e?void 0:e.type,u=s[l]||[],a=d.find((function(t){var e;return(null==t||null===(e=t.symbolizers)||void 0===e?void 0:e.find((function(n){return u.includes(n.kind)})))&&(!t.filter||c(n,t.filter))}))||{},y=(null==a||null===(r=a.symbolizers)||void 0===r?void 0:r.find((function(n){return u.includes(n.kind)})))||{};return"Line"===y.kind?f(f(f({stroke:!0,fill:!1,color:y.color,opacity:y.opacity*t,weight:y.width},y.dasharray&&{dashArray:y.dasharray.join(" ")}),y.cap&&{lineCap:y.cap}),y.join&&{lineJoin:y.join}):"Fill"===y.kind?{fill:!0,stroke:!0,fillColor:y.color,fillOpacity:y.fillOpacity*t,color:y.outlineColor,opacity:(null!==(o=y.outlineOpacity)&&void 0!==o?o:0)*t,weight:null!==(i=y.outlineWidth)&&void 0!==i?i:0}:{stroke:!1,fill:!1}}}}}const p=function(){function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.drawIcons,r=t.getImageIdFromSymbolizer,o=t.geoStylerStyleFilter;!function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),this._drawIcons=e||function(){return Promise.resolve(null)},this._getImageIdFromSymbolizer=r||function(n){return n.symbolizerId},this._geoStylerStyleFilter=o||function(){return!0}}var t,e;return t=n,e=[{key:"readStyle",value:function(){return new Promise((function(n,t){try{n(null)}catch(n){t(n)}}))}},{key:"writeStyle",value:function(n){var t=this;return new Promise((function(e,r){try{t._drawIcons(n).then((function(){var r=v(n,{images:arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],getImageIdFromSymbolizer:t._getImageIdFromSymbolizer,geoStylerStyleFilter:t._geoStylerStyleFilter});e(r)}))}catch(n){r(n)}}))}}],e&&u(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),n}()}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/10375.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/10375.affd309bf2aa3f38d3a0.chunk.js deleted file mode 100644 index 6738078548..0000000000 --- a/geonode_mapstore_client/static/mapstore/dist/js/10375.affd309bf2aa3f38d3a0.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[10375],{810375:(n,t,e)=>{"use strict";e.r(t),e.d(t,{default:()=>m});var r=e(845243),o=e.n(r),i=e(984596),l=e.n(i);function c(n){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},c(n)}function u(n,t){for(var e=0;en.length)&&(t=n.length);for(var e=0,r=new Array(t);e0&&void 0!==arguments[0]?arguments[0]:{}).opacity,t=void 0===n?1:n;return{filter:function(n){var t,e=null==n||null===(t=n.geometry)||void 0===t?void 0:t.type;if(0===d.length)return!1;var r=v[e]||[];return!!d.find((function(t){var e;return(null==t||null===(e=t.symbolizers)||void 0===e?void 0:e.find((function(n){return r.includes(n.kind)})))&&(!t.filter||c(n,t.filter))}))},pointToLayer:function(n,e){var r,i,f=null==n||null===(r=n.geometry)||void 0===r?void 0:r.type,y=v[f]||[],s=d.find((function(t){var e;return(null==t||null===(e=t.symbolizers)||void 0===e?void 0:e.find((function(n){return y.includes(n.kind)})))&&(!t.filter||c(n,t.filter))}))||{},p=(null==s||null===(i=s.symbolizers)||void 0===i?void 0:i.find((function(n){return y.includes(n.kind)})))||{};if("Mark"===p.kind){var m=u.find((function(n){return n.id===a(p)}))||{},b=m.image,g=m.src,h=m.width,S=m.height;if(b){var w=h/S,k=2*p.radius,O=k,j=O/w;return S>h&&(O=(j=k)*w),o().marker(e,{icon:o().icon({iconUrl:g,iconSize:[O,j],iconAnchor:[O/2,j/2]}),opacity:1*t})}}if("Icon"===p.kind){var I=u.find((function(n){return n.id===a(p)}))||{},P=I.image,z=I.src,F=I.width,x=I.height;if(P){var A=F/x,_=p.size,C=_/A;return x>F&&(_=(C=p.size)*A),o().marker(e,{icon:o().icon({iconUrl:z,iconSize:[_,C],iconAnchor:[_/2,C/2]}),opacity:p.opacity*t})}}if("Text"===p.kind){var M,T,E,L,D,W=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return n.properties?Object.keys(n.properties).reduce((function(t,e){var r,o=new RegExp("\\{\\{".concat(e,"\\}\\}"),"g");return t.replace(o,null!==(r=n.properties[e])&&void 0!==r?r:"")}),t):t}(n,p.label),U="\n -webkit-text-stroke-width:".concat(p.haloWidth,"px;\n -webkit-text-stroke-color:").concat(p.haloColor||"",";\n "),J=o().divIcon({html:'
0?U:"",'\n ">\n ').concat(W,"\n
"),className:""});return o().marker(e,{icon:J,opacity:1*t})}return null},style:function(n){var e,r,o,i,l=null==n||null===(e=n.geometry)||void 0===e?void 0:e.type,u=v[l]||[],a=d.find((function(t){var e;return(null==t||null===(e=t.symbolizers)||void 0===e?void 0:e.find((function(n){return u.includes(n.kind)})))&&(!t.filter||c(n,t.filter))}))||{},y=(null==a||null===(r=a.symbolizers)||void 0===r?void 0:r.find((function(n){return u.includes(n.kind)})))||{};return"Line"===y.kind?f(f(f({stroke:!0,fill:!1,color:y.color,opacity:y.opacity*t,weight:y.width},y.dasharray&&{dashArray:y.dasharray.join(" ")}),y.cap&&{lineCap:y.cap}),y.join&&{lineJoin:y.join}):"Fill"===y.kind?{fill:!0,stroke:!0,fillColor:y.color,fillOpacity:y.fillOpacity*t,color:y.outlineColor,opacity:(null!==(o=y.outlineOpacity)&&void 0!==o?o:0)*t,weight:null!==(i=y.outlineWidth)&&void 0!==i?i:0}:{stroke:!1,fill:!1}}}}}const m=function(){function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.drawIcons,r=t.getImageIdFromSymbolizer,o=t.geoStylerStyleFilter;!function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),this._drawIcons=e||function(){return Promise.resolve(null)},this._getImageIdFromSymbolizer=r||function(n){return n.symbolizerId},this._geoStylerStyleFilter=o||function(){return!0}}var t,e;return t=n,e=[{key:"readStyle",value:function(){return new Promise((function(n,t){try{n(null)}catch(n){t(n)}}))}},{key:"writeStyle",value:function(n){var t=this;return new Promise((function(e,r){try{t._drawIcons(n).then((function(){var r=p(n,{images:arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],getImageIdFromSymbolizer:t._getImageIdFromSymbolizer,geoStylerStyleFilter:t._geoStylerStyleFilter});e(r)}))}catch(n){r(n)}}))}}],e&&u(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),n}()}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/10433.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/10433.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/10433.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/10433.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/10458.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/10458.018dc26183efb561a8b1.chunk.js similarity index 99% rename from geonode_mapstore_client/static/mapstore/dist/js/10458.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/10458.018dc26183efb561a8b1.chunk.js index 9120526ab8..1bb5c4da55 100644 --- a/geonode_mapstore_client/static/mapstore/dist/js/10458.affd309bf2aa3f38d3a0.chunk.js +++ b/geonode_mapstore_client/static/mapstore/dist/js/10458.018dc26183efb561a8b1.chunk.js @@ -1,2 +1,2 @@ -/*! For license information please see 10458.affd309bf2aa3f38d3a0.chunk.js.LICENSE.txt */ +/*! For license information please see 10458.018dc26183efb561a8b1.chunk.js.LICENSE.txt */ (self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[10458],{249679:r=>{"use strict";function e(r,e,t){var a=new TypeError(r);return a.code="ERR_MOCHA_INVALID_ARG_TYPE",a.argument=e,a.expected=t,a.actual=typeof e,a}r.exports={createInvalidArgumentTypeError:e,createInvalidArgumentValueError:function(r,e,t,a){var n=new TypeError(r);return n.code="ERR_MOCHA_INVALID_ARG_VALUE",n.argument=e,n.value=t,n.reason=void 0!==a?a:"is invalid",n},createInvalidExceptionError:function(r,e){var t=new Error(r);return t.code="ERR_MOCHA_INVALID_EXCEPTION",t.valueType=typeof e,t.value=e,t},createInvalidInterfaceError:function(r,e){var t=new Error(r);return t.code="ERR_MOCHA_INVALID_INTERFACE",t.interface=e,t},createInvalidReporterError:function(r,e){var t=new TypeError(r);return t.code="ERR_MOCHA_INVALID_REPORTER",t.reporter=e,t},createMissingArgumentError:function(r,t,a){return e(r,t,a)},createNoFilesMatchPatternError:function(r,e){var t=new Error(r);return t.code="ERR_MOCHA_NO_FILES_MATCH_PATTERN",t.pattern=e,t},createUnsupportedError:function(r){var e=new Error(r);return e.code="ERR_MOCHA_UNSUPPORTED",e}}},327244:(r,e,t)=>{"use strict";var a=t(348764).Buffer,n=t(212993),o=t(601386),s=t(389539),i=t(178699),c=t(186492),u=t(249679),l=u.createNoFilesMatchPatternError,p=u.createMissingArgumentError,d=e.assign=t(826668).getPolyfill();function f(r){return!~["node_modules",".git"].indexOf(r)}function h(r,e){switch(e){case"function":return"[Function]";case"object":return"{}";case"array":return"[]";default:return r.toString()}}e.inherits=s.inherits,e.escape=function(r){return c.encode(String(r),{useNamedReferences:!1})},e.isString=function(r){return"string"==typeof r},e.watch=function(r,e){var a={interval:100},o=t(964291)("mocha:watch");r.forEach((function(r){o("file %s",r),n.watchFile(r,a,(function(t,a){a.mtime\s*(?:\{((?:.|\n)*?)\s*\}|((?:.|\n)*))$/,"$1$2$3")).match(/^\n?( *)/)[1].length,t=r.match(/^\n?(\t*)/)[1].length,a=new RegExp("^\n?"+(t?"\t":" ")+"{"+(t||e)+"}","gm");return(r=r.replace(a,"")).trim()},e.parseQuery=function(r){return r.replace("?","").split("&").reduce((function(r,e){var t=e.indexOf("="),a=e.slice(0,t),n=e.slice(++t);return r[a]=decodeURIComponent(n.replace(/\+/g,"%20")),r}),{})},e.highlightTags=function(r){for(var e=document.getElementById("mocha").getElementsByTagName(r),t=0,a=e.length;t/g,">").replace(/\/\/(.*)/gm,'//$1').replace(/('.*?')/gm,'$1').replace(/(\d+\.\d+)/gm,'$1').replace(/(\d+)/gm,'$1').replace(/\bnew[ \t]+(\w+)/gm,'new $1').replace(/\b(function|new|throw|return|var|if|else)\b/gm,'$1')};var g=e.type=function(r){return void 0===r?"undefined":null===r?"null":a.isBuffer(r)?"buffer":Object.prototype.toString.call(r).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase()};function m(r,e,t){if(void 0===e)return c(r);var a=e*(t=t||1),n=Array.isArray(r)?"[":"{",o=Array.isArray(r)?"]":"}",s="number"==typeof r.length?r.length:Object.keys(r).length;function i(r,e){return new Array(e).join(r)}function c(r){switch(g(r)){case"null":case"undefined":r="["+r+"]";break;case"array":case"object":r=m(r,e,t+1);break;case"boolean":case"regexp":case"symbol":case"number":r=0===r&&1/r==-1/0?"-0":r.toString();break;case"date":var a=isNaN(r.getTime())?r.toString():r.toISOString();r="[Date: "+a+"]";break;case"buffer":var n=r.toJSON();r="[Buffer: "+m(n=n.data&&n.type?n.data:n,2,t+1)+"]";break;default:r="[Function]"===r||"[Circular]"===r?r:JSON.stringify(r)}return r}for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&(--s,n+="\n "+i(" ",a)+(Array.isArray(r)?"":'"'+u+'": ')+c(r[u])+(s?",":""));return n+(1!==n.length?"\n"+i(" ",--a)+o:o)}function b(r,e){var t=o.extname(r).slice(1);return e.some((function(r){return t===r}))}function y(r,e){process.emitWarning?process.emitWarning(r,e):process.nextTick((function(){console.warn(e+": "+r)}))}e.stringify=function(r){var t=g(r);if(!~["object","array","function"].indexOf(t)){if("buffer"===t){var n=a.prototype.toJSON.call(r);return m(n.data&&n.type?n.data:n,2).replace(/,(\n|$)/g,"$1")}if("string"!==t||"object"!=typeof r)return m(r);r=r.split("").reduce((function(r,e,t){return r[t]=e,r}),{}),t="object"}for(var o in r)if(Object.prototype.hasOwnProperty.call(r,o))return m(e.canonicalize(r,null,t),2).replace(/,(\n|$)/g,"$1");return h(r,t)},e.canonicalize=function(r,t,a){var n,o;function s(r,e){t.push(r),e(),t.pop()}if(a=a||g(r),-1!==(t=t||[]).indexOf(r))return"[Circular]";switch(a){case"undefined":case"buffer":case"null":n=r;break;case"array":s(r,(function(){n=r.map((function(r){return e.canonicalize(r,t)}))}));break;case"function":for(o in r){n={};break}if(!n){n=h(r,a);break}case"object":n=n||{},s(r,(function(){Object.keys(r).sort().forEach((function(a){n[a]=e.canonicalize(r[a],t)}))}));break;case"date":case"number":case"regexp":case"boolean":case"symbol":n=r;break;default:n=r+""}return n},e.lookupFiles=function r(t,a,c){a=a||[],c=c||!1;var u=[];if(!n.existsSync(t)){var d;if(i.hasMagic(t))d=t;else{var f=a.map((function(r){return"."+r})).join("|");d=t+"+("+f+")"}if(!(u=i.sync(d,{nodir:!0})).length)throw l("Cannot find any files matching pattern "+e.dQuote(t),t);return u}try{if(n.statSync(t).isFile())return t}catch(r){return}return n.readdirSync(t).forEach((function(i){var l,d=o.join(t,i);try{if((l=n.statSync(d)).isDirectory())return void(c&&(u=u.concat(r(d,a,c))))}catch(r){return}if(!a.length)throw p(s.format("Argument %s required when argument %s is a directory",e.sQuote("extensions"),e.sQuote("filepath")),"extensions","array");l.isFile()&&b(d,a)&&!function(r){return"."===o.basename(r)[0]}(d)&&u.push(d)})),u},e.deprecate=function r(e){(e=String(e))&&!r.cache[e]&&(r.cache[e]=!0,y(e,"DeprecationWarning"))},e.deprecate.cache={},e.warn=function(r){r&&y(r)},e.stackTraceFilter=function(){var r,e="undefined"==typeof document?{node:!0}:{browser:!0},t=o.sep;return e.node?r=process.cwd()+t:(r=("undefined"==typeof location?window.location:location).href.replace(/\/[^/]*$/,"/"),t="/"),function(a){return(a=(a=a.split("\n")).reduce((function(a,n){return function(r){return~r.indexOf("node_modules"+t+"mocha"+t)||~r.indexOf(t+"mocha.js")||~r.indexOf(t+"mocha.min.js")}(n)||e.node&&function(r){return~r.indexOf("(timers.js:")||~r.indexOf("(events.js:")||~r.indexOf("(node.js:")||~r.indexOf("(module.js:")||~r.indexOf("GeneratorFunctionPrototype.next (native)")||!1}(n)||(/:\d+:\d+\)?$/.test(n)&&(n=n.replace("("+r,"(")),a.push(n)),a}),[])).join("\n")}},e.isPromise=function(r){return"object"==typeof r&&null!==r&&"function"==typeof r.then},e.clamp=function(r,e){return Math.min(Math.max(r,e[0]),e[1])},e.sQuote=function(r){return"'"+r+"'"},e.dQuote=function(r){return'"'+r+'"'},e.ngettext=function(r,e,t){if("number"==typeof r&&r>=0)return 1===r?e:t},e.noop=function(){},e.createMap=function(r){return d.apply(null,[Object.create(null)].concat(Array.prototype.slice.call(arguments)))},e.defineConstants=function(r){if("object"!==g(r)||!Object.keys(r).length)throw new TypeError("Invalid argument; expected a non-empty object");return Object.freeze(e.createMap(r))}},964291:(r,e,t)=>{"use strict";function a(r){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},a(r)}e.log=function(){var r;return"object"===("undefined"==typeof console?"undefined":a(console))&&console.log&&(r=console).log.apply(r,arguments)},e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+r.exports.humanize(this.diff),this.useColors){var t="color: "+this.color;e.splice(1,0,t,"color: inherit");var a=0,n=0;e[0].replace(/%[a-zA-Z%]/g,(function(r){"%%"!==r&&(a++,"%c"===r&&(n=a))})),e.splice(n,0,t)}},e.save=function(r){try{r?e.storage.setItem("debug",r):e.storage.removeItem("debug")}catch(r){}},e.load=function(){var r;try{r=e.storage.getItem("debug")}catch(r){}return!r&&"undefined"!=typeof process&&"env"in process&&(r={NODE_ENV:"production"}.DEBUG),r},e.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},e.storage=function(){try{return localStorage}catch(r){}}(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],r.exports=t(646438)(e),r.exports.formatters.j=function(r){try{return JSON.stringify(r)}catch(r){return"[UnexpectedJSONParseError]: "+r.message}}},646438:(r,e,t)=>{"use strict";r.exports=function(r){function e(r){for(var e=0,t=0;t{var e=1e3,t=60*e,a=60*t,n=24*a;function o(r,e,t,a){var n=e>=1.5*t;return Math.round(r/t)+" "+a+(n?"s":"")}r.exports=function(r,s){s=s||{};var i,c,u=typeof r;if("string"===u&&r.length>0)return function(r){if(!((r=String(r)).length>100)){var o=/^((?:\d+)?\-?\d?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(r);if(o){var s=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"weeks":case"week":case"w":return 6048e5*s;case"days":case"day":case"d":return s*n;case"hours":case"hour":case"hrs":case"hr":case"h":return s*a;case"minutes":case"minute":case"mins":case"min":case"m":return s*t;case"seconds":case"second":case"secs":case"sec":case"s":return s*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}(r);if("number"===u&&!1===isNaN(r))return s.long?(i=r,(c=Math.abs(i))>=n?o(i,c,n,"day"):c>=a?o(i,c,a,"hour"):c>=t?o(i,c,t,"minute"):c>=e?o(i,c,e,"second"):i+" ms"):function(r){var o=Math.abs(r);return o>=n?Math.round(r/n)+"d":o>=a?Math.round(r/a)+"h":o>=t?Math.round(r/t)+"m":o>=e?Math.round(r/e)+"s":r+"ms"}(r);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(r))}},453877:(r,e,t)=>{"use strict";var a=t(482215),n=t(158612),o=t(455419)(),s=Object,i=n.call(Function.call,Array.prototype.push),c=n.call(Function.call,Object.prototype.propertyIsEnumerable),u=o?Object.getOwnPropertySymbols:null;r.exports=function(r,e){if(null==r)throw new TypeError("target must be an object");var t,n,l,p,d,f,h,g=s(r);for(t=1;t{"use strict";var a=t(404289),n=t(453877),o=t(379983),s=t(900239),i=o();a(i,{getPolyfill:o,implementation:n,shim:s}),r.exports=i},379983:(r,e,t)=>{"use strict";var a=t(453877);r.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var r="abcdefghijklmnopqrst",e=r.split(""),t={},a=0;a{"use strict";var a=t(404289),n=t(379983);r.exports=function(){var r=n();return a(Object,{assign:r},{assign:function(){return Object.assign!==r}}),r}},562651:(r,e,t)=>{const a=t(854412).E2,n={isfn:function(r,e){return r.hasOwnProperty(e)&&"function"==typeof r[e]},unknown:function(r){throw ReferenceError("Unknown function: "+r+"()")},coerceArray:function(r){return Array.isArray(r)?r:[r]},coerceBoolean:function(r){return"boolean"==typeof r?+r:r},isSubset:function(r,e){const t=n.coerceArray(r),a=n.coerceArray(e);return+t.every((r=>a.includes(r)))},buildString:function(r,e){r=String(r)[0];let t="";if((e=String(e))[0]!==r||e[e.length-1]!==r)throw new Error("Unexpected internal error: String literal doesn't begin/end with the right quotation mark.");for(let a=1;a=e.length-1)throw new Error("Unexpected internal error: Unescaped backslash at the end of string literal.");if("\\"===e[a])t+="\\";else{if(e[a]!==r)throw new Error(`Unexpected internal error: Invalid escaped character in string literal: ${e[a]}`);t+=r}}else{if(e[a]===r)throw new Error("Unexpected internal error: String literal contains unescaped quotation mark.");t+=e[a]}return JSON.stringify(t)}};a.yy=Object.create(n),e.U=function(r,e){if(arguments.length>2)throw new TypeError("Too many arguments.");e="object"==typeof e?e:{};let{extraFunctions:t,customProp:o}=e;for(let r of Object.getOwnPropertyNames(e))if("extraFunctions"!==r&&"customProp"!==r)throw new TypeError(`Unknown option: ${r}`);let s={abs:Math.abs,ceil:Math.ceil,floor:Math.floor,log:Math.log,max:Math.max,min:Math.min,random:Math.random,round:Math.round,sqrt:Math.sqrt};if(t)for(var i in t)t.hasOwnProperty(i)&&(s[i]=t[i]);let c=a.parse(r),u=[];function l(r,e){return Object.prototype.hasOwnProperty.call(e||{},r)?e[r]:void 0}u.push("return "),c.forEach((function r(e){Array.isArray(e)?e.forEach(r):u.push(e)})),u.push(";"),"function"==typeof o&&(l=(r,e)=>n.coerceBoolean(o(r,function(r){return function(e){return Object.prototype.hasOwnProperty.call(r||{},e)?r[e]:void 0}}(e),e)));let p=new Function("fns","std","prop","data",u.join(""));return function(r){try{return p(s,n,l,r)}catch(r){return r}}}},854412:(r,e)=>{var t=function(){var r={trace:function(){},yy:{},symbols_:{error:2,expressions:3,e:4,EOF:5,"+":6,"-":7,"*":8,"/":9,"%":10,"^":11,and:12,or:13,not:14,"==":15,"!=":16,"~=":17,"<":18,"<=":19,">":20,">=":21,"?":22,":":23,"(":24,")":25,array:26,",":27,NUMBER:28,STRING:29,SYMBOL:30,of:31,argsList:32,in:33,inSet:34,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",6:"+",7:"-",8:"*",9:"/",10:"%",11:"^",12:"and",13:"or",14:"not",15:"==",16:"!=",17:"~=",18:"<",19:"<=",20:">",21:">=",22:"?",23:":",24:"(",25:")",27:",",28:"NUMBER",29:"STRING",30:"SYMBOL",31:"of",33:"in"},productions_:[0,[3,2],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,2],[4,3],[4,3],[4,2],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,5],[4,3],[4,5],[4,1],[4,1],[4,1],[4,3],[4,3],[4,4],[4,3],[4,4],[32,1],[32,3],[34,1],[34,3],[26,1],[26,3]],performAction:function(r,e,t,a,n,o,s){var i=o.length-1;switch(n){case 1:return o[i-1];case 2:this.$=["(",o[i-2],"+",o[i],")"];break;case 3:this.$=["(",o[i-2],"-",o[i],")"];break;case 4:this.$=["(",o[i-2],"*",o[i],")"];break;case 5:this.$=["(",o[i-2],"/",o[i],")"];break;case 6:this.$=["(",o[i-2],"%",o[i],")"];break;case 7:this.$=["(","Math.pow(",o[i-2],",",o[i],")",")"];break;case 8:this.$=["(","-",o[i],")"];break;case 9:this.$=["(","Number(",o[i-2],"&&",o[i],")",")"];break;case 10:this.$=["(","Number(",o[i-2],"||",o[i],")",")"];break;case 11:this.$=["(","Number(!",o[i],")",")"];break;case 12:this.$=["(","Number(",o[i-2],"==",o[i],")",")"];break;case 13:this.$=["(","Number(",o[i-2],"!=",o[i],")",")"];break;case 14:this.$=["(","Number(RegExp(",o[i],").test(",o[i-2],"))",")"];break;case 15:this.$=["(","Number(",o[i-2],"<",o[i],")",")"];break;case 16:this.$=["(","Number(",o[i-2],"<=",o[i],")",")"];break;case 17:this.$=["(","Number(",o[i-2],"> ",o[i],")",")"];break;case 18:this.$=["(","Number(",o[i-2],">=",o[i],")",")"];break;case 19:this.$=["(",o[i-4],"?",o[i-2],":",o[i],")"];break;case 20:this.$=["(",o[i-1],")"];break;case 21:this.$=["(","[",o[i-3],",",o[i-1],"]",")"];break;case 22:case 23:case 34:this.$=["(",o[i],")"];break;case 24:this.$=["(","prop(",o[i],", data)",")"];break;case 25:this.$=["(","prop(",o[i-2],",",o[i],")",")"];break;case 26:this.$=["(","(std.isfn(fns, ",o[i-2],") ? fns[",o[i-2],"]() : std.unknown(",o[i-2],"))",")"];break;case 27:this.$=["(","(std.isfn(fns, ",o[i-3],") ? fns[",o[i-3],"](",o[i-1],") : std.unknown(",o[i-3],"))",")"];break;case 28:this.$=["(","std.isSubset(",o[i-2],", ",o[i],")",")"];break;case 29:this.$=["(","+!std.isSubset(",o[i-3],", ",o[i],")",")"];break;case 30:this.$=[o[i]];break;case 31:case 35:this.$=[o[i-2],",",o[i]];break;case 32:this.$=["o ==",o[i]];break;case 33:this.$=[o[i-2],"|| o ==",o[i]]}},table:[{3:1,4:2,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{1:[3]},{5:[1,9],6:[1,10],7:[1,11],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[1,16],13:[1,17],14:[1,27],15:[1,18],16:[1,19],17:[1,20],18:[1,21],19:[1,22],20:[1,23],21:[1,24],22:[1,25],33:[1,26]},{4:28,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:29,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:30,7:[1,3],14:[1,4],24:[1,5],26:31,28:[1,6],29:[1,7],30:[1,8]},{5:[2,22],6:[2,22],7:[2,22],8:[2,22],9:[2,22],10:[2,22],11:[2,22],12:[2,22],13:[2,22],14:[2,22],15:[2,22],16:[2,22],17:[2,22],18:[2,22],19:[2,22],20:[2,22],21:[2,22],22:[2,22],23:[2,22],25:[2,22],27:[2,22],33:[2,22]},{5:[2,23],6:[2,23],7:[2,23],8:[2,23],9:[2,23],10:[2,23],11:[2,23],12:[2,23],13:[2,23],14:[2,23],15:[2,23],16:[2,23],17:[2,23],18:[2,23],19:[2,23],20:[2,23],21:[2,23],22:[2,23],23:[2,23],25:[2,23],27:[2,23],33:[2,23]},{5:[2,24],6:[2,24],7:[2,24],8:[2,24],9:[2,24],10:[2,24],11:[2,24],12:[2,24],13:[2,24],14:[2,24],15:[2,24],16:[2,24],17:[2,24],18:[2,24],19:[2,24],20:[2,24],21:[2,24],22:[2,24],23:[2,24],24:[1,33],25:[2,24],27:[2,24],31:[1,32],33:[2,24]},{1:[2,1]},{4:34,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:35,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:36,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:37,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:38,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:39,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:40,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:41,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:42,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:43,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:44,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:45,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:46,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:47,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:48,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:49,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:50,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{33:[1,51]},{5:[2,8],6:[2,8],7:[2,8],8:[2,8],9:[2,8],10:[2,8],11:[2,8],12:[2,8],13:[2,8],14:[2,8],15:[2,8],16:[2,8],17:[2,8],18:[2,8],19:[2,8],20:[2,8],21:[2,8],22:[2,8],23:[2,8],25:[2,8],27:[2,8],33:[2,8]},{5:[2,11],6:[2,11],7:[2,11],8:[2,11],9:[2,11],10:[2,11],11:[2,11],12:[2,11],13:[2,11],14:[2,11],15:[2,11],16:[2,11],17:[2,11],18:[2,11],19:[2,11],20:[2,11],21:[2,11],22:[2,11],23:[2,11],25:[2,11],27:[2,11],33:[2,11]},{6:[1,10],7:[1,11],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[1,16],13:[1,17],14:[1,27],15:[1,18],16:[1,19],17:[1,20],18:[1,21],19:[1,22],20:[1,23],21:[1,24],22:[1,25],25:[1,52],27:[2,34],33:[1,26]},{27:[1,53]},{4:54,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:57,7:[1,3],14:[1,4],24:[1,5],25:[1,55],28:[1,6],29:[1,7],30:[1,8],32:56},{5:[2,2],6:[2,2],7:[2,2],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[2,2],13:[2,2],14:[1,27],15:[2,2],16:[2,2],17:[2,2],18:[2,2],19:[2,2],20:[2,2],21:[2,2],22:[2,2],23:[2,2],25:[2,2],27:[2,2],33:[2,2]},{5:[2,3],6:[2,3],7:[2,3],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[2,3],13:[2,3],14:[1,27],15:[2,3],16:[2,3],17:[2,3],18:[2,3],19:[2,3],20:[2,3],21:[2,3],22:[2,3],23:[2,3],25:[2,3],27:[2,3],33:[2,3]},{5:[2,4],6:[2,4],7:[2,4],8:[2,4],9:[2,4],10:[2,4],11:[1,15],12:[2,4],13:[2,4],14:[1,27],15:[2,4],16:[2,4],17:[2,4],18:[2,4],19:[2,4],20:[2,4],21:[2,4],22:[2,4],23:[2,4],25:[2,4],27:[2,4],33:[2,4]},{5:[2,5],6:[2,5],7:[2,5],8:[2,5],9:[2,5],10:[2,5],11:[1,15],12:[2,5],13:[2,5],14:[1,27],15:[2,5],16:[2,5],17:[2,5],18:[2,5],19:[2,5],20:[2,5],21:[2,5],22:[2,5],23:[2,5],25:[2,5],27:[2,5],33:[2,5]},{5:[2,6],6:[2,6],7:[2,6],8:[2,6],9:[2,6],10:[2,6],11:[1,15],12:[2,6],13:[2,6],14:[1,27],15:[2,6],16:[2,6],17:[2,6],18:[2,6],19:[2,6],20:[2,6],21:[2,6],22:[2,6],23:[2,6],25:[2,6],27:[2,6],33:[2,6]},{5:[2,7],6:[2,7],7:[2,7],8:[2,7],9:[2,7],10:[2,7],11:[2,7],12:[2,7],13:[2,7],14:[1,27],15:[2,7],16:[2,7],17:[2,7],18:[2,7],19:[2,7],20:[2,7],21:[2,7],22:[2,7],23:[2,7],25:[2,7],27:[2,7],33:[2,7]},{5:[2,9],6:[1,10],7:[1,11],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[2,9],13:[2,9],14:[1,27],15:[1,18],16:[1,19],17:[1,20],18:[1,21],19:[1,22],20:[1,23],21:[1,24],22:[2,9],23:[2,9],25:[2,9],27:[2,9],33:[1,26]},{5:[2,10],6:[1,10],7:[1,11],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[1,16],13:[2,10],14:[1,27],15:[1,18],16:[1,19],17:[1,20],18:[1,21],19:[1,22],20:[1,23],21:[1,24],22:[2,10],23:[2,10],25:[2,10],27:[2,10],33:[1,26]},{5:[2,12],6:[1,10],7:[1,11],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[2,12],13:[2,12],14:[1,27],15:[2,12],16:[2,12],17:[2,12],18:[1,21],19:[1,22],20:[1,23],21:[1,24],22:[2,12],23:[2,12],25:[2,12],27:[2,12],33:[2,12]},{5:[2,13],6:[1,10],7:[1,11],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[2,13],13:[2,13],14:[1,27],15:[2,13],16:[2,13],17:[2,13],18:[1,21],19:[1,22],20:[1,23],21:[1,24],22:[2,13],23:[2,13],25:[2,13],27:[2,13],33:[2,13]},{5:[2,14],6:[1,10],7:[1,11],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[2,14],13:[2,14],14:[1,27],15:[2,14],16:[2,14],17:[2,14],18:[1,21],19:[1,22],20:[1,23],21:[1,24],22:[2,14],23:[2,14],25:[2,14],27:[2,14],33:[2,14]},{5:[2,15],6:[1,10],7:[1,11],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[2,15],13:[2,15],14:[1,27],15:[2,15],16:[2,15],17:[2,15],18:[2,15],19:[2,15],20:[2,15],21:[2,15],22:[2,15],23:[2,15],25:[2,15],27:[2,15],33:[2,15]},{5:[2,16],6:[1,10],7:[1,11],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[2,16],13:[2,16],14:[1,27],15:[2,16],16:[2,16],17:[2,16],18:[2,16],19:[2,16],20:[2,16],21:[2,16],22:[2,16],23:[2,16],25:[2,16],27:[2,16],33:[2,16]},{5:[2,17],6:[1,10],7:[1,11],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[2,17],13:[2,17],14:[1,27],15:[2,17],16:[2,17],17:[2,17],18:[2,17],19:[2,17],20:[2,17],21:[2,17],22:[2,17],23:[2,17],25:[2,17],27:[2,17],33:[2,17]},{5:[2,18],6:[1,10],7:[1,11],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[2,18],13:[2,18],14:[1,27],15:[2,18],16:[2,18],17:[2,18],18:[2,18],19:[2,18],20:[2,18],21:[2,18],22:[2,18],23:[2,18],25:[2,18],27:[2,18],33:[2,18]},{6:[1,10],7:[1,11],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[1,16],13:[1,17],14:[1,27],15:[1,18],16:[1,19],17:[1,20],18:[1,21],19:[1,22],20:[1,23],21:[1,24],22:[1,25],23:[1,58],33:[1,26]},{5:[2,28],6:[1,10],7:[1,11],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[2,28],13:[2,28],14:[1,27],15:[1,18],16:[1,19],17:[1,20],18:[1,21],19:[1,22],20:[1,23],21:[1,24],22:[2,28],23:[2,28],25:[2,28],27:[2,28],33:[2,28]},{4:59,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{5:[2,20],6:[2,20],7:[2,20],8:[2,20],9:[2,20],10:[2,20],11:[2,20],12:[2,20],13:[2,20],14:[2,20],15:[2,20],16:[2,20],17:[2,20],18:[2,20],19:[2,20],20:[2,20],21:[2,20],22:[2,20],23:[2,20],25:[2,20],27:[2,20],33:[2,20]},{4:60,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{5:[2,25],6:[2,25],7:[2,25],8:[2,25],9:[2,25],10:[2,25],11:[2,25],12:[2,25],13:[2,25],14:[2,25],15:[2,25],16:[2,25],17:[2,25],18:[2,25],19:[2,25],20:[2,25],21:[2,25],22:[2,25],23:[2,25],25:[2,25],27:[2,25],33:[2,25]},{5:[2,26],6:[2,26],7:[2,26],8:[2,26],9:[2,26],10:[2,26],11:[2,26],12:[2,26],13:[2,26],14:[2,26],15:[2,26],16:[2,26],17:[2,26],18:[2,26],19:[2,26],20:[2,26],21:[2,26],22:[2,26],23:[2,26],25:[2,26],27:[2,26],33:[2,26]},{25:[1,61],27:[1,62]},{6:[1,10],7:[1,11],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[1,16],13:[1,17],14:[1,27],15:[1,18],16:[1,19],17:[1,20],18:[1,21],19:[1,22],20:[1,23],21:[1,24],22:[1,25],25:[2,30],27:[2,30],33:[1,26]},{4:63,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{5:[2,29],6:[2,29],7:[2,29],8:[2,29],9:[2,29],10:[2,29],11:[2,29],12:[2,29],13:[2,29],14:[2,29],15:[2,29],16:[2,29],17:[2,29],18:[2,29],19:[2,29],20:[2,29],21:[2,29],22:[2,29],23:[2,29],25:[2,29],27:[2,29],33:[2,29]},{6:[1,10],7:[1,11],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[1,16],13:[1,17],14:[1,27],15:[1,18],16:[1,19],17:[1,20],18:[1,21],19:[1,22],20:[1,23],21:[1,24],22:[1,25],25:[1,64],27:[2,35],33:[1,26]},{5:[2,27],6:[2,27],7:[2,27],8:[2,27],9:[2,27],10:[2,27],11:[2,27],12:[2,27],13:[2,27],14:[2,27],15:[2,27],16:[2,27],17:[2,27],18:[2,27],19:[2,27],20:[2,27],21:[2,27],22:[2,27],23:[2,27],25:[2,27],27:[2,27],33:[2,27]},{4:65,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{5:[2,19],6:[1,10],7:[1,11],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[1,16],13:[1,17],14:[1,27],15:[1,18],16:[1,19],17:[1,20],18:[1,21],19:[1,22],20:[1,23],21:[1,24],22:[2,19],23:[2,19],25:[2,19],27:[2,19],33:[1,26]},{5:[2,21],6:[2,21],7:[2,21],8:[2,21],9:[2,21],10:[2,21],11:[2,21],12:[2,21],13:[2,21],14:[2,21],15:[2,21],16:[2,21],17:[2,21],18:[2,21],19:[2,21],20:[2,21],21:[2,21],22:[2,21],23:[2,21],25:[2,21],27:[2,21],33:[2,21]},{6:[1,10],7:[1,11],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[1,16],13:[1,17],14:[1,27],15:[1,18],16:[1,19],17:[1,20],18:[1,21],19:[1,22],20:[1,23],21:[1,24],22:[1,25],25:[2,31],27:[2,31],33:[1,26]}],defaultActions:{9:[2,1]},parseError:function(r,e){throw new Error(r)},parse:function(r){var e=this,t=[0],a=[null],n=[],o=this.table,s="",i=0,c=0,u=0;this.lexer.setInput(r),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,void 0===this.lexer.yylloc&&(this.lexer.yylloc={});var l=this.lexer.yylloc;n.push(l);var p=this.lexer.options&&this.lexer.options.ranges;function d(){var r;return"number"!=typeof(r=e.lexer.lex()||1)&&(r=e.symbols_[r]||r),r}"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var f,h,g,m,b,y,v,w,q,E={};;){if(g=t[t.length-1],this.defaultActions[g]?m=this.defaultActions[g]:(null==f&&(f=d()),m=o[g]&&o[g][f]),void 0===m||!m.length||!m[0]){var D="";if(!u){for(y in q=[],o[g])this.terminals_[y]&&y>2&&q.push("'"+this.terminals_[y]+"'");D=this.lexer.showPosition?"Parse error on line "+(i+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+q.join(", ")+", got '"+(this.terminals_[f]||f)+"'":"Parse error on line "+(i+1)+": Unexpected "+(1==f?"end of input":"'"+(this.terminals_[f]||f)+"'"),this.parseError(D,{text:this.lexer.match,token:this.terminals_[f]||f,line:this.lexer.yylineno,loc:l,expected:q})}if(3==u){if(1==f)throw new Error(D||"Parsing halted.");c=this.lexer.yyleng,s=this.lexer.yytext,i=this.lexer.yylineno,l=this.lexer.yylloc,f=d()}for(;!(2..toString()in o[g]);){if(0===g)throw new Error(D||"Parsing halted.");1,t.length=t.length-2,a.length=a.length-1,n.length=n.length-1,g=t[t.length-1]}h=2==f?null:f,f=2,m=o[g=t[t.length-1]]&&o[g][2],u=3}if(m[0]instanceof Array&&m.length>1)throw new Error("Parse Error: multiple actions possible at state: "+g+", token: "+f);switch(m[0]){case 1:t.push(f),a.push(this.lexer.yytext),n.push(this.lexer.yylloc),t.push(m[1]),f=null,h?(f=h,h=null):(c=this.lexer.yyleng,s=this.lexer.yytext,i=this.lexer.yylineno,l=this.lexer.yylloc,u>0&&u--);break;case 2:if(v=this.productions_[m[1]][1],E.$=a[a.length-v],E._$={first_line:n[n.length-(v||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(v||1)].first_column,last_column:n[n.length-1].last_column},p&&(E._$.range=[n[n.length-(v||1)].range[0],n[n.length-1].range[1]]),void 0!==(b=this.performAction.call(E,s,c,i,this.yy,m[1],a,n)))return b;v&&(t=t.slice(0,-1*v*2),a=a.slice(0,-1*v),n=n.slice(0,-1*v)),t.push(this.productions_[m[1]][0]),a.push(E.$),n.push(E._$),w=o[t[t.length-2]][t[t.length-1]],t.push(w);break;case 3:return!0}}return!0}},e={EOF:1,parseError:function(r,e){if(!this.yy.parser)throw new Error(r);this.yy.parser.parseError(r,e)},setInput:function(r){return this._input=r,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var r=this._input[0];return this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r,r.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},unput:function(r){var e=r.length,t=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e-1),this.offset-=e;var a=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),t.length-1&&(this.yylineno-=t.length-1);var n=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:t?(t.length===a.length?this.yylloc.first_column:0)+a[a.length-t.length].length-t[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this},more:function(){return this._more=!0,this},less:function(r){this.unput(this.match.slice(r))},pastInput:function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var r=this.pastInput(),e=new Array(r.length+1).join("-");return r+this.upcomingInput()+"\n"+e+"^"},next:function(){if(this.done)return this.EOF;var r,e,t,a,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var o=this._currentRules(),s=0;se[0].length)||(e=t,a=s,this.options.flex));s++);return e?((n=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],r=this.performAction.call(this,this.yy,this,o[a],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r||void 0):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var r=this.next();return void 0!==r?r:this.lex()},begin:function(r){this.conditionStack.push(r)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(r){this.begin(r)},options:{},performAction:function(r,e,t,a){switch(t){case 0:return"*";case 1:return"/";case 2:return"-";case 3:return"+";case 4:return"^";case 5:return"%";case 6:return"(";case 7:return")";case 8:return",";case 9:return"==";case 10:return"!=";case 11:return"~=";case 12:return">=";case 13:return"<=";case 14:return"<";case 15:return">";case 16:return"?";case 17:return":";case 18:return"and";case 19:return"or";case 20:return"not";case 21:return"in";case 22:return"of";case 23:break;case 24:return"NUMBER";case 25:return e.yytext=JSON.stringify(e.yytext),"SYMBOL";case 26:return e.yytext=r.buildString("'",e.yytext),"SYMBOL";case 27:return e.yytext=r.buildString('"',e.yytext),"STRING";case 28:return"EOF"}},rules:[/^(?:\*)/,/^(?:\/)/,/^(?:-)/,/^(?:\+)/,/^(?:\^)/,/^(?:\%)/,/^(?:\()/,/^(?:\))/,/^(?:\,)/,/^(?:==)/,/^(?:\!=)/,/^(?:\~=)/,/^(?:>=)/,/^(?:<=)/,/^(?:<)/,/^(?:>)/,/^(?:\?)/,/^(?:\:)/,/^(?:and[^\w])/,/^(?:or[^\w])/,/^(?:not[^\w])/,/^(?:in[^\w])/,/^(?:of[^\w])/,/^(?:\s+)/,/^(?:[0-9]+(?:\.[0-9]+)?\b)/,/^(?:[a-zA-Z$_][\.a-zA-Z0-9$_]*)/,/^(?:'(?:\\'|\\\\|[^'\\])*')/,/^(?:"(?:\\"|\\\\|[^"\\])*")/,/^(?:$)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28],inclusive:!0}}};function t(){this.yy={}}return r.lexer=e,t.prototype=r,r.Parser=t,new t}();e.E2=t,t.Parser},186492:function(r,e,t){var a;r=t.nmd(r),function(n){var o=(r&&r.exports,"object"==typeof t.g&&t.g);o.global!==o&&o.window;var s=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,i=/[\x01-\x7F]/g,c=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,u=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g,l={"­":"shy","‌":"zwnj","‍":"zwj","‎":"lrm","⁣":"ic","⁢":"it","⁡":"af","‏":"rlm","​":"ZeroWidthSpace","⁠":"NoBreak","̑":"DownBreve","⃛":"tdot","⃜":"DotDot","\t":"Tab","\n":"NewLine"," ":"puncsp"," ":"MediumSpace"," ":"thinsp"," ":"hairsp"," ":"emsp13"," ":"ensp"," ":"emsp14"," ":"emsp"," ":"numsp"," ":"nbsp","  ":"ThickSpace","‾":"oline",_:"lowbar","‐":"dash","–":"ndash","—":"mdash","―":"horbar",",":"comma",";":"semi","⁏":"bsemi",":":"colon","⩴":"Colone","!":"excl","¡":"iexcl","?":"quest","¿":"iquest",".":"period","‥":"nldr","…":"mldr","·":"middot","'":"apos","‘":"lsquo","’":"rsquo","‚":"sbquo","‹":"lsaquo","›":"rsaquo",'"':"quot","“":"ldquo","”":"rdquo","„":"bdquo","«":"laquo","»":"raquo","(":"lpar",")":"rpar","[":"lsqb","]":"rsqb","{":"lcub","}":"rcub","⌈":"lceil","⌉":"rceil","⌊":"lfloor","⌋":"rfloor","⦅":"lopar","⦆":"ropar","⦋":"lbrke","⦌":"rbrke","⦍":"lbrkslu","⦎":"rbrksld","⦏":"lbrksld","⦐":"rbrkslu","⦑":"langd","⦒":"rangd","⦓":"lparlt","⦔":"rpargt","⦕":"gtlPar","⦖":"ltrPar","⟦":"lobrk","⟧":"robrk","⟨":"lang","⟩":"rang","⟪":"Lang","⟫":"Rang","⟬":"loang","⟭":"roang","❲":"lbbrk","❳":"rbbrk","‖":"Vert","§":"sect","¶":"para","@":"commat","*":"ast","/":"sol",undefined:null,"&":"amp","#":"num","%":"percnt","‰":"permil","‱":"pertenk","†":"dagger","‡":"Dagger","•":"bull","⁃":"hybull","′":"prime","″":"Prime","‴":"tprime","⁗":"qprime","‵":"bprime","⁁":"caret","`":"grave","´":"acute","˜":"tilde","^":"Hat","¯":"macr","˘":"breve","˙":"dot","¨":"die","˚":"ring","˝":"dblac","¸":"cedil","˛":"ogon",ˆ:"circ",ˇ:"caron","°":"deg","©":"copy","®":"reg","℗":"copysr",℘:"wp","℞":"rx","℧":"mho","℩":"iiota","←":"larr","↚":"nlarr","→":"rarr","↛":"nrarr","↑":"uarr","↓":"darr","↔":"harr","↮":"nharr","↕":"varr","↖":"nwarr","↗":"nearr","↘":"searr","↙":"swarr","↝":"rarrw","↝̸":"nrarrw","↞":"Larr","↟":"Uarr","↠":"Rarr","↡":"Darr","↢":"larrtl","↣":"rarrtl","↤":"mapstoleft","↥":"mapstoup","↦":"map","↧":"mapstodown","↩":"larrhk","↪":"rarrhk","↫":"larrlp","↬":"rarrlp","↭":"harrw","↰":"lsh","↱":"rsh","↲":"ldsh","↳":"rdsh","↵":"crarr","↶":"cularr","↷":"curarr","↺":"olarr","↻":"orarr","↼":"lharu","↽":"lhard","↾":"uharr","↿":"uharl","⇀":"rharu","⇁":"rhard","⇂":"dharr","⇃":"dharl","⇄":"rlarr","⇅":"udarr","⇆":"lrarr","⇇":"llarr","⇈":"uuarr","⇉":"rrarr","⇊":"ddarr","⇋":"lrhar","⇌":"rlhar","⇐":"lArr","⇍":"nlArr","⇑":"uArr","⇒":"rArr","⇏":"nrArr","⇓":"dArr","⇔":"iff","⇎":"nhArr","⇕":"vArr","⇖":"nwArr","⇗":"neArr","⇘":"seArr","⇙":"swArr","⇚":"lAarr","⇛":"rAarr","⇝":"zigrarr","⇤":"larrb","⇥":"rarrb","⇵":"duarr","⇽":"loarr","⇾":"roarr","⇿":"hoarr","∀":"forall","∁":"comp","∂":"part","∂̸":"npart","∃":"exist","∄":"nexist","∅":"empty","∇":"Del","∈":"in","∉":"notin","∋":"ni","∌":"notni","϶":"bepsi","∏":"prod","∐":"coprod","∑":"sum","+":"plus","±":"pm","÷":"div","×":"times","<":"lt","≮":"nlt","<⃒":"nvlt","=":"equals","≠":"ne","=⃥":"bne","⩵":"Equal",">":"gt","≯":"ngt",">⃒":"nvgt","¬":"not","|":"vert","¦":"brvbar","−":"minus","∓":"mp","∔":"plusdo","⁄":"frasl","∖":"setmn","∗":"lowast","∘":"compfn","√":"Sqrt","∝":"prop","∞":"infin","∟":"angrt","∠":"ang","∠⃒":"nang","∡":"angmsd","∢":"angsph","∣":"mid","∤":"nmid","∥":"par","∦":"npar","∧":"and","∨":"or","∩":"cap","∩︀":"caps","∪":"cup","∪︀":"cups","∫":"int","∬":"Int","∭":"tint","⨌":"qint","∮":"oint","∯":"Conint","∰":"Cconint","∱":"cwint","∲":"cwconint","∳":"awconint","∴":"there4","∵":"becaus","∶":"ratio","∷":"Colon","∸":"minusd","∺":"mDDot","∻":"homtht","∼":"sim","≁":"nsim","∼⃒":"nvsim","∽":"bsim","∽̱":"race","∾":"ac","∾̳":"acE","∿":"acd","≀":"wr","≂":"esim","≂̸":"nesim","≃":"sime","≄":"nsime","≅":"cong","≇":"ncong","≆":"simne","≈":"ap","≉":"nap","≊":"ape","≋":"apid","≋̸":"napid","≌":"bcong","≍":"CupCap","≭":"NotCupCap","≍⃒":"nvap","≎":"bump","≎̸":"nbump","≏":"bumpe","≏̸":"nbumpe","≐":"doteq","≐̸":"nedot","≑":"eDot","≒":"efDot","≓":"erDot","≔":"colone","≕":"ecolon","≖":"ecir","≗":"cire","≙":"wedgeq","≚":"veeeq","≜":"trie","≟":"equest","≡":"equiv","≢":"nequiv","≡⃥":"bnequiv","≤":"le","≰":"nle","≤⃒":"nvle","≥":"ge","≱":"nge","≥⃒":"nvge","≦":"lE","≦̸":"nlE","≧":"gE","≧̸":"ngE","≨︀":"lvnE","≨":"lnE","≩":"gnE","≩︀":"gvnE","≪":"ll","≪̸":"nLtv","≪⃒":"nLt","≫":"gg","≫̸":"nGtv","≫⃒":"nGt","≬":"twixt","≲":"lsim","≴":"nlsim","≳":"gsim","≵":"ngsim","≶":"lg","≸":"ntlg","≷":"gl","≹":"ntgl","≺":"pr","⊀":"npr","≻":"sc","⊁":"nsc","≼":"prcue","⋠":"nprcue","≽":"sccue","⋡":"nsccue","≾":"prsim","≿":"scsim","≿̸":"NotSucceedsTilde","⊂":"sub","⊄":"nsub","⊂⃒":"vnsub","⊃":"sup","⊅":"nsup","⊃⃒":"vnsup","⊆":"sube","⊈":"nsube","⊇":"supe","⊉":"nsupe","⊊︀":"vsubne","⊊":"subne","⊋︀":"vsupne","⊋":"supne","⊍":"cupdot","⊎":"uplus","⊏":"sqsub","⊏̸":"NotSquareSubset","⊐":"sqsup","⊐̸":"NotSquareSuperset","⊑":"sqsube","⋢":"nsqsube","⊒":"sqsupe","⋣":"nsqsupe","⊓":"sqcap","⊓︀":"sqcaps","⊔":"sqcup","⊔︀":"sqcups","⊕":"oplus","⊖":"ominus","⊗":"otimes","⊘":"osol","⊙":"odot","⊚":"ocir","⊛":"oast","⊝":"odash","⊞":"plusb","⊟":"minusb","⊠":"timesb","⊡":"sdotb","⊢":"vdash","⊬":"nvdash","⊣":"dashv","⊤":"top","⊥":"bot","⊧":"models","⊨":"vDash","⊭":"nvDash","⊩":"Vdash","⊮":"nVdash","⊪":"Vvdash","⊫":"VDash","⊯":"nVDash","⊰":"prurel","⊲":"vltri","⋪":"nltri","⊳":"vrtri","⋫":"nrtri","⊴":"ltrie","⋬":"nltrie","⊴⃒":"nvltrie","⊵":"rtrie","⋭":"nrtrie","⊵⃒":"nvrtrie","⊶":"origof","⊷":"imof","⊸":"mumap","⊹":"hercon","⊺":"intcal","⊻":"veebar","⊽":"barvee","⊾":"angrtvb","⊿":"lrtri","⋀":"Wedge","⋁":"Vee","⋂":"xcap","⋃":"xcup","⋄":"diam","⋅":"sdot","⋆":"Star","⋇":"divonx","⋈":"bowtie","⋉":"ltimes","⋊":"rtimes","⋋":"lthree","⋌":"rthree","⋍":"bsime","⋎":"cuvee","⋏":"cuwed","⋐":"Sub","⋑":"Sup","⋒":"Cap","⋓":"Cup","⋔":"fork","⋕":"epar","⋖":"ltdot","⋗":"gtdot","⋘":"Ll","⋘̸":"nLl","⋙":"Gg","⋙̸":"nGg","⋚︀":"lesg","⋚":"leg","⋛":"gel","⋛︀":"gesl","⋞":"cuepr","⋟":"cuesc","⋦":"lnsim","⋧":"gnsim","⋨":"prnsim","⋩":"scnsim","⋮":"vellip","⋯":"ctdot","⋰":"utdot","⋱":"dtdot","⋲":"disin","⋳":"isinsv","⋴":"isins","⋵":"isindot","⋵̸":"notindot","⋶":"notinvc","⋷":"notinvb","⋹":"isinE","⋹̸":"notinE","⋺":"nisd","⋻":"xnis","⋼":"nis","⋽":"notnivc","⋾":"notnivb","⌅":"barwed","⌆":"Barwed","⌌":"drcrop","⌍":"dlcrop","⌎":"urcrop","⌏":"ulcrop","⌐":"bnot","⌒":"profline","⌓":"profsurf","⌕":"telrec","⌖":"target","⌜":"ulcorn","⌝":"urcorn","⌞":"dlcorn","⌟":"drcorn","⌢":"frown","⌣":"smile","⌭":"cylcty","⌮":"profalar","⌶":"topbot","⌽":"ovbar","⌿":"solbar","⍼":"angzarr","⎰":"lmoust","⎱":"rmoust","⎴":"tbrk","⎵":"bbrk","⎶":"bbrktbrk","⏜":"OverParenthesis","⏝":"UnderParenthesis","⏞":"OverBrace","⏟":"UnderBrace","⏢":"trpezium","⏧":"elinters","␣":"blank","─":"boxh","│":"boxv","┌":"boxdr","┐":"boxdl","└":"boxur","┘":"boxul","├":"boxvr","┤":"boxvl","┬":"boxhd","┴":"boxhu","┼":"boxvh","═":"boxH","║":"boxV","╒":"boxdR","╓":"boxDr","╔":"boxDR","╕":"boxdL","╖":"boxDl","╗":"boxDL","╘":"boxuR","╙":"boxUr","╚":"boxUR","╛":"boxuL","╜":"boxUl","╝":"boxUL","╞":"boxvR","╟":"boxVr","╠":"boxVR","╡":"boxvL","╢":"boxVl","╣":"boxVL","╤":"boxHd","╥":"boxhD","╦":"boxHD","╧":"boxHu","╨":"boxhU","╩":"boxHU","╪":"boxvH","╫":"boxVh","╬":"boxVH","▀":"uhblk","▄":"lhblk","█":"block","░":"blk14","▒":"blk12","▓":"blk34","□":"squ","▪":"squf","▫":"EmptyVerySmallSquare","▭":"rect","▮":"marker","▱":"fltns","△":"xutri","▴":"utrif","▵":"utri","▸":"rtrif","▹":"rtri","▽":"xdtri","▾":"dtrif","▿":"dtri","◂":"ltrif","◃":"ltri","◊":"loz","○":"cir","◬":"tridot","◯":"xcirc","◸":"ultri","◹":"urtri","◺":"lltri","◻":"EmptySmallSquare","◼":"FilledSmallSquare","★":"starf","☆":"star","☎":"phone","♀":"female","♂":"male","♠":"spades","♣":"clubs","♥":"hearts","♦":"diams","♪":"sung","✓":"check","✗":"cross","✠":"malt","✶":"sext","❘":"VerticalSeparator","⟈":"bsolhsub","⟉":"suphsol","⟵":"xlarr","⟶":"xrarr","⟷":"xharr","⟸":"xlArr","⟹":"xrArr","⟺":"xhArr","⟼":"xmap","⟿":"dzigrarr","⤂":"nvlArr","⤃":"nvrArr","⤄":"nvHarr","⤅":"Map","⤌":"lbarr","⤍":"rbarr","⤎":"lBarr","⤏":"rBarr","⤐":"RBarr","⤑":"DDotrahd","⤒":"UpArrowBar","⤓":"DownArrowBar","⤖":"Rarrtl","⤙":"latail","⤚":"ratail","⤛":"lAtail","⤜":"rAtail","⤝":"larrfs","⤞":"rarrfs","⤟":"larrbfs","⤠":"rarrbfs","⤣":"nwarhk","⤤":"nearhk","⤥":"searhk","⤦":"swarhk","⤧":"nwnear","⤨":"toea","⤩":"tosa","⤪":"swnwar","⤳":"rarrc","⤳̸":"nrarrc","⤵":"cudarrr","⤶":"ldca","⤷":"rdca","⤸":"cudarrl","⤹":"larrpl","⤼":"curarrm","⤽":"cularrp","⥅":"rarrpl","⥈":"harrcir","⥉":"Uarrocir","⥊":"lurdshar","⥋":"ldrushar","⥎":"LeftRightVector","⥏":"RightUpDownVector","⥐":"DownLeftRightVector","⥑":"LeftUpDownVector","⥒":"LeftVectorBar","⥓":"RightVectorBar","⥔":"RightUpVectorBar","⥕":"RightDownVectorBar","⥖":"DownLeftVectorBar","⥗":"DownRightVectorBar","⥘":"LeftUpVectorBar","⥙":"LeftDownVectorBar","⥚":"LeftTeeVector","⥛":"RightTeeVector","⥜":"RightUpTeeVector","⥝":"RightDownTeeVector","⥞":"DownLeftTeeVector","⥟":"DownRightTeeVector","⥠":"LeftUpTeeVector","⥡":"LeftDownTeeVector","⥢":"lHar","⥣":"uHar","⥤":"rHar","⥥":"dHar","⥦":"luruhar","⥧":"ldrdhar","⥨":"ruluhar","⥩":"rdldhar","⥪":"lharul","⥫":"llhard","⥬":"rharul","⥭":"lrhard","⥮":"udhar","⥯":"duhar","⥰":"RoundImplies","⥱":"erarr","⥲":"simrarr","⥳":"larrsim","⥴":"rarrsim","⥵":"rarrap","⥶":"ltlarr","⥸":"gtrarr","⥹":"subrarr","⥻":"suplarr","⥼":"lfisht","⥽":"rfisht","⥾":"ufisht","⥿":"dfisht","⦚":"vzigzag","⦜":"vangrt","⦝":"angrtvbd","⦤":"ange","⦥":"range","⦦":"dwangle","⦧":"uwangle","⦨":"angmsdaa","⦩":"angmsdab","⦪":"angmsdac","⦫":"angmsdad","⦬":"angmsdae","⦭":"angmsdaf","⦮":"angmsdag","⦯":"angmsdah","⦰":"bemptyv","⦱":"demptyv","⦲":"cemptyv","⦳":"raemptyv","⦴":"laemptyv","⦵":"ohbar","⦶":"omid","⦷":"opar","⦹":"operp","⦻":"olcross","⦼":"odsold","⦾":"olcir","⦿":"ofcir","⧀":"olt","⧁":"ogt","⧂":"cirscir","⧃":"cirE","⧄":"solb","⧅":"bsolb","⧉":"boxbox","⧍":"trisb","⧎":"rtriltri","⧏":"LeftTriangleBar","⧏̸":"NotLeftTriangleBar","⧐":"RightTriangleBar","⧐̸":"NotRightTriangleBar","⧜":"iinfin","⧝":"infintie","⧞":"nvinfin","⧣":"eparsl","⧤":"smeparsl","⧥":"eqvparsl","⧫":"lozf","⧴":"RuleDelayed","⧶":"dsol","⨀":"xodot","⨁":"xoplus","⨂":"xotime","⨄":"xuplus","⨆":"xsqcup","⨍":"fpartint","⨐":"cirfnint","⨑":"awint","⨒":"rppolint","⨓":"scpolint","⨔":"npolint","⨕":"pointint","⨖":"quatint","⨗":"intlarhk","⨢":"pluscir","⨣":"plusacir","⨤":"simplus","⨥":"plusdu","⨦":"plussim","⨧":"plustwo","⨩":"mcomma","⨪":"minusdu","⨭":"loplus","⨮":"roplus","⨯":"Cross","⨰":"timesd","⨱":"timesbar","⨳":"smashp","⨴":"lotimes","⨵":"rotimes","⨶":"otimesas","⨷":"Otimes","⨸":"odiv","⨹":"triplus","⨺":"triminus","⨻":"tritime","⨼":"iprod","⨿":"amalg","⩀":"capdot","⩂":"ncup","⩃":"ncap","⩄":"capand","⩅":"cupor","⩆":"cupcap","⩇":"capcup","⩈":"cupbrcap","⩉":"capbrcup","⩊":"cupcup","⩋":"capcap","⩌":"ccups","⩍":"ccaps","⩐":"ccupssm","⩓":"And","⩔":"Or","⩕":"andand","⩖":"oror","⩗":"orslope","⩘":"andslope","⩚":"andv","⩛":"orv","⩜":"andd","⩝":"ord","⩟":"wedbar","⩦":"sdote","⩪":"simdot","⩭":"congdot","⩭̸":"ncongdot","⩮":"easter","⩯":"apacir","⩰":"apE","⩰̸":"napE","⩱":"eplus","⩲":"pluse","⩳":"Esim","⩷":"eDDot","⩸":"equivDD","⩹":"ltcir","⩺":"gtcir","⩻":"ltquest","⩼":"gtquest","⩽":"les","⩽̸":"nles","⩾":"ges","⩾̸":"nges","⩿":"lesdot","⪀":"gesdot","⪁":"lesdoto","⪂":"gesdoto","⪃":"lesdotor","⪄":"gesdotol","⪅":"lap","⪆":"gap","⪇":"lne","⪈":"gne","⪉":"lnap","⪊":"gnap","⪋":"lEg","⪌":"gEl","⪍":"lsime","⪎":"gsime","⪏":"lsimg","⪐":"gsiml","⪑":"lgE","⪒":"glE","⪓":"lesges","⪔":"gesles","⪕":"els","⪖":"egs","⪗":"elsdot","⪘":"egsdot","⪙":"el","⪚":"eg","⪝":"siml","⪞":"simg","⪟":"simlE","⪠":"simgE","⪡":"LessLess","⪡̸":"NotNestedLessLess","⪢":"GreaterGreater","⪢̸":"NotNestedGreaterGreater","⪤":"glj","⪥":"gla","⪦":"ltcc","⪧":"gtcc","⪨":"lescc","⪩":"gescc","⪪":"smt","⪫":"lat","⪬":"smte","⪬︀":"smtes","⪭":"late","⪭︀":"lates","⪮":"bumpE","⪯":"pre","⪯̸":"npre","⪰":"sce","⪰̸":"nsce","⪳":"prE","⪴":"scE","⪵":"prnE","⪶":"scnE","⪷":"prap","⪸":"scap","⪹":"prnap","⪺":"scnap","⪻":"Pr","⪼":"Sc","⪽":"subdot","⪾":"supdot","⪿":"subplus","⫀":"supplus","⫁":"submult","⫂":"supmult","⫃":"subedot","⫄":"supedot","⫅":"subE","⫅̸":"nsubE","⫆":"supE","⫆̸":"nsupE","⫇":"subsim","⫈":"supsim","⫋︀":"vsubnE","⫋":"subnE","⫌︀":"vsupnE","⫌":"supnE","⫏":"csub","⫐":"csup","⫑":"csube","⫒":"csupe","⫓":"subsup","⫔":"supsub","⫕":"subsub","⫖":"supsup","⫗":"suphsub","⫘":"supdsub","⫙":"forkv","⫚":"topfork","⫛":"mlcp","⫤":"Dashv","⫦":"Vdashl","⫧":"Barv","⫨":"vBar","⫩":"vBarv","⫫":"Vbar","⫬":"Not","⫭":"bNot","⫮":"rnmid","⫯":"cirmid","⫰":"midcir","⫱":"topcir","⫲":"nhpar","⫳":"parsim","⫽":"parsl","⫽⃥":"nparsl","♭":"flat","♮":"natur","♯":"sharp","¤":"curren","¢":"cent",$:"dollar","£":"pound","¥":"yen","€":"euro","¹":"sup1","½":"half","⅓":"frac13","¼":"frac14","⅕":"frac15","⅙":"frac16","⅛":"frac18","²":"sup2","⅔":"frac23","⅖":"frac25","³":"sup3","¾":"frac34","⅗":"frac35","⅜":"frac38","⅘":"frac45","⅚":"frac56","⅝":"frac58","⅞":"frac78",𝒶:"ascr",𝕒:"aopf",𝔞:"afr",𝔸:"Aopf",𝔄:"Afr",𝒜:"Ascr",ª:"ordf",á:"aacute",Á:"Aacute",à:"agrave",À:"Agrave",ă:"abreve",Ă:"Abreve",â:"acirc",Â:"Acirc",å:"aring",Å:"angst",ä:"auml",Ä:"Auml",ã:"atilde",Ã:"Atilde",ą:"aogon",Ą:"Aogon",ā:"amacr",Ā:"Amacr",æ:"aelig",Æ:"AElig",𝒷:"bscr",𝕓:"bopf",𝔟:"bfr",𝔹:"Bopf",ℬ:"Bscr",𝔅:"Bfr",𝔠:"cfr",𝒸:"cscr",𝕔:"copf",ℭ:"Cfr",𝒞:"Cscr",ℂ:"Copf",ć:"cacute",Ć:"Cacute",ĉ:"ccirc",Ĉ:"Ccirc",č:"ccaron",Č:"Ccaron",ċ:"cdot",Ċ:"Cdot",ç:"ccedil",Ç:"Ccedil","℅":"incare",𝔡:"dfr",ⅆ:"dd",𝕕:"dopf",𝒹:"dscr",𝒟:"Dscr",𝔇:"Dfr",ⅅ:"DD",𝔻:"Dopf",ď:"dcaron",Ď:"Dcaron",đ:"dstrok",Đ:"Dstrok",ð:"eth",Ð:"ETH",ⅇ:"ee",ℯ:"escr",𝔢:"efr",𝕖:"eopf",ℰ:"Escr",𝔈:"Efr",𝔼:"Eopf",é:"eacute",É:"Eacute",è:"egrave",È:"Egrave",ê:"ecirc",Ê:"Ecirc",ě:"ecaron",Ě:"Ecaron",ë:"euml",Ë:"Euml",ė:"edot",Ė:"Edot",ę:"eogon",Ę:"Eogon",ē:"emacr",Ē:"Emacr",𝔣:"ffr",𝕗:"fopf",𝒻:"fscr",𝔉:"Ffr",𝔽:"Fopf",ℱ:"Fscr",ff:"fflig",ffi:"ffilig",ffl:"ffllig",fi:"filig",fj:"fjlig",fl:"fllig",ƒ:"fnof",ℊ:"gscr",𝕘:"gopf",𝔤:"gfr",𝒢:"Gscr",𝔾:"Gopf",𝔊:"Gfr",ǵ:"gacute",ğ:"gbreve",Ğ:"Gbreve",ĝ:"gcirc",Ĝ:"Gcirc",ġ:"gdot",Ġ:"Gdot",Ģ:"Gcedil",𝔥:"hfr",ℎ:"planckh",𝒽:"hscr",𝕙:"hopf",ℋ:"Hscr",ℌ:"Hfr",ℍ:"Hopf",ĥ:"hcirc",Ĥ:"Hcirc",ℏ:"hbar",ħ:"hstrok",Ħ:"Hstrok",𝕚:"iopf",𝔦:"ifr",𝒾:"iscr",ⅈ:"ii",𝕀:"Iopf",ℐ:"Iscr",ℑ:"Im",í:"iacute",Í:"Iacute",ì:"igrave",Ì:"Igrave",î:"icirc",Î:"Icirc",ï:"iuml",Ï:"Iuml",ĩ:"itilde",Ĩ:"Itilde",İ:"Idot",į:"iogon",Į:"Iogon",ī:"imacr",Ī:"Imacr",ij:"ijlig",IJ:"IJlig",ı:"imath",𝒿:"jscr",𝕛:"jopf",𝔧:"jfr",𝒥:"Jscr",𝔍:"Jfr",𝕁:"Jopf",ĵ:"jcirc",Ĵ:"Jcirc",ȷ:"jmath",𝕜:"kopf",𝓀:"kscr",𝔨:"kfr",𝒦:"Kscr",𝕂:"Kopf",𝔎:"Kfr",ķ:"kcedil",Ķ:"Kcedil",𝔩:"lfr",𝓁:"lscr",ℓ:"ell",𝕝:"lopf",ℒ:"Lscr",𝔏:"Lfr",𝕃:"Lopf",ĺ:"lacute",Ĺ:"Lacute",ľ:"lcaron",Ľ:"Lcaron",ļ:"lcedil",Ļ:"Lcedil",ł:"lstrok",Ł:"Lstrok",ŀ:"lmidot",Ŀ:"Lmidot",𝔪:"mfr",𝕞:"mopf",𝓂:"mscr",𝔐:"Mfr",𝕄:"Mopf",ℳ:"Mscr",𝔫:"nfr",𝕟:"nopf",𝓃:"nscr",ℕ:"Nopf",𝒩:"Nscr",𝔑:"Nfr",ń:"nacute",Ń:"Nacute",ň:"ncaron",Ň:"Ncaron",ñ:"ntilde",Ñ:"Ntilde",ņ:"ncedil",Ņ:"Ncedil","№":"numero",ŋ:"eng",Ŋ:"ENG",𝕠:"oopf",𝔬:"ofr",ℴ:"oscr",𝒪:"Oscr",𝔒:"Ofr",𝕆:"Oopf",º:"ordm",ó:"oacute",Ó:"Oacute",ò:"ograve",Ò:"Ograve",ô:"ocirc",Ô:"Ocirc",ö:"ouml",Ö:"Ouml",ő:"odblac",Ő:"Odblac",õ:"otilde",Õ:"Otilde",ø:"oslash",Ø:"Oslash",ō:"omacr",Ō:"Omacr",œ:"oelig",Œ:"OElig",𝔭:"pfr",𝓅:"pscr",𝕡:"popf",ℙ:"Popf",𝔓:"Pfr",𝒫:"Pscr",𝕢:"qopf",𝔮:"qfr",𝓆:"qscr",𝒬:"Qscr",𝔔:"Qfr",ℚ:"Qopf",ĸ:"kgreen",𝔯:"rfr",𝕣:"ropf",𝓇:"rscr",ℛ:"Rscr",ℜ:"Re",ℝ:"Ropf",ŕ:"racute",Ŕ:"Racute",ř:"rcaron",Ř:"Rcaron",ŗ:"rcedil",Ŗ:"Rcedil",𝕤:"sopf",𝓈:"sscr",𝔰:"sfr",𝕊:"Sopf",𝔖:"Sfr",𝒮:"Sscr","Ⓢ":"oS",ś:"sacute",Ś:"Sacute",ŝ:"scirc",Ŝ:"Scirc",š:"scaron",Š:"Scaron",ş:"scedil",Ş:"Scedil",ß:"szlig",𝔱:"tfr",𝓉:"tscr",𝕥:"topf",𝒯:"Tscr",𝔗:"Tfr",𝕋:"Topf",ť:"tcaron",Ť:"Tcaron",ţ:"tcedil",Ţ:"Tcedil","™":"trade",ŧ:"tstrok",Ŧ:"Tstrok",𝓊:"uscr",𝕦:"uopf",𝔲:"ufr",𝕌:"Uopf",𝔘:"Ufr",𝒰:"Uscr",ú:"uacute",Ú:"Uacute",ù:"ugrave",Ù:"Ugrave",ŭ:"ubreve",Ŭ:"Ubreve",û:"ucirc",Û:"Ucirc",ů:"uring",Ů:"Uring",ü:"uuml",Ü:"Uuml",ű:"udblac",Ű:"Udblac",ũ:"utilde",Ũ:"Utilde",ų:"uogon",Ų:"Uogon",ū:"umacr",Ū:"Umacr",𝔳:"vfr",𝕧:"vopf",𝓋:"vscr",𝔙:"Vfr",𝕍:"Vopf",𝒱:"Vscr",𝕨:"wopf",𝓌:"wscr",𝔴:"wfr",𝒲:"Wscr",𝕎:"Wopf",𝔚:"Wfr",ŵ:"wcirc",Ŵ:"Wcirc",𝔵:"xfr",𝓍:"xscr",𝕩:"xopf",𝕏:"Xopf",𝔛:"Xfr",𝒳:"Xscr",𝔶:"yfr",𝓎:"yscr",𝕪:"yopf",𝒴:"Yscr",𝔜:"Yfr",𝕐:"Yopf",ý:"yacute",Ý:"Yacute",ŷ:"ycirc",Ŷ:"Ycirc",ÿ:"yuml",Ÿ:"Yuml",𝓏:"zscr",𝔷:"zfr",𝕫:"zopf",ℨ:"Zfr",ℤ:"Zopf",𝒵:"Zscr",ź:"zacute",Ź:"Zacute",ž:"zcaron",Ž:"Zcaron",ż:"zdot",Ż:"Zdot",Ƶ:"imped",þ:"thorn",Þ:"THORN",ʼn:"napos",α:"alpha",Α:"Alpha",β:"beta",Β:"Beta",γ:"gamma",Γ:"Gamma",δ:"delta",Δ:"Delta",ε:"epsi",ϵ:"epsiv",Ε:"Epsilon",ϝ:"gammad",Ϝ:"Gammad",ζ:"zeta",Ζ:"Zeta",η:"eta",Η:"Eta",θ:"theta",ϑ:"thetav",Θ:"Theta",ι:"iota",Ι:"Iota",κ:"kappa",ϰ:"kappav",Κ:"Kappa",λ:"lambda",Λ:"Lambda",μ:"mu",µ:"micro",Μ:"Mu",ν:"nu",Ν:"Nu",ξ:"xi",Ξ:"Xi",ο:"omicron",Ο:"Omicron",π:"pi",ϖ:"piv",Π:"Pi",ρ:"rho",ϱ:"rhov",Ρ:"Rho",σ:"sigma",Σ:"Sigma",ς:"sigmaf",τ:"tau",Τ:"Tau",υ:"upsi",Υ:"Upsilon",ϒ:"Upsi",φ:"phi",ϕ:"phiv",Φ:"Phi",χ:"chi",Χ:"Chi",ψ:"psi",Ψ:"Psi",ω:"omega",Ω:"ohm",а:"acy",А:"Acy",б:"bcy",Б:"Bcy",в:"vcy",В:"Vcy",г:"gcy",Г:"Gcy",ѓ:"gjcy",Ѓ:"GJcy",д:"dcy",Д:"Dcy",ђ:"djcy",Ђ:"DJcy",е:"iecy",Е:"IEcy",ё:"iocy",Ё:"IOcy",є:"jukcy",Є:"Jukcy",ж:"zhcy",Ж:"ZHcy",з:"zcy",З:"Zcy",ѕ:"dscy",Ѕ:"DScy",и:"icy",И:"Icy",і:"iukcy",І:"Iukcy",ї:"yicy",Ї:"YIcy",й:"jcy",Й:"Jcy",ј:"jsercy",Ј:"Jsercy",к:"kcy",К:"Kcy",ќ:"kjcy",Ќ:"KJcy",л:"lcy",Л:"Lcy",љ:"ljcy",Љ:"LJcy",м:"mcy",М:"Mcy",н:"ncy",Н:"Ncy",њ:"njcy",Њ:"NJcy",о:"ocy",О:"Ocy",п:"pcy",П:"Pcy",р:"rcy",Р:"Rcy",с:"scy",С:"Scy",т:"tcy",Т:"Tcy",ћ:"tshcy",Ћ:"TSHcy",у:"ucy",У:"Ucy",ў:"ubrcy",Ў:"Ubrcy",ф:"fcy",Ф:"Fcy",х:"khcy",Х:"KHcy",ц:"tscy",Ц:"TScy",ч:"chcy",Ч:"CHcy",џ:"dzcy",Џ:"DZcy",ш:"shcy",Ш:"SHcy",щ:"shchcy",Щ:"SHCHcy",ъ:"hardcy",Ъ:"HARDcy",ы:"ycy",Ы:"Ycy",ь:"softcy",Ь:"SOFTcy",э:"ecy",Э:"Ecy",ю:"yucy",Ю:"YUcy",я:"yacy",Я:"YAcy",ℵ:"aleph",ℶ:"beth",ℷ:"gimel",ℸ:"daleth"},p=/["&'<>`]/g,d={'"':""","&":"&","'":"'","<":"<",">":">","`":"`"},f=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/,h=/[\0-\x08\x0B\x0E-\x1F\x7F-\x9F\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,g=/&(CounterClockwiseContourIntegral|DoubleLongLeftRightArrow|ClockwiseContourIntegral|NotNestedGreaterGreater|NotSquareSupersetEqual|DiacriticalDoubleAcute|NotRightTriangleEqual|NotSucceedsSlantEqual|NotPrecedesSlantEqual|CloseCurlyDoubleQuote|NegativeVeryThinSpace|DoubleContourIntegral|FilledVerySmallSquare|CapitalDifferentialD|OpenCurlyDoubleQuote|EmptyVerySmallSquare|NestedGreaterGreater|DoubleLongRightArrow|NotLeftTriangleEqual|NotGreaterSlantEqual|ReverseUpEquilibrium|DoubleLeftRightArrow|NotSquareSubsetEqual|NotDoubleVerticalBar|RightArrowLeftArrow|NotGreaterFullEqual|NotRightTriangleBar|SquareSupersetEqual|DownLeftRightVector|DoubleLongLeftArrow|leftrightsquigarrow|LeftArrowRightArrow|NegativeMediumSpace|blacktriangleright|RightDownVectorBar|PrecedesSlantEqual|RightDoubleBracket|SucceedsSlantEqual|NotLeftTriangleBar|RightTriangleEqual|SquareIntersection|RightDownTeeVector|ReverseEquilibrium|NegativeThickSpace|longleftrightarrow|Longleftrightarrow|LongLeftRightArrow|DownRightTeeVector|DownRightVectorBar|GreaterSlantEqual|SquareSubsetEqual|LeftDownVectorBar|LeftDoubleBracket|VerticalSeparator|rightleftharpoons|NotGreaterGreater|NotSquareSuperset|blacktriangleleft|blacktriangledown|NegativeThinSpace|LeftDownTeeVector|NotLessSlantEqual|leftrightharpoons|DoubleUpDownArrow|DoubleVerticalBar|LeftTriangleEqual|FilledSmallSquare|twoheadrightarrow|NotNestedLessLess|DownLeftTeeVector|DownLeftVectorBar|RightAngleBracket|NotTildeFullEqual|NotReverseElement|RightUpDownVector|DiacriticalTilde|NotSucceedsTilde|circlearrowright|NotPrecedesEqual|rightharpoondown|DoubleRightArrow|NotSucceedsEqual|NonBreakingSpace|NotRightTriangle|LessEqualGreater|RightUpTeeVector|LeftAngleBracket|GreaterFullEqual|DownArrowUpArrow|RightUpVectorBar|twoheadleftarrow|GreaterEqualLess|downharpoonright|RightTriangleBar|ntrianglerighteq|NotSupersetEqual|LeftUpDownVector|DiacriticalAcute|rightrightarrows|vartriangleright|UpArrowDownArrow|DiacriticalGrave|UnderParenthesis|EmptySmallSquare|LeftUpVectorBar|leftrightarrows|DownRightVector|downharpoonleft|trianglerighteq|ShortRightArrow|OverParenthesis|DoubleLeftArrow|DoubleDownArrow|NotSquareSubset|bigtriangledown|ntrianglelefteq|UpperRightArrow|curvearrowright|vartriangleleft|NotLeftTriangle|nleftrightarrow|LowerRightArrow|NotHumpDownHump|NotGreaterTilde|rightthreetimes|LeftUpTeeVector|NotGreaterEqual|straightepsilon|LeftTriangleBar|rightsquigarrow|ContourIntegral|rightleftarrows|CloseCurlyQuote|RightDownVector|LeftRightVector|nLeftrightarrow|leftharpoondown|circlearrowleft|SquareSuperset|OpenCurlyQuote|hookrightarrow|HorizontalLine|DiacriticalDot|NotLessGreater|ntriangleright|DoubleRightTee|InvisibleComma|InvisibleTimes|LowerLeftArrow|DownLeftVector|NotSubsetEqual|curvearrowleft|trianglelefteq|NotVerticalBar|TildeFullEqual|downdownarrows|NotGreaterLess|RightTeeVector|ZeroWidthSpace|looparrowright|LongRightArrow|doublebarwedge|ShortLeftArrow|ShortDownArrow|RightVectorBar|GreaterGreater|ReverseElement|rightharpoonup|LessSlantEqual|leftthreetimes|upharpoonright|rightarrowtail|LeftDownVector|Longrightarrow|NestedLessLess|UpperLeftArrow|nshortparallel|leftleftarrows|leftrightarrow|Leftrightarrow|LeftRightArrow|longrightarrow|upharpoonleft|RightArrowBar|ApplyFunction|LeftTeeVector|leftarrowtail|NotEqualTilde|varsubsetneqq|varsupsetneqq|RightTeeArrow|SucceedsEqual|SucceedsTilde|LeftVectorBar|SupersetEqual|hookleftarrow|DifferentialD|VerticalTilde|VeryThinSpace|blacktriangle|bigtriangleup|LessFullEqual|divideontimes|leftharpoonup|UpEquilibrium|ntriangleleft|RightTriangle|measuredangle|shortparallel|longleftarrow|Longleftarrow|LongLeftArrow|DoubleLeftTee|Poincareplane|PrecedesEqual|triangleright|DoubleUpArrow|RightUpVector|fallingdotseq|looparrowleft|PrecedesTilde|NotTildeEqual|NotTildeTilde|smallsetminus|Proportional|triangleleft|triangledown|UnderBracket|NotHumpEqual|exponentiale|ExponentialE|NotLessTilde|HilbertSpace|RightCeiling|blacklozenge|varsupsetneq|HumpDownHump|GreaterEqual|VerticalLine|LeftTeeArrow|NotLessEqual|DownTeeArrow|LeftTriangle|varsubsetneq|Intersection|NotCongruent|DownArrowBar|LeftUpVector|LeftArrowBar|risingdotseq|GreaterTilde|RoundImplies|SquareSubset|ShortUpArrow|NotSuperset|quaternions|precnapprox|backepsilon|preccurlyeq|OverBracket|blacksquare|MediumSpace|VerticalBar|circledcirc|circleddash|CircleMinus|CircleTimes|LessGreater|curlyeqprec|curlyeqsucc|diamondsuit|UpDownArrow|Updownarrow|RuleDelayed|Rrightarrow|updownarrow|RightVector|nRightarrow|nrightarrow|eqslantless|LeftCeiling|Equilibrium|SmallCircle|expectation|NotSucceeds|thickapprox|GreaterLess|SquareUnion|NotPrecedes|NotLessLess|straightphi|succnapprox|succcurlyeq|SubsetEqual|sqsupseteq|Proportion|Laplacetrf|ImaginaryI|supsetneqq|NotGreater|gtreqqless|NotElement|ThickSpace|TildeEqual|TildeTilde|Fouriertrf|rmoustache|EqualTilde|eqslantgtr|UnderBrace|LeftVector|UpArrowBar|nLeftarrow|nsubseteqq|subsetneqq|nsupseteqq|nleftarrow|succapprox|lessapprox|UpTeeArrow|upuparrows|curlywedge|lesseqqgtr|varepsilon|varnothing|RightFloor|complement|CirclePlus|sqsubseteq|Lleftarrow|circledast|RightArrow|Rightarrow|rightarrow|lmoustache|Bernoullis|precapprox|mapstoleft|mapstodown|longmapsto|dotsquare|downarrow|DoubleDot|nsubseteq|supsetneq|leftarrow|nsupseteq|subsetneq|ThinSpace|ngeqslant|subseteqq|HumpEqual|NotSubset|triangleq|NotCupCap|lesseqgtr|heartsuit|TripleDot|Leftarrow|Coproduct|Congruent|varpropto|complexes|gvertneqq|LeftArrow|LessTilde|supseteqq|MinusPlus|CircleDot|nleqslant|NotExists|gtreqless|nparallel|UnionPlus|LeftFloor|checkmark|CenterDot|centerdot|Mellintrf|gtrapprox|bigotimes|OverBrace|spadesuit|therefore|pitchfork|rationals|PlusMinus|Backslash|Therefore|DownBreve|backsimeq|backprime|DownArrow|nshortmid|Downarrow|lvertneqq|eqvparsl|imagline|imagpart|infintie|integers|Integral|intercal|LessLess|Uarrocir|intlarhk|sqsupset|angmsdaf|sqsubset|llcorner|vartheta|cupbrcap|lnapprox|Superset|SuchThat|succnsim|succneqq|angmsdag|biguplus|curlyvee|trpezium|Succeeds|NotTilde|bigwedge|angmsdah|angrtvbd|triminus|cwconint|fpartint|lrcorner|smeparsl|subseteq|urcorner|lurdshar|laemptyv|DDotrahd|approxeq|ldrushar|awconint|mapstoup|backcong|shortmid|triangle|geqslant|gesdotol|timesbar|circledR|circledS|setminus|multimap|naturals|scpolint|ncongdot|RightTee|boxminus|gnapprox|boxtimes|andslope|thicksim|angmsdaa|varsigma|cirfnint|rtriltri|angmsdab|rppolint|angmsdac|barwedge|drbkarow|clubsuit|thetasym|bsolhsub|capbrcup|dzigrarr|doteqdot|DotEqual|dotminus|UnderBar|NotEqual|realpart|otimesas|ulcorner|hksearow|hkswarow|parallel|PartialD|elinters|emptyset|plusacir|bbrktbrk|angmsdad|pointint|bigoplus|angmsdae|Precedes|bigsqcup|varkappa|notindot|supseteq|precneqq|precnsim|profalar|profline|profsurf|leqslant|lesdotor|raemptyv|subplus|notnivb|notnivc|subrarr|zigrarr|vzigzag|submult|subedot|Element|between|cirscir|larrbfs|larrsim|lotimes|lbrksld|lbrkslu|lozenge|ldrdhar|dbkarow|bigcirc|epsilon|simrarr|simplus|ltquest|Epsilon|luruhar|gtquest|maltese|npolint|eqcolon|npreceq|bigodot|ddagger|gtrless|bnequiv|harrcir|ddotseq|equivDD|backsim|demptyv|nsqsube|nsqsupe|Upsilon|nsubset|upsilon|minusdu|nsucceq|swarrow|nsupset|coloneq|searrow|boxplus|napprox|natural|asympeq|alefsym|congdot|nearrow|bigstar|diamond|supplus|tritime|LeftTee|nvinfin|triplus|NewLine|nvltrie|nvrtrie|nwarrow|nexists|Diamond|ruluhar|Implies|supmult|angzarr|suplarr|suphsub|questeq|because|digamma|Because|olcross|bemptyv|omicron|Omicron|rotimes|NoBreak|intprod|angrtvb|orderof|uwangle|suphsol|lesdoto|orslope|DownTee|realine|cudarrl|rdldhar|OverBar|supedot|lessdot|supdsub|topfork|succsim|rbrkslu|rbrksld|pertenk|cudarrr|isindot|planckh|lessgtr|pluscir|gesdoto|plussim|plustwo|lesssim|cularrp|rarrsim|Cayleys|notinva|notinvb|notinvc|UpArrow|Uparrow|uparrow|NotLess|dwangle|precsim|Product|curarrm|Cconint|dotplus|rarrbfs|ccupssm|Cedilla|cemptyv|notniva|quatint|frac35|frac38|frac45|frac56|frac58|frac78|tridot|xoplus|gacute|gammad|Gammad|lfisht|lfloor|bigcup|sqsupe|gbreve|Gbreve|lharul|sqsube|sqcups|Gcedil|apacir|llhard|lmidot|Lmidot|lmoust|andand|sqcaps|approx|Abreve|spades|circeq|tprime|divide|topcir|Assign|topbot|gesdot|divonx|xuplus|timesd|gesles|atilde|solbar|SOFTcy|loplus|timesb|lowast|lowbar|dlcorn|dlcrop|softcy|dollar|lparlt|thksim|lrhard|Atilde|lsaquo|smashp|bigvee|thinsp|wreath|bkarow|lsquor|lstrok|Lstrok|lthree|ltimes|ltlarr|DotDot|simdot|ltrPar|weierp|xsqcup|angmsd|sigmav|sigmaf|zeetrf|Zcaron|zcaron|mapsto|vsupne|thetav|cirmid|marker|mcomma|Zacute|vsubnE|there4|gtlPar|vsubne|bottom|gtrarr|SHCHcy|shchcy|midast|midcir|middot|minusb|minusd|gtrdot|bowtie|sfrown|mnplus|models|colone|seswar|Colone|mstpos|searhk|gtrsim|nacute|Nacute|boxbox|telrec|hairsp|Tcedil|nbumpe|scnsim|ncaron|Ncaron|ncedil|Ncedil|hamilt|Scedil|nearhk|hardcy|HARDcy|tcedil|Tcaron|commat|nequiv|nesear|tcaron|target|hearts|nexist|varrho|scedil|Scaron|scaron|hellip|Sacute|sacute|hercon|swnwar|compfn|rtimes|rthree|rsquor|rsaquo|zacute|wedgeq|homtht|barvee|barwed|Barwed|rpargt|horbar|conint|swarhk|roplus|nltrie|hslash|hstrok|Hstrok|rmoust|Conint|bprime|hybull|hyphen|iacute|Iacute|supsup|supsub|supsim|varphi|coprod|brvbar|agrave|Supset|supset|igrave|Igrave|notinE|Agrave|iiiint|iinfin|copysr|wedbar|Verbar|vangrt|becaus|incare|verbar|inodot|bullet|drcorn|intcal|drcrop|cularr|vellip|Utilde|bumpeq|cupcap|dstrok|Dstrok|CupCap|cupcup|cupdot|eacute|Eacute|supdot|iquest|easter|ecaron|Ecaron|ecolon|isinsv|utilde|itilde|Itilde|curarr|succeq|Bumpeq|cacute|ulcrop|nparsl|Cacute|nprcue|egrave|Egrave|nrarrc|nrarrw|subsup|subsub|nrtrie|jsercy|nsccue|Jsercy|kappav|kcedil|Kcedil|subsim|ulcorn|nsimeq|egsdot|veebar|kgreen|capand|elsdot|Subset|subset|curren|aacute|lacute|Lacute|emptyv|ntilde|Ntilde|lagran|lambda|Lambda|capcap|Ugrave|langle|subdot|emsp13|numero|emsp14|nvdash|nvDash|nVdash|nVDash|ugrave|ufisht|nvHarr|larrfs|nvlArr|larrhk|larrlp|larrpl|nvrArr|Udblac|nwarhk|larrtl|nwnear|oacute|Oacute|latail|lAtail|sstarf|lbrace|odblac|Odblac|lbrack|udblac|odsold|eparsl|lcaron|Lcaron|ograve|Ograve|lcedil|Lcedil|Aacute|ssmile|ssetmn|squarf|ldquor|capcup|ominus|cylcty|rharul|eqcirc|dagger|rfloor|rfisht|Dagger|daleth|equals|origof|capdot|equest|dcaron|Dcaron|rdquor|oslash|Oslash|otilde|Otilde|otimes|Otimes|urcrop|Ubreve|ubreve|Yacute|Uacute|uacute|Rcedil|rcedil|urcorn|parsim|Rcaron|Vdashl|rcaron|Tstrok|percnt|period|permil|Exists|yacute|rbrack|rbrace|phmmat|ccaron|Ccaron|planck|ccedil|plankv|tstrok|female|plusdo|plusdu|ffilig|plusmn|ffllig|Ccedil|rAtail|dfisht|bernou|ratail|Rarrtl|rarrtl|angsph|rarrpl|rarrlp|rarrhk|xwedge|xotime|forall|ForAll|Vvdash|vsupnE|preceq|bigcap|frac12|frac13|frac14|primes|rarrfs|prnsim|frac15|Square|frac16|square|lesdot|frac18|frac23|propto|prurel|rarrap|rangle|puncsp|frac25|Racute|qprime|racute|lesges|frac34|abreve|AElig|eqsim|utdot|setmn|urtri|Equal|Uring|seArr|uring|searr|dashv|Dashv|mumap|nabla|iogon|Iogon|sdote|sdotb|scsim|napid|napos|equiv|natur|Acirc|dblac|erarr|nbump|iprod|erDot|ucirc|awint|esdot|angrt|ncong|isinE|scnap|Scirc|scirc|ndash|isins|Ubrcy|nearr|neArr|isinv|nedot|ubrcy|acute|Ycirc|iukcy|Iukcy|xutri|nesim|caret|jcirc|Jcirc|caron|twixt|ddarr|sccue|exist|jmath|sbquo|ngeqq|angst|ccaps|lceil|ngsim|UpTee|delta|Delta|rtrif|nharr|nhArr|nhpar|rtrie|jukcy|Jukcy|kappa|rsquo|Kappa|nlarr|nlArr|TSHcy|rrarr|aogon|Aogon|fflig|xrarr|tshcy|ccirc|nleqq|filig|upsih|nless|dharl|nlsim|fjlig|ropar|nltri|dharr|robrk|roarr|fllig|fltns|roang|rnmid|subnE|subne|lAarr|trisb|Ccirc|acirc|ccups|blank|VDash|forkv|Vdash|langd|cedil|blk12|blk14|laquo|strns|diams|notin|vDash|larrb|blk34|block|disin|uplus|vdash|vBarv|aelig|starf|Wedge|check|xrArr|lates|lbarr|lBarr|notni|lbbrk|bcong|frasl|lbrke|frown|vrtri|vprop|vnsup|gamma|Gamma|wedge|xodot|bdquo|srarr|doteq|ldquo|boxdl|boxdL|gcirc|Gcirc|boxDl|boxDL|boxdr|boxdR|boxDr|TRADE|trade|rlhar|boxDR|vnsub|npart|vltri|rlarr|boxhd|boxhD|nprec|gescc|nrarr|nrArr|boxHd|boxHD|boxhu|boxhU|nrtri|boxHu|clubs|boxHU|times|colon|Colon|gimel|xlArr|Tilde|nsime|tilde|nsmid|nspar|THORN|thorn|xlarr|nsube|nsubE|thkap|xhArr|comma|nsucc|boxul|boxuL|nsupe|nsupE|gneqq|gnsim|boxUl|boxUL|grave|boxur|boxuR|boxUr|boxUR|lescc|angle|bepsi|boxvh|varpi|boxvH|numsp|Theta|gsime|gsiml|theta|boxVh|boxVH|boxvl|gtcir|gtdot|boxvL|boxVl|boxVL|crarr|cross|Cross|nvsim|boxvr|nwarr|nwArr|sqsup|dtdot|Uogon|lhard|lharu|dtrif|ocirc|Ocirc|lhblk|duarr|odash|sqsub|Hacek|sqcup|llarr|duhar|oelig|OElig|ofcir|boxvR|uogon|lltri|boxVr|csube|uuarr|ohbar|csupe|ctdot|olarr|olcir|harrw|oline|sqcap|omacr|Omacr|omega|Omega|boxVR|aleph|lneqq|lnsim|loang|loarr|rharu|lobrk|hcirc|operp|oplus|rhard|Hcirc|orarr|Union|order|ecirc|Ecirc|cuepr|szlig|cuesc|breve|reals|eDDot|Breve|hoarr|lopar|utrif|rdquo|Umacr|umacr|efDot|swArr|ultri|alpha|rceil|ovbar|swarr|Wcirc|wcirc|smtes|smile|bsemi|lrarr|aring|parsl|lrhar|bsime|uhblk|lrtri|cupor|Aring|uharr|uharl|slarr|rbrke|bsolb|lsime|rbbrk|RBarr|lsimg|phone|rBarr|rbarr|icirc|lsquo|Icirc|emacr|Emacr|ratio|simne|plusb|simlE|simgE|simeq|pluse|ltcir|ltdot|empty|xharr|xdtri|iexcl|Alpha|ltrie|rarrw|pound|ltrif|xcirc|bumpe|prcue|bumpE|asymp|amacr|cuvee|Sigma|sigma|iiint|udhar|iiota|ijlig|IJlig|supnE|imacr|Imacr|prime|Prime|image|prnap|eogon|Eogon|rarrc|mdash|mDDot|cuwed|imath|supne|imped|Amacr|udarr|prsim|micro|rarrb|cwint|raquo|infin|eplus|range|rangd|Ucirc|radic|minus|amalg|veeeq|rAarr|epsiv|ycirc|quest|sharp|quot|zwnj|Qscr|race|qscr|Qopf|qopf|qint|rang|Rang|Zscr|zscr|Zopf|zopf|rarr|rArr|Rarr|Pscr|pscr|prop|prod|prnE|prec|ZHcy|zhcy|prap|Zeta|zeta|Popf|popf|Zdot|plus|zdot|Yuml|yuml|phiv|YUcy|yucy|Yscr|yscr|perp|Yopf|yopf|part|para|YIcy|Ouml|rcub|yicy|YAcy|rdca|ouml|osol|Oscr|rdsh|yacy|real|oscr|xvee|andd|rect|andv|Xscr|oror|ordm|ordf|xscr|ange|aopf|Aopf|rHar|Xopf|opar|Oopf|xopf|xnis|rhov|oopf|omid|xmap|oint|apid|apos|ogon|ascr|Ascr|odot|odiv|xcup|xcap|ocir|oast|nvlt|nvle|nvgt|nvge|nvap|Wscr|wscr|auml|ntlg|ntgl|nsup|nsub|nsim|Nscr|nscr|nsce|Wopf|ring|npre|wopf|npar|Auml|Barv|bbrk|Nopf|nopf|nmid|nLtv|beta|ropf|Ropf|Beta|beth|nles|rpar|nleq|bnot|bNot|nldr|NJcy|rscr|Rscr|Vscr|vscr|rsqb|njcy|bopf|nisd|Bopf|rtri|Vopf|nGtv|ngtr|vopf|boxh|boxH|boxv|nges|ngeq|boxV|bscr|scap|Bscr|bsim|Vert|vert|bsol|bull|bump|caps|cdot|ncup|scnE|ncap|nbsp|napE|Cdot|cent|sdot|Vbar|nang|vBar|chcy|Mscr|mscr|sect|semi|CHcy|Mopf|mopf|sext|circ|cire|mldr|mlcp|cirE|comp|shcy|SHcy|vArr|varr|cong|copf|Copf|copy|COPY|malt|male|macr|lvnE|cscr|ltri|sime|ltcc|simg|Cscr|siml|csub|Uuml|lsqb|lsim|uuml|csup|Lscr|lscr|utri|smid|lpar|cups|smte|lozf|darr|Lopf|Uscr|solb|lopf|sopf|Sopf|lneq|uscr|spar|dArr|lnap|Darr|dash|Sqrt|LJcy|ljcy|lHar|dHar|Upsi|upsi|diam|lesg|djcy|DJcy|leqq|dopf|Dopf|dscr|Dscr|dscy|ldsh|ldca|squf|DScy|sscr|Sscr|dsol|lcub|late|star|Star|Uopf|Larr|lArr|larr|uopf|dtri|dzcy|sube|subE|Lang|lang|Kscr|kscr|Kopf|kopf|KJcy|kjcy|KHcy|khcy|DZcy|ecir|edot|eDot|Jscr|jscr|succ|Jopf|jopf|Edot|uHar|emsp|ensp|Iuml|iuml|eopf|isin|Iscr|iscr|Eopf|epar|sung|epsi|escr|sup1|sup2|sup3|Iota|iota|supe|supE|Iopf|iopf|IOcy|iocy|Escr|esim|Esim|imof|Uarr|QUOT|uArr|uarr|euml|IEcy|iecy|Idot|Euml|euro|excl|Hscr|hscr|Hopf|hopf|TScy|tscy|Tscr|hbar|tscr|flat|tbrk|fnof|hArr|harr|half|fopf|Fopf|tdot|gvnE|fork|trie|gtcc|fscr|Fscr|gdot|gsim|Gscr|gscr|Gopf|gopf|gneq|Gdot|tosa|gnap|Topf|topf|geqq|toea|GJcy|gjcy|tint|gesl|mid|Sfr|ggg|top|ges|gla|glE|glj|geq|gne|gEl|gel|gnE|Gcy|gcy|gap|Tfr|tfr|Tcy|tcy|Hat|Tau|Ffr|tau|Tab|hfr|Hfr|ffr|Fcy|fcy|icy|Icy|iff|ETH|eth|ifr|Ifr|Eta|eta|int|Int|Sup|sup|ucy|Ucy|Sum|sum|jcy|ENG|ufr|Ufr|eng|Jcy|jfr|els|ell|egs|Efr|efr|Jfr|uml|kcy|Kcy|Ecy|ecy|kfr|Kfr|lap|Sub|sub|lat|lcy|Lcy|leg|Dot|dot|lEg|leq|les|squ|div|die|lfr|Lfr|lgE|Dfr|dfr|Del|deg|Dcy|dcy|lne|lnE|sol|loz|smt|Cup|lrm|cup|lsh|Lsh|sim|shy|map|Map|mcy|Mcy|mfr|Mfr|mho|gfr|Gfr|sfr|cir|Chi|chi|nap|Cfr|vcy|Vcy|cfr|Scy|scy|ncy|Ncy|vee|Vee|Cap|cap|nfr|scE|sce|Nfr|nge|ngE|nGg|vfr|Vfr|ngt|bot|nGt|nis|niv|Rsh|rsh|nle|nlE|bne|Bfr|bfr|nLl|nlt|nLt|Bcy|bcy|not|Not|rlm|wfr|Wfr|npr|nsc|num|ocy|ast|Ocy|ofr|xfr|Xfr|Ofr|ogt|ohm|apE|olt|Rho|ape|rho|Rfr|rfr|ord|REG|ang|reg|orv|And|and|AMP|Rcy|amp|Afr|ycy|Ycy|yen|yfr|Yfr|rcy|par|pcy|Pcy|pfr|Pfr|phi|Phi|afr|Acy|acy|zcy|Zcy|piv|acE|acd|zfr|Zfr|pre|prE|psi|Psi|qfr|Qfr|zwj|Or|ge|Gg|gt|gg|el|oS|lt|Lt|LT|Re|lg|gl|eg|ne|Im|it|le|DD|wp|wr|nu|Nu|dd|lE|Sc|sc|pi|Pi|ee|af|ll|Ll|rx|gE|xi|pm|Xi|ic|pr|Pr|in|ni|mp|mu|ac|Mu|or|ap|Gt|GT|ii);|&(Aacute|Agrave|Atilde|Ccedil|Eacute|Egrave|Iacute|Igrave|Ntilde|Oacute|Ograve|Oslash|Otilde|Uacute|Ugrave|Yacute|aacute|agrave|atilde|brvbar|ccedil|curren|divide|eacute|egrave|frac12|frac14|frac34|iacute|igrave|iquest|middot|ntilde|oacute|ograve|oslash|otilde|plusmn|uacute|ugrave|yacute|AElig|Acirc|Aring|Ecirc|Icirc|Ocirc|THORN|Ucirc|acirc|acute|aelig|aring|cedil|ecirc|icirc|iexcl|laquo|micro|ocirc|pound|raquo|szlig|thorn|times|ucirc|Auml|COPY|Euml|Iuml|Ouml|QUOT|Uuml|auml|cent|copy|euml|iuml|macr|nbsp|ordf|ordm|ouml|para|quot|sect|sup1|sup2|sup3|uuml|yuml|AMP|ETH|REG|amp|deg|eth|not|reg|shy|uml|yen|GT|LT|gt|lt)(?!;)([=a-zA-Z0-9]?)|&#([0-9]+)(;?)|&#[xX]([a-fA-F0-9]+)(;?)|&([0-9a-zA-Z]+)/g,m={aacute:"á",Aacute:"Á",abreve:"ă",Abreve:"Ă",ac:"∾",acd:"∿",acE:"∾̳",acirc:"â",Acirc:"Â",acute:"´",acy:"а",Acy:"А",aelig:"æ",AElig:"Æ",af:"⁡",afr:"𝔞",Afr:"𝔄",agrave:"à",Agrave:"À",alefsym:"ℵ",aleph:"ℵ",alpha:"α",Alpha:"Α",amacr:"ā",Amacr:"Ā",amalg:"⨿",amp:"&",AMP:"&",and:"∧",And:"⩓",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",Aogon:"Ą",aopf:"𝕒",Aopf:"𝔸",ap:"≈",apacir:"⩯",ape:"≊",apE:"⩰",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",aring:"å",Aring:"Å",ascr:"𝒶",Ascr:"𝒜",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",Bcy:"Б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",beta:"β",Beta:"Β",beth:"ℶ",between:"≬",bfr:"𝔟",Bfr:"𝔅",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bNot:"⫭",bopf:"𝕓",Bopf:"𝔹",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxhD:"╥",boxHd:"╤",boxHD:"╦",boxhu:"┴",boxhU:"╨",boxHu:"╧",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpe:"≏",bumpE:"⪮",bumpeq:"≏",Bumpeq:"≎",cacute:"ć",Cacute:"Ć",cap:"∩",Cap:"⋒",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",ccaron:"č",Ccaron:"Č",ccedil:"ç",Ccedil:"Ç",ccirc:"ĉ",Ccirc:"Ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",Cdot:"Ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",chcy:"ч",CHcy:"Ч",check:"✓",checkmark:"✓",chi:"χ",Chi:"Χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cire:"≗",cirE:"⧃",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",colone:"≔",Colone:"⩴",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",cscr:"𝒸",Cscr:"𝒞",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",Cup:"⋓",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",dArr:"⇓",Darr:"↡",dash:"‐",dashv:"⊣",Dashv:"⫤",dbkarow:"⤏",dblac:"˝",dcaron:"ď",Dcaron:"Ď",dcy:"д",Dcy:"Д",dd:"ⅆ",DD:"ⅅ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",delta:"δ",Delta:"Δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",Dfr:"𝔇",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",DJcy:"Ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",Dopf:"𝔻",dot:"˙",Dot:"¨",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",downarrow:"↓",Downarrow:"⇓",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",Dscr:"𝒟",dscy:"ѕ",DScy:"Ѕ",dsol:"⧶",dstrok:"đ",Dstrok:"Đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",DZcy:"Џ",dzigrarr:"⟿",eacute:"é",Eacute:"É",easter:"⩮",ecaron:"ě",Ecaron:"Ě",ecir:"≖",ecirc:"ê",Ecirc:"Ê",ecolon:"≕",ecy:"э",Ecy:"Э",eDDot:"⩷",edot:"ė",eDot:"≑",Edot:"Ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",Efr:"𝔈",eg:"⪚",egrave:"è",Egrave:"È",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",Emacr:"Ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",eng:"ŋ",ENG:"Ŋ",ensp:" ",eogon:"ę",Eogon:"Ę",eopf:"𝕖",Eopf:"𝔼",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",Epsilon:"Ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",esim:"≂",Esim:"⩳",eta:"η",Eta:"Η",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",fcy:"ф",Fcy:"Ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",Ffr:"𝔉",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",Fopf:"𝔽",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",gamma:"γ",Gamma:"Γ",gammad:"ϝ",Gammad:"Ϝ",gap:"⪆",gbreve:"ğ",Gbreve:"Ğ",Gcedil:"Ģ",gcirc:"ĝ",Gcirc:"Ĝ",gcy:"г",Gcy:"Г",gdot:"ġ",Gdot:"Ġ",ge:"≥",gE:"≧",gel:"⋛",gEl:"⪌",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",Gfr:"𝔊",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",GJcy:"Ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",Gopf:"𝔾",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",gscr:"ℊ",Gscr:"𝒢",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",Gt:"≫",GT:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",HARDcy:"Ъ",harr:"↔",hArr:"⇔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",hcirc:"ĥ",Hcirc:"Ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",hstrok:"ħ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",iacute:"í",Iacute:"Í",ic:"⁣",icirc:"î",Icirc:"Î",icy:"и",Icy:"И",Idot:"İ",iecy:"е",IEcy:"Е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",igrave:"ì",Igrave:"Ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",IJlig:"IJ",Im:"ℑ",imacr:"ī",Imacr:"Ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",Int:"∬",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",iocy:"ё",IOcy:"Ё",iogon:"į",Iogon:"Į",iopf:"𝕚",Iopf:"𝕀",iota:"ι",Iota:"Ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",Itilde:"Ĩ",iukcy:"і",Iukcy:"І",iuml:"ï",Iuml:"Ï",jcirc:"ĵ",Jcirc:"Ĵ",jcy:"й",Jcy:"Й",jfr:"𝔧",Jfr:"𝔍",jmath:"ȷ",jopf:"𝕛",Jopf:"𝕁",jscr:"𝒿",Jscr:"𝒥",jsercy:"ј",Jsercy:"Ј",jukcy:"є",Jukcy:"Є",kappa:"κ",Kappa:"Κ",kappav:"ϰ",kcedil:"ķ",Kcedil:"Ķ",kcy:"к",Kcy:"К",kfr:"𝔨",Kfr:"𝔎",kgreen:"ĸ",khcy:"х",KHcy:"Х",kjcy:"ќ",KJcy:"Ќ",kopf:"𝕜",Kopf:"𝕂",kscr:"𝓀",Kscr:"𝒦",lAarr:"⇚",lacute:"ĺ",Lacute:"Ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",Lambda:"Λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larr:"←",lArr:"⇐",Larr:"↞",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",lAtail:"⤛",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",Lcaron:"Ľ",lcedil:"ļ",Lcedil:"Ļ",lceil:"⌈",lcub:"{",lcy:"л",Lcy:"Л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",leftarrow:"←",Leftarrow:"⇐",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",Leftrightarrow:"⇔",LeftRightArrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",leg:"⋚",lEg:"⪋",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",Lfr:"𝔏",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",LJcy:"Љ",ll:"≪",Ll:"⋘",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",lmidot:"ŀ",Lmidot:"Ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",Longleftarrow:"⟸",LongLeftArrow:"⟵",longleftrightarrow:"⟷",Longleftrightarrow:"⟺",LongLeftRightArrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",Longrightarrow:"⟹",LongRightArrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",Lopf:"𝕃",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",Lstrok:"Ł",lt:"<",Lt:"≪",LT:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",Map:"⤅",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",Mcy:"М",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",mfr:"𝔪",Mfr:"𝔐",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",Mopf:"𝕄",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",mu:"μ",Mu:"Μ",multimap:"⊸",mumap:"⊸",nabla:"∇",nacute:"ń",Nacute:"Ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",Ncaron:"Ň",ncedil:"ņ",Ncedil:"Ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",Ncy:"Н",ndash:"–",ne:"≠",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",nfr:"𝔫",Nfr:"𝔑",nge:"≱",ngE:"≧̸",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",ngt:"≯",nGt:"≫⃒",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",NJcy:"Њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nle:"≰",nlE:"≦̸",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nlt:"≮",nLt:"≪⃒",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",not:"¬",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrarr:"↛",nrArr:"⇏",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",Nscr:"𝒩",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsube:"⊈",nsubE:"⫅̸",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupe:"⊉",nsupE:"⫆̸",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",Ntilde:"Ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",Nu:"Ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",oacute:"ó",Oacute:"Ó",oast:"⊛",ocir:"⊚",ocirc:"ô",Ocirc:"Ô",ocy:"о",Ocy:"О",odash:"⊝",odblac:"ő",Odblac:"Ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",OElig:"Œ",ofcir:"⦿",ofr:"𝔬",Ofr:"𝔒",ogon:"˛",ograve:"ò",Ograve:"Ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",Omacr:"Ō",omega:"ω",Omega:"Ω",omicron:"ο",Omicron:"Ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",Oopf:"𝕆",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",or:"∨",Or:"⩔",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",oscr:"ℴ",Oscr:"𝒪",oslash:"ø",Oslash:"Ø",osol:"⊘",otilde:"õ",Otilde:"Õ",otimes:"⊗",Otimes:"⨷",otimesas:"⨶",ouml:"ö",Ouml:"Ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",pcy:"п",Pcy:"П",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",Pfr:"𝔓",phi:"φ",Phi:"Φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",Pi:"Π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",pr:"≺",Pr:"⪻",prap:"⪷",prcue:"≼",pre:"⪯",prE:"⪳",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",Pscr:"𝒫",psi:"ψ",Psi:"Ψ",puncsp:" ",qfr:"𝔮",Qfr:"𝔔",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",qscr:"𝓆",Qscr:"𝒬",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",racute:"ŕ",Racute:"Ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rArr:"⇒",Rarr:"↠",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",Rarrtl:"⤖",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",Rcaron:"Ř",rcedil:"ŗ",Rcedil:"Ŗ",rceil:"⌉",rcub:"}",rcy:"р",Rcy:"Р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",Rho:"Ρ",rhov:"ϱ",RightAngleBracket:"⟩",rightarrow:"→",Rightarrow:"⇒",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",sacute:"ś",Sacute:"Ś",sbquo:"‚",sc:"≻",Sc:"⪼",scap:"⪸",scaron:"š",Scaron:"Š",sccue:"≽",sce:"⪰",scE:"⪴",scedil:"ş",Scedil:"Ş",scirc:"ŝ",Scirc:"Ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",Scy:"С",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",Sfr:"𝔖",sfrown:"⌢",sharp:"♯",shchcy:"щ",SHCHcy:"Щ",shcy:"ш",SHcy:"Ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",sigma:"σ",Sigma:"Σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",SOFTcy:"Ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",Sopf:"𝕊",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",Sscr:"𝒮",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",Star:"⋆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",sube:"⊆",subE:"⫅",subedot:"⫃",submult:"⫁",subne:"⊊",subnE:"⫋",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup:"⊃",Sup:"⋑",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supe:"⊇",supE:"⫆",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supne:"⊋",supnE:"⫌",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",tau:"τ",Tau:"Τ",tbrk:"⎴",tcaron:"ť",Tcaron:"Ť",tcedil:"ţ",Tcedil:"Ţ",tcy:"т",Tcy:"Т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",Tfr:"𝔗",there4:"∴",therefore:"∴",Therefore:"∴",theta:"θ",Theta:"Θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",thorn:"þ",THORN:"Þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",Topf:"𝕋",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",Tscr:"𝒯",tscy:"ц",TScy:"Ц",tshcy:"ћ",TSHcy:"Ћ",tstrok:"ŧ",Tstrok:"Ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uacute:"ú",Uacute:"Ú",uarr:"↑",uArr:"⇑",Uarr:"↟",Uarrocir:"⥉",ubrcy:"ў",Ubrcy:"Ў",ubreve:"ŭ",Ubreve:"Ŭ",ucirc:"û",Ucirc:"Û",ucy:"у",Ucy:"У",udarr:"⇅",udblac:"ű",Udblac:"Ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",Ufr:"𝔘",ugrave:"ù",Ugrave:"Ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",Umacr:"Ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",uogon:"ų",Uogon:"Ų",uopf:"𝕦",Uopf:"𝕌",uparrow:"↑",Uparrow:"⇑",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",updownarrow:"↕",Updownarrow:"⇕",UpDownArrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",upsilon:"υ",Upsilon:"Υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",Uring:"Ů",urtri:"◹",uscr:"𝓊",Uscr:"𝒰",utdot:"⋰",utilde:"ũ",Utilde:"Ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",Uuml:"Ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",vcy:"в",Vcy:"В",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",vee:"∨",Vee:"⋁",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",vfr:"𝔳",Vfr:"𝔙",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",Vopf:"𝕍",vprop:"∝",vrtri:"⊳",vscr:"𝓋",Vscr:"𝒱",vsubne:"⊊︀",vsubnE:"⫋︀",vsupne:"⊋︀",vsupnE:"⫌︀",Vvdash:"⊪",vzigzag:"⦚",wcirc:"ŵ",Wcirc:"Ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",wfr:"𝔴",Wfr:"𝔚",wopf:"𝕨",Wopf:"𝕎",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",Wscr:"𝒲",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",Xfr:"𝔛",xharr:"⟷",xhArr:"⟺",xi:"ξ",Xi:"Ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",Xopf:"𝕏",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",xscr:"𝓍",Xscr:"𝒳",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",Yacute:"Ý",yacy:"я",YAcy:"Я",ycirc:"ŷ",Ycirc:"Ŷ",ycy:"ы",Ycy:"Ы",yen:"¥",yfr:"𝔶",Yfr:"𝔜",yicy:"ї",YIcy:"Ї",yopf:"𝕪",Yopf:"𝕐",yscr:"𝓎",Yscr:"𝒴",yucy:"ю",YUcy:"Ю",yuml:"ÿ",Yuml:"Ÿ",zacute:"ź",Zacute:"Ź",zcaron:"ž",Zcaron:"Ž",zcy:"з",Zcy:"З",zdot:"ż",Zdot:"Ż",zeetrf:"ℨ",ZeroWidthSpace:"​",zeta:"ζ",Zeta:"Ζ",zfr:"𝔷",Zfr:"ℨ",zhcy:"ж",ZHcy:"Ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",zscr:"𝓏",Zscr:"𝒵",zwj:"‍",zwnj:"‌"},b={aacute:"á",Aacute:"Á",acirc:"â",Acirc:"Â",acute:"´",aelig:"æ",AElig:"Æ",agrave:"à",Agrave:"À",amp:"&",AMP:"&",aring:"å",Aring:"Å",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",brvbar:"¦",ccedil:"ç",Ccedil:"Ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",Eacute:"É",ecirc:"ê",Ecirc:"Ê",egrave:"è",Egrave:"È",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",iacute:"í",Iacute:"Í",icirc:"î",Icirc:"Î",iexcl:"¡",igrave:"ì",Igrave:"Ì",iquest:"¿",iuml:"ï",Iuml:"Ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",Ntilde:"Ñ",oacute:"ó",Oacute:"Ó",ocirc:"ô",Ocirc:"Ô",ograve:"ò",Ograve:"Ò",ordf:"ª",ordm:"º",oslash:"ø",Oslash:"Ø",otilde:"õ",Otilde:"Õ",ouml:"ö",Ouml:"Ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",THORN:"Þ",times:"×",uacute:"ú",Uacute:"Ú",ucirc:"û",Ucirc:"Û",ugrave:"ù",Ugrave:"Ù",uml:"¨",uuml:"ü",Uuml:"Ü",yacute:"ý",Yacute:"Ý",yen:"¥",yuml:"ÿ"},y={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},v=[1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65e3,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111],w=String.fromCharCode,q={}.hasOwnProperty,E=function(r,e){return q.call(r,e)},D=function(r,e){if(!r)return e;var t,a={};for(t in e)a[t]=E(r,t)?r[t]:e[t];return a},A=function(r,e){var t="";return r>=55296&&r<=57343||r>1114111?(e&&C("character reference outside the permissible Unicode range"),"�"):E(y,r)?(e&&C("disallowed character reference"),y[r]):(e&&function(r,e){for(var t=-1,a=r.length;++t65535&&(t+=w((r-=65536)>>>10&1023|55296),r=56320|1023&r),t+=w(r))},x=function(r){return"&#x"+r.toString(16).toUpperCase()+";"},k=function(r){return"&#"+r+";"},C=function(r){throw Error("Parse error: "+r)},S=function(r,e){(e=D(e,S.options)).strict&&h.test(r)&&C("forbidden code point");var t=e.encodeEverything,a=e.useNamedReferences,n=e.allowUnsafeSymbols,o=e.decimal?k:x,d=function(r){return o(r.charCodeAt(0))};return t?(r=r.replace(i,(function(r){return a&&E(l,r)?"&"+l[r]+";":d(r)})),a&&(r=r.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒").replace(/fj/g,"fj")),a&&(r=r.replace(u,(function(r){return"&"+l[r]+";"})))):a?(n||(r=r.replace(p,(function(r){return"&"+l[r]+";"}))),r=(r=r.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒")).replace(u,(function(r){return"&"+l[r]+";"}))):n||(r=r.replace(p,d)),r.replace(s,(function(r){var e=r.charCodeAt(0),t=r.charCodeAt(1);return o(1024*(e-55296)+t-56320+65536)})).replace(c,d)};S.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var L=function(r,e){var t=(e=D(e,L.options)).strict;return t&&f.test(r)&&C("malformed character reference"),r.replace(g,(function(r,a,n,o,s,i,c,u,l){var p,d,f,h,g,y;return a?m[g=a]:n?(g=n,(y=o)&&e.isAttributeValue?(t&&"="==y&&C("`&` did not start a character reference"),r):(t&&C("named character reference was not terminated by a semicolon"),b[g]+(y||""))):s?(f=s,d=i,t&&!d&&C("character reference was not terminated by a semicolon"),p=parseInt(f,10),A(p,t)):c?(h=c,d=u,t&&!d&&C("character reference was not terminated by a semicolon"),p=parseInt(h,16),A(p,t)):(t&&C("named character reference was not terminated by a semicolon"),r)}))};L.options={isAttributeValue:!1,strict:!1};var F={version:"1.2.0",encode:S,decode:L,escape:function(r){return r.replace(p,(function(r){return d[r]}))},unescape:L};void 0===(a=function(){return F}.call(e,t,e,r))||(r.exports=a)}()},62663:r=>{r.exports=function(r,e,t,a){var n=-1,o=null==r?0:r.length;for(a&&o&&(t=r[++n]);++n{var a=t(640554),n=t(588958);r.exports=function(r,e,t,o){var s=r.length;for((t=a(t))<0&&(t=-t>s?0:s+t),(o=void 0===o||o>s?s:a(o))<0&&(o+=s),o=t>o?0:n(o);t{var e=Math.floor,t=Math.random;r.exports=function(r,a){return r+e(t()*(a-r+1))}},210107:r=>{r.exports=function(r,e,t,a,n){return n(r,(function(r,n,o){t=a?(a=!1,r):e(t,r,n,o)})),t}},389179:(r,e,t)=>{var a=t(555639),n=t(640554),o=t(14841),s=t(479833),i=a.isFinite,c=Math.min;r.exports=function(r){var e=Math[r];return function(r,t){if(r=o(r),(t=null==t?0:c(n(t),292))&&i(r)){var a=(s(r)+"e").split("e"),u=e(a[0]+"e"+(+a[1]+t));return+((a=(s(u)+"e").split("e"))[0]+"e"+(+a[1]-t))}return e(r)}}},819873:(r,e,t)=>{var a=t(887157),n=t(816612);r.exports=function(r,e,t,o){var s=null==r?0:r.length;return s?(t&&"number"!=typeof t&&n(r,e,t)&&(t=0,o=s),a(r,e,t,o)):[]}},683608:(r,e,t)=>{var a=t(769877),n=t(816612),o=t(418601),s=parseFloat,i=Math.min,c=Math.random;r.exports=function(r,e,t){if(t&&"boolean"!=typeof t&&n(r,e,t)&&(e=t=void 0),void 0===t&&("boolean"==typeof e?(t=e,e=void 0):"boolean"==typeof r&&(t=r,r=void 0)),void 0===r&&void 0===e?(r=0,e=1):(r=o(r),void 0===e?(e=r,r=0):e=o(e)),r>e){var u=r;r=e,e=u}if(t||r%1||e%1){var l=c();return i(r+l*(e-r+s("1e-"+((l+"").length-1))),e)}return a(r,e)}},354061:(r,e,t)=>{var a=t(62663),n=t(989881),o=t(267206),s=t(210107),i=t(701469);r.exports=function(r,e,t){var c=i(r)?a:s,u=arguments.length<3;return c(r,o(e,4),t,u,n)}},531351:r=>{var e=Array.prototype.reverse;r.exports=function(r){return null==r?r:e.call(r)}},59854:(r,e,t)=>{var a=t(389179)("round");r.exports=a},410240:(r,e,t)=>{var a=t(829750),n=t(880531),o=t(640554),s=t(479833);r.exports=function(r,e,t){return r=s(r),t=null==t?0:a(o(t),0,r.length),e=n(e),r.slice(t,t+e.length)==e}},588958:(r,e,t)=>{var a=t(829750),n=t(640554);r.exports=function(r){return r?a(n(r),0,4294967295):0}},524568:(r,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=Object.assign||function(r){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a]);return t}(e,["children","text","style","min","max","mode","forceWidth","forceSingleModeWidth","throttle","autoResize","onReady"])),u=this.state,l=u.fontSize,p=u.ready,d=a({},s,{fontSize:l}),f={display:p?"block":"inline-block"};return"single"===i&&(f.whiteSpace="nowrap"),o.default.createElement("div",a({ref:function(e){return r._parent=e},style:d},c),o.default.createElement("div",{ref:function(e){return r._child=e},style:f},n&&"function"==typeof t?p?t(n):n:t))}}]),e}(o.default.Component);m.propTypes={children:s.default.node,text:s.default.string,min:s.default.number,max:s.default.number,mode:s.default.oneOf(["single","multi"]),forceSingleModeWidth:s.default.bool,throttle:s.default.number,onReady:s.default.func},m.defaultProps={min:1,max:100,mode:"multi",forceSingleModeWidth:!0,throttle:50,autoResize:!0,onReady:function(){}},e.default=m},23195:(r,e,t)=>{"use strict";e.iF=void 0;var a,n=(a=t(524568))&&a.__esModule?a:{default:a};e.iF=n.default,n.default},915597:(r,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.innerHeight=function(r){var e=window.getComputedStyle(r,null);return r.clientHeight-parseInt(e.getPropertyValue("padding-top"),10)-parseInt(e.getPropertyValue("padding-bottom"),10)},e.innerWidth=function(r){var e=window.getComputedStyle(r,null);return r.clientWidth-parseInt(e.getPropertyValue("padding-left"),10)-parseInt(e.getPropertyValue("padding-right"),10)}},174112:(r,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(r,e){var t=[],a=0,o=!0;function s(r){function a(){e&&e(r,t)}o?n.default.nextTick(a):a()}r.length>0?r[0]((function e(n,o){t.push(o),++a>=r.length||n?s(n):r[a](e)})):s(null),o=!1};var a,n=(a=t(130488))&&a.__esModule?a:{default:a}},532593:(r,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(r,e){if(r===e)return!0;var t=Object.keys(r),a=Object.keys(e);if(t.length!==a.length)return!1;for(var n=Object.prototype.hasOwnProperty,o=0;o{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(r,e){var t=void 0,a=void 0,n=void 0,o=void 0,s=0;function i(){o=0,s=+new Date,n=r.apply(t,a),t=null,a=null}return function(){t=this,a=arguments;var r=new Date-s;return o||(r>=e?i():o=setTimeout(i,e-r)),n}}},681413:(r,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return t++};var t=0},853228:(r,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(r,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;r()?e((function t(n){for(var o=arguments.length,s=Array(o>1?o-1:0),i=1;i{var e,t,a=r.exports={};function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(r){if(e===setTimeout)return setTimeout(r,0);if((e===n||!e)&&setTimeout)return e=setTimeout,setTimeout(r,0);try{return e(r,0)}catch(t){try{return e.call(null,r,0)}catch(t){return e.call(this,r,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:n}catch(r){e=n}try{t="function"==typeof clearTimeout?clearTimeout:o}catch(r){t=o}}();var i,c=[],u=!1,l=-1;function p(){u&&i&&(u=!1,i.length?c=i.concat(c):l=-1,c.length&&d())}function d(){if(!u){var r=s(p);u=!0;for(var e=c.length;e;){for(i=c,c=[];++l1)for(var t=1;t{"use strict";n.d(e,{LX:()=>B});var o=n(730670),r=n.n(o),i=n(124852),a=n.n(i),c=n(675263),s=n.n(c),u=n(447435),l=n.n(u),f=n(145173),p=n.n(f),h=n(441143),d=n.n(h),y=Object.assign||function(t){for(var e=1;e may have only one child element"),this.unlisten=o.listen((function(){t.setState({match:t.computeMatch(o.location.pathname)})}))},e.prototype.componentWillReceiveProps=function(t){p()(this.props.history===t.history,"You cannot change ")},e.prototype.componentWillUnmount=function(){this.unlisten()},e.prototype.render=function(){var t=this.props.children;return t?a().Children.only(t):null},e}(a().Component);m.propTypes={history:s().object.isRequired,children:s().node},m.contextTypes={router:s().object},m.childContextTypes={router:s().object.isRequired};const w=m;function b(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(function(t){function e(){var n,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,i=Array(r),a=0;a ignores the history prop. To use a custom history, use `import { Router }` instead of `import { BrowserRouter as Router }`.")},e.prototype.render=function(){return a().createElement(w,{history:this.history,children:this.props.children})},e}(a().Component)).propTypes={basename:s().string,forceRefresh:s().bool,getUserConfirmation:s().func,keyLength:s().number,children:s().node};var g=n(518632),O=n.n(g);function x(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(function(t){function e(){var n,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,i=Array(r),a=0;a ignores the history prop. To use a custom history, use `import { Router }` instead of `import { HashRouter as Router }`.")},e.prototype.render=function(){return a().createElement(w,{history:this.history,children:this.props.children})},e}(a().Component)).propTypes={basename:s().string,getUserConfirmation:s().func,hashType:s().oneOf(["hashbang","noslash","slash"]),children:s().node};var R=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}(t,["replace","to","innerRef"]);d()(this.context.router,"You should not use outside a ");var r=this.context.router.history.createHref("string"==typeof e?{pathname:e}:e);return a().createElement("a",R({},o,{onClick:this.handleClick,href:r,ref:n}))},e}(a().Component);P.propTypes={onClick:s().func,target:s().string,replace:s().bool,to:s().oneOfType([s().string,s().object]).isRequired,innerRef:s().oneOfType([s().string,s().func])},P.defaultProps={replace:!1},P.contextTypes={router:s().shape({history:s().shape({push:s().func.isRequired,replace:s().func.isRequired,createHref:s().func.isRequired}).isRequired}).isRequired};const T=P;var C=n(514779),E=n.n(C),S={},k=0;const A=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];"string"==typeof e&&(e={path:e});var o=e,r=o.path,i=o.exact,a=void 0!==i&&i,c=o.strict,s=void 0!==c&&c,u=o.sensitive;if(null==r)return n;var l=function(t,e){var n=""+e.end+e.strict+e.sensitive,o=S[n]||(S[n]={});if(o[t])return o[t];var r=[],i={re:E()(t,r,e),keys:r};return k<1e4&&(o[t]=i,k++),i}(r,{end:a,strict:s,sensitive:void 0!==u&&u}),f=l.re,p=l.keys,h=f.exec(t);if(!h)return null;var d=h[0],y=h.slice(1),v=t===d;return a&&!v?null:{path:r,url:"/"===r&&""===d?"/":d,isExact:v,params:p.reduce((function(t,e,n){return t[e.name]=y[n],t}),{})}};var L=Object.assign||function(t){for(var e=1;e or withRouter() outside a ");var s=e.route,u=(o||s.location).pathname;return A(u,{path:r,strict:i,exact:a,sensitive:c},s.match)},e.prototype.componentWillMount=function(){p()(!(this.props.component&&this.props.render),"You should not use and in the same route; will be ignored"),p()(!(this.props.component&&this.props.children&&!H(this.props.children)),"You should not use and in the same route; will be ignored"),p()(!(this.props.render&&this.props.children&&!H(this.props.children)),"You should not use and in the same route; will be ignored")},e.prototype.componentWillReceiveProps=function(t,e){p()(!(t.location&&!this.props.location),' elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),p()(!(!t.location&&this.props.location),' elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(t,e.router)})},e.prototype.render=function(){var t=this.state.match,e=this.props,n=e.children,o=e.component,r=e.render,i=this.context.router,c=i.history,s=i.route,u=i.staticContext,l={match:t,location:this.props.location||s.location,history:c,staticContext:u};return o?t?a().createElement(o,l):null:r?t?r(l):null:"function"==typeof n?n(l):n&&!H(n)?a().Children.only(n):null},e}(a().Component);U.propTypes={computedMatch:s().object,path:s().string,exact:s().bool,strict:s().bool,sensitive:s().bool,component:s().func,render:s().func,children:s().oneOfType([s().func,s().node]),location:s().object},U.contextTypes={router:s().shape({history:s().object.isRequired,route:s().object.isRequired,staticContext:s().object})},U.childContextTypes={router:s().object.isRequired};const I=U;var M=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}(t,["to","exact","strict","location","activeClassName","className","activeStyle","style","isActive","ariaCurrent"]);return a().createElement(I,{path:"object"===(void 0===e?"undefined":N(e))?e.pathname:e,exact:n,strict:o,location:r,children:function(t){var n=t.location,o=t.match,r=!!(l?l(o,n):o);return a().createElement(T,M({to:e,className:r?[c,i].filter((function(t){return t})).join(" "):c,style:r?M({},u,s):u,"aria-current":r&&f},p))}})};q.propTypes={to:T.propTypes.to,exact:s().bool,strict:s().bool,location:s().object,activeClassName:s().string,className:s().string,activeStyle:s().object,style:s().object,isActive:s().func,ariaCurrent:s().oneOf(["page","step","location","true"])},q.defaultProps={activeClassName:"active",ariaCurrent:"true"};const B=A},856529:(t,e,n)=>{"use strict";function o(t){return t&&"object"==typeof t&&"default"in t?t.default:t}var r=o(n(196547));o(n(704508));n(645298);var i=o(n(426018));function a(){return(a=Object.assign||function(t){for(var e=1;e{"use strict";n(802526)("createBrowserHistory"),t.exports=n(509354).createBrowserHistory},518632:(t,e,n)=>{"use strict";n(802526)("createHashHistory"),t.exports=n(509354).createHashHistory},509354:(t,e,n)=>{"use strict";t.exports=n(856529)},802526:t=>{"use strict";t.exports=function(t){}},145173:t=>{"use strict";t.exports=function(){}},196547:(t,e,n)=>{"use strict";function o(t){return"/"===t.charAt(0)}function r(t,e){for(var n=e,o=n+1,r=t.length;oi});const i=function(t,e){void 0===e&&(e="");var n,i=t&&t.split("/")||[],a=e&&e.split("/")||[],c=t&&o(t),s=e&&o(e),u=c||s;if(t&&o(t)?a=i:i.length&&(a.pop(),a=a.concat(i)),!a.length)return"/";if(a.length){var l=a[a.length-1];n="."===l||".."===l||""===l}else n=!1;for(var f=0,p=a.length;p>=0;p--){var h=a[p];"."===h?r(a,p):".."===h?(r(a,p),f++):f&&(r(a,p),f--)}if(!u)for(;f--;f)a.unshift("..");!u||""===a[0]||a[0]&&o(a[0])||a.unshift("");var d=a.join("/");return n&&"/"!==d.substr(-1)&&(d+="/"),d}},704508:(t,e,n)=>{"use strict";function o(t){return t.valueOf?t.valueOf():Object.prototype.valueOf.call(t)}n.r(e),n.d(e,{default:()=>r});const r=function t(e,n){if(e===n)return!0;if(null==e||null==n)return!1;if(Array.isArray(e))return Array.isArray(n)&&e.length===n.length&&e.every((function(e,o){return t(e,n[o])}));if("object"==typeof e||"object"==typeof n){var r=o(e),i=o(n);return r!==e||i!==n?t(r,i):Object.keys(Object.assign({},e,n)).every((function(o){return t(e[o],n[o])}))}return!1}},426018:t=>{"use strict";t.exports=function(t,e){if(!t)throw new Error("Invariant failed")}},645298:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});const o=function(t,e){}}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/11426.affd309bf2aa3f38d3a0.chunk.js.LICENSE.txt b/geonode_mapstore_client/static/mapstore/dist/js/11426.018dc26183efb561a8b1.chunk.js.LICENSE.txt similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/11426.affd309bf2aa3f38d3a0.chunk.js.LICENSE.txt rename to geonode_mapstore_client/static/mapstore/dist/js/11426.018dc26183efb561a8b1.chunk.js.LICENSE.txt diff --git a/geonode_mapstore_client/static/mapstore/dist/js/11506.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/11506.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/11506.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/11506.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/11671.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/11671.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/11671.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/11671.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/11699.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/11699.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/11699.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/11699.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/11704.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/11704.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/11704.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/11704.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/1174.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/1174.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/1174.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/1174.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/11915.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/11915.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/11915.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/11915.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/11932.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/11932.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/11932.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/11932.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/12020.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/12020.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/12020.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/12020.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/12064.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/12064.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/12064.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/12064.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/12151.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/12151.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/12151.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/12151.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/12157.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/12157.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/12157.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/12157.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/12290.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/12290.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/12290.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/12290.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/1230.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/1230.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/1230.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/1230.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/12474.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/12474.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/12474.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/12474.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/12485.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/12485.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/12485.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/12485.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/12542.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/12542.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/12542.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/12542.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/12574.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/12574.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/12574.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/12574.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/12594.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/12594.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/12594.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/12594.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/1269.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/1269.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/1269.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/1269.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/1274.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/1274.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/1274.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/1274.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/12831.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/12831.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/12831.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/12831.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/12930.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/12930.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/12930.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/12930.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/1303.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/1303.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/1303.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/1303.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/13261.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/13261.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/13261.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/13261.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/13265.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/13265.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/13265.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/13265.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/13268.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/13268.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/13268.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/13268.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/13324.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/13324.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/13324.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/13324.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/13434.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/13434.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/13434.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/13434.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/13447.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/13447.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/13447.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/13447.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/13468.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/13468.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/13468.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/13468.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/13579.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/13579.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/13579.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/13579.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/13581.018dc26183efb561a8b1.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/13581.018dc26183efb561a8b1.chunk.js new file mode 100644 index 0000000000..cb81815e64 --- /dev/null +++ b/geonode_mapstore_client/static/mapstore/dist/js/13581.018dc26183efb561a8b1.chunk.js @@ -0,0 +1 @@ +(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[13581,45992,34344],{45992:(t,r,e)=>{"use strict";e.d(r,{h:()=>f,Z:()=>s});var n=e(535937),o=e.n(n),i=e(836882),u=e(737275);function a(t){return a="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},a(t)}function c(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function l(t){for(var r=1;r{"use strict";e.d(r,{XK:()=>i,Um:()=>u,ut:()=>a});var n=e(701469),o=e.n(n);function i(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/(\{(.*?)\})/g,(function(){var r=arguments[0],e=arguments[2]?arguments[2]:arguments[1];if(["x","y","z"].includes(e))return arguments[0];var n=t[e];if(void 0===n)throw new Error("No value provided for variable "+r);return"function"==typeof n&&(n=n(t)),n}))}function u(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.url||"",e=t.subdomains||"";return e&&("string"==typeof e&&(e=e.split("")),o()(e))?e.map((function(e){return i(r.replace("{s}",e),t)})):["a","b","c"].map((function(e){return i(r.replace("{s}",e),t)}))}var a=function(t){return(t.url.match(/(\{s\})/)?u(t):[i(t.url,t)])[0]}},423923:(t,r,e)=>{"use strict";e.d(r,{A4:()=>c,u3:()=>l});var n=e(623560),o=e.n(n);function i(t,r,e){var n=void 0!==e?t.toFixed(e):""+t,o=n.indexOf(".");return(o=-1===o?n.length:o)>r?n:new Array(1+r-o).join("0")+n}var u={standard:function(t){return function(r){return"EPSG:4326"===r?(e="x"===t?"EW":"NS",function(t){var r,n=(360*(r=(t+180)%360)<0?r+360:r)-180,o=Math.abs(3600*n),u=Math.floor(o/3600),a=Math.floor((o-3600*u)/60),c=o-3600*u-60*a;return(c=Math.ceil(c))>=60&&(c=0,a+=1),a>=60&&(a=0,u+=1),u+"° "+i(a,2)+"′ "+i(c,2,0)+"″"+(0===n?"":" "+e.charAt(n<0?1:0))}):function(t){return String(Math.round(t))};var e}}};function a(t,r,e){return o()(e)?e(t,r):u[e||"standard"](r)(t)}function c(t,r){return a(t,"x",r)}function l(t,r){return a(t,"y",r)}},984023:(t,r,e)=>{"use strict";e.d(r,{bL:()=>P,ZS:()=>M,uI:()=>_,XA:()=>G});var n=e(490173),o=e(986267),i=e(849232),u=e(423923),a=e(8400),c=e.n(a),l=e(875472),f=e.n(l),s=e(552259);function p(t){return p="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},p(t)}function y(t){return function(t){if(Array.isArray(t))return h(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||d(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function v(t){for(var r=1;rt.length)&&(r=t.length);for(var e=0,n=new Array(r);e1?(b=f,v=s):d>0&&(b+=p*d,v+=y*d)}return function(t,r,e,n){return Math.pow(e-t,2)+Math.pow(n-r,2)}(o,i,b,v)}var x=1e4;function w(t,r,e){var n=r(t);return{fraction:t,point:n,reprojected:e(n)}}function j(t,r,e,o){var i=(0,n.default)(r,e).forward,u=function(t,r,e){var n=t.map(r);return{fractions:t,line:n,reprojectedLine:n.map(e)}}([0,1],t,i),a=u.fractions,c=u.line,l=u.reprojectedLine,f=[];f=function(t,r){return t.push(r[0]),t.push(r[1]),t}(f,l[0]);for(var s=0;s0;){var p=a.shift(),y=a.shift(),b=c.shift(),v=c.shift(),m=l.shift(),d=l.shift(),h=w((p+y)/2,t,i),j=h.fraction,O=h.point,S=h.reprojected;g(S,m,d)c?r:t}),-1)}function L(t,r,e,n,o){return t.map((function(t,i){var u=function(t,r,e){var n=Math.max(r[1],t[1]),o=Math.min(r[3],t[t.length-1]),i=O(r[1]+Math.abs(r[1]-r[3])*e,n,o);return[t[0],i]}(t,r,n);return{geom:u,text:e(t[0],v(v({},o),{},{index:i,extent:r}))}}))}function E(t,r,e,n,o){return t.map((function(t,i){var u=function(t,r,e){var n=Math.max(r[0],t[0]),o=Math.min(r[2],t[t.length-2]);return[O(r[0]+Math.abs(r[0]-r[2])*e,n,o),t[1]]}(t,r,n);return{geom:u,text:e(t[1],v(v({},o),{},{index:i,extent:r}))}}))}function A(t,r,e,n){return y(Array(function(t,r,e){return Math.round((r-t)/e)+1}(e,n,Math.abs(r))-1).keys()).map((function(o){return O(t+(o+1)*r,e,n)}))}function F(t,r){return(0,i.Z)({type:"Feature",geometry:{type:"LineString",coordinates:[[t[0],t[1]],[t[2],t[3]]]}},(0,o.bboxToFeatureGeometry)(r))}function T(t,r){return t.slice(0,r)}function D(t){var r=m(t,4),e=r[0],n=r[1],o=r[2],i=r[3];return[[e,n],[o,n],[o,i],[e,i],[e,n]]}function _(t,r,e,i,u,a,c,l,s,p,b,v,d,h){var g=arguments.length>14&&void 0!==arguments[14]?arguments[14]:{};if(-1===t)return{xLines:[],yLines:[],xLabels:[],yLabels:[],frame:null};var x=m((0,(0,n.default)(r,e).forward)(a),2),w=x[0],S=x[1],P=m((0,o.reprojectBbox)([Math.max(i[0],u[0]),Math.max(i[1],u[1]),Math.min(i[2],u[2]),Math.min(i[3],u[3])],r,e||"EPSG:4326"),4),M=P[0],_=P[1],k=P[2],G=P[3],I=m((0,o.reprojectBbox)(u,r,e||"EPSG:4326"),4),C=I[0],R=I[1],Z=I[2],z=I[3],N=O(Math.floor(w/t)*t,C,Z),B=f()(A(N,-t,C,N)),U=f()(A(N,t,N,Z)),X=O(Math.floor(S/t)*t,R,z),H=f()(A(X,-t,R,X)),K=f()(A(X,t,X,z)),W=T([].concat(y(B),[N],y(U)).map((function(t){return function(t,r,e,n,o,i){return function(t,r,e,n,o,i){return j((function(n){return[t,r+(e-r)*n]}),n,o,i)}(t,r,e,o,i,n)}(t,_,G,c,e||"EPSG:4326",r)})).filter((function(t){return F(t,i)})),l),$=T([].concat(y(H),[X],y(K)).map((function(t){return function(t,r,e,n,o,i){return function(t,r,e,n,o,i){return j((function(n){return[r+(e-r)*n,t]}),n,o,i)}(t,r,e,o,i,n)}(t,M,k,c,e||"EPSG:4326",r)})).filter((function(t){return F(t,i)})),l),q=h?function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.1,e=m(t,4),n=e[0],o=e[1],i=e[2],u=e[3],a=Math.max(i-n,u-o)*r/2,c=[n+a,o+a,i-a,u-a];return{exterior:D([n-a,o-a,i+a,u+a]),interior:D(c)}}(i,h):null;return{xLines:W,yLines:$,xLabels:s?L(W,i,p,v,g):[],yLabels:s?E($,i,b,d,g):[],frame:q}}function k(t){return[(t[2]+t[0])/2,(t[3]+t[1])/2]}function G(t){var r=t.mapProjection,e=t.gridProjection,i=t.extent,a=t.center,l=void 0===a?null:a,f=t.zoom,p=t.withLabels,b=void 0!==p&&p,m=t.xLabelFormatter,d=t.yLabelFormatter,h=t.xLabelPosition,g=void 0===h?0:h,x=t.yLabelPosition,w=void 0===x?1:x,j=t.maxLines,O=void 0===j?100:j,S=t.intervals,L=t.targetSize,E=void 0===L?100:L,A=t.resolutions,F=t.xLabelStyle,T=t.yLabelStyle,D=t.pixelRatio,G=void 0===D?devicePixelRatio:D,I=t.frameSize,C=void 0===I?0:I,R=(null!=A?A:(0,s.getResolutions)(r))[f],Z=(0,n.default)(r,e).forward,z=(0,n.default)(e,r).forward,N=Z(k((0,o.getExtentForProjection)(e).extent)),B=M(null!=S?S:P(e),N,E,R,z),U=R*R/(4*G*G),X=_(B,r,e,i,(0,o.getExtentForProjection)(r).extent,null!=l?l:k(i),U,O,b,(0,u.A4)(e,m),(0,u.u3)(e,d),g,w,C,{center:l,resolution:R,interval:B}),H=[].concat(y(X.xLines),y(X.yLines)).map((function(t){return{type:"Feature",properties:{ms_style:"lines"},geometry:{type:"LineString",coordinates:c()(t,2)}}})),K=y(X.xLabels).map((function(t){return{type:"Feature",properties:{ms_style:F?v(v({},F),{},{label:t.text}):"xlabels",valueText:t.text},geometry:{type:"Point",coordinates:t.geom}}})),W=y(X.yLabels).map((function(t){return{type:"Feature",properties:{ms_style:T?v(v({},T),{},{label:t.text}):"ylabels",valueText:t.text},geometry:{type:"Point",coordinates:t.geom}}})),$=X.frame?[X.frame].map((function(t){return{type:"Feature",properties:{ms_style:"frame"},geometry:{type:"Polygon",coordinates:[t.exterior,t.interior]}}})):[];return{type:"FeatureCollection",features:[].concat(y(H),y($),y(K),y(W))}}}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/13581.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/13581.affd309bf2aa3f38d3a0.chunk.js deleted file mode 100644 index a91f3ddc40..0000000000 --- a/geonode_mapstore_client/static/mapstore/dist/js/13581.affd309bf2aa3f38d3a0.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[13581,45992,34344],{45992:(t,r,e)=>{"use strict";e.d(r,{h:()=>s,Z:()=>p});var n=e(535937),o=e.n(n),i=e(836882),u=e(737275);function a(t){return a="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},a(t)}function c(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function l(t){for(var r=1;r{"use strict";e.d(r,{XK:()=>i,Um:()=>u,ut:()=>a});var n=e(701469),o=e.n(n);function i(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/(\{(.*?)\})/g,(function(){var r=arguments[0],e=arguments[2]?arguments[2]:arguments[1];if(["x","y","z"].includes(e))return arguments[0];var n=t[e];if(void 0===n)throw new Error("No value provided for variable "+r);return"function"==typeof n&&(n=n(t)),n}))}function u(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.url||"",e=t.subdomains||"";return e&&("string"==typeof e&&(e=e.split("")),o()(e))?e.map((function(e){return i(r.replace("{s}",e),t)})):["a","b","c"].map((function(e){return i(r.replace("{s}",e),t)}))}var a=function(t){return(t.url.match(/(\{s\})/)?u(t):[i(t.url,t)])[0]}},423923:(t,r,e)=>{"use strict";e.d(r,{A4:()=>c,u3:()=>l});var n=e(623560),o=e.n(n);function i(t,r,e){var n=void 0!==e?t.toFixed(e):""+t,o=n.indexOf(".");return(o=-1===o?n.length:o)>r?n:new Array(1+r-o).join("0")+n}var u={standard:function(t){return function(r){return"EPSG:4326"===r?(e="x"===t?"EW":"NS",function(t){var r,n=(360*(r=(t+180)%360)<0?r+360:r)-180,o=Math.abs(3600*n),u=Math.floor(o/3600),a=Math.floor((o-3600*u)/60),c=o-3600*u-60*a;return(c=Math.ceil(c))>=60&&(c=0,a+=1),a>=60&&(a=0,u+=1),u+"° "+i(a,2)+"′ "+i(c,2,0)+"″"+(0===n?"":" "+e.charAt(n<0?1:0))}):function(t){return String(Math.round(t))};var e}}};function a(t,r,e){return o()(e)?e(t,r):u[e||"standard"](r)(t)}function c(t,r){return a(t,"x",r)}function l(t,r){return a(t,"y",r)}},984023:(t,r,e)=>{"use strict";e.d(r,{bL:()=>M,ZS:()=>L,uI:()=>k,XA:()=>I});var n=e(490173),o=e(986267),i=e(849232),u=e(423923),a=e(8400),c=e.n(a),l=e(875472),f=e.n(l),s=e(552259);function p(t){return p="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},p(t)}function y(t){return function(t){if(Array.isArray(t))return g(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||h(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function m(t){for(var r=1;rt.length)&&(r=t.length);for(var e=0,n=new Array(r);e1?(b=f,m=s):v>0&&(b+=p*v,m+=y*v)}return function(t,r,e,n){return Math.pow(e-t,2)+Math.pow(n-r,2)}(o,i,b,m)}var w=1e4;function j(t,r,e){var n=r(t);return{fraction:t,point:n,reprojected:e(n)}}function O(t,r,e,o){var i=(0,n.default)(r,e).forward,u=function(t,r,e){var n=t.map(r);return{fractions:t,line:n,reprojectedLine:n.map(e)}}([0,1],t,i),a=u.fractions,c=u.line,l=u.reprojectedLine,f=[];f=function(t,r){return t.push(r[0]),t.push(r[1]),t}(f,l[0]);for(var s=0;s0;){var p=a.shift(),y=a.shift(),b=c.shift(),m=c.shift(),v=l.shift(),d=l.shift(),h=j((p+y)/2,t,i),g=h.fraction,O=h.point,S=h.reprojected;x(S,v,d)c?r:t}),-1)}function E(t,r,e,n,o){return t.map((function(t,i){var u=function(t,r,e){var n=Math.max(r[1],t[1]),o=Math.min(r[3],t[t.length-1]),i=S(r[1]+Math.abs(r[1]-r[3])*e,n,o);return[t[0],i]}(t,r,n);return{geom:u,text:e(t[0],m(m({},o),{},{index:i,extent:r}))}}))}function A(t,r,e,n,o){return t.map((function(t,i){var u=function(t,r,e){var n=Math.max(r[0],t[0]),o=Math.min(r[2],t[t.length-2]);return[S(r[0]+Math.abs(r[0]-r[2])*e,n,o),t[1]]}(t,r,n);return{geom:u,text:e(t[1],m(m({},o),{},{index:i,extent:r}))}}))}function F(t,r,e,n){return y(Array(function(t,r,e){return Math.round((r-t)/e)+1}(e,n,Math.abs(r))-1).keys()).map((function(o){return S(t+(o+1)*r,e,n)}))}function T(t,r){return(0,i.Z)({type:"Feature",geometry:{type:"LineString",coordinates:[[t[0],t[1]],[t[2],t[3]]]}},(0,o.bboxToFeatureGeometry)(r))}function D(t,r){return t.slice(0,r)}function _(t){var r=d(t,4),e=r[0],n=r[1],o=r[2],i=r[3];return[[e,n],[o,n],[o,i],[e,i],[e,n]]}function k(t,r,e,i,u,a,c,l,s,p,b,m,v,h){var g=arguments.length>14&&void 0!==arguments[14]?arguments[14]:{};if(-1===t)return{xLines:[],yLines:[],xLabels:[],yLabels:[],frame:null};var x=d((0,(0,n.default)(r,e).forward)(a),2),w=x[0],j=x[1],P=d((0,o.reprojectBbox)([Math.max(i[0],u[0]),Math.max(i[1],u[1]),Math.min(i[2],u[2]),Math.min(i[3],u[3])],r,e||"EPSG:4326"),4),M=P[0],L=P[1],k=P[2],G=P[3],I=d((0,o.reprojectBbox)(u,r,e||"EPSG:4326"),4),C=I[0],R=I[1],Z=I[2],z=I[3],N=S(Math.floor(w/t)*t,C,Z),B=f()(F(N,-t,C,N)),U=f()(F(N,t,N,Z)),X=S(Math.floor(j/t)*t,R,z),H=f()(F(X,-t,R,X)),K=f()(F(X,t,X,z)),W=D([].concat(y(B),[N],y(U)).map((function(t){return function(t,r,e,n,o,i){return function(t,r,e,n,o,i){return O((function(n){return[t,r+(e-r)*n]}),n,o,i)}(t,r,e,o,i,n)}(t,L,G,c,e||"EPSG:4326",r)})).filter((function(t){return T(t,i)})),l),$=D([].concat(y(H),[X],y(K)).map((function(t){return function(t,r,e,n,o,i){return function(t,r,e,n,o,i){return O((function(n){return[r+(e-r)*n,t]}),n,o,i)}(t,r,e,o,i,n)}(t,M,k,c,e||"EPSG:4326",r)})).filter((function(t){return T(t,i)})),l),q=h?function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.1,e=d(t,4),n=e[0],o=e[1],i=e[2],u=e[3],a=Math.max(i-n,u-o)*r/2,c=[n+a,o+a,i-a,u-a];return{exterior:_([n-a,o-a,i+a,u+a]),interior:_(c)}}(i,h):null;return{xLines:W,yLines:$,xLabels:s?E(W,i,p,m,g):[],yLabels:s?A($,i,b,v,g):[],frame:q}}function G(t){return[(t[2]+t[0])/2,(t[3]+t[1])/2]}function I(t){var r=t.mapProjection,e=t.gridProjection,i=t.extent,a=t.center,l=void 0===a?null:a,f=t.zoom,p=t.withLabels,b=void 0!==p&&p,v=t.xLabelFormatter,d=t.yLabelFormatter,h=t.xLabelPosition,g=void 0===h?0:h,x=t.yLabelPosition,w=void 0===x?1:x,j=t.maxLines,O=void 0===j?100:j,S=t.intervals,P=t.targetSize,E=void 0===P?100:P,A=t.resolutions,F=t.xLabelStyle,T=t.yLabelStyle,D=t.pixelRatio,_=void 0===D?devicePixelRatio:D,I=t.frameSize,C=void 0===I?0:I,R=(null!=A?A:(0,s.getResolutions)(r))[f],Z=(0,n.default)(r,e).forward,z=(0,n.default)(e,r).forward,N=Z(G((0,o.getExtentForProjection)(e).extent)),B=L(null!=S?S:M(e),N,E,R,z),U=R*R/(4*_*_),X=k(B,r,e,i,(0,o.getExtentForProjection)(r).extent,null!=l?l:G(i),U,O,b,(0,u.A4)(e,v),(0,u.u3)(e,d),g,w,C,{center:l,resolution:R,interval:B}),H=[].concat(y(X.xLines),y(X.yLines)).map((function(t){return{type:"Feature",properties:{ms_style:"lines"},geometry:{type:"LineString",coordinates:c()(t,2)}}})),K=y(X.xLabels).map((function(t){return{type:"Feature",properties:{ms_style:F?m(m({},F),{},{label:t.text}):"xlabels",valueText:t.text},geometry:{type:"Point",coordinates:t.geom}}})),W=y(X.yLabels).map((function(t){return{type:"Feature",properties:{ms_style:T?m(m({},T),{},{label:t.text}):"ylabels",valueText:t.text},geometry:{type:"Point",coordinates:t.geom}}})),$=X.frame?[X.frame].map((function(t){return{type:"Feature",properties:{ms_style:"frame"},geometry:{type:"Polygon",coordinates:[t.exterior,t.interior]}}})):[];return{type:"FeatureCollection",features:[].concat(y(H),y($),y(K),y(W))}}}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/13880.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/13880.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/13880.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/13880.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/14086.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/14086.018dc26183efb561a8b1.chunk.js similarity index 99% rename from geonode_mapstore_client/static/mapstore/dist/js/14086.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/14086.018dc26183efb561a8b1.chunk.js index 07cb8bb2e9..052deaab5c 100644 --- a/geonode_mapstore_client/static/mapstore/dist/js/14086.affd309bf2aa3f38d3a0.chunk.js +++ b/geonode_mapstore_client/static/mapstore/dist/js/14086.018dc26183efb561a8b1.chunk.js @@ -1,2 +1,2 @@ -/*! For license information please see 14086.affd309bf2aa3f38d3a0.chunk.js.LICENSE.txt */ +/*! For license information please see 14086.018dc26183efb561a8b1.chunk.js.LICENSE.txt */ (self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[14086],{523928:(t,i,o)=>{"use strict";o.d(i,{Z:()=>s});var n=o(923645),e=o.n(n)()((function(t){return t[1]}));e.push([t.id,"/* Compatible with Leaflet 0.7 */\n.msgapi .leaflet-control-locate a {\n font-size: 1.4em;\n color: #444;\n cursor: pointer;\n}\n.msgapi .leaflet-control-locate.active a {\n color: #2074B6;\n}\n.msgapi .leaflet-control-locate.active.following a {\n color: #FC8428;\n}\n",""]);const s=e},932818:()=>{var t,i,o;t=L.Marker.prototype._initIcon,i=L.Marker.prototype._setPos,o="msTransform"===L.DomUtil.TRANSFORM,L.Marker.addInitHook((function(){var t=this.options.icon&&this.options.icon.options&&this.options.icon.options.iconAnchor;t&&(t=t[0]+"px "+t[1]+"px"),this.options.rotationOrigin=this.options.rotationOrigin||t||"center bottom",this.options.rotationAngle=this.options.rotationAngle||0,this.on("drag",(function(t){t.target._applyRotation()}))})),L.Marker.include({_initIcon:function(){t.call(this)},_setPos:function(t){i.call(this,t),this._applyRotation()},_applyRotation:function(){this.options.rotationAngle&&(this._icon.style[L.DomUtil.TRANSFORM+"Origin"]=this.options.rotationOrigin,o?this._icon.style[L.DomUtil.TRANSFORM]="rotate("+this.options.rotationAngle+"deg)":this._icon.style[L.DomUtil.TRANSFORM]+=" rotateZ("+this.options.rotationAngle+"deg)")},setRotationAngle:function(t){return this.options.rotationAngle=t,this.update(),this},setRotationOrigin:function(t){return this.options.rotationOrigin=t,this.update(),this}})},880687:(t,i,o)=>{var n,e,s;!function(a,r){e=[o(845243)],void 0===(s="function"==typeof(n=a)?n.apply(i,e):n)||(t.exports=s),void 0!==r&&r.L&&(r.L.Control.Locate=a(L))}((function(t){var i=function(i,o,n){(n=n.split(" ")).forEach((function(n){t.DomUtil[i].call(this,o,n)}))},o=function(t,o){i("addClass",t,o)},n=function(t,o){i("removeClass",t,o)},e=t.Control.extend({options:{position:"topleft",layer:void 0,setView:"untilPan",keepCurrentZoomLevel:!1,flyTo:!1,clickBehavior:{inView:"stop",outOfView:"setView"},returnToPrevBounds:!1,cacheLocation:!0,drawCircle:!0,drawMarker:!0,markerClass:t.CircleMarker,circleStyle:{color:"#136AEC",fillColor:"#136AEC",fillOpacity:.15,weight:2,opacity:.5},markerStyle:{color:"#136AEC",fillColor:"#2A93EE",fillOpacity:.7,weight:2,opacity:.9,radius:5},followCircleStyle:{},followMarkerStyle:{},icon:"fa fa-map-marker",iconLoading:"fa fa-spinner fa-spin",iconElementTag:"span",circlePadding:[0,0],metric:!0,createButtonCallback:function(i,o){var n=t.DomUtil.create("a","leaflet-bar-part leaflet-bar-part-single",i);return n.title=o.strings.title,{link:n,icon:t.DomUtil.create(o.iconElementTag,o.icon,n)}},onLocationError:function(t,i){alert(t.message)},onLocationOutsideMapBounds:function(t){t.stop(),alert(t.options.strings.outsideMapBoundsMsg)},showPopup:!0,strings:{title:"Show me where I am",metersUnit:"meters",feetUnit:"feet",popup:"You are within {distance} {unit} from this point",outsideMapBoundsMsg:"You seem located outside the boundaries of the map"},locateOptions:{maxZoom:1/0,watch:!0,setView:!1}},initialize:function(i){for(var o in i)"object"==typeof this.options[o]?t.extend(this.options[o],i[o]):this.options[o]=i[o];this.options.followMarkerStyle=t.extend({},this.options.markerStyle,this.options.followMarkerStyle),this.options.followCircleStyle=t.extend({},this.options.circleStyle,this.options.followCircleStyle)},onAdd:function(i){var o=t.DomUtil.create("div","leaflet-control-locate leaflet-bar leaflet-control");this._layer=this.options.layer||new t.LayerGroup,this._layer.addTo(i),this._event=void 0,this._prevBounds=null;var n=this.options.createButtonCallback(o,this.options);return this._link=n.link,this._icon=n.icon,t.DomEvent.on(this._link,"click",t.DomEvent.stopPropagation).on(this._link,"click",t.DomEvent.preventDefault).on(this._link,"click",this._onClick,this).on(this._link,"dblclick",t.DomEvent.stopPropagation),this._resetVariables(),this._map.on("unload",this._unload,this),o},_onClick:function(){if(this._justClicked=!0,this._userPanned=!1,this._active&&!this._event)this.stop();else if(this._active&&void 0!==this._event)switch(this._map.getBounds().contains(this._event.latlng)?this.options.clickBehavior.inView:this.options.clickBehavior.outOfView){case"setView":this.setView();break;case"stop":this.stop(),this.options.returnToPrevBounds&&(this.options.flyTo?this._map.flyToBounds:this._map.fitBounds).bind(this._map)(this._prevBounds)}else this.options.returnToPrevBounds&&(this._prevBounds=this._map.getBounds()),this.start();this._updateContainerStyle()},start:function(){this._activate(),this._event&&(this._drawMarker(this._map),this.options.setView&&this.setView()),this._updateContainerStyle()},stop:function(){this._deactivate(),this._cleanClasses(),this._resetVariables(),this._removeMarker()},_activate:function(){this._active||(this._map.locate(this.options.locateOptions),this._active=!0,this._map.on("locationfound",this._onLocationFound,this),this._map.on("locationerror",this._onLocationError,this),this._map.on("dragstart",this._onDrag,this))},_deactivate:function(){this._map.stopLocate(),this._active=!1,this.options.cacheLocation||(this._event=void 0),this._map.off("locationfound",this._onLocationFound,this),this._map.off("locationerror",this._onLocationError,this),this._map.off("dragstart",this._onDrag,this)},setView:function(){this._drawMarker(),this._isOutsideMapBounds()?(this._event=void 0,this.options.onLocationOutsideMapBounds(this)):this.options.keepCurrentZoomLevel?(this.options.flyTo?this._map.flyTo:this._map.panTo).bind(this._map)([this._event.latitude,this._event.longitude]):(this.options.flyTo?this._map.flyToBounds:this._map.fitBounds).bind(this._map)(this._event.bounds,{padding:this.options.circlePadding,maxZoom:this.options.locateOptions.maxZoom})},_drawMarker:function(){void 0===this._event.accuracy&&(this._event.accuracy=0);var i,o,n=this._event.accuracy,e=this._event.latlng;if(this.options.drawCircle){var s=this._isFollowing()?this.options.followCircleStyle:this.options.circleStyle;this._circle?this._circle.setLatLng(e).setRadius(n).setStyle(s):this._circle=t.circle(e,n,s).addTo(this._layer)}if(this.options.metric?(i=n.toFixed(0),o=this.options.strings.metersUnit):(i=(3.2808399*n).toFixed(0),o=this.options.strings.feetUnit),this.options.drawMarker){var a=this._isFollowing()?this.options.followMarkerStyle:this.options.markerStyle;this._marker?(this._marker.setLatLng(e),this._marker.setStyle&&this._marker.setStyle(a)):this._marker=new this.options.markerClass(e,a).addTo(this._layer)}var r=this.options.strings.popup;this.options.showPopup&&r&&this._marker&&this._marker.bindPopup(t.Util.template(r,{distance:i,unit:o}))._popup.setLatLng(e)},_removeMarker:function(){this._layer.clearLayers(),this._marker=void 0,this._circle=void 0},_unload:function(){this.stop(),this._map.off("unload",this._unload,this)},_onLocationError:function(t){3==t.code&&this.options.locateOptions.watch||(this.stop(),this.options.onLocationError(t,this))},_onLocationFound:function(t){if((!this._event||this._event.latlng.lat!==t.latlng.lat||this._event.latlng.lng!==t.latlng.lng||this._event.accuracy!==t.accuracy)&&this._active){switch(this._event=t,this._drawMarker(),this._updateContainerStyle(),this.options.setView){case"once":this._justClicked&&this.setView();break;case"untilPan":this._userPanned||this.setView();break;case"always":this.setView()}this._justClicked=!1}},_onDrag:function(){this._event&&(this._userPanned=!0,this._updateContainerStyle(),this._drawMarker())},_isFollowing:function(){return!!this._active&&("always"===this.options.setView||("untilPan"===this.options.setView?!this._userPanned:void 0))},_isOutsideMapBounds:function(){return void 0!==this._event&&this._map.options.maxBounds&&!this._map.options.maxBounds.contains(this._event.latlng)},_updateContainerStyle:function(){this._container&&(this._active&&!this._event?this._setClasses("requesting"):this._isFollowing()?this._setClasses("following"):this._active?this._setClasses("active"):this._cleanClasses())},_setClasses:function(t){"requesting"==t?(n(this._container,"active following"),o(this._container,"requesting"),n(this._icon,this.options.icon),o(this._icon,this.options.iconLoading)):"active"==t?(n(this._container,"requesting following"),o(this._container,"active"),n(this._icon,this.options.iconLoading),o(this._icon,this.options.icon)):"following"==t&&(n(this._container,"requesting"),o(this._container,"active following"),n(this._icon,this.options.iconLoading),o(this._icon,this.options.icon))},_cleanClasses:function(){t.DomUtil.removeClass(this._container,"requesting"),t.DomUtil.removeClass(this._container,"active"),t.DomUtil.removeClass(this._container,"following"),n(this._icon,this.options.iconLoading),o(this._icon,this.options.icon)},_resetVariables:function(){this._active=!1,this._justClicked=!1,this._userPanned=!1}});return t.control.locate=function(i){return new t.Control.Locate(i)},e}),window)},23279:(t,i,o)=>{var n=o(513218),e=o(707771),s=o(14841),a=Math.max,r=Math.min;t.exports=function(t,i,o){var l,c,h,p,u,_,d=0,f=!1,v=!1,m=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function g(i){var o=l,n=c;return l=c=void 0,d=i,p=t.apply(n,o)}function w(t){var o=t-_;return void 0===_||o>=i||o<0||v&&t-d>=h}function y(){var t=e();if(w(t))return k(t);u=setTimeout(y,function(t){var o=i-(t-_);return v?r(o,h-(t-d)):o}(t))}function k(t){return u=void 0,m&&l?g(t):(l=c=void 0,p)}function C(){var t=e(),o=w(t);if(l=arguments,c=this,_=t,o){if(void 0===u)return function(t){return d=t,u=setTimeout(y,i),f?g(t):p}(_);if(v)return clearTimeout(u),u=setTimeout(y,i),g(_)}return void 0===u&&(u=setTimeout(y,i)),p}return i=s(i)||0,n(o)&&(f=!!o.leading,h=(v="maxWait"in o)?a(s(o.maxWait)||0,i):h,m="trailing"in o?!!o.trailing:m),C.cancel=function(){void 0!==u&&clearTimeout(u),d=0,l=_=c=u=void 0},C.flush=function(){return void 0===u?p:k(e())},C}},707771:(t,i,o)=>{var n=o(555639);t.exports=function(){return n.Date.now()}},823493:(t,i,o)=>{var n=o(23279),e=o(513218);t.exports=function(t,i,o){var s=!0,a=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return e(o)&&(s="leading"in o?!!o.leading:s,a="trailing"in o?!!o.trailing:a),n(t,i,{leading:s,maxWait:i,trailing:a})}},642122:(t,i,o)=>{"use strict";var n=o(893379),e=o.n(n),s=o(523928);e()(s.Z,{insert:"head",singleton:!1}),s.Z.locals}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/14086.affd309bf2aa3f38d3a0.chunk.js.LICENSE.txt b/geonode_mapstore_client/static/mapstore/dist/js/14086.018dc26183efb561a8b1.chunk.js.LICENSE.txt similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/14086.affd309bf2aa3f38d3a0.chunk.js.LICENSE.txt rename to geonode_mapstore_client/static/mapstore/dist/js/14086.018dc26183efb561a8b1.chunk.js.LICENSE.txt diff --git a/geonode_mapstore_client/static/mapstore/dist/js/14147.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/14147.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/14147.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/14147.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/14195.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/14195.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/14195.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/14195.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/14312.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/14312.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/14312.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/14312.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/14327.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/14327.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/14327.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/14327.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/14361.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/14361.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/14361.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/14361.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/14381.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/14381.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/14381.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/14381.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/14502.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/14502.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/14502.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/14502.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/14742.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/14742.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/14742.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/14742.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/14763.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/14763.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/14763.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/14763.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/14801.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/14801.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/14801.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/14801.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/15007.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/15007.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/15007.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/15007.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/15049.018dc26183efb561a8b1.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/15049.018dc26183efb561a8b1.chunk.js new file mode 100644 index 0000000000..07faaec010 --- /dev/null +++ b/geonode_mapstore_client/static/mapstore/dist/js/15049.018dc26183efb561a8b1.chunk.js @@ -0,0 +1 @@ +(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[15049],{282385:(e,t,n)=>{"use strict";n.d(t,{nr:()=>r,B8:()=>o,LE:()=>i,$Z:()=>a,Cp:()=>l});var r="MAP_EDITOR:SHOW",o="MAP_EDITOR:HIDE",i="MAP_EDITOR:SAVE",a=function(e,t){return{type:r,owner:e,map:t}},l=function(e){return{type:o,owner:e}}},93848:(e,t,n)=>{"use strict";n.d(t,{Ai:()=>a,AQ:()=>l,Gl:()=>c,wd:()=>u,V9:()=>s,ih:()=>d,B8:()=>m,ww:()=>f,HP:()=>p,ri:()=>y,gd:()=>v,nr:()=>E,ty:()=>b,GZ:()=>g,O6:()=>O,Vt:()=>I,Ug:()=>h,Wp:()=>D,Ke:()=>S,Cp:()=>T,pW:()=>w,Gr:()=>A,gG:()=>P,oo:()=>_,Gh:()=>j,$G:()=>M,I5:()=>C,d8:()=>R,y5:()=>N,Az:()=>k,$Z:()=>z,Ql:()=>G,Ul:()=>x,TU:()=>Z,E0:()=>L,Yt:()=>V,Tk:()=>W});var r=n(513218),o=n.n(r),i=n(727693),a="MEDIA_EDITOR:ADDING_MEDIA",l="MEDIA_EDITOR:CHOOSE_MEDIA",c="MEDIA_EDITOR:EDITING_MEDIA",u="GEOSTORY:EDIT_MEDIA",s="MEDIA_EDITOR:LOAD_MEDIA",d="MEDIA_EDITOR:LOAD_MEDIA_SUCCESS",m="MEDIA_EDITOR:HIDE",f="MEDIA_EDITOR:SAVE_MEDIA",p="MEDIA_EDITOR:SET_MEDIA_TYPE",y="MEDIA_EDITOR:SET_MEDIA_SERVICE",v="MEDIA_EDITOR:SELECT_ITEM",E="MEDIA_EDITOR:SHOW",b="MEDIA_EDITOR:UPDATE_ITEM",g="MEDIA_EDITOR:IMPORT_IN_LOCAL",O="MEDIA_EDITOR:REMOVE_MEDIA",I="MEDIA_EDITOR:LOADING_SELECTED_MEDIA",h="MEDIA_EDITOR:LOADING_MEDIA_LIST",D="MEDIA_EDITOR:MEDIA_TYPE_DISABLE",S=function(e){return{type:l,resource:e}},T=function(){return{type:m}},w=function(e,t,n){return{type:s,params:e,mediaType:t,sourceId:n}},A=function(e){var t=e.mediaType,n=e.sourceId,r=e.params,o=e.resultData;return{type:d,mediaType:t,sourceId:n,params:r,resultData:o}},P=function(e){var t=e.type,n=e.source,r=e.data;return{type:f,mediaType:t,source:n,data:r}},_=function(e){return{type:"MEDIA_EDITOR:SAVE_MEDIA_SUCCESS",mediaType:e.mediaType,source:e.source,data:e.data,id:e.id}},j=function(e){return{type:v,id:e}},M=function(e){return{type:b,item:e,mode:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"merge"}},C=function(e){return{type:a,adding:e}},R=function(e){return{type:y,id:o()(e)?e.value:e}},N=function(e){return{type:p,mediaType:e}},k=function(e){return{type:c,editing:e}},z=function(e,t){return{type:E,owner:e,settings:t}},G=function(e,t){var n=e.path,r=e.owner;return{type:u,path:n,owner:void 0===r?"geostory":r,sectionType:t}},x=function(e){var t=e.resource,n=e.sourceType,r=void 0===n?i.r.GEOSTORY:n,o=e.owner;return{type:g,resource:t,sourceType:r,owner:void 0===o?"geostory":o}},Z=function(e){return{type:O,mediaType:e,owner:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"geostory"}},L=function(e){return{type:I,loading:e}},V=function(){return{type:h}},W=function(){return{type:D,mediaTypes:arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]}}},452826:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});var r=n(124852),o=n.n(r),i=n(218291),a=n(532425),l=n(580628),c=n(480681),u=n(192579),s=n(805346);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n100?100:L[1]/4,mixBlendMode:"difference",color:"#ffffff"}}),o().createElement("h3",null,o().createElement(s.Z,{msgId:"geostory.errors.loading.video"}))," "),(!(R||j)&&!T||j&&G)&&o().createElement(c.Glyphicon,{glyph:"play",style:{fontSize:L[1]/4>100?100:L[1]/4,mixBlendMode:"difference",color:"#ffffff"}}))),!W&&!G&&o().createElement("div",{className:"ms-video-mask-cover",style:{position:"absolute",width:L[0],height:L[1]}}))}));const b=function(e){var t=e.id,n=e.src,i=e.resolution,a=void 0===i?16/9:i,l=e.autoplay,c=e.inView,s=e.description,d=e.showCaption,m=e.caption,f=void 0===m?s:m,y=e.thumbnail,v=e.credits,b=e.controls,g=void 0===b||b,O=e.fit,I=e.loop,h=e.muted,D=e.onPlay,S=void 0===D?function(){}:D,T=e.mode,w=e.containerInView,A=(void 0===w||w)&&c,P=p((0,r.useState)(!1),2),_=P[0],j=P[1],M=function(e){j(e),S(e)};return(0,r.useEffect)((function(){T===u.nl.EDIT&&M(!1)}),[T]),(0,r.useEffect)((function(){T===u.nl.VIEW&&A&&(l||"cover"===O)&&M(!0)}),[A,l,O,T]),(0,r.useEffect)((function(){T===u.nl.VIEW&&!A&&_&&M(!1)}),[A,_,T]),o().createElement("div",{id:t,key:"".concat(t,"-").concat(O,"-").concat(T),className:"ms-media ms-media-video"},o().createElement(E,{src:n,play:_&&T===u.nl.VIEW,resolution:a,thumbnail:y,controls:g&&T===u.nl.VIEW,onPlay:M,fit:O,loop:I,muted:h}),v&&o().createElement("div",{className:"ms-media-credits"},o().createElement("small",null,v)),d&&f&&o().createElement("div",{className:"ms-media-caption"},o().createElement("small",null,f)))}},507848:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(171703),o=n(22222),i=n(93152);const a=(0,r.connect)((0,o.P1)(i.$v,(function(e){return{mapType:e}})))},819983:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(124852),o=n.n(r),i=n(675263),a=n.n(i),l=n(552259);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t{"use strict";n.d(t,{Z:()=>i});var r=n(461365),o=n(356936);const i=(0,r.Z)(o.h_)},694745:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var r=n(124852),o=n.n(r),i=n(294184),a=n.n(i),l=n(480681),c=n(807472),u=n(80717),s=n(867076),d=n(819081),m=n.n(d),f=n(975480),p={xs:" ms-xs",sm:" ms-sm",md:"",lg:" ms-lg"},y={className:{vertical:" ms-fullscreen-v",horizontal:" ms-fullscreen-h",full:" ms-fullscreen"},glyph:{expanded:{vertical:"resize-vertical",horizontal:"resize-horizontal",full:"resize-small"},collapsed:{vertical:"resize-vertical",horizontal:"resize-horizontal",full:"resize-full"}}};const v=(0,s.withState)("fullscreenState","onFullscreen",(function(e){var t=e.initialFullscreenState;return void 0===t?"collapsed":t}))((function(e){var t=e.show,n=void 0!==t&&t,r=e.loading,i=e.loadingText,s=e.onClose,d=void 0===s?function(){}:s,v=e.title,E=void 0===v?"":v,b=e.clickOutEnabled,g=void 0===b||b,O=e.showClose,I=void 0===O||O,h=e.disabledClose,D=void 0!==h&&h,S=e.showFullscreen,T=void 0!==S&&S,w=e.fullscreenType,A=void 0===w?"full":w,P=e.buttons,_=void 0===P?[]:P,j=e.size,M=void 0===j?"":j,C=e.bodyClassName,R=void 0===C?"":C,N=e.children,k=e.draggable,z=void 0!==k&&k,G=e.fullscreenState,x=e.onFullscreen,Z=e.fade,L=void 0!==Z&&Z,V=e.fitContent,W=e.modalClassName,U=void 0===W?"":W,F=e.dialogClassName,H=void 0===F?"":F,B=e.enableFooter,Y=void 0===B||B,Q=p[M]||"",$=T&&"expanded"===G&&y.className[A]||"",q=n?o().createElement("div",{className:"modal-fixed ".concat(U," ")+(z?"ms-draggable":"")},o().createElement(c.Z,{id:"ms-resizable-modal",style:{display:"flex"},onClickOut:g?d:function(){},containerClassName:"ms-resizable-modal",draggable:z,modal:!0,className:a()("modal-dialog modal-content",Q,$,H,{"ms-fit-content":V})},o().createElement("span",{role:"header"},o().createElement("h4",{className:"modal-title"},o().createElement("div",{className:"ms-title"},E),T&&y.className[A]&&o().createElement(l.Glyphicon,{className:"ms-header-btn",onClick:function(){return x("expanded"===G?"collapsed":"expanded")},glyph:y.glyph[G][A]}),I&&d&&o().createElement(l.Glyphicon,{glyph:"1-close",className:"ms-header-btn",onClick:d,disabled:D}))),o().createElement("div",{role:"body",className:R},N),Y&&o().createElement("div",{style:{display:"flex"},role:"footer"},o().createElement("div",{className:"ms-resizable-modal-loading-spinner-container"},r?o().createElement(f.Z,null):null),o().createElement("div",{className:"ms-resizable-modal-loading-text"},r?i:null),o().createElement(u.Z,{buttons:_})))):null;return L?o().createElement(m(),{transitionName:"ms-resizable-modal-fade",transitionEnterTimeout:300,transitionLeaveTimeout:300},q):q}))},107501:(e,t,n)=>{"use strict";n.d(t,{hp:()=>m,cM:()=>f,Qi:()=>p,TU:()=>y,IQ:()=>v,hb:()=>E,HL:()=>b,dq:()=>g,Iy:()=>O,Qd:()=>I,ER:()=>h,Gi:()=>D,mA:()=>S,jR:()=>T,mD:()=>w,XG:()=>A,B6:()=>P,f5:()=>_,gW:()=>j});var r=n(227361),o=n.n(r),i=n(313311),a=n.n(i),l=n(22222),c=n(624262);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=a()(e,{id:t});return n&&"map"===n.type&&n.data.layers?d(d({},n),{},{data:d(d({},n.data),{},{layers:n.data.layers.map((function(e){if(e.tileMatrixSet&&n.data.sources){var t=(0,c.gv)(n.data.sources,e);return d(d({},e),t)}return e}))})}):n})),_=function(e){return o()(e,"mediaEditor.disabledMediaType",[])},j=function(e){return _(e).length&&!P(e)&&"map"===E(e)||w(e)}},727693:(e,t,n)=>{"use strict";n.d(t,{r:()=>r,D:()=>o});var r={GEOSTORY:"geostory",GEOSTORE:"geostore"},o={type:"osm",title:"Open Street Map",name:"mapnik",source:"osm",group:"background",visibility:!0,id:"mapnik__0",loading:!1,loadingError:!1}}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/15049.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/15049.affd309bf2aa3f38d3a0.chunk.js deleted file mode 100644 index c75b3b9e9e..0000000000 --- a/geonode_mapstore_client/static/mapstore/dist/js/15049.affd309bf2aa3f38d3a0.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[15049],{282385:(e,t,n)=>{"use strict";n.d(t,{nr:()=>r,B8:()=>o,LE:()=>i,$Z:()=>a,Cp:()=>l});var r="MAP_EDITOR:SHOW",o="MAP_EDITOR:HIDE",i="MAP_EDITOR:SAVE",a=function(e,t){return{type:r,owner:e,map:t}},l=function(e){return{type:o,owner:e}}},93848:(e,t,n)=>{"use strict";n.d(t,{Ai:()=>a,AQ:()=>l,Gl:()=>c,wd:()=>u,V9:()=>s,ih:()=>d,B8:()=>m,ww:()=>f,HP:()=>p,ri:()=>y,gd:()=>v,nr:()=>E,ty:()=>b,GZ:()=>g,O6:()=>O,Vt:()=>I,Ug:()=>h,Wp:()=>D,Ke:()=>S,Cp:()=>T,pW:()=>w,Gr:()=>A,gG:()=>P,oo:()=>_,Gh:()=>j,$G:()=>M,I5:()=>C,d8:()=>R,y5:()=>N,Az:()=>k,$Z:()=>z,Ql:()=>G,Ul:()=>x,TU:()=>Z,E0:()=>L,Yt:()=>V,Tk:()=>W});var r=n(513218),o=n.n(r),i=n(727693),a="MEDIA_EDITOR:ADDING_MEDIA",l="MEDIA_EDITOR:CHOOSE_MEDIA",c="MEDIA_EDITOR:EDITING_MEDIA",u="GEOSTORY:EDIT_MEDIA",s="MEDIA_EDITOR:LOAD_MEDIA",d="MEDIA_EDITOR:LOAD_MEDIA_SUCCESS",m="MEDIA_EDITOR:HIDE",f="MEDIA_EDITOR:SAVE_MEDIA",p="MEDIA_EDITOR:SET_MEDIA_TYPE",y="MEDIA_EDITOR:SET_MEDIA_SERVICE",v="MEDIA_EDITOR:SELECT_ITEM",E="MEDIA_EDITOR:SHOW",b="MEDIA_EDITOR:UPDATE_ITEM",g="MEDIA_EDITOR:IMPORT_IN_LOCAL",O="MEDIA_EDITOR:REMOVE_MEDIA",I="MEDIA_EDITOR:LOADING_SELECTED_MEDIA",h="MEDIA_EDITOR:LOADING_MEDIA_LIST",D="MEDIA_EDITOR:MEDIA_TYPE_DISABLE",S=function(e){return{type:l,resource:e}},T=function(){return{type:m}},w=function(e,t,n){return{type:s,params:e,mediaType:t,sourceId:n}},A=function(e){var t=e.mediaType,n=e.sourceId,r=e.params,o=e.resultData;return{type:d,mediaType:t,sourceId:n,params:r,resultData:o}},P=function(e){var t=e.type,n=e.source,r=e.data;return{type:f,mediaType:t,source:n,data:r}},_=function(e){return{type:"MEDIA_EDITOR:SAVE_MEDIA_SUCCESS",mediaType:e.mediaType,source:e.source,data:e.data,id:e.id}},j=function(e){return{type:v,id:e}},M=function(e){return{type:b,item:e,mode:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"merge"}},C=function(e){return{type:a,adding:e}},R=function(e){return{type:y,id:o()(e)?e.value:e}},N=function(e){return{type:p,mediaType:e}},k=function(e){return{type:c,editing:e}},z=function(e,t){return{type:E,owner:e,settings:t}},G=function(e,t){var n=e.path,r=e.owner;return{type:u,path:n,owner:void 0===r?"geostory":r,sectionType:t}},x=function(e){var t=e.resource,n=e.sourceType,r=void 0===n?i.r.GEOSTORY:n,o=e.owner;return{type:g,resource:t,sourceType:r,owner:void 0===o?"geostory":o}},Z=function(e){return{type:O,mediaType:e,owner:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"geostory"}},L=function(e){return{type:I,loading:e}},V=function(){return{type:h}},W=function(){return{type:D,mediaTypes:arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]}}},452826:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r=n(124852),o=n.n(r),i=n(218291),a=n(532425),l=n(580628),c=n(480681),u=n(192579),s=n(805346);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n100?100:L[1]/4,mixBlendMode:"difference",color:"#ffffff"}}),o().createElement("h3",null,o().createElement(s.Z,{msgId:"geostory.errors.loading.video"}))," "),(!(R||j)&&!T||j&&G)&&o().createElement(c.Glyphicon,{glyph:"play",style:{fontSize:L[1]/4>100?100:L[1]/4,mixBlendMode:"difference",color:"#ffffff"}}))),!W&&!G&&o().createElement("div",{className:"ms-video-mask-cover",style:{position:"absolute",width:L[0],height:L[1]}}))}));const g=function(e){var t=e.id,n=e.src,i=e.resolution,a=void 0===i?16/9:i,l=e.autoplay,c=e.inView,s=e.description,d=e.showCaption,m=e.caption,f=void 0===m?s:m,p=e.thumbnail,v=e.credits,E=e.controls,g=void 0===E||E,O=e.fit,I=e.loop,h=e.muted,D=e.onPlay,S=void 0===D?function(){}:D,T=e.mode,w=e.containerInView,A=(void 0===w||w)&&c,P=y((0,r.useState)(!1),2),_=P[0],j=P[1],M=function(e){j(e),S(e)};return(0,r.useEffect)((function(){T===u.nl.EDIT&&M(!1)}),[T]),(0,r.useEffect)((function(){T===u.nl.VIEW&&A&&(l||"cover"===O)&&M(!0)}),[A,l,O,T]),(0,r.useEffect)((function(){T===u.nl.VIEW&&!A&&_&&M(!1)}),[A,_,T]),o().createElement("div",{id:t,key:"".concat(t,"-").concat(O,"-").concat(T),className:"ms-media ms-media-video"},o().createElement(b,{src:n,play:_&&T===u.nl.VIEW,resolution:a,thumbnail:p,controls:g&&T===u.nl.VIEW,onPlay:M,fit:O,loop:I,muted:h}),v&&o().createElement("div",{className:"ms-media-credits"},o().createElement("small",null,v)),d&&f&&o().createElement("div",{className:"ms-media-caption"},o().createElement("small",null,f)))}},507848:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(171703),o=n(22222),i=n(93152);const a=(0,r.connect)((0,o.P1)(i.$v,(function(e){return{mapType:e}})))},819983:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(124852),o=n.n(r),i=n(675263),a=n.n(i),l=n(552259);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t{"use strict";n.d(t,{Z:()=>i});var r=n(461365),o=n(356936);const i=(0,r.Z)(o.h_)},694745:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var r=n(124852),o=n.n(r),i=n(294184),a=n.n(i),l=n(480681),c=n(807472),u=n(80717),s=n(867076),d=n(819081),m=n.n(d),f=n(975480),p={xs:" ms-xs",sm:" ms-sm",md:"",lg:" ms-lg"},y={className:{vertical:" ms-fullscreen-v",horizontal:" ms-fullscreen-h",full:" ms-fullscreen"},glyph:{expanded:{vertical:"resize-vertical",horizontal:"resize-horizontal",full:"resize-small"},collapsed:{vertical:"resize-vertical",horizontal:"resize-horizontal",full:"resize-full"}}};const v=(0,s.withState)("fullscreenState","onFullscreen",(function(e){var t=e.initialFullscreenState;return void 0===t?"collapsed":t}))((function(e){var t=e.show,n=void 0!==t&&t,r=e.loading,i=e.loadingText,s=e.onClose,d=void 0===s?function(){}:s,v=e.title,E=void 0===v?"":v,b=e.clickOutEnabled,g=void 0===b||b,O=e.showClose,I=void 0===O||O,h=e.disabledClose,D=void 0!==h&&h,S=e.showFullscreen,T=void 0!==S&&S,w=e.fullscreenType,A=void 0===w?"full":w,P=e.buttons,_=void 0===P?[]:P,j=e.size,M=void 0===j?"":j,C=e.bodyClassName,R=void 0===C?"":C,N=e.children,k=e.draggable,z=void 0!==k&&k,G=e.fullscreenState,x=e.onFullscreen,Z=e.fade,L=void 0!==Z&&Z,V=e.fitContent,W=e.modalClassName,U=void 0===W?"":W,F=e.dialogClassName,H=void 0===F?"":F,B=e.enableFooter,Y=void 0===B||B,Q=p[M]||"",$=T&&"expanded"===G&&y.className[A]||"",q=n?o().createElement("div",{className:"modal-fixed ".concat(U," ")+(z?"ms-draggable":"")},o().createElement(c.Z,{id:"ms-resizable-modal",style:{display:"flex"},onClickOut:g?d:function(){},containerClassName:"ms-resizable-modal",draggable:z,modal:!0,className:a()("modal-dialog modal-content",Q,$,H,{"ms-fit-content":V})},o().createElement("span",{role:"header"},o().createElement("h4",{className:"modal-title"},o().createElement("div",{className:"ms-title"},E),T&&y.className[A]&&o().createElement(l.Glyphicon,{className:"ms-header-btn",onClick:function(){return x("expanded"===G?"collapsed":"expanded")},glyph:y.glyph[G][A]}),I&&d&&o().createElement(l.Glyphicon,{glyph:"1-close",className:"ms-header-btn",onClick:d,disabled:D}))),o().createElement("div",{role:"body",className:R},N),Y&&o().createElement("div",{style:{display:"flex"},role:"footer"},o().createElement("div",{className:"ms-resizable-modal-loading-spinner-container"},r?o().createElement(f.Z,null):null),o().createElement("div",{className:"ms-resizable-modal-loading-text"},r?i:null),o().createElement(u.Z,{buttons:_})))):null;return L?o().createElement(m(),{transitionName:"ms-resizable-modal-fade",transitionEnterTimeout:300,transitionLeaveTimeout:300},q):q}))},107501:(e,t,n)=>{"use strict";n.d(t,{hp:()=>f,cM:()=>p,Qi:()=>y,TU:()=>v,IQ:()=>E,hb:()=>b,HL:()=>g,dq:()=>O,Iy:()=>I,Qd:()=>h,ER:()=>D,Gi:()=>S,mA:()=>T,jR:()=>w,mD:()=>A,XG:()=>P,B6:()=>_,f5:()=>j,gW:()=>M});var r=n(227361),o=n.n(r),i=n(313311),a=n.n(i),l=n(22222),c=n(624262);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=a()(e,{id:t});return n&&"map"===n.type&&n.data.layers?d(d({},n),{},{data:d(d({},n.data),{},{layers:n.data.layers.map((function(e){if(e.tileMatrixSet&&n.data.sources){var t=(0,c.gv)(n.data.sources,e);return d(d({},e),t)}return e}))})}):n})),j=function(e){return o()(e,"mediaEditor.disabledMediaType",[])},M=function(e){return j(e).length&&!_(e)&&"map"===b(e)||A(e)}},727693:(e,t,n)=>{"use strict";n.d(t,{r:()=>r,D:()=>o});var r={GEOSTORY:"geostory",GEOSTORE:"geostore"},o={type:"osm",title:"Open Street Map",name:"mapnik",source:"osm",group:"background",visibility:!0,id:"mapnik__0",loading:!1,loadingError:!1}}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/15199.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/15199.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/15199.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/15199.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/15245.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/15245.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/15245.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/15245.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/15504.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/15504.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/15504.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/15504.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/15574.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/15574.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/15574.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/15574.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/1567.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/1567.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/1567.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/1567.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/15910.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/15910.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/15910.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/15910.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/16095.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/16095.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/16095.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/16095.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/16144.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/16144.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/16144.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/16144.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/16231.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/16231.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/16231.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/16231.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/16262.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/16262.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/16262.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/16262.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/16272.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/16272.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/16272.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/16272.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/16290.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/16290.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/16290.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/16290.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/1630.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/1630.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/1630.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/1630.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/16375.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/16375.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/16375.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/16375.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/16410.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/16410.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/16410.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/16410.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/16425.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/16425.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/16425.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/16425.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/1649.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/1649.018dc26183efb561a8b1.chunk.js similarity index 77% rename from geonode_mapstore_client/static/mapstore/dist/js/1649.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/1649.018dc26183efb561a8b1.chunk.js index 2a54f8eec5..85189d8fe6 100644 --- a/geonode_mapstore_client/static/mapstore/dist/js/1649.affd309bf2aa3f38d3a0.chunk.js +++ b/geonode_mapstore_client/static/mapstore/dist/js/1649.018dc26183efb561a8b1.chunk.js @@ -1 +1 @@ -(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[1649],{73443:(e,t,r)=>{"use strict";r.d(t,{rs:()=>n,AY:()=>o,SW:()=>i,yB:()=>a,oG:()=>u,oz:()=>s,id:()=>l,gc:()=>c,cE:()=>d,rG:()=>p,Vj:()=>f,nY:()=>v});var n="GEONODE:SAVING_RESOURCE",o="GEONODE:SAVE_SUCCESS",i="GEONODE:SAVE_ERROR",a="GEONODE:CLEAR_SAVE",u="GEONODE:SAVE_CONTENT",s="GEONODE:SAVE_DIRECT_CONTENT";function l(){return{type:n}}function c(e){return{type:o,success:e}}function d(e){return{type:i,error:e}}function p(){return{type:a}}function f(e,t,r,n){return{type:u,id:e,metadata:t,reload:r,showNotifications:n}}function v(){return{type:s}}},138334:(e,t,r)=>{"use strict";r.d(t,{oc:()=>n,v:()=>o,jo:()=>i,tv:()=>a,iF:()=>u,iC:()=>s});var n="GEONODE:START_ASYNC_PROCESS",o="GEONODE:STOP_ASYNC_PROCESS",i="GEONODE:UPDATE_ASYNC_PROCESS";function a(e){return{type:n,payload:e}}function u(e){return{type:i,payload:e}}function s(e){return{type:o,payload:e}}},18576:(e,t,r)=>{"use strict";r.d(t,{ZP:()=>R});var n,o=r(375875),i=r.n(o),a=r(49977),u=r(800827),s=r(274621),l=r(197395),c=r(73443),d=r(643892),p=r(337326),f=r(55035),v=r(455877),b=r.n(v),m=r(76907),y=r(489514),O=r(138334),g=r(535721),S=r(12530),h=r(782904);function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function w(e){return function(e){if(Array.isArray(e))return C(e)}(e)||j(e)||P(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e,t){if(e){if("string"==typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(e,t):void 0}}function j(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0)||{title:"gnviewer.warningGeoLimitsSaveTitle",message:"gnviewer.warningGeoLimitsSaveMessage"}),(0,d.F4)())]))})).catch((function(e){var t;return a.Observable.of((0,c.cE)(e.data||e.message),(0,l.vU)({title:"map.mapError.errorTitle",message:(null==e||null===(t=e.data)||void 0===t?void 0:t.detail)||(null==e?void 0:e.message)||"map.mapError.errorDefault"}))})).startWith((0,c.id)())}))},gnSetMapThumbnail:function(e,t){return e.ofType(d.Js).switchMap((function(e){var r,n,o,i,u=t.getState(),s=(null===(r=u.gnresource)||void 0===r||null===(n=r.data)||void 0===n?void 0:n.resource_type)||"map",f=null==u||null===(o=u.gnresource)||void 0===o?void 0:o.id,v=(null===(i=u.gnresource)||void 0===i?void 0:i.data)||{},b={srid:e.bbox.crs,bbox:[Object.values(e.bbox.bounds)[2],Object.values(e.bbox.bounds)[0],Object.values(e.bbox.bounds)[3],Object.values(e.bbox.bounds)[1]]};return a.Observable.defer((function(){return(0,p.CB)(f,b,s)})).switchMap((function(e){var t=Math.random();return a.Observable.of.apply(a.Observable,[(0,d.QN)(D(D({},v),{},{thumbnail_url:"".concat(e.thumbnail_url,"?").concat(t)})),(0,d.qs)(!1),(0,d.id)(D(D({},v),{},{thumbnail_url:"".concat(e.thumbnail_url,"?").concat(t)})),(0,c.rG)()].concat([(0,l.Vp)({title:"gnviewer.thumbnailsaved",message:"gnviewer.thumbnailsaved"})]))})).catch((function(e){return a.Observable.of((0,c.cE)(e.data),(0,l.vU)({title:"gnviewer.thumbnailnotsaved",message:"gnviewer.thumbnailnotsaved"}))}))}))},gnWatchStopPermissionsProcess:function(e,t){return e.ofType(O.v).filter((function(e){var t;return(null==e||null===(t=e.payload)||void 0===t?void 0:t.processType)===S.zj.PERMISSIONS_RESOURCE})).switchMap((function(e){var r,n,o,i,u,s=t.getState();if((0,m.fg)(s)!==(null==e||null===(r=e.payload)||void 0===r||null===(n=r.resource)||void 0===n?void 0:n.pk))return a.Observable.empty();if((null==e||null===(o=e.payload)||void 0===o?void 0:o.error)||(null==e||null===(i=e.payload)||void 0===i||null===(u=i.output)||void 0===u?void 0:u.status)===S.N5.FAILED)return a.Observable.of((0,l.vU)({title:"gnviewer.errorCompactPermissionsTitle",message:"gnviewer.errorCompactPermissionsMessage"}));var c=(0,m.iV)(s);return a.Observable.of((0,d.X7)(c))}))},gnWatchStopCopyProcessOnSave:function(e,t){return e.ofType(O.v).filter((function(e){var t;return(null==e||null===(t=e.payload)||void 0===t?void 0:t.processType)===S.zj.COPY_RESOURCE})).switchMap((function(e){var r,n,o,i,u,s,l,c,v,b,y,O=t.getState(),g=(0,m.fg)(O),h=null==O||null===(r=O.router)||void 0===r||null===(n=r.location)||void 0===n?void 0:n.pathname;if(g!==(null==e||null===(o=e.payload)||void 0===o||null===(i=o.resource)||void 0===i?void 0:i.pk)||h.includes("/detail/"))return a.Observable.empty();if((null==e||null===(u=e.payload)||void 0===u?void 0:u.error)||(null==e||null===(s=e.payload)||void 0===s||null===(l=s.output)||void 0===l?void 0:l.status)===S.N5.FAILED)return a.Observable.empty();var E=null==e||null===(c=e.payload)||void 0===c||null===(v=c.output)||void 0===v||null===(b=v.output_params)||void 0===b||null===(y=b.output)||void 0===y?void 0:y.uuid;return void 0===E?a.Observable.empty():a.Observable.defer((function(){return(0,p.LS)(E)})).switchMap((function(e){return window.location.href=(0,f.zL)(null==e?void 0:e.detail_url),a.Observable.empty()})).startWith((0,d.lf)(!0))}))}}},572036:(e,t,r)=>{"use strict";r.d(t,{Z:()=>g});var n=r(618446),o=r.n(n),i=r(441609),a=r.n(i),u=r(643892),s=r(535721),l=["data"],c=["features"],d=["features"],p=["features"];function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function v(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:O,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case u.$X:return O;case u.ql:return m(m({},e),{},{configError:void 0,loadingResourceConfig:t.loading});case u.nS:return m(m({},e),{},{loading:!1,configError:t.message});case u.W:return m(m({},e),{},{loading:!0});case u.Zf:var r,n,i=t.data||{},f=(i.data,m({},v(i,l))),b=null===(r=e.data)||void 0===r?void 0:r.linkedResources;return a()(b)||f.pk!==(null===(n=e.data)||void 0===n?void 0:n.pk)||(f.linkedResources=b),m(m({},e),{},{error:null,initialResource:m({},t.data),data:f,loading:!1,isNew:!1});case u.Eu:return m(m({},e),{},{initialResource:null,data:null,error:t.error,loading:!1});case u.Vy:return m(m({},e),{},{data:m(m({},e.data),t.properties)});case u.YB:return m(m({},e),{},{type:t.resourceType});case u.xm:return m(m({},O),{},{isNew:!0});case u._f:return m(m({},e),{},{id:t.id});case u.ek:return m(m({},e),{},{permissions:t.permissions});case u.cd:return m(m({},e),{},{data:m(m({},null==e?void 0:e.data),{},{title:null==t?void 0:t.title,name:null==t?void 0:t.title})});case u.pt:return m(m({},e),{},{data:m(m({},null==e?void 0:e.data),{},{abstract:null==t?void 0:t.abstract})});case u.ww:return m(m({},e),{},{data:m(m({},null==e?void 0:e.data),{},{thumbnail_url:null==t?void 0:t.thumbnailUrl,thumbnailChanged:null==t?void 0:t.thumbnailChanged})});case u._Z:return m(m({},e),{},{data:m(m({},null==e?void 0:e.data),{},{updatingThumbnail:!0})});case u.dh:return m(m({},e),{},{showMapThumbnail:t.enabled});case u.p2:return m(m({},e),{},{selectedLayerPermissions:t.permissions});case u.ih:return m(m({},e),{},{initialCompactPermissions:t.compactPermissions,compactPermissions:t.compactPermissions,isCompactPermissionsChanged:!1,geoLimits:[]});case u.J5:return m(m({},e),{},{compactPermissions:t.compactPermissions,isCompactPermissionsChanged:!o()((0,s.go)(e.initialCompactPermissions),(0,s.go)(t.compactPermissions)),geoLimits:(0,s.vB)(t.compactPermissions)});case u.uA:if(e.compactPermissions){var y=e.compactPermissions,g=y.users,S=y.organizations,h=y.groups;return m(m({},e),{},{compactPermissions:{users:g.map((function(e){return e.features,v(e,c)})),organizations:S.map((function(e){return e.features,v(e,d)})),groups:h.map((function(e){return e.features,v(e,p)}))},geoLimits:[]})}return e;default:return e}}}}]); \ No newline at end of file +(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[1649],{73443:(e,t,r)=>{"use strict";r.d(t,{rs:()=>n,AY:()=>o,SW:()=>i,yB:()=>a,oG:()=>u,oz:()=>s,id:()=>l,gc:()=>c,cE:()=>d,rG:()=>p,Vj:()=>f,nY:()=>v});var n="GEONODE:SAVING_RESOURCE",o="GEONODE:SAVE_SUCCESS",i="GEONODE:SAVE_ERROR",a="GEONODE:CLEAR_SAVE",u="GEONODE:SAVE_CONTENT",s="GEONODE:SAVE_DIRECT_CONTENT";function l(){return{type:n}}function c(e){return{type:o,success:e}}function d(e){return{type:i,error:e}}function p(){return{type:a}}function f(e,t,r,n){return{type:u,id:e,metadata:t,reload:r,showNotifications:n}}function v(){return{type:s}}},138334:(e,t,r)=>{"use strict";r.d(t,{oc:()=>n,v:()=>o,jo:()=>i,tv:()=>a,iF:()=>u,iC:()=>s});var n="GEONODE:START_ASYNC_PROCESS",o="GEONODE:STOP_ASYNC_PROCESS",i="GEONODE:UPDATE_ASYNC_PROCESS";function a(e){return{type:n,payload:e}}function u(e){return{type:i,payload:e}}function s(e){return{type:o,payload:e}}},18576:(e,t,r)=>{"use strict";r.d(t,{ZP:()=>R});var n,o=r(375875),i=r.n(o),a=r(49977),u=r(800827),s=r(274621),l=r(197395),c=r(73443),d=r(643892),p=r(337326),f=r(55035),v=r(455877),b=r.n(v),m=r(76907),y=r(489514),O=r(138334),g=r(535721),S=r(12530),h=r(782904);function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function w(e){return function(e){if(Array.isArray(e))return C(e)}(e)||j(e)||P(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e,t){if(e){if("string"==typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(e,t):void 0}}function j(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0)||{title:"gnviewer.warningGeoLimitsSaveTitle",message:"gnviewer.warningGeoLimitsSaveMessage"}),(0,d.F4)())]))})).catch((function(e){var t;return a.Observable.of((0,c.cE)(e.data||e.message),(0,l.vU)({title:"map.mapError.errorTitle",message:(null==e||null===(t=e.data)||void 0===t?void 0:t.detail)||(null==e?void 0:e.message)||"map.mapError.errorDefault"}))})).startWith((0,c.id)())}))},gnSetMapThumbnail:function(e,t){return e.ofType(d.Js).switchMap((function(e){var r,n,o,i,u=t.getState(),s=(null===(r=u.gnresource)||void 0===r||null===(n=r.data)||void 0===n?void 0:n.resource_type)||"map",f=null==u||null===(o=u.gnresource)||void 0===o?void 0:o.id,v=(null===(i=u.gnresource)||void 0===i?void 0:i.data)||{},b={srid:e.bbox.crs,bbox:[Object.values(e.bbox.bounds)[2],Object.values(e.bbox.bounds)[0],Object.values(e.bbox.bounds)[3],Object.values(e.bbox.bounds)[1]]};return a.Observable.defer((function(){return(0,p.CB)(f,b,s)})).switchMap((function(e){var t=Math.random();return a.Observable.of.apply(a.Observable,[(0,d.QN)(D(D({},v),{},{thumbnail_url:"".concat(e.thumbnail_url,"?").concat(t)})),(0,d.qs)(!1),(0,d.id)(D(D({},v),{},{thumbnail_url:"".concat(e.thumbnail_url,"?").concat(t)})),(0,c.rG)()].concat([(0,l.Vp)({title:"gnviewer.thumbnailsaved",message:"gnviewer.thumbnailsaved"})]))})).catch((function(e){return a.Observable.of((0,c.cE)(e.data),(0,l.vU)({title:"gnviewer.thumbnailnotsaved",message:"gnviewer.thumbnailnotsaved"}))}))}))},gnWatchStopPermissionsProcess:function(e,t){return e.ofType(O.v).filter((function(e){var t;return(null==e||null===(t=e.payload)||void 0===t?void 0:t.processType)===S.zj.PERMISSIONS_RESOURCE})).switchMap((function(e){var r,n,o,i,u,s=t.getState();if((0,m.fg)(s)!==(null==e||null===(r=e.payload)||void 0===r||null===(n=r.resource)||void 0===n?void 0:n.pk))return a.Observable.empty();if((null==e||null===(o=e.payload)||void 0===o?void 0:o.error)||(null==e||null===(i=e.payload)||void 0===i||null===(u=i.output)||void 0===u?void 0:u.status)===S.N5.FAILED)return a.Observable.of((0,l.vU)({title:"gnviewer.errorCompactPermissionsTitle",message:"gnviewer.errorCompactPermissionsMessage"}));var c=(0,m.iV)(s);return a.Observable.of((0,d.X7)(c))}))},gnWatchStopCopyProcessOnSave:function(e,t){return e.ofType(O.v).filter((function(e){var t;return(null==e||null===(t=e.payload)||void 0===t?void 0:t.processType)===S.zj.COPY_RESOURCE})).switchMap((function(e){var r,n,o,i,u,s,l,c,v,b,y,O=t.getState(),g=(0,m.fg)(O),h=null==O||null===(r=O.router)||void 0===r||null===(n=r.location)||void 0===n?void 0:n.pathname;if(g!==(null==e||null===(o=e.payload)||void 0===o||null===(i=o.resource)||void 0===i?void 0:i.pk)||h.includes("/detail/"))return a.Observable.empty();if((null==e||null===(u=e.payload)||void 0===u?void 0:u.error)||(null==e||null===(s=e.payload)||void 0===s||null===(l=s.output)||void 0===l?void 0:l.status)===S.N5.FAILED)return a.Observable.empty();var E=null==e||null===(c=e.payload)||void 0===c||null===(v=c.output)||void 0===v||null===(b=v.output_params)||void 0===b||null===(y=b.output)||void 0===y?void 0:y.uuid;return void 0===E?a.Observable.empty():a.Observable.defer((function(){return(0,p.LS)(E)})).switchMap((function(e){return window.location.href=(0,f.zL)(null==e?void 0:e.detail_url),a.Observable.empty()})).startWith((0,d.lf)(!0))}))}}},572036:(e,t,r)=>{"use strict";r.d(t,{Z:()=>O});var n=r(618446),o=r.n(n),i=r(441609),a=r.n(i),u=r(643892),s=r(535721),l=["data"],c=["features"],d=["features"],p=["features"];function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function v(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:y,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case u.$X:return y;case u.ql:return m(m({},e),{},{configError:void 0,loadingResourceConfig:t.loading});case u.nS:return m(m({},e),{},{loading:!1,configError:t.message});case u.W:return m(m({},e),{},{loading:!0});case u.Zf:var r,n,i=t.data||{},f=(i.data,m({},v(i,l))),b=null===(r=e.data)||void 0===r?void 0:r.linkedResources;return a()(b)||f.pk!==(null===(n=e.data)||void 0===n?void 0:n.pk)||(f.linkedResources=b),m(m({},e),{},{error:null,initialResource:m({},t.data),data:f,loading:!1,isNew:!1});case u.Eu:return m(m({},e),{},{initialResource:null,data:null,error:t.error,loading:!1});case u.Vy:return m(m({},e),{},{data:m(m({},e.data),t.properties)});case u.YB:return m(m({},e),{},{type:t.resourceType});case u.xm:return m(m({},y),{},{isNew:!0});case u._f:return m(m({},e),{},{id:t.id});case u.ek:return m(m({},e),{},{permissions:t.permissions});case u.cd:return m(m({},e),{},{data:m(m({},null==e?void 0:e.data),{},{title:null==t?void 0:t.title,name:null==t?void 0:t.title})});case u.pt:return m(m({},e),{},{data:m(m({},null==e?void 0:e.data),{},{abstract:null==t?void 0:t.abstract})});case u.ww:return m(m({},e),{},{data:m(m({},null==e?void 0:e.data),{},{thumbnail_url:null==t?void 0:t.thumbnailUrl,thumbnailChanged:null==t?void 0:t.thumbnailChanged})});case u._Z:return m(m({},e),{},{data:m(m({},null==e?void 0:e.data),{},{updatingThumbnail:!0})});case u.dh:return m(m({},e),{},{showMapThumbnail:t.enabled});case u.p2:return m(m({},e),{},{selectedLayerPermissions:t.permissions});case u.ih:return m(m({},e),{},{initialCompactPermissions:t.compactPermissions,compactPermissions:t.compactPermissions,isCompactPermissionsChanged:!1,geoLimits:[]});case u.J5:return m(m({},e),{},{compactPermissions:t.compactPermissions,isCompactPermissionsChanged:!o()((0,s.go)(e.initialCompactPermissions),(0,s.go)(t.compactPermissions)),geoLimits:(0,s.vB)(t.compactPermissions)});case u.uA:if(e.compactPermissions){var O=e.compactPermissions,g=O.users,S=O.organizations,h=O.groups;return m(m({},e),{},{compactPermissions:{users:g.map((function(e){return e.features,v(e,c)})),organizations:S.map((function(e){return e.features,v(e,d)})),groups:h.map((function(e){return e.features,v(e,p)}))},geoLimits:[]})}return e;default:return e}}}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/16684.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/16684.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/16684.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/16684.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/16841.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/16841.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/16841.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/16841.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/17009.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/17009.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/17009.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/17009.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/1706.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/1706.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/1706.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/1706.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/17208.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/17208.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/17208.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/17208.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/1757.018dc26183efb561a8b1.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/1757.018dc26183efb561a8b1.chunk.js new file mode 100644 index 0000000000..072119181f --- /dev/null +++ b/geonode_mapstore_client/static/mapstore/dist/js/1757.018dc26183efb561a8b1.chunk.js @@ -0,0 +1 @@ +(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[1757],{557579:(t,e,n)=>{"use strict";n.d(e,{Jm:()=>c,AE:()=>a,dm:()=>f,n8:()=>l,BV:()=>d,Cz:()=>s,wb:()=>p,$A:()=>y,eb:()=>v,v8:()=>b,yY:()=>g,J5:()=>m,ff:()=>E,S0:()=>h,Q6:()=>w,kb:()=>O,GV:()=>S,LH:()=>D,lG:()=>T,Km:()=>I,pV:()=>j,V5:()=>P,IT:()=>G,VR:()=>A,jv:()=>W,oU:()=>_,h9:()=>N,jB:()=>R,Ym:()=>C,uU:()=>M,ke:()=>L,nw:()=>k,A4:()=>U,C2:()=>x,Qe:()=>V,sZ:()=>Y,Ij:()=>F,Ko:()=>z,E9:()=>H,K4:()=>$,c_:()=>B,uT:()=>J,bS:()=>X,Rz:()=>Z,t4:()=>K,_k:()=>q,w2:()=>Q,YA:()=>tt,sD:()=>et,Gn:()=>nt,Rb:()=>rt,fy:()=>ot,kr:()=>it,f:()=>ut,Ff:()=>ct,Pt:()=>at,ep:()=>ft});var r=n(423570),o=n.n(r);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var c="WIDGETS:INSERT",a="WIDGETS:NEW",f="WIDGETS:EDIT",l="WIDGETS:EDIT_NEW",d="WIDGETS:EDITOR_CHANGE",s="WIDGETS:EDITOR_SETTING_CHANGE",p="WIDGETS:UPDATE",y="WIDGETS:UPDATE_PROPERTY",v="WIDGETS:UPDATE_LAYER",b="WIDGETS:CHANGE_LAYOUT",g="WIDGETS:DELETE",m="WIDGETS:REPLACE",E="WIDGETS:CLEAR_WIDGETS",h="WIDGETS:ADD_DEPENDENCY",w="WIDGETS:REMOVE_DEPENDENCY",O="WIDGETS:LOAD_DEPENDENCIES",S="WIDGETS:RESET_DEPENDENCIES",D="WIDGETS:TOGGLE_CONNECTION",T="WIDGETS:OPEN_FILTER_EDITOR",I="WIDGETS:EXPORT_CSV",j="WIDGETS:EXPORT_IMAGE",P="WIDGETS:WIDGET_SELECTED",G="WIDGETS:NEW_CHART",A="floating",W="dependencySelector",_=/^widgets\["?([^"\]]*)"?\]\.?(.*)$/,N=/^maps\["?([^"\]]*)"?\]\.?(.*)$/,R=/^widgets\["?([^"\]]*)"?\]\.maps\["?([^"\]]*)"?\]\.?(.*)$/,C="WIDGET:TOGGLE_COLLAPSE",M="WIDGET:TOGGLE_COLLAPSE_ALL",L="WIDGET:TOGGLE_MAXIMIZE",k="WIDGET:TOGGLE_TRAY",U=function(t){return{type:a,widget:t}},x=function(){return{type:G}},V=function(t){return{type:c,target:arguments.length>1&&void 0!==arguments[1]?arguments[1]:A,id:o()(),widget:t}},Y=function(t){return{type:m,target:arguments.length>1&&void 0!==arguments[1]?arguments[1]:A,widgets:t}},F=function(t,e,n){return{type:y,id:t,target:arguments.length>4&&void 0!==arguments[4]?arguments[4]:A,key:e,value:n,mode:arguments.length>3&&void 0!==arguments[3]?arguments[3]:"replace"}},z=function(t){return{type:v,layer:t}},H=function(t){return{type:g,target:arguments.length>1&&void 0!==arguments[1]?arguments[1]:A,widget:t}},$=function(){return{type:E}},B=function(t,e){return{type:b,allLayouts:e,layout:t,target:arguments.length>2&&void 0!==arguments[2]?arguments[2]:A}},J=function(t){return{type:f,widget:t}},X=function(t,e){return{type:l,widget:t,settings:e}},Z=function(t,e){return{type:d,key:t,value:e}},K=function(t,e){return{type:s,key:t,value:e}},q=function(t){return{type:O,dependencies:t}},Q=function(t,e,n,r){return{type:D,active:t,availableDependencies:e,options:n,target:r}},tt=function(t){return K("step",t)},et=function(t){var e=t.data,n=void 0===e?[]:e,r=t.title;return{type:I,data:n,title:void 0===r?"export":r}},nt=function(t,e){return{type:P,widget:t,opts:e}},rt=function(t){var e=t.widgetDivId;return{type:j,widgetDivId:e}},ot=function(){return{type:T}},it=function(t,e){return n=function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:A}},ct=function(){return{type:M,target:arguments.length>0&&void 0!==arguments[0]?arguments[0]:A}},at=function(t){return{type:L,widget:t,target:arguments.length>1&&void 0!==arguments[1]?arguments[1]:A}},ft=function(t){return{type:k,value:t}}},367306:(t,e,n)=>{"use strict";n.d(e,{Wy:()=>i,i$:()=>u,P0:()=>c,NB:()=>a,MZ:()=>f,J:()=>l,DZ:()=>d,hS:()=>s,CN:()=>p,fd:()=>y,Yl:()=>v,Ip:()=>b});var r=n(22222),o=n(324684),i=function(t){return t&&t.dashboard&&t.dashboard.editor&&t.dashboard.editor.available},u=function(t){return t&&t.dashboard&&t.dashboard.editing},c=function(t){return t&&t.dashboard&&t.dashboard.showConnections},a=function(t){return t&&t.dashboard&&t.dashboard.resource},f=function(t){return t&&t.dashboard&&t.dashboard.loading},l=function(t){return t&&t.browser&&t.browser.mobile},d=(0,r.P1)(o.F,a,l,(function(t,e,n){return n?!n:e&&e.canEdit||isNaN(t.substr(-4))})),s=function(t){var e;return null==t||null===(e=t.dashboard)||void 0===e?void 0:e.originalData},p=function(t){return t&&t.dashboard&&t.dashboard.services},y=function(t){return t&&t.dashboard&&t.dashboard.selectedService},v=function(t){return t&&t.dashboard&&t.dashboard.mode||"view"},b=function(t){var e;return(null===(e=t.dashboard)||void 0===e?void 0:e.isNew)||!1}},324684:(t,e,n)=>{"use strict";n.d(e,{F:()=>i,y:()=>u});var r=n(227361),o=n.n(r),i=function(t){return o()(t,"router.location.pathname")||"/"},u=function(t){return o()(t,"router.location.search")||""}},401757:(t,e,n)=>{"use strict";n.d(e,{E2:()=>S,YI:()=>I,GW:()=>j,zm:()=>P,lF:()=>G,Jb:()=>A,E5:()=>W,YR:()=>_,jx:()=>C,zA:()=>M,r0:()=>L,xI:()=>k,ie:()=>U,p:()=>x,yZ:()=>V,hF:()=>Y,Xu:()=>F,HU:()=>z,nA:()=>H,JT:()=>$,Wo:()=>B,um:()=>J,h9:()=>X,md:()=>Z}),n(313311);var r=n(227361),o=n.n(r),i=n(984596),u=n.n(i),c=n(701469),a=n.n(c),f=n(385564),l=n.n(f),d=n(800827),s=n(675110),p=n(324684),y=n(557579),v=n(246781),b=n(367306),g=n(22222),m=n(784715);function E(t){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},E(t)}function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function w(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{}).layer||!(arguments.length>2?arguments[2]:void 0)&&(arguments.length>1?arguments[1]:void 0)})),P=function(t){return o()(t,"widgets.containers[".concat(y.VR,"].widgets"))},G=function(t){return o()(t,"widgets.containers[".concat(y.VR,"].collapsed"))},A=function(t){return o()(t,"widgets.containers[".concat(y.VR,"].maximized"))},W=(0,g.P1)(P,G,A,(function(t,e,n){if(t){if(null!=n&&n.widget)return t.filter((function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id===n.widget.id}));if(e)return t.filter((function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id;return!e[t]}))}return t})),_=(0,g.P1)(G,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(t)})),N=function(t){return(P(t)||[]).filter((function(){return"map"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).widgetType}))},R=function(t){return(P(t)||[]).filter((function(){return"table"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).widgetType}))},C=(0,g.P1)(N,R,d.Od,p.F,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0;return{availableDependencies:l()(t.map((function(t){var e=t.id,n=t.maps;return(void 0===n?[]:n).map((function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mapId;return"widgets[".concat(e,"].maps[").concat(t,"].map")}))}))).concat(u()(n).map((function(){return"map"}))).concat(u()(e).filter((function(){return-1===r.indexOf("viewer")})).map((function(t){var e=t.id;return"widgets[".concat(e,"]")})))}})),M=(0,g.P1)(N,R,d.Od,p.F,I,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,i=o&&"map"!==o.widgetType?o&&o.layer||{}:o&&o.map&&o.map.layers||[];return{availableDependencies:l()(t.map((function(t){var e=t.id,n=t.maps;return(void 0===n?[]:n).map((function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mapId;return"widgets[".concat(e,"].maps[").concat(t,"].map")}))}))).concat(u()(n).map((function(){return n?"map":null}))).filter((function(t){return t})).concat(u()(e).filter((function(){return-1===r.indexOf("viewer")})).filter((function(t){return a()(i)||i.name===t.layer.name})).filter((function(t){return o&&o.id!==t.id})).map((function(t){var e=t.id;return"widgets[".concat(e,"]")})))}})),L=function(t){return o()(S(t),"".concat(y.jv))},k=function(t){return o()(L(t),"active")},U=(0,g.P1)(P,(function(t){return(0,v.Ug)(t)})),x=function(t){return o()(t,"widgets.containers[".concat(y.VR,"].layouts"))},V=function(t){return o()(t,"widgets.containers[".concat(y.VR,"].layout"))},Y=function(t){return o()(t,"widgets.containers[".concat(y.VR,"].widgets"))},F=function(t){return o()(t,"widgets.tray")},z=function(t){return(Y(t)||[]).length>0},H=function(t){return o()(t,"widgets.containers[".concat(y.VR,"].layouts"))},$=function(t){return o()(I(t),"layer")},B=function(t){return o()(t,"widgets.builder.editor.returnToFeatureGrid",!1)},J=function(t){return o()(I(t),"filter")},X=(0,m.y)(D,T,(function(t){return T(t).map((function(e){return 0===e.indexOf("map.")?o()((0,d.Od)(t),e.slice(4)):e.match(y.oU)?(0,v.D6)(e,P(t),N(t)):o()(t,e)}))}),(function(t,e,n){return e.reduce((function(e,r,o){return w(w({},e),{},O({},Object.keys(t)[o],n[o]))}),{})})),Z=(0,g.zB)({widgets:P,layouts:x,catalogs:b.CN})},246781:(t,e,n)=>{"use strict";n.d(e,{sq:()=>M,Mt:()=>C,D6:()=>N,Ug:()=>R,IO:()=>L});var r=n(227361),o=n.n(r),i=n(313311),u=n.n(i),c=(n(281763),n(59854),n(630998)),a=n.n(c),f=n(264721),l=n.n(f),d=n(441609),s=n.n(d),p=n(150361),y=n.n(p),v=n(957557),b=n.n(v),g=n(984596),m=n.n(g),E=n(557579),h=function(t,e,n){var r,o,i=[],u=[],c=t;for(i.push(c);i.length>0;)if(!n[c=i.shift()])for(n[c]=!0,u.push(c),r=0;rt.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:[];return t.reduce((function(e,n){var r=o()(n,"mapSync")&&o()(n,"dependenciesMap")||{},i=Object.keys(r).map((function(e){return _(r[e],t)}))||[];return[].concat(P(e),P(i.filter((function(t){return void 0!==t})).map((function(t){return[n.id,t.id]}))))}),[])}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[])),e=(0,w.qH)(190,340,t.length+1,{base:10,range:360,s:.67,v:.67});return t.map((function(t,n){return{color:e[n],widgets:t}}))},C=function(){return[{value:"Count",label:"widgets.operations.COUNT"},{value:"Sum",label:"widgets.operations.SUM"},{value:"Average",label:"widgets.operations.AVG"},{value:"StdDev",label:"widgets.operations.STDDEV"},{value:"Min",label:"widgets.operations.MIN"},{value:"Max",label:"widgets.operations.MAX"}]},M=function(t){var e=["layers","viewport","zoom","center"],n=y()(t),r=n.widgets||{},o=[];return I(I({},n),{},{widgets:r.map((function(t){var n=I({},t);if("map"===t.widgetType&&t.map){var r=S()();n=b()(I(I({},t),{},{selectedMapId:r,maps:m()(I(I({},t.map),{},{mapId:r}))}),"map"),o.push({widgetId:n.id,mapId:r})}if(!s()(n.dependenciesMap)){var i=Object.values(n.dependenciesMap)[0],c=G(E.oU.exec(i)||[],2)[1],a=u()(o,{widgetId:c})||{},f=a.widgetId,d=a.mapId;if(f)return I(I({},n),{},{dependenciesMap:Object.keys(n.dependenciesMap).filter((function(t){return void 0!==n.dependenciesMap[t]})).reduce((function(t,r){return l()(e,r)?I(I({},t),{},j({},r,n.dependenciesMap[r].replace(".map.",".maps[".concat(d,"].")))):I(I({},t),{},j({},r,n.dependenciesMap[r]))}),{})})}return n}))})},L=function(){var t=arguments.length>1?arguments[1]:void 0,e=arguments.length>2?arguments[2]:void 0,n=P(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]);return n.filter((function(t){return t.dependenciesMap})).some((function(e){return Object.values(e.dependenciesMap).some((function(e){return(E.oU.exec(e)||[])[1]===t}))}))&&(n=n.map((function(n){var r=n.dependenciesMap,o=!s()(r)&&(E.oU.exec(Object.values(r)[0])||[])[1];return I(I({},n),!s()(r)&&o===t&&{dependenciesMap:Object.keys(r).reduce((function(t,n){var o=G(E.jB.exec(r[n])||[],3)[2];return I(I({},t),{},j({},n,o?r[n].replace(o,e):r[n]))}),{})})}))),n}}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/1757.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/1757.affd309bf2aa3f38d3a0.chunk.js deleted file mode 100644 index e43af029ca..0000000000 --- a/geonode_mapstore_client/static/mapstore/dist/js/1757.affd309bf2aa3f38d3a0.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[1757],{557579:(t,e,n)=>{"use strict";n.d(e,{Jm:()=>a,AE:()=>f,dm:()=>l,n8:()=>d,BV:()=>s,Cz:()=>p,wb:()=>y,$A:()=>v,eb:()=>b,v8:()=>g,yY:()=>m,J5:()=>E,ff:()=>h,S0:()=>w,Q6:()=>O,kb:()=>S,GV:()=>D,LH:()=>T,lG:()=>I,Km:()=>j,pV:()=>P,V5:()=>G,IT:()=>A,VR:()=>W,jv:()=>_,oU:()=>N,h9:()=>R,jB:()=>C,Ym:()=>M,uU:()=>L,ke:()=>k,nw:()=>U,A4:()=>x,C2:()=>V,Qe:()=>Y,sZ:()=>F,Ij:()=>z,Ko:()=>H,E9:()=>$,K4:()=>B,c_:()=>J,uT:()=>X,bS:()=>Z,Rz:()=>K,t4:()=>q,_k:()=>Q,w2:()=>tt,YA:()=>et,sD:()=>nt,Gn:()=>rt,Rb:()=>ot,fy:()=>it,kr:()=>ut,f:()=>ct,Ff:()=>at,Pt:()=>ft,ep:()=>lt});var r=n(423570),o=n.n(r);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==i(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===i(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a="WIDGETS:INSERT",f="WIDGETS:NEW",l="WIDGETS:EDIT",d="WIDGETS:EDIT_NEW",s="WIDGETS:EDITOR_CHANGE",p="WIDGETS:EDITOR_SETTING_CHANGE",y="WIDGETS:UPDATE",v="WIDGETS:UPDATE_PROPERTY",b="WIDGETS:UPDATE_LAYER",g="WIDGETS:CHANGE_LAYOUT",m="WIDGETS:DELETE",E="WIDGETS:REPLACE",h="WIDGETS:CLEAR_WIDGETS",w="WIDGETS:ADD_DEPENDENCY",O="WIDGETS:REMOVE_DEPENDENCY",S="WIDGETS:LOAD_DEPENDENCIES",D="WIDGETS:RESET_DEPENDENCIES",T="WIDGETS:TOGGLE_CONNECTION",I="WIDGETS:OPEN_FILTER_EDITOR",j="WIDGETS:EXPORT_CSV",P="WIDGETS:EXPORT_IMAGE",G="WIDGETS:WIDGET_SELECTED",A="WIDGETS:NEW_CHART",W="floating",_="dependencySelector",N=/^widgets\["?([^"\]]*)"?\]\.?(.*)$/,R=/^maps\["?([^"\]]*)"?\]\.?(.*)$/,C=/^widgets\["?([^"\]]*)"?\]\.maps\["?([^"\]]*)"?\]\.?(.*)$/,M="WIDGET:TOGGLE_COLLAPSE",L="WIDGET:TOGGLE_COLLAPSE_ALL",k="WIDGET:TOGGLE_MAXIMIZE",U="WIDGET:TOGGLE_TRAY",x=function(t){return{type:f,widget:t}},V=function(){return{type:A}},Y=function(t){return{type:a,target:arguments.length>1&&void 0!==arguments[1]?arguments[1]:W,id:o()(),widget:t}},F=function(t){return{type:E,target:arguments.length>1&&void 0!==arguments[1]?arguments[1]:W,widgets:t}},z=function(t,e,n){return{type:v,id:t,target:arguments.length>4&&void 0!==arguments[4]?arguments[4]:W,key:e,value:n,mode:arguments.length>3&&void 0!==arguments[3]?arguments[3]:"replace"}},H=function(t){return{type:b,layer:t}},$=function(t){return{type:m,target:arguments.length>1&&void 0!==arguments[1]?arguments[1]:W,widget:t}},B=function(){return{type:h}},J=function(t,e){return{type:g,allLayouts:e,layout:t,target:arguments.length>2&&void 0!==arguments[2]?arguments[2]:W}},X=function(t){return{type:l,widget:t}},Z=function(t,e){return{type:d,widget:t,settings:e}},K=function(t,e){return{type:s,key:t,value:e}},q=function(t,e){return{type:p,key:t,value:e}},Q=function(t){return{type:S,dependencies:t}},tt=function(t,e,n,r){return{type:T,active:t,availableDependencies:e,options:n,target:r}},et=function(t){return q("step",t)},nt=function(t){var e=t.data,n=void 0===e?[]:e,r=t.title;return{type:j,data:n,title:void 0===r?"export":r}},rt=function(t,e){return{type:G,widget:t,opts:e}},ot=function(t){var e=t.widgetDivId;return{type:P,widgetDivId:e}},it=function(){return{type:I}},ut=function(t,e){return n=function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:W}},at=function(){return{type:L,target:arguments.length>0&&void 0!==arguments[0]?arguments[0]:W}},ft=function(t){return{type:k,widget:t,target:arguments.length>1&&void 0!==arguments[1]?arguments[1]:W}},lt=function(t){return{type:U,value:t}}},367306:(t,e,n)=>{"use strict";n.d(e,{Wy:()=>i,i$:()=>u,P0:()=>c,NB:()=>a,MZ:()=>f,J:()=>l,DZ:()=>d,hS:()=>s,CN:()=>p,fd:()=>y,Yl:()=>v,Ip:()=>b});var r=n(22222),o=n(324684),i=function(t){return t&&t.dashboard&&t.dashboard.editor&&t.dashboard.editor.available},u=function(t){return t&&t.dashboard&&t.dashboard.editing},c=function(t){return t&&t.dashboard&&t.dashboard.showConnections},a=function(t){return t&&t.dashboard&&t.dashboard.resource},f=function(t){return t&&t.dashboard&&t.dashboard.loading},l=function(t){return t&&t.browser&&t.browser.mobile},d=(0,r.P1)(o.F,a,l,(function(t,e,n){return n?!n:e&&e.canEdit||isNaN(t.substr(-4))})),s=function(t){var e;return null==t||null===(e=t.dashboard)||void 0===e?void 0:e.originalData},p=function(t){return t&&t.dashboard&&t.dashboard.services},y=function(t){return t&&t.dashboard&&t.dashboard.selectedService},v=function(t){return t&&t.dashboard&&t.dashboard.mode||"view"},b=function(t){var e;return(null===(e=t.dashboard)||void 0===e?void 0:e.isNew)||!1}},324684:(t,e,n)=>{"use strict";n.d(e,{F:()=>i,y:()=>u});var r=n(227361),o=n.n(r),i=function(t){return o()(t,"router.location.pathname")||"/"},u=function(t){return o()(t,"router.location.search")||""}},401757:(t,e,n)=>{"use strict";n.d(e,{E2:()=>S,YI:()=>I,GW:()=>j,zm:()=>P,lF:()=>G,Jb:()=>A,E5:()=>W,YR:()=>_,jx:()=>C,zA:()=>M,r0:()=>L,xI:()=>k,ie:()=>U,p:()=>x,yZ:()=>V,hF:()=>Y,Xu:()=>F,HU:()=>z,nA:()=>H,JT:()=>$,Wo:()=>B,um:()=>J,h9:()=>X,md:()=>Z}),n(313311);var r=n(227361),o=n.n(r),i=n(984596),u=n.n(i),c=n(701469),a=n.n(c),f=n(385564),l=n.n(f),d=n(800827),s=n(675110),p=n(324684),y=n(557579),v=n(246781),b=n(367306),g=n(22222),m=n(784715);function E(t){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},E(t)}function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function w(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{}).layer||!(arguments.length>2?arguments[2]:void 0)&&(arguments.length>1?arguments[1]:void 0)})),P=function(t){return o()(t,"widgets.containers[".concat(y.VR,"].widgets"))},G=function(t){return o()(t,"widgets.containers[".concat(y.VR,"].collapsed"))},A=function(t){return o()(t,"widgets.containers[".concat(y.VR,"].maximized"))},W=(0,g.P1)(P,G,A,(function(t,e,n){if(t){if(null!=n&&n.widget)return t.filter((function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id===n.widget.id}));if(e)return t.filter((function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id;return!e[t]}))}return t})),_=(0,g.P1)(G,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(t)})),N=function(t){return(P(t)||[]).filter((function(){return"map"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).widgetType}))},R=function(t){return(P(t)||[]).filter((function(){return"table"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).widgetType}))},C=(0,g.P1)(N,R,d.Od,p.F,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0;return{availableDependencies:l()(t.map((function(t){var e=t.id,n=t.maps;return(void 0===n?[]:n).map((function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mapId;return"widgets[".concat(e,"].maps[").concat(t,"].map")}))}))).concat(u()(n).map((function(){return"map"}))).concat(u()(e).filter((function(){return-1===r.indexOf("viewer")})).map((function(t){var e=t.id;return"widgets[".concat(e,"]")})))}})),M=(0,g.P1)(N,R,d.Od,p.F,I,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,i=o&&"map"!==o.widgetType?o&&o.layer||{}:o&&o.map&&o.map.layers||[];return{availableDependencies:l()(t.map((function(t){var e=t.id,n=t.maps;return(void 0===n?[]:n).map((function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mapId;return"widgets[".concat(e,"].maps[").concat(t,"].map")}))}))).concat(u()(n).map((function(){return n?"map":null}))).filter((function(t){return t})).concat(u()(e).filter((function(){return-1===r.indexOf("viewer")})).filter((function(t){return a()(i)||i.name===t.layer.name})).filter((function(t){return o&&o.id!==t.id})).map((function(t){var e=t.id;return"widgets[".concat(e,"]")})))}})),L=function(t){return o()(S(t),"".concat(y.jv))},k=function(t){return o()(L(t),"active")},U=(0,g.P1)(P,(function(t){return(0,v.Ug)(t)})),x=function(t){return o()(t,"widgets.containers[".concat(y.VR,"].layouts"))},V=function(t){return o()(t,"widgets.containers[".concat(y.VR,"].layout"))},Y=function(t){return o()(t,"widgets.containers[".concat(y.VR,"].widgets"))},F=function(t){return o()(t,"widgets.tray")},z=function(t){return(Y(t)||[]).length>0},H=function(t){return o()(t,"widgets.containers[".concat(y.VR,"].layouts"))},$=function(t){return o()(I(t),"layer")},B=function(t){return o()(t,"widgets.builder.editor.returnToFeatureGrid",!1)},J=function(t){return o()(I(t),"filter")},X=(0,m.y)(D,T,(function(t){return T(t).map((function(e){return 0===e.indexOf("map.")?o()((0,d.Od)(t),e.slice(4)):e.match(y.oU)?(0,v.D6)(e,P(t),N(t)):o()(t,e)}))}),(function(t,e,n){return e.reduce((function(e,r,o){return w(w({},e),{},O({},Object.keys(t)[o],n[o]))}),{})})),Z=(0,g.zB)({widgets:P,layouts:x,catalogs:b.CN})},246781:(t,e,n)=>{"use strict";n.d(e,{sq:()=>M,Mt:()=>C,D6:()=>N,Ug:()=>R,IO:()=>L});var r=n(227361),o=n.n(r),i=n(313311),u=n.n(i),c=(n(281763),n(59854),n(630998)),a=n.n(c),f=n(264721),l=n.n(f),d=n(441609),s=n.n(d),p=n(150361),y=n.n(p),v=n(957557),b=n.n(v),g=n(984596),m=n.n(g),E=n(557579),h=function(t,e,n){var r,o,i=[],u=[],c=t;for(i.push(c);i.length>0;)if(!n[c=i.shift()])for(n[c]=!0,u.push(c),r=0;rt.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:[];return t.reduce((function(e,n){var r=o()(n,"mapSync")&&o()(n,"dependenciesMap")||{},i=Object.keys(r).map((function(e){return _(r[e],t)}))||[];return[].concat(P(e),P(i.filter((function(t){return void 0!==t})).map((function(t){return[n.id,t.id]}))))}),[])}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[])),e=(0,w.qH)(190,340,t.length+1,{base:10,range:360,s:.67,v:.67});return t.map((function(t,n){return{color:e[n],widgets:t}}))},C=function(){return[{value:"Count",label:"widgets.operations.COUNT"},{value:"Sum",label:"widgets.operations.SUM"},{value:"Average",label:"widgets.operations.AVG"},{value:"StdDev",label:"widgets.operations.STDDEV"},{value:"Min",label:"widgets.operations.MIN"},{value:"Max",label:"widgets.operations.MAX"}]},M=function(t){var e=["layers","viewport","zoom","center"],n=y()(t),r=n.widgets||{},o=[];return I(I({},n),{},{widgets:r.map((function(t){var n=I({},t);if("map"===t.widgetType&&t.map){var r=S()();n=b()(I(I({},t),{},{selectedMapId:r,maps:m()(I(I({},t.map),{},{mapId:r}))}),"map"),o.push({widgetId:n.id,mapId:r})}if(!s()(n.dependenciesMap)){var i=Object.values(n.dependenciesMap)[0],c=G(E.oU.exec(i)||[],2)[1],a=u()(o,{widgetId:c})||{},f=a.widgetId,d=a.mapId;if(f)return I(I({},n),{},{dependenciesMap:Object.keys(n.dependenciesMap).filter((function(t){return void 0!==n.dependenciesMap[t]})).reduce((function(t,r){return l()(e,r)?I(I({},t),{},j({},r,n.dependenciesMap[r].replace(".map.",".maps[".concat(d,"].")))):I(I({},t),{},j({},r,n.dependenciesMap[r]))}),{})})}return n}))})},L=function(){var t=arguments.length>1?arguments[1]:void 0,e=arguments.length>2?arguments[2]:void 0,n=P(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]);return n.filter((function(t){return t.dependenciesMap})).some((function(e){return Object.values(e.dependenciesMap).some((function(e){return(E.oU.exec(e)||[])[1]===t}))}))&&(n=n.map((function(n){var r=n.dependenciesMap,o=!s()(r)&&(E.oU.exec(Object.values(r)[0])||[])[1];return I(I({},n),!s()(r)&&o===t&&{dependenciesMap:Object.keys(r).reduce((function(t,n){var o=G(E.jB.exec(r[n])||[],3)[2];return I(I({},t),{},j({},n,o?r[n].replace(o,e):r[n]))}),{})})}))),n}}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/17581.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/17581.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/17581.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/17581.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/17704.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/17704.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/17704.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/17704.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/17775.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/17775.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/17775.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/17775.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/17809.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/17809.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/17809.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/17809.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/17919.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/17919.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/17919.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/17919.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/18034.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/18034.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/18034.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/18034.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/18132.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/18132.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/18132.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/18132.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/18274.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/18274.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/18274.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/18274.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/18353.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/18353.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/18353.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/18353.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/18397.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/18397.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/18397.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/18397.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/18414.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/18414.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/18414.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/18414.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/18453.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/18453.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/18453.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/18453.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/18672.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/18672.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/18672.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/18672.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/18733.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/18733.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/18733.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/18733.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/18812.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/18812.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/18812.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/18812.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/18829.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/18829.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/18829.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/18829.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/19008.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/19008.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/19008.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/19008.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/19018.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/19018.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/19018.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/19018.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/19132.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/19132.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/19132.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/19132.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/19154.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/19154.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/19154.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/19154.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/19333.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/19333.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/19333.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/19333.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/19337.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/19337.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/19337.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/19337.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/1947.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/1947.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/1947.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/1947.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/19717.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/19717.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/19717.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/19717.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/19902.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/19902.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/19902.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/19902.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/19920.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/19920.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/19920.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/19920.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/19945.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/19945.affd309bf2aa3f38d3a0.chunk.js deleted file mode 100644 index f25a35a31d..0000000000 --- a/geonode_mapstore_client/static/mapstore/dist/js/19945.affd309bf2aa3f38d3a0.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[19945],{323010:(e,t,r)=>{"use strict";r.d(t,{dV:()=>F,ZP:()=>_});var n=r(124852),o=r.n(n),i=r(867076),a=r(423570),s=r.n(a),c=r(755745),u=r.n(c),l=r(165442),p=r.n(l),f=r(747359),y=r(1979),m=r(618446),d=r.n(m),b=r(624262),v=r(396606),O=r(49977),g=r(249243),h=r(313311),j=r.n(h),w=r(171703),P=r(134990),S=r(866113),E=["rawPos"],C=["PopupSupport","tools"];function I(e){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I(e)}function k(){return k=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function M(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return q(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?q(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{},r=e.queryParams,n=(void 0===r?{}:r).request,o=e.layerMetadata,i=(void 0===o?{}:o).title;return!n&&i.toLowerCase()===t}))||{},s=a.response,c=(void 0===s?{}:s).features,u=M(void 0===c?[]:c,1)[0],l=(void 0===u?{}:u).contentRefId,p=j()(i,(function(e){var t=e.contents;return j()(t,{id:l})})),f={popups:[]};if(p){var y=j()(p.contents,{id:l})||{},m=y.id,d=y.title,b=void 0===d?"":d;r('sections[{"id":"'.concat(p.id,'"}].contents[{"id":"').concat(m,'"}].carouselToggle'),!0),b&&(f={popups:n.map((function(e){return Z(Z({},e),{},{component:function(){return o().createElement("div",{className:"ms-geostory-carousel-viewer"},b)}})}))})}return f}}})),R=(0,i.mapPropsStream)((function(e){var t=(0,i.createEventHandler)(),r=t.stream,n=t.handler;return r.withLatestFrom(e.map((function(e){return{map:e.map,layers:e.layers,options:e.options}})).distinctUntilChanged((function(e,t){return d()(e,t)}))).switchMap((function(e){var t=M(e,2),r=t[0],n=r.point,o=r.layerInfo,i=t[1],a=i.map,c=i.layers,l=void 0===c?[]:c,f=i.options,m=(void 0===f?{}:f).mapOptions,d=(void 0===m?{}:m).mapInfoFormat,h=void 0===d?(0,y.GA)():d,j=l.filter((function(e){return(0,b.T4)(e,a.resolution)&&(0,v.y_)(e)}));D(o)&&(j=j.filter((function(e){var t=e.id;return o===t})));var w=["SLD_BODY"],P=["buffer","cql_filter","filter","propertyName"];return 0===j.length?O.Observable.of({requests:[{}],responses:[{response:{features:[]}}],validResponses:[]}):O.Observable.from(j).mergeMap((function(e){var t=(0,v.Fm)(e,{format:h,map:a,point:n,currentLocale:"en-US"}),r=t.url,o=t.request,i=t.metadata,c=r,l=o,f=Z(Z({},(0,v.K7)(e,P,w)),l),y=s()();return(r?(0,g.y)(c,f,e).map((function(e){return e.data.exceptions?{reqId:y,exceptions:e.data.exceptions,queryParams:l,layerMetadata:i}:{data:e.data,reqId:y,queryParams:l,layerMetadata:Z(Z({},i),{},{features:e.features,featuresCrs:e.featuresCrs})}})):O.Observable.of(function(e,t,r){var n={type:"Feature",properties:{},geometry:{type:"Point",coordinates:[t.lng,t.lat]}},o=r&&r.units;switch(o){case"m":default:o="meters";break;case"deg":o="degrees";break;case"mi":o="miles"}var i=r&&r.resolution||1,a=u()(n,(r.buffer||1)*i,o);return{data:{crs:null,features:(e.features||[]).filter((function(e){try{return"FeatureCollection"===e.type&&e.features&&e.features.length?e.features.reduce((function(e,t){var n=t.properties.useGeodesicLines&&t.properties.geometryGeodesic?Z(Z({},t),{},{geometry:t.properties.geometryGeodesic}):t;return e||p()(a,i&&r.buffer&&o?u()(n,1,"meters"):n)}),!1):p()(a,i&&r.buffer&&o?u()(e,1,"meters"):e)}catch(e){return!1}})),totalFeatures:"unknown",type:"FeatureCollection"},queryParams:t,layerMetadata:r}}(e,o,i))).catch((function(e){return{error:e.data||e.statusText||e.status,reqId:y,queryParams:l,layerMetadata:i}})).startWith({start:!0,reqId:y,request:f})})).scan((function(e,t){var r=e.requests,n=e.responses,i=e.validResponses;if(t.start){var a=t.reqId,s=t.request;return{requests:r.concat({reqId:a,request:s}),responses:n,validResponses:i}}var c=t.data,u=t.queryParams,l=t.layerMetadata,p=(0,v.Te)(h),f=n.concat({response:c,queryParams:u,layerMetadata:l});return{requests:r,validResponses:p.getValidResponses(f),responses:f,layerInfo:o}}),{requests:[],responses:[],validResponses:[],layerInfo:o})})).startWith({requests:[],responses:[]}).combineLatest(e,(function(e){return Z(Z({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),{},{mapInfo:e,getFeatureInfoHandler:n})}))}));const _=(0,i.branch)((function(e){var t=e.map,r=(void 0===t?{}:t).mapInfoControl,n=void 0!==r&&r;return!e.isDrawEnabled&&n}),(0,i.compose)(R,(0,i.withStateHandlers)({popups:[]},{onClick:function(e,t){var r=t.getFeatureInfoHandler,n=void 0===r?function(){}:r,o=t.map,i=(void 0===o?{}:o).mapInfoControl;return function(e,t){var r=e.rawPos,o=void 0===r?[]:r,a=T(e,E);return D(t)||i?(n({point:a,layerInfo:t}),{popups:[{position:{coordinates:o},id:s()()}]}):{popups:[]}}},onPopupClose:function(){return function(){return{popups:[]}}}}),(0,i.withPropsOnChange)(["mapInfo","popups"],(function(e){var t=e.mapInfo,r=e.popups,n=e.options,i=(void 0===n?{}:n).mapOptions,a=(void 0===i?{}:i).mapInfoFormat,s=void 0===a?(0,y.GA)():a,c=e.onClickMarker,u=void 0===c?function(){}:c,l=t.responses,p=t.requests,m=t.validResponses,d=t.layerInfo;return D(d)?u(m,d,r):{popups:r.map((function(e){return Z(Z({},e),{},{component:function(){return o().createElement(f.Z,{renderValidOnly:!0,responses:l,requests:p,validResponses:m,format:s,showEmptyMessageGFI:!0,missingResponses:(p||[]).length-(l||[]).length})}})}))}})),(0,i.withPropsOnChange)(["plugins","onPopupClose","popups"],(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.plugins,r=e.popups,n=e.onPopupClose,i=t.PopupSupport,a=t.tools,s=void 0===a?{}:a,c=T(t,C);return i?{plugins:Z(Z({},c),{},{tools:Z(Z({},s),{},{popup:function(e){return o().createElement(i,k({},e,{popups:r,onPopupClose:n}))}})})}:{}}))))},916788:(e,t,r)=>{"use strict";r.d(t,{Z:()=>j});var n=r(124852),o=r.n(n),i=r(675263),a=r.n(i),s=r(1206),c=r.n(s),u=r(196797),l=r.n(u),p=r(867076);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e){for(var t=1;t{"use strict";r.d(t,{Z:()=>Z});var n=r(124852),o=r.n(n),i=r(867076),a=r(480681),s=r(319180),c=r(91812),u=r(937981),l=r(469705),p=r(57068),f=r(1979),y=r(323010),m=r(461928);const d=(0,i.compose)(l.Z,(0,c.Z)(0),s.Z,y.ZP,f.yM,u.Z,p.e)(m.Z);var b=r(192579),v=r(727693),O=r(399534),g=r(815135),h=r(580628),j=r(38560);function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}var P=["id","map","fit","editMap","onMapViewChanges","eventHandlers","expandable","active","setActive","width","height","size","showCaption","caption","mapType","onMapTypeLoaded","layers","children"],S=["layers","mapOptions","description"];function E(){return E=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var A=(0,g.Z)(j.Z);const Z=(0,i.compose)((0,i.withState)("active","setActive",!1),h.Z)((function(e){var t=e.id,r=e.map,i=void 0===r?{layers:[v.D]}:r,s=e.fit,c=e.editMap,u=void 0!==c&&c,l=e.onMapViewChanges,p=e.eventHandlers,f=e.expandable,y=void 0!==f&&f,m=e.active,g=e.setActive,h=e.width,j=e.height,w=e.size,I=e.showCaption,k=e.caption,M=e.mapType,Z=void 0===M?"leaflet":M,x=e.onMapTypeLoaded,D=e.layers,F=e.children,R=q(e,P),_=i.data?i.data:i,N=_.layers,L=void 0===N?[]:N,z=_.mapOptions,V=void 0===z?{}:z,H=_.description,W=q(_,S),G=k||H,U=y?m?{zoomControl:!1,interactive:!0,mapOptions:{scrollWheelZoom:!0,interactions:{mouseWheelZoom:!0,dragPan:!0}}}:{zoomControl:!1,interactive:!1,mapOptions:{scrollWheelZoom:!1,interactions:{mouseWheelZoom:!1,dragPan:!1}}}:{mapOptions:V},B=u?{mapOptions:T(T({},V),{},{interactions:T(T({},V.interactions),{},{mouseWheelZoom:W.zoomControl})})}:U,$=!R.isDrawEnabled&&W.mapInfoControl&&!(y&&!m),K=o().createElement(o().Fragment,null,o().createElement(d,E({},R,{key:y?"overlay":"block",onMapViewChanges:l,eventHandlers:p,map:T(T({},W),{},{id:"media-".concat(t),resize:h+"-"+j+"_"+w,className:"aaaa",style:T({cursor:$?"pointer":"default"},y&&!m&&{pointerEvents:"none",touchAction:"none"})}),layers:D?[].concat(C(L),C(D)):L,tools:$?["popup"]:[],options:(0,b.kn)(B),mapType:Z,onMapTypeLoaded:x}),n.Children.map(F,(function(e){return e?(0,n.cloneElement)(e,{mapType:Z}):null}))),y&&!u&&o().createElement(A,{className:"ms-expand-media-button",onClick:function(){return g(!m)},tooltipId:m?"geostory.closeFullscreenMap":"geostory.showFullscreenMap",tooltipPosition:"left"},o().createElement(a.Glyphicon,{glyph:m?"1-close":"1-full-screen"})));return o().createElement("div",{className:"ms-media ms-media-map ".concat(V.zoomPosition||""),style:{objectFit:s}},m&&y?o().createElement(O.Z,null,o().createElement("div",{className:"ms-expanded-media-container"},K)):K,I&&G&&o().createElement("div",{className:"ms-media-caption"},o().createElement("small",null,G)))}))},882017:(e,t,r)=>{"use strict";r.d(t,{Ln:()=>m,ZP:()=>b});var n=r(124852),o=r.n(n),i=r(675263),a=r.n(i),s=r(916788),c=r(437034),u=r(452826),l=["debounceTime","mediaViewer","children"];function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,l),u="".concat(c.id).concat(c.resourceId?"-".concat(c.resourceId):""),d=(t=(0,n.useState)({}),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,r)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),b=d[0],v=d[1],O=void 0===b[u]||b[u],g=a||m[c.mediaType||c.type]||y;return o().createElement(g,p({sectionType:c.sectionType,debounceTime:i,loading:b,isLoading:O,onLoad:v,loadingId:u},c),s)};d.propTypes={id:a().string,lazy:a().bool,mediaType:a().string,type:a().string,debounceTime:a().number},d.defaultProps={id:"",lazy:!0,mediaType:"",type:""};const b=d},38560:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n=r(480681),o=r(124852),i=r.n(o),a=r(294184),s=r.n(a),c=["disabled","className","onClick"];function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,c);return i().createElement(p,u({ref:t,className:r?s()("disabled",n):n,onClick:function(){r||a.apply(void 0,arguments)}},l),l.children)})));var p},532425:(e,t,r)=>{"use strict";r.d(t,{Z:()=>y});var n=r(675263),o=r.n(n),i=r(124852),a=r.n(i);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t100?"full":e>40?"medium":"small"},f=function(e){var t=e.size,r=e.style,n=void 0===r?{}:r,o=e.className,i=e.hidden;return a().createElement("div",{className:o,style:u({width:t,height:t,overflow:"hidden"},n)},!i&&a().createElement("div",{className:"mapstore-".concat(p(t),"-size-loader")}))};f.propTypes={size:o().number,className:o().string,style:o().object};const y=f}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/20.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/20.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/20.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/20.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/20090.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/20090.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/20090.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/20090.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/20154.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/20154.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/20154.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/20154.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/20202.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/20202.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/20202.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/20202.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/20218.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/20218.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/20218.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/20218.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/20279.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/20279.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/20279.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/20279.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/20355.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/20355.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/20355.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/20355.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/20391.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/20391.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/20391.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/20391.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/20518.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/20518.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/20518.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/20518.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/20523.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/20523.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/20523.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/20523.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/20689.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/20689.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/20689.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/20689.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/20724.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/20724.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/20724.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/20724.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/20810.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/20810.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/20810.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/20810.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/2095.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/2095.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/2095.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/2095.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/21082.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/21082.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/21082.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/21082.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/21092.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/21092.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/21092.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/21092.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/21342.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/21342.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/21342.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/21342.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/21364.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/21364.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/21364.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/21364.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/21431.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/21431.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/21431.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/21431.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/21508.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/21508.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/21508.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/21508.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/21646.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/21646.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/21646.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/21646.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/21672.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/21672.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/21672.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/21672.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/21689.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/21689.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/21689.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/21689.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/21706.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/21706.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/21706.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/21706.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/21869.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/21869.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/21869.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/21869.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/21951.018dc26183efb561a8b1.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/21951.018dc26183efb561a8b1.chunk.js new file mode 100644 index 0000000000..a6c9109bba --- /dev/null +++ b/geonode_mapstore_client/static/mapstore/dist/js/21951.018dc26183efb561a8b1.chunk.js @@ -0,0 +1 @@ +(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[21951],{115047:(e,t,r)=>{"use strict";r.d(t,{b:()=>m});var n=r(727418),o=r.n(n);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t0&&(t="(".concat(u.map((function(e){return a.map((function(t){return"".concat(t," ").concat(s," '%").concat(e.replace("'","''"),"%'")})).join(" OR ")})).join(") AND (")).concat(")")),t?t.concat(p):p||null},f={nominatim:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{returnFullData:!1};return r(647310).Z.geocode(e,t).then((function(e){return t.returnFullData?e:null===(r=e.data)?[]:r.map((function(e){return{properties:s({},e),id:e.osm_id,type:"Feature",bbox:e.boundingbox.map((function(e){return parseFloat(e)})).reduce((function(e,t,r){return e[function(e){switch(e){case 0:return 1;case 1:return 3;case 2:return 0;case 3:return 2;default:return-1}}(r)]=t,e}),[]),geometry:e.geojson||{type:"Point",coordinates:[parseFloat(e.lon),parseFloat(e.lat)]}}}));var r}))},wfs:function(e,t){var r=t.url,n=t.typeName,i=t.queriableAttributes,a=void 0===i?[]:i,s=t.outputFormat,l=void 0===s?"application/json":s,f=t.predicate,b=void 0===f?"ILIKE":f,m=t.staticFilter,y=void 0===m?"":m,d=t.blacklist,w=void 0===d?[]:d,g=t.item,v=t.fromTextToFilter,h=void 0===v?c:v,P=t.returnFullData,O=void 0!==P&&P,x=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,u),j=h({searchText:e,staticFilter:y,blacklist:w,item:g,queriableAttributes:a,predicate:b});return p.DH(r,o()({maxFeatures:10,typeName:n,outputFormat:l,cql_filter:j},x)).then((function(e){return O?e:e.features}))}},b={setService:function(e,t){f[e]=t},getService:function(e){return f[e]?f[e]:null}},m={Services:f,Utils:b}},848384:(e,t,r)=>{"use strict";r.d(t,{Z:()=>d});var n=r(124852),o=r.n(n),i=r(675263),a=r.n(i);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function l(e,t){for(var r=0;r{"use strict";r.d(t,{Z:()=>P});var n=r(675263),o=r.n(n),i=r(124852),a=r.n(i),s=r(200020),l=r(480681),p=r(86638),u=r(950966),c=r(848384);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&(n=e.props.data.map((function(e){return e}))),e.props.pagination&&e.props.pagination.paginated&&n.length>0&&n.push((g(t={},e.props.textField,""),g(t,e.props.valueField,""),g(t,"disabled",!0),g(t,"pagination",e.renderPagination()),t));var o=e.props.loading?[]:n,i=e.props.itemComponent,l=a().createElement(s.Combobox,{placeholder:e.props.placeholder,dropUp:e.props.dropUp,busy:e.props.busy,data:o,disabled:e.props.disabled,itemComponent:function(t){return a().createElement(i,b({textField:e.props.textField,valueField:e.props.valueField},t))},messages:e.props.messages||r,open:e.props.open,filter:e.props.filter,onChange:function(t){return e.props.onChange(t)},onFocus:function(){return e.props.onFocus(e.props.data)},onSelect:function(t){return e.props.onSelect(t)},onToggle:function(t){return e.props.onToggle(t)},textField:e.props.textField,valueField:e.props.valueField,value:e.props.selectedValue});return e.props.tooltip&&e.props.tooltip.enabled?e.renderWithTooltip(l):l})),e}return t=c,(r=[{key:"componentDidUpdate",value:function(e){var t=this.props.attribute;t!==e.attribute&&this.props.onChangeAttribute(t)}},{key:"render",value:function(){var e=this.props,t=e.selectedValue,r=e.disabled,n=e.onReset,o=e.label,i=e.clearable,s=o?a().createElement("label",null,o):a().createElement("span",null);return a().createElement("div",{className:"autocompleteField"},s,i?a().createElement("div",{className:"rw-combo-clearable ".concat(r?"disabled":"")},this.renderField(),a().createElement("span",{className:"rw-combo-clear ".concat(t?"":"hidden"),onClick:n},"x")):this.renderField())}}])&&m(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(a().Component);g(h,"propTypes",{busy:o().bool,data:o().array,disabled:o().bool,dropUp:o().bool,itemComponent:o().oneOfType([o().object,o().func]),label:o().string,loading:o().bool,filter:o().oneOfType([o().string,o().bool]),messages:o().object,onChange:o().func,onFocus:o().func,onSelect:o().func,onToggle:o().func,onChangeAttribute:o().func,open:o().bool,pagination:o().object,nextPageIcon:o().string,prevPageIcon:o().string,selectedValue:o().string,textField:o().string,tooltip:o().object,valueField:o().string,placeholder:o().string,stopPropagation:o().bool,clearable:o().bool,onReset:o().func,attribute:o().string}),g(h,"contextTypes",{messages:o().object}),g(h,"defaultProps",{stopPropagation:!1,dropUp:!1,itemComponent:c.Z,loading:!1,label:null,filter:"",pagination:{paginated:!0,firstPage:!1,lastPage:!1,loadPrevPage:function(){},loadNextPage:function(){}},nextPageIcon:"chevron-right",prevPageIcon:"chevron-left",onFocus:function(){},onToggle:function(){},onChange:function(){},onSelect:function(){},onReset:function(){},onChangeAttribute:function(){},textField:"label",tooltip:{customizedTooltip:void 0,enabled:!1,id:"",message:void 0,overlayTriggerKey:"",placement:"top"},valueField:"value",clearable:!1});const P=h},576364:(e,t,r)=>{"use strict";r.d(t,{Vd:()=>O,Vj:()=>x});var n=r(472500),o=r.n(n),i=r(666654),a=r.n(i),s=r(91175),l=r.n(s),p=r(414293),u=r.n(p),c=r(727418),f=r.n(c),b=r(49977),m=r.n(b),y=r(115047),d=r(375875),w=r.n(d),g=r(284069);function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var P=function(e){var t=e.searchText,r=void 0===t?"":t,n=e.queriableAttributes,o=void 0===n?[]:n,i=e.predicate,a=void 0===i?"ILIKE":i,s=l()(o),p=r.toLowerCase(),c="strToLowerCase(".concat(s,") ").concat(a," '%").concat(p,"%'");return u()(s)?"":"("+c+")"},O=function(e){return e.distinctUntilChanged((function(e){var t=e.value,r=e.currentPage,n=e.attribute,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!(o.value!==t||o.currentPage!==r||o.attribute!==n)})).throttle((function(e){return m().Observable.timer(e.delayDebounce||0)})).merge(e.debounce((function(e){return m().Observable.timer(e.delayDebounce||0)}))).distinctUntilChanged().switchMap((function(e){if(e.performFetch){var t=(0,g.getWpsPayload)({attribute:e.attribute,layerName:e.typeName,maxFeatures:e.maxFeatures,startIndex:(e.currentPage-1)*e.maxFeatures,value:e.value});return m().Observable.fromPromise(w().post(e.url,t,{timeout:6e4,headers:{Accept:"application/json","Content-Type":"application/xml"}}).then((function(e){return{fetchedData:e.data,busy:!1}}))).catch((function(){return m().Observable.of({fetchedData:{values:[],size:0},busy:!1})})).startWith({busy:!0})}return m().Observable.of({fetchedData:{values:[],size:0},busy:!1})})).startWith({})},x=function(e){return m().Observable.merge(e.distinctUntilChanged((function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).value===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).value})).debounce((function(e){return m().Observable.timer(e.delayDebounce||0)})),e.distinctUntilChanged((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.filterProps,r=e.currentPage,n=arguments.length>1?arguments[1]:void 0,o=n.filterProps,i=n.currentPage;return t===o&&r===i}))).switchMap((function(e){if(e.performFetch){var t=o().parse(e.url,!0),r="";(a()(t.pathname,"wfs")||a()(t.pathname,"wms")||a()(t.pathname,"ows")||a()(t.pathname,"wps"))&&(r=t.pathname.replace(/(wms|ows|wps|wfs)$/,"wfs")),t.query&&t.query.service&&delete t.query.service;var n=o().format(f()({},t,{search:null,pathname:r})),i=f()({},function(e){for(var t=1;t{function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r '+l+" *"+c+"*":"",b=o&&!o.disabled&&i(o)?a(o,"1.1.0","ogc"):[];return' gs:PagedUnique features features '+(f.length>0||b.length>0?''+s.apply(void 0,(t=b,function(e){if(Array.isArray(e))return n(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([f]))+"":"")+' '+l+' fieldName fieldName '+l+' maxFeatures maxFeatures '+p+' startIndex startIndex '+u+' result '}}}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/21951.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/21951.affd309bf2aa3f38d3a0.chunk.js deleted file mode 100644 index 9e4ee3149e..0000000000 --- a/geonode_mapstore_client/static/mapstore/dist/js/21951.affd309bf2aa3f38d3a0.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[21951],{115047:(e,t,r)=>{"use strict";r.d(t,{b:()=>y});var n=r(727418),o=r.n(n);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t0&&(t="(".concat(u.map((function(e){return a.map((function(t){return"".concat(t," ").concat(s," '%").concat(e.replace("'","''"),"%'")})).join(" OR ")})).join(") AND (")).concat(")")),t?t.concat(l):l||null},b={nominatim:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{returnFullData:!1};return r(647310).Z.geocode(e,t).then((function(e){return t.returnFullData?e:null===(r=e.data)?[]:r.map((function(e){return{properties:s({},e),id:e.osm_id,type:"Feature",bbox:e.boundingbox.map((function(e){return parseFloat(e)})).reduce((function(e,t,r){return e[function(e){switch(e){case 0:return 1;case 1:return 3;case 2:return 0;case 3:return 2;default:return-1}}(r)]=t,e}),[]),geometry:e.geojson||{type:"Point",coordinates:[parseFloat(e.lon),parseFloat(e.lat)]}}}));var r}))},wfs:function(e,t){var r=t.url,n=t.typeName,i=t.queriableAttributes,a=void 0===i?[]:i,s=t.outputFormat,l=void 0===s?"application/json":s,p=t.predicate,b=void 0===p?"ILIKE":p,m=t.staticFilter,y=void 0===m?"":m,d=t.blacklist,w=void 0===d?[]:d,g=t.item,v=t.fromTextToFilter,h=void 0===v?f:v,P=t.returnFullData,O=void 0!==P&&P,x=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,c),j=h({searchText:e,staticFilter:y,blacklist:w,item:g,queriableAttributes:a,predicate:b});return u.DH(r,o()({maxFeatures:10,typeName:n,outputFormat:l,cql_filter:j},x)).then((function(e){return O?e:e.features}))}},m={setService:function(e,t){b[e]=t},getService:function(e){return b[e]?b[e]:null}},y={Services:b,Utils:m}},848384:(e,t,r)=>{"use strict";r.d(t,{Z:()=>d});var n=r(124852),o=r.n(n),i=r(675263),a=r.n(i);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function l(e,t){for(var r=0;r{"use strict";r.d(t,{Z:()=>P});var n=r(675263),o=r.n(n),i=r(124852),a=r.n(i),s=r(200020),l=r(480681),p=r(86638),u=r(950966),c=r(848384);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&(n=e.props.data.map((function(e){return e}))),e.props.pagination&&e.props.pagination.paginated&&n.length>0&&n.push((g(t={},e.props.textField,""),g(t,e.props.valueField,""),g(t,"disabled",!0),g(t,"pagination",e.renderPagination()),t));var o=e.props.loading?[]:n,i=e.props.itemComponent,l=a().createElement(s.Combobox,{placeholder:e.props.placeholder,dropUp:e.props.dropUp,busy:e.props.busy,data:o,disabled:e.props.disabled,itemComponent:function(t){return a().createElement(i,b({textField:e.props.textField,valueField:e.props.valueField},t))},messages:e.props.messages||r,open:e.props.open,filter:e.props.filter,onChange:function(t){return e.props.onChange(t)},onFocus:function(){return e.props.onFocus(e.props.data)},onSelect:function(t){return e.props.onSelect(t)},onToggle:function(t){return e.props.onToggle(t)},textField:e.props.textField,valueField:e.props.valueField,value:e.props.selectedValue});return e.props.tooltip&&e.props.tooltip.enabled?e.renderWithTooltip(l):l})),e}return t=c,(r=[{key:"componentDidUpdate",value:function(e){var t=this.props.attribute;t!==e.attribute&&this.props.onChangeAttribute(t)}},{key:"render",value:function(){var e=this.props,t=e.selectedValue,r=e.disabled,n=e.onReset,o=e.label,i=e.clearable,s=o?a().createElement("label",null,o):a().createElement("span",null);return a().createElement("div",{className:"autocompleteField"},s,i?a().createElement("div",{className:"rw-combo-clearable ".concat(r?"disabled":"")},this.renderField(),a().createElement("span",{className:"rw-combo-clear ".concat(t?"":"hidden"),onClick:n},"x")):this.renderField())}}])&&m(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(a().Component);g(h,"propTypes",{busy:o().bool,data:o().array,disabled:o().bool,dropUp:o().bool,itemComponent:o().oneOfType([o().object,o().func]),label:o().string,loading:o().bool,filter:o().oneOfType([o().string,o().bool]),messages:o().object,onChange:o().func,onFocus:o().func,onSelect:o().func,onToggle:o().func,onChangeAttribute:o().func,open:o().bool,pagination:o().object,nextPageIcon:o().string,prevPageIcon:o().string,selectedValue:o().string,textField:o().string,tooltip:o().object,valueField:o().string,placeholder:o().string,stopPropagation:o().bool,clearable:o().bool,onReset:o().func,attribute:o().string}),g(h,"contextTypes",{messages:o().object}),g(h,"defaultProps",{stopPropagation:!1,dropUp:!1,itemComponent:c.Z,loading:!1,label:null,filter:"",pagination:{paginated:!0,firstPage:!1,lastPage:!1,loadPrevPage:function(){},loadNextPage:function(){}},nextPageIcon:"chevron-right",prevPageIcon:"chevron-left",onFocus:function(){},onToggle:function(){},onChange:function(){},onSelect:function(){},onReset:function(){},onChangeAttribute:function(){},textField:"label",tooltip:{customizedTooltip:void 0,enabled:!1,id:"",message:void 0,overlayTriggerKey:"",placement:"top"},valueField:"value",clearable:!1});const P=h},576364:(e,t,r)=>{"use strict";r.d(t,{Vd:()=>x,Vj:()=>j});var n=r(472500),o=r.n(n),i=r(666654),a=r.n(i),s=r(91175),l=r.n(s),p=r(414293),u=r.n(p),c=r(727418),f=r.n(c),b=r(49977),m=r.n(b),y=r(115047),d=r(375875),w=r.n(d),g=r(284069);function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function P(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==v(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==v(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===v(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var O=function(e){var t=e.searchText,r=void 0===t?"":t,n=e.queriableAttributes,o=void 0===n?[]:n,i=e.predicate,a=void 0===i?"ILIKE":i,s=l()(o),p=r.toLowerCase(),c="strToLowerCase(".concat(s,") ").concat(a," '%").concat(p,"%'");return u()(s)?"":"("+c+")"},x=function(e){return e.distinctUntilChanged((function(e){var t=e.value,r=e.currentPage,n=e.attribute,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!(o.value!==t||o.currentPage!==r||o.attribute!==n)})).throttle((function(e){return m().Observable.timer(e.delayDebounce||0)})).merge(e.debounce((function(e){return m().Observable.timer(e.delayDebounce||0)}))).distinctUntilChanged().switchMap((function(e){if(e.performFetch){var t=(0,g.getWpsPayload)({attribute:e.attribute,layerName:e.typeName,maxFeatures:e.maxFeatures,startIndex:(e.currentPage-1)*e.maxFeatures,value:e.value});return m().Observable.fromPromise(w().post(e.url,t,{timeout:6e4,headers:{Accept:"application/json","Content-Type":"application/xml"}}).then((function(e){return{fetchedData:e.data,busy:!1}}))).catch((function(){return m().Observable.of({fetchedData:{values:[],size:0},busy:!1})})).startWith({busy:!0})}return m().Observable.of({fetchedData:{values:[],size:0},busy:!1})})).startWith({})},j=function(e){return m().Observable.merge(e.distinctUntilChanged((function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).value===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).value})).debounce((function(e){return m().Observable.timer(e.delayDebounce||0)})),e.distinctUntilChanged((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.filterProps,r=e.currentPage,n=arguments.length>1?arguments[1]:void 0,o=n.filterProps,i=n.currentPage;return t===o&&r===i}))).switchMap((function(e){if(e.performFetch){var t=o().parse(e.url,!0),r="";(a()(t.pathname,"wfs")||a()(t.pathname,"wms")||a()(t.pathname,"ows")||a()(t.pathname,"wps"))&&(r=t.pathname.replace(/(wms|ows|wps|wfs)$/,"wfs")),t.query&&t.query.service&&delete t.query.service;var n=o().format(f()({},t,{search:null,pathname:r})),i=f()({},function(e){for(var t=1;t{function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r '+l+" *"+c+"*":"",b=o&&!o.disabled&&i(o)?a(o,"1.1.0","ogc"):[];return' gs:PagedUnique features features '+(f.length>0||b.length>0?''+s.apply(void 0,(t=b,function(e){if(Array.isArray(e))return n(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([f]))+"":"")+' '+l+' fieldName fieldName '+l+' maxFeatures maxFeatures '+p+' startIndex startIndex '+u+' result '}}}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/22010.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/22010.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/22010.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/22010.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/22079.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/22079.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/22079.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/22079.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/22149.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/22149.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/22149.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/22149.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/22229.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/22229.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/22229.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/22229.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/22320.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/22320.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/22320.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/22320.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/22340.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/22340.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/22340.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/22340.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/22426.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/22426.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/22426.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/22426.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/22466.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/22466.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/22466.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/22466.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/22467.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/22467.018dc26183efb561a8b1.chunk.js similarity index 82% rename from geonode_mapstore_client/static/mapstore/dist/js/22467.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/22467.018dc26183efb561a8b1.chunk.js index 0b04e66cc4..3ec5741c28 100644 --- a/geonode_mapstore_client/static/mapstore/dist/js/22467.affd309bf2aa3f38d3a0.chunk.js +++ b/geonode_mapstore_client/static/mapstore/dist/js/22467.018dc26183efb561a8b1.chunk.js @@ -1 +1 @@ -(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[22467],{389912:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var o,r=n(124852),i=n(843033);const u=function(e){var t=e.map,n=e.onBoxEnd,u=e.status;return(0,r.useEffect)((function(){"start"===u?(o=new i.Z({condition:function(e){return e.originalEvent.altKey}}),t.addInteraction(o)):"end"===u&&t.removeInteraction(o)}),[u]),(0,r.useEffect)((function(){o&&o.on("boxend",(function(e){n({boxExtent:o.getGeometry().getExtent(),modifiers:{ctrl:e.mapBrowserEvent.pointerEvent.ctrlKey,metaKey:e.mapBrowserEvent.pointerEvent.metaKey}})}))}),[u]),null}},126105:(e,t,n)=>{"use strict";n.d(t,{Z:()=>E});var o=n(124852),r=n.n(o),i=n(180307),u=n.n(i),c=n(675263),a=n.n(c),p=n(193409),s=n(747037),l=n.n(s),f=n(925064),m=n(821751);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function y(e,t){for(var n=0;nt?t:s,S=m>n?n:m,_=f.fH(o,c),x=new p.Z({id:o,element:_,autoPan:y,offset:O,autoPanMargin:h,autoPanAnimation:w,positioning:"bottom-center",className:"ol-overlay-container ol-unselectable",position:u});r.addOverlay(x);var C=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=new MutationObserver((function(){e.getMap().getSize()&&(e.setPosition(void 0),e.setPosition(n.coordinates))}));return o.observe(t,{attributes:!0,childList:!0,subtree:!0}),o}(x,_,{coordinates:u});return function(e){for(var t=1;t{"use strict";n.r(t),n.d(t,{IDENTIFY_POPUP:()=>E,default:()=>w});var o=n(124852),r=n.n(o),i=n(173014),u=n(11196),c=n(867076),a=n(171703),p=n(22222),s=n(307877),l=n(921914),f=n(542872),m=n(701469),d=n.n(m),v=n(352353),y=n.n(v),b=n(979870),h=n(800827),P=(0,c.compose)((0,a.connect)((0,p.P1)(s.Qf,(function(e){return{index:e}})),{setIndex:l.oO}),(0,c.defaultProps)({index:0,responses:[]})),g=(0,p.P1)([s.q7,s.o9,s.OK,s.us,s.x0,h.hp,s.vR],(function(e,t,n,o,r,i,u){return{responses:e,validResponses:t,requests:n,format:o,showEmptyMessageGFI:r,missingResponses:(n||[]).length-(e||[]).length,renderValidOnly:i,loaded:u}}));const O=(0,c.compose)((0,a.connect)(g),(0,c.defaultProps)({responses:[],container:function(e){var t=e.index,n=e.children;return r().createElement(r().Fragment,null,d()(n)&&n[t]||n)},header:b.Z}),P,u.Yy,u.mI,(0,i.Z)((function(e){var t=e.loaded;return y()(t)})))(f.Z);var E="identify";const w={identify:O}},532425:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var o=n(675263),r=n.n(o),i=n(124852),u=n.n(i);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function p(e){for(var t=1;t100?"full":e>40?"medium":"small"},f=function(e){var t=e.size,n=e.style,o=void 0===n?{}:n,r=e.className,i=e.hidden;return u().createElement("div",{className:r,style:p({width:t,height:t,overflow:"hidden"},o)},!i&&u().createElement("div",{className:"mapstore-".concat(l(t),"-size-loader")}))};f.propTypes={size:r().number,className:r().string,style:r().object};const m=f},925064:(e,t,n)=>{"use strict";n.d(t,{fH:()=>i,FP:()=>u,R3:()=>c});var o=n(455877),r=n.n(o),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r()(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ms-map-popup",n=document.createElement("div");return n.setAttribute("id",e+"-map-popup"),n.setAttribute("class",t),n},u=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").startsWith("<")},c=function(e,t){if(!t)return e;if(t instanceof Node){var n=document.createDocumentFragment();n.appendChild(t),e.appendChild(n)}else u(t)?e.innerHTML=t:e.append(document.createTextNode(String(t)));return e}}}]); \ No newline at end of file +(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[22467],{389912:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var o,r=n(124852),i=n(843033);const u=function(e){var t=e.map,n=e.onBoxEnd,u=e.status;return(0,r.useEffect)((function(){"start"===u?(o=new i.Z({condition:function(e){return e.originalEvent.altKey}}),t.addInteraction(o)):"end"===u&&t.removeInteraction(o)}),[u]),(0,r.useEffect)((function(){o&&o.on("boxend",(function(e){n({boxExtent:o.getGeometry().getExtent(),modifiers:{ctrl:e.mapBrowserEvent.pointerEvent.ctrlKey,metaKey:e.mapBrowserEvent.pointerEvent.metaKey}})}))}),[u]),null}},126105:(e,t,n)=>{"use strict";n.d(t,{Z:()=>E});var o=n(124852),r=n.n(o),i=n(180307),u=n.n(i),c=n(675263),a=n.n(c),p=n(193409),s=n(747037),l=n.n(s),f=n(925064),m=n(821751);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function y(e,t){for(var n=0;nt?t:s,S=m>n?n:m,_=f.fH(o,c),x=new p.Z({id:o,element:_,autoPan:y,offset:O,autoPanMargin:h,autoPanAnimation:w,positioning:"bottom-center",className:"ol-overlay-container ol-unselectable",position:u});r.addOverlay(x);var C=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=new MutationObserver((function(){e.getMap().getSize()&&(e.setPosition(void 0),e.setPosition(n.coordinates))}));return o.observe(t,{attributes:!0,childList:!0,subtree:!0}),o}(x,_,{coordinates:u});return function(e){for(var t=1;t{"use strict";n.r(t),n.d(t,{IDENTIFY_POPUP:()=>E,default:()=>w});var o=n(124852),r=n.n(o),i=n(173014),u=n(11196),c=n(867076),a=n(171703),p=n(22222),s=n(307877),l=n(921914),f=n(542872),m=n(701469),d=n.n(m),v=n(352353),y=n.n(v),b=n(979870),h=n(800827),P=(0,c.compose)((0,a.connect)((0,p.P1)(s.Qf,(function(e){return{index:e}})),{setIndex:l.oO}),(0,c.defaultProps)({index:0,responses:[]})),g=(0,p.P1)([s.q7,s.o9,s.OK,s.us,s.x0,h.hp,s.vR],(function(e,t,n,o,r,i,u){return{responses:e,validResponses:t,requests:n,format:o,showEmptyMessageGFI:r,missingResponses:(n||[]).length-(e||[]).length,renderValidOnly:i,loaded:u}}));const O=(0,c.compose)((0,a.connect)(g),(0,c.defaultProps)({responses:[],container:function(e){var t=e.index,n=e.children;return r().createElement(r().Fragment,null,d()(n)&&n[t]||n)},header:b.Z}),P,u.Yy,u.mI,(0,i.Z)((function(e){var t=e.loaded;return y()(t)})))(f.Z);var E="identify";const w={identify:O}},532425:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var o=n(675263),r=n.n(o),i=n(124852),u=n.n(i);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function p(e){for(var t=1;t100?"full":e>40?"medium":"small"},l=function(e){var t=e.size,n=e.style,o=void 0===n?{}:n,r=e.className,i=e.hidden;return u().createElement("div",{className:r,style:p({width:t,height:t,overflow:"hidden"},o)},!i&&u().createElement("div",{className:"mapstore-".concat(s(t),"-size-loader")}))};l.propTypes={size:r().number,className:r().string,style:r().object};const f=l},925064:(e,t,n)=>{"use strict";n.d(t,{fH:()=>i,FP:()=>u,R3:()=>c});var o=n(455877),r=n.n(o),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r()(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ms-map-popup",n=document.createElement("div");return n.setAttribute("id",e+"-map-popup"),n.setAttribute("class",t),n},u=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").startsWith("<")},c=function(e,t){if(!t)return e;if(t instanceof Node){var n=document.createDocumentFragment();n.appendChild(t),e.appendChild(n)}else u(t)?e.innerHTML=t:e.append(document.createTextNode(String(t)));return e}}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/22589.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/22589.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/22589.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/22589.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/22685.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/22685.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/22685.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/22685.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/22861.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/22861.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/22861.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/22861.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/22882.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/22882.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/22882.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/22882.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/22938.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/22938.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/22938.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/22938.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/2294.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/2294.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/2294.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/2294.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/22990.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/22990.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/22990.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/22990.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/23330.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/23330.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/23330.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/23330.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/23338.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/23338.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/23338.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/23338.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/23456.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/23456.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/23456.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/23456.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/235.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/235.018dc26183efb561a8b1.chunk.js similarity index 99% rename from geonode_mapstore_client/static/mapstore/dist/js/235.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/235.018dc26183efb561a8b1.chunk.js index ed560dbff8..d7a55976c8 100644 --- a/geonode_mapstore_client/static/mapstore/dist/js/235.affd309bf2aa3f38d3a0.chunk.js +++ b/geonode_mapstore_client/static/mapstore/dist/js/235.018dc26183efb561a8b1.chunk.js @@ -1,2 +1,2 @@ -/*! For license information please see 235.affd309bf2aa3f38d3a0.chunk.js.LICENSE.txt */ +/*! For license information please see 235.018dc26183efb561a8b1.chunk.js.LICENSE.txt */ (self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[235],{270052:(e,t,n)=>{"use strict";n.d(t,{qA:()=>u});var r=n(124852),i=n(315817),s=n(2212);class a extends s.DataTextureLoader{constructor(e){super(e),this.type=s.HalfFloatType}parse(e){const t=function(e,t){switch(e){case 1:console.error("THREE.RGBELoader Read Error: "+(t||""));break;case 2:console.error("THREE.RGBELoader Write Error: "+(t||""));break;case 3:console.error("THREE.RGBELoader Bad File Format: "+(t||""));break;default:console.error("THREE.RGBELoader: Error: "+(t||""))}return-1},n=function(e,t,n){t=t||1024;let r=e.pos,i=-1,s=0,a="",o=String.fromCharCode.apply(null,new Uint16Array(e.subarray(r,r+128)));for(;0>(i=o.indexOf("\n"))&&s=e.byteLength||!(l=n(e)))return t(1,"no header found");if(!(c=l.match(/^#\?(\S+)/)))return t(3,"bad initial token");for(o.valid|=1,o.programtype=c[1],o.string+=l+"\n";l=n(e),!1!==l;)if(o.string+=l+"\n","#"!==l.charAt(0)){if((c=l.match(r))&&(o.gamma=parseFloat(c[1])),(c=l.match(i))&&(o.exposure=parseFloat(c[1])),(c=l.match(s))&&(o.valid|=2,o.format=c[1]),(c=l.match(a))&&(o.valid|=4,o.height=parseInt(c[1],10),o.width=parseInt(c[2],10)),2&o.valid&&4&o.valid)break}else o.comments+=l+"\n";return 2&o.valid?4&o.valid?o:t(3,"missing image size specifier"):t(3,"missing format specifier")}(a);if(-1!==o){const e=o.width,n=o.height,l=function(e,n,r){const i=n;if(i<8||i>32767||2!==e[0]||2!==e[1]||128&e[2])return new Uint8Array(e);if(i!==(e[2]<<8|e[3]))return t(3,"wrong scanline width");const s=new Uint8Array(4*n*r);if(!s.length)return t(4,"unable to allocate buffer space");let a=0,o=0;const l=4*i,c=new Uint8Array(4),u=new Uint8Array(l);let h=r;for(;h>0&&oe.byteLength)return t(1);if(c[0]=e[o++],c[1]=e[o++],c[2]=e[o++],c[3]=e[o++],2!=c[0]||2!=c[1]||(c[2]<<8|c[3])!=i)return t(3,"bad rgbe scanline format");let n,r=0;for(;r128;if(i&&(n-=128),0===n||r+n>l)return t(3,"bad scanline data");if(i){const t=e[o++];for(let e=0;e{return(t=e).current&&t.current.isScene?e.current:e;var t};function u(e){return e.map?r.createElement(h,e):e.children?r.createElement(d,e):r.createElement(p,e)}function h({scene:e,background:t=!1,map:n}){const s=(0,i.Ky)((e=>e.scene));return r.useLayoutEffect((()=>{if(n){const r=c(e||s),i=r.background,a=r.environment;return"only"!==t&&(r.environment=n),t&&(r.background=n),()=>{"only"!==t&&(r.environment=a),t&&(r.background=i)}}}),[e,n]),null}function d({children:e,near:t=1,far:n=1e3,resolution:a=256,frames:o=1,background:l=!1,scene:u,files:d,path:p,preset:f,extensions:m}){const g=(0,i.Ky)((e=>e.gl)),v=(0,i.Ky)((e=>e.scene)),y=r.useRef(null),[x]=r.useState((()=>new s.Scene)),_=r.useMemo((()=>{const e=new s.WebGLCubeRenderTarget(a);return e.texture.type=s.HalfFloatType,e}),[a]);r.useLayoutEffect((()=>{1===o&&y.current.update(g,x);const e=c(u||v),t=e.background,n=e.environment;return"only"!==l&&(e.environment=_.texture),l&&(e.background=_.texture),()=>{"only"!==l&&(e.environment=n),l&&(e.background=t)}}),[e,u]);let b=1;return(0,i.xQ)((()=>{(o===1/0||be.scene)),f=Array.isArray(t),m=f?s.CubeTextureLoader:a,g=(0,i.U2)(m,f?[t]:t,(e=>{e.setPath(n),null==e.setDataType||e.setDataType(s.FloatType),d&&d(e)})),v=f?g[0]:g;return v.mapping=f?s.CubeReflectionMapping:s.EquirectangularReflectionMapping,r.useLayoutEffect((()=>{const t=c(h||p),n=t.background,r=t.environment;return"only"!==e&&(t.environment=v),e&&(t.background=v),()=>{"only"!==e&&(t.environment=r),e&&(t.background=n)}}),[v,e,h]),null}},166037:(e,t,n)=>{"use strict";n.d(t,{z:()=>u});var r=n(722122),i=n(315817),s=n(124852),a=n(584121),o=n(2212);const l=(e,t)=>(e%t+t)%t;class c extends o.EventDispatcher{constructor(e,t){super(),(0,a.Z)(this,"object",void 0),(0,a.Z)(this,"domElement",void 0),(0,a.Z)(this,"enabled",!0),(0,a.Z)(this,"target",new o.Vector3),(0,a.Z)(this,"minDistance",0),(0,a.Z)(this,"maxDistance",1/0),(0,a.Z)(this,"minZoom",0),(0,a.Z)(this,"maxZoom",1/0),(0,a.Z)(this,"minPolarAngle",0),(0,a.Z)(this,"maxPolarAngle",Math.PI),(0,a.Z)(this,"minAzimuthAngle",-1/0),(0,a.Z)(this,"maxAzimuthAngle",1/0),(0,a.Z)(this,"enableDamping",!1),(0,a.Z)(this,"dampingFactor",.05),(0,a.Z)(this,"enableZoom",!0),(0,a.Z)(this,"zoomSpeed",1),(0,a.Z)(this,"enableRotate",!0),(0,a.Z)(this,"rotateSpeed",1),(0,a.Z)(this,"enablePan",!0),(0,a.Z)(this,"panSpeed",1),(0,a.Z)(this,"screenSpacePanning",!0),(0,a.Z)(this,"keyPanSpeed",7),(0,a.Z)(this,"autoRotate",!1),(0,a.Z)(this,"autoRotateSpeed",2),(0,a.Z)(this,"reverseOrbit",!1),(0,a.Z)(this,"keys",{LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"}),(0,a.Z)(this,"mouseButtons",{LEFT:o.MOUSE.ROTATE,MIDDLE:o.MOUSE.DOLLY,RIGHT:o.MOUSE.PAN}),(0,a.Z)(this,"touches",{ONE:o.TOUCH.ROTATE,TWO:o.TOUCH.DOLLY_PAN}),(0,a.Z)(this,"target0",void 0),(0,a.Z)(this,"position0",void 0),(0,a.Z)(this,"zoom0",void 0),(0,a.Z)(this,"_domElementKeyEvents",null),(0,a.Z)(this,"getPolarAngle",void 0),(0,a.Z)(this,"getAzimuthalAngle",void 0),(0,a.Z)(this,"setPolarAngle",void 0),(0,a.Z)(this,"setAzimuthalAngle",void 0),(0,a.Z)(this,"getDistance",void 0),(0,a.Z)(this,"listenToKeyEvents",void 0),(0,a.Z)(this,"saveState",void 0),(0,a.Z)(this,"reset",void 0),(0,a.Z)(this,"update",void 0),(0,a.Z)(this,"connect",void 0),(0,a.Z)(this,"dispose",void 0),this.object=e,this.domElement=t,this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object instanceof o.PerspectiveCamera?this.object.zoom:1,this.getPolarAngle=()=>d.phi,this.getAzimuthalAngle=()=>d.theta,this.setPolarAngle=e=>{let t=l(e,2*Math.PI),r=d.phi;r<0&&(r+=2*Math.PI),t<0&&(t+=2*Math.PI);let i=Math.abs(t-r);2*Math.PI-i{let t=l(e,2*Math.PI),r=d.theta;r<0&&(r+=2*Math.PI),t<0&&(t+=2*Math.PI);let i=Math.abs(t-r);2*Math.PI-in.object.position.distanceTo(n.target),this.listenToKeyEvents=e=>{e.addEventListener("keydown",Z),this._domElementKeyEvents=e},this.saveState=()=>{n.target0.copy(n.target),n.position0.copy(n.object.position),n.zoom0=n.object instanceof o.PerspectiveCamera?n.object.zoom:1},this.reset=()=>{n.target.copy(n.target0),n.object.position.copy(n.position0),n.object instanceof o.PerspectiveCamera&&(n.object.zoom=n.zoom0,n.object.updateProjectionMatrix()),n.dispatchEvent(r),n.update(),u=c.NONE},this.update=(()=>{const t=new o.Vector3,i=(new o.Quaternion).setFromUnitVectors(e.up,new o.Vector3(0,1,0)),s=i.clone().invert(),a=new o.Vector3,l=new o.Quaternion,v=2*Math.PI;return function(){const e=n.object.position;t.copy(e).sub(n.target),t.applyQuaternion(i),d.setFromVector3(t),n.autoRotate&&u===c.NONE&&L(2*Math.PI/60/60*n.autoRotateSpeed),n.enableDamping?(d.theta+=p.theta*n.dampingFactor,d.phi+=p.phi*n.dampingFactor):(d.theta+=p.theta,d.phi+=p.phi);let o=n.minAzimuthAngle,y=n.maxAzimuthAngle;return isFinite(o)&&isFinite(y)&&(o<-Math.PI?o+=v:o>Math.PI&&(o-=v),y<-Math.PI?y+=v:y>Math.PI&&(y-=v),d.theta=o<=y?Math.max(o,Math.min(y,d.theta)):d.theta>(o+y)/2?Math.max(o,d.theta):Math.min(y,d.theta)),d.phi=Math.max(n.minPolarAngle,Math.min(n.maxPolarAngle,d.phi)),d.makeSafe(),d.radius*=f,d.radius=Math.max(n.minDistance,Math.min(n.maxDistance,d.radius)),!0===n.enableDamping?n.target.addScaledVector(m,n.dampingFactor):n.target.add(m),t.setFromSpherical(d),t.applyQuaternion(s),e.copy(n.target).add(t),n.object.lookAt(n.target),!0===n.enableDamping?(p.theta*=1-n.dampingFactor,p.phi*=1-n.dampingFactor,m.multiplyScalar(1-n.dampingFactor)):(p.set(0,0,0),m.set(0,0,0)),f=1,!!(g||a.distanceToSquared(n.object.position)>h||8*(1-l.dot(n.object.quaternion))>h)&&(n.dispatchEvent(r),a.copy(n.object.position),l.copy(n.object.quaternion),g=!1,!0)}})(),this.connect=e=>{e===document&&console.error('THREE.OrbitControls: "document" should not be used as the target "domElement". Please use "renderer.domElement" instead.'),n.domElement=e,n.domElement.style.touchAction="none",n.domElement.addEventListener("contextmenu",J),n.domElement.addEventListener("pointerdown",W),n.domElement.addEventListener("pointercancel",X),n.domElement.addEventListener("wheel",Y)},this.dispose=()=>{var e,t,r,i,s,a;null===(e=n.domElement)||void 0===e||e.removeEventListener("contextmenu",J),null===(t=n.domElement)||void 0===t||t.removeEventListener("pointerdown",W),null===(r=n.domElement)||void 0===r||r.removeEventListener("pointercancel",X),null===(i=n.domElement)||void 0===i||i.removeEventListener("wheel",Y),null===(s=n.domElement)||void 0===s||s.ownerDocument.removeEventListener("pointermove",j),null===(a=n.domElement)||void 0===a||a.ownerDocument.removeEventListener("pointerup",q),null!==n._domElementKeyEvents&&n._domElementKeyEvents.removeEventListener("keydown",Z)};const n=this,r={type:"change"},i={type:"start"},s={type:"end"},c={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6};let u=c.NONE;const h=1e-6,d=new o.Spherical,p=new o.Spherical;let f=1;const m=new o.Vector3;let g=!1;const v=new o.Vector2,y=new o.Vector2,x=new o.Vector2,_=new o.Vector2,b=new o.Vector2,w=new o.Vector2,M=new o.Vector2,S=new o.Vector2,E=new o.Vector2,T=[],A={};function R(){return Math.pow(.95,n.zoomSpeed)}function L(e){n.reverseOrbit?p.theta+=e:p.theta-=e}function C(e){n.reverseOrbit?p.phi+=e:p.phi-=e}const P=(()=>{const e=new o.Vector3;return function(t,n){e.setFromMatrixColumn(n,0),e.multiplyScalar(-t),m.add(e)}})(),I=(()=>{const e=new o.Vector3;return function(t,r){!0===n.screenSpacePanning?e.setFromMatrixColumn(r,1):(e.setFromMatrixColumn(r,0),e.crossVectors(n.object.up,e)),e.multiplyScalar(t),m.add(e)}})(),D=(()=>{const e=new o.Vector3;return function(t,r){const i=n.domElement;if(i&&n.object instanceof o.PerspectiveCamera&&n.object.isPerspectiveCamera){const s=n.object.position;e.copy(s).sub(n.target);let a=e.length();a*=Math.tan(n.object.fov/2*Math.PI/180),P(2*t*a/i.clientHeight,n.object.matrix),I(2*r*a/i.clientHeight,n.object.matrix)}else i&&n.object instanceof o.OrthographicCamera&&n.object.isOrthographicCamera?(P(t*(n.object.right-n.object.left)/n.object.zoom/i.clientWidth,n.object.matrix),I(r*(n.object.top-n.object.bottom)/n.object.zoom/i.clientHeight,n.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),n.enablePan=!1)}})();function N(e){n.object instanceof o.PerspectiveCamera&&n.object.isPerspectiveCamera?f/=e:n.object instanceof o.OrthographicCamera&&n.object.isOrthographicCamera?(n.object.zoom=Math.max(n.minZoom,Math.min(n.maxZoom,n.object.zoom*e)),n.object.updateProjectionMatrix(),g=!0):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),n.enableZoom=!1)}function O(e){n.object instanceof o.PerspectiveCamera&&n.object.isPerspectiveCamera?f*=e:n.object instanceof o.OrthographicCamera&&n.object.isOrthographicCamera?(n.object.zoom=Math.max(n.minZoom,Math.min(n.maxZoom,n.object.zoom/e)),n.object.updateProjectionMatrix(),g=!0):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),n.enableZoom=!1)}function z(e){v.set(e.clientX,e.clientY)}function F(e){_.set(e.clientX,e.clientY)}function U(){if(1==T.length)v.set(T[0].pageX,T[0].pageY);else{const e=.5*(T[0].pageX+T[1].pageX),t=.5*(T[0].pageY+T[1].pageY);v.set(e,t)}}function B(){if(1==T.length)_.set(T[0].pageX,T[0].pageY);else{const e=.5*(T[0].pageX+T[1].pageX),t=.5*(T[0].pageY+T[1].pageY);_.set(e,t)}}function H(){const e=T[0].pageX-T[1].pageX,t=T[0].pageY-T[1].pageY,n=Math.sqrt(e*e+t*t);M.set(0,n)}function k(e){if(1==T.length)y.set(e.pageX,e.pageY);else{const t=$(e),n=.5*(e.pageX+t.x),r=.5*(e.pageY+t.y);y.set(n,r)}x.subVectors(y,v).multiplyScalar(n.rotateSpeed);const t=n.domElement;t&&(L(2*Math.PI*x.x/t.clientHeight),C(2*Math.PI*x.y/t.clientHeight)),v.copy(y)}function G(e){if(1==T.length)b.set(e.pageX,e.pageY);else{const t=$(e),n=.5*(e.pageX+t.x),r=.5*(e.pageY+t.y);b.set(n,r)}w.subVectors(b,_).multiplyScalar(n.panSpeed),D(w.x,w.y),_.copy(b)}function V(e){const t=$(e),r=e.pageX-t.x,i=e.pageY-t.y,s=Math.sqrt(r*r+i*i);S.set(0,s),E.set(0,Math.pow(S.y/M.y,n.zoomSpeed)),N(E.y),M.copy(S)}function W(e){var t,r;!1!==n.enabled&&(0===T.length&&(null===(t=n.domElement)||void 0===t||t.ownerDocument.addEventListener("pointermove",j),null===(r=n.domElement)||void 0===r||r.ownerDocument.addEventListener("pointerup",q)),function(e){T.push(e)}(e),"touch"===e.pointerType?function(e){switch(Q(e),T.length){case 1:switch(n.touches.ONE){case o.TOUCH.ROTATE:if(!1===n.enableRotate)return;U(),u=c.TOUCH_ROTATE;break;case o.TOUCH.PAN:if(!1===n.enablePan)return;B(),u=c.TOUCH_PAN;break;default:u=c.NONE}break;case 2:switch(n.touches.TWO){case o.TOUCH.DOLLY_PAN:if(!1===n.enableZoom&&!1===n.enablePan)return;n.enableZoom&&H(),n.enablePan&&B(),u=c.TOUCH_DOLLY_PAN;break;case o.TOUCH.DOLLY_ROTATE:if(!1===n.enableZoom&&!1===n.enableRotate)return;n.enableZoom&&H(),n.enableRotate&&U(),u=c.TOUCH_DOLLY_ROTATE;break;default:u=c.NONE}break;default:u=c.NONE}u!==c.NONE&&n.dispatchEvent(i)}(e):function(e){let t;switch(e.button){case 0:t=n.mouseButtons.LEFT;break;case 1:t=n.mouseButtons.MIDDLE;break;case 2:t=n.mouseButtons.RIGHT;break;default:t=-1}switch(t){case o.MOUSE.DOLLY:if(!1===n.enableZoom)return;!function(e){M.set(e.clientX,e.clientY)}(e),u=c.DOLLY;break;case o.MOUSE.ROTATE:if(e.ctrlKey||e.metaKey||e.shiftKey){if(!1===n.enablePan)return;F(e),u=c.PAN}else{if(!1===n.enableRotate)return;z(e),u=c.ROTATE}break;case o.MOUSE.PAN:if(e.ctrlKey||e.metaKey||e.shiftKey){if(!1===n.enableRotate)return;z(e),u=c.ROTATE}else{if(!1===n.enablePan)return;F(e),u=c.PAN}break;default:u=c.NONE}u!==c.NONE&&n.dispatchEvent(i)}(e))}function j(e){!1!==n.enabled&&("touch"===e.pointerType?function(e){switch(Q(e),u){case c.TOUCH_ROTATE:if(!1===n.enableRotate)return;k(e),n.update();break;case c.TOUCH_PAN:if(!1===n.enablePan)return;G(e),n.update();break;case c.TOUCH_DOLLY_PAN:if(!1===n.enableZoom&&!1===n.enablePan)return;!function(e){n.enableZoom&&V(e),n.enablePan&&G(e)}(e),n.update();break;case c.TOUCH_DOLLY_ROTATE:if(!1===n.enableZoom&&!1===n.enableRotate)return;!function(e){n.enableZoom&&V(e),n.enableRotate&&k(e)}(e),n.update();break;default:u=c.NONE}}(e):function(e){if(!1!==n.enabled)switch(u){case c.ROTATE:if(!1===n.enableRotate)return;!function(e){y.set(e.clientX,e.clientY),x.subVectors(y,v).multiplyScalar(n.rotateSpeed);const t=n.domElement;t&&(L(2*Math.PI*x.x/t.clientHeight),C(2*Math.PI*x.y/t.clientHeight)),v.copy(y),n.update()}(e);break;case c.DOLLY:if(!1===n.enableZoom)return;!function(e){S.set(e.clientX,e.clientY),E.subVectors(S,M),E.y>0?N(R()):E.y<0&&O(R()),M.copy(S),n.update()}(e);break;case c.PAN:if(!1===n.enablePan)return;!function(e){b.set(e.clientX,e.clientY),w.subVectors(b,_).multiplyScalar(n.panSpeed),D(w.x,w.y),_.copy(b),n.update()}(e)}}(e))}function q(e){var t,r,i;K(e),0===T.length&&(null===(t=n.domElement)||void 0===t||t.releasePointerCapture(e.pointerId),null===(r=n.domElement)||void 0===r||r.ownerDocument.removeEventListener("pointermove",j),null===(i=n.domElement)||void 0===i||i.ownerDocument.removeEventListener("pointerup",q)),n.dispatchEvent(s),u=c.NONE}function X(e){K(e)}function Y(e){!1===n.enabled||!1===n.enableZoom||u!==c.NONE&&u!==c.ROTATE||(e.preventDefault(),n.dispatchEvent(i),function(e){e.deltaY<0?O(R()):e.deltaY>0&&N(R()),n.update()}(e),n.dispatchEvent(s))}function Z(e){!1!==n.enabled&&!1!==n.enablePan&&function(e){let t=!1;switch(e.code){case n.keys.UP:D(0,n.keyPanSpeed),t=!0;break;case n.keys.BOTTOM:D(0,-n.keyPanSpeed),t=!0;break;case n.keys.LEFT:D(n.keyPanSpeed,0),t=!0;break;case n.keys.RIGHT:D(-n.keyPanSpeed,0),t=!0}t&&(e.preventDefault(),n.update())}(e)}function J(e){!1!==n.enabled&&e.preventDefault()}function K(e){delete A[e.pointerId];for(let t=0;t{const f=(0,i.Ky)((e=>e.invalidate)),m=(0,i.Ky)((e=>e.camera)),g=(0,i.Ky)((e=>e.gl)),v=(0,i.Ky)((e=>e.events)),y=(0,i.Ky)((e=>e.set)),x=(0,i.Ky)((e=>e.get)),_=(0,i.Ky)((e=>e.performance)),b=t||m,w=a||v.connected||g.domElement,M=s.useMemo((()=>new c(b)),[b]);return(0,i.xQ)((()=>{M.enabled&&M.update()})),s.useEffect((()=>(M.connect(w),()=>{M.dispose()})),[w,n,M,f]),s.useEffect((()=>{const e=e=>{f(),n&&_.regress(),l&&l(e)};return M.addEventListener("change",e),u&&M.addEventListener("start",u),h&&M.addEventListener("end",h),()=>{u&&M.removeEventListener("start",u),h&&M.removeEventListener("end",h),M.removeEventListener("change",e)}}),[l,u,h]),s.useEffect((()=>{if(e){const e=x().controls;return y({controls:M}),()=>y({controls:e})}}),[e,M]),s.createElement("primitive",(0,r.Z)({ref:p,object:M,enableDamping:o},d))}))},762694:(e,t,n)=>{"use strict";n.d(t,{c:()=>a});var r=n(722122),i=n(124852),s=n(315817);const a=i.forwardRef((({makeDefault:e,...t},n)=>{const a=(0,s.Ky)((({set:e})=>e)),o=(0,s.Ky)((({camera:e})=>e)),l=(0,s.Ky)((({size:e})=>e)),c=i.useRef();return i.useLayoutEffect((()=>{const{current:e}=c;e&&!t.manual&&(e.aspect=l.width/l.height,e.updateProjectionMatrix())}),[l,t]),i.useLayoutEffect((()=>{if(e&&c.current){const e=o;return a((()=>({camera:c.current}))),()=>a((()=>({camera:e})))}}),[o,c,e,a]),i.createElement("perspectiveCamera",(0,r.Z)({ref:(u=[c,n],function(e){u.forEach((function(t){"function"==typeof t?t(e):null!=t&&(t.current=e)}))})},t));var u}))},629521:(e,t,n)=>{"use strict";n.d(t,{S:()=>a});var r=n(2212),i=n(914671);let s=0;const a=(0,i.Z)((e=>(r.DefaultLoadingManager.onStart=(t,n,r)=>{e({active:!0,item:t,loaded:n,total:r,progress:(n-s)/(r-s)*100})},r.DefaultLoadingManager.onLoad=()=>{e({active:!1})},r.DefaultLoadingManager.onError=t=>e((e=>({errors:[...e.errors,t]}))),r.DefaultLoadingManager.onProgress=(t,n,r)=>{n===r&&(s=r),e({active:!0,item:t,loaded:n,total:r,progress:(n-s)/(r-s)*100||100})},{errors:[],active:!1,progress:0,item:"",loaded:0,total:0})))},477854:(e,t,n)=>{"use strict";n.d(t,{V:()=>g});var r=n(722122),i=n(124852),s=n(180307),a=n(2212),o=n(315817);const l=new a.Vector3,c=new a.Vector3,u=new a.Vector3;function h(e,t,n){const r=l.setFromMatrixPosition(e.matrixWorld);r.project(t);const i=n.width/2,s=n.height/2;return[r.x*i+i,-r.y*s+s]}const d=e=>Math.abs(e)<1e-10?0:e;function p(e,t,n=""){let r="matrix3d(";for(let n=0;16!==n;n++)r+=d(t[n]*e.elements[n])+(15!==n?",":")");return n+r}const f=(m=[1,-1,1,1,1,-1,1,1,1,-1,1,1,1,-1,1,1],e=>p(e,m));var m;const g=i.forwardRef((({children:e,eps:t=.001,style:n,className:m,prepend:g,center:v,fullscreen:y,portal:x,distanceFactor:_,sprite:b=!1,transform:w=!1,occlude:M,onOcclude:S,zIndexRange:E=[16777271,0],calculatePosition:T=h,as:A="div",wrapperClass:R,pointerEvents:L="auto",...C},P)=>{var I;const D=(0,o.Ky)((({gl:e})=>e)),N=(0,o.Ky)((({camera:e})=>e)),O=(0,o.Ky)((({scene:e})=>e)),z=(0,o.Ky)((({size:e})=>e)),F=(0,o.Ky)((({raycaster:e})=>e)),[U]=i.useState((()=>document.createElement(A))),B=i.useRef(null),H=i.useRef(0),k=i.useRef([0,0]),G=i.useRef(null),V=i.useRef(null),W=null!==(I=null==x?void 0:x.current)&&void 0!==I?I:D.domElement.parentNode;i.useEffect((()=>{if(B.current){if(O.updateMatrixWorld(),w)U.style.cssText="position:absolute;top:0;left:0;pointer-events:none;overflow:hidden;";else{const e=T(B.current,N,z);U.style.cssText=`position:absolute;top:0;left:0;transform:translate3d(${e[0]}px,${e[1]}px,0);transform-origin:0 0;`}return W&&(g?W.prepend(U):W.appendChild(U)),()=>{W&&W.removeChild(U),s.unmountComponentAtNode(U)}}}),[W,w]),i.useLayoutEffect((()=>{R&&(U.className=R)}),[R]);const j=i.useMemo((()=>w?{position:"absolute",top:0,left:0,width:z.width,height:z.height,transformStyle:"preserve-3d",pointerEvents:"none"}:{position:"absolute",transform:v?"translate3d(-50%,-50%,0)":"none",...y&&{top:-z.height/2,left:-z.width/2,width:z.width,height:z.height},...n}),[n,v,y,z,w]),q=i.useMemo((()=>({position:"absolute",pointerEvents:L})),[L]);i.useLayoutEffect((()=>{w?s.render(i.createElement("div",{ref:G,style:j},i.createElement("div",{ref:V,style:q},i.createElement("div",{ref:P,className:m,style:n,children:e}))),U):s.render(i.createElement("div",{ref:P,style:j,className:m,children:e}),U)}));const X=i.useRef(!0);return(0,o.xQ)((()=>{if(B.current){N.updateMatrixWorld(),B.current.updateWorldMatrix(!0,!1);const e=w?k.current:T(B.current,N,z);if(w||Math.abs(H.current-N.zoom)>t||Math.abs(k.current[0]-e[0])>t||Math.abs(k.current[1]-e[1])>t){const t=function(e,t){const n=l.setFromMatrixPosition(e.matrixWorld),r=c.setFromMatrixPosition(t.matrixWorld),i=n.sub(r),s=t.getWorldDirection(u);return i.angleTo(s)>Math.PI/2}(B.current,N);let n=!1;"boolean"==typeof M?!0===M&&(n=[O]):Array.isArray(M)&&(n=M.map((e=>e.current)));const r=X.current;if(n){const e=function(e,t,n,r){const i=l.setFromMatrixPosition(e.matrixWorld),s=i.clone();s.project(t),n.setFromCamera(s,t);const a=n.intersectObjects(r,!0);if(a.length){const e=a[0].distance;return i.distanceTo(n.ray.origin){return p(e,[1/(n=t),1/n,1/n,1,-1/n,-1/n,-1/n,-1,1/n,1/n,1/n,1,1,1,1,1],"translate(-50%,-50%)");var n})(u,1/((_||10)/400)))}else{const t=void 0===_?1:function(e,t){if(t instanceof a.OrthographicCamera)return t.zoom;if(t instanceof a.PerspectiveCamera){const n=l.setFromMatrixPosition(e.matrixWorld),r=c.setFromMatrixPosition(t.matrixWorld),i=t.fov*Math.PI/180,s=n.distanceTo(r);return 1/(2*Math.tan(i/2)*s)}return 1}(B.current,N)*_;U.style.transform=`translate3d(${e[0]}px,${e[1]}px,0) scale(${t})`}k.current=e,H.current=N.zoom}}})),i.createElement("group",(0,r.Z)({},C,{ref:B}))}))},315817:(e,t,n)=>{"use strict";n.d(t,{Xz:()=>B,jz:()=>ee,xQ:()=>k,U2:()=>V,Ky:()=>H});var r=n(2212),i=n(124852),s=n(914671);function a(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;rs.response=null==e||e)).catch((e=>s.error=null!=e?e:"unknown error")).then((()=>{r>0&&setTimeout((()=>{const e=t.indexOf(s);-1!==e&&t.splice(e,1)}),r)}))};if(t.push(s),!i)throw s.promise}function f(e,...t){return p(e,d,t,f.lifespan)}f.lifespan=0,f.clear=(...e)=>function(e,...t){if(void 0===t||0===t.length)e.splice(0,e.length);else{const n=e.find((e=>h()(t,e.args)));if(n){const t=e.indexOf(n);-1!==t&&e.splice(t,1)}}}(d,...e),f.preload=(e,...t)=>{p(e,d,t,f.lifespan,!0)},f.peek=(...e)=>{var t;return null==(t=d.find((t=>h()(e,t.args))))?void 0:t.response};var m=n(720296),g=n.n(m);function v(e){let{debounce:t,scroll:n,polyfill:r,offsetSize:s}=void 0===e?{debounce:0,scroll:!1,offsetSize:!1}:e;const a=r||("undefined"==typeof window?class{}:window.ResizeObserver);if(!a)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");const[o,l]=(0,i.useState)({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),c=(0,i.useRef)({element:null,scrollContainers:null,resizeObserver:null,lastBounds:o}),u=t?"number"==typeof t?t:t.scroll:null,h=t?"number"==typeof t?t:t.resize:null,d=(0,i.useRef)(!1);(0,i.useEffect)((()=>(d.current=!0,()=>{d.current=!1})));const[p,f,m]=(0,i.useMemo)((()=>{const e=()=>{if(!c.current.element)return;const{left:e,top:t,width:n,height:r,bottom:i,right:a,x:o,y:u}=c.current.element.getBoundingClientRect(),h={left:e,top:t,width:n,height:r,bottom:i,right:a,x:o,y:u};c.current.element instanceof HTMLElement&&s&&(h.height=c.current.element.offsetHeight,h.width=c.current.element.offsetWidth),Object.freeze(h),d.current&&!_(c.current.lastBounds,h)&&l(c.current.lastBounds=h)};return[e,h?g()(e,h):e,u?g()(e,u):e]}),[l,s,u,h]);function v(){c.current.scrollContainers&&(c.current.scrollContainers.forEach((e=>e.removeEventListener("scroll",m,!0))),c.current.scrollContainers=null),c.current.resizeObserver&&(c.current.resizeObserver.disconnect(),c.current.resizeObserver=null)}function x(){c.current.element&&(c.current.resizeObserver=new a(m),c.current.resizeObserver.observe(c.current.element),n&&c.current.scrollContainers&&c.current.scrollContainers.forEach((e=>e.addEventListener("scroll",m,{capture:!0,passive:!0}))))}var b,w,M;return b=m,w=Boolean(n),(0,i.useEffect)((()=>{if(w){const e=b;return window.addEventListener("scroll",e,{capture:!0,passive:!0}),()=>{window.removeEventListener("scroll",e,!0)}}}),[b,w]),M=f,(0,i.useEffect)((()=>{const e=M;return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[M]),(0,i.useEffect)((()=>{v(),x()}),[n,m,f]),(0,i.useEffect)((()=>v),[]),[e=>{e&&e!==c.current.element&&(v(),c.current.element=e,c.current.scrollContainers=y(e),x())},o,p]}function y(e){const t=[];if(!e||e===document.body)return t;const{overflow:n,overflowX:r,overflowY:i}=window.getComputedStyle(e);return[n,r,i].some((e=>"auto"===e||"scroll"===e))&&t.push(e),[...t,...y(e.parentElement)]}const x=["x","y","top","bottom","left","right","width","height"],_=(e,t)=>x.every((n=>e[n]===t[n])),b={obj:e=>e===Object(e)&&!b.arr(e)&&"function"!=typeof e,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e,arr:e=>Array.isArray(e),equ(e,t){if(typeof e!=typeof t||!!e!=!!t)return!1;if(b.str(e)||b.num(e)||b.obj(e))return e===t;if(b.arr(e)&&e==t)return!0;let n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!b.und(n)||e===t}},w=e=>e&&!!e.getState,M=(e,t)=>{var n,r;return{root:w(e)?e:null!=(n=null==(r=e.__r3f)?void 0:r.root)?n:t.__r3f.root,container:w(e)?e.getState().scene:e}},S="__default",E={},T=["children","key","ref"];let A={};function R(e,t){const n=e;return n.__r3f||(n.__r3f={root:null,memoizedProps:{},objects:[],...t}),e}const L=e=>e&&e.isOrthographicCamera,C=i.createContext(null),P=(e,t,n,i)=>{const{gl:o,size:l,shadows:c=!1,linear:u=!1,vr:h=!1,orthographic:d=!1,frameloop:p="always",dpr:f=1,performance:m,clock:g=new r.Clock,raycaster:v,camera:y,onPointerMissed:x}=i;c&&(o.shadowMap.enabled=!0,"object"==typeof c?Object.assign(o.shadowMap,c):o.shadowMap.type=r.PCFSoftShadowMap),u||(o.toneMapping=r.ACESFilmicToneMapping,o.outputEncoding=r.sRGBEncoding);const _=(0,s.Z)(((s,a)=>{const l=new r.Raycaster;e(l,{enabled:!0,...v},{});const c=y instanceof r.Camera,_=c?y:d?new r.OrthographicCamera(0,0,0,0,.1,1e3):new r.PerspectiveCamera(75,0,.1,1e3);function b(e){return Array.isArray(e)?Math.max(Math.min(e[0],window.devicePixelRatio),e[1]):e}c||(_.position.z=5,d&&(_.zoom=100),y&&e(_,y,{}),_.lookAt(0,0,0));const w=b(f),M=new r.Vector3,S=new r.Vector3;function E(e=a().camera,t=S,n=a().size){const{width:r,height:i}=n,s=r/i,o=e.getWorldPosition(M).distanceTo(t);if(L(e))return{width:r/e.zoom,height:i/e.zoom,factor:1,distance:o,aspect:s};{const t=e.fov*Math.PI/180,n=2*Math.tan(t/2)*o,a=n*(r/i);return{width:a,height:n,factor:r/a,distance:o,aspect:s}}}let T;const A=e=>s((t=>({performance:{...t.performance,current:e}})));return{gl:o,set:s,get:a,invalidate:()=>t(a()),advance:(e,t)=>n(e,t,a()),linear:u,scene:R(new r.Scene),camera:_,raycaster:l,clock:g,mouse:new r.Vector2,vr:h,frameloop:p,onPointerMissed:x,performance:{current:1,min:.5,max:1,debounce:200,...m,regress:()=>{const e=a();T&&clearTimeout(T),e.performance.current!==e.performance.min&&A(e.performance.min),T=setTimeout((()=>A(a().performance.max)),e.performance.debounce)}},size:{width:0,height:0},viewport:{initialDpr:w,dpr:w,width:0,height:0,aspect:0,distance:0,factor:0,getCurrentViewport:E},setSize:(e,t)=>{const n={width:e,height:t};s((e=>({size:n,viewport:{...e.viewport,...E(_,S,n)}})))},setDpr:e=>s((t=>({viewport:{...t.viewport,dpr:b(e)}}))),events:{connected:!1},internal:{active:!1,priority:0,frames:0,lastProps:i,interaction:[],subscribers:[],captured:void 0,initialClick:[0,0],initialHits:[],subscribe:(e,t=0)=>{const n=a().internal;return t&&n.priority++,n.subscribers.push({ref:e,priority:t}),n.subscribers=n.subscribers.sort(((e,t)=>e.priority-t.priority)),()=>{null!=n&&n.subscribers&&(t&&n.priority--,n.subscribers=n.subscribers.filter((t=>t.ref!==e)))}}}}}));_.subscribe((()=>{const{camera:e,size:t,viewport:n,internal:i}=_.getState();i.lastProps.camera instanceof r.Camera||(L(e)?(e.left=t.width/-2,e.right=t.width/2,e.top=t.height/2,e.bottom=t.height/-2):e.aspect=t.width/t.height,e.updateProjectionMatrix(),e.updateMatrixWorld()),o.setPixelRatio(n.dpr),o.setSize(t.width,t.height)}),(e=>[e.viewport.dpr,e.size]),a);const b=_.getState();return l&&b.setSize(l.width,l.height),_.subscribe((e=>t(e))),_};let I,D=[],N=[],O=[];function z(e,t){for(I=0;I["Move","Over","Enter","Out","Leave"].some((t=>{var n;return null==(n=e.__r3f.handlers)?void 0:n["onPointer"+t]}))))}function a(e){return(e.eventObject||e.object).uuid+"/"+e.index}function o(e){Array.from(t.values()).forEach((n=>{if(!e.length||!e.find((e=>e.object===n.object&&e.index===n.index))){const r=n.eventObject.__r3f.handlers;if(t.delete(a(n)),r){const t={...n,intersections:e||[]};null==r.onPointerOut||r.onPointerOut(t),null==r.onPointerLeave||r.onPointerLeave(t)}}}))}function l(e,t){t.forEach((t=>{var n;return null==(n=t.__r3f.handlers)||null==n.onPointerMissed?void 0:n.onPointerMissed(e)}))}return{handlePointer:r=>{switch(r){case"onPointerLeave":case"onPointerCancel":return()=>o([]);case"onLostPointerCapture":return()=>(e.getState().internal.captured=void 0,o([]))}return c=>{const{onPointerMissed:u,internal:h}=e.getState();!function(t){var n;const r=e.getState(),{raycaster:i,mouse:s,camera:a,size:o}=r,{offsetX:l,offsetY:c}=null!=(n=null==i.computeOffsets?void 0:i.computeOffsets(t,r))?n:t,{width:u,height:h}=o;s.set(l/u*2-1,-c/h*2+1),i.setFromCamera(s,a)}(c);const d="onPointerMove"===r,p=function(t,n){const{internal:r}=e.getState();return r.captured&&"click"!==n.type&&"wheel"!==n.type&&r.captured.forEach((e=>{t.find((t=>t.eventObject===e.eventObject))||t.push(e)})),t}(function(t){const n=e.getState(),{raycaster:r,internal:i}=n;if(!r.enabled)return[];const s=new Set,o=[],l=t?t(i.interaction):i.interaction;let c=r.intersectObjects(l,!0).filter((e=>{const t=a(e);return!s.has(t)&&(s.add(t),!0)}));r.filter&&(c=r.filter(c,n));for(const e of c){let t=e.object;for(;t;)t.__r3f.handlers&&o.push({...e,eventObject:t}),t=t.parent}return o}(d?s:void 0),c);d&&o(p),function(r,s,a){const{raycaster:l,mouse:c,camera:u,internal:h}=e.getState();if(r.length){const e=n.set(c.x,c.y,0).unproject(u),d="click"===s.type?i(s):0,p=e=>s.target.releasePointerCapture(e),f={stopped:!1,captured:!1};for(const n of r){const i=e=>{f.captured||(f.captured=!0,h.captured=[]),h.captured&&h.captured.push(n),s.target.setPointerCapture(e)};let c={};for(let e in Object.getPrototypeOf(s))c[e]=s[e];let m={...n,...c,intersections:r,stopped:f.stopped,delta:d,unprojectedPoint:e,ray:l.ray,camera:u,stopPropagation:()=>{const e=h.captured;(!e||e.find((e=>e.eventObject.id===n.eventObject.id)))&&(m.stopped=f.stopped=!0,t.size&&Array.from(t.values()).find((e=>e.eventObject===n.eventObject)))&&o([...r.slice(0,r.indexOf(n)),n])},target:{...s.target,setPointerCapture:i,releasePointerCapture:p},currentTarget:{...s.currentTarget,setPointerCapture:i,releasePointerCapture:p},sourceEvent:s};if(a(m),!0===f.stopped)break}}}(p,c,(e=>{const n=e.eventObject,i=n.__r3f.handlers;if(i)if(d){if(i.onPointerOver||i.onPointerEnter||i.onPointerOut||i.onPointerLeave){const n=a(e),r=t.get(n);r?r.stopped&&e.stopPropagation():(t.set(n,e),null==i.onPointerOver||i.onPointerOver(e),null==i.onPointerEnter||i.onPointerEnter(e))}null==i.onPointerMove||i.onPointerMove(e)}else{const t=null==i?void 0:i[r];t&&("onClick"!==r&&"onContextMenu"!==r&&"onDoubleClick"!==r||h.initialHits.includes(n))&&(t(e),l(c,h.interaction.filter((e=>e!==n))))}})),"onPointerDown"===r&&(h.initialClick=[c.offsetX,c.offsetY],h.initialHits=p.map((e=>e.eventObject))),"onClick"!==r&&"onContextMenu"!==r&&"onDoubleClick"!==r||p.length||i(c)<=2&&(l(c,h.interaction),u&&u())}}}}(e),n={onClick:"click",onContextMenu:"contextmenu",onDoubleClick:"dblclick",onWheel:"wheel",onPointerDown:"pointerdown",onPointerUp:"pointerup",onPointerLeave:"pointerleave",onPointerMove:"pointermove",onPointerCancel:"pointercancel",onLostPointerCapture:"lostpointercapture"};return{connected:!1,handlers:Object.keys(n).reduce(((e,n)=>({...e,[n]:t(n)})),{}),connect:t=>{var r;const{set:i,events:s}=e.getState();null==s.disconnect||s.disconnect(),i((e=>({events:{...e.events,connected:t}}))),Object.entries(null!=(r=null==s?void 0:s.handlers)?r:[]).forEach((([e,r])=>t.addEventListener(n[e],r,{passive:!0})))},disconnect:()=>{const{set:t,events:r}=e.getState();var i;r.connected&&(Object.entries(null!=(i=r.handlers)?i:[]).forEach((([e,t])=>{r&&r.connected instanceof HTMLElement&&r.connected.removeEventListener(n[e],t)})),t((e=>({events:{...e.events,connected:!1}}))))}}}function B({children:e,resize:t,style:n,className:r,...s}){const[a,o]=v({scroll:!0,debounce:{scroll:50,resize:0},...t}),l=i.useRef(null);return i.useLayoutEffect((()=>{o.width>0&&o.height>0&&function(e,t,{gl:n,size:r,mode:s=j[1],events:a,onCreated:o,...l}={}){var c,u,h,d,p;r||(r={width:null!=(u=null==(h=t.parentElement)?void 0:h.clientWidth)?u:0,height:null!=(d=null==(p=t.parentElement)?void 0:p.clientHeight)?d:0});let f=W.get(t),m=null==f?void 0:f.fiber,g=null==f?void 0:f.store,v=null==(c=g)?void 0:c.getState();if(m&&v){const e=v.internal.lastProps;void 0===l.dpr||b.equ(e.dpr,l.dpr)||v.setDpr(l.dpr),void 0===r||b.equ(e.size,r)||v.setSize(r.width,r.height),l.linear!==e.linear&&(Q(t),m=void 0)}if(!m){g=P(Z,q,X,{gl:J(n,t),size:r,...l});const e=g.getState();e.get,m=Y.createContainer(g,j.indexOf(s),!1,null),W.set(t,{fiber:m,store:g}),a&&e.set({events:a(g)}),l.vr&&n.xr&&n.setAnimationLoop&&(n.xr.enabled=!0,n.setAnimationLoop((t=>X(t,!0,e))))}if(g&&m)return Y.updateContainer(i.createElement(K,{store:g,element:e,onCreated:o,target:t}),m,null,(()=>{})),g;throw"Error creating root!"}(e,l.current,{...s,size:o,events:U})}),[o,e]),i.useEffect((()=>{const e=l.current;return()=>Q(e)}),[]),i.createElement("div",{ref:a,className:r,style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",...n}},i.createElement("canvas",{ref:l,style:{display:"block"}}))}function H(e=(e=>e),t){const n=i.useContext(C);if(!n)throw"R3F hooks can only be used within the Canvas component!";return n(e,t)}function k(e,t=0){const{subscribe:n}=i.useContext(C).getState().internal,r=i.useRef(e);return i.useLayoutEffect((()=>{r.current=e}),[e]),i.useEffect((()=>{const e=n(r,t);return()=>e()}),[t,n]),null}function G(e,t){return function(n,...r){const i=new n;return e&&e(i),Promise.all(r.map((e=>new Promise(((n,r)=>i.load(e,(e=>{e.scene&&Object.assign(e,function(e){const t={nodes:{},materials:{}};return e&&e.traverse((e=>{e.name&&(t.nodes[e.name]=e),e.material&&!t.materials[e.material.name]&&(t.materials[e.material.name]=e.material)})),t}(e.scene)),n(e)}),t,(t=>{var n;return r(null!=(n=t.message)?n:`failure loading ${e}`)})))))))}}function V(e,t,n,r){const i=Array.isArray(t)?t:[t],s=f(G(n,r),e,...i);return Array.isArray(t)?s:s[0]}V.preload=function(e,t,n){const r=Array.isArray(t)?t:[t];return f.preload(G(n),e,...r)};const W=new Map,j=["legacy","blocking","concurrent"],{invalidate:q,advance:X}=function(e){let t,n=!1;function r(i){if(n=!0,t=0,z(D,i),e.forEach((e=>{const n=e.store.getState();n.internal.active&&("always"===n.frameloop||n.internal.frames>0)&&(t+=F(0,n))})),z(N,i),t>0)return requestAnimationFrame(r);z(O,i),n=!1}return{loop:r,invalidate:function t(i){if(!i)return e.forEach((e=>t(e.store.getState())));!i.vr&&i.internal.active&&"never"!==i.frameloop&&(i.internal.frames=Math.min(60,i.internal.frames+1),n||(n=!0,requestAnimationFrame(r)))},advance:function(t,n=!0,r){n&&z(D,t),r?F(0,r):e.forEach((e=>F(0,e.store.getState()))),n&&z(N,t)}}}(W),{reconciler:Y,applyProps:Z}=function(e){function t(e,t,s={},a=!1){var o,l,c;const u=null!=(o=null==e?void 0:e.__r3f)?o:{},h=u.root,d=null!=(l=null==h||null==h.getState?void 0:h.getState())?l:{},p=[],f=[],m={};let g=0;Object.entries(t).forEach((([e,t])=>{-1===T.indexOf(e)&&(m[e]=t)})),u.memoizedProps&&u.memoizedProps.args&&(m.args=u.memoizedProps.args),u.memoizedProps&&u.memoizedProps.attach&&(m.attach=u.memoizedProps.attach),e.__r3f&&(e.__r3f.memoizedProps=m);let v=Object.keys(t);for(g=0;g-1&&delete _[v[g]];const w=Object.entries(_);for(g=0;g0){if(w.forEach((([t,i])=>{if(!f.includes(t)){let s=e,a=s[t];if(t.includes("-")){const n=t.split("-");if(a=n.reduce(((e,t)=>e[t]),e),!a||!a.set){const[r,...i]=n.reverse();s=i.reverse().reduce(((e,t)=>e[t]),e),t=r}}if(i===S+"remove")if(a.constructor)i=new a.constructor(m.args);else if(s.constructor){const e=new s.constructor(s.__r3f.memoizedProps.args);i=e[a],e.dispose&&e.dispose()}else i=0;if(a&&a.set&&(a.copy||a instanceof r.Layers)){if(Array.isArray(i))a.fromArray?a.fromArray(i):a.set(...i);else if(a.copy&&i&&i.constructor&&a.constructor.name===i.constructor.name)a.copy(i);else if(void 0!==i){const e=a instanceof r.Color;!e&&a.setScalar?a.setScalar(i):a.set(i),!d.linear&&e&&a.convertSRGBToLinear()}}else s[t]=i,!d.linear&&s[t]instanceof r.Texture&&(s[t].encoding=r.sRGBEncoding);n(e)}})),a&&h&&e.raycast&&u.handlers){u.handlers=void 0;const t=d.internal.interaction.indexOf(e);t>-1&&d.internal.interaction.splice(t,1)}f.length&&(a&&h&&e.raycast&&d.internal.interaction.push(e),u.handlers=f.reduce(((e,n)=>({...e,[n]:t[n]})),{})),e.parent&&i(e)}}function n(e){var t,n;const r=null==(t=e.__r3f)||null==(n=t.root)||null==n.getState?void 0:n.getState();r&&0===r.internal.frames&&r.invalidate()}function i(e){null==e.onUpdate||e.onUpdate(e)}function s(e,{args:n=[],...i},s,a,o){let l,c=`${e[0].toUpperCase()}${e.slice(1)}`;if(!w(s)&&o){const e=t=>t.return?e(t.return):t.stateNode&&t.stateNode.containerInfo;s=e(o)}if(!s||!w(s))throw`No valid root for ${c}!`;if("primitive"===e){if(void 0===i.object)throw"Primitives without 'object' are invalid!";l=R(i.object,{root:s,instance:!0})}else{const e=A[c]||r[c];if(!e)throw`${c} is not part of the THREE namespace! Did you forget to extend? See: https://github.com/pmndrs/react-three-fiber/blob/master/markdown/api.md#using-3rd-party-objects-declaratively`;const t=b.arr(n);l=R(t?new e(...n):new e(n),{root:s,memoizedProps:{args:t&&0===n.length?null:n}})}return c.endsWith("Geometry")?i={attach:"geometry",...i}:c.endsWith("Material")&&(i={attach:"material",...i}),t(l,i,{}),l}function a(e,t){t&&(t.isObject3D?e.add(t):(e.__r3f.objects.push(t),t.parent=e,t.attachArray?(b.arr(e[t.attachArray])||(e[t.attachArray]=[]),e[t.attachArray].push(t)):t.attachObject?(b.obj(e[t.attachObject[0]])||(e[t.attachObject[0]]={}),e[t.attachObject[0]][t.attachObject[1]]=t):t.attach&&(e[t.attach]=t)),i(t),n(t))}function o(e,t,r){if(t){if(t.isObject3D){t.parent=e,t.dispatchEvent({type:"added"});const n=e.children.filter((e=>e!==t)),s=n.indexOf(r);e.children=[...n.slice(0,s),t,...n.slice(s)],i(t)}else a(e,t);n(t)}}function u(e,t,n=!1){e&&(n?[...e]:e).forEach((e=>h(t,e)))}function h(e,t){if(t){if(t.isObject3D?e.remove(t):(t.parent=null,e.__r3f.objects&&(e.__r3f.objects=e.__r3f.objects.filter((e=>e!==t))),t.attachArray?e[t.attachArray]=e[t.attachArray].filter((e=>e!==t)):t.attachObject?delete e[t.attachObject[0]][t.attachObject[1]]:t.attach&&(e[t.attach]=null)),t.__r3f.root){const e=t.__r3f.root.getState();e.internal.interaction=e.internal.interaction.filter((e=>e!==t))}n(e),t.dispose&&!t.__r3f.instance&&(0,c.unstable_runWithPriority)(c.unstable_IdlePriority,(()=>{u(t.__r3f.objects,t),u(t.children,t,!0),t.dispose&&"Scene"!==t.type&&t.dispose(),delete t.__r3f.root,delete t.__r3f.objects,delete t.__r3f.handlers,delete t.__r3f.memoizedProps,delete t.__r3f}))}}function d(e,t,n,r){const i=e.parent;if(!i)return;const o=s(t,n,e.__r3f.root);h(i,e),a(i,o),[r,r.alternate].forEach((e=>{null!==e&&(e.stateNode=o,e.ref&&("function"==typeof e.ref?e.ref(o):e.ref.current=o))}))}return{reconciler:l()({now:c.unstable_now,createInstance:s,removeChild:h,appendChild:a,appendInitialChild:a,insertBefore:o,warnsIfNotActing:!0,supportsMutation:!0,isPrimaryRenderer:!1,scheduleTimeout:b.fun(setTimeout)?setTimeout:void 0,cancelTimeout:b.fun(clearTimeout)?clearTimeout:void 0,setTimeout:b.fun(setTimeout)?setTimeout:void 0,clearTimeout:b.fun(clearTimeout)?clearTimeout:void 0,noTimeout:-1,appendChildToContainer:(e,t)=>{const{container:n,root:r}=M(e,t);n.__r3f.root=r,a(n,t)},removeChildFromContainer:(e,t)=>{const{container:n}=M(e,t);h(n,t)},insertInContainerBefore:(e,t,n)=>{const{container:r}=M(e,t);o(r,t,n)},commitUpdate(e,n,r,i,s,a){if(e.__r3f.instance&&s.object&&s.object!==e)d(e,r,s,a);else{const{args:n=[],...o}=s,{args:l=[],...c}=i;n.some(((e,t)=>b.obj(e)?Object.entries(e).some((([e,n])=>n!==l[t][e])):e!==l[t]))?d(e,r,s,a):t(e,o,c,!0)}},hideInstance(e){e.isObject3D&&(e.visible=!1,n(e))},unhideInstance(e,t){(e.isObject3D&&null==t.visible||t.visible)&&(e.visible=!0,n(e))},hideTextInstance(){throw new Error("Text is not allowed in the R3F tree.")},getPublicInstance:e=>e,getRootHostContext:e=>E,getChildHostContext:e=>E,createTextInstance(){},finalizeInitialChildren:e=>!!e.__r3f.handlers,commitMount(e){e.raycast&&e.__r3f.handlers&&e.__r3f.root.getState().internal.interaction.push(e)},prepareUpdate:()=>E,shouldDeprioritizeSubtree:()=>!1,prepareForCommit:()=>null,preparePortalMount(...e){},resetAfterCommit(){},shouldSetTextContent:()=>!1,clearContainer:()=>!1}),applyProps:t}}(),J=(e,t)=>{return(n=e)&&n.render?e:new r.WebGLRenderer({powerPreference:"high-performance",canvas:t,antialias:!0,alpha:!0,...e});var n};function K({store:e,element:t,onCreated:n,target:r}){return i.useEffect((()=>{const t=e.getState();t.set((e=>({internal:{...e.internal,active:!0}}))),null==t.events.connect||t.events.connect(r),n&&n(t)}),[]),i.createElement(C.Provider,{value:e},t)}function Q(e,t){const n=W.get(e),r=null==n?void 0:n.fiber;if(r){const i=null==n?void 0:n.store.getState();i&&(i.internal.active=!1),Y.updateContainer(null,r,null,(()=>{i&&setTimeout((()=>{var n,r,s;null==i.events.disconnect||i.events.disconnect(),null==(n=i.gl)||null==(r=n.renderLists)||null==r.dispose||r.dispose(),null==(s=i.gl)||null==s.forceContextLoss||s.forceContextLoss(),function(e){e.dispose&&"Scene"!==e.type&&e.dispose();for(const r in e){var t,n;null==(t=(n=r).dispose)||t.call(n),delete e[r]}}(i),W.delete(e),t&&t(e)}),500)}))}}Y.act;const $=b.fun(Symbol)&&Symbol.for?Symbol.for("react.portal"):60106;function ee(e,t,n,r=null){return{$$typeof:$,key:null==r?null:""+r,children:e,containerInfo:R(t),implementation:n}}Y.injectIntoDevTools({bundleType:0,rendererPackageName:"@react-three/fiber",version:"0.0.0"})},720296:e=>{function t(e,t,n){var r,i,s,a,o;function l(){var c=Date.now()-a;c=0?r=setTimeout(l,t-c):(r=null,n||(o=e.apply(s,i),s=i=null))}null==t&&(t=100);var c=function(){s=this,i=arguments,a=Date.now();var c=n&&!r;return r||(r=setTimeout(l,t)),c&&(o=e.apply(s,i),s=i=null),o};return c.clear=function(){r&&(clearTimeout(r),r=null)},c.flush=function(){r&&(o=e.apply(s,i),s=i=null,clearTimeout(r),r=null)},c}t.debounce=t,e.exports=t},764063:e=>{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,i,s;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(s=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,s[i]))return!1;for(i=r;0!=i--;){var a=s[i];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},567287:(e,t,n)=>{(e=n.nmd(e)).exports=function(t){var r={},i=n(727418),s=n(124852),a=n(363840);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n--o||i[a]!==s[o])return"\n"+i[a].replace(" at new "," at ")}while(1<=a&&0<=o);break}}}finally{Xe=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?qe(e):""}var Ze=[],Je=-1;function Ke(e){return{current:e}}function Qe(e){0>Je||(e.current=Ze[Je],Ze[Je]=null,Je--)}function $e(e,t){Je++,Ze[Je]=e.current,e.current=t}var et={},tt=Ke(et),nt=Ke(!1),rt=et;function it(e,t){var n=e.type.contextTypes;if(!n)return et;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,s={};for(i in n)s[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function st(e){return null!=e.childContextTypes}function at(){Qe(nt),Qe(tt)}function ot(e,t,n){if(tt.current!==et)throw Error(o(168));$e(tt,t),$e(nt,n)}function lt(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var s in r=r.getChildContext())if(!(s in e))throw Error(o(108,R(t)||"Unknown",s));return i({},n,r)}function ct(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||et,rt=tt.current,$e(tt,e),$e(nt,nt.current),!0}function ut(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=lt(e,t,rt),r.__reactInternalMemoizedMergedChildContext=e,Qe(nt),Qe(tt),$e(tt,e)):Qe(nt),$e(nt,n)}var ht=null,dt=null;(0,a.unstable_now)();var pt=0,ft=8;function mt(e){if(0!=(1&e))return ft=15,1;if(0!=(2&e))return ft=14,2;if(0!=(4&e))return ft=13,4;var t=24&e;return 0!==t?(ft=12,t):0!=(32&e)?(ft=11,32):0!=(t=192&e)?(ft=10,t):0!=(256&e)?(ft=9,256):0!=(t=3584&e)?(ft=8,t):0!=(4096&e)?(ft=7,4096):0!=(t=4186112&e)?(ft=6,t):0!=(t=62914560&e)?(ft=5,t):67108864&e?(ft=4,67108864):0!=(134217728&e)?(ft=3,134217728):0!=(t=805306368&e)?(ft=2,t):0!=(1073741824&e)?(ft=1,1073741824):(ft=8,e)}function gt(e,t){var n=e.pendingLanes;if(0===n)return ft=0;var r=0,i=0,s=e.expiredLanes,a=e.suspendedLanes,o=e.pingedLanes;if(0!==s)r=s,i=ft=15;else if(0!=(s=134217727&n)){var l=s&~a;0!==l?(r=mt(l),i=ft):0!=(o&=s)&&(r=mt(o),i=ft)}else 0!=(s=n&~a)?(r=mt(s),i=ft):0!==o&&(r=mt(o),i=ft);if(0===r)return 0;if(r=n&((0>(r=31-wt(r))?0:1<n;n++)t.push(e);return t}function bt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-wt(t)]=n}var wt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Mt(e)/St|0)|0},Mt=Math.log,St=Math.LN2,Et=a.unstable_runWithPriority,Tt=a.unstable_scheduleCallback,At=a.unstable_cancelCallback,Rt=a.unstable_shouldYield,Lt=a.unstable_requestPaint,Ct=a.unstable_now,Pt=a.unstable_getCurrentPriorityLevel,It=a.unstable_ImmediatePriority,Dt=a.unstable_UserBlockingPriority,Nt=a.unstable_NormalPriority,Ot=a.unstable_LowPriority,zt=a.unstable_IdlePriority,Ft={},Ut=void 0!==Lt?Lt:function(){},Bt=null,Ht=null,kt=!1,Gt=Ct(),Vt=1e4>Gt?Ct:function(){return Ct()-Gt};function Wt(){switch(Pt()){case It:return 99;case Dt:return 98;case Nt:return 97;case Ot:return 96;case zt:return 95;default:throw Error(o(332))}}function jt(e){switch(e){case 99:return It;case 98:return Dt;case 97:return Nt;case 96:return Ot;case 95:return zt;default:throw Error(o(332))}}function qt(e,t){return e=jt(e),Et(e,t)}function Xt(e,t,n){return e=jt(e),Tt(e,t,n)}function Yt(){if(null!==Ht){var e=Ht;Ht=null,At(e)}Zt()}function Zt(){if(!kt&&null!==Bt){kt=!0;var e=0;try{var t=Bt;qt(99,(function(){for(;ed?(p=h,h=null):p=h.sibling;var f=g(i,h,o[d],l);if(null===f){null===h&&(h=p);break}e&&h&&null===f.alternate&&t(i,h),a=s(f,a,d),null===u?c=f:u.sibling=f,u=f,h=p}if(d===o.length)return n(i,h),c;if(null===h){for(;dp?(f=d,d=null):f=d.sibling;var x=g(i,d,y.value,c);if(null===x){null===d&&(d=f);break}e&&d&&null===x.alternate&&t(i,d),a=s(x,a,p),null===h?u=x:h.sibling=x,h=x,d=f}if(y.done)return n(i,d),u;if(null===d){for(;!y.done;p++,y=l.next())null!==(y=m(i,y.value,c))&&(a=s(y,a,p),null===h?u=y:h.sibling=y,h=y);return u}for(d=r(i,d);!y.done;p++,y=l.next())null!==(y=v(d,i,p,y.value,c))&&(e&&null!==y.alternate&&d.delete(null===y.key?p:y.key),a=s(y,a,p),null===h?u=y:h.sibling=y,h=y);return e&&d.forEach((function(e){return t(i,e)})),u}return function(e,r,s,l){var d="object"==typeof s&&null!==s&&s.type===h&&null===s.key;d&&(s=s.props.children);var p="object"==typeof s&&null!==s;if(p)switch(s.$$typeof){case c:e:{for(p=s.key,d=r;null!==d;){if(d.key===p){if(7===d.tag){if(s.type===h){n(e,d.sibling),(r=i(d,s.props.children)).return=e,e=r;break e}}else if(d.elementType===s.type){n(e,d.sibling),(r=i(d,s.props)).ref=Ln(e,d,s),r.return=e,e=r;break e}n(e,d);break}t(e,d),d=d.sibling}s.type===h?((r=Ma(s.props.children,e.mode,l,s.key)).return=e,e=r):((l=wa(s.type,s.key,s.props,null,e.mode,l)).ref=Ln(e,r,s),l.return=e,e=l)}return a(e);case u:e:{for(d=s.key;null!==r;){if(r.key===d){if(4===r.tag&&r.stateNode.containerInfo===s.containerInfo&&r.stateNode.implementation===s.implementation){n(e,r.sibling),(r=i(r,s.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Ta(s,e.mode,l)).return=e,e=r}return a(e)}if("string"==typeof s||"number"==typeof s)return s=""+s,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,s)).return=e,e=r):(n(e,r),(r=Ea(s,e.mode,l)).return=e,e=r),a(e);if(Rn(s))return y(e,r,s,l);if(A(s))return x(e,r,s,l);if(p&&Cn(e,s),void 0===s&&!d)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(o(152,R(e.type)||"Component"))}return n(e,r)}}var In=Pn(!0),Dn=Pn(!1),Nn={},On=Ke(Nn),zn=Ke(Nn),Fn=Ke(Nn);function Un(e){if(e===Nn)throw Error(o(174));return e}function Bn(e,t){$e(Fn,t),$e(zn,e),$e(On,Nn),e=z(t),Qe(On),$e(On,e)}function Hn(){Qe(On),Qe(zn),Qe(Fn)}function kn(e){var t=Un(Fn.current),n=Un(On.current);n!==(t=F(n,e.type,t))&&($e(zn,e),$e(On,t))}function Gn(e){zn.current===e&&(Qe(On),Qe(zn))}var Vn=Ke(0);function Wn(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||Fe(n)||Ue(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var jn=null,qn=null,Xn=!1;function Yn(e,t){var n=xa(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Zn(e,t){switch(e.tag){case 5:return null!==(t=Oe(t,e.type,e.pendingProps))&&(e.stateNode=t,!0);case 6:return null!==(t=ze(t,e.pendingProps))&&(e.stateNode=t,!0);default:return!1}}function Jn(e){if(Xn){var t=qn;if(t){var n=t;if(!Zn(e,t)){if(!(t=Be(n))||!Zn(e,t))return e.flags=-1025&e.flags|2,Xn=!1,void(jn=e);Yn(jn,n)}jn=e,qn=He(t)}else e.flags=-1025&e.flags|2,Xn=!1,jn=e}}function Kn(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;jn=e}function Qn(e){if(!Q||e!==jn)return!1;if(!Xn)return Kn(e),Xn=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!W(t,e.memoizedProps))for(t=qn;t;)Yn(e,t),t=Be(t);if(Kn(e),13===e.tag){if(!Q)throw Error(o(316));if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));qn=Ve(e)}else qn=jn?Be(e.stateNode):null;return!0}function $n(){Q&&(qn=jn=null,Xn=!1)}var er=[];function tr(){for(var e=0;es))throw Error(o(301));s+=1,or=ar=null,t.updateQueue=null,nr.current=Hr,e=n(r,i)}while(cr)}if(nr.current=Fr,t=null!==ar&&null!==ar.next,ir=0,or=ar=sr=null,lr=!1,t)throw Error(o(300));return e}function pr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===or?sr.memoizedState=or=e:or=or.next=e,or}function fr(){if(null===ar){var e=sr.alternate;e=null!==e?e.memoizedState:null}else e=ar.next;var t=null===or?sr.memoizedState:or.next;if(null!==t)or=t,ar=e;else{if(null===e)throw Error(o(310));e={memoizedState:(ar=e).memoizedState,baseState:ar.baseState,baseQueue:ar.baseQueue,queue:ar.queue,next:null},null===or?sr.memoizedState=or=e:or=or.next=e}return or}function mr(e,t){return"function"==typeof t?t(e):t}function gr(e){var t=fr(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=ar,i=r.baseQueue,s=n.pending;if(null!==s){if(null!==i){var a=i.next;i.next=s.next,s.next=a}r.baseQueue=i=s,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var l=a=s=null,c=i;do{var u=c.lane;if((ir&u)===u)null!==l&&(l=l.next={lane:0,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),r=c.eagerReducer===e?c.eagerState:e(r,c.action);else{var h={lane:u,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===l?(a=l=h,s=r):l=l.next=h,sr.lanes|=u,cs|=u}c=c.next}while(null!==c&&c!==i);null===l?s=r:l.next=a,Kt(r,t.memoizedState)||(Gr=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function vr(e){var t=fr(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{s=e(s,a.action),a=a.next}while(a!==i);Kt(s,t.memoizedState)||(Gr=!0),t.memoizedState=s,null===t.baseQueue&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function yr(e,t,n){var r=t._getVersion;r=r(t._source);var i=Z?t._workInProgressVersionPrimary:t._workInProgressVersionSecondary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(ir&e)===e)&&(Z?t._workInProgressVersionPrimary=r:t._workInProgressVersionSecondary=r,er.push(t))),e)return n(t._source);throw er.push(t),Error(o(350))}function xr(e,t,n,r){var i=ts;if(null===i)throw Error(o(349));var s=t._getVersion,a=s(t._source),l=nr.current,c=l.useState((function(){return yr(i,t,n)})),u=c[1],h=c[0];c=or;var d=e.memoizedState,p=d.refs,f=p.getSnapshot,m=d.source;d=d.subscribe;var g=sr;return e.memoizedState={refs:p,source:t,subscribe:r},l.useEffect((function(){p.getSnapshot=n,p.setSnapshot=u;var e=s(t._source);if(!Kt(a,e)){e=n(t._source),Kt(h,e)||(u(e),e=Os(g),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,o=e;0n?98:n,(function(){e(!0)})),qt(97fs&&(t.flags|=64,i=!0,di(r,!1),t.lanes=33554432)}else{if(!i)if(null!==(e=Wn(s))){if(t.flags|=64,i=!0,null!==(e=e.updateQueue)&&(t.updateQueue=e,t.flags|=4),di(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate&&!Xn)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Vt()-r.renderingStartTime>fs&&1073741824!==n&&(t.flags|=64,i=!0,di(r,!1),t.lanes=33554432);r.isBackwards?(s.sibling=t.child,t.child=s):(null!==(e=r.last)?e.sibling=s:t.child=s,r.last=s)}return null!==r.tail?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Vt(),e.sibling=null,t=Vn.current,$e(Vn,i?1&t|2:1&t),e):null;case 23:case 24:return js(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(o(156,t.tag))}function fi(e){switch(e.tag){case 1:st(e.type)&&at();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Hn(),Qe(nt),Qe(tt),tr(),0!=(64&(t=e.flags)))throw Error(o(285));return e.flags=-4097&t|64,e;case 5:return Gn(e),null;case 13:return Qe(Vn),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return Qe(Vn),null;case 4:return Hn(),null;case 10:return cn(e),null;case 23:case 24:return js(),null;default:return null}}function mi(e,t){try{var n="",r=t;do{n+=en(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function gi(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var vi="function"==typeof WeakMap?WeakMap:Map;function yi(e,t,n){(n=gn(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ys||(ys=!0,xs=r),gi(0,t)},n}function xi(e,t,n){(n=gn(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return gi(0,t),r(i)}}var s=e.stateNode;return null!==s&&"function"==typeof s.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===_s?_s=new Set([this]):_s.add(this),gi(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var _i="function"==typeof WeakSet?WeakSet:Set;function bi(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){la(e,t)}else t.current=null}function wi(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:tn(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(J&&256&t.flags&&Ae(t.stateNode.containerInfo))}throw Error(o(163))}function Mi(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function Si(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!=(4&(i=i.tag))&&0!=(1&i)&&(sa(n,e),ia(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:tn(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&_n(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=O(n.child.stateNode);break;case 1:e=n.child.stateNode}_n(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&ge(e,n.type,n.memoizedProps,n));case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(Q&&null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&je(n)))))}throw Error(o(163))}function Ei(e,t){if(J)for(var n=e;;){if(5===n.tag){var r=n.stateNode;t?Me(r):Ee(n.stateNode,n.memoizedProps)}else if(6===n.tag)r=n.stateNode,t?Se(r):Te(r,n.memoizedProps);else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function Ti(e,t){if(dt&&"function"==typeof dt.onCommitFiberUnmount)try{dt.onCommitFiberUnmount(ht,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!=(4&r))sa(t,n);else{r=t;try{i()}catch(e){la(r,e)}}n=n.next}while(n!==e)}break;case 1:if(bi(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){la(t,e)}break;case 5:bi(t);break;case 4:J?Di(e,t):K&&K&&(t=t.stateNode.containerInfo,e=Le(t),Ie(t,e))}}function Ai(e,t){for(var n=t;;)if(Ti(e,n),null===n.child||J&&4===n.tag){if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}else n.child.return=n,n=n.child}function Ri(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Li(e){return 5===e.tag||3===e.tag||4===e.tag}function Ci(e){if(J){e:{for(var t=e.return;null!==t;){if(Li(t))break e;t=t.return}throw Error(o(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(o(161))}16&n.flags&&(we(t),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||Li(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?Pi(e,n,t):Ii(e,n,t)}}function Pi(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?xe(n,e,t):fe(n,e);else if(4!==r&&null!==(e=e.child))for(Pi(e,t,n),e=e.sibling;null!==e;)Pi(e,t,n),e=e.sibling}function Ii(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?ye(n,e,t):pe(n,e);else if(4!==r&&null!==(e=e.child))for(Ii(e,t,n),e=e.sibling;null!==e;)Ii(e,t,n),e=e.sibling}function Di(e,t){for(var n,r,i=t,s=!1;;){if(!s){s=i.return;e:for(;;){if(null===s)throw Error(o(160));switch(n=s.stateNode,s.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}s=s.return}s=!0}if(5===i.tag||6===i.tag)Ai(e,i),r?be(n,i.stateNode):_e(n,i.stateNode);else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(Ti(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(s=!1)}i.sibling.return=i.return,i=i.sibling}}function Ni(e,t){if(J){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void Mi(3,t);case 1:case 12:case 17:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps;e=null!==e?e.memoizedProps:r;var i=t.type,s=t.updateQueue;t.updateQueue=null,null!==s&&ve(n,s,i,e,r,t)}return;case 6:if(null===t.stateNode)throw Error(o(162));return n=t.memoizedProps,void me(t.stateNode,null!==e?e.memoizedProps:n,n);case 3:return void(Q&&(t=t.stateNode,t.hydrate&&(t.hydrate=!1,We(t.containerInfo))));case 13:return Oi(t),void zi(t);case 19:return void zi(t);case 23:case 24:return void Ei(t,null!==t.memoizedState)}throw Error(o(163))}switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void Mi(3,t);case 12:case 23:case 24:return;case 13:return Oi(t),void zi(t);case 19:return void zi(t);case 3:Q&&(n=t.stateNode).hydrate&&(n.hydrate=!1,We(n.containerInfo))}e:if(K){switch(t.tag){case 1:case 5:case 6:case 20:break e;case 3:case 4:t=t.stateNode,Ie(t.containerInfo,t.pendingChildren);break e}throw Error(o(163))}}function Oi(e){null!==e.memoizedState&&(ps=Vt(),J&&Ei(e.child,!0))}function zi(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new _i),t.forEach((function(t){var r=ua.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Fi(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&null!==(t=t.memoizedState)&&null===t.dehydrated}var Ui=0,Bi=1,Hi=2,ki=3,Gi=4;if("function"==typeof Symbol&&Symbol.for){var Vi=Symbol.for;Ui=Vi("selector.component"),Bi=Vi("selector.has_pseudo_class"),Hi=Vi("selector.role"),ki=Vi("selector.test_id"),Gi=Vi("selector.text")}function Wi(e){var t=$(e);if(null!=t){if("string"!=typeof t.memoizedProps["data-testname"])throw Error(o(364));return t}if(null===(e=ae(e)))throw Error(o(362));return e.stateNode.current}function ji(e,t){switch(t.$$typeof){case Ui:if(e.type===t.value)return!0;break;case Bi:e:{t=t.value,e=[e,0];for(var n=0;n";case Bi:return":has("+(qi(e)||"")+")";case Hi:return'[role="'+e.value+'"]';case Gi:return'"'+e.value+'"';case ki:return'[data-testname="'+e.value+'"]';default:throw Error(o(365,e))}}function Xi(e,t){var n=[];e=[e,0];for(var r=0;ri&&(i=a),n&=~s}if(n=i,10<(n=(120>(n=Vt()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Ji(n/1960))-n)){e.timeoutHandle=q(ea.bind(null,e),n);break}ea(e);break;default:throw Error(o(329))}}return Us(e,Vt()),e.callbackNode===t?Bs.bind(null,e):null}function Hs(e,t){for(t&=~hs,t&=~us,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0 component higher in the tree to provide a loading indicator or placeholder to display.")}5!==as&&(as=2),l=mi(l,o),d=a;do{switch(d.tag){case 3:s=l,d.flags|=4096,t&=-t,d.lanes|=t,yn(d,yi(0,s,t));break e;case 1:s=l;var b=d.type,w=d.stateNode;if(0==(64&d.flags)&&("function"==typeof b.getDerivedStateFromError||null!==w&&"function"==typeof w.componentDidCatch&&(null===_s||!_s.has(w)))){d.flags|=4096,t&=-t,d.lanes|=t,yn(d,xi(d,s,t));break e}}d=d.return}while(null!==d)}$s(n)}catch(e){t=e,ns===n&&null!==n&&(ns=n=n.return);continue}break}}function Ys(){var e=Ki.current;return Ki.current=Fr,null===e?Fr:e}function Zs(e,t){var n=es;es|=16;var r=Ys();for(ts===e&&rs===t||qs(e,t);;)try{Js();break}catch(t){Xs(e,t)}if(on(),es=n,Ki.current=r,null!==ns)throw Error(o(261));return ts=null,rs=0,as}function Js(){for(;null!==ns;)Qs(ns)}function Ks(){for(;null!==ns&&!Rt();)Qs(ns)}function Qs(e){var t=gs(e.alternate,e,is);e.memoizedProps=e.pendingProps,null===t?$s(e):ns=t,Qi.current=null}function $s(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=pi(n,t,is)))return void(ns=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&is)||0==(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1Vt()-ps?qs(e,0):hs|=n),Us(e,t)}function ua(e,t){var n=e.stateNode;null!==n&&n.delete(t),0==(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Wt()?1:2:(0===Cs&&(Cs=ls),0===(t=xt(62914560&~Cs))&&(t=4194304))),n=Ns(),null!==(e=Fs(e,t))&&(bt(e,t,n),Us(e,n))}gs=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||nt.current)Gr=!0;else{if(0==(n&r)){switch(Gr=!1,t.tag){case 3:Qr(t),$n();break;case 5:kn(t);break;case 1:st(t.type)&&ct(t);break;case 4:Bn(t,t.stateNode.containerInfo);break;case 10:ln(t,t.memoizedProps.value);break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?ii(e,t,n):($e(Vn,1&Vn.current),null!==(t=ci(e,t,n))?t.sibling:null);$e(Vn,1&Vn.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return li(e,t,n);t.flags|=64}var i=t.memoizedState;if(null!==i&&(i.rendering=null,i.tail=null,i.lastEffect=null),$e(Vn,Vn.current),r)break;return null;case 23:case 24:return t.lanes=0,Xr(e,t,n)}return ci(e,t,n)}Gr=0!=(16384&e.flags)}else Gr=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=it(t,tt.current),hn(t,n),i=dr(null,t,r,e,i,n),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,st(r)){var s=!0;ct(t)}else s=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,fn(t);var a=r.getDerivedStateFromProps;"function"==typeof a&&wn(t,r,a,e),i.updater=Mn,t.stateNode=i,i._reactInternals=t,An(t,r,e,n),t=Kr(null,t,r,!0,s,n)}else t.tag=0,Vr(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(s=i._init)(i._payload),t.type=i,s=t.tag=function(e){if("function"==typeof e)return _a(e)?1:0;if(null!=e){if((e=e.$$typeof)===g)return 11;if(e===x)return 14}return 2}(i),e=tn(i,e),s){case 0:t=Zr(null,t,i,e,n);break e;case 1:t=Jr(null,t,i,e,n);break e;case 11:t=Wr(null,t,i,e,n);break e;case 14:t=jr(null,t,i,tn(i.type,e),r,n);break e}throw Error(o(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,Zr(e,t,r,i=t.elementType===r?i:tn(r,i),n);case 1:return r=t.type,i=t.pendingProps,Jr(e,t,r,i=t.elementType===r?i:tn(r,i),n);case 3:if(Qr(t),r=t.updateQueue,null===e||null===r)throw Error(o(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,mn(e,t),xn(t,r,null,n),(r=t.memoizedState.element)===i)$n(),t=ci(e,t,n);else{if((s=(i=t.stateNode).hydrate)&&(Q?(qn=He(t.stateNode.containerInfo),jn=t,s=Xn=!0):s=!1),s){if(Q&&null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i=u&&s>=d&&i<=h&&a<=p){e.splice(t,1);break}if(!(r!==u||n.width!==c.width||pa)){d>s&&(c.height+=d-s,c.y=s),pi)){u>r&&(c.width+=u-r,c.x=r),hn&&(n=a)),a ")+"\n\nNo matching component was found for:\n "+e.join(" > ")}return null},r.getPublicRootInstance=function(e){return(e=e.current).child?5===e.child.tag?O(e.child.stateNode):e.child.stateNode:null},r.injectIntoDevTools=function(e){if(e={bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:l.ReactCurrentDispatcher,findHostInstanceByFiber:Pa,findFiberByHostInstance:e.findFiberByHostInstance||Ia,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null},"undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)e=!1;else{var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t.isDisabled&&t.supportsFiber)try{ht=t.inject(e),dt=t}catch(e){}e=!0}return e},r.observeVisibleRects=function(e,t,n,r){if(!se)throw Error(o(363));e=Yi(e,t);var i=de(e,n,r).disconnect;return{disconnect:function(){i()}}},r.registerMutableSourceForHydration=function(e,t){var n=t._getVersion;n=n(t._source),null==e.mutableSourceEagerHydrationData?e.mutableSourceEagerHydrationData=[t,n]:e.mutableSourceEagerHydrationData.push(t,n)},r.runWithPriority=function(e,t){var n=pt;try{return pt=e,t()}finally{pt=n}},r.shouldSuspend=function(){return!1},r.unbatchedUpdates=function(e,t){var n=es;es&=-2,es|=8;try{return e(t)}finally{0===(es=n)&&(ms(),Yt())}},r.updateContainer=function(e,t,n,r){var i=t.current,s=Ns(),a=Os(i);e:if(n){t:{if(L(n=n._reactInternals)!==n||1!==n.tag)throw Error(o(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(st(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(o(171))}if(1===n.tag){var c=n.type;if(st(c)){n=lt(n,c,l);break e}}n=l}else n=et;return null===t.context?t.context=n:t.pendingContext=n,(t=gn(s,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),vn(i,t),zs(i,a,s),a},r}},576525:(e,t,n)=>{"use strict";e.exports=n(567287)},560053:(e,t)=>{"use strict";var n,r,i,s;if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var o=Date,l=o.now();t.unstable_now=function(){return o.now()-l}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var c=null,u=null,h=function(){if(null!==c)try{var e=t.unstable_now();c(!0,e),c=null}catch(e){throw setTimeout(h,0),e}};n=function(e){null!==c?setTimeout(n,0,e):(c=e,setTimeout(h,0))},r=function(e,t){u=setTimeout(e,t)},i=function(){clearTimeout(u)},t.unstable_shouldYield=function(){return!1},s=t.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,p=window.clearTimeout;if("undefined"!=typeof console){var f=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof f&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var m=!1,g=null,v=-1,y=5,x=0;t.unstable_shouldYield=function(){return t.unstable_now()>=x},s=function(){},t.unstable_forceFrameRate=function(e){0>e||125>>1,i=e[r];if(!(void 0!==i&&0E(a,n))void 0!==l&&0>E(l,a)?(e[r]=l,e[o]=n,r=o):(e[r]=a,e[s]=n,r=s);else{if(!(void 0!==l&&0>E(l,n)))break e;e[r]=l,e[o]=n,r=o}}}return t}return null}function E(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var T=[],A=[],R=1,L=null,C=3,P=!1,I=!1,D=!1;function N(e){for(var t=M(A);null!==t;){if(null===t.callback)S(A);else{if(!(t.startTime<=e))break;S(A),t.sortIndex=t.expirationTime,w(T,t)}t=M(A)}}function O(e){if(D=!1,N(e),!I)if(null!==M(T))I=!0,n(z);else{var t=M(A);null!==t&&r(O,t.startTime-e)}}function z(e,n){I=!1,D&&(D=!1,i()),P=!0;var s=C;try{for(N(n),L=M(T);null!==L&&(!(L.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=L.callback;if("function"==typeof a){L.callback=null,C=L.priorityLevel;var o=a(L.expirationTime<=n);n=t.unstable_now(),"function"==typeof o?L.callback=o:L===M(T)&&S(T),N(n)}else S(T);L=M(T)}if(null!==L)var l=!0;else{var c=M(A);null!==c&&r(O,c.startTime-n),l=!1}return l}finally{L=null,C=s,P=!1}}var F=s;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){I||P||(I=!0,n(z))},t.unstable_getCurrentPriorityLevel=function(){return C},t.unstable_getFirstCallbackNode=function(){return M(T)},t.unstable_next=function(e){switch(C){case 1:case 2:case 3:var t=3;break;default:t=C}var n=C;C=t;try{return e()}finally{C=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=F,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=C;C=e;try{return t()}finally{C=n}},t.unstable_scheduleCallback=function(e,s,a){var o=t.unstable_now();switch(a="object"==typeof a&&null!==a&&"number"==typeof(a=a.delay)&&0o?(e.sortIndex=a,w(A,e),null===M(T)&&e===M(A)&&(D?i():D=!0,r(O,a-o))):(e.sortIndex=l,w(T,e),I||P||(I=!0,n(z))),e},t.unstable_wrapCallback=function(e){var t=C;return function(){var n=C;C=t;try{return e.apply(this,arguments)}finally{C=n}}}},363840:(e,t,n)=>{"use strict";e.exports=n(560053)},2212:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ACESFilmicToneMapping:()=>ne,AddEquation:()=>E,AddOperation:()=>K,AdditiveAnimationBlendMode:()=>Lt,AdditiveBlending:()=>b,AlphaFormat:()=>Oe,AlwaysDepth:()=>G,AlwaysStencilFunc:()=>en,AmbientLight:()=>Dh,AmbientLightProbe:()=>Jh,AnimationClip:()=>ih,AnimationLoader:()=>dh,AnimationMixer:()=>Ld,AnimationObjectGroup:()=>Ad,AnimationUtils:()=>ju,ArcCurve:()=>Ec,ArrayCamera:()=>Yo,ArrowHelper:()=>yp,Audio:()=>ld,AudioAnalyser:()=>fd,AudioContext:()=>Xh,AudioListener:()=>od,AudioLoader:()=>Yh,AxesHelper:()=>xp,AxisHelper:()=>Yp,BackSide:()=>m,BasicDepthPacking:()=>Ot,BasicShadowMap:()=>u,BinaryTextureLoader:()=>$p,Bone:()=>Nl,BooleanKeyframeTrack:()=>Ku,BoundingBoxHelper:()=>Zp,Box2:()=>Bd,Box3:()=>rr,Box3Helper:()=>pp,BoxBufferGeometry:()=>rs,BoxGeometry:()=>rs,BoxHelper:()=>dp,BufferAttribute:()=>xi,BufferGeometry:()=>Fi,BufferGeometryLoader:()=>Hh,ByteType:()=>Ee,Cache:()=>ah,Camera:()=>ls,CameraHelper:()=>cp,CanvasRenderer:()=>tf,CanvasTexture:()=>dc,CatmullRomCurve3:()=>Pc,CineonToneMapping:()=>te,CircleBufferGeometry:()=>pc,CircleGeometry:()=>pc,ClampToEdgeWrapping:()=>de,Clock:()=>td,Color:()=>Bn,ColorKeyframeTrack:()=>Qu,CompressedTexture:()=>hc,CompressedTextureLoader:()=>ph,ConeBufferGeometry:()=>mc,ConeGeometry:()=>mc,CubeCamera:()=>hs,CubeReflectionMapping:()=>se,CubeRefractionMapping:()=>ae,CubeTexture:()=>ds,CubeTextureLoader:()=>mh,CubeUVReflectionMapping:()=>ce,CubeUVRefractionMapping:()=>ue,CubicBezierCurve:()=>Oc,CubicBezierCurve3:()=>zc,CubicInterpolant:()=>Xu,CullFaceBack:()=>o,CullFaceFront:()=>l,CullFaceFrontBack:()=>c,CullFaceNone:()=>a,Curve:()=>Mc,CurvePath:()=>Vc,CustomBlending:()=>S,CustomToneMapping:()=>re,CylinderBufferGeometry:()=>fc,CylinderGeometry:()=>fc,Cylindrical:()=>Fd,Data3DTexture:()=>Jn,DataArrayTexture:()=>Yn,DataTexture:()=>Ol,DataTexture2DArray:()=>df,DataTexture3D:()=>pf,DataTextureLoader:()=>gh,DataUtils:()=>Mp,DecrementStencilOp:()=>Vt,DecrementWrapStencilOp:()=>jt,DefaultLoadingManager:()=>lh,DepthFormat:()=>He,DepthStencilFormat:()=>ke,DepthTexture:()=>Qo,DirectionalLight:()=>Ih,DirectionalLightHelper:()=>ap,DiscreteInterpolant:()=>Zu,DodecahedronBufferGeometry:()=>vc,DodecahedronGeometry:()=>vc,DoubleSide:()=>g,DstAlphaFactor:()=>z,DstColorFactor:()=>U,DynamicBufferAttribute:()=>Up,DynamicCopyUsage:()=>cn,DynamicDrawUsage:()=>nn,DynamicReadUsage:()=>an,EdgesGeometry:()=>wc,EdgesHelper:()=>Jp,EllipseCurve:()=>Sc,EqualDepth:()=>j,EqualStencilFunc:()=>Zt,EquirectangularReflectionMapping:()=>oe,EquirectangularRefractionMapping:()=>le,Euler:()=>kr,EventDispatcher:()=>fn,ExtrudeBufferGeometry:()=>xu,ExtrudeGeometry:()=>xu,FaceColors:()=>Ap,FileLoader:()=>hh,FlatShading:()=>v,Float16BufferAttribute:()=>Ai,Float32Attribute:()=>qp,Float32BufferAttribute:()=>Ri,Float64Attribute:()=>Xp,Float64BufferAttribute:()=>Li,FloatType:()=>Ce,Fog:()=>il,FogExp2:()=>rl,Font:()=>cf,FontLoader:()=>lf,FramebufferTexture:()=>uc,FrontSide:()=>f,Frustum:()=>_s,GLBufferAttribute:()=>Id,GLSL1:()=>hn,GLSL3:()=>dn,GreaterDepth:()=>X,GreaterEqualDepth:()=>q,GreaterEqualStencilFunc:()=>$t,GreaterStencilFunc:()=>Kt,GridHelper:()=>tp,Group:()=>Zo,HalfFloatType:()=>Pe,HemisphereLight:()=>xh,HemisphereLightHelper:()=>ep,HemisphereLightProbe:()=>Zh,IcosahedronBufferGeometry:()=>bu,IcosahedronGeometry:()=>bu,ImageBitmapLoader:()=>jh,ImageLoader:()=>fh,ImageUtils:()=>kn,ImmediateRenderObject:()=>uf,IncrementStencilOp:()=>Gt,IncrementWrapStencilOp:()=>Wt,InstancedBufferAttribute:()=>Bl,InstancedBufferGeometry:()=>Bh,InstancedInterleavedBuffer:()=>Pd,InstancedMesh:()=>Wl,Int16Attribute:()=>Gp,Int16BufferAttribute:()=>Mi,Int32Attribute:()=>Wp,Int32BufferAttribute:()=>Ei,Int8Attribute:()=>Bp,Int8BufferAttribute:()=>_i,IntType:()=>Re,InterleavedBuffer:()=>al,InterleavedBufferAttribute:()=>ll,Interpolant:()=>qu,InterpolateDiscrete:()=>wt,InterpolateLinear:()=>Mt,InterpolateSmooth:()=>St,InvertStencilOp:()=>qt,JSONLoader:()=>nf,KeepStencilOp:()=>Ht,KeyframeTrack:()=>Ju,LOD:()=>Al,LatheBufferGeometry:()=>wu,LatheGeometry:()=>wu,Layers:()=>Gr,LensFlare:()=>sf,LessDepth:()=>V,LessEqualDepth:()=>W,LessEqualStencilFunc:()=>Jt,LessStencilFunc:()=>Yt,Light:()=>yh,LightProbe:()=>zh,Line:()=>Kl,Line3:()=>Gd,LineBasicMaterial:()=>jl,LineCurve:()=>Fc,LineCurve3:()=>Uc,LineDashedMaterial:()=>Vu,LineLoop:()=>tc,LinePieces:()=>Ep,LineSegments:()=>ec,LineStrip:()=>Sp,LinearEncoding:()=>Dt,LinearFilter:()=>xe,LinearInterpolant:()=>Yu,LinearMipMapLinearFilter:()=>Me,LinearMipMapNearestFilter:()=>be,LinearMipmapLinearFilter:()=>we,LinearMipmapNearestFilter:()=>_e,LinearToneMapping:()=>$,Loader:()=>ch,LoaderUtils:()=>Uh,LoadingManager:()=>oh,LoopOnce:()=>xt,LoopPingPong:()=>bt,LoopRepeat:()=>_t,LuminanceAlphaFormat:()=>Be,LuminanceFormat:()=>Ue,MOUSE:()=>i,Material:()=>mi,MaterialLoader:()=>Fh,Math:()=>Tn,MathUtils:()=>Tn,Matrix3:()=>Rn,Matrix4:()=>Pr,MaxEquation:()=>L,Mesh:()=>ts,MeshBasicMaterial:()=>gi,MeshDepthMaterial:()=>Ho,MeshDistanceMaterial:()=>ko,MeshFaceMaterial:()=>Lp,MeshLambertMaterial:()=>ku,MeshMatcapMaterial:()=>Gu,MeshNormalMaterial:()=>Hu,MeshPhongMaterial:()=>Uu,MeshPhysicalMaterial:()=>Fu,MeshStandardMaterial:()=>zu,MeshToonMaterial:()=>Bu,MinEquation:()=>R,MirroredRepeatWrapping:()=>pe,MixOperation:()=>J,MultiMaterial:()=>Cp,MultiplyBlending:()=>M,MultiplyOperation:()=>Z,NearestFilter:()=>fe,NearestMipMapLinearFilter:()=>ye,NearestMipMapNearestFilter:()=>ge,NearestMipmapLinearFilter:()=>ve,NearestMipmapNearestFilter:()=>me,NeverDepth:()=>k,NeverStencilFunc:()=>Xt,NoBlending:()=>x,NoColors:()=>Tp,NoToneMapping:()=>Q,NormalAnimationBlendMode:()=>Rt,NormalBlending:()=>_,NotEqualDepth:()=>Y,NotEqualStencilFunc:()=>Qt,NumberKeyframeTrack:()=>$u,Object3D:()=>ni,ObjectLoader:()=>kh,ObjectSpaceNormalMap:()=>Ut,OctahedronBufferGeometry:()=>Mu,OctahedronGeometry:()=>Mu,OneFactor:()=>P,OneMinusDstAlphaFactor:()=>F,OneMinusDstColorFactor:()=>B,OneMinusSrcAlphaFactor:()=>O,OneMinusSrcColorFactor:()=>D,OrthographicCamera:()=>Ds,PCFShadowMap:()=>h,PCFSoftShadowMap:()=>d,PMREMGenerator:()=>ks,ParametricGeometry:()=>af,Particle:()=>Ip,ParticleBasicMaterial:()=>Op,ParticleSystem:()=>Dp,ParticleSystemMaterial:()=>zp,Path:()=>Wc,PerspectiveCamera:()=>cs,Plane:()=>vs,PlaneBufferGeometry:()=>Ms,PlaneGeometry:()=>Ms,PlaneHelper:()=>fp,PointCloud:()=>Pp,PointCloudMaterial:()=>Np,PointLight:()=>Ch,PointLightHelper:()=>Jd,Points:()=>oc,PointsMaterial:()=>nc,PolarGridHelper:()=>np,PolyhedronBufferGeometry:()=>gc,PolyhedronGeometry:()=>gc,PositionalAudio:()=>pd,PropertyBinding:()=>Td,PropertyMixer:()=>md,QuadraticBezierCurve:()=>Bc,QuadraticBezierCurve3:()=>Hc,Quaternion:()=>$n,QuaternionKeyframeTrack:()=>th,QuaternionLinearInterpolant:()=>eh,REVISION:()=>r,RGBADepthPacking:()=>zt,RGBAFormat:()=>Fe,RGBAIntegerFormat:()=>qe,RGBA_ASTC_10x10_Format:()=>mt,RGBA_ASTC_10x5_Format:()=>dt,RGBA_ASTC_10x6_Format:()=>pt,RGBA_ASTC_10x8_Format:()=>ft,RGBA_ASTC_12x10_Format:()=>gt,RGBA_ASTC_12x12_Format:()=>vt,RGBA_ASTC_4x4_Format:()=>it,RGBA_ASTC_5x4_Format:()=>st,RGBA_ASTC_5x5_Format:()=>at,RGBA_ASTC_6x5_Format:()=>ot,RGBA_ASTC_6x6_Format:()=>lt,RGBA_ASTC_8x5_Format:()=>ct,RGBA_ASTC_8x6_Format:()=>ut,RGBA_ASTC_8x8_Format:()=>ht,RGBA_BPTC_Format:()=>yt,RGBA_ETC2_EAC_Format:()=>rt,RGBA_PVRTC_2BPPV1_Format:()=>et,RGBA_PVRTC_4BPPV1_Format:()=>$e,RGBA_S3TC_DXT1_Format:()=>Ye,RGBA_S3TC_DXT3_Format:()=>Ze,RGBA_S3TC_DXT5_Format:()=>Je,RGBFormat:()=>ze,RGB_ETC1_Format:()=>tt,RGB_ETC2_Format:()=>nt,RGB_PVRTC_2BPPV1_Format:()=>Qe,RGB_PVRTC_4BPPV1_Format:()=>Ke,RGB_S3TC_DXT1_Format:()=>Xe,RGFormat:()=>We,RGIntegerFormat:()=>je,RawShaderMaterial:()=>Ou,Ray:()=>Cr,Raycaster:()=>Dd,RectAreaLight:()=>Nh,RedFormat:()=>Ge,RedIntegerFormat:()=>Ve,ReinhardToneMapping:()=>ee,RepeatWrapping:()=>he,ReplaceStencilOp:()=>kt,ReverseSubtractEquation:()=>A,RingBufferGeometry:()=>Su,RingGeometry:()=>Su,Scene:()=>sl,SceneUtils:()=>rf,ShaderChunk:()=>Ss,ShaderLib:()=>Ts,ShaderMaterial:()=>os,ShadowMaterial:()=>Nu,Shape:()=>jc,ShapeBufferGeometry:()=>Eu,ShapeGeometry:()=>Eu,ShapePath:()=>_p,ShapeUtils:()=>gu,ShortType:()=>Te,Skeleton:()=>Ul,SkeletonHelper:()=>Yd,SkinnedMesh:()=>Dl,SmoothShading:()=>y,Sphere:()=>wr,SphereBufferGeometry:()=>Tu,SphereGeometry:()=>Tu,Spherical:()=>zd,SphericalHarmonics3:()=>Oh,SplineCurve:()=>kc,SpotLight:()=>Eh,SpotLightHelper:()=>Wd,Sprite:()=>Ml,SpriteMaterial:()=>cl,SrcAlphaFactor:()=>N,SrcAlphaSaturateFactor:()=>H,SrcColorFactor:()=>I,StaticCopyUsage:()=>ln,StaticDrawUsage:()=>tn,StaticReadUsage:()=>sn,StereoCamera:()=>ed,StreamCopyUsage:()=>un,StreamDrawUsage:()=>rn,StreamReadUsage:()=>on,StringKeyframeTrack:()=>nh,SubtractEquation:()=>T,SubtractiveBlending:()=>w,TOUCH:()=>s,TangentSpaceNormalMap:()=>Ft,TetrahedronBufferGeometry:()=>Au,TetrahedronGeometry:()=>Au,TextGeometry:()=>of,Texture:()=>jn,TextureLoader:()=>vh,TorusBufferGeometry:()=>Ru,TorusGeometry:()=>Ru,TorusKnotBufferGeometry:()=>Lu,TorusKnotGeometry:()=>Lu,Triangle:()=>pi,TriangleFanDrawMode:()=>It,TriangleStripDrawMode:()=>Pt,TrianglesDrawMode:()=>Ct,TubeBufferGeometry:()=>Cu,TubeGeometry:()=>Cu,UVMapping:()=>ie,Uint16Attribute:()=>Vp,Uint16BufferAttribute:()=>Si,Uint32Attribute:()=>jp,Uint32BufferAttribute:()=>Ti,Uint8Attribute:()=>Hp,Uint8BufferAttribute:()=>bi,Uint8ClampedAttribute:()=>kp,Uint8ClampedBufferAttribute:()=>wi,Uniform:()=>Cd,UniformsLib:()=>Es,UniformsUtils:()=>as,UnsignedByteType:()=>Se,UnsignedInt248Type:()=>Ne,UnsignedIntType:()=>Le,UnsignedShort4444Type:()=>Ie,UnsignedShort5551Type:()=>De,UnsignedShortType:()=>Ae,VSMShadowMap:()=>p,Vector2:()=>An,Vector3:()=>er,Vector4:()=>qn,VectorKeyframeTrack:()=>rh,Vertex:()=>Fp,VertexColors:()=>Rp,VideoTexture:()=>cc,WebGL1Renderer:()=>nl,WebGL3DRenderTarget:()=>Kn,WebGLArrayRenderTarget:()=>Zn,WebGLCubeRenderTarget:()=>ps,WebGLMultipleRenderTargets:()=>Qn,WebGLMultisampleRenderTarget:()=>hf,WebGLRenderTarget:()=>Xn,WebGLRenderTargetCube:()=>ef,WebGLRenderer:()=>tl,WebGLUtils:()=>Xo,WireframeGeometry:()=>Pu,WireframeHelper:()=>Kp,WrapAroundEnding:()=>At,XHRLoader:()=>Qp,ZeroCurvatureEnding:()=>Et,ZeroFactor:()=>C,ZeroSlopeEnding:()=>Tt,ZeroStencilOp:()=>Bt,_SRGBAFormat:()=>pn,sRGBEncoding:()=>Nt});const r="138",i={LEFT:0,MIDDLE:1,RIGHT:2,ROTATE:0,DOLLY:1,PAN:2},s={ROTATE:0,PAN:1,DOLLY_PAN:2,DOLLY_ROTATE:3},a=0,o=1,l=2,c=3,u=0,h=1,d=2,p=3,f=0,m=1,g=2,v=1,y=2,x=0,_=1,b=2,w=3,M=4,S=5,E=100,T=101,A=102,R=103,L=104,C=200,P=201,I=202,D=203,N=204,O=205,z=206,F=207,U=208,B=209,H=210,k=0,G=1,V=2,W=3,j=4,q=5,X=6,Y=7,Z=0,J=1,K=2,Q=0,$=1,ee=2,te=3,ne=4,re=5,ie=300,se=301,ae=302,oe=303,le=304,ce=306,ue=307,he=1e3,de=1001,pe=1002,fe=1003,me=1004,ge=1004,ve=1005,ye=1005,xe=1006,_e=1007,be=1007,we=1008,Me=1008,Se=1009,Ee=1010,Te=1011,Ae=1012,Re=1013,Le=1014,Ce=1015,Pe=1016,Ie=1017,De=1018,Ne=1020,Oe=1021,ze=1022,Fe=1023,Ue=1024,Be=1025,He=1026,ke=1027,Ge=1028,Ve=1029,We=1030,je=1031,qe=1033,Xe=33776,Ye=33777,Ze=33778,Je=33779,Ke=35840,Qe=35841,$e=35842,et=35843,tt=36196,nt=37492,rt=37496,it=37808,st=37809,at=37810,ot=37811,lt=37812,ct=37813,ut=37814,ht=37815,dt=37816,pt=37817,ft=37818,mt=37819,gt=37820,vt=37821,yt=36492,xt=2200,_t=2201,bt=2202,wt=2300,Mt=2301,St=2302,Et=2400,Tt=2401,At=2402,Rt=2500,Lt=2501,Ct=0,Pt=1,It=2,Dt=3e3,Nt=3001,Ot=3200,zt=3201,Ft=0,Ut=1,Bt=0,Ht=7680,kt=7681,Gt=7682,Vt=7683,Wt=34055,jt=34056,qt=5386,Xt=512,Yt=513,Zt=514,Jt=515,Kt=516,Qt=517,$t=518,en=519,tn=35044,nn=35048,rn=35040,sn=35045,an=35049,on=35041,ln=35046,cn=35050,un=35042,hn="100",dn="300 es",pn=1035;class fn{addEventListener(e,t){void 0===this._listeners&&(this._listeners={});const n=this._listeners;void 0===n[e]&&(n[e]=[]),-1===n[e].indexOf(t)&&n[e].push(t)}hasEventListener(e,t){if(void 0===this._listeners)return!1;const n=this._listeners;return void 0!==n[e]&&-1!==n[e].indexOf(t)}removeEventListener(e,t){if(void 0===this._listeners)return;const n=this._listeners[e];if(void 0!==n){const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}dispatchEvent(e){if(void 0===this._listeners)return;const t=this._listeners[e.type];if(void 0!==t){e.target=this;const n=t.slice(0);for(let t=0,r=n.length;t>8&255]+mn[e>>16&255]+mn[e>>24&255]+"-"+mn[255&t]+mn[t>>8&255]+"-"+mn[t>>16&15|64]+mn[t>>24&255]+"-"+mn[63&n|128]+mn[n>>8&255]+"-"+mn[n>>16&255]+mn[n>>24&255]+mn[255&r]+mn[r>>8&255]+mn[r>>16&255]+mn[r>>24&255]).toUpperCase()}function _n(e,t,n){return Math.max(t,Math.min(n,e))}function bn(e,t){return(e%t+t)%t}function wn(e,t,n){return(1-n)*e+n*t}function Mn(e){return 0==(e&e-1)&&0!==e}function Sn(e){return Math.pow(2,Math.ceil(Math.log(e)/Math.LN2))}function En(e){return Math.pow(2,Math.floor(Math.log(e)/Math.LN2))}var Tn=Object.freeze({__proto__:null,DEG2RAD:vn,RAD2DEG:yn,generateUUID:xn,clamp:_n,euclideanModulo:bn,mapLinear:function(e,t,n,r,i){return r+(e-t)*(i-r)/(n-t)},inverseLerp:function(e,t,n){return e!==t?(n-e)/(t-e):0},lerp:wn,damp:function(e,t,n,r){return wn(e,t,1-Math.exp(-n*r))},pingpong:function(e,t=1){return t-Math.abs(bn(e,2*t)-t)},smoothstep:function(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t))*e*(3-2*e)},smootherstep:function(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t))*e*e*(e*(6*e-15)+10)},randInt:function(e,t){return e+Math.floor(Math.random()*(t-e+1))},randFloat:function(e,t){return e+Math.random()*(t-e)},randFloatSpread:function(e){return e*(.5-Math.random())},seededRandom:function(e){return void 0!==e&&(gn=e%2147483647),gn=16807*gn%2147483647,(gn-1)/2147483646},degToRad:function(e){return e*vn},radToDeg:function(e){return e*yn},isPowerOfTwo:Mn,ceilPowerOfTwo:Sn,floorPowerOfTwo:En,setQuaternionFromProperEuler:function(e,t,n,r,i){const s=Math.cos,a=Math.sin,o=s(n/2),l=a(n/2),c=s((t+r)/2),u=a((t+r)/2),h=s((t-r)/2),d=a((t-r)/2),p=s((r-t)/2),f=a((r-t)/2);switch(i){case"XYX":e.set(o*u,l*h,l*d,o*c);break;case"YZY":e.set(l*d,o*u,l*h,o*c);break;case"ZXZ":e.set(l*h,l*d,o*u,o*c);break;case"XZX":e.set(o*u,l*f,l*p,o*c);break;case"YXY":e.set(l*p,o*u,l*f,o*c);break;case"ZYZ":e.set(l*f,l*p,o*u,o*c);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+i)}}});class An{constructor(e=0,t=0){this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e,t){return void 0!==t?(console.warn("THREE.Vector2: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(e,t)):(this.x+=e.x,this.y+=e.y,this)}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e,t){return void 0!==t?(console.warn("THREE.Vector2: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(e,t)):(this.x-=e.x,this.y-=e.y,this)}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){const t=this.x,n=this.y,r=e.elements;return this.x=r[0]*t+r[3]*n+r[6],this.y=r[1]*t+r[4]*n+r[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,n=this.y-e.y;return t*t+n*n}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t,n){return void 0!==n&&console.warn("THREE.Vector2: offset has been removed from .fromBufferAttribute()."),this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){const n=Math.cos(t),r=Math.sin(t),i=this.x-e.x,s=this.y-e.y;return this.x=i*n-s*r+e.x,this.y=i*r+s*n+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}An.prototype.isVector2=!0;class Rn{constructor(){this.elements=[1,0,0,0,1,0,0,0,1],arguments.length>0&&console.error("THREE.Matrix3: the constructor no longer reads arguments. use .set() instead.")}set(e,t,n,r,i,s,a,o,l){const c=this.elements;return c[0]=e,c[1]=r,c[2]=a,c[3]=t,c[4]=i,c[5]=o,c[6]=n,c[7]=s,c[8]=l,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],this}extractBasis(e,t,n){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const n=e.elements,r=t.elements,i=this.elements,s=n[0],a=n[3],o=n[6],l=n[1],c=n[4],u=n[7],h=n[2],d=n[5],p=n[8],f=r[0],m=r[3],g=r[6],v=r[1],y=r[4],x=r[7],_=r[2],b=r[5],w=r[8];return i[0]=s*f+a*v+o*_,i[3]=s*m+a*y+o*b,i[6]=s*g+a*x+o*w,i[1]=l*f+c*v+u*_,i[4]=l*m+c*y+u*b,i[7]=l*g+c*x+u*w,i[2]=h*f+d*v+p*_,i[5]=h*m+d*y+p*b,i[8]=h*g+d*x+p*w,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){const e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],s=e[4],a=e[5],o=e[6],l=e[7],c=e[8];return t*s*c-t*a*l-n*i*c+n*a*o+r*i*l-r*s*o}invert(){const e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],s=e[4],a=e[5],o=e[6],l=e[7],c=e[8],u=c*s-a*l,h=a*o-c*i,d=l*i-s*o,p=t*u+n*h+r*d;if(0===p)return this.set(0,0,0,0,0,0,0,0,0);const f=1/p;return e[0]=u*f,e[1]=(r*l-c*n)*f,e[2]=(a*n-r*s)*f,e[3]=h*f,e[4]=(c*t-r*o)*f,e[5]=(r*i-a*t)*f,e[6]=d*f,e[7]=(n*o-l*t)*f,e[8]=(s*t-n*i)*f,this}transpose(){let e;const t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,n,r,i,s,a){const o=Math.cos(i),l=Math.sin(i);return this.set(n*o,n*l,-n*(o*s+l*a)+s+e,-r*l,r*o,-r*(-l*s+o*a)+a+t,0,0,1),this}scale(e,t){const n=this.elements;return n[0]*=e,n[3]*=e,n[6]*=e,n[1]*=t,n[4]*=t,n[7]*=t,this}rotate(e){const t=Math.cos(e),n=Math.sin(e),r=this.elements,i=r[0],s=r[3],a=r[6],o=r[1],l=r[4],c=r[7];return r[0]=t*i+n*o,r[3]=t*s+n*l,r[6]=t*a+n*c,r[1]=-n*i+t*o,r[4]=-n*s+t*l,r[7]=-n*a+t*c,this}translate(e,t){const n=this.elements;return n[0]+=e*n[2],n[3]+=e*n[5],n[6]+=e*n[8],n[1]+=t*n[2],n[4]+=t*n[5],n[7]+=t*n[8],this}equals(e){const t=this.elements,n=e.elements;for(let e=0;e<9;e++)if(t[e]!==n[e])return!1;return!0}fromArray(e,t=0){for(let n=0;n<9;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){const n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e}clone(){return(new this.constructor).fromArray(this.elements)}}function Ln(e){for(let t=e.length-1;t>=0;--t)if(e[t]>65535)return!0;return!1}Rn.prototype.isMatrix3=!0;const Cn={Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array};function Pn(e,t){return new Cn[e](t)}function In(e){return document.createElementNS("http://www.w3.org/1999/xhtml",e)}const Dn={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},Nn={h:0,s:0,l:0},On={h:0,s:0,l:0};function zn(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+6*(t-e)*(2/3-n):e}function Fn(e){return e<.04045?.0773993808*e:Math.pow(.9478672986*e+.0521327014,2.4)}function Un(e){return e<.0031308?12.92*e:1.055*Math.pow(e,.41666)-.055}class Bn{constructor(e,t,n){return void 0===t&&void 0===n?this.set(e):this.setRGB(e,t,n)}set(e){return e&&e.isColor?this.copy(e):"number"==typeof e?this.setHex(e):"string"==typeof e&&this.setStyle(e),this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(255&e)/255,this}setRGB(e,t,n){return this.r=e,this.g=t,this.b=n,this}setHSL(e,t,n){if(e=bn(e,1),t=_n(t,0,1),n=_n(n,0,1),0===t)this.r=this.g=this.b=n;else{const r=n<=.5?n*(1+t):n+t-n*t,i=2*n-r;this.r=zn(i,r,e+1/3),this.g=zn(i,r,e),this.b=zn(i,r,e-1/3)}return this}setStyle(e){function t(t){void 0!==t&&parseFloat(t)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}let n;if(n=/^((?:rgb|hsl)a?)\(([^\)]*)\)/.exec(e)){let e;const r=n[1],i=n[2];switch(r){case"rgb":case"rgba":if(e=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(i))return this.r=Math.min(255,parseInt(e[1],10))/255,this.g=Math.min(255,parseInt(e[2],10))/255,this.b=Math.min(255,parseInt(e[3],10))/255,t(e[4]),this;if(e=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(i))return this.r=Math.min(100,parseInt(e[1],10))/100,this.g=Math.min(100,parseInt(e[2],10))/100,this.b=Math.min(100,parseInt(e[3],10))/100,t(e[4]),this;break;case"hsl":case"hsla":if(e=/^\s*(\d*\.?\d+)\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(i)){const n=parseFloat(e[1])/360,r=parseInt(e[2],10)/100,i=parseInt(e[3],10)/100;return t(e[4]),this.setHSL(n,r,i)}}}else if(n=/^\#([A-Fa-f\d]+)$/.exec(e)){const e=n[1],t=e.length;if(3===t)return this.r=parseInt(e.charAt(0)+e.charAt(0),16)/255,this.g=parseInt(e.charAt(1)+e.charAt(1),16)/255,this.b=parseInt(e.charAt(2)+e.charAt(2),16)/255,this;if(6===t)return this.r=parseInt(e.charAt(0)+e.charAt(1),16)/255,this.g=parseInt(e.charAt(2)+e.charAt(3),16)/255,this.b=parseInt(e.charAt(4)+e.charAt(5),16)/255,this}return e&&e.length>0?this.setColorName(e):this}setColorName(e){const t=Dn[e.toLowerCase()];return void 0!==t?this.setHex(t):console.warn("THREE.Color: Unknown color "+e),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=Fn(e.r),this.g=Fn(e.g),this.b=Fn(e.b),this}copyLinearToSRGB(e){return this.r=Un(e.r),this.g=Un(e.g),this.b=Un(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(){return 255*this.r<<16^255*this.g<<8^255*this.b<<0}getHexString(){return("000000"+this.getHex().toString(16)).slice(-6)}getHSL(e){const t=this.r,n=this.g,r=this.b,i=Math.max(t,n,r),s=Math.min(t,n,r);let a,o;const l=(s+i)/2;if(s===i)a=0,o=0;else{const e=i-s;switch(o=l<=.5?e/(i+s):e/(2-i-s),i){case t:a=(n-r)/e+(n2048||t.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",e),t.toDataURL("image/jpeg",.6)):t.toDataURL("image/png")}static sRGBToLinear(e){if("undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap){const t=In("canvas");t.width=e.width,t.height=e.height;const n=t.getContext("2d");n.drawImage(e,0,0,e.width,e.height);const r=n.getImageData(0,0,e.width,e.height),i=r.data;for(let e=0;e1)switch(this.wrapS){case he:e.x=e.x-Math.floor(e.x);break;case de:e.x=e.x<0?0:1;break;case pe:1===Math.abs(Math.floor(e.x)%2)?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x)}if(e.y<0||e.y>1)switch(this.wrapT){case he:e.y=e.y-Math.floor(e.y);break;case de:e.y=e.y<0?0:1;break;case pe:1===Math.abs(Math.floor(e.y)%2)?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y)}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){!0===e&&(this.version++,this.source.needsUpdate=!0)}}jn.DEFAULT_IMAGE=null,jn.DEFAULT_MAPPING=ie,jn.prototype.isTexture=!0;class qn{constructor(e=0,t=0,n=0,r=1){this.x=e,this.y=t,this.z=n,this.w=r}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,n,r){return this.x=e,this.y=t,this.z=n,this.w=r,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=void 0!==e.w?e.w:1,this}add(e,t){return void 0!==t?(console.warn("THREE.Vector4: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(e,t)):(this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this)}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e,t){return void 0!==t?(console.warn("THREE.Vector4: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(e,t)):(this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this)}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){const t=this.x,n=this.y,r=this.z,i=this.w,s=e.elements;return this.x=s[0]*t+s[4]*n+s[8]*r+s[12]*i,this.y=s[1]*t+s[5]*n+s[9]*r+s[13]*i,this.z=s[2]*t+s[6]*n+s[10]*r+s[14]*i,this.w=s[3]*t+s[7]*n+s[11]*r+s[15]*i,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);const t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,n,r,i;const s=.01,a=.1,o=e.elements,l=o[0],c=o[4],u=o[8],h=o[1],d=o[5],p=o[9],f=o[2],m=o[6],g=o[10];if(Math.abs(c-h)o&&e>v?ev?o=0?1:-1,r=1-t*t;if(r>Number.EPSILON){const i=Math.sqrt(r),s=Math.atan2(i,t*n);e=Math.sin(e*s)/i,a=Math.sin(a*s)/i}const i=a*n;if(o=o*e+h*i,l=l*e+d*i,c=c*e+p*i,u=u*e+f*i,e===1-a){const e=1/Math.sqrt(o*o+l*l+c*c+u*u);o*=e,l*=e,c*=e,u*=e}}e[t]=o,e[t+1]=l,e[t+2]=c,e[t+3]=u}static multiplyQuaternionsFlat(e,t,n,r,i,s){const a=n[r],o=n[r+1],l=n[r+2],c=n[r+3],u=i[s],h=i[s+1],d=i[s+2],p=i[s+3];return e[t]=a*p+c*u+o*d-l*h,e[t+1]=o*p+c*h+l*u-a*d,e[t+2]=l*p+c*d+a*h-o*u,e[t+3]=c*p-a*u-o*h-l*d,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,n,r){return this._x=e,this._y=t,this._z=n,this._w=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t){if(!e||!e.isEuler)throw new Error("THREE.Quaternion: .setFromEuler() now expects an Euler rotation rather than a Vector3 and order.");const n=e._x,r=e._y,i=e._z,s=e._order,a=Math.cos,o=Math.sin,l=a(n/2),c=a(r/2),u=a(i/2),h=o(n/2),d=o(r/2),p=o(i/2);switch(s){case"XYZ":this._x=h*c*u+l*d*p,this._y=l*d*u-h*c*p,this._z=l*c*p+h*d*u,this._w=l*c*u-h*d*p;break;case"YXZ":this._x=h*c*u+l*d*p,this._y=l*d*u-h*c*p,this._z=l*c*p-h*d*u,this._w=l*c*u+h*d*p;break;case"ZXY":this._x=h*c*u-l*d*p,this._y=l*d*u+h*c*p,this._z=l*c*p+h*d*u,this._w=l*c*u-h*d*p;break;case"ZYX":this._x=h*c*u-l*d*p,this._y=l*d*u+h*c*p,this._z=l*c*p-h*d*u,this._w=l*c*u+h*d*p;break;case"YZX":this._x=h*c*u+l*d*p,this._y=l*d*u+h*c*p,this._z=l*c*p-h*d*u,this._w=l*c*u-h*d*p;break;case"XZY":this._x=h*c*u-l*d*p,this._y=l*d*u-h*c*p,this._z=l*c*p+h*d*u,this._w=l*c*u+h*d*p;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+s)}return!1!==t&&this._onChangeCallback(),this}setFromAxisAngle(e,t){const n=t/2,r=Math.sin(n);return this._x=e.x*r,this._y=e.y*r,this._z=e.z*r,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(e){const t=e.elements,n=t[0],r=t[4],i=t[8],s=t[1],a=t[5],o=t[9],l=t[2],c=t[6],u=t[10],h=n+a+u;if(h>0){const e=.5/Math.sqrt(h+1);this._w=.25/e,this._x=(c-o)*e,this._y=(i-l)*e,this._z=(s-r)*e}else if(n>a&&n>u){const e=2*Math.sqrt(1+n-a-u);this._w=(c-o)/e,this._x=.25*e,this._y=(r+s)/e,this._z=(i+l)/e}else if(a>u){const e=2*Math.sqrt(1+a-n-u);this._w=(i-l)/e,this._x=(r+s)/e,this._y=.25*e,this._z=(o+c)/e}else{const e=2*Math.sqrt(1+u-n-a);this._w=(s-r)/e,this._x=(i+l)/e,this._y=(o+c)/e,this._z=.25*e}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let n=e.dot(t)+1;return nMath.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=n):(this._x=0,this._y=-e.z,this._z=e.y,this._w=n)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=n),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(_n(this.dot(e),-1,1)))}rotateTowards(e,t){const n=this.angleTo(e);if(0===n)return this;const r=Math.min(1,t/n);return this.slerp(e,r),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return 0===e?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}multiply(e,t){return void 0!==t?(console.warn("THREE.Quaternion: .multiply() now only accepts one argument. Use .multiplyQuaternions( a, b ) instead."),this.multiplyQuaternions(e,t)):this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){const n=e._x,r=e._y,i=e._z,s=e._w,a=t._x,o=t._y,l=t._z,c=t._w;return this._x=n*c+s*a+r*l-i*o,this._y=r*c+s*o+i*a-n*l,this._z=i*c+s*l+n*o-r*a,this._w=s*c-n*a-r*o-i*l,this._onChangeCallback(),this}slerp(e,t){if(0===t)return this;if(1===t)return this.copy(e);const n=this._x,r=this._y,i=this._z,s=this._w;let a=s*e._w+n*e._x+r*e._y+i*e._z;if(a<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,a=-a):this.copy(e),a>=1)return this._w=s,this._x=n,this._y=r,this._z=i,this;const o=1-a*a;if(o<=Number.EPSILON){const e=1-t;return this._w=e*s+t*this._w,this._x=e*n+t*this._x,this._y=e*r+t*this._y,this._z=e*i+t*this._z,this.normalize(),this._onChangeCallback(),this}const l=Math.sqrt(o),c=Math.atan2(l,a),u=Math.sin((1-t)*c)/l,h=Math.sin(t*c)/l;return this._w=s*u+this._w*h,this._x=n*u+this._x*h,this._y=r*u+this._y*h,this._z=i*u+this._z*h,this._onChangeCallback(),this}slerpQuaternions(e,t,n){return this.copy(e).slerp(t,n)}random(){const e=Math.random(),t=Math.sqrt(1-e),n=Math.sqrt(e),r=2*Math.PI*Math.random(),i=2*Math.PI*Math.random();return this.set(t*Math.cos(r),n*Math.sin(i),n*Math.cos(i),t*Math.sin(r))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}}$n.prototype.isQuaternion=!0;class er{constructor(e=0,t=0,n=0){this.x=e,this.y=t,this.z=n}set(e,t,n){return void 0===n&&(n=this.z),this.x=e,this.y=t,this.z=n,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e,t){return void 0!==t?(console.warn("THREE.Vector3: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(e,t)):(this.x+=e.x,this.y+=e.y,this.z+=e.z,this)}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e,t){return void 0!==t?(console.warn("THREE.Vector3: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(e,t)):(this.x-=e.x,this.y-=e.y,this.z-=e.z,this)}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e,t){return void 0!==t?(console.warn("THREE.Vector3: .multiply() now only accepts one argument. Use .multiplyVectors( a, b ) instead."),this.multiplyVectors(e,t)):(this.x*=e.x,this.y*=e.y,this.z*=e.z,this)}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return e&&e.isEuler||console.error("THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order."),this.applyQuaternion(nr.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(nr.setFromAxisAngle(e,t))}applyMatrix3(e){const t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[3]*n+i[6]*r,this.y=i[1]*t+i[4]*n+i[7]*r,this.z=i[2]*t+i[5]*n+i[8]*r,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const t=this.x,n=this.y,r=this.z,i=e.elements,s=1/(i[3]*t+i[7]*n+i[11]*r+i[15]);return this.x=(i[0]*t+i[4]*n+i[8]*r+i[12])*s,this.y=(i[1]*t+i[5]*n+i[9]*r+i[13])*s,this.z=(i[2]*t+i[6]*n+i[10]*r+i[14])*s,this}applyQuaternion(e){const t=this.x,n=this.y,r=this.z,i=e.x,s=e.y,a=e.z,o=e.w,l=o*t+s*r-a*n,c=o*n+a*t-i*r,u=o*r+i*n-s*t,h=-i*t-s*n-a*r;return this.x=l*o+h*-i+c*-a-u*-s,this.y=c*o+h*-s+u*-i-l*-a,this.z=u*o+h*-a+l*-s-c*-i,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){const t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[4]*n+i[8]*r,this.y=i[1]*t+i[5]*n+i[9]*r,this.z=i[2]*t+i[6]*n+i[10]*r,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this}cross(e,t){return void 0!==t?(console.warn("THREE.Vector3: .cross() now only accepts one argument. Use .crossVectors( a, b ) instead."),this.crossVectors(e,t)):this.crossVectors(this,e)}crossVectors(e,t){const n=e.x,r=e.y,i=e.z,s=t.x,a=t.y,o=t.z;return this.x=r*o-i*a,this.y=i*s-n*o,this.z=n*a-r*s,this}projectOnVector(e){const t=e.lengthSq();if(0===t)return this.set(0,0,0);const n=e.dot(this)/t;return this.copy(e).multiplyScalar(n)}projectOnPlane(e){return tr.copy(this).projectOnVector(e),this.sub(tr)}reflect(e){return this.sub(tr.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(0===t)return Math.PI/2;const n=this.dot(e)/t;return Math.acos(_n(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,n=this.y-e.y,r=this.z-e.z;return t*t+n*n+r*r}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,n){const r=Math.sin(t)*e;return this.x=r*Math.sin(n),this.y=Math.cos(t)*e,this.z=r*Math.cos(n),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,n){return this.x=e*Math.sin(t),this.y=n,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){const t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){const t=this.setFromMatrixColumn(e,0).length(),n=this.setFromMatrixColumn(e,1).length(),r=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=n,this.z=r,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,4*t)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,3*t)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t,n){return void 0!==n&&console.warn("THREE.Vector3: offset has been removed from .fromBufferAttribute()."),this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const e=2*(Math.random()-.5),t=Math.random()*Math.PI*2,n=Math.sqrt(1-e**2);return this.x=n*Math.cos(t),this.y=n*Math.sin(t),this.z=e,this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}er.prototype.isVector3=!0;const tr=new er,nr=new $n;class rr{constructor(e=new er(1/0,1/0,1/0),t=new er(-1/0,-1/0,-1/0)){this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){let t=1/0,n=1/0,r=1/0,i=-1/0,s=-1/0,a=-1/0;for(let o=0,l=e.length;oi&&(i=l),c>s&&(s=c),u>a&&(a=u)}return this.min.set(t,n,r),this.max.set(i,s,a),this}setFromBufferAttribute(e){let t=1/0,n=1/0,r=1/0,i=-1/0,s=-1/0,a=-1/0;for(let o=0,l=e.count;oi&&(i=l),c>s&&(s=c),u>a&&(a=u)}return this.min.set(t,n,r),this.max.set(i,s,a),this}setFromPoints(e){this.makeEmpty();for(let t=0,n=e.length;tthis.max.x||e.ythis.max.y||e.zthis.max.z)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return!(e.max.xthis.max.x||e.max.ythis.max.y||e.max.zthis.max.z)}intersectsSphere(e){return this.clampPoint(e.center,sr),sr.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,n;return e.normal.x>0?(t=e.normal.x*this.min.x,n=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,n=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,n+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,n+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,n+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,n+=e.normal.z*this.min.z),t<=-e.constant&&n>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(pr),fr.subVectors(this.max,pr),or.subVectors(e.a,pr),lr.subVectors(e.b,pr),cr.subVectors(e.c,pr),ur.subVectors(lr,or),hr.subVectors(cr,lr),dr.subVectors(or,cr);let t=[0,-ur.z,ur.y,0,-hr.z,hr.y,0,-dr.z,dr.y,ur.z,0,-ur.x,hr.z,0,-hr.x,dr.z,0,-dr.x,-ur.y,ur.x,0,-hr.y,hr.x,0,-dr.y,dr.x,0];return!!vr(t,or,lr,cr,fr)&&(t=[1,0,0,0,1,0,0,0,1],!!vr(t,or,lr,cr,fr)&&(mr.crossVectors(ur,hr),t=[mr.x,mr.y,mr.z],vr(t,or,lr,cr,fr)))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return sr.copy(e).clamp(this.min,this.max).sub(e).length()}getBoundingSphere(e){return this.getCenter(e.center),e.radius=.5*this.getSize(sr).length(),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()||(ir[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),ir[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),ir[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),ir[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),ir[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),ir[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),ir[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),ir[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(ir)),this}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}rr.prototype.isBox3=!0;const ir=[new er,new er,new er,new er,new er,new er,new er,new er],sr=new er,ar=new rr,or=new er,lr=new er,cr=new er,ur=new er,hr=new er,dr=new er,pr=new er,fr=new er,mr=new er,gr=new er;function vr(e,t,n,r,i){for(let s=0,a=e.length-3;s<=a;s+=3){gr.fromArray(e,s);const a=i.x*Math.abs(gr.x)+i.y*Math.abs(gr.y)+i.z*Math.abs(gr.z),o=t.dot(gr),l=n.dot(gr),c=r.dot(gr);if(Math.max(-Math.max(o,l,c),Math.min(o,l,c))>a)return!1}return!0}const yr=new rr,xr=new er,_r=new er,br=new er;class wr{constructor(e=new er,t=-1){this.center=e,this.radius=t}set(e,t){return this.center.copy(e),this.radius=t,this}setFromPoints(e,t){const n=this.center;void 0!==t?n.copy(t):yr.setFromPoints(e).getCenter(n);let r=0;for(let t=0,i=e.length;tthis.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){br.subVectors(e,this.center);const t=br.lengthSq();if(t>this.radius*this.radius){const e=Math.sqrt(t),n=.5*(e-this.radius);this.center.add(br.multiplyScalar(n/e)),this.radius+=n}return this}union(e){return!0===this.center.equals(e.center)?_r.set(0,0,1).multiplyScalar(e.radius):_r.subVectors(e.center,this.center).normalize().multiplyScalar(e.radius),this.expandByPoint(xr.copy(e.center).add(_r)),this.expandByPoint(xr.copy(e.center).sub(_r)),this}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return(new this.constructor).copy(this)}}const Mr=new er,Sr=new er,Er=new er,Tr=new er,Ar=new er,Rr=new er,Lr=new er;class Cr{constructor(e=new er,t=new er(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.direction).multiplyScalar(e).add(this.origin)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,Mr)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);const n=t.dot(this.direction);return n<0?t.copy(this.origin):t.copy(this.direction).multiplyScalar(n).add(this.origin)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const t=Mr.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(Mr.copy(this.direction).multiplyScalar(t).add(this.origin),Mr.distanceToSquared(e))}distanceSqToSegment(e,t,n,r){Sr.copy(e).add(t).multiplyScalar(.5),Er.copy(t).sub(e).normalize(),Tr.copy(this.origin).sub(Sr);const i=.5*e.distanceTo(t),s=-this.direction.dot(Er),a=Tr.dot(this.direction),o=-Tr.dot(Er),l=Tr.lengthSq(),c=Math.abs(1-s*s);let u,h,d,p;if(c>0)if(u=s*o-a,h=s*a-o,p=i*c,u>=0)if(h>=-p)if(h<=p){const e=1/c;u*=e,h*=e,d=u*(u+s*h+2*a)+h*(s*u+h+2*o)+l}else h=i,u=Math.max(0,-(s*h+a)),d=-u*u+h*(h+2*o)+l;else h=-i,u=Math.max(0,-(s*h+a)),d=-u*u+h*(h+2*o)+l;else h<=-p?(u=Math.max(0,-(-s*i+a)),h=u>0?-i:Math.min(Math.max(-i,-o),i),d=-u*u+h*(h+2*o)+l):h<=p?(u=0,h=Math.min(Math.max(-i,-o),i),d=h*(h+2*o)+l):(u=Math.max(0,-(s*i+a)),h=u>0?i:Math.min(Math.max(-i,-o),i),d=-u*u+h*(h+2*o)+l);else h=s>0?-i:i,u=Math.max(0,-(s*h+a)),d=-u*u+h*(h+2*o)+l;return n&&n.copy(this.direction).multiplyScalar(u).add(this.origin),r&&r.copy(Er).multiplyScalar(h).add(Sr),d}intersectSphere(e,t){Mr.subVectors(e.center,this.origin);const n=Mr.dot(this.direction),r=Mr.dot(Mr)-n*n,i=e.radius*e.radius;if(r>i)return null;const s=Math.sqrt(i-r),a=n-s,o=n+s;return a<0&&o<0?null:a<0?this.at(o,t):this.at(a,t)}intersectsSphere(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){const t=e.normal.dot(this.direction);if(0===t)return 0===e.distanceToPoint(this.origin)?0:null;const n=-(this.origin.dot(e.normal)+e.constant)/t;return n>=0?n:null}intersectPlane(e,t){const n=this.distanceToPlane(e);return null===n?null:this.at(n,t)}intersectsPlane(e){const t=e.distanceToPoint(this.origin);return 0===t||e.normal.dot(this.direction)*t<0}intersectBox(e,t){let n,r,i,s,a,o;const l=1/this.direction.x,c=1/this.direction.y,u=1/this.direction.z,h=this.origin;return l>=0?(n=(e.min.x-h.x)*l,r=(e.max.x-h.x)*l):(n=(e.max.x-h.x)*l,r=(e.min.x-h.x)*l),c>=0?(i=(e.min.y-h.y)*c,s=(e.max.y-h.y)*c):(i=(e.max.y-h.y)*c,s=(e.min.y-h.y)*c),n>s||i>r?null:((i>n||n!=n)&&(n=i),(s=0?(a=(e.min.z-h.z)*u,o=(e.max.z-h.z)*u):(a=(e.max.z-h.z)*u,o=(e.min.z-h.z)*u),n>o||a>r?null:((a>n||n!=n)&&(n=a),(o=0?n:r,t)))}intersectsBox(e){return null!==this.intersectBox(e,Mr)}intersectTriangle(e,t,n,r,i){Ar.subVectors(t,e),Rr.subVectors(n,e),Lr.crossVectors(Ar,Rr);let s,a=this.direction.dot(Lr);if(a>0){if(r)return null;s=1}else{if(!(a<0))return null;s=-1,a=-a}Tr.subVectors(this.origin,e);const o=s*this.direction.dot(Rr.crossVectors(Tr,Rr));if(o<0)return null;const l=s*this.direction.dot(Ar.cross(Tr));if(l<0)return null;if(o+l>a)return null;const c=-s*Tr.dot(Lr);return c<0?null:this.at(c/a,i)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return(new this.constructor).copy(this)}}class Pr{constructor(){this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],arguments.length>0&&console.error("THREE.Matrix4: the constructor no longer reads arguments. use .set() instead.")}set(e,t,n,r,i,s,a,o,l,c,u,h,d,p,f,m){const g=this.elements;return g[0]=e,g[4]=t,g[8]=n,g[12]=r,g[1]=i,g[5]=s,g[9]=a,g[13]=o,g[2]=l,g[6]=c,g[10]=u,g[14]=h,g[3]=d,g[7]=p,g[11]=f,g[15]=m,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return(new Pr).fromArray(this.elements)}copy(e){const t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],this}copyPosition(e){const t=this.elements,n=e.elements;return t[12]=n[12],t[13]=n[13],t[14]=n[14],this}setFromMatrix3(e){const t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}extractBasis(e,t,n){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this}makeBasis(e,t,n){return this.set(e.x,t.x,n.x,0,e.y,t.y,n.y,0,e.z,t.z,n.z,0,0,0,0,1),this}extractRotation(e){const t=this.elements,n=e.elements,r=1/Ir.setFromMatrixColumn(e,0).length(),i=1/Ir.setFromMatrixColumn(e,1).length(),s=1/Ir.setFromMatrixColumn(e,2).length();return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=0,t[4]=n[4]*i,t[5]=n[5]*i,t[6]=n[6]*i,t[7]=0,t[8]=n[8]*s,t[9]=n[9]*s,t[10]=n[10]*s,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromEuler(e){e&&e.isEuler||console.error("THREE.Matrix4: .makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order.");const t=this.elements,n=e.x,r=e.y,i=e.z,s=Math.cos(n),a=Math.sin(n),o=Math.cos(r),l=Math.sin(r),c=Math.cos(i),u=Math.sin(i);if("XYZ"===e.order){const e=s*c,n=s*u,r=a*c,i=a*u;t[0]=o*c,t[4]=-o*u,t[8]=l,t[1]=n+r*l,t[5]=e-i*l,t[9]=-a*o,t[2]=i-e*l,t[6]=r+n*l,t[10]=s*o}else if("YXZ"===e.order){const e=o*c,n=o*u,r=l*c,i=l*u;t[0]=e+i*a,t[4]=r*a-n,t[8]=s*l,t[1]=s*u,t[5]=s*c,t[9]=-a,t[2]=n*a-r,t[6]=i+e*a,t[10]=s*o}else if("ZXY"===e.order){const e=o*c,n=o*u,r=l*c,i=l*u;t[0]=e-i*a,t[4]=-s*u,t[8]=r+n*a,t[1]=n+r*a,t[5]=s*c,t[9]=i-e*a,t[2]=-s*l,t[6]=a,t[10]=s*o}else if("ZYX"===e.order){const e=s*c,n=s*u,r=a*c,i=a*u;t[0]=o*c,t[4]=r*l-n,t[8]=e*l+i,t[1]=o*u,t[5]=i*l+e,t[9]=n*l-r,t[2]=-l,t[6]=a*o,t[10]=s*o}else if("YZX"===e.order){const e=s*o,n=s*l,r=a*o,i=a*l;t[0]=o*c,t[4]=i-e*u,t[8]=r*u+n,t[1]=u,t[5]=s*c,t[9]=-a*c,t[2]=-l*c,t[6]=n*u+r,t[10]=e-i*u}else if("XZY"===e.order){const e=s*o,n=s*l,r=a*o,i=a*l;t[0]=o*c,t[4]=-u,t[8]=l*c,t[1]=e*u+i,t[5]=s*c,t[9]=n*u-r,t[2]=r*u-n,t[6]=a*c,t[10]=i*u+e}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromQuaternion(e){return this.compose(Nr,e,Or)}lookAt(e,t,n){const r=this.elements;return Ur.subVectors(e,t),0===Ur.lengthSq()&&(Ur.z=1),Ur.normalize(),zr.crossVectors(n,Ur),0===zr.lengthSq()&&(1===Math.abs(n.z)?Ur.x+=1e-4:Ur.z+=1e-4,Ur.normalize(),zr.crossVectors(n,Ur)),zr.normalize(),Fr.crossVectors(Ur,zr),r[0]=zr.x,r[4]=Fr.x,r[8]=Ur.x,r[1]=zr.y,r[5]=Fr.y,r[9]=Ur.y,r[2]=zr.z,r[6]=Fr.z,r[10]=Ur.z,this}multiply(e,t){return void 0!==t?(console.warn("THREE.Matrix4: .multiply() now only accepts one argument. Use .multiplyMatrices( a, b ) instead."),this.multiplyMatrices(e,t)):this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const n=e.elements,r=t.elements,i=this.elements,s=n[0],a=n[4],o=n[8],l=n[12],c=n[1],u=n[5],h=n[9],d=n[13],p=n[2],f=n[6],m=n[10],g=n[14],v=n[3],y=n[7],x=n[11],_=n[15],b=r[0],w=r[4],M=r[8],S=r[12],E=r[1],T=r[5],A=r[9],R=r[13],L=r[2],C=r[6],P=r[10],I=r[14],D=r[3],N=r[7],O=r[11],z=r[15];return i[0]=s*b+a*E+o*L+l*D,i[4]=s*w+a*T+o*C+l*N,i[8]=s*M+a*A+o*P+l*O,i[12]=s*S+a*R+o*I+l*z,i[1]=c*b+u*E+h*L+d*D,i[5]=c*w+u*T+h*C+d*N,i[9]=c*M+u*A+h*P+d*O,i[13]=c*S+u*R+h*I+d*z,i[2]=p*b+f*E+m*L+g*D,i[6]=p*w+f*T+m*C+g*N,i[10]=p*M+f*A+m*P+g*O,i[14]=p*S+f*R+m*I+g*z,i[3]=v*b+y*E+x*L+_*D,i[7]=v*w+y*T+x*C+_*N,i[11]=v*M+y*A+x*P+_*O,i[15]=v*S+y*R+x*I+_*z,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}determinant(){const e=this.elements,t=e[0],n=e[4],r=e[8],i=e[12],s=e[1],a=e[5],o=e[9],l=e[13],c=e[2],u=e[6],h=e[10],d=e[14];return e[3]*(+i*o*u-r*l*u-i*a*h+n*l*h+r*a*d-n*o*d)+e[7]*(+t*o*d-t*l*h+i*s*h-r*s*d+r*l*c-i*o*c)+e[11]*(+t*l*u-t*a*d-i*s*u+n*s*d+i*a*c-n*l*c)+e[15]*(-r*a*c-t*o*u+t*a*h+r*s*u-n*s*h+n*o*c)}transpose(){const e=this.elements;let t;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}setPosition(e,t,n){const r=this.elements;return e.isVector3?(r[12]=e.x,r[13]=e.y,r[14]=e.z):(r[12]=e,r[13]=t,r[14]=n),this}invert(){const e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],s=e[4],a=e[5],o=e[6],l=e[7],c=e[8],u=e[9],h=e[10],d=e[11],p=e[12],f=e[13],m=e[14],g=e[15],v=u*m*l-f*h*l+f*o*d-a*m*d-u*o*g+a*h*g,y=p*h*l-c*m*l-p*o*d+s*m*d+c*o*g-s*h*g,x=c*f*l-p*u*l+p*a*d-s*f*d-c*a*g+s*u*g,_=p*u*o-c*f*o-p*a*h+s*f*h+c*a*m-s*u*m,b=t*v+n*y+r*x+i*_;if(0===b)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const w=1/b;return e[0]=v*w,e[1]=(f*h*i-u*m*i-f*r*d+n*m*d+u*r*g-n*h*g)*w,e[2]=(a*m*i-f*o*i+f*r*l-n*m*l-a*r*g+n*o*g)*w,e[3]=(u*o*i-a*h*i-u*r*l+n*h*l+a*r*d-n*o*d)*w,e[4]=y*w,e[5]=(c*m*i-p*h*i+p*r*d-t*m*d-c*r*g+t*h*g)*w,e[6]=(p*o*i-s*m*i-p*r*l+t*m*l+s*r*g-t*o*g)*w,e[7]=(s*h*i-c*o*i+c*r*l-t*h*l-s*r*d+t*o*d)*w,e[8]=x*w,e[9]=(p*u*i-c*f*i-p*n*d+t*f*d+c*n*g-t*u*g)*w,e[10]=(s*f*i-p*a*i+p*n*l-t*f*l-s*n*g+t*a*g)*w,e[11]=(c*a*i-s*u*i-c*n*l+t*u*l+s*n*d-t*a*d)*w,e[12]=_*w,e[13]=(c*f*r-p*u*r+p*n*h-t*f*h-c*n*m+t*u*m)*w,e[14]=(p*a*r-s*f*r-p*n*o+t*f*o+s*n*m-t*a*m)*w,e[15]=(s*u*r-c*a*r+c*n*o-t*u*o-s*n*h+t*a*h)*w,this}scale(e){const t=this.elements,n=e.x,r=e.y,i=e.z;return t[0]*=n,t[4]*=r,t[8]*=i,t[1]*=n,t[5]*=r,t[9]*=i,t[2]*=n,t[6]*=r,t[10]*=i,t[3]*=n,t[7]*=r,t[11]*=i,this}getMaxScaleOnAxis(){const e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],n=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],r=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,n,r))}makeTranslation(e,t,n){return this.set(1,0,0,e,0,1,0,t,0,0,1,n,0,0,0,1),this}makeRotationX(e){const t=Math.cos(e),n=Math.sin(e);return this.set(1,0,0,0,0,t,-n,0,0,n,t,0,0,0,0,1),this}makeRotationY(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,0,n,0,0,1,0,0,-n,0,t,0,0,0,0,1),this}makeRotationZ(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,0,n,t,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,t){const n=Math.cos(t),r=Math.sin(t),i=1-n,s=e.x,a=e.y,o=e.z,l=i*s,c=i*a;return this.set(l*s+n,l*a-r*o,l*o+r*a,0,l*a+r*o,c*a+n,c*o-r*s,0,l*o-r*a,c*o+r*s,i*o*o+n,0,0,0,0,1),this}makeScale(e,t,n){return this.set(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1),this}makeShear(e,t,n,r,i,s){return this.set(1,n,i,0,e,1,s,0,t,r,1,0,0,0,0,1),this}compose(e,t,n){const r=this.elements,i=t._x,s=t._y,a=t._z,o=t._w,l=i+i,c=s+s,u=a+a,h=i*l,d=i*c,p=i*u,f=s*c,m=s*u,g=a*u,v=o*l,y=o*c,x=o*u,_=n.x,b=n.y,w=n.z;return r[0]=(1-(f+g))*_,r[1]=(d+x)*_,r[2]=(p-y)*_,r[3]=0,r[4]=(d-x)*b,r[5]=(1-(h+g))*b,r[6]=(m+v)*b,r[7]=0,r[8]=(p+y)*w,r[9]=(m-v)*w,r[10]=(1-(h+f))*w,r[11]=0,r[12]=e.x,r[13]=e.y,r[14]=e.z,r[15]=1,this}decompose(e,t,n){const r=this.elements;let i=Ir.set(r[0],r[1],r[2]).length();const s=Ir.set(r[4],r[5],r[6]).length(),a=Ir.set(r[8],r[9],r[10]).length();this.determinant()<0&&(i=-i),e.x=r[12],e.y=r[13],e.z=r[14],Dr.copy(this);const o=1/i,l=1/s,c=1/a;return Dr.elements[0]*=o,Dr.elements[1]*=o,Dr.elements[2]*=o,Dr.elements[4]*=l,Dr.elements[5]*=l,Dr.elements[6]*=l,Dr.elements[8]*=c,Dr.elements[9]*=c,Dr.elements[10]*=c,t.setFromRotationMatrix(Dr),n.x=i,n.y=s,n.z=a,this}makePerspective(e,t,n,r,i,s){void 0===s&&console.warn("THREE.Matrix4: .makePerspective() has been redefined and has a new signature. Please check the docs.");const a=this.elements,o=2*i/(t-e),l=2*i/(n-r),c=(t+e)/(t-e),u=(n+r)/(n-r),h=-(s+i)/(s-i),d=-2*s*i/(s-i);return a[0]=o,a[4]=0,a[8]=c,a[12]=0,a[1]=0,a[5]=l,a[9]=u,a[13]=0,a[2]=0,a[6]=0,a[10]=h,a[14]=d,a[3]=0,a[7]=0,a[11]=-1,a[15]=0,this}makeOrthographic(e,t,n,r,i,s){const a=this.elements,o=1/(t-e),l=1/(n-r),c=1/(s-i),u=(t+e)*o,h=(n+r)*l,d=(s+i)*c;return a[0]=2*o,a[4]=0,a[8]=0,a[12]=-u,a[1]=0,a[5]=2*l,a[9]=0,a[13]=-h,a[2]=0,a[6]=0,a[10]=-2*c,a[14]=-d,a[3]=0,a[7]=0,a[11]=0,a[15]=1,this}equals(e){const t=this.elements,n=e.elements;for(let e=0;e<16;e++)if(t[e]!==n[e])return!1;return!0}fromArray(e,t=0){for(let n=0;n<16;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){const n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e[t+9]=n[9],e[t+10]=n[10],e[t+11]=n[11],e[t+12]=n[12],e[t+13]=n[13],e[t+14]=n[14],e[t+15]=n[15],e}}Pr.prototype.isMatrix4=!0;const Ir=new er,Dr=new Pr,Nr=new er(0,0,0),Or=new er(1,1,1),zr=new er,Fr=new er,Ur=new er,Br=new Pr,Hr=new $n;class kr{constructor(e=0,t=0,n=0,r=kr.DefaultOrder){this._x=e,this._y=t,this._z=n,this._order=r}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,t,n,r=this._order){return this._x=e,this._y=t,this._z=n,this._order=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,t=this._order,n=!0){const r=e.elements,i=r[0],s=r[4],a=r[8],o=r[1],l=r[5],c=r[9],u=r[2],h=r[6],d=r[10];switch(t){case"XYZ":this._y=Math.asin(_n(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-c,d),this._z=Math.atan2(-s,i)):(this._x=Math.atan2(h,l),this._z=0);break;case"YXZ":this._x=Math.asin(-_n(c,-1,1)),Math.abs(c)<.9999999?(this._y=Math.atan2(a,d),this._z=Math.atan2(o,l)):(this._y=Math.atan2(-u,i),this._z=0);break;case"ZXY":this._x=Math.asin(_n(h,-1,1)),Math.abs(h)<.9999999?(this._y=Math.atan2(-u,d),this._z=Math.atan2(-s,l)):(this._y=0,this._z=Math.atan2(o,i));break;case"ZYX":this._y=Math.asin(-_n(u,-1,1)),Math.abs(u)<.9999999?(this._x=Math.atan2(h,d),this._z=Math.atan2(o,i)):(this._x=0,this._z=Math.atan2(-s,l));break;case"YZX":this._z=Math.asin(_n(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(-c,l),this._y=Math.atan2(-u,i)):(this._x=0,this._y=Math.atan2(a,d));break;case"XZY":this._z=Math.asin(-_n(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(h,l),this._y=Math.atan2(a,i)):(this._x=Math.atan2(-c,d),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+t)}return this._order=t,!0===n&&this._onChangeCallback(),this}setFromQuaternion(e,t,n){return Br.makeRotationFromQuaternion(e),this.setFromRotationMatrix(Br,t,n)}setFromVector3(e,t=this._order){return this.set(e.x,e.y,e.z,t)}reorder(e){return Hr.setFromEuler(this),this.setFromQuaternion(Hr,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(e){return this._x=e[0],this._y=e[1],this._z=e[2],void 0!==e[3]&&(this._order=e[3]),this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}}kr.prototype.isEuler=!0,kr.DefaultOrder="XYZ",kr.RotationOrders=["XYZ","YZX","ZXY","XZY","YXZ","ZYX"];class Gr{constructor(){this.mask=1}set(e){this.mask=(1<>>0}enable(e){this.mask|=1<1){for(let e=0;e1){for(let e=0;e0){r.children=[];for(let t=0;t0){r.animations=[];for(let t=0;t0&&(n.geometries=t),r.length>0&&(n.materials=r),i.length>0&&(n.textures=i),a.length>0&&(n.images=a),o.length>0&&(n.shapes=o),l.length>0&&(n.skeletons=l),c.length>0&&(n.animations=c),u.length>0&&(n.nodes=u)}return n.object=r,n;function s(e){const t=[];for(const n in e){const r=e[n];delete r.metadata,t.push(r)}return t}}clone(e){return(new this.constructor).copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.userData=JSON.parse(JSON.stringify(e.userData)),!0===t)for(let t=0;t0?r.multiplyScalar(1/Math.sqrt(i)):r.set(0,0,0)}static getBarycoord(e,t,n,r,i){ri.subVectors(r,t),ii.subVectors(n,t),si.subVectors(e,t);const s=ri.dot(ri),a=ri.dot(ii),o=ri.dot(si),l=ii.dot(ii),c=ii.dot(si),u=s*l-a*a;if(0===u)return i.set(-2,-1,-1);const h=1/u,d=(l*o-a*c)*h,p=(s*c-a*o)*h;return i.set(1-d-p,p,d)}static containsPoint(e,t,n,r){return this.getBarycoord(e,t,n,r,ai),ai.x>=0&&ai.y>=0&&ai.x+ai.y<=1}static getUV(e,t,n,r,i,s,a,o){return this.getBarycoord(e,t,n,r,ai),o.set(0,0),o.addScaledVector(i,ai.x),o.addScaledVector(s,ai.y),o.addScaledVector(a,ai.z),o}static isFrontFacing(e,t,n,r){return ri.subVectors(n,t),ii.subVectors(e,t),ri.cross(ii).dot(r)<0}set(e,t,n){return this.a.copy(e),this.b.copy(t),this.c.copy(n),this}setFromPointsAndIndices(e,t,n,r){return this.a.copy(e[t]),this.b.copy(e[n]),this.c.copy(e[r]),this}setFromAttributeAndIndices(e,t,n,r){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,n),this.c.fromBufferAttribute(e,r),this}clone(){return(new this.constructor).copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return ri.subVectors(this.c,this.b),ii.subVectors(this.a,this.b),.5*ri.cross(ii).length()}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return pi.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,t){return pi.getBarycoord(e,this.a,this.b,this.c,t)}getUV(e,t,n,r,i){return pi.getUV(e,this.a,this.b,this.c,t,n,r,i)}containsPoint(e){return pi.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return pi.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){const n=this.a,r=this.b,i=this.c;let s,a;oi.subVectors(r,n),li.subVectors(i,n),ui.subVectors(e,n);const o=oi.dot(ui),l=li.dot(ui);if(o<=0&&l<=0)return t.copy(n);hi.subVectors(e,r);const c=oi.dot(hi),u=li.dot(hi);if(c>=0&&u<=c)return t.copy(r);const h=o*u-c*l;if(h<=0&&o>=0&&c<=0)return s=o/(o-c),t.copy(n).addScaledVector(oi,s);di.subVectors(e,i);const d=oi.dot(di),p=li.dot(di);if(p>=0&&d<=p)return t.copy(i);const f=d*l-o*p;if(f<=0&&l>=0&&p<=0)return a=l/(l-p),t.copy(n).addScaledVector(li,a);const m=c*p-d*u;if(m<=0&&u-c>=0&&d-p>=0)return ci.subVectors(i,r),a=(u-c)/(u-c+(d-p)),t.copy(r).addScaledVector(ci,a);const g=1/(m+f+h);return s=f*g,a=h*g,t.copy(n).addScaledVector(oi,s).addScaledVector(li,a)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}let fi=0;class mi extends fn{constructor(){super(),Object.defineProperty(this,"id",{value:fi++}),this.uuid=xn(),this.name="",this.type="Material",this.fog=!0,this.blending=_,this.side=f,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.blendSrc=N,this.blendDst=O,this.blendEquation=E,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.depthFunc=W,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=en,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=Ht,this.stencilZFail=Ht,this.stencilZPass=Ht,this.stencilWrite=!1,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaToCoverage=!1,this.premultipliedAlpha=!1,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0,this._alphaTest=0}get alphaTest(){return this._alphaTest}set alphaTest(e){this._alphaTest>0!=e>0&&this.version++,this._alphaTest=e}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(void 0!==e)for(const t in e){const n=e[t];if(void 0===n){console.warn("THREE.Material: '"+t+"' parameter is undefined.");continue}if("shading"===t){console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead."),this.flatShading=n===v;continue}const r=this[t];void 0!==r?r&&r.isColor?r.set(n):r&&r.isVector3&&n&&n.isVector3?r.copy(n):this[t]=n:console.warn("THREE."+this.type+": '"+t+"' is not a property of this material.")}}toJSON(e){const t=void 0===e||"string"==typeof e;t&&(e={textures:{},images:{}});const n={metadata:{version:4.5,type:"Material",generator:"Material.toJSON"}};function r(e){const t=[];for(const n in e){const r=e[n];delete r.metadata,t.push(r)}return t}if(n.uuid=this.uuid,n.type=this.type,""!==this.name&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),void 0!==this.roughness&&(n.roughness=this.roughness),void 0!==this.metalness&&(n.metalness=this.metalness),void 0!==this.sheen&&(n.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(n.sheenColor=this.sheenColor.getHex()),void 0!==this.sheenRoughness&&(n.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity&&1!==this.emissiveIntensity&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),void 0!==this.specularIntensity&&(n.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(n.specularColor=this.specularColor.getHex()),void 0!==this.shininess&&(n.shininess=this.shininess),void 0!==this.clearcoat&&(n.clearcoat=this.clearcoat),void 0!==this.clearcoatRoughness&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(e).uuid,n.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(e).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(e).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(e).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(e).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(n.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(n.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(e).uuid,void 0!==this.combine&&(n.combine=this.combine)),void 0!==this.envMapIntensity&&(n.envMapIntensity=this.envMapIntensity),void 0!==this.reflectivity&&(n.reflectivity=this.reflectivity),void 0!==this.refractionRatio&&(n.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(e).uuid),void 0!==this.transmission&&(n.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(n.transmissionMap=this.transmissionMap.toJSON(e).uuid),void 0!==this.thickness&&(n.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(n.thicknessMap=this.thicknessMap.toJSON(e).uuid),void 0!==this.attenuationDistance&&(n.attenuationDistance=this.attenuationDistance),void 0!==this.attenuationColor&&(n.attenuationColor=this.attenuationColor.getHex()),void 0!==this.size&&(n.size=this.size),null!==this.shadowSide&&(n.shadowSide=this.shadowSide),void 0!==this.sizeAttenuation&&(n.sizeAttenuation=this.sizeAttenuation),this.blending!==_&&(n.blending=this.blending),this.side!==f&&(n.side=this.side),this.vertexColors&&(n.vertexColors=!0),this.opacity<1&&(n.opacity=this.opacity),!0===this.transparent&&(n.transparent=this.transparent),n.depthFunc=this.depthFunc,n.depthTest=this.depthTest,n.depthWrite=this.depthWrite,n.colorWrite=this.colorWrite,n.stencilWrite=this.stencilWrite,n.stencilWriteMask=this.stencilWriteMask,n.stencilFunc=this.stencilFunc,n.stencilRef=this.stencilRef,n.stencilFuncMask=this.stencilFuncMask,n.stencilFail=this.stencilFail,n.stencilZFail=this.stencilZFail,n.stencilZPass=this.stencilZPass,void 0!==this.rotation&&0!==this.rotation&&(n.rotation=this.rotation),!0===this.polygonOffset&&(n.polygonOffset=!0),0!==this.polygonOffsetFactor&&(n.polygonOffsetFactor=this.polygonOffsetFactor),0!==this.polygonOffsetUnits&&(n.polygonOffsetUnits=this.polygonOffsetUnits),void 0!==this.linewidth&&1!==this.linewidth&&(n.linewidth=this.linewidth),void 0!==this.dashSize&&(n.dashSize=this.dashSize),void 0!==this.gapSize&&(n.gapSize=this.gapSize),void 0!==this.scale&&(n.scale=this.scale),!0===this.dithering&&(n.dithering=!0),this.alphaTest>0&&(n.alphaTest=this.alphaTest),!0===this.alphaToCoverage&&(n.alphaToCoverage=this.alphaToCoverage),!0===this.premultipliedAlpha&&(n.premultipliedAlpha=this.premultipliedAlpha),!0===this.wireframe&&(n.wireframe=this.wireframe),this.wireframeLinewidth>1&&(n.wireframeLinewidth=this.wireframeLinewidth),"round"!==this.wireframeLinecap&&(n.wireframeLinecap=this.wireframeLinecap),"round"!==this.wireframeLinejoin&&(n.wireframeLinejoin=this.wireframeLinejoin),!0===this.flatShading&&(n.flatShading=this.flatShading),!1===this.visible&&(n.visible=!1),!1===this.toneMapped&&(n.toneMapped=!1),"{}"!==JSON.stringify(this.userData)&&(n.userData=this.userData),t){const t=r(e.textures),i=r(e.images);t.length>0&&(n.textures=t),i.length>0&&(n.images=i)}return n}clone(){return(new this.constructor).copy(this)}copy(e){this.name=e.name,this.fog=e.fog,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;const t=e.clippingPlanes;let n=null;if(null!==t){const e=t.length;n=new Array(e);for(let r=0;r!==e;++r)n[r]=t[r].clone()}return this.clippingPlanes=n,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(e){!0===e&&this.version++}}mi.prototype.isMaterial=!0,mi.fromType=function(){return null};class gi extends mi{constructor(e){super(),this.type="MeshBasicMaterial",this.color=new Bn(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=Z,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this}}gi.prototype.isMeshBasicMaterial=!0;const vi=new er,yi=new An;class xi{constructor(e,t,n){if(Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.name="",this.array=e,this.itemSize=t,this.count=void 0!==e?e.length/t:0,this.normalized=!0===n,this.usage=tn,this.updateRange={offset:0,count:-1},this.version=0}onUploadCallback(){}set needsUpdate(e){!0===e&&this.version++}setUsage(e){return this.usage=e,this}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this}copyAt(e,t,n){e*=this.itemSize,n*=t.itemSize;for(let r=0,i=this.itemSize;r0&&(e.userData=this.userData),void 0!==this.parameters){const t=this.parameters;for(const n in t)void 0!==t[n]&&(e[n]=t[n]);return e}e.data={attributes:{}};const t=this.index;null!==t&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});const n=this.attributes;for(const t in n){const r=n[t];e.data.attributes[t]=r.toJSON(e.data)}const r={};let i=!1;for(const t in this.morphAttributes){const n=this.morphAttributes[t],s=[];for(let t=0,r=n.length;t0&&(r[t]=s,i=!0)}i&&(e.data.morphAttributes=r,e.data.morphTargetsRelative=this.morphTargetsRelative);const s=this.groups;s.length>0&&(e.data.groups=JSON.parse(JSON.stringify(s)));const a=this.boundingSphere;return null!==a&&(e.data.boundingSphere={center:a.center.toArray(),radius:a.radius}),e}clone(){return(new this.constructor).copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const t={};this.name=e.name;const n=e.index;null!==n&&this.setIndex(n.clone(t));const r=e.attributes;for(const e in r){const n=r[e];this.setAttribute(e,n.clone(t))}const i=e.morphAttributes;for(const e in i){const n=[],r=i[e];for(let e=0,i=r.length;e0){const e=t[n[0]];if(void 0!==e){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let t=0,n=e.length;t0&&console.error("THREE.Mesh.updateMorphTargets() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.")}}raycast(e,t){const n=this.geometry,r=this.material,i=this.matrixWorld;if(void 0===r)return;if(null===n.boundingSphere&&n.computeBoundingSphere(),Hi.copy(n.boundingSphere),Hi.applyMatrix4(i),!1===e.ray.intersectsSphere(Hi))return;if(Ui.copy(i).invert(),Bi.copy(e.ray).applyMatrix4(Ui),null!==n.boundingBox&&!1===Bi.intersectsBox(n.boundingBox))return;let s;if(n.isBufferGeometry){const i=n.index,a=n.attributes.position,o=n.morphAttributes.position,l=n.morphTargetsRelative,c=n.attributes.uv,u=n.attributes.uv2,h=n.groups,d=n.drawRange;if(null!==i)if(Array.isArray(r))for(let n=0,p=h.length;nn.far?null:{distance:c,point:es.clone(),object:e}}(e,t,n,r,ki,Gi,Vi,$i);if(p){o&&(Ji.fromBufferAttribute(o,c),Ki.fromBufferAttribute(o,u),Qi.fromBufferAttribute(o,h),p.uv=pi.getUV($i,ki,Gi,Vi,Ji,Ki,Qi,new An)),l&&(Ji.fromBufferAttribute(l,c),Ki.fromBufferAttribute(l,u),Qi.fromBufferAttribute(l,h),p.uv2=pi.getUV($i,ki,Gi,Vi,Ji,Ki,Qi,new An));const e={a:c,b:u,c:h,normal:new er,materialIndex:0};pi.getNormal(ki,Gi,Vi,e.normal),p.face=e}return p}ts.prototype.isMesh=!0;class rs extends Fi{constructor(e=1,t=1,n=1,r=1,i=1,s=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:t,depth:n,widthSegments:r,heightSegments:i,depthSegments:s};const a=this;r=Math.floor(r),i=Math.floor(i),s=Math.floor(s);const o=[],l=[],c=[],u=[];let h=0,d=0;function p(e,t,n,r,i,s,p,f,m,g,v){const y=s/m,x=p/g,_=s/2,b=p/2,w=f/2,M=m+1,S=g+1;let E=0,T=0;const A=new er;for(let s=0;s0?1:-1,c.push(A.x,A.y,A.z),u.push(o/m),u.push(1-s/g),E+=1}}for(let e=0;e0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader;const n={};for(const e in this.extensions)!0===this.extensions[e]&&(n[e]=!0);return Object.keys(n).length>0&&(t.extensions=n),t}}os.prototype.isShaderMaterial=!0;class ls extends ni{constructor(){super(),this.type="Camera",this.matrixWorldInverse=new Pr,this.projectionMatrix=new Pr,this.projectionMatrixInverse=new Pr}copy(e,t){return super.copy(e,t),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this}getWorldDirection(e){this.updateWorldMatrix(!0,!1);const t=this.matrixWorld.elements;return e.set(-t[8],-t[9],-t[10]).normalize()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,t){super.updateWorldMatrix(e,t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return(new this.constructor).copy(this)}}ls.prototype.isCamera=!0;class cs extends ls{constructor(e=50,t=1,n=.1,r=2e3){super(),this.type="PerspectiveCamera",this.fov=e,this.zoom=1,this.near=n,this.far=r,this.focus=10,this.aspect=t,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=null===e.view?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this}setFocalLength(e){const t=.5*this.getFilmHeight()/e;this.fov=2*yn*Math.atan(t),this.updateProjectionMatrix()}getFocalLength(){const e=Math.tan(.5*vn*this.fov);return.5*this.getFilmHeight()/e}getEffectiveFOV(){return 2*yn*Math.atan(Math.tan(.5*vn*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}setViewOffset(e,t,n,r,i,s){this.aspect=e/t,null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=r,this.view.width=i,this.view.height=s,this.updateProjectionMatrix()}clearViewOffset(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=this.near;let t=e*Math.tan(.5*vn*this.fov)/this.zoom,n=2*t,r=this.aspect*n,i=-.5*r;const s=this.view;if(null!==this.view&&this.view.enabled){const e=s.fullWidth,a=s.fullHeight;i+=s.offsetX*r/e,t-=s.offsetY*n/a,r*=s.width/e,n*=s.height/a}const a=this.filmOffset;0!==a&&(i+=e*a/this.getFilmWidth()),this.projectionMatrix.makePerspective(i,i+r,t,t-n,e,this.far),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.fov=this.fov,t.object.zoom=this.zoom,t.object.near=this.near,t.object.far=this.far,t.object.focus=this.focus,t.object.aspect=this.aspect,null!==this.view&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}}cs.prototype.isPerspectiveCamera=!0;const us=90;class hs extends ni{constructor(e,t,n){if(super(),this.type="CubeCamera",!0!==n.isWebGLCubeRenderTarget)return void console.error("THREE.CubeCamera: The constructor now expects an instance of WebGLCubeRenderTarget as third parameter.");this.renderTarget=n;const r=new cs(us,1,e,t);r.layers=this.layers,r.up.set(0,-1,0),r.lookAt(new er(1,0,0)),this.add(r);const i=new cs(us,1,e,t);i.layers=this.layers,i.up.set(0,-1,0),i.lookAt(new er(-1,0,0)),this.add(i);const s=new cs(us,1,e,t);s.layers=this.layers,s.up.set(0,0,1),s.lookAt(new er(0,1,0)),this.add(s);const a=new cs(us,1,e,t);a.layers=this.layers,a.up.set(0,0,-1),a.lookAt(new er(0,-1,0)),this.add(a);const o=new cs(us,1,e,t);o.layers=this.layers,o.up.set(0,-1,0),o.lookAt(new er(0,0,1)),this.add(o);const l=new cs(us,1,e,t);l.layers=this.layers,l.up.set(0,-1,0),l.lookAt(new er(0,0,-1)),this.add(l)}update(e,t){null===this.parent&&this.updateMatrixWorld();const n=this.renderTarget,[r,i,s,a,o,l]=this.children,c=e.xr.enabled,u=e.getRenderTarget();e.xr.enabled=!1;const h=n.texture.generateMipmaps;n.texture.generateMipmaps=!1,e.setRenderTarget(n,0),e.render(t,r),e.setRenderTarget(n,1),e.render(t,i),e.setRenderTarget(n,2),e.render(t,s),e.setRenderTarget(n,3),e.render(t,a),e.setRenderTarget(n,4),e.render(t,o),n.texture.generateMipmaps=h,e.setRenderTarget(n,5),e.render(t,l),e.setRenderTarget(u),e.xr.enabled=c,n.texture.needsPMREMUpdate=!0}}class ds extends jn{constructor(e,t,n,r,i,s,a,o,l,c){super(e=void 0!==e?e:[],t=void 0!==t?t:se,n,r,i,s,a,o,l,c),this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}ds.prototype.isCubeTexture=!0;class ps extends Xn{constructor(e,t={}){super(e,e,t);const n={width:e,height:e,depth:1},r=[n,n,n,n,n,n];this.texture=new ds(r,t.mapping,t.wrapS,t.wrapT,t.magFilter,t.minFilter,t.format,t.type,t.anisotropy,t.encoding),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=void 0!==t.generateMipmaps&&t.generateMipmaps,this.texture.minFilter=void 0!==t.minFilter?t.minFilter:xe}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.format=Fe,this.texture.encoding=t.encoding,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;const n={tEquirect:{value:null}},r="\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\tvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\n\t\t\t\t\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n\n\t\t\t\t}\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvWorldDirection = transformDirection( position, modelMatrix );\n\n\t\t\t\t\t#include \n\t\t\t\t\t#include \n\n\t\t\t\t}\n\t\t\t",i="\n\n\t\t\t\tuniform sampler2D tEquirect;\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\t#include \n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvec3 direction = normalize( vWorldDirection );\n\n\t\t\t\t\tvec2 sampleUV = equirectUv( direction );\n\n\t\t\t\t\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\n\t\t\t\t}\n\t\t\t",s=new rs(5,5,5),a=new os({name:"CubemapFromEquirect",uniforms:is(n),vertexShader:r,fragmentShader:i,side:m,blending:x});a.uniforms.tEquirect.value=t;const o=new ts(s,a),l=t.minFilter;return t.minFilter===we&&(t.minFilter=xe),new hs(1,10,this).update(e,o),t.minFilter=l,o.geometry.dispose(),o.material.dispose(),this}clear(e,t,n,r){const i=e.getRenderTarget();for(let i=0;i<6;i++)e.setRenderTarget(this,i),e.clear(t,n,r);e.setRenderTarget(i)}}ps.prototype.isWebGLCubeRenderTarget=!0;const fs=new er,ms=new er,gs=new Rn;class vs{constructor(e=new er(1,0,0),t=0){this.normal=e,this.constant=t}set(e,t){return this.normal.copy(e),this.constant=t,this}setComponents(e,t,n,r){return this.normal.set(e,t,n),this.constant=r,this}setFromNormalAndCoplanarPoint(e,t){return this.normal.copy(e),this.constant=-t.dot(this.normal),this}setFromCoplanarPoints(e,t,n){const r=fs.subVectors(n,t).cross(ms.subVectors(e,t)).normalize();return this.setFromNormalAndCoplanarPoint(r,e),this}copy(e){return this.normal.copy(e.normal),this.constant=e.constant,this}normalize(){const e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(e){return this.normal.dot(e)+this.constant}distanceToSphere(e){return this.distanceToPoint(e.center)-e.radius}projectPoint(e,t){return t.copy(this.normal).multiplyScalar(-this.distanceToPoint(e)).add(e)}intersectLine(e,t){const n=e.delta(fs),r=this.normal.dot(n);if(0===r)return 0===this.distanceToPoint(e.start)?t.copy(e.start):null;const i=-(e.start.dot(this.normal)+this.constant)/r;return i<0||i>1?null:t.copy(n).multiplyScalar(i).add(e.start)}intersectsLine(e){const t=this.distanceToPoint(e.start),n=this.distanceToPoint(e.end);return t<0&&n>0||n<0&&t>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,t){const n=t||gs.getNormalMatrix(e),r=this.coplanarPoint(fs).applyMatrix4(e),i=this.normal.applyMatrix3(n).normalize();return this.constant=-r.dot(i),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return(new this.constructor).copy(this)}}vs.prototype.isPlane=!0;const ys=new wr,xs=new er;class _s{constructor(e=new vs,t=new vs,n=new vs,r=new vs,i=new vs,s=new vs){this.planes=[e,t,n,r,i,s]}set(e,t,n,r,i,s){const a=this.planes;return a[0].copy(e),a[1].copy(t),a[2].copy(n),a[3].copy(r),a[4].copy(i),a[5].copy(s),this}copy(e){const t=this.planes;for(let n=0;n<6;n++)t[n].copy(e.planes[n]);return this}setFromProjectionMatrix(e){const t=this.planes,n=e.elements,r=n[0],i=n[1],s=n[2],a=n[3],o=n[4],l=n[5],c=n[6],u=n[7],h=n[8],d=n[9],p=n[10],f=n[11],m=n[12],g=n[13],v=n[14],y=n[15];return t[0].setComponents(a-r,u-o,f-h,y-m).normalize(),t[1].setComponents(a+r,u+o,f+h,y+m).normalize(),t[2].setComponents(a+i,u+l,f+d,y+g).normalize(),t[3].setComponents(a-i,u-l,f-d,y-g).normalize(),t[4].setComponents(a-s,u-c,f-p,y-v).normalize(),t[5].setComponents(a+s,u+c,f+p,y+v).normalize(),this}intersectsObject(e){const t=e.geometry;return null===t.boundingSphere&&t.computeBoundingSphere(),ys.copy(t.boundingSphere).applyMatrix4(e.matrixWorld),this.intersectsSphere(ys)}intersectsSprite(e){return ys.center.set(0,0,0),ys.radius=.7071067811865476,ys.applyMatrix4(e.matrixWorld),this.intersectsSphere(ys)}intersectsSphere(e){const t=this.planes,n=e.center,r=-e.radius;for(let e=0;e<6;e++)if(t[e].distanceToPoint(n)0?e.max.x:e.min.x,xs.y=r.normal.y>0?e.max.y:e.min.y,xs.z=r.normal.z>0?e.max.z:e.min.z,r.distanceToPoint(xs)<0)return!1}return!0}containsPoint(e){const t=this.planes;for(let n=0;n<6;n++)if(t[n].distanceToPoint(e)<0)return!1;return!0}clone(){return(new this.constructor).copy(this)}}function bs(){let e=null,t=!1,n=null,r=null;function i(t,s){n(t,s),r=e.requestAnimationFrame(i)}return{start:function(){!0!==t&&null!==n&&(r=e.requestAnimationFrame(i),t=!0)},stop:function(){e.cancelAnimationFrame(r),t=!1},setAnimationLoop:function(e){n=e},setContext:function(t){e=t}}}function ws(e,t){const n=t.isWebGL2,r=new WeakMap;return{get:function(e){return e.isInterleavedBufferAttribute&&(e=e.data),r.get(e)},remove:function(t){t.isInterleavedBufferAttribute&&(t=t.data);const n=r.get(t);n&&(e.deleteBuffer(n.buffer),r.delete(t))},update:function(t,i){if(t.isGLBufferAttribute){const e=r.get(t);return void((!e||e.version 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v;\n\treturn cross( v1, v2 ) * theta_sintheta;\n}\nvec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) {\n\tvec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ];\n\tvec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ];\n\tvec3 lightNormal = cross( v1, v2 );\n\tif( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 );\n\tvec3 T1, T2;\n\tT1 = normalize( V - N * dot( V, N ) );\n\tT2 = - cross( N, T1 );\n\tmat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) );\n\tvec3 coords[ 4 ];\n\tcoords[ 0 ] = mat * ( rectCoords[ 0 ] - P );\n\tcoords[ 1 ] = mat * ( rectCoords[ 1 ] - P );\n\tcoords[ 2 ] = mat * ( rectCoords[ 2 ] - P );\n\tcoords[ 3 ] = mat * ( rectCoords[ 3 ] - P );\n\tcoords[ 0 ] = normalize( coords[ 0 ] );\n\tcoords[ 1 ] = normalize( coords[ 1 ] );\n\tcoords[ 2 ] = normalize( coords[ 2 ] );\n\tcoords[ 3 ] = normalize( coords[ 3 ] );\n\tvec3 vectorFormFactor = vec3( 0.0 );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] );\n\tfloat result = LTC_ClippedSphereFormFactor( vectorFormFactor );\n\treturn vec3( result );\n}\nfloat G_BlinnPhong_Implicit( ) {\n\treturn 0.25;\n}\nfloat D_BlinnPhong( const in float shininess, const in float dotNH ) {\n\treturn RECIPROCAL_PI * ( shininess * 0.5 + 1.0 ) * pow( dotNH, shininess );\n}\nvec3 BRDF_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float shininess ) {\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\tvec3 F = F_Schlick( specularColor, 1.0, dotVH );\n\tfloat G = G_BlinnPhong_Implicit( );\n\tfloat D = D_BlinnPhong( shininess, dotNH );\n\treturn F * ( G * D );\n}\n#if defined( USE_SHEEN )\nfloat D_Charlie( float roughness, float dotNH ) {\n\tfloat alpha = pow2( roughness );\n\tfloat invAlpha = 1.0 / alpha;\n\tfloat cos2h = dotNH * dotNH;\n\tfloat sin2h = max( 1.0 - cos2h, 0.0078125 );\n\treturn ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI );\n}\nfloat V_Neubelt( float dotNV, float dotNL ) {\n\treturn saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) );\n}\nvec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) {\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat D = D_Charlie( sheenRoughness, dotNH );\n\tfloat V = V_Neubelt( dotNV, dotNL );\n\treturn sheenColor * ( D * V );\n}\n#endif",bumpmap_pars_fragment:"#ifdef USE_BUMPMAP\n\tuniform sampler2D bumpMap;\n\tuniform float bumpScale;\n\tvec2 dHdxy_fwd() {\n\t\tvec2 dSTdx = dFdx( vUv );\n\t\tvec2 dSTdy = dFdy( vUv );\n\t\tfloat Hll = bumpScale * texture2D( bumpMap, vUv ).x;\n\t\tfloat dBx = bumpScale * texture2D( bumpMap, vUv + dSTdx ).x - Hll;\n\t\tfloat dBy = bumpScale * texture2D( bumpMap, vUv + dSTdy ).x - Hll;\n\t\treturn vec2( dBx, dBy );\n\t}\n\tvec3 perturbNormalArb( vec3 surf_pos, vec3 surf_norm, vec2 dHdxy, float faceDirection ) {\n\t\tvec3 vSigmaX = vec3( dFdx( surf_pos.x ), dFdx( surf_pos.y ), dFdx( surf_pos.z ) );\n\t\tvec3 vSigmaY = vec3( dFdy( surf_pos.x ), dFdy( surf_pos.y ), dFdy( surf_pos.z ) );\n\t\tvec3 vN = surf_norm;\n\t\tvec3 R1 = cross( vSigmaY, vN );\n\t\tvec3 R2 = cross( vN, vSigmaX );\n\t\tfloat fDet = dot( vSigmaX, R1 ) * faceDirection;\n\t\tvec3 vGrad = sign( fDet ) * ( dHdxy.x * R1 + dHdxy.y * R2 );\n\t\treturn normalize( abs( fDet ) * surf_norm - vGrad );\n\t}\n#endif",clipping_planes_fragment:"#if NUM_CLIPPING_PLANES > 0\n\tvec4 plane;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n\t\tplane = clippingPlanes[ i ];\n\t\tif ( dot( vClipPosition, plane.xyz ) > plane.w ) discard;\n\t}\n\t#pragma unroll_loop_end\n\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n\t\tbool clipped = true;\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n\t\t\tplane = clippingPlanes[ i ];\n\t\t\tclipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t\tif ( clipped ) discard;\n\t#endif\n#endif",clipping_planes_pars_fragment:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n\tuniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];\n#endif",clipping_planes_pars_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n#endif",clipping_planes_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvClipPosition = - mvPosition.xyz;\n#endif",color_fragment:"#if defined( USE_COLOR_ALPHA )\n\tdiffuseColor *= vColor;\n#elif defined( USE_COLOR )\n\tdiffuseColor.rgb *= vColor;\n#endif",color_pars_fragment:"#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR )\n\tvarying vec3 vColor;\n#endif",color_pars_vertex:"#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvarying vec3 vColor;\n#endif",color_vertex:"#if defined( USE_COLOR_ALPHA )\n\tvColor = vec4( 1.0 );\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvColor = vec3( 1.0 );\n#endif\n#ifdef USE_COLOR\n\tvColor *= color;\n#endif\n#ifdef USE_INSTANCING_COLOR\n\tvColor.xyz *= instanceColor.xyz;\n#endif",common:"#define PI 3.141592653589793\n#define PI2 6.283185307179586\n#define PI_HALF 1.5707963267948966\n#define RECIPROCAL_PI 0.3183098861837907\n#define RECIPROCAL_PI2 0.15915494309189535\n#define EPSILON 1e-6\n#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\n#define whiteComplement( a ) ( 1.0 - saturate( a ) )\nfloat pow2( const in float x ) { return x*x; }\nfloat pow3( const in float x ) { return x*x*x; }\nfloat pow4( const in float x ) { float x2 = x*x; return x2*x2; }\nfloat max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); }\nfloat average( const in vec3 color ) { return dot( color, vec3( 0.3333 ) ); }\nhighp float rand( const in vec2 uv ) {\n\tconst highp float a = 12.9898, b = 78.233, c = 43758.5453;\n\thighp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI );\n\treturn fract( sin( sn ) * c );\n}\n#ifdef HIGH_PRECISION\n\tfloat precisionSafeLength( vec3 v ) { return length( v ); }\n#else\n\tfloat precisionSafeLength( vec3 v ) {\n\t\tfloat maxComponent = max3( abs( v ) );\n\t\treturn length( v / maxComponent ) * maxComponent;\n\t}\n#endif\nstruct IncidentLight {\n\tvec3 color;\n\tvec3 direction;\n\tbool visible;\n};\nstruct ReflectedLight {\n\tvec3 directDiffuse;\n\tvec3 directSpecular;\n\tvec3 indirectDiffuse;\n\tvec3 indirectSpecular;\n};\nstruct GeometricContext {\n\tvec3 position;\n\tvec3 normal;\n\tvec3 viewDir;\n#ifdef USE_CLEARCOAT\n\tvec3 clearcoatNormal;\n#endif\n};\nvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n}\nvec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( vec4( dir, 0.0 ) * matrix ).xyz );\n}\nmat3 transposeMat3( const in mat3 m ) {\n\tmat3 tmp;\n\ttmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x );\n\ttmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y );\n\ttmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z );\n\treturn tmp;\n}\nfloat linearToRelativeLuminance( const in vec3 color ) {\n\tvec3 weights = vec3( 0.2126, 0.7152, 0.0722 );\n\treturn dot( weights, color.rgb );\n}\nbool isPerspectiveMatrix( mat4 m ) {\n\treturn m[ 2 ][ 3 ] == - 1.0;\n}\nvec2 equirectUv( in vec3 dir ) {\n\tfloat u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5;\n\tfloat v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;\n\treturn vec2( u, v );\n}",cube_uv_reflection_fragment:"#ifdef ENVMAP_TYPE_CUBE_UV\n\t#define cubeUV_minMipLevel 4.0\n\t#define cubeUV_minTileSize 16.0\n\tfloat getFace( vec3 direction ) {\n\t\tvec3 absDirection = abs( direction );\n\t\tfloat face = - 1.0;\n\t\tif ( absDirection.x > absDirection.z ) {\n\t\t\tif ( absDirection.x > absDirection.y )\n\t\t\t\tface = direction.x > 0.0 ? 0.0 : 3.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t} else {\n\t\t\tif ( absDirection.z > absDirection.y )\n\t\t\t\tface = direction.z > 0.0 ? 2.0 : 5.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t}\n\t\treturn face;\n\t}\n\tvec2 getUV( vec3 direction, float face ) {\n\t\tvec2 uv;\n\t\tif ( face == 0.0 ) {\n\t\t\tuv = vec2( direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 1.0 ) {\n\t\t\tuv = vec2( - direction.x, - direction.z ) / abs( direction.y );\n\t\t} else if ( face == 2.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.y ) / abs( direction.z );\n\t\t} else if ( face == 3.0 ) {\n\t\t\tuv = vec2( - direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 4.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.z ) / abs( direction.y );\n\t\t} else {\n\t\t\tuv = vec2( direction.x, direction.y ) / abs( direction.z );\n\t\t}\n\t\treturn 0.5 * ( uv + 1.0 );\n\t}\n\tvec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) {\n\t\tfloat face = getFace( direction );\n\t\tfloat filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 );\n\t\tmipInt = max( mipInt, cubeUV_minMipLevel );\n\t\tfloat faceSize = exp2( mipInt );\n\t\tvec2 uv = getUV( direction, face ) * ( faceSize - 1.0 ) + 0.5;\n\t\tif ( face > 2.0 ) {\n\t\t\tuv.y += faceSize;\n\t\t\tface -= 3.0;\n\t\t}\n\t\tuv.x += face * faceSize;\n\t\tuv.x += filterInt * 3.0 * cubeUV_minTileSize;\n\t\tuv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize );\n\t\tuv.x *= CUBEUV_TEXEL_WIDTH;\n\t\tuv.y *= CUBEUV_TEXEL_HEIGHT;\n\t\t#ifdef texture2DGradEXT\n\t\t\treturn texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb;\n\t\t#else\n\t\t\treturn texture2D( envMap, uv ).rgb;\n\t\t#endif\n\t}\n\t#define r0 1.0\n\t#define v0 0.339\n\t#define m0 - 2.0\n\t#define r1 0.8\n\t#define v1 0.276\n\t#define m1 - 1.0\n\t#define r4 0.4\n\t#define v4 0.046\n\t#define m4 2.0\n\t#define r5 0.305\n\t#define v5 0.016\n\t#define m5 3.0\n\t#define r6 0.21\n\t#define v6 0.0038\n\t#define m6 4.0\n\tfloat roughnessToMip( float roughness ) {\n\t\tfloat mip = 0.0;\n\t\tif ( roughness >= r1 ) {\n\t\t\tmip = ( r0 - roughness ) * ( m1 - m0 ) / ( r0 - r1 ) + m0;\n\t\t} else if ( roughness >= r4 ) {\n\t\t\tmip = ( r1 - roughness ) * ( m4 - m1 ) / ( r1 - r4 ) + m1;\n\t\t} else if ( roughness >= r5 ) {\n\t\t\tmip = ( r4 - roughness ) * ( m5 - m4 ) / ( r4 - r5 ) + m4;\n\t\t} else if ( roughness >= r6 ) {\n\t\t\tmip = ( r5 - roughness ) * ( m6 - m5 ) / ( r5 - r6 ) + m5;\n\t\t} else {\n\t\t\tmip = - 2.0 * log2( 1.16 * roughness );\t\t}\n\t\treturn mip;\n\t}\n\tvec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) {\n\t\tfloat mip = clamp( roughnessToMip( roughness ), m0, CUBEUV_MAX_MIP );\n\t\tfloat mipF = fract( mip );\n\t\tfloat mipInt = floor( mip );\n\t\tvec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt );\n\t\tif ( mipF == 0.0 ) {\n\t\t\treturn vec4( color0, 1.0 );\n\t\t} else {\n\t\t\tvec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 );\n\t\t\treturn vec4( mix( color0, color1, mipF ), 1.0 );\n\t\t}\n\t}\n#endif",defaultnormal_vertex:"vec3 transformedNormal = objectNormal;\n#ifdef USE_INSTANCING\n\tmat3 m = mat3( instanceMatrix );\n\ttransformedNormal /= vec3( dot( m[ 0 ], m[ 0 ] ), dot( m[ 1 ], m[ 1 ] ), dot( m[ 2 ], m[ 2 ] ) );\n\ttransformedNormal = m * transformedNormal;\n#endif\ntransformedNormal = normalMatrix * transformedNormal;\n#ifdef FLIP_SIDED\n\ttransformedNormal = - transformedNormal;\n#endif\n#ifdef USE_TANGENT\n\tvec3 transformedTangent = ( modelViewMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#ifdef FLIP_SIDED\n\t\ttransformedTangent = - transformedTangent;\n\t#endif\n#endif",displacementmap_pars_vertex:"#ifdef USE_DISPLACEMENTMAP\n\tuniform sampler2D displacementMap;\n\tuniform float displacementScale;\n\tuniform float displacementBias;\n#endif",displacementmap_vertex:"#ifdef USE_DISPLACEMENTMAP\n\ttransformed += normalize( objectNormal ) * ( texture2D( displacementMap, vUv ).x * displacementScale + displacementBias );\n#endif",emissivemap_fragment:"#ifdef USE_EMISSIVEMAP\n\tvec4 emissiveColor = texture2D( emissiveMap, vUv );\n\ttotalEmissiveRadiance *= emissiveColor.rgb;\n#endif",emissivemap_pars_fragment:"#ifdef USE_EMISSIVEMAP\n\tuniform sampler2D emissiveMap;\n#endif",encodings_fragment:"gl_FragColor = linearToOutputTexel( gl_FragColor );",encodings_pars_fragment:"vec4 LinearToLinear( in vec4 value ) {\n\treturn value;\n}\nvec4 LinearTosRGB( in vec4 value ) {\n\treturn vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a );\n}",envmap_fragment:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvec3 cameraToFrag;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToFrag = normalize( vWorldPosition - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvec3 reflectVec = reflect( cameraToFrag, worldNormal );\n\t\t#else\n\t\t\tvec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio );\n\t\t#endif\n\t#else\n\t\tvec3 reflectVec = vReflect;\n\t#endif\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 envColor = textureCube( envMap, vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\n\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\tvec4 envColor = textureCubeUV( envMap, reflectVec, 0.0 );\n\t#else\n\t\tvec4 envColor = vec4( 0.0 );\n\t#endif\n\t#ifdef ENVMAP_BLENDING_MULTIPLY\n\t\toutgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_MIX )\n\t\toutgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_ADD )\n\t\toutgoingLight += envColor.xyz * specularStrength * reflectivity;\n\t#endif\n#endif",envmap_common_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float envMapIntensity;\n\tuniform float flipEnvMap;\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tuniform samplerCube envMap;\n\t#else\n\t\tuniform sampler2D envMap;\n\t#endif\n\t\n#endif",envmap_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float reflectivity;\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\tvarying vec3 vWorldPosition;\n\t\tuniform float refractionRatio;\n\t#else\n\t\tvarying vec3 vReflect;\n\t#endif\n#endif",envmap_pars_vertex:"#ifdef USE_ENVMAP\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) ||defined( PHONG )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\t\n\t\tvarying vec3 vWorldPosition;\n\t#else\n\t\tvarying vec3 vReflect;\n\t\tuniform float refractionRatio;\n\t#endif\n#endif",envmap_physical_pars_fragment:"#if defined( USE_ENVMAP )\n\t#ifdef ENVMAP_MODE_REFRACTION\n\t\tuniform float refractionRatio;\n\t#endif\n\tvec3 getIBLIrradiance( const in vec3 normal ) {\n\t\t#if defined( ENVMAP_TYPE_CUBE_UV )\n\t\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, worldNormal, 1.0 );\n\t\t\treturn PI * envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\n\t}\n\tvec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) {\n\t\t#if defined( ENVMAP_TYPE_CUBE_UV )\n\t\t\tvec3 reflectVec;\n\t\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\t\treflectVec = reflect( - viewDir, normal );\n\t\t\t\treflectVec = normalize( mix( reflectVec, normal, roughness * roughness) );\n\t\t\t#else\n\t\t\t\treflectVec = refract( - viewDir, normal, refractionRatio );\n\t\t\t#endif\n\t\t\treflectVec = inverseTransformDirection( reflectVec, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, reflectVec, roughness );\n\t\t\treturn envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\n\t}\n#endif",envmap_vertex:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvWorldPosition = worldPosition.xyz;\n\t#else\n\t\tvec3 cameraToVertex;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToVertex = normalize( worldPosition.xyz - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvReflect = reflect( cameraToVertex, worldNormal );\n\t\t#else\n\t\t\tvReflect = refract( cameraToVertex, worldNormal, refractionRatio );\n\t\t#endif\n\t#endif\n#endif",fog_vertex:"#ifdef USE_FOG\n\tvFogDepth = - mvPosition.z;\n#endif",fog_pars_vertex:"#ifdef USE_FOG\n\tvarying float vFogDepth;\n#endif",fog_fragment:"#ifdef USE_FOG\n\t#ifdef FOG_EXP2\n\t\tfloat fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth );\n\t#else\n\t\tfloat fogFactor = smoothstep( fogNear, fogFar, vFogDepth );\n\t#endif\n\tgl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );\n#endif",fog_pars_fragment:"#ifdef USE_FOG\n\tuniform vec3 fogColor;\n\tvarying float vFogDepth;\n\t#ifdef FOG_EXP2\n\t\tuniform float fogDensity;\n\t#else\n\t\tuniform float fogNear;\n\t\tuniform float fogFar;\n\t#endif\n#endif",gradientmap_pars_fragment:"#ifdef USE_GRADIENTMAP\n\tuniform sampler2D gradientMap;\n#endif\nvec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {\n\tfloat dotNL = dot( normal, lightDirection );\n\tvec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );\n\t#ifdef USE_GRADIENTMAP\n\t\treturn vec3( texture2D( gradientMap, coord ).r );\n\t#else\n\t\treturn ( coord.x < 0.7 ) ? vec3( 0.7 ) : vec3( 1.0 );\n\t#endif\n}",lightmap_fragment:"#ifdef USE_LIGHTMAP\n\tvec4 lightMapTexel = texture2D( lightMap, vUv2 );\n\tvec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;\n\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\tlightMapIrradiance *= PI;\n\t#endif\n\treflectedLight.indirectDiffuse += lightMapIrradiance;\n#endif",lightmap_pars_fragment:"#ifdef USE_LIGHTMAP\n\tuniform sampler2D lightMap;\n\tuniform float lightMapIntensity;\n#endif",lights_lambert_vertex:"vec3 diffuse = vec3( 1.0 );\nGeometricContext geometry;\ngeometry.position = mvPosition.xyz;\ngeometry.normal = normalize( transformedNormal );\ngeometry.viewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( -mvPosition.xyz );\nGeometricContext backGeometry;\nbackGeometry.position = geometry.position;\nbackGeometry.normal = -geometry.normal;\nbackGeometry.viewDir = geometry.viewDir;\nvLightFront = vec3( 0.0 );\nvIndirectFront = vec3( 0.0 );\n#ifdef DOUBLE_SIDED\n\tvLightBack = vec3( 0.0 );\n\tvIndirectBack = vec3( 0.0 );\n#endif\nIncidentLight directLight;\nfloat dotNL;\nvec3 directLightColor_Diffuse;\nvIndirectFront += getAmbientLightIrradiance( ambientLightColor );\nvIndirectFront += getLightProbeIrradiance( lightProbe, geometry.normal );\n#ifdef DOUBLE_SIDED\n\tvIndirectBack += getAmbientLightIrradiance( ambientLightColor );\n\tvIndirectBack += getLightProbeIrradiance( lightProbe, backGeometry.normal );\n#endif\n#if NUM_POINT_LIGHTS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tgetPointLightInfo( pointLights[ i ], geometry, directLight );\n\t\tdotNL = dot( geometry.normal, directLight.direction );\n\t\tdirectLightColor_Diffuse = directLight.color;\n\t\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += saturate( - dotNL ) * directLightColor_Diffuse;\n\t\t#endif\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tgetSpotLightInfo( spotLights[ i ], geometry, directLight );\n\t\tdotNL = dot( geometry.normal, directLight.direction );\n\t\tdirectLightColor_Diffuse = directLight.color;\n\t\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += saturate( - dotNL ) * directLightColor_Diffuse;\n\t\t#endif\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if NUM_DIR_LIGHTS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tgetDirectionalLightInfo( directionalLights[ i ], geometry, directLight );\n\t\tdotNL = dot( geometry.normal, directLight.direction );\n\t\tdirectLightColor_Diffuse = directLight.color;\n\t\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += saturate( - dotNL ) * directLightColor_Diffuse;\n\t\t#endif\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\tvIndirectFront += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry.normal );\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvIndirectBack += getHemisphereLightIrradiance( hemisphereLights[ i ], backGeometry.normal );\n\t\t#endif\n\t}\n\t#pragma unroll_loop_end\n#endif",lights_pars_begin:"uniform bool receiveShadow;\nuniform vec3 ambientLightColor;\nuniform vec3 lightProbe[ 9 ];\nvec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) {\n\tfloat x = normal.x, y = normal.y, z = normal.z;\n\tvec3 result = shCoefficients[ 0 ] * 0.886227;\n\tresult += shCoefficients[ 1 ] * 2.0 * 0.511664 * y;\n\tresult += shCoefficients[ 2 ] * 2.0 * 0.511664 * z;\n\tresult += shCoefficients[ 3 ] * 2.0 * 0.511664 * x;\n\tresult += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y;\n\tresult += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z;\n\tresult += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 );\n\tresult += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z;\n\tresult += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y );\n\treturn result;\n}\nvec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) {\n\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\tvec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe );\n\treturn irradiance;\n}\nvec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {\n\tvec3 irradiance = ambientLightColor;\n\treturn irradiance;\n}\nfloat getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {\n\t#if defined ( PHYSICALLY_CORRECT_LIGHTS )\n\t\tfloat distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\n\t\tif ( cutoffDistance > 0.0 ) {\n\t\t\tdistanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\n\t\t}\n\t\treturn distanceFalloff;\n\t#else\n\t\tif ( cutoffDistance > 0.0 && decayExponent > 0.0 ) {\n\t\t\treturn pow( saturate( - lightDistance / cutoffDistance + 1.0 ), decayExponent );\n\t\t}\n\t\treturn 1.0;\n\t#endif\n}\nfloat getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) {\n\treturn smoothstep( coneCosine, penumbraCosine, angleCosine );\n}\n#if NUM_DIR_LIGHTS > 0\n\tstruct DirectionalLight {\n\t\tvec3 direction;\n\t\tvec3 color;\n\t};\n\tuniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];\n\tvoid getDirectionalLightInfo( const in DirectionalLight directionalLight, const in GeometricContext geometry, out IncidentLight light ) {\n\t\tlight.color = directionalLight.color;\n\t\tlight.direction = directionalLight.direction;\n\t\tlight.visible = true;\n\t}\n#endif\n#if NUM_POINT_LIGHTS > 0\n\tstruct PointLight {\n\t\tvec3 position;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t};\n\tuniform PointLight pointLights[ NUM_POINT_LIGHTS ];\n\tvoid getPointLightInfo( const in PointLight pointLight, const in GeometricContext geometry, out IncidentLight light ) {\n\t\tvec3 lVector = pointLight.position - geometry.position;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat lightDistance = length( lVector );\n\t\tlight.color = pointLight.color;\n\t\tlight.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay );\n\t\tlight.visible = ( light.color != vec3( 0.0 ) );\n\t}\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\tstruct SpotLight {\n\t\tvec3 position;\n\t\tvec3 direction;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t\tfloat coneCos;\n\t\tfloat penumbraCos;\n\t};\n\tuniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];\n\tvoid getSpotLightInfo( const in SpotLight spotLight, const in GeometricContext geometry, out IncidentLight light ) {\n\t\tvec3 lVector = spotLight.position - geometry.position;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat angleCos = dot( light.direction, spotLight.direction );\n\t\tfloat spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos );\n\t\tif ( spotAttenuation > 0.0 ) {\n\t\t\tfloat lightDistance = length( lVector );\n\t\t\tlight.color = spotLight.color * spotAttenuation;\n\t\t\tlight.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay );\n\t\t\tlight.visible = ( light.color != vec3( 0.0 ) );\n\t\t} else {\n\t\t\tlight.color = vec3( 0.0 );\n\t\t\tlight.visible = false;\n\t\t}\n\t}\n#endif\n#if NUM_RECT_AREA_LIGHTS > 0\n\tstruct RectAreaLight {\n\t\tvec3 color;\n\t\tvec3 position;\n\t\tvec3 halfWidth;\n\t\tvec3 halfHeight;\n\t};\n\tuniform sampler2D ltc_1;\tuniform sampler2D ltc_2;\n\tuniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ];\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\tstruct HemisphereLight {\n\t\tvec3 direction;\n\t\tvec3 skyColor;\n\t\tvec3 groundColor;\n\t};\n\tuniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ];\n\tvec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) {\n\t\tfloat dotNL = dot( normal, hemiLight.direction );\n\t\tfloat hemiDiffuseWeight = 0.5 * dotNL + 0.5;\n\t\tvec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );\n\t\treturn irradiance;\n\t}\n#endif",lights_toon_fragment:"ToonMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;",lights_toon_pars_fragment:"varying vec3 vViewPosition;\nstruct ToonMaterial {\n\tvec3 diffuseColor;\n};\nvoid RE_Direct_Toon( const in IncidentLight directLight, const in GeometricContext geometry, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\tvec3 irradiance = getGradientIrradiance( geometry.normal, directLight.direction ) * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in GeometricContext geometry, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Toon\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Toon\n#define Material_LightProbeLOD( material )\t(0)",lights_phong_fragment:"BlinnPhongMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularColor = specular;\nmaterial.specularShininess = shininess;\nmaterial.specularStrength = specularStrength;",lights_phong_pars_fragment:"varying vec3 vViewPosition;\nstruct BlinnPhongMaterial {\n\tvec3 diffuseColor;\n\tvec3 specularColor;\n\tfloat specularShininess;\n\tfloat specularStrength;\n};\nvoid RE_Direct_BlinnPhong( const in IncidentLight directLight, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n\treflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometry.viewDir, geometry.normal, material.specularColor, material.specularShininess ) * material.specularStrength;\n}\nvoid RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_BlinnPhong\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_BlinnPhong\n#define Material_LightProbeLOD( material )\t(0)",lights_physical_fragment:"PhysicalMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );\nvec3 dxy = max( abs( dFdx( geometryNormal ) ), abs( dFdy( geometryNormal ) ) );\nfloat geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );\nmaterial.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness;\nmaterial.roughness = min( material.roughness, 1.0 );\n#ifdef IOR\n\t#ifdef SPECULAR\n\t\tfloat specularIntensityFactor = specularIntensity;\n\t\tvec3 specularColorFactor = specularColor;\n\t\t#ifdef USE_SPECULARINTENSITYMAP\n\t\t\tspecularIntensityFactor *= texture2D( specularIntensityMap, vUv ).a;\n\t\t#endif\n\t\t#ifdef USE_SPECULARCOLORMAP\n\t\t\tspecularColorFactor *= texture2D( specularColorMap, vUv ).rgb;\n\t\t#endif\n\t\tmaterial.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor );\n\t#else\n\t\tfloat specularIntensityFactor = 1.0;\n\t\tvec3 specularColorFactor = vec3( 1.0 );\n\t\tmaterial.specularF90 = 1.0;\n\t#endif\n\tmaterial.specularColor = mix( min( pow2( ( ior - 1.0 ) / ( ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor );\n#else\n\tmaterial.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor );\n\tmaterial.specularF90 = 1.0;\n#endif\n#ifdef USE_CLEARCOAT\n\tmaterial.clearcoat = clearcoat;\n\tmaterial.clearcoatRoughness = clearcoatRoughness;\n\tmaterial.clearcoatF0 = vec3( 0.04 );\n\tmaterial.clearcoatF90 = 1.0;\n\t#ifdef USE_CLEARCOATMAP\n\t\tmaterial.clearcoat *= texture2D( clearcoatMap, vUv ).x;\n\t#endif\n\t#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\t\tmaterial.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vUv ).y;\n\t#endif\n\tmaterial.clearcoat = saturate( material.clearcoat );\tmaterial.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 );\n\tmaterial.clearcoatRoughness += geometryRoughness;\n\tmaterial.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 );\n#endif\n#ifdef USE_SHEEN\n\tmaterial.sheenColor = sheenColor;\n\t#ifdef USE_SHEENCOLORMAP\n\t\tmaterial.sheenColor *= texture2D( sheenColorMap, vUv ).rgb;\n\t#endif\n\tmaterial.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 );\n\t#ifdef USE_SHEENROUGHNESSMAP\n\t\tmaterial.sheenRoughness *= texture2D( sheenRoughnessMap, vUv ).a;\n\t#endif\n#endif",lights_physical_pars_fragment:"struct PhysicalMaterial {\n\tvec3 diffuseColor;\n\tfloat roughness;\n\tvec3 specularColor;\n\tfloat specularF90;\n\t#ifdef USE_CLEARCOAT\n\t\tfloat clearcoat;\n\t\tfloat clearcoatRoughness;\n\t\tvec3 clearcoatF0;\n\t\tfloat clearcoatF90;\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tvec3 sheenColor;\n\t\tfloat sheenRoughness;\n\t#endif\n};\nvec3 clearcoatSpecular = vec3( 0.0 );\nvec3 sheenSpecular = vec3( 0.0 );\nfloat IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat r2 = roughness * roughness;\n\tfloat a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95;\n\tfloat b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72;\n\tfloat DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) );\n\treturn saturate( DG * RECIPROCAL_PI );\n}\nvec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tconst vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );\n\tconst vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 );\n\tvec4 r = roughness * c0 + c1;\n\tfloat a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y;\n\tvec2 fab = vec2( - 1.04, 1.04 ) * a004 + r.zw;\n\treturn fab;\n}\nvec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) {\n\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\treturn specularColor * fab.x + specularF90 * fab.y;\n}\nvoid computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\tvec3 FssEss = specularColor * fab.x + specularF90 * fab.y;\n\tfloat Ess = fab.x + fab.y;\n\tfloat Ems = 1.0 - Ess;\n\tvec3 Favg = specularColor + ( 1.0 - specularColor ) * 0.047619;\tvec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );\n\tsingleScatter += FssEss;\n\tmultiScatter += Fms * Ems;\n}\n#if NUM_RECT_AREA_LIGHTS > 0\n\tvoid RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\t\tvec3 normal = geometry.normal;\n\t\tvec3 viewDir = geometry.viewDir;\n\t\tvec3 position = geometry.position;\n\t\tvec3 lightPos = rectAreaLight.position;\n\t\tvec3 halfWidth = rectAreaLight.halfWidth;\n\t\tvec3 halfHeight = rectAreaLight.halfHeight;\n\t\tvec3 lightColor = rectAreaLight.color;\n\t\tfloat roughness = material.roughness;\n\t\tvec3 rectCoords[ 4 ];\n\t\trectCoords[ 0 ] = lightPos + halfWidth - halfHeight;\t\trectCoords[ 1 ] = lightPos - halfWidth - halfHeight;\n\t\trectCoords[ 2 ] = lightPos - halfWidth + halfHeight;\n\t\trectCoords[ 3 ] = lightPos + halfWidth + halfHeight;\n\t\tvec2 uv = LTC_Uv( normal, viewDir, roughness );\n\t\tvec4 t1 = texture2D( ltc_1, uv );\n\t\tvec4 t2 = texture2D( ltc_2, uv );\n\t\tmat3 mInv = mat3(\n\t\t\tvec3( t1.x, 0, t1.y ),\n\t\t\tvec3( 0, 1, 0 ),\n\t\t\tvec3( t1.z, 0, t1.w )\n\t\t);\n\t\tvec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y );\n\t\treflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );\n\t\treflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords );\n\t}\n#endif\nvoid RE_Direct_Physical( const in IncidentLight directLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\t#ifdef USE_CLEARCOAT\n\t\tfloat dotNLcc = saturate( dot( geometry.clearcoatNormal, directLight.direction ) );\n\t\tvec3 ccIrradiance = dotNLcc * directLight.color;\n\t\tclearcoatSpecular += ccIrradiance * BRDF_GGX( directLight.direction, geometry.viewDir, geometry.clearcoatNormal, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness );\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecular += irradiance * BRDF_Sheen( directLight.direction, geometry.viewDir, geometry.normal, material.sheenColor, material.sheenRoughness );\n\t#endif\n\treflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometry.viewDir, geometry.normal, material.specularColor, material.specularF90, material.roughness );\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) {\n\t#ifdef USE_CLEARCOAT\n\t\tclearcoatSpecular += clearcoatRadiance * EnvironmentBRDF( geometry.clearcoatNormal, geometry.viewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness );\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecular += irradiance * material.sheenColor * IBLSheenBRDF( geometry.normal, geometry.viewDir, material.sheenRoughness );\n\t#endif\n\tvec3 singleScattering = vec3( 0.0 );\n\tvec3 multiScattering = vec3( 0.0 );\n\tvec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;\n\tcomputeMultiscattering( geometry.normal, geometry.viewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering );\n\tvec3 diffuse = material.diffuseColor * ( 1.0 - ( singleScattering + multiScattering ) );\n\treflectedLight.indirectSpecular += radiance * singleScattering;\n\treflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance;\n\treflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance;\n}\n#define RE_Direct\t\t\t\tRE_Direct_Physical\n#define RE_Direct_RectArea\t\tRE_Direct_RectArea_Physical\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Physical\n#define RE_IndirectSpecular\t\tRE_IndirectSpecular_Physical\nfloat computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {\n\treturn saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );\n}",lights_fragment_begin:"\nGeometricContext geometry;\ngeometry.position = - vViewPosition;\ngeometry.normal = normal;\ngeometry.viewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );\n#ifdef USE_CLEARCOAT\n\tgeometry.clearcoatNormal = clearcoatNormal;\n#endif\nIncidentLight directLight;\n#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )\n\tPointLight pointLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tpointLight = pointLights[ i ];\n\t\tgetPointLightInfo( pointLight, geometry, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS )\n\t\tpointLightShadow = pointLightShadows[ i ];\n\t\tdirectLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )\n\tSpotLight spotLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tspotLight = spotLights[ i ];\n\t\tgetSpotLightInfo( spotLight, geometry, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\tspotLightShadow = spotLightShadows[ i ];\n\t\tdirectLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )\n\tDirectionalLight directionalLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tdirectionalLight = directionalLights[ i ];\n\t\tgetDirectionalLightInfo( directionalLight, geometry, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS )\n\t\tdirectionalLightShadow = directionalLightShadows[ i ];\n\t\tdirectLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )\n\tRectAreaLight rectAreaLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {\n\t\trectAreaLight = rectAreaLights[ i ];\n\t\tRE_Direct_RectArea( rectAreaLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if defined( RE_IndirectDiffuse )\n\tvec3 iblIrradiance = vec3( 0.0 );\n\tvec3 irradiance = getAmbientLightIrradiance( ambientLightColor );\n\tirradiance += getLightProbeIrradiance( lightProbe, geometry.normal );\n\t#if ( NUM_HEMI_LIGHTS > 0 )\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\t\tirradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry.normal );\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if defined( RE_IndirectSpecular )\n\tvec3 radiance = vec3( 0.0 );\n\tvec3 clearcoatRadiance = vec3( 0.0 );\n#endif",lights_fragment_maps:"#if defined( RE_IndirectDiffuse )\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel = texture2D( lightMap, vUv2 );\n\t\tvec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;\n\t\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\t\tlightMapIrradiance *= PI;\n\t\t#endif\n\t\tirradiance += lightMapIrradiance;\n\t#endif\n\t#if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV )\n\t\tiblIrradiance += getIBLIrradiance( geometry.normal );\n\t#endif\n#endif\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\n\tradiance += getIBLRadiance( geometry.viewDir, geometry.normal, material.roughness );\n\t#ifdef USE_CLEARCOAT\n\t\tclearcoatRadiance += getIBLRadiance( geometry.viewDir, geometry.clearcoatNormal, material.clearcoatRoughness );\n\t#endif\n#endif",lights_fragment_end:"#if defined( RE_IndirectDiffuse )\n\tRE_IndirectDiffuse( irradiance, geometry, material, reflectedLight );\n#endif\n#if defined( RE_IndirectSpecular )\n\tRE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometry, material, reflectedLight );\n#endif",logdepthbuf_fragment:"#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tgl_FragDepthEXT = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;\n#endif",logdepthbuf_pars_fragment:"#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tuniform float logDepthBufFC;\n\tvarying float vFragDepth;\n\tvarying float vIsPerspective;\n#endif",logdepthbuf_pars_vertex:"#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvarying float vFragDepth;\n\t\tvarying float vIsPerspective;\n\t#else\n\t\tuniform float logDepthBufFC;\n\t#endif\n#endif",logdepthbuf_vertex:"#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvFragDepth = 1.0 + gl_Position.w;\n\t\tvIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );\n\t#else\n\t\tif ( isPerspectiveMatrix( projectionMatrix ) ) {\n\t\t\tgl_Position.z = log2( max( EPSILON, gl_Position.w + 1.0 ) ) * logDepthBufFC - 1.0;\n\t\t\tgl_Position.z *= gl_Position.w;\n\t\t}\n\t#endif\n#endif",map_fragment:"#ifdef USE_MAP\n\tvec4 sampledDiffuseColor = texture2D( map, vUv );\n\t#ifdef DECODE_VIDEO_TEXTURE\n\t\tsampledDiffuseColor = vec4( mix( pow( sampledDiffuseColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), sampledDiffuseColor.rgb * 0.0773993808, vec3( lessThanEqual( sampledDiffuseColor.rgb, vec3( 0.04045 ) ) ) ), sampledDiffuseColor.w );\n\t#endif\n\tdiffuseColor *= sampledDiffuseColor;\n#endif",map_pars_fragment:"#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif",map_particle_fragment:"#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\tvec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;\n#endif\n#ifdef USE_MAP\n\tdiffuseColor *= texture2D( map, uv );\n#endif\n#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, uv ).g;\n#endif",map_particle_pars_fragment:"#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\tuniform mat3 uvTransform;\n#endif\n#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif",metalnessmap_fragment:"float metalnessFactor = metalness;\n#ifdef USE_METALNESSMAP\n\tvec4 texelMetalness = texture2D( metalnessMap, vUv );\n\tmetalnessFactor *= texelMetalness.b;\n#endif",metalnessmap_pars_fragment:"#ifdef USE_METALNESSMAP\n\tuniform sampler2D metalnessMap;\n#endif",morphcolor_vertex:"#if defined( USE_MORPHCOLORS ) && defined( MORPHTARGETS_TEXTURE )\n\tvColor *= morphTargetBaseInfluence;\n\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t#if defined( USE_COLOR_ALPHA )\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ];\n\t\t#elif defined( USE_COLOR )\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ]\n\t\t#endif\n\t}\n#endif",morphnormal_vertex:"#ifdef USE_MORPHNORMALS\n\tobjectNormal *= morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ];\n\t\t}\n\t#else\n\t\tobjectNormal += morphNormal0 * morphTargetInfluences[ 0 ];\n\t\tobjectNormal += morphNormal1 * morphTargetInfluences[ 1 ];\n\t\tobjectNormal += morphNormal2 * morphTargetInfluences[ 2 ];\n\t\tobjectNormal += morphNormal3 * morphTargetInfluences[ 3 ];\n\t#endif\n#endif",morphtarget_pars_vertex:"#ifdef USE_MORPHTARGETS\n\tuniform float morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tuniform float morphTargetInfluences[ MORPHTARGETS_COUNT ];\n\t\tuniform sampler2DArray morphTargetsTexture;\n\t\tuniform vec2 morphTargetsTextureSize;\n\t\tvec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) {\n\t\t\tfloat texelIndex = float( vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset );\n\t\t\tfloat y = floor( texelIndex / morphTargetsTextureSize.x );\n\t\t\tfloat x = texelIndex - y * morphTargetsTextureSize.x;\n\t\t\tvec3 morphUV = vec3( ( x + 0.5 ) / morphTargetsTextureSize.x, y / morphTargetsTextureSize.y, morphTargetIndex );\n\t\t\treturn texture( morphTargetsTexture, morphUV );\n\t\t}\n\t#else\n\t\t#ifndef USE_MORPHNORMALS\n\t\t\tuniform float morphTargetInfluences[ 8 ];\n\t\t#else\n\t\t\tuniform float morphTargetInfluences[ 4 ];\n\t\t#endif\n\t#endif\n#endif",morphtarget_vertex:"#ifdef USE_MORPHTARGETS\n\ttransformed *= morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ];\n\t\t}\n\t#else\n\t\ttransformed += morphTarget0 * morphTargetInfluences[ 0 ];\n\t\ttransformed += morphTarget1 * morphTargetInfluences[ 1 ];\n\t\ttransformed += morphTarget2 * morphTargetInfluences[ 2 ];\n\t\ttransformed += morphTarget3 * morphTargetInfluences[ 3 ];\n\t\t#ifndef USE_MORPHNORMALS\n\t\t\ttransformed += morphTarget4 * morphTargetInfluences[ 4 ];\n\t\t\ttransformed += morphTarget5 * morphTargetInfluences[ 5 ];\n\t\t\ttransformed += morphTarget6 * morphTargetInfluences[ 6 ];\n\t\t\ttransformed += morphTarget7 * morphTargetInfluences[ 7 ];\n\t\t#endif\n\t#endif\n#endif",normal_fragment_begin:"float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;\n#ifdef FLAT_SHADED\n\tvec3 fdx = vec3( dFdx( vViewPosition.x ), dFdx( vViewPosition.y ), dFdx( vViewPosition.z ) );\n\tvec3 fdy = vec3( dFdy( vViewPosition.x ), dFdy( vViewPosition.y ), dFdy( vViewPosition.z ) );\n\tvec3 normal = normalize( cross( fdx, fdy ) );\n#else\n\tvec3 normal = normalize( vNormal );\n\t#ifdef DOUBLE_SIDED\n\t\tnormal = normal * faceDirection;\n\t#endif\n\t#ifdef USE_TANGENT\n\t\tvec3 tangent = normalize( vTangent );\n\t\tvec3 bitangent = normalize( vBitangent );\n\t\t#ifdef DOUBLE_SIDED\n\t\t\ttangent = tangent * faceDirection;\n\t\t\tbitangent = bitangent * faceDirection;\n\t\t#endif\n\t\t#if defined( TANGENTSPACE_NORMALMAP ) || defined( USE_CLEARCOAT_NORMALMAP )\n\t\t\tmat3 vTBN = mat3( tangent, bitangent, normal );\n\t\t#endif\n\t#endif\n#endif\nvec3 geometryNormal = normal;",normal_fragment_maps:"#ifdef OBJECTSPACE_NORMALMAP\n\tnormal = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0;\n\t#ifdef FLIP_SIDED\n\t\tnormal = - normal;\n\t#endif\n\t#ifdef DOUBLE_SIDED\n\t\tnormal = normal * faceDirection;\n\t#endif\n\tnormal = normalize( normalMatrix * normal );\n#elif defined( TANGENTSPACE_NORMALMAP )\n\tvec3 mapN = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0;\n\tmapN.xy *= normalScale;\n\t#ifdef USE_TANGENT\n\t\tnormal = normalize( vTBN * mapN );\n\t#else\n\t\tnormal = perturbNormal2Arb( - vViewPosition, normal, mapN, faceDirection );\n\t#endif\n#elif defined( USE_BUMPMAP )\n\tnormal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection );\n#endif",normal_pars_fragment:"#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif",normal_pars_vertex:"#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif",normal_vertex:"#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n\t#ifdef USE_TANGENT\n\t\tvTangent = normalize( transformedTangent );\n\t\tvBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );\n\t#endif\n#endif",normalmap_pars_fragment:"#ifdef USE_NORMALMAP\n\tuniform sampler2D normalMap;\n\tuniform vec2 normalScale;\n#endif\n#ifdef OBJECTSPACE_NORMALMAP\n\tuniform mat3 normalMatrix;\n#endif\n#if ! defined ( USE_TANGENT ) && ( defined ( TANGENTSPACE_NORMALMAP ) || defined ( USE_CLEARCOAT_NORMALMAP ) )\n\tvec3 perturbNormal2Arb( vec3 eye_pos, vec3 surf_norm, vec3 mapN, float faceDirection ) {\n\t\tvec3 q0 = vec3( dFdx( eye_pos.x ), dFdx( eye_pos.y ), dFdx( eye_pos.z ) );\n\t\tvec3 q1 = vec3( dFdy( eye_pos.x ), dFdy( eye_pos.y ), dFdy( eye_pos.z ) );\n\t\tvec2 st0 = dFdx( vUv.st );\n\t\tvec2 st1 = dFdy( vUv.st );\n\t\tvec3 N = surf_norm;\n\t\tvec3 q1perp = cross( q1, N );\n\t\tvec3 q0perp = cross( N, q0 );\n\t\tvec3 T = q1perp * st0.x + q0perp * st1.x;\n\t\tvec3 B = q1perp * st0.y + q0perp * st1.y;\n\t\tfloat det = max( dot( T, T ), dot( B, B ) );\n\t\tfloat scale = ( det == 0.0 ) ? 0.0 : faceDirection * inversesqrt( det );\n\t\treturn normalize( T * ( mapN.x * scale ) + B * ( mapN.y * scale ) + N * mapN.z );\n\t}\n#endif",clearcoat_normal_fragment_begin:"#ifdef USE_CLEARCOAT\n\tvec3 clearcoatNormal = geometryNormal;\n#endif",clearcoat_normal_fragment_maps:"#ifdef USE_CLEARCOAT_NORMALMAP\n\tvec3 clearcoatMapN = texture2D( clearcoatNormalMap, vUv ).xyz * 2.0 - 1.0;\n\tclearcoatMapN.xy *= clearcoatNormalScale;\n\t#ifdef USE_TANGENT\n\t\tclearcoatNormal = normalize( vTBN * clearcoatMapN );\n\t#else\n\t\tclearcoatNormal = perturbNormal2Arb( - vViewPosition, clearcoatNormal, clearcoatMapN, faceDirection );\n\t#endif\n#endif",clearcoat_pars_fragment:"#ifdef USE_CLEARCOATMAP\n\tuniform sampler2D clearcoatMap;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform sampler2D clearcoatRoughnessMap;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform sampler2D clearcoatNormalMap;\n\tuniform vec2 clearcoatNormalScale;\n#endif",output_fragment:"#ifdef OPAQUE\ndiffuseColor.a = 1.0;\n#endif\n#ifdef USE_TRANSMISSION\ndiffuseColor.a *= transmissionAlpha + 0.1;\n#endif\ngl_FragColor = vec4( outgoingLight, diffuseColor.a );",packing:"vec3 packNormalToRGB( const in vec3 normal ) {\n\treturn normalize( normal ) * 0.5 + 0.5;\n}\nvec3 unpackRGBToNormal( const in vec3 rgb ) {\n\treturn 2.0 * rgb.xyz - 1.0;\n}\nconst float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;\nconst vec3 PackFactors = vec3( 256. * 256. * 256., 256. * 256., 256. );\nconst vec4 UnpackFactors = UnpackDownscale / vec4( PackFactors, 1. );\nconst float ShiftRight8 = 1. / 256.;\nvec4 packDepthToRGBA( const in float v ) {\n\tvec4 r = vec4( fract( v * PackFactors ), v );\n\tr.yzw -= r.xyz * ShiftRight8;\treturn r * PackUpscale;\n}\nfloat unpackRGBAToDepth( const in vec4 v ) {\n\treturn dot( v, UnpackFactors );\n}\nvec4 pack2HalfToRGBA( vec2 v ) {\n\tvec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) );\n\treturn vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w );\n}\nvec2 unpackRGBATo2Half( vec4 v ) {\n\treturn vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) );\n}\nfloat viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( viewZ + near ) / ( near - far );\n}\nfloat orthographicDepthToViewZ( const in float linearClipZ, const in float near, const in float far ) {\n\treturn linearClipZ * ( near - far ) - near;\n}\nfloat viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ );\n}\nfloat perspectiveDepthToViewZ( const in float invClipZ, const in float near, const in float far ) {\n\treturn ( near * far ) / ( ( far - near ) * invClipZ - far );\n}",premultiplied_alpha_fragment:"#ifdef PREMULTIPLIED_ALPHA\n\tgl_FragColor.rgb *= gl_FragColor.a;\n#endif",project_vertex:"vec4 mvPosition = vec4( transformed, 1.0 );\n#ifdef USE_INSTANCING\n\tmvPosition = instanceMatrix * mvPosition;\n#endif\nmvPosition = modelViewMatrix * mvPosition;\ngl_Position = projectionMatrix * mvPosition;",dithering_fragment:"#ifdef DITHERING\n\tgl_FragColor.rgb = dithering( gl_FragColor.rgb );\n#endif",dithering_pars_fragment:"#ifdef DITHERING\n\tvec3 dithering( vec3 color ) {\n\t\tfloat grid_position = rand( gl_FragCoord.xy );\n\t\tvec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );\n\t\tdither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );\n\t\treturn color + dither_shift_RGB;\n\t}\n#endif",roughnessmap_fragment:"float roughnessFactor = roughness;\n#ifdef USE_ROUGHNESSMAP\n\tvec4 texelRoughness = texture2D( roughnessMap, vUv );\n\troughnessFactor *= texelRoughness.g;\n#endif",roughnessmap_pars_fragment:"#ifdef USE_ROUGHNESSMAP\n\tuniform sampler2D roughnessMap;\n#endif",shadowmap_pars_fragment:"#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vSpotShadowCoord[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n\tfloat texture2DCompare( sampler2D depths, vec2 uv, float compare ) {\n\t\treturn step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );\n\t}\n\tvec2 texture2DDistribution( sampler2D shadow, vec2 uv ) {\n\t\treturn unpackRGBATo2Half( texture2D( shadow, uv ) );\n\t}\n\tfloat VSMShadow (sampler2D shadow, vec2 uv, float compare ){\n\t\tfloat occlusion = 1.0;\n\t\tvec2 distribution = texture2DDistribution( shadow, uv );\n\t\tfloat hard_shadow = step( compare , distribution.x );\n\t\tif (hard_shadow != 1.0 ) {\n\t\t\tfloat distance = compare - distribution.x ;\n\t\t\tfloat variance = max( 0.00000, distribution.y * distribution.y );\n\t\t\tfloat softness_probability = variance / (variance + distance * distance );\t\t\tsoftness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 );\t\t\tocclusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 );\n\t\t}\n\t\treturn occlusion;\n\t}\n\tfloat getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) {\n\t\tfloat shadow = 1.0;\n\t\tshadowCoord.xyz /= shadowCoord.w;\n\t\tshadowCoord.z += shadowBias;\n\t\tbvec4 inFrustumVec = bvec4 ( shadowCoord.x >= 0.0, shadowCoord.x <= 1.0, shadowCoord.y >= 0.0, shadowCoord.y <= 1.0 );\n\t\tbool inFrustum = all( inFrustumVec );\n\t\tbvec2 frustumTestVec = bvec2( inFrustum, shadowCoord.z <= 1.0 );\n\t\tbool frustumTest = all( frustumTestVec );\n\t\tif ( frustumTest ) {\n\t\t#if defined( SHADOWMAP_TYPE_PCF )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx0 = - texelSize.x * shadowRadius;\n\t\t\tfloat dy0 = - texelSize.y * shadowRadius;\n\t\t\tfloat dx1 = + texelSize.x * shadowRadius;\n\t\t\tfloat dy1 = + texelSize.y * shadowRadius;\n\t\t\tfloat dx2 = dx0 / 2.0;\n\t\t\tfloat dy2 = dy0 / 2.0;\n\t\t\tfloat dx3 = dx1 / 2.0;\n\t\t\tfloat dy3 = dy1 / 2.0;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )\n\t\t\t) * ( 1.0 / 17.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_PCF_SOFT )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx = texelSize.x;\n\t\t\tfloat dy = texelSize.y;\n\t\t\tvec2 uv = shadowCoord.xy;\n\t\t\tvec2 f = fract( uv * shadowMapSize + 0.5 );\n\t\t\tuv -= f * texelSize;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, uv, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ), \n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ), \n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ), \n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ), \n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ), \n\t\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t f.x ),\n\t\t\t\t\t mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ), \n\t\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t f.x ),\n\t\t\t\t\t f.y )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_VSM )\n\t\t\tshadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#else\n\t\t\tshadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#endif\n\t\t}\n\t\treturn shadow;\n\t}\n\tvec2 cubeToUV( vec3 v, float texelSizeY ) {\n\t\tvec3 absV = abs( v );\n\t\tfloat scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) );\n\t\tabsV *= scaleToCube;\n\t\tv *= scaleToCube * ( 1.0 - 2.0 * texelSizeY );\n\t\tvec2 planar = v.xy;\n\t\tfloat almostATexel = 1.5 * texelSizeY;\n\t\tfloat almostOne = 1.0 - almostATexel;\n\t\tif ( absV.z >= almostOne ) {\n\t\t\tif ( v.z > 0.0 )\n\t\t\t\tplanar.x = 4.0 - v.x;\n\t\t} else if ( absV.x >= almostOne ) {\n\t\t\tfloat signX = sign( v.x );\n\t\t\tplanar.x = v.z * signX + 2.0 * signX;\n\t\t} else if ( absV.y >= almostOne ) {\n\t\t\tfloat signY = sign( v.y );\n\t\t\tplanar.x = v.x + 2.0 * signY + 2.0;\n\t\t\tplanar.y = v.z * signY - 2.0;\n\t\t}\n\t\treturn vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 );\n\t}\n\tfloat getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {\n\t\tvec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );\n\t\tvec3 lightToPosition = shadowCoord.xyz;\n\t\tfloat dp = ( length( lightToPosition ) - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear );\t\tdp += shadowBias;\n\t\tvec3 bd3D = normalize( lightToPosition );\n\t\t#if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM )\n\t\t\tvec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;\n\t\t\treturn (\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#else\n\t\t\treturn texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );\n\t\t#endif\n\t}\n#endif",shadowmap_pars_vertex:"#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tuniform mat4 spotShadowMatrix[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vSpotShadowCoord[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n#endif",shadowmap_vertex:"#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0 || NUM_SPOT_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0\n\t\tvec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\t\tvec4 shadowWorldPosition;\n\t#endif\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 );\n\t\tvDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias, 0 );\n\t\tvSpotShadowCoord[ i ] = spotShadowMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 );\n\t\tvPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n#endif",shadowmask_pars_fragment:"float getShadowMask() {\n\tfloat shadow = 1.0;\n\t#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\tdirectionalLight = directionalLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n\t\tspotLight = spotLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\tpointLight = pointLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#endif\n\treturn shadow;\n}",skinbase_vertex:"#ifdef USE_SKINNING\n\tmat4 boneMatX = getBoneMatrix( skinIndex.x );\n\tmat4 boneMatY = getBoneMatrix( skinIndex.y );\n\tmat4 boneMatZ = getBoneMatrix( skinIndex.z );\n\tmat4 boneMatW = getBoneMatrix( skinIndex.w );\n#endif",skinning_pars_vertex:"#ifdef USE_SKINNING\n\tuniform mat4 bindMatrix;\n\tuniform mat4 bindMatrixInverse;\n\t#ifdef BONE_TEXTURE\n\t\tuniform highp sampler2D boneTexture;\n\t\tuniform int boneTextureSize;\n\t\tmat4 getBoneMatrix( const in float i ) {\n\t\t\tfloat j = i * 4.0;\n\t\t\tfloat x = mod( j, float( boneTextureSize ) );\n\t\t\tfloat y = floor( j / float( boneTextureSize ) );\n\t\t\tfloat dx = 1.0 / float( boneTextureSize );\n\t\t\tfloat dy = 1.0 / float( boneTextureSize );\n\t\t\ty = dy * ( y + 0.5 );\n\t\t\tvec4 v1 = texture2D( boneTexture, vec2( dx * ( x + 0.5 ), y ) );\n\t\t\tvec4 v2 = texture2D( boneTexture, vec2( dx * ( x + 1.5 ), y ) );\n\t\t\tvec4 v3 = texture2D( boneTexture, vec2( dx * ( x + 2.5 ), y ) );\n\t\t\tvec4 v4 = texture2D( boneTexture, vec2( dx * ( x + 3.5 ), y ) );\n\t\t\tmat4 bone = mat4( v1, v2, v3, v4 );\n\t\t\treturn bone;\n\t\t}\n\t#else\n\t\tuniform mat4 boneMatrices[ MAX_BONES ];\n\t\tmat4 getBoneMatrix( const in float i ) {\n\t\t\tmat4 bone = boneMatrices[ int(i) ];\n\t\t\treturn bone;\n\t\t}\n\t#endif\n#endif",skinning_vertex:"#ifdef USE_SKINNING\n\tvec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );\n\tvec4 skinned = vec4( 0.0 );\n\tskinned += boneMatX * skinVertex * skinWeight.x;\n\tskinned += boneMatY * skinVertex * skinWeight.y;\n\tskinned += boneMatZ * skinVertex * skinWeight.z;\n\tskinned += boneMatW * skinVertex * skinWeight.w;\n\ttransformed = ( bindMatrixInverse * skinned ).xyz;\n#endif",skinnormal_vertex:"#ifdef USE_SKINNING\n\tmat4 skinMatrix = mat4( 0.0 );\n\tskinMatrix += skinWeight.x * boneMatX;\n\tskinMatrix += skinWeight.y * boneMatY;\n\tskinMatrix += skinWeight.z * boneMatZ;\n\tskinMatrix += skinWeight.w * boneMatW;\n\tskinMatrix = bindMatrixInverse * skinMatrix * bindMatrix;\n\tobjectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;\n\t#ifdef USE_TANGENT\n\t\tobjectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#endif\n#endif",specularmap_fragment:"float specularStrength;\n#ifdef USE_SPECULARMAP\n\tvec4 texelSpecular = texture2D( specularMap, vUv );\n\tspecularStrength = texelSpecular.r;\n#else\n\tspecularStrength = 1.0;\n#endif",specularmap_pars_fragment:"#ifdef USE_SPECULARMAP\n\tuniform sampler2D specularMap;\n#endif",tonemapping_fragment:"#if defined( TONE_MAPPING )\n\tgl_FragColor.rgb = toneMapping( gl_FragColor.rgb );\n#endif",tonemapping_pars_fragment:"#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\nuniform float toneMappingExposure;\nvec3 LinearToneMapping( vec3 color ) {\n\treturn toneMappingExposure * color;\n}\nvec3 ReinhardToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( color / ( vec3( 1.0 ) + color ) );\n}\nvec3 OptimizedCineonToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\tcolor = max( vec3( 0.0 ), color - 0.004 );\n\treturn pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );\n}\nvec3 RRTAndODTFit( vec3 v ) {\n\tvec3 a = v * ( v + 0.0245786 ) - 0.000090537;\n\tvec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;\n\treturn a / b;\n}\nvec3 ACESFilmicToneMapping( vec3 color ) {\n\tconst mat3 ACESInputMat = mat3(\n\t\tvec3( 0.59719, 0.07600, 0.02840 ),\t\tvec3( 0.35458, 0.90834, 0.13383 ),\n\t\tvec3( 0.04823, 0.01566, 0.83777 )\n\t);\n\tconst mat3 ACESOutputMat = mat3(\n\t\tvec3( 1.60475, -0.10208, -0.00327 ),\t\tvec3( -0.53108, 1.10813, -0.07276 ),\n\t\tvec3( -0.07367, -0.00605, 1.07602 )\n\t);\n\tcolor *= toneMappingExposure / 0.6;\n\tcolor = ACESInputMat * color;\n\tcolor = RRTAndODTFit( color );\n\tcolor = ACESOutputMat * color;\n\treturn saturate( color );\n}\nvec3 CustomToneMapping( vec3 color ) { return color; }",transmission_fragment:"#ifdef USE_TRANSMISSION\n\tfloat transmissionAlpha = 1.0;\n\tfloat transmissionFactor = transmission;\n\tfloat thicknessFactor = thickness;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\ttransmissionFactor *= texture2D( transmissionMap, vUv ).r;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tthicknessFactor *= texture2D( thicknessMap, vUv ).g;\n\t#endif\n\tvec3 pos = vWorldPosition;\n\tvec3 v = normalize( cameraPosition - pos );\n\tvec3 n = inverseTransformDirection( normal, viewMatrix );\n\tvec4 transmission = getIBLVolumeRefraction(\n\t\tn, v, roughnessFactor, material.diffuseColor, material.specularColor, material.specularF90,\n\t\tpos, modelMatrix, viewMatrix, projectionMatrix, ior, thicknessFactor,\n\t\tattenuationColor, attenuationDistance );\n\ttotalDiffuse = mix( totalDiffuse, transmission.rgb, transmissionFactor );\n\ttransmissionAlpha = mix( transmissionAlpha, transmission.a, transmissionFactor );\n#endif",transmission_pars_fragment:"#ifdef USE_TRANSMISSION\n\tuniform float transmission;\n\tuniform float thickness;\n\tuniform float attenuationDistance;\n\tuniform vec3 attenuationColor;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\tuniform sampler2D transmissionMap;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tuniform sampler2D thicknessMap;\n\t#endif\n\tuniform vec2 transmissionSamplerSize;\n\tuniform sampler2D transmissionSamplerMap;\n\tuniform mat4 modelMatrix;\n\tuniform mat4 projectionMatrix;\n\tvarying vec3 vWorldPosition;\n\tvec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) {\n\t\tvec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior );\n\t\tvec3 modelScale;\n\t\tmodelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) );\n\t\tmodelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) );\n\t\tmodelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) );\n\t\treturn normalize( refractionVector ) * thickness * modelScale;\n\t}\n\tfloat applyIorToRoughness( const in float roughness, const in float ior ) {\n\t\treturn roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 );\n\t}\n\tvec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) {\n\t\tfloat framebufferLod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior );\n\t\t#ifdef texture2DLodEXT\n\t\t\treturn texture2DLodEXT( transmissionSamplerMap, fragCoord.xy, framebufferLod );\n\t\t#else\n\t\t\treturn texture2D( transmissionSamplerMap, fragCoord.xy, framebufferLod );\n\t\t#endif\n\t}\n\tvec3 applyVolumeAttenuation( const in vec3 radiance, const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) {\n\t\tif ( attenuationDistance == 0.0 ) {\n\t\t\treturn radiance;\n\t\t} else {\n\t\t\tvec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance;\n\t\t\tvec3 transmittance = exp( - attenuationCoefficient * transmissionDistance );\t\t\treturn transmittance * radiance;\n\t\t}\n\t}\n\tvec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor,\n\t\tconst in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix,\n\t\tconst in mat4 viewMatrix, const in mat4 projMatrix, const in float ior, const in float thickness,\n\t\tconst in vec3 attenuationColor, const in float attenuationDistance ) {\n\t\tvec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix );\n\t\tvec3 refractedRayExit = position + transmissionRay;\n\t\tvec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );\n\t\tvec2 refractionCoords = ndcPos.xy / ndcPos.w;\n\t\trefractionCoords += 1.0;\n\t\trefractionCoords /= 2.0;\n\t\tvec4 transmittedLight = getTransmissionSample( refractionCoords, roughness, ior );\n\t\tvec3 attenuatedColor = applyVolumeAttenuation( transmittedLight.rgb, length( transmissionRay ), attenuationColor, attenuationDistance );\n\t\tvec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness );\n\t\treturn vec4( ( 1.0 - F ) * attenuatedColor * diffuseColor, transmittedLight.a );\n\t}\n#endif",uv_pars_fragment:"#if ( defined( USE_UV ) && ! defined( UVS_VERTEX_ONLY ) )\n\tvarying vec2 vUv;\n#endif",uv_pars_vertex:"#ifdef USE_UV\n\t#ifdef UVS_VERTEX_ONLY\n\t\tvec2 vUv;\n\t#else\n\t\tvarying vec2 vUv;\n\t#endif\n\tuniform mat3 uvTransform;\n#endif",uv_vertex:"#ifdef USE_UV\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n#endif",uv2_pars_fragment:"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tvarying vec2 vUv2;\n#endif",uv2_pars_vertex:"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tattribute vec2 uv2;\n\tvarying vec2 vUv2;\n\tuniform mat3 uv2Transform;\n#endif",uv2_vertex:"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tvUv2 = ( uv2Transform * vec3( uv2, 1 ) ).xy;\n#endif",worldpos_vertex:"#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION )\n\tvec4 worldPosition = vec4( transformed, 1.0 );\n\t#ifdef USE_INSTANCING\n\t\tworldPosition = instanceMatrix * worldPosition;\n\t#endif\n\tworldPosition = modelMatrix * worldPosition;\n#endif",background_vert:"varying vec2 vUv;\nuniform mat3 uvTransform;\nvoid main() {\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\tgl_Position = vec4( position.xy, 1.0, 1.0 );\n}",background_frag:"uniform sampler2D t2D;\nvarying vec2 vUv;\nvoid main() {\n\tgl_FragColor = texture2D( t2D, vUv );\n\t#include \n\t#include \n}",cube_vert:"varying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include \n\t#include \n\tgl_Position.z = gl_Position.w;\n}",cube_frag:"#include \nuniform float opacity;\nvarying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvec3 vReflect = vWorldDirection;\n\t#include \n\tgl_FragColor = envColor;\n\tgl_FragColor.a *= opacity;\n\t#include \n\t#include \n}",depth_vert:"#include \n#include \n#include \n#include \n#include \n#include \n#include \nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\t#include \n\t#include \n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include \n\t\t#include \n\t\t#include \n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvHighPrecisionZW = gl_Position.zw;\n}",depth_frag:"#if DEPTH_PACKING == 3200\n\tuniform float opacity;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\t#include \n\tvec4 diffuseColor = vec4( 1.0 );\n\t#if DEPTH_PACKING == 3200\n\t\tdiffuseColor.a = opacity;\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\tfloat fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5;\n\t#if DEPTH_PACKING == 3200\n\t\tgl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity );\n\t#elif DEPTH_PACKING == 3201\n\t\tgl_FragColor = packDepthToRGBA( fragCoordZ );\n\t#endif\n}",distanceRGBA_vert:"#define DISTANCE\nvarying vec3 vWorldPosition;\n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include \n\t\t#include \n\t\t#include \n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvWorldPosition = worldPosition.xyz;\n}",distanceRGBA_frag:"#define DISTANCE\nuniform vec3 referencePosition;\nuniform float nearDistance;\nuniform float farDistance;\nvarying vec3 vWorldPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main () {\n\t#include \n\tvec4 diffuseColor = vec4( 1.0 );\n\t#include \n\t#include \n\t#include \n\tfloat dist = length( vWorldPosition - referencePosition );\n\tdist = ( dist - nearDistance ) / ( farDistance - nearDistance );\n\tdist = saturate( dist );\n\tgl_FragColor = packDepthToRGBA( dist );\n}",equirect_vert:"varying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include \n\t#include \n}",equirect_frag:"uniform sampler2D tEquirect;\nvarying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvec3 direction = normalize( vWorldDirection );\n\tvec2 sampleUV = equirectUv( direction );\n\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\t#include \n\t#include \n}",linedashed_vert:"uniform float scale;\nattribute float lineDistance;\nvarying float vLineDistance;\n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvLineDistance = scale * lineDistance;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",linedashed_frag:"uniform vec3 diffuse;\nuniform float opacity;\nuniform float dashSize;\nuniform float totalSize;\nvarying float vLineDistance;\n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tif ( mod( vLineDistance, totalSize ) > dashSize ) {\n\t\tdiscard;\n\t}\n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\toutgoingLight = diffuseColor.rgb;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshbasic_vert:"#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#if defined ( USE_ENVMAP ) || defined ( USE_SKINNING )\n\t\t#include \n\t\t#include \n\t\t#include \n\t\t#include \n\t\t#include \n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshbasic_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel= texture2D( lightMap, vUv2 );\n\t\treflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity;\n\t#else\n\t\treflectedLight.indirectDiffuse += vec3( 1.0 );\n\t#endif\n\t#include \n\treflectedLight.indirectDiffuse *= diffuseColor.rgb;\n\tvec3 outgoingLight = reflectedLight.indirectDiffuse;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshlambert_vert:"#define LAMBERT\nvarying vec3 vLightFront;\nvarying vec3 vIndirectFront;\n#ifdef DOUBLE_SIDED\n\tvarying vec3 vLightBack;\n\tvarying vec3 vIndirectBack;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshlambert_frag:"uniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\nvarying vec3 vLightFront;\nvarying vec3 vIndirectFront;\n#ifdef DOUBLE_SIDED\n\tvarying vec3 vLightBack;\n\tvarying vec3 vIndirectBack;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#ifdef DOUBLE_SIDED\n\t\treflectedLight.indirectDiffuse += ( gl_FrontFacing ) ? vIndirectFront : vIndirectBack;\n\t#else\n\t\treflectedLight.indirectDiffuse += vIndirectFront;\n\t#endif\n\t#include \n\treflectedLight.indirectDiffuse *= BRDF_Lambert( diffuseColor.rgb );\n\t#ifdef DOUBLE_SIDED\n\t\treflectedLight.directDiffuse = ( gl_FrontFacing ) ? vLightFront : vLightBack;\n\t#else\n\t\treflectedLight.directDiffuse = vLightFront;\n\t#endif\n\treflectedLight.directDiffuse *= BRDF_Lambert( diffuseColor.rgb ) * getShadowMask();\n\t#include \n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshmatcap_vert:"#define MATCAP\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n}",meshmatcap_frag:"#define MATCAP\nuniform vec3 diffuse;\nuniform float opacity;\nuniform sampler2D matcap;\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 viewDir = normalize( vViewPosition );\n\tvec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) );\n\tvec3 y = cross( viewDir, x );\n\tvec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5;\n\t#ifdef USE_MATCAP\n\t\tvec4 matcapColor = texture2D( matcap, uv );\n\t#else\n\t\tvec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 );\n\t#endif\n\tvec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshnormal_vert:"#define NORMAL\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )\n\tvarying vec3 vViewPosition;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )\n\tvViewPosition = - mvPosition.xyz;\n#endif\n}",meshnormal_frag:"#define NORMAL\nuniform float opacity;\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )\n\tvarying vec3 vViewPosition;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\tgl_FragColor = vec4( packNormalToRGB( normal ), opacity );\n\t#ifdef OPAQUE\n\t\tgl_FragColor.a = 1.0;\n\t#endif\n}",meshphong_vert:"#define PHONG\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n\t#include \n}",meshphong_frag:"#define PHONG\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform vec3 specular;\nuniform float shininess;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshphysical_vert:"#define STANDARD\nvarying vec3 vViewPosition;\n#ifdef USE_TRANSMISSION\n\tvarying vec3 vWorldPosition;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n#ifdef USE_TRANSMISSION\n\tvWorldPosition = worldPosition.xyz;\n#endif\n}",meshphysical_frag:"#define STANDARD\n#ifdef PHYSICAL\n\t#define IOR\n\t#define SPECULAR\n#endif\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float roughness;\nuniform float metalness;\nuniform float opacity;\n#ifdef IOR\n\tuniform float ior;\n#endif\n#ifdef SPECULAR\n\tuniform float specularIntensity;\n\tuniform vec3 specularColor;\n\t#ifdef USE_SPECULARINTENSITYMAP\n\t\tuniform sampler2D specularIntensityMap;\n\t#endif\n\t#ifdef USE_SPECULARCOLORMAP\n\t\tuniform sampler2D specularColorMap;\n\t#endif\n#endif\n#ifdef USE_CLEARCOAT\n\tuniform float clearcoat;\n\tuniform float clearcoatRoughness;\n#endif\n#ifdef USE_SHEEN\n\tuniform vec3 sheenColor;\n\tuniform float sheenRoughness;\n\t#ifdef USE_SHEENCOLORMAP\n\t\tuniform sampler2D sheenColorMap;\n\t#endif\n\t#ifdef USE_SHEENROUGHNESSMAP\n\t\tuniform sampler2D sheenRoughnessMap;\n\t#endif\n#endif\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse;\n\tvec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular;\n\t#include \n\tvec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance;\n\t#ifdef USE_SHEEN\n\t\tfloat sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor );\n\t\toutgoingLight = outgoingLight * sheenEnergyComp + sheenSpecular;\n\t#endif\n\t#ifdef USE_CLEARCOAT\n\t\tfloat dotNVcc = saturate( dot( geometry.clearcoatNormal, geometry.viewDir ) );\n\t\tvec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc );\n\t\toutgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + clearcoatSpecular * material.clearcoat;\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshtoon_vert:"#define TOON\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n}",meshtoon_frag:"#define TOON\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",points_vert:"uniform float size;\nuniform float scale;\n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tgl_PointSize = size;\n\t#ifdef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z );\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n}",points_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\toutgoingLight = diffuseColor.rgb;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",shadow_vert:"#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",shadow_frag:"uniform vec3 color;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tgl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) );\n\t#include \n\t#include \n\t#include \n}",sprite_vert:"uniform float rotation;\nuniform vec2 center;\n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );\n\tvec2 scale;\n\tscale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) );\n\tscale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) );\n\t#ifndef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) scale *= - mvPosition.z;\n\t#endif\n\tvec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale;\n\tvec2 rotatedPosition;\n\trotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;\n\trotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;\n\tmvPosition.xy += rotatedPosition;\n\tgl_Position = projectionMatrix * mvPosition;\n\t#include \n\t#include \n\t#include \n}",sprite_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\toutgoingLight = diffuseColor.rgb;\n\t#include \n\t#include \n\t#include \n\t#include \n}"},Es={common:{diffuse:{value:new Bn(16777215)},opacity:{value:1},map:{value:null},uvTransform:{value:new Rn},uv2Transform:{value:new Rn},alphaMap:{value:null},alphaTest:{value:0}},specularmap:{specularMap:{value:null}},envmap:{envMap:{value:null},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1}},emissivemap:{emissiveMap:{value:null}},bumpmap:{bumpMap:{value:null},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalScale:{value:new An(1,1)}},displacementmap:{displacementMap:{value:null},displacementScale:{value:1},displacementBias:{value:0}},roughnessmap:{roughnessMap:{value:null}},metalnessmap:{metalnessMap:{value:null}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new Bn(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotShadowMap:{value:[]},spotShadowMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new Bn(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaTest:{value:0},uvTransform:{value:new Rn}},sprite:{diffuse:{value:new Bn(16777215)},opacity:{value:1},center:{value:new An(.5,.5)},rotation:{value:0},map:{value:null},alphaMap:{value:null},alphaTest:{value:0},uvTransform:{value:new Rn}}},Ts={basic:{uniforms:ss([Es.common,Es.specularmap,Es.envmap,Es.aomap,Es.lightmap,Es.fog]),vertexShader:Ss.meshbasic_vert,fragmentShader:Ss.meshbasic_frag},lambert:{uniforms:ss([Es.common,Es.specularmap,Es.envmap,Es.aomap,Es.lightmap,Es.emissivemap,Es.fog,Es.lights,{emissive:{value:new Bn(0)}}]),vertexShader:Ss.meshlambert_vert,fragmentShader:Ss.meshlambert_frag},phong:{uniforms:ss([Es.common,Es.specularmap,Es.envmap,Es.aomap,Es.lightmap,Es.emissivemap,Es.bumpmap,Es.normalmap,Es.displacementmap,Es.fog,Es.lights,{emissive:{value:new Bn(0)},specular:{value:new Bn(1118481)},shininess:{value:30}}]),vertexShader:Ss.meshphong_vert,fragmentShader:Ss.meshphong_frag},standard:{uniforms:ss([Es.common,Es.envmap,Es.aomap,Es.lightmap,Es.emissivemap,Es.bumpmap,Es.normalmap,Es.displacementmap,Es.roughnessmap,Es.metalnessmap,Es.fog,Es.lights,{emissive:{value:new Bn(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:Ss.meshphysical_vert,fragmentShader:Ss.meshphysical_frag},toon:{uniforms:ss([Es.common,Es.aomap,Es.lightmap,Es.emissivemap,Es.bumpmap,Es.normalmap,Es.displacementmap,Es.gradientmap,Es.fog,Es.lights,{emissive:{value:new Bn(0)}}]),vertexShader:Ss.meshtoon_vert,fragmentShader:Ss.meshtoon_frag},matcap:{uniforms:ss([Es.common,Es.bumpmap,Es.normalmap,Es.displacementmap,Es.fog,{matcap:{value:null}}]),vertexShader:Ss.meshmatcap_vert,fragmentShader:Ss.meshmatcap_frag},points:{uniforms:ss([Es.points,Es.fog]),vertexShader:Ss.points_vert,fragmentShader:Ss.points_frag},dashed:{uniforms:ss([Es.common,Es.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:Ss.linedashed_vert,fragmentShader:Ss.linedashed_frag},depth:{uniforms:ss([Es.common,Es.displacementmap]),vertexShader:Ss.depth_vert,fragmentShader:Ss.depth_frag},normal:{uniforms:ss([Es.common,Es.bumpmap,Es.normalmap,Es.displacementmap,{opacity:{value:1}}]),vertexShader:Ss.meshnormal_vert,fragmentShader:Ss.meshnormal_frag},sprite:{uniforms:ss([Es.sprite,Es.fog]),vertexShader:Ss.sprite_vert,fragmentShader:Ss.sprite_frag},background:{uniforms:{uvTransform:{value:new Rn},t2D:{value:null}},vertexShader:Ss.background_vert,fragmentShader:Ss.background_frag},cube:{uniforms:ss([Es.envmap,{opacity:{value:1}}]),vertexShader:Ss.cube_vert,fragmentShader:Ss.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:Ss.equirect_vert,fragmentShader:Ss.equirect_frag},distanceRGBA:{uniforms:ss([Es.common,Es.displacementmap,{referencePosition:{value:new er},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:Ss.distanceRGBA_vert,fragmentShader:Ss.distanceRGBA_frag},shadow:{uniforms:ss([Es.lights,Es.fog,{color:{value:new Bn(0)},opacity:{value:1}}]),vertexShader:Ss.shadow_vert,fragmentShader:Ss.shadow_frag}};function As(e,t,n,r,i,s){const a=new Bn(0);let o,l,c=!0===i?0:1,u=null,h=0,d=null;function p(e,t){n.buffers.color.setClear(e.r,e.g,e.b,t,s)}return{getClearColor:function(){return a},setClearColor:function(e,t=1){a.set(e),c=t,p(a,c)},getClearAlpha:function(){return c},setClearAlpha:function(e){c=e,p(a,c)},render:function(n,i){let s=!1,g=!0===i.isScene?i.background:null;g&&g.isTexture&&(g=t.get(g));const v=e.xr,y=v.getSession&&v.getSession();y&&"additive"===y.environmentBlendMode&&(g=null),null===g?p(a,c):g&&g.isColor&&(p(g,1),s=!0),(e.autoClear||s)&&e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil),g&&(g.isCubeTexture||g.mapping===ce)?(void 0===l&&(l=new ts(new rs(1,1,1),new os({name:"BackgroundCubeMaterial",uniforms:is(Ts.cube.uniforms),vertexShader:Ts.cube.vertexShader,fragmentShader:Ts.cube.fragmentShader,side:m,depthTest:!1,depthWrite:!1,fog:!1})),l.geometry.deleteAttribute("normal"),l.geometry.deleteAttribute("uv"),l.onBeforeRender=function(e,t,n){this.matrixWorld.copyPosition(n.matrixWorld)},Object.defineProperty(l.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),r.update(l)),l.material.uniforms.envMap.value=g,l.material.uniforms.flipEnvMap.value=g.isCubeTexture&&!1===g.isRenderTargetTexture?-1:1,u===g&&h===g.version&&d===e.toneMapping||(l.material.needsUpdate=!0,u=g,h=g.version,d=e.toneMapping),n.unshift(l,l.geometry,l.material,0,0,null)):g&&g.isTexture&&(void 0===o&&(o=new ts(new Ms(2,2),new os({name:"BackgroundMaterial",uniforms:is(Ts.background.uniforms),vertexShader:Ts.background.vertexShader,fragmentShader:Ts.background.fragmentShader,side:f,depthTest:!1,depthWrite:!1,fog:!1})),o.geometry.deleteAttribute("normal"),Object.defineProperty(o.material,"map",{get:function(){return this.uniforms.t2D.value}}),r.update(o)),o.material.uniforms.t2D.value=g,!0===g.matrixAutoUpdate&&g.updateMatrix(),o.material.uniforms.uvTransform.value.copy(g.matrix),u===g&&h===g.version&&d===e.toneMapping||(o.material.needsUpdate=!0,u=g,h=g.version,d=e.toneMapping),n.unshift(o,o.geometry,o.material,0,0,null))}}}function Rs(e,t,n,r){const i=e.getParameter(34921),s=r.isWebGL2?null:t.get("OES_vertex_array_object"),a=r.isWebGL2||null!==s,o={},l=d(null);let c=l;function u(t){return r.isWebGL2?e.bindVertexArray(t):s.bindVertexArrayOES(t)}function h(t){return r.isWebGL2?e.deleteVertexArray(t):s.deleteVertexArrayOES(t)}function d(e){const t=[],n=[],r=[];for(let e=0;e=0){let s=l[t];if(void 0===s&&("instanceMatrix"===t&&i.instanceMatrix&&(s=i.instanceMatrix),"instanceColor"===t&&i.instanceColor&&(s=i.instanceColor)),void 0!==s){const t=s.normalized,a=s.itemSize,l=n.get(s);if(void 0===l)continue;const c=l.buffer,u=l.type,h=l.bytesPerElement;if(s.isInterleavedBufferAttribute){const n=s.data,l=n.stride,d=s.offset;if(n.isInstancedInterleavedBuffer){for(let e=0;e0&&e.getShaderPrecisionFormat(35632,36338).precision>0)return"highp";t="mediump"}return"mediump"===t&&e.getShaderPrecisionFormat(35633,36337).precision>0&&e.getShaderPrecisionFormat(35632,36337).precision>0?"mediump":"lowp"}const s="undefined"!=typeof WebGL2RenderingContext&&e instanceof WebGL2RenderingContext||"undefined"!=typeof WebGL2ComputeRenderingContext&&e instanceof WebGL2ComputeRenderingContext;let a=void 0!==n.precision?n.precision:"highp";const o=i(a);o!==a&&(console.warn("THREE.WebGLRenderer:",a,"not supported, using",o,"instead."),a=o);const l=s||t.has("WEBGL_draw_buffers"),c=!0===n.logarithmicDepthBuffer,u=e.getParameter(34930),h=e.getParameter(35660),d=e.getParameter(3379),p=e.getParameter(34076),f=e.getParameter(34921),m=e.getParameter(36347),g=e.getParameter(36348),v=e.getParameter(36349),y=h>0,x=s||t.has("OES_texture_float");return{isWebGL2:s,drawBuffers:l,getMaxAnisotropy:function(){if(void 0!==r)return r;if(!0===t.has("EXT_texture_filter_anisotropic")){const n=t.get("EXT_texture_filter_anisotropic");r=e.getParameter(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT)}else r=0;return r},getMaxPrecision:i,precision:a,logarithmicDepthBuffer:c,maxTextures:u,maxVertexTextures:h,maxTextureSize:d,maxCubemapSize:p,maxAttributes:f,maxVertexUniforms:m,maxVaryings:g,maxFragmentUniforms:v,vertexTextures:y,floatFragmentTextures:x,floatVertexTextures:y&&x,maxSamples:s?e.getParameter(36183):0}}function Ps(e){const t=this;let n=null,r=0,i=!1,s=!1;const a=new vs,o=new Rn,l={value:null,needsUpdate:!1};function c(){l.value!==n&&(l.value=n,l.needsUpdate=r>0),t.numPlanes=r,t.numIntersection=0}function u(e,n,r,i){const s=null!==e?e.length:0;let c=null;if(0!==s){if(c=l.value,!0!==i||null===c){const t=r+4*s,i=n.matrixWorldInverse;o.getNormalMatrix(i),(null===c||c.length0){const a=new ps(s.height/2);return a.fromEquirectangularTexture(e,i),t.set(i,a),i.addEventListener("dispose",r),n(a.texture,i.mapping)}return null}}}return i},dispose:function(){t=new WeakMap}}}Ts.physical={uniforms:ss([Ts.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatNormalScale:{value:new An(1,1)},clearcoatNormalMap:{value:null},sheen:{value:0},sheenColor:{value:new Bn(0)},sheenColorMap:{value:null},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},transmission:{value:0},transmissionMap:{value:null},transmissionSamplerSize:{value:new An},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},attenuationDistance:{value:0},attenuationColor:{value:new Bn(0)},specularIntensity:{value:1},specularIntensityMap:{value:null},specularColor:{value:new Bn(1,1,1)},specularColorMap:{value:null}}]),vertexShader:Ss.meshphysical_vert,fragmentShader:Ss.meshphysical_frag};class Ds extends ls{constructor(e=-1,t=1,n=1,r=-1,i=.1,s=2e3){super(),this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=t,this.top=n,this.bottom=r,this.near=i,this.far=s,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=null===e.view?null:Object.assign({},e.view),this}setViewOffset(e,t,n,r,i,s){null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=r,this.view.width=i,this.view.height=s,this.updateProjectionMatrix()}clearViewOffset(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=(this.right-this.left)/(2*this.zoom),t=(this.top-this.bottom)/(2*this.zoom),n=(this.right+this.left)/2,r=(this.top+this.bottom)/2;let i=n-e,s=n+e,a=r+t,o=r-t;if(null!==this.view&&this.view.enabled){const e=(this.right-this.left)/this.view.fullWidth/this.zoom,t=(this.top-this.bottom)/this.view.fullHeight/this.zoom;i+=e*this.view.offsetX,s=i+e*this.view.width,a-=t*this.view.offsetY,o=a-t*this.view.height}this.projectionMatrix.makeOrthographic(i,s,a,o,this.near,this.far),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.zoom=this.zoom,t.object.left=this.left,t.object.right=this.right,t.object.top=this.top,t.object.bottom=this.bottom,t.object.near=this.near,t.object.far=this.far,null!==this.view&&(t.object.view=Object.assign({},this.view)),t}}Ds.prototype.isOrthographicCamera=!0;const Ns=[.125,.215,.35,.446,.526,.582],Os=new Ds,zs=new Bn;let Fs=null;const Us=(1+Math.sqrt(5))/2,Bs=1/Us,Hs=[new er(1,1,1),new er(-1,1,1),new er(1,1,-1),new er(-1,1,-1),new er(0,Us,Bs),new er(0,Us,-Bs),new er(Bs,0,Us),new er(-Bs,0,Us),new er(Us,Bs,0),new er(-Us,Bs,0)];class ks{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(e,t=0,n=.1,r=100){Fs=this._renderer.getRenderTarget(),this._setSize(256);const i=this._allocateTargets();return i.depthBuffer=!0,this._sceneToCubeUV(e,n,r,i),t>0&&this._blur(i,0,0,t),this._applyPMREM(i),this._cleanup(i),i}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){null===this._cubemapMaterial&&(this._cubemapMaterial=js(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){null===this._equirectMaterial&&(this._equirectMaterial=Ws(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),null!==this._cubemapMaterial&&this._cubemapMaterial.dispose(),null!==this._equirectMaterial&&this._equirectMaterial.dispose()}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){this._blurMaterial.dispose(),null!==this._pingPongRenderTarget&&this._pingPongRenderTarget.dispose();for(let e=0;ee-4?o=Ns[a-e+4-1]:0===a&&(o=0),r.push(o);const l=1/(s-1),c=-l/2,u=1+l/2,h=[c,c,u,c,u,u,c,c,u,u,c,u],d=6,p=6,f=3,m=2,g=1,v=new Float32Array(f*p*d),y=new Float32Array(m*p*d),x=new Float32Array(g*p*d);for(let e=0;e2?0:-1,r=[t,n,0,t+2/3,n,0,t+2/3,n+1,0,t,n,0,t+2/3,n+1,0,t,n+1,0];v.set(r,f*p*e),y.set(h,m*p*e);const i=[e,e,e,e,e,e];x.set(i,g*p*e)}const _=new Fi;_.setAttribute("position",new xi(v,f)),_.setAttribute("uv",new xi(y,m)),_.setAttribute("faceIndex",new xi(x,g)),t.push(_),i>4&&i--}return{lodPlanes:t,sizeLods:n,sigmas:r}}(r)),this._blurMaterial=function(e,t,n){const r=new Float32Array(20),i=new er(0,1,0);return new os({name:"SphericalGaussianBlur",defines:{n:20,CUBEUV_TEXEL_WIDTH:1/t,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${e}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:r},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:i}},vertexShader:"\n\n\t\tprecision mediump float;\n\t\tprecision mediump int;\n\n\t\tattribute float faceIndex;\n\n\t\tvarying vec3 vOutputDirection;\n\n\t\t// RH coordinate system; PMREM face-indexing convention\n\t\tvec3 getDirection( vec2 uv, float face ) {\n\n\t\t\tuv = 2.0 * uv - 1.0;\n\n\t\t\tvec3 direction = vec3( uv, 1.0 );\n\n\t\t\tif ( face == 0.0 ) {\n\n\t\t\t\tdirection = direction.zyx; // ( 1, v, u ) pos x\n\n\t\t\t} else if ( face == 1.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xz *= -1.0; // ( -u, 1, -v ) pos y\n\n\t\t\t} else if ( face == 2.0 ) {\n\n\t\t\t\tdirection.x *= -1.0; // ( -u, v, 1 ) pos z\n\n\t\t\t} else if ( face == 3.0 ) {\n\n\t\t\t\tdirection = direction.zyx;\n\t\t\t\tdirection.xz *= -1.0; // ( -1, v, -u ) neg x\n\n\t\t\t} else if ( face == 4.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xy *= -1.0; // ( -u, -1, v ) neg y\n\n\t\t\t} else if ( face == 5.0 ) {\n\n\t\t\t\tdirection.z *= -1.0; // ( u, v, -1 ) neg z\n\n\t\t\t}\n\n\t\t\treturn direction;\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tvOutputDirection = getDirection( uv, faceIndex );\n\t\t\tgl_Position = vec4( position, 1.0 );\n\n\t\t}\n\t",fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\t\t\tuniform int samples;\n\t\t\tuniform float weights[ n ];\n\t\t\tuniform bool latitudinal;\n\t\t\tuniform float dTheta;\n\t\t\tuniform float mipInt;\n\t\t\tuniform vec3 poleAxis;\n\n\t\t\t#define ENVMAP_TYPE_CUBE_UV\n\t\t\t#include \n\n\t\t\tvec3 getSample( float theta, vec3 axis ) {\n\n\t\t\t\tfloat cosTheta = cos( theta );\n\t\t\t\t// Rodrigues' axis-angle rotation\n\t\t\t\tvec3 sampleDirection = vOutputDirection * cosTheta\n\t\t\t\t\t+ cross( axis, vOutputDirection ) * sin( theta )\n\t\t\t\t\t+ axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta );\n\n\t\t\t\treturn bilinearCubeUV( envMap, sampleDirection, mipInt );\n\n\t\t\t}\n\n\t\t\tvoid main() {\n\n\t\t\t\tvec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection );\n\n\t\t\t\tif ( all( equal( axis, vec3( 0.0 ) ) ) ) {\n\n\t\t\t\t\taxis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x );\n\n\t\t\t\t}\n\n\t\t\t\taxis = normalize( axis );\n\n\t\t\t\tgl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t\t\t\tgl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis );\n\n\t\t\t\tfor ( int i = 1; i < n; i++ ) {\n\n\t\t\t\t\tif ( i >= samples ) {\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tfloat theta = dTheta * float( i );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( theta, axis );\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t",blending:x,depthTest:!1,depthWrite:!1})}(r,e,t)}return r}_compileMaterial(e){const t=new ts(this._lodPlanes[0],e);this._renderer.compile(t,Os)}_sceneToCubeUV(e,t,n,r){const i=new cs(90,1,t,n),s=[1,-1,1,1,1,1],a=[1,1,1,-1,-1,-1],o=this._renderer,l=o.autoClear,c=o.toneMapping;o.getClearColor(zs),o.toneMapping=Q,o.autoClear=!1;const u=new gi({name:"PMREM.Background",side:m,depthWrite:!1,depthTest:!1}),h=new ts(new rs,u);let d=!1;const p=e.background;p?p.isColor&&(u.color.copy(p),e.background=null,d=!0):(u.color.copy(zs),d=!0);for(let t=0;t<6;t++){const n=t%3;0===n?(i.up.set(0,s[t],0),i.lookAt(a[t],0,0)):1===n?(i.up.set(0,0,s[t]),i.lookAt(0,a[t],0)):(i.up.set(0,s[t],0),i.lookAt(0,0,a[t]));const l=this._cubeSize;Vs(r,n*l,t>2?l:0,l,l),o.setRenderTarget(r),d&&o.render(h,i),o.render(e,i)}h.geometry.dispose(),h.material.dispose(),o.toneMapping=c,o.autoClear=l,e.background=p}_textureToCubeUV(e,t){const n=this._renderer,r=e.mapping===se||e.mapping===ae;r?(null===this._cubemapMaterial&&(this._cubemapMaterial=js()),this._cubemapMaterial.uniforms.flipEnvMap.value=!1===e.isRenderTargetTexture?-1:1):null===this._equirectMaterial&&(this._equirectMaterial=Ws());const i=r?this._cubemapMaterial:this._equirectMaterial,s=new ts(this._lodPlanes[0],i);i.uniforms.envMap.value=e;const a=this._cubeSize;Vs(t,0,0,3*a,2*a),n.setRenderTarget(t),n.render(s,Os)}_applyPMREM(e){const t=this._renderer,n=t.autoClear;t.autoClear=!1;for(let t=1;t20&&console.warn(`sigmaRadians, ${i}, is too large and will clip, as it requested ${f} samples when the maximum is set to 20`);const m=[];let g=0;for(let e=0;e<20;++e){const t=e/p,n=Math.exp(-t*t/2);m.push(n),0===e?g+=n:ev-4?r-v+4:0),4*(this._cubeSize-y),3*y,2*y),o.setRenderTarget(t),o.render(c,Os)}}function Gs(e,t,n){const r=new Xn(e,t,n);return r.texture.mapping=ce,r.texture.name="PMREM.cubeUv",r.scissorTest=!0,r}function Vs(e,t,n,r,i){e.viewport.set(t,n,r,i),e.scissor.set(t,n,r,i)}function Ws(){return new os({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null}},vertexShader:"\n\n\t\tprecision mediump float;\n\t\tprecision mediump int;\n\n\t\tattribute float faceIndex;\n\n\t\tvarying vec3 vOutputDirection;\n\n\t\t// RH coordinate system; PMREM face-indexing convention\n\t\tvec3 getDirection( vec2 uv, float face ) {\n\n\t\t\tuv = 2.0 * uv - 1.0;\n\n\t\t\tvec3 direction = vec3( uv, 1.0 );\n\n\t\t\tif ( face == 0.0 ) {\n\n\t\t\t\tdirection = direction.zyx; // ( 1, v, u ) pos x\n\n\t\t\t} else if ( face == 1.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xz *= -1.0; // ( -u, 1, -v ) pos y\n\n\t\t\t} else if ( face == 2.0 ) {\n\n\t\t\t\tdirection.x *= -1.0; // ( -u, v, 1 ) pos z\n\n\t\t\t} else if ( face == 3.0 ) {\n\n\t\t\t\tdirection = direction.zyx;\n\t\t\t\tdirection.xz *= -1.0; // ( -1, v, -u ) neg x\n\n\t\t\t} else if ( face == 4.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xy *= -1.0; // ( -u, -1, v ) neg y\n\n\t\t\t} else if ( face == 5.0 ) {\n\n\t\t\t\tdirection.z *= -1.0; // ( u, v, -1 ) neg z\n\n\t\t\t}\n\n\t\t\treturn direction;\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tvOutputDirection = getDirection( uv, faceIndex );\n\t\t\tgl_Position = vec4( position, 1.0 );\n\n\t\t}\n\t",fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\n\t\t\t#include \n\n\t\t\tvoid main() {\n\n\t\t\t\tvec3 outputDirection = normalize( vOutputDirection );\n\t\t\t\tvec2 uv = equirectUv( outputDirection );\n\n\t\t\t\tgl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 );\n\n\t\t\t}\n\t\t",blending:x,depthTest:!1,depthWrite:!1})}function js(){return new os({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:"\n\n\t\tprecision mediump float;\n\t\tprecision mediump int;\n\n\t\tattribute float faceIndex;\n\n\t\tvarying vec3 vOutputDirection;\n\n\t\t// RH coordinate system; PMREM face-indexing convention\n\t\tvec3 getDirection( vec2 uv, float face ) {\n\n\t\t\tuv = 2.0 * uv - 1.0;\n\n\t\t\tvec3 direction = vec3( uv, 1.0 );\n\n\t\t\tif ( face == 0.0 ) {\n\n\t\t\t\tdirection = direction.zyx; // ( 1, v, u ) pos x\n\n\t\t\t} else if ( face == 1.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xz *= -1.0; // ( -u, 1, -v ) pos y\n\n\t\t\t} else if ( face == 2.0 ) {\n\n\t\t\t\tdirection.x *= -1.0; // ( -u, v, 1 ) pos z\n\n\t\t\t} else if ( face == 3.0 ) {\n\n\t\t\t\tdirection = direction.zyx;\n\t\t\t\tdirection.xz *= -1.0; // ( -1, v, -u ) neg x\n\n\t\t\t} else if ( face == 4.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xy *= -1.0; // ( -u, -1, v ) neg y\n\n\t\t\t} else if ( face == 5.0 ) {\n\n\t\t\t\tdirection.z *= -1.0; // ( u, v, -1 ) neg z\n\n\t\t\t}\n\n\t\t\treturn direction;\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tvOutputDirection = getDirection( uv, faceIndex );\n\t\t\tgl_Position = vec4( position, 1.0 );\n\n\t\t}\n\t",fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tuniform float flipEnvMap;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform samplerCube envMap;\n\n\t\t\tvoid main() {\n\n\t\t\t\tgl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) );\n\n\t\t\t}\n\t\t",blending:x,depthTest:!1,depthWrite:!1})}function qs(e){let t=new WeakMap,n=null;function r(e){const n=e.target;n.removeEventListener("dispose",r);const i=t.get(n);void 0!==i&&(t.delete(n),i.dispose())}return{get:function(i){if(i&&i.isTexture){const s=i.mapping,a=s===oe||s===le,o=s===se||s===ae;if(a||o){if(i.isRenderTargetTexture&&!0===i.needsPMREMUpdate){i.needsPMREMUpdate=!1;let r=t.get(i);return null===n&&(n=new ks(e)),r=a?n.fromEquirectangular(i,r):n.fromCubemap(i,r),t.set(i,r),r.texture}if(t.has(i))return t.get(i).texture;{const s=i.image;if(a&&s&&s.height>0||o&&s&&function(e){let t=0;for(let n=0;n<6;n++)void 0!==e[n]&&t++;return 6===t}(s)){null===n&&(n=new ks(e));const s=a?n.fromEquirectangular(i):n.fromCubemap(i);return t.set(i,s),i.addEventListener("dispose",r),s.texture}return null}}}return i},dispose:function(){t=new WeakMap,null!==n&&(n.dispose(),n=null)}}}function Xs(e){const t={};function n(n){if(void 0!==t[n])return t[n];let r;switch(n){case"WEBGL_depth_texture":r=e.getExtension("WEBGL_depth_texture")||e.getExtension("MOZ_WEBGL_depth_texture")||e.getExtension("WEBKIT_WEBGL_depth_texture");break;case"EXT_texture_filter_anisotropic":r=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic");break;case"WEBGL_compressed_texture_s3tc":r=e.getExtension("WEBGL_compressed_texture_s3tc")||e.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");break;case"WEBGL_compressed_texture_pvrtc":r=e.getExtension("WEBGL_compressed_texture_pvrtc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;default:r=e.getExtension(n)}return t[n]=r,r}return{has:function(e){return null!==n(e)},init:function(e){e.isWebGL2?n("EXT_color_buffer_float"):(n("WEBGL_depth_texture"),n("OES_texture_float"),n("OES_texture_half_float"),n("OES_texture_half_float_linear"),n("OES_standard_derivatives"),n("OES_element_index_uint"),n("OES_vertex_array_object"),n("ANGLE_instanced_arrays")),n("OES_texture_float_linear"),n("EXT_color_buffer_half_float"),n("WEBGL_multisampled_render_to_texture")},get:function(e){const t=n(e);return null===t&&console.warn("THREE.WebGLRenderer: "+e+" extension not supported."),t}}}function Ys(e,t,n,r){const i={},s=new WeakMap;function a(e){const o=e.target;null!==o.index&&t.remove(o.index);for(const e in o.attributes)t.remove(o.attributes[e]);o.removeEventListener("dispose",a),delete i[o.id];const l=s.get(o);l&&(t.remove(l),s.delete(o)),r.releaseStatesOfGeometry(o),!0===o.isInstancedBufferGeometry&&delete o._maxInstanceCount,n.memory.geometries--}function o(e){const n=[],r=e.index,i=e.attributes.position;let a=0;if(null!==r){const e=r.array;a=r.version;for(let t=0,r=e.length;tt.maxTextureSize&&(T=Math.ceil(E/t.maxTextureSize),E=t.maxTextureSize);const A=new Float32Array(E*T*4*f),R=new Yn(A,E,T,f);R.format=Fe,R.type=Ce,R.needsUpdate=!0;const L=4*S;for(let P=0;P0)return e;const i=t*n;let s=aa[i];if(void 0===s&&(s=new Float32Array(i),aa[i]=s),0!==t){r.toArray(s,0);for(let r=1,i=0;r!==t;++r)i+=n,e[r].toArray(s,i)}return s}function da(e,t){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n/gm;function go(e){return e.replace(mo,vo)}function vo(e,t){const n=Ss[t];if(void 0===n)throw new Error("Can not resolve #include <"+t+">");return go(n)}const yo=/#pragma unroll_loop[\s]+?for \( int i \= (\d+)\; i < (\d+)\; i \+\+ \) \{([\s\S]+?)(?=\})\}/g,xo=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function _o(e){return e.replace(xo,wo).replace(yo,bo)}function bo(e,t,n,r){return console.warn("WebGLProgram: #pragma unroll_loop shader syntax is deprecated. Please use #pragma unroll_loop_start syntax instead."),wo(0,t,n,r)}function wo(e,t,n,r){let i="";for(let e=parseInt(t);e0&&(x+="\n"),_=[g,v].filter(ho).join("\n"),_.length>0&&(_+="\n")):(x=[Mo(n),"#define SHADER_NAME "+n.shaderName,v,n.instancing?"#define USE_INSTANCING":"",n.instancingColor?"#define USE_INSTANCING_COLOR":"",n.supportsVertexTextures?"#define VERTEX_TEXTURES":"","#define MAX_BONES "+n.maxBones,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+u:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMap&&n.objectSpaceNormalMap?"#define OBJECTSPACE_NORMALMAP":"",n.normalMap&&n.tangentSpaceNormalMap?"#define TANGENTSPACE_NORMALMAP":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.displacementMap&&n.supportsVertexTextures?"#define USE_DISPLACEMENTMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularIntensityMap?"#define USE_SPECULARINTENSITYMAP":"",n.specularColorMap?"#define USE_SPECULARCOLORMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.sheenColorMap?"#define USE_SHEENCOLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEENROUGHNESSMAP":"",n.vertexTangents?"#define USE_TANGENT":"",n.vertexColors?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUvs?"#define USE_UV":"",n.uvsVertexOnly?"#define UVS_VERTEX_ONLY":"",n.flatShading?"#define FLAT_SHADED":"",n.skinning?"#define USE_SKINNING":"",n.useVertexTexture?"#define BONE_TEXTURE":"",n.morphTargets?"#define USE_MORPHTARGETS":"",n.morphNormals&&!1===n.flatShading?"#define USE_MORPHNORMALS":"",n.morphColors&&n.isWebGL2?"#define USE_MORPHCOLORS":"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_TEXTURE":"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_TEXTURE_STRIDE "+n.morphTextureStride:"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_COUNT "+n.morphTargetsCount:"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+l:"",n.sizeAttenuation?"#define USE_SIZEATTENUATION":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING","\tattribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR","\tattribute vec3 instanceColor;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_TANGENT","\tattribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )","\tattribute vec4 color;","#elif defined( USE_COLOR )","\tattribute vec3 color;","#endif","#if ( defined( USE_MORPHTARGETS ) && ! defined( MORPHTARGETS_TEXTURE ) )","\tattribute vec3 morphTarget0;","\tattribute vec3 morphTarget1;","\tattribute vec3 morphTarget2;","\tattribute vec3 morphTarget3;","\t#ifdef USE_MORPHNORMALS","\t\tattribute vec3 morphNormal0;","\t\tattribute vec3 morphNormal1;","\t\tattribute vec3 morphNormal2;","\t\tattribute vec3 morphNormal3;","\t#else","\t\tattribute vec3 morphTarget4;","\t\tattribute vec3 morphTarget5;","\t\tattribute vec3 morphTarget6;","\t\tattribute vec3 morphTarget7;","\t#endif","#endif","#ifdef USE_SKINNING","\tattribute vec4 skinIndex;","\tattribute vec4 skinWeight;","#endif","\n"].filter(ho).join("\n"),_=[g,Mo(n),"#define SHADER_NAME "+n.shaderName,v,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.matcap?"#define USE_MATCAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+c:"",n.envMap?"#define "+u:"",n.envMap?"#define "+f:"",m?"#define CUBEUV_TEXEL_WIDTH "+m.texelWidth:"",m?"#define CUBEUV_TEXEL_HEIGHT "+m.texelHeight:"",m?"#define CUBEUV_MAX_MIP "+m.maxMip+".0":"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMap&&n.objectSpaceNormalMap?"#define OBJECTSPACE_NORMALMAP":"",n.normalMap&&n.tangentSpaceNormalMap?"#define TANGENTSPACE_NORMALMAP":"",n.clearcoat?"#define USE_CLEARCOAT":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularIntensityMap?"#define USE_SPECULARINTENSITYMAP":"",n.specularColorMap?"#define USE_SPECULARCOLORMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaTest?"#define USE_ALPHATEST":"",n.sheen?"#define USE_SHEEN":"",n.sheenColorMap?"#define USE_SHEENCOLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEENROUGHNESSMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",n.vertexTangents?"#define USE_TANGENT":"",n.vertexColors||n.instancingColor?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUvs?"#define USE_UV":"",n.uvsVertexOnly?"#define UVS_VERTEX_ONLY":"",n.gradientMap?"#define USE_GRADIENTMAP":"",n.flatShading?"#define FLAT_SHADED":"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+l:"",n.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",n.physicallyCorrectLights?"#define PHYSICALLY_CORRECT_LIGHTS":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",n.toneMapping!==Q?"#define TONE_MAPPING":"",n.toneMapping!==Q?Ss.tonemapping_pars_fragment:"",n.toneMapping!==Q?uo("toneMapping",n.toneMapping):"",n.dithering?"#define DITHERING":"",n.opaque?"#define OPAQUE":"",Ss.encodings_pars_fragment,co("linearToOutputTexel",n.outputEncoding),n.depthPacking?"#define DEPTH_PACKING "+n.depthPacking:"","\n"].filter(ho).join("\n")),a=go(a),a=po(a,n),a=fo(a,n),o=go(o),o=po(o,n),o=fo(o,n),a=_o(a),o=_o(o),n.isWebGL2&&!0!==n.isRawShaderMaterial&&(b="#version 300 es\n",x=["precision mediump sampler2DArray;","#define attribute in","#define varying out","#define texture2D texture"].join("\n")+"\n"+x,_=["#define varying in",n.glslVersion===dn?"":"layout(location = 0) out highp vec4 pc_fragColor;",n.glslVersion===dn?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join("\n")+"\n"+_);const w=b+_+o,M=ao(i,35633,b+x+a),S=ao(i,35632,w);if(i.attachShader(y,M),i.attachShader(y,S),void 0!==n.index0AttributeName?i.bindAttribLocation(y,0,n.index0AttributeName):!0===n.morphTargets&&i.bindAttribLocation(y,0,"position"),i.linkProgram(y),e.debug.checkShaderErrors){const e=i.getProgramInfoLog(y).trim(),t=i.getShaderInfoLog(M).trim(),n=i.getShaderInfoLog(S).trim();let r=!0,s=!0;if(!1===i.getProgramParameter(y,35714)){r=!1;const t=lo(i,M,"vertex"),n=lo(i,S,"fragment");console.error("THREE.WebGLProgram: Shader Error "+i.getError()+" - VALIDATE_STATUS "+i.getProgramParameter(y,35715)+"\n\nProgram Info Log: "+e+"\n"+t+"\n"+n)}else""!==e?console.warn("THREE.WebGLProgram: Program Info Log:",e):""!==t&&""!==n||(s=!1);s&&(this.diagnostics={runnable:r,programLog:e,vertexShader:{log:t,prefix:x},fragmentShader:{log:n,prefix:_}})}let E,T;return i.deleteShader(M),i.deleteShader(S),this.getUniforms=function(){return void 0===E&&(E=new so(i,y)),E},this.getAttributes=function(){return void 0===T&&(T=function(e,t){const n={},r=e.getProgramParameter(t,35721);for(let i=0;i0,U=s.clearcoat>0;return{isWebGL2:u,shaderID:A,shaderName:s.type,vertexShader:P,fragmentShader:I,defines:s.defines,customVertexShaderID:D,customFragmentShaderID:N,isRawShaderMaterial:!0===s.isRawShaderMaterial,glslVersion:s.glslVersion,precision:v,instancing:!0===b.isInstancedMesh,instancingColor:!0===b.isInstancedMesh&&null!==b.instanceColor,supportsVertexTextures:f,outputEncoding:null===z?e.outputEncoding:!0===z.isXRRenderTarget?z.texture.encoding:Dt,map:!!s.map,matcap:!!s.matcap,envMap:!!E,envMapMode:E&&E.mapping,envMapCubeUVHeight:T,lightMap:!!s.lightMap,aoMap:!!s.aoMap,emissiveMap:!!s.emissiveMap,bumpMap:!!s.bumpMap,normalMap:!!s.normalMap,objectSpaceNormalMap:s.normalMapType===Ut,tangentSpaceNormalMap:s.normalMapType===Ft,decodeVideoTexture:!!s.map&&!0===s.map.isVideoTexture&&s.map.encoding===Nt,clearcoat:U,clearcoatMap:U&&!!s.clearcoatMap,clearcoatRoughnessMap:U&&!!s.clearcoatRoughnessMap,clearcoatNormalMap:U&&!!s.clearcoatNormalMap,displacementMap:!!s.displacementMap,roughnessMap:!!s.roughnessMap,metalnessMap:!!s.metalnessMap,specularMap:!!s.specularMap,specularIntensityMap:!!s.specularIntensityMap,specularColorMap:!!s.specularColorMap,opaque:!1===s.transparent&&s.blending===_,alphaMap:!!s.alphaMap,alphaTest:F,gradientMap:!!s.gradientMap,sheen:s.sheen>0,sheenColorMap:!!s.sheenColorMap,sheenRoughnessMap:!!s.sheenRoughnessMap,transmission:s.transmission>0,transmissionMap:!!s.transmissionMap,thicknessMap:!!s.thicknessMap,combine:s.combine,vertexTangents:!!s.normalMap&&!!M.attributes.tangent,vertexColors:s.vertexColors,vertexAlphas:!0===s.vertexColors&&!!M.attributes.color&&4===M.attributes.color.itemSize,vertexUvs:!!(s.map||s.bumpMap||s.normalMap||s.specularMap||s.alphaMap||s.emissiveMap||s.roughnessMap||s.metalnessMap||s.clearcoatMap||s.clearcoatRoughnessMap||s.clearcoatNormalMap||s.displacementMap||s.transmissionMap||s.thicknessMap||s.specularIntensityMap||s.specularColorMap||s.sheenColorMap||s.sheenRoughnessMap),uvsVertexOnly:!(s.map||s.bumpMap||s.normalMap||s.specularMap||s.alphaMap||s.emissiveMap||s.roughnessMap||s.metalnessMap||s.clearcoatNormalMap||s.transmission>0||s.transmissionMap||s.thicknessMap||s.specularIntensityMap||s.specularColorMap||s.sheen>0||s.sheenColorMap||s.sheenRoughnessMap||!s.displacementMap),fog:!!w,useFog:s.fog,fogExp2:w&&w.isFogExp2,flatShading:!!s.flatShading,sizeAttenuation:s.sizeAttenuation,logarithmicDepthBuffer:h,skinning:!0===b.isSkinnedMesh&&R>0,maxBones:R,useVertexTexture:d,morphTargets:void 0!==M.morphAttributes.position,morphNormals:void 0!==M.morphAttributes.normal,morphColors:void 0!==M.morphAttributes.color,morphTargetsCount:C,morphTextureStride:O,numDirLights:o.directional.length,numPointLights:o.point.length,numSpotLights:o.spot.length,numRectAreaLights:o.rectArea.length,numHemiLights:o.hemi.length,numDirLightShadows:o.directionalShadowMap.length,numPointLightShadows:o.pointShadowMap.length,numSpotLightShadows:o.spotShadowMap.length,numClippingPlanes:a.numPlanes,numClipIntersection:a.numIntersection,dithering:s.dithering,shadowMapEnabled:e.shadowMap.enabled&&c.length>0,shadowMapType:e.shadowMap.type,toneMapping:s.toneMapped?e.toneMapping:Q,physicallyCorrectLights:e.physicallyCorrectLights,premultipliedAlpha:s.premultipliedAlpha,doubleSided:s.side===g,flipSided:s.side===m,depthPacking:void 0!==s.depthPacking&&s.depthPacking,index0AttributeName:s.index0AttributeName,extensionDerivatives:s.extensions&&s.extensions.derivatives,extensionFragDepth:s.extensions&&s.extensions.fragDepth,extensionDrawBuffers:s.extensions&&s.extensions.drawBuffers,extensionShaderTextureLOD:s.extensions&&s.extensions.shaderTextureLOD,rendererExtensionFragDepth:u||r.has("EXT_frag_depth"),rendererExtensionDrawBuffers:u||r.has("WEBGL_draw_buffers"),rendererExtensionShaderTextureLod:u||r.has("EXT_shader_texture_lod"),customProgramCacheKey:s.customProgramCacheKey()}},getProgramCacheKey:function(t){const n=[];if(t.shaderID?n.push(t.shaderID):(n.push(t.customVertexShaderID),n.push(t.customFragmentShaderID)),void 0!==t.defines)for(const e in t.defines)n.push(e),n.push(t.defines[e]);return!1===t.isRawShaderMaterial&&(function(e,t){e.push(t.precision),e.push(t.outputEncoding),e.push(t.envMapMode),e.push(t.envMapCubeUVHeight),e.push(t.combine),e.push(t.vertexUvs),e.push(t.fogExp2),e.push(t.sizeAttenuation),e.push(t.maxBones),e.push(t.morphTargetsCount),e.push(t.morphAttributeCount),e.push(t.numDirLights),e.push(t.numPointLights),e.push(t.numSpotLights),e.push(t.numHemiLights),e.push(t.numRectAreaLights),e.push(t.numDirLightShadows),e.push(t.numPointLightShadows),e.push(t.numSpotLightShadows),e.push(t.shadowMapType),e.push(t.toneMapping),e.push(t.numClippingPlanes),e.push(t.numClipIntersection)}(n,t),function(e,t){o.disableAll(),t.isWebGL2&&o.enable(0),t.supportsVertexTextures&&o.enable(1),t.instancing&&o.enable(2),t.instancingColor&&o.enable(3),t.map&&o.enable(4),t.matcap&&o.enable(5),t.envMap&&o.enable(6),t.lightMap&&o.enable(7),t.aoMap&&o.enable(8),t.emissiveMap&&o.enable(9),t.bumpMap&&o.enable(10),t.normalMap&&o.enable(11),t.objectSpaceNormalMap&&o.enable(12),t.tangentSpaceNormalMap&&o.enable(13),t.clearcoat&&o.enable(14),t.clearcoatMap&&o.enable(15),t.clearcoatRoughnessMap&&o.enable(16),t.clearcoatNormalMap&&o.enable(17),t.displacementMap&&o.enable(18),t.specularMap&&o.enable(19),t.roughnessMap&&o.enable(20),t.metalnessMap&&o.enable(21),t.gradientMap&&o.enable(22),t.alphaMap&&o.enable(23),t.alphaTest&&o.enable(24),t.vertexColors&&o.enable(25),t.vertexAlphas&&o.enable(26),t.vertexUvs&&o.enable(27),t.vertexTangents&&o.enable(28),t.uvsVertexOnly&&o.enable(29),t.fog&&o.enable(30),e.push(o.mask),o.disableAll(),t.useFog&&o.enable(0),t.flatShading&&o.enable(1),t.logarithmicDepthBuffer&&o.enable(2),t.skinning&&o.enable(3),t.useVertexTexture&&o.enable(4),t.morphTargets&&o.enable(5),t.morphNormals&&o.enable(6),t.morphColors&&o.enable(7),t.premultipliedAlpha&&o.enable(8),t.shadowMapEnabled&&o.enable(9),t.physicallyCorrectLights&&o.enable(10),t.doubleSided&&o.enable(11),t.flipSided&&o.enable(12),t.depthPacking&&o.enable(13),t.dithering&&o.enable(14),t.specularIntensityMap&&o.enable(15),t.specularColorMap&&o.enable(16),t.transmission&&o.enable(17),t.transmissionMap&&o.enable(18),t.thicknessMap&&o.enable(19),t.sheen&&o.enable(20),t.sheenColorMap&&o.enable(21),t.sheenRoughnessMap&&o.enable(22),t.decodeVideoTexture&&o.enable(23),t.opaque&&o.enable(24),e.push(o.mask)}(n,t),n.push(e.outputEncoding)),n.push(t.customProgramCacheKey),n.join()},getUniforms:function(e){const t=y[e.type];let n;if(t){const e=Ts[t];n=as.clone(e.uniforms)}else n=e.uniforms;return n},acquireProgram:function(t,n){let r;for(let e=0,t=c.length;e0?r.push(u):!0===a.transparent?i.push(u):n.push(u)},unshift:function(e,t,a,o,l,c){const u=s(e,t,a,o,l,c);a.transmission>0?r.unshift(u):!0===a.transparent?i.unshift(u):n.unshift(u)},finish:function(){for(let n=t,r=e.length;n1&&n.sort(e||Co),r.length>1&&r.sort(t||Po),i.length>1&&i.sort(t||Po)}}}function Do(){let e=new WeakMap;return{get:function(t,n){let r;return!1===e.has(t)?(r=new Io,e.set(t,[r])):n>=e.get(t).length?(r=new Io,e.get(t).push(r)):r=e.get(t)[n],r},dispose:function(){e=new WeakMap}}}function No(){const e={};return{get:function(t){if(void 0!==e[t.id])return e[t.id];let n;switch(t.type){case"DirectionalLight":n={direction:new er,color:new Bn};break;case"SpotLight":n={position:new er,direction:new er,color:new Bn,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":n={position:new er,color:new Bn,distance:0,decay:0};break;case"HemisphereLight":n={direction:new er,skyColor:new Bn,groundColor:new Bn};break;case"RectAreaLight":n={color:new Bn,position:new er,halfWidth:new er,halfHeight:new er}}return e[t.id]=n,n}}}let Oo=0;function zo(e,t){return(t.castShadow?1:0)-(e.castShadow?1:0)}function Fo(e,t){const n=new No,r=function(){const e={};return{get:function(t){if(void 0!==e[t.id])return e[t.id];let n;switch(t.type){case"DirectionalLight":case"SpotLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new An};break;case"PointLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new An,shadowCameraNear:1,shadowCameraFar:1e3}}return e[t.id]=n,n}}}(),i={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotShadow:[],spotShadowMap:[],spotShadowMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[]};for(let e=0;e<9;e++)i.probe.push(new er);const s=new er,a=new Pr,o=new Pr;return{setup:function(s,a){let o=0,l=0,c=0;for(let e=0;e<9;e++)i.probe[e].set(0,0,0);let u=0,h=0,d=0,p=0,f=0,m=0,g=0,v=0;s.sort(zo);const y=!0!==a?Math.PI:1;for(let e=0,t=s.length;e0&&(t.isWebGL2||!0===e.has("OES_texture_float_linear")?(i.rectAreaLTC1=Es.LTC_FLOAT_1,i.rectAreaLTC2=Es.LTC_FLOAT_2):!0===e.has("OES_texture_half_float_linear")?(i.rectAreaLTC1=Es.LTC_HALF_1,i.rectAreaLTC2=Es.LTC_HALF_2):console.error("THREE.WebGLRenderer: Unable to use RectAreaLight. Missing WebGL extensions.")),i.ambient[0]=o,i.ambient[1]=l,i.ambient[2]=c;const x=i.hash;x.directionalLength===u&&x.pointLength===h&&x.spotLength===d&&x.rectAreaLength===p&&x.hemiLength===f&&x.numDirectionalShadows===m&&x.numPointShadows===g&&x.numSpotShadows===v||(i.directional.length=u,i.spot.length=d,i.rectArea.length=p,i.point.length=h,i.hemi.length=f,i.directionalShadow.length=m,i.directionalShadowMap.length=m,i.pointShadow.length=g,i.pointShadowMap.length=g,i.spotShadow.length=v,i.spotShadowMap.length=v,i.directionalShadowMatrix.length=m,i.pointShadowMatrix.length=g,i.spotShadowMatrix.length=v,x.directionalLength=u,x.pointLength=h,x.spotLength=d,x.rectAreaLength=p,x.hemiLength=f,x.numDirectionalShadows=m,x.numPointShadows=g,x.numSpotShadows=v,i.version=Oo++)},setupView:function(e,t){let n=0,r=0,l=0,c=0,u=0;const h=t.matrixWorldInverse;for(let t=0,d=e.length;t=n.get(r).length?(s=new Uo(e,t),n.get(r).push(s)):s=n.get(r)[i],s},dispose:function(){n=new WeakMap}}}class Ho extends mi{constructor(e){super(),this.type="MeshDepthMaterial",this.depthPacking=Ot,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}}Ho.prototype.isMeshDepthMaterial=!0;class ko extends mi{constructor(e){super(),this.type="MeshDistanceMaterial",this.referencePosition=new er,this.nearDistance=1,this.farDistance=1e3,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.fog=!1,this.setValues(e)}copy(e){return super.copy(e),this.referencePosition.copy(e.referencePosition),this.nearDistance=e.nearDistance,this.farDistance=e.farDistance,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}}ko.prototype.isMeshDistanceMaterial=!0;const Go="void main() {\n\tgl_Position = vec4( position, 1.0 );\n}",Vo="uniform sampler2D shadow_pass;\nuniform vec2 resolution;\nuniform float radius;\n#include \nvoid main() {\n\tconst float samples = float( VSM_SAMPLES );\n\tfloat mean = 0.0;\n\tfloat squared_mean = 0.0;\n\tfloat uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 );\n\tfloat uvStart = samples <= 1.0 ? 0.0 : - 1.0;\n\tfor ( float i = 0.0; i < samples; i ++ ) {\n\t\tfloat uvOffset = uvStart + i * uvStride;\n\t\t#ifdef HORIZONTAL_PASS\n\t\t\tvec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ) );\n\t\t\tmean += distribution.x;\n\t\t\tsquared_mean += distribution.y * distribution.y + distribution.x * distribution.x;\n\t\t#else\n\t\t\tfloat depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ) );\n\t\t\tmean += depth;\n\t\t\tsquared_mean += depth * depth;\n\t\t#endif\n\t}\n\tmean = mean / samples;\n\tsquared_mean = squared_mean / samples;\n\tfloat std_dev = sqrt( squared_mean - mean * mean );\n\tgl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) );\n}";function Wo(e,t,n){let r=new _s;const i=new An,s=new An,a=new qn,o=new Ho({depthPacking:zt}),l=new ko,c={},u=n.maxTextureSize,d={0:m,1:f,2:g},v=new os({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new An},radius:{value:4}},vertexShader:Go,fragmentShader:Vo}),y=v.clone();y.defines.HORIZONTAL_PASS=1;const _=new Fi;_.setAttribute("position",new xi(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const b=new ts(_,v),w=this;function M(n,r){const i=t.update(b);v.defines.VSM_SAMPLES!==n.blurSamples&&(v.defines.VSM_SAMPLES=n.blurSamples,y.defines.VSM_SAMPLES=n.blurSamples,v.needsUpdate=!0,y.needsUpdate=!0),v.uniforms.shadow_pass.value=n.map.texture,v.uniforms.resolution.value=n.mapSize,v.uniforms.radius.value=n.radius,e.setRenderTarget(n.mapPass),e.clear(),e.renderBufferDirect(r,null,i,v,b,null),y.uniforms.shadow_pass.value=n.mapPass.texture,y.uniforms.resolution.value=n.mapSize,y.uniforms.radius.value=n.radius,e.setRenderTarget(n.map),e.clear(),e.renderBufferDirect(r,null,i,y,b,null)}function S(t,n,r,i,s,a){let u=null;const h=!0===r.isPointLight?t.customDistanceMaterial:t.customDepthMaterial;if(u=void 0!==h?h:!0===r.isPointLight?l:o,e.localClippingEnabled&&!0===n.clipShadows&&0!==n.clippingPlanes.length||n.displacementMap&&0!==n.displacementScale||n.alphaMap&&n.alphaTest>0){const e=u.uuid,t=n.uuid;let r=c[e];void 0===r&&(r={},c[e]=r);let i=r[t];void 0===i&&(i=u.clone(),r[t]=i),u=i}return u.visible=n.visible,u.wireframe=n.wireframe,u.side=a===p?null!==n.shadowSide?n.shadowSide:n.side:null!==n.shadowSide?n.shadowSide:d[n.side],u.alphaMap=n.alphaMap,u.alphaTest=n.alphaTest,u.clipShadows=n.clipShadows,u.clippingPlanes=n.clippingPlanes,u.clipIntersection=n.clipIntersection,u.displacementMap=n.displacementMap,u.displacementScale=n.displacementScale,u.displacementBias=n.displacementBias,u.wireframeLinewidth=n.wireframeLinewidth,u.linewidth=n.linewidth,!0===r.isPointLight&&!0===u.isMeshDistanceMaterial&&(u.referencePosition.setFromMatrixPosition(r.matrixWorld),u.nearDistance=i,u.farDistance=s),u}function E(n,i,s,a,o){if(!1===n.visible)return;if(n.layers.test(i.layers)&&(n.isMesh||n.isLine||n.isPoints)&&(n.castShadow||n.receiveShadow&&o===p)&&(!n.frustumCulled||r.intersectsObject(n))){n.modelViewMatrix.multiplyMatrices(s.matrixWorldInverse,n.matrixWorld);const r=t.update(n),i=n.material;if(Array.isArray(i)){const t=r.groups;for(let l=0,c=t.length;lu||i.y>u)&&(i.x>u&&(s.x=Math.floor(u/f.x),i.x=s.x*f.x,h.mapSize.x=s.x),i.y>u&&(s.y=Math.floor(u/f.y),i.y=s.y*f.y,h.mapSize.y=s.y)),null===h.map&&!h.isPointLightShadow&&this.type===p){const e={minFilter:xe,magFilter:xe,format:Fe};h.map=new Xn(i.x,i.y,e),h.map.texture.name=c.name+".shadowMap",h.mapPass=new Xn(i.x,i.y,e),h.camera.updateProjectionMatrix()}if(null===h.map){const e={minFilter:fe,magFilter:fe,format:Fe};h.map=new Xn(i.x,i.y,e),h.map.texture.name=c.name+".shadowMap",h.camera.updateProjectionMatrix()}e.setRenderTarget(h.map),e.clear();const m=h.getViewportCount();for(let e=0;e=1):-1!==ue.indexOf("OpenGL ES")&&(ce=parseFloat(/^OpenGL ES (\d)/.exec(ue)[1]),le=ce>=2);let he=null,de={};const pe=e.getParameter(3088),fe=e.getParameter(2978),me=(new qn).fromArray(pe),ge=(new qn).fromArray(fe);function ve(t,n,r){const i=new Uint8Array(4),s=e.createTexture();e.bindTexture(t,s),e.texParameteri(t,10241,9728),e.texParameteri(t,10240,9728);for(let t=0;tr||e.height>r)&&(i=r/Math.max(e.width,e.height)),i<1||!0===t){if("undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap){const r=t?En:Math.floor,s=r(i*e.width),a=r(i*e.height);void 0===f&&(f=v(s,a));const o=n?v(s,a):f;return o.width=s,o.height=a,o.getContext("2d").drawImage(e,0,0,s,a),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+e.width+"x"+e.height+") to ("+s+"x"+a+")."),o}return"data"in e&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+e.width+"x"+e.height+")."),e}return e}function x(e){return Mn(e.width)&&Mn(e.height)}function _(e,t){return e.generateMipmaps&&t&&e.minFilter!==fe&&e.minFilter!==xe}function b(t){e.generateMipmap(t)}function w(n,r,i,s,a=!1){if(!1===o)return r;if(null!==n){if(void 0!==e[n])return e[n];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+n+"'")}let l=r;return 6403===r&&(5126===i&&(l=33326),5131===i&&(l=33325),5121===i&&(l=33321)),33319===r&&(5126===i&&(l=33328),5131===i&&(l=33327),5121===i&&(l=33323)),6408===r&&(5126===i&&(l=34836),5131===i&&(l=34842),5121===i&&(l=s===Nt&&!1===a?35907:32856),32819===i&&(l=32854),32820===i&&(l=32855)),33325!==l&&33326!==l&&33327!==l&&33328!==l&&34842!==l&&34836!==l||t.get("EXT_color_buffer_float"),l}function M(e,t,n){return!0===_(e,n)||e.isFramebufferTexture&&e.minFilter!==fe&&e.minFilter!==xe?Math.log2(Math.max(t.width,t.height))+1:void 0!==e.mipmaps&&e.mipmaps.length>0?e.mipmaps.length:e.isCompressedTexture&&Array.isArray(e.image)?t.mipmaps.length:1}function S(e){return e===fe||e===me||e===ve?9728:9729}function E(e){const t=e.target;t.removeEventListener("dispose",E),function(e){const t=r.get(e);if(void 0===t.__webglInit)return;const n=e.source,i=m.get(n);if(i){const r=i[t.__cacheKey];r.usedTimes--,0===r.usedTimes&&A(e),0===Object.keys(i).length&&m.delete(n)}r.remove(e)}(t),t.isVideoTexture&&p.delete(t)}function T(t){const n=t.target;n.removeEventListener("dispose",T),function(t){const n=t.texture,i=r.get(t),s=r.get(n);if(void 0!==s.__webglTexture&&(e.deleteTexture(s.__webglTexture),a.memory.textures--),t.depthTexture&&t.depthTexture.dispose(),t.isWebGLCubeRenderTarget)for(let t=0;t<6;t++)e.deleteFramebuffer(i.__webglFramebuffer[t]),i.__webglDepthbuffer&&e.deleteRenderbuffer(i.__webglDepthbuffer[t]);else e.deleteFramebuffer(i.__webglFramebuffer),i.__webglDepthbuffer&&e.deleteRenderbuffer(i.__webglDepthbuffer),i.__webglMultisampledFramebuffer&&e.deleteFramebuffer(i.__webglMultisampledFramebuffer),i.__webglColorRenderbuffer&&e.deleteRenderbuffer(i.__webglColorRenderbuffer),i.__webglDepthRenderbuffer&&e.deleteRenderbuffer(i.__webglDepthRenderbuffer);if(t.isWebGLMultipleRenderTargets)for(let t=0,i=n.length;t0&&i.__version!==e.version){const n=e.image;if(null===n)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else{if(!1!==n.complete)return void N(i,e,t);console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete")}}n.activeTexture(33984+t),n.bindTexture(3553,i.__webglTexture)}const C={[he]:10497,[de]:33071,[pe]:33648},P={[fe]:9728,[me]:9984,[ve]:9986,[xe]:9729,[_e]:9985,[we]:9987};function I(n,s,a){if(a?(e.texParameteri(n,10242,C[s.wrapS]),e.texParameteri(n,10243,C[s.wrapT]),32879!==n&&35866!==n||e.texParameteri(n,32882,C[s.wrapR]),e.texParameteri(n,10240,P[s.magFilter]),e.texParameteri(n,10241,P[s.minFilter])):(e.texParameteri(n,10242,33071),e.texParameteri(n,10243,33071),32879!==n&&35866!==n||e.texParameteri(n,32882,33071),s.wrapS===de&&s.wrapT===de||console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),e.texParameteri(n,10240,S(s.magFilter)),e.texParameteri(n,10241,S(s.minFilter)),s.minFilter!==fe&&s.minFilter!==xe&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")),!0===t.has("EXT_texture_filter_anisotropic")){const a=t.get("EXT_texture_filter_anisotropic");if(s.type===Ce&&!1===t.has("OES_texture_float_linear"))return;if(!1===o&&s.type===Pe&&!1===t.has("OES_texture_half_float_linear"))return;(s.anisotropy>1||r.get(s).__currentAnisotropy)&&(e.texParameterf(n,a.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(s.anisotropy,i.getMaxAnisotropy())),r.get(s).__currentAnisotropy=s.anisotropy)}}function D(t,n){let r=!1;void 0===t.__webglInit&&(t.__webglInit=!0,n.addEventListener("dispose",E));const i=n.source;let s=m.get(i);void 0===s&&(s={},m.set(i,s));const o=function(e){const t=[];return t.push(e.wrapS),t.push(e.wrapT),t.push(e.magFilter),t.push(e.minFilter),t.push(e.anisotropy),t.push(e.internalFormat),t.push(e.format),t.push(e.type),t.push(e.generateMipmaps),t.push(e.premultiplyAlpha),t.push(e.flipY),t.push(e.unpackAlignment),t.push(e.encoding),t.join()}(n);if(o!==t.__cacheKey){void 0===s[o]&&(s[o]={texture:e.createTexture(),usedTimes:0},a.memory.textures++,r=!0),s[o].usedTimes++;const i=s[t.__cacheKey];void 0!==i&&(s[t.__cacheKey].usedTimes--,0===i.usedTimes&&A(n)),t.__cacheKey=o,t.__webglTexture=s[o].texture}return r}function N(t,r,i){let a=3553;r.isDataArrayTexture&&(a=35866),r.isData3DTexture&&(a=32879);const l=D(t,r),c=r.source;if(n.activeTexture(33984+i),n.bindTexture(a,t.__webglTexture),c.version!==c.__currentVersion||!0===l){e.pixelStorei(37440,r.flipY),e.pixelStorei(37441,r.premultiplyAlpha),e.pixelStorei(3317,r.unpackAlignment),e.pixelStorei(37443,0);const i=function(e){return!o&&(e.wrapS!==de||e.wrapT!==de||e.minFilter!==fe&&e.minFilter!==xe)}(r)&&!1===x(r.image);let l=y(r.image,i,!1,u);l=H(r,l);const h=x(l)||o,d=s.convert(r.format,r.encoding);let p,f=s.convert(r.type),m=w(r.internalFormat,d,f,r.encoding,r.isVideoTexture);I(a,r,h);const g=r.mipmaps,v=o&&!0!==r.isVideoTexture,S=void 0===t.__version,E=M(r,l,h);if(r.isDepthTexture)m=6402,o?m=r.type===Ce?36012:r.type===Le?33190:r.type===Ne?35056:33189:r.type===Ce&&console.error("WebGLRenderer: Floating point depth texture requires WebGL2."),r.format===He&&6402===m&&r.type!==Ae&&r.type!==Le&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),r.type=Ae,f=s.convert(r.type)),r.format===ke&&6402===m&&(m=34041,r.type!==Ne&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),r.type=Ne,f=s.convert(r.type))),v&&S?n.texStorage2D(3553,1,m,l.width,l.height):n.texImage2D(3553,0,m,l.width,l.height,0,d,f,null);else if(r.isDataTexture)if(g.length>0&&h){v&&S&&n.texStorage2D(3553,E,m,g[0].width,g[0].height);for(let e=0,t=g.length;e0&&h){v&&S&&n.texStorage2D(3553,E,m,g[0].width,g[0].height);for(let e=0,t=g.length;e0&&!0===t.has("WEBGL_multisampled_render_to_texture")&&!1!==n.__useRenderToTexture}function H(e,n){const r=e.encoding,i=e.format,s=e.type;return!0===e.isCompressedTexture||!0===e.isVideoTexture||e.format===pn||r!==Dt&&(r===Nt?!1===o?!0===t.has("EXT_sRGB")&&i===Fe?(e.format=pn,e.minFilter=xe,e.generateMipmaps=!1):n=kn.sRGBToLinear(n):i===Fe&&s===Se||console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture encoding:",r)),n}this.allocateTextureUnit=function(){const e=R;return e>=l&&console.warn("THREE.WebGLTextures: Trying to use "+e+" texture units while this GPU supports only "+l),R+=1,e},this.resetTextureUnits=function(){R=0},this.setTexture2D=L,this.setTexture2DArray=function(e,t){const i=r.get(e);e.version>0&&i.__version!==e.version?N(i,e,t):(n.activeTexture(33984+t),n.bindTexture(35866,i.__webglTexture))},this.setTexture3D=function(e,t){const i=r.get(e);e.version>0&&i.__version!==e.version?N(i,e,t):(n.activeTexture(33984+t),n.bindTexture(32879,i.__webglTexture))},this.setTextureCube=function(t,i){const a=r.get(t);t.version>0&&a.__version!==t.version?function(t,r,i){if(6!==r.image.length)return;const a=D(t,r),l=r.source;if(n.activeTexture(33984+i),n.bindTexture(34067,t.__webglTexture),l.version!==l.__currentVersion||!0===a){e.pixelStorei(37440,r.flipY),e.pixelStorei(37441,r.premultiplyAlpha),e.pixelStorei(3317,r.unpackAlignment),e.pixelStorei(37443,0);const i=r.isCompressedTexture||r.image[0].isCompressedTexture,a=r.image[0]&&r.image[0].isDataTexture,u=[];for(let e=0;e<6;e++)u[e]=i||a?a?r.image[e].image:r.image[e]:y(r.image[e],!1,!0,c),u[e]=H(r,u[e]);const h=u[0],d=x(h)||o,p=s.convert(r.format,r.encoding),f=s.convert(r.type),m=w(r.internalFormat,p,f,r.encoding),g=o&&!0!==r.isVideoTexture,v=void 0===t.__version;let S,E=M(r,h,d);if(I(34067,r,d),i){g&&v&&n.texStorage2D(34067,E,m,h.width,h.height);for(let e=0;e<6;e++){S=u[e].mipmaps;for(let t=0;t0&&E++,n.texStorage2D(34067,E,m,u[0].width,u[0].height));for(let e=0;e<6;e++)if(a){g?n.texSubImage2D(34069+e,0,0,0,u[e].width,u[e].height,p,f,u[e].data):n.texImage2D(34069+e,0,m,u[e].width,u[e].height,0,p,f,u[e].data);for(let t=0;t0&&!1===B(t)){c.__webglMultisampledFramebuffer=e.createFramebuffer(),c.__webglColorRenderbuffer=e.createRenderbuffer(),e.bindRenderbuffer(36161,c.__webglColorRenderbuffer);const r=s.convert(l.format,l.encoding),i=s.convert(l.type),a=w(l.internalFormat,r,i,l.encoding),o=U(t);e.renderbufferStorageMultisample(36161,o,a,t.width,t.height),n.bindFramebuffer(36160,c.__webglMultisampledFramebuffer),e.framebufferRenderbuffer(36160,36064,36161,c.__webglColorRenderbuffer),e.bindRenderbuffer(36161,null),t.depthBuffer&&(c.__webglDepthRenderbuffer=e.createRenderbuffer(),z(c.__webglDepthRenderbuffer,t,!0)),n.bindFramebuffer(36160,null)}if(h){n.bindTexture(34067,u.__webglTexture),I(34067,l,p);for(let e=0;e<6;e++)O(c.__webglFramebuffer[e],t,l,36064,34069+e);_(l,p)&&b(34067),n.unbindTexture()}else if(d){const e=t.texture;for(let i=0,s=e.length;i0&&!1===B(t)){const i=t.width,s=t.height;let a=16384;const o=[36064],l=t.stencilBuffer?33306:36096;t.depthBuffer&&o.push(l);const c=r.get(t),u=void 0!==c.__ignoreDepthValues&&c.__ignoreDepthValues;!1===u&&(t.depthBuffer&&(a|=256),t.stencilBuffer&&(a|=1024)),n.bindFramebuffer(36008,c.__webglMultisampledFramebuffer),n.bindFramebuffer(36009,c.__webglFramebuffer),!0===u&&(e.invalidateFramebuffer(36008,[l]),e.invalidateFramebuffer(36009,[l])),e.blitFramebuffer(0,0,i,s,0,0,i,s,a,9728),e.invalidateFramebuffer(36008,o),n.bindFramebuffer(36008,null),n.bindFramebuffer(36009,c.__webglMultisampledFramebuffer)}},this.setupDepthRenderbuffer=F,this.setupFrameBufferTexture=O,this.useMultisampledRTT=B}function Xo(e,t,n){const r=n.isWebGL2;return{convert:function(e,n=null){let i;if(e===Se)return 5121;if(e===Ie)return 32819;if(e===De)return 32820;if(e===Ee)return 5120;if(e===Te)return 5122;if(e===Ae)return 5123;if(e===Re)return 5124;if(e===Le)return 5125;if(e===Ce)return 5126;if(e===Pe)return r?5131:(i=t.get("OES_texture_half_float"),null!==i?i.HALF_FLOAT_OES:null);if(e===Oe)return 6406;if(e===Fe)return 6408;if(e===Ue)return 6409;if(e===Be)return 6410;if(e===He)return 6402;if(e===ke)return 34041;if(e===Ge)return 6403;if(e===ze)return console.warn("THREE.WebGLRenderer: THREE.RGBFormat has been removed. Use THREE.RGBAFormat instead. https://github.com/mrdoob/three.js/pull/23228"),6408;if(e===pn)return i=t.get("EXT_sRGB"),null!==i?i.SRGB_ALPHA_EXT:null;if(e===Ve)return 36244;if(e===We)return 33319;if(e===je)return 33320;if(e===qe)return 36249;if(e===Xe||e===Ye||e===Ze||e===Je)if(n===Nt){if(i=t.get("WEBGL_compressed_texture_s3tc_srgb"),null===i)return null;if(e===Xe)return i.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(e===Ye)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(e===Ze)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(e===Je)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else{if(i=t.get("WEBGL_compressed_texture_s3tc"),null===i)return null;if(e===Xe)return i.COMPRESSED_RGB_S3TC_DXT1_EXT;if(e===Ye)return i.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(e===Ze)return i.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(e===Je)return i.COMPRESSED_RGBA_S3TC_DXT5_EXT}if(e===Ke||e===Qe||e===$e||e===et){if(i=t.get("WEBGL_compressed_texture_pvrtc"),null===i)return null;if(e===Ke)return i.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(e===Qe)return i.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(e===$e)return i.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(e===et)return i.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}if(e===tt)return i=t.get("WEBGL_compressed_texture_etc1"),null!==i?i.COMPRESSED_RGB_ETC1_WEBGL:null;if(e===nt||e===rt){if(i=t.get("WEBGL_compressed_texture_etc"),null===i)return null;if(e===nt)return n===Nt?i.COMPRESSED_SRGB8_ETC2:i.COMPRESSED_RGB8_ETC2;if(e===rt)return n===Nt?i.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:i.COMPRESSED_RGBA8_ETC2_EAC}if(e===it||e===st||e===at||e===ot||e===lt||e===ct||e===ut||e===ht||e===dt||e===pt||e===ft||e===mt||e===gt||e===vt){if(i=t.get("WEBGL_compressed_texture_astc"),null===i)return null;if(e===it)return n===Nt?i.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:i.COMPRESSED_RGBA_ASTC_4x4_KHR;if(e===st)return n===Nt?i.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:i.COMPRESSED_RGBA_ASTC_5x4_KHR;if(e===at)return n===Nt?i.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:i.COMPRESSED_RGBA_ASTC_5x5_KHR;if(e===ot)return n===Nt?i.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:i.COMPRESSED_RGBA_ASTC_6x5_KHR;if(e===lt)return n===Nt?i.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:i.COMPRESSED_RGBA_ASTC_6x6_KHR;if(e===ct)return n===Nt?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:i.COMPRESSED_RGBA_ASTC_8x5_KHR;if(e===ut)return n===Nt?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:i.COMPRESSED_RGBA_ASTC_8x6_KHR;if(e===ht)return n===Nt?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:i.COMPRESSED_RGBA_ASTC_8x8_KHR;if(e===dt)return n===Nt?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:i.COMPRESSED_RGBA_ASTC_10x5_KHR;if(e===pt)return n===Nt?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:i.COMPRESSED_RGBA_ASTC_10x6_KHR;if(e===ft)return n===Nt?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:i.COMPRESSED_RGBA_ASTC_10x8_KHR;if(e===mt)return n===Nt?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:i.COMPRESSED_RGBA_ASTC_10x10_KHR;if(e===gt)return n===Nt?i.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:i.COMPRESSED_RGBA_ASTC_12x10_KHR;if(e===vt)return n===Nt?i.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:i.COMPRESSED_RGBA_ASTC_12x12_KHR}if(e===yt){if(i=t.get("EXT_texture_compression_bptc"),null===i)return null;if(e===yt)return n===Nt?i.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:i.COMPRESSED_RGBA_BPTC_UNORM_EXT}return e===Ne?r?34042:(i=t.get("WEBGL_depth_texture"),null!==i?i.UNSIGNED_INT_24_8_WEBGL:null):void 0}}}class Yo extends cs{constructor(e=[]){super(),this.cameras=e}}Yo.prototype.isArrayCamera=!0;class Zo extends ni{constructor(){super(),this.type="Group"}}Zo.prototype.isGroup=!0;const Jo={type:"move"};class Ko{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return null===this._hand&&(this._hand=new Zo,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return null===this._targetRay&&(this._targetRay=new Zo,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new er,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new er),this._targetRay}getGripSpace(){return null===this._grip&&(this._grip=new Zo,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new er,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new er),this._grip}dispatchEvent(e){return null!==this._targetRay&&this._targetRay.dispatchEvent(e),null!==this._grip&&this._grip.dispatchEvent(e),null!==this._hand&&this._hand.dispatchEvent(e),this}disconnect(e){return this.dispatchEvent({type:"disconnected",data:e}),null!==this._targetRay&&(this._targetRay.visible=!1),null!==this._grip&&(this._grip.visible=!1),null!==this._hand&&(this._hand.visible=!1),this}update(e,t,n){let r=null,i=null,s=null;const a=this._targetRay,o=this._grip,l=this._hand;if(e&&"visible-blurred"!==t.session.visibilityState)if(null!==a&&(r=t.getPose(e.targetRaySpace,n),null!==r&&(a.matrix.fromArray(r.transform.matrix),a.matrix.decompose(a.position,a.rotation,a.scale),r.linearVelocity?(a.hasLinearVelocity=!0,a.linearVelocity.copy(r.linearVelocity)):a.hasLinearVelocity=!1,r.angularVelocity?(a.hasAngularVelocity=!0,a.angularVelocity.copy(r.angularVelocity)):a.hasAngularVelocity=!1,this.dispatchEvent(Jo))),l&&e.hand){s=!0;for(const r of e.hand.values()){const e=t.getJointPose(r,n);if(void 0===l.joints[r.jointName]){const e=new Zo;e.matrixAutoUpdate=!1,e.visible=!1,l.joints[r.jointName]=e,l.add(e)}const i=l.joints[r.jointName];null!==e&&(i.matrix.fromArray(e.transform.matrix),i.matrix.decompose(i.position,i.rotation,i.scale),i.jointRadius=e.radius),i.visible=null!==e}const r=l.joints["index-finger-tip"],i=l.joints["thumb-tip"],a=r.position.distanceTo(i.position),o=.02,c=.005;l.inputState.pinching&&a>o+c?(l.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!l.inputState.pinching&&a<=o-c&&(l.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else null!==o&&e.gripSpace&&(i=t.getPose(e.gripSpace,n),null!==i&&(o.matrix.fromArray(i.transform.matrix),o.matrix.decompose(o.position,o.rotation,o.scale),i.linearVelocity?(o.hasLinearVelocity=!0,o.linearVelocity.copy(i.linearVelocity)):o.hasLinearVelocity=!1,i.angularVelocity?(o.hasAngularVelocity=!0,o.angularVelocity.copy(i.angularVelocity)):o.hasAngularVelocity=!1));return null!==a&&(a.visible=null!==r),null!==o&&(o.visible=null!==i),null!==l&&(l.visible=null!==s),this}}class Qo extends jn{constructor(e,t,n,r,i,s,a,o,l,c){if((c=void 0!==c?c:He)!==He&&c!==ke)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");void 0===n&&c===He&&(n=Ae),void 0===n&&c===ke&&(n=Ne),super(null,r,i,s,a,o,c,n,l),this.image={width:e,height:t},this.magFilter=void 0!==a?a:fe,this.minFilter=void 0!==o?o:fe,this.flipY=!1,this.generateMipmaps=!1}}Qo.prototype.isDepthTexture=!0;class $o extends fn{constructor(e,t){super();const n=this;let r=null,i=1,s=null,a="local-floor",o=null,l=null,c=null,u=null,h=null;const d=t.getContextAttributes();let p=null,f=null;const m=[],g=new Map,v=new cs;v.layers.enable(1),v.viewport=new qn;const y=new cs;y.layers.enable(2),y.viewport=new qn;const x=[v,y],_=new Yo;_.layers.enable(1),_.layers.enable(2);let b=null,w=null;function M(e){const t=g.get(e.inputSource);t&&t.dispatchEvent({type:e.type,data:e.inputSource})}function S(){g.forEach((function(e,t){e.disconnect(t)})),g.clear(),b=null,w=null,e.setRenderTarget(p),u=null,c=null,l=null,r=null,f=null,C.stop(),n.isPresenting=!1,n.dispatchEvent({type:"sessionend"})}function E(e){const t=r.inputSources;for(let e=0;e0&&(t.alphaTest.value=n.alphaTest);const r=e.get(n).envMap;let i,s;r&&(t.envMap.value=r,t.flipEnvMap.value=r.isCubeTexture&&!1===r.isRenderTargetTexture?-1:1,t.reflectivity.value=n.reflectivity,t.ior.value=n.ior,t.refractionRatio.value=n.refractionRatio),n.lightMap&&(t.lightMap.value=n.lightMap,t.lightMapIntensity.value=n.lightMapIntensity),n.aoMap&&(t.aoMap.value=n.aoMap,t.aoMapIntensity.value=n.aoMapIntensity),n.map?i=n.map:n.specularMap?i=n.specularMap:n.displacementMap?i=n.displacementMap:n.normalMap?i=n.normalMap:n.bumpMap?i=n.bumpMap:n.roughnessMap?i=n.roughnessMap:n.metalnessMap?i=n.metalnessMap:n.alphaMap?i=n.alphaMap:n.emissiveMap?i=n.emissiveMap:n.clearcoatMap?i=n.clearcoatMap:n.clearcoatNormalMap?i=n.clearcoatNormalMap:n.clearcoatRoughnessMap?i=n.clearcoatRoughnessMap:n.specularIntensityMap?i=n.specularIntensityMap:n.specularColorMap?i=n.specularColorMap:n.transmissionMap?i=n.transmissionMap:n.thicknessMap?i=n.thicknessMap:n.sheenColorMap?i=n.sheenColorMap:n.sheenRoughnessMap&&(i=n.sheenRoughnessMap),void 0!==i&&(i.isWebGLRenderTarget&&(i=i.texture),!0===i.matrixAutoUpdate&&i.updateMatrix(),t.uvTransform.value.copy(i.matrix)),n.aoMap?s=n.aoMap:n.lightMap&&(s=n.lightMap),void 0!==s&&(s.isWebGLRenderTarget&&(s=s.texture),!0===s.matrixAutoUpdate&&s.updateMatrix(),t.uv2Transform.value.copy(s.matrix))}function n(t,n){t.roughness.value=n.roughness,t.metalness.value=n.metalness,n.roughnessMap&&(t.roughnessMap.value=n.roughnessMap),n.metalnessMap&&(t.metalnessMap.value=n.metalnessMap),n.emissiveMap&&(t.emissiveMap.value=n.emissiveMap),n.bumpMap&&(t.bumpMap.value=n.bumpMap,t.bumpScale.value=n.bumpScale,n.side===m&&(t.bumpScale.value*=-1)),n.normalMap&&(t.normalMap.value=n.normalMap,t.normalScale.value.copy(n.normalScale),n.side===m&&t.normalScale.value.negate()),n.displacementMap&&(t.displacementMap.value=n.displacementMap,t.displacementScale.value=n.displacementScale,t.displacementBias.value=n.displacementBias),e.get(n).envMap&&(t.envMapIntensity.value=n.envMapIntensity)}return{refreshFogUniforms:function(e,t){e.fogColor.value.copy(t.color),t.isFog?(e.fogNear.value=t.near,e.fogFar.value=t.far):t.isFogExp2&&(e.fogDensity.value=t.density)},refreshMaterialUniforms:function(e,r,i,s,a){r.isMeshBasicMaterial?t(e,r):r.isMeshLambertMaterial?(t(e,r),function(e,t){t.emissiveMap&&(e.emissiveMap.value=t.emissiveMap)}(e,r)):r.isMeshToonMaterial?(t(e,r),function(e,t){t.gradientMap&&(e.gradientMap.value=t.gradientMap),t.emissiveMap&&(e.emissiveMap.value=t.emissiveMap),t.bumpMap&&(e.bumpMap.value=t.bumpMap,e.bumpScale.value=t.bumpScale,t.side===m&&(e.bumpScale.value*=-1)),t.normalMap&&(e.normalMap.value=t.normalMap,e.normalScale.value.copy(t.normalScale),t.side===m&&e.normalScale.value.negate()),t.displacementMap&&(e.displacementMap.value=t.displacementMap,e.displacementScale.value=t.displacementScale,e.displacementBias.value=t.displacementBias)}(e,r)):r.isMeshPhongMaterial?(t(e,r),function(e,t){e.specular.value.copy(t.specular),e.shininess.value=Math.max(t.shininess,1e-4),t.emissiveMap&&(e.emissiveMap.value=t.emissiveMap),t.bumpMap&&(e.bumpMap.value=t.bumpMap,e.bumpScale.value=t.bumpScale,t.side===m&&(e.bumpScale.value*=-1)),t.normalMap&&(e.normalMap.value=t.normalMap,e.normalScale.value.copy(t.normalScale),t.side===m&&e.normalScale.value.negate()),t.displacementMap&&(e.displacementMap.value=t.displacementMap,e.displacementScale.value=t.displacementScale,e.displacementBias.value=t.displacementBias)}(e,r)):r.isMeshStandardMaterial?(t(e,r),r.isMeshPhysicalMaterial?function(e,t,r){n(e,t),e.ior.value=t.ior,t.sheen>0&&(e.sheenColor.value.copy(t.sheenColor).multiplyScalar(t.sheen),e.sheenRoughness.value=t.sheenRoughness,t.sheenColorMap&&(e.sheenColorMap.value=t.sheenColorMap),t.sheenRoughnessMap&&(e.sheenRoughnessMap.value=t.sheenRoughnessMap)),t.clearcoat>0&&(e.clearcoat.value=t.clearcoat,e.clearcoatRoughness.value=t.clearcoatRoughness,t.clearcoatMap&&(e.clearcoatMap.value=t.clearcoatMap),t.clearcoatRoughnessMap&&(e.clearcoatRoughnessMap.value=t.clearcoatRoughnessMap),t.clearcoatNormalMap&&(e.clearcoatNormalScale.value.copy(t.clearcoatNormalScale),e.clearcoatNormalMap.value=t.clearcoatNormalMap,t.side===m&&e.clearcoatNormalScale.value.negate())),t.transmission>0&&(e.transmission.value=t.transmission,e.transmissionSamplerMap.value=r.texture,e.transmissionSamplerSize.value.set(r.width,r.height),t.transmissionMap&&(e.transmissionMap.value=t.transmissionMap),e.thickness.value=t.thickness,t.thicknessMap&&(e.thicknessMap.value=t.thicknessMap),e.attenuationDistance.value=t.attenuationDistance,e.attenuationColor.value.copy(t.attenuationColor)),e.specularIntensity.value=t.specularIntensity,e.specularColor.value.copy(t.specularColor),t.specularIntensityMap&&(e.specularIntensityMap.value=t.specularIntensityMap),t.specularColorMap&&(e.specularColorMap.value=t.specularColorMap)}(e,r,a):n(e,r)):r.isMeshMatcapMaterial?(t(e,r),function(e,t){t.matcap&&(e.matcap.value=t.matcap),t.bumpMap&&(e.bumpMap.value=t.bumpMap,e.bumpScale.value=t.bumpScale,t.side===m&&(e.bumpScale.value*=-1)),t.normalMap&&(e.normalMap.value=t.normalMap,e.normalScale.value.copy(t.normalScale),t.side===m&&e.normalScale.value.negate()),t.displacementMap&&(e.displacementMap.value=t.displacementMap,e.displacementScale.value=t.displacementScale,e.displacementBias.value=t.displacementBias)}(e,r)):r.isMeshDepthMaterial?(t(e,r),function(e,t){t.displacementMap&&(e.displacementMap.value=t.displacementMap,e.displacementScale.value=t.displacementScale,e.displacementBias.value=t.displacementBias)}(e,r)):r.isMeshDistanceMaterial?(t(e,r),function(e,t){t.displacementMap&&(e.displacementMap.value=t.displacementMap,e.displacementScale.value=t.displacementScale,e.displacementBias.value=t.displacementBias),e.referencePosition.value.copy(t.referencePosition),e.nearDistance.value=t.nearDistance,e.farDistance.value=t.farDistance}(e,r)):r.isMeshNormalMaterial?(t(e,r),function(e,t){t.bumpMap&&(e.bumpMap.value=t.bumpMap,e.bumpScale.value=t.bumpScale,t.side===m&&(e.bumpScale.value*=-1)),t.normalMap&&(e.normalMap.value=t.normalMap,e.normalScale.value.copy(t.normalScale),t.side===m&&e.normalScale.value.negate()),t.displacementMap&&(e.displacementMap.value=t.displacementMap,e.displacementScale.value=t.displacementScale,e.displacementBias.value=t.displacementBias)}(e,r)):r.isLineBasicMaterial?(function(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity}(e,r),r.isLineDashedMaterial&&function(e,t){e.dashSize.value=t.dashSize,e.totalSize.value=t.dashSize+t.gapSize,e.scale.value=t.scale}(e,r)):r.isPointsMaterial?function(e,t,n,r){let i;e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.size.value=t.size*n,e.scale.value=.5*r,t.map&&(e.map.value=t.map),t.alphaMap&&(e.alphaMap.value=t.alphaMap),t.alphaTest>0&&(e.alphaTest.value=t.alphaTest),t.map?i=t.map:t.alphaMap&&(i=t.alphaMap),void 0!==i&&(!0===i.matrixAutoUpdate&&i.updateMatrix(),e.uvTransform.value.copy(i.matrix))}(e,r,i,s):r.isSpriteMaterial?function(e,t){let n;e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.rotation.value=t.rotation,t.map&&(e.map.value=t.map),t.alphaMap&&(e.alphaMap.value=t.alphaMap),t.alphaTest>0&&(e.alphaTest.value=t.alphaTest),t.map?n=t.map:t.alphaMap&&(n=t.alphaMap),void 0!==n&&(!0===n.matrixAutoUpdate&&n.updateMatrix(),e.uvTransform.value.copy(n.matrix))}(e,r):r.isShadowMaterial?(e.color.value.copy(r.color),e.opacity.value=r.opacity):r.isShaderMaterial&&(r.uniformsNeedUpdate=!1)}}}function tl(e={}){const t=void 0!==e.canvas?e.canvas:function(){const e=In("canvas");return e.style.display="block",e}(),n=void 0!==e.context?e.context:null,i=void 0===e.depth||e.depth,s=void 0===e.stencil||e.stencil,a=void 0!==e.antialias&&e.antialias,o=void 0===e.premultipliedAlpha||e.premultipliedAlpha,l=void 0!==e.preserveDrawingBuffer&&e.preserveDrawingBuffer,c=void 0!==e.powerPreference?e.powerPreference:"default",u=void 0!==e.failIfMajorPerformanceCaveat&&e.failIfMajorPerformanceCaveat;let h;h=void 0!==e.context?n.getContextAttributes().alpha:void 0!==e.alpha&&e.alpha;let d=null,p=null;const v=[],y=[];this.domElement=t,this.debug={checkShaderErrors:!0},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.outputEncoding=Dt,this.physicallyCorrectLights=!1,this.toneMapping=Q,this.toneMappingExposure=1;const x=this;let _=!1,b=0,w=0,M=null,S=-1,E=null;const T=new qn,A=new qn;let R=null,L=t.width,C=t.height,P=1,I=null,D=null;const N=new qn(0,0,L,C),O=new qn(0,0,L,C);let z=!1;const F=new _s;let U=!1,B=!1,H=null;const k=new Pr,G=new An,V=new er,W={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function j(){return null===M?P:1}let q,X,Y,Z,J,K,$,ee,te,ne,re,ie,se,ae,oe,le,ce,ue,he,de,pe,fe,me,ge=n;function ve(e,n){for(let r=0;r0&&function(e,t,n){const r=X.isWebGL2;null===H&&(H=new Xn(1,1,{generateMipmaps:!0,type:null!==fe.convert(Pe)?Pe:Se,minFilter:we,samples:r&&!0===a?4:0})),x.getDrawingBufferSize(G),r?H.setSize(G.x,G.y):H.setSize(En(G.x),En(G.y));const i=x.getRenderTarget();x.setRenderTarget(H),x.clear();const s=x.toneMapping;x.toneMapping=Q,De(e,t,n),x.toneMapping=s,K.updateMultisampleRenderTarget(H),K.updateRenderTargetMipmap(H),x.setRenderTarget(i)}(i,t,n),r&&Y.viewport(T.copy(r)),i.length>0&&De(i,t,n),s.length>0&&De(s,t,n),o.length>0&&De(o,t,n),Y.buffers.depth.setTest(!0),Y.buffers.depth.setMask(!0),Y.buffers.color.setMask(!0),Y.setPolygonOffset(!1)}function De(e,t,n){const r=!0===t.isScene?t.overrideMaterial:null;for(let i=0,s=e.length;i0?y[y.length-1]:null,v.pop(),d=v.length>0?v[v.length-1]:null},this.getActiveCubeFace=function(){return b},this.getActiveMipmapLevel=function(){return w},this.getRenderTarget=function(){return M},this.setRenderTargetTextures=function(e,t,n){J.get(e.texture).__webglTexture=t,J.get(e.depthTexture).__webglTexture=n;const r=J.get(e);r.__hasExternalTextures=!0,r.__hasExternalTextures&&(r.__autoAllocateDepthBuffer=void 0===n,r.__autoAllocateDepthBuffer||!0===q.has("WEBGL_multisampled_render_to_texture")&&(console.warn("THREE.WebGLRenderer: Render-to-texture extension was disabled because an external texture was provided"),r.__useRenderToTexture=!1))},this.setRenderTargetFramebuffer=function(e,t){const n=J.get(e);n.__webglFramebuffer=t,n.__useDefaultFramebuffer=void 0===t},this.setRenderTarget=function(e,t=0,n=0){M=e,b=t,w=n;let r=!0;if(e){const t=J.get(e);void 0!==t.__useDefaultFramebuffer?(Y.bindFramebuffer(36160,null),r=!1):void 0===t.__webglFramebuffer?K.setupRenderTarget(e):t.__hasExternalTextures&&K.rebindTextures(e,J.get(e.texture).__webglTexture,J.get(e.depthTexture).__webglTexture)}let i=null,s=!1,a=!1;if(e){const n=e.texture;(n.isData3DTexture||n.isDataArrayTexture)&&(a=!0);const r=J.get(e).__webglFramebuffer;e.isWebGLCubeRenderTarget?(i=r[t],s=!0):i=X.isWebGL2&&e.samples>0&&!1===K.useMultisampledRTT(e)?J.get(e).__webglMultisampledFramebuffer:r,T.copy(e.viewport),A.copy(e.scissor),R=e.scissorTest}else T.copy(N).multiplyScalar(P).floor(),A.copy(O).multiplyScalar(P).floor(),R=z;if(Y.bindFramebuffer(36160,i)&&X.drawBuffers&&r&&Y.drawBuffers(e,i),Y.viewport(T),Y.scissor(A),Y.setScissorTest(R),s){const r=J.get(e.texture);ge.framebufferTexture2D(36160,36064,34069+t,r.__webglTexture,n)}else if(a){const r=J.get(e.texture),i=t||0;ge.framebufferTextureLayer(36160,36064,r.__webglTexture,n||0,i)}S=-1},this.readRenderTargetPixels=function(e,t,n,r,i,s,a){if(!e||!e.isWebGLRenderTarget)return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");let o=J.get(e).__webglFramebuffer;if(e.isWebGLCubeRenderTarget&&void 0!==a&&(o=o[a]),o){Y.bindFramebuffer(36160,o);try{const a=e.texture,o=a.format,l=a.type;if(o!==Fe&&fe.convert(o)!==ge.getParameter(35739))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");const c=l===Pe&&(q.has("EXT_color_buffer_half_float")||X.isWebGL2&&q.has("EXT_color_buffer_float"));if(!(l===Se||fe.convert(l)===ge.getParameter(35738)||l===Ce&&(X.isWebGL2||q.has("OES_texture_float")||q.has("WEBGL_color_buffer_float"))||c))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");36053===ge.checkFramebufferStatus(36160)?t>=0&&t<=e.width-r&&n>=0&&n<=e.height-i&&ge.readPixels(t,n,r,i,fe.convert(o),fe.convert(l),s):console.error("THREE.WebGLRenderer.readRenderTargetPixels: readPixels from renderTarget failed. Framebuffer not complete.")}finally{const e=null!==M?J.get(M).__webglFramebuffer:null;Y.bindFramebuffer(36160,e)}}},this.copyFramebufferToTexture=function(e,t,n=0){if(!0!==t.isFramebufferTexture)return void console.error("THREE.WebGLRenderer: copyFramebufferToTexture() can only be used with FramebufferTexture.");const r=Math.pow(2,-n),i=Math.floor(t.image.width*r),s=Math.floor(t.image.height*r);K.setTexture2D(t,0),ge.copyTexSubImage2D(3553,n,0,0,e.x,e.y,i,s),Y.unbindTexture()},this.copyTextureToTexture=function(e,t,n,r=0){const i=t.image.width,s=t.image.height,a=fe.convert(n.format),o=fe.convert(n.type);K.setTexture2D(n,0),ge.pixelStorei(37440,n.flipY),ge.pixelStorei(37441,n.premultiplyAlpha),ge.pixelStorei(3317,n.unpackAlignment),t.isDataTexture?ge.texSubImage2D(3553,r,e.x,e.y,i,s,a,o,t.image.data):t.isCompressedTexture?ge.compressedTexSubImage2D(3553,r,e.x,e.y,t.mipmaps[0].width,t.mipmaps[0].height,a,t.mipmaps[0].data):ge.texSubImage2D(3553,r,e.x,e.y,a,o,t.image),0===r&&n.generateMipmaps&&ge.generateMipmap(3553),Y.unbindTexture()},this.copyTextureToTexture3D=function(e,t,n,r,i=0){if(x.isWebGL1Renderer)return void console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: can only be used with WebGL2.");const s=e.max.x-e.min.x+1,a=e.max.y-e.min.y+1,o=e.max.z-e.min.z+1,l=fe.convert(r.format),c=fe.convert(r.type);let u;if(r.isData3DTexture)K.setTexture3D(r,0),u=32879;else{if(!r.isDataArrayTexture)return void console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");K.setTexture2DArray(r,0),u=35866}ge.pixelStorei(37440,r.flipY),ge.pixelStorei(37441,r.premultiplyAlpha),ge.pixelStorei(3317,r.unpackAlignment);const h=ge.getParameter(3314),d=ge.getParameter(32878),p=ge.getParameter(3316),f=ge.getParameter(3315),m=ge.getParameter(32877),g=n.isCompressedTexture?n.mipmaps[0]:n.image;ge.pixelStorei(3314,g.width),ge.pixelStorei(32878,g.height),ge.pixelStorei(3316,e.min.x),ge.pixelStorei(3315,e.min.y),ge.pixelStorei(32877,e.min.z),n.isDataTexture||n.isData3DTexture?ge.texSubImage3D(u,i,t.x,t.y,t.z,s,a,o,l,c,g.data):n.isCompressedTexture?(console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."),ge.compressedTexSubImage3D(u,i,t.x,t.y,t.z,s,a,o,l,g.data)):ge.texSubImage3D(u,i,t.x,t.y,t.z,s,a,o,l,c,g),ge.pixelStorei(3314,h),ge.pixelStorei(32878,d),ge.pixelStorei(3316,p),ge.pixelStorei(3315,f),ge.pixelStorei(32877,m),0===i&&r.generateMipmaps&&ge.generateMipmap(u),Y.unbindTexture()},this.initTexture=function(e){K.setTexture2D(e,0),Y.unbindTexture()},this.resetState=function(){b=0,w=0,M=null,Y.reset(),me.reset()},"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}tl.prototype.isWebGLRenderer=!0;class nl extends tl{}nl.prototype.isWebGL1Renderer=!0;class rl{constructor(e,t=25e-5){this.name="",this.color=new Bn(e),this.density=t}clone(){return new rl(this.color,this.density)}toJSON(){return{type:"FogExp2",color:this.color.getHex(),density:this.density}}}rl.prototype.isFogExp2=!0;class il{constructor(e,t=1,n=1e3){this.name="",this.color=new Bn(e),this.near=t,this.far=n}clone(){return new il(this.color,this.near,this.far)}toJSON(){return{type:"Fog",color:this.color.getHex(),near:this.near,far:this.far}}}il.prototype.isFog=!0;class sl extends ni{constructor(){super(),this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.overrideMaterial=null,this.autoUpdate=!0,"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(e,t){return super.copy(e,t),null!==e.background&&(this.background=e.background.clone()),null!==e.environment&&(this.environment=e.environment.clone()),null!==e.fog&&(this.fog=e.fog.clone()),null!==e.overrideMaterial&&(this.overrideMaterial=e.overrideMaterial.clone()),this.autoUpdate=e.autoUpdate,this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){const t=super.toJSON(e);return null!==this.fog&&(t.object.fog=this.fog.toJSON()),t}}sl.prototype.isScene=!0;class al{constructor(e,t){this.array=e,this.stride=t,this.count=void 0!==e?e.length/t:0,this.usage=tn,this.updateRange={offset:0,count:-1},this.version=0,this.uuid=xn()}onUploadCallback(){}set needsUpdate(e){!0===e&&this.version++}setUsage(e){return this.usage=e,this}copy(e){return this.array=new e.array.constructor(e.array),this.count=e.count,this.stride=e.stride,this.usage=e.usage,this}copyAt(e,t,n){e*=this.stride,n*=t.stride;for(let r=0,i=this.stride;re.far||t.push({distance:o,point:hl.clone(),uv:pi.getUV(hl,vl,yl,xl,_l,bl,wl,new An),face:null,object:this})}copy(e){return super.copy(e),void 0!==e.center&&this.center.copy(e.center),this.material=e.material,this}}function Sl(e,t,n,r,i,s){fl.subVectors(e,n).addScalar(.5).multiply(r),void 0!==i?(ml.x=s*fl.x-i*fl.y,ml.y=i*fl.x+s*fl.y):ml.copy(fl),e.copy(t),e.x+=ml.x,e.y+=ml.y,e.applyMatrix4(gl)}Ml.prototype.isSprite=!0;const El=new er,Tl=new er;class Al extends ni{constructor(){super(),this._currentLevel=0,this.type="LOD",Object.defineProperties(this,{levels:{enumerable:!0,value:[]},isLOD:{value:!0}}),this.autoUpdate=!0}copy(e){super.copy(e,!1);const t=e.levels;for(let e=0,n=t.length;e0){let n,r;for(n=1,r=t.length;n0){El.setFromMatrixPosition(this.matrixWorld);const n=e.ray.origin.distanceTo(El);this.getObjectForDistance(n).raycast(e,t)}}update(e){const t=this.levels;if(t.length>1){El.setFromMatrixPosition(e.matrixWorld),Tl.setFromMatrixPosition(this.matrixWorld);const n=El.distanceTo(Tl)/e.zoom;let r,i;for(t[0].object.visible=!0,r=1,i=t.length;r=t[r].distance;r++)t[r-1].object.visible=!1,t[r].object.visible=!0;for(this._currentLevel=r-1;ro)continue;h.applyMatrix4(this.matrixWorld);const d=e.ray.origin.distanceTo(h);de.far||t.push({distance:d,point:u.clone().applyMatrix4(this.matrixWorld),index:n,face:null,faceIndex:null,object:this})}else for(let n=Math.max(0,s.start),r=Math.min(i.count,s.start+s.count)-1;no)continue;h.applyMatrix4(this.matrixWorld);const r=e.ray.origin.distanceTo(h);re.far||t.push({distance:r,point:u.clone().applyMatrix4(this.matrixWorld),index:n,face:null,faceIndex:null,object:this})}}else n.isGeometry&&console.error("THREE.Line.raycast() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.")}updateMorphTargets(){const e=this.geometry;if(e.isBufferGeometry){const t=e.morphAttributes,n=Object.keys(t);if(n.length>0){const e=t[n[0]];if(void 0!==e){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let t=0,n=e.length;t0&&console.error("THREE.Line.updateMorphTargets() does not support THREE.Geometry. Use THREE.BufferGeometry instead.")}}}Kl.prototype.isLine=!0;const Ql=new er,$l=new er;class ec extends Kl{constructor(e,t){super(e,t),this.type="LineSegments"}computeLineDistances(){const e=this.geometry;if(e.isBufferGeometry)if(null===e.index){const t=e.attributes.position,n=[];for(let e=0,r=t.count;e0){const e=t[n[0]];if(void 0!==e){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let t=0,n=e.length;t0&&console.error("THREE.Points.updateMorphTargets() does not support THREE.Geometry. Use THREE.BufferGeometry instead.")}}}function lc(e,t,n,r,i,s,a){const o=ic.distanceSqToPoint(e);if(oi.far)return;s.push({distance:l,distanceToRay:Math.sqrt(o),point:n,index:t,face:null,object:a})}}oc.prototype.isPoints=!0;class cc extends jn{constructor(e,t,n,r,i,s,a,o,l){super(e,t,n,r,i,s,a,o,l),this.minFilter=void 0!==s?s:xe,this.magFilter=void 0!==i?i:xe,this.generateMipmaps=!1;const c=this;"requestVideoFrameCallback"in e&&e.requestVideoFrameCallback((function t(){c.needsUpdate=!0,e.requestVideoFrameCallback(t)}))}clone(){return new this.constructor(this.image).copy(this)}update(){const e=this.image;!1=="requestVideoFrameCallback"in e&&e.readyState>=e.HAVE_CURRENT_DATA&&(this.needsUpdate=!0)}}cc.prototype.isVideoTexture=!0;class uc extends jn{constructor(e,t,n){super({width:e,height:t}),this.format=n,this.magFilter=fe,this.minFilter=fe,this.generateMipmaps=!1,this.needsUpdate=!0}}uc.prototype.isFramebufferTexture=!0;class hc extends jn{constructor(e,t,n,r,i,s,a,o,l,c,u,h){super(null,s,a,o,l,c,r,i,u,h),this.image={width:t,height:n},this.mipmaps=e,this.flipY=!1,this.generateMipmaps=!1}}hc.prototype.isCompressedTexture=!0;class dc extends jn{constructor(e,t,n,r,i,s,a,o,l){super(e,t,n,r,i,s,a,o,l),this.needsUpdate=!0}}dc.prototype.isCanvasTexture=!0;class pc extends Fi{constructor(e=1,t=8,n=0,r=2*Math.PI){super(),this.type="CircleGeometry",this.parameters={radius:e,segments:t,thetaStart:n,thetaLength:r},t=Math.max(3,t);const i=[],s=[],a=[],o=[],l=new er,c=new An;s.push(0,0,0),a.push(0,0,1),o.push(.5,.5);for(let i=0,u=3;i<=t;i++,u+=3){const h=n+i/t*r;l.x=e*Math.cos(h),l.y=e*Math.sin(h),s.push(l.x,l.y,l.z),a.push(0,0,1),c.x=(s[u]/e+1)/2,c.y=(s[u+1]/e+1)/2,o.push(c.x,c.y)}for(let e=1;e<=t;e++)i.push(e,e+1,0);this.setIndex(i),this.setAttribute("position",new Ri(s,3)),this.setAttribute("normal",new Ri(a,3)),this.setAttribute("uv",new Ri(o,2))}static fromJSON(e){return new pc(e.radius,e.segments,e.thetaStart,e.thetaLength)}}class fc extends Fi{constructor(e=1,t=1,n=1,r=8,i=1,s=!1,a=0,o=2*Math.PI){super(),this.type="CylinderGeometry",this.parameters={radiusTop:e,radiusBottom:t,height:n,radialSegments:r,heightSegments:i,openEnded:s,thetaStart:a,thetaLength:o};const l=this;r=Math.floor(r),i=Math.floor(i);const c=[],u=[],h=[],d=[];let p=0;const f=[],m=n/2;let g=0;function v(n){const i=p,s=new An,f=new er;let v=0;const y=!0===n?e:t,x=!0===n?1:-1;for(let e=1;e<=r;e++)u.push(0,m*x,0),h.push(0,x,0),d.push(.5,.5),p++;const _=p;for(let e=0;e<=r;e++){const t=e/r*o+a,n=Math.cos(t),i=Math.sin(t);f.x=y*i,f.y=m*x,f.z=y*n,u.push(f.x,f.y,f.z),h.push(0,x,0),s.x=.5*n+.5,s.y=.5*i*x+.5,d.push(s.x,s.y),p++}for(let e=0;e0&&v(!0),t>0&&v(!1)),this.setIndex(c),this.setAttribute("position",new Ri(u,3)),this.setAttribute("normal",new Ri(h,3)),this.setAttribute("uv",new Ri(d,2))}static fromJSON(e){return new fc(e.radiusTop,e.radiusBottom,e.height,e.radialSegments,e.heightSegments,e.openEnded,e.thetaStart,e.thetaLength)}}class mc extends fc{constructor(e=1,t=1,n=8,r=1,i=!1,s=0,a=2*Math.PI){super(0,e,t,n,r,i,s,a),this.type="ConeGeometry",this.parameters={radius:e,height:t,radialSegments:n,heightSegments:r,openEnded:i,thetaStart:s,thetaLength:a}}static fromJSON(e){return new mc(e.radius,e.height,e.radialSegments,e.heightSegments,e.openEnded,e.thetaStart,e.thetaLength)}}class gc extends Fi{constructor(e=[],t=[],n=1,r=0){super(),this.type="PolyhedronGeometry",this.parameters={vertices:e,indices:t,radius:n,detail:r};const i=[],s=[];function a(e,t,n,r){const i=r+1,s=[];for(let r=0;r<=i;r++){s[r]=[];const a=e.clone().lerp(n,r/i),o=t.clone().lerp(n,r/i),l=i-r;for(let e=0;e<=l;e++)s[r][e]=0===e&&r===i?a:a.clone().lerp(o,e/l)}for(let e=0;e.9&&a<.1&&(t<.2&&(s[e+0]+=1),n<.2&&(s[e+2]+=1),r<.2&&(s[e+4]+=1))}}()}(),this.setAttribute("position",new Ri(i,3)),this.setAttribute("normal",new Ri(i.slice(),3)),this.setAttribute("uv",new Ri(s,2)),0===r?this.computeVertexNormals():this.normalizeNormals()}static fromJSON(e){return new gc(e.vertices,e.indices,e.radius,e.details)}}class vc extends gc{constructor(e=1,t=0){const n=(1+Math.sqrt(5))/2,r=1/n;super([-1,-1,-1,-1,-1,1,-1,1,-1,-1,1,1,1,-1,-1,1,-1,1,1,1,-1,1,1,1,0,-r,-n,0,-r,n,0,r,-n,0,r,n,-r,-n,0,-r,n,0,r,-n,0,r,n,0,-n,0,-r,n,0,-r,-n,0,r,n,0,r],[3,11,7,3,7,15,3,15,13,7,19,17,7,17,6,7,6,15,17,4,8,17,8,10,17,10,6,8,0,16,8,16,2,8,2,10,0,12,1,0,1,18,0,18,16,6,10,2,6,2,13,6,13,15,2,16,18,2,18,3,2,3,13,18,1,9,18,9,11,18,11,3,4,14,12,4,12,0,4,0,8,11,9,5,11,5,19,11,19,7,19,5,14,19,14,4,19,4,17,1,12,14,1,14,5,1,5,9],e,t),this.type="DodecahedronGeometry",this.parameters={radius:e,detail:t}}static fromJSON(e){return new vc(e.radius,e.detail)}}const yc=new er,xc=new er,_c=new er,bc=new pi;class wc extends Fi{constructor(e=null,t=1){if(super(),this.type="EdgesGeometry",this.parameters={geometry:e,thresholdAngle:t},null!==e){const n=4,r=Math.pow(10,n),i=Math.cos(vn*t),s=e.getIndex(),a=e.getAttribute("position"),o=s?s.count:a.count,l=[0,0,0],c=["a","b","c"],u=new Array(3),h={},d=[];for(let e=0;e0)){l=r;break}l=r-1}if(r=l,n[r]===s)return r/(i-1);const c=n[r];return(r+(s-c)/(n[r+1]-c))/(i-1)}getTangent(e,t){const n=1e-4;let r=e-n,i=e+n;r<0&&(r=0),i>1&&(i=1);const s=this.getPoint(r),a=this.getPoint(i),o=t||(s.isVector2?new An:new er);return o.copy(a).sub(s).normalize(),o}getTangentAt(e,t){const n=this.getUtoTmapping(e);return this.getTangent(n,t)}computeFrenetFrames(e,t){const n=new er,r=[],i=[],s=[],a=new er,o=new Pr;for(let t=0;t<=e;t++){const n=t/e;r[t]=this.getTangentAt(n,new er)}i[0]=new er,s[0]=new er;let l=Number.MAX_VALUE;const c=Math.abs(r[0].x),u=Math.abs(r[0].y),h=Math.abs(r[0].z);c<=l&&(l=c,n.set(1,0,0)),u<=l&&(l=u,n.set(0,1,0)),h<=l&&n.set(0,0,1),a.crossVectors(r[0],n).normalize(),i[0].crossVectors(r[0],a),s[0].crossVectors(r[0],i[0]);for(let t=1;t<=e;t++){if(i[t]=i[t-1].clone(),s[t]=s[t-1].clone(),a.crossVectors(r[t-1],r[t]),a.length()>Number.EPSILON){a.normalize();const e=Math.acos(_n(r[t-1].dot(r[t]),-1,1));i[t].applyMatrix4(o.makeRotationAxis(a,e))}s[t].crossVectors(r[t],i[t])}if(!0===t){let t=Math.acos(_n(i[0].dot(i[e]),-1,1));t/=e,r[0].dot(a.crossVectors(i[0],i[e]))>0&&(t=-t);for(let n=1;n<=e;n++)i[n].applyMatrix4(o.makeRotationAxis(r[n],t*n)),s[n].crossVectors(r[n],i[n])}return{tangents:r,normals:i,binormals:s}}clone(){return(new this.constructor).copy(this)}copy(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}toJSON(){const e={metadata:{version:4.5,type:"Curve",generator:"Curve.toJSON"}};return e.arcLengthDivisions=this.arcLengthDivisions,e.type=this.type,e}fromJSON(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}}class Sc extends Mc{constructor(e=0,t=0,n=1,r=1,i=0,s=2*Math.PI,a=!1,o=0){super(),this.type="EllipseCurve",this.aX=e,this.aY=t,this.xRadius=n,this.yRadius=r,this.aStartAngle=i,this.aEndAngle=s,this.aClockwise=a,this.aRotation=o}getPoint(e,t){const n=t||new An,r=2*Math.PI;let i=this.aEndAngle-this.aStartAngle;const s=Math.abs(i)r;)i-=r;i0?0:(Math.floor(Math.abs(l)/i)+1)*i:0===c&&l===i-1&&(l=i-2,c=1),this.closed||l>0?a=r[(l-1)%i]:(Ac.subVectors(r[0],r[1]).add(r[0]),a=Ac);const u=r[l%i],h=r[(l+1)%i];if(this.closed||l+2r.length-2?r.length-1:s+1],u=r[s>r.length-3?r.length-1:s+2];return n.set(Ic(a,o.x,l.x,c.x,u.x),Ic(a,o.y,l.y,c.y,u.y)),n}copy(e){super.copy(e),this.points=[];for(let t=0,n=e.points.length;t=n){const e=r[i]-n,s=this.curves[i],a=s.getLength(),o=0===a?0:1-e/a;return s.getPointAt(o,t)}i++}return null}getLength(){const e=this.getCurveLengths();return e[e.length-1]}updateArcLengths(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()}getCurveLengths(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;const e=[];let t=0;for(let n=0,r=this.curves.length;n1&&!t[t.length-1].equals(t[0])&&t.push(t[0]),t}copy(e){super.copy(e),this.curves=[];for(let t=0,n=e.curves.length;t0){const e=l.getPoint(0);e.equals(this.currentPoint)||this.lineTo(e.x,e.y)}this.curves.push(l);const c=l.getPoint(1);return this.currentPoint.copy(c),this}copy(e){return super.copy(e),this.currentPoint.copy(e.currentPoint),this}toJSON(){const e=super.toJSON();return e.currentPoint=this.currentPoint.toArray(),e}fromJSON(e){return super.fromJSON(e),this.currentPoint.fromArray(e.currentPoint),this}}class jc extends Wc{constructor(e){super(e),this.uuid=xn(),this.type="Shape",this.holes=[]}getPointsHoles(e){const t=[];for(let n=0,r=this.holes.length;n0)for(s=t;s=t;s-=r)a=pu(s,e[s],e[s+1],a);return a&&ou(a,a.next)&&(fu(a),a=a.next),a}function Xc(e,t){if(!e)return e;t||(t=e);let n,r=e;do{if(n=!1,r.steiner||!ou(r,r.next)&&0!==au(r.prev,r,r.next))r=r.next;else{if(fu(r),r=t=r.prev,r===r.next)break;n=!0}}while(n||r!==t);return t}function Yc(e,t,n,r,i,s,a){if(!e)return;!a&&s&&function(e,t,n,r){let i=e;do{null===i.z&&(i.z=nu(i.x,i.y,t,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,function(e){let t,n,r,i,s,a,o,l,c=1;do{for(n=e,e=null,s=null,a=0;n;){for(a++,r=n,o=0,t=0;t0||l>0&&r;)0!==o&&(0===l||!r||n.z<=r.z)?(i=n,n=n.nextZ,o--):(i=r,r=r.nextZ,l--),s?s.nextZ=i:e=i,i.prevZ=s,s=i;n=r}s.nextZ=null,c*=2}while(a>1)}(i)}(e,r,i,s);let o,l,c=e;for(;e.prev!==e.next;)if(o=e.prev,l=e.next,s?Jc(e,r,i,s):Zc(e))t.push(o.i/n),t.push(e.i/n),t.push(l.i/n),fu(e),e=l.next,c=l.next;else if((e=l)===c){a?1===a?Yc(e=Kc(Xc(e),t,n),t,n,r,i,s,2):2===a&&Qc(e,t,n,r,i,s):Yc(Xc(e),t,n,r,i,s,1);break}}function Zc(e){const t=e.prev,n=e,r=e.next;if(au(t,n,r)>=0)return!1;let i=e.next.next;for(;i!==e.prev;){if(iu(t.x,t.y,n.x,n.y,r.x,r.y,i.x,i.y)&&au(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function Jc(e,t,n,r){const i=e.prev,s=e,a=e.next;if(au(i,s,a)>=0)return!1;const o=i.xs.x?i.x>a.x?i.x:a.x:s.x>a.x?s.x:a.x,u=i.y>s.y?i.y>a.y?i.y:a.y:s.y>a.y?s.y:a.y,h=nu(o,l,t,n,r),d=nu(c,u,t,n,r);let p=e.prevZ,f=e.nextZ;for(;p&&p.z>=h&&f&&f.z<=d;){if(p!==e.prev&&p!==e.next&&iu(i.x,i.y,s.x,s.y,a.x,a.y,p.x,p.y)&&au(p.prev,p,p.next)>=0)return!1;if(p=p.prevZ,f!==e.prev&&f!==e.next&&iu(i.x,i.y,s.x,s.y,a.x,a.y,f.x,f.y)&&au(f.prev,f,f.next)>=0)return!1;f=f.nextZ}for(;p&&p.z>=h;){if(p!==e.prev&&p!==e.next&&iu(i.x,i.y,s.x,s.y,a.x,a.y,p.x,p.y)&&au(p.prev,p,p.next)>=0)return!1;p=p.prevZ}for(;f&&f.z<=d;){if(f!==e.prev&&f!==e.next&&iu(i.x,i.y,s.x,s.y,a.x,a.y,f.x,f.y)&&au(f.prev,f,f.next)>=0)return!1;f=f.nextZ}return!0}function Kc(e,t,n){let r=e;do{const i=r.prev,s=r.next.next;!ou(i,s)&&lu(i,r,r.next,s)&&hu(i,s)&&hu(s,i)&&(t.push(i.i/n),t.push(r.i/n),t.push(s.i/n),fu(r),fu(r.next),r=e=s),r=r.next}while(r!==e);return Xc(r)}function Qc(e,t,n,r,i,s){let a=e;do{let e=a.next.next;for(;e!==a.prev;){if(a.i!==e.i&&su(a,e)){let o=du(a,e);return a=Xc(a,a.next),o=Xc(o,o.next),Yc(a,t,n,r,i,s),void Yc(o,t,n,r,i,s)}e=e.next}a=a.next}while(a!==e)}function $c(e,t){return e.x-t.x}function eu(e,t){if(t=function(e,t){let n=t;const r=e.x,i=e.y;let s,a=-1/0;do{if(i<=n.y&&i>=n.next.y&&n.next.y!==n.y){const e=n.x+(i-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(e<=r&&e>a){if(a=e,e===r){if(i===n.y)return n;if(i===n.next.y)return n.next}s=n.x=n.x&&n.x>=l&&r!==n.x&&iu(is.x||n.x===s.x&&tu(s,n)))&&(s=n,h=u)),n=n.next}while(n!==o);return s}(e,t),t){const n=du(t,e);Xc(t,t.next),Xc(n,n.next)}}function tu(e,t){return au(e.prev,e,t.prev)<0&&au(t.next,e,e.next)<0}function nu(e,t,n,r,i){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*i)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-r)*i)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function ru(e){let t=e,n=e;do{(t.x=0&&(e-a)*(r-o)-(n-a)*(t-o)>=0&&(n-a)*(s-o)-(i-a)*(r-o)>=0}function su(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){let n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&lu(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}(e,t)&&(hu(e,t)&&hu(t,e)&&function(e,t){let n=e,r=!1;const i=(e.x+t.x)/2,s=(e.y+t.y)/2;do{n.y>s!=n.next.y>s&&n.next.y!==n.y&&i<(n.next.x-n.x)*(s-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==e);return r}(e,t)&&(au(e.prev,e,t.prev)||au(e,t.prev,t))||ou(e,t)&&au(e.prev,e,e.next)>0&&au(t.prev,t,t.next)>0)}function au(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function ou(e,t){return e.x===t.x&&e.y===t.y}function lu(e,t,n,r){const i=uu(au(e,t,n)),s=uu(au(e,t,r)),a=uu(au(n,r,e)),o=uu(au(n,r,t));return i!==s&&a!==o||!(0!==i||!cu(e,n,t))||!(0!==s||!cu(e,r,t))||!(0!==a||!cu(n,e,r))||!(0!==o||!cu(n,t,r))}function cu(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function uu(e){return e>0?1:e<0?-1:0}function hu(e,t){return au(e.prev,e,e.next)<0?au(e,t,e.next)>=0&&au(e,e.prev,t)>=0:au(e,t,e.prev)<0||au(e,e.next,t)<0}function du(e,t){const n=new mu(e.i,e.x,e.y),r=new mu(t.i,t.x,t.y),i=e.next,s=t.prev;return e.next=t,t.prev=e,n.next=i,i.prev=n,r.next=n,n.prev=r,s.next=r,r.prev=s,r}function pu(e,t,n,r){const i=new mu(e,t,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function fu(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function mu(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}class gu{static area(e){const t=e.length;let n=0;for(let r=t-1,i=0;i80*n){o=c=e[0],l=u=e[1];for(let t=n;tc&&(c=h),d>u&&(u=d);p=Math.max(c-o,u-l),p=0!==p?1/p:0}return Yc(s,a,n,o,l,p),a}(n,r);for(let e=0;e2&&e[t-1].equals(e[0])&&e.pop()}function yu(e,t){for(let n=0;nNumber.EPSILON){const h=Math.sqrt(u),d=Math.sqrt(l*l+c*c),p=t.x-o/h,f=t.y+a/h,m=((n.x-c/d-p)*c-(n.y+l/d-f)*l)/(a*c-o*l);r=p+a*m-e.x,i=f+o*m-e.y;const g=r*r+i*i;if(g<=2)return new An(r,i);s=Math.sqrt(g/2)}else{let e=!1;a>Number.EPSILON?l>Number.EPSILON&&(e=!0):a<-Number.EPSILON?l<-Number.EPSILON&&(e=!0):Math.sign(o)===Math.sign(c)&&(e=!0),e?(r=-o,i=a,s=Math.sqrt(u)):(r=a,i=o,s=Math.sqrt(u/2))}return new An(r/s,i/s)}const P=[];for(let e=0,t=T.length,n=t-1,r=e+1;e=0;e--){const t=e/p,n=u*Math.cos(t*Math.PI/2),r=h*Math.sin(t*Math.PI/2)+d;for(let e=0,t=T.length;e=0;){const r=n;let i=n-1;i<0&&(i=e.length-1);for(let e=0,n=o+2*p;e0)&&d.push(t,i,l),(e!==n-1||o0!=e>0&&this.version++,this._sheen=e}get clearcoat(){return this._clearcoat}set clearcoat(e){this._clearcoat>0!=e>0&&this.version++,this._clearcoat=e}get transmission(){return this._transmission}set transmission(e){this._transmission>0!=e>0&&this.version++,this._transmission=e}copy(e){return super.copy(e),this.defines={STANDARD:"",PHYSICAL:""},this.clearcoat=e.clearcoat,this.clearcoatMap=e.clearcoatMap,this.clearcoatRoughness=e.clearcoatRoughness,this.clearcoatRoughnessMap=e.clearcoatRoughnessMap,this.clearcoatNormalMap=e.clearcoatNormalMap,this.clearcoatNormalScale.copy(e.clearcoatNormalScale),this.ior=e.ior,this.sheen=e.sheen,this.sheenColor.copy(e.sheenColor),this.sheenColorMap=e.sheenColorMap,this.sheenRoughness=e.sheenRoughness,this.sheenRoughnessMap=e.sheenRoughnessMap,this.transmission=e.transmission,this.transmissionMap=e.transmissionMap,this.thickness=e.thickness,this.thicknessMap=e.thicknessMap,this.attenuationDistance=e.attenuationDistance,this.attenuationColor.copy(e.attenuationColor),this.specularIntensity=e.specularIntensity,this.specularIntensityMap=e.specularIntensityMap,this.specularColor.copy(e.specularColor),this.specularColorMap=e.specularColorMap,this}}Fu.prototype.isMeshPhysicalMaterial=!0;class Uu extends mi{constructor(e){super(),this.type="MeshPhongMaterial",this.color=new Bn(16777215),this.specular=new Bn(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Bn(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Ft,this.normalScale=new An(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=Z,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.specular.copy(e.specular),this.shininess=e.shininess,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this}}Uu.prototype.isMeshPhongMaterial=!0;class Bu extends mi{constructor(e){super(),this.defines={TOON:""},this.type="MeshToonMaterial",this.color=new Bn(16777215),this.map=null,this.gradientMap=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Bn(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Ft,this.normalScale=new An(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.gradientMap=e.gradientMap,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.alphaMap=e.alphaMap,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this}}Bu.prototype.isMeshToonMaterial=!0;class Hu extends mi{constructor(e){super(),this.type="MeshNormalMaterial",this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Ft,this.normalScale=new An(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.flatShading=!1,this.setValues(e)}copy(e){return super.copy(e),this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.flatShading=e.flatShading,this}}Hu.prototype.isMeshNormalMaterial=!0;class ku extends mi{constructor(e){super(),this.type="MeshLambertMaterial",this.color=new Bn(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Bn(0),this.emissiveIntensity=1,this.emissiveMap=null,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=Z,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this}}ku.prototype.isMeshLambertMaterial=!0;class Gu extends mi{constructor(e){super(),this.defines={MATCAP:""},this.type="MeshMatcapMaterial",this.color=new Bn(16777215),this.matcap=null,this.map=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Ft,this.normalScale=new An(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.flatShading=!1,this.setValues(e)}copy(e){return super.copy(e),this.defines={MATCAP:""},this.color.copy(e.color),this.matcap=e.matcap,this.map=e.map,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.alphaMap=e.alphaMap,this.flatShading=e.flatShading,this}}Gu.prototype.isMeshMatcapMaterial=!0;class Vu extends jl{constructor(e){super(),this.type="LineDashedMaterial",this.scale=1,this.dashSize=3,this.gapSize=1,this.setValues(e)}copy(e){return super.copy(e),this.scale=e.scale,this.dashSize=e.dashSize,this.gapSize=e.gapSize,this}}Vu.prototype.isLineDashedMaterial=!0;const Wu={ShadowMaterial:Nu,SpriteMaterial:cl,RawShaderMaterial:Ou,ShaderMaterial:os,PointsMaterial:nc,MeshPhysicalMaterial:Fu,MeshStandardMaterial:zu,MeshPhongMaterial:Uu,MeshToonMaterial:Bu,MeshNormalMaterial:Hu,MeshLambertMaterial:ku,MeshDepthMaterial:Ho,MeshDistanceMaterial:ko,MeshBasicMaterial:gi,MeshMatcapMaterial:Gu,LineDashedMaterial:Vu,LineBasicMaterial:jl,Material:mi};mi.fromType=function(e){return new Wu[e]};const ju={arraySlice:function(e,t,n){return ju.isTypedArray(e)?new e.constructor(e.subarray(t,void 0!==n?n:e.length)):e.slice(t,n)},convertArray:function(e,t,n){return!e||!n&&e.constructor===t?e:"number"==typeof t.BYTES_PER_ELEMENT?new t(e):Array.prototype.slice.call(e)},isTypedArray:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},getKeyframeOrder:function(e){const t=e.length,n=new Array(t);for(let e=0;e!==t;++e)n[e]=e;return n.sort((function(t,n){return e[t]-e[n]})),n},sortedArray:function(e,t,n){const r=e.length,i=new e.constructor(r);for(let s=0,a=0;a!==r;++s){const r=n[s]*t;for(let n=0;n!==t;++n)i[a++]=e[r+n]}return i},flattenJSON:function(e,t,n,r){let i=1,s=e[0];for(;void 0!==s&&void 0===s[r];)s=e[i++];if(void 0===s)return;let a=s[r];if(void 0!==a)if(Array.isArray(a))do{a=s[r],void 0!==a&&(t.push(s.time),n.push.apply(n,a)),s=e[i++]}while(void 0!==s);else if(void 0!==a.toArray)do{a=s[r],void 0!==a&&(t.push(s.time),a.toArray(n,n.length)),s=e[i++]}while(void 0!==s);else do{a=s[r],void 0!==a&&(t.push(s.time),n.push(a)),s=e[i++]}while(void 0!==s)},subclip:function(e,t,n,r,i=30){const s=e.clone();s.name=t;const a=[];for(let e=0;e=r)){l.push(t.times[e]);for(let n=0;ns.tracks[e].times[0]&&(o=s.tracks[e].times[0]);for(let e=0;e=r.times[h]){const e=h*l+o,t=e+l-o;d=ju.arraySlice(r.values,e,t)}else{const e=r.createInterpolant(),t=o,n=l-o;e.evaluate(s),d=ju.arraySlice(e.resultBuffer,t,n)}"quaternion"===i&&(new $n).fromArray(d).normalize().conjugate().toArray(d);const p=a.times.length;for(let e=0;e=i)break e;{const a=t[1];e=i)break t}s=n,n=0}}for(;n>>1;et;)--s;if(++s,0!==i||s!==r){i>=s&&(s=Math.max(s,1),i=s-1);const e=this.getValueSize();this.times=ju.arraySlice(n,i,s),this.values=ju.arraySlice(this.values,i*e,s*e)}return this}validate(){let e=!0;const t=this.getValueSize();t-Math.floor(t)!=0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),e=!1);const n=this.times,r=this.values,i=n.length;0===i&&(console.error("THREE.KeyframeTrack: Track is empty.",this),e=!1);let s=null;for(let t=0;t!==i;t++){const r=n[t];if("number"==typeof r&&isNaN(r)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,t,r),e=!1;break}if(null!==s&&s>r){console.error("THREE.KeyframeTrack: Out of order keys.",this,t,r,s),e=!1;break}s=r}if(void 0!==r&&ju.isTypedArray(r))for(let t=0,n=r.length;t!==n;++t){const n=r[t];if(isNaN(n)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,t,n),e=!1;break}}return e}optimize(){const e=ju.arraySlice(this.times),t=ju.arraySlice(this.values),n=this.getValueSize(),r=this.getInterpolation()===St,i=e.length-1;let s=1;for(let a=1;a0){e[s]=e[i];for(let e=i*n,r=s*n,a=0;a!==n;++a)t[r+a]=t[e+a];++s}return s!==e.length?(this.times=ju.arraySlice(e,0,s),this.values=ju.arraySlice(t,0,s*n)):(this.times=e,this.values=t),this}clone(){const e=ju.arraySlice(this.times,0),t=ju.arraySlice(this.values,0),n=new(0,this.constructor)(this.name,e,t);return n.createInterpolant=this.createInterpolant,n}}Ju.prototype.TimeBufferType=Float32Array,Ju.prototype.ValueBufferType=Float32Array,Ju.prototype.DefaultInterpolation=Mt;class Ku extends Ju{}Ku.prototype.ValueTypeName="bool",Ku.prototype.ValueBufferType=Array,Ku.prototype.DefaultInterpolation=wt,Ku.prototype.InterpolantFactoryMethodLinear=void 0,Ku.prototype.InterpolantFactoryMethodSmooth=void 0;class Qu extends Ju{}Qu.prototype.ValueTypeName="color";class $u extends Ju{}$u.prototype.ValueTypeName="number";class eh extends qu{constructor(e,t,n,r){super(e,t,n,r)}interpolate_(e,t,n,r){const i=this.resultBuffer,s=this.sampleValues,a=this.valueSize,o=(n-t)/(r-t);let l=e*a;for(let e=l+a;l!==e;l+=4)$n.slerpFlat(i,0,s,l-a,s,l,o);return i}}class th extends Ju{InterpolantFactoryMethodLinear(e){return new eh(this.times,this.values,this.getValueSize(),e)}}th.prototype.ValueTypeName="quaternion",th.prototype.DefaultInterpolation=Mt,th.prototype.InterpolantFactoryMethodSmooth=void 0;class nh extends Ju{}nh.prototype.ValueTypeName="string",nh.prototype.ValueBufferType=Array,nh.prototype.DefaultInterpolation=wt,nh.prototype.InterpolantFactoryMethodLinear=void 0,nh.prototype.InterpolantFactoryMethodSmooth=void 0;class rh extends Ju{}rh.prototype.ValueTypeName="vector";class ih{constructor(e,t=-1,n,r=Rt){this.name=e,this.tracks=n,this.duration=t,this.blendMode=r,this.uuid=xn(),this.duration<0&&this.resetDuration()}static parse(e){const t=[],n=e.tracks,r=1/(e.fps||1);for(let e=0,i=n.length;e!==i;++e)t.push(sh(n[e]).scale(r));const i=new this(e.name,e.duration,t,e.blendMode);return i.uuid=e.uuid,i}static toJSON(e){const t=[],n=e.tracks,r={name:e.name,duration:e.duration,tracks:t,uuid:e.uuid,blendMode:e.blendMode};for(let e=0,r=n.length;e!==r;++e)t.push(Ju.toJSON(n[e]));return r}static CreateFromMorphTargetSequence(e,t,n,r){const i=t.length,s=[];for(let e=0;e1){const e=s[1];let t=r[e];t||(r[e]=t=[]),t.push(n)}}const s=[];for(const e in r)s.push(this.CreateFromMorphTargetSequence(e,r[e],t,n));return s}static parseAnimation(e,t){if(!e)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;const n=function(e,t,n,r,i){if(0!==n.length){const s=[],a=[];ju.flattenJSON(n,s,a,r),0!==s.length&&i.push(new e(t,s,a))}},r=[],i=e.name||"default",s=e.fps||30,a=e.blendMode;let o=e.length||-1;const l=e.hierarchy||[];for(let e=0;e{t&&t(i),this.manager.itemEnd(e)}),0),i;if(void 0!==uh[e])return void uh[e].push({onLoad:t,onProgress:n,onError:r});uh[e]=[],uh[e].push({onLoad:t,onProgress:n,onError:r});const s=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),a=this.mimeType,o=this.responseType;fetch(s).then((t=>{if(200===t.status||0===t.status){if(0===t.status&&console.warn("THREE.FileLoader: HTTP Status 0 received."),"undefined"==typeof ReadableStream||void 0===t.body||void 0===t.body.getReader)return t;const n=uh[e],r=t.body.getReader(),i=t.headers.get("Content-Length"),s=i?parseInt(i):0,a=0!==s;let o=0;const l=new ReadableStream({start(e){!function t(){r.read().then((({done:r,value:i})=>{if(r)e.close();else{o+=i.byteLength;const r=new ProgressEvent("progress",{lengthComputable:a,loaded:o,total:s});for(let e=0,t=n.length;e{switch(o){case"arraybuffer":return e.arrayBuffer();case"blob":return e.blob();case"document":return e.text().then((e=>(new DOMParser).parseFromString(e,a)));case"json":return e.json();default:if(void 0===a)return e.text();{const t=/charset="?([^;"\s]*)"?/i.exec(a),n=t&&t[1]?t[1].toLowerCase():void 0,r=new TextDecoder(n);return e.arrayBuffer().then((e=>r.decode(e)))}}})).then((t=>{ah.add(e,t);const n=uh[e];delete uh[e];for(let e=0,r=n.length;e{const n=uh[e];if(void 0===n)throw this.manager.itemError(e),t;delete uh[e];for(let e=0,r=n.length;e{this.manager.itemEnd(e)})),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}}class dh extends ch{constructor(e){super(e)}load(e,t,n,r){const i=this,s=new hh(this.manager);s.setPath(this.path),s.setRequestHeader(this.requestHeader),s.setWithCredentials(this.withCredentials),s.load(e,(function(n){try{t(i.parse(JSON.parse(n)))}catch(t){r?r(t):console.error(t),i.manager.itemError(e)}}),n,r)}parse(e){const t=[];for(let n=0;n0:r.vertexColors=e.vertexColors),void 0!==e.uniforms)for(const t in e.uniforms){const i=e.uniforms[t];switch(r.uniforms[t]={},i.type){case"t":r.uniforms[t].value=n(i.value);break;case"c":r.uniforms[t].value=(new Bn).setHex(i.value);break;case"v2":r.uniforms[t].value=(new An).fromArray(i.value);break;case"v3":r.uniforms[t].value=(new er).fromArray(i.value);break;case"v4":r.uniforms[t].value=(new qn).fromArray(i.value);break;case"m3":r.uniforms[t].value=(new Rn).fromArray(i.value);break;case"m4":r.uniforms[t].value=(new Pr).fromArray(i.value);break;default:r.uniforms[t].value=i.value}}if(void 0!==e.defines&&(r.defines=e.defines),void 0!==e.vertexShader&&(r.vertexShader=e.vertexShader),void 0!==e.fragmentShader&&(r.fragmentShader=e.fragmentShader),void 0!==e.extensions)for(const t in e.extensions)r.extensions[t]=e.extensions[t];if(void 0!==e.shading&&(r.flatShading=1===e.shading),void 0!==e.size&&(r.size=e.size),void 0!==e.sizeAttenuation&&(r.sizeAttenuation=e.sizeAttenuation),void 0!==e.map&&(r.map=n(e.map)),void 0!==e.matcap&&(r.matcap=n(e.matcap)),void 0!==e.alphaMap&&(r.alphaMap=n(e.alphaMap)),void 0!==e.bumpMap&&(r.bumpMap=n(e.bumpMap)),void 0!==e.bumpScale&&(r.bumpScale=e.bumpScale),void 0!==e.normalMap&&(r.normalMap=n(e.normalMap)),void 0!==e.normalMapType&&(r.normalMapType=e.normalMapType),void 0!==e.normalScale){let t=e.normalScale;!1===Array.isArray(t)&&(t=[t,t]),r.normalScale=(new An).fromArray(t)}return void 0!==e.displacementMap&&(r.displacementMap=n(e.displacementMap)),void 0!==e.displacementScale&&(r.displacementScale=e.displacementScale),void 0!==e.displacementBias&&(r.displacementBias=e.displacementBias),void 0!==e.roughnessMap&&(r.roughnessMap=n(e.roughnessMap)),void 0!==e.metalnessMap&&(r.metalnessMap=n(e.metalnessMap)),void 0!==e.emissiveMap&&(r.emissiveMap=n(e.emissiveMap)),void 0!==e.emissiveIntensity&&(r.emissiveIntensity=e.emissiveIntensity),void 0!==e.specularMap&&(r.specularMap=n(e.specularMap)),void 0!==e.specularIntensityMap&&(r.specularIntensityMap=n(e.specularIntensityMap)),void 0!==e.specularColorMap&&(r.specularColorMap=n(e.specularColorMap)),void 0!==e.envMap&&(r.envMap=n(e.envMap)),void 0!==e.envMapIntensity&&(r.envMapIntensity=e.envMapIntensity),void 0!==e.reflectivity&&(r.reflectivity=e.reflectivity),void 0!==e.refractionRatio&&(r.refractionRatio=e.refractionRatio),void 0!==e.lightMap&&(r.lightMap=n(e.lightMap)),void 0!==e.lightMapIntensity&&(r.lightMapIntensity=e.lightMapIntensity),void 0!==e.aoMap&&(r.aoMap=n(e.aoMap)),void 0!==e.aoMapIntensity&&(r.aoMapIntensity=e.aoMapIntensity),void 0!==e.gradientMap&&(r.gradientMap=n(e.gradientMap)),void 0!==e.clearcoatMap&&(r.clearcoatMap=n(e.clearcoatMap)),void 0!==e.clearcoatRoughnessMap&&(r.clearcoatRoughnessMap=n(e.clearcoatRoughnessMap)),void 0!==e.clearcoatNormalMap&&(r.clearcoatNormalMap=n(e.clearcoatNormalMap)),void 0!==e.clearcoatNormalScale&&(r.clearcoatNormalScale=(new An).fromArray(e.clearcoatNormalScale)),void 0!==e.transmissionMap&&(r.transmissionMap=n(e.transmissionMap)),void 0!==e.thicknessMap&&(r.thicknessMap=n(e.thicknessMap)),void 0!==e.sheenColorMap&&(r.sheenColorMap=n(e.sheenColorMap)),void 0!==e.sheenRoughnessMap&&(r.sheenRoughnessMap=n(e.sheenRoughnessMap)),r}setTextures(e){return this.textures=e,this}}class Uh{static decodeText(e){if("undefined"!=typeof TextDecoder)return(new TextDecoder).decode(e);let t="";for(let n=0,r=e.length;n0){const n=new oh(t);i=new fh(n),i.setCrossOrigin(this.crossOrigin);for(let t=0,n=e.length;t0){r=new fh(this.manager),r.setCrossOrigin(this.crossOrigin);for(let t=0,r=e.length;t0){this.source.connect(this.filters[0]);for(let e=1,t=this.filters.length;e0){this.source.disconnect(this.filters[0]);for(let e=1,t=this.filters.length;e0&&this._mixBufferRegionAdditive(n,r,this._addIndex*t,1,t);for(let e=t,i=t+t;e!==i;++e)if(n[e]!==n[e+t]){a.setValue(n,r);break}}saveOriginalState(){const e=this.binding,t=this.buffer,n=this.valueSize,r=n*this._origIndex;e.getValue(t,r);for(let e=n,i=r;e!==i;++e)t[e]=t[r+e%n];this._setIdentity(),this.cumulativeWeight=0,this.cumulativeWeightAdditive=0}restoreOriginalState(){const e=3*this.valueSize;this.binding.setValue(this.buffer,e)}_setAdditiveIdentityNumeric(){const e=this._addIndex*this.valueSize,t=e+this.valueSize;for(let n=e;n=.5)for(let r=0;r!==i;++r)e[t+r]=e[n+r]}_slerp(e,t,n,r){$n.slerpFlat(e,t,e,t,e,n,r)}_slerpAdditive(e,t,n,r,i){const s=this._workIndex*i;$n.multiplyQuaternionsFlat(e,s,e,t,e,n),$n.slerpFlat(e,t,e,t,e,s,r)}_lerp(e,t,n,r,i){const s=1-r;for(let a=0;a!==i;++a){const i=t+a;e[i]=e[i]*s+e[n+a]*r}}_lerpAdditive(e,t,n,r,i){for(let s=0;s!==i;++s){const i=t+s;e[i]=e[i]+e[n+s]*r}}}const gd="\\[\\]\\.:\\/",vd=new RegExp("["+gd+"]","g"),yd="[^"+gd+"]",xd="[^"+gd.replace("\\.","")+"]",_d=/((?:WC+[\/:])*)/.source.replace("WC",yd),bd=/(WCOD+)?/.source.replace("WCOD",xd),wd=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",yd),Md=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",yd),Sd=new RegExp("^"+_d+bd+wd+Md+"$"),Ed=["material","materials","bones"];class Td{constructor(e,t,n){this.path=t,this.parsedPath=n||Td.parseTrackName(t),this.node=Td.findNode(e,this.parsedPath.nodeName)||e,this.rootNode=e,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(e,t,n){return e&&e.isAnimationObjectGroup?new Td.Composite(e,t,n):new Td(e,t,n)}static sanitizeNodeName(e){return e.replace(/\s/g,"_").replace(vd,"")}static parseTrackName(e){const t=Sd.exec(e);if(null===t)throw new Error("PropertyBinding: Cannot parse trackName: "+e);const n={nodeName:t[2],objectName:t[3],objectIndex:t[4],propertyName:t[5],propertyIndex:t[6]},r=n.nodeName&&n.nodeName.lastIndexOf(".");if(void 0!==r&&-1!==r){const e=n.nodeName.substring(r+1);-1!==Ed.indexOf(e)&&(n.nodeName=n.nodeName.substring(0,r),n.objectName=e)}if(null===n.propertyName||0===n.propertyName.length)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+e);return n}static findNode(e,t){if(void 0===t||""===t||"."===t||-1===t||t===e.name||t===e.uuid)return e;if(e.skeleton){const n=e.skeleton.getBoneByName(t);if(void 0!==n)return n}if(e.children){const n=function(e){for(let r=0;r=i){const s=i++,c=e[s];t[c.uuid]=l,e[l]=c,t[o]=s,e[s]=a;for(let e=0,t=r;e!==t;++e){const t=n[e],r=t[s],i=t[l];t[l]=r,t[s]=i}}}this.nCachedObjects_=i}uncache(){const e=this._objects,t=this._indicesByUUID,n=this._bindings,r=n.length;let i=this.nCachedObjects_,s=e.length;for(let a=0,o=arguments.length;a!==o;++a){const o=arguments[a].uuid,l=t[o];if(void 0!==l)if(delete t[o],l0&&(t[a.uuid]=l),e[l]=a,e.pop();for(let e=0,t=r;e!==t;++e){const t=n[e];t[l]=t[i],t.pop()}}}this.nCachedObjects_=i}subscribe_(e,t){const n=this._bindingsIndicesByPath;let r=n[e];const i=this._bindings;if(void 0!==r)return i[r];const s=this._paths,a=this._parsedPaths,o=this._objects,l=o.length,c=this.nCachedObjects_,u=new Array(l);r=i.length,n[e]=r,s.push(e),a.push(t),i.push(u);for(let n=c,r=o.length;n!==r;++n){const r=o[n];u[n]=new Td(r,e,t)}return u}unsubscribe_(e){const t=this._bindingsIndicesByPath,n=t[e];if(void 0!==n){const r=this._paths,i=this._parsedPaths,s=this._bindings,a=s.length-1,o=s[a];t[e[a]]=n,s[n]=o,s.pop(),i[n]=i[a],i.pop(),r[n]=r[a],r.pop()}}}Ad.prototype.isAnimationObjectGroup=!0;class Rd{constructor(e,t,n=null,r=t.blendMode){this._mixer=e,this._clip=t,this._localRoot=n,this.blendMode=r;const i=t.tracks,s=i.length,a=new Array(s),o={endingStart:Et,endingEnd:Et};for(let e=0;e!==s;++e){const t=i[e].createInterpolant(null);a[e]=t,t.settings=o}this._interpolantSettings=o,this._interpolants=a,this._propertyBindings=new Array(s),this._cacheIndex=null,this._byClipCacheIndex=null,this._timeScaleInterpolant=null,this._weightInterpolant=null,this.loop=_t,this._loopCount=-1,this._startTime=null,this.time=0,this.timeScale=1,this._effectiveTimeScale=1,this.weight=1,this._effectiveWeight=1,this.repetitions=1/0,this.paused=!1,this.enabled=!0,this.clampWhenFinished=!1,this.zeroSlopeAtStart=!0,this.zeroSlopeAtEnd=!0}play(){return this._mixer._activateAction(this),this}stop(){return this._mixer._deactivateAction(this),this.reset()}reset(){return this.paused=!1,this.enabled=!0,this.time=0,this._loopCount=-1,this._startTime=null,this.stopFading().stopWarping()}isRunning(){return this.enabled&&!this.paused&&0!==this.timeScale&&null===this._startTime&&this._mixer._isActiveAction(this)}isScheduled(){return this._mixer._isActiveAction(this)}startAt(e){return this._startTime=e,this}setLoop(e,t){return this.loop=e,this.repetitions=t,this}setEffectiveWeight(e){return this.weight=e,this._effectiveWeight=this.enabled?e:0,this.stopFading()}getEffectiveWeight(){return this._effectiveWeight}fadeIn(e){return this._scheduleFading(e,0,1)}fadeOut(e){return this._scheduleFading(e,1,0)}crossFadeFrom(e,t,n){if(e.fadeOut(t),this.fadeIn(t),n){const n=this._clip.duration,r=e._clip.duration,i=r/n,s=n/r;e.warp(1,i,t),this.warp(s,1,t)}return this}crossFadeTo(e,t,n){return e.crossFadeFrom(this,t,n)}stopFading(){const e=this._weightInterpolant;return null!==e&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}setEffectiveTimeScale(e){return this.timeScale=e,this._effectiveTimeScale=this.paused?0:e,this.stopWarping()}getEffectiveTimeScale(){return this._effectiveTimeScale}setDuration(e){return this.timeScale=this._clip.duration/e,this.stopWarping()}syncWith(e){return this.time=e.time,this.timeScale=e.timeScale,this.stopWarping()}halt(e){return this.warp(this._effectiveTimeScale,0,e)}warp(e,t,n){const r=this._mixer,i=r.time,s=this.timeScale;let a=this._timeScaleInterpolant;null===a&&(a=r._lendControlInterpolant(),this._timeScaleInterpolant=a);const o=a.parameterPositions,l=a.sampleValues;return o[0]=i,o[1]=i+n,l[0]=e/s,l[1]=t/s,this}stopWarping(){const e=this._timeScaleInterpolant;return null!==e&&(this._timeScaleInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}getMixer(){return this._mixer}getClip(){return this._clip}getRoot(){return this._localRoot||this._mixer._root}_update(e,t,n,r){if(!this.enabled)return void this._updateWeight(e);const i=this._startTime;if(null!==i){const r=(e-i)*n;if(r<0||0===n)return;this._startTime=null,t=n*r}t*=this._updateTimeScale(e);const s=this._updateTime(t),a=this._updateWeight(e);if(a>0){const e=this._interpolants,t=this._propertyBindings;if(this.blendMode===Lt)for(let n=0,r=e.length;n!==r;++n)e[n].evaluate(s),t[n].accumulateAdditive(a);else for(let n=0,i=e.length;n!==i;++n)e[n].evaluate(s),t[n].accumulate(r,a)}}_updateWeight(e){let t=0;if(this.enabled){t=this.weight;const n=this._weightInterpolant;if(null!==n){const r=n.evaluate(e)[0];t*=r,e>n.parameterPositions[1]&&(this.stopFading(),0===r&&(this.enabled=!1))}}return this._effectiveWeight=t,t}_updateTimeScale(e){let t=0;if(!this.paused){t=this.timeScale;const n=this._timeScaleInterpolant;null!==n&&(t*=n.evaluate(e)[0],e>n.parameterPositions[1]&&(this.stopWarping(),0===t?this.paused=!0:this.timeScale=t))}return this._effectiveTimeScale=t,t}_updateTime(e){const t=this._clip.duration,n=this.loop;let r=this.time+e,i=this._loopCount;const s=n===bt;if(0===e)return-1===i?r:s&&1==(1&i)?t-r:r;if(n===xt){-1===i&&(this._loopCount=0,this._setEndings(!0,!0,!1));e:{if(r>=t)r=t;else{if(!(r<0)){this.time=r;break e}r=0}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this.time=r,this._mixer.dispatchEvent({type:"finished",action:this,direction:e<0?-1:1})}}else{if(-1===i&&(e>=0?(i=0,this._setEndings(!0,0===this.repetitions,s)):this._setEndings(0===this.repetitions,!0,s)),r>=t||r<0){const n=Math.floor(r/t);r-=t*n,i+=Math.abs(n);const a=this.repetitions-i;if(a<=0)this.clampWhenFinished?this.paused=!0:this.enabled=!1,r=e>0?t:0,this.time=r,this._mixer.dispatchEvent({type:"finished",action:this,direction:e>0?1:-1});else{if(1===a){const t=e<0;this._setEndings(t,!t,s)}else this._setEndings(!1,!1,s);this._loopCount=i,this.time=r,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:n})}}else this.time=r;if(s&&1==(1&i))return t-r}return r}_setEndings(e,t,n){const r=this._interpolantSettings;n?(r.endingStart=Tt,r.endingEnd=Tt):(r.endingStart=e?this.zeroSlopeAtStart?Tt:Et:At,r.endingEnd=t?this.zeroSlopeAtEnd?Tt:Et:At)}_scheduleFading(e,t,n){const r=this._mixer,i=r.time;let s=this._weightInterpolant;null===s&&(s=r._lendControlInterpolant(),this._weightInterpolant=s);const a=s.parameterPositions,o=s.sampleValues;return a[0]=i,o[0]=t,a[1]=i+e,o[1]=n,this}}class Ld extends fn{constructor(e){super(),this._root=e,this._initMemoryManager(),this._accuIndex=0,this.time=0,this.timeScale=1}_bindAction(e,t){const n=e._localRoot||this._root,r=e._clip.tracks,i=r.length,s=e._propertyBindings,a=e._interpolants,o=n.uuid,l=this._bindingsByRootAndName;let c=l[o];void 0===c&&(c={},l[o]=c);for(let e=0;e!==i;++e){const i=r[e],l=i.name;let u=c[l];if(void 0!==u)++u.referenceCount,s[e]=u;else{if(u=s[e],void 0!==u){null===u._cacheIndex&&(++u.referenceCount,this._addInactiveBinding(u,o,l));continue}const r=t&&t._propertyBindings[e].binding.parsedPath;u=new md(Td.create(n,l,r),i.ValueTypeName,i.getValueSize()),++u.referenceCount,this._addInactiveBinding(u,o,l),s[e]=u}a[e].resultBuffer=u.buffer}}_activateAction(e){if(!this._isActiveAction(e)){if(null===e._cacheIndex){const t=(e._localRoot||this._root).uuid,n=e._clip.uuid,r=this._actionsByClip[n];this._bindAction(e,r&&r.knownActions[0]),this._addInactiveAction(e,n,t)}const t=e._propertyBindings;for(let e=0,n=t.length;e!==n;++e){const n=t[e];0==n.useCount++&&(this._lendBinding(n),n.saveOriginalState())}this._lendAction(e)}}_deactivateAction(e){if(this._isActiveAction(e)){const t=e._propertyBindings;for(let e=0,n=t.length;e!==n;++e){const n=t[e];0==--n.useCount&&(n.restoreOriginalState(),this._takeBackBinding(n))}this._takeBackAction(e)}}_initMemoryManager(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;const e=this;this.stats={actions:{get total(){return e._actions.length},get inUse(){return e._nActiveActions}},bindings:{get total(){return e._bindings.length},get inUse(){return e._nActiveBindings}},controlInterpolants:{get total(){return e._controlInterpolants.length},get inUse(){return e._nActiveControlInterpolants}}}}_isActiveAction(e){const t=e._cacheIndex;return null!==t&&t=0;--t)e[t].stop();return this}update(e){e*=this.timeScale;const t=this._actions,n=this._nActiveActions,r=this.time+=e,i=Math.sign(e),s=this._accuIndex^=1;for(let a=0;a!==n;++a)t[a]._update(r,e,i,s);const a=this._bindings,o=this._nActiveBindings;for(let e=0;e!==o;++e)a[e].apply(s);return this}setTime(e){this.time=0;for(let e=0;ethis.max.x||e.ythis.max.y)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y))}intersectsBox(e){return!(e.max.xthis.max.x||e.max.ythis.max.y)}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return Ud.copy(e).clamp(this.min,this.max).sub(e).length()}intersect(e){return this.min.max(e.min),this.max.min(e.max),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}Bd.prototype.isBox2=!0;const Hd=new er,kd=new er;class Gd{constructor(e=new er,t=new er){this.start=e,this.end=t}set(e,t){return this.start.copy(e),this.end.copy(t),this}copy(e){return this.start.copy(e.start),this.end.copy(e.end),this}getCenter(e){return e.addVectors(this.start,this.end).multiplyScalar(.5)}delta(e){return e.subVectors(this.end,this.start)}distanceSq(){return this.start.distanceToSquared(this.end)}distance(){return this.start.distanceTo(this.end)}at(e,t){return this.delta(t).multiplyScalar(e).add(this.start)}closestPointToPointParameter(e,t){Hd.subVectors(e,this.start),kd.subVectors(this.end,this.start);const n=kd.dot(kd);let r=kd.dot(Hd)/n;return t&&(r=_n(r,0,1)),r}closestPointToPoint(e,t,n){const r=this.closestPointToPointParameter(e,t);return this.delta(n).multiplyScalar(r).add(this.start)}applyMatrix4(e){return this.start.applyMatrix4(e),this.end.applyMatrix4(e),this}equals(e){return e.start.equals(this.start)&&e.end.equals(this.end)}clone(){return(new this.constructor).copy(this)}}const Vd=new er;class Wd extends ni{constructor(e,t){super(),this.light=e,this.light.updateMatrixWorld(),this.matrix=e.matrixWorld,this.matrixAutoUpdate=!1,this.color=t;const n=new Fi,r=[0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,-1,0,1,0,0,0,0,1,1,0,0,0,0,-1,1];for(let e=0,t=1,n=32;e.99999)this.quaternion.set(0,0,0,1);else if(e.y<-.99999)this.quaternion.set(1,0,0,0);else{mp.set(e.z,0,-e.x).normalize();const t=Math.acos(e.y);this.quaternion.setFromAxisAngle(mp,t)}}setLength(e,t=.2*e,n=.2*t){this.line.scale.set(1,Math.max(1e-4,e-t),1),this.line.updateMatrix(),this.cone.scale.set(n,t,n),this.cone.position.y=e,this.cone.updateMatrix()}setColor(e){this.line.material.color.set(e),this.cone.material.color.set(e)}copy(e){return super.copy(e,!1),this.line.copy(e.line),this.cone.copy(e.cone),this}}class xp extends ec{constructor(e=1){const t=[0,0,0,e,0,0,0,0,0,0,e,0,0,0,0,0,0,e],n=new Fi;n.setAttribute("position",new Ri(t,3)),n.setAttribute("color",new Ri([1,0,0,1,.6,0,0,1,0,.6,1,0,0,0,1,0,.6,1],3)),super(n,new jl({vertexColors:!0,toneMapped:!1})),this.type="AxesHelper"}setColors(e,t,n){const r=new Bn,i=this.geometry.attributes.color.array;return r.set(e),r.toArray(i,0),r.toArray(i,3),r.set(t),r.toArray(i,6),r.toArray(i,9),r.set(n),r.toArray(i,12),r.toArray(i,15),this.geometry.attributes.color.needsUpdate=!0,this}dispose(){this.geometry.dispose(),this.material.dispose()}}class _p{constructor(){this.type="ShapePath",this.color=new Bn,this.subPaths=[],this.currentPath=null}moveTo(e,t){return this.currentPath=new Wc,this.subPaths.push(this.currentPath),this.currentPath.moveTo(e,t),this}lineTo(e,t){return this.currentPath.lineTo(e,t),this}quadraticCurveTo(e,t,n,r){return this.currentPath.quadraticCurveTo(e,t,n,r),this}bezierCurveTo(e,t,n,r,i,s){return this.currentPath.bezierCurveTo(e,t,n,r,i,s),this}splineThru(e){return this.currentPath.splineThru(e),this}toShapes(e,t){function n(e){const t=[];for(let n=0,r=e.length;nNumber.EPSILON){if(l<0&&(n=t[s],o=-o,a=t[i],l=-l),e.ya.y)continue;if(e.y===n.y){if(e.x===n.x)return!0}else{const t=l*(e.x-n.x)-o*(e.y-n.y);if(0===t)return!0;if(t<0)continue;r=!r}}else{if(e.y!==n.y)continue;if(a.x<=e.x&&e.x<=n.x||n.x<=e.x&&e.x<=a.x)return!0}}return r}const i=gu.isClockWise,s=this.subPaths;if(0===s.length)return[];if(!0===t)return n(s);let a,o,l;const c=[];if(1===s.length)return o=s[0],l=new jc,l.curves=o.curves,c.push(l),c;let u=!i(s[0].getPoints());u=e?!u:u;const h=[],d=[];let p,f,m=[],g=0;d[g]=void 0,m[g]=[];for(let t=0,n=s.length;t1){let e=!1,t=0;for(let e=0,t=d.length;e0&&!1===e&&(m=h)}for(let e=0,t=d.length;e65504&&(console.warn("THREE.DataUtils.toHalfFloat(): value exceeds 65504."),e=65504),bp[0]=e;const t=wp[0];let n=t>>16&32768,r=t>>12&2047;const i=t>>23&255;return i<103?n:i>142?(n|=31744,n|=(255==i?0:1)&&8388607&t,n):i<113?(r|=2048,n|=(r>>114-i)+(r>>113-i&1),n):(n|=i-112<<10|r>>1,n+=1&r,n)}}const Sp=0,Ep=1,Tp=0,Ap=1,Rp=2;function Lp(e){return console.warn("THREE.MeshFaceMaterial has been removed. Use an Array instead."),e}function Cp(e=[]){return console.warn("THREE.MultiMaterial has been removed. Use an Array instead."),e.isMultiMaterial=!0,e.materials=e,e.clone=function(){return e.slice()},e}function Pp(e,t){return console.warn("THREE.PointCloud has been renamed to THREE.Points."),new oc(e,t)}function Ip(e){return console.warn("THREE.Particle has been renamed to THREE.Sprite."),new Ml(e)}function Dp(e,t){return console.warn("THREE.ParticleSystem has been renamed to THREE.Points."),new oc(e,t)}function Np(e){return console.warn("THREE.PointCloudMaterial has been renamed to THREE.PointsMaterial."),new nc(e)}function Op(e){return console.warn("THREE.ParticleBasicMaterial has been renamed to THREE.PointsMaterial."),new nc(e)}function zp(e){return console.warn("THREE.ParticleSystemMaterial has been renamed to THREE.PointsMaterial."),new nc(e)}function Fp(e,t,n){return console.warn("THREE.Vertex has been removed. Use THREE.Vector3 instead."),new er(e,t,n)}function Up(e,t){return console.warn("THREE.DynamicBufferAttribute has been removed. Use new THREE.BufferAttribute().setUsage( THREE.DynamicDrawUsage ) instead."),new xi(e,t).setUsage(nn)}function Bp(e,t){return console.warn("THREE.Int8Attribute has been removed. Use new THREE.Int8BufferAttribute() instead."),new _i(e,t)}function Hp(e,t){return console.warn("THREE.Uint8Attribute has been removed. Use new THREE.Uint8BufferAttribute() instead."),new bi(e,t)}function kp(e,t){return console.warn("THREE.Uint8ClampedAttribute has been removed. Use new THREE.Uint8ClampedBufferAttribute() instead."),new wi(e,t)}function Gp(e,t){return console.warn("THREE.Int16Attribute has been removed. Use new THREE.Int16BufferAttribute() instead."),new Mi(e,t)}function Vp(e,t){return console.warn("THREE.Uint16Attribute has been removed. Use new THREE.Uint16BufferAttribute() instead."),new Si(e,t)}function Wp(e,t){return console.warn("THREE.Int32Attribute has been removed. Use new THREE.Int32BufferAttribute() instead."),new Ei(e,t)}function jp(e,t){return console.warn("THREE.Uint32Attribute has been removed. Use new THREE.Uint32BufferAttribute() instead."),new Ti(e,t)}function qp(e,t){return console.warn("THREE.Float32Attribute has been removed. Use new THREE.Float32BufferAttribute() instead."),new Ri(e,t)}function Xp(e,t){return console.warn("THREE.Float64Attribute has been removed. Use new THREE.Float64BufferAttribute() instead."),new Li(e,t)}function Yp(e){return console.warn("THREE.AxisHelper has been renamed to THREE.AxesHelper."),new xp(e)}function Zp(e,t){return console.warn("THREE.BoundingBoxHelper has been deprecated. Creating a THREE.BoxHelper instead."),new dp(e,t)}function Jp(e,t){return console.warn("THREE.EdgesHelper has been removed. Use THREE.EdgesGeometry instead."),new ec(new wc(e.geometry),new jl({color:void 0!==t?t:16777215}))}function Kp(e,t){return console.warn("THREE.WireframeHelper has been removed. Use THREE.WireframeGeometry instead."),new ec(new Pu(e.geometry),new jl({color:void 0!==t?t:16777215}))}function Qp(e){return console.warn("THREE.XHRLoader has been renamed to THREE.FileLoader."),new hh(e)}function $p(e){return console.warn("THREE.BinaryTextureLoader has been renamed to THREE.DataTextureLoader."),new gh(e)}function ef(e,t,n){return console.warn("THREE.WebGLRenderTargetCube( width, height, options ) is now WebGLCubeRenderTarget( size, options )."),new ps(e,n)}function tf(){console.error("THREE.CanvasRenderer has been removed")}function nf(){console.error("THREE.JSONLoader has been removed.")}Mc.create=function(e,t){return console.log("THREE.Curve.create() has been deprecated"),e.prototype=Object.create(Mc.prototype),e.prototype.constructor=e,e.prototype.getPoint=t,e},Wc.prototype.fromPoints=function(e){return console.warn("THREE.Path: .fromPoints() has been renamed to .setFromPoints()."),this.setFromPoints(e)},tp.prototype.setColors=function(){console.error("THREE.GridHelper: setColors() has been deprecated, pass them in the constructor instead.")},Yd.prototype.update=function(){console.error("THREE.SkeletonHelper: update() no longer needs to be called.")},ch.prototype.extractUrlBase=function(e){return console.warn("THREE.Loader: .extractUrlBase() has been deprecated. Use THREE.LoaderUtils.extractUrlBase() instead."),Uh.extractUrlBase(e)},ch.Handlers={add:function(){console.error("THREE.Loader: Handlers.add() has been removed. Use LoadingManager.addHandler() instead.")},get:function(){console.error("THREE.Loader: Handlers.get() has been removed. Use LoadingManager.getHandler() instead.")}},Bd.prototype.center=function(e){return console.warn("THREE.Box2: .center() has been renamed to .getCenter()."),this.getCenter(e)},Bd.prototype.empty=function(){return console.warn("THREE.Box2: .empty() has been renamed to .isEmpty()."),this.isEmpty()},Bd.prototype.isIntersectionBox=function(e){return console.warn("THREE.Box2: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(e)},Bd.prototype.size=function(e){return console.warn("THREE.Box2: .size() has been renamed to .getSize()."),this.getSize(e)},rr.prototype.center=function(e){return console.warn("THREE.Box3: .center() has been renamed to .getCenter()."),this.getCenter(e)},rr.prototype.empty=function(){return console.warn("THREE.Box3: .empty() has been renamed to .isEmpty()."),this.isEmpty()},rr.prototype.isIntersectionBox=function(e){return console.warn("THREE.Box3: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(e)},rr.prototype.isIntersectionSphere=function(e){return console.warn("THREE.Box3: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(e)},rr.prototype.size=function(e){return console.warn("THREE.Box3: .size() has been renamed to .getSize()."),this.getSize(e)},kr.prototype.toVector3=function(){console.error("THREE.Euler: .toVector3() has been removed. Use Vector3.setFromEuler() instead")},wr.prototype.empty=function(){return console.warn("THREE.Sphere: .empty() has been renamed to .isEmpty()."),this.isEmpty()},_s.prototype.setFromMatrix=function(e){return console.warn("THREE.Frustum: .setFromMatrix() has been renamed to .setFromProjectionMatrix()."),this.setFromProjectionMatrix(e)},Gd.prototype.center=function(e){return console.warn("THREE.Line3: .center() has been renamed to .getCenter()."),this.getCenter(e)},Rn.prototype.flattenToArrayOffset=function(e,t){return console.warn("THREE.Matrix3: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(e,t)},Rn.prototype.multiplyVector3=function(e){return console.warn("THREE.Matrix3: .multiplyVector3() has been removed. Use vector.applyMatrix3( matrix ) instead."),e.applyMatrix3(this)},Rn.prototype.multiplyVector3Array=function(){console.error("THREE.Matrix3: .multiplyVector3Array() has been removed.")},Rn.prototype.applyToBufferAttribute=function(e){return console.warn("THREE.Matrix3: .applyToBufferAttribute() has been removed. Use attribute.applyMatrix3( matrix ) instead."),e.applyMatrix3(this)},Rn.prototype.applyToVector3Array=function(){console.error("THREE.Matrix3: .applyToVector3Array() has been removed.")},Rn.prototype.getInverse=function(e){return console.warn("THREE.Matrix3: .getInverse() has been removed. Use matrixInv.copy( matrix ).invert(); instead."),this.copy(e).invert()},Pr.prototype.extractPosition=function(e){return console.warn("THREE.Matrix4: .extractPosition() has been renamed to .copyPosition()."),this.copyPosition(e)},Pr.prototype.flattenToArrayOffset=function(e,t){return console.warn("THREE.Matrix4: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(e,t)},Pr.prototype.getPosition=function(){return console.warn("THREE.Matrix4: .getPosition() has been removed. Use Vector3.setFromMatrixPosition( matrix ) instead."),(new er).setFromMatrixColumn(this,3)},Pr.prototype.setRotationFromQuaternion=function(e){return console.warn("THREE.Matrix4: .setRotationFromQuaternion() has been renamed to .makeRotationFromQuaternion()."),this.makeRotationFromQuaternion(e)},Pr.prototype.multiplyToArray=function(){console.warn("THREE.Matrix4: .multiplyToArray() has been removed.")},Pr.prototype.multiplyVector3=function(e){return console.warn("THREE.Matrix4: .multiplyVector3() has been removed. Use vector.applyMatrix4( matrix ) instead."),e.applyMatrix4(this)},Pr.prototype.multiplyVector4=function(e){return console.warn("THREE.Matrix4: .multiplyVector4() has been removed. Use vector.applyMatrix4( matrix ) instead."),e.applyMatrix4(this)},Pr.prototype.multiplyVector3Array=function(){console.error("THREE.Matrix4: .multiplyVector3Array() has been removed.")},Pr.prototype.rotateAxis=function(e){console.warn("THREE.Matrix4: .rotateAxis() has been removed. Use Vector3.transformDirection( matrix ) instead."),e.transformDirection(this)},Pr.prototype.crossVector=function(e){return console.warn("THREE.Matrix4: .crossVector() has been removed. Use vector.applyMatrix4( matrix ) instead."),e.applyMatrix4(this)},Pr.prototype.translate=function(){console.error("THREE.Matrix4: .translate() has been removed.")},Pr.prototype.rotateX=function(){console.error("THREE.Matrix4: .rotateX() has been removed.")},Pr.prototype.rotateY=function(){console.error("THREE.Matrix4: .rotateY() has been removed.")},Pr.prototype.rotateZ=function(){console.error("THREE.Matrix4: .rotateZ() has been removed.")},Pr.prototype.rotateByAxis=function(){console.error("THREE.Matrix4: .rotateByAxis() has been removed.")},Pr.prototype.applyToBufferAttribute=function(e){return console.warn("THREE.Matrix4: .applyToBufferAttribute() has been removed. Use attribute.applyMatrix4( matrix ) instead."),e.applyMatrix4(this)},Pr.prototype.applyToVector3Array=function(){console.error("THREE.Matrix4: .applyToVector3Array() has been removed.")},Pr.prototype.makeFrustum=function(e,t,n,r,i,s){return console.warn("THREE.Matrix4: .makeFrustum() has been removed. Use .makePerspective( left, right, top, bottom, near, far ) instead."),this.makePerspective(e,t,r,n,i,s)},Pr.prototype.getInverse=function(e){return console.warn("THREE.Matrix4: .getInverse() has been removed. Use matrixInv.copy( matrix ).invert(); instead."),this.copy(e).invert()},vs.prototype.isIntersectionLine=function(e){return console.warn("THREE.Plane: .isIntersectionLine() has been renamed to .intersectsLine()."),this.intersectsLine(e)},$n.prototype.multiplyVector3=function(e){return console.warn("THREE.Quaternion: .multiplyVector3() has been removed. Use is now vector.applyQuaternion( quaternion ) instead."),e.applyQuaternion(this)},$n.prototype.inverse=function(){return console.warn("THREE.Quaternion: .inverse() has been renamed to invert()."),this.invert()},Cr.prototype.isIntersectionBox=function(e){return console.warn("THREE.Ray: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(e)},Cr.prototype.isIntersectionPlane=function(e){return console.warn("THREE.Ray: .isIntersectionPlane() has been renamed to .intersectsPlane()."),this.intersectsPlane(e)},Cr.prototype.isIntersectionSphere=function(e){return console.warn("THREE.Ray: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(e)},pi.prototype.area=function(){return console.warn("THREE.Triangle: .area() has been renamed to .getArea()."),this.getArea()},pi.prototype.barycoordFromPoint=function(e,t){return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."),this.getBarycoord(e,t)},pi.prototype.midpoint=function(e){return console.warn("THREE.Triangle: .midpoint() has been renamed to .getMidpoint()."),this.getMidpoint(e)},pi.prototypenormal=function(e){return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."),this.getNormal(e)},pi.prototype.plane=function(e){return console.warn("THREE.Triangle: .plane() has been renamed to .getPlane()."),this.getPlane(e)},pi.barycoordFromPoint=function(e,t,n,r,i){return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."),pi.getBarycoord(e,t,n,r,i)},pi.normal=function(e,t,n,r){return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."),pi.getNormal(e,t,n,r)},jc.prototype.extractAllPoints=function(e){return console.warn("THREE.Shape: .extractAllPoints() has been removed. Use .extractPoints() instead."),this.extractPoints(e)},jc.prototype.extrude=function(e){return console.warn("THREE.Shape: .extrude() has been removed. Use ExtrudeGeometry() instead."),new xu(this,e)},jc.prototype.makeGeometry=function(e){return console.warn("THREE.Shape: .makeGeometry() has been removed. Use ShapeGeometry() instead."),new Eu(this,e)},An.prototype.fromAttribute=function(e,t,n){return console.warn("THREE.Vector2: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(e,t,n)},An.prototype.distanceToManhattan=function(e){return console.warn("THREE.Vector2: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."),this.manhattanDistanceTo(e)},An.prototype.lengthManhattan=function(){return console.warn("THREE.Vector2: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()},er.prototype.setEulerFromRotationMatrix=function(){console.error("THREE.Vector3: .setEulerFromRotationMatrix() has been removed. Use Euler.setFromRotationMatrix() instead.")},er.prototype.setEulerFromQuaternion=function(){console.error("THREE.Vector3: .setEulerFromQuaternion() has been removed. Use Euler.setFromQuaternion() instead.")},er.prototype.getPositionFromMatrix=function(e){return console.warn("THREE.Vector3: .getPositionFromMatrix() has been renamed to .setFromMatrixPosition()."),this.setFromMatrixPosition(e)},er.prototype.getScaleFromMatrix=function(e){return console.warn("THREE.Vector3: .getScaleFromMatrix() has been renamed to .setFromMatrixScale()."),this.setFromMatrixScale(e)},er.prototype.getColumnFromMatrix=function(e,t){return console.warn("THREE.Vector3: .getColumnFromMatrix() has been renamed to .setFromMatrixColumn()."),this.setFromMatrixColumn(t,e)},er.prototype.applyProjection=function(e){return console.warn("THREE.Vector3: .applyProjection() has been removed. Use .applyMatrix4( m ) instead."),this.applyMatrix4(e)},er.prototype.fromAttribute=function(e,t,n){return console.warn("THREE.Vector3: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(e,t,n)},er.prototype.distanceToManhattan=function(e){return console.warn("THREE.Vector3: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."),this.manhattanDistanceTo(e)},er.prototype.lengthManhattan=function(){return console.warn("THREE.Vector3: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()},qn.prototype.fromAttribute=function(e,t,n){return console.warn("THREE.Vector4: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(e,t,n)},qn.prototype.lengthManhattan=function(){return console.warn("THREE.Vector4: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()},ni.prototype.getChildByName=function(e){return console.warn("THREE.Object3D: .getChildByName() has been renamed to .getObjectByName()."),this.getObjectByName(e)},ni.prototype.renderDepth=function(){console.warn("THREE.Object3D: .renderDepth has been removed. Use .renderOrder, instead.")},ni.prototype.translate=function(e,t){return console.warn("THREE.Object3D: .translate() has been removed. Use .translateOnAxis( axis, distance ) instead."),this.translateOnAxis(t,e)},ni.prototype.getWorldRotation=function(){console.error("THREE.Object3D: .getWorldRotation() has been removed. Use THREE.Object3D.getWorldQuaternion( target ) instead.")},ni.prototype.applyMatrix=function(e){return console.warn("THREE.Object3D: .applyMatrix() has been renamed to .applyMatrix4()."),this.applyMatrix4(e)},Object.defineProperties(ni.prototype,{eulerOrder:{get:function(){return console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."),this.rotation.order},set:function(e){console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."),this.rotation.order=e}},useQuaternion:{get:function(){console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.")},set:function(){console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.")}}}),ts.prototype.setDrawMode=function(){console.error("THREE.Mesh: .setDrawMode() has been removed. The renderer now always assumes THREE.TrianglesDrawMode. Transform your geometry via BufferGeometryUtils.toTrianglesDrawMode() if necessary.")},Object.defineProperties(ts.prototype,{drawMode:{get:function(){return console.error("THREE.Mesh: .drawMode has been removed. The renderer now always assumes THREE.TrianglesDrawMode."),Ct},set:function(){console.error("THREE.Mesh: .drawMode has been removed. The renderer now always assumes THREE.TrianglesDrawMode. Transform your geometry via BufferGeometryUtils.toTrianglesDrawMode() if necessary.")}}}),Dl.prototype.initBones=function(){console.error("THREE.SkinnedMesh: initBones() has been removed.")},cs.prototype.setLens=function(e,t){console.warn("THREE.PerspectiveCamera.setLens is deprecated. Use .setFocalLength and .filmGauge for a photographic setup."),void 0!==t&&(this.filmGauge=t),this.setFocalLength(e)},Object.defineProperties(yh.prototype,{onlyShadow:{set:function(){console.warn("THREE.Light: .onlyShadow has been removed.")}},shadowCameraFov:{set:function(e){console.warn("THREE.Light: .shadowCameraFov is now .shadow.camera.fov."),this.shadow.camera.fov=e}},shadowCameraLeft:{set:function(e){console.warn("THREE.Light: .shadowCameraLeft is now .shadow.camera.left."),this.shadow.camera.left=e}},shadowCameraRight:{set:function(e){console.warn("THREE.Light: .shadowCameraRight is now .shadow.camera.right."),this.shadow.camera.right=e}},shadowCameraTop:{set:function(e){console.warn("THREE.Light: .shadowCameraTop is now .shadow.camera.top."),this.shadow.camera.top=e}},shadowCameraBottom:{set:function(e){console.warn("THREE.Light: .shadowCameraBottom is now .shadow.camera.bottom."),this.shadow.camera.bottom=e}},shadowCameraNear:{set:function(e){console.warn("THREE.Light: .shadowCameraNear is now .shadow.camera.near."),this.shadow.camera.near=e}},shadowCameraFar:{set:function(e){console.warn("THREE.Light: .shadowCameraFar is now .shadow.camera.far."),this.shadow.camera.far=e}},shadowCameraVisible:{set:function(){console.warn("THREE.Light: .shadowCameraVisible has been removed. Use new THREE.CameraHelper( light.shadow.camera ) instead.")}},shadowBias:{set:function(e){console.warn("THREE.Light: .shadowBias is now .shadow.bias."),this.shadow.bias=e}},shadowDarkness:{set:function(){console.warn("THREE.Light: .shadowDarkness has been removed.")}},shadowMapWidth:{set:function(e){console.warn("THREE.Light: .shadowMapWidth is now .shadow.mapSize.width."),this.shadow.mapSize.width=e}},shadowMapHeight:{set:function(e){console.warn("THREE.Light: .shadowMapHeight is now .shadow.mapSize.height."),this.shadow.mapSize.height=e}}}),Object.defineProperties(xi.prototype,{length:{get:function(){return console.warn("THREE.BufferAttribute: .length has been deprecated. Use .count instead."),this.array.length}},dynamic:{get:function(){return console.warn("THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead."),this.usage===nn},set:function(){console.warn("THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead."),this.setUsage(nn)}}}),xi.prototype.setDynamic=function(e){return console.warn("THREE.BufferAttribute: .setDynamic() has been deprecated. Use .setUsage() instead."),this.setUsage(!0===e?nn:tn),this},xi.prototype.copyIndicesArray=function(){console.error("THREE.BufferAttribute: .copyIndicesArray() has been removed.")},xi.prototype.setArray=function(){console.error("THREE.BufferAttribute: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers")},Fi.prototype.addIndex=function(e){console.warn("THREE.BufferGeometry: .addIndex() has been renamed to .setIndex()."),this.setIndex(e)},Fi.prototype.addAttribute=function(e,t){return console.warn("THREE.BufferGeometry: .addAttribute() has been renamed to .setAttribute()."),t&&t.isBufferAttribute||t&&t.isInterleavedBufferAttribute?"index"===e?(console.warn("THREE.BufferGeometry.addAttribute: Use .setIndex() for index attribute."),this.setIndex(t),this):this.setAttribute(e,t):(console.warn("THREE.BufferGeometry: .addAttribute() now expects ( name, attribute )."),this.setAttribute(e,new xi(arguments[1],arguments[2])))},Fi.prototype.addDrawCall=function(e,t,n){void 0!==n&&console.warn("THREE.BufferGeometry: .addDrawCall() no longer supports indexOffset."),console.warn("THREE.BufferGeometry: .addDrawCall() is now .addGroup()."),this.addGroup(e,t)},Fi.prototype.clearDrawCalls=function(){console.warn("THREE.BufferGeometry: .clearDrawCalls() is now .clearGroups()."),this.clearGroups()},Fi.prototype.computeOffsets=function(){console.warn("THREE.BufferGeometry: .computeOffsets() has been removed.")},Fi.prototype.removeAttribute=function(e){return console.warn("THREE.BufferGeometry: .removeAttribute() has been renamed to .deleteAttribute()."),this.deleteAttribute(e)},Fi.prototype.applyMatrix=function(e){return console.warn("THREE.BufferGeometry: .applyMatrix() has been renamed to .applyMatrix4()."),this.applyMatrix4(e)},Object.defineProperties(Fi.prototype,{drawcalls:{get:function(){return console.error("THREE.BufferGeometry: .drawcalls has been renamed to .groups."),this.groups}},offsets:{get:function(){return console.warn("THREE.BufferGeometry: .offsets has been renamed to .groups."),this.groups}}}),al.prototype.setDynamic=function(e){return console.warn("THREE.InterleavedBuffer: .setDynamic() has been deprecated. Use .setUsage() instead."),this.setUsage(!0===e?nn:tn),this},al.prototype.setArray=function(){console.error("THREE.InterleavedBuffer: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers")},xu.prototype.getArrays=function(){console.error("THREE.ExtrudeGeometry: .getArrays() has been removed.")},xu.prototype.addShapeList=function(){console.error("THREE.ExtrudeGeometry: .addShapeList() has been removed.")},xu.prototype.addShape=function(){console.error("THREE.ExtrudeGeometry: .addShape() has been removed.")},sl.prototype.dispose=function(){console.error("THREE.Scene: .dispose() has been removed.")},Cd.prototype.onUpdate=function(){return console.warn("THREE.Uniform: .onUpdate() has been removed. Use object.onBeforeRender() instead."),this},Object.defineProperties(mi.prototype,{wrapAround:{get:function(){console.warn("THREE.Material: .wrapAround has been removed.")},set:function(){console.warn("THREE.Material: .wrapAround has been removed.")}},overdraw:{get:function(){console.warn("THREE.Material: .overdraw has been removed.")},set:function(){console.warn("THREE.Material: .overdraw has been removed.")}},wrapRGB:{get:function(){return console.warn("THREE.Material: .wrapRGB has been removed."),new Bn}},shading:{get:function(){console.error("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead.")},set:function(e){console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead."),this.flatShading=e===v}},stencilMask:{get:function(){return console.warn("THREE."+this.type+": .stencilMask has been removed. Use .stencilFuncMask instead."),this.stencilFuncMask},set:function(e){console.warn("THREE."+this.type+": .stencilMask has been removed. Use .stencilFuncMask instead."),this.stencilFuncMask=e}},vertexTangents:{get:function(){console.warn("THREE."+this.type+": .vertexTangents has been removed.")},set:function(){console.warn("THREE."+this.type+": .vertexTangents has been removed.")}}}),Object.defineProperties(os.prototype,{derivatives:{get:function(){return console.warn("THREE.ShaderMaterial: .derivatives has been moved to .extensions.derivatives."),this.extensions.derivatives},set:function(e){console.warn("THREE. ShaderMaterial: .derivatives has been moved to .extensions.derivatives."),this.extensions.derivatives=e}}}),tl.prototype.clearTarget=function(e,t,n,r){console.warn("THREE.WebGLRenderer: .clearTarget() has been deprecated. Use .setRenderTarget() and .clear() instead."),this.setRenderTarget(e),this.clear(t,n,r)},tl.prototype.animate=function(e){console.warn("THREE.WebGLRenderer: .animate() is now .setAnimationLoop()."),this.setAnimationLoop(e)},tl.prototype.getCurrentRenderTarget=function(){return console.warn("THREE.WebGLRenderer: .getCurrentRenderTarget() is now .getRenderTarget()."),this.getRenderTarget()},tl.prototype.getMaxAnisotropy=function(){return console.warn("THREE.WebGLRenderer: .getMaxAnisotropy() is now .capabilities.getMaxAnisotropy()."),this.capabilities.getMaxAnisotropy()},tl.prototype.getPrecision=function(){return console.warn("THREE.WebGLRenderer: .getPrecision() is now .capabilities.precision."),this.capabilities.precision},tl.prototype.resetGLState=function(){return console.warn("THREE.WebGLRenderer: .resetGLState() is now .state.reset()."),this.state.reset()},tl.prototype.supportsFloatTextures=function(){return console.warn("THREE.WebGLRenderer: .supportsFloatTextures() is now .extensions.get( 'OES_texture_float' )."),this.extensions.get("OES_texture_float")},tl.prototype.supportsHalfFloatTextures=function(){return console.warn("THREE.WebGLRenderer: .supportsHalfFloatTextures() is now .extensions.get( 'OES_texture_half_float' )."),this.extensions.get("OES_texture_half_float")},tl.prototype.supportsStandardDerivatives=function(){return console.warn("THREE.WebGLRenderer: .supportsStandardDerivatives() is now .extensions.get( 'OES_standard_derivatives' )."),this.extensions.get("OES_standard_derivatives")},tl.prototype.supportsCompressedTextureS3TC=function(){return console.warn("THREE.WebGLRenderer: .supportsCompressedTextureS3TC() is now .extensions.get( 'WEBGL_compressed_texture_s3tc' )."),this.extensions.get("WEBGL_compressed_texture_s3tc")},tl.prototype.supportsCompressedTexturePVRTC=function(){return console.warn("THREE.WebGLRenderer: .supportsCompressedTexturePVRTC() is now .extensions.get( 'WEBGL_compressed_texture_pvrtc' )."),this.extensions.get("WEBGL_compressed_texture_pvrtc")},tl.prototype.supportsBlendMinMax=function(){return console.warn("THREE.WebGLRenderer: .supportsBlendMinMax() is now .extensions.get( 'EXT_blend_minmax' )."),this.extensions.get("EXT_blend_minmax")},tl.prototype.supportsVertexTextures=function(){return console.warn("THREE.WebGLRenderer: .supportsVertexTextures() is now .capabilities.vertexTextures."),this.capabilities.vertexTextures},tl.prototype.supportsInstancedArrays=function(){return console.warn("THREE.WebGLRenderer: .supportsInstancedArrays() is now .extensions.get( 'ANGLE_instanced_arrays' )."),this.extensions.get("ANGLE_instanced_arrays")},tl.prototype.enableScissorTest=function(e){console.warn("THREE.WebGLRenderer: .enableScissorTest() is now .setScissorTest()."),this.setScissorTest(e)},tl.prototype.initMaterial=function(){console.warn("THREE.WebGLRenderer: .initMaterial() has been removed.")},tl.prototype.addPrePlugin=function(){console.warn("THREE.WebGLRenderer: .addPrePlugin() has been removed.")},tl.prototype.addPostPlugin=function(){console.warn("THREE.WebGLRenderer: .addPostPlugin() has been removed.")},tl.prototype.updateShadowMap=function(){console.warn("THREE.WebGLRenderer: .updateShadowMap() has been removed.")},tl.prototype.setFaceCulling=function(){console.warn("THREE.WebGLRenderer: .setFaceCulling() has been removed.")},tl.prototype.allocTextureUnit=function(){console.warn("THREE.WebGLRenderer: .allocTextureUnit() has been removed.")},tl.prototype.setTexture=function(){console.warn("THREE.WebGLRenderer: .setTexture() has been removed.")},tl.prototype.setTexture2D=function(){console.warn("THREE.WebGLRenderer: .setTexture2D() has been removed.")},tl.prototype.setTextureCube=function(){console.warn("THREE.WebGLRenderer: .setTextureCube() has been removed.")},tl.prototype.getActiveMipMapLevel=function(){return console.warn("THREE.WebGLRenderer: .getActiveMipMapLevel() is now .getActiveMipmapLevel()."),this.getActiveMipmapLevel()},Object.defineProperties(tl.prototype,{shadowMapEnabled:{get:function(){return this.shadowMap.enabled},set:function(e){console.warn("THREE.WebGLRenderer: .shadowMapEnabled is now .shadowMap.enabled."),this.shadowMap.enabled=e}},shadowMapType:{get:function(){return this.shadowMap.type},set:function(e){console.warn("THREE.WebGLRenderer: .shadowMapType is now .shadowMap.type."),this.shadowMap.type=e}},shadowMapCullFace:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.")}},context:{get:function(){return console.warn("THREE.WebGLRenderer: .context has been removed. Use .getContext() instead."),this.getContext()}},vr:{get:function(){return console.warn("THREE.WebGLRenderer: .vr has been renamed to .xr"),this.xr}},gammaInput:{get:function(){return console.warn("THREE.WebGLRenderer: .gammaInput has been removed. Set the encoding for textures via Texture.encoding instead."),!1},set:function(){console.warn("THREE.WebGLRenderer: .gammaInput has been removed. Set the encoding for textures via Texture.encoding instead.")}},gammaOutput:{get:function(){return console.warn("THREE.WebGLRenderer: .gammaOutput has been removed. Set WebGLRenderer.outputEncoding instead."),!1},set:function(e){console.warn("THREE.WebGLRenderer: .gammaOutput has been removed. Set WebGLRenderer.outputEncoding instead."),this.outputEncoding=!0===e?Nt:Dt}},toneMappingWhitePoint:{get:function(){return console.warn("THREE.WebGLRenderer: .toneMappingWhitePoint has been removed."),1},set:function(){console.warn("THREE.WebGLRenderer: .toneMappingWhitePoint has been removed.")}},gammaFactor:{get:function(){return console.warn("THREE.WebGLRenderer: .gammaFactor has been removed."),2},set:function(){console.warn("THREE.WebGLRenderer: .gammaFactor has been removed.")}}}),Object.defineProperties(Wo.prototype,{cullFace:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")}},renderReverseSided:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")}},renderSingleSided:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")}}}),Object.defineProperties(Xn.prototype,{wrapS:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."),this.texture.wrapS},set:function(e){console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."),this.texture.wrapS=e}},wrapT:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."),this.texture.wrapT},set:function(e){console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."),this.texture.wrapT=e}},magFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."),this.texture.magFilter},set:function(e){console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."),this.texture.magFilter=e}},minFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."),this.texture.minFilter},set:function(e){console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."),this.texture.minFilter=e}},anisotropy:{get:function(){return console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."),this.texture.anisotropy},set:function(e){console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."),this.texture.anisotropy=e}},offset:{get:function(){return console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."),this.texture.offset},set:function(e){console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."),this.texture.offset=e}},repeat:{get:function(){return console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."),this.texture.repeat},set:function(e){console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."),this.texture.repeat=e}},format:{get:function(){return console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."),this.texture.format},set:function(e){console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."),this.texture.format=e}},type:{get:function(){return console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."),this.texture.type},set:function(e){console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."),this.texture.type=e}},generateMipmaps:{get:function(){return console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."),this.texture.generateMipmaps},set:function(e){console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."),this.texture.generateMipmaps=e}}}),ld.prototype.load=function(e){console.warn("THREE.Audio: .load has been deprecated. Use THREE.AudioLoader instead.");const t=this;return(new Yh).load(e,(function(e){t.setBuffer(e)})),this},fd.prototype.getData=function(){return console.warn("THREE.AudioAnalyser: .getData() is now .getFrequencyData()."),this.getFrequencyData()},hs.prototype.updateCubeMap=function(e,t){return console.warn("THREE.CubeCamera: .updateCubeMap() is now .update()."),this.update(e,t)},hs.prototype.clear=function(e,t,n,r){return console.warn("THREE.CubeCamera: .clear() is now .renderTarget.clear()."),this.renderTarget.clear(e,t,n,r)},kn.crossOrigin=void 0,kn.loadTexture=function(e,t,n,r){console.warn("THREE.ImageUtils.loadTexture has been deprecated. Use THREE.TextureLoader() instead.");const i=new vh;i.setCrossOrigin(this.crossOrigin);const s=i.load(e,n,void 0,r);return t&&(s.mapping=t),s},kn.loadTextureCube=function(e,t,n,r){console.warn("THREE.ImageUtils.loadTextureCube has been deprecated. Use THREE.CubeTextureLoader() instead.");const i=new mh;i.setCrossOrigin(this.crossOrigin);const s=i.load(e,n,void 0,r);return t&&(s.mapping=t),s},kn.loadCompressedTexture=function(){console.error("THREE.ImageUtils.loadCompressedTexture has been removed. Use THREE.DDSLoader instead.")},kn.loadCompressedTextureCube=function(){console.error("THREE.ImageUtils.loadCompressedTextureCube has been removed. Use THREE.DDSLoader instead.")};const rf={createMultiMaterialObject:function(){console.error("THREE.SceneUtils has been moved to /examples/jsm/utils/SceneUtils.js")},detach:function(){console.error("THREE.SceneUtils has been moved to /examples/jsm/utils/SceneUtils.js")},attach:function(){console.error("THREE.SceneUtils has been moved to /examples/jsm/utils/SceneUtils.js")}};function sf(){console.error("THREE.LensFlare has been moved to /examples/jsm/objects/Lensflare.js")}function af(){return console.error("THREE.ParametricGeometry has been moved to /examples/jsm/geometries/ParametricGeometry.js"),new Fi}function of(){return console.error("THREE.TextGeometry has been moved to /examples/jsm/geometries/TextGeometry.js"),new Fi}function lf(){console.error("THREE.FontLoader has been moved to /examples/jsm/loaders/FontLoader.js")}function cf(){console.error("THREE.Font has been moved to /examples/jsm/loaders/FontLoader.js")}function uf(){console.error("THREE.ImmediateRenderObject has been removed.")}function hf(e,t,n){console.error('THREE.WebGLMultisampleRenderTarget has been removed. Use a normal render target and set the "samples" property to greater 0 to enable multisampling.');const r=new Xn(e,t,n);return r.samples=4,r}function df(e,t,n,r){return console.warn("THREE.DataTexture2DArray has been renamed to DataArrayTexture."),new Yn(e,t,n,r)}function pf(e,t,n,r){return console.warn("THREE.DataTexture3D has been renamed to Data3DTexture."),new Jn(e,t,n,r)}"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register",{detail:{revision:r}})),"undefined"!=typeof window&&(window.__THREE__?console.warn("WARNING: Multiple instances of Three.js being imported."):window.__THREE__=r)},917047:(e,t,n)=>{"use strict";n.d(t,{E:()=>i});var r=n(2212);class i extends r.Loader{constructor(e){super(e),this.dracoLoader=null,this.ktx2Loader=null,this.meshoptDecoder=null,this.pluginCallbacks=[],this.register((function(e){return new c(e)})),this.register((function(e){return new m(e)})),this.register((function(e){return new g(e)})),this.register((function(e){return new u(e)})),this.register((function(e){return new h(e)})),this.register((function(e){return new d(e)})),this.register((function(e){return new p(e)})),this.register((function(e){return new f(e)})),this.register((function(e){return new o(e)})),this.register((function(e){return new v(e)}))}load(e,t,n,i){const s=this;let a;a=""!==this.resourcePath?this.resourcePath:""!==this.path?this.path:r.LoaderUtils.extractUrlBase(e),this.manager.itemStart(e);const o=function(t){i?i(t):console.error(t),s.manager.itemError(e),s.manager.itemEnd(e)},l=new r.FileLoader(this.manager);l.setPath(this.path),l.setResponseType("arraybuffer"),l.setRequestHeader(this.requestHeader),l.setWithCredentials(this.withCredentials),l.load(e,(function(n){try{s.parse(n,a,(function(n){t(n),s.manager.itemEnd(e)}),o)}catch(e){o(e)}}),n,o)}setDRACOLoader(e){return this.dracoLoader=e,this}setDDSLoader(){throw new Error('THREE.GLTFLoader: "MSFT_texture_dds" no longer supported. Please update to "KHR_texture_basisu".')}setKTX2Loader(e){return this.ktx2Loader=e,this}setMeshoptDecoder(e){return this.meshoptDecoder=e,this}register(e){return-1===this.pluginCallbacks.indexOf(e)&&this.pluginCallbacks.push(e),this}unregister(e){return-1!==this.pluginCallbacks.indexOf(e)&&this.pluginCallbacks.splice(this.pluginCallbacks.indexOf(e),1),this}parse(e,t,n,i){let s;const o={},c={};if("string"==typeof e)s=e;else if(r.LoaderUtils.decodeText(new Uint8Array(e,0,4))===y){try{o[a.KHR_BINARY_GLTF]=new x(e)}catch(e){return void(i&&i(e))}s=o[a.KHR_BINARY_GLTF].content}else s=r.LoaderUtils.decodeText(new Uint8Array(e));const u=JSON.parse(s);if(void 0===u.asset||u.asset.version[0]<2)return void(i&&i(new Error("THREE.GLTFLoader: Unsupported asset. glTF versions >=2.0 are supported.")));const h=new k(u,{path:t||this.resourcePath||"",crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});h.fileLoader.setRequestHeader(this.requestHeader);for(let e=0;e=0&&void 0===c[t]&&console.warn('THREE.GLTFLoader: Unknown extension "'+t+'".')}}h.setExtensions(o),h.setPlugins(c),h.parse(n,i)}parseAsync(e,t){const n=this;return new Promise((function(r,i){n.parse(e,t,r,i)}))}}function s(){let e={};return{get:function(t){return e[t]},add:function(t,n){e[t]=n},remove:function(t){delete e[t]},removeAll:function(){e={}}}}const a={KHR_BINARY_GLTF:"KHR_binary_glTF",KHR_DRACO_MESH_COMPRESSION:"KHR_draco_mesh_compression",KHR_LIGHTS_PUNCTUAL:"KHR_lights_punctual",KHR_MATERIALS_CLEARCOAT:"KHR_materials_clearcoat",KHR_MATERIALS_IOR:"KHR_materials_ior",KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS:"KHR_materials_pbrSpecularGlossiness",KHR_MATERIALS_SHEEN:"KHR_materials_sheen",KHR_MATERIALS_SPECULAR:"KHR_materials_specular",KHR_MATERIALS_TRANSMISSION:"KHR_materials_transmission",KHR_MATERIALS_UNLIT:"KHR_materials_unlit",KHR_MATERIALS_VOLUME:"KHR_materials_volume",KHR_TEXTURE_BASISU:"KHR_texture_basisu",KHR_TEXTURE_TRANSFORM:"KHR_texture_transform",KHR_MESH_QUANTIZATION:"KHR_mesh_quantization",EXT_TEXTURE_WEBP:"EXT_texture_webp",EXT_MESHOPT_COMPRESSION:"EXT_meshopt_compression"};class o{constructor(e){this.parser=e,this.name=a.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}_markDefs(){const e=this.parser,t=this.parser.json.nodes||[];for(let n=0,r=t.length;n=0)throw new Error("THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures");return null}return t.loadTextureImage(e,i.source,s)}}class g{constructor(e){this.parser=e,this.name=a.EXT_TEXTURE_WEBP,this.isSupported=null}loadTexture(e){const t=this.name,n=this.parser,r=n.json,i=r.textures[e];if(!i.extensions||!i.extensions[t])return null;const s=i.extensions[t],a=r.images[s.source];let o=n.textureLoader;if(a.uri){const e=n.options.manager.getHandler(a.uri);null!==e&&(o=e)}return this.detectSupport().then((function(i){if(i)return n.loadTextureImage(e,a,o);if(r.extensionsRequired&&r.extensionsRequired.indexOf(t)>=0)throw new Error("THREE.GLTFLoader: WebP required by asset but unsupported.");return n.loadTexture(e)}))}detectSupport(){return this.isSupported||(this.isSupported=new Promise((function(e){const t=new Image;t.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",t.onload=t.onerror=function(){e(1===t.height)}}))),this.isSupported}}class v{constructor(e){this.name=a.EXT_MESHOPT_COMPRESSION,this.parser=e}loadBufferView(e){const t=this.parser.json,n=t.bufferViews[e];if(n.extensions&&n.extensions[this.name]){const e=n.extensions[this.name],r=this.parser.getDependency("buffer",e.buffer),i=this.parser.options.meshoptDecoder;if(!i||!i.supported){if(t.extensionsRequired&&t.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files");return null}return Promise.all([r,i.ready]).then((function(t){const n=e.byteOffset||0,r=e.byteLength||0,s=e.count,a=e.byteStride,o=new ArrayBuffer(s*a),l=new Uint8Array(t[0],n,r);return i.decodeGltfBuffer(new Uint8Array(o),s,a,l,e.mode,e.filter),o}))}return null}}const y="glTF";class x{constructor(e){this.name=a.KHR_BINARY_GLTF,this.content=null,this.body=null;const t=new DataView(e,0,12);if(this.header={magic:r.LoaderUtils.decodeText(new Uint8Array(e.slice(0,4))),version:t.getUint32(4,!0),length:t.getUint32(8,!0)},this.header.magic!==y)throw new Error("THREE.GLTFLoader: Unsupported glTF-Binary header.");if(this.header.version<2)throw new Error("THREE.GLTFLoader: Legacy binary file detected.");const n=this.header.length-12,i=new DataView(e,12);let s=0;for(;s",t).replace("#include ",n).replace("#include ",i).replace("#include ",s).replace("#include ",a)},Object.defineProperties(this,{specular:{get:function(){return o.specular.value},set:function(e){o.specular.value=e}},specularMap:{get:function(){return o.specularMap.value},set:function(e){o.specularMap.value=e,e?this.defines.USE_SPECULARMAP="":delete this.defines.USE_SPECULARMAP}},glossiness:{get:function(){return o.glossiness.value},set:function(e){o.glossiness.value=e}},glossinessMap:{get:function(){return o.glossinessMap.value},set:function(e){o.glossinessMap.value=e,e?(this.defines.USE_GLOSSINESSMAP="",this.defines.USE_UV=""):(delete this.defines.USE_GLOSSINESSMAP,delete this.defines.USE_UV)}}}),delete this.metalness,delete this.roughness,delete this.metalnessMap,delete this.roughnessMap,this.setValues(e)}copy(e){return super.copy(e),this.specularMap=e.specularMap,this.specular.copy(e.specular),this.glossinessMap=e.glossinessMap,this.glossiness=e.glossiness,delete this.metalness,delete this.roughness,delete this.metalnessMap,delete this.roughnessMap,this}}class M{constructor(){this.name=a.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS,this.specularGlossinessParams=["color","map","lightMap","lightMapIntensity","aoMap","aoMapIntensity","emissive","emissiveIntensity","emissiveMap","bumpMap","bumpScale","normalMap","normalMapType","displacementMap","displacementScale","displacementBias","specularMap","specular","glossinessMap","glossiness","alphaMap","envMap","envMapIntensity","refractionRatio"]}getMaterialType(){return w}extendParams(e,t,n){const i=t.extensions[this.name];e.color=new r.Color(1,1,1),e.opacity=1;const s=[];if(Array.isArray(i.diffuseFactor)){const t=i.diffuseFactor;e.color.fromArray(t),e.opacity=t[3]}if(void 0!==i.diffuseTexture&&s.push(n.assignTexture(e,"map",i.diffuseTexture)),e.emissive=new r.Color(0,0,0),e.glossiness=void 0!==i.glossinessFactor?i.glossinessFactor:1,e.specular=new r.Color(1,1,1),Array.isArray(i.specularFactor)&&e.specular.fromArray(i.specularFactor),void 0!==i.specularGlossinessTexture){const t=i.specularGlossinessTexture;s.push(n.assignTexture(e,"glossinessMap",t)),s.push(n.assignTexture(e,"specularMap",t))}return Promise.all(s)}createMaterial(e){const t=new w(e);return t.fog=!0,t.color=e.color,t.map=void 0===e.map?null:e.map,t.lightMap=null,t.lightMapIntensity=1,t.aoMap=void 0===e.aoMap?null:e.aoMap,t.aoMapIntensity=1,t.emissive=e.emissive,t.emissiveIntensity=1,t.emissiveMap=void 0===e.emissiveMap?null:e.emissiveMap,t.bumpMap=void 0===e.bumpMap?null:e.bumpMap,t.bumpScale=1,t.normalMap=void 0===e.normalMap?null:e.normalMap,t.normalMapType=r.TangentSpaceNormalMap,e.normalScale&&(t.normalScale=e.normalScale),t.displacementMap=null,t.displacementScale=1,t.displacementBias=0,t.specularMap=void 0===e.specularMap?null:e.specularMap,t.specular=e.specular,t.glossinessMap=void 0===e.glossinessMap?null:e.glossinessMap,t.glossiness=e.glossiness,t.alphaMap=null,t.envMap=void 0===e.envMap?null:e.envMap,t.envMapIntensity=1,t.refractionRatio=.98,t}}class S{constructor(){this.name=a.KHR_MESH_QUANTIZATION}}class E extends r.Interpolant{constructor(e,t,n,r){super(e,t,n,r)}copySampleValue_(e){const t=this.resultBuffer,n=this.sampleValues,r=this.valueSize,i=e*r*3+r;for(let e=0;e!==r;e++)t[e]=n[i+e];return t}}E.prototype.beforeStart_=E.prototype.copySampleValue_,E.prototype.afterEnd_=E.prototype.copySampleValue_,E.prototype.interpolate_=function(e,t,n,r){const i=this.resultBuffer,s=this.sampleValues,a=this.valueSize,o=2*a,l=3*a,c=r-t,u=(n-t)/c,h=u*u,d=h*u,p=e*l,f=p-l,m=-2*d+3*h,g=d-h,v=1-m,y=g-h+u;for(let e=0;e!==a;e++){const t=s[f+e+a],n=s[f+e+o]*c,r=s[p+e+a],l=s[p+e]*c;i[e]=v*t+y*n+m*r+g*l}return i};const T=new r.Quaternion;class A extends E{interpolate_(e,t,n,r){const i=super.interpolate_(e,t,n,r);return T.fromArray(i).normalize().toArray(i),i}}const R={5120:Int8Array,5121:Uint8Array,5122:Int16Array,5123:Uint16Array,5125:Uint32Array,5126:Float32Array},L={9728:r.NearestFilter,9729:r.LinearFilter,9984:r.NearestMipmapNearestFilter,9985:r.LinearMipmapNearestFilter,9986:r.NearestMipmapLinearFilter,9987:r.LinearMipmapLinearFilter},C={33071:r.ClampToEdgeWrapping,33648:r.MirroredRepeatWrapping,10497:r.RepeatWrapping},P={SCALAR:1,VEC2:2,VEC3:3,VEC4:4,MAT2:4,MAT3:9,MAT4:16},I={POSITION:"position",NORMAL:"normal",TANGENT:"tangent",TEXCOORD_0:"uv",TEXCOORD_1:"uv2",COLOR_0:"color",WEIGHTS_0:"skinWeight",JOINTS_0:"skinIndex"},D={scale:"scale",translation:"position",rotation:"quaternion",weights:"morphTargetInfluences"},N={CUBICSPLINE:void 0,LINEAR:r.InterpolateLinear,STEP:r.InterpolateDiscrete};function O(e,t,n){for(const r in n.extensions)void 0===e[r]&&(t.userData.gltfExtensions=t.userData.gltfExtensions||{},t.userData.gltfExtensions[r]=n.extensions[r])}function z(e,t){void 0!==t.extras&&("object"==typeof t.extras?Object.assign(e.userData,t.extras):console.warn("THREE.GLTFLoader: Ignoring primitive type .extras, "+t.extras))}function F(e,t){if(e.updateMorphTargets(),void 0!==t.weights)for(let n=0,r=t.weights.length;n{const n=this.associations.get(e);null!=n&&this.associations.set(t,n);for(const[n,r]of e.children.entries())i(r,t.children[n])};return i(n,r),r.name+="_instance_"+e.uses[t]++,r}_invokeOne(e){const t=Object.values(this.plugins);t.push(this);for(let n=0;n=2&&f.setY(t,h[e*a+1]),a>=3&&f.setZ(t,h[e*a+2]),a>=4&&f.setW(t,h[e*a+3]),a>=5)throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.")}}return f}))}loadTexture(e){const t=this.json,n=this.options,r=t.textures[e].source,i=t.images[r];let s=this.textureLoader;if(i.uri){const e=n.manager.getHandler(i.uri);null!==e&&(s=e)}return this.loadTextureImage(e,r,s)}loadTextureImage(e,t,n){const i=this,s=this.json,a=s.textures[e],o=s.images[t],l=(o.uri||o.bufferView)+":"+a.sampler;if(this.textureCache[l])return this.textureCache[l];const c=this.loadImageSource(t,n).then((function(t){t.flipY=!1,a.name&&(t.name=a.name);const n=(s.samplers||{})[a.sampler]||{};return t.magFilter=L[n.magFilter]||r.LinearFilter,t.minFilter=L[n.minFilter]||r.LinearMipmapLinearFilter,t.wrapS=C[n.wrapS]||r.RepeatWrapping,t.wrapT=C[n.wrapT]||r.RepeatWrapping,i.associations.set(t,{textures:e}),t})).catch((function(){return null}));return this.textureCache[l]=c,c}loadImageSource(e,t){const n=this.json,i=this.options;if(void 0!==this.sourceCache[e])return this.sourceCache[e].then((function(e){return e.clone()})).catch((function(e){throw e}));const s=n.images[e],a=self.URL||self.webkitURL;let o=s.uri||"",l=!1;if(void 0!==s.bufferView)o=this.getDependency("bufferView",s.bufferView).then((function(e){l=!0;const t=new Blob([e],{type:s.mimeType});return o=a.createObjectURL(t),o}));else if(void 0===s.uri)throw new Error("THREE.GLTFLoader: Image "+e+" is missing URI and bufferView");const c=Promise.resolve(o).then((function(e){return new Promise((function(n,s){let a=n;!0===t.isImageBitmapLoader&&(a=function(e){const t=new r.Texture(e);t.needsUpdate=!0,n(t)}),t.load(r.LoaderUtils.resolveURL(e,i.path),a,void 0,s)}))})).then((function(e){var t;return!0===l&&a.revokeObjectURL(o),e.userData.mimeType=s.mimeType||((t=s.uri).search(/\.jpe?g($|\?)/i)>0||0===t.search(/^data\:image\/jpeg/)?"image/jpeg":t.search(/\.webp($|\?)/i)>0||0===t.search(/^data\:image\/webp/)?"image/webp":"image/png"),e})).catch((function(e){throw console.error("THREE.GLTFLoader: Couldn't load texture",o),e}));return this.sourceCache[e]=c,c}assignTexture(e,t,n){const r=this;return this.getDependency("texture",n.index).then((function(i){if(void 0===n.texCoord||0==n.texCoord||"aoMap"===t&&1==n.texCoord||console.warn("THREE.GLTFLoader: Custom UV set "+n.texCoord+" for texture "+t+" not yet supported."),r.extensions[a.KHR_TEXTURE_TRANSFORM]){const e=void 0!==n.extensions?n.extensions[a.KHR_TEXTURE_TRANSFORM]:void 0;if(e){const t=r.associations.get(i);i=r.extensions[a.KHR_TEXTURE_TRANSFORM].extendTexture(i,e),r.associations.set(i,t)}}return e[t]=i,i}))}assignFinalMaterial(e){const t=e.geometry;let n=e.material;const i=void 0===t.attributes.tangent,s=void 0!==t.attributes.color,a=void 0===t.attributes.normal;if(e.isPoints){const e="PointsMaterial:"+n.uuid;let t=this.cache.get(e);t||(t=new r.PointsMaterial,r.Material.prototype.copy.call(t,n),t.color.copy(n.color),t.map=n.map,t.sizeAttenuation=!1,this.cache.add(e,t)),n=t}else if(e.isLine){const e="LineBasicMaterial:"+n.uuid;let t=this.cache.get(e);t||(t=new r.LineBasicMaterial,r.Material.prototype.copy.call(t,n),t.color.copy(n.color),this.cache.add(e,t)),n=t}if(i||s||a){let e="ClonedMaterial:"+n.uuid+":";n.isGLTFSpecularGlossinessMaterial&&(e+="specular-glossiness:"),i&&(e+="derivative-tangents:"),s&&(e+="vertex-colors:"),a&&(e+="flat-shading:");let t=this.cache.get(e);t||(t=n.clone(),s&&(t.vertexColors=!0),a&&(t.flatShading=!0),i&&(t.normalScale&&(t.normalScale.y*=-1),t.clearcoatNormalScale&&(t.clearcoatNormalScale.y*=-1)),this.cache.add(e,t),this.associations.set(t,this.associations.get(n))),n=t}n.aoMap&&void 0===t.attributes.uv2&&void 0!==t.attributes.uv&&t.setAttribute("uv2",t.attributes.uv),e.material=n}getMaterialType(){return r.MeshStandardMaterial}loadMaterial(e){const t=this,n=this.json,i=this.extensions,s=n.materials[e];let o;const l={},c=s.extensions||{},u=[];if(c[a.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS]){const e=i[a.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS];o=e.getMaterialType(),u.push(e.extendParams(l,s,t))}else if(c[a.KHR_MATERIALS_UNLIT]){const e=i[a.KHR_MATERIALS_UNLIT];o=e.getMaterialType(),u.push(e.extendParams(l,s,t))}else{const n=s.pbrMetallicRoughness||{};if(l.color=new r.Color(1,1,1),l.opacity=1,Array.isArray(n.baseColorFactor)){const e=n.baseColorFactor;l.color.fromArray(e),l.opacity=e[3]}void 0!==n.baseColorTexture&&u.push(t.assignTexture(l,"map",n.baseColorTexture)),l.metalness=void 0!==n.metallicFactor?n.metallicFactor:1,l.roughness=void 0!==n.roughnessFactor?n.roughnessFactor:1,void 0!==n.metallicRoughnessTexture&&(u.push(t.assignTexture(l,"metalnessMap",n.metallicRoughnessTexture)),u.push(t.assignTexture(l,"roughnessMap",n.metallicRoughnessTexture))),o=this._invokeOne((function(t){return t.getMaterialType&&t.getMaterialType(e)})),u.push(Promise.all(this._invokeAll((function(t){return t.extendMaterialParams&&t.extendMaterialParams(e,l)}))))}!0===s.doubleSided&&(l.side=r.DoubleSide);const h=s.alphaMode||"OPAQUE";if("BLEND"===h?(l.transparent=!0,l.depthWrite=!1):(l.transparent=!1,"MASK"===h&&(l.alphaTest=void 0!==s.alphaCutoff?s.alphaCutoff:.5)),void 0!==s.normalTexture&&o!==r.MeshBasicMaterial&&(u.push(t.assignTexture(l,"normalMap",s.normalTexture)),l.normalScale=new r.Vector2(1,1),void 0!==s.normalTexture.scale)){const e=s.normalTexture.scale;l.normalScale.set(e,e)}return void 0!==s.occlusionTexture&&o!==r.MeshBasicMaterial&&(u.push(t.assignTexture(l,"aoMap",s.occlusionTexture)),void 0!==s.occlusionTexture.strength&&(l.aoMapIntensity=s.occlusionTexture.strength)),void 0!==s.emissiveFactor&&o!==r.MeshBasicMaterial&&(l.emissive=(new r.Color).fromArray(s.emissiveFactor)),void 0!==s.emissiveTexture&&o!==r.MeshBasicMaterial&&u.push(t.assignTexture(l,"emissiveMap",s.emissiveTexture)),Promise.all(u).then((function(){let n;return n=o===w?i[a.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS].createMaterial(l):new o(l),s.name&&(n.name=s.name),n.map&&(n.map.encoding=r.sRGBEncoding),n.emissiveMap&&(n.emissiveMap.encoding=r.sRGBEncoding),n.sheenColorMap&&(n.sheenColorMap.encoding=r.sRGBEncoding),n.specularColorMap&&(n.specularColorMap.encoding=r.sRGBEncoding),n.specularMap&&(n.specularMap.encoding=r.sRGBEncoding),z(n,s),t.associations.set(n,{materials:e}),s.extensions&&O(i,n,s),n}))}createUniqueName(e){const t=r.PropertyBinding.sanitizeNodeName(e||"");let n=t;for(let e=1;this.nodeNamesUsed[n];++e)n=t+"_"+e;return this.nodeNamesUsed[n]=!0,n}loadGeometries(e){const t=this,n=this.extensions,i=this.primitiveCache;function s(e){return n[a.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(e,t).then((function(n){return V(n,e,t)}))}const o=[];for(let n=0,l=e.length;n0&&F(d,s),d.name=t.createUniqueName(s.name||"mesh_"+e),z(d,s),h.extensions&&O(i,d,h),t.assignFinalMaterial(d),c.push(d)}for(let n=0,r=c.length;n1?new r.Group:1===t.length?t[0]:new r.Object3D,o!==t[0])for(let e=0,n=t.length;e{const t=new Map;for(const[e,n]of s.associations)(e instanceof r.Material||e instanceof r.Texture)&&t.set(e,n);return e.traverse((e=>{const n=s.associations.get(e);null!=n&&t.set(e,n)})),t})(a),a}))}}function G(e,t,n,i){const s=n.nodes[e];return i.getDependency("node",e).then((function(e){if(void 0===s.skin)return e;let t;return i.getDependency("skin",s.skin).then((function(e){t=e;const n=[];for(let e=0,r=t.joints.length;e{"use strict";n.d(t,{w:()=>i});var r=n(2212);class i extends r.Loader{constructor(e){super(e),this.littleEndian=!0}load(e,t,n,i){const s=this,a=new r.FileLoader(s.manager);a.setPath(s.path),a.setResponseType("arraybuffer"),a.setRequestHeader(s.requestHeader),a.setWithCredentials(s.withCredentials),a.load(e,(function(n){try{t(s.parse(n,e))}catch(t){i?i(t):console.error(t),s.manager.itemError(e)}}),n,i)}parse(e,t){const n=r.LoaderUtils.decodeText(new Uint8Array(e)),i=function(e){const t={},n=e.search(/[\r\n]DATA\s(\S*)\s/i),r=/[\r\n]DATA\s(\S*)\s/i.exec(e.slice(n-1));if(t.data=r[1],t.headerLen=r[0].length+n,t.str=e.slice(0,t.headerLen),t.str=t.str.replace(/\#.*/gi,""),t.version=/VERSION (.*)/i.exec(t.str),t.fields=/FIELDS (.*)/i.exec(t.str),t.size=/SIZE (.*)/i.exec(t.str),t.type=/TYPE (.*)/i.exec(t.str),t.count=/COUNT (.*)/i.exec(t.str),t.width=/WIDTH (.*)/i.exec(t.str),t.height=/HEIGHT (.*)/i.exec(t.str),t.viewpoint=/VIEWPOINT (.*)/i.exec(t.str),t.points=/POINTS (.*)/i.exec(t.str),null!==t.version&&(t.version=parseFloat(t.version[1])),t.fields=null!==t.fields?t.fields[1].split(" "):[],null!==t.type&&(t.type=t.type[1].split(" ")),null!==t.width&&(t.width=parseInt(t.width[1])),null!==t.height&&(t.height=parseInt(t.height[1])),null!==t.viewpoint&&(t.viewpoint=t.viewpoint[1]),null!==t.points&&(t.points=parseInt(t.points[1],10)),null===t.points&&(t.points=t.width*t.height),null!==t.size&&(t.size=t.size[1].split(" ").map((function(e){return parseInt(e,10)}))),null!==t.count)t.count=t.count[1].split(" ").map((function(e){return parseInt(e,10)}));else{t.count=[];for(let e=0,n=t.fields.length;e>16&255,i=t>>8&255,s=t>>0&255;o.push(n/255,i/255,s/255)}void 0!==e.normal_x&&(a.push(parseFloat(r[e.normal_x])),a.push(parseFloat(r[e.normal_y])),a.push(parseFloat(r[e.normal_z])))}}if("binary_compressed"===i.data){const t=new Uint32Array(e.slice(i.headerLen,i.headerLen+8)),n=t[0],r=t[1],l=function(e,t){const n=e.length,r=new Uint8Array(t);let i,s,a,o=0,l=0;do{if(i=e[o++],i<32){if(i++,l+i>t)throw new Error("Output buffer is not large enough");if(o+i>n)throw new Error("Invalid compressed data");do{r[l++]=e[o++]}while(--i)}else{if(s=i>>5,a=l-((31&i)<<8)-1,o>=n)throw new Error("Invalid compressed data");if(7===s&&(s+=e[o++],o>=n))throw new Error("Invalid compressed data");if(a-=e[o++],l+s+2>t)throw new Error("Output buffer is not large enough");if(a<0)throw new Error("Invalid compressed data");if(a>=l)throw new Error("Invalid compressed data");do{r[l++]=r[a++]}while(2+--s)}}while(o0&&l.setAttribute("position",new r.Float32BufferAttribute(s,3)),a.length>0&&l.setAttribute("normal",new r.Float32BufferAttribute(a,3)),o.length>0&&l.setAttribute("color",new r.Float32BufferAttribute(o,3)),l.computeBoundingSphere();const c=new r.PointsMaterial({size:.005});o.length>0?c.vertexColors=!0:c.color.setHex(16777215*Math.random());const u=new r.Points(l,c);let h=t.split("").reverse().join("");return h=/([^\/]*)/.exec(h),h=h[1].split("").reverse().join(""),u.name=h,u}}},914671:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(124852);const i="undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent)?r.useEffect:r.useLayoutEffect;function s(e){const t="function"==typeof e?function(e){let t;const n=new Set,r=(e,r)=>{const i="function"==typeof e?e(t):e;if(i!==t){const e=t;t=r?i:Object.assign({},t,i),n.forEach((n=>n(t,e)))}},i=()=>t,s={setState:r,getState:i,subscribe:(e,r,s)=>r||s?((e,r=i,s=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let a=r(t);function o(){const n=r(t);if(!s(a,n)){const t=a;e(a=n,t)}}return n.add(o),()=>n.delete(o)})(e,r,s):(n.add(e),()=>n.delete(e)),destroy:()=>n.clear()};return t=e(r,i,s),s}(e):e,n=(e=t.getState,n=Object.is)=>{const[,s]=(0,r.useReducer)((e=>e+1),0),a=t.getState(),o=(0,r.useRef)(a),l=(0,r.useRef)(e),c=(0,r.useRef)(n),u=(0,r.useRef)(!1),h=(0,r.useRef)();let d;void 0===h.current&&(h.current=e(a));let p=!1;(o.current!==a||l.current!==e||c.current!==n||u.current)&&(d=e(a),p=!n(h.current,d)),i((()=>{p&&(h.current=d),o.current=a,l.current=e,c.current=n,u.current=!1}));const f=(0,r.useRef)(a);i((()=>{const e=()=>{try{const e=t.getState(),n=l.current(e);c.current(h.current,n)||(o.current=e,h.current=n,s())}catch(e){u.current=!0,s()}},n=t.subscribe(e);return t.getState()!==f.current&&e(),n}),[]);const m=p?d:h.current;return(0,r.useDebugValue)(m),m};return Object.assign(n,t),n[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const e=[n,t];return{next(){const t=e.length<=0;return{value:e.shift(),done:t}}}},n}}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/235.affd309bf2aa3f38d3a0.chunk.js.LICENSE.txt b/geonode_mapstore_client/static/mapstore/dist/js/235.018dc26183efb561a8b1.chunk.js.LICENSE.txt similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/235.affd309bf2aa3f38d3a0.chunk.js.LICENSE.txt rename to geonode_mapstore_client/static/mapstore/dist/js/235.018dc26183efb561a8b1.chunk.js.LICENSE.txt diff --git a/geonode_mapstore_client/static/mapstore/dist/js/23541.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/23541.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/23541.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/23541.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/23583.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/23583.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/23583.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/23583.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/23663.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/23663.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/23663.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/23663.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/23677.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/23677.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/23677.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/23677.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/23751.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/23751.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/23751.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/23751.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/23801.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/23801.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/23801.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/23801.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/24034.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/24034.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/24034.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/24034.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/24111.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/24111.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/24111.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/24111.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/24226.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/24226.018dc26183efb561a8b1.chunk.js similarity index 75% rename from geonode_mapstore_client/static/mapstore/dist/js/24226.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/24226.018dc26183efb561a8b1.chunk.js index 5236d6e680..a8dae9aae9 100644 --- a/geonode_mapstore_client/static/mapstore/dist/js/24226.affd309bf2aa3f38d3a0.chunk.js +++ b/geonode_mapstore_client/static/mapstore/dist/js/24226.018dc26183efb561a8b1.chunk.js @@ -1 +1 @@ -(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[24226],{542872:(e,t,r)=>{"use strict";r.d(t,{Z:()=>A});var n=r(124852),o=r.n(n),i=r(675263),s=r.n(i),a=r(396606),c=r(615402),u=r(805346),l=r(480681);function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function f(e,t){for(var r=0;rMath.abs(e.startX-r.pageX))t.stopPropagation();else{var o=e.startX{"use strict";r.d(t,{Z:()=>v});var n=r(675263),o=r.n(n),i=r(124852),s=r.n(i),a=r(480681),c=r(38560);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function l(e,t){for(var r=0;r1&&s().createElement("div",{className:"ms-identify-swipe-header-arrow"},this.renderLeftButton()),s().createElement("div",{className:"ms-identify-swipe-header-title"},this.props.title),this.props.size>1&&s().createElement("div",{className:"ms-identify-swipe-header-arrow"},this.renderRightButton()))}}])&&l(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),d}(s().Component);b(m,"propTypes",{title:o().string,index:o().number,size:o().number,container:o().oneOfType([o().object,o().func]),useButtons:o().bool,onPrevious:o().func,onNext:o().func,btnClassName:o().string}),b(m,"defaultProps",{useButtons:!0});const v=m},11196:(e,t,r)=>{"use strict";r.d(t,{mI:()=>i,Yy:()=>s});var n=r(867076),o=r(396606),i=(0,n.withHandlers)({onNext:function(e){var t=e.index,r=void 0===t?0:t,n=e.setIndex,o=void 0===n?function(){}:n,i=e.validResponses,s=void 0===i?[]:i;return function(){o(Math.min(s.length-1,r+1))}},onPrevious:function(e){var t=e.index,r=e.setIndex,n=void 0===r?function(){}:r;return function(){n(Math.max(0,t-1))}}}),s=(0,n.defaultProps)({format:(0,o.wR)(),validator:o.Te})},82110:(e,t,r)=>{"use strict";r.d(t,{Z:()=>p});var n=r(124852),o=r.n(n),i=r(496259),s=r(532425);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t0?Math.min(i,c):i),f=r||(c>0?Math.min(i,c):i),y=Math.min(p,f);return o().createElement(s.Z,{size:y,style:u({padding:y/10,margin:"auto",display:"flex"},l)})})))}},173014:(e,t,r)=>{"use strict";r.d(t,{Z:()=>u});var n=r(124852),o=r.n(n),i=r(867076),s=r(82110);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.Z;return(0,i.branch)(e,(function(){return function(e){var n=e.loaderProps;return o().createElement(r,a({},t,n))}}))}},902870:(e,t,r)=>{"use strict";r.d(t,{Qo:()=>y,jg:()=>b,oH:()=>d});var n=r(227361),o=r.n(n),i=r(453005),s=r(986267),a=r(552259);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r{"use strict";r.d(t,{Z:()=>A});var n=r(124852),o=r.n(n),i=r(675263),s=r.n(i),a=r(396606),c=r(615402),u=r(805346),l=r(480681);function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function f(e,t){for(var r=0;rMath.abs(e.startX-r.pageX))t.stopPropagation();else{var o=e.startX{"use strict";r.d(t,{Z:()=>v});var n=r(675263),o=r.n(n),i=r(124852),s=r.n(i),a=r(480681),c=r(38560);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function l(e,t){for(var r=0;r1&&s().createElement("div",{className:"ms-identify-swipe-header-arrow"},this.renderLeftButton()),s().createElement("div",{className:"ms-identify-swipe-header-title"},this.props.title),this.props.size>1&&s().createElement("div",{className:"ms-identify-swipe-header-arrow"},this.renderRightButton()))}}])&&l(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),d}(s().Component);b(m,"propTypes",{title:o().string,index:o().number,size:o().number,container:o().oneOfType([o().object,o().func]),useButtons:o().bool,onPrevious:o().func,onNext:o().func,btnClassName:o().string}),b(m,"defaultProps",{useButtons:!0});const v=m},11196:(e,t,r)=>{"use strict";r.d(t,{mI:()=>i,Yy:()=>s});var n=r(867076),o=r(396606),i=(0,n.withHandlers)({onNext:function(e){var t=e.index,r=void 0===t?0:t,n=e.setIndex,o=void 0===n?function(){}:n,i=e.validResponses,s=void 0===i?[]:i;return function(){o(Math.min(s.length-1,r+1))}},onPrevious:function(e){var t=e.index,r=e.setIndex,n=void 0===r?function(){}:r;return function(){n(Math.max(0,t-1))}}}),s=(0,n.defaultProps)({format:(0,o.wR)(),validator:o.Te})},82110:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n=r(124852),o=r.n(n),i=r(496259),s=r(532425);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t0?Math.min(i,c):i),f=r||(c>0?Math.min(i,c):i),y=Math.min(p,f);return o().createElement(s.Z,{size:y,style:u({padding:y/10,margin:"auto",display:"flex"},l)})})))}},173014:(e,t,r)=>{"use strict";r.d(t,{Z:()=>u});var n=r(124852),o=r.n(n),i=r(867076),s=r(82110);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.Z;return(0,i.branch)(e,(function(){return function(e){var n=e.loaderProps;return o().createElement(r,a({},t,n))}}))}},902870:(e,t,r)=>{"use strict";r.d(t,{Qo:()=>f,jg:()=>y,oH:()=>b});var n=r(227361),o=r.n(n),i=r(453005),s=r(986267),a=r(552259);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r{var n=r(844194);e.exports.$=function(e,t){var r=[],i=0,s=10,a=6;function o(e){if(t&&!1===t.noDuplicateMembers||!e.__duplicateProperties__||r.push({message:"An object contained duplicate members, making parsing ambigous: "+e.__duplicateProperties__.join(", "),line:e.__line__}),!l(e,"type","string"))if(m[e.type])e&&m[e.type](e);else{var n=g[e.type.toLowerCase()];void 0!==n?r.push({message:"Expected "+n+" but got "+e.type+" (case sensitive)",line:e.__line__}):r.push({message:"The type "+e.type+" is unknown",line:e.__line__})}}function u(e,t){return e.every((function(e){return null!==e&&typeof e===t}))}function l(e,t,n){if(void 0===e[t])return r.push({message:'"'+t+'" member required',line:e.__line__});if("array"===n){if(!Array.isArray(e[t]))return r.push({message:'"'+t+'" member should be an array, but is an '+typeof e[t]+" instead",line:e.__line__})}else{if("object"===n&&e[t]&&"Object"!==e[t].constructor.name)return r.push({message:'"'+t+'" member should be '+n+", but is an "+e[t].constructor.name+" instead",line:e.__line__});if(n&&typeof e[t]!==n)return r.push({message:'"'+t+'" member should be '+n+", but is an "+typeof e[t]+" instead",line:e.__line__})}}function h(e,n){if(!Array.isArray(e))return r.push({message:"position should be an array, is a "+typeof e+" instead",line:e.__line__||n});if(e.length<2)return r.push({message:"position must have 2 or more elements",line:e.__line__||n});if(e.length>3)return r.push({message:"position should not have more than 3 elements",level:"message",line:e.__line__||n});if(!u(e,"number"))return r.push({message:"each element in a position must be a number",line:e.__line__||n});if(t&&t.precisionWarning){if(i===s)return i+=1,r.push({message:"truncated warnings: we've encountered coordinate precision warning "+s+" times, no more warnings will be reported",level:"message",line:e.__line__||n});ia)return i+=1,r.push({message:"precision of coordinates should be reduced",level:"message",line:e.__line__||n})}))}}function c(e,t,n,i){if(void 0===i&&void 0!==e.__line__&&(i=e.__line__),0===n)return h(e,i);if(1===n&&t)if("LinearRing"===t){if(!Array.isArray(e[e.length-1]))return r.push({message:"a number was found where a coordinate array should have been found: this needs to be nested more deeply",line:i}),!0;if(e.length<4&&r.push({message:"a LinearRing of coordinates needs to have four or more positions",line:i}),e.length&&(e[e.length-1].length!==e[0].length||!e[e.length-1].every((function(t,r){return e[0][r]===t}))))return r.push({message:"the first and last positions in a LinearRing of coordinates must be the same",line:i}),!0}else if("Line"===t&&e.length<2)return r.push({message:"a line needs to have two or more coordinates to be valid",line:i});if(Array.isArray(e))return e.map((function(e){return c(e,t,n-1,e.__line__||i)})).some((function(e){return e}));r.push({message:"a number was found where a coordinate array should have been found: this needs to be nested more deeply",line:i})}function f(e){e.crs&&("object"==typeof e.crs&&e.crs.properties&&"urn:ogc:def:crs:OGC:1.3:CRS84"===e.crs.properties.name?r.push({message:"old-style crs member is not recommended, this object is equivalent to the default and should be removed",line:e.__line__}):r.push({message:"old-style crs member is not recommended",line:e.__line__}))}function d(e){if(e.bbox)return Array.isArray(e.bbox)?(u(e.bbox,"number")||r.push({message:"each element in a bbox member must be a number",line:e.bbox.__line__}),4!==e.bbox.length&&6!==e.bbox.length&&r.push({message:"bbox must contain 4 elements (for 2D) or 6 elements (for 3D)",line:e.bbox.__line__}),r.length):void r.push({message:"bbox member must be an array of numbers, but is a "+typeof e.bbox,line:e.__line__})}function p(e){f(e),d(e),void 0!==e.id&&"string"!=typeof e.id&&"number"!=typeof e.id&&r.push({message:'Feature "id" member must have a string or number value',line:e.__line__}),void 0!==e.features&&r.push({message:'Feature object cannot contain a "features" member',line:e.__line__}),void 0!==e.coordinates&&r.push({message:'Feature object cannot contain a "coordinates" member',line:e.__line__}),"Feature"!==e.type&&r.push({message:"GeoJSON features must have a type=feature member",line:e.__line__}),l(e,"properties","object"),l(e,"geometry","object")||e.geometry&&o(e.geometry)}var m={Point:function(e){var t;f(e),d(e),void 0!==(t=e).properties&&r.push({message:'geometry object cannot contain a "properties" member',line:t.__line__}),void 0!==t.geometry&&r.push({message:'geometry object cannot contain a "geometry" member',line:t.__line__}),void 0!==t.features&&r.push({message:'geometry object cannot contain a "features" member',line:t.__line__}),l(e,"coordinates","array")||h(e.coordinates)},Feature:p,MultiPoint:function(e){f(e),d(e),l(e,"coordinates","array")||c(e.coordinates,"",1)},LineString:function(e){f(e),d(e),l(e,"coordinates","array")||c(e.coordinates,"Line",1)},MultiLineString:function(e){f(e),d(e),l(e,"coordinates","array")||c(e.coordinates,"Line",2)},FeatureCollection:function(e){if(f(e),d(e),void 0!==e.properties&&r.push({message:'FeatureCollection object cannot contain a "properties" member',line:e.__line__}),void 0!==e.coordinates&&r.push({message:'FeatureCollection object cannot contain a "coordinates" member',line:e.__line__}),!l(e,"features","array")){if(!u(e.features,"object"))return r.push({message:"Every feature must be an object",line:e.__line__});e.features.forEach(p)}},GeometryCollection:function(e){f(e),d(e),l(e,"geometries","array")||(u(e.geometries,"object")||r.push({message:"The geometries array in a GeometryCollection must contain only geometry objects",line:e.__line__}),1===e.geometries.length&&r.push({message:"GeometryCollection with a single geometry should be avoided in favor of single part or a single object of multi-part type",line:e.geometries.__line__}),e.geometries.forEach((function(t){t&&("GeometryCollection"===t.type&&r.push({message:"GeometryCollection should avoid nested geometry collections",line:e.geometries.__line__}),o(t))})))},Polygon:function(e){f(e),d(e),l(e,"coordinates","array")||c(e.coordinates,"LinearRing",2)||n(e,r)},MultiPolygon:function(e){f(e),d(e),l(e,"coordinates","array")||c(e.coordinates,"LinearRing",3)||n(e,r)}},g=Object.keys(m).reduce((function(e,t){return e[t.toLowerCase()]=t,e}),{});return"object"!=typeof e||null==e?(r.push({message:"The root of a GeoJSON object must be an object.",line:0}),r):(o(e),r.forEach((function(e){({}).hasOwnProperty.call(e,"line")&&void 0===e.line&&delete e.line})),r)}},844194:e=>{function t(e){return e*Math.PI/180}function r(e){var r=0;if(e.length>2)for(var n,i,s=0;s=0}function n(e){if(e&&e.length>0){if(r(e[0]))return!1;if(!e.slice(1,e.length).every(r))return!1}return!0}e.exports=function(e,t){(function(e){return"Polygon"===e.type?n(e.coordinates):"MultiPolygon"===e.type?e.coordinates.every(n):void 0})(e)||t.push({message:"Polygons and MultiPolygons should follow the right-hand rule",level:"message",line:e.__line__})}},489597:(e,t,r)=>{var n=function(){"use strict";var e,t=/\s*/g,n=/^\s*|\s*$/g,i=/\s+/;function s(e){if(!e||!e.length)return 0;for(var t=0,r=0;t{e.exports=function(e){for(var t=e.split(",")[0].split(":")[1].split(";")[0],r=atob(e.split(",")[1]),n=r.length,i=new window.ArrayBuffer(n),s=new window.Uint8Array(i),a=0;a{"use strict";var n,i,s=r.g.MutationObserver||r.g.WebKitMutationObserver;if(s){var a=0,o=new s(c),u=r.g.document.createTextNode("");o.observe(u,{characterData:!0}),n=function(){u.data=a=++a%2}}else if(r.g.setImmediate||void 0===r.g.MessageChannel)n="document"in r.g&&"onreadystatechange"in r.g.document.createElement("script")?function(){var e=r.g.document.createElement("script");e.onreadystatechange=function(){c(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},r.g.document.documentElement.appendChild(e)}:function(){setTimeout(c,0)};else{var l=new r.g.MessageChannel;l.port1.onmessage=c,n=function(){l.port2.postMessage(0)}}var h=[];function c(){var e,t;i=!0;for(var r=h.length;r;){for(t=h,h=[],e=-1;++e{"use strict";var n=r(58910),i=r(653790),s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";t.encode=function(e){for(var t,r,i,a,o,u,l,h=[],c=0,f=e.length,d=f,p="string"!==n.getTypeOf(e);c>2,o=(3&t)<<4|r>>4,u=d>1?(15&r)<<2|i>>6:64,l=d>2?63&i:64,h.push(s.charAt(a)+s.charAt(o)+s.charAt(u)+s.charAt(l));return h.join("")},t.decode=function(e){var t,r,n,a,o,u,l=0,h=0;if("data:"===e.substr(0,5))throw new Error("Invalid base64 input, it looks like a data url.");var c,f=3*(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(e.charAt(e.length-1)===s.charAt(64)&&f--,e.charAt(e.length-2)===s.charAt(64)&&f--,f%1!=0)throw new Error("Invalid base64 input, bad content length.");for(c=i.uint8array?new Uint8Array(0|f):new Array(0|f);l>4,r=(15&a)<<4|(o=s.indexOf(e.charAt(l++)))>>2,n=(3&o)<<6|(u=s.indexOf(e.charAt(l++))),c[h++]=t,64!==o&&(c[h++]=r),64!==u&&(c[h++]=n);return c}},637326:(e,t,r)=>{"use strict";var n=r(638565),i=r(505301),s=r(195977),a=r(722541);function o(e,t,r,n,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=n,this.compressedContent=i}s=r(195977),o.prototype={getContentWorker:function(){var e=new i(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new s("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},getCompressedWorker:function(){return new i(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},o.createWorkerFrom=function(e,t,r){return e.pipe(new a).pipe(new s("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new s("compressedSize")).withStreamInfo("compression",t)},e.exports=o},361678:(e,t,r)=>{"use strict";var n=r(243718);t.STORE={magic:"\0\0",compressWorker:function(e){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},t.DEFLATE=r(251033)},186988:(e,t,r)=>{"use strict";var n=r(58910),i=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();e.exports=function(e,t){return void 0!==e&&e.length?"string"!==n.getTypeOf(e)?function(e,t,r,n){var s=i,a=0+r;e^=-1;for(var o=0;o>>8^s[255&(e^t[o])];return-1^e}(0|t,e,e.length):function(e,t,r,n){var s=i,a=0+r;e^=-1;for(var o=0;o>>8^s[255&(e^t.charCodeAt(o))];return-1^e}(0|t,e,e.length):0}},226032:(e,t)=>{"use strict";t.base64=!1,t.binary=!1,t.dir=!1,t.createFolders=!0,t.date=null,t.compression=null,t.compressionOptions=null,t.comment=null,t.unixPermissions=null,t.dosPermissions=null},638565:(e,t,r)=>{"use strict";var n;n="undefined"!=typeof Promise?Promise:r(161883),e.exports={Promise:n}},251033:(e,t,r)=>{"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=r(999591),s=r(58910),a=r(243718),o=n?"uint8array":"array";function u(e,t){a.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}t.magic="\b\0",s.inherits(u,a),u.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(s.transformTo(o,e.data),!1)},u.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},u.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},u.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},t.compressWorker=function(e){return new u("Deflate",e)},t.uncompressWorker=function(){return new u("Inflate",{})}},904979:(e,t,r)=>{"use strict";var n=r(58910),i=r(243718),s=r(583600),a=r(186988),o=r(571141),u=function(e,t){var r,n="";for(r=0;r>>=8;return n},l=function(e,t,r,i,l,h){var c,f,d=e.file,p=e.compression,m=h!==s.utf8encode,g=n.transformTo("string",h(d.name)),_=n.transformTo("string",s.utf8encode(d.name)),y=d.comment,v=n.transformTo("string",h(y)),b=n.transformTo("string",s.utf8encode(y)),w=_.length!==d.name.length,x=b.length!==y.length,k="",C="",S="",E=d.dir,A=d.date,I={crc32:0,compressedSize:0,uncompressedSize:0};t&&!r||(I.crc32=e.crc32,I.compressedSize=e.compressedSize,I.uncompressedSize=e.uncompressedSize);var O=0;t&&(O|=8),m||!w&&!x||(O|=2048);var T,z,B=0,L=0;E&&(B|=16),"UNIX"===l?(L=798,B|=(z=T=d.unixPermissions,T||(z=E?16893:33204),(65535&z)<<16)):(L=20,B|=63&(d.dosPermissions||0)),c=A.getUTCHours(),c<<=6,c|=A.getUTCMinutes(),c<<=5,c|=A.getUTCSeconds()/2,f=A.getUTCFullYear()-1980,f<<=4,f|=A.getUTCMonth()+1,f<<=5,f|=A.getUTCDate(),w&&(C=u(1,1)+u(a(g),4)+_,k+="up"+u(C.length,2)+C),x&&(S=u(1,1)+u(a(v),4)+b,k+="uc"+u(S.length,2)+S);var R="";return R+="\n\0",R+=u(O,2),R+=p.magic,R+=u(c,2),R+=u(f,2),R+=u(I.crc32,4),R+=u(I.compressedSize,4),R+=u(I.uncompressedSize,4),R+=u(g.length,2),R+=u(k.length,2),{fileRecord:o.LOCAL_FILE_HEADER+R+g+k,dirRecord:o.CENTRAL_FILE_HEADER+u(L,2)+R+u(v.length,2)+"\0\0\0\0"+u(B,4)+u(i,4)+g+k+v}},h=function(e){return o.DATA_DESCRIPTOR+u(e.crc32,4)+u(e.compressedSize,4)+u(e.uncompressedSize,4)};function c(e,t,r,n){i.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}n.inherits(c,i),c.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,i.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-n-1))/r:100}}))},c.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=l(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},c.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=l(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:h(e),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},c.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t{"use strict";var n=r(361678),i=r(904979);t.generateWorker=function(e,t,r){var s=new i(t.streamFiles,r,t.platform,t.encodeFileName),a=0;try{e.forEach((function(e,r){a++;var i=function(e,t){var r=e||t,i=n[r];if(!i)throw new Error(r+" is not a valid compression method !");return i}(r.options.compression,t.compression),o=r.options.compressionOptions||t.compressionOptions||{},u=r.dir,l=r.date;r._compressWorker(i,o).withStreamInfo("file",{name:e,dir:u,date:l,comment:r.comment||"",unixPermissions:r.unixPermissions,dosPermissions:r.dosPermissions}).pipe(s)})),s.entriesCount=a}catch(e){s.error(e)}return s}},966085:(e,t,r)=>{"use strict";function n(){if(!(this instanceof n))return new n;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files={},this.comment=null,this.root="",this.clone=function(){var e=new n;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}n.prototype=r(17132),n.prototype.loadAsync=r(781062),n.support=r(653790),n.defaults=r(226032),n.version="3.1.5",n.loadAsync=function(e,t){return(new n).loadAsync(e,t)},n.external=r(638565),e.exports=n},781062:(e,t,r)=>{"use strict";var n=r(58910),i=r(638565),s=r(583600),a=(n=r(58910),r(706624)),o=r(722541),u=r(472182);function l(e){return new i.Promise((function(t,r){var n=e.decompressed.getContentWorker().pipe(new o);n.on("error",(function(e){r(e)})).on("end",(function(){n.streamInfo.crc32!==e.decompressed.crc32?r(new Error("Corrupted zip : CRC32 mismatch")):t()})).resume()}))}e.exports=function(e,t){var r=this;return t=n.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:s.utf8decode}),u.isNode&&u.isStream(e)?i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):n.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then((function(e){var r=new a(t);return r.load(e),r})).then((function(e){var r=[i.Promise.resolve(e)],n=e.files;if(t.checkCRC32)for(var s=0;s{"use strict";var n=r(58910),i=r(243718);function s(e,t){i.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}n.inherits(s,i),s.prototype._bindStream=function(e){var t=this;this._stream=e,e.pause(),e.on("data",(function(e){t.push({data:e,meta:{percent:0}})})).on("error",(function(e){t.isPaused?this.generatedError=e:t.error(e)})).on("end",(function(){t.isPaused?t._upstreamEnded=!0:t.end()}))},s.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},s.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},e.exports=s},531220:(e,t,r)=>{"use strict";var n=r(810749).Readable;function i(e,t,r){n.call(this,t),this._helper=e;var i=this;e.on("data",(function(e,t){i.push(e)||i._helper.pause(),r&&r(t)})).on("error",(function(e){i.emit("error",e)})).on("end",(function(){i.push(null)}))}r(58910).inherits(i,n),i.prototype._read=function(){this._helper.resume()},e.exports=i},472182:(e,t,r)=>{"use strict";var n=r(348764).Buffer;e.exports={isNode:void 0!==n,newBufferFrom:function(e,t){return new n(e,t)},allocBuffer:function(e){return n.alloc?n.alloc(e):new n(e)},isBuffer:function(e){return n.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},17132:(e,t,r)=>{"use strict";var n=r(583600),i=r(58910),s=r(243718),a=r(311285),o=r(226032),u=r(637326),l=r(346859),h=r(937834),c=r(472182),f=r(800660),d=function(e,t,r){var n,a=i.getTypeOf(t),h=i.extend(r||{},o);h.date=h.date||new Date,null!==h.compression&&(h.compression=h.compression.toUpperCase()),"string"==typeof h.unixPermissions&&(h.unixPermissions=parseInt(h.unixPermissions,8)),h.unixPermissions&&16384&h.unixPermissions&&(h.dir=!0),h.dosPermissions&&16&h.dosPermissions&&(h.dir=!0),h.dir&&(e=m(e)),h.createFolders&&(n=p(e))&&g.call(this,n,!0);var d="string"===a&&!1===h.binary&&!1===h.base64;r&&void 0!==r.binary||(h.binary=!d),(t instanceof u&&0===t.uncompressedSize||h.dir||!t||0===t.length)&&(h.base64=!1,h.binary=!0,t="",h.compression="STORE",a="string");var _;_=t instanceof u||t instanceof s?t:c.isNode&&c.isStream(t)?new f(e,t):i.prepareContent(e,t,h.binary,h.optimizedBinaryString,h.base64);var y=new l(e,_,h);this.files[e]=y},p=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return t>0?e.substring(0,t):""},m=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},g=function(e,t){return t=void 0!==t?t:o.createFolders,e=m(e),this.files[e]||d.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function _(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var y={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,r,n;for(t in this.files)this.files.hasOwnProperty(t)&&(n=this.files[t],(r=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(r,n))},filter:function(e){var t=[];return this.forEach((function(r,n){e(r,n)&&t.push(n)})),t},file:function(e,t,r){if(1===arguments.length){if(_(e)){var n=e;return this.filter((function(e,t){return!t.dir&&n.test(e)}))}var i=this.files[this.root+e];return i&&!i.dir?i:null}return e=this.root+e,d.call(this,e,t,r),this},folder:function(e){if(!e)return this;if(_(e))return this.filter((function(t,r){return r.dir&&e.test(t)}));var t=this.root+e,r=g.call(this,t),n=this.clone();return n.root=r.name,n},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var r=this.filter((function(t,r){return r.name.slice(0,e.length)===e})),n=0;n{e.exports=r(153086)},322370:(e,t,r)=>{"use strict";var n=r(28542);function i(e){n.call(this,e);for(var t=0;t=0;--s)if(this.data[s]===t&&this.data[s+1]===r&&this.data[s+2]===n&&this.data[s+3]===i)return s-this.zero;return-1},i.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),i=e.charCodeAt(3),s=this.readData(4);return t===s[0]&&r===s[1]&&n===s[2]&&i===s[3]},i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},e.exports=i},28542:(e,t,r)=>{"use strict";var n=r(58910);function i(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return n.transformTo("string",this.readData(e))},readData:function(e){},lastIndexOfSignature:function(e){},readAndCheckSignature:function(e){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},e.exports=i},369583:(e,t,r)=>{"use strict";var n=r(970414);function i(e){n.call(this,e)}r(58910).inherits(i,n),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},e.exports=i},709226:(e,t,r)=>{"use strict";var n=r(28542);function i(e){n.call(this,e)}r(58910).inherits(i,n),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},e.exports=i},970414:(e,t,r)=>{"use strict";var n=r(322370);function i(e){n.call(this,e)}r(58910).inherits(i,n),i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},e.exports=i},578435:(e,t,r)=>{"use strict";var n=r(58910),i=r(653790),s=r(322370),a=r(709226),o=r(369583),u=r(970414);e.exports=function(e){var t=n.getTypeOf(e);return n.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new o(e):i.uint8array?new u(n.transformTo("uint8array",e)):new s(n.transformTo("array",e)):new a(e)}},571141:(e,t)=>{"use strict";t.LOCAL_FILE_HEADER="PK",t.CENTRAL_FILE_HEADER="PK",t.CENTRAL_DIRECTORY_END="PK",t.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",t.ZIP64_CENTRAL_DIRECTORY_END="PK",t.DATA_DESCRIPTOR="PK\b"},364293:(e,t,r)=>{"use strict";var n=r(243718),i=r(58910);function s(e){n.call(this,"ConvertWorker to "+e),this.destType=e}i.inherits(s,n),s.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},e.exports=s},722541:(e,t,r)=>{"use strict";var n=r(243718),i=r(186988);function s(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}r(58910).inherits(s,n),s.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},e.exports=s},195977:(e,t,r)=>{"use strict";var n=r(58910),i=r(243718);function s(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}n.inherits(s,i),s.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},e.exports=s},505301:(e,t,r)=>{"use strict";var n=r(58910),i=r(243718);function s(e){i.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=n.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}n.inherits(s,i),s.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},s.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},s.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},s.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=s},243718:e=>{"use strict";function t(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}t.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var r=0;r "+e:e}},e.exports=t},311285:(e,t,r)=>{"use strict";var n=r(348764).Buffer,i=r(58910),s=r(364293),a=r(243718),o=r(478458),u=r(653790),l=r(638565),h=null;if(u.nodestream)try{h=r(531220)}catch(e){}function c(e,t,r){var n=t;switch(t){case"blob":case"arraybuffer":n="uint8array";break;case"base64":n="string"}try{this._internalType=n,this._outputType=t,this._mimeType=r,i.checkSupport(n),this._worker=e.pipe(new s(n)),e.lock()}catch(e){this._worker=new a("error"),this._worker.error(e)}}c.prototype={accumulate:function(e){return t=this,r=e,new l.Promise((function(e,s){var a=[],u=t._internalType,l=t._outputType,h=t._mimeType;t.on("data",(function(e,t){a.push(e),r&&r(t)})).on("error",(function(e){a=[],s(e)})).on("end",(function(){try{var t=function(e,t,r){switch(e){case"blob":return i.newBlob(i.transformTo("arraybuffer",t),r);case"base64":return o.encode(t);default:return i.transformTo(e,t)}}(l,function(e,t){var r,i=0,s=null,a=0;for(r=0;r{"use strict";var n=r(348764).Buffer;if(t.base64=!0,t.array=!0,t.string=!0,t.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,t.nodebuffer=void 0!==n,t.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)t.blob=!1;else{var i=new ArrayBuffer(0);try{t.blob=0===new Blob([i],{type:"application/zip"}).size}catch(e){try{var s=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);s.append(i),t.blob=0===s.getBlob("application/zip").size}catch(e){t.blob=!1}}}try{t.nodestream=!!r(810749).Readable}catch(e){t.nodestream=!1}},583600:(e,t,r)=>{"use strict";for(var n=r(58910),i=r(653790),s=r(472182),a=r(243718),o=new Array(256),u=0;u<256;u++)o[u]=u>=252?6:u>=248?5:u>=240?4:u>=224?3:u>=192?2:1;function l(){a.call(this,"utf-8 decode"),this.leftOver=null}function h(){a.call(this,"utf-8 encode")}o[254]=o[254]=1,t.utf8encode=function(e){return i.nodebuffer?s.newBufferFrom(e,"utf-8"):function(e){var t,r,n,s,a,o=e.length,u=0;for(s=0;s>>6,t[a++]=128|63&r):r<65536?(t[a++]=224|r>>>12,t[a++]=128|r>>>6&63,t[a++]=128|63&r):(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63,t[a++]=128|r>>>6&63,t[a++]=128|63&r);return t}(e)},t.utf8decode=function(e){return i.nodebuffer?n.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,r,i,s,a=e.length,u=new Array(2*a);for(r=0,t=0;t4)u[r++]=65533,t+=s-1;else{for(i&=2===s?31:3===s?15:7;s>1&&t1?u[r++]=65533:i<65536?u[r++]=i:(i-=65536,u[r++]=55296|i>>10&1023,u[r++]=56320|1023&i)}return u.length!==r&&(u.subarray?u=u.subarray(0,r):u.length=r),n.applyFromCharCode(u)}(e=n.transformTo(i.uint8array?"uint8array":"array",e))},n.inherits(l,a),l.prototype.processChunk=function(e){var r=n.transformTo(i.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var s=r;(r=new Uint8Array(s.length+this.leftOver.length)).set(this.leftOver,0),r.set(s,this.leftOver.length)}else r=this.leftOver.concat(r);this.leftOver=null}var a=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;r>=0&&128==(192&e[r]);)r--;return r<0||0===r?t:r+o[e[r]]>t?r:t}(r),u=r;a!==r.length&&(i.uint8array?(u=r.subarray(0,a),this.leftOver=r.subarray(a,r.length)):(u=r.slice(0,a),this.leftOver=r.slice(a,r.length))),this.push({data:t.utf8decode(u),meta:e.meta})},l.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:t.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},t.Utf8DecodeWorker=l,n.inherits(h,a),h.prototype.processChunk=function(e){this.push({data:t.utf8encode(e.data),meta:e.meta})},t.Utf8EncodeWorker=h},58910:(e,t,r)=>{"use strict";var n=r(653790),i=r(478458),s=r(472182),a=r(347326),o=r(638565);function u(e){return e}function l(e,t){for(var r=0;r1;)try{return h.stringifyByChunk(e,n,r)}catch(e){r=Math.floor(r/2)}return h.stringifyByChar(e)}function f(e,t){for(var r=0;r{"use strict";var n=r(578435),i=r(58910),s=r(571141),a=r(539392),o=(r(583600),r(653790));function u(e){this.files=[],this.loadOptions=e}u.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+i.pretty(t)+", expected "+i.pretty(e)+")")}},isSignature:function(e,t){var r=this.reader.index;this.reader.setIndex(e);var n=this.reader.readString(4)===t;return this.reader.setIndex(r),n},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=o.uint8array?"uint8array":"array",r=i.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(r)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,r,n=this.zip64EndOfCentralSize-44;01)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e0)this.isSignature(t,s.CENTRAL_FILE_HEADER)||(this.reader.zero=n);else if(n<0)throw new Error("Corrupted zip: missing "+Math.abs(n)+" bytes.")},prepareReader:function(e){this.reader=n(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},e.exports=u},539392:(e,t,r)=>{"use strict";var n=r(578435),i=r(58910),s=r(637326),a=r(186988),o=r(583600),u=r(361678),l=r(653790);function h(e,t){this.options=e,this.loadOptions=t}h.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t,r;if(e.skip(22),this.fileNameLength=e.readInt(2),r=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(r),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough informations from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in u)if(u.hasOwnProperty(t)&&u[t].magic===e)return u[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new s(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0===e&&(this.dosPermissions=63&this.externalFileAttributes),3===e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(e){if(this.extraFields[1]){var t=n(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(e){var t,r,n,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index{"use strict";var n=r(311285),i=r(505301),s=r(583600),a=r(637326),o=r(243718),u=function(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=t,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}};u.prototype={internalStream:function(e){var t=null,r="string";try{if(!e)throw new Error("No output type specified.");var i="string"===(r=e.toLowerCase())||"text"===r;"binarystring"!==r&&"text"!==r||(r="string"),t=this._decompressWorker();var a=!this._dataBinary;a&&!i&&(t=t.pipe(new s.Utf8EncodeWorker)),!a&&i&&(t=t.pipe(new s.Utf8DecodeWorker))}catch(e){(t=new o("error")).error(e)}return new n(t,r,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof a&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new s.Utf8EncodeWorker)),a.createWorkerFrom(r,e,t)},_decompressWorker:function(){return this._data instanceof a?this._data.getContentWorker():this._data instanceof o?this._data:new i(this._data)}};for(var l=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],h=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},c=0;c{r(239080),e.exports=r(623998).setImmediate},190336:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},934626:(e,t,r)=>{var n=r(1538);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},591265:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},623998:e=>{var t=e.exports={version:"2.3.0"};"number"==typeof __e&&(__e=t)},968104:(e,t,r)=>{var n=r(190336);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},129262:(e,t,r)=>{e.exports=!r(796286)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},275354:(e,t,r)=>{var n=r(1538),i=r(614867).document,s=n(i)&&n(i.createElement);e.exports=function(e){return s?i.createElement(e):{}}},146116:(e,t,r)=>{var n=r(614867),i=r(623998),s=r(968104),a=r(400601),o="prototype",u=function(e,t,r){var l,h,c,f=e&u.F,d=e&u.G,p=e&u.S,m=e&u.P,g=e&u.B,_=e&u.W,y=d?i:i[t]||(i[t]={}),v=y[o],b=d?n:p?n[t]:(n[t]||{})[o];for(l in d&&(r=t),r)(h=!f&&b&&void 0!==b[l])&&l in y||(c=h?b[l]:r[l],y[l]=d&&"function"!=typeof b[l]?r[l]:g&&h?s(c,n):_&&b[l]==c?function(e){var t=function(t,r,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,r)}return new e(t,r,n)}return e.apply(this,arguments)};return t[o]=e[o],t}(c):m&&"function"==typeof c?s(Function.call,c):c,m&&((y.virtual||(y.virtual={}))[l]=c,e&u.R&&v&&!v[l]&&a(v,l,c)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},796286:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},614867:e=>{var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},400601:(e,t,r)=>{var n=r(459028),i=r(339732);e.exports=r(129262)?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},32660:(e,t,r)=>{e.exports=r(614867).document&&document.documentElement},741297:(e,t,r)=>{e.exports=!r(129262)&&!r(796286)((function(){return 7!=Object.defineProperty(r(275354)("div"),"a",{get:function(){return 7}}).a}))},869062:e=>{e.exports=function(e,t,r){var n=void 0===r;switch(t.length){case 0:return n?e():e.call(r);case 1:return n?e(t[0]):e.call(r,t[0]);case 2:return n?e(t[0],t[1]):e.call(r,t[0],t[1]);case 3:return n?e(t[0],t[1],t[2]):e.call(r,t[0],t[1],t[2]);case 4:return n?e(t[0],t[1],t[2],t[3]):e.call(r,t[0],t[1],t[2],t[3])}return e.apply(r,t)}},1538:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},459028:(e,t,r)=>{var n=r(934626),i=r(741297),s=r(275652),a=Object.defineProperty;t.f=r(129262)?Object.defineProperty:function(e,t,r){if(n(e),t=s(t,!0),n(r),i)try{return a(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}},339732:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},700914:(e,t,r)=>{var n,i,s,a=r(968104),o=r(869062),u=r(32660),l=r(275354),h=r(614867),c=h.process,f=h.setImmediate,d=h.clearImmediate,p=h.MessageChannel,m=0,g={},_="onreadystatechange",y=function(){var e=+this;if(g.hasOwnProperty(e)){var t=g[e];delete g[e],t()}},v=function(e){y.call(e.data)};f&&d||(f=function(e){for(var t=[],r=1;arguments.length>r;)t.push(arguments[r++]);return g[++m]=function(){o("function"==typeof e?e:Function(e),t)},n(m),m},d=function(e){delete g[e]},"process"==r(591265)(c)?n=function(e){c.nextTick(a(y,e,1))}:p?(s=(i=new p).port2,i.port1.onmessage=v,n=a(s.postMessage,s,1)):h.addEventListener&&"function"==typeof postMessage&&!h.importScripts?(n=function(e){h.postMessage(e+"","*")},h.addEventListener("message",v,!1)):n=_ in l("script")?function(e){u.appendChild(l("script"))[_]=function(){u.removeChild(this),y.call(e)}}:function(e){setTimeout(a(y,e,1),0)}),e.exports={set:f,clear:d}},275652:(e,t,r)=>{var n=r(1538);e.exports=function(e,t){if(!n(e))return e;var r,i;if(t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;if("function"==typeof(r=e.valueOf)&&!n(i=r.call(e)))return i;if(!t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},239080:(e,t,r)=>{var n=r(146116),i=r(700914);n(n.G+n.B,{setImmediate:i.set,clearImmediate:i.clear})},161883:(e,t,r)=>{"use strict";var n=r(125705);function i(){}var s={},a=["REJECTED"],o=["FULFILLED"],u=["PENDING"];function l(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=u,this.queue=[],this.outcome=void 0,e!==i&&d(this,e)}function h(e,t,r){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function c(e,t,r){n((function(){var n;try{n=t(r)}catch(t){return s.reject(e,t)}n===e?s.reject(e,new TypeError("Cannot resolve promise with itself")):s.resolve(e,n)}))}function f(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function d(e,t){var r=!1;function n(t){r||(r=!0,s.reject(e,t))}function i(t){r||(r=!0,s.resolve(e,t))}var a=p((function(){t(i,n)}));"error"===a.status&&n(a.value)}function p(e,t){var r={};try{r.value=e(t),r.status="success"}catch(e){r.status="error",r.value=e}return r}e.exports=l,l.prototype.catch=function(e){return this.then(null,e)},l.prototype.then=function(e,t){if("function"!=typeof e&&this.state===o||"function"!=typeof t&&this.state===a)return this;var r=new this.constructor(i);return this.state!==u?c(r,this.state===o?e:t,this.outcome):this.queue.push(new h(r,e,t)),r},h.prototype.callFulfilled=function(e){s.resolve(this.promise,e)},h.prototype.otherCallFulfilled=function(e){c(this.promise,this.onFulfilled,e)},h.prototype.callRejected=function(e){s.reject(this.promise,e)},h.prototype.otherCallRejected=function(e){c(this.promise,this.onRejected,e)},s.resolve=function(e,t){var r=p(f,t);if("error"===r.status)return s.reject(e,r.value);var n=r.value;if(n)d(e,n);else{e.state=o,e.outcome=t;for(var i=-1,a=e.queue.length;++i{"use strict";var n=r(125705);function i(){}var s={},a=["REJECTED"],o=["FULFILLED"],u=["PENDING"];function l(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=u,this.queue=[],this.outcome=void 0,e!==i&&d(this,e)}function h(e,t,r){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function c(e,t,r){n((function(){var n;try{n=t(r)}catch(t){return s.reject(e,t)}n===e?s.reject(e,new TypeError("Cannot resolve promise with itself")):s.resolve(e,n)}))}function f(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function d(e,t){var r=!1;function n(t){r||(r=!0,s.reject(e,t))}function i(t){r||(r=!0,s.resolve(e,t))}var a=p((function(){t(i,n)}));"error"===a.status&&n(a.value)}function p(e,t){var r={};try{r.value=e(t),r.status="success"}catch(e){r.status="error",r.value=e}return r}e.exports=l,l.prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then((function(r){return t.resolve(e()).then((function(){return r}))}),(function(r){return t.resolve(e()).then((function(){throw r}))}))},l.prototype.catch=function(e){return this.then(null,e)},l.prototype.then=function(e,t){if("function"!=typeof e&&this.state===o||"function"!=typeof t&&this.state===a)return this;var r=new this.constructor(i);return this.state!==u?c(r,this.state===o?e:t,this.outcome):this.queue.push(new h(r,e,t)),r},h.prototype.callFulfilled=function(e){s.resolve(this.promise,e)},h.prototype.otherCallFulfilled=function(e){c(this.promise,this.onFulfilled,e)},h.prototype.callRejected=function(e){s.reject(this.promise,e)},h.prototype.otherCallRejected=function(e){c(this.promise,this.onRejected,e)},s.resolve=function(e,t){var r=p(f,t);if("error"===r.status)return s.reject(e,r.value);var n=r.value;if(n)d(e,n);else{e.state=o,e.outcome=t;for(var i=-1,a=e.queue.length;++i{!function(){function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function r(){return 1}e.exports?e.exports=s:this.LRUCache=s;var n=!1;function i(e){n||"string"==typeof e||"number"==typeof e||(n=!0,console.error(new TypeError("LRU: key must be a string or number. Almost certainly a bug! "+typeof e).stack))}function s(e){if(!(this instanceof s))return new s(e);"number"==typeof e&&(e={max:e}),e||(e={}),this._max=e.max,(!this._max||"number"!=typeof this._max||this._max<=0)&&(this._max=1/0),this._lengthCalculator=e.length||r,"function"!=typeof this._lengthCalculator&&(this._lengthCalculator=r),this._allowStale=e.stale||!1,this._maxAge=e.maxAge||null,this._dispose=e.dispose,this.reset()}function a(e,t,r){i(t);var n=e._cache[t];return n&&(o(e,n)?(h(e,n),e._allowStale||(n=void 0)):r&&function(e,t){l(e,t),t.lu=e._mru++,e._lruList[t.lu]=t}(e,n),n&&(n=n.value)),n}function o(e,t){if(!t||!t.maxAge&&!e._maxAge)return!1;var r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e._maxAge&&r>e._maxAge}function u(e){for(;e._lrue._max;)h(e,e._lruList[e._lru])}function l(e,t){for(delete e._lruList[t.lu];e._lruthis._max&&u(this)},get:function(){return this._max},enumerable:!0}),Object.defineProperty(s.prototype,"lengthCalculator",{set:function(e){if("function"!=typeof e)for(var t in this._lengthCalculator=r,this._length=this._itemCount,this._cache)this._cache[t].length=1;else for(var t in this._lengthCalculator=e,this._length=0,this._cache)this._cache[t].length=this._lengthCalculator(this._cache[t].value),this._length+=this._cache[t].length;this._length>this._max&&u(this)},get:function(){return this._lengthCalculator},enumerable:!0}),Object.defineProperty(s.prototype,"length",{get:function(){return this._length},enumerable:!0}),Object.defineProperty(s.prototype,"itemCount",{get:function(){return this._itemCount},enumerable:!0}),s.prototype.forEach=function(e,t){t=t||this;for(var r=0,n=this._itemCount,i=this._mru-1;i>=0&&r=0&&t=0&&t=0&&tthis._max?(h(this,this._cache[e]),!1):(this._dispose&&this._dispose(e,this._cache[e].value),this._cache[e].now=s,this._cache[e].maxAge=n,this._cache[e].value=r,this._length+=a-this._cache[e].length,this._cache[e].length=a,this.get(e),this._length>this._max&&u(this),!0);var o=new c(e,r,this._mru++,a,s,n);return o.length>this._max?(this._dispose&&this._dispose(e,r),!1):(this._length+=o.length,this._lruList[o.lu]=this._cache[e]=o,this._itemCount++,this._length>this._max&&u(this),!0)},s.prototype.has=function(e){return i(e),!!t(this._cache,e)&&!o(this,this._cache[e])},s.prototype.get=function(e){return i(e),a(this,e,!0)},s.prototype.peek=function(e){return i(e),a(this,e,!1)},s.prototype.pop=function(){var e=this._lruList[this._lru];return h(this,e),e||null},s.prototype.del=function(e){i(e),h(this,this._cache[e])},s.prototype.load=function(e){this.reset();for(var t=Date.now(),r=e.length-1;r>=0;r--){var n=e[r];i(n.k);var s=n.e||0;if(0===s)this.set(n.k,n.v);else{var a=s-t;a>0&&this.set(n.k,n.v,a)}}}}()},999591:(e,t,r)=>{"use strict";var n={};(0,r(724236).assign)(n,r(124555),r(178843),r(371619)),e.exports=n},124555:(e,t,r)=>{"use strict";var n=r(530405),i=r(724236),s=r(929373),a=r(848898),o=r(362292),u=Object.prototype.toString,l=0,h=-1,c=0,f=8;function d(e){if(!(this instanceof d))return new d(e);this.options=i.assign({level:h,method:f,chunkSize:16384,windowBits:15,memLevel:8,strategy:c,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new o,this.strm.avail_out=0;var r=n.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==l)throw new Error(a[r]);if(t.header&&n.deflateSetHeader(this.strm,t.header),t.dictionary){var p;if(p="string"==typeof t.dictionary?s.string2buf(t.dictionary):"[object ArrayBuffer]"===u.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(r=n.deflateSetDictionary(this.strm,p))!==l)throw new Error(a[r]);this._dict_set=!0}}function p(e,t){var r=new d(t);if(r.push(e,!0),r.err)throw r.msg||a[r.err];return r.result}d.prototype.push=function(e,t){var r,a,o=this.strm,h=this.options.chunkSize;if(this.ended)return!1;a=t===~~t?t:!0===t?4:0,"string"==typeof e?o.input=s.string2buf(e):"[object ArrayBuffer]"===u.call(e)?o.input=new Uint8Array(e):o.input=e,o.next_in=0,o.avail_in=o.input.length;do{if(0===o.avail_out&&(o.output=new i.Buf8(h),o.next_out=0,o.avail_out=h),1!==(r=n.deflate(o,a))&&r!==l)return this.onEnd(r),this.ended=!0,!1;0!==o.avail_out&&(0!==o.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(s.buf2binstring(i.shrinkBuf(o.output,o.next_out))):this.onData(i.shrinkBuf(o.output,o.next_out)))}while((o.avail_in>0||0===o.avail_out)&&1!==r);return 4===a?(r=n.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===l):2!==a||(this.onEnd(l),o.avail_out=0,!0)},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===l&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Deflate=d,t.deflate=p,t.deflateRaw=function(e,t){return(t=t||{}).raw=!0,p(e,t)},t.gzip=function(e,t){return(t=t||{}).gzip=!0,p(e,t)}},178843:(e,t,r)=>{"use strict";var n=r(827948),i=r(724236),s=r(929373),a=r(371619),o=r(848898),u=r(362292),l=r(242401),h=Object.prototype.toString;function c(e){if(!(this instanceof c))return new c(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var r=n.inflateInit2(this.strm,t.windowBits);if(r!==a.Z_OK)throw new Error(o[r]);if(this.header=new l,n.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=s.string2buf(t.dictionary):"[object ArrayBuffer]"===h.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=n.inflateSetDictionary(this.strm,t.dictionary))!==a.Z_OK))throw new Error(o[r])}function f(e,t){var r=new c(t);if(r.push(e,!0),r.err)throw r.msg||o[r.err];return r.result}c.prototype.push=function(e,t){var r,o,u,l,c,f=this.strm,d=this.options.chunkSize,p=this.options.dictionary,m=!1;if(this.ended)return!1;o=t===~~t?t:!0===t?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof e?f.input=s.binstring2buf(e):"[object ArrayBuffer]"===h.call(e)?f.input=new Uint8Array(e):f.input=e,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new i.Buf8(d),f.next_out=0,f.avail_out=d),(r=n.inflate(f,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&p&&(r=n.inflateSetDictionary(this.strm,p)),r===a.Z_BUF_ERROR&&!0===m&&(r=a.Z_OK,m=!1),r!==a.Z_STREAM_END&&r!==a.Z_OK)return this.onEnd(r),this.ended=!0,!1;f.next_out&&(0!==f.avail_out&&r!==a.Z_STREAM_END&&(0!==f.avail_in||o!==a.Z_FINISH&&o!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(u=s.utf8border(f.output,f.next_out),l=f.next_out-u,c=s.buf2string(f.output,u),f.next_out=l,f.avail_out=d-l,l&&i.arraySet(f.output,f.output,u,l,0),this.onData(c)):this.onData(i.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(m=!0)}while((f.avail_in>0||0===f.avail_out)&&r!==a.Z_STREAM_END);return r===a.Z_STREAM_END&&(o=a.Z_FINISH),o===a.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===a.Z_OK):o!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),f.avail_out=0,!0)},c.prototype.onData=function(e){this.chunks.push(e)},c.prototype.onEnd=function(e){e===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Inflate=c,t.inflate=f,t.inflateRaw=function(e,t){return(t=t||{}).raw=!0,f(e,t)},t.ungzip=f},724236:(e,t)=>{"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var i in r)n(r,i)&&(e[i]=r[i])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,r,n,i){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),i);else for(var s=0;s{"use strict";var n=r(724236),i=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch(e){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){s=!1}for(var a=new n.Buf8(256),o=0;o<256;o++)a[o]=o>=252?6:o>=248?5:o>=240?4:o>=224?3:o>=192?2:1;function u(e,t){if(t<65534&&(e.subarray&&s||!e.subarray&&i))return String.fromCharCode.apply(null,n.shrinkBuf(e,t));for(var r="",a=0;a>>6,t[a++]=128|63&r):r<65536?(t[a++]=224|r>>>12,t[a++]=128|r>>>6&63,t[a++]=128|63&r):(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63,t[a++]=128|r>>>6&63,t[a++]=128|63&r);return t},t.buf2binstring=function(e){return u(e,e.length)},t.binstring2buf=function(e){for(var t=new n.Buf8(e.length),r=0,i=t.length;r4)l[n++]=65533,r+=s-1;else{for(i&=2===s?31:3===s?15:7;s>1&&r1?l[n++]=65533:i<65536?l[n++]=i:(i-=65536,l[n++]=55296|i>>10&1023,l[n++]=56320|1023&i)}return u(l,n)},t.utf8border=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;r>=0&&128==(192&e[r]);)r--;return r<0||0===r?t:r+a[e[r]]>t?r:t}},766069:e=>{"use strict";e.exports=function(e,t,r,n){for(var i=65535&e|0,s=e>>>16&65535|0,a=0;0!==r;){r-=a=r>2e3?2e3:r;do{s=s+(i=i+t[n++]|0)|0}while(--a);i%=65521,s%=65521}return i|s<<16|0}},371619:e=>{"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},502869:e=>{"use strict";var t=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();e.exports=function(e,r,n,i){var s=t,a=i+n;e^=-1;for(var o=i;o>>8^s[255&(e^r[o])];return-1^e}},530405:(e,t,r)=>{"use strict";var n,i=r(724236),s=r(410342),a=r(766069),o=r(502869),u=r(848898),l=0,h=0,c=-2,f=2,d=8,p=286,m=30,g=19,_=2*p+1,y=15,v=3,b=258,w=b+v+1,x=42,k=103,C=113,S=666;function E(e,t){return e.msg=u[t],t}function A(e){return(e<<1)-(e>4?9:0)}function I(e){for(var t=e.length;--t>=0;)e[t]=0}function O(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(i.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function T(e,t){s._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,O(e.strm)}function z(e,t){e.pending_buf[e.pending++]=t}function B(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function L(e,t){var r,n,i=e.max_chain_length,s=e.strstart,a=e.prev_length,o=e.nice_match,u=e.strstart>e.w_size-w?e.strstart-(e.w_size-w):0,l=e.window,h=e.w_mask,c=e.prev,f=e.strstart+b,d=l[s+a-1],p=l[s+a];e.prev_length>=e.good_match&&(i>>=2),o>e.lookahead&&(o=e.lookahead);do{if(l[(r=t)+a]===p&&l[r+a-1]===d&&l[r]===l[s]&&l[++r]===l[s+1]){s+=2,r++;do{}while(l[++s]===l[++r]&&l[++s]===l[++r]&&l[++s]===l[++r]&&l[++s]===l[++r]&&l[++s]===l[++r]&&l[++s]===l[++r]&&l[++s]===l[++r]&&l[++s]===l[++r]&&sa){if(e.match_start=t,a=n,n>=o)break;d=l[s+a-1],p=l[s+a]}}}while((t=c[t&h])>u&&0!=--i);return a<=e.lookahead?a:e.lookahead}function R(e){var t,r,n,s,u,l,h,c,f,d,p=e.w_size;do{if(s=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-w)){i.arraySet(e.window,e.window,p,p,0),e.match_start-=p,e.strstart-=p,e.block_start-=p,t=r=e.hash_size;do{n=e.head[--t],e.head[t]=n>=p?n-p:0}while(--r);t=r=p;do{n=e.prev[--t],e.prev[t]=n>=p?n-p:0}while(--r);s+=p}if(0===e.strm.avail_in)break;if(l=e.strm,h=e.window,c=e.strstart+e.lookahead,f=s,d=void 0,(d=l.avail_in)>f&&(d=f),r=0===d?0:(l.avail_in-=d,i.arraySet(h,l.input,l.next_in,d,c),1===l.state.wrap?l.adler=a(l.adler,h,d,c):2===l.state.wrap&&(l.adler=o(l.adler,h,d,c)),l.next_in+=d,l.total_in+=d,d),e.lookahead+=r,e.lookahead+e.insert>=v)for(u=e.strstart-e.insert,e.ins_h=e.window[u],e.ins_h=(e.ins_h<=v&&(e.ins_h=(e.ins_h<=v)if(n=s._tr_tally(e,e.strstart-e.match_start,e.match_length-v),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=v){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<=v&&(e.ins_h=(e.ins_h<4096)&&(e.match_length=v-1)),e.prev_length>=v&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-v,n=s._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-v),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<15&&(o=2,n-=16),s<1||s>9||r!==d||n<8||n>15||t<0||t>9||a<0||a>4)return E(e,c);8===n&&(n=9);var u=new N;return e.state=u,u.strm=e,u.wrap=o,u.gzhead=null,u.w_bits=n,u.w_size=1<e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(R(e),0===e.lookahead&&t===l)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,T(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-w&&(T(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(T(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(T(e,!1),e.strm.avail_out),1)})),new P(4,4,8,4,D),new P(4,5,16,8,D),new P(4,6,32,32,D),new P(4,4,16,16,F),new P(8,16,32,32,F),new P(8,16,128,128,F),new P(8,32,128,256,F),new P(32,128,258,1024,F),new P(32,258,258,4096,F)],t.deflateInit=function(e,t){return M(e,t,d,15,8,0)},t.deflateInit2=M,t.deflateReset=j,t.deflateResetKeep=U,t.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?c:(e.state.gzhead=t,h):c},t.deflate=function(e,t){var r,i,a,u;if(!e||!e.state||t>5||t<0)return e?E(e,c):c;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||i.status===S&&4!==t)return E(e,0===e.avail_out?-5:c);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===x)if(2===i.wrap)e.adler=0,z(i,31),z(i,139),z(i,8),i.gzhead?(z(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),z(i,255&i.gzhead.time),z(i,i.gzhead.time>>8&255),z(i,i.gzhead.time>>16&255),z(i,i.gzhead.time>>24&255),z(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),z(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(z(i,255&i.gzhead.extra.length),z(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=o(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(z(i,0),z(i,0),z(i,0),z(i,0),z(i,0),z(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),z(i,3),i.status=C);else{var f=d+(i.w_bits-8<<4)<<8;f|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(f|=32),f+=31-f%31,i.status=C,B(i,f),0!==i.strstart&&(B(i,e.adler>>>16),B(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(e.adler=o(e.adler,i.pending_buf,i.pending-a,a)),O(e),a=i.pending,i.pending!==i.pending_buf_size));)z(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=o(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=o(e.adler,i.pending_buf,i.pending-a,a)),O(e),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindexa&&(e.adler=o(e.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=o(e.adler,i.pending_buf,i.pending-a,a)),O(e),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindexa&&(e.adler=o(e.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.status=k)}else i.status=k;if(i.status===k&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&O(e),i.pending+2<=i.pending_buf_size&&(z(i,255&e.adler),z(i,e.adler>>8&255),e.adler=0,i.status=C)):i.status=C),0!==i.pending){if(O(e),0===e.avail_out)return i.last_flush=-1,h}else if(0===e.avail_in&&A(t)<=A(r)&&4!==t)return E(e,-5);if(i.status===S&&0!==e.avail_in)return E(e,-5);if(0!==e.avail_in||0!==i.lookahead||t!==l&&i.status!==S){var p=2===i.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(R(e),0===e.lookahead)){if(t===l)return 1;break}if(e.match_length=0,r=s._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(T(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(T(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(T(e,!1),0===e.strm.avail_out)?1:2}(i,t):3===i.strategy?function(e,t){for(var r,n,i,a,o=e.window;;){if(e.lookahead<=b){if(R(e),e.lookahead<=b&&t===l)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=v&&e.strstart>0&&(n=o[i=e.strstart-1])===o[++i]&&n===o[++i]&&n===o[++i]){a=e.strstart+b;do{}while(n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&ie.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=v?(r=s._tr_tally(e,1,e.match_length-v),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=s._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(T(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(T(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(T(e,!1),0===e.strm.avail_out)?1:2}(i,t):n[i.level].func(i,t);if(3!==p&&4!==p||(i.status=S),1===p||3===p)return 0===e.avail_out&&(i.last_flush=-1),h;if(2===p&&(1===t?s._tr_align(i):5!==t&&(s._tr_stored_block(i,0,0,!1),3===t&&(I(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),O(e),0===e.avail_out))return i.last_flush=-1,h}return 4!==t?h:i.wrap<=0?1:(2===i.wrap?(z(i,255&e.adler),z(i,e.adler>>8&255),z(i,e.adler>>16&255),z(i,e.adler>>24&255),z(i,255&e.total_in),z(i,e.total_in>>8&255),z(i,e.total_in>>16&255),z(i,e.total_in>>24&255)):(B(i,e.adler>>>16),B(i,65535&e.adler)),O(e),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?h:1)},t.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==x&&69!==t&&73!==t&&91!==t&&t!==k&&t!==C&&t!==S?E(e,c):(e.state=null,t===C?E(e,-3):h):c},t.deflateSetDictionary=function(e,t){var r,n,s,o,u,l,f,d,p=t.length;if(!e||!e.state)return c;if(2===(o=(r=e.state).wrap)||1===o&&r.status!==x||r.lookahead)return c;for(1===o&&(e.adler=a(e.adler,t,p,0)),r.wrap=0,p>=r.w_size&&(0===o&&(I(r.head),r.strstart=0,r.block_start=0,r.insert=0),d=new i.Buf8(r.w_size),i.arraySet(d,t,p-r.w_size,r.w_size,0),t=d,p=r.w_size),u=e.avail_in,l=e.next_in,f=e.input,e.avail_in=p,e.next_in=0,e.input=t,R(r);r.lookahead>=v;){n=r.strstart,s=r.lookahead-(v-1);do{r.ins_h=(r.ins_h<{"use strict";e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},394264:e=>{"use strict";e.exports=function(e,t){var r,n,i,s,a,o,u,l,h,c,f,d,p,m,g,_,y,v,b,w,x,k,C,S,E;r=e.state,n=e.next_in,S=e.input,i=n+(e.avail_in-5),s=e.next_out,E=e.output,a=s-(t-e.avail_out),o=s+(e.avail_out-257),u=r.dmax,l=r.wsize,h=r.whave,c=r.wnext,f=r.window,d=r.hold,p=r.bits,m=r.lencode,g=r.distcode,_=(1<>>=b=v>>>24,p-=b,0==(b=v>>>16&255))E[s++]=65535&v;else{if(!(16&b)){if(0==(64&b)){v=m[(65535&v)+(d&(1<>>=b,p-=b),p<15&&(d+=S[n++]<>>=b=v>>>24,p-=b,!(16&(b=v>>>16&255))){if(0==(64&b)){v=g[(65535&v)+(d&(1<u){e.msg="invalid distance too far back",r.mode=30;break e}if(d>>>=b,p-=b,x>(b=s-a)){if((b=x-b)>h&&r.sane){e.msg="invalid distance too far back",r.mode=30;break e}if(k=0,C=f,0===c){if(k+=l-b,b2;)E[s++]=C[k++],E[s++]=C[k++],E[s++]=C[k++],w-=3;w&&(E[s++]=C[k++],w>1&&(E[s++]=C[k++]))}else{k=s-x;do{E[s++]=E[k++],E[s++]=E[k++],E[s++]=E[k++],w-=3}while(w>2);w&&(E[s++]=E[k++],w>1&&(E[s++]=E[k++]))}break}}break}}while(n>3,d&=(1<<(p-=w<<3))-1,e.next_in=n,e.next_out=s,e.avail_in=n{"use strict";var n=r(724236),i=r(766069),s=r(502869),a=r(394264),o=r(9241),u=0,l=-2,h=1,c=12,f=30,d=852,p=592;function m(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function g(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function _(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=h,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(d),t.distcode=t.distdyn=new n.Buf32(p),t.sane=1,t.back=-1,u):l}function y(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,_(e)):l}function v(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?l:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,y(e))):l}function b(e,t){var r,n;return e?(n=new g,e.state=n,n.window=null,(r=v(e,t))!==u&&(e.state=null),r):l}var w,x,k=!0;function C(e){if(k){var t;for(w=new n.Buf32(512),x=new n.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(o(1,e.lens,0,288,w,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;o(2,e.lens,0,32,x,0,e.work,{bits:5}),k=!1}e.lencode=w,e.lenbits=9,e.distcode=x,e.distbits=5}function S(e,t,r,i){var s,a=e.state;return null===a.window&&(a.wsize=1<=a.wsize?(n.arraySet(a.window,t,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((s=a.wsize-a.wnext)>i&&(s=i),n.arraySet(a.window,t,r-i,s,a.wnext),(i-=s)?(n.arraySet(a.window,t,r-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=s,a.wnext===a.wsize&&(a.wnext=0),a.whave>>8&255,r.check=s(r.check,j,2,0),b=0,w=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&b)<<8)+(b>>8))%31){e.msg="incorrect header check",r.mode=f;break}if(8!=(15&b)){e.msg="unknown compression method",r.mode=f;break}if(w-=4,D=8+(15&(b>>>=4)),0===r.wbits)r.wbits=D;else if(D>r.wbits){e.msg="invalid window size",r.mode=f;break}r.dmax=1<>8&1),512&r.flags&&(j[0]=255&b,j[1]=b>>>8&255,r.check=s(r.check,j,2,0)),b=0,w=0,r.mode=3;case 3:for(;w<32;){if(0===y)break e;y--,b+=d[g++]<>>8&255,j[2]=b>>>16&255,j[3]=b>>>24&255,r.check=s(r.check,j,4,0)),b=0,w=0,r.mode=4;case 4:for(;w<16;){if(0===y)break e;y--,b+=d[g++]<>8),512&r.flags&&(j[0]=255&b,j[1]=b>>>8&255,r.check=s(r.check,j,2,0)),b=0,w=0,r.mode=5;case 5:if(1024&r.flags){for(;w<16;){if(0===y)break e;y--,b+=d[g++]<>>8&255,r.check=s(r.check,j,2,0)),b=0,w=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((E=r.length)>y&&(E=y),E&&(r.head&&(D=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,d,g,E,D)),512&r.flags&&(r.check=s(r.check,d,E,g)),y-=E,g+=E,r.length-=E),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===y)break e;E=0;do{D=d[g+E++],r.head&&D&&r.length<65536&&(r.head.name+=String.fromCharCode(D))}while(D&&E>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=c;break;case 10:for(;w<32;){if(0===y)break e;y--,b+=d[g++]<>>=7&w,w-=7&w,r.mode=27;break}for(;w<3;){if(0===y)break e;y--,b+=d[g++]<>>=1)){case 0:r.mode=14;break;case 1:if(C(r),r.mode=20,6===t){b>>>=2,w-=2;break e}break;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=f}b>>>=2,w-=2;break;case 14:for(b>>>=7&w,w-=7&w;w<32;){if(0===y)break e;y--,b+=d[g++]<>>16^65535)){e.msg="invalid stored block lengths",r.mode=f;break}if(r.length=65535&b,b=0,w=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(E=r.length){if(E>y&&(E=y),E>v&&(E=v),0===E)break e;n.arraySet(p,d,g,E,_),y-=E,g+=E,v-=E,_+=E,r.length-=E;break}r.mode=c;break;case 17:for(;w<14;){if(0===y)break e;y--,b+=d[g++]<>>=5,w-=5,r.ndist=1+(31&b),b>>>=5,w-=5,r.ncode=4+(15&b),b>>>=4,w-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=f;break}r.have=0,r.mode=18;case 18:for(;r.have>>=3,w-=3}for(;r.have<19;)r.lens[M[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,P={bits:r.lenbits},F=o(0,r.lens,0,19,r.lencode,0,r.work,P),r.lenbits=P.bits,F){e.msg="invalid code lengths set",r.mode=f;break}r.have=0,r.mode=19;case 19:for(;r.have>>16&255,z=65535&U,!((O=U>>>24)<=w);){if(0===y)break e;y--,b+=d[g++]<>>=O,w-=O,r.lens[r.have++]=z;else{if(16===z){for(N=O+2;w>>=O,w-=O,0===r.have){e.msg="invalid bit length repeat",r.mode=f;break}D=r.lens[r.have-1],E=3+(3&b),b>>>=2,w-=2}else if(17===z){for(N=O+3;w>>=O)),b>>>=3,w-=3}else{for(N=O+7;w>>=O)),b>>>=7,w-=7}if(r.have+E>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=f;break}for(;E--;)r.lens[r.have++]=D}}if(r.mode===f)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=f;break}if(r.lenbits=9,P={bits:r.lenbits},F=o(1,r.lens,0,r.nlen,r.lencode,0,r.work,P),r.lenbits=P.bits,F){e.msg="invalid literal/lengths set",r.mode=f;break}if(r.distbits=6,r.distcode=r.distdyn,P={bits:r.distbits},F=o(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,P),r.distbits=P.bits,F){e.msg="invalid distances set",r.mode=f;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(y>=6&&v>=258){e.next_out=_,e.avail_out=v,e.next_in=g,e.avail_in=y,r.hold=b,r.bits=w,a(e,k),_=e.next_out,p=e.output,v=e.avail_out,g=e.next_in,d=e.input,y=e.avail_in,b=r.hold,w=r.bits,r.mode===c&&(r.back=-1);break}for(r.back=0;T=(U=r.lencode[b&(1<>>16&255,z=65535&U,!((O=U>>>24)<=w);){if(0===y)break e;y--,b+=d[g++]<>B)])>>>16&255,z=65535&U,!(B+(O=U>>>24)<=w);){if(0===y)break e;y--,b+=d[g++]<>>=B,w-=B,r.back+=B}if(b>>>=O,w-=O,r.back+=O,r.length=z,0===T){r.mode=26;break}if(32&T){r.back=-1,r.mode=c;break}if(64&T){e.msg="invalid literal/length code",r.mode=f;break}r.extra=15&T,r.mode=22;case 22:if(r.extra){for(N=r.extra;w>>=r.extra,w-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;T=(U=r.distcode[b&(1<>>16&255,z=65535&U,!((O=U>>>24)<=w);){if(0===y)break e;y--,b+=d[g++]<>B)])>>>16&255,z=65535&U,!(B+(O=U>>>24)<=w);){if(0===y)break e;y--,b+=d[g++]<>>=B,w-=B,r.back+=B}if(b>>>=O,w-=O,r.back+=O,64&T){e.msg="invalid distance code",r.mode=f;break}r.offset=z,r.extra=15&T,r.mode=24;case 24:if(r.extra){for(N=r.extra;w>>=r.extra,w-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=f;break}r.mode=25;case 25:if(0===v)break e;if(E=k-v,r.offset>E){if((E=r.offset-E)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=f;break}E>r.wnext?(E-=r.wnext,A=r.wsize-E):A=r.wnext-E,E>r.length&&(E=r.length),I=r.window}else I=p,A=_-r.offset,E=r.length;E>v&&(E=v),v-=E,r.length-=E;do{p[_++]=I[A++]}while(--E);0===r.length&&(r.mode=21);break;case 26:if(0===v)break e;p[_++]=r.length,v--,r.mode=21;break;case 27:if(r.wrap){for(;w<32;){if(0===y)break e;y--,b|=d[g++]<{"use strict";var n=r(724236),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],s=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],o=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(e,t,r,u,l,h,c,f){var d,p,m,g,_,y,v,b,w,x=f.bits,k=0,C=0,S=0,E=0,A=0,I=0,O=0,T=0,z=0,B=0,L=null,R=0,D=new n.Buf16(16),F=new n.Buf16(16),P=null,N=0;for(k=0;k<=15;k++)D[k]=0;for(C=0;C=1&&0===D[E];E--);if(A>E&&(A=E),0===E)return l[h++]=20971520,l[h++]=20971520,f.bits=1,0;for(S=1;S0&&(0===e||1!==E))return-1;for(F[1]=0,k=1;k<15;k++)F[k+1]=F[k]+D[k];for(C=0;C852||2===e&&z>592)return 1;for(;;){v=k-O,c[C]y?(b=P[N+c[C]],w=L[R+c[C]]):(b=96,w=0),d=1<>O)+(p-=d)]=v<<24|b<<16|w|0}while(0!==p);for(d=1<>=1;if(0!==d?(B&=d-1,B+=d):B=0,C++,0==--D[k]){if(k===E)break;k=t[r+c[C]]}if(k>A&&(B&g)!==m){for(0===O&&(O=A),_+=S,T=1<<(I=k-O);I+O852||2===e&&z>592)return 1;l[m=B&g]=A<<24|I<<16|_-h|0}}return 0!==B&&(l[_+B]=k-O<<24|64<<16|0),f.bits=A,0}},848898:e=>{"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},410342:(e,t,r)=>{"use strict";var n=r(724236);function i(e){for(var t=e.length;--t>=0;)e[t]=0}var s=256,a=286,o=30,u=15,l=16,h=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],c=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],f=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],d=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],p=new Array(576);i(p);var m=new Array(60);i(m);var g=new Array(512);i(g);var _=new Array(256);i(_);var y=new Array(29);i(y);var v,b,w,x=new Array(o);function k(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}function C(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function S(e){return e<256?g[e]:g[256+(e>>>7)]}function E(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function A(e,t,r){e.bi_valid>l-r?(e.bi_buf|=t<>l-e.bi_valid,e.bi_valid+=r-l):(e.bi_buf|=t<>>=1,r<<=1}while(--t>0);return r>>>1}function T(e,t,r){var n,i,s=new Array(u+1),a=0;for(n=1;n<=u;n++)s[n]=a=a+r[n-1]<<1;for(i=0;i<=t;i++){var o=e[2*i+1];0!==o&&(e[2*i]=O(s[o]++,o))}}function z(e){var t;for(t=0;t8?E(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function L(e,t,r,n){var i=2*t,s=2*r;return e[i]>1;r>=1;r--)R(e,s,r);i=l;do{r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],R(e,s,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,s[2*i]=s[2*r]+s[2*n],e.depth[i]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,s[2*r+1]=s[2*n+1]=i,e.heap[1]=i++,R(e,s,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,i,s,a,o,l=t.dyn_tree,h=t.max_code,c=t.stat_desc.static_tree,f=t.stat_desc.has_stree,d=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,m=t.stat_desc.max_length,g=0;for(s=0;s<=u;s++)e.bl_count[s]=0;for(l[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<573;r++)(s=l[2*l[2*(n=e.heap[r])+1]+1]+1)>m&&(s=m,g++),l[2*n+1]=s,n>h||(e.bl_count[s]++,a=0,n>=p&&(a=d[n-p]),o=l[2*n],e.opt_len+=o*(s+a),f&&(e.static_len+=o*(c[2*n+1]+a)));if(0!==g){do{for(s=m-1;0===e.bl_count[s];)s--;e.bl_count[s]--,e.bl_count[s+1]+=2,e.bl_count[m]--,g-=2}while(g>0);for(s=m;0!==s;s--)for(n=e.bl_count[s];0!==n;)(i=e.heap[--r])>h||(l[2*i+1]!==s&&(e.opt_len+=(s-l[2*i+1])*l[2*i],l[2*i+1]=s),n--)}}(e,t),T(s,h,e.bl_count)}function P(e,t,r){var n,i,s=-1,a=t[1],o=0,u=7,l=4;for(0===a&&(u=138,l=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)i=a,a=t[2*(n+1)+1],++o>=7;n0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t=3&&0===e.bl_tree[2*d[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(a=e.static_len+3+7>>>3)<=i&&(i=a)):i=a=r+5,r+4<=i&&-1!==t?j(e,t,r,n):4===e.strategy||a===i?(A(e,2+(n?1:0),3),D(e,p,m)):(A(e,4+(n?1:0),3),function(e,t,r,n){var i;for(A(e,t-257,5),A(e,r-1,5),A(e,n-4,4),i=0;i>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(_[r]+s+1)]++,e.dyn_dtree[2*S(t)]++),e.last_lit===e.lit_bufsize-1},t._tr_align=function(e){A(e,2,3),I(e,256,p),function(e){16===e.bi_valid?(E(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},362292:e=>{"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},911392:(e,t,r)=>{r(129718);var n=r(506941).s;function i(e){var t=new n;return(t.write(e)+t.end()).replace(/\0/g,"").trim()}e.exports=function e(t,r){if(!t)return i;try{new TextDecoder(t.trim())}catch(a){var n=s.exec(t);return n&&!r?e("windows-"+n[1],!0):i}return function(e){var r=new TextDecoder(t);return(r.decode(e,{stream:!0})+r.decode()).replace(/\0/g,"").trim()}};var s=/^(?:ANSI\s)?(\d+)$/m},309462:(e,t,r)=>{var n=r(911392);function i(e,t,r,n,i){var s=i(e.slice(t,t+r));switch(n){case"N":case"F":case"O":return parseFloat(s,10);case"D":return new Date(s.slice(0,4),parseInt(s.slice(4,6),10)-1,s.slice(6,8));case"L":return"y"===s.toLowerCase()||"t"===s.toLowerCase();default:return s}}function s(e,t,r,n){for(var s,a,o={},u=0,l=r.length;u{"use strict";var n=r(348764).Buffer,i=r(543389);e.exports=function(e){return new i((function(t,r){var i=e.slice(-3),s=new XMLHttpRequest;s.open("GET",e,!0),"prj"!==i&&"cpg"!==i&&(s.responseType="arraybuffer"),s.addEventListener("load",(function(){return s.status>399?"prj"===i||"cpg"===i?t(!1):r(new Error(s.status)):t("prj"!==i&&"cpg"!==i?new n(s.response):s.response)}),!1),s.send()}))}},279003:(e,t,r)=>{"use strict";var n=r(348764).Buffer,i=r(490173);i.default&&(i=i.default);var s=r(532555),a=r(194830),o=r(876415),u=r(309462),l=r(543389),h=new(r(5387))({max:20});function c(e){if(!e)throw new Error("forgot to pass buffer");return n.isBuffer(e)?e:e instanceof r.g.ArrayBuffer?new n(e):e.buffer instanceof r.g.ArrayBuffer?1===e.BYTES_PER_ELEMENT?new n(e):new n(e.buffer):void 0}function f(e,t){return"string"==typeof e&&h.has(e)?l.resolve(h.get(e)):f.getShapefile(e,t).then((function(t){return"string"==typeof e&&h.set(e,t),t}))}f.combine=function(e){for(var t={type:"FeatureCollection",features:[]},r=0,n=e[0].length;r-1?a.push(r.slice(0,-3)+r.slice(-3).toLowerCase()):"dbf"!==r.slice(-3).toLowerCase()&&"cpg"!==r.slice(-3).toLowerCase()||(n[r.slice(0,-3)+r.slice(-3).toLowerCase()]=n[r]));if(!a.length)throw new Error("no layers founds");var l=a.map((function(e){var r,i,s=e.lastIndexOf(".");return s>-1&&e.slice(s).indexOf("json")>-1?(r=JSON.parse(n[e])).fileName=e.slice(0,s):t.indexOf(e.slice(s+1))>-1?(r=n[e]).fileName=e:(n[e+".dbf"]&&(i=u(n[e+".dbf"],n[e+".cpg"])),(r=f.combine([o(n[e+".shp"],n[e+".prj"]),i])).fileName=e),r}));return 1===l.length?l[0]:l},f.getShapefile=function(e,t){return"string"==typeof e?".zip"===e.slice(-4).toLowerCase()?function(e,t){return a(e).then((function(e){return f.parseZip(e,t)}))}(e,t):l.all([l.all([a(e+".shp"),a(e+".prj")]).then((function(e){return o(e[0],!!e[1]&&i(e[1]))})),l.all([a(e+".dbf"),a(e+".cpg")]).then((function(e){return u(e[0],e[1])}))]).then(f.combine):new l((function(t){t(f.parseZip(e))}))},f.parseShp=function(e,t){return e=c(e),n.isBuffer(t)&&(t=t.toString()),"string"==typeof t?(t=i(t),o(e,t)):o(e)},f.parseDbf=function(e,t){return e=c(e),u(e,t)},e.exports=f},876415:e=>{"use strict";function t(e,t){return!function(e){for(var t,r,n=0,i=1,s=e.length;i0}(t)&&e.length?e[e.length-1].push(t):e.push([t]),e}n.prototype.parsePoint=function(e){return{type:"Point",coordinates:this.parseCoord(e,0)}},n.prototype.parseZPoint=function(e){var t=this.parsePoint(e);return t.coordinates.push(this.parseCoord(e,16)),t},n.prototype.parsePointArray=function(e,t,r){for(var n=[],i=0;i20&&(n-=20),!(n in r))throw new Error("I don't know that shp type");this.parseFunc=this[r[n]],this.parseCoord=(t=e)?function(e,r){return t.inverse([e.readDoubleLE(r),e.readDoubleLE(r+8)])}:function(e,t){return[e.readDoubleLE(t),e.readDoubleLE(t+8)]}},n.prototype.getShpCode=function(){return this.parseHeader().shpCode},n.prototype.parseHeader=function(){var e=this.buffer.slice(0,100);return{length:e.readInt32BE(24),version:e.readInt32LE(28),shpCode:e.readInt32LE(32),bbox:[e.readDoubleLE(36),e.readDoubleLE(44),e.readDoubleLE(52),e.readDoubleLE(52)]}},n.prototype.getRows=function(){for(var e,t=100,r=this.buffer.byteLength,n=[];t{"use strict";var n=r(324938);e.exports=function(e){var t=new n(e).file(/.+/),r={};return t.forEach((function(e){"shp"===e.name.slice(-3).toLowerCase()||"dbf"===e.name.slice(-3).toLowerCase()?r[e.name]=e.asNodeBuffer():r[e.name]=e.asText()})),r}},683386:(e,t,r)=>{"use strict";var n=r(214352);function i(e){if(e){this.data=e,this.length=this.data.length,this.index=0,this.zero=0;for(var t=0;t=0;--s)if(this.data[s]===t&&this.data[s+1]===r&&this.data[s+2]===n&&this.data[s+3]===i)return s-this.zero;return-1},i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},e.exports=i},359307:(e,t)=>{"use strict";var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";t.encode=function(e,t){for(var n,i,s,a,o,u,l,h="",c=0;c>2,o=(3&n)<<4|(i=e.charCodeAt(c++))>>4,u=(15&i)<<2|(s=e.charCodeAt(c++))>>6,l=63&s,isNaN(i)?u=l=64:isNaN(s)&&(l=64),h=h+r.charAt(a)+r.charAt(o)+r.charAt(u)+r.charAt(l);return h},t.decode=function(e,t){var n,i,s,a,o,u,l="",h=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");h>4,i=(15&a)<<4|(o=r.indexOf(e.charAt(h++)))>>2,s=(3&o)<<6|(u=r.indexOf(e.charAt(h++))),l+=String.fromCharCode(n),64!=o&&(l+=String.fromCharCode(i)),64!=u&&(l+=String.fromCharCode(s));return l}},722117:e=>{"use strict";function t(){this.compressedSize=0,this.uncompressedSize=0,this.crc32=0,this.compressionMethod=null,this.compressedContent=null}t.prototype={getContent:function(){return null},getCompressedContent:function(){return null}},e.exports=t},147404:(e,t,r)=>{"use strict";t.STORE={magic:"\0\0",compress:function(e,t){return e},uncompress:function(e){return e},compressInputType:null,uncompressInputType:null},t.DEFLATE=r(143484)},314073:(e,t,r)=>{"use strict";var n=r(374570),i=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];e.exports=function(e,t){if(void 0===e||!e.length)return 0;var r="string"!==n.getTypeOf(e);void 0===t&&(t=0);var s=0;t^=-1;for(var a=0,o=e.length;a>>8^i[255&(t^s)];return-1^t}},214352:(e,t,r)=>{"use strict";var n=r(374570);function i(e){this.data=null,this.length=0,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return n.transformTo("string",this.readData(e))},readData:function(e){},lastIndexOfSignature:function(e){},readDate:function(){var e=this.readInt(4);return new Date(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1)}},e.exports=i},734977:(e,t)=>{"use strict";t.base64=!1,t.binary=!1,t.dir=!1,t.createFolders=!1,t.date=null,t.compression=null,t.compressionOptions=null,t.comment=null,t.unixPermissions=null,t.dosPermissions=null},311455:(e,t,r)=>{"use strict";var n=r(374570);t.string2binary=function(e){return n.string2binary(e)},t.string2Uint8Array=function(e){return n.transformTo("uint8array",e)},t.uint8Array2String=function(e){return n.transformTo("string",e)},t.string2Blob=function(e){var t=n.transformTo("arraybuffer",e);return n.arrayBuffer2Blob(t)},t.arrayBuffer2Blob=function(e){return n.arrayBuffer2Blob(e)},t.transformTo=function(e,t){return n.transformTo(e,t)},t.getTypeOf=function(e){return n.getTypeOf(e)},t.checkSupport=function(e){return n.checkSupport(e)},t.MAX_VALUE_16BITS=n.MAX_VALUE_16BITS,t.MAX_VALUE_32BITS=n.MAX_VALUE_32BITS,t.pretty=function(e){return n.pretty(e)},t.findCompression=function(e){return n.findCompression(e)},t.isRegExp=function(e){return n.isRegExp(e)}},143484:(e,t,r)=>{"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=r(999591);t.uncompressInputType=n?"uint8array":"array",t.compressInputType=n?"uint8array":"array",t.magic="\b\0",t.compress=function(e,t){return i.deflateRaw(e,{level:t.level||-1})},t.uncompress=function(e){return i.inflateRaw(e)}},324938:(e,t,r)=>{"use strict";var n=r(359307);function i(e,t){if(!(this instanceof i))return new i(e,t);this.files=Object.create(null),this.comment=null,this.root="",e&&this.load(e,t),this.clone=function(){var e=new i;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}i.prototype=r(567659),i.prototype.load=r(136072),i.support=r(513752),i.defaults=r(734977),i.utils=r(311455),i.base64={encode:function(e){return n.encode(e)},decode:function(e){return n.decode(e)}},i.compressions=r(147404),e.exports=i},136072:(e,t,r)=>{"use strict";var n=r(359307),i=r(273097),s=r(374570),a=r(676727);e.exports=function(e,t){var r,o,u,l;for((t=s.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:i.utf8decode})).base64&&(e=n.decode(e)),r=(o=new a(e,t)).files,u=0;u{"use strict";var n=r(348764).Buffer;e.exports=function(e,t){return new n(e,t)},e.exports.test=function(e){return n.isBuffer(e)}},511830:(e,t,r)=>{"use strict";var n=r(17677);function i(e){this.data=e,this.length=this.data.length,this.index=0,this.zero=0}i.prototype=new n,i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},e.exports=i},567659:(e,t,r)=>{"use strict";var n=r(513752),i=r(374570),s=r(314073),a=r(839407),o=r(734977),u=r(359307),l=r(147404),h=r(722117),c=r(943348),f=r(273097),d=r(857568),p=r(188367),m=function(e){if(e._data instanceof h&&(e._data=e._data.getContent(),e.options.binary=!0,e.options.base64=!1,"uint8array"===i.getTypeOf(e._data))){var t=e._data;e._data=new Uint8Array(t.length),0!==t.length&&e._data.set(t,0)}return e._data},g=function(e){var t=m(e);return"string"===i.getTypeOf(t)?!e.options.binary&&n.nodebuffer?c(t,"utf-8"):e.asBinary():t},_=function(e){var t=m(this);return null==t?"":(this.options.base64&&(t=u.decode(t)),t=e&&this.options.binary?E.utf8decode(t):i.transformTo("string",t),e||this.options.binary||(t=i.transformTo("string",E.utf8encode(t))),t)},y=function(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=t,this.options=r,this._initialMetadata={dir:r.dir,date:r.date}};y.prototype={asText:function(){return _.call(this,!0)},asBinary:function(){return _.call(this,!1)},asNodeBuffer:function(){var e=g(this);return i.transformTo("nodebuffer",e)},asUint8Array:function(){var e=g(this);return i.transformTo("uint8array",e)},asArrayBuffer:function(){return this.asUint8Array().buffer}};var v=function(e,t){var r,n="";for(r=0;r>>=8;return n},b=function(e,t,r){var n,s=i.getTypeOf(t);if("string"==typeof(r=function(e){return!0!==(e=e||{}).base64||null!==e.binary&&void 0!==e.binary||(e.binary=!0),(e=i.extend(e,o)).date=e.date||new Date,null!==e.compression&&(e.compression=e.compression.toUpperCase()),e}(r)).unixPermissions&&(r.unixPermissions=parseInt(r.unixPermissions,8)),r.unixPermissions&&16384&r.unixPermissions&&(r.dir=!0),r.dosPermissions&&16&r.dosPermissions&&(r.dir=!0),r.dir&&(e=x(e)),r.createFolders&&(n=w(e))&&k.call(this,n,!0),r.dir||null==t)r.base64=!1,r.binary=!1,t=null,s=null;else if("string"===s)r.binary&&!r.base64&&!0!==r.optimizedBinaryString&&(t=i.string2binary(t));else{if(r.base64=!1,r.binary=!0,!(s||t instanceof h))throw new Error("The data of '"+e+"' is in an unsupported format !");"arraybuffer"===s&&(t=i.transformTo("uint8array",t))}var a=new y(e,t,r);return this.files[e]=a,a},w=function(e){"/"==e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return t>0?e.substring(0,t):""},x=function(e){return"/"!=e.slice(-1)&&(e+="/"),e},k=function(e,t){return t=void 0!==t&&t,e=x(e),this.files[e]||b.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]},C=function(e,t,r){var n,a=new h;return e._data instanceof h?(a.uncompressedSize=e._data.uncompressedSize,a.crc32=e._data.crc32,0===a.uncompressedSize||e.dir?(t=l.STORE,a.compressedContent="",a.crc32=0):e._data.compressionMethod===t.magic?a.compressedContent=e._data.getCompressedContent():(n=e._data.getContent(),a.compressedContent=t.compress(i.transformTo(t.compressInputType,n),r))):((n=g(e))&&0!==n.length&&!e.dir||(t=l.STORE,n=""),a.uncompressedSize=n.length,a.crc32=s(n),a.compressedContent=t.compress(i.transformTo(t.compressInputType,n),r)),a.compressedSize=a.compressedContent.length,a.compressionMethod=t.magic,a},S=function(e,t,r,n,o,u){r.compressedContent;var l,h,c,d,p=u!==f.utf8encode,m=i.transformTo("string",u(t.name)),g=i.transformTo("string",f.utf8encode(t.name)),_=t.comment||"",y=i.transformTo("string",u(_)),b=i.transformTo("string",f.utf8encode(_)),w=g.length!==t.name.length,x=b.length!==_.length,k=t.options,C="",S="",E="";c=t._initialMetadata.dir!==t.dir?t.dir:k.dir,d=t._initialMetadata.date!==t.date?t.date:k.date;var A,I,O=0,T=0;c&&(O|=16),"UNIX"===o?(T=798,O|=(I=A=t.unixPermissions,A||(I=c?16893:33204),(65535&I)<<16)):(T=20,O|=63&(t.dosPermissions||0)),l=d.getHours(),l<<=6,l|=d.getMinutes(),l<<=5,l|=d.getSeconds()/2,h=d.getFullYear()-1980,h<<=4,h|=d.getMonth()+1,h<<=5,h|=d.getDate(),w&&(S=v(1,1)+v(s(m),4)+g,C+="up"+v(S.length,2)+S),x&&(E=v(1,1)+v(this.crc32(y),4)+b,C+="uc"+v(E.length,2)+E);var z="";return z+="\n\0",z+=p||!w&&!x?"\0\0":"\0\b",z+=r.compressionMethod,z+=v(l,2),z+=v(h,2),z+=v(r.crc32,4),z+=v(r.compressedSize,4),z+=v(r.uncompressedSize,4),z+=v(m.length,2),z+=v(C.length,2),{fileRecord:a.LOCAL_FILE_HEADER+z+m+C,dirRecord:a.CENTRAL_FILE_HEADER+v(T,2)+z+v(y.length,2)+"\0\0\0\0"+v(O,4)+v(n,4)+m+C+y,compressedObject:r}},E={load:function(e,t){throw new Error("Load method is not defined. Is the file jszip-load.js included ?")},filter:function(e){var t,r,n,s,a=[];for(t in this.files)n=this.files[t],s=new y(n.name,n._data,i.extend(n.options)),r=t.slice(this.root.length,t.length),t.slice(0,this.root.length)===this.root&&e(r,s)&&a.push(s);return a},file:function(e,t,r){if(1===arguments.length){if(i.isRegExp(e)){var n=e;return this.filter((function(e,t){return!t.dir&&n.test(e)}))}return this.filter((function(t,r){return!r.dir&&t===e}))[0]||null}return e=this.root+e,b.call(this,e,t,r),this},folder:function(e){if(!e)return this;if(i.isRegExp(e))return this.filter((function(t,r){return r.dir&&e.test(t)}));var t=this.root+e,r=k.call(this,t),n=this.clone();return n.root=r.name,n},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!=e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var r=this.filter((function(t,r){return r.name.slice(0,e.length)===e})),n=0;n{"use strict";t.LOCAL_FILE_HEADER="PK",t.CENTRAL_FILE_HEADER="PK",t.CENTRAL_DIRECTORY_END="PK",t.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",t.ZIP64_CENTRAL_DIRECTORY_END="PK",t.DATA_DESCRIPTOR="PK\b"},992804:(e,t,r)=>{"use strict";var n=r(214352),i=r(374570);function s(e,t){this.data=e,t||(this.data=i.string2binary(this.data)),this.length=this.data.length,this.index=0,this.zero=0}s.prototype=new n,s.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},s.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},s.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},e.exports=s},857568:(e,t,r)=>{"use strict";var n=r(374570),i=function(){this.data=[]};i.prototype={append:function(e){e=n.transformTo("string",e),this.data.push(e)},finalize:function(){return this.data.join("")}},e.exports=i},513752:(e,t,r)=>{"use strict";var n=r(348764).Buffer;if(t.base64=!0,t.array=!0,t.string=!0,t.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,t.nodebuffer=void 0!==n,t.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)t.blob=!1;else{var i=new ArrayBuffer(0);try{t.blob=0===new Blob([i],{type:"application/zip"}).size}catch(e){try{var s=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder);s.append(i),t.blob=0===s.getBlob("application/zip").size}catch(e){t.blob=!1}}}},17677:(e,t,r)=>{"use strict";var n=r(683386);function i(e){e&&(this.data=e,this.length=this.data.length,this.index=0,this.zero=0)}i.prototype=new n,i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},e.exports=i},188367:(e,t,r)=>{"use strict";var n=r(374570),i=function(e){this.data=new Uint8Array(e),this.index=0};i.prototype={append:function(e){0!==e.length&&(e=n.transformTo("uint8array",e),this.data.set(e,this.index),this.index+=e.length)},finalize:function(){return this.data}},e.exports=i},273097:(e,t,r)=>{"use strict";for(var n=r(374570),i=r(513752),s=r(943348),a=new Array(256),o=0;o<256;o++)a[o]=o>=252?6:o>=248?5:o>=240?4:o>=224?3:o>=192?2:1;a[254]=a[254]=1;var u=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;r>=0&&128==(192&e[r]);)r--;return r<0||0===r?t:r+a[e[r]]>t?r:t},l=function(e){var t,r,i,s,o=e.length,u=new Array(2*o);for(r=0,t=0;t4)u[r++]=65533,t+=s-1;else{for(i&=2===s?31:3===s?15:7;s>1&&t1?u[r++]=65533:i<65536?u[r++]=i:(i-=65536,u[r++]=55296|i>>10&1023,u[r++]=56320|1023&i)}return u.length!==r&&(u.subarray?u=u.subarray(0,r):u.length=r),n.applyFromCharCode(u)};t.utf8encode=function(e){return i.nodebuffer?s(e,"utf-8"):function(e){var t,r,n,s,a,o=e.length,u=0;for(s=0;s>>6,t[a++]=128|63&r):r<65536?(t[a++]=224|r>>>12,t[a++]=128|r>>>6&63,t[a++]=128|63&r):(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63,t[a++]=128|r>>>6&63,t[a++]=128|63&r);return t}(e)},t.utf8decode=function(e){if(i.nodebuffer)return n.transformTo("nodebuffer",e).toString("utf-8");for(var t=[],r=0,s=(e=n.transformTo(i.uint8array?"uint8array":"array",e)).length;r{"use strict";var n=r(513752),i=r(147404),s=r(943348);function a(e){return e}function o(e,t){for(var r=0;r1;)try{"array"===a||"nodebuffer"===a?n.push(String.fromCharCode.apply(null,e.slice(o,Math.min(o+r,i)))):n.push(String.fromCharCode.apply(null,e.subarray(o,Math.min(o+r,i)))),o+=r}catch(e){r=Math.floor(r/2)}return n.join("")}function l(e,t){for(var r=0;r{"use strict";var n=r(992804),i=r(511830),s=r(17677),a=r(683386),o=r(374570),u=r(839407),l=r(223226),h=r(513752);function c(e,t){this.files=[],this.loadOptions=t,e&&this.load(e)}r(567659),c.prototype={checkSignature:function(e){var t=this.reader.readString(4);if(t!==e)throw new Error("Corrupted zip or bug : unexpected signature ("+o.pretty(t)+", expected "+o.pretty(e)+")")},isSignature:function(e,t){var r=this.reader.index;this.reader.setIndex(e);var n=this.reader.readString(4)===t;return this.reader.setIndex(r),n},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=h.uint8array?"uint8array":"array",r=o.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(r)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.versionMadeBy=this.reader.readString(2),this.versionNeeded=this.reader.readInt(2),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,r,n=this.zip64EndOfCentralSize-44;01)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e0)this.isSignature(t,u.CENTRAL_FILE_HEADER)||(this.reader.zero=n);else if(n<0)throw new Error("Corrupted zip: missing "+Math.abs(n)+" bytes.")},prepareReader:function(e){var t=o.getTypeOf(e);if(o.checkSupport(t),"string"!==t||h.uint8array)if("nodebuffer"===t)this.reader=new i(e);else if(h.uint8array)this.reader=new s(o.transformTo("uint8array",e));else{if(!h.array)throw new Error("Unexpected error: unsupported type '"+t+"'");this.reader=new a(o.transformTo("array",e))}else this.reader=new n(e,this.loadOptions.optimizedBinaryString)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},e.exports=c},223226:(e,t,r)=>{"use strict";var n=r(992804),i=r(374570),s=r(722117),a=r(567659),o=r(513752);function u(e,t){this.options=e,this.loadOptions=t}u.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},prepareCompressedContent:function(e,t,r){return function(){var n=e.index;e.setIndex(t);var i=e.readData(r);return e.setIndex(n),i}},prepareContent:function(e,t,r,n,s){return function(){var e=i.transformTo(n.uncompressInputType,this.getCompressedContent()),t=n.uncompress(e);if(t.length!==s)throw new Error("Bug : uncompressed data size mismatch");return t}},readLocalPart:function(e){var t,r;if(e.skip(22),this.fileNameLength=e.readInt(2),r=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(r),-1==this.compressedSize||-1==this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough informations from the central directory (compressedSize == -1 || uncompressedSize == -1)");if(null===(t=i.findCompression(this.compressionMethod)))throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");if(this.decompressed=new s,this.decompressed.compressedSize=this.compressedSize,this.decompressed.uncompressedSize=this.uncompressedSize,this.decompressed.crc32=this.crc32,this.decompressed.compressionMethod=this.compressionMethod,this.decompressed.getCompressedContent=this.prepareCompressedContent(e,e.index,this.compressedSize,t),this.decompressed.getContent=this.prepareContent(e,e.index,this.compressedSize,t,this.uncompressedSize),this.loadOptions.checkCRC32&&(this.decompressed=i.transformTo("string",this.decompressed.getContent()),a.crc32(this.decompressed)!==this.crc32))throw new Error("Corrupted zip : CRC32 mismatch")},readCentralPart:function(e){if(this.versionMadeBy=e.readInt(2),this.versionNeeded=e.readInt(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4),this.fileNameLength=e.readInt(2),this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");this.fileName=e.readData(this.fileNameLength),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0===e&&(this.dosPermissions=63&this.externalFileAttributes),3===e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(e){if(this.extraFields[1]){var t=new n(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(e){var t,r,n,i=e.index;for(this.extraFields=this.extraFields||{};e.index{e.exports=r(859141)},859141:function(e,t,r){!function(t){"use strict";function n(e,t,r){return t<=e&&e<=r}e.exports&&!t["encoding-indexes"]&&r(272810);var i=Math.floor;function s(e){if(void 0===e)return{};if(e===Object(e))return e;throw TypeError("Could not convert argument to dictionary")}function a(e){return 0<=e&&e<=127}var o=a,u=-1;function l(e){this.tokens=[].slice.call(e),this.tokens.reverse()}l.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.pop():u},prepend:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.push(t.pop());else this.tokens.push(e)},push:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.unshift(t.shift());else this.tokens.unshift(e)}};var h=-1;function c(e,t){if(e)throw TypeError("Decoder error");return t||65533}function f(e){throw TypeError("The code point "+e+" could not be encoded.")}function d(e){return e=String(e).trim().toLowerCase(),Object.prototype.hasOwnProperty.call(m,e)?m[e]:null}var p=[{encodings:[{labels:["unicode-1-1-utf-8","utf-8","utf8"],name:"UTF-8"}],heading:"The Encoding"},{encodings:[{labels:["866","cp866","csibm866","ibm866"],name:"IBM866"},{labels:["csisolatin2","iso-8859-2","iso-ir-101","iso8859-2","iso88592","iso_8859-2","iso_8859-2:1987","l2","latin2"],name:"ISO-8859-2"},{labels:["csisolatin3","iso-8859-3","iso-ir-109","iso8859-3","iso88593","iso_8859-3","iso_8859-3:1988","l3","latin3"],name:"ISO-8859-3"},{labels:["csisolatin4","iso-8859-4","iso-ir-110","iso8859-4","iso88594","iso_8859-4","iso_8859-4:1988","l4","latin4"],name:"ISO-8859-4"},{labels:["csisolatincyrillic","cyrillic","iso-8859-5","iso-ir-144","iso8859-5","iso88595","iso_8859-5","iso_8859-5:1988"],name:"ISO-8859-5"},{labels:["arabic","asmo-708","csiso88596e","csiso88596i","csisolatinarabic","ecma-114","iso-8859-6","iso-8859-6-e","iso-8859-6-i","iso-ir-127","iso8859-6","iso88596","iso_8859-6","iso_8859-6:1987"],name:"ISO-8859-6"},{labels:["csisolatingreek","ecma-118","elot_928","greek","greek8","iso-8859-7","iso-ir-126","iso8859-7","iso88597","iso_8859-7","iso_8859-7:1987","sun_eu_greek"],name:"ISO-8859-7"},{labels:["csiso88598e","csisolatinhebrew","hebrew","iso-8859-8","iso-8859-8-e","iso-ir-138","iso8859-8","iso88598","iso_8859-8","iso_8859-8:1988","visual"],name:"ISO-8859-8"},{labels:["csiso88598i","iso-8859-8-i","logical"],name:"ISO-8859-8-I"},{labels:["csisolatin6","iso-8859-10","iso-ir-157","iso8859-10","iso885910","l6","latin6"],name:"ISO-8859-10"},{labels:["iso-8859-13","iso8859-13","iso885913"],name:"ISO-8859-13"},{labels:["iso-8859-14","iso8859-14","iso885914"],name:"ISO-8859-14"},{labels:["csisolatin9","iso-8859-15","iso8859-15","iso885915","iso_8859-15","l9"],name:"ISO-8859-15"},{labels:["iso-8859-16"],name:"ISO-8859-16"},{labels:["cskoi8r","koi","koi8","koi8-r","koi8_r"],name:"KOI8-R"},{labels:["koi8-ru","koi8-u"],name:"KOI8-U"},{labels:["csmacintosh","mac","macintosh","x-mac-roman"],name:"macintosh"},{labels:["dos-874","iso-8859-11","iso8859-11","iso885911","tis-620","windows-874"],name:"windows-874"},{labels:["cp1250","windows-1250","x-cp1250"],name:"windows-1250"},{labels:["cp1251","windows-1251","x-cp1251"],name:"windows-1251"},{labels:["ansi_x3.4-1968","ascii","cp1252","cp819","csisolatin1","ibm819","iso-8859-1","iso-ir-100","iso8859-1","iso88591","iso_8859-1","iso_8859-1:1987","l1","latin1","us-ascii","windows-1252","x-cp1252"],name:"windows-1252"},{labels:["cp1253","windows-1253","x-cp1253"],name:"windows-1253"},{labels:["cp1254","csisolatin5","iso-8859-9","iso-ir-148","iso8859-9","iso88599","iso_8859-9","iso_8859-9:1989","l5","latin5","windows-1254","x-cp1254"],name:"windows-1254"},{labels:["cp1255","windows-1255","x-cp1255"],name:"windows-1255"},{labels:["cp1256","windows-1256","x-cp1256"],name:"windows-1256"},{labels:["cp1257","windows-1257","x-cp1257"],name:"windows-1257"},{labels:["cp1258","windows-1258","x-cp1258"],name:"windows-1258"},{labels:["x-mac-cyrillic","x-mac-ukrainian"],name:"x-mac-cyrillic"}],heading:"Legacy single-byte encodings"},{encodings:[{labels:["chinese","csgb2312","csiso58gb231280","gb2312","gb_2312","gb_2312-80","gbk","iso-ir-58","x-gbk"],name:"GBK"},{labels:["gb18030"],name:"gb18030"}],heading:"Legacy multi-byte Chinese (simplified) encodings"},{encodings:[{labels:["big5","big5-hkscs","cn-big5","csbig5","x-x-big5"],name:"Big5"}],heading:"Legacy multi-byte Chinese (traditional) encodings"},{encodings:[{labels:["cseucpkdfmtjapanese","euc-jp","x-euc-jp"],name:"EUC-JP"},{labels:["csiso2022jp","iso-2022-jp"],name:"ISO-2022-JP"},{labels:["csshiftjis","ms932","ms_kanji","shift-jis","shift_jis","sjis","windows-31j","x-sjis"],name:"Shift_JIS"}],heading:"Legacy multi-byte Japanese encodings"},{encodings:[{labels:["cseuckr","csksc56011987","euc-kr","iso-ir-149","korean","ks_c_5601-1987","ks_c_5601-1989","ksc5601","ksc_5601","windows-949"],name:"EUC-KR"}],heading:"Legacy multi-byte Korean encodings"},{encodings:[{labels:["csiso2022kr","hz-gb-2312","iso-2022-cn","iso-2022-cn-ext","iso-2022-kr"],name:"replacement"},{labels:["utf-16be"],name:"UTF-16BE"},{labels:["utf-16","utf-16le"],name:"UTF-16LE"},{labels:["x-user-defined"],name:"x-user-defined"}],heading:"Legacy miscellaneous encodings"}],m={};p.forEach((function(e){e.encodings.forEach((function(e){e.labels.forEach((function(t){m[t]=e}))}))}));var g,_,y={},v={};function b(e,t){return t&&t[e]||null}function w(e,t){var r=t.indexOf(e);return-1===r?null:r}function x(e){if(!("encoding-indexes"in t))throw Error("Indexes missing. Did you forget to include encoding-indexes.js first?");return t["encoding-indexes"][e]}var k="utf-8";function C(e,t){if(!(this instanceof C))throw TypeError("Called as a function. Did you forget 'new'?");e=void 0!==e?String(e):k,t=s(t),this._encoding=null,this._decoder=null,this._ignoreBOM=!1,this._BOMseen=!1,this._error_mode="replacement",this._do_not_flush=!1;var r=d(e);if(null===r||"replacement"===r.name)throw RangeError("Unknown encoding: "+e);if(!v[r.name])throw Error("Decoder not present. Did you forget to include encoding-indexes.js first?");var n=this;return n._encoding=r,Boolean(t.fatal)&&(n._error_mode="fatal"),Boolean(t.ignoreBOM)&&(n._ignoreBOM=!0),Object.defineProperty||(this.encoding=n._encoding.name.toLowerCase(),this.fatal="fatal"===n._error_mode,this.ignoreBOM=n._ignoreBOM),n}function S(e,r){if(!(this instanceof S))throw TypeError("Called as a function. Did you forget 'new'?");r=s(r),this._encoding=null,this._encoder=null,this._do_not_flush=!1,this._fatal=Boolean(r.fatal)?"fatal":"replacement";var n=this;if(Boolean(r.NONSTANDARD_allowLegacyEncoding)){var i=d(e=void 0!==e?String(e):k);if(null===i||"replacement"===i.name)throw RangeError("Unknown encoding: "+e);if(!y[i.name])throw Error("Encoder not present. Did you forget to include encoding-indexes.js first?");n._encoding=i}else n._encoding=d("utf-8"),void 0!==e&&"console"in t&&console.warn("TextEncoder constructor called with encoding label, which is ignored.");return Object.defineProperty||(this.encoding=n._encoding.name.toLowerCase()),n}function E(e){var t=e.fatal,r=0,i=0,s=0,a=128,o=191;this.handler=function(e,l){if(l===u&&0!==s)return s=0,c(t);if(l===u)return h;if(0===s){if(n(l,0,127))return l;if(n(l,194,223))s=1,r=31&l;else if(n(l,224,239))224===l&&(a=160),237===l&&(o=159),s=2,r=15&l;else{if(!n(l,240,244))return c(t);240===l&&(a=144),244===l&&(o=143),s=3,r=7&l}return null}if(!n(l,a,o))return r=s=i=0,a=128,o=191,e.prepend(l),c(t);if(a=128,o=191,r=r<<6|63&l,(i+=1)!==s)return null;var f=r;return r=s=i=0,f}}function A(e){e.fatal,this.handler=function(e,t){if(t===u)return h;if(o(t))return t;var r,i;n(t,128,2047)?(r=1,i=192):n(t,2048,65535)?(r=2,i=224):n(t,65536,1114111)&&(r=3,i=240);for(var s=[(t>>6*r)+i];r>0;){var a=t>>6*(r-1);s.push(128|63&a),r-=1}return s}}function I(e,t){var r=t.fatal;this.handler=function(t,n){if(n===u)return h;if(a(n))return n;var i=e[n-128];return null===i?c(r):i}}function O(e,t){t.fatal,this.handler=function(t,r){if(r===u)return h;if(o(r))return r;var n=w(r,e);return null===n&&f(r),n+128}}function T(e){var t=e.fatal,r=0,i=0,s=0;this.handler=function(e,o){if(o===u&&0===r&&0===i&&0===s)return h;var l;if(o!==u||0===r&&0===i&&0===s||(r=0,i=0,s=0,c(t)),0!==s){l=null,n(o,48,57)&&(l=function(e){if(e>39419&&e<189e3||e>1237575)return null;if(7457===e)return 59335;var t,r=0,n=0,i=x("gb18030-ranges");for(t=0;t>8,n=255&e;return t?[r,n]:[n,r]}function H(e,t){var r=t.fatal,i=null,s=null;this.handler=function(t,a){if(a===u&&(null!==i||null!==s))return c(r);if(a===u&&null===i&&null===s)return h;if(null===i)return i=a,null;var o;if(o=e?(i<<8)+a:(a<<8)+i,i=null,null!==s){var l=s;return s=null,n(o,56320,57343)?65536+1024*(l-55296)+(o-56320):(t.prepend(Z(o,e)),c(r))}return n(o,55296,56319)?(s=o,null):n(o,56320,57343)?c(r):o}}function W(e,t){t.fatal,this.handler=function(t,r){if(r===u)return h;if(n(r,0,65535))return Z(r,e);var i=Z(55296+(r-65536>>10),e),s=Z(56320+(r-65536&1023),e);return i.concat(s)}}function X(e){e.fatal,this.handler=function(e,t){return t===u?h:a(t)?t:63360+t-128}}function K(e){e.fatal,this.handler=function(e,t){return t===u?h:o(t)?t:n(t,63360,63487)?t-63360+128:f(t)}}Object.defineProperty&&(Object.defineProperty(C.prototype,"encoding",{get:function(){return this._encoding.name.toLowerCase()}}),Object.defineProperty(C.prototype,"fatal",{get:function(){return"fatal"===this._error_mode}}),Object.defineProperty(C.prototype,"ignoreBOM",{get:function(){return this._ignoreBOM}})),C.prototype.decode=function(e,t){var r;r="object"==typeof e&&e instanceof ArrayBuffer?new Uint8Array(e):"object"==typeof e&&"buffer"in e&&e.buffer instanceof ArrayBuffer?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(0),t=s(t),this._do_not_flush||(this._decoder=v[this._encoding.name]({fatal:"fatal"===this._error_mode}),this._BOMseen=!1),this._do_not_flush=Boolean(t.stream);for(var n,i=new l(r),a=[];;){var o=i.read();if(o===u)break;if((n=this._decoder.handler(i,o))===h)break;null!==n&&(Array.isArray(n)?a.push.apply(a,n):a.push(n))}if(!this._do_not_flush){do{if((n=this._decoder.handler(i,i.read()))===h)break;null!==n&&(Array.isArray(n)?a.push.apply(a,n):a.push(n))}while(!i.endOfStream());this._decoder=null}return function(e){var t,r;return t=["UTF-8","UTF-16LE","UTF-16BE"],r=this._encoding.name,-1===t.indexOf(r)||this._ignoreBOM||this._BOMseen||(e.length>0&&65279===e[0]?(this._BOMseen=!0,e.shift()):e.length>0&&(this._BOMseen=!0)),function(e){for(var t="",r=0;r>10),56320+(1023&n)))}return t}(e)}.call(this,a)},Object.defineProperty&&Object.defineProperty(S.prototype,"encoding",{get:function(){return this._encoding.name.toLowerCase()}}),S.prototype.encode=function(e,t){e=void 0===e?"":String(e),t=s(t),this._do_not_flush||(this._encoder=y[this._encoding.name]({fatal:"fatal"===this._fatal})),this._do_not_flush=Boolean(t.stream);for(var r,n=new l(function(e){for(var t=String(e),r=t.length,n=0,i=[];n57343)i.push(s);else if(56320<=s&&s<=57343)i.push(65533);else if(55296<=s&&s<=56319)if(n===r-1)i.push(65533);else{var a=t.charCodeAt(n+1);if(56320<=a&&a<=57343){var o=1023&s,u=1023&a;i.push(65536+(o<<10)+u),n+=1}else i.push(65533)}n+=1}return i}(e)),i=[];;){var a=n.read();if(a===u)break;if((r=this._encoder.handler(n,a))===h)break;Array.isArray(r)?i.push.apply(i,r):i.push(r)}if(!this._do_not_flush){for(;(r=this._encoder.handler(n,n.read()))!==h;)Array.isArray(r)?i.push.apply(i,r):i.push(r);this._encoder=null}return new Uint8Array(i)},y["UTF-8"]=function(e){return new A(e)},v["UTF-8"]=function(e){return new E(e)},"encoding-indexes"in t&&p.forEach((function(e){"Legacy single-byte encodings"===e.heading&&e.encodings.forEach((function(e){var t=e.name,r=x(t.toLowerCase());v[t]=function(e){return new I(r,e)},y[t]=function(e){return new O(r,e)}}))})),v.GBK=function(e){return new T(e)},y.GBK=function(e){return new z(e,!0)},y.gb18030=function(e){return new z(e)},v.gb18030=function(e){return new T(e)},y.Big5=function(e){return new L(e)},v.Big5=function(e){return new B(e)},y["EUC-JP"]=function(e){return new D(e)},v["EUC-JP"]=function(e){return new R(e)},y["ISO-2022-JP"]=function(e){return new P(e)},v["ISO-2022-JP"]=function(e){return new F(e)},y.Shift_JIS=function(e){return new U(e)},v.Shift_JIS=function(e){return new N(e)},y["EUC-KR"]=function(e){return new M(e)},v["EUC-KR"]=function(e){return new j(e)},y["UTF-16BE"]=function(e){return new W(!0,e)},v["UTF-16BE"]=function(e){return new H(!0,e)},y["UTF-16LE"]=function(e){return new W(!1,e)},v["UTF-16LE"]=function(e){return new H(!1,e)},y["x-user-defined"]=function(e){return new K(e)},v["x-user-defined"]=function(e){return new X(e)},t.TextEncoder||(t.TextEncoder=S),t.TextDecoder||(t.TextDecoder=C),e.exports&&(e.exports={TextEncoder:t.TextEncoder,TextDecoder:t.TextDecoder,EncodingIndexes:t["encoding-indexes"]})}(this||{})}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/24380.affd309bf2aa3f38d3a0.chunk.js.LICENSE.txt b/geonode_mapstore_client/static/mapstore/dist/js/24380.018dc26183efb561a8b1.chunk.js.LICENSE.txt similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/24380.affd309bf2aa3f38d3a0.chunk.js.LICENSE.txt rename to geonode_mapstore_client/static/mapstore/dist/js/24380.018dc26183efb561a8b1.chunk.js.LICENSE.txt diff --git a/geonode_mapstore_client/static/mapstore/dist/js/24592.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/24592.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/24592.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/24592.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/2461.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/2461.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/2461.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/2461.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/24693.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/24693.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/24693.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/24693.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/24794.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/24794.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/24794.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/24794.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/24850.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/24850.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/24850.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/24850.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/24896.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/24896.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/24896.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/24896.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/2495.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/2495.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/2495.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/2495.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/24968.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/24968.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/24968.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/24968.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/25088.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/25088.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/25088.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/25088.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/25134.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/25134.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/25134.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/25134.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/25243.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/25243.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/25243.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/25243.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/25250.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/25250.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/25250.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/25250.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/25339.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/25339.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/25339.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/25339.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/25352.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/25352.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/25352.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/25352.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/25450.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/25450.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/25450.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/25450.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/25473.018dc26183efb561a8b1.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/25473.018dc26183efb561a8b1.chunk.js new file mode 100644 index 0000000000..1efb1c041e --- /dev/null +++ b/geonode_mapstore_client/static/mapstore/dist/js/25473.018dc26183efb561a8b1.chunk.js @@ -0,0 +1 @@ +(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[25473],{31935:(r,e,n)=>{"use strict";n.d(e,{YL:()=>l,B0:()=>c,Mz:()=>a,TC:()=>s,qS:()=>f,Pe:()=>d,TP:()=>v});var t=n(22222),o=n(675110),u=n(93152),i=n(624262),l=function(r){return r.backgroundSelector&&r.backgroundSelector.source},c=function(r){return r.backgroundSelector&&r.backgroundSelector.modalParams},a=function(r){return r.backgroundSelector&&r.backgroundSelector.backgrounds||[]},s=function(r){return r.backgroundSelector&&r.backgroundSelector.lastRemovedId},f=function(r){return r.backgroundSelector&&r.backgroundSelector.confirmDeleteBackgroundModal},d=function(r){return r.backgroundSelector&&r.backgroundSelector.allowDeletion},v=(0,t.P1)(o.l2,u.$v,u.lh,(function(r,e,n){var t=r.filter((function(r){return r&&"background"===r.group}));return n&&n[e]?t.map((function(r){return(0,i.kf)(r,e)}))||[]:t}))},76907:(r,e,n)=>{"use strict";n.d(e,{ez:()=>ur,gH:()=>fr,il:()=>or,iV:()=>cr,Il:()=>vr,hs:()=>yr,sF:()=>gr,oS:()=>ar,yK:()=>lr,uu:()=>Q,YR:()=>mr,fg:()=>q,Yj:()=>Z,HG:()=>X,UU:()=>rr,l_:()=>dr,L4:()=>tr,V$:()=>ir,km:()=>nr,Bs:()=>er});var t=n(800827),o=n(552259),u=n(22222),i=n(788113),l=n(401757),c=n(307877),a=n(285148),s=n(997291),f=n(675110),d=n(31935);function v(r){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},v(r)}function p(r,e){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.push.apply(n,t)}return n}function b(r){for(var e=1;e=0||(o[n]=r[n]);return o}(r,e);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(r,n)&&(o[n]=r[n])}return o}function N(r){return function(r){if(Array.isArray(r))return $(r)}(r)||function(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}(r)||function(r,e){if(r){if("string"==typeof r)return $(r,e);var n=Object.prototype.toString.call(r).slice(8,-1);return"Object"===n&&r.constructor&&(n=r.constructor.name),"Map"===n||"Set"===n?Array.from(r):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$(r,e):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $(r,e){(null==e||e>r.length)&&(e=r.length);for(var n=0,t=new Array(e);n0)&&o?o:null,geoLimits:(null==i?void 0:i.length)>0?i:null}},sr=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return r&&(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).some((function(e){return r.info.groups.some((function(r){return r===e.name}))&&"manage"===e.permissions}))||!1},fr=function(r){var e,n=cr(r),t=n.users||[],o=n.groups||[],u=n.organizations||[],i=null==r||null===(e=r.security)||void 0===e?void 0:e.user,l=(i&&t.find((function(r){return r.id===i.pk}))||{}).permissions;return["owner","manage"].includes(l)||sr(i,o)||sr(i,u)},dr=function(r){var e;return null==r||null===(e=r.gnresource)||void 0===e?void 0:e.selectedLayerPermissions},vr=function(r,e){var n;switch(e||(null==r||null===(n=r.gnresource)||void 0===n?void 0:n.type)){case k.P6.MAP:return(0,t.Od)(r)?function(r){var e=(0,f.l2)(r),n=function(r){var e=(0,t.Od)(r),n=(0,f.l2)(r),u=(0,f.Bt)(r),i=(0,d.Mz)(r),l=function(r){return r.searchconfig&&r.searchconfig.textSearchConfig}(r),c=function(r){return r.searchbookmarkconfig&&r.searchbookmarkconfig.bookmarkSearchConfig}(r),a=function(r){var e=Object.keys(y).reduce((function(e,n){return b(b({},e),{},m({},n,y[n](r)))}),{});return b(b({},g(r)),e)}(r);return o.default.saveMapConfiguration(e,n,u,i,l,c,a)}(r),u=n.map;return P(P({},function(r,e){if(null==r)return{};var n,t,o=function(r,e){if(null==r)return{};var n,t,o={},u=Object.keys(r);for(t=0;t=0||(o[n]=r[n]);return o}(r,e);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(r,n)&&(o[n]=r[n])}return o}(n,S)),{},{map:P(P({},u),{},{layers:((null==u?void 0:u.layers)||[]).map((function(r){var n=e.find((function(e){return e.id===r.id}));if(n){var t=n.availableStyles;return P(P({},r),{},{availableStyles:t})}return r}))})})}(r):null;case k.P6.GEOSTORY:return(0,h.Kg)(r);case k.P6.DASHBOARD:return(0,l.md)(r);default:return null}};function pr(r,e){return A()(r)?r.map((function(r){return pr(r,e)})):x()(r)?Object.keys(T()(r,e)).reduce((function(n,t){return V(V({},n),{},W({},t,pr(r[t],e)))}),{}):r}function br(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.crs===e.crs&&Math.abs(r.x-e.x)<1e-12&&Math.abs(r.y-e.y)<1e-12}var mr=function(r){var e,n,t,u=fr(r),i=(0,E.s2)(r),l=(0,E.SJ)(r);if(!u||i||l)return null;var c=null==r||null===(e=r.gnresource)||void 0===e?void 0:e.type,a=["title","abstract","data"],s=M()((null==r||null===(n=r.gnresource)||void 0===n?void 0:n.initialResource)||{},a),f=s.data,d=void 0===f?{}:f,v=J(s,F),p=ar(r),b=p.compactPermissions,m=p.geoLimits,y=JSON.parse(JSON.stringify(vr(r)||{})),g=T()(null==r||null===(t=r.gnresource)||void 0===t?void 0:t.data,["thumbnail_url","thumbnailChanged","updatingThumbnail"])||{},O=M()(g,a),S=!function(r){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=null==r||null===(e=r.gnresource)||void 0===e?void 0:e.type;if(L()(n)||L()(t))return!0;switch(u){case k.P6.MAP:return(0,o.compareMapChanges)(pr(n,["extraParams","getFeatureInfo","store","capability","extendedParams","availableStyles","center","zoom","bbox"]),pr(t,["extraParams","getFeatureInfo","store","capability","extendedParams","availableStyles","center","zoom","bbox"]));case k.P6.GEOSTORY:return R()(pr(n,["fontFamilies"]),pr(t,["fontFamilies"]));case k.P6.DASHBOARD:var i=(null==n?void 0:n.widgets)||[],l=i.every((function(r){return"map"!==r.widgetType||!!r.maps})),c=!!((null==t?void 0:t.widgets)||[]).find((function(r){if("map"===r.widgetType){var e,n=i.find((function(e){return e.id===r.id})),t=N(r.maps),o=l?t.every((function(r){var e,t=(null==n||null===(e=n.maps)||void 0===e?void 0:e.find((function(e){return e.mapId===r.mapId})))||{};return br(null==t?void 0:t.center,null==r?void 0:r.center)})):br(null==n||null===(e=n.map)||void 0===e?void 0:e.center,t[0].center);return!n||!o}return!1})),a=l?t:V(V({},t),{},{widgets:t.widgets.map((function(r){if(r.maps){var e=r.maps;delete r.maps,r.map=e[0]}return r}))}),s=["bbox","size","center","layouts"],f=l?s:["bbox","size","center","layouts","mapId","dependenciesMap","selectedMapId"];return R()(pr(n,s),pr(a,f))&&!c;default:return!0}}(r,d,y),j=!(L()(O)||L()(v)||R()(O,v));return b||m||S||j?{compactPermissions:b,geoLimits:m,resource:j?g:void 0,data:S?y:void 0,resourceType:c,pk:g.pk}:null},yr=function(r){return K()((0,h.Kg)(r),"resources",[]).filter((function(r){var e;return"geonode"===(null==r||null===(e=r.data)||void 0===e?void 0:e.sourceId)})).reduce((function(r,e){return["image","video"].includes(e.type)&&e.id?V(V({},r),{},{documents:[].concat(N(r.documents),[e.id])}):"map"===e.type&&e.id?V(V({},r),{},{maps:[].concat(N(r.maps),[e.id])}):r}),{maps:[],documents:[]})},gr=function(r){return K()((0,w.hS)(r),"widgets",[]).reduce((function(r,e){var n,t,o,u,i=e.maps,l=J(e,Y);return i&&"map"===l.widgetType?V(V({},r),{},{maps:[].concat(N(r.maps),N(i.filter((function(r){var e;return!(null==r||null===(e=r.extraParams)||void 0===e||!e.pk)})).map((function(r){return r.extraParams.pk}))))}):"map"===l.widgetType&&null!==(n=l.map)&&void 0!==n&&null!==(t=n.extraParams)&&void 0!==t&&t.pk?V(V({},r),{},{maps:[].concat(N(r.maps),[null===(o=l.map)||void 0===o||null===(u=o.extraParams)||void 0===u?void 0:u.pk])}):r}),{maps:[]})}},452992:(r,e,n)=>{"use strict";n.d(e,{jp:()=>f,WB:()=>d,zL:()=>v,aZ:()=>p,IX:()=>b,SJ:()=>m,s2:()=>y});var t=n(76907),o=n(12530),u=n(653488);function i(r){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},i(r)}function l(r,e){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.push.apply(n,t)}return n}function c(r){for(var e=1;er.length)&&(e=r.length);for(var n=0,t=new Array(e);n{"use strict";n.d(e,{BP:()=>l,n:()=>c,m0:()=>a,ak:()=>s});var t=n(535721);function o(r){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},o(r)}function u(r,e){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.push.apply(n,t)}return n}function i(r){for(var e=1;e0?i(i({},r),{},{processes:e}):r}));return(0,t.AU)(l)},c=function(r){var e,n,o,u=(null==r||null===(e=r.gnsearch)||void 0===e||null===(n=e.featuredResources)||void 0===n?void 0:n.resources)||[],l=(null==r||null===(o=r.resourceservice)||void 0===o?void 0:o.processes)||[],c=u.map((function(r){var e=l.filter((function(e){var n;return(null==e||null===(n=e.resource)||void 0===n?void 0:n.pk)===(null==r?void 0:r.pk)}));return e.length>0?i(i({},r),{},{processes:e}):r}));return(0,t.AU)(c)},a=function(r){var e,n=l(r).filter((function(r){return r["@temporary"]})).length;return((null==r||null===(e=r.gnsearch)||void 0===e?void 0:e.total)||0)+n},s=function(r){var e;return null==r||null===(e=r.gnsearch)||void 0===e?void 0:e.facetItems}}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/25473.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/25473.affd309bf2aa3f38d3a0.chunk.js deleted file mode 100644 index d4e3a4785b..0000000000 --- a/geonode_mapstore_client/static/mapstore/dist/js/25473.affd309bf2aa3f38d3a0.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[25473],{31935:(r,e,n)=>{"use strict";n.d(e,{YL:()=>l,B0:()=>c,Mz:()=>a,TC:()=>s,qS:()=>f,Pe:()=>d,TP:()=>v});var t=n(22222),o=n(675110),u=n(93152),i=n(624262),l=function(r){return r.backgroundSelector&&r.backgroundSelector.source},c=function(r){return r.backgroundSelector&&r.backgroundSelector.modalParams},a=function(r){return r.backgroundSelector&&r.backgroundSelector.backgrounds||[]},s=function(r){return r.backgroundSelector&&r.backgroundSelector.lastRemovedId},f=function(r){return r.backgroundSelector&&r.backgroundSelector.confirmDeleteBackgroundModal},d=function(r){return r.backgroundSelector&&r.backgroundSelector.allowDeletion},v=(0,t.P1)(o.l2,u.$v,u.lh,(function(r,e,n){var t=r.filter((function(r){return r&&"background"===r.group}));return n&&n[e]?t.map((function(r){return(0,i.kf)(r,e)}))||[]:t}))},76907:(r,e,n)=>{"use strict";n.d(e,{ez:()=>ir,gH:()=>dr,il:()=>ur,iV:()=>ar,Il:()=>pr,hs:()=>gr,sF:()=>Or,oS:()=>sr,yK:()=>cr,uu:()=>rr,YR:()=>yr,fg:()=>X,Yj:()=>Q,HG:()=>Z,UU:()=>er,l_:()=>vr,L4:()=>or,V$:()=>lr,km:()=>tr,Bs:()=>nr});var t=n(800827),o=n(552259),u=n(22222),i=n(788113),l=n(401757),c=n(307877),a=n(285148),s=n(997291),f=n(675110),d=n(31935);function v(r){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},v(r)}function p(r,e){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.push.apply(n,t)}return n}function b(r){for(var e=1;e=0||(o[n]=r[n]);return o}(r,e);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(r,n)&&(o[n]=r[n])}return o}function $(r){return function(r){if(Array.isArray(r))return G(r)}(r)||function(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}(r)||function(r,e){if(r){if("string"==typeof r)return G(r,e);var n=Object.prototype.toString.call(r).slice(8,-1);return"Object"===n&&r.constructor&&(n=r.constructor.name),"Map"===n||"Set"===n?Array.from(r):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?G(r,e):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function G(r,e){(null==e||e>r.length)&&(e=r.length);for(var n=0,t=new Array(e);n0)&&o?o:null,geoLimits:(null==i?void 0:i.length)>0?i:null}},fr=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return r&&(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).some((function(e){return r.info.groups.some((function(r){return r===e.name}))&&"manage"===e.permissions}))||!1},dr=function(r){var e,n=ar(r),t=n.users||[],o=n.groups||[],u=n.organizations||[],i=null==r||null===(e=r.security)||void 0===e?void 0:e.user,l=(i&&t.find((function(r){return r.id===i.pk}))||{}).permissions;return["owner","manage"].includes(l)||fr(i,o)||fr(i,u)},vr=function(r){var e;return null==r||null===(e=r.gnresource)||void 0===e?void 0:e.selectedLayerPermissions},pr=function(r,e){var n;switch(e||(null==r||null===(n=r.gnresource)||void 0===n?void 0:n.type)){case E.P6.MAP:return(0,t.Od)(r)?function(r){var e=(0,f.l2)(r),n=function(r){var e=(0,t.Od)(r),n=(0,f.l2)(r),u=(0,f.Bt)(r),i=(0,d.Mz)(r),l=function(r){return r.searchconfig&&r.searchconfig.textSearchConfig}(r),c=function(r){return r.searchbookmarkconfig&&r.searchbookmarkconfig.bookmarkSearchConfig}(r),a=function(r){var e=Object.keys(y).reduce((function(e,n){return b(b({},e),{},m({},n,y[n](r)))}),{});return b(b({},g(r)),e)}(r);return o.default.saveMapConfiguration(e,n,u,i,l,c,a)}(r),u=n.map;return P(P({},function(r,e){if(null==r)return{};var n,t,o=function(r,e){if(null==r)return{};var n,t,o={},u=Object.keys(r);for(t=0;t=0||(o[n]=r[n]);return o}(r,e);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(r,n)&&(o[n]=r[n])}return o}(n,S)),{},{map:P(P({},u),{},{layers:((null==u?void 0:u.layers)||[]).map((function(r){var n=e.find((function(e){return e.id===r.id}));if(n){var t=n.availableStyles;return P(P({},r),{},{availableStyles:t})}return r}))})})}(r):null;case E.P6.GEOSTORY:return(0,w.Kg)(r);case E.P6.DASHBOARD:return(0,l.md)(r);default:return null}};function br(r,e){return C()(r)?r.map((function(r){return br(r,e)})):z()(r)?Object.keys(I()(r,e)).reduce((function(n,t){return W(W({},n),{},q({},t,br(r[t],e)))}),{}):r}function mr(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.crs===e.crs&&Math.abs(r.x-e.x)<1e-12&&Math.abs(r.y-e.y)<1e-12}var yr=function(r){var e,n,t,u=dr(r),i=(0,D.s2)(r),l=(0,D.SJ)(r);if(!u||i||l)return null;var c=null==r||null===(e=r.gnresource)||void 0===e?void 0:e.type,a=["title","abstract","data"],s=_()((null==r||null===(n=r.gnresource)||void 0===n?void 0:n.initialResource)||{},a),f=s.data,d=void 0===f?{}:f,v=N(s,Y),p=sr(r),b=p.compactPermissions,m=p.geoLimits,y=JSON.parse(JSON.stringify(pr(r)||{})),g=I()(null==r||null===(t=r.gnresource)||void 0===t?void 0:t.data,["thumbnail_url","thumbnailChanged","updatingThumbnail"])||{},O=_()(g,a),S=!function(r){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=null==r||null===(e=r.gnresource)||void 0===e?void 0:e.type;if(U()(n)||U()(t))return!0;switch(u){case E.P6.MAP:return(0,o.compareMapChanges)(br(n,["extraParams","getFeatureInfo","store","capability","extendedParams","availableStyles","center","zoom","bbox"]),br(t,["extraParams","getFeatureInfo","store","capability","extendedParams","availableStyles","center","zoom","bbox"]));case E.P6.GEOSTORY:return B()(br(n,["fontFamilies"]),br(t,["fontFamilies"]));case E.P6.DASHBOARD:var i=(null==n?void 0:n.widgets)||[],l=i.every((function(r){return"map"!==r.widgetType||!!r.maps})),c=!!((null==t?void 0:t.widgets)||[]).find((function(r){if("map"===r.widgetType){var e,n=i.find((function(e){return e.id===r.id})),t=$(r.maps),o=l?t.every((function(r){var e,t=(null==n||null===(e=n.maps)||void 0===e?void 0:e.find((function(e){return e.mapId===r.mapId})))||{};return mr(null==t?void 0:t.center,null==r?void 0:r.center)})):mr(null==n||null===(e=n.map)||void 0===e?void 0:e.center,t[0].center);return!n||!o}return!1})),a=l?t:W(W({},t),{},{widgets:t.widgets.map((function(r){if(r.maps){var e=r.maps;delete r.maps,r.map=e[0]}return r}))}),s=["bbox","size","center","layouts"],f=l?s:["bbox","size","center","layouts","mapId","dependenciesMap","selectedMapId"];return B()(br(n,s),br(a,f))&&!c;default:return!0}}(r,d,y),j=!(U()(O)||U()(v)||B()(O,v));return b||m||S||j?{compactPermissions:b,geoLimits:m,resource:j?g:void 0,data:S?y:void 0,resourceType:c,pk:g.pk}:null},gr=function(r){return F()((0,w.Kg)(r),"resources",[]).filter((function(r){var e;return"geonode"===(null==r||null===(e=r.data)||void 0===e?void 0:e.sourceId)})).reduce((function(r,e){return["image","video"].includes(e.type)&&e.id?W(W({},r),{},{documents:[].concat($(r.documents),[e.id])}):"map"===e.type&&e.id?W(W({},r),{},{maps:[].concat($(r.maps),[e.id])}):r}),{maps:[],documents:[]})},Or=function(r){return F()((0,k.hS)(r),"widgets",[]).reduce((function(r,e){var n,t,o,u,i=e.maps,l=N(e,H);return i&&"map"===l.widgetType?W(W({},r),{},{maps:[].concat($(r.maps),$(i.filter((function(r){var e;return!(null==r||null===(e=r.extraParams)||void 0===e||!e.pk)})).map((function(r){return r.extraParams.pk}))))}):"map"===l.widgetType&&null!==(n=l.map)&&void 0!==n&&null!==(t=n.extraParams)&&void 0!==t&&t.pk?W(W({},r),{},{maps:[].concat($(r.maps),[null===(o=l.map)||void 0===o||null===(u=o.extraParams)||void 0===u?void 0:u.pk])}):r}),{maps:[]})}},452992:(r,e,n)=>{"use strict";n.d(e,{jp:()=>d,WB:()=>v,zL:()=>p,aZ:()=>b,IX:()=>m,SJ:()=>y,s2:()=>g});var t=n(76907),o=n(12530),u=n(653488);function i(r){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},i(r)}function l(r,e){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.push.apply(n,t)}return n}function c(r){for(var e=1;er.length)&&(e=r.length);for(var n=0,t=new Array(e);n{"use strict";n.d(e,{BP:()=>c,n:()=>a,m0:()=>s,ak:()=>f});var t=n(535721);function o(r){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},o(r)}function u(r,e){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.push.apply(n,t)}return n}function i(r){for(var e=1;e0?i(i({},r),{},{processes:e}):r}));return(0,t.AU)(l)},a=function(r){var e,n,o,u=(null==r||null===(e=r.gnsearch)||void 0===e||null===(n=e.featuredResources)||void 0===n?void 0:n.resources)||[],l=(null==r||null===(o=r.resourceservice)||void 0===o?void 0:o.processes)||[],c=u.map((function(r){var e=l.filter((function(e){var n;return(null==e||null===(n=e.resource)||void 0===n?void 0:n.pk)===(null==r?void 0:r.pk)}));return e.length>0?i(i({},r),{},{processes:e}):r}));return(0,t.AU)(c)},s=function(r){var e,n=c(r).filter((function(r){return r["@temporary"]})).length;return((null==r||null===(e=r.gnsearch)||void 0===e?void 0:e.total)||0)+n},f=function(r){var e;return null==r||null===(e=r.gnsearch)||void 0===e?void 0:e.facetItems}}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/25574.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/25574.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/25574.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/25574.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/25594.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/25594.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/25594.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/25594.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/25678.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/25678.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/25678.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/25678.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/2568.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/2568.018dc26183efb561a8b1.chunk.js similarity index 98% rename from geonode_mapstore_client/static/mapstore/dist/js/2568.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/2568.018dc26183efb561a8b1.chunk.js index 0f2a425d06..135bca981d 100644 --- a/geonode_mapstore_client/static/mapstore/dist/js/2568.affd309bf2aa3f38d3a0.chunk.js +++ b/geonode_mapstore_client/static/mapstore/dist/js/2568.018dc26183efb561a8b1.chunk.js @@ -1,2 +1,2 @@ -/*! For license information please see 2568.affd309bf2aa3f38d3a0.chunk.js.LICENSE.txt */ +/*! For license information please see 2568.018dc26183efb561a8b1.chunk.js.LICENSE.txt */ (self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[2568],{540487:r=>{var n={utf8:{stringToBytes:function(r){return n.bin.stringToBytes(unescape(encodeURIComponent(r)))},bytesToString:function(r){return decodeURIComponent(escape(n.bin.bytesToString(r)))}},bin:{stringToBytes:function(r){for(var n=[],t=0;t{var n,t;n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t={rotl:function(r,n){return r<>>32-n},rotr:function(r,n){return r<<32-n|r>>>n},endian:function(r){if(r.constructor==Number)return 16711935&t.rotl(r,8)|4278255360&t.rotl(r,24);for(var n=0;n0;r--)n.push(Math.floor(256*Math.random()));return n},bytesToWords:function(r){for(var n=[],t=0,e=0;t>>5]|=r[t]<<24-e%32;return n},wordsToBytes:function(r){for(var n=[],t=0;t<32*r.length;t+=8)n.push(r[t>>>5]>>>24-t%32&255);return n},bytesToHex:function(r){for(var n=[],t=0;t>>4).toString(16)),n.push((15&r[t]).toString(16));return n.join("")},hexToBytes:function(r){for(var n=[],t=0;t>>6*(3-u)&63)):t.push("=");return t.join("")},base64ToBytes:function(r){r=r.replace(/[^A-Z0-9+\/]/gi,"");for(var t=[],e=0,o=0;e>>6-2*o);return t}},r.exports=t},848738:r=>{function n(r){return!!r.constructor&&"function"==typeof r.constructor.isBuffer&&r.constructor.isBuffer(r)}r.exports=function(r){return null!=r&&(n(r)||function(r){return"function"==typeof r.readFloatLE&&"function"==typeof r.slice&&n(r.slice(0,0))}(r)||!!r._isBuffer)}},402568:(r,n,t)=>{var e,o,u,i,s;e=t(971012),o=t(540487).utf8,u=t(848738),i=t(540487).bin,(s=function(r,n){r.constructor==String?r=n&&"binary"===n.encoding?i.stringToBytes(r):o.stringToBytes(r):u(r)?r=Array.prototype.slice.call(r,0):Array.isArray(r)||r.constructor===Uint8Array||(r=r.toString());for(var t=e.bytesToWords(r),f=8*r.length,a=1732584193,c=-271733879,h=-1732584194,g=271733878,l=0;l>>24)|4278255360&(t[l]<<24|t[l]>>>8);t[f>>>5]|=128<>>9<<4)]=f;var p=s._ff,y=s._gg,v=s._hh,d=s._ii;for(l=0;l>>0,c=c+T>>>0,h=h+B>>>0,g=g+_>>>0}return e.endian([a,c,h,g])})._ff=function(r,n,t,e,o,u,i){var s=r+(n&t|~n&e)+(o>>>0)+i;return(s<>>32-u)+n},s._gg=function(r,n,t,e,o,u,i){var s=r+(n&e|t&~e)+(o>>>0)+i;return(s<>>32-u)+n},s._hh=function(r,n,t,e,o,u,i){var s=r+(n^t^e)+(o>>>0)+i;return(s<>>32-u)+n},s._ii=function(r,n,t,e,o,u,i){var s=r+(t^(n|~e))+(o>>>0)+i;return(s<>>32-u)+n},s._blocksize=16,s._digestsize=16,r.exports=function(r,n){if(null==r)throw new Error("Illegal argument "+r);var t=e.wordsToBytes(s(r,n));return n&&n.asBytes?t:n&&n.asString?i.bytesToString(t):e.bytesToHex(t)}}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/2568.affd309bf2aa3f38d3a0.chunk.js.LICENSE.txt b/geonode_mapstore_client/static/mapstore/dist/js/2568.018dc26183efb561a8b1.chunk.js.LICENSE.txt similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/2568.affd309bf2aa3f38d3a0.chunk.js.LICENSE.txt rename to geonode_mapstore_client/static/mapstore/dist/js/2568.018dc26183efb561a8b1.chunk.js.LICENSE.txt diff --git a/geonode_mapstore_client/static/mapstore/dist/js/25722.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/25722.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/25722.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/25722.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/25734.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/25734.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/25734.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/25734.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/25750.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/25750.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/25750.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/25750.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/25772.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/25772.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/25772.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/25772.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/25993.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/25993.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/25993.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/25993.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/25996.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/25996.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/25996.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/25996.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/2607.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/2607.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/2607.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/2607.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/26080.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/26080.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/26080.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/26080.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/26123.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/26123.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/26123.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/26123.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/2629.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/2629.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/2629.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/2629.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/26374.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/26374.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/26374.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/26374.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/26411.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/26411.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/26411.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/26411.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/26417.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/26417.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/26417.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/26417.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/26483.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/26483.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/26483.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/26483.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/26532.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/26532.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/26532.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/26532.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/26597.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/26597.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/26597.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/26597.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/26921.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/26921.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/26921.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/26921.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/27004.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/27004.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/27004.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/27004.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/27111.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/27111.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/27111.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/27111.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/27308.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/27308.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/27308.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/27308.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/27311.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/27311.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/27311.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/27311.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/27412.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/27412.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/27412.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/27412.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/27414.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/27414.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/27414.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/27414.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/27431.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/27431.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/27431.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/27431.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/27508.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/27508.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/27508.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/27508.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/27529.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/27529.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/27529.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/27529.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/2764.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/2764.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/2764.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/2764.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/27646.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/27646.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/27646.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/27646.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/27703.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/27703.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/27703.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/27703.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/27870.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/27870.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/27870.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/27870.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/27943.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/27943.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/27943.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/27943.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/2799.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/2799.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/2799.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/2799.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/27998.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/27998.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/27998.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/27998.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/28179.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/28179.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/28179.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/28179.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/28291.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/28291.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/28291.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/28291.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/2830.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/2830.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/2830.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/2830.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/28337.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/28337.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/28337.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/28337.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/284.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/284.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/284.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/284.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/28525.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/28525.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/28525.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/28525.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/28606.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/28606.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/28606.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/28606.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/28987.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/28987.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/28987.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/28987.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/29290.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/29290.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/29290.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/29290.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/29298.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/29298.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/29298.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/29298.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/2976.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/2976.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/2976.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/2976.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/29844.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/29844.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/29844.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/29844.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/29935.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/29935.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/29935.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/29935.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/29970.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/29970.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/29970.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/29970.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/30131.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/30131.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/30131.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/30131.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/30398.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/30398.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/30398.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/30398.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/30555.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/30555.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/30555.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/30555.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/30641.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/30641.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/30641.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/30641.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/30702.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/30702.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/30702.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/30702.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/30728.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/30728.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/30728.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/30728.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/30736.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/30736.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/30736.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/30736.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/30955.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/30955.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/30955.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/30955.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/31041.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/31041.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/31041.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/31041.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/31056.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/31056.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/31056.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/31056.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/31082.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/31082.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/31082.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/31082.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/31120.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/31120.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/31120.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/31120.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/31255.018dc26183efb561a8b1.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/31255.018dc26183efb561a8b1.chunk.js new file mode 100644 index 0000000000..b497b21076 --- /dev/null +++ b/geonode_mapstore_client/static/mapstore/dist/js/31255.018dc26183efb561a8b1.chunk.js @@ -0,0 +1 @@ +(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[31255],{285148:(t,r,e)=>{"use strict";e.d(r,{Qw:()=>p,jo:()=>h,m$:()=>O,AF:()=>w,WT:()=>j,ns:()=>S,RP:()=>D,aK:()=>P,oP:()=>T});var n=e(675110),u=e(55237),i=e(22222),o=e(227361),a=e.n(o),c=e(313311),f=e.n(c);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function s(t){return function(t){if(Array.isArray(t))return d(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||y(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(t,r){if(t){if("string"==typeof t)return d(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?d(t,r):void 0}}function d(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return f()(t.dimensions||[],{name:r})},h=function(t,r){return function(e){return p(t.id,r)(e)||v(t,r)}},O=function(t){return(0,n.l2)(t).reduce((function(r,e){var n=h(e,"time")(t);return n?g(g({},r),{},b({},e.id,n)):r}),{})},w=function(t){return(0,n.l2)(t).filter((function(t){return v(t,"time")}))},j=function(t){var r=a()(t,"dimension.currentTime");return r&&r.split("/")[0]},S=function(t){return a()(t,"dimension.offsetTime")},D=function(t){return!!S(t)},P=((0,i.P1)(O,(function(t){return Object.keys(t).reduce((function(r,e){return[].concat(s(r),s(t[e]&&t[e].values||[]))}),[]).sort()||[]})),function(t){return function(r){return s(a()(h(t,"time")(r),"values",[])).sort()}}),T=function(t,r){var e=p(r,"time")(t),n=e&&e.domain&&e.domain.split("--");if(n&&2===n.length)return n&&{start:n[0],end:n[1]};var i,o,a=e&&e.domain&&e.domain.split(",");if(a&&a.length>0){var c=(i=(0,u.tz)(a),o=2,function(t){if(Array.isArray(t))return t}(i)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,u,i,o,a=[],c=!0,f=!1;try{if(i=(e=e.call(t)).next,0===r){if(Object(e)!==e)return;c=!1}else for(;!(c=(n=i.call(e)).done)&&(a.push(n.value),a.length!==r);c=!0);}catch(t){f=!0,u=t}finally{try{if(!c&&null!=e.return&&(o=e.return(),Object(o)!==o))return}finally{if(f)throw u}}return a}}(i,o)||y(i,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());return{start:c[0],end:c[1]}}return null}},731255:(t,r,e)=>{"use strict";e.d(r,{u$:()=>j,Xh:()=>S,_w:()=>D,eO:()=>P,kG:()=>T,P3:()=>q,bq:()=>I,LB:()=>E,b4:()=>C,M0:()=>F,Li:()=>k,Rd:()=>x,g5:()=>L,Sj:()=>U,o:()=>_,eK:()=>z,jY:()=>G,ND:()=>H,OK:()=>N,tU:()=>K,ou:()=>$,DK:()=>Q,Gl:()=>R,uz:()=>B,Ci:()=>V,Ae:()=>W,gz:()=>Y,He:()=>X,P4:()=>J,kd:()=>Z,TC:()=>tt,nq:()=>rt,Vf:()=>et,lg:()=>nt});var n=e(91175),u=e.n(n),i=e(227361),o=e.n(i),a=e(513218),c=e.n(a),f=e(675110),l=e(378889),s=e(308316),y=e(552259),d=e(196958),m=e(285148),g=e(274621),b=e(93152),p=e(824260);function v(t){return v="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},v(t)}function h(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function O(t){for(var r=1;r0},C=function(t){return T(t)&&T(t).length>0},F=function(t){return t&&t.featuregrid&&t.featuregrid.filters},k=function(t){return w(t,j(t))},x=function(t){return t&&t.featuregrid&&t.featuregrid.open},L=function(t,r){return o()(F(t),r)},U=function(t){var r=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.title||t.name}(w(t,j(t)));return c()(r)?r[(0,s.Pz)(t)]||r.default||"":r},_=function(t){return((0,p.L)(t)||[]).map((function(r){var e=function(t,r){return o()(t,"featuregrid.attributes[".concat(r.name||r.attribute,"]"))}(t,r);return e?O(O({},r),e):r}))},z=function(t){return t&&t.featuregrid&&t.featuregrid.mode},G=function(t){return(D(t)||[]).length},H=function(t){return(0,d.rK)(P(t))},N=function(t){return function(t){var r=q(t);if(r){var e=(0,d.rK)(P(t));return!((!e[r.id]||null===e[r.id].geometry)&&(e[r.id]&&null===e[r.id].geometry||r._new&&u()(T(t))&&null===u()(T(t)).geometry||(!r._new||!u()(T(t))||null===u()(T(t)).geometry)&&null===r.geometry))}return!1}(t)},K=function(t){return o()(t,"featuregrid.showAgain",!1)},$=function(t){if(o()(t,"featuregrid.showTimeSync",!1)){var r=j(t);return(0,m.jo)({id:r},"time")(t)}return null},Q=function(t){return o()(t,"featuregrid.timeSync",!1)},R=function(t){return o()(t,"featuregrid.showPopoverSync",!0)},B=function(t){return t&&t.featuregrid&&t.featuregrid.saving},V=function(t){return t&&t.featuregrid&&t.featuregrid.saved},W=function(t){return t&&t.featuregrid&&t.featuregrid.drawing},Y=function(t){return o()(t,"featuregrid.multiselect",!1)},X=function(t){return(0,y.isSimpleGeomType)(A(t))},J=function(t){return t.featuregrid&&t.featuregrid.dockSize},Z=function(t){var r=w(t,j(t));return r&&r.name||""},tt=function(t){var r=function(t){return o()(w(t,j(t)),"params")}(t);return{viewParams:r&&(r.VIEWPARAMS||r.viewParams||r.viewparams),cqlFilter:r&&(r.CQL_FILTER||r.cqlFilter||r.cql_filter)}},rt=function(t){var r=(0,g.L3)(t),e=function(t){return o()(t,"featuregrid.editingAllowedRoles",["ADMIN"])}(t)||["ADMIN"],n=function(t){return t&&t.featuregrid&&t.featuregrid.canEdit}(t);return(-1!==e.indexOf(r)||n)&&!(0,b.c0)(t)},et=function(t){return o()(t,"featuregrid.pagination")},nt=function(t){return o()(t,"featuregrid.useLayerFilter",!0)}},824260:(t,r,e)=>{"use strict";e.d(r,{qj:()=>v,Bu:()=>h,UM:()=>O,X1:()=>w,L:()=>j,HY:()=>S,Mz:()=>D,F0:()=>P,dc:()=>T,b0:()=>q,hk:()=>A,Qs:()=>M,gy:()=>I,M7:()=>E,VD:()=>C});var n=e(414293),u=e.n(n),i=e(227361),o=e.n(i),a=e(91175),c=e.n(a),f=e(701469),l=e.n(f),s=e(630998),y=e.n(s);function d(t){return d="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},d(t)}function m(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function g(t){for(var r=1;r-1)||r&&r.collectGeometries&&r.operation)}},274621:(t,r,e)=>{"use strict";e.d(r,{np:()=>n,L3:()=>u,jl:()=>i,y8:()=>o,qg:()=>a}),e(727418),e(227361);var n=function(t){return t&&t.security&&t.security.user},u=function(t){return n(t)&&n(t).role},i=function(t){return t&&t.security&&t.security.user},o=function(t){return t.security&&t.security.token},a=function(t){return"ADMIN"===u(t)}},55237:(t,r,e)=>{"use strict";e.d(r,{tr:()=>w,jb:()=>j,Xu:()=>S,un:()=>D,Qn:()=>P,_q:()=>T,og:()=>q,$4:()=>A,kN:()=>M,oD:()=>I,V$:()=>E,uH:()=>C,pC:()=>F,tz:()=>k,p:()=>x});var n=e(747037),u=e.n(n),i=e(647960),o=e.n(i),a=e(227361),c=e.n(a),f=e(984596),l=e.n(f),s=e(730381),y=e.n(s),d=e(86638);function m(t){return function(t){if(Array.isArray(t))return p(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||b(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,u,i,o,a=[],c=!0,f=!1;try{if(i=(e=e.call(t)).next,0===r){if(Object(e)!==e)return;c=!1}else for(;!(c=(n=i.call(e)).done)&&(a.push(n.value),a.length!==r);c=!0);}catch(t){f=!0,u=t}finally{try{if(!c&&null!=e.return&&(o=e.return(),Object(o)!==o))return}finally{if(f)throw u}}return a}}(t,r)||b(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(t,r){if(t){if("string"==typeof t)return p(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?p(t,r):void 0}}function p(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e0&&void 0!==arguments[0]?arguments[0]:{},r=t.start,e=t.end,n=t.duration,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=u.start,o=u.end;if(!i||!o)return{count:O({start:r,end:e,duration:n}),start:r,end:e};var a=y().duration(n).asMilliseconds(),c=new Date(r).getTime(),f=new Date(e).getTime(),l=new Date(i).getTime(),s=new Date(o).getTime(),d=Math.ceil((l-c)/a),m=Math.floor((s-c)/a),g=Math.floor((f-c)/a);if(d>=0&&m<=g){var b=m-d;return{start:new Date(c+Math.max(0,d)*a),end:new Date(c+Math.min(g,m)*a),count:b}}return{count:O({start:r,end:e,duration:n}),start:r,end:e}},D=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.start,e=t.end,n=arguments.length>1?arguments[1]:void 0,u=new Date(r),i=new Date(e),o=Math.floor(i.getTime()-u.getTime())/n;return{range:{start:r,end:e},resolution:y().duration(o).toISOString().match(v)[0]}},P=function(){var t,r,e=arguments.length>1?arguments[1]:void 0,n=(t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],(r=arguments.length>2?arguments[2]:void 0)?t.map((function(t){var e=g(t.split("/"),2);return{start:e[0],end:e[1]}[r]})):t);return n[function(t,r){var e=h(r),n=1/0,u=-1;return t.forEach((function(t,r){var i=h(t),o=Math.abs(i-e);o0},q=function(t,r){var e=y()(t).diff(r);return{start:e>=0?r:t,end:e>=0?t:r}},A=function(t){return 6e4*t.getTimezoneOffset()},M=function(t){var r=t;!o()(t)&u()(t)&&(r=new Date(t));var e=r.getUTCHours();e=e<10?"0"+e:e;var n=r.getUTCMinutes();n=n<10?"0"+n:n;var i=r.getUTCSeconds();return i=i<10?"0"+i:i,"".concat(e,":").concat(n,":").concat(i)},I=function(t){var r=t;!o()(t)&u()(t)&&(r=new Date(t));var e=r.getUTCMonth()+1,n=r.getUTCDate();return e=e<10?"0"+e:e,n=n<10?"0"+n:n,"".concat(r.getUTCFullYear(),"-").concat(e,"-").concat(n)},E=function(t,r){var e=(0,d.mh)(t),n="HH:mm:SS";switch(r){case"time":return n;case"date":return e;default:return e+" "+n}},C=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).Domains,r=void 0===t?{}:t,e=arguments.length>1?arguments[1]:void 0,n=l()(r.DimensionDomain||[]).concat(),u=r["@version"]||r.version,i=c()(r,"SpaceDomain.BoundingBox");return i&&n.push({Identifier:"space",Domain:i}),n.map((function(t){var r=t.Identifier,n=t.Domain;return{source:{type:"multidim-extension",version:u,url:e},name:r,domain:n}}))},F=function(t,r,e){var n=h(r),u=h(e);return t.reduce((function(t,r){var e=h(r);return h(n)e?[].concat(m(t),[r]):m(t)}),[])},k=function(t){var r=t.reduce((function(t,r){if(-1!==r.indexOf("/")){var e=g(r.split("/"),2),n=e[0],u=e[1];return[].concat(m(t),[n,u])}return[].concat(m(t),[r])}),[]).sort();return[r[0],r[r.length-1]]},x=function(t,r,e){var n=y()(t);return("add"===e?n.add(r,"seconds"):n.subtract(r,"seconds")).toISOString()}}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/31255.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/31255.affd309bf2aa3f38d3a0.chunk.js deleted file mode 100644 index cb60704924..0000000000 --- a/geonode_mapstore_client/static/mapstore/dist/js/31255.affd309bf2aa3f38d3a0.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[31255],{285148:(t,r,e)=>{"use strict";e.d(r,{Qw:()=>p,jo:()=>h,m$:()=>O,AF:()=>w,WT:()=>j,ns:()=>S,RP:()=>D,aK:()=>P,oP:()=>T});var n=e(675110),u=e(55237),i=e(22222),o=e(227361),a=e.n(o),c=e(313311),f=e.n(c);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function s(t){return function(t){if(Array.isArray(t))return d(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||y(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(t,r){if(t){if("string"==typeof t)return d(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?d(t,r):void 0}}function d(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return f()(t.dimensions||[],{name:r})},h=function(t,r){return function(e){return p(t.id,r)(e)||v(t,r)}},O=function(t){return(0,n.l2)(t).reduce((function(r,e){var n=h(e,"time")(t);return n?g(g({},r),{},b({},e.id,n)):r}),{})},w=function(t){return(0,n.l2)(t).filter((function(t){return v(t,"time")}))},j=function(t){var r=a()(t,"dimension.currentTime");return r&&r.split("/")[0]},S=function(t){return a()(t,"dimension.offsetTime")},D=function(t){return!!S(t)},P=((0,i.P1)(O,(function(t){return Object.keys(t).reduce((function(r,e){return[].concat(s(r),s(t[e]&&t[e].values||[]))}),[]).sort()||[]})),function(t){return function(r){return s(a()(h(t,"time")(r),"values",[])).sort()}}),T=function(t,r){var e=p(r,"time")(t),n=e&&e.domain&&e.domain.split("--");if(n&&2===n.length)return n&&{start:n[0],end:n[1]};var i,o,a=e&&e.domain&&e.domain.split(",");if(a&&a.length>0){var c=(i=(0,u.tz)(a),o=2,function(t){if(Array.isArray(t))return t}(i)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,u,i,o,a=[],c=!0,f=!1;try{if(i=(e=e.call(t)).next,0===r){if(Object(e)!==e)return;c=!1}else for(;!(c=(n=i.call(e)).done)&&(a.push(n.value),a.length!==r);c=!0);}catch(t){f=!0,u=t}finally{try{if(!c&&null!=e.return&&(o=e.return(),Object(o)!==o))return}finally{if(f)throw u}}return a}}(i,o)||y(i,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());return{start:c[0],end:c[1]}}return null}},731255:(t,r,e)=>{"use strict";e.d(r,{u$:()=>S,Xh:()=>D,_w:()=>P,eO:()=>T,kG:()=>q,P3:()=>A,bq:()=>E,LB:()=>C,b4:()=>F,M0:()=>k,Li:()=>x,Rd:()=>L,g5:()=>U,Sj:()=>_,o:()=>z,eK:()=>G,jY:()=>H,ND:()=>N,OK:()=>K,tU:()=>$,ou:()=>Q,DK:()=>R,Gl:()=>B,uz:()=>V,Ci:()=>W,Ae:()=>Y,gz:()=>X,He:()=>J,P4:()=>Z,kd:()=>tt,TC:()=>rt,nq:()=>et,Vf:()=>nt,lg:()=>ut});var n=e(91175),u=e.n(n),i=e(227361),o=e.n(i),a=e(513218),c=e.n(a),f=e(675110),l=e(378889),s=e(308316),y=e(552259),d=e(196958),m=e(285148),g=e(274621),b=e(93152),p=e(824260);function v(t){return v="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},v(t)}function h(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function O(t){for(var r=1;r0},F=function(t){return q(t)&&q(t).length>0},k=function(t){return t&&t.featuregrid&&t.featuregrid.filters},x=function(t){return j(t,S(t))},L=function(t){return t&&t.featuregrid&&t.featuregrid.open},U=function(t,r){return o()(k(t),r)},_=function(t){var r=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.title||t.name}(j(t,S(t)));return c()(r)?r[(0,s.Pz)(t)]||r.default||"":r},z=function(t){return((0,p.L)(t)||[]).map((function(r){var e=function(t,r){return o()(t,"featuregrid.attributes[".concat(r.name||r.attribute,"]"))}(t,r);return e?O(O({},r),e):r}))},G=function(t){return t&&t.featuregrid&&t.featuregrid.mode},H=function(t){return(P(t)||[]).length},N=function(t){return(0,d.rK)(T(t))},K=function(t){return function(t){var r=A(t);if(r){var e=(0,d.rK)(T(t));return!((!e[r.id]||null===e[r.id].geometry)&&(e[r.id]&&null===e[r.id].geometry||r._new&&u()(q(t))&&null===u()(q(t)).geometry||(!r._new||!u()(q(t))||null===u()(q(t)).geometry)&&null===r.geometry))}return!1}(t)},$=function(t){return o()(t,"featuregrid.showAgain",!1)},Q=function(t){if(o()(t,"featuregrid.showTimeSync",!1)){var r=S(t);return(0,m.jo)({id:r},"time")(t)}return null},R=function(t){return o()(t,"featuregrid.timeSync",!1)},B=function(t){return o()(t,"featuregrid.showPopoverSync",!0)},V=function(t){return t&&t.featuregrid&&t.featuregrid.saving},W=function(t){return t&&t.featuregrid&&t.featuregrid.saved},Y=function(t){return t&&t.featuregrid&&t.featuregrid.drawing},X=function(t){return o()(t,"featuregrid.multiselect",!1)},J=function(t){return(0,y.isSimpleGeomType)(M(t))},Z=function(t){return t.featuregrid&&t.featuregrid.dockSize},tt=function(t){var r=j(t,S(t));return r&&r.name||""},rt=function(t){var r=function(t){return o()(j(t,S(t)),"params")}(t);return{viewParams:r&&(r.VIEWPARAMS||r.viewParams||r.viewparams),cqlFilter:r&&(r.CQL_FILTER||r.cqlFilter||r.cql_filter)}},et=function(t){var r=(0,g.L3)(t),e=function(t){return o()(t,"featuregrid.editingAllowedRoles",["ADMIN"])}(t)||["ADMIN"],n=function(t){return t&&t.featuregrid&&t.featuregrid.canEdit}(t);return(-1!==e.indexOf(r)||n)&&!(0,b.c0)(t)},nt=function(t){return o()(t,"featuregrid.pagination")},ut=function(t){return o()(t,"featuregrid.useLayerFilter",!0)}},824260:(t,r,e)=>{"use strict";e.d(r,{qj:()=>h,Bu:()=>O,UM:()=>w,X1:()=>j,L:()=>S,HY:()=>D,Mz:()=>P,F0:()=>T,dc:()=>q,b0:()=>A,hk:()=>M,Qs:()=>I,gy:()=>E,M7:()=>C,VD:()=>F});var n=e(414293),u=e.n(n),i=e(227361),o=e.n(i),a=e(91175),c=e.n(a),f=e(701469),l=e.n(f),s=e(630998),y=e.n(s);function d(t){return d="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},d(t)}function m(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function g(t){for(var r=1;r-1)||r&&r.collectGeometries&&r.operation)}},274621:(t,r,e)=>{"use strict";e.d(r,{np:()=>n,L3:()=>u,jl:()=>i,y8:()=>o,qg:()=>a}),e(727418),e(227361);var n=function(t){return t&&t.security&&t.security.user},u=function(t){return n(t)&&n(t).role},i=function(t){return t&&t.security&&t.security.user},o=function(t){return t.security&&t.security.token},a=function(t){return"ADMIN"===u(t)}},55237:(t,r,e)=>{"use strict";e.d(r,{tr:()=>w,jb:()=>j,Xu:()=>S,un:()=>D,Qn:()=>P,_q:()=>T,og:()=>q,$4:()=>A,kN:()=>M,oD:()=>I,V$:()=>E,uH:()=>C,pC:()=>F,tz:()=>k,p:()=>x});var n=e(747037),u=e.n(n),i=e(647960),o=e.n(i),a=e(227361),c=e.n(a),f=e(984596),l=e.n(f),s=e(730381),y=e.n(s),d=e(86638);function m(t){return function(t){if(Array.isArray(t))return p(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||b(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,u,i,o,a=[],c=!0,f=!1;try{if(i=(e=e.call(t)).next,0===r){if(Object(e)!==e)return;c=!1}else for(;!(c=(n=i.call(e)).done)&&(a.push(n.value),a.length!==r);c=!0);}catch(t){f=!0,u=t}finally{try{if(!c&&null!=e.return&&(o=e.return(),Object(o)!==o))return}finally{if(f)throw u}}return a}}(t,r)||b(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(t,r){if(t){if("string"==typeof t)return p(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?p(t,r):void 0}}function p(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e0&&void 0!==arguments[0]?arguments[0]:{},r=t.start,e=t.end,n=t.duration,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=u.start,o=u.end;if(!i||!o)return{count:O({start:r,end:e,duration:n}),start:r,end:e};var a=y().duration(n).asMilliseconds(),c=new Date(r).getTime(),f=new Date(e).getTime(),l=new Date(i).getTime(),s=new Date(o).getTime(),d=Math.ceil((l-c)/a),m=Math.floor((s-c)/a),g=Math.floor((f-c)/a);if(d>=0&&m<=g){var b=m-d;return{start:new Date(c+Math.max(0,d)*a),end:new Date(c+Math.min(g,m)*a),count:b}}return{count:O({start:r,end:e,duration:n}),start:r,end:e}},D=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.start,e=t.end,n=arguments.length>1?arguments[1]:void 0,u=new Date(r),i=new Date(e),o=Math.floor(i.getTime()-u.getTime())/n;return{range:{start:r,end:e},resolution:y().duration(o).toISOString().match(v)[0]}},P=function(){var t,r,e=arguments.length>1?arguments[1]:void 0,n=(t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],(r=arguments.length>2?arguments[2]:void 0)?t.map((function(t){var e=g(t.split("/"),2);return{start:e[0],end:e[1]}[r]})):t);return n[function(t,r){var e=h(r),n=1/0,u=-1;return t.forEach((function(t,r){var i=h(t),o=Math.abs(i-e);o0},q=function(t,r){var e=y()(t).diff(r);return{start:e>=0?r:t,end:e>=0?t:r}},A=function(t){return 6e4*t.getTimezoneOffset()},M=function(t){var r=t;!o()(t)&u()(t)&&(r=new Date(t));var e=r.getUTCHours();e=e<10?"0"+e:e;var n=r.getUTCMinutes();n=n<10?"0"+n:n;var i=r.getUTCSeconds();return i=i<10?"0"+i:i,"".concat(e,":").concat(n,":").concat(i)},I=function(t){var r=t;!o()(t)&u()(t)&&(r=new Date(t));var e=r.getUTCMonth()+1,n=r.getUTCDate();return e=e<10?"0"+e:e,n=n<10?"0"+n:n,"".concat(r.getUTCFullYear(),"-").concat(e,"-").concat(n)},E=function(t,r){var e=(0,d.mh)(t),n="HH:mm:SS";switch(r){case"time":return n;case"date":return e;default:return e+" "+n}},C=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).Domains,r=void 0===t?{}:t,e=arguments.length>1?arguments[1]:void 0,n=l()(r.DimensionDomain||[]).concat(),u=r["@version"]||r.version,i=c()(r,"SpaceDomain.BoundingBox");return i&&n.push({Identifier:"space",Domain:i}),n.map((function(t){var r=t.Identifier,n=t.Domain;return{source:{type:"multidim-extension",version:u,url:e},name:r,domain:n}}))},F=function(t,r,e){var n=h(r),u=h(e);return t.reduce((function(t,r){var e=h(r);return h(n)e?[].concat(m(t),[r]):m(t)}),[])},k=function(t){var r=t.reduce((function(t,r){if(-1!==r.indexOf("/")){var e=g(r.split("/"),2),n=e[0],u=e[1];return[].concat(m(t),[n,u])}return[].concat(m(t),[r])}),[]).sort();return[r[0],r[r.length-1]]},x=function(t,r,e){var n=y()(t);return("add"===e?n.add(r,"seconds"):n.subtract(r,"seconds")).toISOString()}}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/31256.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/31256.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/31256.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/31256.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/31391.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/31391.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/31391.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/31391.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/31476.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/31476.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/31476.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/31476.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/31643.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/31643.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/31643.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/31643.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/3177.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/3177.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/3177.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/3177.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/31818.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/31818.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/31818.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/31818.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/31893.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/31893.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/31893.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/31893.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/31996.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/31996.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/31996.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/31996.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/32030.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/32030.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/32030.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/32030.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/32385.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/32385.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/32385.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/32385.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/32424.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/32424.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/32424.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/32424.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/32475.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/32475.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/32475.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/32475.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/32540.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/32540.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/32540.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/32540.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/32637.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/32637.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/32637.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/32637.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/32857.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/32857.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/32857.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/32857.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/32899.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/32899.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/32899.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/32899.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/33026.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/33026.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/33026.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/33026.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/33122.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/33122.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/33122.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/33122.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/33160.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/33160.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/33160.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/33160.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/33303.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/33303.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/33303.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/33303.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/33373.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/33373.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/33373.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/33373.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/33387.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/33387.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/33387.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/33387.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/33483.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/33483.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/33483.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/33483.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/33745.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/33745.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/33745.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/33745.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/33773.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/33773.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/33773.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/33773.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/33841.018dc26183efb561a8b1.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/33841.018dc26183efb561a8b1.chunk.js new file mode 100644 index 0000000000..be9649eea0 --- /dev/null +++ b/geonode_mapstore_client/static/mapstore/dist/js/33841.018dc26183efb561a8b1.chunk.js @@ -0,0 +1 @@ +(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[33841],{233841:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>A});var n=t(124852),o=t.n(n),a=t(929656),i=(t(672632),t(203256),t(462193),t(796876),t(854086),t(799715),t(729589),t(121994),t(232095),t(164020),t(316179),t(471707),t(304631)),l=t.n(i),u=t(410240),s=t.n(u),c=t(92742),p=t.n(c);function f(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function d(e){for(var r=1;re.length)&&(r=e.length);for(var t=0,n=new Array(r);t1&&void 0!==arguments[1]?arguments[1]:{},a=r.indentUnit,i=o.propertyKeywords&&o||e.resolveMode("text/geocss"),l=i.propertyKeywords,u=void 0===l?{}:l,c=i.colorKeywords,f=void 0===c?{}:c,d=i.valueKeywords,m=void 0===d?{}:d,y=i.logicKeywords,g=void 0===y?{}:y,h=i.allowNested,v={},k=function(e,r){return t=r,e},w=function(e,r){for(var t=!1,n=e.next();n;){if(t&&"/"===n){r.tokenize=null;break}t="*"===n,n=e.next()}return["comment","comment"]},O=function(e,r){var t,n=e.next();if("@"===n)return e.eat("{")?[null,"interpolation"]:e.match(/^(sd|scale)\b/)?["filter",null]:(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]);if("/"===n)return e.eat("*")?(r.tokenize=w,w(e,r)):["operator","operator"];if('"'===n||"'"===n)return r.tokenize=(t=n,function(e,r){for(var n=!1,o=e.next();o;){if(o===t&&!n){")"===t&&e.backUp(1);break}n=!n&&"\\"===o,o=e.next()}return(o===t||!n&&")"!==t)&&(r.tokenize=null),k("string","string")}),r.tokenize(e,r);if("#"===n)return e.eatWhile(/[\w\\\-]/),k("atom","hash");if(/\d/.test(n)||"."===n&&e.eat(/\d/))return e.eatWhile(/[\w.%]/),k("number","unit");if("-"===n){if(/[\d.]/.test(e.peek()))return e.eatWhile(/[\w.%]/),k("number","unit");if(e.match(/^-[\w\\\-]+/))return e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?k("variable-2","variable-definition"):k("variable-2","variable");if(e.match(/^\w+-/))return k("meta","meta")}else{if(/[,+>*\/]/.test(n))return k(null,"select-op");if("."===n&&e.match(/^-?[_a-z][_a-z0-9-]*/i))return k("qualifier","qualifier");if(/[:;{}\[\]\(\)]/.test(n))return k(null,n);if(/[\w\\\-]/.test(n))return e.eatWhile(/[\w\\\-]/),k("property","word")}return k(null,null)};function j(e,r,t){this.type=e,this.indent=r,this.prev=t}var x=function(e,r,t,n){return e.context=new j(t,r.indentation()+(!1===n?0:a),e.context),t},P=function(e){return e.context.prev&&(e.context=e.context.prev),e.context.type},S=function(e,r,t){return v[t.context.type](e,r,t)},z=function(e,r,t,n){for(var o=n||1;o>0;o--)t.context=t.context.prev;return S(e,r,t)},A=function(e){var r=e.current().toLowerCase();n=m.hasOwnProperty(r)?"atom":f.hasOwnProperty(r)?"keyword":"variable"};return v.top=function(e,r,t){if("{"===e)return x(t,r,"block");if("}"===e&&t.context.prev)return P(t);if("hash"===e)n="builtin";else if("word"===e)n="tag";else{if("variable-definition"===e)return"maybeprop";if("interpolation"===e)return x(t,r,"interpolation");if(":"===e)return"pseudo";if(h&&"("===e)return x(t,r,"parens")}return t.context.type},v.block=function(e,r,t){if("word"===e){var o=r.current().toLowerCase();return u.hasOwnProperty(o)?(n="property","maybeprop"):g.hasOwnProperty(p()(o))?(n="logic","maybeprop"):s()(p()(r.string),"[")?(n="filter","maybeprop"):(n+=" error","maybeprop")}return"meta"===e?"block":h||"hash"!==e&&"qualifier"!==e?v.top(e,r,t):(n="error","block")},v.maybeprop=function(e,r,t){return":"===e?x(t,r,"prop"):S(e,r,t)},v.prop=function(e,r,t){if(";"===e)return P(t);if("{"===e&&h)return x(t,r,"propBlock");if("}"===e||"{"===e)return z(e,r,t);if("("===e)return x(t,r,"parens");if("hash"!==e||/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(r.current())){if("word"===e)A(r);else if("interpolation"===e)return x(t,r,"interpolation")}else n+=" error";return"prop"},v.propBlock=function(e,r,t){return"}"===e?P(t):"word"===e?(n="property","maybeprop"):t.context.type},v.parens=function(e,r,t){return"{"===e||"}"===e?z(e,r,t):")"===e?P(t):"("===e?x(t,r,"parens"):"interpolation"===e?x(t,r,"interpolation"):("word"===e&&A(r),"parens")},v.pseudo=function(e,r,o){return"word"===e?(n="variable-3",o.context.type):S(t,r,o)},v.at=function(e,r,t){return";"===e?P(t):"{"===e||"}"===e?z(e,r,t):("word"===e?n="tag":"hash"===e&&(n="builtin"),"at")},v.interpolation=function(e,r,t){return"}"===e?P(t):"{"===e||";"===e?z(e,r,t):("word"===e?n="variable":"variable"!==e&&"("!==e&&")"!==e&&(n="error"),"interpolation")},{startState:function(e){return{tokenize:null,state:"top",stateArg:null,context:new j("block",e||0,null)}},token:function(e,r){if(!r.tokenize&&e.eatSpace())return null;var o=(r.tokenize||O)(e,r);return o&&"object"===b(o)&&(t=o[1],o=o[0]),n=o,r.state=v[r.state](t,e,r),n},indent:function(e,r){var t=e.context,n=r&&r.charAt(0),o=t.indent;return"prop"!==t.type||"}"!==n&&")"!==n||(t=t.prev),t.prev&&("}"!==n||"block"!==t.type&&"top"!==t.type&&"interpolation"!==t.type?(")"===n&&"parens"===t.type||"{"===n&&("at"===t.type||"atBlock"===t.type))&&(o=Math.max(0,t.indent-a),t=t.prev):o=(t=t.prev).indent),o},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",fold:"brace"}}));var r={colorKeywords:["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],valueKeywords:["round"],pseudoProperties:["mark","shield","stroke","fill","symbol","nth-mark","nth-shield","nth-stroke","nth-fill","nth-symbol"],logicKeywords:["and","or"]};e.defineMIME("text/geocss",d(d({},Object.keys(r).reduce((function(e,t){return d(d({},e),{},m({},t,r[t].reduce((function(e,r){return d(d({},e),{},m({},r,!0))}),{})))}),{})),{},{propertyKeywords:{mark:{values:{"symbol(circle)":!0}},"mark-composite":!0,"mark-mime":!0,"mark-geometry":!0,"mark-size":!0,"mark-rotation":!0,"mark-label-obstacle":!0,"mark-anchor":!0,"mark-offset":!0,"z-index":!0,stroke:!0,"stroke-composite":!0,"stroke-geometry":!0,"stroke-offset":!0,"stroke-mime":!0,"stroke-opacity":!0,"stroke-width":!0,"stroke-size":!0,"stroke-rotation":!0,"stroke-linecap":!0,"stroke-linejoin":!0,"stroke-dasharray":!0,"stroke-dashoffset":!0,"stroke-repeat":!0,"stroke-label-obstacle":!0,fill:!0,"fill-composite":!0,"fill-geometry":!0,"fill-mime":!0,"fill-opacity":!0,"fill-size":!0,"fill-rotation":!0,"fill-label-obstacle":!0,"graphic-margin":!0,random:!0,"random-seed":!0,"random-rotation":!0,"random-symbol-count":!0,"random-tile-size":!0,"fill-random":!0,"fill-random-seed":!0,"fill-random-rotation":!0,"fill-random-symbol-count":!0,"fill-random-tile-size":!0,label:!0,"label-geometry":!0,"label-anchor":!0,"label-offset":!0,"label-rotation":!0,"label-z-index":!0,shield:!0,"shield-mime":!0,"font-family":!0,"font-fill":!0,"font-style":!0,"font-weight":!0,"font-size":!0,"halo-radius":!0,"halo-color":!0,"halo-opacity":!0,"label-padding":!0,"label-group":!0,"label-max-displacement":!0,"label-min-group-distance":!0,"label-repeat":!0,"label-all-group":!0,"label-remove-overlaps":!0,"label-allow-overruns":!0,"label-follow-line":!0,"label-max-angle-delta":!0,"label-auto-wrap":!0,"label-force-ltr":!0,"label-conflict-resolution":!0,"label-fit-goodness":!0,"label-priority":!0,"shield-resize":!0,"shield-margin":!0,"label-underline-text":!0,"label-strikethrough-text":!0,"label-char-spacing":!0,"label-word-spacing":!0,"raster-channels":!0,"raster-composite":!0,"raster-geometry":!0,"raster-opacity":!0,"raster-contrast-enhancement":!0,"raster-contrast-enhancement-algorithm":!0,"raster-contrast-enhancement-min":!0,"raster-contrast-enhancement-max":!0,"raster-gamma":!0,"raster-z-index":!0,"raster-color-map":!0,"raster-color-map-type":!0,composite:!0,"composite-base":!0,geometry:!0,"sort-by":!0,"sort-by-group":!0,transform:!0,size:!0,rotation:!0},envKeywords:{sd:{localPart:"env"},scale:{localPart:"env"}},allowNested:!0,name:"geocss"}))}(l()),j=l(),x=j.Pos,j.registerHelper("hint","geocss",(function(e){var r=e.getCursor(),t=e.getTokenAt(r),n=e.getLineTokens(r.line),o=n&&g()(n.filter((function(e){var r=e.type,n=e.start;return"property"===r&&n0?{list:h.map((function(e){return{text:e,displayText:e,render:function(e,r,t){var n,o,a=document.createElement("span"),i=(o=(n=m[t.displayText]||{}).localType,("gml"===n.prefix?"geometry":P[o])||o||"");a.innerHTML=i&&'{'.concat(i,"} ")||"";var l=document.createElement("span");l.innerText=t.displayText,e.appendChild(a),e.appendChild(l)}}})),from:x(r.line,i),to:x(r.line,l)}:null}));const A=(0,n.forwardRef)((function(e,r){var t=e.editorDidMount,n=void 0===t?function(){}:t,i=function(e,r){if(null==e)return{};var t,n,o=function(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}(e,S);return o().createElement(a.Controlled,z({ref:r},i,{editorDidMount:function(){for(var e=arguments.length,r=new Array(e),t=0;t{"use strict";t.r(r),t.d(r,{default:()=>M});var n=t(124852),o=t.n(n),a=t(929656),i=(t(672632),t(203256),t(462193),t(796876),t(854086),t(799715),t(729589),t(121994),t(232095),t(164020),t(316179),t(471707),t(304631)),l=t.n(i),u=t(410240),s=t.n(u),c=t(92742),p=t.n(c);function f(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function d(e){for(var r=1;re.length)&&(r=e.length);for(var t=0,n=new Array(r);t1&&void 0!==arguments[1]?arguments[1]:{},a=r.indentUnit,i=o.propertyKeywords&&o||e.resolveMode("text/geocss"),l=i.propertyKeywords,u=void 0===l?{}:l,c=i.colorKeywords,f=void 0===c?{}:c,d=i.valueKeywords,m=void 0===d?{}:d,y=i.logicKeywords,g=void 0===y?{}:y,h=i.allowNested,v={},k=function(e,r){return t=r,e},w=function(e,r){for(var t=!1,n=e.next();n;){if(t&&"/"===n){r.tokenize=null;break}t="*"===n,n=e.next()}return["comment","comment"]},O=function(e,r){var t,n=e.next();if("@"===n)return e.eat("{")?[null,"interpolation"]:e.match(/^(sd|scale)\b/)?["filter",null]:(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]);if("/"===n)return e.eat("*")?(r.tokenize=w,w(e,r)):["operator","operator"];if('"'===n||"'"===n)return r.tokenize=(t=n,function(e,r){for(var n=!1,o=e.next();o;){if(o===t&&!n){")"===t&&e.backUp(1);break}n=!n&&"\\"===o,o=e.next()}return(o===t||!n&&")"!==t)&&(r.tokenize=null),k("string","string")}),r.tokenize(e,r);if("#"===n)return e.eatWhile(/[\w\\\-]/),k("atom","hash");if(/\d/.test(n)||"."===n&&e.eat(/\d/))return e.eatWhile(/[\w.%]/),k("number","unit");if("-"===n){if(/[\d.]/.test(e.peek()))return e.eatWhile(/[\w.%]/),k("number","unit");if(e.match(/^-[\w\\\-]+/))return e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?k("variable-2","variable-definition"):k("variable-2","variable");if(e.match(/^\w+-/))return k("meta","meta")}else{if(/[,+>*\/]/.test(n))return k(null,"select-op");if("."===n&&e.match(/^-?[_a-z][_a-z0-9-]*/i))return k("qualifier","qualifier");if(/[:;{}\[\]\(\)]/.test(n))return k(null,n);if(/[\w\\\-]/.test(n))return e.eatWhile(/[\w\\\-]/),k("property","word")}return k(null,null)};function j(e,r,t){this.type=e,this.indent=r,this.prev=t}var x=function(e,r,t,n){return e.context=new j(t,r.indentation()+(!1===n?0:a),e.context),t},P=function(e){return e.context.prev&&(e.context=e.context.prev),e.context.type},S=function(e,r,t){return v[t.context.type](e,r,t)},z=function(e,r,t,n){for(var o=n||1;o>0;o--)t.context=t.context.prev;return S(e,r,t)},A=function(e){var r=e.current().toLowerCase();n=m.hasOwnProperty(r)?"atom":f.hasOwnProperty(r)?"keyword":"variable"};return v.top=function(e,r,t){if("{"===e)return x(t,r,"block");if("}"===e&&t.context.prev)return P(t);if("hash"===e)n="builtin";else if("word"===e)n="tag";else{if("variable-definition"===e)return"maybeprop";if("interpolation"===e)return x(t,r,"interpolation");if(":"===e)return"pseudo";if(h&&"("===e)return x(t,r,"parens")}return t.context.type},v.block=function(e,r,t){if("word"===e){var o=r.current().toLowerCase();return u.hasOwnProperty(o)?(n="property","maybeprop"):g.hasOwnProperty(p()(o))?(n="logic","maybeprop"):s()(p()(r.string),"[")?(n="filter","maybeprop"):(n+=" error","maybeprop")}return"meta"===e?"block":h||"hash"!==e&&"qualifier"!==e?v.top(e,r,t):(n="error","block")},v.maybeprop=function(e,r,t){return":"===e?x(t,r,"prop"):S(e,r,t)},v.prop=function(e,r,t){if(";"===e)return P(t);if("{"===e&&h)return x(t,r,"propBlock");if("}"===e||"{"===e)return z(e,r,t);if("("===e)return x(t,r,"parens");if("hash"!==e||/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(r.current())){if("word"===e)A(r);else if("interpolation"===e)return x(t,r,"interpolation")}else n+=" error";return"prop"},v.propBlock=function(e,r,t){return"}"===e?P(t):"word"===e?(n="property","maybeprop"):t.context.type},v.parens=function(e,r,t){return"{"===e||"}"===e?z(e,r,t):")"===e?P(t):"("===e?x(t,r,"parens"):"interpolation"===e?x(t,r,"interpolation"):("word"===e&&A(r),"parens")},v.pseudo=function(e,r,o){return"word"===e?(n="variable-3",o.context.type):S(t,r,o)},v.at=function(e,r,t){return";"===e?P(t):"{"===e||"}"===e?z(e,r,t):("word"===e?n="tag":"hash"===e&&(n="builtin"),"at")},v.interpolation=function(e,r,t){return"}"===e?P(t):"{"===e||";"===e?z(e,r,t):("word"===e?n="variable":"variable"!==e&&"("!==e&&")"!==e&&(n="error"),"interpolation")},{startState:function(e){return{tokenize:null,state:"top",stateArg:null,context:new j("block",e||0,null)}},token:function(e,r){if(!r.tokenize&&e.eatSpace())return null;var o=(r.tokenize||O)(e,r);return o&&"object"===b(o)&&(t=o[1],o=o[0]),n=o,r.state=v[r.state](t,e,r),n},indent:function(e,r){var t=e.context,n=r&&r.charAt(0),o=t.indent;return"prop"!==t.type||"}"!==n&&")"!==n||(t=t.prev),t.prev&&("}"!==n||"block"!==t.type&&"top"!==t.type&&"interpolation"!==t.type?(")"===n&&"parens"===t.type||"{"===n&&("at"===t.type||"atBlock"===t.type))&&(o=Math.max(0,t.indent-a),t=t.prev):o=(t=t.prev).indent),o},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",fold:"brace"}}));var r={colorKeywords:["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],valueKeywords:["round"],pseudoProperties:["mark","shield","stroke","fill","symbol","nth-mark","nth-shield","nth-stroke","nth-fill","nth-symbol"],logicKeywords:["and","or"]};e.defineMIME("text/geocss",d(d({},Object.keys(r).reduce((function(e,t){return d(d({},e),{},m({},t,r[t].reduce((function(e,r){return d(d({},e),{},m({},r,!0))}),{})))}),{})),{},{propertyKeywords:{mark:{values:{"symbol(circle)":!0}},"mark-composite":!0,"mark-mime":!0,"mark-geometry":!0,"mark-size":!0,"mark-rotation":!0,"mark-label-obstacle":!0,"mark-anchor":!0,"mark-offset":!0,"z-index":!0,stroke:!0,"stroke-composite":!0,"stroke-geometry":!0,"stroke-offset":!0,"stroke-mime":!0,"stroke-opacity":!0,"stroke-width":!0,"stroke-size":!0,"stroke-rotation":!0,"stroke-linecap":!0,"stroke-linejoin":!0,"stroke-dasharray":!0,"stroke-dashoffset":!0,"stroke-repeat":!0,"stroke-label-obstacle":!0,fill:!0,"fill-composite":!0,"fill-geometry":!0,"fill-mime":!0,"fill-opacity":!0,"fill-size":!0,"fill-rotation":!0,"fill-label-obstacle":!0,"graphic-margin":!0,random:!0,"random-seed":!0,"random-rotation":!0,"random-symbol-count":!0,"random-tile-size":!0,"fill-random":!0,"fill-random-seed":!0,"fill-random-rotation":!0,"fill-random-symbol-count":!0,"fill-random-tile-size":!0,label:!0,"label-geometry":!0,"label-anchor":!0,"label-offset":!0,"label-rotation":!0,"label-z-index":!0,shield:!0,"shield-mime":!0,"font-family":!0,"font-fill":!0,"font-style":!0,"font-weight":!0,"font-size":!0,"halo-radius":!0,"halo-color":!0,"halo-opacity":!0,"label-padding":!0,"label-group":!0,"label-max-displacement":!0,"label-min-group-distance":!0,"label-repeat":!0,"label-all-group":!0,"label-remove-overlaps":!0,"label-allow-overruns":!0,"label-follow-line":!0,"label-max-angle-delta":!0,"label-auto-wrap":!0,"label-force-ltr":!0,"label-conflict-resolution":!0,"label-fit-goodness":!0,"label-priority":!0,"shield-resize":!0,"shield-margin":!0,"label-underline-text":!0,"label-strikethrough-text":!0,"label-char-spacing":!0,"label-word-spacing":!0,"raster-channels":!0,"raster-composite":!0,"raster-geometry":!0,"raster-opacity":!0,"raster-contrast-enhancement":!0,"raster-contrast-enhancement-algorithm":!0,"raster-contrast-enhancement-min":!0,"raster-contrast-enhancement-max":!0,"raster-gamma":!0,"raster-z-index":!0,"raster-color-map":!0,"raster-color-map-type":!0,composite:!0,"composite-base":!0,geometry:!0,"sort-by":!0,"sort-by-group":!0,transform:!0,size:!0,rotation:!0},envKeywords:{sd:{localPart:"env"},scale:{localPart:"env"}},allowNested:!0,name:"geocss"}))}(l()),x=l(),P=x.Pos,x.registerHelper("hint","geocss",(function(e){var r=e.getCursor(),t=e.getTokenAt(r),n=e.getLineTokens(r.line),o=n&&g()(n.filter((function(e){var r=e.type,n=e.start;return"property"===r&&n0?{list:h.map((function(e){return{text:e,displayText:e,render:function(e,r,t){var n,o,a=document.createElement("span"),i=(o=(n=m[t.displayText]||{}).localType,("gml"===n.prefix?"geometry":S[o])||o||"");a.innerHTML=i&&'{'.concat(i,"} ")||"";var l=document.createElement("span");l.innerText=t.displayText,e.appendChild(a),e.appendChild(l)}}})),from:P(r.line,i),to:P(r.line,l)}:null}));const M=(0,n.forwardRef)((function(e,r){var t=e.editorDidMount,n=void 0===t?function(){}:t,i=function(e,r){if(null==e)return{};var t,n,o=function(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}(e,z);return o().createElement(a.Controlled,A({ref:r},i,{editorDidMount:function(){for(var e=arguments.length,r=new Array(e),t=0;t{"use strict";o.r(e),o.d(e,{default:()=>_});var r=o(845243),n=o.n(r),i=(o(880687),o(642122),o(932818),o(823493)),s=o.n(i),a=o(414293),l=o.n(a),c=o(199405),u=o(611847);function p(t){return p="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},p(t)}function f(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,r)}return o}function h(t){for(var e=1;e")}},_setClasses:function(t){return this._map.fire("locatestatus",{state:t}),t},_updateContainerStyle:function(){this._isFollowing()?this._setClasses("following"):this._active&&this._setClasses("active")},_cleanClasses:function(){return null},setStrings:function(t){this.options.strings=h(h({},this.options.strings),t)},removeMarker:function(){this._marker&&this._map.removeLayer(this._marker)},setFollowMarkerStyle:function(t,e,o){var r="#2A93EE";this.removeMarker();var i={icon:n().divIcon({className:"div-heading-icon",opacity:1,iconSize:70,fillOpacity:1,html:!l()(e)&&o>this.options.locateOptions.speedThreshold?(0,c.w)({color:r,strokeWidth:2}):(0,c.B)({color:r,strokeWidth:2})}),rotationOrigin:"center center"};this._marker=n().marker(t,h(h({},i),{},{rotationAngle:e})).addTo(this._layer)}});const y=n().Control.MSLocate;function m(t){return m="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},m(t)}function v(t,e){for(var o=0;o{"use strict";o.d(e,{w:()=>n,B:()=>i});var r=8;function n(t){var e=t.color,o=void 0===e?"#2A93EE":e,n=t.svgAttributes,i=t.strokeWidth,s=void 0===i?r:i;return'\n\t\t\n \n \n \n \n \n \n \n \n \n ')}function i(t){var e=t.color,o=void 0===e?"#2A93EE":e,n=t.svgAttributes,i=t.strokeWidth,s=void 0===i?r:i;return'\n\t\t\n \n \n \n \n \n \n ')}},611847:(t,e,o)=>{"use strict";o.d(e,{ij:()=>d,w0:()=>g,vl:()=>b,K2:()=>w,Nw:()=>O});var r=o(472500),n=o.n(r),i=o(701469),s=o.n(i),a=o(747037),l=o.n(a),c=o(618446),u=o.n(c),p=o(189734),f=o.n(p),h=o(313311),y=o.n(h),m=o(964210);function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,r=new Array(e);o0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(t===e)return!0;if(!t&&!e)return!0;var o=t?t.split("&").filter((function(t){return!!t})):[],r=e?e.split("&").filter((function(t){return!!t})):[];return u()(f()(o),f()(r))}(i.query,a.query);return h&&m&&y&&v&&g},b=function(t){return m.Qc(t)},w=function(t){return new RegExp(arguments.length>1&&void 0!==arguments[1]?arguments[1]:/^(http(s{0,1}):\/\/)+?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$/).test(t)},O=function(t,e){var o=new RegExp(arguments.length>2&&void 0!==arguments[2]?arguments[2]:/^(http(s{0,1}):\/\/)+?[\w.\-{}]+(?:\.[\w\.-]+)+[\w\-\._~\/\;\.\%\:\&\=\?{}]+$/).test(t);if(!o)return!1;if(o&&!e)return!0;if(o&&e){var r=/\{(.*?)\}/.test(t);return 0===e.filter((function(t){return y()(r,t)})).length}return!1}}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/33965.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/33965.affd309bf2aa3f38d3a0.chunk.js deleted file mode 100644 index 9b31db0008..0000000000 --- a/geonode_mapstore_client/static/mapstore/dist/js/33965.affd309bf2aa3f38d3a0.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[33965],{133965:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>S});var r=o(845243),n=o.n(r),i=(o(880687),o(642122),o(932818),o(823493)),s=o.n(i),a=o(414293),c=o.n(a),l=o(199405),u=o(611847);function p(t){return p="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},p(t)}function f(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,r)}return o}function h(t){for(var e=1;e")}},_setClasses:function(t){return this._map.fire("locatestatus",{state:t}),t},_updateContainerStyle:function(){this._isFollowing()?this._setClasses("following"):this._active&&this._setClasses("active")},_cleanClasses:function(){return null},setStrings:function(t){this.options.strings=h(h({},this.options.strings),t)},removeMarker:function(){this._marker&&this._map.removeLayer(this._marker)},setFollowMarkerStyle:function(t,e,o){var r="#2A93EE";this.removeMarker();var i={icon:n().divIcon({className:"div-heading-icon",opacity:1,iconSize:70,fillOpacity:1,html:!c()(e)&&o>this.options.locateOptions.speedThreshold?(0,l.w)({color:r,strokeWidth:2}):(0,l.B)({color:r,strokeWidth:2})}),rotationOrigin:"center center"};this._marker=n().marker(t,h(h({},i),{},{rotationAngle:e})).addTo(this._layer)}});const m=n().Control.MSLocate;function d(t){return d="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},d(t)}function v(t,e){for(var o=0;o{"use strict";o.d(e,{w:()=>n,B:()=>i});var r=8;function n(t){var e=t.color,o=void 0===e?"#2A93EE":e,n=t.svgAttributes,i=t.strokeWidth,s=void 0===i?r:i;return'\n\t\t\n \n \n \n \n \n \n \n \n \n ')}function i(t){var e=t.color,o=void 0===e?"#2A93EE":e,n=t.svgAttributes,i=t.strokeWidth,s=void 0===i?r:i;return'\n\t\t\n \n \n \n \n \n \n ')}},611847:(t,e,o)=>{"use strict";o.d(e,{ij:()=>v,w0:()=>g,vl:()=>b,K2:()=>w,Nw:()=>O});var r=o(472500),n=o.n(r),i=o(701469),s=o.n(i),a=o(747037),c=o.n(a),l=o(618446),u=o.n(l),p=o(189734),f=o.n(p),h=o(313311),y=o.n(h),m=o(964210);function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,r=new Array(e);o0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(t===e)return!0;if(!t&&!e)return!0;var o=t?t.split("&").filter((function(t){return!!t})):[],r=e?e.split("&").filter((function(t){return!!t})):[];return u()(f()(o),f()(r))}(i.query,a.query);return h&&m&&y&&d&&g},b=function(t){return m.Qc(t)},w=function(t){return new RegExp(arguments.length>1&&void 0!==arguments[1]?arguments[1]:/^(http(s{0,1}):\/\/)+?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$/).test(t)},O=function(t,e){var o=new RegExp(arguments.length>2&&void 0!==arguments[2]?arguments[2]:/^(http(s{0,1}):\/\/)+?[\w.\-{}]+(?:\.[\w\.-]+)+[\w\-\._~\/\;\.\%\:\&\=\?{}]+$/).test(t);if(!o)return!1;if(o&&!e)return!0;if(o&&e){var r=/\{(.*?)\}/.test(t);return 0===e.filter((function(t){return y()(r,t)})).length}return!1}}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/34001.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/34001.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/34001.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/34001.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/34049.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/34049.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/34049.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/34049.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/34096.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/34096.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/34096.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/34096.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/34099.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/34099.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/34099.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/34099.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/34134.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/34134.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/34134.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/34134.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/34188.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/34188.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/34188.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/34188.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/34256.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/34256.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/34256.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/34256.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/34319.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/34319.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/34319.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/34319.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/34344.018dc26183efb561a8b1.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/34344.018dc26183efb561a8b1.chunk.js new file mode 100644 index 0000000000..5e7b60c3e4 --- /dev/null +++ b/geonode_mapstore_client/static/mapstore/dist/js/34344.018dc26183efb561a8b1.chunk.js @@ -0,0 +1 @@ +(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[34344,45992],{45992:(t,r,e)=>{"use strict";e.d(r,{h:()=>p,Z:()=>s});var o=e(535937),n=e.n(o),i=e(836882),u=e(737275);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function a(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,o)}return e}function l(t){for(var r=1;r{"use strict";e.d(r,{h:()=>s,Z:()=>f});var o=e(535937),n=e.n(o),i=e(836882),u=e(737275);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function a(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,o)}return e}function l(t){for(var r=1;r{"use strict";var n=r(608010),o=r(438225),i=r(255892),a=function e(t,r){t.getSource&&"error"===t.getSource().getState()&&r.onError&&r.onError(t),t.getSource&&"loading"===t.getSource().getState()&&setTimeout(e.bind(null,t,r),1e3)};n.default.registerType("bing",{create:function(e){var t=e.apiKey,r=e.maxNativeZoom||19,n=new o.Z({msId:e.id,preload:1/0,opacity:void 0!==e.opacity?e.opacity:1,zIndex:e.zIndex,visible:e.visibility,minResolution:e.minResolution,maxResolution:e.maxResolution,source:new i.Z({key:t,imagerySet:e.name,maxZoom:r})});return setTimeout(a.bind(null,n,e),1e3),n},update:function(e,t,r){r.minResolution!==t.minResolution&&e.setMinResolution(void 0===t.minResolution?0:t.minResolution),r.maxResolution!==t.maxResolution&&e.setMaxResolution(void 0===t.maxResolution?1/0:t.maxResolution)},isValid:function(e){return!e.getSource||"error"!==e.getSource().getState()}})},573431:(e,t,r)=>{"use strict";var n,o,i=r(608010),a=r(124852),l=r.n(a),s=r(218672),u={},c="ontouchstart"in window,m=c?"touchstart":"mousedown",f=c?"touchmove":"mousemove",y=c?"touchend":"mouseup";function d(){var e,t;return null===(e=window)||void 0===e||null===(t=e.google)||void 0===t?void 0:t.maps}i.default.registerType("google",{create:function(e,t,r){if(document.getElementById(r+"gmaps")){var o=d();if(!o)return null;n||(n={HYBRID:o.MapTypeId.HYBRID,SATELLITE:o.MapTypeId.SATELLITE,ROADMAP:o.MapTypeId.ROADMAP,TERRAIN:o.MapTypeId.TERRAIN}),u[r]||(u[r]=new o.Map(document.getElementById(r+"gmaps"),{disableDefaultUI:!0,keyboardShortcuts:!1,draggable:!1,disableDoubleClickZoom:!0,scrollwheel:!1,streetViewControl:!1,minZoom:e.minZoom,maxZoom:e.maxZoom})),u[r].setMapTypeId(n[e.name]);var i=document.getElementById(r+"gmaps"),a=function(){if(u[r]&&"hidden"!==i.style.visibility){var e=(0,s.vs)(t.getView().getCenter(),"EPSG:3857","EPSG:4326");u[r].setCenter(new o.LatLng(e[1],e[0]))}},l=function(){u[r]&&"hidden"!==i.style.visibility&&u[r].setZoom(t.getView().getZoom())},c=function(){if("hidden"!==i.style.visibility){var e=180*t.getView().getRotation()/Math.PI;i.style.transform="rotate("+e+"deg)",o.event.trigger(u[r],"resize")}},p=function(){var e=t.getView();e.on("change:center",a),e.on("change:resolution",l),e.on("change:rotation",c)};t.on("change:view",p),p(),a(),l();var b=t.getViewport(),v=document.getElementById(r+"gmaps").style.transform,g=!1,h=!1;b.addEventListener(m,(function(){g=!0})),b.addEventListener(y,(function(){h&&g&&function(){var e=document.getElementById(r+"gmaps").style.transform;if(u[r]&&e!==v&&-1!==e.indexOf("rotate")){var n=function(e,t){var r=t[0],n=t[1],o=[[r/2,n/2],[-r/2,n/2],[-r/2,-n/2],[r/2,-n/2]].map((function(t){return r=t,n=e*Math.PI/180,o=r[0],i=r[1],[o*Math.cos(n)-i*Math.sin(n),o*Math.sin(n)+i*Math.cos(n)];var r,n,o,i})),i=o.map((function(e){return e[0]})),a=o.map((function(e){return e[1]})),l=Math.max.apply(null,i),s=Math.min.apply(null,i),u=Math.max.apply(null,a),c=Math.min.apply(null,a),m=Math.abs(u)+Math.abs(c);return{width:Math.abs(l)+Math.abs(s),height:m}}(-parseFloat(e.match(/[\+\-]?\d+\.?\d*/i)[0]),t.getSize());i.style.width=n.width+"px",i.style.height=n.height+"px",i.style.left=Math.round((t.getSize()[0]-n.width)/2)+"px",i.style.top=Math.round((t.getSize()[1]-n.height)/2)+"px",o.event.trigger(u[r],"resize"),a()}}(),v=document.getElementById(r+"gmaps").style.transform,g=!1})),b.addEventListener(f,(function(){h=g}))}return null},render:function(e,t,r){o||(o=e.name);var i={zIndex:0};if(!0===e.visibility){var a=document.getElementById(r+"gmaps");a&&(a.style.visibility="visible"),u[r]&&n&&(u[r].setMapTypeId(n[e.name]),u[r].setTilt(0))}else i.visibility="hidden";if(o===e.name){var s=document.getElementById(r+"gmaps");return s&&(s.style.visibility=e.visibility?"visible":"hidden"),l().createElement("div",{id:r+"gmaps",className:"fill",style:i})}return null},update:function(e,t,r,n,o){if(u[o]){var i=d();if(!r.visibility&&t.visibility){var a=n.getView(),l=(0,s.vs)(a.getCenter(),"EPSG:3857","EPSG:4326");u[o].setCenter(new i.LatLng(l[1],l[0])),u[o].setZoom(a.getZoom())}!r.minZoom&&t.minZoom&&u[o].setOptions({minZoom:t.minZoom}),!r.maxZoom&&t.maxZoom&&u[o].setOptions({maxZoom:t.maxZoom})}},remove:function(e,t,r){o===e.name&&(o=void 0,delete u[r])}})},430189:(e,t,r)=>{"use strict";var n=r(608010),o=r(613002),i=r(421915),a=r(218672),l=r(397208),s=r(898185),u=r(120767),c=r(315565),m=r(831219),f=r(944538),y=r(640353),d=r(752043),p=r(984023),b=r(423923),v=r(303696);function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function S(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.map_=null,this.postcomposeListenerKey_=null,this.gridProjection_=(0,a.U2)(void 0!==t.projection?t.projection:"EPSG:4326"),this.projection_=null,this.maxY_=1/0,this.maxX_=1/0,this.minY_=-1/0,this.minX_=-1/0,this.maxYP_=1/0,this.maxXP_=1/0,this.minYP_=-1/0,this.minXP_=-1/0,this.targetSize_=void 0!==t.targetSize?t.targetSize:100,this.maxLines_=void 0!==t.maxLines?t.maxLines:100,this.meridians_=[],this.parallels_=[],this.strokeStyle_=void 0!==t.strokeStyle?t.strokeStyle:R,this.fromTargetTransform_=void 0,this.toTargetTransform_=void 0,this.projectionCenterTarget_=null,this.meridiansLabels_=null,this.parallelsLabels_=null,this.frameStyle_=null,this.frame_=null,this.frameRatio_=0,!0===t.showFrame&&(this.frameStyle_=void 0!==t.frameStyle?t.frameStyle:P,this.frameRatio_=void 0!==t.frameRatio?t.frameRatio:.1),!0===t.showLabels&&(this.xLabelFormatter_=(0,b.A4)(t.projection||"EPSG:4326",t.xLabelFormatter),this.yLabelFormatter_=(0,b.u3)(t.projection||"EPSG:4326",t.yLabelFormatter),this.xLabelPosition_=void 0===t.xLabelPosition?0:t.xLabelPosition,this.yLabelPosition_=void 0===t.yLabelPosition?1:t.yLabelPosition,this.xLabelStyle_=void 0!==t.xLabelStyle?t.xLabelStyle:O,this.yLabelStyle_=void 0!==t.yLabelStyle?t.yLabelStyle:j,this.meridiansLabels_=[],this.parallelsLabels_=[]),this.intervals_=void 0!==t.intervals?t.intervals:(0,p.bL)(t.projection||"EPSG:4326"),this.setMap(void 0!==t.map?t.map:null)}var t,r;return t=e,(r=[{key:"createGraticule_",value:function(e,t,r,n){var o=(0,p.ZS)(this.intervals_,this.projectionCenterTarget_,this.targetSize_,r,this.fromTargetTransform_),i=(0,p.uI)(o,this.projection_.getCode(),this.gridProjection_.getCode(),[e[0],e[1],e[2],e[3]],[this.minXP_,this.minYP_,this.maxXP_,this.maxYP_],t,n,this.maxLines_,!!this.xLabelFormatter_,this.xLabelFormatter_,this.yLabelFormatter_,this.xLabelPosition_,this.yLabelPosition_,this.frameRatio_,{center:t,resolution:r,interval:o});this.meridians_=i.xLines.map((function(e){return new f.Z(e,v.Z.XY)})),this.parallels_=i.yLines.map((function(e){return new f.Z(e,v.Z.XY)})),this.meridiansLabels_=i.xLabels.map((function(e){return S(S({},e),{},{geom:new d.Z(e.geom)})})),this.parallelsLabels_=i.yLabels.map((function(e){return S(S({},e),{},{geom:new d.Z(e.geom)})})),this.frame_=i.frame?new y.ZP([i.frame.exterior,i.frame.interior],v.Z.XY):null}},{key:"getMap",value:function(){return this.map_}},{key:"getMeridians",value:function(){return this.meridians_}},{key:"getParallels",value:function(){return this.parallels_}},{key:"handlePostCompose_",value:function(e){var t,r,n,o,i=e.vectorContext,l=e.frameState,s=l.extent,u=l.viewState,c=u.center,m=u.projection,f=u.resolution,y=l.pixelRatio,d=f*f/(4*y*y);for((!this.projection_||!(0,a.OP)(this.projection_,m))&&this.updateProjectionInfo_(m),this.createGraticule_(s,c,f,d),i.setFillStrokeStyle(null,this.strokeStyle_),t=0,r=this.meridians_.length;t{"use strict";r(608010).default.registerType("mapquest",{create:function(e){return e.onError(),!1},isValid:function(){return!1}})},739075:(e,t,r)=>{"use strict";var n=r(608010),o=r(751635),i=r(438225);n.default.registerType("osm",{create:function(e){return new i.Z({msId:e.id,opacity:void 0!==e.opacity?e.opacity:1,visible:e.visibility,zIndex:e.zIndex,source:new o.Z,minResolution:e.minResolution,maxResolution:e.maxResolution})},update:function(e,t,r){r.minResolution!==t.minResolution&&e.setMinResolution(void 0===t.minResolution?0:t.minResolution),r.maxResolution!==t.maxResolution&&e.setMaxResolution(void 0===t.maxResolution?1/0:t.maxResolution)}})},123281:(e,t,r)=>{"use strict";var n=r(608010),o=r(798143),i=r.n(o),a=r(193409),l=function e(t){if(0!==t.length)for(var r=0;r{"use strict";var n=r(227361),o=r.n(n),i=r(608010),a=r(836365),l=r(408930),s=r(438225);i.default.registerType("tms",{create:function(e){return new s.Z(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=o()(e,"bbox.bounds",{}),r=t.minx,n=t.miny,i=t.maxx,s=t.maxy,u={projection:e.srs,url:"".concat(e.tileMapUrl,"/{z}/{x}/{-y}.").concat(e.extension),attributions:e.attribution?[e.attribution]:[]},c=new a.Z(u),m=c.getTileGrid();if(e.forceDefaultTileGrid){var f=m.getExtent(),y=[f[0],f[1]],d=new l.Z({origin:y,extent:e.bbox&&[r,n,i,s],resolutions:m.getResolutions(),tileSize:e.tileSize});c.setTileGridForProjection(e.srs,d),"EPSG:3857"===e.srs&&c.setTileGridForProjection("EPSG:900913",d)}else e.tileSets&&c.setTileGridForProjection(e.srs,new l.Z({origin:e.origin,extent:e.bbox&&[r,n,i,s],resolutions:e.tileSets.map((function(e){return e.resolution})),tileSize:e.tileSize}));return{msId:e.id,extent:e.bbox&&[r,n,i,s],opacity:void 0!==e.opacity?e.opacity:1,visible:!1!==e.visibility,zIndex:e.zIndex,source:c,minResolution:e.minResolution,maxResolution:e.maxResolution}}(e))},update:function(e,t,r){r.minResolution!==t.minResolution&&e.setMinResolution(void 0===t.minResolution?0:t.minResolution),r.maxResolution!==t.maxResolution&&e.setMaxResolution(void 0===t.maxResolution?1/0:t.maxResolution)}})},586714:(e,t,r)=>{"use strict";var n=r(727418),o=r.n(n),i=r(608010),a=r(45992),l=r(986267),s=r(218056),u=r(836365),c=r(438225);function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r{"use strict";var n=r(608010),o=r(393546),i=r(618446),a=r.n(i),l=r(973410),s=r(429902),u=r(166287);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t{"use strict";var n=r(91175),o=r.n(n),i=r(472500),a=r.n(i),l=r(986267),s=r(552259),u=r(608010),c=r(233044),m=r(218672),f=r(421915),y=r(408930),d=r(251895),p=r(485926),b=r(404780),v=r(333358),g=r(429122);function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function x(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{}).topLeftCorner})).map((function(){var e,t,r=(t=2,function(e){if(Array.isArray(e))return e}(e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[])||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||R(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),n=r[0],o=r[1];return T?[o,n]:[n,o]})),_=h&&h.map((function(e){return[e.tileWidth,e.tileHeight]})),L=e.bbox,I=L?(0,f.Ne)([parseFloat(L.bounds.minx),parseFloat(L.bounds.miny),parseFloat(L.bounds.maxx),parseFloat(L.bounds.maxy)],(0,m.Ck)(L.crs,e.srs)):null,Z=S&&S.lowerCorner&&S.upperCorner?[].concat(w(S.lowerCorner),w(S.upperCorner)):null,M=new y.Z({extent:Z,minZoom:0,origins:E,origin:E?void 0:[20037508.3428,-20037508.3428],resolutions:j,tileSizes:_,tileSize:_?void 0:[256,256]}),z=(e.url||"").replace(/\{tilingSchemeId\}/,u).replace(/\{level\}/,"{z}").replace(/\{row\}/,"{y}").replace(/\{col\}/,"{x}"),C={};(0,c.addAuthenticationParameter)(z,C,e.securityToken);var A=decodeURI(z),k=a().format({query:x({},C)}),F=(0,v.z)(e.format)&&g.y[e.format]||b.Z,G=new p.Z({format:new F({dataProjection:t,layerName:"_layer_"}),tileGrid:M,url:A+k}),D=new d.Z({extent:I,msId:e.id,source:G,visible:!1!==e.visibility,zIndex:e.zIndex,minResolution:e.minResolution,maxResolution:e.maxResolution});return(0,g.b)(e.vectorStyle,D),D};u.default.registerType("wfs3",{create:O,update:function(e,t,r){return r.securityToken!==t.securityToken||r.srs!==t.srs?O(t):(r.minResolution!==t.minResolution&&e.setMinResolution(void 0===t.minResolution?0:t.minResolution),r.maxResolution!==t.maxResolution&&e.setMaxResolution(void 0===t.maxResolution?1/0:t.maxResolution),null)},render:function(){return null}})},873576:(e,t,r)=>{"use strict";var n=r(608010),o=r(393546),i=r(973410),a=r(429902),l=r(169141),s=r(432420),u=r(143378),c=r(838848),m=r(166287);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.crs||r.srs||"EPSG:3857",o=t.crs||t.srs||"EPSG:3857",i=e.getSource();o!==n&&i.forEachFeature((function(e){e.getGeometry().transform(n,o)})),(0,c.Es)(r,t)&&(i.setLoader(p(i,t)),i.clear(),i.refresh()),t.style===r.style&&t.styleName===r.styleName||v(e,t),r.minResolution!==t.minResolution&&e.setMinResolution(void 0===t.minResolution?0:t.minResolution),r.maxResolution!==t.maxResolution&&e.setMaxResolution(void 0===t.maxResolution?1/0:t.maxResolution)},render:function(){return null}})},828437:(e,t,r)=>{"use strict";var n=r(124852),o=r.n(n),i=r(805346),a=r(608010),l=r(414293),s=r.n(l),u=r(618446),c=r.n(u),m=r(393386),f=r.n(m),y=r(701469),d=r.n(y),p=r(727418),b=r.n(p),v=r(375875),g=r.n(v),h=r(986267),S=r(223502),x=r(737275),w=r(143378),R=r(233044),P=r(624262),O=r(552259),j=r(503901),T=r(502305),E=r(392663),_=r(218672),L=r(408930),I=r(438225),Z=r(991587),M=r(485926),z=r(251895),C=r(333358),A=r(429122),k=r(253231);function F(e){return F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},F(e)}function G(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function D(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=(e.maxLengthUrl||(null===(o=(0,x.u8)("miscSettings"))||void 0===o?void 0:o.maxURLLength)||1/0)){var s=function(e){if(Array.isArray(e))return e}(i=n.split("&"))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return U(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?U(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),u=s[0],c=s.slice(1);u=Y(e.forceProxy,u),g().post(u,"&"+c.join("&"),{headers:D({"Content-type":"application/x-www-form-urlencoded;charset=utf-8"},t),responseType:"arraybuffer"}).then((function(e){if(200===e.status){for(var t=new Uint8Array(e.data),r=t.length,n=new Array(r);r--;)n[r]=String.fromCharCode(t[r]);var o=n.join(""),i=e.headers["content-type"];0===i.indexOf("image")&&(a.src="data:"+i+";base64,"+window.btoa(o))}})).catch((function(e){console.error(e)}))}else t?g().get(l,{headers:t,responseType:"blob"}).then((function(e){200===e.status&&e.data?r.getImage().src=URL.createObjectURL(e.data):console.error("Status code: "+e.status)})).catch((function(e){console.error(e)})):a.src=l}};function B(e){var t=(0,w.v)(e),r=b()({},e.baseParams,{LAYERS:e.name,STYLES:e.style||"",FORMAT:e.format||"image/png",TRANSPARENT:void 0===e.transparent||e.transparent,SRS:h.default.normalizeSRS(e.srs||"EPSG:3857",e.allowedSRS),CRS:h.default.normalizeSRS(e.srs||"EPSG:3857",e.allowedSRS),TILED:!e.singleTile&&(!!s()(e.tiled)||e.tiled),VERSION:e.version||"1.3.0"},b()({},e._v_?{_v_:e._v_}:{},t||{},e.localizedLayerStyles&&e.env&&e.env.length&&"background"!==e.group?{ENV:(0,k.h)(e.env)}:{}));return(0,R.addAuthenticationToSLD)(r,e)}function X(e){return e.join(":")}function q(e,t,r){var n=Y(e,r),o=t.getTileCoord();t.getImage().src="",(0,j.qR)(n,o,X(o))}function W(e){try{var t=function(e,t){var r=e.get("map");return e.getSource().getTileGrid().getTileCoordForCoordAndZ(t,r.getView().getZoom())}(this,e),r=this.getSource().getTileGrid().getTileSize(),n=(0,j.yQ)(X(t),function(e,t,r){var n=e.getSource().getTileGrid(),o=n.getTileCoordExtent(r),i=n.getTileSize()/(o[2]-o[0]);return{x:Math.floor((t[0]-o[0])*i),y:Math.floor((o[3]-t[1])*i)}}(this,e,t),r,this.get("nodata"),this.get("littleEndian"));return n.available?n.value:o().createElement(i.Z,{msgId:n.message})}catch(e){return o().createElement(i.Z,{msgId:"elevationLoadingError"})}}var H=function(e){return e&&(0,P.go)(e)||void 0},K=function(e,t){var r=function(e){return e.map((function(e){return e.split("?")[0]}))}(d()(e.url)?e.url:[e.url]),n=B(e)||{};r.forEach((function(t){return(0,R.addAuthenticationParameter)(t,n,e.securityToken)}));var o=(0,R.getAuthenticationHeaders)(r[0],e.securityToken),i=(0,C.z)(e.format);if(e.singleTile&&!i)return new T.Z({msId:e.id,opacity:void 0!==e.opacity?e.opacity:1,visible:!1!==e.visibility,zIndex:e.zIndex,minResolution:e.minResolution,maxResolution:e.maxResolution,source:new E.default({url:r[0],crossOrigin:e.crossOrigin,attributions:H(e.credits),params:n,ratio:e.ratio||1,imageLoadFunction:V(e,o)})});var a,l,s=t&&t.getView()&&t.getView().getProjection()&&t.getView().getProjection().getCode()||"EPSG:3857",u=h.default.normalizeSRS(e.srs||s,e.allowedSRS),c=(0,_.U2)(u).getExtent()||h.default.getExtentForProjection(u).extent,m=function(e,t){return t.useForElevation?b()({},e,{tileLoadFunction:q.bind(null,[t.forceProxy])}):e}({attributions:H(e.credits),urls:r,crossOrigin:e.crossOrigin,params:n,tileGrid:new L.Z({extent:c,resolutions:e.resolutions||O.default.getResolutions(),tileSize:e.tileSize?e.tileSize:256,origin:e.origin?e.origin:[c[0],c[1]]}),tileLoadFunction:V(e,o)},e),f=new Z.default(D({},m)),y={msId:e.id,opacity:void 0!==e.opacity?e.opacity:1,visible:!1!==e.visibility,zIndex:e.zIndex,minResolution:e.minResolution,maxResolution:e.maxResolution};return(a=i?new z.Z(D(D({},y),{},{source:new M.Z(D(D({},m),{},{format:new A.y[e.format]({layerName:"_layer_"}),tileUrlFunction:function(e,t,r){return f.tileUrlFunction(e,t,r)}}))})):new I.Z(D(D({},y),{},{source:f}))).set("map",t),i&&(a.set("wmsSource",f),e.vectorStyle&&(0,A.b)(e.vectorStyle,a)),e.useForElevation&&(a.set("nodata",e.nodata),a.set("littleEndian",null!==(l=e.littleendian)&&void 0!==l&&l),a.set("getElevation",W.bind(a))),a};a.default.registerType("wms",{create:K,update:function(e,t,r,n){var o=(0,C.z)(t.format);if(function(e,t){return e.singleTile!==t.singleTile||e.securityToken!==t.securityToken||e.ratio!==t.ratio||e.credits!==t.credits&&!t.credits||(0,C.z)(e.format)!==(0,C.z)(t.format)||(0,C.z)(e.format)&&(0,C.z)(t.format)&&e.format!==t.format||e.localizedLayerStyles!==t.localizedLayerStyles||e.tileSize!==t.tileSize||e.forceProxy!==t.forceProxy}(r,t))return K(t,n);var i=!1;o&&t.vectorStyle&&!c()(t.vectorStyle,r.vectorStyle||{})&&((0,A.b)(t.vectorStyle,e),i=!0);var a=e.get("wmsSource")||e.getSource(),l=o?e.getSource():null;if(r.srs!==t.srs){var u=h.default.normalizeSRS(t.srs,t.allowedSRS),m=(0,_.U2)(u).getExtent()||h.default.getExtentForProjection(u).extent;if(t.singleTile&&!o)e.setExtent(m);else{var y=new L.Z({extent:m,resolutions:t.resolutions||O.default.getResolutions(),tileSize:t.tileSize?t.tileSize:256,origin:t.origin?t.origin:[m[0],m[1]]});a.tileGrid=y,l&&(l.tileGrid=y)}i=!0}r.credits!==t.credits&&t.credits&&(a.setAttributions(H(t.credits)),i=!0);var d,p,v,g,S=!1;if(r&&a&&a.updateParams&&(r.params&&t.params?S=f()(Object.keys(r.params),Object.keys(t.params)).reduce((function(e,n){return t.params[n]!==r.params[n]||e}),!1):(!r.params&&t.params||r.params&&!t.params)&&(S=!0),d=B(r),p=B(t),S=S||["LAYERS","STYLES","FORMAT","TRANSPARENT","TILED","VERSION","_v_","CQL_FILTER","SLD","VIEWPARAMS"].reduce((function(e,t){return d[t]!==p[t]||e}),!1),i=i||S),r.minResolution!==t.minResolution&&e.setMinResolution(void 0===t.minResolution?0:t.minResolution),r.maxResolution!==t.maxResolution&&e.setMaxResolution(void 0===t.maxResolution?1/0:t.maxResolution),i&&(null==a||null===(v=a.tileCache)||void 0===v||null===(g=v.pruneExceptNewestZ)||void 0===g||g.call(v),l&&(l.clear(),l.refresh()),S)){var x=b()(p,(0,R.addAuthenticationToSLD)((0,w.v)(t)||{},t));a.updateParams(b()(x,Object.keys(d||{}).reduce((function(e,t){return s()(x[t])?b()(e,N({},t,void 0)):e}),{})))}return null}})},707086:(e,t,r)=>{"use strict";var n=r(608010),o=r(984596),i=r.n(o),a=r(91175),l=r.n(a),s=r(610928),u=r.n(s),c=r(233044),m=r(707294),f=r(986267),y=r(552259),d=r(333358),p=r(472500),b=r.n(p),v=r(218672),g=r(421915),h=r(438225),S=r(251895),x=r(92200),w=r(485926),R=r(923241),P=r(404780),O=r(169141),j=r(496476),T=r(393546),E=r(624262);function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}function L(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function I(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{}).TopLeftCorner;return e&&f.default.parseString(e)})).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.x,r=e.y;return L?[r,t]:[t,r]})),z=p&&p.TileMatrix&&p.TileMatrix.map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.MatrixWidth,r=e.MatrixHeight;return[parseInt(t,10),parseInt(r,10)]})),C=p&&p.TileMatrix&&p.TileMatrix.map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.TileWidth,r=e.TileHeight;return[parseInt(t,10),parseInt(r,10)]})),A=e.bbox,k=A?(0,g.Ne)([parseFloat(A.bounds.minx),parseFloat(A.bounds.miny),parseFloat(A.bounds.maxx),parseFloat(A.bounds.maxy)],(0,v.Ck)(A.crs,e.srs)):o.getExtent(),F=(0,g.Ed)(k,o.getExtent());(0,g.xb)(F)&&(F=o.getExtent());var G={};r.forEach((function(t){return(0,c.addAuthenticationParameter)(t,G,e.securityToken)}));var D=b().format({query:I({},G)}),N=e.maxResolution||u()(j.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return _[0]/e*256<.5}))),U=-1!==(e.availableFormats||[]).indexOf(e.format)&&e.format||!e.availableFormats&&e.format||"image/png",Y=(0,d.z)(U),V=I(I({requestEncoding:t,urls:r.map((function(e){return e+D})),layer:e.name,version:e.version||"1.0.0",matrixSet:s},e.credits&&{attributions:(0,E.go)(e.credits)}),{},{format:U,style:e.style||"",tileGrid:new R.Z({origins:M,origin:M?void 0:[20037508.3428,-20037508.3428],resolutions:_,matrixIds:m.Wg((P||m.nn(e)||[]).map((function(e){return e.identifier})),_.length),sizes:z,extent:F,tileSizes:C,tileSize:!C&&(e.tileSize||[256,256])}),wrapX:!0}),B=new x.Z(V),X=new(Y?S.Z:h.Z)({msId:e.id,opacity:void 0!==e.opacity?e.opacity:1,zIndex:e.zIndex,minResolution:e.minResolution,maxResolution:e.maxResolution{"use strict";r.r(t),r.d(t,{default:()=>n});const n={BingLayer:r(447098).default,GoogleLayer:r(573431).default,GraticuleLayer:r(430189).default,MapQuest:r(905348).default,OSMLayer:r(739075).default,OverlayLayer:r(123281).default,TMSLayer:r(960470).default,TileProviderLayer:r(586714).default,VectorLayer:r(437420).default,WFSLayer:r(873576).default,WFS3Layer:r(503690).default,WMSLayer:r(828437).default,WMTSLayer:r(707086).default}},503901:(e,t,r)=>{"use strict";r.d(t,{qR:()=>c,yQ:()=>m});var n=r(375875),o=r.n(n),i=r(581399),a=r.n(i),l=r(882702),s=new(a())(100),u=function(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-9999,i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=n*e+r;try{var l=t.dataView.getInt16(2*a,i);if(l!==o&&32767!==l&&-32768!==l)return l}catch(e){}return null},c=function(e,t,r){return s.has(r)?null:new l.Promise((function(n,i){o().get(e,{responseType:"arraybuffer"}).then((function(e){!function(e,t,r){s.set(r,{data:e,dataView:new DataView(e),coords:t,current:!0,status:"success"})}(e.data,t,r),n()})).catch((function(e){!function(e,t,r){s.set(r,{coords:t,current:!0,status:"error: "+e})}(e.message,t,r),i(e)}))}))},m=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-9999,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=s.get(e);return i&&"success"===i.status?{available:!0,value:u(r,i,t.x,t.y,n,o)}:i&&"loading"===i.status?{available:!1,message:"elevationLoading"}:i&&"error"===i.status?{available:!1,message:"elevationLoadingError"}:{available:!1,message:"elevationNotAvailable"}}},223502:(e,t,r)=>{"use strict";r.d(t,{$:()=>s,b:()=>u});var n=r(737275),o=r(701469),i=r.n(o),a=r(513218),l=r.n(a),s=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(i()(t))return t.reduce((function(t,r){return e(r)&&t}),!0);var o=!1,a=!(0===t.indexOf("http")),s=!a&&t.match(/([^:]*:)\/\/([^:]*:?[^@]*@)?([^:\/\?]*):?([^\/\?]*)/);if(s){var u=window.location;a=s[1]===u.protocol&&s[3]===u.hostname;var c=s[4],m=u.port;(80!==c&&""!==c||"80"!==m&&""!==m)&&(a=a&&c===m)}if(!a){var f=n.ZP.getProxyUrl(r);if(f){var y=[];l()(f)&&(y=f.useCORS||[],f=f.url),y.reduce((function(e,r){return e||0===t.indexOf(r)}),!1)||(o=!0)}}return o},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.ZP.getProxyUrl(e);return t&&l()(t)&&(t=t.url),t}},333358:(e,t,r)=>{"use strict";r.d(t,{z:()=>o});var n=["application/vnd.mapbox-vector-tile","application/json;type=geojson","application/json;type=topojson"],o=function(e){return-1!==n.indexOf(e)}},429122:(e,t,r)=>{"use strict";r.d(t,{y:()=>l,b:()=>s});var n=r(404780),o=r(169141),i=r(496476),a=r(393546),l={"application/vnd.mapbox-vector-tile":n.Z,"application/json;type=geojson":o.Z,"application/json;type=topojson":i.Z},s=function(e,t){(0,a.C2)({asPromise:!0,style:e}).then((function(e){t.setStyle(e)})).catch((function(){}))}}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/3498.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/3498.affd309bf2aa3f38d3a0.chunk.js deleted file mode 100644 index 63d6906edd..0000000000 --- a/geonode_mapstore_client/static/mapstore/dist/js/3498.affd309bf2aa3f38d3a0.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[3498],{447098:(e,t,r)=>{"use strict";var n=r(608010),o=r(438225),i=r(255892),a=function e(t,r){t.getSource&&"error"===t.getSource().getState()&&r.onError&&r.onError(t),t.getSource&&"loading"===t.getSource().getState()&&setTimeout(e.bind(null,t,r),1e3)};n.default.registerType("bing",{create:function(e){var t=e.apiKey,r=e.maxNativeZoom||19,n=new o.Z({msId:e.id,preload:1/0,opacity:void 0!==e.opacity?e.opacity:1,zIndex:e.zIndex,visible:e.visibility,minResolution:e.minResolution,maxResolution:e.maxResolution,source:new i.Z({key:t,imagerySet:e.name,maxZoom:r})});return setTimeout(a.bind(null,n,e),1e3),n},update:function(e,t,r){r.minResolution!==t.minResolution&&e.setMinResolution(void 0===t.minResolution?0:t.minResolution),r.maxResolution!==t.maxResolution&&e.setMaxResolution(void 0===t.maxResolution?1/0:t.maxResolution)},isValid:function(e){return!e.getSource||"error"!==e.getSource().getState()}})},573431:(e,t,r)=>{"use strict";var n,o,i=r(608010),a=r(124852),l=r.n(a),s=r(218672),u={},c="ontouchstart"in window,m=c?"touchstart":"mousedown",f=c?"touchmove":"mousemove",y=c?"touchend":"mouseup";function d(){var e,t;return null===(e=window)||void 0===e||null===(t=e.google)||void 0===t?void 0:t.maps}i.default.registerType("google",{create:function(e,t,r){if(document.getElementById(r+"gmaps")){var o=d();if(!o)return null;n||(n={HYBRID:o.MapTypeId.HYBRID,SATELLITE:o.MapTypeId.SATELLITE,ROADMAP:o.MapTypeId.ROADMAP,TERRAIN:o.MapTypeId.TERRAIN}),u[r]||(u[r]=new o.Map(document.getElementById(r+"gmaps"),{disableDefaultUI:!0,keyboardShortcuts:!1,draggable:!1,disableDoubleClickZoom:!0,scrollwheel:!1,streetViewControl:!1,minZoom:e.minZoom,maxZoom:e.maxZoom})),u[r].setMapTypeId(n[e.name]);var i=document.getElementById(r+"gmaps"),a=function(){if(u[r]&&"hidden"!==i.style.visibility){var e=(0,s.vs)(t.getView().getCenter(),"EPSG:3857","EPSG:4326");u[r].setCenter(new o.LatLng(e[1],e[0]))}},l=function(){u[r]&&"hidden"!==i.style.visibility&&u[r].setZoom(t.getView().getZoom())},c=function(){if("hidden"!==i.style.visibility){var e=180*t.getView().getRotation()/Math.PI;i.style.transform="rotate("+e+"deg)",o.event.trigger(u[r],"resize")}},p=function(){var e=t.getView();e.on("change:center",a),e.on("change:resolution",l),e.on("change:rotation",c)};t.on("change:view",p),p(),a(),l();var b=t.getViewport(),v=document.getElementById(r+"gmaps").style.transform,g=!1,h=!1;b.addEventListener(m,(function(){g=!0})),b.addEventListener(y,(function(){h&&g&&function(){var e=document.getElementById(r+"gmaps").style.transform;if(u[r]&&e!==v&&-1!==e.indexOf("rotate")){var n=function(e,t){var r=t[0],n=t[1],o=[[r/2,n/2],[-r/2,n/2],[-r/2,-n/2],[r/2,-n/2]].map((function(t){return r=t,n=e*Math.PI/180,o=r[0],i=r[1],[o*Math.cos(n)-i*Math.sin(n),o*Math.sin(n)+i*Math.cos(n)];var r,n,o,i})),i=o.map((function(e){return e[0]})),a=o.map((function(e){return e[1]})),l=Math.max.apply(null,i),s=Math.min.apply(null,i),u=Math.max.apply(null,a),c=Math.min.apply(null,a),m=Math.abs(u)+Math.abs(c);return{width:Math.abs(l)+Math.abs(s),height:m}}(-parseFloat(e.match(/[\+\-]?\d+\.?\d*/i)[0]),t.getSize());i.style.width=n.width+"px",i.style.height=n.height+"px",i.style.left=Math.round((t.getSize()[0]-n.width)/2)+"px",i.style.top=Math.round((t.getSize()[1]-n.height)/2)+"px",o.event.trigger(u[r],"resize"),a()}}(),v=document.getElementById(r+"gmaps").style.transform,g=!1})),b.addEventListener(f,(function(){h=g}))}return null},render:function(e,t,r){o||(o=e.name);var i={zIndex:0};if(!0===e.visibility){var a=document.getElementById(r+"gmaps");a&&(a.style.visibility="visible"),u[r]&&n&&(u[r].setMapTypeId(n[e.name]),u[r].setTilt(0))}else i.visibility="hidden";if(o===e.name){var s=document.getElementById(r+"gmaps");return s&&(s.style.visibility=e.visibility?"visible":"hidden"),l().createElement("div",{id:r+"gmaps",className:"fill",style:i})}return null},update:function(e,t,r,n,o){if(u[o]){var i=d();if(!r.visibility&&t.visibility){var a=n.getView(),l=(0,s.vs)(a.getCenter(),"EPSG:3857","EPSG:4326");u[o].setCenter(new i.LatLng(l[1],l[0])),u[o].setZoom(a.getZoom())}!r.minZoom&&t.minZoom&&u[o].setOptions({minZoom:t.minZoom}),!r.maxZoom&&t.maxZoom&&u[o].setOptions({maxZoom:t.maxZoom})}},remove:function(e,t,r){o===e.name&&(o=void 0,delete u[r])}})},430189:(e,t,r)=>{"use strict";var n=r(608010),o=r(613002),i=r(421915),a=r(218672),l=r(397208),s=r(898185),u=r(120767),c=r(315565),m=r(831219),f=r(944538),y=r(640353),d=r(752043),p=r(984023),b=r(423923),v=r(303696);function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function S(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.map_=null,this.postcomposeListenerKey_=null,this.gridProjection_=(0,a.U2)(void 0!==t.projection?t.projection:"EPSG:4326"),this.projection_=null,this.maxY_=1/0,this.maxX_=1/0,this.minY_=-1/0,this.minX_=-1/0,this.maxYP_=1/0,this.maxXP_=1/0,this.minYP_=-1/0,this.minXP_=-1/0,this.targetSize_=void 0!==t.targetSize?t.targetSize:100,this.maxLines_=void 0!==t.maxLines?t.maxLines:100,this.meridians_=[],this.parallels_=[],this.strokeStyle_=void 0!==t.strokeStyle?t.strokeStyle:P,this.fromTargetTransform_=void 0,this.toTargetTransform_=void 0,this.projectionCenterTarget_=null,this.meridiansLabels_=null,this.parallelsLabels_=null,this.frameStyle_=null,this.frame_=null,this.frameRatio_=0,!0===t.showFrame&&(this.frameStyle_=void 0!==t.frameStyle?t.frameStyle:O,this.frameRatio_=void 0!==t.frameRatio?t.frameRatio:.1),!0===t.showLabels&&(this.xLabelFormatter_=(0,b.A4)(t.projection||"EPSG:4326",t.xLabelFormatter),this.yLabelFormatter_=(0,b.u3)(t.projection||"EPSG:4326",t.yLabelFormatter),this.xLabelPosition_=void 0===t.xLabelPosition?0:t.xLabelPosition,this.yLabelPosition_=void 0===t.yLabelPosition?1:t.yLabelPosition,this.xLabelStyle_=void 0!==t.xLabelStyle?t.xLabelStyle:j,this.yLabelStyle_=void 0!==t.yLabelStyle?t.yLabelStyle:T,this.meridiansLabels_=[],this.parallelsLabels_=[]),this.intervals_=void 0!==t.intervals?t.intervals:(0,p.bL)(t.projection||"EPSG:4326"),this.setMap(void 0!==t.map?t.map:null)}var t,r;return t=e,(r=[{key:"createGraticule_",value:function(e,t,r,n){var o=(0,p.ZS)(this.intervals_,this.projectionCenterTarget_,this.targetSize_,r,this.fromTargetTransform_),i=(0,p.uI)(o,this.projection_.getCode(),this.gridProjection_.getCode(),[e[0],e[1],e[2],e[3]],[this.minXP_,this.minYP_,this.maxXP_,this.maxYP_],t,n,this.maxLines_,!!this.xLabelFormatter_,this.xLabelFormatter_,this.yLabelFormatter_,this.xLabelPosition_,this.yLabelPosition_,this.frameRatio_,{center:t,resolution:r,interval:o});this.meridians_=i.xLines.map((function(e){return new f.Z(e,v.Z.XY)})),this.parallels_=i.yLines.map((function(e){return new f.Z(e,v.Z.XY)})),this.meridiansLabels_=i.xLabels.map((function(e){return S(S({},e),{},{geom:new d.Z(e.geom)})})),this.parallelsLabels_=i.yLabels.map((function(e){return S(S({},e),{},{geom:new d.Z(e.geom)})})),this.frame_=i.frame?new y.ZP([i.frame.exterior,i.frame.interior],v.Z.XY):null}},{key:"getMap",value:function(){return this.map_}},{key:"getMeridians",value:function(){return this.meridians_}},{key:"getParallels",value:function(){return this.parallels_}},{key:"handlePostCompose_",value:function(e){var t,r,n,o,i=e.vectorContext,l=e.frameState,s=l.extent,u=l.viewState,c=u.center,m=u.projection,f=u.resolution,y=l.pixelRatio,d=f*f/(4*y*y);for((!this.projection_||!(0,a.OP)(this.projection_,m))&&this.updateProjectionInfo_(m),this.createGraticule_(s,c,f,d),i.setFillStrokeStyle(null,this.strokeStyle_),t=0,r=this.meridians_.length;t{"use strict";r(608010).default.registerType("mapquest",{create:function(e){return e.onError(),!1},isValid:function(){return!1}})},739075:(e,t,r)=>{"use strict";var n=r(608010),o=r(751635),i=r(438225);n.default.registerType("osm",{create:function(e){return new i.Z({msId:e.id,opacity:void 0!==e.opacity?e.opacity:1,visible:e.visibility,zIndex:e.zIndex,source:new o.Z,minResolution:e.minResolution,maxResolution:e.maxResolution})},update:function(e,t,r){r.minResolution!==t.minResolution&&e.setMinResolution(void 0===t.minResolution?0:t.minResolution),r.maxResolution!==t.maxResolution&&e.setMaxResolution(void 0===t.maxResolution?1/0:t.maxResolution)}})},123281:(e,t,r)=>{"use strict";var n=r(608010),o=r(798143),i=r.n(o),a=r(193409),l=function e(t){if(0!==t.length)for(var r=0;r{"use strict";var n=r(227361),o=r.n(n),i=r(608010),a=r(836365),l=r(408930),s=r(438225);i.default.registerType("tms",{create:function(e){return new s.Z(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=o()(e,"bbox.bounds",{}),r=t.minx,n=t.miny,i=t.maxx,s=t.maxy,u={projection:e.srs,url:"".concat(e.tileMapUrl,"/{z}/{x}/{-y}.").concat(e.extension),attributions:e.attribution?[e.attribution]:[]},c=new a.Z(u),m=c.getTileGrid();if(e.forceDefaultTileGrid){var f=m.getExtent(),y=[f[0],f[1]],d=new l.Z({origin:y,extent:e.bbox&&[r,n,i,s],resolutions:m.getResolutions(),tileSize:e.tileSize});c.setTileGridForProjection(e.srs,d),"EPSG:3857"===e.srs&&c.setTileGridForProjection("EPSG:900913",d)}else e.tileSets&&c.setTileGridForProjection(e.srs,new l.Z({origin:e.origin,extent:e.bbox&&[r,n,i,s],resolutions:e.tileSets.map((function(e){return e.resolution})),tileSize:e.tileSize}));return{msId:e.id,extent:e.bbox&&[r,n,i,s],opacity:void 0!==e.opacity?e.opacity:1,visible:!1!==e.visibility,zIndex:e.zIndex,source:c,minResolution:e.minResolution,maxResolution:e.maxResolution}}(e))},update:function(e,t,r){r.minResolution!==t.minResolution&&e.setMinResolution(void 0===t.minResolution?0:t.minResolution),r.maxResolution!==t.maxResolution&&e.setMaxResolution(void 0===t.maxResolution?1/0:t.maxResolution)}})},586714:(e,t,r)=>{"use strict";var n=r(727418),o=r.n(n),i=r(608010),a=r(45992),l=r(986267),s=r(218056),u=r(836365),c=r(438225);function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r{"use strict";var n=r(608010),o=r(393546),i=r(618446),a=r.n(i),l=r(973410),s=r(429902),u=r(166287);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t{"use strict";var n=r(91175),o=r.n(n),i=r(472500),a=r.n(i),l=r(986267),s=r(552259),u=r(608010),c=r(233044),m=r(218672),f=r(421915),y=r(408930),d=r(251895),p=r(485926),b=r(404780),v=r(333358),g=r(429122);function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function x(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{}).topLeftCorner})).map((function(){var e,t,r=(t=2,function(e){if(Array.isArray(e))return e}(e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[])||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||P(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),n=r[0],o=r[1];return T?[o,n]:[n,o]})),_=h&&h.map((function(e){return[e.tileWidth,e.tileHeight]})),L=e.bbox,I=L?(0,f.Ne)([parseFloat(L.bounds.minx),parseFloat(L.bounds.miny),parseFloat(L.bounds.maxx),parseFloat(L.bounds.maxy)],(0,m.Ck)(L.crs,e.srs)):null,Z=S&&S.lowerCorner&&S.upperCorner?[].concat(R(S.lowerCorner),R(S.upperCorner)):null,M=new y.Z({extent:Z,minZoom:0,origins:E,origin:E?void 0:[20037508.3428,-20037508.3428],resolutions:j,tileSizes:_,tileSize:_?void 0:[256,256]}),z=(e.url||"").replace(/\{tilingSchemeId\}/,u).replace(/\{level\}/,"{z}").replace(/\{row\}/,"{y}").replace(/\{col\}/,"{x}"),C={};(0,c.addAuthenticationParameter)(z,C,e.securityToken);var A=decodeURI(z),k=a().format({query:x({},C)}),F=(0,v.z)(e.format)&&g.y[e.format]||b.Z,G=new p.Z({format:new F({dataProjection:t,layerName:"_layer_"}),tileGrid:M,url:A+k}),D=new d.Z({extent:I,msId:e.id,source:G,visible:!1!==e.visibility,zIndex:e.zIndex,minResolution:e.minResolution,maxResolution:e.maxResolution});return(0,g.b)(e.vectorStyle,D),D};u.default.registerType("wfs3",{create:j,update:function(e,t,r){return r.securityToken!==t.securityToken||r.srs!==t.srs?j(t):(r.minResolution!==t.minResolution&&e.setMinResolution(void 0===t.minResolution?0:t.minResolution),r.maxResolution!==t.maxResolution&&e.setMaxResolution(void 0===t.maxResolution?1/0:t.maxResolution),null)},render:function(){return null}})},873576:(e,t,r)=>{"use strict";var n=r(608010),o=r(393546),i=r(973410),a=r(429902),l=r(169141),s=r(432420),u=r(143378),c=r(838848),m=r(166287);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.crs||r.srs||"EPSG:3857",o=t.crs||t.srs||"EPSG:3857",i=e.getSource();o!==n&&i.forEachFeature((function(e){e.getGeometry().transform(n,o)})),(0,c.Es)(r,t)&&(i.setLoader(b(i,t)),i.clear(),i.refresh()),t.style===r.style&&t.styleName===r.styleName||g(e,t),r.minResolution!==t.minResolution&&e.setMinResolution(void 0===t.minResolution?0:t.minResolution),r.maxResolution!==t.maxResolution&&e.setMaxResolution(void 0===t.maxResolution?1/0:t.maxResolution)},render:function(){return null}})},828437:(e,t,r)=>{"use strict";var n=r(124852),o=r.n(n),i=r(805346),a=r(608010),l=r(414293),s=r.n(l),u=r(618446),c=r.n(u),m=r(393386),f=r.n(m),y=r(701469),d=r.n(y),p=r(727418),b=r.n(p),v=r(375875),g=r.n(v),h=r(986267),S=r(223502),x=r(737275),w=r(143378),R=r(233044),P=r(624262),O=r(552259),j=r(503901),T=r(502305),E=r(392663),_=r(218672),L=r(408930),I=r(438225),Z=r(991587),M=r(485926),z=r(251895),C=r(333358),A=r(429122),k=r(253231);function F(e){return F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},F(e)}function G(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function D(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=(e.maxLengthUrl||(null===(o=(0,x.u8)("miscSettings"))||void 0===o?void 0:o.maxURLLength)||1/0)){var s=function(e){if(Array.isArray(e))return e}(i=n.split("&"))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return U(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?U(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),u=s[0],c=s.slice(1);u=Y(e.forceProxy,u),g().post(u,"&"+c.join("&"),{headers:D({"Content-type":"application/x-www-form-urlencoded;charset=utf-8"},t),responseType:"arraybuffer"}).then((function(e){if(200===e.status){for(var t=new Uint8Array(e.data),r=t.length,n=new Array(r);r--;)n[r]=String.fromCharCode(t[r]);var o=n.join(""),i=e.headers["content-type"];0===i.indexOf("image")&&(a.src="data:"+i+";base64,"+window.btoa(o))}})).catch((function(e){console.error(e)}))}else t?g().get(l,{headers:t,responseType:"blob"}).then((function(e){200===e.status&&e.data?r.getImage().src=URL.createObjectURL(e.data):console.error("Status code: "+e.status)})).catch((function(e){console.error(e)})):a.src=l}};function B(e){var t=(0,w.v)(e),r=b()({},e.baseParams,{LAYERS:e.name,STYLES:e.style||"",FORMAT:e.format||"image/png",TRANSPARENT:void 0===e.transparent||e.transparent,SRS:h.default.normalizeSRS(e.srs||"EPSG:3857",e.allowedSRS),CRS:h.default.normalizeSRS(e.srs||"EPSG:3857",e.allowedSRS),TILED:!e.singleTile&&(!!s()(e.tiled)||e.tiled),VERSION:e.version||"1.3.0"},b()({},e._v_?{_v_:e._v_}:{},t||{},e.localizedLayerStyles&&e.env&&e.env.length&&"background"!==e.group?{ENV:(0,k.h)(e.env)}:{}));return(0,R.addAuthenticationToSLD)(r,e)}function X(e){return e.join(":")}function q(e,t,r){var n=Y(e,r),o=t.getTileCoord();t.getImage().src="",(0,j.qR)(n,o,X(o))}function W(e){try{var t=function(e,t){var r=e.get("map");return e.getSource().getTileGrid().getTileCoordForCoordAndZ(t,r.getView().getZoom())}(this,e),r=this.getSource().getTileGrid().getTileSize(),n=(0,j.yQ)(X(t),function(e,t,r){var n=e.getSource().getTileGrid(),o=n.getTileCoordExtent(r),i=n.getTileSize()/(o[2]-o[0]);return{x:Math.floor((t[0]-o[0])*i),y:Math.floor((o[3]-t[1])*i)}}(this,e,t),r,this.get("nodata"),this.get("littleEndian"));return n.available?n.value:o().createElement(i.Z,{msgId:n.message})}catch(e){return o().createElement(i.Z,{msgId:"elevationLoadingError"})}}var H=function(e){return e&&(0,P.go)(e)||void 0},K=function(e,t){var r=function(e){return e.map((function(e){return e.split("?")[0]}))}(d()(e.url)?e.url:[e.url]),n=B(e)||{};r.forEach((function(t){return(0,R.addAuthenticationParameter)(t,n,e.securityToken)}));var o=(0,R.getAuthenticationHeaders)(r[0],e.securityToken),i=(0,C.z)(e.format);if(e.singleTile&&!i)return new T.Z({msId:e.id,opacity:void 0!==e.opacity?e.opacity:1,visible:!1!==e.visibility,zIndex:e.zIndex,minResolution:e.minResolution,maxResolution:e.maxResolution,source:new E.default({url:r[0],crossOrigin:e.crossOrigin,attributions:H(e.credits),params:n,ratio:e.ratio||1,imageLoadFunction:V(e,o)})});var a,l,s=t&&t.getView()&&t.getView().getProjection()&&t.getView().getProjection().getCode()||"EPSG:3857",u=h.default.normalizeSRS(e.srs||s,e.allowedSRS),c=(0,_.U2)(u).getExtent()||h.default.getExtentForProjection(u).extent,m=function(e,t){return t.useForElevation?b()({},e,{tileLoadFunction:q.bind(null,[t.forceProxy])}):e}({attributions:H(e.credits),urls:r,crossOrigin:e.crossOrigin,params:n,tileGrid:new L.Z({extent:c,resolutions:e.resolutions||O.default.getResolutions(),tileSize:e.tileSize?e.tileSize:256,origin:e.origin?e.origin:[c[0],c[1]]}),tileLoadFunction:V(e,o)},e),f=new Z.default(D({},m)),y={msId:e.id,opacity:void 0!==e.opacity?e.opacity:1,visible:!1!==e.visibility,zIndex:e.zIndex,minResolution:e.minResolution,maxResolution:e.maxResolution};return(a=i?new z.Z(D(D({},y),{},{source:new M.Z(D(D({},m),{},{format:new A.y[e.format]({layerName:"_layer_"}),tileUrlFunction:function(e,t,r){return f.tileUrlFunction(e,t,r)}}))})):new I.Z(D(D({},y),{},{source:f}))).set("map",t),i&&(a.set("wmsSource",f),e.vectorStyle&&(0,A.b)(e.vectorStyle,a)),e.useForElevation&&(a.set("nodata",e.nodata),a.set("littleEndian",null!==(l=e.littleendian)&&void 0!==l&&l),a.set("getElevation",W.bind(a))),a};a.default.registerType("wms",{create:K,update:function(e,t,r,n){var o=(0,C.z)(t.format);if(function(e,t){return e.singleTile!==t.singleTile||e.securityToken!==t.securityToken||e.ratio!==t.ratio||e.credits!==t.credits&&!t.credits||(0,C.z)(e.format)!==(0,C.z)(t.format)||(0,C.z)(e.format)&&(0,C.z)(t.format)&&e.format!==t.format||e.localizedLayerStyles!==t.localizedLayerStyles||e.tileSize!==t.tileSize||e.forceProxy!==t.forceProxy}(r,t))return K(t,n);var i=!1;o&&t.vectorStyle&&!c()(t.vectorStyle,r.vectorStyle||{})&&((0,A.b)(t.vectorStyle,e),i=!0);var a=e.get("wmsSource")||e.getSource(),l=o?e.getSource():null;if(r.srs!==t.srs){var u=h.default.normalizeSRS(t.srs,t.allowedSRS),m=(0,_.U2)(u).getExtent()||h.default.getExtentForProjection(u).extent;if(t.singleTile&&!o)e.setExtent(m);else{var y=new L.Z({extent:m,resolutions:t.resolutions||O.default.getResolutions(),tileSize:t.tileSize?t.tileSize:256,origin:t.origin?t.origin:[m[0],m[1]]});a.tileGrid=y,l&&(l.tileGrid=y)}i=!0}r.credits!==t.credits&&t.credits&&(a.setAttributions(H(t.credits)),i=!0);var d,p,v,g,S=!1;if(r&&a&&a.updateParams&&(r.params&&t.params?S=f()(Object.keys(r.params),Object.keys(t.params)).reduce((function(e,n){return t.params[n]!==r.params[n]||e}),!1):(!r.params&&t.params||r.params&&!t.params)&&(S=!0),d=B(r),p=B(t),S=S||["LAYERS","STYLES","FORMAT","TRANSPARENT","TILED","VERSION","_v_","CQL_FILTER","SLD","VIEWPARAMS"].reduce((function(e,t){return d[t]!==p[t]||e}),!1),i=i||S),r.minResolution!==t.minResolution&&e.setMinResolution(void 0===t.minResolution?0:t.minResolution),r.maxResolution!==t.maxResolution&&e.setMaxResolution(void 0===t.maxResolution?1/0:t.maxResolution),i&&(null==a||null===(v=a.tileCache)||void 0===v||null===(g=v.pruneExceptNewestZ)||void 0===g||g.call(v),l&&(l.clear(),l.refresh()),S)){var x=b()(p,(0,R.addAuthenticationToSLD)((0,w.v)(t)||{},t));a.updateParams(b()(x,Object.keys(d||{}).reduce((function(e,t){return s()(x[t])?b()(e,N({},t,void 0)):e}),{})))}return null}})},707086:(e,t,r)=>{"use strict";var n=r(608010),o=r(984596),i=r.n(o),a=r(91175),l=r.n(a),s=r(610928),u=r.n(s),c=r(233044),m=r(707294),f=r(986267),y=r(552259),d=r(333358),p=r(472500),b=r.n(p),v=r(218672),g=r(421915),h=r(438225),S=r(251895),x=r(92200),w=r(485926),R=r(923241),P=r(404780),O=r(169141),j=r(496476),T=r(393546),E=r(624262);function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}function L(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function I(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{}).TopLeftCorner;return e&&f.default.parseString(e)})).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.x,r=e.y;return L?[r,t]:[t,r]})),z=p&&p.TileMatrix&&p.TileMatrix.map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.MatrixWidth,r=e.MatrixHeight;return[parseInt(t,10),parseInt(r,10)]})),C=p&&p.TileMatrix&&p.TileMatrix.map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.TileWidth,r=e.TileHeight;return[parseInt(t,10),parseInt(r,10)]})),A=e.bbox,k=A?(0,g.Ne)([parseFloat(A.bounds.minx),parseFloat(A.bounds.miny),parseFloat(A.bounds.maxx),parseFloat(A.bounds.maxy)],(0,v.Ck)(A.crs,e.srs)):o.getExtent(),F=(0,g.Ed)(k,o.getExtent());(0,g.xb)(F)&&(F=o.getExtent());var G={};r.forEach((function(t){return(0,c.addAuthenticationParameter)(t,G,e.securityToken)}));var D=b().format({query:I({},G)}),N=e.maxResolution||u()(j.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return _[0]/e*256<.5}))),U=-1!==(e.availableFormats||[]).indexOf(e.format)&&e.format||!e.availableFormats&&e.format||"image/png",Y=(0,d.z)(U),V=I(I({requestEncoding:t,urls:r.map((function(e){return e+D})),layer:e.name,version:e.version||"1.0.0",matrixSet:s},e.credits&&{attributions:(0,E.go)(e.credits)}),{},{format:U,style:e.style||"",tileGrid:new R.Z({origins:Z,origin:Z?void 0:[20037508.3428,-20037508.3428],resolutions:_,matrixIds:m.Wg((P||m.nn(e)||[]).map((function(e){return e.identifier})),_.length),sizes:z,extent:F,tileSizes:C,tileSize:!C&&(e.tileSize||[256,256])}),wrapX:!0}),B=new x.Z(V),X=new(Y?S.Z:h.Z)({msId:e.id,opacity:void 0!==e.opacity?e.opacity:1,zIndex:e.zIndex,minResolution:e.minResolution,maxResolution:e.maxResolution{"use strict";r.r(t),r.d(t,{default:()=>n});const n={BingLayer:r(447098).default,GoogleLayer:r(573431).default,GraticuleLayer:r(430189).default,MapQuest:r(905348).default,OSMLayer:r(739075).default,OverlayLayer:r(123281).default,TMSLayer:r(960470).default,TileProviderLayer:r(586714).default,VectorLayer:r(437420).default,WFSLayer:r(873576).default,WFS3Layer:r(503690).default,WMSLayer:r(828437).default,WMTSLayer:r(707086).default}},503901:(e,t,r)=>{"use strict";r.d(t,{qR:()=>c,yQ:()=>m});var n=r(375875),o=r.n(n),i=r(581399),a=r.n(i),l=r(882702),s=new(a())(100),u=function(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-9999,i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=n*e+r;try{var l=t.dataView.getInt16(2*a,i);if(l!==o&&32767!==l&&-32768!==l)return l}catch(e){}return null},c=function(e,t,r){return s.has(r)?null:new l.Promise((function(n,i){o().get(e,{responseType:"arraybuffer"}).then((function(e){!function(e,t,r){s.set(r,{data:e,dataView:new DataView(e),coords:t,current:!0,status:"success"})}(e.data,t,r),n()})).catch((function(e){!function(e,t,r){s.set(r,{coords:t,current:!0,status:"error: "+e})}(e.message,t,r),i(e)}))}))},m=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-9999,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=s.get(e);return i&&"success"===i.status?{available:!0,value:u(r,i,t.x,t.y,n,o)}:i&&"loading"===i.status?{available:!1,message:"elevationLoading"}:i&&"error"===i.status?{available:!1,message:"elevationLoadingError"}:{available:!1,message:"elevationNotAvailable"}}},223502:(e,t,r)=>{"use strict";r.d(t,{$:()=>s,b:()=>u});var n=r(737275),o=r(701469),i=r.n(o),a=r(513218),l=r.n(a),s=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(i()(t))return t.reduce((function(t,r){return e(r)&&t}),!0);var o=!1,a=!(0===t.indexOf("http")),s=!a&&t.match(/([^:]*:)\/\/([^:]*:?[^@]*@)?([^:\/\?]*):?([^\/\?]*)/);if(s){var u=window.location;a=s[1]===u.protocol&&s[3]===u.hostname;var c=s[4],m=u.port;(80!==c&&""!==c||"80"!==m&&""!==m)&&(a=a&&c===m)}if(!a){var f=n.ZP.getProxyUrl(r);if(f){var y=[];l()(f)&&(y=f.useCORS||[],f=f.url),y.reduce((function(e,r){return e||0===t.indexOf(r)}),!1)||(o=!0)}}return o},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.ZP.getProxyUrl(e);return t&&l()(t)&&(t=t.url),t}},333358:(e,t,r)=>{"use strict";r.d(t,{z:()=>o});var n=["application/vnd.mapbox-vector-tile","application/json;type=geojson","application/json;type=topojson"],o=function(e){return-1!==n.indexOf(e)}},429122:(e,t,r)=>{"use strict";r.d(t,{y:()=>l,b:()=>s});var n=r(404780),o=r(169141),i=r(496476),a=r(393546),l={"application/vnd.mapbox-vector-tile":n.Z,"application/json;type=geojson":o.Z,"application/json;type=topojson":i.Z},s=function(e,t){(0,a.C2)({asPromise:!0,style:e}).then((function(e){t.setStyle(e)})).catch((function(){}))}}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/35038.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/35038.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/35038.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/35038.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/35089.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/35089.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/35089.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/35089.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/35197.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/35197.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/35197.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/35197.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/35257.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/35257.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/35257.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/35257.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/3526.018dc26183efb561a8b1.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/3526.018dc26183efb561a8b1.chunk.js new file mode 100644 index 0000000000..e038ea251b --- /dev/null +++ b/geonode_mapstore_client/static/mapstore/dist/js/3526.018dc26183efb561a8b1.chunk.js @@ -0,0 +1 @@ +(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[3526],{903526:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>s});var n=t(253772),o=t.n(n);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function u(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function l(e){for(var r=1;r0&&void 0!==arguments[0]?arguments[0]:{},t=r.drawIcons,n=r.getImageIdFromSymbolizer;!function(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}(this,e),this._parser=new(o()),this._drawIcons=t||function(){return Promise.resolve(null)},this._getImageIdFromSymbolizer=n||function(e){return e.symbolizerId}}var r,t;return r=e,t=[{key:"readStyle",value:function(e){return e?this._parser.readStyle(e):Promise.reject("No style provided")}},{key:"writeStyle",value:function(e){var r=this;return e?this._drawIcons(e).then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=l(l({},e),{},{rules:((null==e?void 0:e.rules)||[]).map((function(e){return l(l({},e),{},{symbolizers:((null==e?void 0:e.symbolizers)||[]).map((function(e){if("Icon"===e.kind){var n=t.find((function(t){return t.id===r._getImageIdFromSymbolizer(e)}))||{},o=n.image,i=n.width,u=n.height;if(o&&i&&u){var c=i>u?i:u,a=e.size/c;return l(l({},e),{},{size:a})}}return"Fill"===e.kind||"Mark"===e.kind?l(l({},e),{},{opacity:e.fillOpacity}):e}))})}))});return r._parser.writeStyle(n)})):Promise.reject("No style provided")}}],t&&c(r.prototype,t),Object.defineProperty(r,"prototype",{writable:!1}),e}()}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/3526.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/3526.affd309bf2aa3f38d3a0.chunk.js deleted file mode 100644 index 82c0a821b1..0000000000 --- a/geonode_mapstore_client/static/mapstore/dist/js/3526.affd309bf2aa3f38d3a0.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[3526],{903526:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>f});var n=t(253772),o=t.n(n);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function u(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function c(e){for(var r=1;r0&&void 0!==arguments[0]?arguments[0]:{},t=r.drawIcons,n=r.getImageIdFromSymbolizer;!function(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}(this,e),this._parser=new(o()),this._drawIcons=t||function(){return Promise.resolve(null)},this._getImageIdFromSymbolizer=n||function(e){return e.symbolizerId}}var r,t;return r=e,t=[{key:"readStyle",value:function(e){return e?this._parser.readStyle(e):Promise.reject("No style provided")}},{key:"writeStyle",value:function(e){var r=this;return e?this._drawIcons(e).then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=c(c({},e),{},{rules:((null==e?void 0:e.rules)||[]).map((function(e){return c(c({},e),{},{symbolizers:((null==e?void 0:e.symbolizers)||[]).map((function(e){if("Icon"===e.kind){var n=t.find((function(t){return t.id===r._getImageIdFromSymbolizer(e)}))||{},o=n.image,i=n.width,u=n.height;if(o&&i&&u){var l=i>u?i:u,a=e.size/l;return c(c({},e),{},{size:a})}}return"Fill"===e.kind||"Mark"===e.kind?c(c({},e),{},{opacity:e.fillOpacity}):e}))})}))});return r._parser.writeStyle(n)})):Promise.reject("No style provided")}}],t&&a(r.prototype,t),Object.defineProperty(r,"prototype",{writable:!1}),e}()}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/35280.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/35280.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/35280.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/35280.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/35528.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/35528.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/35528.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/35528.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/35597.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/35597.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/35597.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/35597.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/35672.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/35672.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/35672.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/35672.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/35701.018dc26183efb561a8b1.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/35701.018dc26183efb561a8b1.chunk.js new file mode 100644 index 0000000000..ef619d977c --- /dev/null +++ b/geonode_mapstore_client/static/mapstore/dist/js/35701.018dc26183efb561a8b1.chunk.js @@ -0,0 +1 @@ +(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[35701],{761444:(t,e,r)=>{"use strict";r.r(e);var n=r(845243),i=r.n(n),o=r(244712),a=r.n(o),l=(r(371851),r(727418)),s=r.n(l);i().BingLayer.prototype.loadMetadata=function(){if(!this.metaRequested){this.metaRequested=!0;var t=this,e="_bing_metadata_"+i().Util.stamp(this);window[e]=function(r){t.meta=r,window[e]=void 0;var n=document.getElementById(e);return n.parentNode.removeChild(n),r.errorDetails?(t.fire("load",{layer:t}),t.onError(r)):(t.initMetadata(r),null)};var r="file:"===document.location.protocol?"https":document.location.protocol.slice(0,-1),n=r+"://dev.virtualearth.net/REST/v1/Imagery/Metadata/"+this.options.type+"?include=ImageryProviders&jsonp="+e+"&key="+this._key+"&UriScheme="+r,o=document.createElement("script");o.type="text/javascript",o.src=n,o.id=e,document.getElementsByTagName("head")[0].appendChild(o)}},i().BingLayer.prototype.onError=function(t){return this.options.onError?this.options.onError(t):null},a().registerType("bing",{create:function(t){var e=t.apiKey,r={subdomains:[0,1,2,3],type:t.name,attribution:"Bing",culture:"",onError:t.onError,maxNativeZoom:t.maxNativeZoom||19,maxZoom:t.maxZoom||23};return t.zoomOffset&&(r=s()({},r,{zoomOffset:t.zoomOffset})),new(i().BingLayer)(e,r)},isValid:function(t){return!t.meta||!t.meta.statusCode||200===t.meta.statusCode}})},951735:(t,e,r)=>{var n=r(845243);t.exports=n.TileLayer.extend({initialize:function(t){n.TileLayer.prototype.initialize.call(this,this.url,t)}})},826696:(t,e,r)=>{"use strict";r.r(e);var n=r(244712),i=r.n(n),o=r(845243),a=r.n(o);r(514767),i().registerType("google",(function(t){return(null===(e=window)||void 0===e||null===(r=e.google)||void 0===r?void 0:r.maps)?a().gridLayer.googleMutant({type:t.name.toLowerCase(),maxNativeZoom:t.maxNativeZoom||18,maxZoom:t.maxZoom||20}):null;var e,r}))},790671:(t,e,r)=>{"use strict";r.r(e);var n=r(244712),i=r.n(n),o=r(471305),a=r.n(o),l=r(727418),s=r.n(l);r(522729),i().registerType("graticule",{create:function(t){var e=s()({interval:20,showOriginLabel:!0,redraw:"move"},t);return a()?new(a())(e):null},isValid:function(){return!!a()}})},352031:(t,e,r)=>{"use strict";r.r(e);var n=r(244712),i=r.n(n),o=r(357167),a=r.n(o);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}i().registerType("mapquest",{create:function(t){return a()?a().mapLayer(function(t){for(var e=1;e{"use strict";r.r(e);var n=r(244712),i=r.n(n),o=r(845243),a=r.n(o);i().registerType("osm",(function(t){return a().tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'© OpenStreetMap contributors',zoomOffset:t.zoomOffset||0,maxNativeZoom:t.maxNativeZoom||19,maxZoom:t.maxZoom||23})}))},135659:(t,e,r)=>{"use strict";r.r(e);var n=r(244712),i=r.n(n),o=r(845243),a=r.n(o);i().registerType("tms",(function(t){return a().tileLayer("".concat(t.tileMapUrl,"/{z}/{x}/{y}.").concat(t.extension),{hideErrors:t.hideErrors||!0,tms:!0})}))},70826:(t,e,r)=>{"use strict";r.r(e);var n=r(244712),i=r.n(n),o=r(845243),a=r.n(o),l=r(45992);function s(t){return s="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},s(t)}function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r{"use strict";r.r(e);var n=r(244712),i=r.n(n),o=r(618446),a=r.n(o),l=r(414293),s=r.n(l),u=r(845243),c=r.n(u),f=r(166287),y=function t(e,r){e.eachLayer&&e.eachLayer((function(e){e.setOpacity&&e.setOpacity(r),t(e,r)}))},m=function(t){var e,r;return(null==t||null===(e=t.style)||void 0===e?void 0:e.body)&&(null==t||null===(r=t.style)||void 0===r?void 0:r.format)},p=function(t){var e=function(t){var e=t.hideLoading,r=c().geoJson([],{pointToLayer:"marker"!==t.styleName?function(e,r){return c().circleMarker(r,e.style||t.style)}:null,hideLoading:e});return r.setOpacity=function(t){y(r,t)},r.on("layeradd",(function(e){var n=e.layer;r.setOpacity(s()(r.opacity)?t.opacity:r.opacity,n)})),r}(t);return e.opacity=s()(t.opacity)?1:t.opacity,e._msLegacyGeoJSON=!0,e},d=function(t){var e=t.hideLoading,r=c().geoJson(t.features,{hideLoading:e});return(0,f.getStyle)((0,f.applyDefaultStyleToLayer)(t),"leaflet").then((function(e){var n=e&&e({opacity:t.opacity})||{},i=n.style,o=n.pointToLayer,a=void 0===o?function(){return null}:o,l=n.filter,s=void 0===l?function(){return!0}:l;r.clearLayers(),r.options.pointToLayer=a,r.options.filter=s,r.addData(t.features),r.setStyle(i)})),r};i().registerType("vector",{create:function(t){return m(t)?d(t):p(t)},update:function(t,e,r){return t._msLegacyGeoJSON?function(t,e,r){return e.opacity!==r.opacity&&(t.opacity=e.opacity),a()(e.style,r.style)?null:m(e)?d(e):p(e)}(t,e,r):function(t,e,r){return a()(r.style,e.style)&&e.opacity===r.opacity||(0,f.getStyle)((0,f.applyDefaultStyleToLayer)(e),"leaflet").then((function(r){var n=r&&r({opacity:e.opacity})||{},i=n.style,o=n.pointToLayer,a=void 0===o?function(){return null}:o,l=n.filter,s=void 0===l?function(){return!0}:l;t.clearLayers(),t.options.pointToLayer=a,t.options.filter=s,t.addData(e.features),t.setStyle(i)})),null}(t,e,r)},render:function(){return null}})},622946:(t,e,r)=>{"use strict";var n=r(618446),i=r.n(n),o=r(845243),a=r.n(o),l=r(986267),s=r(244712),u=r.n(s),c=r(143378),f=r(432420),y=r(838848),m=r(166287);function p(t){return p="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},p(t)}function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function v(t){for(var e=1;e{"use strict";r.r(e);var n=r(124852),i=r.n(n),o=r(805346),a=r(244712),l=r.n(a),s=r(143378),u=r(73785),c=r.n(u),f=r(845243),y=r.n(f),m=r(727418),p=r.n(m),d=r(701469),v=r.n(d),g=r(414293),h=r.n(g),S=r(233044),b=r(503901),x=r(624262),w=r(333358);function O(t){return O="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(t)}function T(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==O(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==O(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===O(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}r(312787),y().NonTiledLayer.WMSCustom=y().NonTiledLayer.WMS.extend({initialize:function(t,e){this._wmsUrl=t;var r=y().extend({},this.defaultWmsParams);for(var n in e)this.options.hasOwnProperty(n)||"CRS"===n.toUpperCase()||"maxNativeZoom"===n||(r[n]=e[n]);this.wmsParams=r,y().setOptions(this,e)},removeParams:function(){var t=this,e=arguments.length>1?arguments[1]:void 0;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(e){return delete t.wmsParams[e]})),e||this.redraw(),this}}),y().nonTiledLayer.wmsCustom=function(t,e){return new(y().NonTiledLayer.WMSCustom)(t,e)},y().TileLayer.MultipleUrlWMS=y().TileLayer.WMS.extend({initialize:function(t,e){this._url=t[0],this._urls=t,this._urlsIndex=0;var r=y().extend({},this.defaultWmsParams),n=e.tileSize||this.options.tileSize;for(var i in e.detectRetina&&y().Browser.retina?r.width=r.height=2*n:r.width=r.height=n,e)this.options.hasOwnProperty(i)||"CRS"===i.toUpperCase()||"maxNativeZoom"===i||(r[i]=e[i]);this.wmsParams=r,y().setOptions(this,e)},getTileUrl:function(t){var e=this._map,r=this.options.tileSize,n=t.multiplyBy(r),i=n.add([r,r]),o=this._crs.project(e.unproject(n,t.z)),a=this._crs.project(e.unproject(i,t.z)),l=this._wmsVersion>=1.3&&this._crs===y().CRS.EPSG4326?[a.y,o.x,o.y,a.x].join(","):[o.x,a.y,a.x,o.y].join(",");this._urlsIndex++,this._urlsIndex===this._urls.length&&(this._urlsIndex=0);var s=y().Util.template(this._urls[this._urlsIndex],{s:this._getSubdomain(t)});return s+y().Util.getParamString(this.wmsParams,s,!0)+"&BBOX="+l},removeParams:function(){var t=this,e=arguments.length>1?arguments[1]:void 0;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(e){return delete t.wmsParams[e]})),e||this.redraw(),this}}),y().tileLayer.multipleUrlWMS=function(t,e){return new(y().TileLayer.MultipleUrlWMS)(t,e)},y().TileLayer.ElevationWMS=y().TileLayer.MultipleUrlWMS.extend({initialize:function(t,e,r,n){this._tiles={},this._nodata=r,this._littleendian=n,y().TileLayer.MultipleUrlWMS.prototype.initialize.apply(this,arguments)},_addTile:function(t){var e=this.getTileUrl(t);(0,b.qR)(e,t,this._tileCoordsToKey(t))},getElevation:function(t,e){try{var r=this._getTileFromCoords(t),n=(0,b.yQ)(this._tileCoordsToKey(r),this._getTileRelativePixel(r,e),this.getTileSize().x,this._nodata,this._littleendian);return n.available?n.value:i().createElement(o.Z,{msgId:n.message})}catch(t){return i().createElement(o.Z,{msgId:"elevationLoadingError"})}},_getTileFromCoords:function(t){var e=this._map.project(t).divideBy(256).floor();return p()(e,{z:this._tileZoom})},_getTileRelativePixel:function(t,e){var r=Math.floor(e.x-this._getTilePos(t).x-this._map._getMapPanePos().x),n=Math.min(this.getTileSize().x-1,Math.floor(e.y-this._getTilePos(t).y-this._map._getMapPanePos().y));return new(y().Point)(r,n)},_removeTile:function(){},_abortLoading:function(){}}),y().tileLayer.elevationWMS=function(t,e,r,n){return new(y().TileLayer.ElevationWMS)(t,e,r,n)};var P=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(t).reduce((function(e,r){return h()(t[r])?e:p()(e,T({},r,t[r]))}),{})};function L(t){var e=void 0!==t.opacity?t.opacity:1,r=(0,s.v)(t),n=p()({},t.baseParams,{attribution:t.credits&&(0,x.go)(t.credits),layers:t.name,styles:t.style||"",format:((0,w.z)(t.format)?"image/png":t.format)||"image/png",transparent:void 0===t.transparent||t.transparent,tiled:void 0===t.tiled||t.tiled,opacity:e,zIndex:t.zIndex,version:t.version||"1.3.0",tileSize:t.tileSize||256,maxZoom:t.maxZoom||23,maxNativeZoom:t.maxNativeZoom||18},p()(t._v_?{_v_:t._v_}:{},r||{}));return(0,S.addAuthenticationToSLD)(n,t)}function j(t){return t.map((function(t){return t.split("?")[0]}))}l().registerType("wms",{create:function(t){var e=j(v()(t.url)?t.url:[t.url]),r=P(L(t)||{});return e.forEach((function(e){return(0,S.addAuthenticationParameter)(e,r,t.securityToken)})),t.useForElevation?y().tileLayer.elevationWMS(e,r,t.nodata||-9999,t.littleendian||!1):t.singleTile?y().nonTiledLayer.wmsCustom(e[0],r):y().tileLayer.multipleUrlWMS(e,r)},update:function(t,e,r){if(r.singleTile!==e.singleTile||r.tileSize!==e.tileSize||r.securityToken!==e.securityToken&&e.visibility){var n=j(v()(e.url)?e.url:[e.url]),i=L(e)||{};return n.forEach((function(t){return(0,S.addAuthenticationParameter)(t,i,e.securityToken)})),e.singleTile?y().nonTiledLayer.wmsCustom(n[0],i):y().tileLayer.multipleUrlWMS(n,i)}var o=p()({},c().filterWMSParamOptions(L(r)),(0,S.addAuthenticationToSLD)(r.params||{},r)),a=p()({},c().filterWMSParamOptions(L(e)),(0,S.addAuthenticationToSLD)(e.params||{},e)),l=Object.keys(a).filter((function(t){return a[t]!==o[t]})),s=Object.keys(o).filter((function(t){return o[t]!==a[t]})),u={};return s.length>0&&t.removeParams(s,l.length>0),l.length>0&&(u=l.reduce((function(t,e){return p()({},t,T({},e,a[e]))}),u),t.setParams(P(p()(u,u.params,(0,S.addAuthenticationToSLD)(e.params||{},e))))),null}})},485365:(t,e,r)=>{"use strict";r.r(e);var n=r(244712),i=r.n(n),o=r(986267),a=r(845243),l=r.n(a),s=r(727418),u=r.n(s),c=r(233044),f=r(624262),y=r(707294),m=r(552259),p=r(91175),d=r.n(p),v=r(281763),g=r.n(v);function h(t){return function(t){if(Array.isArray(t))return S(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return S(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?S(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=a&&i(n-i)/2?{id:r,data:e}:{id:r+1,data:t[r+1]}:null})).filter((function(t){return t}))),s=l&&g()(l.id)&&l.id+""||0===t.length&&r||null;if(!e[s])return null;var u=e[s].identifier,c=l.data&&l.data.TopLeftCorner&&(0,o.parseString)(l.data.TopLeftCorner)||e[s].topLeftCorner,f=c.lng||c.x,y=c.lat||c.y,p=Math.round((n.x-f)/i),v=-Math.round((n.y-y)/i),h=l.data&&l.data.MatrixWidth&&l.data.MatrixHeight&&{cols:{min:0,max:l.data.MatrixWidth-1},rows:{min:0,max:l.data.MatrixHeight-1}},S=e[s].ranges||h;return S&&!function(t,e,r){return!(tr.cols.max||er.rows.max)}(p,v,S)?null:{ident:u,tilecol:p,tilerow:v}},getTileUrl:function(t){var e=this._map,r=e.options.crs,n=this.options.tileSize,i=t.multiplyBy(n);i.x+=1,i.y-=1;var o=i.add([n,n]),a=r.project(e.unproject(i,t.z)),s=r.project(e.unproject(o,t.z)).x-a.x,u=this.getWMTSParams(h(this.matrixSet),h(this.matrixIds),t.z,a,s);if(!u)return"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";this._urlsIndex++,this._urlsIndex===this._urls.length&&(this._urlsIndex=0);var c=l().Util.template(this._urls[this._urlsIndex],{s:this._getSubdomain(t),TileRow:u.tilerow,TileCol:u.tilecol,TileMatrixSet:this.options.tileMatrixSet,TileMatrix:u.ident,Style:this.options.style});return"RESTful"===this.options.requestEncoding?c:c+l().Util.getParamString(this.wmtsParams,c,!0)+"&tilematrix="+u.ident+"&tilerow="+u.tilerow+"&tilecol="+u.tilecol},getMatrix:function(t,e){return t.map((function(t){return{identifier:t.identifier,topLeftCorner:new(l().LatLng)(e.originY,e.originX),ranges:t.ranges||null}}))},getDefaultMatrix:function(t){for(var e=new Array(22),r=0;r<22;r++)e[r]={identifier:t.tileMatrixPrefix+r,topLeftCorner:new(l().LatLng)(t.originY,t.originX)};return e},onError:function(){return!this.ignoreErrors}});var x=r(701469),w=r.n(x),O=r(333358);l().tileLayer.wmts=function(t,e,r){return new b(t,e,r)};var T=function(t){var e=function(t){return t.map((function(t){return t.split("?")[0]}))}(w()(t.url)?t.url:[t.url]),r=function(t){var e=(0,o.normalizeSRS)(t.srs||"EPSG:3857",t.allowedSRS),r=t.credits&&(0,f.go)(t.credits)||"",n=y.C2(t.tileMatrixSet,e,t.allowedSRS,t.matrixIds);return u()({requestEncoding:t.requestEncoding,layer:t.name,style:t.style||"",attribution:r,format:((0,O.z)(t.format)?"image/png":t.format)||"image/png",tileMatrixSet:n,version:t.version||"1.0.0",tileSize:t.tileSize||256,CRS:(0,o.normalizeSRS)(t.srs||"EPSG:3857",t.allowedSRS),maxZoom:t.maxZoom||23,maxNativeZoom:t.maxNativeZoom||18},t.params||{})}(t)||{};e.forEach((function(e){return(0,c.addAuthenticationParameter)(e,r,t.securityToken)}));var n=(0,o.normalizeSRS)(t.srs||"EPSG:3857",t.allowedSRS),i=y.h7(t,n),a=i.tileMatrixSet,s=i.matrixIds;return l().tileLayer.wmts(e,r,{tileMatrixPrefix:t.tileMatrixPrefix||r.tileMatrixSet+":"||n+":",originY:t.originY||20037508.3428,originX:t.originX||-20037508.3428,ignoreErrors:t.ignoreErrors||!1,matrixIds:s,matrixSet:a})};i().registerType("wmts",{create:T,update:function(t,e,r){return r.securityToken!==e.securityToken||r.format!==e.format||r.credits!==e.credits?T(e):null}})},935701:(t,e,r)=>{t.exports={BingLayer:r(761444),Commons:r(951735),GraticuleLayer:r(790671),GoogleLayer:r(826696),MapQuest:r(352031),OSMLayer:r(151254),TMSLayer:r(135659),TileProviderLayer:r(70826),WFSLayer:r(622946).default,WMSLayer:r(136366),WMTSLayer:r(485365),VectorLayer:r(510733)}},357167:t=>{t.exports=window.MQ},503901:(t,e,r)=>{"use strict";r.d(e,{qR:()=>c,yQ:()=>f});var n=r(375875),i=r.n(n),o=r(581399),a=r.n(o),l=r(882702),s=new(a())(100),u=function(t,e,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-9999,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=n*t+r;try{var l=e.dataView.getInt16(2*a,o);if(l!==i&&32767!==l&&-32768!==l)return l}catch(t){}return null},c=function(t,e,r){return s.has(r)?null:new l.Promise((function(n,o){i().get(t,{responseType:"arraybuffer"}).then((function(t){!function(t,e,r){s.set(r,{data:t,dataView:new DataView(t),coords:e,current:!0,status:"success"})}(t.data,e,r),n()})).catch((function(t){!function(t,e,r){s.set(r,{coords:e,current:!0,status:"error: "+t})}(t.message,e,r),o(t)}))}))},f=function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-9999,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=s.get(t);return o&&"success"===o.status?{available:!0,value:u(r,o,e.x,e.y,n,i)}:o&&"loading"===o.status?{available:!1,message:"elevationLoading"}:o&&"error"===o.status?{available:!1,message:"elevationLoadingError"}:{available:!1,message:"elevationNotAvailable"}}},333358:(t,e,r)=>{"use strict";r.d(e,{z:()=>i});var n=["application/vnd.mapbox-vector-tile","application/json;type=geojson","application/json;type=topojson"],i=function(t){return-1!==n.indexOf(t)}},73785:(t,e,r)=>{var n=r(727418),i={PARAM_OPTIONS:["layers","styles","format","transparent","version","tiled","zindex","_v_","cql_filter","sld"],wmsToLeafletOptions:function(t){var e=void 0!==t.opacity?t.opacity:1;return n({layers:t.name,styles:t.style||"",format:t.format||"image/png",transparent:void 0===t.transparent||t.transparent,tiled:void 0===t.tiled||t.tiled,opacity:e},t.params||{})},getWMSURL:function(t){return t.split("?")[0]},filterWMSParamOptions:function(t){var e={};return Object.keys(t).forEach((function(r){r&&r.toLowerCase&&i.PARAM_OPTIONS.indexOf(r.toLowerCase())>=0&&(e[r]=t[r])})),e}};t.exports=i}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/35701.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/35701.affd309bf2aa3f38d3a0.chunk.js deleted file mode 100644 index 9c34ae30b8..0000000000 --- a/geonode_mapstore_client/static/mapstore/dist/js/35701.affd309bf2aa3f38d3a0.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[35701],{761444:(t,e,r)=>{"use strict";r.r(e);var n=r(845243),i=r.n(n),o=r(244712),a=r.n(o),l=(r(371851),r(727418)),s=r.n(l);i().BingLayer.prototype.loadMetadata=function(){if(!this.metaRequested){this.metaRequested=!0;var t=this,e="_bing_metadata_"+i().Util.stamp(this);window[e]=function(r){t.meta=r,window[e]=void 0;var n=document.getElementById(e);return n.parentNode.removeChild(n),r.errorDetails?(t.fire("load",{layer:t}),t.onError(r)):(t.initMetadata(r),null)};var r="file:"===document.location.protocol?"https":document.location.protocol.slice(0,-1),n=r+"://dev.virtualearth.net/REST/v1/Imagery/Metadata/"+this.options.type+"?include=ImageryProviders&jsonp="+e+"&key="+this._key+"&UriScheme="+r,o=document.createElement("script");o.type="text/javascript",o.src=n,o.id=e,document.getElementsByTagName("head")[0].appendChild(o)}},i().BingLayer.prototype.onError=function(t){return this.options.onError?this.options.onError(t):null},a().registerType("bing",{create:function(t){var e=t.apiKey,r={subdomains:[0,1,2,3],type:t.name,attribution:"Bing",culture:"",onError:t.onError,maxNativeZoom:t.maxNativeZoom||19,maxZoom:t.maxZoom||23};return t.zoomOffset&&(r=s()({},r,{zoomOffset:t.zoomOffset})),new(i().BingLayer)(e,r)},isValid:function(t){return!t.meta||!t.meta.statusCode||200===t.meta.statusCode}})},951735:(t,e,r)=>{var n=r(845243);t.exports=n.TileLayer.extend({initialize:function(t){n.TileLayer.prototype.initialize.call(this,this.url,t)}})},826696:(t,e,r)=>{"use strict";r.r(e);var n=r(244712),i=r.n(n),o=r(845243),a=r.n(o);r(514767),i().registerType("google",(function(t){return(null===(e=window)||void 0===e||null===(r=e.google)||void 0===r?void 0:r.maps)?a().gridLayer.googleMutant({type:t.name.toLowerCase(),maxNativeZoom:t.maxNativeZoom||18,maxZoom:t.maxZoom||20}):null;var e,r}))},790671:(t,e,r)=>{"use strict";r.r(e);var n=r(244712),i=r.n(n),o=r(471305),a=r.n(o),l=r(727418),s=r.n(l);r(522729),i().registerType("graticule",{create:function(t){var e=s()({interval:20,showOriginLabel:!0,redraw:"move"},t);return a()?new(a())(e):null},isValid:function(){return!!a()}})},352031:(t,e,r)=>{"use strict";r.r(e);var n=r(244712),i=r.n(n),o=r(357167),a=r.n(o);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==l(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===l(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}i().registerType("mapquest",{create:function(t){return a()?a().mapLayer(function(t){for(var e=1;e{"use strict";r.r(e);var n=r(244712),i=r.n(n),o=r(845243),a=r.n(o);i().registerType("osm",(function(t){return a().tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'© OpenStreetMap contributors',zoomOffset:t.zoomOffset||0,maxNativeZoom:t.maxNativeZoom||19,maxZoom:t.maxZoom||23})}))},135659:(t,e,r)=>{"use strict";r.r(e);var n=r(244712),i=r.n(n),o=r(845243),a=r.n(o);i().registerType("tms",(function(t){return a().tileLayer("".concat(t.tileMapUrl,"/{z}/{x}/{y}.").concat(t.extension),{hideErrors:t.hideErrors||!0,tms:!0})}))},70826:(t,e,r)=>{"use strict";r.r(e);var n=r(244712),i=r.n(n),o=r(845243),a=r.n(o),l=r(45992);function s(t){return s="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},s(t)}function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function c(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==s(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===s(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r{"use strict";r.r(e);var n=r(244712),i=r.n(n),o=r(618446),a=r.n(o),l=r(414293),s=r.n(l),u=r(845243),c=r.n(u),f=r(166287),y=function t(e,r){e.eachLayer&&e.eachLayer((function(e){e.setOpacity&&e.setOpacity(r),t(e,r)}))},m=function(t){var e,r;return(null==t||null===(e=t.style)||void 0===e?void 0:e.body)&&(null==t||null===(r=t.style)||void 0===r?void 0:r.format)},p=function(t){var e=function(t){var e=t.hideLoading,r=c().geoJson([],{pointToLayer:"marker"!==t.styleName?function(e,r){return c().circleMarker(r,e.style||t.style)}:null,hideLoading:e});return r.setOpacity=function(t){y(r,t)},r.on("layeradd",(function(e){var n=e.layer;r.setOpacity(s()(r.opacity)?t.opacity:r.opacity,n)})),r}(t);return e.opacity=s()(t.opacity)?1:t.opacity,e._msLegacyGeoJSON=!0,e},d=function(t){var e=t.hideLoading,r=c().geoJson(t.features,{hideLoading:e});return(0,f.getStyle)((0,f.applyDefaultStyleToLayer)(t),"leaflet").then((function(e){var n=e&&e({opacity:t.opacity})||{},i=n.style,o=n.pointToLayer,a=void 0===o?function(){return null}:o,l=n.filter,s=void 0===l?function(){return!0}:l;r.clearLayers(),r.options.pointToLayer=a,r.options.filter=s,r.addData(t.features),r.setStyle(i)})),r};i().registerType("vector",{create:function(t){return m(t)?d(t):p(t)},update:function(t,e,r){return t._msLegacyGeoJSON?function(t,e,r){return e.opacity!==r.opacity&&(t.opacity=e.opacity),a()(e.style,r.style)?null:m(e)?d(e):p(e)}(t,e,r):function(t,e,r){return a()(r.style,e.style)&&e.opacity===r.opacity||(0,f.getStyle)((0,f.applyDefaultStyleToLayer)(e),"leaflet").then((function(r){var n=r&&r({opacity:e.opacity})||{},i=n.style,o=n.pointToLayer,a=void 0===o?function(){return null}:o,l=n.filter,s=void 0===l?function(){return!0}:l;t.clearLayers(),t.options.pointToLayer=a,t.options.filter=s,t.addData(e.features),t.setStyle(i)})),null}(t,e,r)},render:function(){return null}})},622946:(t,e,r)=>{"use strict";var n=r(618446),i=r.n(n),o=r(845243),a=r.n(o),l=r(986267),s=r(244712),u=r.n(s),c=r(143378),f=r(432420),y=r(838848),m=r(166287);function p(t){return p="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},p(t)}function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function v(t){for(var e=1;e{"use strict";r.r(e);var n=r(124852),i=r.n(n),o=r(805346),a=r(244712),l=r.n(a),s=r(143378),u=r(73785),c=r.n(u),f=r(845243),y=r.n(f),m=r(727418),p=r.n(m),d=r(701469),v=r.n(d),g=r(414293),h=r.n(g),S=r(233044),b=r(503901),x=r(624262),w=r(333358);function O(t){return O="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(t)}function T(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==O(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==O(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===O(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}r(312787),y().NonTiledLayer.WMSCustom=y().NonTiledLayer.WMS.extend({initialize:function(t,e){this._wmsUrl=t;var r=y().extend({},this.defaultWmsParams);for(var n in e)this.options.hasOwnProperty(n)||"CRS"===n.toUpperCase()||"maxNativeZoom"===n||(r[n]=e[n]);this.wmsParams=r,y().setOptions(this,e)},removeParams:function(){var t=this,e=arguments.length>1?arguments[1]:void 0;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(e){return delete t.wmsParams[e]})),e||this.redraw(),this}}),y().nonTiledLayer.wmsCustom=function(t,e){return new(y().NonTiledLayer.WMSCustom)(t,e)},y().TileLayer.MultipleUrlWMS=y().TileLayer.WMS.extend({initialize:function(t,e){this._url=t[0],this._urls=t,this._urlsIndex=0;var r=y().extend({},this.defaultWmsParams),n=e.tileSize||this.options.tileSize;for(var i in e.detectRetina&&y().Browser.retina?r.width=r.height=2*n:r.width=r.height=n,e)this.options.hasOwnProperty(i)||"CRS"===i.toUpperCase()||"maxNativeZoom"===i||(r[i]=e[i]);this.wmsParams=r,y().setOptions(this,e)},getTileUrl:function(t){var e=this._map,r=this.options.tileSize,n=t.multiplyBy(r),i=n.add([r,r]),o=this._crs.project(e.unproject(n,t.z)),a=this._crs.project(e.unproject(i,t.z)),l=this._wmsVersion>=1.3&&this._crs===y().CRS.EPSG4326?[a.y,o.x,o.y,a.x].join(","):[o.x,a.y,a.x,o.y].join(",");this._urlsIndex++,this._urlsIndex===this._urls.length&&(this._urlsIndex=0);var s=y().Util.template(this._urls[this._urlsIndex],{s:this._getSubdomain(t)});return s+y().Util.getParamString(this.wmsParams,s,!0)+"&BBOX="+l},removeParams:function(){var t=this,e=arguments.length>1?arguments[1]:void 0;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(e){return delete t.wmsParams[e]})),e||this.redraw(),this}}),y().tileLayer.multipleUrlWMS=function(t,e){return new(y().TileLayer.MultipleUrlWMS)(t,e)},y().TileLayer.ElevationWMS=y().TileLayer.MultipleUrlWMS.extend({initialize:function(t,e,r,n){this._tiles={},this._nodata=r,this._littleendian=n,y().TileLayer.MultipleUrlWMS.prototype.initialize.apply(this,arguments)},_addTile:function(t){var e=this.getTileUrl(t);(0,b.qR)(e,t,this._tileCoordsToKey(t))},getElevation:function(t,e){try{var r=this._getTileFromCoords(t),n=(0,b.yQ)(this._tileCoordsToKey(r),this._getTileRelativePixel(r,e),this.getTileSize().x,this._nodata,this._littleendian);return n.available?n.value:i().createElement(o.Z,{msgId:n.message})}catch(t){return i().createElement(o.Z,{msgId:"elevationLoadingError"})}},_getTileFromCoords:function(t){var e=this._map.project(t).divideBy(256).floor();return p()(e,{z:this._tileZoom})},_getTileRelativePixel:function(t,e){var r=Math.floor(e.x-this._getTilePos(t).x-this._map._getMapPanePos().x),n=Math.min(this.getTileSize().x-1,Math.floor(e.y-this._getTilePos(t).y-this._map._getMapPanePos().y));return new(y().Point)(r,n)},_removeTile:function(){},_abortLoading:function(){}}),y().tileLayer.elevationWMS=function(t,e,r,n){return new(y().TileLayer.ElevationWMS)(t,e,r,n)};var P=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(t).reduce((function(e,r){return h()(t[r])?e:p()(e,T({},r,t[r]))}),{})};function L(t){var e=void 0!==t.opacity?t.opacity:1,r=(0,s.v)(t),n=p()({},t.baseParams,{attribution:t.credits&&(0,x.go)(t.credits),layers:t.name,styles:t.style||"",format:((0,w.z)(t.format)?"image/png":t.format)||"image/png",transparent:void 0===t.transparent||t.transparent,tiled:void 0===t.tiled||t.tiled,opacity:e,zIndex:t.zIndex,version:t.version||"1.3.0",tileSize:t.tileSize||256,maxZoom:t.maxZoom||23,maxNativeZoom:t.maxNativeZoom||18},p()(t._v_?{_v_:t._v_}:{},r||{}));return(0,S.addAuthenticationToSLD)(n,t)}function j(t){return t.map((function(t){return t.split("?")[0]}))}l().registerType("wms",{create:function(t){var e=j(v()(t.url)?t.url:[t.url]),r=P(L(t)||{});return e.forEach((function(e){return(0,S.addAuthenticationParameter)(e,r,t.securityToken)})),t.useForElevation?y().tileLayer.elevationWMS(e,r,t.nodata||-9999,t.littleendian||!1):t.singleTile?y().nonTiledLayer.wmsCustom(e[0],r):y().tileLayer.multipleUrlWMS(e,r)},update:function(t,e,r){if(r.singleTile!==e.singleTile||r.tileSize!==e.tileSize||r.securityToken!==e.securityToken&&e.visibility){var n=j(v()(e.url)?e.url:[e.url]),i=L(e)||{};return n.forEach((function(t){return(0,S.addAuthenticationParameter)(t,i,e.securityToken)})),e.singleTile?y().nonTiledLayer.wmsCustom(n[0],i):y().tileLayer.multipleUrlWMS(n,i)}var o=p()({},c().filterWMSParamOptions(L(r)),(0,S.addAuthenticationToSLD)(r.params||{},r)),a=p()({},c().filterWMSParamOptions(L(e)),(0,S.addAuthenticationToSLD)(e.params||{},e)),l=Object.keys(a).filter((function(t){return a[t]!==o[t]})),s=Object.keys(o).filter((function(t){return o[t]!==a[t]})),u={};return s.length>0&&t.removeParams(s,l.length>0),l.length>0&&(u=l.reduce((function(t,e){return p()({},t,T({},e,a[e]))}),u),t.setParams(P(p()(u,u.params,(0,S.addAuthenticationToSLD)(e.params||{},e))))),null}})},485365:(t,e,r)=>{"use strict";r.r(e);var n=r(244712),i=r.n(n),o=r(986267),a=r(845243),l=r.n(a),s=r(727418),u=r.n(s),c=r(233044),f=r(624262),y=r(707294),m=r(552259),p=r(91175),d=r.n(p),v=r(281763),g=r.n(v);function h(t){return function(t){if(Array.isArray(t))return S(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return S(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?S(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=a&&i(n-i)/2?{id:r,data:e}:{id:r+1,data:t[r+1]}:null})).filter((function(t){return t}))),s=l&&g()(l.id)&&l.id+""||0===t.length&&r||null;if(!e[s])return null;var u=e[s].identifier,c=l.data&&l.data.TopLeftCorner&&(0,o.parseString)(l.data.TopLeftCorner)||e[s].topLeftCorner,f=c.lng||c.x,y=c.lat||c.y,p=Math.round((n.x-f)/i),v=-Math.round((n.y-y)/i),h=l.data&&l.data.MatrixWidth&&l.data.MatrixHeight&&{cols:{min:0,max:l.data.MatrixWidth-1},rows:{min:0,max:l.data.MatrixHeight-1}},S=e[s].ranges||h;return S&&!function(t,e,r){return!(tr.cols.max||er.rows.max)}(p,v,S)?null:{ident:u,tilecol:p,tilerow:v}},getTileUrl:function(t){var e=this._map,r=e.options.crs,n=this.options.tileSize,i=t.multiplyBy(n);i.x+=1,i.y-=1;var o=i.add([n,n]),a=r.project(e.unproject(i,t.z)),s=r.project(e.unproject(o,t.z)).x-a.x,u=this.getWMTSParams(h(this.matrixSet),h(this.matrixIds),t.z,a,s);if(!u)return"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";this._urlsIndex++,this._urlsIndex===this._urls.length&&(this._urlsIndex=0);var c=l().Util.template(this._urls[this._urlsIndex],{s:this._getSubdomain(t),TileRow:u.tilerow,TileCol:u.tilecol,TileMatrixSet:this.options.tileMatrixSet,TileMatrix:u.ident,Style:this.options.style});return"RESTful"===this.options.requestEncoding?c:c+l().Util.getParamString(this.wmtsParams,c,!0)+"&tilematrix="+u.ident+"&tilerow="+u.tilerow+"&tilecol="+u.tilecol},getMatrix:function(t,e){return t.map((function(t){return{identifier:t.identifier,topLeftCorner:new(l().LatLng)(e.originY,e.originX),ranges:t.ranges||null}}))},getDefaultMatrix:function(t){for(var e=new Array(22),r=0;r<22;r++)e[r]={identifier:t.tileMatrixPrefix+r,topLeftCorner:new(l().LatLng)(t.originY,t.originX)};return e},onError:function(){return!this.ignoreErrors}});var x=r(701469),w=r.n(x),O=r(333358);l().tileLayer.wmts=function(t,e,r){return new b(t,e,r)};var T=function(t){var e=function(t){return t.map((function(t){return t.split("?")[0]}))}(w()(t.url)?t.url:[t.url]),r=function(t){var e=(0,o.normalizeSRS)(t.srs||"EPSG:3857",t.allowedSRS),r=t.credits&&(0,f.go)(t.credits)||"",n=y.C2(t.tileMatrixSet,e,t.allowedSRS,t.matrixIds);return u()({requestEncoding:t.requestEncoding,layer:t.name,style:t.style||"",attribution:r,format:((0,O.z)(t.format)?"image/png":t.format)||"image/png",tileMatrixSet:n,version:t.version||"1.0.0",tileSize:t.tileSize||256,CRS:(0,o.normalizeSRS)(t.srs||"EPSG:3857",t.allowedSRS),maxZoom:t.maxZoom||23,maxNativeZoom:t.maxNativeZoom||18},t.params||{})}(t)||{};e.forEach((function(e){return(0,c.addAuthenticationParameter)(e,r,t.securityToken)}));var n=(0,o.normalizeSRS)(t.srs||"EPSG:3857",t.allowedSRS),i=y.h7(t,n),a=i.tileMatrixSet,s=i.matrixIds;return l().tileLayer.wmts(e,r,{tileMatrixPrefix:t.tileMatrixPrefix||r.tileMatrixSet+":"||n+":",originY:t.originY||20037508.3428,originX:t.originX||-20037508.3428,ignoreErrors:t.ignoreErrors||!1,matrixIds:s,matrixSet:a})};i().registerType("wmts",{create:T,update:function(t,e,r){return r.securityToken!==e.securityToken||r.format!==e.format||r.credits!==e.credits?T(e):null}})},935701:(t,e,r)=>{t.exports={BingLayer:r(761444),Commons:r(951735),GraticuleLayer:r(790671),GoogleLayer:r(826696),MapQuest:r(352031),OSMLayer:r(151254),TMSLayer:r(135659),TileProviderLayer:r(70826),WFSLayer:r(622946).default,WMSLayer:r(136366),WMTSLayer:r(485365),VectorLayer:r(510733)}},357167:t=>{t.exports=window.MQ},503901:(t,e,r)=>{"use strict";r.d(e,{qR:()=>c,yQ:()=>f});var n=r(375875),i=r.n(n),o=r(581399),a=r.n(o),l=r(882702),s=new(a())(100),u=function(t,e,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-9999,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=n*t+r;try{var l=e.dataView.getInt16(2*a,o);if(l!==i&&32767!==l&&-32768!==l)return l}catch(t){}return null},c=function(t,e,r){return s.has(r)?null:new l.Promise((function(n,o){i().get(t,{responseType:"arraybuffer"}).then((function(t){!function(t,e,r){s.set(r,{data:t,dataView:new DataView(t),coords:e,current:!0,status:"success"})}(t.data,e,r),n()})).catch((function(t){!function(t,e,r){s.set(r,{coords:e,current:!0,status:"error: "+t})}(t.message,e,r),o(t)}))}))},f=function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-9999,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=s.get(t);return o&&"success"===o.status?{available:!0,value:u(r,o,e.x,e.y,n,i)}:o&&"loading"===o.status?{available:!1,message:"elevationLoading"}:o&&"error"===o.status?{available:!1,message:"elevationLoadingError"}:{available:!1,message:"elevationNotAvailable"}}},333358:(t,e,r)=>{"use strict";r.d(e,{z:()=>i});var n=["application/vnd.mapbox-vector-tile","application/json;type=geojson","application/json;type=topojson"],i=function(t){return-1!==n.indexOf(t)}},73785:(t,e,r)=>{var n=r(727418),i={PARAM_OPTIONS:["layers","styles","format","transparent","version","tiled","zindex","_v_","cql_filter","sld"],wmsToLeafletOptions:function(t){var e=void 0!==t.opacity?t.opacity:1;return n({layers:t.name,styles:t.style||"",format:t.format||"image/png",transparent:void 0===t.transparent||t.transparent,tiled:void 0===t.tiled||t.tiled,opacity:e},t.params||{})},getWMSURL:function(t){return t.split("?")[0]},filterWMSParamOptions:function(t){var e={};return Object.keys(t).forEach((function(r){r&&r.toLowerCase&&i.PARAM_OPTIONS.indexOf(r.toLowerCase())>=0&&(e[r]=t[r])})),e}};t.exports=i}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/35820.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/35820.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/35820.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/35820.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/35921.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/35921.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/35921.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/35921.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/36111.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/36111.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/36111.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/36111.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/36128.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/36128.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/36128.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/36128.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/36284.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/36284.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/36284.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/36284.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/3632.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/3632.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/3632.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/3632.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/36369.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/36369.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/36369.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/36369.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/36372.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/36372.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/36372.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/36372.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/36522.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/36522.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/36522.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/36522.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/36553.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/36553.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/36553.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/36553.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/36766.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/36766.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/36766.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/36766.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/36850.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/36850.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/36850.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/36850.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/36882.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/36882.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/36882.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/36882.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/369.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/369.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/369.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/369.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/36942.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/36942.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/36942.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/36942.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/37096.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/37096.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/37096.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/37096.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/37110.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/37110.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/37110.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/37110.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/37225.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/37225.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/37225.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/37225.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/37251.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/37251.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/37251.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/37251.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/37298.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/37298.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/37298.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/37298.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/37406.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/37406.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/37406.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/37406.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/37407.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/37407.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/37407.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/37407.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/3750.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/3750.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/3750.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/3750.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/37677.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/37677.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/37677.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/37677.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/3802.018dc26183efb561a8b1.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/3802.018dc26183efb561a8b1.chunk.js new file mode 100644 index 0000000000..84b5c0a724 --- /dev/null +++ b/geonode_mapstore_client/static/mapstore/dist/js/3802.018dc26183efb561a8b1.chunk.js @@ -0,0 +1 @@ +(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[3802],{691380:(e,t,r)=>{"use strict";r.d(t,{ZY:()=>u,Gv:()=>s});var n=r(124852),o=r.n(n),i=r(775382),a=r(867076),c=r(438482);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{}).overrideWidthProvider;return(0,a.compose)((0,a.defaultProps)({useDefaultWidthProvider:!e}),(function(e){return function(t){return o().createElement(i.Z,{handleWidth:!0},(function(){var r=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).width;return o().createElement(e,l({width:r},t))}))}}))},s=function(e){return(0,a.compose)((0,a.withStateHandlers)((function(){return{}}),{onResize:function(){return function(e){return{height:e.height}}}}),(0,c.Z)(e))}},264945:(e,t,r)=>{"use strict";r.d(t,{Z:()=>C});var n=r(124852),o=r.n(n),i=r(867076),a=r(313311),c=r.n(a),l=r(66604),u=r.n(l),s=r(669968),d=r(227361),f=r.n(d),p=r(91175),y=r.n(p);function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e){for(var t=1;t1?arguments[1]:void 0;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).filter((function(t){return c()(t.widgets,(function(t){return t===e.id}))}))};const C=(0,i.pure)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,r=e.style,n=e.className,i=void 0===n?"":n,a=e.toolsOptions,l=void 0===a?{}:a,s=e.rowHeight,d=void 0===s?150:s,f=e.breakpoints,p=void 0===f?{lg:1200,md:996,sm:768,xs:480,xxs:0}:f,y=e.cols,v=void 0===y?{lg:6,md:6,sm:4,xs:2,xxs:1}:y,g=e.widgetOpts,m=void 0===g?{}:g,b=e.widgets,h=void 0===b?[]:b,O=e.layouts,j=e.dependencies,C=e.verticalCompact,x=void 0!==C&&C,k=e.compactMode,I=e.useDefaultWidthProvider,M=void 0===I||I,F=e.measureBeforeMount,A=e.width,R=e.showGroupColor,Z=e.groups,W=void 0===Z?[]:Z,N=e.canEdit,G=void 0===N||N,L=e.getWidgetClass,z=void 0===L?function(){}:L,V=e.onWidgetClick,_=void 0===V?function(){}:V,q=e.updateWidgetProperty,H=void 0===q?function(){}:q,U=e.deleteWidget,$=void 0===U?function(){}:U,B=e.toggleCollapse,Q=void 0===B?function(){}:B,K=e.toggleMaximize,J=void 0===K?function(){}:K,Y=e.editWidget,X=void 0===Y?function(){}:Y,ee=e.onLayoutChange,te=void 0===ee?function(){}:ee,re=e.language,ne=e.env,oe=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,w),ie=h.filter((function(e){var t=e.mapSync,r=e.dependenciesMap;return t&&r})).map((function(e){return e.dependenciesMap})),ae=function(e){return"table"===e.widgetType&&ie.filter((function(t){return Object.keys(t).filter((function(r){return t[r]&&-1!==t[r].indexOf(e.id)})).length>0})).length>0};return o().createElement(E,{key:t||"widgets-view",useDefaultWidthProvider:M,measureBeforeMount:F,width:M?void 0:A,isResizable:G,isDraggable:G,draggableHandle:".draggableHandle",onLayoutChange:te,preventCollision:!0,style:r,className:"widget-container ".concat(i," ").concat(G?"":"no-drag"),rowHeight:d,autoSize:!0,verticalCompact:x,compactMode:k,breakpoints:p,cols:v,layouts:O?JSON.parse(JSON.stringify(u()(O,(function(e){return e.map((function(e){var t=c()(h,{id:e.i});return t?P(P({},e),{},{isResizable:t.dataGrid&&t.dataGrid.isResizable,isDraggable:t.dataGrid&&t.dataGrid.isDraggable,static:t.dataGrid&&t.dataGrid.static}):e}))})))):void 0},h.map((function(e){return o().createElement("div",{key:e.id,"data-grid":e.dataGrid,onClick:function(){return _(e)},className:z(e)},o().createElement(D,S({"data-grid":e.dataGrid},oe,e,{widgetOpts:m,quickFilters:ae(e)?e.quickFilters:void 0,toolsOptions:l,groups:T(W,e),showGroupColor:R,dependencies:j,enableColumnFilters:ae(e),canEdit:G,updateProperty:function(){return H.apply(void 0,arguments)},toggleCollapse:function(){return Q(e)},toggleMaximize:function(){return J(e)},onDelete:function(){return $(e)},onEdit:function(){return X(e)},language:re,env:ne})))})))}))},394583:(e,t,r)=>{"use strict";r.d(t,{Z:()=>zt});var n=r(124852),o=r.n(n),i=r(867076),a=r(12425),c=r(839860);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{},t=e.gridEvents,r=void 0===t?{}:t,n=e.updateProperty,o=void 0===n?function(){}:n,i=e.id,a=y()((function(){return o.apply(void 0,arguments)}),500);return{gridEvents:m(m({},r),{},{onAddFilter:function(e){return a(i,"quickFilters.".concat(e.attribute),e)},onColumnResize:function(e,t,r,n,a,c){return o(i,'options.columnSettings["'.concat(f()(c.filter((function(e){return!e.hide}))[e],"name"),'"].width'),t)}})}})),a.Z,(0,c.tR)(),(0,c.E6)(),(0,c.um)(),(0,i.withPropsOnChange)(["gridEvents"],(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.gridEvents,r=void 0===t?{}:t,n=e.updateProperty,o=void 0===n?function(){}:n,i=e.id;return{gridEvents:m(m({},r),{},{onGridSort:function(e,t){return o(i,"sortOptions",{sortBy:e,sortOrder:t})}})}})));var h=r(213314);const O=(0,i.compose)(a.Z,(0,c.tR)(),(0,c.G5)(),(0,c.E6)(),(0,c.um)()),w=(0,i.compose)(a.Z,(0,c.tR)(),(0,c.E6)(),(0,c.um)());var S=r(387017),j=r(39589),P=r(264721),E=r.n(P),D=r(682492),T=r.n(D),C=r(378889),x=r(273849),k=r(49977),I=r.n(k),M=r(886850),F=r(624262),A=r(196958);const R=function(e){return e.switchMap((function(e){var t=e.layer,r=void 0===t?{}:t,n=e.options,o=void 0===n?{}:n,i=e.filter,a=e.onLoad,c=void 0===a?function(){}:a,l=e.onLoadError,u=void 0===l?function(){}:l;return(0,M.Mc)(r,i,{timeout:15e3,params:{propertyName:(0,A._Q)(o.propertyName),viewParams:o.viewParams}}).map((function(){return{loading:!1,error:void 0}})).do((function(e){return c({features:e.features,pagination:{totalFeatures:e.totalFeatures}})})).catch((function(e){return I().Observable.of({loading:!1,error:e,data:[]}).do(u)}))}))};function Z(e){return Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Z(e)}function W(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function N(e){for(var t=1;t2&&void 0!==arguments[2])||arguments[2];return(r=e,r.filter((function(e){var t=e.layer;return(void 0===t?{}:t).name})).distinctUntilChanged((function(e,t){var r=e.layer,n=void 0===r?{}:r,o=e.options,i=void 0===o?{}:o,a=e.filter,c=e.sortOptions;return t.layer&&n.name===t.layer.name&&n.loadingError===t.layer.loadingError&&function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.propertyName===t.propertyName&&e.viewParams===t.viewParams}(i,t.options)&&a===t.filter&&function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.sortBy===t.sortBy&&e.sortOrder===t.sortOrder}(c,t.sortOptions)})).map((function(e){return N(N({},e),{},{features:[],pages:[],pagination:{}})}))).let(n?function(e){return function(t){return t.switchMap((function(t){var r=t.layer,n=void 0===r?{}:r,o=t.size,i=void 0===o?20:o,a=t.maxStoredPages,c=void 0===a?5:a,l=t.filter,u=t.options,s=void 0===u?{}:u,d=t.sortOptions,f=t.pages,p=t.features,y=void 0===p?[]:p,v=t.onLoad,g=void 0===v?function(){}:v,m=t.onLoadError,b=void 0===m?function(){}:m;return e.switchMap((function(e,t){var r=e.pagesRange,o=e.pagination,a=void 0===o?{}:o;return function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(t),(0,M.Mc)(n,l,z(z({},(0,A.S9)(r,f,i)),{},{sortOptions:d,timeout:15e3,totalFeatures:a.totalFeatures,propertyName:(0,A._Q)(s.propertyName),viewParams:s.viewParams})).do((function(e){return g(z(z({},(0,A.f1)(e,r,{pages:f,features:y},z(z({},(0,A.S9)(r,f,i)),{},{size:i,maxStoredPages:c}))),{},{pagination:{totalFeatures:e.totalFeatures}}))})).map((function(){return{loading:!1}})).catch((function(e){return I().Observable.of({loading:!1,error:e}).do(b)})).startWith({loading:!0})}))}))}}(t.withLatestFrom(e.map((function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).pagination;return{pagination:void 0===e?{}:e}})),(function(e,t){return q({pagesRange:e},t)}))):R).startWith({})},$=function(e){var t,r=(0,i.createEventHandler)(),n=r.handler,o=r.stream;return(t=e,t.distinctUntilChanged((function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).layer,t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).layer;return(0,F.Tt)(e)===(0,F.Tt)(t)&&e.loadingError===t.loadingError})).switchMap((function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).layer;return(0,M.v$)({layer:e}).map((function(e){return{describeFeatureType:e.data,loading:!1,error:void 0}})).catch((function(e){return I().Observable.of({loading:!1,error:e})}))}))).combineLatest(U(e,o.startWith({startPage:0,endPage:1})),(function(e,t){return q(q(q({},e),t),{},{pageEvents:{moreFeatures:n,onPageChange:function(){}}})})).startWith({loading:!0})};const B=(0,i.compose)((0,i.defaultProps)({virtualScroll:!0,size:20,maxStoredPages:5}),(0,i.withStateHandlers)({pages:[],features:[],pagination:{}},{setData:function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{pages:e.pages,features:e.features,pagination:e.pagination,error:void 0}}}}),(0,i.withHandlers)({onLoad:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.setData,r=void 0===t?function(){}:t,n=e.onLoad,o=void 0===n?function(){}:n;return function(){r.apply(void 0,arguments),o.apply(void 0,arguments)}}}),(0,i.withProps)((function(){return{dataStreamFactory:$}})),x.Z,(0,i.withProps)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.options,r=void 0===t?{}:t,n=e.describeFeatureType,o=e.columnSettings,i=void 0===o?{}:o;return{columnSettings:T()(n?(0,C.getFeatureTypeProperties)(n).filter((function(e){return!E()((0,A._Q)(r.propertyName)||[],e.name)})).reduce((function(e,t){return q(q({},e),{},H({},t.name,{hide:!0}))}),{}):{},r.columnSettings||{},i)}})));var Q=r(630881),K=r(908488),J=r(873339),Y=r(505055),X=r.n(Y),ee=r(441609),te=r.n(ee),re=r(618446),ne=r.n(re),oe=r(670956),ie=r(199767),ae=r(27835);var ce=r(47805),le=r(761868),ue=r(552259);function se(e){return se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},se(e)}function de(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function fe(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.mapSync,r=e.dependencies;return t&&(!te()(r.quickFilters)||!te()(r.filter))}),(0,i.compose)((0,i.withPropsOnChange)(["id"],(function(e){var t=e.hookRegister;return{hookRegister:(void 0===t?null:t)||(0,ue.createRegisterHooks)()}})),(0,i.mapPropsStream)((function(e){return e.distinctUntilChanged((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return ne()(e.dependencies.quickFilters,t.dependencies.quickFilters)&&ne()(e.dependencies.filter,t.dependencies.filter)&&ne()(e.dependencies.layer,t.dependencies.layer)})).debounceTime(500).switchMap((function(e){var t=e.mapSync,r=e.dependencies,n=void 0===r?{}:r,o=e.filter,i=e.hookRegister;if(!t||te()(n.layer))return k.Observable.of({loading:!1});var a={};n.quickFilters&&(a=fe(fe({},a),(0,oe.r$)(o,n.quickFilters,n.options))),n.filter&&(a=fe(fe({},a),(0,ce.composeAttributeFilters)([a,n.filter])));var c=n&&n.layer&&n.layer.name;if(!te()(a)){a=fe(fe({},a),{},{options:fe(fe({},a.options||{}),{},{noSchemaLocation:!0})});var l=(0,ce.toOGCFilter)(c,a,"1.1.0");return function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,ae.mG)(e,(r=t.wfsGetFeature,(0,ae.Uh)("gs:Bounds",[(0,ie.qP)("features",(0,ie.fA)("text/xml","http://geoserver/wfs","POST",r))],(0,ie.DK)((0,ie.En)("bounds","application/json")))),{},n)}((0,F.ZA)(n.layer),{wfsGetFeature:l}).switchMap((function(e){var t,r,n;if(X().parseString(e,{explicitArray:!1},(function(e,o){t=o["ows:BoundingBox"],r=t["ows:LowerCorner"].split(" "),n=t["ows:UpperCorner"].split(" ")})),"0.0 0.0"===t["ows:LowerCorner"]&&"-1.0 -1.0"===t["ows:UpperCorner"])return k.Observable.of({loading:!1});var o={minx:parseFloat(r[0]),miny:parseFloat(r[1]),maxx:parseFloat(n[0]),maxy:parseFloat(n[1])},a=i.getHook(ue.ZOOM_TO_EXTENT_HOOK);return a&&a(o,{crs:"EPSG:4326",maxZoom:21}),k.Observable.of({loading:!1})})).startWith({loading:!0}).catch((function(e){return k.Observable.of({error:"error getting bounds from filter",details:e})}))}return k.Observable.of({loading:!1})})).combineLatest(e,(function(e){var t=e.loading,r=void 0!==t&&t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,le.t8)("loading",r,n)}))})))));var ye=r(313311),ve=r.n(ye),ge=r(143378);function me(e){return me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},me(e)}function be(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function he(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.mapSync,r=e.dependencies,n=void 0===r?{}:r,o=e.maps,i=void 0===o?[]:o,a=e.selectedMapId,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=arguments.length>2?arguments[2]:void 0;return t!==c.mapSync||!ne()(n,c.dependencies)||!ne()(i,c.maps)||l!==c.filter||a!==c.selectedMapId}),(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mapSync,r=e.dependencies,n=void 0===r?{}:r,o=e.filter,i=void 0===o?{}:o,a=e.maps,c=void 0===a?[]:a,l=e.selectedMapId,u=n&&n.layer&&n.layer.name,s=ve()(c,(function(e){return e.mapId===l}));if(s){var d=ve()(null==s?void 0:s.layers,{name:u})||{},f={},p={},y=void 0;return t&&!te()(d)&&(n.quickFilters&&(f=he(he({},f),(0,oe.r$)(i,n.quickFilters,n.options))),n.filter&&(f=he(he({},f),(0,ce.composeAttributeFilters)([f,n.filter]))),!te()(f)&&(0,ce.toCQLFilter)(f))?(y=(0,ce.toCQLFilter)(f),p=(0,le.cc)(!1,he(he({},d),{},{params:(0,ge.v)({params:{CQL_FILTER:y}},d&&d.params&&d.params.CQL_FILTER)}),{name:u},s.layers),{maps:(0,le.cc)(!1,he(he({},s),{},{layers:p}),{mapId:l},c)}):(p=s.layers.map((function(e){return he(he({},e),{},{params:he(he({},e.params),{},{CQL_FILTER:void 0})})})),{maps:(0,le.cc)(!1,he(he({},s),{},{layers:p}),{mapId:l},c)})}return{maps:c}}))),we=function(e){return(0,i.withPropsOnChange)((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.mapSync,n=t.dependencies,o=void 0===n?{}:n,a=t.selectedMapId,c=arguments.length>1?arguments[1]:void 0,l=c.mapSync,u=c.dependencies,s=c.selectedMapId;return u&&(0,i.shallowEqual)(o[e],u[e])||r===l||a===s}),(function(t){var r=t.maps,n=void 0===r?[]:r,o=t.mapSync,i=t.dependencies,a=void 0===i?{}:i,c=t.selectedMapId,l=ve()(n,{mapId:c})||{},u=a[e]&&o?(0,le.t8)(e,a[e],l):l;return{mapStateSource:"__dependency_system__",maps:n.map((function(e){return e.mapId===u.mapId?u:e})),map:u}}))};var Se=r(480681);function je(e){return je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},je(e)}var Pe=["data"];function Ee(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function De(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.data,r=void 0===t?[]:t,n=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,Pe),i=Object.keys(r.reduce((function(e,t){return De(De({},e),t)}),{}));return o().createElement("div",{className:"mapstore-widget-table"},o().createElement(Se.Table,{striped:!0},o().createElement("thead",null,o().createElement("tr",null,i.map((function(e,t){return o().createElement("th",null,t+1===i.length&&n.yAxisLabel?n.yAxisLabel:t>0?"".concat(e):e)})))),o().createElement("tbody",null,r.map((function(e){return o().createElement("tr",null,i.map((function(t){return o().createElement("td",null,e[t])})))})))))};var Ce=r(496259),xe=r(173014),ke=r(342415),Ie=r(639837),Me=r(351990),Fe=(0,xe.Z)()((0,ke.Z)((0,Ie.Z)(Me.Z)));const Ae=function(e){return o().createElement("div",{className:"mapstore-widget-chart"},o().createElement(Ce.Z,null,o().createElement(Fe,e)))};var Re=r(805346),Ze=r(965539),We=r(572688),Ne=r(743129),Ge=r(294184),Le=r.n(Ge),ze=r(38560);const Ve=function(e){var t,r,i,a=e.options,c=a.dropdownWidgets.length>1,l=a.dropdownWidgets.length-1,u=a.dropdownWidgets.findIndex((function(e){return e.id===a.activeWidget.id})),s=u===l?0:u+1,d=0===u?l:u-1;return o().createElement("div",{className:"widget-selector"},c?o().createElement(ze.Z,{className:"previous-widget btn-sm no-border",onPointerDown:function(){return a.setActiveWidget(a.dropdownWidgets[d])}},o().createElement(Se.Glyphicon,{glyph:"arrow-left"})):null,o().createElement(Ne.ZP,{openOnFocus:!0,clearable:!1,searchable:!1,value:{id:a.activeWidget.id,label:null!==(t=a.activeWidget.title)&&void 0!==t?t:null===(r=a.activeWidget)||void 0===r||null===(i=r.layer)||void 0===i?void 0:i.title},onChange:function(e){return a.setActiveWidget(a.dropdownWidgets.find((function(t){return t.id===e.value})))},options:(0,n.useMemo)((function(){return a.dropdownWidgets.map((function(e){var t,r;return{value:e.id,label:null!==(t=e.title)&&void 0!==t?t:null==e||null===(r=e.layer)||void 0===r?void 0:r.title,active:e.id===a.activeWidget.id}}))}),[a.dropdownWidgets]),optionComponent:function(e){var t=e.option,r=e.onSelect;return o().createElement("div",{className:Le()({"Select-option":!0,"is-focused":t.active}),onPointerDown:function(e){return r(t,e)}},t.label)}}),c?o().createElement(ze.Z,{className:"next-widget btn-sm no-border",onPointerDown:function(){return a.setActiveWidget(a.dropdownWidgets[s])}},o().createElement(Se.Glyphicon,{glyph:"arrow-right"})):null)},_e=function(e){var t=e.id,r=e.title,n=e.confirmDelete,i=void 0!==n&&n,a=e.className,c=e.isDraggable,l=void 0===c||c,u=e.toggleDeleteConfirm,s=void 0===u?function(){}:u,d=e.onDelete,f=void 0===d?function(){}:d,p=e.icons,y=e.topLeftItems,v=e.topRightItems,g=e.headerStyle,m=void 0===g?{}:g,b=e.options,h=void 0===b?{}:b,O=e.children;return o().createElement("div",{className:"mapstore-widget-card ".concat(h.singleWidget?"single-widget":""),id:t},o().createElement(Ze.Z,{className:a,header:o().createElement("div",{style:m,className:"mapstore-widget-info ".concat(l?"draggableHandle":"")},o().createElement("div",{className:"mapstore-widget-header"},o().createElement("span",{className:"widget-icons"},p),y,h.singleWidget?o().createElement(Ve,{options:h}):o().createElement("span",{className:"widget-title"},r),o().createElement("span",{className:"mapstore-widget-options"},v)))},O),i?o().createElement(We.Z,{confirmText:o().createElement(Re.Z,{msgId:"widgets.widget.menu.delete"}),titleText:o().createElement(Re.Z,{msgId:"widgets.widget.menu.delete"}),body:o().createElement(Re.Z,{msgId:"widgets.widget.menu.confirmDelete"}),show:i,onClose:function(){return s(!1)},onConfirm:function(){return f(t)}}):null)};var qe=["id","title","description","headerStyle","data","series","loading","icons","showTable","topRightItems","confirmDelete","dataGrid","onDelete","toggleTableView","toggleDeleteConfirm"];function He(){return He=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.showTable,r=e.toggleTableView,n=void 0===r?function(){}:r;return t?o().createElement(Se.Glyphicon,{onClick:function(){n()},glyph:"arrow-left pull-left"}):null};var $e=r(982030),Be=r(599707),Qe=(0,$e.Z)((function(){return!(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).text}),(function(){return{glyph:"sheet",messageId:"widgets.errors.notext"}}),Be.Z)((function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).text;return o().createElement("div",{className:"mapstore-widget-default-content ql-editor",dangerouslySetInnerHTML:{__html:e}})})),Ke=r(957557),Je=r.n(Ke),Ye=r(975480),Xe=r(892936),et=r(193190);function tt(e){return tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tt(e)}var rt=["layers"];function nt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ot(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,rt);return r(n,"maps",t,"merge")}}})(Xe.Z),ct=r(118027);function lt(e){return lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lt(e)}function ut(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function st(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.describeFeatureType,r=e.options,n=e.quickFilterStream$;return t?{filterRenderers:(0,A.Lo)(t).reduce((function(e,t){var o=t.localType,a=t.name,c=function(e){var t=e.options,r=e.localType,n=e.attributeName,o=e.quickFilterStream$;return(0,i.compose)((0,i.withProps)({quickFilterStream$:o,attributeName:n,options:t}),ft)((0,ct.Q)(r,{name:n}))}({options:r,localType:o,attributeName:a,quickFilterStream$:n});return st(st({},e),{},dt({},a,c))}),{})}:{}}))),vt=r(830029);function gt(e){return gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gt(e)}function mt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function bt(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.showTable,r=e.toggleTableView,n=void 0===r?function(){}:r;return t?o().createElement(Se.Glyphicon,{onClick:function(){n()},glyph:"arrow-left pull-left"}):null},Ct=r(946173),xt=r(70919),kt=["toggleDeleteConfirm","id","title","icons","headerStyle","confirmDelete","topRightItems","dataGrid","onDelete"];var It=(0,Ct.Z)()(xt.Z),Mt=(0,i.compose)(J.Z,Q.Z,K.Z,S.Z,u)((function(e){var t=e.id,r=e.title,n=e.description,i=e.headerStyle,a=e.data,c=void 0===a?[]:a,l=e.series,u=void 0===l?[]:l,s=e.loading,d=e.icons,f=e.showTable,p=e.topRightItems,y=e.confirmDelete,v=void 0!==y&&y,g=e.dataGrid,m=void 0===g?{}:g,b=e.onDelete,h=void 0===b?function(){}:b,O=e.toggleTableView,w=void 0===O?function(){}:O,S=e.toggleDeleteConfirm,j=void 0===S?function(){}:S,P=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,qe);return o().createElement(_e,{id:"widget-chart-".concat(t),headerStyle:i,isDraggable:m.isDraggable,title:r,icons:d,topLeftItems:Ue({loading:s,title:r,description:n,showTable:f,toggleTableView:w}),confirmDelete:v,onDelete:h,toggleDeleteConfirm:j,topRightItems:p,options:null==P?void 0:P.options},f?o().createElement(Te,He({data:c},P)):o().createElement(Ae,He({id:t,isAnimationActive:!s,loading:s,data:c,series:u,iconFit:!0},P)))})),Ft=(0,i.compose)(O)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.toggleDeleteConfirm,r=void 0===t?function(){}:t,n=e.icons,i=e.topLeftItems,a=e.id,c=e.title,l=e.text,u=e.headerStyle,s=e.topRightItems,d=e.options,f=void 0===d?{}:d,p=e.dataGrid,y=void 0===p?{}:p,v=e.confirmDelete,g=void 0!==v&&v,m=e.onDelete,b=void 0===m?function(){}:m;return o().createElement(_e,{id:"widget-text-".concat(a),title:c,confirmDelete:g,onDelete:b,toggleDeleteConfirm:r,headerStyle:u,isDraggable:y.isDraggable,icons:n,topLeftItems:i,topRightItems:s,options:f},o().createElement(Qe,{text:l}))})),At=(0,i.compose)(J.Z,Oe,we("center"),we("zoom"),pe,w)((function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.updateProperty,n=void 0===r?function(){}:r,i=t.toggleDeleteConfirm,a=void 0===i?function(){}:i,c=t.id,l=t.title,u=t.map,s=void 0===u?{}:u,d=t.maps,f=void 0===d?[]:d,p=t.selectedMapId,y=t.icons,v=t.hookRegister,g=t.mapStateSource,m=t.topRightItems,b=t.options,h=void 0===b?{}:b,O=t.confirmDelete,w=void 0!==O&&O,S=t.loading,j=void 0!==S&&S,P=t.dataGrid,E=void 0===P?{}:P,D=t.onDelete,T=void 0===D?function(){}:D,C=t.headerStyle,x=t.env,k=t.selectionActive,I=s.size,M=void 0===I?{}:I,F=M.height,A=M.width,R=s.mapInfoControl,Z=F>400&&A>400&&R;return o().createElement(_e,{className:"map-widget-view",id:"widget-text-".concat(c),title:l,confirmDelete:w,onDelete:T,toggleDeleteConfirm:a,headerStyle:C,icons:y,topRightItems:[o().createElement(et.Z,{className:"map-switcher",maps:f,onChange:function(){for(var e=arguments.length,t=new Array(e),r=0;r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,Et);return o().createElement(_e,{className:"counter-widget",id:"widget-chart-".concat(t),title:r,isDraggable:m.isDraggable,icons:y,topLeftItems:Tt({loading:u,title:r,description:n,showTable:s,toggleTableView:h}),confirmDelete:f,onDelete:j,toggleDeleteConfirm:w,headerStyle:p,topRightItems:v,options:null==P?void 0:P.options},o().createElement(Pt.Z,Dt({id:t,isAnimationActive:!u,loading:u,data:a,series:l,iconFit:!0},P)))})),Wt=(0,i.compose)(J.Z,h.Z)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.toggleDeleteConfirm,r=void 0===t?function(){}:t,n=e.id,i=e.title,a=e.icons,c=e.headerStyle,l=e.confirmDelete,u=void 0!==l&&l,s=e.topRightItems,d=e.dataGrid,f=void 0===d?{}:d,p=e.onDelete,y=void 0===p?function(){}:p,v=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,kt);return o().createElement(_e,{id:"widget-text-".concat(n),title:i,confirmDelete:u,onDelete:y,toggleDeleteConfirm:r,headerStyle:c,icons:a,topRightItems:s,isDraggable:f.isDraggable,options:null==v?void 0:v.options},o().createElement(It,v))})),Nt=["dependencies","toggleCollapse","exportCSV","exportImage","onDelete","onEdit"];function Gt(){return Gt=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.dependencies,r=e.toggleCollapse,n=void 0===r?function(){}:r,i=e.exportCSV,a=void 0===i?function(){}:i,c=e.exportImage,l=void 0===c?function(){}:c,u=e.onDelete,s=void 0===u?function(){}:u,d=e.onEdit,f=void 0===d?function(){}:d,p=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,Nt);return"text"===p.widgetType?o().createElement(Ft,Gt({},p,{toggleCollapse:n,onDelete:s,onEdit:f})):"table"===p.widgetType?o().createElement(Rt,Gt({},p,Lt(p),{toggleCollapse:n,exportCSV:a,dependencies:t,onDelete:s,onEdit:f})):"counter"===p.widgetType?o().createElement(Zt,Gt({},p,Lt(p),{toggleCollapse:n,dependencies:t,onDelete:s,onEdit:f})):"map"===p.widgetType?o().createElement(At,Gt({},p,Lt(p),{toggleCollapse:n,dependencies:t,onDelete:s,onEdit:f})):"legend"===p.widgetType?o().createElement(Wt,Gt({},p,Lt(p),{toggleCollapse:n,dependencies:t,onDelete:s,onEdit:f})):o().createElement(Mt,Gt({},p,Lt(p),{toggleCollapse:n,exportCSV:a,dependencies:t,exportImage:l,onDelete:s,onEdit:f}))}},688395:(e,t,r)=>{"use strict";r.d(t,{ZP:()=>z});var n=r(49977),o=r.n(n),i=r(666654),a=r.n(i),c=r(218721),l=r.n(c),u=r(227361),s=r.n(u),d=r(264721),f=r.n(d),p=r(618446),y=r.n(p),v=r(957557),g=r.n(v),m=r(114176),b=r.n(m),h=r(557579),O=r(881808),w=r(401757),S=r(580416),j=r(675110),P=r(324684),E=r(769293),D=r(555927),T=r(275982),C=r(178598),x=r(989077),k=r(117542),I=r.n(k),M=r(246781);function F(e){return F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},F(e)}function A(e){return function(e){if(Array.isArray(e))return R(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return R(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?R(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{}).type===T.nk}))},L=function(e,t,r,n){return o().Observable.of((0,h.Rz)("mapSync",e),(0,h.Rz)("dependenciesMap",function(e,t,r){var n,o=r.dependenciesMap,i=r.mappings,c=["layer","filter","quickFilters","options"],l=["layers","viewport","zoom","center"],u=(h.oU.exec(t)||[])[1],s=b()(o,(function(e){return-1===e.indexOf(u)})),d=Object.keys(i).filter((function(e){return void 0!==i[e]})).reduce((function(e,r){return!a()(t,"map")&&f()(c,r)?W(W({},e),{},N({},r,"".concat(t,".").concat(i[r]))):a()(t,"map")?f()(l,r)?W(W({},e),{},N({},r,"map"===t?i[r]:"".concat(t.replace(/.map$/,""),".").concat(i[r]))):W(W({},e),{},N({},r,"".concat(t.replace(/.map$/,""),".").concat(i[r]))):e}),{}),p=t.split(".maps")[0];return e?W(W(W({},s),d),{},(N(n={},"dependenciesMap","".concat(p,".dependenciesMap")),N(n,"mapSync","".concat(p,".mapSync")),n)):g()(s,[Object.keys(i)])}(e,t,r)))};const z={exportWidgetData:function(e){return e.ofType(h.Km).do((function(e){var t=e.data,r=void 0===t?[]:t,n=e.title,o=void 0===n?"data":n;return I().json2csv(r,(function(e,t){return e?null:(0,C.saveAs)(new Blob([t],{type:"text/csv"}),o+".csv")}))})).filter((function(){return!1}))},alignDependenciesToWidgets:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).getState,r=void 0===t?function(){}:t;return e.ofType(O.ok,D.E9,h.Jm).map((function(){return(0,w.jx)(r())})).pluck("availableDependencies").distinctUntilChanged((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return y()(A(e),A(t))})).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(0,h._k)(e.reduce((function(e,t){var r,n,o=t.split(".maps")[0],i=t.replace(/.map$/,"");return a()(t,"map")?W(W({},e),{},(N(r={},"".concat(o,".dependenciesMap"),"".concat(o,".dependenciesMap")),N(r,"".concat(o,".mapSync"),"".concat(o,".mapSync")),N(r,"map"===t?"viewport":"".concat(i,".viewport"),"".concat(i,".bbox")),N(r,"map"===t?"center":"".concat(i,".center"),"".concat(i,".center")),N(r,"map"===t?"zoom":"".concat(i,".zoom"),"".concat(i,".zoom")),N(r,"map"===t?"layers":"".concat(i,".layers"),"map"===t?"layers.flat":"".concat(i,".layers")),r)):W(W({},e),{},(N(n={},"".concat(t,".filter"),"".concat(t,".filter")),N(n,"".concat(t,".quickFilters"),"".concat(t,".quickFilters")),N(n,"".concat(o,".dependenciesMap"),"".concat(o,".dependenciesMap")),N(n,"".concat(o,".mapSync"),"".concat(o,".mapSync")),N(n,"".concat(t,".layer"),"".concat(t,".layer")),N(n,"".concat(t,".options"),"".concat(t,".options")),n))}),{}))}))},toggleWidgetConnectFlow:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).getState,r=void 0===t?function(){}:t;return e.ofType(h.LH).switchMap((function(t){var n=t.active,i=t.availableDependencies,a=void 0===i?[]:i,c=t.options;return n&&a.length>0?1===a.length?L(n,a[0],c):o().Observable.of((0,h.kr)(n,{availableDependencies:a})).merge(e.ofType(h.V5).filter((function(){return(0,w.xI)(r())})).switchMap((function(e){var t=e.widget,i=s()((0,w.r0)(r()),"availableDependencies").filter((function(e){return(h.oU.exec(e)||[])[1]===t.id}));return"map"===t.widgetType&&(i=i.filter((function(e){return(h.jB.exec(e)||[])[2]===t.selectedMapId}))),L(n,i[0],c,t.dependeciesMap).concat(o().Observable.of((0,h.kr)(!1,{})))})).takeUntil(e.ofType(T.nk).merge(e.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type,r=e.key;return t===h.Cz&&r===h.jv}))))):L(n,a[0],c)}))},clearWidgetsOnLocationChange:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).getState,r=void 0===t?function(){}:t;return e.ofType(O.ok).switchMap((function(){var t=(0,P.F)(r()).split("/"),n=t[t.length-1];return e.let(G).filter((function(){var e=(0,P.F)(r()).split("/");return e[e.length-1]!==n})).switchMap((function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).payload,t=void 0===e?{}:e;return t&&t.location&&t.location.pathname?o().Observable.of((0,h.K4)()):o().Observable.empty()}))}))},exportWidgetImage:function(e){return e.ofType(h.pV).do((function(e){var t,n,o=e.widgetDivId,i=e.title,a=void 0===i?"data":i,c=document.createElement("canvas"),l=document.querySelector("#".concat(o," .recharts-wrapper svg")),u=l.outerHTML?l.outerHTML:(t=l,(n=document.createElement("div")).appendChild(t.cloneNode(!0)),n.innerHTML);r.e(59425).then(r.t.bind(r,459425,23)).then((function(e){(0,e.default)(c,u,{renderCallback:function(){var e=c.getContext("2d");e.globalCompositeOperation="destination-over",e.fillStyle="#fff",e.fillRect(0,0,c.width,c.height),(0,x.RP)(c.toDataURL("image/jpeg",1),"".concat(a,".jpg"),"image/jpeg")}})}))})).filter((function(){return!1}))},updateLayerOnLayerPropertiesChange:function(e,t){return e.ofType(S.yS).switchMap((function(e){var r,n=e.layer,i=e.newProperties,a=t.getState(),c=(0,j.CA)(a,n);return(r=o().Observable).of.apply(r,A(l()(i,"layerFilter")&&c?[(0,h.Ko)(c)]:[]))}))},updateLayerOnLoadingErrorChange:function(e,t){return e.ofType(S.x9,S.vs).groupBy((function(e){return e.layerId})).map((function(e){return e.switchMap((function(e){var r,n=e.layerId,i=t.getState(),a=(0,j.CA)(i,n);return(r=o().Observable).of.apply(r,A(a&&a.previousLoadingError!==a.loadingError?[(0,h.Ko)(a)]:[]))}))})).mergeAll()},updateDependenciesMapOnMapSwitch:function(e,t){return e.ofType(h.$A).filter((function(e){var t=e.key;return f()(["maps","selectedMapId"],t)})).switchMap((function(e){var r=e.id,n=e.value,i=o().Observable.empty(),a="string"==typeof n?n:null==n?void 0:n.mapId;if(a){var c=(0,w.zm)(t.getState()),l=(0,M.IO)(c,r,a);y()(c,l)||(i=o().Observable.of((0,h.sZ)(l)))}return i}))}}},875859:(e,t,r)=>{"use strict";r.d(t,{Z:()=>I});var n=r(557579),o=r(881808),i=r(555927),a=r(727418),c=r.n(a),l=r(728252),u=r.n(l),s=r(227361),d=r.n(s),f=r(313311),p=r.n(f),y=r(957557),v=r.n(y),g=r(66604),m=r.n(g),b=r(984596),h=r.n(b),O=r(414293),w=r.n(O),S=r(761868);function j(e){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},j(e)}function P(e){return function(e){if(Array.isArray(e))return T(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||D(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||D(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(e,t){if(e){if("string"==typeof e)return T(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?T(e,t):void 0}}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:k,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case n.Cz:return u()("builder.settings.".concat(r.key),r.value,t);case n.n8:return u()("builder.editor",r.widget,u()("builder.settings",r.settings||k.settings,t));case n.dm:return u()("builder.editor",x(x({},r.widget),{},{widgetType:r.widget&&r.widget.widgetType||"chart"}),u()("builder.settings.step","chart"===(r.widget&&r.widget.widgetType||"chart")?1:0,t));case n.BV:if(r.key.includes("maps")&&!w()(r.value)){var a,l=r.value,s=E(n.h9.exec(r.key)||[],3),f=s[1],y=s[2];if(f){var g=d()(t,"builder.editor.maps",[]);l=u()(y,r.value,g.find((function(e){return e.mapId===f})))}return(0,S.vy)("builder.editor.maps",l,{mapId:f||(null===(a=r.value)||void 0===a?void 0:a.mapId)},t)}return u()("builder.editor.".concat(r.key),r.value,t);case n.Jm:return(0,S.vy)("containers[".concat(r.target,"].widgets"),x(x({id:r.id},r.widget),{},{dataGrid:r.id&&{y:0,x:0,w:1,h:1}}),{id:r.widget.id||r.id},t);case n.J5:var b="containers[".concat(r.target,"].widgets");return d()(t,b)?u()(b,r.widgets,t):t;case n.$A:var O=p()(d()(t,"containers[".concat(r.target,"].widgets")),{id:r.id}),j=r.value;return"merge"===r.mode&&(j="maps"===r.key?O.maps.map((function(e){var t;return e.mapId===(null===(t=r.value)||void 0===t?void 0:t.mapId)?x(x({},e),null==r?void 0:r.value):e})):c()({},O[r.key],r.value)),(0,S.vy)("containers[".concat(r.target,"].widgets"),u()(r.key,j,O),{id:r.id},t);case n.eb:if(r.layer){var D=d()(t,"containers[".concat(n.VR,"].widgets"));if(D)return u()("containers[".concat(n.VR,"].widgets"),D.map((function(e){return d()(e,"layer.id")===r.layer.id?u()("layer",r.layer,e):e})),t)}return t;case n.yY:var T="containers[".concat(n.VR,"].widgets"),C=(0,S.z6)("containers[".concat(r.target,"].widgets"),{id:r.widget.id},t),I=d()(C,T,[]);return u()(T,I.map((function(e){if(e.dependenciesMap){var t=E(n.oU.exec((Object.values(e.dependenciesMap)||[])[0]),2)[1];if(t&&r.widget.id===t)return x(x({},v()(e,"dependenciesMap")),{},{mapSync:!1})}return e})),t);case i.E9:var M=r.data;return u()("containers[".concat(n.VR,"]"),x({},M),t);case o.ok:var F=(r.config||{}).widgetsConfig;return u()("containers[".concat(n.VR,"]"),x({},F),t);case n.v8:return u()("containers[".concat(r.target,"].layout"),r.layout)(u()("containers[".concat(r.target,"].layouts"),r.allLayouts,t));case n.ff:case i.R4:return u()("containers[".concat(n.VR,"]"),k.containers[n.VR],t);case n.S0:var A=r.key,R=r.value;return u()("dependencies[".concat(A,"]"),R,t);case n.Q6:var Z=r.key;return u()("dependencies[".concat(Z,"]"),null,t);case n.kb:var W=r.dependencies;return u()("dependencies",W,t);case n.GV:return u()("dependencies",k.dependencies,t);case n.Ym:var N=r.widget,G=void 0===N?{}:N;if(G.dataGrid&&G.dataGrid.static)return t;var L=d()(t,"containers[".concat(r.target,"].collapsed[").concat(G.id));if(L){var z=[].concat(P(d()(t,"containers[".concat(r.target,"].layout"),[])),P(h()(d()(L,"layout",[])))),V=m()(d()(t,"containers[".concat(r.target,"].layouts"),{}),(function(){var e=arguments.length>1?arguments[1]:void 0;return[].concat(P(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]),P(h()(d()(L,"layouts[".concat(e,"]"),[]))))}));return v()((0,S.qC)(u()("containers[".concat(r.target,"].layout"),z),u()("containers[".concat(r.target,"].layouts"),V))(t),"containers[".concat(r.target,"].collapsed[").concat(G.id,"]"))}return u()("containers[".concat(r.target,"].collapsed[").concat(G.id,"]"),{layout:p()(d()(t,"containers[".concat(r.target,"].layout"),[]),{i:G.id}),layouts:m()(d()(t,"containers[".concat(r.target,"].layouts"),{}),(function(e){return p()(e,{i:G.id})}))},t);case n.ke:var _,q,H,U,$,B,Q,K,J,Y,X,ee,te,re,ne,oe,ie,ae,ce=r.widget,le=null==t||null===(_=t.containers)||void 0===_||null===(q=_[r.target])||void 0===q?void 0:q.maximized;if(!ce||null!==(H=ce.dataGrid)&&void 0!==H&&H.static)return t;if(null!=le&&le.widget)return(0,S.qC)(u()("containers[".concat(r.target,"].layout"),le.layout),u()("containers[".concat(r.target,"].layouts"),le.layouts),u()("containers[".concat(r.target,"].maximized"),{}),u()("containers[".concat(r.target,"].widgets"),null==t||null===(oe=t.containers)||void 0===oe||null===(ie=oe[r.target])||void 0===ie||null===(ae=ie.widgets)||void 0===ae?void 0:ae.map((function(e){return e.id===le.widget.id?x(x({},e),{},{dataGrid:x(x({},e.dataGrid),{},{isDraggable:!0,isResizable:!0})}):e}))))(t);if(null!=t&&null!==(U=t.containers)&&void 0!==U&&null!==($=U[r.target])&&void 0!==$&&null!==(B=$.collapsed)&&void 0!==B&&B[ce.id])return t;var ue=x(x({},p()(null==t||null===(Q=t.containers)||void 0===Q||null===(K=Q[r.target])||void 0===K?void 0:K.layout,{i:ce.id})),{x:0,y:0,w:1,h:1});return(0,S.qC)(u()("containers[".concat(r.target,"].maximized"),{widget:ce,layout:null==t||null===(J=t.containers)||void 0===J||null===(Y=J[r.target])||void 0===Y?void 0:Y.layout,layouts:null==t||null===(X=t.containers)||void 0===X||null===(ee=X[r.target])||void 0===ee?void 0:ee.layouts}),u()("containers[".concat(r.target,"].layout"),[ue]),u()("containers[".concat(r.target,"].layouts"),{xxs:[ue]}),u()("containers[".concat(r.target,"].widgets"),null==t||null===(te=t.containers)||void 0===te||null===(re=te[r.target])||void 0===re||null===(ne=re.widgets)||void 0===ne?void 0:ne.map((function(e){return e.id===ce.id?x(x({},e),{},{dataGrid:x(x({},e.dataGrid),{},{isDraggable:!1,isResizable:!1})}):e}))))(t);case n.uU:var se=d()(t,"containers[".concat(r.target,"].widgets"),[]).filter((function(e){return!e.dataGrid||!e.dataGrid.static})),de=se.filter((function(e){return d()(t,"containers[".concat(r.target,"].collapsed[").concat(e.id,"]"))})),fe=se.filter((function(e){return!d()(t,"containers[".concat(r.target,"].collapsed[").concat(e.id,"]"))}));return 0===fe.length?de.reduce((function(t,r){return e(t,(0,n.f)(r))}),t):fe.length>0?fe.reduce((function(t,r){return e(t,(0,n.f)(r))}),t):t;case n.nw:return u()("tray",r.value,t);default:return t}}},510284:(e,t,r)=>{"use strict";r.d(t,{sw:()=>g,oB:()=>m});var n=r(49977),o=r.n(n),i=r(227361),a=r.n(i),c=r(505055),l=r(507526);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function s(e){var t="function"==typeof Map?new Map:void 0;return s=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return d(e,arguments,y(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),p(n,e)},s(e)}function d(e,t,r){return d=f()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&p(o,r.prototype),o},d.apply(null,arguments)}function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}r(849843);var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(i,e);var t,r,n,o=(r=i,n=f(),function(){var e,t=y(r);if(n){var o=y(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(e,t){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(r=o.call(this,e)).name="OGCError",r.code=t,r}return t=i,Object.defineProperty(t,"prototype",{writable:!1}),t}(s(Error)),g=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{tagNameProcessors:[l.stripPrefix],explicitArray:!1,mergeAttrs:!0};return o().Observable.bindNodeCallback((function(e,r){return(0,c.parseString)(e,t,r)}))(e)},m=function(e){return e.switchMap((function(e){return"string"==typeof e.data&&e.data.indexOf("ExceptionReport")>0?o().Observable.bindNodeCallback((function(e,t){return(0,c.parseString)(e,{tagNameProcessors:[l.stripPrefix],explicitArray:!1,mergeAttrs:!0},t)}))(e.data).map((function(e){var t=a()(e,"ExceptionReport.Exception.ExceptionText");throw new v(t||"Undefined OGC Service Error",a()(e,"ExceptionReport.Exception.exceptionCode"))})):o().Observable.of(e)}))}},55237:(e,t,r)=>{"use strict";r.d(t,{tr:()=>w,jb:()=>S,Xu:()=>j,un:()=>P,Qn:()=>E,_q:()=>D,og:()=>T,$4:()=>C,kN:()=>x,oD:()=>k,V$:()=>I,uH:()=>M,pC:()=>F,tz:()=>A,p:()=>R});var n=r(747037),o=r.n(n),i=r(647960),a=r.n(i),c=r(227361),l=r.n(c),u=r(984596),s=r.n(u),d=r(730381),f=r.n(d),p=r(86638);function y(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||g(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||g(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){if(e){if("string"==typeof e)return m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?m(e,t):void 0}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{},t=e.start,r=e.end,n=e.duration,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.start,a=o.end;if(!i||!a)return{count:O({start:t,end:r,duration:n}),start:t,end:r};var c=f().duration(n).asMilliseconds(),l=new Date(t).getTime(),u=new Date(r).getTime(),s=new Date(i).getTime(),d=new Date(a).getTime(),p=Math.ceil((s-l)/c),y=Math.floor((d-l)/c),v=Math.floor((u-l)/c);if(p>=0&&y<=v){var g=y-p;return{start:new Date(l+Math.max(0,p)*c),end:new Date(l+Math.min(v,y)*c),count:g}}return{count:O({start:t,end:r,duration:n}),start:t,end:r}},P=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.start,r=e.end,n=arguments.length>1?arguments[1]:void 0,o=new Date(t),i=new Date(r),a=Math.floor(i.getTime()-o.getTime())/n;return{range:{start:t,end:r},resolution:f().duration(a).toISOString().match(b)[0]}},E=function(){var e,t,r=arguments.length>1?arguments[1]:void 0,n=(e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],(t=arguments.length>2?arguments[2]:void 0)?e.map((function(e){var r=v(e.split("/"),2);return{start:r[0],end:r[1]}[t]})):e);return n[function(e,t){var r=h(t),n=1/0,o=-1;return e.forEach((function(e,t){var i=h(e),a=Math.abs(i-r);a0},T=function(e,t){var r=f()(e).diff(t);return{start:r>=0?t:e,end:r>=0?e:t}},C=function(e){return 6e4*e.getTimezoneOffset()},x=function(e){var t=e;!a()(e)&o()(e)&&(t=new Date(e));var r=t.getUTCHours();r=r<10?"0"+r:r;var n=t.getUTCMinutes();n=n<10?"0"+n:n;var i=t.getUTCSeconds();return i=i<10?"0"+i:i,"".concat(r,":").concat(n,":").concat(i)},k=function(e){var t=e;!a()(e)&o()(e)&&(t=new Date(e));var r=t.getUTCMonth()+1,n=t.getUTCDate();return r=r<10?"0"+r:r,n=n<10?"0"+n:n,"".concat(t.getUTCFullYear(),"-").concat(r,"-").concat(n)},I=function(e,t){var r=(0,p.mh)(e),n="HH:mm:SS";switch(t){case"time":return n;case"date":return r;default:return r+" "+n}},M=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).Domains,t=void 0===e?{}:e,r=arguments.length>1?arguments[1]:void 0,n=s()(t.DimensionDomain||[]).concat(),o=t["@version"]||t.version,i=l()(t,"SpaceDomain.BoundingBox");return i&&n.push({Identifier:"space",Domain:i}),n.map((function(e){var t=e.Identifier,n=e.Domain;return{source:{type:"multidim-extension",version:o,url:r},name:t,domain:n}}))},F=function(e,t,r){var n=h(t),o=h(r);return e.reduce((function(e,t){var r=h(t);return h(n)r?[].concat(y(e),[t]):y(e)}),[])},A=function(e){var t=e.reduce((function(e,t){if(-1!==t.indexOf("/")){var r=v(t.split("/"),2),n=r[0],o=r[1];return[].concat(y(e),[n,o])}return[].concat(y(e),[t])}),[]).sort();return[t[0],t[t.length-1]]},R=function(e,t,r){var n=f()(e);return("add"===r?n.add(t,"seconds"):n.subtract(t,"seconds")).toISOString()}}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/3802.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/3802.affd309bf2aa3f38d3a0.chunk.js deleted file mode 100644 index 42bd919b7f..0000000000 --- a/geonode_mapstore_client/static/mapstore/dist/js/3802.affd309bf2aa3f38d3a0.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[3802],{691380:(e,t,r)=>{"use strict";r.d(t,{ZY:()=>u,Gv:()=>s});var n=r(124852),o=r.n(n),i=r(775382),a=r(867076),c=r(438482);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{}).overrideWidthProvider;return(0,a.compose)((0,a.defaultProps)({useDefaultWidthProvider:!e}),(function(e){return function(t){return o().createElement(i.Z,{handleWidth:!0},(function(){var r=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).width;return o().createElement(e,l({width:r},t))}))}}))},s=function(e){return(0,a.compose)((0,a.withStateHandlers)((function(){return{}}),{onResize:function(){return function(e){return{height:e.height}}}}),(0,c.Z)(e))}},264945:(e,t,r)=>{"use strict";r.d(t,{Z:()=>k});var n=r(124852),o=r.n(n),i=r(867076),a=r(313311),c=r.n(a),l=r(66604),u=r.n(l),s=r(669968),f=r(227361),d=r.n(f),p=r(91175),y=r.n(p);function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e){for(var t=1;t1?arguments[1]:void 0;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).filter((function(t){return c()(t.widgets,(function(t){return t===e.id}))}))};const k=(0,i.pure)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,r=e.style,n=e.className,i=void 0===n?"":n,a=e.toolsOptions,l=void 0===a?{}:a,s=e.rowHeight,f=void 0===s?150:s,d=e.breakpoints,p=void 0===d?{lg:1200,md:996,sm:768,xs:480,xxs:0}:d,y=e.cols,g=void 0===y?{lg:6,md:6,sm:4,xs:2,xxs:1}:y,v=e.widgetOpts,m=void 0===v?{}:v,b=e.widgets,h=void 0===b?[]:b,O=e.layouts,w=e.dependencies,P=e.verticalCompact,D=void 0!==P&&P,k=e.compactMode,I=e.useDefaultWidthProvider,M=void 0===I||I,F=e.measureBeforeMount,A=e.width,R=e.showGroupColor,Z=e.groups,W=void 0===Z?[]:Z,N=e.canEdit,G=void 0===N||N,L=e.getWidgetClass,z=void 0===L?function(){}:L,V=e.onWidgetClick,_=void 0===V?function(){}:V,q=e.updateWidgetProperty,H=void 0===q?function(){}:q,U=e.deleteWidget,$=void 0===U?function(){}:U,B=e.toggleCollapse,Q=void 0===B?function(){}:B,K=e.toggleMaximize,J=void 0===K?function(){}:K,Y=e.editWidget,X=void 0===Y?function(){}:Y,ee=e.onLayoutChange,te=void 0===ee?function(){}:ee,re=e.language,ne=e.env,oe=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,S),ie=h.filter((function(e){var t=e.mapSync,r=e.dependenciesMap;return t&&r})).map((function(e){return e.dependenciesMap})),ae=function(e){return"table"===e.widgetType&&ie.filter((function(t){return Object.keys(t).filter((function(r){return t[r]&&-1!==t[r].indexOf(e.id)})).length>0})).length>0};return o().createElement(T,{key:t||"widgets-view",useDefaultWidthProvider:M,measureBeforeMount:F,width:M?void 0:A,isResizable:G,isDraggable:G,draggableHandle:".draggableHandle",onLayoutChange:te,preventCollision:!0,style:r,className:"widget-container ".concat(i," ").concat(G?"":"no-drag"),rowHeight:f,autoSize:!0,verticalCompact:D,compactMode:k,breakpoints:p,cols:g,layouts:O?JSON.parse(JSON.stringify(u()(O,(function(e){return e.map((function(e){var t=c()(h,{id:e.i});return t?E(E({},e),{},{isResizable:t.dataGrid&&t.dataGrid.isResizable,isDraggable:t.dataGrid&&t.dataGrid.isDraggable,static:t.dataGrid&&t.dataGrid.static}):e}))})))):void 0},h.map((function(e){return o().createElement("div",{key:e.id,"data-grid":e.dataGrid,onClick:function(){return _(e)},className:z(e)},o().createElement(C,j({"data-grid":e.dataGrid},oe,e,{widgetOpts:m,quickFilters:ae(e)?e.quickFilters:void 0,toolsOptions:l,groups:x(W,e),showGroupColor:R,dependencies:w,enableColumnFilters:ae(e),canEdit:G,updateProperty:function(){return H.apply(void 0,arguments)},toggleCollapse:function(){return Q(e)},toggleMaximize:function(){return J(e)},onDelete:function(){return $(e)},onEdit:function(){return X(e)},language:re,env:ne})))})))}))},394583:(e,t,r)=>{"use strict";r.d(t,{Z:()=>Bt});var n=r(124852),o=r.n(n),i=r(867076),a=r(12425),c=r(839860);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{},t=e.gridEvents,r=void 0===t?{}:t,n=e.updateProperty,o=void 0===n?function(){}:n,i=e.id,a=y()((function(){return o.apply(void 0,arguments)}),500);return{gridEvents:m(m({},r),{},{onAddFilter:function(e){return a(i,"quickFilters.".concat(e.attribute),e)},onColumnResize:function(e,t,r,n,a,c){return o(i,'options.columnSettings["'.concat(d()(c.filter((function(e){return!e.hide}))[e],"name"),'"].width'),t)}})}})),a.Z,(0,c.tR)(),(0,c.E6)(),(0,c.um)(),(0,i.withPropsOnChange)(["gridEvents"],(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.gridEvents,r=void 0===t?{}:t,n=e.updateProperty,o=void 0===n?function(){}:n,i=e.id;return{gridEvents:m(m({},r),{},{onGridSort:function(e,t){return o(i,"sortOptions",{sortBy:e,sortOrder:t})}})}})));var O=r(213314);const w=(0,i.compose)(a.Z,(0,c.tR)(),(0,c.G5)(),(0,c.E6)(),(0,c.um)()),S=(0,i.compose)(a.Z,(0,c.tR)(),(0,c.E6)(),(0,c.um)());var j=r(387017),P=r(39589),E=r(264721),D=r.n(E),T=r(682492),C=r.n(T),x=r(378889),k=r(273849),I=r(49977),M=r.n(I),F=r(886850),A=r(624262),R=r(196958);const Z=function(e){return e.switchMap((function(e){var t=e.layer,r=void 0===t?{}:t,n=e.options,o=void 0===n?{}:n,i=e.filter,a=e.onLoad,c=void 0===a?function(){}:a,l=e.onLoadError,u=void 0===l?function(){}:l;return(0,F.Mc)(r,i,{timeout:15e3,params:{propertyName:(0,R._Q)(o.propertyName),viewParams:o.viewParams}}).map((function(){return{loading:!1,error:void 0}})).do((function(e){return c({features:e.features,pagination:{totalFeatures:e.totalFeatures}})})).catch((function(e){return M().Observable.of({loading:!1,error:e,data:[]}).do(u)}))}))};function W(e){return W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},W(e)}function N(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function G(e){for(var t=1;t2&&void 0!==arguments[2])||arguments[2];return(r=e,r.filter((function(e){var t=e.layer;return(void 0===t?{}:t).name})).distinctUntilChanged((function(e,t){var r=e.layer,n=void 0===r?{}:r,o=e.options,i=void 0===o?{}:o,a=e.filter,c=e.sortOptions;return t.layer&&n.name===t.layer.name&&n.loadingError===t.layer.loadingError&&function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.propertyName===t.propertyName&&e.viewParams===t.viewParams}(i,t.options)&&a===t.filter&&function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.sortBy===t.sortBy&&e.sortOrder===t.sortOrder}(c,t.sortOptions)})).map((function(e){return G(G({},e),{},{features:[],pages:[],pagination:{}})}))).let(n?function(e){return function(t){return t.switchMap((function(t){var r=t.layer,n=void 0===r?{}:r,o=t.size,i=void 0===o?20:o,a=t.maxStoredPages,c=void 0===a?5:a,l=t.filter,u=t.options,s=void 0===u?{}:u,f=t.sortOptions,d=t.pages,p=t.features,y=void 0===p?[]:p,g=t.onLoad,v=void 0===g?function(){}:g,m=t.onLoadError,b=void 0===m?function(){}:m;return e.switchMap((function(e,t){var r=e.pagesRange,o=e.pagination,a=void 0===o?{}:o;return function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(t),(0,F.Mc)(n,l,_(_({},(0,R.S9)(r,d,i)),{},{sortOptions:f,timeout:15e3,totalFeatures:a.totalFeatures,propertyName:(0,R._Q)(s.propertyName),viewParams:s.viewParams})).do((function(e){return v(_(_({},(0,R.f1)(e,r,{pages:d,features:y},_(_({},(0,R.S9)(r,d,i)),{},{size:i,maxStoredPages:c}))),{},{pagination:{totalFeatures:e.totalFeatures}}))})).map((function(){return{loading:!1}})).catch((function(e){return M().Observable.of({loading:!1,error:e}).do(b)})).startWith({loading:!0})}))}))}}(t.withLatestFrom(e.map((function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).pagination;return{pagination:void 0===e?{}:e}})),(function(e,t){return $({pagesRange:e},t)}))):Z).startWith({})},K=function(e){var t,r=(0,i.createEventHandler)(),n=r.handler,o=r.stream;return(t=e,t.distinctUntilChanged((function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).layer,t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).layer;return(0,A.Tt)(e)===(0,A.Tt)(t)&&e.loadingError===t.loadingError})).switchMap((function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).layer;return(0,F.v$)({layer:e}).map((function(e){return{describeFeatureType:e.data,loading:!1,error:void 0}})).catch((function(e){return M().Observable.of({loading:!1,error:e})}))}))).combineLatest(Q(e,o.startWith({startPage:0,endPage:1})),(function(e,t){return $($($({},e),t),{},{pageEvents:{moreFeatures:n,onPageChange:function(){}}})})).startWith({loading:!0})};const J=(0,i.compose)((0,i.defaultProps)({virtualScroll:!0,size:20,maxStoredPages:5}),(0,i.withStateHandlers)({pages:[],features:[],pagination:{}},{setData:function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{pages:e.pages,features:e.features,pagination:e.pagination,error:void 0}}}}),(0,i.withHandlers)({onLoad:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.setData,r=void 0===t?function(){}:t,n=e.onLoad,o=void 0===n?function(){}:n;return function(){r.apply(void 0,arguments),o.apply(void 0,arguments)}}}),(0,i.withProps)((function(){return{dataStreamFactory:K}})),k.Z,(0,i.withProps)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.options,r=void 0===t?{}:t,n=e.describeFeatureType,o=e.columnSettings,i=void 0===o?{}:o;return{columnSettings:C()(n?(0,x.getFeatureTypeProperties)(n).filter((function(e){return!D()((0,R._Q)(r.propertyName)||[],e.name)})).reduce((function(e,t){return $($({},e),{},B({},t.name,{hide:!0}))}),{}):{},r.columnSettings||{},i)}})));var Y=r(630881),X=r(908488),ee=r(873339),te=r(505055),re=r.n(te),ne=r(441609),oe=r.n(ne),ie=r(618446),ae=r.n(ie),ce=r(670956),le=r(199767),ue=r(27835);var se=r(47805),fe=r(761868),de=r(552259);function pe(e){return pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pe(e)}function ye(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ge(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.mapSync,r=e.dependencies;return t&&(!oe()(r.quickFilters)||!oe()(r.filter))}),(0,i.compose)((0,i.withPropsOnChange)(["id"],(function(e){var t=e.hookRegister;return{hookRegister:(void 0===t?null:t)||(0,de.createRegisterHooks)()}})),(0,i.mapPropsStream)((function(e){return e.distinctUntilChanged((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return ae()(e.dependencies.quickFilters,t.dependencies.quickFilters)&&ae()(e.dependencies.filter,t.dependencies.filter)&&ae()(e.dependencies.layer,t.dependencies.layer)})).debounceTime(500).switchMap((function(e){var t=e.mapSync,r=e.dependencies,n=void 0===r?{}:r,o=e.filter,i=e.hookRegister;if(!t||oe()(n.layer))return I.Observable.of({loading:!1});var a={};n.quickFilters&&(a=ge(ge({},a),(0,ce.r$)(o,n.quickFilters,n.options))),n.filter&&(a=ge(ge({},a),(0,se.composeAttributeFilters)([a,n.filter])));var c=n&&n.layer&&n.layer.name;if(!oe()(a)){a=ge(ge({},a),{},{options:ge(ge({},a.options||{}),{},{noSchemaLocation:!0})});var l=(0,se.toOGCFilter)(c,a,"1.1.0");return function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,ue.mG)(e,(r=t.wfsGetFeature,(0,ue.Uh)("gs:Bounds",[(0,le.qP)("features",(0,le.fA)("text/xml","http://geoserver/wfs","POST",r))],(0,le.DK)((0,le.En)("bounds","application/json")))),{},n)}((0,A.ZA)(n.layer),{wfsGetFeature:l}).switchMap((function(e){var t,r,n;if(re().parseString(e,{explicitArray:!1},(function(e,o){t=o["ows:BoundingBox"],r=t["ows:LowerCorner"].split(" "),n=t["ows:UpperCorner"].split(" ")})),"0.0 0.0"===t["ows:LowerCorner"]&&"-1.0 -1.0"===t["ows:UpperCorner"])return I.Observable.of({loading:!1});var o={minx:parseFloat(r[0]),miny:parseFloat(r[1]),maxx:parseFloat(n[0]),maxy:parseFloat(n[1])},a=i.getHook(de.ZOOM_TO_EXTENT_HOOK);return a&&a(o,{crs:"EPSG:4326",maxZoom:21}),I.Observable.of({loading:!1})})).startWith({loading:!0}).catch((function(e){return I.Observable.of({error:"error getting bounds from filter",details:e})}))}return I.Observable.of({loading:!1})})).combineLatest(e,(function(e){var t=e.loading,r=void 0!==t&&t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,fe.t8)("loading",r,n)}))})))));var be=r(313311),he=r.n(be),Oe=r(143378);function we(e){return we="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},we(e)}function Se(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function je(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.mapSync,r=e.dependencies,n=void 0===r?{}:r,o=e.maps,i=void 0===o?[]:o,a=e.selectedMapId,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=arguments.length>2?arguments[2]:void 0;return t!==c.mapSync||!ae()(n,c.dependencies)||!ae()(i,c.maps)||l!==c.filter||a!==c.selectedMapId}),(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mapSync,r=e.dependencies,n=void 0===r?{}:r,o=e.filter,i=void 0===o?{}:o,a=e.maps,c=void 0===a?[]:a,l=e.selectedMapId,u=n&&n.layer&&n.layer.name,s=he()(c,(function(e){return e.mapId===l}));if(s){var f=he()(null==s?void 0:s.layers,{name:u})||{},d={},p={},y=void 0;return t&&!oe()(f)&&(n.quickFilters&&(d=je(je({},d),(0,ce.r$)(i,n.quickFilters,n.options))),n.filter&&(d=je(je({},d),(0,se.composeAttributeFilters)([d,n.filter]))),!oe()(d)&&(0,se.toCQLFilter)(d))?(y=(0,se.toCQLFilter)(d),p=(0,fe.cc)(!1,je(je({},f),{},{params:(0,Oe.v)({params:{CQL_FILTER:y}},f&&f.params&&f.params.CQL_FILTER)}),{name:u},s.layers),{maps:(0,fe.cc)(!1,je(je({},s),{},{layers:p}),{mapId:l},c)}):(p=s.layers.map((function(e){return je(je({},e),{},{params:je(je({},e.params),{},{CQL_FILTER:void 0})})})),{maps:(0,fe.cc)(!1,je(je({},s),{},{layers:p}),{mapId:l},c)})}return{maps:c}}))),De=function(e){return(0,i.withPropsOnChange)((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.mapSync,n=t.dependencies,o=void 0===n?{}:n,a=t.selectedMapId,c=arguments.length>1?arguments[1]:void 0,l=c.mapSync,u=c.dependencies,s=c.selectedMapId;return u&&(0,i.shallowEqual)(o[e],u[e])||r===l||a===s}),(function(t){var r=t.maps,n=void 0===r?[]:r,o=t.mapSync,i=t.dependencies,a=void 0===i?{}:i,c=t.selectedMapId,l=he()(n,{mapId:c})||{},u=a[e]&&o?(0,fe.t8)(e,a[e],l):l;return{mapStateSource:"__dependency_system__",maps:n.map((function(e){return e.mapId===u.mapId?u:e})),map:u}}))};var Te=r(480681);function Ce(e){return Ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ce(e)}var xe=["data"];function ke(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ie(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.data,r=void 0===t?[]:t,n=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,xe),i=Object.keys(r.reduce((function(e,t){return Ie(Ie({},e),t)}),{}));return o().createElement("div",{className:"mapstore-widget-table"},o().createElement(Te.Table,{striped:!0},o().createElement("thead",null,o().createElement("tr",null,i.map((function(e,t){return o().createElement("th",null,t+1===i.length&&n.yAxisLabel?n.yAxisLabel:t>0?"".concat(e):e)})))),o().createElement("tbody",null,r.map((function(e){return o().createElement("tr",null,i.map((function(t){return o().createElement("td",null,e[t])})))})))))};var Ae=r(496259),Re=r(173014),Ze=r(342415),We=r(639837),Ne=r(351990),Ge=(0,Re.Z)()((0,Ze.Z)((0,We.Z)(Ne.Z)));const Le=function(e){return o().createElement("div",{className:"mapstore-widget-chart"},o().createElement(Ae.Z,null,o().createElement(Ge,e)))};var ze=r(805346),Ve=r(965539),_e=r(572688),qe=r(743129),He=r(294184),Ue=r.n(He),$e=r(38560);const Be=function(e){var t,r,i,a=e.options,c=a.dropdownWidgets.length>1,l=a.dropdownWidgets.length-1,u=a.dropdownWidgets.findIndex((function(e){return e.id===a.activeWidget.id})),s=u===l?0:u+1,f=0===u?l:u-1;return o().createElement("div",{className:"widget-selector"},c?o().createElement($e.Z,{className:"previous-widget btn-sm no-border",onPointerDown:function(){return a.setActiveWidget(a.dropdownWidgets[f])}},o().createElement(Te.Glyphicon,{glyph:"arrow-left"})):null,o().createElement(qe.ZP,{openOnFocus:!0,clearable:!1,searchable:!1,value:{id:a.activeWidget.id,label:null!==(t=a.activeWidget.title)&&void 0!==t?t:null===(r=a.activeWidget)||void 0===r||null===(i=r.layer)||void 0===i?void 0:i.title},onChange:function(e){return a.setActiveWidget(a.dropdownWidgets.find((function(t){return t.id===e.value})))},options:(0,n.useMemo)((function(){return a.dropdownWidgets.map((function(e){var t,r;return{value:e.id,label:null!==(t=e.title)&&void 0!==t?t:null==e||null===(r=e.layer)||void 0===r?void 0:r.title,active:e.id===a.activeWidget.id}}))}),[a.dropdownWidgets]),optionComponent:function(e){var t=e.option,r=e.onSelect;return o().createElement("div",{className:Ue()({"Select-option":!0,"is-focused":t.active}),onPointerDown:function(e){return r(t,e)}},t.label)}}),c?o().createElement($e.Z,{className:"next-widget btn-sm no-border",onPointerDown:function(){return a.setActiveWidget(a.dropdownWidgets[s])}},o().createElement(Te.Glyphicon,{glyph:"arrow-right"})):null)},Qe=function(e){var t=e.id,r=e.title,n=e.confirmDelete,i=void 0!==n&&n,a=e.className,c=e.isDraggable,l=void 0===c||c,u=e.toggleDeleteConfirm,s=void 0===u?function(){}:u,f=e.onDelete,d=void 0===f?function(){}:f,p=e.icons,y=e.topLeftItems,g=e.topRightItems,v=e.headerStyle,m=void 0===v?{}:v,b=e.options,h=void 0===b?{}:b,O=e.children;return o().createElement("div",{className:"mapstore-widget-card ".concat(h.singleWidget?"single-widget":""),id:t},o().createElement(Ve.Z,{className:a,header:o().createElement("div",{style:m,className:"mapstore-widget-info ".concat(l?"draggableHandle":"")},o().createElement("div",{className:"mapstore-widget-header"},o().createElement("span",{className:"widget-icons"},p),y,h.singleWidget?o().createElement(Be,{options:h}):o().createElement("span",{className:"widget-title"},r),o().createElement("span",{className:"mapstore-widget-options"},g)))},O),i?o().createElement(_e.Z,{confirmText:o().createElement(ze.Z,{msgId:"widgets.widget.menu.delete"}),titleText:o().createElement(ze.Z,{msgId:"widgets.widget.menu.delete"}),body:o().createElement(ze.Z,{msgId:"widgets.widget.menu.confirmDelete"}),show:i,onClose:function(){return s(!1)},onConfirm:function(){return d(t)}}):null)};var Ke=["id","title","description","headerStyle","data","series","loading","icons","showTable","topRightItems","confirmDelete","dataGrid","onDelete","toggleTableView","toggleDeleteConfirm"];function Je(){return Je=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.showTable,r=e.toggleTableView,n=void 0===r?function(){}:r;return t?o().createElement(Te.Glyphicon,{onClick:function(){n()},glyph:"arrow-left pull-left"}):null};var Xe=r(982030),et=r(599707),tt=(0,Xe.Z)((function(){return!(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).text}),(function(){return{glyph:"sheet",messageId:"widgets.errors.notext"}}),et.Z)((function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).text;return o().createElement("div",{className:"mapstore-widget-default-content ql-editor",dangerouslySetInnerHTML:{__html:e}})})),rt=r(957557),nt=r.n(rt),ot=r(975480),it=r(892936),at=r(193190);function ct(e){return ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ct(e)}var lt=["layers"];function ut(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function st(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,lt);return r(n,"maps",t,"merge")}}})(it.Z),yt=r(118027);function gt(e){return gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gt(e)}function vt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function mt(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.describeFeatureType,r=e.options,n=e.quickFilterStream$;return t?{filterRenderers:(0,R.Lo)(t).reduce((function(e,t){var o=t.localType,a=t.name,c=function(e){var t=e.options,r=e.localType,n=e.attributeName,o=e.quickFilterStream$;return(0,i.compose)((0,i.withProps)({quickFilterStream$:o,attributeName:n,options:t}),ht)((0,yt.Q)(r,{name:n}))}({options:r,localType:o,attributeName:a,quickFilterStream$:n});return mt(mt({},e),{},bt({},a,c))}),{})}:{}}))),St=r(830029);function jt(e){return jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jt(e)}function Pt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Et(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.showTable,r=e.toggleTableView,n=void 0===r?function(){}:r;return t?o().createElement(Te.Glyphicon,{onClick:function(){n()},glyph:"arrow-left pull-left"}):null},Rt=r(946173),Zt=r(70919),Wt=["toggleDeleteConfirm","id","title","icons","headerStyle","confirmDelete","topRightItems","dataGrid","onDelete"];var Nt=(0,Rt.Z)()(Zt.Z),Gt=(0,i.compose)(ee.Z,Y.Z,X.Z,j.Z,u)((function(e){var t=e.id,r=e.title,n=e.description,i=e.headerStyle,a=e.data,c=void 0===a?[]:a,l=e.series,u=void 0===l?[]:l,s=e.loading,f=e.icons,d=e.showTable,p=e.topRightItems,y=e.confirmDelete,g=void 0!==y&&y,v=e.dataGrid,m=void 0===v?{}:v,b=e.onDelete,h=void 0===b?function(){}:b,O=e.toggleTableView,w=void 0===O?function(){}:O,S=e.toggleDeleteConfirm,j=void 0===S?function(){}:S,P=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,Ke);return o().createElement(Qe,{id:"widget-chart-".concat(t),headerStyle:i,isDraggable:m.isDraggable,title:r,icons:f,topLeftItems:Ye({loading:s,title:r,description:n,showTable:d,toggleTableView:w}),confirmDelete:g,onDelete:h,toggleDeleteConfirm:j,topRightItems:p,options:null==P?void 0:P.options},d?o().createElement(Fe,Je({data:c},P)):o().createElement(Le,Je({id:t,isAnimationActive:!s,loading:s,data:c,series:u,iconFit:!0},P)))})),Lt=(0,i.compose)(w)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.toggleDeleteConfirm,r=void 0===t?function(){}:t,n=e.icons,i=e.topLeftItems,a=e.id,c=e.title,l=e.text,u=e.headerStyle,s=e.topRightItems,f=e.options,d=void 0===f?{}:f,p=e.dataGrid,y=void 0===p?{}:p,g=e.confirmDelete,v=void 0!==g&&g,m=e.onDelete,b=void 0===m?function(){}:m;return o().createElement(Qe,{id:"widget-text-".concat(a),title:c,confirmDelete:v,onDelete:b,toggleDeleteConfirm:r,headerStyle:u,isDraggable:y.isDraggable,icons:n,topLeftItems:i,topRightItems:s,options:d},o().createElement(tt,{text:l}))})),zt=(0,i.compose)(ee.Z,Ee,De("center"),De("zoom"),me,S)((function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.updateProperty,n=void 0===r?function(){}:r,i=t.toggleDeleteConfirm,a=void 0===i?function(){}:i,c=t.id,l=t.title,u=t.map,s=void 0===u?{}:u,f=t.maps,d=void 0===f?[]:f,p=t.selectedMapId,y=t.icons,g=t.hookRegister,v=t.mapStateSource,m=t.topRightItems,b=t.options,h=void 0===b?{}:b,O=t.confirmDelete,w=void 0!==O&&O,S=t.loading,j=void 0!==S&&S,P=t.dataGrid,E=void 0===P?{}:P,D=t.onDelete,T=void 0===D?function(){}:D,C=t.headerStyle,x=t.env,k=t.selectionActive,I=s.size,M=void 0===I?{}:I,F=M.height,A=M.width,R=s.mapInfoControl,Z=F>400&&A>400&&R;return o().createElement(Qe,{className:"map-widget-view",id:"widget-text-".concat(c),title:l,confirmDelete:w,onDelete:T,toggleDeleteConfirm:a,headerStyle:C,icons:y,topRightItems:[o().createElement(at.Z,{className:"map-switcher",maps:d,onChange:function(){for(var e=arguments.length,t=new Array(e),r=0;r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,Mt);return o().createElement(Qe,{className:"counter-widget",id:"widget-chart-".concat(t),title:r,isDraggable:m.isDraggable,icons:y,topLeftItems:At({loading:u,title:r,description:n,showTable:s,toggleTableView:h}),confirmDelete:d,onDelete:j,toggleDeleteConfirm:w,headerStyle:p,topRightItems:g,options:null==P?void 0:P.options},o().createElement(It.Z,Ft({id:t,isAnimationActive:!u,loading:u,data:a,series:l,iconFit:!0},P)))})),qt=(0,i.compose)(ee.Z,O.Z)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.toggleDeleteConfirm,r=void 0===t?function(){}:t,n=e.id,i=e.title,a=e.icons,c=e.headerStyle,l=e.confirmDelete,u=void 0!==l&&l,s=e.topRightItems,f=e.dataGrid,d=void 0===f?{}:f,p=e.onDelete,y=void 0===p?function(){}:p,g=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,Wt);return o().createElement(Qe,{id:"widget-text-".concat(n),title:i,confirmDelete:u,onDelete:y,toggleDeleteConfirm:r,headerStyle:c,icons:a,topRightItems:s,isDraggable:d.isDraggable,options:null==g?void 0:g.options},o().createElement(Nt,g))})),Ht=["dependencies","toggleCollapse","exportCSV","exportImage","onDelete","onEdit"];function Ut(){return Ut=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.dependencies,r=e.toggleCollapse,n=void 0===r?function(){}:r,i=e.exportCSV,a=void 0===i?function(){}:i,c=e.exportImage,l=void 0===c?function(){}:c,u=e.onDelete,s=void 0===u?function(){}:u,f=e.onEdit,d=void 0===f?function(){}:f,p=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,Ht);return"text"===p.widgetType?o().createElement(Lt,Ut({},p,{toggleCollapse:n,onDelete:s,onEdit:d})):"table"===p.widgetType?o().createElement(Vt,Ut({},p,$t(p),{toggleCollapse:n,exportCSV:a,dependencies:t,onDelete:s,onEdit:d})):"counter"===p.widgetType?o().createElement(_t,Ut({},p,$t(p),{toggleCollapse:n,dependencies:t,onDelete:s,onEdit:d})):"map"===p.widgetType?o().createElement(zt,Ut({},p,$t(p),{toggleCollapse:n,dependencies:t,onDelete:s,onEdit:d})):"legend"===p.widgetType?o().createElement(qt,Ut({},p,$t(p),{toggleCollapse:n,dependencies:t,onDelete:s,onEdit:d})):o().createElement(Gt,Ut({},p,$t(p),{toggleCollapse:n,exportCSV:a,dependencies:t,exportImage:l,onDelete:s,onEdit:d}))}},688395:(e,t,r)=>{"use strict";r.d(t,{ZP:()=>z});var n=r(49977),o=r.n(n),i=r(666654),a=r.n(i),c=r(218721),l=r.n(c),u=r(227361),s=r.n(u),f=r(264721),d=r.n(f),p=r(618446),y=r.n(p),g=r(957557),v=r.n(g),m=r(114176),b=r.n(m),h=r(557579),O=r(881808),w=r(401757),S=r(580416),j=r(675110),P=r(324684),E=r(769293),D=r(555927),T=r(275982),C=r(178598),x=r(989077),k=r(117542),I=r.n(k),M=r(246781);function F(e){return F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},F(e)}function A(e){return function(e){if(Array.isArray(e))return R(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return R(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?R(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{}).type===T.nk}))},L=function(e,t,r,n){return o().Observable.of((0,h.Rz)("mapSync",e),(0,h.Rz)("dependenciesMap",function(e,t,r){var n,o=r.dependenciesMap,i=r.mappings,c=["layer","filter","quickFilters","options"],l=["layers","viewport","zoom","center"],u=(h.oU.exec(t)||[])[1],s=b()(o,(function(e){return-1===e.indexOf(u)})),f=Object.keys(i).filter((function(e){return void 0!==i[e]})).reduce((function(e,r){return!a()(t,"map")&&d()(c,r)?W(W({},e),{},N({},r,"".concat(t,".").concat(i[r]))):a()(t,"map")?d()(l,r)?W(W({},e),{},N({},r,"map"===t?i[r]:"".concat(t.replace(/.map$/,""),".").concat(i[r]))):W(W({},e),{},N({},r,"".concat(t.replace(/.map$/,""),".").concat(i[r]))):e}),{}),p=t.split(".maps")[0];return e?W(W(W({},s),f),{},(N(n={},"dependenciesMap","".concat(p,".dependenciesMap")),N(n,"mapSync","".concat(p,".mapSync")),n)):v()(s,[Object.keys(i)])}(e,t,r)))};const z={exportWidgetData:function(e){return e.ofType(h.Km).do((function(e){var t=e.data,r=void 0===t?[]:t,n=e.title,o=void 0===n?"data":n;return I().json2csv(r,(function(e,t){return e?null:(0,C.saveAs)(new Blob([t],{type:"text/csv"}),o+".csv")}))})).filter((function(){return!1}))},alignDependenciesToWidgets:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).getState,r=void 0===t?function(){}:t;return e.ofType(O.ok,D.E9,h.Jm).map((function(){return(0,w.jx)(r())})).pluck("availableDependencies").distinctUntilChanged((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return y()(A(e),A(t))})).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(0,h._k)(e.reduce((function(e,t){var r,n,o=t.split(".maps")[0],i=t.replace(/.map$/,"");return a()(t,"map")?W(W({},e),{},(N(r={},"".concat(o,".dependenciesMap"),"".concat(o,".dependenciesMap")),N(r,"".concat(o,".mapSync"),"".concat(o,".mapSync")),N(r,"map"===t?"viewport":"".concat(i,".viewport"),"".concat(i,".bbox")),N(r,"map"===t?"center":"".concat(i,".center"),"".concat(i,".center")),N(r,"map"===t?"zoom":"".concat(i,".zoom"),"".concat(i,".zoom")),N(r,"map"===t?"layers":"".concat(i,".layers"),"map"===t?"layers.flat":"".concat(i,".layers")),r)):W(W({},e),{},(N(n={},"".concat(t,".filter"),"".concat(t,".filter")),N(n,"".concat(t,".quickFilters"),"".concat(t,".quickFilters")),N(n,"".concat(o,".dependenciesMap"),"".concat(o,".dependenciesMap")),N(n,"".concat(o,".mapSync"),"".concat(o,".mapSync")),N(n,"".concat(t,".layer"),"".concat(t,".layer")),N(n,"".concat(t,".options"),"".concat(t,".options")),n))}),{}))}))},toggleWidgetConnectFlow:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).getState,r=void 0===t?function(){}:t;return e.ofType(h.LH).switchMap((function(t){var n=t.active,i=t.availableDependencies,a=void 0===i?[]:i,c=t.options;return n&&a.length>0?1===a.length?L(n,a[0],c):o().Observable.of((0,h.kr)(n,{availableDependencies:a})).merge(e.ofType(h.V5).filter((function(){return(0,w.xI)(r())})).switchMap((function(e){var t=e.widget,i=s()((0,w.r0)(r()),"availableDependencies").filter((function(e){return(h.oU.exec(e)||[])[1]===t.id}));return"map"===t.widgetType&&(i=i.filter((function(e){return(h.jB.exec(e)||[])[2]===t.selectedMapId}))),L(n,i[0],c,t.dependeciesMap).concat(o().Observable.of((0,h.kr)(!1,{})))})).takeUntil(e.ofType(T.nk).merge(e.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type,r=e.key;return t===h.Cz&&r===h.jv}))))):L(n,a[0],c)}))},clearWidgetsOnLocationChange:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).getState,r=void 0===t?function(){}:t;return e.ofType(O.ok).switchMap((function(){var t=(0,P.F)(r()).split("/"),n=t[t.length-1];return e.let(G).filter((function(){var e=(0,P.F)(r()).split("/");return e[e.length-1]!==n})).switchMap((function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).payload,t=void 0===e?{}:e;return t&&t.location&&t.location.pathname?o().Observable.of((0,h.K4)()):o().Observable.empty()}))}))},exportWidgetImage:function(e){return e.ofType(h.pV).do((function(e){var t,n,o=e.widgetDivId,i=e.title,a=void 0===i?"data":i,c=document.createElement("canvas"),l=document.querySelector("#".concat(o," .recharts-wrapper svg")),u=l.outerHTML?l.outerHTML:(t=l,(n=document.createElement("div")).appendChild(t.cloneNode(!0)),n.innerHTML);r.e(59425).then(r.t.bind(r,459425,23)).then((function(e){(0,e.default)(c,u,{renderCallback:function(){var e=c.getContext("2d");e.globalCompositeOperation="destination-over",e.fillStyle="#fff",e.fillRect(0,0,c.width,c.height),(0,x.RP)(c.toDataURL("image/jpeg",1),"".concat(a,".jpg"),"image/jpeg")}})}))})).filter((function(){return!1}))},updateLayerOnLayerPropertiesChange:function(e,t){return e.ofType(S.yS).switchMap((function(e){var r,n=e.layer,i=e.newProperties,a=t.getState(),c=(0,j.CA)(a,n);return(r=o().Observable).of.apply(r,A(l()(i,"layerFilter")&&c?[(0,h.Ko)(c)]:[]))}))},updateLayerOnLoadingErrorChange:function(e,t){return e.ofType(S.x9,S.vs).groupBy((function(e){return e.layerId})).map((function(e){return e.switchMap((function(e){var r,n=e.layerId,i=t.getState(),a=(0,j.CA)(i,n);return(r=o().Observable).of.apply(r,A(a&&a.previousLoadingError!==a.loadingError?[(0,h.Ko)(a)]:[]))}))})).mergeAll()},updateDependenciesMapOnMapSwitch:function(e,t){return e.ofType(h.$A).filter((function(e){var t=e.key;return d()(["maps","selectedMapId"],t)})).switchMap((function(e){var r=e.id,n=e.value,i=o().Observable.empty(),a="string"==typeof n?n:null==n?void 0:n.mapId;if(a){var c=(0,w.zm)(t.getState()),l=(0,M.IO)(c,r,a);y()(c,l)||(i=o().Observable.of((0,h.sZ)(l)))}return i}))}}},875859:(e,t,r)=>{"use strict";r.d(t,{Z:()=>M});var n=r(557579),o=r(881808),i=r(555927),a=r(727418),c=r.n(a),l=r(728252),u=r.n(l),s=r(227361),f=r.n(s),d=r(313311),p=r.n(d),y=r(957557),g=r.n(y),v=r(66604),m=r.n(v),b=r(984596),h=r.n(b),O=r(414293),w=r.n(O),S=r(761868);function j(e){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},j(e)}function P(e){return function(e){if(Array.isArray(e))return T(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||D(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||D(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(e,t){if(e){if("string"==typeof e)return T(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?T(e,t):void 0}}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:I,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case n.Cz:return u()("builder.settings.".concat(r.key),r.value,t);case n.n8:return u()("builder.editor",r.widget,u()("builder.settings",r.settings||I.settings,t));case n.dm:return u()("builder.editor",x(x({},r.widget),{},{widgetType:r.widget&&r.widget.widgetType||"chart"}),u()("builder.settings.step","chart"===(r.widget&&r.widget.widgetType||"chart")?1:0,t));case n.BV:if(r.key.includes("maps")&&!w()(r.value)){var a,l=r.value,s=E(n.h9.exec(r.key)||[],3),d=s[1],y=s[2];if(d){var v=f()(t,"builder.editor.maps",[]);l=u()(y,r.value,v.find((function(e){return e.mapId===d})))}return(0,S.vy)("builder.editor.maps",l,{mapId:d||(null===(a=r.value)||void 0===a?void 0:a.mapId)},t)}return u()("builder.editor.".concat(r.key),r.value,t);case n.Jm:return(0,S.vy)("containers[".concat(r.target,"].widgets"),x(x({id:r.id},r.widget),{},{dataGrid:r.id&&{y:0,x:0,w:1,h:1}}),{id:r.widget.id||r.id},t);case n.J5:var b="containers[".concat(r.target,"].widgets");return f()(t,b)?u()(b,r.widgets,t):t;case n.$A:var O=p()(f()(t,"containers[".concat(r.target,"].widgets")),{id:r.id}),j=r.value;return"merge"===r.mode&&(j="maps"===r.key?O.maps.map((function(e){var t;return e.mapId===(null===(t=r.value)||void 0===t?void 0:t.mapId)?x(x({},e),null==r?void 0:r.value):e})):c()({},O[r.key],r.value)),(0,S.vy)("containers[".concat(r.target,"].widgets"),u()(r.key,j,O),{id:r.id},t);case n.eb:if(r.layer){var D=f()(t,"containers[".concat(n.VR,"].widgets"));if(D)return u()("containers[".concat(n.VR,"].widgets"),D.map((function(e){return f()(e,"layer.id")===r.layer.id?u()("layer",r.layer,e):e})),t)}return t;case n.yY:var T="containers[".concat(n.VR,"].widgets"),C=(0,S.z6)("containers[".concat(r.target,"].widgets"),{id:r.widget.id},t),k=f()(C,T,[]);return u()(T,k.map((function(e){if(e.dependenciesMap){var t=E(n.oU.exec((Object.values(e.dependenciesMap)||[])[0]),2)[1];if(t&&r.widget.id===t)return x(x({},g()(e,"dependenciesMap")),{},{mapSync:!1})}return e})),t);case i.E9:var M=r.data;return u()("containers[".concat(n.VR,"]"),x({},M),t);case o.ok:var F=(r.config||{}).widgetsConfig;return u()("containers[".concat(n.VR,"]"),x({},F),t);case n.v8:return u()("containers[".concat(r.target,"].layout"),r.layout)(u()("containers[".concat(r.target,"].layouts"),r.allLayouts,t));case n.ff:case i.R4:return u()("containers[".concat(n.VR,"]"),I.containers[n.VR],t);case n.S0:var A=r.key,R=r.value;return u()("dependencies[".concat(A,"]"),R,t);case n.Q6:var Z=r.key;return u()("dependencies[".concat(Z,"]"),null,t);case n.kb:var W=r.dependencies;return u()("dependencies",W,t);case n.GV:return u()("dependencies",I.dependencies,t);case n.Ym:var N=r.widget,G=void 0===N?{}:N;if(G.dataGrid&&G.dataGrid.static)return t;var L=f()(t,"containers[".concat(r.target,"].collapsed[").concat(G.id));if(L){var z=[].concat(P(f()(t,"containers[".concat(r.target,"].layout"),[])),P(h()(f()(L,"layout",[])))),V=m()(f()(t,"containers[".concat(r.target,"].layouts"),{}),(function(){var e=arguments.length>1?arguments[1]:void 0;return[].concat(P(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]),P(h()(f()(L,"layouts[".concat(e,"]"),[]))))}));return g()((0,S.qC)(u()("containers[".concat(r.target,"].layout"),z),u()("containers[".concat(r.target,"].layouts"),V))(t),"containers[".concat(r.target,"].collapsed[").concat(G.id,"]"))}return u()("containers[".concat(r.target,"].collapsed[").concat(G.id,"]"),{layout:p()(f()(t,"containers[".concat(r.target,"].layout"),[]),{i:G.id}),layouts:m()(f()(t,"containers[".concat(r.target,"].layouts"),{}),(function(e){return p()(e,{i:G.id})}))},t);case n.ke:var _,q,H,U,$,B,Q,K,J,Y,X,ee,te,re,ne,oe,ie,ae,ce=r.widget,le=null==t||null===(_=t.containers)||void 0===_||null===(q=_[r.target])||void 0===q?void 0:q.maximized;if(!ce||null!==(H=ce.dataGrid)&&void 0!==H&&H.static)return t;if(null!=le&&le.widget)return(0,S.qC)(u()("containers[".concat(r.target,"].layout"),le.layout),u()("containers[".concat(r.target,"].layouts"),le.layouts),u()("containers[".concat(r.target,"].maximized"),{}),u()("containers[".concat(r.target,"].widgets"),null==t||null===(oe=t.containers)||void 0===oe||null===(ie=oe[r.target])||void 0===ie||null===(ae=ie.widgets)||void 0===ae?void 0:ae.map((function(e){return e.id===le.widget.id?x(x({},e),{},{dataGrid:x(x({},e.dataGrid),{},{isDraggable:!0,isResizable:!0})}):e}))))(t);if(null!=t&&null!==(U=t.containers)&&void 0!==U&&null!==($=U[r.target])&&void 0!==$&&null!==(B=$.collapsed)&&void 0!==B&&B[ce.id])return t;var ue=x(x({},p()(null==t||null===(Q=t.containers)||void 0===Q||null===(K=Q[r.target])||void 0===K?void 0:K.layout,{i:ce.id})),{x:0,y:0,w:1,h:1});return(0,S.qC)(u()("containers[".concat(r.target,"].maximized"),{widget:ce,layout:null==t||null===(J=t.containers)||void 0===J||null===(Y=J[r.target])||void 0===Y?void 0:Y.layout,layouts:null==t||null===(X=t.containers)||void 0===X||null===(ee=X[r.target])||void 0===ee?void 0:ee.layouts}),u()("containers[".concat(r.target,"].layout"),[ue]),u()("containers[".concat(r.target,"].layouts"),{xxs:[ue]}),u()("containers[".concat(r.target,"].widgets"),null==t||null===(te=t.containers)||void 0===te||null===(re=te[r.target])||void 0===re||null===(ne=re.widgets)||void 0===ne?void 0:ne.map((function(e){return e.id===ce.id?x(x({},e),{},{dataGrid:x(x({},e.dataGrid),{},{isDraggable:!1,isResizable:!1})}):e}))))(t);case n.uU:var se=f()(t,"containers[".concat(r.target,"].widgets"),[]).filter((function(e){return!e.dataGrid||!e.dataGrid.static})),fe=se.filter((function(e){return f()(t,"containers[".concat(r.target,"].collapsed[").concat(e.id,"]"))})),de=se.filter((function(e){return!f()(t,"containers[".concat(r.target,"].collapsed[").concat(e.id,"]"))}));return 0===de.length?fe.reduce((function(t,r){return e(t,(0,n.f)(r))}),t):de.length>0?de.reduce((function(t,r){return e(t,(0,n.f)(r))}),t):t;case n.nw:return u()("tray",r.value,t);default:return t}}},510284:(e,t,r)=>{"use strict";r.d(t,{sw:()=>v,oB:()=>m});var n=r(49977),o=r.n(n),i=r(227361),a=r.n(i),c=r(505055),l=r(507526);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function s(e){var t="function"==typeof Map?new Map:void 0;return s=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return f(e,arguments,y(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),p(n,e)},s(e)}function f(e,t,r){return f=d()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&p(o,r.prototype),o},f.apply(null,arguments)}function d(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}r(849843);var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(i,e);var t,r,n,o=(r=i,n=d(),function(){var e,t=y(r);if(n){var o=y(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(e,t){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(r=o.call(this,e)).name="OGCError",r.code=t,r}return t=i,Object.defineProperty(t,"prototype",{writable:!1}),t}(s(Error)),v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{tagNameProcessors:[l.stripPrefix],explicitArray:!1,mergeAttrs:!0};return o().Observable.bindNodeCallback((function(e,r){return(0,c.parseString)(e,t,r)}))(e)},m=function(e){return e.switchMap((function(e){return"string"==typeof e.data&&e.data.indexOf("ExceptionReport")>0?o().Observable.bindNodeCallback((function(e,t){return(0,c.parseString)(e,{tagNameProcessors:[l.stripPrefix],explicitArray:!1,mergeAttrs:!0},t)}))(e.data).map((function(e){var t=a()(e,"ExceptionReport.Exception.ExceptionText");throw new g(t||"Undefined OGC Service Error",a()(e,"ExceptionReport.Exception.exceptionCode"))})):o().Observable.of(e)}))}},55237:(e,t,r)=>{"use strict";r.d(t,{tr:()=>w,jb:()=>S,Xu:()=>j,un:()=>P,Qn:()=>E,_q:()=>D,og:()=>T,$4:()=>C,kN:()=>x,oD:()=>k,V$:()=>I,uH:()=>M,pC:()=>F,tz:()=>A,p:()=>R});var n=r(747037),o=r.n(n),i=r(647960),a=r.n(i),c=r(227361),l=r.n(c),u=r(984596),s=r.n(u),f=r(730381),d=r.n(f),p=r(86638);function y(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||v(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||v(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){if(e){if("string"==typeof e)return m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?m(e,t):void 0}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{},t=e.start,r=e.end,n=e.duration,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.start,a=o.end;if(!i||!a)return{count:O({start:t,end:r,duration:n}),start:t,end:r};var c=d().duration(n).asMilliseconds(),l=new Date(t).getTime(),u=new Date(r).getTime(),s=new Date(i).getTime(),f=new Date(a).getTime(),p=Math.ceil((s-l)/c),y=Math.floor((f-l)/c),g=Math.floor((u-l)/c);if(p>=0&&y<=g){var v=y-p;return{start:new Date(l+Math.max(0,p)*c),end:new Date(l+Math.min(g,y)*c),count:v}}return{count:O({start:t,end:r,duration:n}),start:t,end:r}},P=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.start,r=e.end,n=arguments.length>1?arguments[1]:void 0,o=new Date(t),i=new Date(r),a=Math.floor(i.getTime()-o.getTime())/n;return{range:{start:t,end:r},resolution:d().duration(a).toISOString().match(b)[0]}},E=function(){var e,t,r=arguments.length>1?arguments[1]:void 0,n=(e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],(t=arguments.length>2?arguments[2]:void 0)?e.map((function(e){var r=g(e.split("/"),2);return{start:r[0],end:r[1]}[t]})):e);return n[function(e,t){var r=h(t),n=1/0,o=-1;return e.forEach((function(e,t){var i=h(e),a=Math.abs(i-r);a0},T=function(e,t){var r=d()(e).diff(t);return{start:r>=0?t:e,end:r>=0?e:t}},C=function(e){return 6e4*e.getTimezoneOffset()},x=function(e){var t=e;!a()(e)&o()(e)&&(t=new Date(e));var r=t.getUTCHours();r=r<10?"0"+r:r;var n=t.getUTCMinutes();n=n<10?"0"+n:n;var i=t.getUTCSeconds();return i=i<10?"0"+i:i,"".concat(r,":").concat(n,":").concat(i)},k=function(e){var t=e;!a()(e)&o()(e)&&(t=new Date(e));var r=t.getUTCMonth()+1,n=t.getUTCDate();return r=r<10?"0"+r:r,n=n<10?"0"+n:n,"".concat(t.getUTCFullYear(),"-").concat(r,"-").concat(n)},I=function(e,t){var r=(0,p.mh)(e),n="HH:mm:SS";switch(t){case"time":return n;case"date":return r;default:return r+" "+n}},M=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).Domains,t=void 0===e?{}:e,r=arguments.length>1?arguments[1]:void 0,n=s()(t.DimensionDomain||[]).concat(),o=t["@version"]||t.version,i=l()(t,"SpaceDomain.BoundingBox");return i&&n.push({Identifier:"space",Domain:i}),n.map((function(e){var t=e.Identifier,n=e.Domain;return{source:{type:"multidim-extension",version:o,url:r},name:t,domain:n}}))},F=function(e,t,r){var n=h(t),o=h(r);return e.reduce((function(e,t){var r=h(t);return h(n)r?[].concat(y(e),[t]):y(e)}),[])},A=function(e){var t=e.reduce((function(e,t){if(-1!==t.indexOf("/")){var r=g(t.split("/"),2),n=r[0],o=r[1];return[].concat(y(e),[n,o])}return[].concat(y(e),[t])}),[]).sort();return[t[0],t[t.length-1]]},R=function(e,t,r){var n=d()(e);return("add"===r?n.add(t,"seconds"):n.subtract(t,"seconds")).toISOString()}}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/38117.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/38117.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/38117.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/38117.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/38217.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/38217.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/38217.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/38217.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/38238.018dc26183efb561a8b1.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/38238.018dc26183efb561a8b1.chunk.js new file mode 100644 index 0000000000..8ad5ae8a34 --- /dev/null +++ b/geonode_mapstore_client/static/mapstore/dist/js/38238.018dc26183efb561a8b1.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 38238.018dc26183efb561a8b1.chunk.js.LICENSE.txt */ +(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[38238,39040],{967228:e=>{e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r{e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},823646:(e,t,r)=>{var n=r(967228);e.exports=function(e){if(Array.isArray(e))return n(e)},e.exports.__esModule=!0,e.exports.default=e.exports},281506:e=>{e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},348926:e=>{function t(e,t,r,n,s,a,i){try{var o=e[a](i),l=o.value}catch(e){return void r(e)}o.done?t(l):Promise.resolve(l).then(n,s)}e.exports=function(e){return function(){var r=this,n=arguments;return new Promise((function(s,a){var i=e.apply(r,n);function o(e){t(i,s,a,o,l,"next",e)}function l(e){t(i,s,a,o,l,"throw",e)}o(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},334575:e=>{e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},993913:(e,t,r)=>{var n=r(313696);function s(e,t){for(var r=0;r{var n=r(313696);e.exports=function(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},629754:e=>{function t(r){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},502205:(e,t,r)=>{var n=r(799489);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&n(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},820862:(e,t,r)=>{var n=r(750008).default;function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}e.exports=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var a={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var l=i?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(a,o,l):a[o]=e[o]}return a.default=e,r&&r.set(e,a),a},e.exports.__esModule=!0,e.exports.default=e.exports},246860:e=>{e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},713884:e=>{e.exports=function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,s,a,i,o=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(o.push(n.value),o.length!==t);l=!0);}catch(e){c=!0,s=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw s}}return o}},e.exports.__esModule=!0,e.exports.default=e.exports},580521:e=>{e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},398206:e=>{e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},506479:(e,t,r)=>{var n=r(337316);e.exports=function(e,t){if(null==e)return{};var r,s,a=n(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(s=0;s=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a},e.exports.__esModule=!0,e.exports.default=e.exports},337316:e=>{e.exports=function(e,t){if(null==e)return{};var r,n,s={},a=Object.keys(e);for(n=0;n=0||(s[r]=e[r]);return s},e.exports.__esModule=!0,e.exports.default=e.exports},178585:(e,t,r)=>{var n=r(750008).default,s=r(281506);e.exports=function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return s(e)},e.exports.__esModule=!0,e.exports.default=e.exports},759591:(e,t,r)=>{var n=r(750008).default;function s(){"use strict";e.exports=s=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var t,r={},a=Object.prototype,i=a.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},l="function"==typeof Symbol?Symbol:{},c=l.iterator||"@@iterator",u=l.asyncIterator||"@@asyncIterator",d=l.toStringTag||"@@toStringTag";function h(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{h({},"")}catch(t){h=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var s=t&&t.prototype instanceof A?t:A,a=Object.create(s.prototype),i=new F(n||[]);return o(a,"_invoke",{value:E(e,r,i)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}r.wrap=p;var g="suspendedStart",m="suspendedYield",v="executing",b="completed",y={};function A(){}function _(){}function x(){}var S={};h(S,c,(function(){return this}));var w=Object.getPrototypeOf,P=w&&w(w(D([])));P&&P!==a&&i.call(P,c)&&(S=P);var C=x.prototype=A.prototype=Object.create(S);function k(e){["next","throw","return"].forEach((function(t){h(e,t,(function(e){return this._invoke(t,e)}))}))}function R(e,t){function r(s,a,o,l){var c=f(e[s],e,a);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==n(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,o,l)}),(function(e){r("throw",e,o,l)})):t.resolve(d).then((function(e){u.value=e,o(u)}),(function(e){return r("throw",e,o,l)}))}l(c.arg)}var s;o(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,s){r(e,n,t,s)}))}return s=s?s.then(a,a):a()}})}function E(e,r,n){var s=g;return function(a,i){if(s===v)throw new Error("Generator is already running");if(s===b){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var o=n.delegate;if(o){var l=T(o,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(s===g)throw s=b,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);s=v;var c=f(e,r,n);if("normal"===c.type){if(s=n.done?b:m,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(s=b,n.method="throw",n.arg=c.arg)}}}function T(e,r){var n=r.method,s=e.iterator[n];if(s===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,T(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=f(s,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function D(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var s=-1,a=function r(){for(;++s=0;--s){var a=this.tryEntries[s],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var l=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(l&&c){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var s=n.arg;O(r)}return s}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:D(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},r}e.exports=s,e.exports.__esModule=!0,e.exports.default=e.exports},799489:e=>{function t(r,n){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},963038:(e,t,r)=>{var n=r(222858),s=r(713884),a=r(560379),i=r(580521);e.exports=function(e,t){return n(e)||s(e,t)||a(e,t)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},319:(e,t,r)=>{var n=r(823646),s=r(246860),a=r(560379),i=r(398206);e.exports=function(e){return n(e)||s(e)||a(e)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},308868:(e,t,r)=>{var n=r(750008).default;e.exports=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var s=r.call(e,t||"default");if("object"!==n(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},313696:(e,t,r)=>{var n=r(750008).default,s=r(308868);e.exports=function(e){var t=s(e,"string");return"symbol"===n(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},750008:e=>{function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},560379:(e,t,r)=>{var n=r(967228);e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},887757:(e,t,r)=>{var n=r(759591)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},580760:(e,t,r)=>{var n=r(989881);e.exports=function(e,t){var r=[];return n(e,(function(e,n,s){t(e,n,s)&&r.push(e)})),r}},763105:(e,t,r)=>{var n=r(234963),s=r(580760),a=r(267206),i=r(701469);e.exports=function(e,t){return(i(e)?n:s)(e,a(t,3))}},531351:e=>{var t=Array.prototype.reverse;e.exports=function(e){return null==e?e:t.call(e)}},973206:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=!1;return{promise:new Promise((function(r,n){e.then((function(e){return!t&&r(e)})).catch((function(e){return!t&&n(e)}))})),cancel:function(){t=!0}}}},953770:function(e,t){"use strict";var r=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,s=0,a=t.length;s{"use strict";function n(){return Array.prototype.slice.call(arguments).reduce((function(e,t){return e.concat(t)}),[]).filter((function(e){return"string"==typeof e})).join(" ")}r.r(t),r.d(t,{default:()=>n})},879426:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=[],t=0;tnew e(t)))}else{const e=r(22).PDFNetworkStream;let t;(0,n.isFetchSupported)()&&(t=r(23).PDFFetchStream),(0,s.setPDFNetworkStreamFactory)((r=>t&&(0,n.isValidFetchUrl)(r.url)?new t(r):new e(r)))}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addLinkAttributes=function(e,{url:t,target:r,rel:a,enabled:i=!0}={}){(0,n.assert)(t&&"string"==typeof t,'addLinkAttributes: A valid "url" parameter must provided.');const o=(0,n.removeNullCharacters)(t);i?e.href=e.title=o:(e.href="",e.title=`Disabled: ${o}`,e.onclick=()=>!1);let c="";switch(r){case l.NONE:break;case l.SELF:c="_self";break;case l.BLANK:c="_blank";break;case l.PARENT:c="_parent";break;case l.TOP:c="_top"}e.target=c,e.rel="string"==typeof a?a:s},t.getFilenameFromUrl=function(e){const t=e.indexOf("#"),r=e.indexOf("?"),n=Math.min(t>0?t:e.length,r>0?r:e.length);return e.substring(e.lastIndexOf("/",n)+1,n)},t.isFetchSupported=c,t.isValidFetchUrl=u,t.loadScript=function(e){return new Promise(((t,r)=>{const n=document.createElement("script");n.src=e,n.onload=t,n.onerror=function(){r(new Error(`Cannot load script at: ${n.src}`))},(document.head||document.documentElement).appendChild(n)}))},t.deprecated=function(e){console.log("Deprecated API usage: "+e)},t.PDFDateString=t.StatTimer=t.DOMSVGFactory=t.DOMCMapReaderFactory=t.DOMCanvasFactory=t.DEFAULT_LINK_REL=t.LinkTarget=t.RenderingCancelledException=t.PageViewport=void 0;var n=r(2);const s="noopener noreferrer nofollow";t.DEFAULT_LINK_REL=s;const a="http://www.w3.org/2000/svg";t.DOMCanvasFactory=class{create(e,t){if(e<=0||t<=0)throw new Error("Invalid canvas size");const r=document.createElement("canvas"),n=r.getContext("2d");return r.width=e,r.height=t,{canvas:r,context:n}}reset(e,t,r){if(!e.canvas)throw new Error("Canvas is not specified");if(t<=0||r<=0)throw new Error("Invalid canvas size");e.canvas.width=t,e.canvas.height=r}destroy(e){if(!e.canvas)throw new Error("Canvas is not specified");e.canvas.width=0,e.canvas.height=0,e.canvas=null,e.context=null}},t.DOMCMapReaderFactory=class{constructor({baseUrl:e=null,isCompressed:t=!1}){this.baseUrl=e,this.isCompressed=t}async fetch({name:e}){if(!this.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!e)throw new Error("CMap name must be specified.");const t=this.baseUrl+e+(this.isCompressed?".bcmap":""),r=this.isCompressed?n.CMapCompressionType.BINARY:n.CMapCompressionType.NONE;return c()&&u(t,document.baseURI)?fetch(t).then((async e=>{if(!e.ok)throw new Error(e.statusText);let t;return t=this.isCompressed?new Uint8Array(await e.arrayBuffer()):(0,n.stringToBytes)(await e.text()),{cMapData:t,compressionType:r}})).catch((e=>{throw new Error("Unable to load "+(this.isCompressed?"binary ":"")+`CMap at: ${t}`)})):new Promise(((e,s)=>{const a=new XMLHttpRequest;a.open("GET",t,!0),this.isCompressed&&(a.responseType="arraybuffer"),a.onreadystatechange=()=>{if(a.readyState===XMLHttpRequest.DONE){if(200===a.status||0===a.status){let t;if(this.isCompressed&&a.response?t=new Uint8Array(a.response):!this.isCompressed&&a.responseText&&(t=(0,n.stringToBytes)(a.responseText)),t)return void e({cMapData:t,compressionType:r})}s(new Error(a.statusText))}},a.send(null)})).catch((e=>{throw new Error("Unable to load "+(this.isCompressed?"binary ":"")+`CMap at: ${t}`)}))}},t.DOMSVGFactory=class{create(e,t){(0,n.assert)(e>0&&t>0,"Invalid SVG dimensions");const r=document.createElementNS(a,"svg:svg");return r.setAttribute("version","1.1"),r.setAttribute("width",e+"px"),r.setAttribute("height",t+"px"),r.setAttribute("preserveAspectRatio","none"),r.setAttribute("viewBox","0 0 "+e+" "+t),r}createElement(e){return(0,n.assert)("string"==typeof e,"Invalid SVG element type"),document.createElementNS(a,e)}};class i{constructor({viewBox:e,scale:t,rotation:r,offsetX:n=0,offsetY:s=0,dontFlip:a=!1}){this.viewBox=e,this.scale=t,this.rotation=r,this.offsetX=n,this.offsetY=s;const i=(e[2]+e[0])/2,o=(e[3]+e[1])/2;let l,c,u,d,h,p,f,g;switch(r=(r%=360)<0?r+360:r){case 180:l=-1,c=0,u=0,d=1;break;case 90:l=0,c=1,u=1,d=0;break;case 270:l=0,c=-1,u=-1,d=0;break;case 0:l=1,c=0,u=0,d=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}a&&(u=-u,d=-d),0===l?(h=Math.abs(o-e[1])*t+n,p=Math.abs(i-e[0])*t+s,f=Math.abs(e[3]-e[1])*t,g=Math.abs(e[2]-e[0])*t):(h=Math.abs(i-e[0])*t+n,p=Math.abs(o-e[1])*t+s,f=Math.abs(e[2]-e[0])*t,g=Math.abs(e[3]-e[1])*t),this.transform=[l*t,c*t,u*t,d*t,h-l*t*i-u*t*o,p-c*t*i-d*t*o],this.width=f,this.height=g}clone({scale:e=this.scale,rotation:t=this.rotation,offsetX:r=this.offsetX,offsetY:n=this.offsetY,dontFlip:s=!1}={}){return new i({viewBox:this.viewBox.slice(),scale:e,rotation:t,offsetX:r,offsetY:n,dontFlip:s})}convertToViewportPoint(e,t){return n.Util.applyTransform([e,t],this.transform)}convertToViewportRectangle(e){const t=n.Util.applyTransform([e[0],e[1]],this.transform),r=n.Util.applyTransform([e[2],e[3]],this.transform);return[t[0],t[1],r[0],r[1]]}convertToPdfPoint(e,t){return n.Util.applyInverseTransform([e,t],this.transform)}}t.PageViewport=i;class o extends n.BaseException{constructor(e,t){super(e),this.type=t}}t.RenderingCancelledException=o;const l={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};function c(){return"undefined"!=typeof fetch&&"undefined"!=typeof Response&&"body"in Response.prototype&&"undefined"!=typeof ReadableStream}function u(e,t){try{const{protocol:r}=t?new URL(e,t):new URL(e);return"http:"===r||"https:"===r}catch(e){return!1}}let d;t.LinkTarget=l,t.StatTimer=class{constructor(){this.started=Object.create(null),this.times=[]}time(e){e in this.started&&(0,n.warn)(`Timer is already running for ${e}`),this.started[e]=Date.now()}timeEnd(e){e in this.started||(0,n.warn)(`Timer has not been started for ${e}`),this.times.push({name:e,start:this.started[e],end:Date.now()}),delete this.started[e]}toString(){const e=[];let t=0;for(const e of this.times){const r=e.name;r.length>t&&(t=r.length)}for(const r of this.times){const n=r.end-r.start;e.push(`${r.name.padEnd(t)} ${n}ms\n`)}return e.join("")}},t.PDFDateString=class{static toDateObject(e){if(!e||!(0,n.isString)(e))return null;d||(d=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));const t=d.exec(e);if(!t)return null;const r=parseInt(t[1],10);let s=parseInt(t[2],10);s=s>=1&&s<=12?s-1:0;let a=parseInt(t[3],10);a=a>=1&&a<=31?a:1;let i=parseInt(t[4],10);i=i>=0&&i<=23?i:0;let o=parseInt(t[5],10);o=o>=0&&o<=59?o:0;let l=parseInt(t[6],10);l=l>=0&&l<=59?l:0;const c=t[7]||"Z";let u=parseInt(t[8],10);u=u>=0&&u<=23?u:0;let h=parseInt(t[9],10)||0;return h=h>=0&&h<=59?h:0,"-"===c?(i+=u,o+=h):"+"===c&&(i-=u,o-=h),new Date(Date.UTC(r,s,a,i,o,l))}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayByteLength=h,t.arraysToBytes=function(e){const t=e.length;if(1===t&&e[0]instanceof Uint8Array)return e[0];let r=0;for(let n=0;nt}),e.promise=new Promise((function(r,n){e.resolve=function(e){t=!0,r(e)},e.reject=function(e){t=!0,n(e)}})),e},t.getVerbosityLevel=function(){return s},t.info=function(e){s>=n.INFOS&&console.log(`Info: ${e}`)},t.isArrayBuffer=function(e){return"object"==typeof e&&null!==e&&void 0!==e.byteLength},t.isArrayEqual=function(e,t){return e.length===t.length&&e.every((function(e,r){return e===t[r]}))},t.isBool=function(e){return"boolean"==typeof e},t.isEmptyObj=function(e){for(const t in e)return!1;return!0},t.isNum=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSameOrigin=function(e,t){let r;try{if(r=new URL(e),!r.origin||"null"===r.origin)return!1}catch(e){return!1}const n=new URL(t,r);return r.origin===n.origin},t.createValidAbsoluteUrl=function(e,t){if(!e)return null;try{const r=t?new URL(e,t):new URL(e);if(function(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(r))return r}catch(e){}return null},t.removeNullCharacters=function(e){return"string"!=typeof e?(a("The argument for removeNullCharacters must be a string."),e):e.replace(u,"")},t.setVerbosityLevel=function(e){Number.isInteger(e)&&(s=e)},t.shadow=l,t.string32=function(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)},t.stringToBytes=d,t.stringToPDFString=function(e){const t=e.length,r=[];if("þ"===e[0]&&"ÿ"===e[1])for(let n=2;n=n.WARNINGS&&console.log(`Warning: ${e}`)}function i(e){throw new Error(e)}function o(e,t){e||i(t)}function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!1}),r}const c=function(){function e(t){this.constructor===e&&i("Cannot initialize BaseException."),this.message=t,this.name=this.constructor.name}return e.prototype=new Error,e.constructor=e,e}();t.BaseException=c,t.PasswordException=class extends c{constructor(e,t){super(e),this.code=t}},t.UnknownErrorException=class extends c{constructor(e,t){super(e),this.details=t}},t.InvalidPDFException=class extends c{},t.MissingPDFException=class extends c{},t.UnexpectedResponseException=class extends c{constructor(e,t){super(e),this.status=t}},t.FormatError=class extends c{},t.AbortException=class extends c{};const u=/\x00/g;function d(e){o("string"==typeof e,"Invalid argument for stringToBytes");const t=e.length,r=new Uint8Array(t);for(let n=0;ne[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}static intersect(e,t){function r(e,t){return e-t}const n=[e[0],e[2],t[0],t[2]].sort(r),s=[e[1],e[3],t[1],t[3]].sort(r),a=[];return e=m.normalizeRect(e),t=m.normalizeRect(t),n[0]===e[0]&&n[1]===t[0]||n[0]===t[0]&&n[1]===e[0]?(a[0]=n[1],a[2]=n[2],s[0]===e[1]&&s[1]===t[1]||s[0]===t[1]&&s[1]===e[1]?(a[1]=s[1],a[3]=s[2],a):null):null}}t.Util=m;const v=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364],b=function(){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return function(t,r,n=!1){if(!n&&URL.createObjectURL){const e=new Blob([t],{type:r});return URL.createObjectURL(e)}let s=`data:${r};base64,`;for(let r=0,n=t.length;r>2]+e[(3&a)<<4|i>>4]+e[r+1>6:64]+e[r+2{this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null)}))}}}();class PDFDataRangeTransport{constructor(e,t,r=!1){this.length=e,this.initialData=t,this.progressiveDone=r,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}addRangeListener(e){this._rangeListeners.push(e)}addProgressListener(e){this._progressListeners.push(e)}addProgressiveReadListener(e){this._progressiveReadListeners.push(e)}addProgressiveDoneListener(e){this._progressiveDoneListeners.push(e)}onDataRange(e,t){for(const r of this._rangeListeners)r(e,t)}onDataProgress(e,t){this._readyCapability.promise.then((()=>{for(const r of this._progressListeners)r(e,t)}))}onDataProgressiveRead(e){this._readyCapability.promise.then((()=>{for(const t of this._progressiveReadListeners)t(e)}))}onDataProgressiveDone(){this._readyCapability.promise.then((()=>{for(const e of this._progressiveDoneListeners)e()}))}transportReady(){this._readyCapability.resolve()}requestDataRange(e,t){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}exports.PDFDataRangeTransport=PDFDataRangeTransport;class PDFDocumentProxy{constructor(e,t){this._pdfInfo=e,this._transport=t}get numPages(){return this._pdfInfo.numPages}get fingerprint(){return this._pdfInfo.fingerprint}getPage(e){return this._transport.getPage(e)}getPageIndex(e){return this._transport.getPageIndex(e)}getDestinations(){return this._transport.getDestinations()}getDestination(e){return this._transport.getDestination(e)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getOpenActionDestination(){return(0,_display_utils.deprecated)("getOpenActionDestination, use getOpenAction instead."),this.getOpenAction().then((function(e){return e&&e.dest?e.dest:null}))}getAttachments(){return this._transport.getAttachments()}getJavaScript(){return this._transport.getJavaScript()}getOutline(){return this._transport.getOutline()}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getData(){return this._transport.getData()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}getStats(){return this._transport.getStats()}cleanup(){return this._transport.startCleanup()}destroy(){return this.loadingTask.destroy()}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}}exports.PDFDocumentProxy=PDFDocumentProxy;class PDFPageProxy{constructor(e,t,r,n=!1){this._pageIndex=e,this._pageInfo=t,this._transport=r,this._stats=n?new _display_utils.StatTimer:null,this._pdfBug=n,this.commonObjs=r.commonObjs,this.objs=new PDFObjects,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this.intentStates=Object.create(null),this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:e,rotation:t=this.rotate,offsetX:r=0,offsetY:n=0,dontFlip:s=!1}={}){return new _display_utils.PageViewport({viewBox:this.view,scale:e,rotation:t,offsetX:r,offsetY:n,dontFlip:s})}getAnnotations({intent:e=null}={}){return this.annotationsPromise&&this.annotationsIntent===e||(this.annotationsPromise=this._transport.getAnnotations(this._pageIndex,e),this.annotationsIntent=e),this.annotationsPromise}render({canvasContext:e,viewport:t,intent:r="display",enableWebGL:n=!1,renderInteractiveForms:s=!1,transform:a=null,imageLayer:i=null,canvasFactory:o=null,background:l=null}){this._stats&&this._stats.time("Overall");const c="print"===r?"print":"display";this.pendingCleanup=!1,this.intentStates[c]||(this.intentStates[c]=Object.create(null));const u=this.intentStates[c];u.streamReaderCancelTimeout&&(clearTimeout(u.streamReaderCancelTimeout),u.streamReaderCancelTimeout=null);const d=o||new _display_utils.DOMCanvasFactory,h=new _webgl.WebGLContext({enable:n});u.displayReadyCapability||(u.displayReadyCapability=(0,_util.createPromiseCapability)(),u.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:c,renderInteractiveForms:!0===s}));const p=e=>{const t=u.renderTasks.indexOf(f);t>=0&&u.renderTasks.splice(t,1),(this.cleanupAfterRender||"print"===c)&&(this.pendingCleanup=!0),this._tryCleanup(),e?(f.capability.reject(e),this._abortOperatorList({intentState:u,reason:e})):f.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"))},f=new InternalRenderTask({callback:p,params:{canvasContext:e,viewport:t,transform:a,imageLayer:i,background:l},objs:this.objs,commonObjs:this.commonObjs,operatorList:u.operatorList,pageIndex:this._pageIndex,canvasFactory:d,webGLContext:h,useRequestAnimationFrame:"print"!==c,pdfBug:this._pdfBug});u.renderTasks||(u.renderTasks=[]),u.renderTasks.push(f);const g=f.task;return u.displayReadyCapability.promise.then((e=>{this.pendingCleanup?p():(this._stats&&this._stats.time("Rendering"),f.initializeGraphics(e),f.operatorListChanged())})).catch(p),g}getOperatorList(){const e="oplist";this.intentStates[e]||(this.intentStates[e]=Object.create(null));const t=this.intentStates[e];let r;return t.opListReadCapability||(r={},r.operatorListChanged=function(){if(t.operatorList.lastChunk){t.opListReadCapability.resolve(t.operatorList);const e=t.renderTasks.indexOf(r);e>=0&&t.renderTasks.splice(e,1)}},t.opListReadCapability=(0,_util.createPromiseCapability)(),t.renderTasks=[],t.renderTasks.push(r),t.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:e})),t.opListReadCapability.promise}streamTextContent({normalizeWhitespace:e=!1,disableCombineTextItems:t=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,normalizeWhitespace:!0===e,combineTextItems:!0!==t},{highWaterMark:100,size:e=>e.items.length})}getTextContent(e={}){const t=this.streamTextContent(e);return new Promise((function(e,r){const n=t.getReader(),s={items:[],styles:Object.create(null)};!function t(){n.read().then((function({value:r,done:n}){n?e(s):(Object.assign(s.styles,r.styles),s.items.push(...r.items),t())}),r)}()}))}_destroy(){this.destroyed=!0,this._transport.pageCache[this._pageIndex]=null;const e=[];return Object.keys(this.intentStates).forEach((t=>{const r=this.intentStates[t];this._abortOperatorList({intentState:r,reason:new Error("Page was destroyed."),force:!0}),"oplist"!==t&&r.renderTasks.forEach((function(t){const r=t.capability.promise.catch((function(){}));e.push(r),t.cancel()}))})),this.objs.clear(),this.annotationsPromise=null,this.pendingCleanup=!1,Promise.all(e)}cleanup(e=!1){return this.pendingCleanup=!0,this._tryCleanup(e)}_tryCleanup(e=!1){return!(!this.pendingCleanup||Object.keys(this.intentStates).some((e=>{const t=this.intentStates[e];return 0!==t.renderTasks.length||!t.operatorList.lastChunk}))||(Object.keys(this.intentStates).forEach((e=>{delete this.intentStates[e]})),this.objs.clear(),this.annotationsPromise=null,e&&this._stats&&(this._stats=new _display_utils.StatTimer),this.pendingCleanup=!1,0))}_startRenderPage(e,t){const r=this.intentStates[t];r&&(this._stats&&this._stats.timeEnd("Page Request"),r.displayReadyCapability&&r.displayReadyCapability.resolve(e))}_renderPageChunk(e,t){for(let r=0,n=e.length;r{t.read().then((({value:e,done:t})=>{t?r.streamReader=null:this._transport.destroyed||(this._renderPageChunk(e,r),n())}),(e=>{if(r.streamReader=null,!this._transport.destroyed){if(r.operatorList){r.operatorList.lastChunk=!0;for(let e=0;e{this._abortOperatorList({intentState:e,reason:t,force:!0}),e.streamReaderCancelTimeout=null}),RENDERING_CANCELLED_TIMEOUT))}e.streamReader.cancel(new _util.AbortException(t&&t.message)),e.streamReader=null,this._transport.destroyed||(Object.keys(this.intentStates).some((t=>this.intentStates[t]===e&&(delete this.intentStates[t],!0))),this.cleanup())}}get stats(){return this._stats}}exports.PDFPageProxy=PDFPageProxy;class LoopbackPort{constructor(e=!0){this._listeners=[],this._defer=e,this._deferred=Promise.resolve(void 0)}postMessage(e,t){if(!this._defer)return void this._listeners.forEach((t=>{t.call(this,{data:e})}));const r=new WeakMap,n={data:function e(n){if("object"!=typeof n||null===n)return n;if(r.has(n))return r.get(n);let s,a;if((s=n.buffer)&&(0,_util.isArrayBuffer)(s))return a=t&&t.includes(s)?new n.constructor(s,n.byteOffset,n.byteLength):new n.constructor(n),r.set(n,a),a;a=Array.isArray(n)?[]:{},r.set(n,a);for(const t in n){let r,s=n;for(;!(r=Object.getOwnPropertyDescriptor(s,t));)s=Object.getPrototypeOf(s);if(void 0!==r.value)if("function"!=typeof r.value)a[t]=e(r.value);else if(n.hasOwnProperty&&n.hasOwnProperty(t))throw new Error(`LoopbackPort.postMessage - cannot clone: ${n[t]}`)}return a}(e)};this._deferred.then((()=>{this._listeners.forEach((e=>{e.call(this,n)}))}))}addEventListener(e,t){this._listeners.push(t)}removeEventListener(e,t){const r=this._listeners.indexOf(t);this._listeners.splice(r,1)}terminate(){this._listeners.length=0}}exports.LoopbackPort=LoopbackPort;const PDFWorker=function PDFWorkerClosure(){const pdfWorkerPorts=new WeakMap;let isWorkerDisabled=!1,fallbackWorkerSrc,nextFakeWorkerId=0,fakeWorkerCapability;if(_is_node.isNodeJS)isWorkerDisabled=!0,fallbackWorkerSrc="./pdf.worker.js";else if("object"==typeof document&&"currentScript"in document){const e=document.currentScript&&document.currentScript.src;e&&(fallbackWorkerSrc=e.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}function getWorkerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(void 0!==fallbackWorkerSrc)return _is_node.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}function getMainThreadWorkerMessageHandler(){let e;try{e=globalThis.pdfjsWorker&&globalThis.pdfjsWorker.WorkerMessageHandler}catch(e){}return e||null}function setupFakeWorkerGlobal(){if(fakeWorkerCapability)return fakeWorkerCapability.promise;fakeWorkerCapability=(0,_util.createPromiseCapability)();const loader=async function(){const mainWorkerMessageHandler=getMainThreadWorkerMessageHandler();if(mainWorkerMessageHandler)return mainWorkerMessageHandler;if(_is_node.isNodeJS){const worker=eval("require")(getWorkerSrc());return worker.WorkerMessageHandler}return await(0,_display_utils.loadScript)(getWorkerSrc()),window.pdfjsWorker.WorkerMessageHandler};return loader().then(fakeWorkerCapability.resolve,fakeWorkerCapability.reject),fakeWorkerCapability.promise}function createCDNWrapper(e){const t="importScripts('"+e+"');";return URL.createObjectURL(new Blob([t]))}class PDFWorker{constructor({name:e=null,port:t=null,verbosity:r=(0,_util.getVerbosityLevel)()}={}){if(t&&pdfWorkerPorts.has(t))throw new Error("Cannot use more than one PDFWorker per port");if(this.name=e,this.destroyed=!1,this.postMessageTransfers=!0,this.verbosity=r,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,t)return pdfWorkerPorts.set(t,this),void this._initializeFromPort(t);this._initialize()}get promise(){return this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(e){this._port=e,this._messageHandler=new _message_handler.MessageHandler("main","worker",e),this._messageHandler.on("ready",(function(){})),this._readyCapability.resolve()}_initialize(){if("undefined"!=typeof Worker&&!isWorkerDisabled&&!getMainThreadWorkerMessageHandler()){let e=getWorkerSrc();try{(0,_util.isSameOrigin)(window.location.href,e)||(e=createCDNWrapper(new URL(e,window.location).href));const t=new Worker(e),r=new _message_handler.MessageHandler("main","worker",t),n=()=>{t.removeEventListener("error",s),r.destroy(),t.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},s=()=>{this._webWorker||n()};t.addEventListener("error",s),r.on("test",(e=>{t.removeEventListener("error",s),this.destroyed?n():e?(this._messageHandler=r,this._port=t,this._webWorker=t,e.supportTransfers||(this.postMessageTransfers=!1),this._readyCapability.resolve(),r.send("configure",{verbosity:this.verbosity})):(this._setupFakeWorker(),r.destroy(),t.terminate())})),r.on("ready",(e=>{if(t.removeEventListener("error",s),this.destroyed)n();else try{a()}catch(e){this._setupFakeWorker()}}));const a=()=>{const e=new Uint8Array([this.postMessageTransfers?255:0]);try{r.send("test",e,[e.buffer])}catch(t){(0,_util.warn)("Cannot use postMessage transfers."),e[0]=0,r.send("test",e)}};return void a()}catch(e){(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}_setupFakeWorker(){isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),isWorkerDisabled=!0),setupFakeWorkerGlobal().then((e=>{if(this.destroyed)return void this._readyCapability.reject(new Error("Worker was destroyed"));const t=new LoopbackPort;this._port=t;const r="fake"+nextFakeWorkerId++,n=new _message_handler.MessageHandler(r+"_worker",r,t);e.setup(n,t);const s=new _message_handler.MessageHandler(r,r+"_worker",t);this._messageHandler=s,this._readyCapability.resolve(),s.send("configure",{verbosity:this.verbosity})})).catch((e=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${e.message}".`))}))}destroy(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),pdfWorkerPorts.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(e){if(!e||!e.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return pdfWorkerPorts.has(e.port)?pdfWorkerPorts.get(e.port):new PDFWorker(e)}static getWorkerSrc(){return getWorkerSrc()}}return PDFWorker}();exports.PDFWorker=PDFWorker;class WorkerTransport{constructor(e,t,r,n){this.messageHandler=e,this.loadingTask=t,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({docId:t.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this)}),this._params=n,this.CMapReaderFactory=new n.CMapReaderFactory({baseUrl:n.cMapUrl,isCompressed:n.cMapPacked}),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=r,this._fullReader=null,this._lastProgress=null,this.pageCache=[],this.pagePromises=[],this.downloadInfoCapability=(0,_util.createPromiseCapability)(),this.setupMessageHandler()}destroy(){if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=(0,_util.createPromiseCapability)(),this._passwordCapability&&this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));const e=[];this.pageCache.forEach((function(t){t&&e.push(t._destroy())})),this.pageCache.length=0,this.pagePromises.length=0;const t=this.messageHandler.sendWithPromise("Terminate",null);return e.push(t),Promise.all(e).then((()=>{this.fontLoader.clear(),this._networkStream&&this._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()}),this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:e,loadingTask:t}=this;e.on("GetReader",((e,t)=>{(0,_util.assert)(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=e=>{this._lastProgress={loaded:e.loaded,total:e.total}},t.onPull=()=>{this._fullReader.read().then((function({value:e,done:r}){r?t.close():((0,_util.assert)((0,_util.isArrayBuffer)(e),"GetReader - expected an ArrayBuffer."),t.enqueue(new Uint8Array(e),1,[e]))})).catch((e=>{t.error(e)}))},t.onCancel=e=>{this._fullReader.cancel(e)}})),e.on("ReaderHeadersReady",(e=>{const r=(0,_util.createPromiseCapability)(),n=this._fullReader;return n.headersReady.then((()=>{n.isStreamingSupported&&n.isRangeSupported||(this._lastProgress&&t.onProgress&&t.onProgress(this._lastProgress),n.onProgress=e=>{t.onProgress&&t.onProgress({loaded:e.loaded,total:e.total})}),r.resolve({isStreamingSupported:n.isStreamingSupported,isRangeSupported:n.isRangeSupported,contentLength:n.contentLength})}),r.reject),r.promise})),e.on("GetRangeReader",((e,t)=>{(0,_util.assert)(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const r=this._networkStream.getRangeReader(e.begin,e.end);r?(t.onPull=()=>{r.read().then((function({value:e,done:r}){r?t.close():((0,_util.assert)((0,_util.isArrayBuffer)(e),"GetRangeReader - expected an ArrayBuffer."),t.enqueue(new Uint8Array(e),1,[e]))})).catch((e=>{t.error(e)}))},t.onCancel=e=>{r.cancel(e)}):t.close()})),e.on("GetDoc",(({pdfInfo:e})=>{this._numPages=e.numPages,t._capability.resolve(new PDFDocumentProxy(e,this))})),e.on("DocException",(function(e){let r;switch(e.name){case"PasswordException":r=new _util.PasswordException(e.message,e.code);break;case"InvalidPDFException":r=new _util.InvalidPDFException(e.message);break;case"MissingPDFException":r=new _util.MissingPDFException(e.message);break;case"UnexpectedResponseException":r=new _util.UnexpectedResponseException(e.message,e.status);break;case"UnknownErrorException":r=new _util.UnknownErrorException(e.message,e.details)}t._capability.reject(r)})),e.on("PasswordRequest",(e=>{if(this._passwordCapability=(0,_util.createPromiseCapability)(),t.onPassword){const r=e=>{this._passwordCapability.resolve({password:e})};try{t.onPassword(r,e.code)}catch(e){this._passwordCapability.reject(e)}}else this._passwordCapability.reject(new _util.PasswordException(e.message,e.code));return this._passwordCapability.promise})),e.on("DataLoaded",(e=>{t.onProgress&&t.onProgress({loaded:e.length,total:e.length}),this.downloadInfoCapability.resolve(e)})),e.on("StartRenderPage",(e=>{this.destroyed||this.pageCache[e.pageIndex]._startRenderPage(e.transparency,e.intent)})),e.on("commonobj",(t=>{if(this.destroyed)return;const[r,n,s]=t;if(!this.commonObjs.has(r))switch(n){case"Font":const t=this._params;if("error"in s){const e=s.error;(0,_util.warn)(`Error during font loading: ${e}`),this.commonObjs.resolve(r,e);break}let a=null;t.pdfBug&&globalThis.FontInspector&&globalThis.FontInspector.enabled&&(a={registerFont(e,t){globalThis.FontInspector.fontAdded(e,t)}});const i=new _font_loader.FontFaceObject(s,{isEvalSupported:t.isEvalSupported,disableFontFace:t.disableFontFace,ignoreErrors:t.ignoreErrors,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),fontRegistry:a});this.fontLoader.bind(i).catch((t=>e.sendWithPromise("FontFallback",{id:r}))).finally((()=>{!t.fontExtraProperties&&i.data&&(i.data=null),this.commonObjs.resolve(r,i)}));break;case"FontPath":case"FontType3Res":case"Image":this.commonObjs.resolve(r,s);break;default:throw new Error(`Got unknown common object type ${n}`)}})),e.on("obj",(e=>{if(this.destroyed)return;const[t,r,n,s]=e,a=this.pageCache[r];if(!a.objs.has(t)){if("Image"!==n)throw new Error(`Got unknown object type ${n}`);{a.objs.resolve(t,s);const e=8e6;s&&"data"in s&&s.data.length>e&&(a.cleanupAfterRender=!0)}}})),e.on("DocProgress",(e=>{this.destroyed||t.onProgress&&t.onProgress({loaded:e.loaded,total:e.total})})),e.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),e.on("FetchBuiltInCMap",((e,t)=>{if(this.destroyed)return void t.error(new Error("Worker was destroyed"));let r=!1;t.onPull=()=>{r?t.close():(r=!0,this.CMapReaderFactory.fetch(e).then((function(e){t.enqueue(e,1,[e.cMapData.buffer])})).catch((function(e){t.error(e)})))}}))}_onUnsupportedFeature({featureId:e}){this.destroyed||this.loadingTask.onUnsupportedFeature&&this.loadingTask.onUnsupportedFeature(e)}getData(){return this.messageHandler.sendWithPromise("GetData",null)}getPage(e){if(!Number.isInteger(e)||e<=0||e>this._numPages)return Promise.reject(new Error("Invalid page request"));const t=e-1;if(t in this.pagePromises)return this.pagePromises[t];const r=this.messageHandler.sendWithPromise("GetPage",{pageIndex:t}).then((e=>{if(this.destroyed)throw new Error("Transport destroyed");const r=new PDFPageProxy(t,e,this,this._params.pdfBug);return this.pageCache[t]=r,r}));return this.pagePromises[t]=r,r}getPageIndex(e){return this.messageHandler.sendWithPromise("GetPageIndex",{ref:e}).catch((function(e){return Promise.reject(new Error(e))}))}getAnnotations(e,t){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:e,intent:t})}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(e){return"string"!=typeof e?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:e})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getJavaScript(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){return this.messageHandler.sendWithPromise("GetMetadata",null).then((e=>({info:e[0],metadata:e[1]?new _metadata.Metadata(e[1]):null,contentDispositionFilename:this._fullReader?this._fullReader.filename:null})))}getStats(){return this.messageHandler.sendWithPromise("GetStats",null)}startCleanup(){return this.messageHandler.sendWithPromise("Cleanup",null).then((()=>{for(let e=0,t=this.pageCache.length;e{this._nextBound().catch(this.cancel.bind(this))})):Promise.resolve().then(this._nextBound).catch(this.cancel.bind(this))}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),this._canvas&&e.delete(this._canvas),this.callback())))}}}(),version="2.5.207";exports.version=version;const build="0974d605";exports.build=build},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontLoader=t.FontFaceObject=void 0;var n=r(2);class s{constructor({docId:e,onUnsupportedFeature:t}){this.constructor===s&&(0,n.unreachable)("Cannot initialize BaseFontLoader."),this.docId=e,this._onUnsupportedFeature=t,this.nativeFontFaces=[],this.styleElement=null}addNativeFontFace(e){this.nativeFontFaces.push(e),document.fonts.add(e)}insertRule(e){let t=this.styleElement;t||(t=this.styleElement=document.createElement("style"),t.id=`PDFJS_FONT_STYLE_TAG_${this.docId}`,document.documentElement.getElementsByTagName("head")[0].appendChild(t));const r=t.sheet;r.insertRule(e,r.cssRules.length)}clear(){this.nativeFontFaces.forEach((function(e){document.fonts.delete(e)})),this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async bind(e){if(e.attached||e.missingFile)return;if(e.attached=!0,this.isFontLoadingAPISupported){const t=e.createNativeFontFace();if(t){this.addNativeFontFace(t);try{await t.loaded}catch(r){throw this._onUnsupportedFeature({featureId:n.UNSUPPORTED_FEATURES.errorFontLoadNative}),(0,n.warn)(`Failed to load font '${t.family}': '${r}'.`),e.disableFontFace=!0,r}}return}const t=e.createFontFaceRule();if(t){if(this.insertRule(t),this.isSyncFontLoadingSupported)return;await new Promise((r=>{const n=this._queueLoadingCallback(r);this._prepareFontLoadEvent([t],[e],n)}))}}_queueLoadingCallback(e){(0,n.unreachable)("Abstract method `_queueLoadingCallback`.")}get isFontLoadingAPISupported(){const e="undefined"!=typeof document&&!!document.fonts;return(0,n.shadow)(this,"isFontLoadingAPISupported",e)}get isSyncFontLoadingSupported(){(0,n.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}get _loadTestFont(){(0,n.unreachable)("Abstract method `_loadTestFont`.")}_prepareFontLoadEvent(e,t,r){(0,n.unreachable)("Abstract method `_prepareFontLoadEvent`.")}}let a;t.FontLoader=a,t.FontLoader=a=class extends s{constructor(e){super(e),this.loadingContext={requests:[],nextRequestId:0},this.loadTestFontId=0}get isSyncFontLoadingSupported(){let e=!1;if("undefined"==typeof navigator)e=!0;else{const t=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent);t&&t[1]>=14&&(e=!0)}return(0,n.shadow)(this,"isSyncFontLoadingSupported",e)}_queueLoadingCallback(e){const t=this.loadingContext,r={id:"pdfjs-font-loading-"+t.nextRequestId++,done:!1,complete:function(){for((0,n.assert)(!r.done,"completeRequest() cannot be called twice."),r.done=!0;t.requests.length>0&&t.requests[0].done;){const e=t.requests.shift();setTimeout(e.callback,0)}},callback:e};return t.requests.push(r),r}get _loadTestFont(){return(0,n.shadow)(this,"_loadTestFont",atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA=="))}_prepareFontLoadEvent(e,t,r){function s(e,t){return e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|255&e.charCodeAt(t+3)}function a(e,t,r,n){return e.substring(0,t)+n+e.substring(t+r)}let i,o;const l=document.createElement("canvas");l.width=1,l.height=1;const c=l.getContext("2d");let u=0;const d=`lt${Date.now()}${this.loadTestFontId++}`;let h=this._loadTestFont;h=a(h,976,d.length,d);const p=1482184792;let f=s(h,16);for(i=0,o=d.length-3;i30)return(0,n.warn)("Load test font never loaded."),void r();c.font="30px "+t,c.fillText(".",0,20),c.getImageData(0,0,1,1).data[3]>0?r():setTimeout(e.bind(null,t,r))}(d,(function(){document.body.removeChild(v),r.complete()}))}},t.FontFaceObject=class{constructor(e,{isEvalSupported:t=!0,disableFontFace:r=!1,ignoreErrors:n=!1,onUnsupportedFeature:s=null,fontRegistry:a=null}){this.compiledGlyphs=Object.create(null);for(const t in e)this[t]=e[t];this.isEvalSupported=!1!==t,this.disableFontFace=!0===r,this.ignoreErrors=!0===n,this._onUnsupportedFeature=s,this.fontRegistry=a}createNativeFontFace(){if(!this.data||this.disableFontFace)return null;const e=new FontFace(this.loadedName,this.data,{});return this.fontRegistry&&this.fontRegistry.registerFont(this),e}createFontFaceRule(){if(!this.data||this.disableFontFace)return null;const e=(0,n.bytesToString)(new Uint8Array(this.data)),t=`url(data:${this.mimetype};base64,${btoa(e)});`,r=`@font-face {font-family:"${this.loadedName}";src:${t}}`;return this.fontRegistry&&this.fontRegistry.registerFont(this,t),r}getPathGenerator(e,t){if(void 0!==this.compiledGlyphs[t])return this.compiledGlyphs[t];let r,s;try{r=e.get(this.loadedName+"_path_"+t)}catch(e){if(!this.ignoreErrors)throw e;return this._onUnsupportedFeature&&this._onUnsupportedFeature({featureId:n.UNSUPPORTED_FEATURES.errorFontGetPath}),(0,n.warn)(`getPathGenerator - ignoring character: "${e}".`),this.compiledGlyphs[t]=function(e,t){}}if(this.isEvalSupported&&n.IsEvalSupportedCached.value){let e,n="";for(let t=0,a=r.length;t>2),A=y.length,_=u+7>>3,x=4294967295,S=n.IsLittleEndianCached.value?4278190080:255;for(s=0;s_?u:8*w-7,k=-8&C,R=0,E=0;P>=1}for(;r=h&&(l=u*(i=d)),r=0,a=l;a--;)v[r++]=m[g++],v[r++]=m[g++],v[r++]=m[g++],v[r++]=255;e.putImageData(f,0,s*o)}}}}function r(e,t){for(var r=t.height,n=t.width,s=r%o,a=(r-s)/o,i=0===s?a:a+1,l=e.createImageData(n,o),c=0,u=t.data,d=l.data,h=0;h>=1}e.putImageData(l,0,h*o)}}function d(e,t){for(var r=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"],n=0,s=r.length;n>8,e[a-2]=e[a-2]*i+r*o>>8,e[a-1]=e[a-1]*i+n*o>>8}}}function f(e,t,r){for(var n=e.length,s=3;s>8]>>8:t[s]*a>>16}}function m(e,t,r,n){var s=t.canvas,a=t.context;e.setTransform(t.scaleX,0,0,t.scaleY,t.offsetX,t.offsetY);var i=t.backdrop||null;if(!t.transferMap&&n.isEnabled){const a=n.composeSMask({layer:r.canvas,mask:s,properties:{subtype:t.subtype,backdrop:i}});return e.setTransform(1,0,0,1,0,0),void e.drawImage(a,t.offsetX,t.offsetY)}!function(e,t,r,n,s,a,i){var o,l=!!a,c=l?a[0]:0,u=l?a[1]:0,d=l?a[2]:0;o="Luminosity"===s?g:f;for(var h=Math.min(n,Math.ceil(1048576/r)),m=0;m10&&"function"==typeof r,d=u?Date.now()+15:0,h=0,p=this.commonObjs,f=this.objs;;){if(void 0!==s&&o===s.nextBreakPoint)return s.breakIt(o,r),o;if((c=i[o])!==n.OPS.dependency)this[c].apply(this,a[o]);else for(const e of a[o]){const t=e.startsWith("g_")?p:f;if(!t.has(e))return t.get(e,r),o}if(++o===l)return o;if(u&&++h>10){if(Date.now()>d)return r(),o;h=0}}},endDrawing:function(){null!==this.current.activeSMask&&this.endSMaskGroup(),this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null),this.cachedCanvases.clear(),this.webGLContext.clear(),this.imageLayer&&this.imageLayer.endLayout()},setLineWidth:function(e){this.current.lineWidth=e,this.ctx.lineWidth=e},setLineCap:function(e){this.ctx.lineCap=v[e]},setLineJoin:function(e){this.ctx.lineJoin=b[e]},setMiterLimit:function(e){this.ctx.miterLimit=e},setDash:function(e,t){var r=this.ctx;void 0!==r.setLineDash&&(r.setLineDash(e),r.lineDashOffset=t)},setRenderingIntent(e){},setFlatness(e){},setGState:function(e){for(var t=0,r=e.length;t0&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask?this.suspendSMaskGroup():this.endSMaskGroup()),this.current.activeSMask=a?this.tempSMask:null,this.current.activeSMask&&this.beginSMaskGroup(),this.tempSMask=null}}},beginSMaskGroup:function(){var e=this.current.activeSMask,t=e.canvas.width,r=e.canvas.height,n="smaskGroupAt"+this.groupLevel,s=this.cachedCanvases.getCanvas(n,t,r,!0),a=this.ctx,i=a.mozCurrentTransform;this.ctx.save();var o=s.context;o.scale(1/e.scaleX,1/e.scaleY),o.translate(-e.offsetX,-e.offsetY),o.transform.apply(o,i),e.startTransformInverse=o.mozCurrentTransformInverse,d(a,o),this.ctx=o,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(a),this.groupLevel++},suspendSMaskGroup:function(){var e=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),m(this.ctx,this.current.activeSMask,e,this.webGLContext),this.ctx.restore(),this.ctx.save(),d(e,this.ctx),this.current.resumeSMaskCtx=e;var t=n.Util.transform(this.current.activeSMask.startTransformInverse,e.mozCurrentTransform);this.ctx.transform.apply(this.ctx,t),e.save(),e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,e.canvas.width,e.canvas.height),e.restore()},resumeSMaskGroup:function(){var e=this.current.resumeSMaskCtx,t=this.ctx;this.ctx=e,this.groupStack.push(t),this.groupLevel++},endSMaskGroup:function(){var e=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),m(this.ctx,this.current.activeSMask,e,this.webGLContext),this.ctx.restore(),d(e,this.ctx);var t=n.Util.transform(this.current.activeSMask.startTransformInverse,e.mozCurrentTransform);this.ctx.transform.apply(this.ctx,t)},save:function(){this.ctx.save();var e=this.current;this.stateStack.push(e),this.current=e.clone(),this.current.resumeSMaskCtx=null},restore:function(){this.current.resumeSMaskCtx&&this.resumeSMaskGroup(),null===this.current.activeSMask||0!==this.stateStack.length&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask||this.endSMaskGroup(),0!==this.stateStack.length&&(this.current=this.stateStack.pop(),this.ctx.restore(),this.pendingClip=null,this._cachedGetSinglePixelWidth=null)},transform:function(e,t,r,n,s,a){this.ctx.transform(e,t,r,n,s,a),this._cachedGetSinglePixelWidth=null},constructPath:function(e,t){for(var r=this.ctx,s=this.current,a=s.x,i=s.y,o=0,l=0,c=e.length;o100&&(c=100),this.current.fontSizeScale=t/c,this.ctx.font=`${o} ${i} ${c}px ${l}`},setTextRenderingMode:function(e){this.current.textRenderingMode=e},setTextRise:function(e){this.current.textRise=e},moveText:function(e,t){this.current.x=this.current.lineX+=e,this.current.y=this.current.lineY+=t},setLeadingMoveText:function(e,t){this.setLeading(-t),this.moveText(e,t)},setTextMatrix:function(e,t,r,n,s,a){this.current.textMatrix=[e,t,r,n,s,a],this.current.textMatrixScale=Math.sqrt(e*e+t*t),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},nextLine:function(){this.moveText(0,this.current.leading)},paintChar(e,t,r,s){var a=this.ctx,i=this.current,o=i.font,l=i.textRenderingMode,c=i.fontSize/i.fontSizeScale,u=l&n.TextRenderingMode.FILL_STROKE_MASK,d=!!(l&n.TextRenderingMode.ADD_TO_PATH_FLAG);const h=i.patternFill&&!o.missingFile;var p;(o.disableFontFace||d||h)&&(p=o.getPathGenerator(this.commonObjs,e)),o.disableFontFace||h?(a.save(),a.translate(t,r),a.beginPath(),p(a,c),s&&a.setTransform.apply(a,s),u!==n.TextRenderingMode.FILL&&u!==n.TextRenderingMode.FILL_STROKE||a.fill(),u!==n.TextRenderingMode.STROKE&&u!==n.TextRenderingMode.FILL_STROKE||a.stroke(),a.restore()):(u!==n.TextRenderingMode.FILL&&u!==n.TextRenderingMode.FILL_STROKE||a.fillText(e,t,r),u!==n.TextRenderingMode.STROKE&&u!==n.TextRenderingMode.FILL_STROKE||a.strokeText(e,t,r)),d&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:a.mozCurrentTransform,x:t,y:r,fontSize:c,addToPath:p})},get isFontSubpixelAAEnabled(){const{context:e}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);e.scale(1.5,1),e.fillText("I",0,10);for(var t=e.getImageData(0,0,10,10).data,r=!1,s=3;s0&&t[s]<255){r=!0;break}return(0,n.shadow)(this,"isFontSubpixelAAEnabled",r)},showText:function(e){var t=this.current,r=t.font;if(r.isType3Font)return this.showType3Text(e);var s=t.fontSize;if(0===s)return;var a=this.ctx,o=t.fontSizeScale,l=t.charSpacing,c=t.wordSpacing,u=t.fontDirection,d=t.textHScale*u,h=e.length,p=r.vertical,f=p?1:-1,g=r.defaultVMetrics,m=s*t.fontMatrix[0],v=t.textRenderingMode===n.TextRenderingMode.FILL&&!r.disableFontFace&&!t.patternFill;let b;if(a.save(),t.patternFill){a.save();const e=t.fillColor.getPattern(a,this);b=a.mozCurrentTransform,a.restore(),a.fillStyle=e}a.transform.apply(a,t.textMatrix),a.translate(t.x,t.y+t.textRise),u>0?a.scale(d,-1):a.scale(d,1);var y=t.lineWidth,A=t.textMatrixScale;if(0===A||0===y){var _=t.textRenderingMode&n.TextRenderingMode.FILL_STROKE_MASK;_!==n.TextRenderingMode.STROKE&&_!==n.TextRenderingMode.FILL_STROKE||(this._cachedGetSinglePixelWidth=null,y=this.getSinglePixelWidth()*i)}else y/=A;1!==o&&(a.scale(o,o),y/=o),a.lineWidth=y;var x,S=0;for(x=0;x0){var N=1e3*a.measureText(D).width/s*o;if(Mnew e(t,this.commonObjs,this.objs,this.canvasFactory,this.webGLContext)};r=new s.TilingPattern(t,n,this.ctx,i,a)}else r=(0,s.getShadingPatternFromIR)(t);return r},setStrokeColorN:function(){this.current.strokeColor=this.getColorN_Pattern(arguments)},setFillColorN:function(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0},setStrokeRGBColor:function(e,t,r){var s=n.Util.makeCssRgb(e,t,r);this.ctx.strokeStyle=s,this.current.strokeColor=s},setFillRGBColor:function(e,t,r){var s=n.Util.makeCssRgb(e,t,r);this.ctx.fillStyle=s,this.current.fillColor=s,this.current.patternFill=!1},shadingFill:function(e){var t=this.ctx;this.save();var r=(0,s.getShadingPatternFromIR)(e);t.fillStyle=r.getPattern(t,this,!0);var a=t.mozCurrentTransformInverse;if(a){var i=t.canvas,o=i.width,l=i.height,c=n.Util.applyTransform([0,0],a),u=n.Util.applyTransform([0,l],a),d=n.Util.applyTransform([o,0],a),h=n.Util.applyTransform([o,l],a),p=Math.min(c[0],u[0],d[0],h[0]),f=Math.min(c[1],u[1],d[1],h[1]),g=Math.max(c[0],u[0],d[0],h[0]),m=Math.max(c[1],u[1],d[1],h[1]);this.ctx.fillRect(p,f,g-p,m-f)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.restore()},beginInlineImage:function(){(0,n.unreachable)("Should not call beginInlineImage")},beginImageData:function(){(0,n.unreachable)("Should not call beginImageData")},paintFormXObjectBegin:function(e,t){if(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(e)&&6===e.length&&this.transform.apply(this,e),this.baseTransform=this.ctx.mozCurrentTransform,t){var r=t[2]-t[0],n=t[3]-t[1];this.ctx.rect(t[0],t[1],r,n),this.clip(),this.endPath()}},paintFormXObjectEnd:function(){this.restore(),this.baseTransform=this.baseTransformStack.pop()},beginGroup:function(e){this.save();var t=this.ctx;e.isolated||(0,n.info)("TODO: Support non-isolated groups."),e.knockout&&(0,n.warn)("Knockout groups not supported.");var r=t.mozCurrentTransform;if(e.matrix&&t.transform.apply(t,e.matrix),!e.bbox)throw new Error("Bounding box is required.");var s=n.Util.getAxialAlignedBoundingBox(e.bbox,t.mozCurrentTransform),i=[0,0,t.canvas.width,t.canvas.height];s=n.Util.intersect(s,i)||[0,0,0,0];var o=Math.floor(s[0]),l=Math.floor(s[1]),c=Math.max(Math.ceil(s[2])-o,1),u=Math.max(Math.ceil(s[3])-l,1),h=1,p=1;c>a&&(h=c/a,c=a),u>a&&(p=u/a,u=a);var f="groupAt"+this.groupLevel;e.smask&&(f+="_smask_"+this.smaskCounter++%2);var g=this.cachedCanvases.getCanvas(f,c,u,!0),m=g.context;m.scale(1/h,1/p),m.translate(-o,-l),m.transform.apply(m,r),e.smask?this.smaskStack.push({canvas:g.canvas,context:m,offsetX:o,offsetY:l,scaleX:h,scaleY:p,subtype:e.smask.subtype,backdrop:e.smask.backdrop,transferMap:e.smask.transferMap||null,startTransformInverse:null}):(t.setTransform(1,0,0,1,0,0),t.translate(o,l),t.scale(h,p)),d(t,m),this.ctx=m,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(t),this.groupLevel++,this.current.activeSMask=null},endGroup:function(e){this.groupLevel--;var t=this.ctx;this.ctx=this.groupStack.pop(),void 0!==this.ctx.imageSmoothingEnabled?this.ctx.imageSmoothingEnabled=!1:this.ctx.mozImageSmoothingEnabled=!1,e.smask?this.tempSMask=this.smaskStack.pop():this.ctx.drawImage(t.canvas,0,0),this.restore()},beginAnnotations:function(){this.save(),this.baseTransform&&this.ctx.setTransform.apply(this.ctx,this.baseTransform)},endAnnotations:function(){this.restore()},beginAnnotation:function(e,t,r){if(this.save(),h(this.ctx),this.current=new u,Array.isArray(e)&&4===e.length){var n=e[2]-e[0],s=e[3]-e[1];this.ctx.rect(e[0],e[1],n,s),this.clip(),this.endPath()}this.transform.apply(this,t),this.transform.apply(this,r)},endAnnotation:function(){this.restore()},paintImageMaskXObject:function(e){var t=this.ctx,n=e.width,s=e.height,a=this.current.fillColor,i=this.current.patternFill,o=this.processingType3;if(o&&void 0===o.compiled&&(o.compiled=n<=1e3&&s<=1e3?function(e){var t,r,n,s,a=e.width,i=e.height,o=a+1,l=new Uint8Array(o*(i+1)),c=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),u=a+7&-8,d=e.data,h=new Uint8Array(u*i),p=0;for(t=0,s=d.length;t0;)h[p++]=g&f?0:255,f>>=1;var m=0;for(0!==h[p=0]&&(l[0]=1,++m),r=1;r>2)+(h[p+1]?4:0)+(h[p-u+1]?8:0)]&&(l[n+r]=c[v],++m),p++;if(h[p-u]!==h[p]&&(l[n+r]=h[p]?2:4,++m),m>1e3)return null}for(n=t*o,0!==h[p=u*(i-1)]&&(l[n]=8,++m),r=1;r1e3)return null;var b=new Int32Array([0,o,-1,0,-o,0,0,0,1]),y=[];for(t=0;m&&t<=i;t++){for(var A=t*o,_=A+a;A<_&&!l[A];)A++;if(A!==_){var x,S=[A%o,t],w=l[A],P=A;do{var C=b[w];do{A+=C}while(!l[A]);5!==(x=l[A])&&10!==x?(w=x,l[A]=0):(w=x&51*w>>4,l[A]&=w>>2|w<<2),S.push(A%o),S.push(A/o|0),l[A]||--m}while(P!==A);y.push(S),--t}}return function(e){e.save(),e.scale(1/a,-1/i),e.translate(0,-i),e.beginPath();for(let r=0,n=y.length;r2&&g>1||p>2&&m>1;){var b=g,y=m;u>2&&g>1&&(u/=g/(b=Math.ceil(g/2))),p>2&&m>1&&(p/=m/(y=Math.ceil(m/2))),(f=(i=this.cachedCanvases.getCanvas(v,b,y)).context).clearRect(0,0,b,y),f.drawImage(a,0,0,g,m,0,0,b,y),a=i.canvas,g=b,m=y,v="prescale1"===v?"prescale2":"prescale1"}if(s.drawImage(a,0,0,g,m,0,-n,r,n),this.imageLayer){var A=this.getCanvasPosition(0,-n);this.imageLayer.appendImage({imgData:e,left:A[0],top:A[1],width:r/o[0],height:n/o[3]})}this.restore()},paintInlineImageXObjectGroup:function(e,r){var n=this.ctx,s=e.width,a=e.height,i=this.cachedCanvases.getCanvas("inlineImage",s,a);t(i.context,e);for(var o=0,l=r.length;oc[n+1]&&(l=r,r=n,n=l,l=a,a=i,i=l),c[n+1]>c[s+1]&&(l=n,n=s,s=l,l=i,i=o,o=l),c[r+1]>c[n+1]&&(l=r,r=n,n=l,l=a,a=i,i=l);var p=(c[r]+t.offsetX)*t.scaleX,f=(c[r+1]+t.offsetY)*t.scaleY,g=(c[n]+t.offsetX)*t.scaleX,m=(c[n+1]+t.offsetY)*t.scaleY,v=(c[s]+t.offsetX)*t.scaleX,b=(c[s+1]+t.offsetY)*t.scaleY;if(!(f>=b))for(var y,A,_,x,S,w,P,C,k=u[a],R=u[a+1],E=u[a+2],T=u[i],L=u[i+1],O=u[i+2],F=u[o],D=u[o+1],I=u[o+2],M=Math.round(f),N=Math.round(b),j=M;j<=N;j++){if(jb?1:m===b?0:(m-j)/(m-b),y=g-(g-v)*e,A=T-(T-F)*e,_=L-(L-D)*e,x=O-(O-I)*e}let e;e=jb?1:(f-j)/(f-b),S=p-(p-v)*e,w=k-(k-F)*e,P=R-(R-D)*e,C=E-(E-I)*e;for(var U=Math.round(Math.min(y,S)),W=Math.round(Math.max(y,S)),q=h*j+4*U,G=U;G<=W;G++)e=(y-G)/(y-S),e<0?e=0:e>1&&(e=1),d[q++]=A-(A-w)*e|0,d[q++]=_-(_-P)*e|0,d[q++]=x-(x-C)*e|0,d[q++]=255}}function t(t,r,n){var s,a,i=r.coords,o=r.colors;switch(r.type){case"lattice":var l=r.verticesPerRow,c=Math.floor(i.length/l)-1,u=l-1;for(s=0;s=n?s=n:r=s/e,{scale:r,size:s}},clipBbox:function(e,t,r,n,s,a){if(Array.isArray(t)&&4===t.length){var i=s-r,o=a-n;e.ctx.rect(r,n,i,o),e.clip(),e.endPath()}},setFillAndStrokeStyleToContext:function(e,t,r){const s=e.ctx,a=e.current;switch(t){case 1:var i=this.ctx;s.fillStyle=i.fillStyle,s.strokeStyle=i.strokeStyle,a.fillColor=i.fillStyle,a.strokeColor=i.strokeStyle;break;case 2:var o=n.Util.makeCssRgb(r[0],r[1],r[2]);s.fillStyle=o,s.strokeStyle=o,a.fillColor=o,a.strokeColor=o;break;default:throw new n.FormatError(`Unsupported paint type: ${t}`)}},getPattern:function(e,t){(e=this.ctx).setTransform.apply(e,this.baseTransform),e.transform.apply(e,this.matrix);var r=this.createPatternCanvas(t);return e.createPattern(r,"repeat")}},e}();t.TilingPattern=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalWorkerOptions=void 0;const n=Object.create(null);t.GlobalWorkerOptions=n,n.workerPort=void 0===n.workerPort?null:n.workerPort,n.workerSrc=void 0===n.workerSrc?"":n.workerSrc},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var n=r(2);function s(e){if("object"!=typeof e||null===e)return e;switch(e.name){case"AbortException":return new n.AbortException(e.message);case"MissingPDFException":return new n.MissingPDFException(e.message);case"UnexpectedResponseException":return new n.UnexpectedResponseException(e.message,e.status);case"UnknownErrorException":return new n.UnknownErrorException(e.message,e.details);default:return new n.UnknownErrorException(e.message,e.toString())}}t.MessageHandler=class{constructor(e,t,r){this.sourceName=e,this.targetName=t,this.comObj=r,this.callbackId=1,this.streamId=1,this.postMessageTransfers=!0,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=e=>{const t=e.data;if(t.targetName!==this.sourceName)return;if(t.stream)return void this._processStreamMessage(t);if(t.callback){const e=t.callbackId,r=this.callbackCapabilities[e];if(!r)throw new Error(`Cannot resolve callback ${e}`);if(delete this.callbackCapabilities[e],1===t.callback)r.resolve(t.data);else{if(2!==t.callback)throw new Error("Unexpected callback case");r.reject(s(t.reason))}return}const n=this.actionHandler[t.action];if(!n)throw new Error(`Unknown action from worker: ${t.action}`);if(t.callbackId){const e=this.sourceName,a=t.sourceName;new Promise((function(e){e(n(t.data))})).then((function(n){r.postMessage({sourceName:e,targetName:a,callback:1,callbackId:t.callbackId,data:n})}),(function(n){r.postMessage({sourceName:e,targetName:a,callback:2,callbackId:t.callbackId,reason:s(n)})}))}else t.streamId?this._createStreamSink(t):n(t.data)},r.addEventListener("message",this._onComObjOnMessage)}on(e,t){const r=this.actionHandler;if(r[e])throw new Error(`There is already an actionName called "${e}"`);r[e]=t}send(e,t,r){this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},r)}sendWithPromise(e,t,r){const s=this.callbackId++,a=(0,n.createPromiseCapability)();this.callbackCapabilities[s]=a;try{this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:s,data:t},r)}catch(e){a.reject(e)}return a.promise}sendWithStream(e,t,r,a){const i=this.streamId++,o=this.sourceName,l=this.targetName,c=this.comObj;return new ReadableStream({start:r=>{const s=(0,n.createPromiseCapability)();return this.streamControllers[i]={controller:r,startCall:s,pullCall:null,cancelCall:null,isClosed:!1},this._postMessage({sourceName:o,targetName:l,action:e,streamId:i,data:t,desiredSize:r.desiredSize},a),s.promise},pull:e=>{const t=(0,n.createPromiseCapability)();return this.streamControllers[i].pullCall=t,c.postMessage({sourceName:o,targetName:l,stream:6,streamId:i,desiredSize:e.desiredSize}),t.promise},cancel:e=>{(0,n.assert)(e instanceof Error,"cancel must have a valid reason");const t=(0,n.createPromiseCapability)();return this.streamControllers[i].cancelCall=t,this.streamControllers[i].isClosed=!0,c.postMessage({sourceName:o,targetName:l,stream:1,streamId:i,reason:s(e)}),t.promise}},r)}_createStreamSink(e){const t=this,r=this.actionHandler[e.action],a=e.streamId,i=this.sourceName,o=e.sourceName,l=this.comObj,c={enqueue(e,r=1,s){if(this.isCancelled)return;const l=this.desiredSize;this.desiredSize-=r,l>0&&this.desiredSize<=0&&(this.sinkCapability=(0,n.createPromiseCapability)(),this.ready=this.sinkCapability.promise),t._postMessage({sourceName:i,targetName:o,stream:4,streamId:a,chunk:e},s)},close(){this.isCancelled||(this.isCancelled=!0,l.postMessage({sourceName:i,targetName:o,stream:3,streamId:a}),delete t.streamSinks[a])},error(e){(0,n.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,l.postMessage({sourceName:i,targetName:o,stream:5,streamId:a,reason:s(e)}))},sinkCapability:(0,n.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};c.sinkCapability.resolve(),c.ready=c.sinkCapability.promise,this.streamSinks[a]=c,new Promise((function(t){t(r(e.data,c))})).then((function(){l.postMessage({sourceName:i,targetName:o,stream:8,streamId:a,success:!0})}),(function(e){l.postMessage({sourceName:i,targetName:o,stream:8,streamId:a,reason:s(e)})}))}_processStreamMessage(e){const t=e.streamId,r=this.sourceName,a=e.sourceName,i=this.comObj;switch(e.stream){case 8:e.success?this.streamControllers[t].startCall.resolve():this.streamControllers[t].startCall.reject(s(e.reason));break;case 7:e.success?this.streamControllers[t].pullCall.resolve():this.streamControllers[t].pullCall.reject(s(e.reason));break;case 6:if(!this.streamSinks[t]){i.postMessage({sourceName:r,targetName:a,stream:7,streamId:t,success:!0});break}this.streamSinks[t].desiredSize<=0&&e.desiredSize>0&&this.streamSinks[t].sinkCapability.resolve(),this.streamSinks[t].desiredSize=e.desiredSize;const{onPull:o}=this.streamSinks[e.streamId];new Promise((function(e){e(o&&o())})).then((function(){i.postMessage({sourceName:r,targetName:a,stream:7,streamId:t,success:!0})}),(function(e){i.postMessage({sourceName:r,targetName:a,stream:7,streamId:t,reason:s(e)})}));break;case 4:if((0,n.assert)(this.streamControllers[t],"enqueue should have stream controller"),this.streamControllers[t].isClosed)break;this.streamControllers[t].controller.enqueue(e.chunk);break;case 3:if((0,n.assert)(this.streamControllers[t],"close should have stream controller"),this.streamControllers[t].isClosed)break;this.streamControllers[t].isClosed=!0,this.streamControllers[t].controller.close(),this._deleteStreamController(t);break;case 5:(0,n.assert)(this.streamControllers[t],"error should have stream controller"),this.streamControllers[t].controller.error(s(e.reason)),this._deleteStreamController(t);break;case 2:e.success?this.streamControllers[t].cancelCall.resolve():this.streamControllers[t].cancelCall.reject(s(e.reason)),this._deleteStreamController(t);break;case 1:if(!this.streamSinks[t])break;const{onCancel:l}=this.streamSinks[e.streamId];new Promise((function(t){t(l&&l(s(e.reason)))})).then((function(){i.postMessage({sourceName:r,targetName:a,stream:2,streamId:t,success:!0})}),(function(e){i.postMessage({sourceName:r,targetName:a,stream:2,streamId:t,reason:s(e)})})),this.streamSinks[t].sinkCapability.reject(s(e.reason)),this.streamSinks[t].isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}async _deleteStreamController(e){await Promise.allSettled([this.streamControllers[e].startCall,this.streamControllers[e].pullCall,this.streamControllers[e].cancelCall].map((function(e){return e&&e.promise}))),delete this.streamControllers[e]}_postMessage(e,t){t&&this.postMessageTransfers?this.comObj.postMessage(e,t):this.comObj.postMessage(e)}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;var n=r(2),s=r(13);t.Metadata=class{constructor(e){(0,n.assert)("string"==typeof e,"Metadata: input is not a string"),e=this._repair(e);const t=(new s.SimpleXMLParser).parseFromString(e);this._metadataMap=new Map,t&&this._parse(t)}_repair(e){return e.replace(/^[^<]+/,"").replace(/>\\376\\377([^<]+)/g,(function(e,t){const r=t.replace(/\\([0-3])([0-7])([0-7])/g,(function(e,t,r,n){return String.fromCharCode(64*t+8*r+1*n)})).replace(/&(amp|apos|gt|lt|quot);/g,(function(e,t){switch(t){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw new Error(`_repair: ${t} isn't defined.`)}));let n="";for(let e=0,t=r.length;e=32&&t<127&&60!==t&&62!==t&&38!==t?String.fromCharCode(t):"&#x"+(65536+t).toString(16).substring(1)+";"}return">"+n}))}_parse(e){let t=e.documentElement;if("rdf:rdf"!==t.nodeName.toLowerCase())for(t=t.firstChild;t&&"rdf:rdf"!==t.nodeName.toLowerCase();)t=t.nextSibling;const r=t?t.nodeName.toLowerCase():null;if(!t||"rdf:rdf"!==r||!t.hasChildNodes())return;const n=t.childNodes;for(let e=0,t=n.length;e{if("#x"===t.substring(0,2))return String.fromCharCode(parseInt(t.substring(2),16));if("#"===t.substring(0,1))return String.fromCharCode(parseInt(t.substring(1),10));switch(t){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"'}return this.onResolveEntity(t)}))}_parseContent(e,t){const r=[];let s=t;function a(){for(;s"!==e[s]&&"/"!==e[s];)++s;const i=e.substring(t,s);for(a();s"!==e[s]&&"/"!==e[s]&&"?"!==e[s];){a();let t="",i="";for(;s"!==e[r]&&"/"!==e[r];)++r;const s=e.substring(t,r);!function(){for(;r"!==e[r+1]);)++r;return{name:s,value:e.substring(a,r),parsed:r-t}}parseXml(e){let t=0;for(;t",r),t<0)return void this.onError(-9);this.onEndElement(e.substring(r,t)),r=t+1;break;case"?":++r;const n=this._parseProcessingInstruction(e,r);if("?>"!==e.substring(r+n.parsed,r+n.parsed+2))return void this.onError(-3);this.onPi(n.name,n.value),r+=n.parsed+2;break;case"!":if("--"===e.substring(r+1,r+3)){if(t=e.indexOf("--\x3e",r+3),t<0)return void this.onError(-5);this.onComment(e.substring(r+3,t)),r=t+3}else if("[CDATA["===e.substring(r+1,r+8)){if(t=e.indexOf("]]>",r+8),t<0)return void this.onError(-2);this.onCdata(e.substring(r+8,t)),r=t+3}else{if("DOCTYPE"!==e.substring(r+1,r+8))return void this.onError(-6);{const n=e.indexOf("[",r+8);let s=!1;if(t=e.indexOf(">",r+8),t<0)return void this.onError(-4);if(n>0&&t>n){if(t=e.indexOf("]>",r+8),t<0)return void this.onError(-4);s=!0}const a=e.substring(r+8,t+(s?1:0));this.onDoctype(a),r=t+(s?2:1)}}break;default:const s=this._parseContent(e,r);if(null===s)return void this.onError(-6);let a=!1;if("/>"===e.substring(r+s.parsed,r+s.parsed+2))a=!0;else if(">"!==e.substring(r+s.parsed,r+s.parsed+1))return void this.onError(-9);this.onBeginElement(s.name,s.attributes,a),r+=s.parsed+(a?2:1)}}else{for(;r0}}t.SimpleXMLParser=class extends s{constructor(){super(),this._currentFragment=null,this._stack=null,this._errorCode=0}parseFromString(e){if(this._currentFragment=[],this._stack=[],this._errorCode=0,this.parseXml(e),0!==this._errorCode)return;const[t]=this._currentFragment;return t?{documentElement:t}:void 0}onResolveEntity(e){return"apos"===e?"'":super.onResolveEntity(e)}onText(e){if(function(e){for(let t=0,r=e.length;t0){const e=new Uint8Array(r).buffer;this._queuedChunks.push(e)}this._pdfDataRangeTransport=t,this._isStreamingSupported=!e.disableStream,this._isRangeSupported=!e.disableRange,this._contentLength=e.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener(((e,t)=>{this._onReceiveData({begin:e,chunk:t})})),this._pdfDataRangeTransport.addProgressListener(((e,t)=>{this._onProgress({loaded:e,total:t})})),this._pdfDataRangeTransport.addProgressiveReadListener((e=>{this._onReceiveData({chunk:e})})),this._pdfDataRangeTransport.addProgressiveDoneListener((()=>{this._onProgressiveDone()})),this._pdfDataRangeTransport.transportReady()}_onReceiveData(e){const t=new Uint8Array(e.chunk).buffer;if(void 0===e.begin)this._fullRequestReader?this._fullRequestReader._enqueue(t):this._queuedChunks.push(t);else{const r=this._rangeReaders.some((function(r){return r._begin===e.begin&&(r._enqueue(t),!0)}));(0,n.assert)(r,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){return this._fullRequestReader?this._fullRequestReader._loaded:0}_onProgress(e){if(void 0===e.total){const t=this._rangeReaders[0];t&&t.onProgress&&t.onProgress({loaded:e.loaded})}else{const t=this._fullRequestReader;t&&t.onProgress&&t.onProgress({loaded:e.loaded,total:e.total})}}_onProgressiveDone(){this._fullRequestReader&&this._fullRequestReader.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(e){const t=this._rangeReaders.indexOf(e);t>=0&&this._rangeReaders.splice(t,1)}getFullReader(){(0,n.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const e=this._queuedChunks;return this._queuedChunks=null,new s(this,e,this._progressiveDone)}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const r=new a(this,e,t);return this._pdfDataRangeTransport.requestDataRange(e,t),this._rangeReaders.push(r),r}cancelAllRequests(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeReaders.slice(0).forEach((function(t){t.cancel(e)})),this._pdfDataRangeTransport.abort()}};class s{constructor(e,t,r=!1){this._stream=e,this._done=r||!1,this._filename=null,this._queuedChunks=t||[],this._loaded=0;for(const e of this._queuedChunks)this._loaded+=e.byteLength;this._requests=[],this._headersReady=Promise.resolve(),e._fullRequestReader=this,this.onProgress=null}_enqueue(e){this._done||(this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._queuedChunks.push(e),this._loaded+=e.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0)return{value:this._queuedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const e=(0,n.createPromiseCapability)();return this._requests.push(e),e.promise}cancel(e){this._done=!0,this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[]}progressiveDone(){this._done||(this._done=!0)}}class a{constructor(e,t,r){this._stream=e,this._begin=t,this._end=r,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(e){this._done||(0===this._requests.length?this._queuedChunk=e:(this._requests.shift().resolve({value:e,done:!1}),this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[]),this._done=!0,this._stream._removeRangeReader(this))}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){const e=this._queuedChunk;return this._queuedChunk=null,{value:e,done:!1}}if(this._done)return{value:void 0,done:!0};const e=(0,n.createPromiseCapability)();return this._requests.push(e),e.promise}cancel(e){this._done=!0,this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[],this._stream._removeRangeReader(this)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebGLContext=void 0;var n=r(2);t.WebGLContext=class{constructor({enable:e=!1}){this._enabled=!0===e}get isEnabled(){let e=this._enabled;return e&&(e=s.tryInitGL()),(0,n.shadow)(this,"isEnabled",e)}composeSMask({layer:e,mask:t,properties:r}){return s.composeSMask(e,t,r)}drawFigures({width:e,height:t,backgroundColor:r,figures:n,context:a}){return s.drawFigures(e,t,r,n,a)}clear(){s.cleanup()}};var s=function(){function e(e,t,r){var n=e.createShader(r);if(e.shaderSource(n,t),e.compileShader(n),!e.getShaderParameter(n,e.COMPILE_STATUS)){var s=e.getShaderInfoLog(n);throw new Error("Error during shader compilation: "+s)}return n}function t(t,r){return e(t,r,t.VERTEX_SHADER)}function r(t,r){return e(t,r,t.FRAGMENT_SHADER)}function n(e,t){for(var r=e.createProgram(),n=0,s=t.length;n 0.0) { maskColor.rgb = maskColor.rgb * maskColor.a + u_backdrop.rgb * (1.0 - maskColor.a); } float lum; if (u_subtype == 0) { lum = maskColor.a; } else { lum = maskColor.r * 0.3 + maskColor.g * 0.59 + maskColor.b * 0.11; } imageColor.a *= lum; imageColor.rgb *= imageColor.a; gl_FragColor = imageColor; } ")]);s.useProgram(c);var u={};u.gl=s,u.canvas=e,u.resolutionLocation=s.getUniformLocation(c,"u_resolution"),u.positionLocation=s.getAttribLocation(c,"a_position"),u.backdropLocation=s.getUniformLocation(c,"u_backdrop"),u.subtypeLocation=s.getUniformLocation(c,"u_subtype");var d=s.getAttribLocation(c,"a_texCoord"),h=s.getUniformLocation(c,"u_image"),p=s.getUniformLocation(c,"u_mask"),f=s.createBuffer();s.bindBuffer(s.ARRAY_BUFFER,f),s.bufferData(s.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]),s.STATIC_DRAW),s.enableVertexAttribArray(d),s.vertexAttribPointer(d,2,s.FLOAT,!1,0,0),s.uniform1i(h,0),s.uniform1i(p,1),l=u}();var p=l,f=p.canvas,g=p.gl;f.width=d,f.height=h,g.viewport(0,0,g.drawingBufferWidth,g.drawingBufferHeight),g.uniform2f(p.resolutionLocation,d,h),u.backdrop?g.uniform4f(p.resolutionLocation,u.backdrop[0],u.backdrop[1],u.backdrop[2],1):g.uniform4f(p.resolutionLocation,0,0,0,0),g.uniform1i(p.subtypeLocation,"Luminosity"===u.subtype?1:0);var m=s(g,e,g.TEXTURE0),v=s(g,c,g.TEXTURE1),b=g.createBuffer();return g.bindBuffer(g.ARRAY_BUFFER,b),g.bufferData(g.ARRAY_BUFFER,new Float32Array([0,0,d,0,0,h,0,h,d,0,d,h]),g.STATIC_DRAW),g.enableVertexAttribArray(p.positionLocation),g.vertexAttribPointer(p.positionLocation,2,g.FLOAT,!1,0,0),g.clearColor(0,0,0,0),g.enable(g.BLEND),g.blendFunc(g.ONE,g.ONE_MINUS_SRC_ALPHA),g.clear(g.COLOR_BUFFER_BIT),g.drawArrays(g.TRIANGLES,0,6),g.flush(),g.deleteTexture(m),g.deleteTexture(v),g.deleteBuffer(b),f},drawFigures:function(e,s,l,u,d){c||function(){var e,s;o(),e=i,i=null,s=a,a=null;var l=n(s,[t(s," attribute vec2 a_position; attribute vec3 a_color; uniform vec2 u_resolution; uniform vec2 u_scale; uniform vec2 u_offset; varying vec4 v_color; void main() { vec2 position = (a_position + u_offset) * u_scale; vec2 clipSpace = (position / u_resolution) * 2.0 - 1.0; gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1); v_color = vec4(a_color / 255.0, 1.0); } "),r(s," precision mediump float; varying vec4 v_color; void main() { gl_FragColor = v_color; } ")]);s.useProgram(l);var u={};u.gl=s,u.canvas=e,u.resolutionLocation=s.getUniformLocation(l,"u_resolution"),u.scaleLocation=s.getUniformLocation(l,"u_scale"),u.offsetLocation=s.getUniformLocation(l,"u_offset"),u.positionLocation=s.getAttribLocation(l,"a_position"),u.colorLocation=s.getAttribLocation(l,"a_color"),c=u}();var h=c,p=h.canvas,f=h.gl;p.width=e,p.height=s,f.viewport(0,0,f.drawingBufferWidth,f.drawingBufferHeight),f.uniform2f(h.resolutionLocation,e,s);var g,m,v,b=0;for(g=0,m=u.length;g0){a.style.borderWidth=`${t.borderStyle.width}px`,t.borderStyle.style!==s.AnnotationBorderStyleType.UNDERLINE&&(i-=2*t.borderStyle.width,o-=2*t.borderStyle.width);const e=t.borderStyle.horizontalCornerRadius,r=t.borderStyle.verticalCornerRadius;if(e>0||r>0){const t=`${e}px / ${r}px`;a.style.borderRadius=t}switch(t.borderStyle.style){case s.AnnotationBorderStyleType.SOLID:a.style.borderStyle="solid";break;case s.AnnotationBorderStyleType.DASHED:a.style.borderStyle="dashed";break;case s.AnnotationBorderStyleType.BEVELED:(0,s.warn)("Unimplemented border style: beveled");break;case s.AnnotationBorderStyleType.INSET:(0,s.warn)("Unimplemented border style: inset");break;case s.AnnotationBorderStyleType.UNDERLINE:a.style.borderBottomStyle="solid"}t.color?a.style.borderColor=s.Util.makeCssRgb(0|t.color[0],0|t.color[1],0|t.color[2]):a.style.borderWidth=0}return a.style.left=`${l[0]}px`,a.style.top=`${l[1]}px`,a.style.width=`${i}px`,a.style.height=`${o}px`,a}_createPopup(e,t,r){t||((t=document.createElement("div")).style.height=e.style.height,t.style.width=e.style.width,e.appendChild(t));const n=new m({container:e,trigger:t,color:r.color,title:r.title,modificationDate:r.modificationDate,contents:r.contents,hideWrapper:!0}).render();n.style.left=e.style.width,e.appendChild(n)}render(){(0,s.unreachable)("Abstract method `AnnotationElement.render` called")}}class o extends i{constructor(e){super(e,!!(e.data.url||e.data.dest||e.data.action))}render(){this.container.className="linkAnnotation";const{data:e,linkService:t}=this,r=document.createElement("a");return e.url?(0,n.addLinkAttributes)(r,{url:e.url,target:e.newWindow?n.LinkTarget.BLANK:t.externalLinkTarget,rel:t.externalLinkRel,enabled:t.externalLinkEnabled}):e.action?this._bindNamedAction(r,e.action):this._bindLink(r,e.dest),this.container.appendChild(r),this.container}_bindLink(e,t){e.href=this.linkService.getDestinationHash(t),e.onclick=()=>(t&&this.linkService.navigateTo(t),!1),t&&(e.className="internalLink")}_bindNamedAction(e,t){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeNamedAction(t),!1),e.className="internalLink"}}class l extends i{constructor(e){super(e,!!(e.data.hasPopup||e.data.title||e.data.contents))}render(){this.container.className="textAnnotation";const e=document.createElement("img");return e.style.height=this.container.style.height,e.style.width=this.container.style.width,e.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",e.alt="[{{type}} Annotation]",e.dataset.l10nId="text_annotation_type",e.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(this.container,e,this.data),this.container.appendChild(e),this.container}}class c extends i{render(){return this.container}}class u extends c{constructor(e){super(e,e.renderInteractiveForms||!e.data.hasAppearance&&!!e.data.fieldValue)}render(){this.container.className="textWidgetAnnotation";let e=null;if(this.renderInteractiveForms){if(this.data.multiLine?(e=document.createElement("textarea"),e.textContent=this.data.fieldValue):(e=document.createElement("input"),e.type="text",e.setAttribute("value",this.data.fieldValue)),e.disabled=this.data.readOnly,e.name=this.data.fieldName,null!==this.data.maxLen&&(e.maxLength=this.data.maxLen),this.data.comb){const t=(this.data.rect[2]-this.data.rect[0])/this.data.maxLen;e.classList.add("comb"),e.style.letterSpacing=`calc(${t}px - 1ch)`}}else{e=document.createElement("div"),e.textContent=this.data.fieldValue,e.style.verticalAlign="middle",e.style.display="table-cell";let t=null;this.data.fontRefName&&this.page.commonObjs.has(this.data.fontRefName)&&(t=this.page.commonObjs.get(this.data.fontRefName)),this._setTextStyle(e,t)}return null!==this.data.textAlignment&&(e.style.textAlign=["left","center","right"][this.data.textAlignment]),this.container.appendChild(e),this.container}_setTextStyle(e,t){const r=e.style;if(r.fontSize=`${this.data.fontSize}px`,r.direction=this.data.fontDirection<0?"rtl":"ltr",!t)return;let n="normal";t.black?n="900":t.bold&&(n="bold"),r.fontWeight=n,r.fontStyle=t.italic?"italic":"normal";const s=t.loadedName?`"${t.loadedName}", `:"",a=t.fallbackName||"Helvetica, sans-serif";r.fontFamily=s+a}}class d extends c{constructor(e){super(e,e.renderInteractiveForms)}render(){this.container.className="buttonWidgetAnnotation checkBox";const e=document.createElement("input");return e.disabled=this.data.readOnly,e.type="checkbox",e.name=this.data.fieldName,this.data.fieldValue&&"Off"!==this.data.fieldValue&&e.setAttribute("checked",!0),this.container.appendChild(e),this.container}}class h extends c{constructor(e){super(e,e.renderInteractiveForms)}render(){this.container.className="buttonWidgetAnnotation radioButton";const e=document.createElement("input");return e.disabled=this.data.readOnly,e.type="radio",e.name=this.data.fieldName,this.data.fieldValue===this.data.buttonValue&&e.setAttribute("checked",!0),this.container.appendChild(e),this.container}}class p extends o{render(){const e=super.render();return e.className="buttonWidgetAnnotation pushButton",e}}class f extends c{constructor(e){super(e,e.renderInteractiveForms)}render(){this.container.className="choiceWidgetAnnotation";const e=document.createElement("select");e.disabled=this.data.readOnly,e.name=this.data.fieldName,this.data.combo||(e.size=this.data.options.length,this.data.multiSelect&&(e.multiple=!0));for(const t of this.data.options){const r=document.createElement("option");r.textContent=t.displayValue,r.value=t.exportValue,this.data.fieldValue.includes(t.displayValue)&&r.setAttribute("selected",!0),e.appendChild(r)}return this.container.appendChild(e),this.container}}class g extends i{constructor(e){super(e,!(!e.data.title&&!e.data.contents))}render(){if(this.container.className="popupAnnotation",["Line","Square","Circle","PolyLine","Polygon","Ink"].includes(this.data.parentType))return this.container;const e=`[data-annotation-id="${this.data.parentId}"]`,t=this.layer.querySelector(e);if(!t)return this.container;const r=new m({container:this.container,trigger:t,color:this.data.color,title:this.data.title,modificationDate:this.data.modificationDate,contents:this.data.contents}),n=parseFloat(t.style.left),s=parseFloat(t.style.width);return this.container.style.transformOrigin=`-${n+s}px -${t.style.top}`,this.container.style.left=`${n+s}px`,this.container.appendChild(r.render()),this.container}}class m{constructor(e){this.container=e.container,this.trigger=e.trigger,this.color=e.color,this.title=e.title,this.modificationDate=e.modificationDate,this.contents=e.contents,this.hideWrapper=e.hideWrapper||!1,this.pinned=!1}render(){const e=document.createElement("div");e.className="popupWrapper",this.hideElement=this.hideWrapper?e:this.container,this.hideElement.setAttribute("hidden",!0);const t=document.createElement("div");t.className="popup";const r=this.color;if(r){const e=.7*(255-r[0])+r[0],n=.7*(255-r[1])+r[1],a=.7*(255-r[2])+r[2];t.style.backgroundColor=s.Util.makeCssRgb(0|e,0|n,0|a)}const a=document.createElement("h1");a.textContent=this.title,t.appendChild(a);const i=n.PDFDateString.toDateObject(this.modificationDate);if(i){const e=document.createElement("span");e.textContent="{{date}}, {{time}}",e.dataset.l10nId="annotation_date_string",e.dataset.l10nArgs=JSON.stringify({date:i.toLocaleDateString(),time:i.toLocaleTimeString()}),t.appendChild(e)}const o=this._formatContents(this.contents);return t.appendChild(o),this.trigger.addEventListener("click",this._toggle.bind(this)),this.trigger.addEventListener("mouseover",this._show.bind(this,!1)),this.trigger.addEventListener("mouseout",this._hide.bind(this,!1)),t.addEventListener("click",this._hide.bind(this,!0)),e.appendChild(t),e}_formatContents(e){const t=document.createElement("p"),r=e.split(/(?:\r\n?|\n)/);for(let e=0,n=r.length;e1)g=!0;else if(r.transform[0]!==r.transform[3]){const e=Math.abs(r.transform[0]),t=Math.abs(r.transform[3]);e!==t&&Math.max(e,t)/Math.min(e,t)>1.5&&(g=!0)}if(g&&(u.vertical?o.canvasWidth=r.height*t._viewport.scale:o.canvasWidth=r.width*t._viewport.scale),t._textDivProperties.set(i,o),t._textContentStream&&t._layoutText(i),t._enhanceTextSelection){var m=1,v=0;0!==c&&(m=Math.cos(c),v=Math.sin(c));var b,y,A=(u.vertical?r.height:r.width)*t._viewport.scale,_=d;0!==c?(b=[m,v,-v,m,p,f],y=n.Util.getAxialAlignedBoundingBox([0,0,A,_],b)):y=[p,f,p+A,f+_],t._bounds.push({left:y[0],top:y[1],right:y[2],bottom:y[3],div:i,size:[A,_],m:b})}}function r(e){if(!e._canceled){var t=e._textDivs,r=e._capability,n=t.length;if(n>1e5)return e._renderingDone=!0,void r.resolve();if(!e._textContentStream)for(var s=0;s0&&(n=n?Math.min(r,n):r)}return n}function a(e,t){t.sort((function(e,t){return e.x1-t.x1||e.index-t.index}));var r=[{start:-1/0,end:1/0,boundary:{x1:-1/0,y1:-1/0,x2:0,y2:1/0,index:-1,x1New:0,x2New:0}}];t.forEach((function(e){for(var t=0;t=0&&r[a].start>=e.y2;)a--;var i,o,l=-1/0;for(i=t;i<=a;i++){var c;(c=(s=(n=r[i]).boundary).x2>e.x1?s.index>e.index?s.x1New:e.x1:void 0===s.x2New?(s.x2+e.x1)/2:s.x2New)>l&&(l=c)}for(e.x1New=l,i=t;i<=a;i++)void 0===(s=(n=r[i]).boundary).x2New?s.x2>e.x1?s.index>e.index&&(s.x2New=s.x2):s.x2New=l:s.x2New>l&&(s.x2New=Math.max(l,s.x2));var u=[],d=null;for(i=t;i<=a;i++){var h=(s=(n=r[i]).boundary).x2>e.x2?s:e;d===h?u[u.length-1].end=n.end:(u.push({start:n.start,end:n.end,boundary:h}),d=h)}for(r[t].start=0&&r[o].start>=s.y1;o--)p=r[o].boundary===s;for(o=a+1;!p&&o{this._layoutTextCtx&&(this._layoutTextCtx.canvas.width=0,this._layoutTextCtx.canvas.height=0,this._layoutTextCtx=null)})).catch((()=>{}))}return i.prototype={get promise(){return this._capability.promise},cancel:function(){this._canceled=!0,this._reader&&(this._reader.cancel(new n.AbortException("TextLayer task cancelled.")),this._reader=null),null!==this._renderTimer&&(clearTimeout(this._renderTimer),this._renderTimer=null),this._capability.reject(new Error("TextLayer task cancelled."))},_processItems(e,r){for(let n=0,s=e.length;n0&&(t.scale=t.canvasWidth/a,r=`scaleX(${t.scale})`)}0!==t.angle&&(r=`rotate(${t.angle}deg) ${r}`),r.length>0&&(this._enhanceTextSelection&&(t.originalTransform=r),e.style.transform=r),this._textDivProperties.set(e,t),this._container.appendChild(e)},_render:function(e){const t=(0,n.createPromiseCapability)();let s=Object.create(null);const a=document.createElement("canvas");if(a.mozOpaque=!0,this._layoutTextCtx=a.getContext("2d",{alpha:!1}),this._textContent){const e=this._textContent.items,r=this._textContent.styles;this._processItems(e,r),t.resolve()}else{if(!this._textContentStream)throw new Error('Neither "textContent" nor "textContentStream" parameters specified.');{const e=()=>{this._reader.read().then((({value:r,done:n})=>{n?t.resolve():(Object.assign(s,r.styles),this._processItems(r.items,s),e())}),t.reject)};this._reader=this._textContentStream.getReader(),e()}}t.promise.then((()=>{s=null,e?this._renderTimer=setTimeout((()=>{r(this),this._renderTimer=null}),e):r(this)}),this._capability.reject)},expandTextDivs:function(e){if(!this._enhanceTextSelection||!this._renderingDone)return;null!==this._bounds&&(function(e){for(var t=e._bounds,r=e._viewport,i=function(e,t,r){var n=r.map((function(e,t){return{x1:e.left,y1:e.top,x2:e.right,y2:e.bottom,index:t,x1New:void 0,x2New:void 0}}));a(e,n);var s=new Array(r.length);return n.forEach((function(e){var t=e.index;s[t]={left:e.x1New,top:0,right:e.x2New,bottom:0}})),r.map((function(t,r){var a=s[r],i=n[r];i.x1=t.top,i.y1=e-a.right,i.x2=t.bottom,i.y2=e-a.left,i.index=r,i.x1New=void 0,i.x2New=void 0})),a(t,n),n.forEach((function(e){var t=e.index;s[t].top=e.x1New,s[t].bottom=e.x2New})),s}(r.width,r.height,t),o=0;o0?(r.push(`${s.paddingTop}px`),t.push(`translateY(${-s.paddingTop}px)`)):r.push(0),s.paddingRight>0?r.push(s.paddingRight/s.scale+"px"):r.push(0),s.paddingBottom>0?r.push(`${s.paddingBottom}px`):r.push(0),s.paddingLeft>0?(r.push(s.paddingLeft/s.scale+"px"),t.push(`translateX(${-s.paddingLeft/s.scale}px)`)):r.push(0),n.style.padding=r.join(" "),t.length&&(n.style.transform=t.join(" "))):(n.style.padding=null,n.style.transform=s.originalTransform))}}},function(e){var t=new i({textContent:e.textContent,textContentStream:e.textContentStream,container:e.container,viewport:e.viewport,textDivs:e.textDivs,textContentItemsStr:e.textContentItemsStr,enhanceTextSelection:e.enhanceTextSelection});return t._render(e.timeout),t}}();t.renderTextLayer=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SVGGraphics=void 0;var n=r(2),s=r(1),a=r(4);let i=function(){throw new Error("Not implemented: SVGGraphics")};t.SVGGraphics=i;{const o={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},l="http://www.w3.org/XML/1998/namespace",c="http://www.w3.org/1999/xlink",u=["butt","round","square"],d=["miter","round","bevel"],h=function(){const e=new Uint8Array([137,80,78,71,13,10,26,10]),t=new Int32Array(256);for(let e=0;e<256;e++){let r=e;for(let e=0;e<8;e++)r=1&r?3988292384^r>>1&2147483647:r>>1&2147483647;t[e]=r}function r(e,r,n,s){let a=s;const i=r.length;n[a]=i>>24&255,n[a+1]=i>>16&255,n[a+2]=i>>8&255,n[a+3]=255&i,a+=4,n[a]=255&e.charCodeAt(0),n[a+1]=255&e.charCodeAt(1),n[a+2]=255&e.charCodeAt(2),n[a+3]=255&e.charCodeAt(3),a+=4,n.set(r,a),a+=r.length;const o=function(e,r,n){let s=-1;for(let a=r;a>>8^t[r]}return-1^s}(n,s+4,a);n[a]=o>>24&255,n[a+1]=o>>16&255,n[a+2]=o>>8&255,n[a+3]=255&o}function s(e){let t=e.length;const r=65535,n=Math.ceil(t/r),s=new Uint8Array(2+t+5*n+4);let a=0;s[a++]=120,s[a++]=156;let i=0;for(;t>r;)s[a++]=0,s[a++]=255,s[a++]=255,s[a++]=0,s[a++]=0,s.set(e.subarray(i,i+r),a),a+=r,i+=r,t-=r;s[a++]=1,s[a++]=255&t,s[a++]=t>>8&255,s[a++]=255&~t,s[a++]=(65535&~t)>>8&255,s.set(e.subarray(i),a),a+=e.length-i;const o=function(e,t,r){let n=1,s=0;for(let t=0;t>24&255,s[a++]=o>>16&255,s[a++]=o>>8&255,s[a++]=255&o,s}return function(t,i,o){return function(t,i,o,l){const c=t.width,u=t.height;let d,h,p;const f=t.data;switch(i){case n.ImageKind.GRAYSCALE_1BPP:h=0,d=1,p=c+7>>3;break;case n.ImageKind.RGB_24BPP:h=2,d=8,p=3*c;break;case n.ImageKind.RGBA_32BPP:h=6,d=8,p=4*c;break;default:throw new Error("invalid format")}const g=new Uint8Array((1+p)*u);let m=0,v=0;for(let e=0;e>24&255,c>>16&255,c>>8&255,255&c,u>>24&255,u>>16&255,u>>8&255,255&u,d,h,0,0,0]),y=function(e){if(!a.isNodeJS)return s(e);try{let t;t=parseInt(process.versions.node)>=8?e:Buffer.from(e);const r=__webpack_require__(945804).deflateSync(t,{level:9});return r instanceof Uint8Array?r:new Uint8Array(r)}catch(e){(0,n.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+e)}return s(e)}(g),A=e.length+36+b.length+y.length,_=new Uint8Array(A);let x=0;return _.set(e,x),x+=e.length,r("IHDR",b,_,x),x+=12+b.length,r("IDATA",y,_,x),x+=12+y.length,r("IEND",new Uint8Array(0),_,x),(0,n.createObjectURL)(_,"image/png",o)}(t,void 0===t.kind?n.ImageKind.GRAYSCALE_1BPP:t.kind,i,o)}}();class p{constructor(){this.fontSizeScale=1,this.fontWeight=o.fontWeight,this.fontSize=0,this.textMatrix=n.IDENTITY_MATRIX,this.fontMatrix=n.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=n.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=o.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}clone(){return Object.create(this)}setCurrentPoint(e,t){this.x=e,this.y=t}}function f(e){let t=[];const r=[];for(const n of e)"save"!==n.fn?"restore"===n.fn?t=r.pop():t.push(n):(t.push({fnId:92,fn:"group",items:[]}),r.push(t),t=t[t.length-1].items);return t}function g(e){if(Number.isInteger(e))return e.toString();const t=e.toFixed(10);let r=t.length-1;if("0"!==t[r])return t;do{r--}while("0"===t[r]);return t.substring(0,"."===t[r]?r:r+1)}function m(e){if(0===e[4]&&0===e[5]){if(0===e[1]&&0===e[2])return 1===e[0]&&1===e[3]?"":`scale(${g(e[0])} ${g(e[3])})`;if(e[0]===e[3]&&e[1]===-e[2])return`rotate(${g(180*Math.acos(e[0])/Math.PI)})`}else if(1===e[0]&&0===e[1]&&0===e[2]&&1===e[3])return`translate(${g(e[4])} ${g(e[5])})`;return`matrix(${g(e[0])} ${g(e[1])} ${g(e[2])} ${g(e[3])} ${g(e[4])} ${g(e[5])})`}let v=0,b=0,y=0;t.SVGGraphics=i=class{constructor(e,t,r=!1){this.svgFactory=new s.DOMSVGFactory,this.current=new p,this.transformMatrix=n.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=e,this.objs=t,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!r,this._operatorIdMapping=[];for(const e in n.OPS)this._operatorIdMapping[n.OPS[e]]=e}save(){this.transformStack.push(this.transformMatrix);const e=this.current;this.extraStack.push(e),this.current=e.clone()}restore(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}group(e){this.save(),this.executeOpTree(e),this.restore()}loadDependencies(e){const t=e.fnArray,r=e.argsArray;for(let e=0,s=t.length;e{e.get(t,r)}));this.current.dependencies.push(r)}return Promise.all(this.current.dependencies)}transform(e,t,r,s,a,i){const o=[e,t,r,s,a,i];this.transformMatrix=n.Util.transform(this.transformMatrix,o),this.tgrp=null}getSVG(e,t){this.viewport=t;const r=this._initialize(t);return this.loadDependencies(e).then((()=>(this.transformMatrix=n.IDENTITY_MATRIX,this.executeOpTree(this.convertOpList(e)),r)))}convertOpList(e){const t=this._operatorIdMapping,r=e.argsArray,n=e.fnArray,s=[];for(let e=0,a=n.length;e0&&(this.current.lineWidth=e)}setLineCap(e){this.current.lineCap=u[e]}setLineJoin(e){this.current.lineJoin=d[e]}setMiterLimit(e){this.current.miterLimit=e}setStrokeAlpha(e){this.current.strokeAlpha=e}setStrokeRGBColor(e,t,r){this.current.strokeColor=n.Util.makeCssRgb(e,t,r)}setFillAlpha(e){this.current.fillAlpha=e}setFillRGBColor(e,t,r){this.current.fillColor=n.Util.makeCssRgb(e,t,r),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}setStrokeColorN(e){this.current.strokeColor=this._makeColorN_Pattern(e)}setFillColorN(e){this.current.fillColor=this._makeColorN_Pattern(e)}shadingFill(e){const t=this.viewport.width,r=this.viewport.height,s=n.Util.inverseTransform(this.transformMatrix),a=n.Util.applyTransform([0,0],s),i=n.Util.applyTransform([0,r],s),o=n.Util.applyTransform([t,0],s),l=n.Util.applyTransform([t,r],s),c=Math.min(a[0],i[0],o[0],l[0]),u=Math.min(a[1],i[1],o[1],l[1]),d=Math.max(a[0],i[0],o[0],l[0]),h=Math.max(a[1],i[1],o[1],l[1]),p=this.svgFactory.createElement("svg:rect");p.setAttributeNS(null,"x",c),p.setAttributeNS(null,"y",u),p.setAttributeNS(null,"width",d-c),p.setAttributeNS(null,"height",h-u),p.setAttributeNS(null,"fill",this._makeShadingPattern(e)),this.current.fillAlpha<1&&p.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().appendChild(p)}_makeColorN_Pattern(e){return"TilingPattern"===e[0]?this._makeTilingPattern(e):this._makeShadingPattern(e)}_makeTilingPattern(e){const t=e[1],r=e[2],s=e[3]||n.IDENTITY_MATRIX,[a,i,o,l]=e[4],c=e[5],u=e[6],d=e[7],h="shading"+y++,[p,f]=n.Util.applyTransform([a,i],s),[g,m]=n.Util.applyTransform([o,l],s),[v,b]=n.Util.singularValueDecompose2dScale(s),A=c*v,_=u*b,x=this.svgFactory.createElement("svg:pattern");x.setAttributeNS(null,"id",h),x.setAttributeNS(null,"patternUnits","userSpaceOnUse"),x.setAttributeNS(null,"width",A),x.setAttributeNS(null,"height",_),x.setAttributeNS(null,"x",`${p}`),x.setAttributeNS(null,"y",`${f}`);const S=this.svg,w=this.transformMatrix,P=this.current.fillColor,C=this.current.strokeColor,k=this.svgFactory.create(g-p,m-f);if(this.svg=k,this.transformMatrix=s,2===d){const e=n.Util.makeCssRgb(...t);this.current.fillColor=e,this.current.strokeColor=e}return this.executeOpTree(this.convertOpList(r)),this.svg=S,this.transformMatrix=w,this.current.fillColor=P,this.current.strokeColor=C,x.appendChild(k.childNodes[0]),this.defs.appendChild(x),`url(#${h})`}_makeShadingPattern(e){switch(e[0]){case"RadialAxial":const t="shading"+y++,r=e[3];let s;switch(e[1]){case"axial":const r=e[4],n=e[5];s=this.svgFactory.createElement("svg:linearGradient"),s.setAttributeNS(null,"id",t),s.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),s.setAttributeNS(null,"x1",r[0]),s.setAttributeNS(null,"y1",r[1]),s.setAttributeNS(null,"x2",n[0]),s.setAttributeNS(null,"y2",n[1]);break;case"radial":const a=e[4],i=e[5],o=e[6],l=e[7];s=this.svgFactory.createElement("svg:radialGradient"),s.setAttributeNS(null,"id",t),s.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),s.setAttributeNS(null,"cx",i[0]),s.setAttributeNS(null,"cy",i[1]),s.setAttributeNS(null,"r",l),s.setAttributeNS(null,"fx",a[0]),s.setAttributeNS(null,"fy",a[1]),s.setAttributeNS(null,"fr",o);break;default:throw new Error(`Unknown RadialAxial type: ${e[1]}`)}for(const e of r){const t=this.svgFactory.createElement("svg:stop");t.setAttributeNS(null,"offset",e[0]),t.setAttributeNS(null,"stop-color",e[1]),s.appendChild(t)}return this.defs.appendChild(s),`url(#${t})`;case"Mesh":return(0,n.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error(`Unknown IR type: ${e[0]}`)}}setDash(e,t){this.current.dashArray=e,this.current.dashPhase=t}constructPath(e,t){const r=this.current;let s=r.x,a=r.y,i=[],o=0;for(const r of e)switch(0|r){case n.OPS.rectangle:s=t[o++],a=t[o++];const e=s+t[o++],r=a+t[o++];i.push("M",g(s),g(a),"L",g(e),g(a),"L",g(e),g(r),"L",g(s),g(r),"Z");break;case n.OPS.moveTo:s=t[o++],a=t[o++],i.push("M",g(s),g(a));break;case n.OPS.lineTo:s=t[o++],a=t[o++],i.push("L",g(s),g(a));break;case n.OPS.curveTo:s=t[o+4],a=t[o+5],i.push("C",g(t[o]),g(t[o+1]),g(t[o+2]),g(t[o+3]),g(s),g(a)),o+=6;break;case n.OPS.curveTo2:i.push("C",g(s),g(a),g(t[o]),g(t[o+1]),g(t[o+2]),g(t[o+3])),s=t[o+2],a=t[o+3],o+=4;break;case n.OPS.curveTo3:s=t[o+2],a=t[o+3],i.push("C",g(t[o]),g(t[o+1]),g(s),g(a),g(s),g(a)),o+=4;break;case n.OPS.closePath:i.push("Z")}i=i.join(" "),r.path&&e.length>0&&e[0]!==n.OPS.rectangle&&e[0]!==n.OPS.moveTo?i=r.path.getAttributeNS(null,"d")+i:(r.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().appendChild(r.path)),r.path.setAttributeNS(null,"d",i),r.path.setAttributeNS(null,"fill","none"),r.element=r.path,r.setCurrentPoint(s,a)}endPath(){const e=this.current;if(e.path=null,!this.pendingClip)return;if(!e.element)return void(this.pendingClip=null);const t="clippath"+v++,r=this.svgFactory.createElement("svg:clipPath");r.setAttributeNS(null,"id",t),r.setAttributeNS(null,"transform",m(this.transformMatrix));const n=e.element.cloneNode(!0);"evenodd"===this.pendingClip?n.setAttributeNS(null,"clip-rule","evenodd"):n.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,r.appendChild(n),this.defs.appendChild(r),e.activeClipUrl&&(e.clipGroup=null,this.extraStack.forEach((function(e){e.clipGroup=null})),r.setAttributeNS(null,"clip-path",e.activeClipUrl)),e.activeClipUrl=`url(#${t})`,this.tgrp=null}clip(e){this.pendingClip=e}closePath(){const e=this.current;if(e.path){const t=`${e.path.getAttributeNS(null,"d")}Z`;e.path.setAttributeNS(null,"d",t)}}setLeading(e){this.current.leading=-e}setTextRise(e){this.current.textRise=e}setTextRenderingMode(e){this.current.textRenderingMode=e}setHScale(e){this.current.textHScale=e/100}setRenderingIntent(e){}setFlatness(e){}setGState(e){for(const[t,r]of e)switch(t){case"LW":this.setLineWidth(r);break;case"LC":this.setLineCap(r);break;case"LJ":this.setLineJoin(r);break;case"ML":this.setMiterLimit(r);break;case"D":this.setDash(r[0],r[1]);break;case"RI":this.setRenderingIntent(r);break;case"FL":this.setFlatness(r);break;case"Font":this.setFont(r);break;case"CA":this.setStrokeAlpha(r);break;case"ca":this.setFillAlpha(r);break;default:(0,n.warn)(`Unimplemented graphic state operator ${t}`)}}fill(){const e=this.current;e.element&&(e.element.setAttributeNS(null,"fill",e.fillColor),e.element.setAttributeNS(null,"fill-opacity",e.fillAlpha),this.endPath())}stroke(){const e=this.current;e.element&&(this._setStrokeAttributes(e.element),e.element.setAttributeNS(null,"fill","none"),this.endPath())}_setStrokeAttributes(e,t=1){const r=this.current;let n=r.dashArray;1!==t&&n.length>0&&(n=n.map((function(e){return t*e}))),e.setAttributeNS(null,"stroke",r.strokeColor),e.setAttributeNS(null,"stroke-opacity",r.strokeAlpha),e.setAttributeNS(null,"stroke-miterlimit",g(r.miterLimit)),e.setAttributeNS(null,"stroke-linecap",r.lineCap),e.setAttributeNS(null,"stroke-linejoin",r.lineJoin),e.setAttributeNS(null,"stroke-width",g(t*r.lineWidth)+"px"),e.setAttributeNS(null,"stroke-dasharray",n.map(g).join(" ")),e.setAttributeNS(null,"stroke-dashoffset",g(t*r.dashPhase)+"px")}eoFill(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}fillStroke(){this.stroke(),this.fill()}eoFillStroke(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}closeStroke(){this.closePath(),this.stroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.closePath(),this.eoFillStroke()}paintSolidColorImageMask(){const e=this.svgFactory.createElement("svg:rect");e.setAttributeNS(null,"x","0"),e.setAttributeNS(null,"y","0"),e.setAttributeNS(null,"width","1px"),e.setAttributeNS(null,"height","1px"),e.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().appendChild(e)}paintImageXObject(e){const t=this.objs.get(e);t?this.paintInlineImageXObject(t):(0,n.warn)(`Dependent image with object ID ${e} is not ready yet`)}paintInlineImageXObject(e,t){const r=e.width,n=e.height,s=h(e,this.forceDataSchema,!!t),a=this.svgFactory.createElement("svg:rect");a.setAttributeNS(null,"x","0"),a.setAttributeNS(null,"y","0"),a.setAttributeNS(null,"width",g(r)),a.setAttributeNS(null,"height",g(n)),this.current.element=a,this.clip("nonzero");const i=this.svgFactory.createElement("svg:image");i.setAttributeNS(c,"xlink:href",s),i.setAttributeNS(null,"x","0"),i.setAttributeNS(null,"y",g(-n)),i.setAttributeNS(null,"width",g(r)+"px"),i.setAttributeNS(null,"height",g(n)+"px"),i.setAttributeNS(null,"transform",`scale(${g(1/r)} ${g(-1/n)})`),t?t.appendChild(i):this._ensureTransformGroup().appendChild(i)}paintImageMaskXObject(e){const t=this.current,r=e.width,n=e.height,s=t.fillColor;t.maskId="mask"+b++;const a=this.svgFactory.createElement("svg:mask");a.setAttributeNS(null,"id",t.maskId);const i=this.svgFactory.createElement("svg:rect");i.setAttributeNS(null,"x","0"),i.setAttributeNS(null,"y","0"),i.setAttributeNS(null,"width",g(r)),i.setAttributeNS(null,"height",g(n)),i.setAttributeNS(null,"fill",s),i.setAttributeNS(null,"mask",`url(#${t.maskId})`),this.defs.appendChild(a),this._ensureTransformGroup().appendChild(i),this.paintInlineImageXObject(e,a)}paintFormXObjectBegin(e,t){if(Array.isArray(e)&&6===e.length&&this.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t){const e=t[2]-t[0],r=t[3]-t[1],n=this.svgFactory.createElement("svg:rect");n.setAttributeNS(null,"x",t[0]),n.setAttributeNS(null,"y",t[1]),n.setAttributeNS(null,"width",g(e)),n.setAttributeNS(null,"height",g(r)),this.current.element=n,this.clip("nonzero"),this.endPath()}}paintFormXObjectEnd(){}_initialize(e){const t=this.svgFactory.create(e.width,e.height),r=this.svgFactory.createElement("svg:defs");t.appendChild(r),this.defs=r;const n=this.svgFactory.createElement("svg:g");return n.setAttributeNS(null,"transform",m(e.transform)),t.appendChild(n),this.svg=n,t}_ensureClipGroup(){if(!this.current.clipGroup){const e=this.svgFactory.createElement("svg:g");e.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.appendChild(e),this.current.clipGroup=e}return this.current.clipGroup}_ensureTransformGroup(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",m(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().appendChild(this.tgrp):this.svg.appendChild(this.tgrp)),this.tgrp}}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNodeStream=void 0;var n=r(2),s=r(20);const a=__webpack_require__(212993),i=__webpack_require__(558618),o=__webpack_require__(200120),l=__webpack_require__(739151),c=/^file:\/\/\/[a-zA-Z]:\//;t.PDFNodeStream=class{constructor(e){this.source=e,this.url=function(e){const t=l.parse(e);return"file:"===t.protocol||t.host?t:/^[a-z]:[/\\]/i.test(e)?l.parse(`file:///${e}`):(t.host||(t.protocol="file:"),t)}(e.url),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?this._fullRequestReader._loaded:0}getFullReader(){return(0,n.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new g(this):new p(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const r=this.isFsUrl?new m(this,e,t):new f(this,e,t);return this._rangeRequestReaders.push(r),r}cancelAllRequests(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeRequestReaders.slice(0).forEach((function(t){t.cancel(e)}))}};class u{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null;const t=e.source;this._contentLength=t.length,this._loaded=0,this._filename=null,this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._readableStream=null,this._readCapability=(0,n.createPromiseCapability)(),this._headersCapability=(0,n.createPromiseCapability)()}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const e=this._readableStream.read();return null===e?(this._readCapability=(0,n.createPromiseCapability)(),this.read()):(this._loaded+=e.length,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",(()=>{this._readCapability.resolve()})),e.on("end",(()=>{e.destroy(),this._done=!0,this._readCapability.resolve()})),e.on("error",(e=>{this._error(e)})),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new n.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class d{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,n.createPromiseCapability)();const t=e.source;this._isStreamingSupported=!t.disableStream}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const e=this._readableStream.read();return null===e?(this._readCapability=(0,n.createPromiseCapability)(),this.read()):(this._loaded+=e.length,this.onProgress&&this.onProgress({loaded:this._loaded}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",(()=>{this._readCapability.resolve()})),e.on("end",(()=>{e.destroy(),this._done=!0,this._readCapability.resolve()})),e.on("error",(e=>{this._error(e)})),this._storedError&&this._readableStream.destroy(this._storedError)}}function h(e,t){return{protocol:e.protocol,auth:e.auth,host:e.hostname,port:e.port,path:e.path,method:"GET",headers:t}}class p extends u{constructor(e){super(e);const t=t=>{if(404===t.statusCode){const e=new n.MissingPDFException(`Missing PDF "${this._url}".`);return this._storedError=e,void this._headersCapability.reject(e)}this._headersCapability.resolve(),this._setReadableStream(t);const r=e=>this._readableStream.headers[e.toLowerCase()],{allowRangeRequests:a,suggestedLength:i}=(0,s.validateRangeRequestCapabilities)({getResponseHeader:r,isHttp:e.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=a,this._contentLength=i||this._contentLength,this._filename=(0,s.extractFilenameFromHeader)(r)};this._request=null,"http:"===this._url.protocol?this._request=i.request(h(this._url,e.httpHeaders),t):this._request=o.request(h(this._url,e.httpHeaders),t),this._request.on("error",(e=>{this._storedError=e,this._headersCapability.reject(e)})),this._request.end()}}class f extends d{constructor(e,t,r){super(e),this._httpHeaders={};for(const t in e.httpHeaders){const r=e.httpHeaders[t];void 0!==r&&(this._httpHeaders[t]=r)}this._httpHeaders.Range=`bytes=${t}-${r-1}`;const s=e=>{if(404!==e.statusCode)this._setReadableStream(e);else{const e=new n.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=e}};this._request=null,"http:"===this._url.protocol?this._request=i.request(h(this._url,this._httpHeaders),s):this._request=o.request(h(this._url,this._httpHeaders),s),this._request.on("error",(e=>{this._storedError=e})),this._request.end()}}class g extends u{constructor(e){super(e);let t=decodeURIComponent(this._url.path);c.test(this._url.href)&&(t=t.replace(/^\//,"")),a.lstat(t,((e,r)=>{if(e)return"ENOENT"===e.code&&(e=new n.MissingPDFException(`Missing PDF "${t}".`)),this._storedError=e,void this._headersCapability.reject(e);this._contentLength=r.size,this._setReadableStream(a.createReadStream(t)),this._headersCapability.resolve()}))}}class m extends d{constructor(e,t,r){super(e);let n=decodeURIComponent(this._url.path);c.test(this._url.href)&&(n=n.replace(/^\//,"")),this._setReadableStream(a.createReadStream(n,{start:t,end:r-1}))}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createResponseStatusError=function(e,t){return 404===e||0===e&&t.startsWith("file:")?new n.MissingPDFException('Missing PDF "'+t+'".'):new n.UnexpectedResponseException("Unexpected server response ("+e+') while retrieving PDF "'+t+'".',e)},t.extractFilenameFromHeader=function(e){const t=e("Content-Disposition");if(t){let e=(0,s.getFilenameFromContentDispositionHeader)(t);if(e.includes("%"))try{e=decodeURIComponent(e)}catch(e){}if(/\.pdf$/i.test(e))return e}return null},t.validateRangeRequestCapabilities=function({getResponseHeader:e,isHttp:t,rangeChunkSize:r,disableRange:s}){(0,n.assert)(r>0,"Range chunk size must be larger than zero");const a={allowRangeRequests:!1,suggestedLength:void 0},i=parseInt(e("Content-Length"),10);return Number.isInteger(i)?(a.suggestedLength=i,i<=2*r||s||!t||"bytes"!==e("Accept-Ranges")||"identity"!==(e("Content-Encoding")||"identity")||(a.allowRangeRequests=!0),a):a},t.validateResponseStatus=function(e){return 200===e||206===e};var n=r(2),s=r(21)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFilenameFromContentDispositionHeader=function(e){let t=!0,r=n("filename\\*","i").exec(e);if(r){r=r[1];let e=i(r);return e=unescape(e),e=o(e),e=l(e),a(e)}if(r=function(e){const t=[];let r;const s=n("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;null!==(r=s.exec(e));){let[,e,n,s]=r;if(e=parseInt(e,10),e in t){if(0===e)break}else t[e]=[n,s]}const a=[];for(let e=0;e=2&&r.onHeadersReceived&&(r.onHeadersReceived(),delete r.onHeadersReceived),4!==s.readyState)return;if(!(e in this.pendingRequests))return;if(delete this.pendingRequests[e],0===s.status&&this.isHttp)return void(r.onError&&r.onError(s.status));const a=s.status||200;if((200!==a||206!==r.expectedStatus)&&a!==r.expectedStatus)return void(r.onError&&r.onError(s.status));const i=function(e){const t=e.response;return"string"!=typeof t?t:(0,n.stringToBytes)(t).buffer}(s);if(206===a){const e=s.getResponseHeader("Content-Range"),t=/bytes (\d+)-(\d+)\/(\d+)/.exec(e);r.onDone({begin:parseInt(t[1],10),chunk:i})}else i?r.onDone({begin:0,chunk:i}):r.onError&&r.onError(s.status)}hasPendingRequests(){for(const e in this.pendingRequests)return!0;return!1}getRequestXhr(e){return this.pendingRequests[e].xhr}isPendingRequest(e){return e in this.pendingRequests}abortAllRequests(){for(const e in this.pendingRequests)this.abortRequest(0|e)}abortRequest(e){const t=this.pendingRequests[e].xhr;delete this.pendingRequests[e],t.abort()}}t.PDFNetworkStream=class{constructor(e){this._source=e,this._manager=new a(e.url,{httpHeaders:e.httpHeaders,withCredentials:e.withCredentials}),this._rangeChunkSize=e.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(e){const t=this._rangeRequestReaders.indexOf(e);t>=0&&this._rangeRequestReaders.splice(t,1)}getFullReader(){return(0,n.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new i(this._manager,this._source),this._fullRequestReader}getRangeReader(e,t){const r=new o(this._manager,e,t);return r.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(r),r}cancelAllRequests(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeRequestReaders.slice(0).forEach((function(t){t.cancel(e)}))}};class i{constructor(e,t){this._manager=e;const r={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=t.url,this._fullRequestId=e.requestFull(r),this._headersReceivedCapability=(0,n.createPromiseCapability)(),this._disableRange=t.disableRange||!1,this._contentLength=t.length,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const e=this._fullRequestId,t=this._manager.getRequestXhr(e),r=e=>t.getResponseHeader(e),{allowRangeRequests:n,suggestedLength:a}=(0,s.validateRangeRequestCapabilities)({getResponseHeader:r,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});n&&(this._isRangeSupported=!0),this._contentLength=a||this._contentLength,this._filename=(0,s.extractFilenameFromHeader)(r),this._isRangeSupported&&this._manager.abortRequest(e),this._headersReceivedCapability.resolve()}_onDone(e){e&&(this._requests.length>0?this._requests.shift().resolve({value:e.chunk,done:!1}):this._cachedChunks.push(e.chunk)),this._done=!0,this._cachedChunks.length>0||(this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[])}_onError(e){const t=this._url,r=(0,s.createResponseStatusError)(e,t);this._storedError=r,this._headersReceivedCapability.reject(r),this._requests.forEach((function(e){e.reject(r)})),this._requests=[],this._cachedChunks=[]}_onProgress(e){this.onProgress&&this.onProgress({loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}async read(){if(this._storedError)throw this._storedError;if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const e=(0,n.createPromiseCapability)();return this._requests.push(e),e.promise}cancel(e){this._done=!0,this._headersReceivedCapability.reject(e),this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[],this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class o{constructor(e,t,r){this._manager=e;const n={onDone:this._onDone.bind(this),onProgress:this._onProgress.bind(this)};this._requestId=e.requestRange(t,r,n),this._requests=[],this._queuedChunk=null,this._done=!1,this.onProgress=null,this.onClosed=null}_close(){this.onClosed&&this.onClosed(this)}_onDone(e){const t=e.chunk;this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._queuedChunk=t,this._done=!0,this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[],this._close()}_onProgress(e){!this.isStreamingSupported&&this.onProgress&&this.onProgress({loaded:e.loaded})}get isStreamingSupported(){return!1}async read(){if(null!==this._queuedChunk){const e=this._queuedChunk;return this._queuedChunk=null,{value:e,done:!1}}if(this._done)return{value:void 0,done:!0};const e=(0,n.createPromiseCapability)();return this._requests.push(e),e.promise}cancel(e){this._done=!0,this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[],this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFetchStream=void 0;var n=r(2),s=r(20);function a(e,t,r){return{method:"GET",headers:e,signal:r&&r.signal,mode:"cors",credentials:t?"include":"same-origin",redirect:"follow"}}function i(e){const t=new Headers;for(const r in e){const n=e[r];void 0!==n&&t.append(r,n)}return t}t.PDFFetchStream=class{constructor(e){this.source=e,this.isHttp=/^https?:/i.test(e.url),this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?this._fullRequestReader._loaded:0}getFullReader(){return(0,n.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new o(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const r=new l(this,e,t);return this._rangeRequestReaders.push(r),r}cancelAllRequests(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeRequestReaders.slice(0).forEach((function(t){t.cancel(e)}))}};class o{constructor(e){this._stream=e,this._reader=null,this._loaded=0,this._filename=null;const t=e.source;this._withCredentials=t.withCredentials||!1,this._contentLength=t.length,this._headersCapability=(0,n.createPromiseCapability)(),this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._headers=i(this._stream.httpHeaders);const r=t.url;fetch(r,a(this._headers,this._withCredentials,this._abortController)).then((e=>{if(!(0,s.validateResponseStatus)(e.status))throw(0,s.createResponseStatusError)(e.status,r);this._reader=e.body.getReader(),this._headersCapability.resolve();const t=t=>e.headers.get(t),{allowRangeRequests:a,suggestedLength:i}=(0,s.validateRangeRequestCapabilities)({getResponseHeader:t,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=a,this._contentLength=i||this._contentLength,this._filename=(0,s.extractFilenameFromHeader)(t),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new n.AbortException("Streaming is disabled."))})).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._headersCapability.promise;const{value:e,done:t}=await this._reader.read();return t?{value:e,done:t}:(this._loaded+=e.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._reader&&this._reader.cancel(e),this._abortController&&this._abortController.abort()}}class l{constructor(e,t,r){this._stream=e,this._reader=null,this._loaded=0;const o=e.source;this._withCredentials=o.withCredentials||!1,this._readCapability=(0,n.createPromiseCapability)(),this._isStreamingSupported=!o.disableStream,"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._headers=i(this._stream.httpHeaders),this._headers.append("Range",`bytes=${t}-${r-1}`);const l=o.url;fetch(l,a(this._headers,this._withCredentials,this._abortController)).then((e=>{if(!(0,s.validateResponseStatus)(e.status))throw(0,s.createResponseStatusError)(e.status,l);this._readCapability.resolve(),this._reader=e.body.getReader()})),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._readCapability.promise;const{value:e,done:t}=await this._reader.read();return t?{value:e,done:t}:(this._loaded+=e.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._reader&&this._reader.cancel(e),this._abortController&&this._abortController.abort()}}}])},module.exports=factory()},286379:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleLinkService=t.PDFLinkService=void 0;var n=r(6420);t.PDFLinkService=class{constructor({eventBus:e,externalLinkTarget:t=null,externalLinkRel:r=null,externalLinkEnabled:n=!0,ignoreDestinationZoom:s=!1}={}){this.eventBus=e,this.externalLinkTarget=t,this.externalLinkRel=r,this.externalLinkEnabled=n,this._ignoreDestinationZoom=s,this.baseUrl=null,this.pdfDocument=null,this.pdfViewer=null,this.pdfHistory=null,this._pagesRefCache=null}setDocument(e,t=null){this.baseUrl=t,this.pdfDocument=e,this._pagesRefCache=Object.create(null)}setViewer(e){this.pdfViewer=e}setHistory(e){this.pdfHistory=e}get pagesCount(){return this.pdfDocument?this.pdfDocument.numPages:0}get page(){return this.pdfViewer.currentPageNumber}set page(e){this.pdfViewer.currentPageNumber=e}get rotation(){return this.pdfViewer.pagesRotation}set rotation(e){this.pdfViewer.pagesRotation=e}navigateTo(e){const t=({namedDest:r,explicitDest:n})=>{const s=n[0];let a;if(s instanceof Object){if(a=this._cachedPageNumber(s),null===a)return void this.pdfDocument.getPageIndex(s).then((e=>{this.cachePageRef(e+1,s),t({namedDest:r,explicitDest:n})})).catch((()=>{console.error(`PDFLinkService.navigateTo: "${s}" is not a valid page reference, for dest="${e}".`)}))}else{if(!Number.isInteger(s))return void console.error(`PDFLinkService.navigateTo: "${s}" is not a valid destination reference, for dest="${e}".`);a=s+1}!a||a<1||a>this.pagesCount?console.error(`PDFLinkService.navigateTo: "${a}" is not a valid page number, for dest="${e}".`):(this.pdfHistory&&(this.pdfHistory.pushCurrentPosition(),this.pdfHistory.push({namedDest:r,explicitDest:n,pageNumber:a})),this.pdfViewer.scrollPageIntoView({pageNumber:a,destArray:n,ignoreDestinationZoom:this._ignoreDestinationZoom}))};new Promise(((t,r)=>{"string"!=typeof e?t({namedDest:"",explicitDest:e}):this.pdfDocument.getDestination(e).then((r=>{t({namedDest:e,explicitDest:r})}))})).then((r=>{Array.isArray(r.explicitDest)?t(r):console.error(`PDFLinkService.navigateTo: "${r.explicitDest}" is not a valid destination array, for dest="${e}".`)}))}getDestinationHash(e){if("string"==typeof e)return this.getAnchorUrl("#"+escape(e));if(Array.isArray(e)){const t=JSON.stringify(e);return this.getAnchorUrl("#"+escape(t))}return this.getAnchorUrl("")}getAnchorUrl(e){return(this.baseUrl||"")+e}setHash(e){let t,r;if(e.includes("=")){const s=(0,n.parseQueryString)(e);if("search"in s&&this.eventBus.dispatch("findfromurlhash",{source:this,query:s.search.replace(/"/g,""),phraseSearch:"true"===s.phrase}),"page"in s&&(t=0|s.page||1),"zoom"in s){const e=s.zoom.split(","),t=e[0],n=parseFloat(t);t.includes("Fit")?"Fit"===t||"FitB"===t?r=[null,{name:t}]:"FitH"===t||"FitBH"===t||"FitV"===t||"FitBV"===t?r=[null,{name:t},e.length>1?0|e[1]:null]:"FitR"===t?5!==e.length?console.error('PDFLinkService.setHash: Not enough parameters for "FitR".'):r=[null,{name:t},0|e[1],0|e[2],0|e[3],0|e[4]]:console.error(`PDFLinkService.setHash: "${t}" is not a valid zoom value.`):r=[null,{name:"XYZ"},e.length>1?0|e[1]:null,e.length>2?0|e[2]:null,n?n/100:t]}r?this.pdfViewer.scrollPageIntoView({pageNumber:t||this.page,destArray:r,allowNegativeOffset:!0}):t&&(this.page=t),"pagemode"in s&&this.eventBus.dispatch("pagemode",{source:this,mode:s.pagemode}),"nameddest"in s&&this.navigateTo(s.nameddest)}else{r=unescape(e);try{r=JSON.parse(r),Array.isArray(r)||(r=r.toString())}catch(e){}if("string"==typeof r||function(e){if(!Array.isArray(e))return!1;const t=e.length;if(t<2)return!1;const r=e[0];if(!("object"==typeof r&&Number.isInteger(r.num)&&Number.isInteger(r.gen)||Number.isInteger(r)&&r>=0))return!1;const n=e[1];if("object"!=typeof n||"string"!=typeof n.name)return!1;let s=!0;switch(n.name){case"XYZ":if(5!==t)return!1;break;case"Fit":case"FitB":return 2===t;case"FitH":case"FitBH":case"FitV":case"FitBV":if(3!==t)return!1;break;case"FitR":if(6!==t)return!1;s=!1;break;default:return!1}for(let r=2;r1&&this.page--;break;case"LastPage":this.page=this.pagesCount;break;case"FirstPage":this.page=1}this.eventBus.dispatch("namedaction",{source:this,action:e})}cachePageRef(e,t){if(!t)return;const r=0===t.gen?`${t.num}R`:`${t.num}R${t.gen}`;this._pagesRefCache[r]=e}_cachedPageNumber(e){const t=0===e.gen?`${e.num}R`:`${e.num}R${e.gen}`;return this._pagesRefCache&&this._pagesRefCache[t]||null}isPageVisible(e){return this.pdfViewer.isPageVisible(e)}},t.SimpleLinkService=class{constructor(){this.externalLinkTarget=null,this.externalLinkRel=null,this.externalLinkEnabled=!0,this._ignoreDestinationZoom=!1}get pagesCount(){return 0}get page(){return 0}set page(e){}get rotation(){return 0}set rotation(e){}navigateTo(e){}getDestinationHash(e){return"#"}getAnchorUrl(e){return"#"}setHash(e){}executeNamedAction(e){}cachePageRef(e,t){}isPageVisible(e){return!0}}},6420:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidRotation=function(e){return Number.isInteger(e)&&e%90==0},t.isValidScrollMode=function(e){return Number.isInteger(e)&&Object.values(r).includes(e)&&e!==r.UNKNOWN},t.isValidSpreadMode=function(e){return Number.isInteger(e)&&Object.values(n).includes(e)&&e!==n.UNKNOWN},t.isPortraitOrientation=function(e){return e.width<=e.height},t.clamp=u,t.getPDFFileNameFromURL=function(e,t="document.pdf"){if("string"!=typeof e)return t;if(function(e){let t=0;const r=e.length;for(;t1?n[1]:null;r[decodeURIComponent(s)]=decodeURIComponent(a)}return r},t.backtrackBeforeAllVisibleElements=i,t.getVisibleElements=function(e,t,r=!1,n=!1){const s=e.scrollTop,o=s+e.clientHeight,l=e.scrollLeft,c=l+e.clientWidth,u=[],d=t.length;let h=0===d?0:a(t,n?function(e){const t=e.div;return t.offsetLeft+t.clientLeft+t.clientWidth>l}:function(e){const t=e.div;return t.offsetTop+t.clientTop+t.clientHeight>s});h>0&&h=o&&(p=m);else if((n?i:d)>p)break;if(m<=s||d>=o||g<=l||i>=c)continue;const v=(f-(Math.max(0,s-d)+Math.max(0,m-o)))*(h-(Math.max(0,l-i)+Math.max(0,g-c)))*100/f/h|0;u.push({id:r.id,x:i,y:d,view:r,percent:v})}const f=u[0],g=u[u.length-1];return r&&u.sort((function(e,t){const r=e.percent-t.percent;return Math.abs(r)>.001?-r:e.id-t.id})),{first:f,last:g,views:u}},t.roundToDivide=function(e,t){const r=e%t;return 0===r?e:Math.round(e-r+t)},t.getPageSizeInches=function({view:e,userUnit:t,rotate:r}){const[n,s,a,i]=e,o=r%180!=0,l=(a-n)/72*t,c=(i-s)/72*t;return{width:o?c:l,height:o?l:c}},t.approximateFraction=function(e){if(Math.floor(e)===e)return[e,1];const t=1/e;if(t>8)return[1,8];if(Math.floor(t)===t)return[1,t];const r=e>1?t:e;let n,s=0,a=1,i=1,o=1;for(;;){const e=s+i,t=a+o;if(t>8)break;r<=e/t?(i=e,o=t):(s=e,a=t)}return n=r-s/aa),n.lastX=r;const i=e.scrollTop,o=n.lastY;i!==o&&(n.down=i>o),n.lastY=i,t(n)})))},n={right:!0,down:!0,lastX:e.scrollLeft,lastY:e.scrollTop,_eventHandler:r};let s=null;return e.addEventListener("scroll",r,!0),n},t.binarySearchFirstItem=a,t.normalizeWheelEventDelta=function(e){let t=Math.sqrt(e.deltaX*e.deltaX+e.deltaY*e.deltaY);const r=Math.atan2(e.deltaY,e.deltaX);return-.25*Math.PI=0))throw new Error("waitOnEventOrTimeout - invalid parameters.");function a(r){e instanceof c?e._off(t,i):e.removeEventListener(t,i),u&&clearTimeout(u),n(r)}const i=a.bind(null,o.EVENT);e instanceof c?e._on(t,i):e.addEventListener(t,i);const l=a.bind(null,o.TIMEOUT),u=setTimeout(l,r)}))},t.moveToEndOfArray=function(e,t){const r=[],n=e.length;let s=0;for(let a=0;a"en-us",getDirection:async()=>"ltr",get:async(e,t,r)=>function(e,t){return t?e.replace(/\{\{\s*(\w+)\s*\}\}/g,((e,r)=>r in t?t[r]:"{{"+r+"}}")):e}(r,t),async translate(e){}};function a(e,t){let r=0,n=e.length-1;if(n<0||!t(e[n]))return e.length;if(t(e[r]))return r;for(;r>1;t(e[s])?n=s:r=s+1}return r}function i(e,t,r){if(e<2)return e;let n=t[e].div,s=n.offsetTop+n.clientTop;s>=r&&(n=t[e-1].div,s=n.offsetTop+n.clientTop);for(let r=e-2;r>=0&&(n=t[r].div,!(n.offsetTop+n.clientTop+n.clientHeight<=s));--r)e=r;return e}t.NullL10n=s;const o={EVENT:"event",TIMEOUT:"timeout"};t.WaitOnType=o;const l=new Promise((function(e){window.requestAnimationFrame(e)}));t.animationStarted=l;class c{constructor(e){this._listeners=Object.create(null)}on(e,t){this._on(e,t,{external:!0})}off(e,t){this._off(e,t,{external:!0})}dispatch(e){const t=this._listeners[e];if(!t||0===t.length)return;const r=Array.prototype.slice.call(arguments,1);let n;t.slice(0).forEach((function({listener:e,external:t}){if(t)return n||(n=[]),void n.push(e);e.apply(null,r)})),n&&(n.forEach((function(e){e.apply(null,r)})),n=null)}_on(e,t,r=null){let n=this._listeners[e];n||(this._listeners[e]=n=[]),n.push({listener:t,external:!0===(r&&r.external)})}_off(e,t,r=null){const n=this._listeners[e];if(n)for(let e=0,r=n.length;e0&&(this.bar.style.width=`calc(100% - ${t}px)`)}hide(){this.visible&&(this.visible=!1,this.bar.classList.add("hidden"),document.body.classList.remove("loadingInProgress"))}show(){this.visible||(this.visible=!0,document.body.classList.add("loadingInProgress"),this.bar.classList.remove("hidden"))}}},682013:(e,t,r)=>{"use strict";var n=r(820862),s=r(595318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=s(r(967154)),i=s(r(506479)),o=s(r(750008)),l=s(r(887757)),c=s(r(348926)),u=s(r(334575)),d=s(r(993913)),h=s(r(281506)),p=s(r(502205)),f=s(r(178585)),g=s(r(629754)),m=s(r(859713)),v=n(r(124852)),b=s(r(675263)),y=s(r(953770)),A=s(r(973206)),_=s(r(289624)),x=n(r(299299)),S=s(r(646522)),w=s(r(262217)),P=s(r(865309)),C=s(r(167101)),k=s(r(54366)),R=r(400395),E=r(348693);function T(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function L(e){for(var t=1;t was provided with onItemClick nor it was able to find the page within itself. Either provide onItemClick to and handle navigating by yourself or ensure that all pages are rendered within ."))}}}),(0,m.default)((0,h.default)(e),"linkService",new P.default({eventBus:k.default})),(0,m.default)((0,h.default)(e),"loadDocument",(0,c.default)(l.default.mark((function t(){var r,n,s,a,i,o,c;return l.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=null,t.prev=1,t.next=4,e.findDocumentSource();case 4:r=t.sent,e.onSourceSuccess(),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(1),e.onSourceError(t.t0);case 11:if(r){t.next=13;break}return t.abrupt("return");case 13:return e.setState((function(e){return e.pdf?{pdf:null}:null})),n=e.props,s=n.options,a=n.onLoadProgress,i=n.onPassword,t.prev=15,(0,R.cancelRunningTask)(e.runningTask),e.loadingTask=x.getDocument(L(L({},r),s)),e.loadingTask.onPassword=i,a&&(e.loadingTask.onProgress=a),o=(0,A.default)(e.loadingTask.promise),e.runningTask=o,t.next=24,o.promise;case 24:c=t.sent,e.setState((function(e){return e.pdf&&e.pdf.fingerprint===c.fingerprint?null:{pdf:c}}),e.onLoadSuccess),t.next=31;break;case 28:t.prev=28,t.t1=t.catch(15),e.onLoadError(t.t1);case 31:case"end":return t.stop()}}),t,null,[[1,8],[15,28]])})))),(0,m.default)((0,h.default)(e),"setupLinkService",(function(){e.linkService.setViewer(e.viewer);var t=(0,h.default)(e);Object.defineProperty(e.linkService,"externalLinkTarget",{get:function(){switch(t.props.externalLinkTarget){case"_self":return 1;case"_blank":return 2;case"_parent":return 3;case"_top":return 4;default:return 0}}})})),(0,m.default)((0,h.default)(e),"onSourceSuccess",(function(){var t=e.props.onSourceSuccess;t&&t()})),(0,m.default)((0,h.default)(e),"onSourceError",(function(t){(0,R.errorOnDev)(t);var r=e.props.onSourceError;r&&r(t)})),(0,m.default)((0,h.default)(e),"onLoadSuccess",(function(){var t=e.props.onLoadSuccess,r=e.state.pdf;t&&t(r),e.pages=new Array(r.numPages),e.linkService.setDocument(r)})),(0,m.default)((0,h.default)(e),"onLoadError",(function(t){e.setState({pdf:!1}),(0,R.errorOnDev)(t);var r=e.props.onLoadError;r&&r(t)})),(0,m.default)((0,h.default)(e),"findDocumentSource",(0,c.default)(l.default.mark((function t(){var r,n,s,a,c;return l.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.props.file){t.next=3;break}return t.abrupt("return",null);case 3:if("string"!=typeof r){t.next=9;break}if(!(0,R.isDataURI)(r)){t.next=7;break}return n=(0,R.dataURItoUint8Array)(r),t.abrupt("return",{data:n});case 7:return(0,R.displayCORSWarning)(),t.abrupt("return",{url:r});case 9:if(!(r instanceof O)){t.next=11;break}return t.abrupt("return",{range:r});case 11:if(!(0,R.isArrayBuffer)(r)){t.next=13;break}return t.abrupt("return",{data:r});case 13:if(!R.isBrowser){t.next=19;break}if(!(0,R.isBlob)(r)&&!(0,R.isFile)(r)){t.next=19;break}return t.next=17,(0,R.loadFromFile)(r);case 17:return t.t0=t.sent,t.abrupt("return",{data:t.t0});case 19:if("object"===(0,o.default)(r)){t.next=21;break}throw new Error("Invalid parameter in file, need either Uint8Array, string or a parameter object");case 21:if(r.url||r.data||r.range){t.next=23;break}throw new Error("Invalid parameter object: need either .data, .range or .url");case 23:if("string"!=typeof r.url){t.next=29;break}if(!(0,R.isDataURI)(r.url)){t.next=28;break}return s=r.url,a=(0,i.default)(r,["url"]),c=(0,R.dataURItoUint8Array)(s),t.abrupt("return",L({data:c},a));case 28:(0,R.displayCORSWarning)();case 29:return t.abrupt("return",r);case 30:case"end":return t.stop()}}),t)})))),(0,m.default)((0,h.default)(e),"registerPage",(function(t,r){e.pages[t]=r})),(0,m.default)((0,h.default)(e),"unregisterPage",(function(t){delete e.pages[t]})),e}return(0,d.default)(s,[{key:"componentDidMount",value:function(){this.loadDocument(),this.setupLinkService()}},{key:"componentDidUpdate",value:function(e){this.props.file!==e.file&&this.loadDocument()}},{key:"componentWillUnmount",value:function(){this.loadingTask&&this.loadingTask.destroy(),(0,R.cancelRunningTask)(this.runningTask)}},{key:"renderChildren",value:function(){var e=this.props.children;return v.default.createElement(S.default.Provider,{value:this.childContext},e)}},{key:"renderContent",value:function(){var e=this.props.file,t=this.state.pdf;if(!e){var r=this.props.noData;return v.default.createElement(w.default,{type:"no-data"},"function"==typeof r?r():r)}if(null===t){var n=this.props.loading;return v.default.createElement(w.default,{type:"loading"},"function"==typeof n?n():n)}if(!1===t){var s=this.props.error;return v.default.createElement(w.default,{type:"error"},"function"==typeof s?s():s)}return this.renderChildren()}},{key:"render",value:function(){var e=this.props,t=e.className,r=e.inputRef;return v.default.createElement("div",(0,a.default)({className:(0,_.default)("react-pdf__Document",t),ref:r},this.eventProps),this.renderContent())}},{key:"childContext",get:function(){var e=this.linkService,t=this.registerPage,r=this.unregisterPage,n=this.props,s=n.renderMode,a=n.rotate;return{linkService:e,pdf:this.state.pdf,registerPage:t,renderMode:s,rotate:a,unregisterPage:r}}},{key:"eventProps",get:function(){var e=this;return(0,y.default)(this.props,(function(){return e.state.pdf}))}}]),s}(v.PureComponent);t.default=F,F.defaultProps={error:"Failed to load PDF file.",loading:"Loading PDF…",noData:"No PDF file specified.",onPassword:function(e,t){switch(t){case C.default.NEED_PASSWORD:e(prompt("Enter the password to open this PDF file."));break;case C.default.INCORRECT_PASSWORD:e(prompt("Invalid password. Please try again."))}}};var D=b.default.oneOfType([b.default.func,b.default.node]);F.propTypes=L(L({},E.eventProps),{},{children:b.default.node,className:E.isClassName,error:D,file:R.isFile,inputRef:E.isRef,loading:D,noData:D,onItemClick:b.default.func,onLoadError:b.default.func,onLoadProgress:b.default.func,onLoadSuccess:b.default.func,onPassword:b.default.func,onSourceError:b.default.func,onSourceSuccess:b.default.func,rotate:b.default.number})},646522:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=(0,r(124852).createContext)(null);t.default=n},865309:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(286379).PDFLinkService;t.default=n},262217:(e,t,r)=>{"use strict";var n=r(595318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var s=n(r(124852)),a=n(r(675263));function i(e){var t=e.children,r=e.type;return s.default.createElement("div",{className:"react-pdf__message react-pdf__message--".concat(r)},t)}i.propTypes={children:a.default.node,type:a.default.oneOf(["error","loading","no-data"]).isRequired}},830076:(e,t,r)=>{"use strict";var n=r(820862),s=r(595318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.OutlineInternal=void 0;var a=s(r(967154)),i=s(r(887757)),o=s(r(348926)),l=s(r(334575)),c=s(r(993913)),u=s(r(281506)),d=s(r(502205)),h=s(r(178585)),p=s(r(629754)),f=s(r(859713)),g=n(r(124852)),m=s(r(675263)),v=s(r(973206)),b=s(r(953770)),y=s(r(289624)),A=s(r(646522)),_=s(r(694921)),x=s(r(160350)),S=r(400395),w=r(348693);function P(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var C=function(e){(0,d.default)(s,e);var t,r,n=(t=s,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,p.default)(t);if(r){var s=(0,p.default)(this).constructor;e=Reflect.construct(n,arguments,s)}else e=n.apply(this,arguments);return(0,h.default)(this,e)});function s(){var e;(0,l.default)(this,s);for(var t=arguments.length,r=new Array(t),a=0;a{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=(0,r(124852).createContext)(null);t.default=n},160350:(e,t,r)=>{"use strict";var n=r(820862),s=r(595318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.OutlineItemInternal=void 0;var a=s(r(967154)),i=s(r(506479)),o=s(r(963038)),l=s(r(887757)),c=s(r(348926)),u=s(r(334575)),d=s(r(993913)),h=s(r(281506)),p=s(r(502205)),f=s(r(178585)),g=s(r(629754)),m=s(r(859713)),v=n(r(124852)),b=s(r(675263)),y=s(r(646522)),A=s(r(694921)),_=s(r(185297)),x=r(400395),S=r(348693);var w=function(e){(0,p.default)(s,e);var t,r,n=(t=s,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,g.default)(t);if(r){var s=(0,g.default)(this).constructor;e=Reflect.construct(n,arguments,s)}else e=n.apply(this,arguments);return(0,f.default)(this,e)});function s(){var e;(0,u.default)(this,s);for(var t=arguments.length,r=new Array(t),a=0;a{"use strict";var n=r(820862),s=r(595318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.PageInternal=void 0;var a=s(r(967154)),i=s(r(887757)),o=s(r(348926)),l=s(r(334575)),c=s(r(993913)),u=s(r(281506)),d=s(r(502205)),h=s(r(178585)),p=s(r(629754)),f=s(r(859713)),g=n(r(124852)),m=s(r(675263)),v=s(r(973206)),b=s(r(953770)),y=s(r(289624)),A=s(r(879426)),_=s(r(646522)),x=s(r(245808)),S=s(r(262217)),w=s(r(807645)),P=s(r(937899)),C=s(r(642147)),k=s(r(38918)),R=r(400395),E=r(348693);function T(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function L(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:this.props;return(0,R.isProvided)(e.pageNumber)?e.pageNumber-1:(0,R.isProvided)(e.pageIndex)?e.pageIndex:null}},{key:"getPageNumber",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;return(0,R.isProvided)(e.pageNumber)?e.pageNumber:(0,R.isProvided)(e.pageIndex)?e.pageIndex+1:null}},{key:"renderMainLayer",value:function(){var e=this.props,t=e.canvasRef;switch(e.renderMode){case"none":return null;case"svg":return g.default.createElement(P.default,{key:"".concat(this.pageKeyNoScale,"_svg")});default:return g.default.createElement(w.default,{key:"".concat(this.pageKey,"_canvas"),canvasRef:t})}}},{key:"renderTextLayer",value:function(){return this.props.renderTextLayer?g.default.createElement(C.default,{key:"".concat(this.pageKey,"_text")}):null}},{key:"renderAnnotationLayer",value:function(){return this.props.renderAnnotationLayer?g.default.createElement(k.default,{key:"".concat(this.pageKey,"_annotations")}):null}},{key:"renderChildren",value:function(){var e=this.props.children;return g.default.createElement(x.default.Provider,{value:this.childContext},this.renderMainLayer(),this.renderTextLayer(),this.renderAnnotationLayer(),e)}},{key:"renderContent",value:function(){var e=this.pageNumber,t=this.props.pdf,r=this.state.page;if(!e){var n=this.props.noData;return g.default.createElement(S.default,{type:"no-data"},"function"==typeof n?n():n)}if(null===t||null===r){var s=this.props.loading;return g.default.createElement(S.default,{type:"loading"},"function"==typeof s?s():s)}if(!1===t||!1===r){var a=this.props.error;return g.default.createElement(S.default,{type:"error"},"function"==typeof a?a():a)}return this.renderChildren()}},{key:"render",value:function(){var e=this.pageNumber,t=this.props,r=t.className,n=t.inputRef;return g.default.createElement("div",(0,a.default)({className:(0,y.default)("react-pdf__Page",r),"data-page-number":e,ref:(0,A.default)(n,this.ref),style:{position:"relative"}},this.eventProps),this.renderContent())}},{key:"childContext",get:function(){var e=this.state.page;if(!e)return{};var t=this.props;return{customTextRenderer:t.customTextRenderer,onGetAnnotationsError:t.onGetAnnotationsError,onGetAnnotationsSuccess:t.onGetAnnotationsSuccess,onGetTextError:t.onGetTextError,onGetTextSuccess:t.onGetTextSuccess,onRenderAnnotationLayerError:t.onRenderAnnotationLayerError,onRenderAnnotationLayerSuccess:t.onRenderAnnotationLayerSuccess,onRenderError:t.onRenderError,onRenderSuccess:t.onRenderSuccess,page:e,renderInteractiveForms:t.renderInteractiveForms,rotate:this.rotate,scale:this.scale}}},{key:"pageIndex",get:function(){return this.getPageIndex()}},{key:"pageNumber",get:function(){return this.getPageNumber()}},{key:"rotate",get:function(){var e=this.props.rotate;if((0,R.isProvided)(e))return e;var t=this.state.page;return t?t.rotate:null}},{key:"scale",get:function(){var e=this.state.page;if(!e)return null;var t=this.props,r=t.scale,n=t.width,s=t.height,a=this.rotate,i=1,o=null===r?1:r;if(n||s){var l=e.getViewport({scale:1,rotation:a});i=n?n/l.width:s/l.height}return o*i}},{key:"eventProps",get:function(){var e=this;return(0,b.default)(this.props,(function(){var t=e.state.page;return t?(0,R.makePageCallback)(t,e.scale):t}))}},{key:"pageKey",get:function(){var e=this.state.page;return"".concat(e.pageIndex,"@").concat(this.scale,"/").concat(this.rotate)}},{key:"pageKeyNoScale",get:function(){var e=this.state.page;return"".concat(e.pageIndex,"/").concat(this.rotate)}}]),s}(g.PureComponent);t.PageInternal=O,O.defaultProps={error:"Failed to load the page.",loading:"Loading page…",noData:"No page specified.",renderAnnotationLayer:!0,renderInteractiveForms:!1,renderMode:"canvas",renderTextLayer:!0,scale:1};var F=m.default.oneOfType([m.default.func,m.default.node]);function D(e,t){return g.default.createElement(_.default.Consumer,null,(function(r){return g.default.createElement(O,(0,a.default)({ref:t},r,e))}))}O.propTypes=L(L({},E.eventProps),{},{children:m.default.node,className:E.isClassName,customTextRenderer:m.default.func,error:F,height:m.default.number,inputRef:E.isRef,loading:F,noData:F,onGetTextError:m.default.func,onGetTextSuccess:m.default.func,onLoadError:m.default.func,onLoadSuccess:m.default.func,onRenderError:m.default.func,onRenderSuccess:m.default.func,pageIndex:E.isPageIndex,pageNumber:E.isPageNumber,pdf:E.isPdf,registerPage:m.default.func,renderAnnotationLayer:m.default.bool,renderInteractiveForms:m.default.bool,renderMode:E.isRenderMode,renderTextLayer:m.default.bool,rotate:E.isRotate,scale:m.default.number,unregisterPage:m.default.func,width:m.default.number});var I=g.default.forwardRef(D);t.default=I},38918:(e,t,r)=>{"use strict";var n=r(820862),s=r(595318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.AnnotationLayerInternal=void 0;var a=s(r(967154)),i=s(r(887757)),o=s(r(348926)),l=s(r(334575)),c=s(r(993913)),u=s(r(281506)),d=s(r(502205)),h=s(r(178585)),p=s(r(629754)),f=s(r(859713)),g=n(r(124852)),m=s(r(675263)),v=n(r(299299)),b=s(r(973206)),y=s(r(646522)),A=s(r(245808)),_=r(400395),x=r(348693);var S=function(e){(0,d.default)(s,e);var t,r,n=(t=s,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,p.default)(t);if(r){var s=(0,p.default)(this).constructor;e=Reflect.construct(n,arguments,s)}else e=n.apply(this,arguments);return(0,h.default)(this,e)});function s(){var e;(0,l.default)(this,s);for(var t=arguments.length,r=new Array(t),a=0;a{"use strict";var n=r(820862),s=r(595318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return p.default.createElement(m.default.Consumer,null,(function(t){return p.default.createElement(y,(0,a.default)({},t,e))}))},t.PageCanvasInternal=void 0;var a=s(r(967154)),i=s(r(334575)),o=s(r(993913)),l=s(r(281506)),c=s(r(502205)),u=s(r(178585)),d=s(r(629754)),h=s(r(859713)),p=n(r(124852)),f=s(r(675263)),g=s(r(879426)),m=s(r(245808)),v=r(400395),b=r(348693);var y=function(e){(0,c.default)(s,e);var t,r,n=(t=s,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,d.default)(t);if(r){var s=(0,d.default)(this).constructor;e=Reflect.construct(n,arguments,s)}else e=n.apply(this,arguments);return(0,u.default)(this,e)});function s(){var e;(0,i.default)(this,s);for(var t=arguments.length,r=new Array(t),a=0;a{"use strict";var n=r(820862),s=r(595318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return p.default.createElement(m.default.Consumer,null,(function(t){return p.default.createElement(y,(0,a.default)({},t,e))}))},t.PageSVGInternal=void 0;var a=s(r(967154)),i=s(r(334575)),o=s(r(993913)),l=s(r(281506)),c=s(r(502205)),u=s(r(178585)),d=s(r(629754)),h=s(r(859713)),p=n(r(124852)),f=s(r(675263)),g=n(r(299299)),m=s(r(245808)),v=r(400395),b=r(348693);var y=function(e){(0,c.default)(s,e);var t,r,n=(t=s,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,d.default)(t);if(r){var s=(0,d.default)(this).constructor;e=Reflect.construct(n,arguments,s)}else e=n.apply(this,arguments);return(0,u.default)(this,e)});function s(){var e;(0,i.default)(this,s);for(var t=arguments.length,r=new Array(t),a=0;a{"use strict";var n=r(820862),s=r(595318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return g.default.createElement(b.default.Consumer,null,(function(t){return g.default.createElement(x,(0,a.default)({},t,e))}))},t.TextLayerInternal=void 0;var a=s(r(967154)),i=s(r(887757)),o=s(r(348926)),l=s(r(334575)),c=s(r(993913)),u=s(r(281506)),d=s(r(502205)),h=s(r(178585)),p=s(r(629754)),f=s(r(859713)),g=n(r(124852)),m=s(r(675263)),v=s(r(973206)),b=s(r(245808)),y=s(r(259766)),A=r(400395),_=r(348693);var x=function(e){(0,d.default)(s,e);var t,r,n=(t=s,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,p.default)(t);if(r){var s=(0,p.default)(this).constructor;e=Reflect.construct(n,arguments,s)}else e=n.apply(this,arguments);return(0,h.default)(this,e)});function s(){var e;(0,l.default)(this,s);for(var t=arguments.length,r=new Array(t),a=0;a{"use strict";var n=r(820862),s=r(595318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return m.default.createElement(b.default.Consumer,null,(function(t){return m.default.createElement(A,(0,a.default)({},t,e))}))},t.TextLayerItemInternal=void 0;var a=s(r(967154)),i=s(r(963038)),o=s(r(887757)),l=s(r(348926)),c=s(r(334575)),u=s(r(993913)),d=s(r(281506)),h=s(r(502205)),p=s(r(178585)),f=s(r(629754)),g=s(r(859713)),m=n(r(124852)),v=s(r(675263)),b=s(r(245808)),y=r(348693);var A=function(e){(0,h.default)(v,e);var t,r,n,s,a=(n=v,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=(0,f.default)(n);if(s){var r=(0,f.default)(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return(0,p.default)(this,e)});function v(){var e;(0,c.default)(this,v);for(var t=arguments.length,r=new Array(t),n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=(0,r(124852).createContext)(null);t.default=n},167101:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={NEED_PASSWORD:1,INCORRECT_PASSWORD:2}},185297:(e,t,r)=>{"use strict";var n=r(595318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=n(r(334575)),a=n(r(993913)),i=function(){function e(t){var r=t.num,n=t.gen;(0,s.default)(this,e),this.num=r,this.gen=n}return(0,a.default)(e,[{key:"toString",value:function(){var e="".concat(this.num,"R");return 0!==this.gen&&(e+=this.gen),e}}]),e}();t.default=i},466756:(e,t,r)=>{"use strict";var n=r(595318),s=r(820862);Object.defineProperty(t,"BB",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"T3",{enumerable:!0,get:function(){return o.default}});var a=s(r(299299)),i=n(r(682013)),o=(n(r(830076)),n(r(484182))),l=n(r(149198)),c=r(400395);c.isLocalFileSystem&&(0,c.warnOnDev)("You are running React-PDF from your local file system. PDF.js Worker may fail to load due to browser's security policies. If you're on Google Chrome, you can use --allow-file-access-from-files flag for debugging purposes."),"undefined"!=typeof window&&"Worker"in window&&(a.GlobalWorkerOptions.workerPort=new l.default)},54366:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=new(r(6420).EventBus);t.default=n},348693:(e,t,r)=>{"use strict";var n=r(595318);Object.defineProperty(t,"__esModule",{value:!0}),t.isRotate=t.isRenderMode=t.isRef=t.isPdf=t.isPageNumber=t.isPageIndex=t.isPage=t.isLinkTarget=t.isLinkService=t.isFile=t.isClassName=t.eventProps=void 0;var s,a=n(r(750008)),i=n(r(319)),o=n(r(675263)),l=r(953770),c=r(400395),u=n(r(865309)),d=(s={},[].concat((0,i.default)(l.mouseEvents),(0,i.default)(l.touchEvents),(0,i.default)(l.keyboardEvents)).forEach((function(e){s[e]=o.default.func})),s);t.eventProps=d;var h=[o.default.string,o.default.instanceOf(ArrayBuffer),o.default.shape({data:o.default.object,httpHeaders:o.default.object,range:o.default.object,url:o.default.string,withCredentials:o.default.bool})];"undefined"!=typeof File&&h.push(o.default.instanceOf(File)),"undefined"!=typeof Blob&&h.push(o.default.instanceOf(Blob));var p=o.default.oneOfType([o.default.string,o.default.arrayOf(o.default.string)]);t.isClassName=p;var f=o.default.oneOfType(h);t.isFile=f;var g=o.default.instanceOf(u.default);t.isLinkService=g;var m=o.default.oneOf(["_self","_blank","_parent","_top"]);t.isLinkTarget=m;var v=o.default.shape({_transport:o.default.shape({fontLoader:o.default.object.isRequired}).isRequired,commonObjs:o.default.shape({_objs:o.default.object.isRequired}).isRequired,getAnnotations:o.default.func.isRequired,getTextContent:o.default.func.isRequired,getViewport:o.default.func.isRequired,render:o.default.func.isRequired});t.isPage=v,t.isPageIndex=function(e,t,r){var n=e[t],s=e.pageNumber,i=e.pdf;if(!(0,c.isDefined)(i))return null;if((0,c.isDefined)(n)){if("number"!=typeof n)return new Error("`".concat(t,"` of type `").concat((0,a.default)(n),"` supplied to `").concat(r,"`, expected `number`."));if(n<0)return new Error("Expected `".concat(t,"` to be greater or equal to 0."));var o=i.numPages;if(n+1>o)return new Error("Expected `".concat(t,"` to be less or equal to ").concat(o-1,"."))}else if(!(0,c.isDefined)(s))return new Error("`".concat(t,"` not supplied. Either pageIndex or pageNumber must be supplied to `").concat(r,"`."));return null},t.isPageNumber=function(e,t,r){var n=e[t],s=e.pageIndex,i=e.pdf;if(!(0,c.isDefined)(i))return null;if((0,c.isDefined)(n)){if("number"!=typeof n)return new Error("`".concat(t,"` of type `").concat((0,a.default)(n),"` supplied to `").concat(r,"`, expected `number`."));if(n<1)return new Error("Expected `".concat(t,"` to be greater or equal to 1."));var o=i.numPages;if(n>o)return new Error("Expected `".concat(t,"` to be less or equal to ").concat(o,"."))}else if(!(0,c.isDefined)(s))return new Error("`".concat(t,"` not supplied. Either pageIndex or pageNumber must be supplied to `").concat(r,"`."));return null};var b=o.default.oneOfType([o.default.shape({getDestination:o.default.func.isRequired,getOutline:o.default.func.isRequired,getPage:o.default.func.isRequired,numPages:o.default.number.isRequired}),o.default.bool]);t.isPdf=b;var y=o.default.oneOfType([o.default.func,o.default.shape({current:o.default.any})]);t.isRef=y;var A=o.default.oneOf(["canvas","none","svg"]);t.isRenderMode=A;var _=o.default.oneOf([0,90,180,270]);t.isRotate=_},400395:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadFromFile=t.isCancelException=t.makePageCallback=t.cancelRunningTask=t.displayCORSWarning=t.errorOnDev=t.warnOnDev=t.getPixelRatio=t.dataURItoUint8Array=t.isDataURI=t.isFile=t.isBlob=t.isArrayBuffer=t.isString=t.isProvided=t.isDefined=t.isProduction=t.isLocalFileSystem=t.isBrowser=void 0;var r="undefined"!=typeof window;t.isBrowser=r;var n=r&&"file:"===window.location.protocol;t.isLocalFileSystem=n,t.isProduction=!0;var s=function(e){return void 0!==e};t.isDefined=s,t.isProvided=function(e){return s(e)&&null!==e};var a=function(e){return"string"==typeof e};t.isString=a,t.isArrayBuffer=function(e){return e instanceof ArrayBuffer},t.isBlob=function(e){if(!r)throw new Error("Attempted to check if a variable is a Blob on a non-browser environment.");return e instanceof Blob},t.isFile=function(e){if(!r)throw new Error("Attempted to check if a variable is a File on a non-browser environment.");return e instanceof File};var i=function(e){return a(e)&&/^data:/.test(e)};t.isDataURI=i,t.dataURItoUint8Array=function(e){if(!i(e))throw new Error("dataURItoUint8Array was provided with an argument which is not a valid data URI.");var t;t=e.split(",")[0].indexOf("base64")>=0?atob(e.split(",")[1]):unescape(e.split(",")[1]);for(var r=new Uint8Array(t.length),n=0;n{"use strict";function n(){return new Worker(r.p+"pdf.worker.entry.worker.js")}r.r(t),r.d(t,{default:()=>n})}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/38238.affd309bf2aa3f38d3a0.chunk.js.LICENSE.txt b/geonode_mapstore_client/static/mapstore/dist/js/38238.018dc26183efb561a8b1.chunk.js.LICENSE.txt similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/38238.affd309bf2aa3f38d3a0.chunk.js.LICENSE.txt rename to geonode_mapstore_client/static/mapstore/dist/js/38238.018dc26183efb561a8b1.chunk.js.LICENSE.txt diff --git a/geonode_mapstore_client/static/mapstore/dist/js/38238.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/38238.affd309bf2aa3f38d3a0.chunk.js deleted file mode 100644 index d9a59651c8..0000000000 --- a/geonode_mapstore_client/static/mapstore/dist/js/38238.affd309bf2aa3f38d3a0.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 38238.affd309bf2aa3f38d3a0.chunk.js.LICENSE.txt */ -(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[38238,39040],{967228:e=>{e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r{e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},823646:(e,t,r)=>{var n=r(967228);e.exports=function(e){if(Array.isArray(e))return n(e)},e.exports.__esModule=!0,e.exports.default=e.exports},281506:e=>{e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},348926:e=>{function t(e,t,r,n,s,a,i){try{var o=e[a](i),l=o.value}catch(e){return void r(e)}o.done?t(l):Promise.resolve(l).then(n,s)}e.exports=function(e){return function(){var r=this,n=arguments;return new Promise((function(s,a){var i=e.apply(r,n);function o(e){t(i,s,a,o,l,"next",e)}function l(e){t(i,s,a,o,l,"throw",e)}o(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},334575:e=>{e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},993913:(e,t,r)=>{var n=r(313696);function s(e,t){for(var r=0;r{var n=r(313696);e.exports=function(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},629754:e=>{function t(r){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},502205:(e,t,r)=>{var n=r(799489);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&n(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},820862:(e,t,r)=>{var n=r(750008).default;function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}e.exports=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var a={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var l=i?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(a,o,l):a[o]=e[o]}return a.default=e,r&&r.set(e,a),a},e.exports.__esModule=!0,e.exports.default=e.exports},246860:e=>{e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},713884:e=>{e.exports=function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,s,a,i,o=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(o.push(n.value),o.length!==t);l=!0);}catch(e){c=!0,s=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw s}}return o}},e.exports.__esModule=!0,e.exports.default=e.exports},580521:e=>{e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},398206:e=>{e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},506479:(e,t,r)=>{var n=r(337316);e.exports=function(e,t){if(null==e)return{};var r,s,a=n(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(s=0;s=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a},e.exports.__esModule=!0,e.exports.default=e.exports},337316:e=>{e.exports=function(e,t){if(null==e)return{};var r,n,s={},a=Object.keys(e);for(n=0;n=0||(s[r]=e[r]);return s},e.exports.__esModule=!0,e.exports.default=e.exports},178585:(e,t,r)=>{var n=r(750008).default,s=r(281506);e.exports=function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return s(e)},e.exports.__esModule=!0,e.exports.default=e.exports},759591:(e,t,r)=>{var n=r(750008).default;function s(){"use strict";e.exports=s=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},r=Object.prototype,a=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},l=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,r){return e[t]=r}}function h(e,t,r,n){var s=t&&t.prototype instanceof g?t:g,a=Object.create(s.prototype),o=new R(n||[]);return i(a,"_invoke",{value:w(e,r,o)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=h;var f={};function g(){}function m(){}function v(){}var b={};d(b,l,(function(){return this}));var y=Object.getPrototypeOf,A=y&&y(y(E([])));A&&A!==r&&a.call(A,l)&&(b=A);var _=v.prototype=g.prototype=Object.create(b);function x(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function r(s,i,o,l){var c=p(e[s],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==n(d)&&a.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,o,l)}),(function(e){r("throw",e,o,l)})):t.resolve(d).then((function(e){u.value=e,o(u)}),(function(e){return r("throw",e,o,l)}))}l(c.arg)}var s;i(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,s){r(e,n,t,s)}))}return s=s?s.then(a,a):a()}})}function w(e,t,r){var n="suspendedStart";return function(s,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===s)throw a;return{value:void 0,done:!0}}for(r.method=s,r.arg=a;;){var i=r.delegate;if(i){var o=P(i,r);if(o){if(o===f)continue;return o}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=p(e,t,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function P(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,P(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var s=p(n,e.iterator,t.arg);if("throw"===s.type)return t.method="throw",t.arg=s.arg,t.delegate=null,f;var a=s.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function E(e){if(e||""===e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,s=function t(){for(;++r=0;--n){var s=this.tryEntries[n],i=s.completion;if("root"===s.tryLoc)return r("end");if(s.tryLoc<=this.prev){var o=a.call(s,"catchLoc"),l=a.call(s,"finallyLoc");if(o&&l){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var s=n.arg;k(r)}return s}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:E(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}e.exports=s,e.exports.__esModule=!0,e.exports.default=e.exports},799489:e=>{function t(r,n){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},963038:(e,t,r)=>{var n=r(222858),s=r(713884),a=r(560379),i=r(580521);e.exports=function(e,t){return n(e)||s(e,t)||a(e,t)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},319:(e,t,r)=>{var n=r(823646),s=r(246860),a=r(560379),i=r(398206);e.exports=function(e){return n(e)||s(e)||a(e)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},308868:(e,t,r)=>{var n=r(750008).default;e.exports=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var s=r.call(e,t||"default");if("object"!==n(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},313696:(e,t,r)=>{var n=r(750008).default,s=r(308868);e.exports=function(e){var t=s(e,"string");return"symbol"===n(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},750008:e=>{function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},560379:(e,t,r)=>{var n=r(967228);e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},887757:(e,t,r)=>{var n=r(759591)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},580760:(e,t,r)=>{var n=r(989881);e.exports=function(e,t){var r=[];return n(e,(function(e,n,s){t(e,n,s)&&r.push(e)})),r}},763105:(e,t,r)=>{var n=r(234963),s=r(580760),a=r(267206),i=r(701469);e.exports=function(e,t){return(i(e)?n:s)(e,a(t,3))}},531351:e=>{var t=Array.prototype.reverse;e.exports=function(e){return null==e?e:t.call(e)}},973206:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=!1;return{promise:new Promise((function(r,n){e.then((function(e){return!t&&r(e)})).catch((function(e){return!t&&n(e)}))})),cancel:function(){t=!0}}}},953770:function(e,t){"use strict";var r=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,s=0,a=t.length;s{"use strict";function n(){return Array.prototype.slice.call(arguments).reduce((function(e,t){return e.concat(t)}),[]).filter((function(e){return"string"==typeof e})).join(" ")}r.r(t),r.d(t,{default:()=>n})},879426:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=[],t=0;tnew e(t)))}else{const e=r(22).PDFNetworkStream;let t;(0,n.isFetchSupported)()&&(t=r(23).PDFFetchStream),(0,s.setPDFNetworkStreamFactory)((r=>t&&(0,n.isValidFetchUrl)(r.url)?new t(r):new e(r)))}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addLinkAttributes=function(e,{url:t,target:r,rel:a,enabled:i=!0}={}){(0,n.assert)(t&&"string"==typeof t,'addLinkAttributes: A valid "url" parameter must provided.');const o=(0,n.removeNullCharacters)(t);i?e.href=e.title=o:(e.href="",e.title=`Disabled: ${o}`,e.onclick=()=>!1);let c="";switch(r){case l.NONE:break;case l.SELF:c="_self";break;case l.BLANK:c="_blank";break;case l.PARENT:c="_parent";break;case l.TOP:c="_top"}e.target=c,e.rel="string"==typeof a?a:s},t.getFilenameFromUrl=function(e){const t=e.indexOf("#"),r=e.indexOf("?"),n=Math.min(t>0?t:e.length,r>0?r:e.length);return e.substring(e.lastIndexOf("/",n)+1,n)},t.isFetchSupported=c,t.isValidFetchUrl=u,t.loadScript=function(e){return new Promise(((t,r)=>{const n=document.createElement("script");n.src=e,n.onload=t,n.onerror=function(){r(new Error(`Cannot load script at: ${n.src}`))},(document.head||document.documentElement).appendChild(n)}))},t.deprecated=function(e){console.log("Deprecated API usage: "+e)},t.PDFDateString=t.StatTimer=t.DOMSVGFactory=t.DOMCMapReaderFactory=t.DOMCanvasFactory=t.DEFAULT_LINK_REL=t.LinkTarget=t.RenderingCancelledException=t.PageViewport=void 0;var n=r(2);const s="noopener noreferrer nofollow";t.DEFAULT_LINK_REL=s;const a="http://www.w3.org/2000/svg";t.DOMCanvasFactory=class{create(e,t){if(e<=0||t<=0)throw new Error("Invalid canvas size");const r=document.createElement("canvas"),n=r.getContext("2d");return r.width=e,r.height=t,{canvas:r,context:n}}reset(e,t,r){if(!e.canvas)throw new Error("Canvas is not specified");if(t<=0||r<=0)throw new Error("Invalid canvas size");e.canvas.width=t,e.canvas.height=r}destroy(e){if(!e.canvas)throw new Error("Canvas is not specified");e.canvas.width=0,e.canvas.height=0,e.canvas=null,e.context=null}},t.DOMCMapReaderFactory=class{constructor({baseUrl:e=null,isCompressed:t=!1}){this.baseUrl=e,this.isCompressed=t}async fetch({name:e}){if(!this.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!e)throw new Error("CMap name must be specified.");const t=this.baseUrl+e+(this.isCompressed?".bcmap":""),r=this.isCompressed?n.CMapCompressionType.BINARY:n.CMapCompressionType.NONE;return c()&&u(t,document.baseURI)?fetch(t).then((async e=>{if(!e.ok)throw new Error(e.statusText);let t;return t=this.isCompressed?new Uint8Array(await e.arrayBuffer()):(0,n.stringToBytes)(await e.text()),{cMapData:t,compressionType:r}})).catch((e=>{throw new Error("Unable to load "+(this.isCompressed?"binary ":"")+`CMap at: ${t}`)})):new Promise(((e,s)=>{const a=new XMLHttpRequest;a.open("GET",t,!0),this.isCompressed&&(a.responseType="arraybuffer"),a.onreadystatechange=()=>{if(a.readyState===XMLHttpRequest.DONE){if(200===a.status||0===a.status){let t;if(this.isCompressed&&a.response?t=new Uint8Array(a.response):!this.isCompressed&&a.responseText&&(t=(0,n.stringToBytes)(a.responseText)),t)return void e({cMapData:t,compressionType:r})}s(new Error(a.statusText))}},a.send(null)})).catch((e=>{throw new Error("Unable to load "+(this.isCompressed?"binary ":"")+`CMap at: ${t}`)}))}},t.DOMSVGFactory=class{create(e,t){(0,n.assert)(e>0&&t>0,"Invalid SVG dimensions");const r=document.createElementNS(a,"svg:svg");return r.setAttribute("version","1.1"),r.setAttribute("width",e+"px"),r.setAttribute("height",t+"px"),r.setAttribute("preserveAspectRatio","none"),r.setAttribute("viewBox","0 0 "+e+" "+t),r}createElement(e){return(0,n.assert)("string"==typeof e,"Invalid SVG element type"),document.createElementNS(a,e)}};class i{constructor({viewBox:e,scale:t,rotation:r,offsetX:n=0,offsetY:s=0,dontFlip:a=!1}){this.viewBox=e,this.scale=t,this.rotation=r,this.offsetX=n,this.offsetY=s;const i=(e[2]+e[0])/2,o=(e[3]+e[1])/2;let l,c,u,d,h,p,f,g;switch(r=(r%=360)<0?r+360:r){case 180:l=-1,c=0,u=0,d=1;break;case 90:l=0,c=1,u=1,d=0;break;case 270:l=0,c=-1,u=-1,d=0;break;case 0:l=1,c=0,u=0,d=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}a&&(u=-u,d=-d),0===l?(h=Math.abs(o-e[1])*t+n,p=Math.abs(i-e[0])*t+s,f=Math.abs(e[3]-e[1])*t,g=Math.abs(e[2]-e[0])*t):(h=Math.abs(i-e[0])*t+n,p=Math.abs(o-e[1])*t+s,f=Math.abs(e[2]-e[0])*t,g=Math.abs(e[3]-e[1])*t),this.transform=[l*t,c*t,u*t,d*t,h-l*t*i-u*t*o,p-c*t*i-d*t*o],this.width=f,this.height=g}clone({scale:e=this.scale,rotation:t=this.rotation,offsetX:r=this.offsetX,offsetY:n=this.offsetY,dontFlip:s=!1}={}){return new i({viewBox:this.viewBox.slice(),scale:e,rotation:t,offsetX:r,offsetY:n,dontFlip:s})}convertToViewportPoint(e,t){return n.Util.applyTransform([e,t],this.transform)}convertToViewportRectangle(e){const t=n.Util.applyTransform([e[0],e[1]],this.transform),r=n.Util.applyTransform([e[2],e[3]],this.transform);return[t[0],t[1],r[0],r[1]]}convertToPdfPoint(e,t){return n.Util.applyInverseTransform([e,t],this.transform)}}t.PageViewport=i;class o extends n.BaseException{constructor(e,t){super(e),this.type=t}}t.RenderingCancelledException=o;const l={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};function c(){return"undefined"!=typeof fetch&&"undefined"!=typeof Response&&"body"in Response.prototype&&"undefined"!=typeof ReadableStream}function u(e,t){try{const{protocol:r}=t?new URL(e,t):new URL(e);return"http:"===r||"https:"===r}catch(e){return!1}}let d;t.LinkTarget=l,t.StatTimer=class{constructor(){this.started=Object.create(null),this.times=[]}time(e){e in this.started&&(0,n.warn)(`Timer is already running for ${e}`),this.started[e]=Date.now()}timeEnd(e){e in this.started||(0,n.warn)(`Timer has not been started for ${e}`),this.times.push({name:e,start:this.started[e],end:Date.now()}),delete this.started[e]}toString(){const e=[];let t=0;for(const e of this.times){const r=e.name;r.length>t&&(t=r.length)}for(const r of this.times){const n=r.end-r.start;e.push(`${r.name.padEnd(t)} ${n}ms\n`)}return e.join("")}},t.PDFDateString=class{static toDateObject(e){if(!e||!(0,n.isString)(e))return null;d||(d=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));const t=d.exec(e);if(!t)return null;const r=parseInt(t[1],10);let s=parseInt(t[2],10);s=s>=1&&s<=12?s-1:0;let a=parseInt(t[3],10);a=a>=1&&a<=31?a:1;let i=parseInt(t[4],10);i=i>=0&&i<=23?i:0;let o=parseInt(t[5],10);o=o>=0&&o<=59?o:0;let l=parseInt(t[6],10);l=l>=0&&l<=59?l:0;const c=t[7]||"Z";let u=parseInt(t[8],10);u=u>=0&&u<=23?u:0;let h=parseInt(t[9],10)||0;return h=h>=0&&h<=59?h:0,"-"===c?(i+=u,o+=h):"+"===c&&(i-=u,o-=h),new Date(Date.UTC(r,s,a,i,o,l))}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayByteLength=h,t.arraysToBytes=function(e){const t=e.length;if(1===t&&e[0]instanceof Uint8Array)return e[0];let r=0;for(let n=0;nt}),e.promise=new Promise((function(r,n){e.resolve=function(e){t=!0,r(e)},e.reject=function(e){t=!0,n(e)}})),e},t.getVerbosityLevel=function(){return s},t.info=function(e){s>=n.INFOS&&console.log(`Info: ${e}`)},t.isArrayBuffer=function(e){return"object"==typeof e&&null!==e&&void 0!==e.byteLength},t.isArrayEqual=function(e,t){return e.length===t.length&&e.every((function(e,r){return e===t[r]}))},t.isBool=function(e){return"boolean"==typeof e},t.isEmptyObj=function(e){for(const t in e)return!1;return!0},t.isNum=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSameOrigin=function(e,t){let r;try{if(r=new URL(e),!r.origin||"null"===r.origin)return!1}catch(e){return!1}const n=new URL(t,r);return r.origin===n.origin},t.createValidAbsoluteUrl=function(e,t){if(!e)return null;try{const r=t?new URL(e,t):new URL(e);if(function(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(r))return r}catch(e){}return null},t.removeNullCharacters=function(e){return"string"!=typeof e?(a("The argument for removeNullCharacters must be a string."),e):e.replace(u,"")},t.setVerbosityLevel=function(e){Number.isInteger(e)&&(s=e)},t.shadow=l,t.string32=function(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)},t.stringToBytes=d,t.stringToPDFString=function(e){const t=e.length,r=[];if("þ"===e[0]&&"ÿ"===e[1])for(let n=2;n=n.WARNINGS&&console.log(`Warning: ${e}`)}function i(e){throw new Error(e)}function o(e,t){e||i(t)}function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!1}),r}const c=function(){function e(t){this.constructor===e&&i("Cannot initialize BaseException."),this.message=t,this.name=this.constructor.name}return e.prototype=new Error,e.constructor=e,e}();t.BaseException=c,t.PasswordException=class extends c{constructor(e,t){super(e),this.code=t}},t.UnknownErrorException=class extends c{constructor(e,t){super(e),this.details=t}},t.InvalidPDFException=class extends c{},t.MissingPDFException=class extends c{},t.UnexpectedResponseException=class extends c{constructor(e,t){super(e),this.status=t}},t.FormatError=class extends c{},t.AbortException=class extends c{};const u=/\x00/g;function d(e){o("string"==typeof e,"Invalid argument for stringToBytes");const t=e.length,r=new Uint8Array(t);for(let n=0;ne[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}static intersect(e,t){function r(e,t){return e-t}const n=[e[0],e[2],t[0],t[2]].sort(r),s=[e[1],e[3],t[1],t[3]].sort(r),a=[];return e=m.normalizeRect(e),t=m.normalizeRect(t),n[0]===e[0]&&n[1]===t[0]||n[0]===t[0]&&n[1]===e[0]?(a[0]=n[1],a[2]=n[2],s[0]===e[1]&&s[1]===t[1]||s[0]===t[1]&&s[1]===e[1]?(a[1]=s[1],a[3]=s[2],a):null):null}}t.Util=m;const v=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364],b=function(){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return function(t,r,n=!1){if(!n&&URL.createObjectURL){const e=new Blob([t],{type:r});return URL.createObjectURL(e)}let s=`data:${r};base64,`;for(let r=0,n=t.length;r>2]+e[(3&a)<<4|i>>4]+e[r+1>6:64]+e[r+2{this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null)}))}}}();class PDFDataRangeTransport{constructor(e,t,r=!1){this.length=e,this.initialData=t,this.progressiveDone=r,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}addRangeListener(e){this._rangeListeners.push(e)}addProgressListener(e){this._progressListeners.push(e)}addProgressiveReadListener(e){this._progressiveReadListeners.push(e)}addProgressiveDoneListener(e){this._progressiveDoneListeners.push(e)}onDataRange(e,t){for(const r of this._rangeListeners)r(e,t)}onDataProgress(e,t){this._readyCapability.promise.then((()=>{for(const r of this._progressListeners)r(e,t)}))}onDataProgressiveRead(e){this._readyCapability.promise.then((()=>{for(const t of this._progressiveReadListeners)t(e)}))}onDataProgressiveDone(){this._readyCapability.promise.then((()=>{for(const e of this._progressiveDoneListeners)e()}))}transportReady(){this._readyCapability.resolve()}requestDataRange(e,t){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}exports.PDFDataRangeTransport=PDFDataRangeTransport;class PDFDocumentProxy{constructor(e,t){this._pdfInfo=e,this._transport=t}get numPages(){return this._pdfInfo.numPages}get fingerprint(){return this._pdfInfo.fingerprint}getPage(e){return this._transport.getPage(e)}getPageIndex(e){return this._transport.getPageIndex(e)}getDestinations(){return this._transport.getDestinations()}getDestination(e){return this._transport.getDestination(e)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getOpenActionDestination(){return(0,_display_utils.deprecated)("getOpenActionDestination, use getOpenAction instead."),this.getOpenAction().then((function(e){return e&&e.dest?e.dest:null}))}getAttachments(){return this._transport.getAttachments()}getJavaScript(){return this._transport.getJavaScript()}getOutline(){return this._transport.getOutline()}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getData(){return this._transport.getData()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}getStats(){return this._transport.getStats()}cleanup(){return this._transport.startCleanup()}destroy(){return this.loadingTask.destroy()}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}}exports.PDFDocumentProxy=PDFDocumentProxy;class PDFPageProxy{constructor(e,t,r,n=!1){this._pageIndex=e,this._pageInfo=t,this._transport=r,this._stats=n?new _display_utils.StatTimer:null,this._pdfBug=n,this.commonObjs=r.commonObjs,this.objs=new PDFObjects,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this.intentStates=Object.create(null),this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:e,rotation:t=this.rotate,offsetX:r=0,offsetY:n=0,dontFlip:s=!1}={}){return new _display_utils.PageViewport({viewBox:this.view,scale:e,rotation:t,offsetX:r,offsetY:n,dontFlip:s})}getAnnotations({intent:e=null}={}){return this.annotationsPromise&&this.annotationsIntent===e||(this.annotationsPromise=this._transport.getAnnotations(this._pageIndex,e),this.annotationsIntent=e),this.annotationsPromise}render({canvasContext:e,viewport:t,intent:r="display",enableWebGL:n=!1,renderInteractiveForms:s=!1,transform:a=null,imageLayer:i=null,canvasFactory:o=null,background:l=null}){this._stats&&this._stats.time("Overall");const c="print"===r?"print":"display";this.pendingCleanup=!1,this.intentStates[c]||(this.intentStates[c]=Object.create(null));const u=this.intentStates[c];u.streamReaderCancelTimeout&&(clearTimeout(u.streamReaderCancelTimeout),u.streamReaderCancelTimeout=null);const d=o||new _display_utils.DOMCanvasFactory,h=new _webgl.WebGLContext({enable:n});u.displayReadyCapability||(u.displayReadyCapability=(0,_util.createPromiseCapability)(),u.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:c,renderInteractiveForms:!0===s}));const p=e=>{const t=u.renderTasks.indexOf(f);t>=0&&u.renderTasks.splice(t,1),(this.cleanupAfterRender||"print"===c)&&(this.pendingCleanup=!0),this._tryCleanup(),e?(f.capability.reject(e),this._abortOperatorList({intentState:u,reason:e})):f.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"))},f=new InternalRenderTask({callback:p,params:{canvasContext:e,viewport:t,transform:a,imageLayer:i,background:l},objs:this.objs,commonObjs:this.commonObjs,operatorList:u.operatorList,pageIndex:this._pageIndex,canvasFactory:d,webGLContext:h,useRequestAnimationFrame:"print"!==c,pdfBug:this._pdfBug});u.renderTasks||(u.renderTasks=[]),u.renderTasks.push(f);const g=f.task;return u.displayReadyCapability.promise.then((e=>{this.pendingCleanup?p():(this._stats&&this._stats.time("Rendering"),f.initializeGraphics(e),f.operatorListChanged())})).catch(p),g}getOperatorList(){const e="oplist";this.intentStates[e]||(this.intentStates[e]=Object.create(null));const t=this.intentStates[e];let r;return t.opListReadCapability||(r={},r.operatorListChanged=function(){if(t.operatorList.lastChunk){t.opListReadCapability.resolve(t.operatorList);const e=t.renderTasks.indexOf(r);e>=0&&t.renderTasks.splice(e,1)}},t.opListReadCapability=(0,_util.createPromiseCapability)(),t.renderTasks=[],t.renderTasks.push(r),t.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:e})),t.opListReadCapability.promise}streamTextContent({normalizeWhitespace:e=!1,disableCombineTextItems:t=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,normalizeWhitespace:!0===e,combineTextItems:!0!==t},{highWaterMark:100,size:e=>e.items.length})}getTextContent(e={}){const t=this.streamTextContent(e);return new Promise((function(e,r){const n=t.getReader(),s={items:[],styles:Object.create(null)};!function t(){n.read().then((function({value:r,done:n}){n?e(s):(Object.assign(s.styles,r.styles),s.items.push(...r.items),t())}),r)}()}))}_destroy(){this.destroyed=!0,this._transport.pageCache[this._pageIndex]=null;const e=[];return Object.keys(this.intentStates).forEach((t=>{const r=this.intentStates[t];this._abortOperatorList({intentState:r,reason:new Error("Page was destroyed."),force:!0}),"oplist"!==t&&r.renderTasks.forEach((function(t){const r=t.capability.promise.catch((function(){}));e.push(r),t.cancel()}))})),this.objs.clear(),this.annotationsPromise=null,this.pendingCleanup=!1,Promise.all(e)}cleanup(e=!1){return this.pendingCleanup=!0,this._tryCleanup(e)}_tryCleanup(e=!1){return!(!this.pendingCleanup||Object.keys(this.intentStates).some((e=>{const t=this.intentStates[e];return 0!==t.renderTasks.length||!t.operatorList.lastChunk}))||(Object.keys(this.intentStates).forEach((e=>{delete this.intentStates[e]})),this.objs.clear(),this.annotationsPromise=null,e&&this._stats&&(this._stats=new _display_utils.StatTimer),this.pendingCleanup=!1,0))}_startRenderPage(e,t){const r=this.intentStates[t];r&&(this._stats&&this._stats.timeEnd("Page Request"),r.displayReadyCapability&&r.displayReadyCapability.resolve(e))}_renderPageChunk(e,t){for(let r=0,n=e.length;r{t.read().then((({value:e,done:t})=>{t?r.streamReader=null:this._transport.destroyed||(this._renderPageChunk(e,r),n())}),(e=>{if(r.streamReader=null,!this._transport.destroyed){if(r.operatorList){r.operatorList.lastChunk=!0;for(let e=0;e{this._abortOperatorList({intentState:e,reason:t,force:!0}),e.streamReaderCancelTimeout=null}),RENDERING_CANCELLED_TIMEOUT))}e.streamReader.cancel(new _util.AbortException(t&&t.message)),e.streamReader=null,this._transport.destroyed||(Object.keys(this.intentStates).some((t=>this.intentStates[t]===e&&(delete this.intentStates[t],!0))),this.cleanup())}}get stats(){return this._stats}}exports.PDFPageProxy=PDFPageProxy;class LoopbackPort{constructor(e=!0){this._listeners=[],this._defer=e,this._deferred=Promise.resolve(void 0)}postMessage(e,t){if(!this._defer)return void this._listeners.forEach((t=>{t.call(this,{data:e})}));const r=new WeakMap,n={data:function e(n){if("object"!=typeof n||null===n)return n;if(r.has(n))return r.get(n);let s,a;if((s=n.buffer)&&(0,_util.isArrayBuffer)(s))return a=t&&t.includes(s)?new n.constructor(s,n.byteOffset,n.byteLength):new n.constructor(n),r.set(n,a),a;a=Array.isArray(n)?[]:{},r.set(n,a);for(const t in n){let r,s=n;for(;!(r=Object.getOwnPropertyDescriptor(s,t));)s=Object.getPrototypeOf(s);if(void 0!==r.value)if("function"!=typeof r.value)a[t]=e(r.value);else if(n.hasOwnProperty&&n.hasOwnProperty(t))throw new Error(`LoopbackPort.postMessage - cannot clone: ${n[t]}`)}return a}(e)};this._deferred.then((()=>{this._listeners.forEach((e=>{e.call(this,n)}))}))}addEventListener(e,t){this._listeners.push(t)}removeEventListener(e,t){const r=this._listeners.indexOf(t);this._listeners.splice(r,1)}terminate(){this._listeners.length=0}}exports.LoopbackPort=LoopbackPort;const PDFWorker=function PDFWorkerClosure(){const pdfWorkerPorts=new WeakMap;let isWorkerDisabled=!1,fallbackWorkerSrc,nextFakeWorkerId=0,fakeWorkerCapability;if(_is_node.isNodeJS)isWorkerDisabled=!0,fallbackWorkerSrc="./pdf.worker.js";else if("object"==typeof document&&"currentScript"in document){const e=document.currentScript&&document.currentScript.src;e&&(fallbackWorkerSrc=e.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}function getWorkerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(void 0!==fallbackWorkerSrc)return _is_node.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}function getMainThreadWorkerMessageHandler(){let e;try{e=globalThis.pdfjsWorker&&globalThis.pdfjsWorker.WorkerMessageHandler}catch(e){}return e||null}function setupFakeWorkerGlobal(){if(fakeWorkerCapability)return fakeWorkerCapability.promise;fakeWorkerCapability=(0,_util.createPromiseCapability)();const loader=async function(){const mainWorkerMessageHandler=getMainThreadWorkerMessageHandler();if(mainWorkerMessageHandler)return mainWorkerMessageHandler;if(_is_node.isNodeJS){const worker=eval("require")(getWorkerSrc());return worker.WorkerMessageHandler}return await(0,_display_utils.loadScript)(getWorkerSrc()),window.pdfjsWorker.WorkerMessageHandler};return loader().then(fakeWorkerCapability.resolve,fakeWorkerCapability.reject),fakeWorkerCapability.promise}function createCDNWrapper(e){const t="importScripts('"+e+"');";return URL.createObjectURL(new Blob([t]))}class PDFWorker{constructor({name:e=null,port:t=null,verbosity:r=(0,_util.getVerbosityLevel)()}={}){if(t&&pdfWorkerPorts.has(t))throw new Error("Cannot use more than one PDFWorker per port");if(this.name=e,this.destroyed=!1,this.postMessageTransfers=!0,this.verbosity=r,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,t)return pdfWorkerPorts.set(t,this),void this._initializeFromPort(t);this._initialize()}get promise(){return this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(e){this._port=e,this._messageHandler=new _message_handler.MessageHandler("main","worker",e),this._messageHandler.on("ready",(function(){})),this._readyCapability.resolve()}_initialize(){if("undefined"!=typeof Worker&&!isWorkerDisabled&&!getMainThreadWorkerMessageHandler()){let e=getWorkerSrc();try{(0,_util.isSameOrigin)(window.location.href,e)||(e=createCDNWrapper(new URL(e,window.location).href));const t=new Worker(e),r=new _message_handler.MessageHandler("main","worker",t),n=()=>{t.removeEventListener("error",s),r.destroy(),t.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},s=()=>{this._webWorker||n()};t.addEventListener("error",s),r.on("test",(e=>{t.removeEventListener("error",s),this.destroyed?n():e?(this._messageHandler=r,this._port=t,this._webWorker=t,e.supportTransfers||(this.postMessageTransfers=!1),this._readyCapability.resolve(),r.send("configure",{verbosity:this.verbosity})):(this._setupFakeWorker(),r.destroy(),t.terminate())})),r.on("ready",(e=>{if(t.removeEventListener("error",s),this.destroyed)n();else try{a()}catch(e){this._setupFakeWorker()}}));const a=()=>{const e=new Uint8Array([this.postMessageTransfers?255:0]);try{r.send("test",e,[e.buffer])}catch(t){(0,_util.warn)("Cannot use postMessage transfers."),e[0]=0,r.send("test",e)}};return void a()}catch(e){(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}_setupFakeWorker(){isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),isWorkerDisabled=!0),setupFakeWorkerGlobal().then((e=>{if(this.destroyed)return void this._readyCapability.reject(new Error("Worker was destroyed"));const t=new LoopbackPort;this._port=t;const r="fake"+nextFakeWorkerId++,n=new _message_handler.MessageHandler(r+"_worker",r,t);e.setup(n,t);const s=new _message_handler.MessageHandler(r,r+"_worker",t);this._messageHandler=s,this._readyCapability.resolve(),s.send("configure",{verbosity:this.verbosity})})).catch((e=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${e.message}".`))}))}destroy(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),pdfWorkerPorts.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(e){if(!e||!e.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return pdfWorkerPorts.has(e.port)?pdfWorkerPorts.get(e.port):new PDFWorker(e)}static getWorkerSrc(){return getWorkerSrc()}}return PDFWorker}();exports.PDFWorker=PDFWorker;class WorkerTransport{constructor(e,t,r,n){this.messageHandler=e,this.loadingTask=t,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({docId:t.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this)}),this._params=n,this.CMapReaderFactory=new n.CMapReaderFactory({baseUrl:n.cMapUrl,isCompressed:n.cMapPacked}),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=r,this._fullReader=null,this._lastProgress=null,this.pageCache=[],this.pagePromises=[],this.downloadInfoCapability=(0,_util.createPromiseCapability)(),this.setupMessageHandler()}destroy(){if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=(0,_util.createPromiseCapability)(),this._passwordCapability&&this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));const e=[];this.pageCache.forEach((function(t){t&&e.push(t._destroy())})),this.pageCache.length=0,this.pagePromises.length=0;const t=this.messageHandler.sendWithPromise("Terminate",null);return e.push(t),Promise.all(e).then((()=>{this.fontLoader.clear(),this._networkStream&&this._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()}),this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:e,loadingTask:t}=this;e.on("GetReader",((e,t)=>{(0,_util.assert)(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=e=>{this._lastProgress={loaded:e.loaded,total:e.total}},t.onPull=()=>{this._fullReader.read().then((function({value:e,done:r}){r?t.close():((0,_util.assert)((0,_util.isArrayBuffer)(e),"GetReader - expected an ArrayBuffer."),t.enqueue(new Uint8Array(e),1,[e]))})).catch((e=>{t.error(e)}))},t.onCancel=e=>{this._fullReader.cancel(e)}})),e.on("ReaderHeadersReady",(e=>{const r=(0,_util.createPromiseCapability)(),n=this._fullReader;return n.headersReady.then((()=>{n.isStreamingSupported&&n.isRangeSupported||(this._lastProgress&&t.onProgress&&t.onProgress(this._lastProgress),n.onProgress=e=>{t.onProgress&&t.onProgress({loaded:e.loaded,total:e.total})}),r.resolve({isStreamingSupported:n.isStreamingSupported,isRangeSupported:n.isRangeSupported,contentLength:n.contentLength})}),r.reject),r.promise})),e.on("GetRangeReader",((e,t)=>{(0,_util.assert)(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const r=this._networkStream.getRangeReader(e.begin,e.end);r?(t.onPull=()=>{r.read().then((function({value:e,done:r}){r?t.close():((0,_util.assert)((0,_util.isArrayBuffer)(e),"GetRangeReader - expected an ArrayBuffer."),t.enqueue(new Uint8Array(e),1,[e]))})).catch((e=>{t.error(e)}))},t.onCancel=e=>{r.cancel(e)}):t.close()})),e.on("GetDoc",(({pdfInfo:e})=>{this._numPages=e.numPages,t._capability.resolve(new PDFDocumentProxy(e,this))})),e.on("DocException",(function(e){let r;switch(e.name){case"PasswordException":r=new _util.PasswordException(e.message,e.code);break;case"InvalidPDFException":r=new _util.InvalidPDFException(e.message);break;case"MissingPDFException":r=new _util.MissingPDFException(e.message);break;case"UnexpectedResponseException":r=new _util.UnexpectedResponseException(e.message,e.status);break;case"UnknownErrorException":r=new _util.UnknownErrorException(e.message,e.details)}t._capability.reject(r)})),e.on("PasswordRequest",(e=>{if(this._passwordCapability=(0,_util.createPromiseCapability)(),t.onPassword){const r=e=>{this._passwordCapability.resolve({password:e})};try{t.onPassword(r,e.code)}catch(e){this._passwordCapability.reject(e)}}else this._passwordCapability.reject(new _util.PasswordException(e.message,e.code));return this._passwordCapability.promise})),e.on("DataLoaded",(e=>{t.onProgress&&t.onProgress({loaded:e.length,total:e.length}),this.downloadInfoCapability.resolve(e)})),e.on("StartRenderPage",(e=>{this.destroyed||this.pageCache[e.pageIndex]._startRenderPage(e.transparency,e.intent)})),e.on("commonobj",(t=>{if(this.destroyed)return;const[r,n,s]=t;if(!this.commonObjs.has(r))switch(n){case"Font":const t=this._params;if("error"in s){const e=s.error;(0,_util.warn)(`Error during font loading: ${e}`),this.commonObjs.resolve(r,e);break}let a=null;t.pdfBug&&globalThis.FontInspector&&globalThis.FontInspector.enabled&&(a={registerFont(e,t){globalThis.FontInspector.fontAdded(e,t)}});const i=new _font_loader.FontFaceObject(s,{isEvalSupported:t.isEvalSupported,disableFontFace:t.disableFontFace,ignoreErrors:t.ignoreErrors,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),fontRegistry:a});this.fontLoader.bind(i).catch((t=>e.sendWithPromise("FontFallback",{id:r}))).finally((()=>{!t.fontExtraProperties&&i.data&&(i.data=null),this.commonObjs.resolve(r,i)}));break;case"FontPath":case"FontType3Res":case"Image":this.commonObjs.resolve(r,s);break;default:throw new Error(`Got unknown common object type ${n}`)}})),e.on("obj",(e=>{if(this.destroyed)return;const[t,r,n,s]=e,a=this.pageCache[r];if(!a.objs.has(t)){if("Image"!==n)throw new Error(`Got unknown object type ${n}`);{a.objs.resolve(t,s);const e=8e6;s&&"data"in s&&s.data.length>e&&(a.cleanupAfterRender=!0)}}})),e.on("DocProgress",(e=>{this.destroyed||t.onProgress&&t.onProgress({loaded:e.loaded,total:e.total})})),e.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),e.on("FetchBuiltInCMap",((e,t)=>{if(this.destroyed)return void t.error(new Error("Worker was destroyed"));let r=!1;t.onPull=()=>{r?t.close():(r=!0,this.CMapReaderFactory.fetch(e).then((function(e){t.enqueue(e,1,[e.cMapData.buffer])})).catch((function(e){t.error(e)})))}}))}_onUnsupportedFeature({featureId:e}){this.destroyed||this.loadingTask.onUnsupportedFeature&&this.loadingTask.onUnsupportedFeature(e)}getData(){return this.messageHandler.sendWithPromise("GetData",null)}getPage(e){if(!Number.isInteger(e)||e<=0||e>this._numPages)return Promise.reject(new Error("Invalid page request"));const t=e-1;if(t in this.pagePromises)return this.pagePromises[t];const r=this.messageHandler.sendWithPromise("GetPage",{pageIndex:t}).then((e=>{if(this.destroyed)throw new Error("Transport destroyed");const r=new PDFPageProxy(t,e,this,this._params.pdfBug);return this.pageCache[t]=r,r}));return this.pagePromises[t]=r,r}getPageIndex(e){return this.messageHandler.sendWithPromise("GetPageIndex",{ref:e}).catch((function(e){return Promise.reject(new Error(e))}))}getAnnotations(e,t){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:e,intent:t})}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(e){return"string"!=typeof e?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:e})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getJavaScript(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){return this.messageHandler.sendWithPromise("GetMetadata",null).then((e=>({info:e[0],metadata:e[1]?new _metadata.Metadata(e[1]):null,contentDispositionFilename:this._fullReader?this._fullReader.filename:null})))}getStats(){return this.messageHandler.sendWithPromise("GetStats",null)}startCleanup(){return this.messageHandler.sendWithPromise("Cleanup",null).then((()=>{for(let e=0,t=this.pageCache.length;e{this._nextBound().catch(this.cancel.bind(this))})):Promise.resolve().then(this._nextBound).catch(this.cancel.bind(this))}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),this._canvas&&e.delete(this._canvas),this.callback())))}}}(),version="2.5.207";exports.version=version;const build="0974d605";exports.build=build},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontLoader=t.FontFaceObject=void 0;var n=r(2);class s{constructor({docId:e,onUnsupportedFeature:t}){this.constructor===s&&(0,n.unreachable)("Cannot initialize BaseFontLoader."),this.docId=e,this._onUnsupportedFeature=t,this.nativeFontFaces=[],this.styleElement=null}addNativeFontFace(e){this.nativeFontFaces.push(e),document.fonts.add(e)}insertRule(e){let t=this.styleElement;t||(t=this.styleElement=document.createElement("style"),t.id=`PDFJS_FONT_STYLE_TAG_${this.docId}`,document.documentElement.getElementsByTagName("head")[0].appendChild(t));const r=t.sheet;r.insertRule(e,r.cssRules.length)}clear(){this.nativeFontFaces.forEach((function(e){document.fonts.delete(e)})),this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async bind(e){if(e.attached||e.missingFile)return;if(e.attached=!0,this.isFontLoadingAPISupported){const t=e.createNativeFontFace();if(t){this.addNativeFontFace(t);try{await t.loaded}catch(r){throw this._onUnsupportedFeature({featureId:n.UNSUPPORTED_FEATURES.errorFontLoadNative}),(0,n.warn)(`Failed to load font '${t.family}': '${r}'.`),e.disableFontFace=!0,r}}return}const t=e.createFontFaceRule();if(t){if(this.insertRule(t),this.isSyncFontLoadingSupported)return;await new Promise((r=>{const n=this._queueLoadingCallback(r);this._prepareFontLoadEvent([t],[e],n)}))}}_queueLoadingCallback(e){(0,n.unreachable)("Abstract method `_queueLoadingCallback`.")}get isFontLoadingAPISupported(){const e="undefined"!=typeof document&&!!document.fonts;return(0,n.shadow)(this,"isFontLoadingAPISupported",e)}get isSyncFontLoadingSupported(){(0,n.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}get _loadTestFont(){(0,n.unreachable)("Abstract method `_loadTestFont`.")}_prepareFontLoadEvent(e,t,r){(0,n.unreachable)("Abstract method `_prepareFontLoadEvent`.")}}let a;t.FontLoader=a,t.FontLoader=a=class extends s{constructor(e){super(e),this.loadingContext={requests:[],nextRequestId:0},this.loadTestFontId=0}get isSyncFontLoadingSupported(){let e=!1;if("undefined"==typeof navigator)e=!0;else{const t=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent);t&&t[1]>=14&&(e=!0)}return(0,n.shadow)(this,"isSyncFontLoadingSupported",e)}_queueLoadingCallback(e){const t=this.loadingContext,r={id:"pdfjs-font-loading-"+t.nextRequestId++,done:!1,complete:function(){for((0,n.assert)(!r.done,"completeRequest() cannot be called twice."),r.done=!0;t.requests.length>0&&t.requests[0].done;){const e=t.requests.shift();setTimeout(e.callback,0)}},callback:e};return t.requests.push(r),r}get _loadTestFont(){return(0,n.shadow)(this,"_loadTestFont",atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA=="))}_prepareFontLoadEvent(e,t,r){function s(e,t){return e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|255&e.charCodeAt(t+3)}function a(e,t,r,n){return e.substring(0,t)+n+e.substring(t+r)}let i,o;const l=document.createElement("canvas");l.width=1,l.height=1;const c=l.getContext("2d");let u=0;const d=`lt${Date.now()}${this.loadTestFontId++}`;let h=this._loadTestFont;h=a(h,976,d.length,d);const p=1482184792;let f=s(h,16);for(i=0,o=d.length-3;i30)return(0,n.warn)("Load test font never loaded."),void r();c.font="30px "+t,c.fillText(".",0,20),c.getImageData(0,0,1,1).data[3]>0?r():setTimeout(e.bind(null,t,r))}(d,(function(){document.body.removeChild(v),r.complete()}))}},t.FontFaceObject=class{constructor(e,{isEvalSupported:t=!0,disableFontFace:r=!1,ignoreErrors:n=!1,onUnsupportedFeature:s=null,fontRegistry:a=null}){this.compiledGlyphs=Object.create(null);for(const t in e)this[t]=e[t];this.isEvalSupported=!1!==t,this.disableFontFace=!0===r,this.ignoreErrors=!0===n,this._onUnsupportedFeature=s,this.fontRegistry=a}createNativeFontFace(){if(!this.data||this.disableFontFace)return null;const e=new FontFace(this.loadedName,this.data,{});return this.fontRegistry&&this.fontRegistry.registerFont(this),e}createFontFaceRule(){if(!this.data||this.disableFontFace)return null;const e=(0,n.bytesToString)(new Uint8Array(this.data)),t=`url(data:${this.mimetype};base64,${btoa(e)});`,r=`@font-face {font-family:"${this.loadedName}";src:${t}}`;return this.fontRegistry&&this.fontRegistry.registerFont(this,t),r}getPathGenerator(e,t){if(void 0!==this.compiledGlyphs[t])return this.compiledGlyphs[t];let r,s;try{r=e.get(this.loadedName+"_path_"+t)}catch(e){if(!this.ignoreErrors)throw e;return this._onUnsupportedFeature&&this._onUnsupportedFeature({featureId:n.UNSUPPORTED_FEATURES.errorFontGetPath}),(0,n.warn)(`getPathGenerator - ignoring character: "${e}".`),this.compiledGlyphs[t]=function(e,t){}}if(this.isEvalSupported&&n.IsEvalSupportedCached.value){let e,n="";for(let t=0,a=r.length;t>2),A=y.length,_=u+7>>3,x=4294967295,S=n.IsLittleEndianCached.value?4278190080:255;for(s=0;s_?u:8*w-7,k=-8&C,R=0,E=0;P>=1}for(;r=h&&(l=u*(i=d)),r=0,a=l;a--;)v[r++]=m[g++],v[r++]=m[g++],v[r++]=m[g++],v[r++]=255;e.putImageData(f,0,s*o)}}}}function r(e,t){for(var r=t.height,n=t.width,s=r%o,a=(r-s)/o,i=0===s?a:a+1,l=e.createImageData(n,o),c=0,u=t.data,d=l.data,h=0;h>=1}e.putImageData(l,0,h*o)}}function d(e,t){for(var r=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"],n=0,s=r.length;n>8,e[a-2]=e[a-2]*i+r*o>>8,e[a-1]=e[a-1]*i+n*o>>8}}}function f(e,t,r){for(var n=e.length,s=3;s>8]>>8:t[s]*a>>16}}function m(e,t,r,n){var s=t.canvas,a=t.context;e.setTransform(t.scaleX,0,0,t.scaleY,t.offsetX,t.offsetY);var i=t.backdrop||null;if(!t.transferMap&&n.isEnabled){const a=n.composeSMask({layer:r.canvas,mask:s,properties:{subtype:t.subtype,backdrop:i}});return e.setTransform(1,0,0,1,0,0),void e.drawImage(a,t.offsetX,t.offsetY)}!function(e,t,r,n,s,a,i){var o,l=!!a,c=l?a[0]:0,u=l?a[1]:0,d=l?a[2]:0;o="Luminosity"===s?g:f;for(var h=Math.min(n,Math.ceil(1048576/r)),m=0;m10&&"function"==typeof r,d=u?Date.now()+15:0,h=0,p=this.commonObjs,f=this.objs;;){if(void 0!==s&&o===s.nextBreakPoint)return s.breakIt(o,r),o;if((c=i[o])!==n.OPS.dependency)this[c].apply(this,a[o]);else for(const e of a[o]){const t=e.startsWith("g_")?p:f;if(!t.has(e))return t.get(e,r),o}if(++o===l)return o;if(u&&++h>10){if(Date.now()>d)return r(),o;h=0}}},endDrawing:function(){null!==this.current.activeSMask&&this.endSMaskGroup(),this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null),this.cachedCanvases.clear(),this.webGLContext.clear(),this.imageLayer&&this.imageLayer.endLayout()},setLineWidth:function(e){this.current.lineWidth=e,this.ctx.lineWidth=e},setLineCap:function(e){this.ctx.lineCap=v[e]},setLineJoin:function(e){this.ctx.lineJoin=b[e]},setMiterLimit:function(e){this.ctx.miterLimit=e},setDash:function(e,t){var r=this.ctx;void 0!==r.setLineDash&&(r.setLineDash(e),r.lineDashOffset=t)},setRenderingIntent(e){},setFlatness(e){},setGState:function(e){for(var t=0,r=e.length;t0&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask?this.suspendSMaskGroup():this.endSMaskGroup()),this.current.activeSMask=a?this.tempSMask:null,this.current.activeSMask&&this.beginSMaskGroup(),this.tempSMask=null}}},beginSMaskGroup:function(){var e=this.current.activeSMask,t=e.canvas.width,r=e.canvas.height,n="smaskGroupAt"+this.groupLevel,s=this.cachedCanvases.getCanvas(n,t,r,!0),a=this.ctx,i=a.mozCurrentTransform;this.ctx.save();var o=s.context;o.scale(1/e.scaleX,1/e.scaleY),o.translate(-e.offsetX,-e.offsetY),o.transform.apply(o,i),e.startTransformInverse=o.mozCurrentTransformInverse,d(a,o),this.ctx=o,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(a),this.groupLevel++},suspendSMaskGroup:function(){var e=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),m(this.ctx,this.current.activeSMask,e,this.webGLContext),this.ctx.restore(),this.ctx.save(),d(e,this.ctx),this.current.resumeSMaskCtx=e;var t=n.Util.transform(this.current.activeSMask.startTransformInverse,e.mozCurrentTransform);this.ctx.transform.apply(this.ctx,t),e.save(),e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,e.canvas.width,e.canvas.height),e.restore()},resumeSMaskGroup:function(){var e=this.current.resumeSMaskCtx,t=this.ctx;this.ctx=e,this.groupStack.push(t),this.groupLevel++},endSMaskGroup:function(){var e=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),m(this.ctx,this.current.activeSMask,e,this.webGLContext),this.ctx.restore(),d(e,this.ctx);var t=n.Util.transform(this.current.activeSMask.startTransformInverse,e.mozCurrentTransform);this.ctx.transform.apply(this.ctx,t)},save:function(){this.ctx.save();var e=this.current;this.stateStack.push(e),this.current=e.clone(),this.current.resumeSMaskCtx=null},restore:function(){this.current.resumeSMaskCtx&&this.resumeSMaskGroup(),null===this.current.activeSMask||0!==this.stateStack.length&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask||this.endSMaskGroup(),0!==this.stateStack.length&&(this.current=this.stateStack.pop(),this.ctx.restore(),this.pendingClip=null,this._cachedGetSinglePixelWidth=null)},transform:function(e,t,r,n,s,a){this.ctx.transform(e,t,r,n,s,a),this._cachedGetSinglePixelWidth=null},constructPath:function(e,t){for(var r=this.ctx,s=this.current,a=s.x,i=s.y,o=0,l=0,c=e.length;o100&&(c=100),this.current.fontSizeScale=t/c,this.ctx.font=`${o} ${i} ${c}px ${l}`},setTextRenderingMode:function(e){this.current.textRenderingMode=e},setTextRise:function(e){this.current.textRise=e},moveText:function(e,t){this.current.x=this.current.lineX+=e,this.current.y=this.current.lineY+=t},setLeadingMoveText:function(e,t){this.setLeading(-t),this.moveText(e,t)},setTextMatrix:function(e,t,r,n,s,a){this.current.textMatrix=[e,t,r,n,s,a],this.current.textMatrixScale=Math.sqrt(e*e+t*t),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},nextLine:function(){this.moveText(0,this.current.leading)},paintChar(e,t,r,s){var a=this.ctx,i=this.current,o=i.font,l=i.textRenderingMode,c=i.fontSize/i.fontSizeScale,u=l&n.TextRenderingMode.FILL_STROKE_MASK,d=!!(l&n.TextRenderingMode.ADD_TO_PATH_FLAG);const h=i.patternFill&&!o.missingFile;var p;(o.disableFontFace||d||h)&&(p=o.getPathGenerator(this.commonObjs,e)),o.disableFontFace||h?(a.save(),a.translate(t,r),a.beginPath(),p(a,c),s&&a.setTransform.apply(a,s),u!==n.TextRenderingMode.FILL&&u!==n.TextRenderingMode.FILL_STROKE||a.fill(),u!==n.TextRenderingMode.STROKE&&u!==n.TextRenderingMode.FILL_STROKE||a.stroke(),a.restore()):(u!==n.TextRenderingMode.FILL&&u!==n.TextRenderingMode.FILL_STROKE||a.fillText(e,t,r),u!==n.TextRenderingMode.STROKE&&u!==n.TextRenderingMode.FILL_STROKE||a.strokeText(e,t,r)),d&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:a.mozCurrentTransform,x:t,y:r,fontSize:c,addToPath:p})},get isFontSubpixelAAEnabled(){const{context:e}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);e.scale(1.5,1),e.fillText("I",0,10);for(var t=e.getImageData(0,0,10,10).data,r=!1,s=3;s0&&t[s]<255){r=!0;break}return(0,n.shadow)(this,"isFontSubpixelAAEnabled",r)},showText:function(e){var t=this.current,r=t.font;if(r.isType3Font)return this.showType3Text(e);var s=t.fontSize;if(0===s)return;var a=this.ctx,o=t.fontSizeScale,l=t.charSpacing,c=t.wordSpacing,u=t.fontDirection,d=t.textHScale*u,h=e.length,p=r.vertical,f=p?1:-1,g=r.defaultVMetrics,m=s*t.fontMatrix[0],v=t.textRenderingMode===n.TextRenderingMode.FILL&&!r.disableFontFace&&!t.patternFill;let b;if(a.save(),t.patternFill){a.save();const e=t.fillColor.getPattern(a,this);b=a.mozCurrentTransform,a.restore(),a.fillStyle=e}a.transform.apply(a,t.textMatrix),a.translate(t.x,t.y+t.textRise),u>0?a.scale(d,-1):a.scale(d,1);var y=t.lineWidth,A=t.textMatrixScale;if(0===A||0===y){var _=t.textRenderingMode&n.TextRenderingMode.FILL_STROKE_MASK;_!==n.TextRenderingMode.STROKE&&_!==n.TextRenderingMode.FILL_STROKE||(this._cachedGetSinglePixelWidth=null,y=this.getSinglePixelWidth()*i)}else y/=A;1!==o&&(a.scale(o,o),y/=o),a.lineWidth=y;var x,S=0;for(x=0;x0){var N=1e3*a.measureText(D).width/s*o;if(Mnew e(t,this.commonObjs,this.objs,this.canvasFactory,this.webGLContext)};r=new s.TilingPattern(t,n,this.ctx,i,a)}else r=(0,s.getShadingPatternFromIR)(t);return r},setStrokeColorN:function(){this.current.strokeColor=this.getColorN_Pattern(arguments)},setFillColorN:function(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0},setStrokeRGBColor:function(e,t,r){var s=n.Util.makeCssRgb(e,t,r);this.ctx.strokeStyle=s,this.current.strokeColor=s},setFillRGBColor:function(e,t,r){var s=n.Util.makeCssRgb(e,t,r);this.ctx.fillStyle=s,this.current.fillColor=s,this.current.patternFill=!1},shadingFill:function(e){var t=this.ctx;this.save();var r=(0,s.getShadingPatternFromIR)(e);t.fillStyle=r.getPattern(t,this,!0);var a=t.mozCurrentTransformInverse;if(a){var i=t.canvas,o=i.width,l=i.height,c=n.Util.applyTransform([0,0],a),u=n.Util.applyTransform([0,l],a),d=n.Util.applyTransform([o,0],a),h=n.Util.applyTransform([o,l],a),p=Math.min(c[0],u[0],d[0],h[0]),f=Math.min(c[1],u[1],d[1],h[1]),g=Math.max(c[0],u[0],d[0],h[0]),m=Math.max(c[1],u[1],d[1],h[1]);this.ctx.fillRect(p,f,g-p,m-f)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.restore()},beginInlineImage:function(){(0,n.unreachable)("Should not call beginInlineImage")},beginImageData:function(){(0,n.unreachable)("Should not call beginImageData")},paintFormXObjectBegin:function(e,t){if(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(e)&&6===e.length&&this.transform.apply(this,e),this.baseTransform=this.ctx.mozCurrentTransform,t){var r=t[2]-t[0],n=t[3]-t[1];this.ctx.rect(t[0],t[1],r,n),this.clip(),this.endPath()}},paintFormXObjectEnd:function(){this.restore(),this.baseTransform=this.baseTransformStack.pop()},beginGroup:function(e){this.save();var t=this.ctx;e.isolated||(0,n.info)("TODO: Support non-isolated groups."),e.knockout&&(0,n.warn)("Knockout groups not supported.");var r=t.mozCurrentTransform;if(e.matrix&&t.transform.apply(t,e.matrix),!e.bbox)throw new Error("Bounding box is required.");var s=n.Util.getAxialAlignedBoundingBox(e.bbox,t.mozCurrentTransform),i=[0,0,t.canvas.width,t.canvas.height];s=n.Util.intersect(s,i)||[0,0,0,0];var o=Math.floor(s[0]),l=Math.floor(s[1]),c=Math.max(Math.ceil(s[2])-o,1),u=Math.max(Math.ceil(s[3])-l,1),h=1,p=1;c>a&&(h=c/a,c=a),u>a&&(p=u/a,u=a);var f="groupAt"+this.groupLevel;e.smask&&(f+="_smask_"+this.smaskCounter++%2);var g=this.cachedCanvases.getCanvas(f,c,u,!0),m=g.context;m.scale(1/h,1/p),m.translate(-o,-l),m.transform.apply(m,r),e.smask?this.smaskStack.push({canvas:g.canvas,context:m,offsetX:o,offsetY:l,scaleX:h,scaleY:p,subtype:e.smask.subtype,backdrop:e.smask.backdrop,transferMap:e.smask.transferMap||null,startTransformInverse:null}):(t.setTransform(1,0,0,1,0,0),t.translate(o,l),t.scale(h,p)),d(t,m),this.ctx=m,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(t),this.groupLevel++,this.current.activeSMask=null},endGroup:function(e){this.groupLevel--;var t=this.ctx;this.ctx=this.groupStack.pop(),void 0!==this.ctx.imageSmoothingEnabled?this.ctx.imageSmoothingEnabled=!1:this.ctx.mozImageSmoothingEnabled=!1,e.smask?this.tempSMask=this.smaskStack.pop():this.ctx.drawImage(t.canvas,0,0),this.restore()},beginAnnotations:function(){this.save(),this.baseTransform&&this.ctx.setTransform.apply(this.ctx,this.baseTransform)},endAnnotations:function(){this.restore()},beginAnnotation:function(e,t,r){if(this.save(),h(this.ctx),this.current=new u,Array.isArray(e)&&4===e.length){var n=e[2]-e[0],s=e[3]-e[1];this.ctx.rect(e[0],e[1],n,s),this.clip(),this.endPath()}this.transform.apply(this,t),this.transform.apply(this,r)},endAnnotation:function(){this.restore()},paintImageMaskXObject:function(e){var t=this.ctx,n=e.width,s=e.height,a=this.current.fillColor,i=this.current.patternFill,o=this.processingType3;if(o&&void 0===o.compiled&&(o.compiled=n<=1e3&&s<=1e3?function(e){var t,r,n,s,a=e.width,i=e.height,o=a+1,l=new Uint8Array(o*(i+1)),c=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),u=a+7&-8,d=e.data,h=new Uint8Array(u*i),p=0;for(t=0,s=d.length;t0;)h[p++]=g&f?0:255,f>>=1;var m=0;for(0!==h[p=0]&&(l[0]=1,++m),r=1;r>2)+(h[p+1]?4:0)+(h[p-u+1]?8:0)]&&(l[n+r]=c[v],++m),p++;if(h[p-u]!==h[p]&&(l[n+r]=h[p]?2:4,++m),m>1e3)return null}for(n=t*o,0!==h[p=u*(i-1)]&&(l[n]=8,++m),r=1;r1e3)return null;var b=new Int32Array([0,o,-1,0,-o,0,0,0,1]),y=[];for(t=0;m&&t<=i;t++){for(var A=t*o,_=A+a;A<_&&!l[A];)A++;if(A!==_){var x,S=[A%o,t],w=l[A],P=A;do{var C=b[w];do{A+=C}while(!l[A]);5!==(x=l[A])&&10!==x?(w=x,l[A]=0):(w=x&51*w>>4,l[A]&=w>>2|w<<2),S.push(A%o),S.push(A/o|0),l[A]||--m}while(P!==A);y.push(S),--t}}return function(e){e.save(),e.scale(1/a,-1/i),e.translate(0,-i),e.beginPath();for(let r=0,n=y.length;r2&&g>1||p>2&&m>1;){var b=g,y=m;u>2&&g>1&&(u/=g/(b=Math.ceil(g/2))),p>2&&m>1&&(p/=m/(y=Math.ceil(m/2))),(f=(i=this.cachedCanvases.getCanvas(v,b,y)).context).clearRect(0,0,b,y),f.drawImage(a,0,0,g,m,0,0,b,y),a=i.canvas,g=b,m=y,v="prescale1"===v?"prescale2":"prescale1"}if(s.drawImage(a,0,0,g,m,0,-n,r,n),this.imageLayer){var A=this.getCanvasPosition(0,-n);this.imageLayer.appendImage({imgData:e,left:A[0],top:A[1],width:r/o[0],height:n/o[3]})}this.restore()},paintInlineImageXObjectGroup:function(e,r){var n=this.ctx,s=e.width,a=e.height,i=this.cachedCanvases.getCanvas("inlineImage",s,a);t(i.context,e);for(var o=0,l=r.length;oc[n+1]&&(l=r,r=n,n=l,l=a,a=i,i=l),c[n+1]>c[s+1]&&(l=n,n=s,s=l,l=i,i=o,o=l),c[r+1]>c[n+1]&&(l=r,r=n,n=l,l=a,a=i,i=l);var p=(c[r]+t.offsetX)*t.scaleX,f=(c[r+1]+t.offsetY)*t.scaleY,g=(c[n]+t.offsetX)*t.scaleX,m=(c[n+1]+t.offsetY)*t.scaleY,v=(c[s]+t.offsetX)*t.scaleX,b=(c[s+1]+t.offsetY)*t.scaleY;if(!(f>=b))for(var y,A,_,x,S,w,P,C,k=u[a],R=u[a+1],E=u[a+2],T=u[i],L=u[i+1],O=u[i+2],F=u[o],D=u[o+1],I=u[o+2],M=Math.round(f),N=Math.round(b),j=M;j<=N;j++){if(jb?1:m===b?0:(m-j)/(m-b),y=g-(g-v)*e,A=T-(T-F)*e,_=L-(L-D)*e,x=O-(O-I)*e}let e;e=jb?1:(f-j)/(f-b),S=p-(p-v)*e,w=k-(k-F)*e,P=R-(R-D)*e,C=E-(E-I)*e;for(var U=Math.round(Math.min(y,S)),W=Math.round(Math.max(y,S)),q=h*j+4*U,G=U;G<=W;G++)e=(y-G)/(y-S),e<0?e=0:e>1&&(e=1),d[q++]=A-(A-w)*e|0,d[q++]=_-(_-P)*e|0,d[q++]=x-(x-C)*e|0,d[q++]=255}}function t(t,r,n){var s,a,i=r.coords,o=r.colors;switch(r.type){case"lattice":var l=r.verticesPerRow,c=Math.floor(i.length/l)-1,u=l-1;for(s=0;s=n?s=n:r=s/e,{scale:r,size:s}},clipBbox:function(e,t,r,n,s,a){if(Array.isArray(t)&&4===t.length){var i=s-r,o=a-n;e.ctx.rect(r,n,i,o),e.clip(),e.endPath()}},setFillAndStrokeStyleToContext:function(e,t,r){const s=e.ctx,a=e.current;switch(t){case 1:var i=this.ctx;s.fillStyle=i.fillStyle,s.strokeStyle=i.strokeStyle,a.fillColor=i.fillStyle,a.strokeColor=i.strokeStyle;break;case 2:var o=n.Util.makeCssRgb(r[0],r[1],r[2]);s.fillStyle=o,s.strokeStyle=o,a.fillColor=o,a.strokeColor=o;break;default:throw new n.FormatError(`Unsupported paint type: ${t}`)}},getPattern:function(e,t){(e=this.ctx).setTransform.apply(e,this.baseTransform),e.transform.apply(e,this.matrix);var r=this.createPatternCanvas(t);return e.createPattern(r,"repeat")}},e}();t.TilingPattern=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalWorkerOptions=void 0;const n=Object.create(null);t.GlobalWorkerOptions=n,n.workerPort=void 0===n.workerPort?null:n.workerPort,n.workerSrc=void 0===n.workerSrc?"":n.workerSrc},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var n=r(2);function s(e){if("object"!=typeof e||null===e)return e;switch(e.name){case"AbortException":return new n.AbortException(e.message);case"MissingPDFException":return new n.MissingPDFException(e.message);case"UnexpectedResponseException":return new n.UnexpectedResponseException(e.message,e.status);case"UnknownErrorException":return new n.UnknownErrorException(e.message,e.details);default:return new n.UnknownErrorException(e.message,e.toString())}}t.MessageHandler=class{constructor(e,t,r){this.sourceName=e,this.targetName=t,this.comObj=r,this.callbackId=1,this.streamId=1,this.postMessageTransfers=!0,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=e=>{const t=e.data;if(t.targetName!==this.sourceName)return;if(t.stream)return void this._processStreamMessage(t);if(t.callback){const e=t.callbackId,r=this.callbackCapabilities[e];if(!r)throw new Error(`Cannot resolve callback ${e}`);if(delete this.callbackCapabilities[e],1===t.callback)r.resolve(t.data);else{if(2!==t.callback)throw new Error("Unexpected callback case");r.reject(s(t.reason))}return}const n=this.actionHandler[t.action];if(!n)throw new Error(`Unknown action from worker: ${t.action}`);if(t.callbackId){const e=this.sourceName,a=t.sourceName;new Promise((function(e){e(n(t.data))})).then((function(n){r.postMessage({sourceName:e,targetName:a,callback:1,callbackId:t.callbackId,data:n})}),(function(n){r.postMessage({sourceName:e,targetName:a,callback:2,callbackId:t.callbackId,reason:s(n)})}))}else t.streamId?this._createStreamSink(t):n(t.data)},r.addEventListener("message",this._onComObjOnMessage)}on(e,t){const r=this.actionHandler;if(r[e])throw new Error(`There is already an actionName called "${e}"`);r[e]=t}send(e,t,r){this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},r)}sendWithPromise(e,t,r){const s=this.callbackId++,a=(0,n.createPromiseCapability)();this.callbackCapabilities[s]=a;try{this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:s,data:t},r)}catch(e){a.reject(e)}return a.promise}sendWithStream(e,t,r,a){const i=this.streamId++,o=this.sourceName,l=this.targetName,c=this.comObj;return new ReadableStream({start:r=>{const s=(0,n.createPromiseCapability)();return this.streamControllers[i]={controller:r,startCall:s,pullCall:null,cancelCall:null,isClosed:!1},this._postMessage({sourceName:o,targetName:l,action:e,streamId:i,data:t,desiredSize:r.desiredSize},a),s.promise},pull:e=>{const t=(0,n.createPromiseCapability)();return this.streamControllers[i].pullCall=t,c.postMessage({sourceName:o,targetName:l,stream:6,streamId:i,desiredSize:e.desiredSize}),t.promise},cancel:e=>{(0,n.assert)(e instanceof Error,"cancel must have a valid reason");const t=(0,n.createPromiseCapability)();return this.streamControllers[i].cancelCall=t,this.streamControllers[i].isClosed=!0,c.postMessage({sourceName:o,targetName:l,stream:1,streamId:i,reason:s(e)}),t.promise}},r)}_createStreamSink(e){const t=this,r=this.actionHandler[e.action],a=e.streamId,i=this.sourceName,o=e.sourceName,l=this.comObj,c={enqueue(e,r=1,s){if(this.isCancelled)return;const l=this.desiredSize;this.desiredSize-=r,l>0&&this.desiredSize<=0&&(this.sinkCapability=(0,n.createPromiseCapability)(),this.ready=this.sinkCapability.promise),t._postMessage({sourceName:i,targetName:o,stream:4,streamId:a,chunk:e},s)},close(){this.isCancelled||(this.isCancelled=!0,l.postMessage({sourceName:i,targetName:o,stream:3,streamId:a}),delete t.streamSinks[a])},error(e){(0,n.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,l.postMessage({sourceName:i,targetName:o,stream:5,streamId:a,reason:s(e)}))},sinkCapability:(0,n.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};c.sinkCapability.resolve(),c.ready=c.sinkCapability.promise,this.streamSinks[a]=c,new Promise((function(t){t(r(e.data,c))})).then((function(){l.postMessage({sourceName:i,targetName:o,stream:8,streamId:a,success:!0})}),(function(e){l.postMessage({sourceName:i,targetName:o,stream:8,streamId:a,reason:s(e)})}))}_processStreamMessage(e){const t=e.streamId,r=this.sourceName,a=e.sourceName,i=this.comObj;switch(e.stream){case 8:e.success?this.streamControllers[t].startCall.resolve():this.streamControllers[t].startCall.reject(s(e.reason));break;case 7:e.success?this.streamControllers[t].pullCall.resolve():this.streamControllers[t].pullCall.reject(s(e.reason));break;case 6:if(!this.streamSinks[t]){i.postMessage({sourceName:r,targetName:a,stream:7,streamId:t,success:!0});break}this.streamSinks[t].desiredSize<=0&&e.desiredSize>0&&this.streamSinks[t].sinkCapability.resolve(),this.streamSinks[t].desiredSize=e.desiredSize;const{onPull:o}=this.streamSinks[e.streamId];new Promise((function(e){e(o&&o())})).then((function(){i.postMessage({sourceName:r,targetName:a,stream:7,streamId:t,success:!0})}),(function(e){i.postMessage({sourceName:r,targetName:a,stream:7,streamId:t,reason:s(e)})}));break;case 4:if((0,n.assert)(this.streamControllers[t],"enqueue should have stream controller"),this.streamControllers[t].isClosed)break;this.streamControllers[t].controller.enqueue(e.chunk);break;case 3:if((0,n.assert)(this.streamControllers[t],"close should have stream controller"),this.streamControllers[t].isClosed)break;this.streamControllers[t].isClosed=!0,this.streamControllers[t].controller.close(),this._deleteStreamController(t);break;case 5:(0,n.assert)(this.streamControllers[t],"error should have stream controller"),this.streamControllers[t].controller.error(s(e.reason)),this._deleteStreamController(t);break;case 2:e.success?this.streamControllers[t].cancelCall.resolve():this.streamControllers[t].cancelCall.reject(s(e.reason)),this._deleteStreamController(t);break;case 1:if(!this.streamSinks[t])break;const{onCancel:l}=this.streamSinks[e.streamId];new Promise((function(t){t(l&&l(s(e.reason)))})).then((function(){i.postMessage({sourceName:r,targetName:a,stream:2,streamId:t,success:!0})}),(function(e){i.postMessage({sourceName:r,targetName:a,stream:2,streamId:t,reason:s(e)})})),this.streamSinks[t].sinkCapability.reject(s(e.reason)),this.streamSinks[t].isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}async _deleteStreamController(e){await Promise.allSettled([this.streamControllers[e].startCall,this.streamControllers[e].pullCall,this.streamControllers[e].cancelCall].map((function(e){return e&&e.promise}))),delete this.streamControllers[e]}_postMessage(e,t){t&&this.postMessageTransfers?this.comObj.postMessage(e,t):this.comObj.postMessage(e)}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;var n=r(2),s=r(13);t.Metadata=class{constructor(e){(0,n.assert)("string"==typeof e,"Metadata: input is not a string"),e=this._repair(e);const t=(new s.SimpleXMLParser).parseFromString(e);this._metadataMap=new Map,t&&this._parse(t)}_repair(e){return e.replace(/^[^<]+/,"").replace(/>\\376\\377([^<]+)/g,(function(e,t){const r=t.replace(/\\([0-3])([0-7])([0-7])/g,(function(e,t,r,n){return String.fromCharCode(64*t+8*r+1*n)})).replace(/&(amp|apos|gt|lt|quot);/g,(function(e,t){switch(t){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw new Error(`_repair: ${t} isn't defined.`)}));let n="";for(let e=0,t=r.length;e=32&&t<127&&60!==t&&62!==t&&38!==t?String.fromCharCode(t):"&#x"+(65536+t).toString(16).substring(1)+";"}return">"+n}))}_parse(e){let t=e.documentElement;if("rdf:rdf"!==t.nodeName.toLowerCase())for(t=t.firstChild;t&&"rdf:rdf"!==t.nodeName.toLowerCase();)t=t.nextSibling;const r=t?t.nodeName.toLowerCase():null;if(!t||"rdf:rdf"!==r||!t.hasChildNodes())return;const n=t.childNodes;for(let e=0,t=n.length;e{if("#x"===t.substring(0,2))return String.fromCharCode(parseInt(t.substring(2),16));if("#"===t.substring(0,1))return String.fromCharCode(parseInt(t.substring(1),10));switch(t){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"'}return this.onResolveEntity(t)}))}_parseContent(e,t){const r=[];let s=t;function a(){for(;s"!==e[s]&&"/"!==e[s];)++s;const i=e.substring(t,s);for(a();s"!==e[s]&&"/"!==e[s]&&"?"!==e[s];){a();let t="",i="";for(;s"!==e[r]&&"/"!==e[r];)++r;const s=e.substring(t,r);!function(){for(;r"!==e[r+1]);)++r;return{name:s,value:e.substring(a,r),parsed:r-t}}parseXml(e){let t=0;for(;t",r),t<0)return void this.onError(-9);this.onEndElement(e.substring(r,t)),r=t+1;break;case"?":++r;const n=this._parseProcessingInstruction(e,r);if("?>"!==e.substring(r+n.parsed,r+n.parsed+2))return void this.onError(-3);this.onPi(n.name,n.value),r+=n.parsed+2;break;case"!":if("--"===e.substring(r+1,r+3)){if(t=e.indexOf("--\x3e",r+3),t<0)return void this.onError(-5);this.onComment(e.substring(r+3,t)),r=t+3}else if("[CDATA["===e.substring(r+1,r+8)){if(t=e.indexOf("]]>",r+8),t<0)return void this.onError(-2);this.onCdata(e.substring(r+8,t)),r=t+3}else{if("DOCTYPE"!==e.substring(r+1,r+8))return void this.onError(-6);{const n=e.indexOf("[",r+8);let s=!1;if(t=e.indexOf(">",r+8),t<0)return void this.onError(-4);if(n>0&&t>n){if(t=e.indexOf("]>",r+8),t<0)return void this.onError(-4);s=!0}const a=e.substring(r+8,t+(s?1:0));this.onDoctype(a),r=t+(s?2:1)}}break;default:const s=this._parseContent(e,r);if(null===s)return void this.onError(-6);let a=!1;if("/>"===e.substring(r+s.parsed,r+s.parsed+2))a=!0;else if(">"!==e.substring(r+s.parsed,r+s.parsed+1))return void this.onError(-9);this.onBeginElement(s.name,s.attributes,a),r+=s.parsed+(a?2:1)}}else{for(;r0}}t.SimpleXMLParser=class extends s{constructor(){super(),this._currentFragment=null,this._stack=null,this._errorCode=0}parseFromString(e){if(this._currentFragment=[],this._stack=[],this._errorCode=0,this.parseXml(e),0!==this._errorCode)return;const[t]=this._currentFragment;return t?{documentElement:t}:void 0}onResolveEntity(e){return"apos"===e?"'":super.onResolveEntity(e)}onText(e){if(function(e){for(let t=0,r=e.length;t0){const e=new Uint8Array(r).buffer;this._queuedChunks.push(e)}this._pdfDataRangeTransport=t,this._isStreamingSupported=!e.disableStream,this._isRangeSupported=!e.disableRange,this._contentLength=e.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener(((e,t)=>{this._onReceiveData({begin:e,chunk:t})})),this._pdfDataRangeTransport.addProgressListener(((e,t)=>{this._onProgress({loaded:e,total:t})})),this._pdfDataRangeTransport.addProgressiveReadListener((e=>{this._onReceiveData({chunk:e})})),this._pdfDataRangeTransport.addProgressiveDoneListener((()=>{this._onProgressiveDone()})),this._pdfDataRangeTransport.transportReady()}_onReceiveData(e){const t=new Uint8Array(e.chunk).buffer;if(void 0===e.begin)this._fullRequestReader?this._fullRequestReader._enqueue(t):this._queuedChunks.push(t);else{const r=this._rangeReaders.some((function(r){return r._begin===e.begin&&(r._enqueue(t),!0)}));(0,n.assert)(r,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){return this._fullRequestReader?this._fullRequestReader._loaded:0}_onProgress(e){if(void 0===e.total){const t=this._rangeReaders[0];t&&t.onProgress&&t.onProgress({loaded:e.loaded})}else{const t=this._fullRequestReader;t&&t.onProgress&&t.onProgress({loaded:e.loaded,total:e.total})}}_onProgressiveDone(){this._fullRequestReader&&this._fullRequestReader.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(e){const t=this._rangeReaders.indexOf(e);t>=0&&this._rangeReaders.splice(t,1)}getFullReader(){(0,n.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const e=this._queuedChunks;return this._queuedChunks=null,new s(this,e,this._progressiveDone)}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const r=new a(this,e,t);return this._pdfDataRangeTransport.requestDataRange(e,t),this._rangeReaders.push(r),r}cancelAllRequests(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeReaders.slice(0).forEach((function(t){t.cancel(e)})),this._pdfDataRangeTransport.abort()}};class s{constructor(e,t,r=!1){this._stream=e,this._done=r||!1,this._filename=null,this._queuedChunks=t||[],this._loaded=0;for(const e of this._queuedChunks)this._loaded+=e.byteLength;this._requests=[],this._headersReady=Promise.resolve(),e._fullRequestReader=this,this.onProgress=null}_enqueue(e){this._done||(this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._queuedChunks.push(e),this._loaded+=e.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0)return{value:this._queuedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const e=(0,n.createPromiseCapability)();return this._requests.push(e),e.promise}cancel(e){this._done=!0,this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[]}progressiveDone(){this._done||(this._done=!0)}}class a{constructor(e,t,r){this._stream=e,this._begin=t,this._end=r,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(e){this._done||(0===this._requests.length?this._queuedChunk=e:(this._requests.shift().resolve({value:e,done:!1}),this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[]),this._done=!0,this._stream._removeRangeReader(this))}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){const e=this._queuedChunk;return this._queuedChunk=null,{value:e,done:!1}}if(this._done)return{value:void 0,done:!0};const e=(0,n.createPromiseCapability)();return this._requests.push(e),e.promise}cancel(e){this._done=!0,this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[],this._stream._removeRangeReader(this)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebGLContext=void 0;var n=r(2);t.WebGLContext=class{constructor({enable:e=!1}){this._enabled=!0===e}get isEnabled(){let e=this._enabled;return e&&(e=s.tryInitGL()),(0,n.shadow)(this,"isEnabled",e)}composeSMask({layer:e,mask:t,properties:r}){return s.composeSMask(e,t,r)}drawFigures({width:e,height:t,backgroundColor:r,figures:n,context:a}){return s.drawFigures(e,t,r,n,a)}clear(){s.cleanup()}};var s=function(){function e(e,t,r){var n=e.createShader(r);if(e.shaderSource(n,t),e.compileShader(n),!e.getShaderParameter(n,e.COMPILE_STATUS)){var s=e.getShaderInfoLog(n);throw new Error("Error during shader compilation: "+s)}return n}function t(t,r){return e(t,r,t.VERTEX_SHADER)}function r(t,r){return e(t,r,t.FRAGMENT_SHADER)}function n(e,t){for(var r=e.createProgram(),n=0,s=t.length;n 0.0) { maskColor.rgb = maskColor.rgb * maskColor.a + u_backdrop.rgb * (1.0 - maskColor.a); } float lum; if (u_subtype == 0) { lum = maskColor.a; } else { lum = maskColor.r * 0.3 + maskColor.g * 0.59 + maskColor.b * 0.11; } imageColor.a *= lum; imageColor.rgb *= imageColor.a; gl_FragColor = imageColor; } ")]);s.useProgram(c);var u={};u.gl=s,u.canvas=e,u.resolutionLocation=s.getUniformLocation(c,"u_resolution"),u.positionLocation=s.getAttribLocation(c,"a_position"),u.backdropLocation=s.getUniformLocation(c,"u_backdrop"),u.subtypeLocation=s.getUniformLocation(c,"u_subtype");var d=s.getAttribLocation(c,"a_texCoord"),h=s.getUniformLocation(c,"u_image"),p=s.getUniformLocation(c,"u_mask"),f=s.createBuffer();s.bindBuffer(s.ARRAY_BUFFER,f),s.bufferData(s.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]),s.STATIC_DRAW),s.enableVertexAttribArray(d),s.vertexAttribPointer(d,2,s.FLOAT,!1,0,0),s.uniform1i(h,0),s.uniform1i(p,1),l=u}();var p=l,f=p.canvas,g=p.gl;f.width=d,f.height=h,g.viewport(0,0,g.drawingBufferWidth,g.drawingBufferHeight),g.uniform2f(p.resolutionLocation,d,h),u.backdrop?g.uniform4f(p.resolutionLocation,u.backdrop[0],u.backdrop[1],u.backdrop[2],1):g.uniform4f(p.resolutionLocation,0,0,0,0),g.uniform1i(p.subtypeLocation,"Luminosity"===u.subtype?1:0);var m=s(g,e,g.TEXTURE0),v=s(g,c,g.TEXTURE1),b=g.createBuffer();return g.bindBuffer(g.ARRAY_BUFFER,b),g.bufferData(g.ARRAY_BUFFER,new Float32Array([0,0,d,0,0,h,0,h,d,0,d,h]),g.STATIC_DRAW),g.enableVertexAttribArray(p.positionLocation),g.vertexAttribPointer(p.positionLocation,2,g.FLOAT,!1,0,0),g.clearColor(0,0,0,0),g.enable(g.BLEND),g.blendFunc(g.ONE,g.ONE_MINUS_SRC_ALPHA),g.clear(g.COLOR_BUFFER_BIT),g.drawArrays(g.TRIANGLES,0,6),g.flush(),g.deleteTexture(m),g.deleteTexture(v),g.deleteBuffer(b),f},drawFigures:function(e,s,l,u,d){c||function(){var e,s;o(),e=i,i=null,s=a,a=null;var l=n(s,[t(s," attribute vec2 a_position; attribute vec3 a_color; uniform vec2 u_resolution; uniform vec2 u_scale; uniform vec2 u_offset; varying vec4 v_color; void main() { vec2 position = (a_position + u_offset) * u_scale; vec2 clipSpace = (position / u_resolution) * 2.0 - 1.0; gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1); v_color = vec4(a_color / 255.0, 1.0); } "),r(s," precision mediump float; varying vec4 v_color; void main() { gl_FragColor = v_color; } ")]);s.useProgram(l);var u={};u.gl=s,u.canvas=e,u.resolutionLocation=s.getUniformLocation(l,"u_resolution"),u.scaleLocation=s.getUniformLocation(l,"u_scale"),u.offsetLocation=s.getUniformLocation(l,"u_offset"),u.positionLocation=s.getAttribLocation(l,"a_position"),u.colorLocation=s.getAttribLocation(l,"a_color"),c=u}();var h=c,p=h.canvas,f=h.gl;p.width=e,p.height=s,f.viewport(0,0,f.drawingBufferWidth,f.drawingBufferHeight),f.uniform2f(h.resolutionLocation,e,s);var g,m,v,b=0;for(g=0,m=u.length;g0){a.style.borderWidth=`${t.borderStyle.width}px`,t.borderStyle.style!==s.AnnotationBorderStyleType.UNDERLINE&&(i-=2*t.borderStyle.width,o-=2*t.borderStyle.width);const e=t.borderStyle.horizontalCornerRadius,r=t.borderStyle.verticalCornerRadius;if(e>0||r>0){const t=`${e}px / ${r}px`;a.style.borderRadius=t}switch(t.borderStyle.style){case s.AnnotationBorderStyleType.SOLID:a.style.borderStyle="solid";break;case s.AnnotationBorderStyleType.DASHED:a.style.borderStyle="dashed";break;case s.AnnotationBorderStyleType.BEVELED:(0,s.warn)("Unimplemented border style: beveled");break;case s.AnnotationBorderStyleType.INSET:(0,s.warn)("Unimplemented border style: inset");break;case s.AnnotationBorderStyleType.UNDERLINE:a.style.borderBottomStyle="solid"}t.color?a.style.borderColor=s.Util.makeCssRgb(0|t.color[0],0|t.color[1],0|t.color[2]):a.style.borderWidth=0}return a.style.left=`${l[0]}px`,a.style.top=`${l[1]}px`,a.style.width=`${i}px`,a.style.height=`${o}px`,a}_createPopup(e,t,r){t||((t=document.createElement("div")).style.height=e.style.height,t.style.width=e.style.width,e.appendChild(t));const n=new m({container:e,trigger:t,color:r.color,title:r.title,modificationDate:r.modificationDate,contents:r.contents,hideWrapper:!0}).render();n.style.left=e.style.width,e.appendChild(n)}render(){(0,s.unreachable)("Abstract method `AnnotationElement.render` called")}}class o extends i{constructor(e){super(e,!!(e.data.url||e.data.dest||e.data.action))}render(){this.container.className="linkAnnotation";const{data:e,linkService:t}=this,r=document.createElement("a");return e.url?(0,n.addLinkAttributes)(r,{url:e.url,target:e.newWindow?n.LinkTarget.BLANK:t.externalLinkTarget,rel:t.externalLinkRel,enabled:t.externalLinkEnabled}):e.action?this._bindNamedAction(r,e.action):this._bindLink(r,e.dest),this.container.appendChild(r),this.container}_bindLink(e,t){e.href=this.linkService.getDestinationHash(t),e.onclick=()=>(t&&this.linkService.navigateTo(t),!1),t&&(e.className="internalLink")}_bindNamedAction(e,t){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeNamedAction(t),!1),e.className="internalLink"}}class l extends i{constructor(e){super(e,!!(e.data.hasPopup||e.data.title||e.data.contents))}render(){this.container.className="textAnnotation";const e=document.createElement("img");return e.style.height=this.container.style.height,e.style.width=this.container.style.width,e.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",e.alt="[{{type}} Annotation]",e.dataset.l10nId="text_annotation_type",e.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(this.container,e,this.data),this.container.appendChild(e),this.container}}class c extends i{render(){return this.container}}class u extends c{constructor(e){super(e,e.renderInteractiveForms||!e.data.hasAppearance&&!!e.data.fieldValue)}render(){this.container.className="textWidgetAnnotation";let e=null;if(this.renderInteractiveForms){if(this.data.multiLine?(e=document.createElement("textarea"),e.textContent=this.data.fieldValue):(e=document.createElement("input"),e.type="text",e.setAttribute("value",this.data.fieldValue)),e.disabled=this.data.readOnly,e.name=this.data.fieldName,null!==this.data.maxLen&&(e.maxLength=this.data.maxLen),this.data.comb){const t=(this.data.rect[2]-this.data.rect[0])/this.data.maxLen;e.classList.add("comb"),e.style.letterSpacing=`calc(${t}px - 1ch)`}}else{e=document.createElement("div"),e.textContent=this.data.fieldValue,e.style.verticalAlign="middle",e.style.display="table-cell";let t=null;this.data.fontRefName&&this.page.commonObjs.has(this.data.fontRefName)&&(t=this.page.commonObjs.get(this.data.fontRefName)),this._setTextStyle(e,t)}return null!==this.data.textAlignment&&(e.style.textAlign=["left","center","right"][this.data.textAlignment]),this.container.appendChild(e),this.container}_setTextStyle(e,t){const r=e.style;if(r.fontSize=`${this.data.fontSize}px`,r.direction=this.data.fontDirection<0?"rtl":"ltr",!t)return;let n="normal";t.black?n="900":t.bold&&(n="bold"),r.fontWeight=n,r.fontStyle=t.italic?"italic":"normal";const s=t.loadedName?`"${t.loadedName}", `:"",a=t.fallbackName||"Helvetica, sans-serif";r.fontFamily=s+a}}class d extends c{constructor(e){super(e,e.renderInteractiveForms)}render(){this.container.className="buttonWidgetAnnotation checkBox";const e=document.createElement("input");return e.disabled=this.data.readOnly,e.type="checkbox",e.name=this.data.fieldName,this.data.fieldValue&&"Off"!==this.data.fieldValue&&e.setAttribute("checked",!0),this.container.appendChild(e),this.container}}class h extends c{constructor(e){super(e,e.renderInteractiveForms)}render(){this.container.className="buttonWidgetAnnotation radioButton";const e=document.createElement("input");return e.disabled=this.data.readOnly,e.type="radio",e.name=this.data.fieldName,this.data.fieldValue===this.data.buttonValue&&e.setAttribute("checked",!0),this.container.appendChild(e),this.container}}class p extends o{render(){const e=super.render();return e.className="buttonWidgetAnnotation pushButton",e}}class f extends c{constructor(e){super(e,e.renderInteractiveForms)}render(){this.container.className="choiceWidgetAnnotation";const e=document.createElement("select");e.disabled=this.data.readOnly,e.name=this.data.fieldName,this.data.combo||(e.size=this.data.options.length,this.data.multiSelect&&(e.multiple=!0));for(const t of this.data.options){const r=document.createElement("option");r.textContent=t.displayValue,r.value=t.exportValue,this.data.fieldValue.includes(t.displayValue)&&r.setAttribute("selected",!0),e.appendChild(r)}return this.container.appendChild(e),this.container}}class g extends i{constructor(e){super(e,!(!e.data.title&&!e.data.contents))}render(){if(this.container.className="popupAnnotation",["Line","Square","Circle","PolyLine","Polygon","Ink"].includes(this.data.parentType))return this.container;const e=`[data-annotation-id="${this.data.parentId}"]`,t=this.layer.querySelector(e);if(!t)return this.container;const r=new m({container:this.container,trigger:t,color:this.data.color,title:this.data.title,modificationDate:this.data.modificationDate,contents:this.data.contents}),n=parseFloat(t.style.left),s=parseFloat(t.style.width);return this.container.style.transformOrigin=`-${n+s}px -${t.style.top}`,this.container.style.left=`${n+s}px`,this.container.appendChild(r.render()),this.container}}class m{constructor(e){this.container=e.container,this.trigger=e.trigger,this.color=e.color,this.title=e.title,this.modificationDate=e.modificationDate,this.contents=e.contents,this.hideWrapper=e.hideWrapper||!1,this.pinned=!1}render(){const e=document.createElement("div");e.className="popupWrapper",this.hideElement=this.hideWrapper?e:this.container,this.hideElement.setAttribute("hidden",!0);const t=document.createElement("div");t.className="popup";const r=this.color;if(r){const e=.7*(255-r[0])+r[0],n=.7*(255-r[1])+r[1],a=.7*(255-r[2])+r[2];t.style.backgroundColor=s.Util.makeCssRgb(0|e,0|n,0|a)}const a=document.createElement("h1");a.textContent=this.title,t.appendChild(a);const i=n.PDFDateString.toDateObject(this.modificationDate);if(i){const e=document.createElement("span");e.textContent="{{date}}, {{time}}",e.dataset.l10nId="annotation_date_string",e.dataset.l10nArgs=JSON.stringify({date:i.toLocaleDateString(),time:i.toLocaleTimeString()}),t.appendChild(e)}const o=this._formatContents(this.contents);return t.appendChild(o),this.trigger.addEventListener("click",this._toggle.bind(this)),this.trigger.addEventListener("mouseover",this._show.bind(this,!1)),this.trigger.addEventListener("mouseout",this._hide.bind(this,!1)),t.addEventListener("click",this._hide.bind(this,!0)),e.appendChild(t),e}_formatContents(e){const t=document.createElement("p"),r=e.split(/(?:\r\n?|\n)/);for(let e=0,n=r.length;e1)g=!0;else if(r.transform[0]!==r.transform[3]){const e=Math.abs(r.transform[0]),t=Math.abs(r.transform[3]);e!==t&&Math.max(e,t)/Math.min(e,t)>1.5&&(g=!0)}if(g&&(u.vertical?o.canvasWidth=r.height*t._viewport.scale:o.canvasWidth=r.width*t._viewport.scale),t._textDivProperties.set(i,o),t._textContentStream&&t._layoutText(i),t._enhanceTextSelection){var m=1,v=0;0!==c&&(m=Math.cos(c),v=Math.sin(c));var b,y,A=(u.vertical?r.height:r.width)*t._viewport.scale,_=d;0!==c?(b=[m,v,-v,m,p,f],y=n.Util.getAxialAlignedBoundingBox([0,0,A,_],b)):y=[p,f,p+A,f+_],t._bounds.push({left:y[0],top:y[1],right:y[2],bottom:y[3],div:i,size:[A,_],m:b})}}function r(e){if(!e._canceled){var t=e._textDivs,r=e._capability,n=t.length;if(n>1e5)return e._renderingDone=!0,void r.resolve();if(!e._textContentStream)for(var s=0;s0&&(n=n?Math.min(r,n):r)}return n}function a(e,t){t.sort((function(e,t){return e.x1-t.x1||e.index-t.index}));var r=[{start:-1/0,end:1/0,boundary:{x1:-1/0,y1:-1/0,x2:0,y2:1/0,index:-1,x1New:0,x2New:0}}];t.forEach((function(e){for(var t=0;t=0&&r[a].start>=e.y2;)a--;var i,o,l=-1/0;for(i=t;i<=a;i++){var c;(c=(s=(n=r[i]).boundary).x2>e.x1?s.index>e.index?s.x1New:e.x1:void 0===s.x2New?(s.x2+e.x1)/2:s.x2New)>l&&(l=c)}for(e.x1New=l,i=t;i<=a;i++)void 0===(s=(n=r[i]).boundary).x2New?s.x2>e.x1?s.index>e.index&&(s.x2New=s.x2):s.x2New=l:s.x2New>l&&(s.x2New=Math.max(l,s.x2));var u=[],d=null;for(i=t;i<=a;i++){var h=(s=(n=r[i]).boundary).x2>e.x2?s:e;d===h?u[u.length-1].end=n.end:(u.push({start:n.start,end:n.end,boundary:h}),d=h)}for(r[t].start=0&&r[o].start>=s.y1;o--)p=r[o].boundary===s;for(o=a+1;!p&&o{this._layoutTextCtx&&(this._layoutTextCtx.canvas.width=0,this._layoutTextCtx.canvas.height=0,this._layoutTextCtx=null)})).catch((()=>{}))}return i.prototype={get promise(){return this._capability.promise},cancel:function(){this._canceled=!0,this._reader&&(this._reader.cancel(new n.AbortException("TextLayer task cancelled.")),this._reader=null),null!==this._renderTimer&&(clearTimeout(this._renderTimer),this._renderTimer=null),this._capability.reject(new Error("TextLayer task cancelled."))},_processItems(e,r){for(let n=0,s=e.length;n0&&(t.scale=t.canvasWidth/a,r=`scaleX(${t.scale})`)}0!==t.angle&&(r=`rotate(${t.angle}deg) ${r}`),r.length>0&&(this._enhanceTextSelection&&(t.originalTransform=r),e.style.transform=r),this._textDivProperties.set(e,t),this._container.appendChild(e)},_render:function(e){const t=(0,n.createPromiseCapability)();let s=Object.create(null);const a=document.createElement("canvas");if(a.mozOpaque=!0,this._layoutTextCtx=a.getContext("2d",{alpha:!1}),this._textContent){const e=this._textContent.items,r=this._textContent.styles;this._processItems(e,r),t.resolve()}else{if(!this._textContentStream)throw new Error('Neither "textContent" nor "textContentStream" parameters specified.');{const e=()=>{this._reader.read().then((({value:r,done:n})=>{n?t.resolve():(Object.assign(s,r.styles),this._processItems(r.items,s),e())}),t.reject)};this._reader=this._textContentStream.getReader(),e()}}t.promise.then((()=>{s=null,e?this._renderTimer=setTimeout((()=>{r(this),this._renderTimer=null}),e):r(this)}),this._capability.reject)},expandTextDivs:function(e){if(!this._enhanceTextSelection||!this._renderingDone)return;null!==this._bounds&&(function(e){for(var t=e._bounds,r=e._viewport,i=function(e,t,r){var n=r.map((function(e,t){return{x1:e.left,y1:e.top,x2:e.right,y2:e.bottom,index:t,x1New:void 0,x2New:void 0}}));a(e,n);var s=new Array(r.length);return n.forEach((function(e){var t=e.index;s[t]={left:e.x1New,top:0,right:e.x2New,bottom:0}})),r.map((function(t,r){var a=s[r],i=n[r];i.x1=t.top,i.y1=e-a.right,i.x2=t.bottom,i.y2=e-a.left,i.index=r,i.x1New=void 0,i.x2New=void 0})),a(t,n),n.forEach((function(e){var t=e.index;s[t].top=e.x1New,s[t].bottom=e.x2New})),s}(r.width,r.height,t),o=0;o0?(r.push(`${s.paddingTop}px`),t.push(`translateY(${-s.paddingTop}px)`)):r.push(0),s.paddingRight>0?r.push(s.paddingRight/s.scale+"px"):r.push(0),s.paddingBottom>0?r.push(`${s.paddingBottom}px`):r.push(0),s.paddingLeft>0?(r.push(s.paddingLeft/s.scale+"px"),t.push(`translateX(${-s.paddingLeft/s.scale}px)`)):r.push(0),n.style.padding=r.join(" "),t.length&&(n.style.transform=t.join(" "))):(n.style.padding=null,n.style.transform=s.originalTransform))}}},function(e){var t=new i({textContent:e.textContent,textContentStream:e.textContentStream,container:e.container,viewport:e.viewport,textDivs:e.textDivs,textContentItemsStr:e.textContentItemsStr,enhanceTextSelection:e.enhanceTextSelection});return t._render(e.timeout),t}}();t.renderTextLayer=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SVGGraphics=void 0;var n=r(2),s=r(1),a=r(4);let i=function(){throw new Error("Not implemented: SVGGraphics")};t.SVGGraphics=i;{const o={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},l="http://www.w3.org/XML/1998/namespace",c="http://www.w3.org/1999/xlink",u=["butt","round","square"],d=["miter","round","bevel"],h=function(){const e=new Uint8Array([137,80,78,71,13,10,26,10]),t=new Int32Array(256);for(let e=0;e<256;e++){let r=e;for(let e=0;e<8;e++)r=1&r?3988292384^r>>1&2147483647:r>>1&2147483647;t[e]=r}function r(e,r,n,s){let a=s;const i=r.length;n[a]=i>>24&255,n[a+1]=i>>16&255,n[a+2]=i>>8&255,n[a+3]=255&i,a+=4,n[a]=255&e.charCodeAt(0),n[a+1]=255&e.charCodeAt(1),n[a+2]=255&e.charCodeAt(2),n[a+3]=255&e.charCodeAt(3),a+=4,n.set(r,a),a+=r.length;const o=function(e,r,n){let s=-1;for(let a=r;a>>8^t[r]}return-1^s}(n,s+4,a);n[a]=o>>24&255,n[a+1]=o>>16&255,n[a+2]=o>>8&255,n[a+3]=255&o}function s(e){let t=e.length;const r=65535,n=Math.ceil(t/r),s=new Uint8Array(2+t+5*n+4);let a=0;s[a++]=120,s[a++]=156;let i=0;for(;t>r;)s[a++]=0,s[a++]=255,s[a++]=255,s[a++]=0,s[a++]=0,s.set(e.subarray(i,i+r),a),a+=r,i+=r,t-=r;s[a++]=1,s[a++]=255&t,s[a++]=t>>8&255,s[a++]=255&~t,s[a++]=(65535&~t)>>8&255,s.set(e.subarray(i),a),a+=e.length-i;const o=function(e,t,r){let n=1,s=0;for(let t=0;t>24&255,s[a++]=o>>16&255,s[a++]=o>>8&255,s[a++]=255&o,s}return function(t,i,o){return function(t,i,o,l){const c=t.width,u=t.height;let d,h,p;const f=t.data;switch(i){case n.ImageKind.GRAYSCALE_1BPP:h=0,d=1,p=c+7>>3;break;case n.ImageKind.RGB_24BPP:h=2,d=8,p=3*c;break;case n.ImageKind.RGBA_32BPP:h=6,d=8,p=4*c;break;default:throw new Error("invalid format")}const g=new Uint8Array((1+p)*u);let m=0,v=0;for(let e=0;e>24&255,c>>16&255,c>>8&255,255&c,u>>24&255,u>>16&255,u>>8&255,255&u,d,h,0,0,0]),y=function(e){if(!a.isNodeJS)return s(e);try{let t;t=parseInt(process.versions.node)>=8?e:Buffer.from(e);const r=__webpack_require__(945804).deflateSync(t,{level:9});return r instanceof Uint8Array?r:new Uint8Array(r)}catch(e){(0,n.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+e)}return s(e)}(g),A=e.length+36+b.length+y.length,_=new Uint8Array(A);let x=0;return _.set(e,x),x+=e.length,r("IHDR",b,_,x),x+=12+b.length,r("IDATA",y,_,x),x+=12+y.length,r("IEND",new Uint8Array(0),_,x),(0,n.createObjectURL)(_,"image/png",o)}(t,void 0===t.kind?n.ImageKind.GRAYSCALE_1BPP:t.kind,i,o)}}();class p{constructor(){this.fontSizeScale=1,this.fontWeight=o.fontWeight,this.fontSize=0,this.textMatrix=n.IDENTITY_MATRIX,this.fontMatrix=n.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=n.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=o.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}clone(){return Object.create(this)}setCurrentPoint(e,t){this.x=e,this.y=t}}function f(e){let t=[];const r=[];for(const n of e)"save"!==n.fn?"restore"===n.fn?t=r.pop():t.push(n):(t.push({fnId:92,fn:"group",items:[]}),r.push(t),t=t[t.length-1].items);return t}function g(e){if(Number.isInteger(e))return e.toString();const t=e.toFixed(10);let r=t.length-1;if("0"!==t[r])return t;do{r--}while("0"===t[r]);return t.substring(0,"."===t[r]?r:r+1)}function m(e){if(0===e[4]&&0===e[5]){if(0===e[1]&&0===e[2])return 1===e[0]&&1===e[3]?"":`scale(${g(e[0])} ${g(e[3])})`;if(e[0]===e[3]&&e[1]===-e[2])return`rotate(${g(180*Math.acos(e[0])/Math.PI)})`}else if(1===e[0]&&0===e[1]&&0===e[2]&&1===e[3])return`translate(${g(e[4])} ${g(e[5])})`;return`matrix(${g(e[0])} ${g(e[1])} ${g(e[2])} ${g(e[3])} ${g(e[4])} ${g(e[5])})`}let v=0,b=0,y=0;t.SVGGraphics=i=class{constructor(e,t,r=!1){this.svgFactory=new s.DOMSVGFactory,this.current=new p,this.transformMatrix=n.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=e,this.objs=t,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!r,this._operatorIdMapping=[];for(const e in n.OPS)this._operatorIdMapping[n.OPS[e]]=e}save(){this.transformStack.push(this.transformMatrix);const e=this.current;this.extraStack.push(e),this.current=e.clone()}restore(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}group(e){this.save(),this.executeOpTree(e),this.restore()}loadDependencies(e){const t=e.fnArray,r=e.argsArray;for(let e=0,s=t.length;e{e.get(t,r)}));this.current.dependencies.push(r)}return Promise.all(this.current.dependencies)}transform(e,t,r,s,a,i){const o=[e,t,r,s,a,i];this.transformMatrix=n.Util.transform(this.transformMatrix,o),this.tgrp=null}getSVG(e,t){this.viewport=t;const r=this._initialize(t);return this.loadDependencies(e).then((()=>(this.transformMatrix=n.IDENTITY_MATRIX,this.executeOpTree(this.convertOpList(e)),r)))}convertOpList(e){const t=this._operatorIdMapping,r=e.argsArray,n=e.fnArray,s=[];for(let e=0,a=n.length;e0&&(this.current.lineWidth=e)}setLineCap(e){this.current.lineCap=u[e]}setLineJoin(e){this.current.lineJoin=d[e]}setMiterLimit(e){this.current.miterLimit=e}setStrokeAlpha(e){this.current.strokeAlpha=e}setStrokeRGBColor(e,t,r){this.current.strokeColor=n.Util.makeCssRgb(e,t,r)}setFillAlpha(e){this.current.fillAlpha=e}setFillRGBColor(e,t,r){this.current.fillColor=n.Util.makeCssRgb(e,t,r),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}setStrokeColorN(e){this.current.strokeColor=this._makeColorN_Pattern(e)}setFillColorN(e){this.current.fillColor=this._makeColorN_Pattern(e)}shadingFill(e){const t=this.viewport.width,r=this.viewport.height,s=n.Util.inverseTransform(this.transformMatrix),a=n.Util.applyTransform([0,0],s),i=n.Util.applyTransform([0,r],s),o=n.Util.applyTransform([t,0],s),l=n.Util.applyTransform([t,r],s),c=Math.min(a[0],i[0],o[0],l[0]),u=Math.min(a[1],i[1],o[1],l[1]),d=Math.max(a[0],i[0],o[0],l[0]),h=Math.max(a[1],i[1],o[1],l[1]),p=this.svgFactory.createElement("svg:rect");p.setAttributeNS(null,"x",c),p.setAttributeNS(null,"y",u),p.setAttributeNS(null,"width",d-c),p.setAttributeNS(null,"height",h-u),p.setAttributeNS(null,"fill",this._makeShadingPattern(e)),this.current.fillAlpha<1&&p.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().appendChild(p)}_makeColorN_Pattern(e){return"TilingPattern"===e[0]?this._makeTilingPattern(e):this._makeShadingPattern(e)}_makeTilingPattern(e){const t=e[1],r=e[2],s=e[3]||n.IDENTITY_MATRIX,[a,i,o,l]=e[4],c=e[5],u=e[6],d=e[7],h="shading"+y++,[p,f]=n.Util.applyTransform([a,i],s),[g,m]=n.Util.applyTransform([o,l],s),[v,b]=n.Util.singularValueDecompose2dScale(s),A=c*v,_=u*b,x=this.svgFactory.createElement("svg:pattern");x.setAttributeNS(null,"id",h),x.setAttributeNS(null,"patternUnits","userSpaceOnUse"),x.setAttributeNS(null,"width",A),x.setAttributeNS(null,"height",_),x.setAttributeNS(null,"x",`${p}`),x.setAttributeNS(null,"y",`${f}`);const S=this.svg,w=this.transformMatrix,P=this.current.fillColor,C=this.current.strokeColor,k=this.svgFactory.create(g-p,m-f);if(this.svg=k,this.transformMatrix=s,2===d){const e=n.Util.makeCssRgb(...t);this.current.fillColor=e,this.current.strokeColor=e}return this.executeOpTree(this.convertOpList(r)),this.svg=S,this.transformMatrix=w,this.current.fillColor=P,this.current.strokeColor=C,x.appendChild(k.childNodes[0]),this.defs.appendChild(x),`url(#${h})`}_makeShadingPattern(e){switch(e[0]){case"RadialAxial":const t="shading"+y++,r=e[3];let s;switch(e[1]){case"axial":const r=e[4],n=e[5];s=this.svgFactory.createElement("svg:linearGradient"),s.setAttributeNS(null,"id",t),s.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),s.setAttributeNS(null,"x1",r[0]),s.setAttributeNS(null,"y1",r[1]),s.setAttributeNS(null,"x2",n[0]),s.setAttributeNS(null,"y2",n[1]);break;case"radial":const a=e[4],i=e[5],o=e[6],l=e[7];s=this.svgFactory.createElement("svg:radialGradient"),s.setAttributeNS(null,"id",t),s.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),s.setAttributeNS(null,"cx",i[0]),s.setAttributeNS(null,"cy",i[1]),s.setAttributeNS(null,"r",l),s.setAttributeNS(null,"fx",a[0]),s.setAttributeNS(null,"fy",a[1]),s.setAttributeNS(null,"fr",o);break;default:throw new Error(`Unknown RadialAxial type: ${e[1]}`)}for(const e of r){const t=this.svgFactory.createElement("svg:stop");t.setAttributeNS(null,"offset",e[0]),t.setAttributeNS(null,"stop-color",e[1]),s.appendChild(t)}return this.defs.appendChild(s),`url(#${t})`;case"Mesh":return(0,n.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error(`Unknown IR type: ${e[0]}`)}}setDash(e,t){this.current.dashArray=e,this.current.dashPhase=t}constructPath(e,t){const r=this.current;let s=r.x,a=r.y,i=[],o=0;for(const r of e)switch(0|r){case n.OPS.rectangle:s=t[o++],a=t[o++];const e=s+t[o++],r=a+t[o++];i.push("M",g(s),g(a),"L",g(e),g(a),"L",g(e),g(r),"L",g(s),g(r),"Z");break;case n.OPS.moveTo:s=t[o++],a=t[o++],i.push("M",g(s),g(a));break;case n.OPS.lineTo:s=t[o++],a=t[o++],i.push("L",g(s),g(a));break;case n.OPS.curveTo:s=t[o+4],a=t[o+5],i.push("C",g(t[o]),g(t[o+1]),g(t[o+2]),g(t[o+3]),g(s),g(a)),o+=6;break;case n.OPS.curveTo2:i.push("C",g(s),g(a),g(t[o]),g(t[o+1]),g(t[o+2]),g(t[o+3])),s=t[o+2],a=t[o+3],o+=4;break;case n.OPS.curveTo3:s=t[o+2],a=t[o+3],i.push("C",g(t[o]),g(t[o+1]),g(s),g(a),g(s),g(a)),o+=4;break;case n.OPS.closePath:i.push("Z")}i=i.join(" "),r.path&&e.length>0&&e[0]!==n.OPS.rectangle&&e[0]!==n.OPS.moveTo?i=r.path.getAttributeNS(null,"d")+i:(r.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().appendChild(r.path)),r.path.setAttributeNS(null,"d",i),r.path.setAttributeNS(null,"fill","none"),r.element=r.path,r.setCurrentPoint(s,a)}endPath(){const e=this.current;if(e.path=null,!this.pendingClip)return;if(!e.element)return void(this.pendingClip=null);const t="clippath"+v++,r=this.svgFactory.createElement("svg:clipPath");r.setAttributeNS(null,"id",t),r.setAttributeNS(null,"transform",m(this.transformMatrix));const n=e.element.cloneNode(!0);"evenodd"===this.pendingClip?n.setAttributeNS(null,"clip-rule","evenodd"):n.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,r.appendChild(n),this.defs.appendChild(r),e.activeClipUrl&&(e.clipGroup=null,this.extraStack.forEach((function(e){e.clipGroup=null})),r.setAttributeNS(null,"clip-path",e.activeClipUrl)),e.activeClipUrl=`url(#${t})`,this.tgrp=null}clip(e){this.pendingClip=e}closePath(){const e=this.current;if(e.path){const t=`${e.path.getAttributeNS(null,"d")}Z`;e.path.setAttributeNS(null,"d",t)}}setLeading(e){this.current.leading=-e}setTextRise(e){this.current.textRise=e}setTextRenderingMode(e){this.current.textRenderingMode=e}setHScale(e){this.current.textHScale=e/100}setRenderingIntent(e){}setFlatness(e){}setGState(e){for(const[t,r]of e)switch(t){case"LW":this.setLineWidth(r);break;case"LC":this.setLineCap(r);break;case"LJ":this.setLineJoin(r);break;case"ML":this.setMiterLimit(r);break;case"D":this.setDash(r[0],r[1]);break;case"RI":this.setRenderingIntent(r);break;case"FL":this.setFlatness(r);break;case"Font":this.setFont(r);break;case"CA":this.setStrokeAlpha(r);break;case"ca":this.setFillAlpha(r);break;default:(0,n.warn)(`Unimplemented graphic state operator ${t}`)}}fill(){const e=this.current;e.element&&(e.element.setAttributeNS(null,"fill",e.fillColor),e.element.setAttributeNS(null,"fill-opacity",e.fillAlpha),this.endPath())}stroke(){const e=this.current;e.element&&(this._setStrokeAttributes(e.element),e.element.setAttributeNS(null,"fill","none"),this.endPath())}_setStrokeAttributes(e,t=1){const r=this.current;let n=r.dashArray;1!==t&&n.length>0&&(n=n.map((function(e){return t*e}))),e.setAttributeNS(null,"stroke",r.strokeColor),e.setAttributeNS(null,"stroke-opacity",r.strokeAlpha),e.setAttributeNS(null,"stroke-miterlimit",g(r.miterLimit)),e.setAttributeNS(null,"stroke-linecap",r.lineCap),e.setAttributeNS(null,"stroke-linejoin",r.lineJoin),e.setAttributeNS(null,"stroke-width",g(t*r.lineWidth)+"px"),e.setAttributeNS(null,"stroke-dasharray",n.map(g).join(" ")),e.setAttributeNS(null,"stroke-dashoffset",g(t*r.dashPhase)+"px")}eoFill(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}fillStroke(){this.stroke(),this.fill()}eoFillStroke(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}closeStroke(){this.closePath(),this.stroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.closePath(),this.eoFillStroke()}paintSolidColorImageMask(){const e=this.svgFactory.createElement("svg:rect");e.setAttributeNS(null,"x","0"),e.setAttributeNS(null,"y","0"),e.setAttributeNS(null,"width","1px"),e.setAttributeNS(null,"height","1px"),e.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().appendChild(e)}paintImageXObject(e){const t=this.objs.get(e);t?this.paintInlineImageXObject(t):(0,n.warn)(`Dependent image with object ID ${e} is not ready yet`)}paintInlineImageXObject(e,t){const r=e.width,n=e.height,s=h(e,this.forceDataSchema,!!t),a=this.svgFactory.createElement("svg:rect");a.setAttributeNS(null,"x","0"),a.setAttributeNS(null,"y","0"),a.setAttributeNS(null,"width",g(r)),a.setAttributeNS(null,"height",g(n)),this.current.element=a,this.clip("nonzero");const i=this.svgFactory.createElement("svg:image");i.setAttributeNS(c,"xlink:href",s),i.setAttributeNS(null,"x","0"),i.setAttributeNS(null,"y",g(-n)),i.setAttributeNS(null,"width",g(r)+"px"),i.setAttributeNS(null,"height",g(n)+"px"),i.setAttributeNS(null,"transform",`scale(${g(1/r)} ${g(-1/n)})`),t?t.appendChild(i):this._ensureTransformGroup().appendChild(i)}paintImageMaskXObject(e){const t=this.current,r=e.width,n=e.height,s=t.fillColor;t.maskId="mask"+b++;const a=this.svgFactory.createElement("svg:mask");a.setAttributeNS(null,"id",t.maskId);const i=this.svgFactory.createElement("svg:rect");i.setAttributeNS(null,"x","0"),i.setAttributeNS(null,"y","0"),i.setAttributeNS(null,"width",g(r)),i.setAttributeNS(null,"height",g(n)),i.setAttributeNS(null,"fill",s),i.setAttributeNS(null,"mask",`url(#${t.maskId})`),this.defs.appendChild(a),this._ensureTransformGroup().appendChild(i),this.paintInlineImageXObject(e,a)}paintFormXObjectBegin(e,t){if(Array.isArray(e)&&6===e.length&&this.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t){const e=t[2]-t[0],r=t[3]-t[1],n=this.svgFactory.createElement("svg:rect");n.setAttributeNS(null,"x",t[0]),n.setAttributeNS(null,"y",t[1]),n.setAttributeNS(null,"width",g(e)),n.setAttributeNS(null,"height",g(r)),this.current.element=n,this.clip("nonzero"),this.endPath()}}paintFormXObjectEnd(){}_initialize(e){const t=this.svgFactory.create(e.width,e.height),r=this.svgFactory.createElement("svg:defs");t.appendChild(r),this.defs=r;const n=this.svgFactory.createElement("svg:g");return n.setAttributeNS(null,"transform",m(e.transform)),t.appendChild(n),this.svg=n,t}_ensureClipGroup(){if(!this.current.clipGroup){const e=this.svgFactory.createElement("svg:g");e.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.appendChild(e),this.current.clipGroup=e}return this.current.clipGroup}_ensureTransformGroup(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",m(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().appendChild(this.tgrp):this.svg.appendChild(this.tgrp)),this.tgrp}}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNodeStream=void 0;var n=r(2),s=r(20);const a=__webpack_require__(212993),i=__webpack_require__(558618),o=__webpack_require__(200120),l=__webpack_require__(739151),c=/^file:\/\/\/[a-zA-Z]:\//;t.PDFNodeStream=class{constructor(e){this.source=e,this.url=function(e){const t=l.parse(e);return"file:"===t.protocol||t.host?t:/^[a-z]:[/\\]/i.test(e)?l.parse(`file:///${e}`):(t.host||(t.protocol="file:"),t)}(e.url),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?this._fullRequestReader._loaded:0}getFullReader(){return(0,n.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new g(this):new p(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const r=this.isFsUrl?new m(this,e,t):new f(this,e,t);return this._rangeRequestReaders.push(r),r}cancelAllRequests(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeRequestReaders.slice(0).forEach((function(t){t.cancel(e)}))}};class u{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null;const t=e.source;this._contentLength=t.length,this._loaded=0,this._filename=null,this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._readableStream=null,this._readCapability=(0,n.createPromiseCapability)(),this._headersCapability=(0,n.createPromiseCapability)()}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const e=this._readableStream.read();return null===e?(this._readCapability=(0,n.createPromiseCapability)(),this.read()):(this._loaded+=e.length,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",(()=>{this._readCapability.resolve()})),e.on("end",(()=>{e.destroy(),this._done=!0,this._readCapability.resolve()})),e.on("error",(e=>{this._error(e)})),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new n.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class d{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,n.createPromiseCapability)();const t=e.source;this._isStreamingSupported=!t.disableStream}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const e=this._readableStream.read();return null===e?(this._readCapability=(0,n.createPromiseCapability)(),this.read()):(this._loaded+=e.length,this.onProgress&&this.onProgress({loaded:this._loaded}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",(()=>{this._readCapability.resolve()})),e.on("end",(()=>{e.destroy(),this._done=!0,this._readCapability.resolve()})),e.on("error",(e=>{this._error(e)})),this._storedError&&this._readableStream.destroy(this._storedError)}}function h(e,t){return{protocol:e.protocol,auth:e.auth,host:e.hostname,port:e.port,path:e.path,method:"GET",headers:t}}class p extends u{constructor(e){super(e);const t=t=>{if(404===t.statusCode){const e=new n.MissingPDFException(`Missing PDF "${this._url}".`);return this._storedError=e,void this._headersCapability.reject(e)}this._headersCapability.resolve(),this._setReadableStream(t);const r=e=>this._readableStream.headers[e.toLowerCase()],{allowRangeRequests:a,suggestedLength:i}=(0,s.validateRangeRequestCapabilities)({getResponseHeader:r,isHttp:e.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=a,this._contentLength=i||this._contentLength,this._filename=(0,s.extractFilenameFromHeader)(r)};this._request=null,"http:"===this._url.protocol?this._request=i.request(h(this._url,e.httpHeaders),t):this._request=o.request(h(this._url,e.httpHeaders),t),this._request.on("error",(e=>{this._storedError=e,this._headersCapability.reject(e)})),this._request.end()}}class f extends d{constructor(e,t,r){super(e),this._httpHeaders={};for(const t in e.httpHeaders){const r=e.httpHeaders[t];void 0!==r&&(this._httpHeaders[t]=r)}this._httpHeaders.Range=`bytes=${t}-${r-1}`;const s=e=>{if(404!==e.statusCode)this._setReadableStream(e);else{const e=new n.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=e}};this._request=null,"http:"===this._url.protocol?this._request=i.request(h(this._url,this._httpHeaders),s):this._request=o.request(h(this._url,this._httpHeaders),s),this._request.on("error",(e=>{this._storedError=e})),this._request.end()}}class g extends u{constructor(e){super(e);let t=decodeURIComponent(this._url.path);c.test(this._url.href)&&(t=t.replace(/^\//,"")),a.lstat(t,((e,r)=>{if(e)return"ENOENT"===e.code&&(e=new n.MissingPDFException(`Missing PDF "${t}".`)),this._storedError=e,void this._headersCapability.reject(e);this._contentLength=r.size,this._setReadableStream(a.createReadStream(t)),this._headersCapability.resolve()}))}}class m extends d{constructor(e,t,r){super(e);let n=decodeURIComponent(this._url.path);c.test(this._url.href)&&(n=n.replace(/^\//,"")),this._setReadableStream(a.createReadStream(n,{start:t,end:r-1}))}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createResponseStatusError=function(e,t){return 404===e||0===e&&t.startsWith("file:")?new n.MissingPDFException('Missing PDF "'+t+'".'):new n.UnexpectedResponseException("Unexpected server response ("+e+') while retrieving PDF "'+t+'".',e)},t.extractFilenameFromHeader=function(e){const t=e("Content-Disposition");if(t){let e=(0,s.getFilenameFromContentDispositionHeader)(t);if(e.includes("%"))try{e=decodeURIComponent(e)}catch(e){}if(/\.pdf$/i.test(e))return e}return null},t.validateRangeRequestCapabilities=function({getResponseHeader:e,isHttp:t,rangeChunkSize:r,disableRange:s}){(0,n.assert)(r>0,"Range chunk size must be larger than zero");const a={allowRangeRequests:!1,suggestedLength:void 0},i=parseInt(e("Content-Length"),10);return Number.isInteger(i)?(a.suggestedLength=i,i<=2*r||s||!t||"bytes"!==e("Accept-Ranges")||"identity"!==(e("Content-Encoding")||"identity")||(a.allowRangeRequests=!0),a):a},t.validateResponseStatus=function(e){return 200===e||206===e};var n=r(2),s=r(21)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFilenameFromContentDispositionHeader=function(e){let t=!0,r=n("filename\\*","i").exec(e);if(r){r=r[1];let e=i(r);return e=unescape(e),e=o(e),e=l(e),a(e)}if(r=function(e){const t=[];let r;const s=n("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;null!==(r=s.exec(e));){let[,e,n,s]=r;if(e=parseInt(e,10),e in t){if(0===e)break}else t[e]=[n,s]}const a=[];for(let e=0;e=2&&r.onHeadersReceived&&(r.onHeadersReceived(),delete r.onHeadersReceived),4!==s.readyState)return;if(!(e in this.pendingRequests))return;if(delete this.pendingRequests[e],0===s.status&&this.isHttp)return void(r.onError&&r.onError(s.status));const a=s.status||200;if((200!==a||206!==r.expectedStatus)&&a!==r.expectedStatus)return void(r.onError&&r.onError(s.status));const i=function(e){const t=e.response;return"string"!=typeof t?t:(0,n.stringToBytes)(t).buffer}(s);if(206===a){const e=s.getResponseHeader("Content-Range"),t=/bytes (\d+)-(\d+)\/(\d+)/.exec(e);r.onDone({begin:parseInt(t[1],10),chunk:i})}else i?r.onDone({begin:0,chunk:i}):r.onError&&r.onError(s.status)}hasPendingRequests(){for(const e in this.pendingRequests)return!0;return!1}getRequestXhr(e){return this.pendingRequests[e].xhr}isPendingRequest(e){return e in this.pendingRequests}abortAllRequests(){for(const e in this.pendingRequests)this.abortRequest(0|e)}abortRequest(e){const t=this.pendingRequests[e].xhr;delete this.pendingRequests[e],t.abort()}}t.PDFNetworkStream=class{constructor(e){this._source=e,this._manager=new a(e.url,{httpHeaders:e.httpHeaders,withCredentials:e.withCredentials}),this._rangeChunkSize=e.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(e){const t=this._rangeRequestReaders.indexOf(e);t>=0&&this._rangeRequestReaders.splice(t,1)}getFullReader(){return(0,n.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new i(this._manager,this._source),this._fullRequestReader}getRangeReader(e,t){const r=new o(this._manager,e,t);return r.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(r),r}cancelAllRequests(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeRequestReaders.slice(0).forEach((function(t){t.cancel(e)}))}};class i{constructor(e,t){this._manager=e;const r={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=t.url,this._fullRequestId=e.requestFull(r),this._headersReceivedCapability=(0,n.createPromiseCapability)(),this._disableRange=t.disableRange||!1,this._contentLength=t.length,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const e=this._fullRequestId,t=this._manager.getRequestXhr(e),r=e=>t.getResponseHeader(e),{allowRangeRequests:n,suggestedLength:a}=(0,s.validateRangeRequestCapabilities)({getResponseHeader:r,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});n&&(this._isRangeSupported=!0),this._contentLength=a||this._contentLength,this._filename=(0,s.extractFilenameFromHeader)(r),this._isRangeSupported&&this._manager.abortRequest(e),this._headersReceivedCapability.resolve()}_onDone(e){e&&(this._requests.length>0?this._requests.shift().resolve({value:e.chunk,done:!1}):this._cachedChunks.push(e.chunk)),this._done=!0,this._cachedChunks.length>0||(this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[])}_onError(e){const t=this._url,r=(0,s.createResponseStatusError)(e,t);this._storedError=r,this._headersReceivedCapability.reject(r),this._requests.forEach((function(e){e.reject(r)})),this._requests=[],this._cachedChunks=[]}_onProgress(e){this.onProgress&&this.onProgress({loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}async read(){if(this._storedError)throw this._storedError;if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const e=(0,n.createPromiseCapability)();return this._requests.push(e),e.promise}cancel(e){this._done=!0,this._headersReceivedCapability.reject(e),this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[],this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class o{constructor(e,t,r){this._manager=e;const n={onDone:this._onDone.bind(this),onProgress:this._onProgress.bind(this)};this._requestId=e.requestRange(t,r,n),this._requests=[],this._queuedChunk=null,this._done=!1,this.onProgress=null,this.onClosed=null}_close(){this.onClosed&&this.onClosed(this)}_onDone(e){const t=e.chunk;this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._queuedChunk=t,this._done=!0,this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[],this._close()}_onProgress(e){!this.isStreamingSupported&&this.onProgress&&this.onProgress({loaded:e.loaded})}get isStreamingSupported(){return!1}async read(){if(null!==this._queuedChunk){const e=this._queuedChunk;return this._queuedChunk=null,{value:e,done:!1}}if(this._done)return{value:void 0,done:!0};const e=(0,n.createPromiseCapability)();return this._requests.push(e),e.promise}cancel(e){this._done=!0,this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[],this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFetchStream=void 0;var n=r(2),s=r(20);function a(e,t,r){return{method:"GET",headers:e,signal:r&&r.signal,mode:"cors",credentials:t?"include":"same-origin",redirect:"follow"}}function i(e){const t=new Headers;for(const r in e){const n=e[r];void 0!==n&&t.append(r,n)}return t}t.PDFFetchStream=class{constructor(e){this.source=e,this.isHttp=/^https?:/i.test(e.url),this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?this._fullRequestReader._loaded:0}getFullReader(){return(0,n.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new o(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const r=new l(this,e,t);return this._rangeRequestReaders.push(r),r}cancelAllRequests(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeRequestReaders.slice(0).forEach((function(t){t.cancel(e)}))}};class o{constructor(e){this._stream=e,this._reader=null,this._loaded=0,this._filename=null;const t=e.source;this._withCredentials=t.withCredentials||!1,this._contentLength=t.length,this._headersCapability=(0,n.createPromiseCapability)(),this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._headers=i(this._stream.httpHeaders);const r=t.url;fetch(r,a(this._headers,this._withCredentials,this._abortController)).then((e=>{if(!(0,s.validateResponseStatus)(e.status))throw(0,s.createResponseStatusError)(e.status,r);this._reader=e.body.getReader(),this._headersCapability.resolve();const t=t=>e.headers.get(t),{allowRangeRequests:a,suggestedLength:i}=(0,s.validateRangeRequestCapabilities)({getResponseHeader:t,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=a,this._contentLength=i||this._contentLength,this._filename=(0,s.extractFilenameFromHeader)(t),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new n.AbortException("Streaming is disabled."))})).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._headersCapability.promise;const{value:e,done:t}=await this._reader.read();return t?{value:e,done:t}:(this._loaded+=e.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._reader&&this._reader.cancel(e),this._abortController&&this._abortController.abort()}}class l{constructor(e,t,r){this._stream=e,this._reader=null,this._loaded=0;const o=e.source;this._withCredentials=o.withCredentials||!1,this._readCapability=(0,n.createPromiseCapability)(),this._isStreamingSupported=!o.disableStream,"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._headers=i(this._stream.httpHeaders),this._headers.append("Range",`bytes=${t}-${r-1}`);const l=o.url;fetch(l,a(this._headers,this._withCredentials,this._abortController)).then((e=>{if(!(0,s.validateResponseStatus)(e.status))throw(0,s.createResponseStatusError)(e.status,l);this._readCapability.resolve(),this._reader=e.body.getReader()})),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._readCapability.promise;const{value:e,done:t}=await this._reader.read();return t?{value:e,done:t}:(this._loaded+=e.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._reader&&this._reader.cancel(e),this._abortController&&this._abortController.abort()}}}])},module.exports=factory()},286379:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleLinkService=t.PDFLinkService=void 0;var n=r(6420);t.PDFLinkService=class{constructor({eventBus:e,externalLinkTarget:t=null,externalLinkRel:r=null,externalLinkEnabled:n=!0,ignoreDestinationZoom:s=!1}={}){this.eventBus=e,this.externalLinkTarget=t,this.externalLinkRel=r,this.externalLinkEnabled=n,this._ignoreDestinationZoom=s,this.baseUrl=null,this.pdfDocument=null,this.pdfViewer=null,this.pdfHistory=null,this._pagesRefCache=null}setDocument(e,t=null){this.baseUrl=t,this.pdfDocument=e,this._pagesRefCache=Object.create(null)}setViewer(e){this.pdfViewer=e}setHistory(e){this.pdfHistory=e}get pagesCount(){return this.pdfDocument?this.pdfDocument.numPages:0}get page(){return this.pdfViewer.currentPageNumber}set page(e){this.pdfViewer.currentPageNumber=e}get rotation(){return this.pdfViewer.pagesRotation}set rotation(e){this.pdfViewer.pagesRotation=e}navigateTo(e){const t=({namedDest:r,explicitDest:n})=>{const s=n[0];let a;if(s instanceof Object){if(a=this._cachedPageNumber(s),null===a)return void this.pdfDocument.getPageIndex(s).then((e=>{this.cachePageRef(e+1,s),t({namedDest:r,explicitDest:n})})).catch((()=>{console.error(`PDFLinkService.navigateTo: "${s}" is not a valid page reference, for dest="${e}".`)}))}else{if(!Number.isInteger(s))return void console.error(`PDFLinkService.navigateTo: "${s}" is not a valid destination reference, for dest="${e}".`);a=s+1}!a||a<1||a>this.pagesCount?console.error(`PDFLinkService.navigateTo: "${a}" is not a valid page number, for dest="${e}".`):(this.pdfHistory&&(this.pdfHistory.pushCurrentPosition(),this.pdfHistory.push({namedDest:r,explicitDest:n,pageNumber:a})),this.pdfViewer.scrollPageIntoView({pageNumber:a,destArray:n,ignoreDestinationZoom:this._ignoreDestinationZoom}))};new Promise(((t,r)=>{"string"!=typeof e?t({namedDest:"",explicitDest:e}):this.pdfDocument.getDestination(e).then((r=>{t({namedDest:e,explicitDest:r})}))})).then((r=>{Array.isArray(r.explicitDest)?t(r):console.error(`PDFLinkService.navigateTo: "${r.explicitDest}" is not a valid destination array, for dest="${e}".`)}))}getDestinationHash(e){if("string"==typeof e)return this.getAnchorUrl("#"+escape(e));if(Array.isArray(e)){const t=JSON.stringify(e);return this.getAnchorUrl("#"+escape(t))}return this.getAnchorUrl("")}getAnchorUrl(e){return(this.baseUrl||"")+e}setHash(e){let t,r;if(e.includes("=")){const s=(0,n.parseQueryString)(e);if("search"in s&&this.eventBus.dispatch("findfromurlhash",{source:this,query:s.search.replace(/"/g,""),phraseSearch:"true"===s.phrase}),"page"in s&&(t=0|s.page||1),"zoom"in s){const e=s.zoom.split(","),t=e[0],n=parseFloat(t);t.includes("Fit")?"Fit"===t||"FitB"===t?r=[null,{name:t}]:"FitH"===t||"FitBH"===t||"FitV"===t||"FitBV"===t?r=[null,{name:t},e.length>1?0|e[1]:null]:"FitR"===t?5!==e.length?console.error('PDFLinkService.setHash: Not enough parameters for "FitR".'):r=[null,{name:t},0|e[1],0|e[2],0|e[3],0|e[4]]:console.error(`PDFLinkService.setHash: "${t}" is not a valid zoom value.`):r=[null,{name:"XYZ"},e.length>1?0|e[1]:null,e.length>2?0|e[2]:null,n?n/100:t]}r?this.pdfViewer.scrollPageIntoView({pageNumber:t||this.page,destArray:r,allowNegativeOffset:!0}):t&&(this.page=t),"pagemode"in s&&this.eventBus.dispatch("pagemode",{source:this,mode:s.pagemode}),"nameddest"in s&&this.navigateTo(s.nameddest)}else{r=unescape(e);try{r=JSON.parse(r),Array.isArray(r)||(r=r.toString())}catch(e){}if("string"==typeof r||function(e){if(!Array.isArray(e))return!1;const t=e.length;if(t<2)return!1;const r=e[0];if(!("object"==typeof r&&Number.isInteger(r.num)&&Number.isInteger(r.gen)||Number.isInteger(r)&&r>=0))return!1;const n=e[1];if("object"!=typeof n||"string"!=typeof n.name)return!1;let s=!0;switch(n.name){case"XYZ":if(5!==t)return!1;break;case"Fit":case"FitB":return 2===t;case"FitH":case"FitBH":case"FitV":case"FitBV":if(3!==t)return!1;break;case"FitR":if(6!==t)return!1;s=!1;break;default:return!1}for(let r=2;r1&&this.page--;break;case"LastPage":this.page=this.pagesCount;break;case"FirstPage":this.page=1}this.eventBus.dispatch("namedaction",{source:this,action:e})}cachePageRef(e,t){if(!t)return;const r=0===t.gen?`${t.num}R`:`${t.num}R${t.gen}`;this._pagesRefCache[r]=e}_cachedPageNumber(e){const t=0===e.gen?`${e.num}R`:`${e.num}R${e.gen}`;return this._pagesRefCache&&this._pagesRefCache[t]||null}isPageVisible(e){return this.pdfViewer.isPageVisible(e)}},t.SimpleLinkService=class{constructor(){this.externalLinkTarget=null,this.externalLinkRel=null,this.externalLinkEnabled=!0,this._ignoreDestinationZoom=!1}get pagesCount(){return 0}get page(){return 0}set page(e){}get rotation(){return 0}set rotation(e){}navigateTo(e){}getDestinationHash(e){return"#"}getAnchorUrl(e){return"#"}setHash(e){}executeNamedAction(e){}cachePageRef(e,t){}isPageVisible(e){return!0}}},6420:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidRotation=function(e){return Number.isInteger(e)&&e%90==0},t.isValidScrollMode=function(e){return Number.isInteger(e)&&Object.values(r).includes(e)&&e!==r.UNKNOWN},t.isValidSpreadMode=function(e){return Number.isInteger(e)&&Object.values(n).includes(e)&&e!==n.UNKNOWN},t.isPortraitOrientation=function(e){return e.width<=e.height},t.clamp=u,t.getPDFFileNameFromURL=function(e,t="document.pdf"){if("string"!=typeof e)return t;if(function(e){let t=0;const r=e.length;for(;t1?n[1]:null;r[decodeURIComponent(s)]=decodeURIComponent(a)}return r},t.backtrackBeforeAllVisibleElements=i,t.getVisibleElements=function(e,t,r=!1,n=!1){const s=e.scrollTop,o=s+e.clientHeight,l=e.scrollLeft,c=l+e.clientWidth,u=[],d=t.length;let h=0===d?0:a(t,n?function(e){const t=e.div;return t.offsetLeft+t.clientLeft+t.clientWidth>l}:function(e){const t=e.div;return t.offsetTop+t.clientTop+t.clientHeight>s});h>0&&h=o&&(p=m);else if((n?i:d)>p)break;if(m<=s||d>=o||g<=l||i>=c)continue;const v=(f-(Math.max(0,s-d)+Math.max(0,m-o)))*(h-(Math.max(0,l-i)+Math.max(0,g-c)))*100/f/h|0;u.push({id:r.id,x:i,y:d,view:r,percent:v})}const f=u[0],g=u[u.length-1];return r&&u.sort((function(e,t){const r=e.percent-t.percent;return Math.abs(r)>.001?-r:e.id-t.id})),{first:f,last:g,views:u}},t.roundToDivide=function(e,t){const r=e%t;return 0===r?e:Math.round(e-r+t)},t.getPageSizeInches=function({view:e,userUnit:t,rotate:r}){const[n,s,a,i]=e,o=r%180!=0,l=(a-n)/72*t,c=(i-s)/72*t;return{width:o?c:l,height:o?l:c}},t.approximateFraction=function(e){if(Math.floor(e)===e)return[e,1];const t=1/e;if(t>8)return[1,8];if(Math.floor(t)===t)return[1,t];const r=e>1?t:e;let n,s=0,a=1,i=1,o=1;for(;;){const e=s+i,t=a+o;if(t>8)break;r<=e/t?(i=e,o=t):(s=e,a=t)}return n=r-s/aa),n.lastX=r;const i=e.scrollTop,o=n.lastY;i!==o&&(n.down=i>o),n.lastY=i,t(n)})))},n={right:!0,down:!0,lastX:e.scrollLeft,lastY:e.scrollTop,_eventHandler:r};let s=null;return e.addEventListener("scroll",r,!0),n},t.binarySearchFirstItem=a,t.normalizeWheelEventDelta=function(e){let t=Math.sqrt(e.deltaX*e.deltaX+e.deltaY*e.deltaY);const r=Math.atan2(e.deltaY,e.deltaX);return-.25*Math.PI=0))throw new Error("waitOnEventOrTimeout - invalid parameters.");function a(r){e instanceof c?e._off(t,i):e.removeEventListener(t,i),u&&clearTimeout(u),n(r)}const i=a.bind(null,o.EVENT);e instanceof c?e._on(t,i):e.addEventListener(t,i);const l=a.bind(null,o.TIMEOUT),u=setTimeout(l,r)}))},t.moveToEndOfArray=function(e,t){const r=[],n=e.length;let s=0;for(let a=0;a"en-us",getDirection:async()=>"ltr",get:async(e,t,r)=>function(e,t){return t?e.replace(/\{\{\s*(\w+)\s*\}\}/g,((e,r)=>r in t?t[r]:"{{"+r+"}}")):e}(r,t),async translate(e){}};function a(e,t){let r=0,n=e.length-1;if(n<0||!t(e[n]))return e.length;if(t(e[r]))return r;for(;r>1;t(e[s])?n=s:r=s+1}return r}function i(e,t,r){if(e<2)return e;let n=t[e].div,s=n.offsetTop+n.clientTop;s>=r&&(n=t[e-1].div,s=n.offsetTop+n.clientTop);for(let r=e-2;r>=0&&(n=t[r].div,!(n.offsetTop+n.clientTop+n.clientHeight<=s));--r)e=r;return e}t.NullL10n=s;const o={EVENT:"event",TIMEOUT:"timeout"};t.WaitOnType=o;const l=new Promise((function(e){window.requestAnimationFrame(e)}));t.animationStarted=l;class c{constructor(e){this._listeners=Object.create(null)}on(e,t){this._on(e,t,{external:!0})}off(e,t){this._off(e,t,{external:!0})}dispatch(e){const t=this._listeners[e];if(!t||0===t.length)return;const r=Array.prototype.slice.call(arguments,1);let n;t.slice(0).forEach((function({listener:e,external:t}){if(t)return n||(n=[]),void n.push(e);e.apply(null,r)})),n&&(n.forEach((function(e){e.apply(null,r)})),n=null)}_on(e,t,r=null){let n=this._listeners[e];n||(this._listeners[e]=n=[]),n.push({listener:t,external:!0===(r&&r.external)})}_off(e,t,r=null){const n=this._listeners[e];if(n)for(let e=0,r=n.length;e0&&(this.bar.style.width=`calc(100% - ${t}px)`)}hide(){this.visible&&(this.visible=!1,this.bar.classList.add("hidden"),document.body.classList.remove("loadingInProgress"))}show(){this.visible||(this.visible=!0,document.body.classList.add("loadingInProgress"),this.bar.classList.remove("hidden"))}}},682013:(e,t,r)=>{"use strict";var n=r(820862),s=r(595318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=s(r(967154)),i=s(r(506479)),o=s(r(750008)),l=s(r(887757)),c=s(r(348926)),u=s(r(334575)),d=s(r(993913)),h=s(r(281506)),p=s(r(502205)),f=s(r(178585)),g=s(r(629754)),m=s(r(859713)),v=n(r(124852)),b=s(r(675263)),y=s(r(953770)),A=s(r(973206)),_=s(r(289624)),x=n(r(299299)),S=s(r(646522)),w=s(r(262217)),P=s(r(865309)),C=s(r(167101)),k=s(r(54366)),R=r(400395),E=r(348693);function T(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function L(e){for(var t=1;t was provided with onItemClick nor it was able to find the page within itself. Either provide onItemClick to and handle navigating by yourself or ensure that all pages are rendered within ."))}}}),(0,m.default)((0,h.default)(e),"linkService",new P.default({eventBus:k.default})),(0,m.default)((0,h.default)(e),"loadDocument",(0,c.default)(l.default.mark((function t(){var r,n,s,a,i,o,c;return l.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=null,t.prev=1,t.next=4,e.findDocumentSource();case 4:r=t.sent,e.onSourceSuccess(),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(1),e.onSourceError(t.t0);case 11:if(r){t.next=13;break}return t.abrupt("return");case 13:return e.setState((function(e){return e.pdf?{pdf:null}:null})),n=e.props,s=n.options,a=n.onLoadProgress,i=n.onPassword,t.prev=15,(0,R.cancelRunningTask)(e.runningTask),e.loadingTask=x.getDocument(L(L({},r),s)),e.loadingTask.onPassword=i,a&&(e.loadingTask.onProgress=a),o=(0,A.default)(e.loadingTask.promise),e.runningTask=o,t.next=24,o.promise;case 24:c=t.sent,e.setState((function(e){return e.pdf&&e.pdf.fingerprint===c.fingerprint?null:{pdf:c}}),e.onLoadSuccess),t.next=31;break;case 28:t.prev=28,t.t1=t.catch(15),e.onLoadError(t.t1);case 31:case"end":return t.stop()}}),t,null,[[1,8],[15,28]])})))),(0,m.default)((0,h.default)(e),"setupLinkService",(function(){e.linkService.setViewer(e.viewer);var t=(0,h.default)(e);Object.defineProperty(e.linkService,"externalLinkTarget",{get:function(){switch(t.props.externalLinkTarget){case"_self":return 1;case"_blank":return 2;case"_parent":return 3;case"_top":return 4;default:return 0}}})})),(0,m.default)((0,h.default)(e),"onSourceSuccess",(function(){var t=e.props.onSourceSuccess;t&&t()})),(0,m.default)((0,h.default)(e),"onSourceError",(function(t){(0,R.errorOnDev)(t);var r=e.props.onSourceError;r&&r(t)})),(0,m.default)((0,h.default)(e),"onLoadSuccess",(function(){var t=e.props.onLoadSuccess,r=e.state.pdf;t&&t(r),e.pages=new Array(r.numPages),e.linkService.setDocument(r)})),(0,m.default)((0,h.default)(e),"onLoadError",(function(t){e.setState({pdf:!1}),(0,R.errorOnDev)(t);var r=e.props.onLoadError;r&&r(t)})),(0,m.default)((0,h.default)(e),"findDocumentSource",(0,c.default)(l.default.mark((function t(){var r,n,s,a,c;return l.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.props.file){t.next=3;break}return t.abrupt("return",null);case 3:if("string"!=typeof r){t.next=9;break}if(!(0,R.isDataURI)(r)){t.next=7;break}return n=(0,R.dataURItoUint8Array)(r),t.abrupt("return",{data:n});case 7:return(0,R.displayCORSWarning)(),t.abrupt("return",{url:r});case 9:if(!(r instanceof O)){t.next=11;break}return t.abrupt("return",{range:r});case 11:if(!(0,R.isArrayBuffer)(r)){t.next=13;break}return t.abrupt("return",{data:r});case 13:if(!R.isBrowser){t.next=19;break}if(!(0,R.isBlob)(r)&&!(0,R.isFile)(r)){t.next=19;break}return t.next=17,(0,R.loadFromFile)(r);case 17:return t.t0=t.sent,t.abrupt("return",{data:t.t0});case 19:if("object"===(0,o.default)(r)){t.next=21;break}throw new Error("Invalid parameter in file, need either Uint8Array, string or a parameter object");case 21:if(r.url||r.data||r.range){t.next=23;break}throw new Error("Invalid parameter object: need either .data, .range or .url");case 23:if("string"!=typeof r.url){t.next=29;break}if(!(0,R.isDataURI)(r.url)){t.next=28;break}return s=r.url,a=(0,i.default)(r,["url"]),c=(0,R.dataURItoUint8Array)(s),t.abrupt("return",L({data:c},a));case 28:(0,R.displayCORSWarning)();case 29:return t.abrupt("return",r);case 30:case"end":return t.stop()}}),t)})))),(0,m.default)((0,h.default)(e),"registerPage",(function(t,r){e.pages[t]=r})),(0,m.default)((0,h.default)(e),"unregisterPage",(function(t){delete e.pages[t]})),e}return(0,d.default)(s,[{key:"componentDidMount",value:function(){this.loadDocument(),this.setupLinkService()}},{key:"componentDidUpdate",value:function(e){this.props.file!==e.file&&this.loadDocument()}},{key:"componentWillUnmount",value:function(){this.loadingTask&&this.loadingTask.destroy(),(0,R.cancelRunningTask)(this.runningTask)}},{key:"renderChildren",value:function(){var e=this.props.children;return v.default.createElement(S.default.Provider,{value:this.childContext},e)}},{key:"renderContent",value:function(){var e=this.props.file,t=this.state.pdf;if(!e){var r=this.props.noData;return v.default.createElement(w.default,{type:"no-data"},"function"==typeof r?r():r)}if(null===t){var n=this.props.loading;return v.default.createElement(w.default,{type:"loading"},"function"==typeof n?n():n)}if(!1===t){var s=this.props.error;return v.default.createElement(w.default,{type:"error"},"function"==typeof s?s():s)}return this.renderChildren()}},{key:"render",value:function(){var e=this.props,t=e.className,r=e.inputRef;return v.default.createElement("div",(0,a.default)({className:(0,_.default)("react-pdf__Document",t),ref:r},this.eventProps),this.renderContent())}},{key:"childContext",get:function(){var e=this.linkService,t=this.registerPage,r=this.unregisterPage,n=this.props,s=n.renderMode,a=n.rotate;return{linkService:e,pdf:this.state.pdf,registerPage:t,renderMode:s,rotate:a,unregisterPage:r}}},{key:"eventProps",get:function(){var e=this;return(0,y.default)(this.props,(function(){return e.state.pdf}))}}]),s}(v.PureComponent);t.default=F,F.defaultProps={error:"Failed to load PDF file.",loading:"Loading PDF…",noData:"No PDF file specified.",onPassword:function(e,t){switch(t){case C.default.NEED_PASSWORD:e(prompt("Enter the password to open this PDF file."));break;case C.default.INCORRECT_PASSWORD:e(prompt("Invalid password. Please try again."))}}};var D=b.default.oneOfType([b.default.func,b.default.node]);F.propTypes=L(L({},E.eventProps),{},{children:b.default.node,className:E.isClassName,error:D,file:R.isFile,inputRef:E.isRef,loading:D,noData:D,onItemClick:b.default.func,onLoadError:b.default.func,onLoadProgress:b.default.func,onLoadSuccess:b.default.func,onPassword:b.default.func,onSourceError:b.default.func,onSourceSuccess:b.default.func,rotate:b.default.number})},646522:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=(0,r(124852).createContext)(null);t.default=n},865309:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(286379).PDFLinkService;t.default=n},262217:(e,t,r)=>{"use strict";var n=r(595318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var s=n(r(124852)),a=n(r(675263));function i(e){var t=e.children,r=e.type;return s.default.createElement("div",{className:"react-pdf__message react-pdf__message--".concat(r)},t)}i.propTypes={children:a.default.node,type:a.default.oneOf(["error","loading","no-data"]).isRequired}},830076:(e,t,r)=>{"use strict";var n=r(820862),s=r(595318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.OutlineInternal=void 0;var a=s(r(967154)),i=s(r(887757)),o=s(r(348926)),l=s(r(334575)),c=s(r(993913)),u=s(r(281506)),d=s(r(502205)),h=s(r(178585)),p=s(r(629754)),f=s(r(859713)),g=n(r(124852)),m=s(r(675263)),v=s(r(973206)),b=s(r(953770)),y=s(r(289624)),A=s(r(646522)),_=s(r(694921)),x=s(r(160350)),S=r(400395),w=r(348693);function P(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var C=function(e){(0,d.default)(s,e);var t,r,n=(t=s,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,p.default)(t);if(r){var s=(0,p.default)(this).constructor;e=Reflect.construct(n,arguments,s)}else e=n.apply(this,arguments);return(0,h.default)(this,e)});function s(){var e;(0,l.default)(this,s);for(var t=arguments.length,r=new Array(t),a=0;a{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=(0,r(124852).createContext)(null);t.default=n},160350:(e,t,r)=>{"use strict";var n=r(820862),s=r(595318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.OutlineItemInternal=void 0;var a=s(r(967154)),i=s(r(506479)),o=s(r(963038)),l=s(r(887757)),c=s(r(348926)),u=s(r(334575)),d=s(r(993913)),h=s(r(281506)),p=s(r(502205)),f=s(r(178585)),g=s(r(629754)),m=s(r(859713)),v=n(r(124852)),b=s(r(675263)),y=s(r(646522)),A=s(r(694921)),_=s(r(185297)),x=r(400395),S=r(348693);var w=function(e){(0,p.default)(s,e);var t,r,n=(t=s,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,g.default)(t);if(r){var s=(0,g.default)(this).constructor;e=Reflect.construct(n,arguments,s)}else e=n.apply(this,arguments);return(0,f.default)(this,e)});function s(){var e;(0,u.default)(this,s);for(var t=arguments.length,r=new Array(t),a=0;a{"use strict";var n=r(820862),s=r(595318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.PageInternal=void 0;var a=s(r(967154)),i=s(r(887757)),o=s(r(348926)),l=s(r(334575)),c=s(r(993913)),u=s(r(281506)),d=s(r(502205)),h=s(r(178585)),p=s(r(629754)),f=s(r(859713)),g=n(r(124852)),m=s(r(675263)),v=s(r(973206)),b=s(r(953770)),y=s(r(289624)),A=s(r(879426)),_=s(r(646522)),x=s(r(245808)),S=s(r(262217)),w=s(r(807645)),P=s(r(937899)),C=s(r(642147)),k=s(r(38918)),R=r(400395),E=r(348693);function T(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function L(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:this.props;return(0,R.isProvided)(e.pageNumber)?e.pageNumber-1:(0,R.isProvided)(e.pageIndex)?e.pageIndex:null}},{key:"getPageNumber",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;return(0,R.isProvided)(e.pageNumber)?e.pageNumber:(0,R.isProvided)(e.pageIndex)?e.pageIndex+1:null}},{key:"renderMainLayer",value:function(){var e=this.props,t=e.canvasRef;switch(e.renderMode){case"none":return null;case"svg":return g.default.createElement(P.default,{key:"".concat(this.pageKeyNoScale,"_svg")});default:return g.default.createElement(w.default,{key:"".concat(this.pageKey,"_canvas"),canvasRef:t})}}},{key:"renderTextLayer",value:function(){return this.props.renderTextLayer?g.default.createElement(C.default,{key:"".concat(this.pageKey,"_text")}):null}},{key:"renderAnnotationLayer",value:function(){return this.props.renderAnnotationLayer?g.default.createElement(k.default,{key:"".concat(this.pageKey,"_annotations")}):null}},{key:"renderChildren",value:function(){var e=this.props.children;return g.default.createElement(x.default.Provider,{value:this.childContext},this.renderMainLayer(),this.renderTextLayer(),this.renderAnnotationLayer(),e)}},{key:"renderContent",value:function(){var e=this.pageNumber,t=this.props.pdf,r=this.state.page;if(!e){var n=this.props.noData;return g.default.createElement(S.default,{type:"no-data"},"function"==typeof n?n():n)}if(null===t||null===r){var s=this.props.loading;return g.default.createElement(S.default,{type:"loading"},"function"==typeof s?s():s)}if(!1===t||!1===r){var a=this.props.error;return g.default.createElement(S.default,{type:"error"},"function"==typeof a?a():a)}return this.renderChildren()}},{key:"render",value:function(){var e=this.pageNumber,t=this.props,r=t.className,n=t.inputRef;return g.default.createElement("div",(0,a.default)({className:(0,y.default)("react-pdf__Page",r),"data-page-number":e,ref:(0,A.default)(n,this.ref),style:{position:"relative"}},this.eventProps),this.renderContent())}},{key:"childContext",get:function(){var e=this.state.page;if(!e)return{};var t=this.props;return{customTextRenderer:t.customTextRenderer,onGetAnnotationsError:t.onGetAnnotationsError,onGetAnnotationsSuccess:t.onGetAnnotationsSuccess,onGetTextError:t.onGetTextError,onGetTextSuccess:t.onGetTextSuccess,onRenderAnnotationLayerError:t.onRenderAnnotationLayerError,onRenderAnnotationLayerSuccess:t.onRenderAnnotationLayerSuccess,onRenderError:t.onRenderError,onRenderSuccess:t.onRenderSuccess,page:e,renderInteractiveForms:t.renderInteractiveForms,rotate:this.rotate,scale:this.scale}}},{key:"pageIndex",get:function(){return this.getPageIndex()}},{key:"pageNumber",get:function(){return this.getPageNumber()}},{key:"rotate",get:function(){var e=this.props.rotate;if((0,R.isProvided)(e))return e;var t=this.state.page;return t?t.rotate:null}},{key:"scale",get:function(){var e=this.state.page;if(!e)return null;var t=this.props,r=t.scale,n=t.width,s=t.height,a=this.rotate,i=1,o=null===r?1:r;if(n||s){var l=e.getViewport({scale:1,rotation:a});i=n?n/l.width:s/l.height}return o*i}},{key:"eventProps",get:function(){var e=this;return(0,b.default)(this.props,(function(){var t=e.state.page;return t?(0,R.makePageCallback)(t,e.scale):t}))}},{key:"pageKey",get:function(){var e=this.state.page;return"".concat(e.pageIndex,"@").concat(this.scale,"/").concat(this.rotate)}},{key:"pageKeyNoScale",get:function(){var e=this.state.page;return"".concat(e.pageIndex,"/").concat(this.rotate)}}]),s}(g.PureComponent);t.PageInternal=O,O.defaultProps={error:"Failed to load the page.",loading:"Loading page…",noData:"No page specified.",renderAnnotationLayer:!0,renderInteractiveForms:!1,renderMode:"canvas",renderTextLayer:!0,scale:1};var F=m.default.oneOfType([m.default.func,m.default.node]);function D(e,t){return g.default.createElement(_.default.Consumer,null,(function(r){return g.default.createElement(O,(0,a.default)({ref:t},r,e))}))}O.propTypes=L(L({},E.eventProps),{},{children:m.default.node,className:E.isClassName,customTextRenderer:m.default.func,error:F,height:m.default.number,inputRef:E.isRef,loading:F,noData:F,onGetTextError:m.default.func,onGetTextSuccess:m.default.func,onLoadError:m.default.func,onLoadSuccess:m.default.func,onRenderError:m.default.func,onRenderSuccess:m.default.func,pageIndex:E.isPageIndex,pageNumber:E.isPageNumber,pdf:E.isPdf,registerPage:m.default.func,renderAnnotationLayer:m.default.bool,renderInteractiveForms:m.default.bool,renderMode:E.isRenderMode,renderTextLayer:m.default.bool,rotate:E.isRotate,scale:m.default.number,unregisterPage:m.default.func,width:m.default.number});var I=g.default.forwardRef(D);t.default=I},38918:(e,t,r)=>{"use strict";var n=r(820862),s=r(595318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.AnnotationLayerInternal=void 0;var a=s(r(967154)),i=s(r(887757)),o=s(r(348926)),l=s(r(334575)),c=s(r(993913)),u=s(r(281506)),d=s(r(502205)),h=s(r(178585)),p=s(r(629754)),f=s(r(859713)),g=n(r(124852)),m=s(r(675263)),v=n(r(299299)),b=s(r(973206)),y=s(r(646522)),A=s(r(245808)),_=r(400395),x=r(348693);var S=function(e){(0,d.default)(s,e);var t,r,n=(t=s,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,p.default)(t);if(r){var s=(0,p.default)(this).constructor;e=Reflect.construct(n,arguments,s)}else e=n.apply(this,arguments);return(0,h.default)(this,e)});function s(){var e;(0,l.default)(this,s);for(var t=arguments.length,r=new Array(t),a=0;a{"use strict";var n=r(820862),s=r(595318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return p.default.createElement(m.default.Consumer,null,(function(t){return p.default.createElement(y,(0,a.default)({},t,e))}))},t.PageCanvasInternal=void 0;var a=s(r(967154)),i=s(r(334575)),o=s(r(993913)),l=s(r(281506)),c=s(r(502205)),u=s(r(178585)),d=s(r(629754)),h=s(r(859713)),p=n(r(124852)),f=s(r(675263)),g=s(r(879426)),m=s(r(245808)),v=r(400395),b=r(348693);var y=function(e){(0,c.default)(s,e);var t,r,n=(t=s,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,d.default)(t);if(r){var s=(0,d.default)(this).constructor;e=Reflect.construct(n,arguments,s)}else e=n.apply(this,arguments);return(0,u.default)(this,e)});function s(){var e;(0,i.default)(this,s);for(var t=arguments.length,r=new Array(t),a=0;a{"use strict";var n=r(820862),s=r(595318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return p.default.createElement(m.default.Consumer,null,(function(t){return p.default.createElement(y,(0,a.default)({},t,e))}))},t.PageSVGInternal=void 0;var a=s(r(967154)),i=s(r(334575)),o=s(r(993913)),l=s(r(281506)),c=s(r(502205)),u=s(r(178585)),d=s(r(629754)),h=s(r(859713)),p=n(r(124852)),f=s(r(675263)),g=n(r(299299)),m=s(r(245808)),v=r(400395),b=r(348693);var y=function(e){(0,c.default)(s,e);var t,r,n=(t=s,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,d.default)(t);if(r){var s=(0,d.default)(this).constructor;e=Reflect.construct(n,arguments,s)}else e=n.apply(this,arguments);return(0,u.default)(this,e)});function s(){var e;(0,i.default)(this,s);for(var t=arguments.length,r=new Array(t),a=0;a{"use strict";var n=r(820862),s=r(595318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return g.default.createElement(b.default.Consumer,null,(function(t){return g.default.createElement(x,(0,a.default)({},t,e))}))},t.TextLayerInternal=void 0;var a=s(r(967154)),i=s(r(887757)),o=s(r(348926)),l=s(r(334575)),c=s(r(993913)),u=s(r(281506)),d=s(r(502205)),h=s(r(178585)),p=s(r(629754)),f=s(r(859713)),g=n(r(124852)),m=s(r(675263)),v=s(r(973206)),b=s(r(245808)),y=s(r(259766)),A=r(400395),_=r(348693);var x=function(e){(0,d.default)(s,e);var t,r,n=(t=s,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,p.default)(t);if(r){var s=(0,p.default)(this).constructor;e=Reflect.construct(n,arguments,s)}else e=n.apply(this,arguments);return(0,h.default)(this,e)});function s(){var e;(0,l.default)(this,s);for(var t=arguments.length,r=new Array(t),a=0;a{"use strict";var n=r(820862),s=r(595318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return m.default.createElement(b.default.Consumer,null,(function(t){return m.default.createElement(A,(0,a.default)({},t,e))}))},t.TextLayerItemInternal=void 0;var a=s(r(967154)),i=s(r(963038)),o=s(r(887757)),l=s(r(348926)),c=s(r(334575)),u=s(r(993913)),d=s(r(281506)),h=s(r(502205)),p=s(r(178585)),f=s(r(629754)),g=s(r(859713)),m=n(r(124852)),v=s(r(675263)),b=s(r(245808)),y=r(348693);var A=function(e){(0,h.default)(v,e);var t,r,n,s,a=(n=v,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=(0,f.default)(n);if(s){var r=(0,f.default)(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return(0,p.default)(this,e)});function v(){var e;(0,c.default)(this,v);for(var t=arguments.length,r=new Array(t),n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=(0,r(124852).createContext)(null);t.default=n},167101:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={NEED_PASSWORD:1,INCORRECT_PASSWORD:2}},185297:(e,t,r)=>{"use strict";var n=r(595318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=n(r(334575)),a=n(r(993913)),i=function(){function e(t){var r=t.num,n=t.gen;(0,s.default)(this,e),this.num=r,this.gen=n}return(0,a.default)(e,[{key:"toString",value:function(){var e="".concat(this.num,"R");return 0!==this.gen&&(e+=this.gen),e}}]),e}();t.default=i},466756:(e,t,r)=>{"use strict";var n=r(595318),s=r(820862);Object.defineProperty(t,"BB",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"T3",{enumerable:!0,get:function(){return o.default}});var a=s(r(299299)),i=n(r(682013)),o=(n(r(830076)),n(r(484182))),l=n(r(149198)),c=r(400395);c.isLocalFileSystem&&(0,c.warnOnDev)("You are running React-PDF from your local file system. PDF.js Worker may fail to load due to browser's security policies. If you're on Google Chrome, you can use --allow-file-access-from-files flag for debugging purposes."),"undefined"!=typeof window&&"Worker"in window&&(a.GlobalWorkerOptions.workerPort=new l.default)},54366:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=new(r(6420).EventBus);t.default=n},348693:(e,t,r)=>{"use strict";var n=r(595318);Object.defineProperty(t,"__esModule",{value:!0}),t.isRotate=t.isRenderMode=t.isRef=t.isPdf=t.isPageNumber=t.isPageIndex=t.isPage=t.isLinkTarget=t.isLinkService=t.isFile=t.isClassName=t.eventProps=void 0;var s,a=n(r(750008)),i=n(r(319)),o=n(r(675263)),l=r(953770),c=r(400395),u=n(r(865309)),d=(s={},[].concat((0,i.default)(l.mouseEvents),(0,i.default)(l.touchEvents),(0,i.default)(l.keyboardEvents)).forEach((function(e){s[e]=o.default.func})),s);t.eventProps=d;var h=[o.default.string,o.default.instanceOf(ArrayBuffer),o.default.shape({data:o.default.object,httpHeaders:o.default.object,range:o.default.object,url:o.default.string,withCredentials:o.default.bool})];"undefined"!=typeof File&&h.push(o.default.instanceOf(File)),"undefined"!=typeof Blob&&h.push(o.default.instanceOf(Blob));var p=o.default.oneOfType([o.default.string,o.default.arrayOf(o.default.string)]);t.isClassName=p;var f=o.default.oneOfType(h);t.isFile=f;var g=o.default.instanceOf(u.default);t.isLinkService=g;var m=o.default.oneOf(["_self","_blank","_parent","_top"]);t.isLinkTarget=m;var v=o.default.shape({_transport:o.default.shape({fontLoader:o.default.object.isRequired}).isRequired,commonObjs:o.default.shape({_objs:o.default.object.isRequired}).isRequired,getAnnotations:o.default.func.isRequired,getTextContent:o.default.func.isRequired,getViewport:o.default.func.isRequired,render:o.default.func.isRequired});t.isPage=v,t.isPageIndex=function(e,t,r){var n=e[t],s=e.pageNumber,i=e.pdf;if(!(0,c.isDefined)(i))return null;if((0,c.isDefined)(n)){if("number"!=typeof n)return new Error("`".concat(t,"` of type `").concat((0,a.default)(n),"` supplied to `").concat(r,"`, expected `number`."));if(n<0)return new Error("Expected `".concat(t,"` to be greater or equal to 0."));var o=i.numPages;if(n+1>o)return new Error("Expected `".concat(t,"` to be less or equal to ").concat(o-1,"."))}else if(!(0,c.isDefined)(s))return new Error("`".concat(t,"` not supplied. Either pageIndex or pageNumber must be supplied to `").concat(r,"`."));return null},t.isPageNumber=function(e,t,r){var n=e[t],s=e.pageIndex,i=e.pdf;if(!(0,c.isDefined)(i))return null;if((0,c.isDefined)(n)){if("number"!=typeof n)return new Error("`".concat(t,"` of type `").concat((0,a.default)(n),"` supplied to `").concat(r,"`, expected `number`."));if(n<1)return new Error("Expected `".concat(t,"` to be greater or equal to 1."));var o=i.numPages;if(n>o)return new Error("Expected `".concat(t,"` to be less or equal to ").concat(o,"."))}else if(!(0,c.isDefined)(s))return new Error("`".concat(t,"` not supplied. Either pageIndex or pageNumber must be supplied to `").concat(r,"`."));return null};var b=o.default.oneOfType([o.default.shape({getDestination:o.default.func.isRequired,getOutline:o.default.func.isRequired,getPage:o.default.func.isRequired,numPages:o.default.number.isRequired}),o.default.bool]);t.isPdf=b;var y=o.default.oneOfType([o.default.func,o.default.shape({current:o.default.any})]);t.isRef=y;var A=o.default.oneOf(["canvas","none","svg"]);t.isRenderMode=A;var _=o.default.oneOf([0,90,180,270]);t.isRotate=_},400395:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadFromFile=t.isCancelException=t.makePageCallback=t.cancelRunningTask=t.displayCORSWarning=t.errorOnDev=t.warnOnDev=t.getPixelRatio=t.dataURItoUint8Array=t.isDataURI=t.isFile=t.isBlob=t.isArrayBuffer=t.isString=t.isProvided=t.isDefined=t.isProduction=t.isLocalFileSystem=t.isBrowser=void 0;var r="undefined"!=typeof window;t.isBrowser=r;var n=r&&"file:"===window.location.protocol;t.isLocalFileSystem=n,t.isProduction=!0;var s=function(e){return void 0!==e};t.isDefined=s,t.isProvided=function(e){return s(e)&&null!==e};var a=function(e){return"string"==typeof e};t.isString=a,t.isArrayBuffer=function(e){return e instanceof ArrayBuffer},t.isBlob=function(e){if(!r)throw new Error("Attempted to check if a variable is a Blob on a non-browser environment.");return e instanceof Blob},t.isFile=function(e){if(!r)throw new Error("Attempted to check if a variable is a File on a non-browser environment.");return e instanceof File};var i=function(e){return a(e)&&/^data:/.test(e)};t.isDataURI=i,t.dataURItoUint8Array=function(e){if(!i(e))throw new Error("dataURItoUint8Array was provided with an argument which is not a valid data URI.");var t;t=e.split(",")[0].indexOf("base64")>=0?atob(e.split(",")[1]):unescape(e.split(",")[1]);for(var r=new Uint8Array(t.length),n=0;n{"use strict";function n(){return new Worker(r.p+"pdf.worker.entry.worker.js")}r.r(t),r.d(t,{default:()=>n})}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/3829.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/3829.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/3829.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/3829.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/38306.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/38306.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/38306.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/38306.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/38340.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/38340.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/38340.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/38340.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/38366.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/38366.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/38366.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/38366.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/38481.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/38481.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/38481.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/38481.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/38503.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/38503.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/38503.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/38503.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/38562.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/38562.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/38562.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/38562.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/38585.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/38585.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/38585.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/38585.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/38627.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/38627.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/38627.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/38627.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/38748.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/38748.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/38748.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/38748.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/38774.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/38774.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/38774.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/38774.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/38920.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/38920.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/38920.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/38920.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/38925.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/38925.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/38925.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/38925.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/38995.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/38995.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/38995.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/38995.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/39040.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/39040.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/39040.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/39040.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/39060.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/39060.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/39060.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/39060.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/39207.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/39207.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/39207.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/39207.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/39301.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/39301.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/39301.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/39301.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/39334.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/39334.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/39334.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/39334.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/39375.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/39375.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/39375.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/39375.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/39736.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/39736.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/39736.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/39736.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/39862.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/39862.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/39862.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/39862.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/39898.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/39898.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/39898.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/39898.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/39935.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/39935.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/39935.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/39935.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/39988.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/39988.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/39988.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/39988.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/40026.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/40026.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/40026.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/40026.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/40105.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/40105.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/40105.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/40105.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/40353.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/40353.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/40353.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/40353.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/40483.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/40483.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/40483.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/40483.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/4050.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/4050.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/4050.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/4050.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/406.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/406.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/406.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/406.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/40722.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/40722.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/40722.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/40722.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/40812.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/40812.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/40812.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/40812.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/40869.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/40869.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/40869.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/40869.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/41090.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/41090.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/41090.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/41090.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/41105.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/41105.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/41105.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/41105.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/41142.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/41142.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/41142.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/41142.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/41263.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/41263.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/41263.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/41263.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/41472.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/41472.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/41472.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/41472.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/41480.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/41480.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/41480.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/41480.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/41504.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/41504.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/41504.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/41504.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/41547.018dc26183efb561a8b1.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/41547.018dc26183efb561a8b1.chunk.js new file mode 100644 index 0000000000..4cd57e0567 --- /dev/null +++ b/geonode_mapstore_client/static/mapstore/dist/js/41547.018dc26183efb561a8b1.chunk.js @@ -0,0 +1 @@ +(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[41547],{641547:(t,r,n)=>{"use strict";n.r(r),n.d(r,{default:()=>k});var e=n(92742),o=n.n(e),i=n(747037),c=n.n(i),a=n(717621),l=n.n(a);function u(t){return u="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},u(t)}function f(t,r){for(var n=0;nt.length)&&(r=t.length);for(var n=0,e=new Array(r);n":case"<":case">=":case"<=":case"!=":case"==":case"*=":var i=m(o,2),a=i[0],l=i[1];return function(t,r,n){var e="!(${".concat(t,"} === undefined").concat(null===n?"":" || ${".concat(t,"} === null"),")");return"=~"===r?"(".concat(e," && regExp('").concat(n,"').test(${").concat(t,"}) === true)"):"(".concat(e," && ${").concat(t,"} ").concat(r," ").concat(c()(n)?"'".concat(n,"'"):n,")")}(a,{"==":"===",">":">",">=":">=","<":"<","<=":"<=","!=":"!==","*=":"=~"}[e],l);default:return""}}function j(t){return!t||w(t)}function S(t){var r=t.conditions;return 1===r.length&&!0===r[0][0]?r[0][1]:{conditions:r}}function P(t){if(/rgb\(|rgba\(|hsl\(|hsla\(/.test(t)){var r=l()(t);return{color:r.toHexString(),fillOpacity:r.getAlpha()}}if(/color\(/.test(t)){var n=m(t.replace(/color\(|\)/g,"").split(","),2),e=n[0],o=n[1];return{color:e.replace(/\'/g,""),fillOpacity:parseFloat(void 0!==o?o:1)}}return{color:"#ffffff",fillOpacity:1}}const k=function(){function t(){!function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,t)}var r,n;return r=t,n=[{key:"readStyle",value:function(t){return new Promise((function(r,n){try{var e=function(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=r.color,e=r.pointSize,i=r.meta,a=null!=i&&i.names?o()(i.names,"'").split(","):[],l=c()(n)?[{filter:void 0,name:a[0]||"",symbolizers:[y({kind:e?"Mark":"Fill"},P(n))]}]:null==n||null===(t=n.conditions)||void 0===t?void 0:t.map((function(t,r){var n=t[1];return{filter:void 0,name:a[r]||"",symbolizers:[y({kind:e?"Mark":"Fill"},P(n))]}}));return{name:null!=i&&i.title?o()(i.title,"'"):"",rules:b(l).reverse()}}(t);r(e)}catch(t){n(t)}}))}},{key:"writeStyle",value:function(t){return new Promise((function(r,n){try{var e=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.name,n=t.rules,e=b(void 0===n?[]:n).reverse(),o=e.find((function(t){return"Mark"===t.symbolizers[0].kind})),i=e.map((function(t){var r=t.filter,n=t.symbolizers;return[j(r),o&&0===(n[0].fillOpacity||0)?"${COLOR}":"color('".concat(n[0].color,"', ").concat(n[0].fillOpacity,")")]})),c=i.find((function(t){return!0===m(t,1)[0]})),a=!c&&{show:i.filter((function(t){return!0!==t})).map((function(t){return m(t,1)[0]})).join(" || ")},l=e.map((function(t){var r=t.filter,n=t.symbolizers;return[j(r),n[0].radius||1]})),u=e.map((function(t){return t.name})),f=!!u.find((function(t){return!!t}));return y(y(y({},a),{},{color:S({conditions:c?i:[].concat(b(i),[[!0,"color('#ffffff', 1)"]])})},o&&{pointSize:S({conditions:c?l:[].concat(b(l),[[!0,1]])})}),(r||f)&&{meta:y(y({},r&&{title:"'".concat(r,"'")}),f&&{names:"'".concat(u.join(","),"'")})})}(t);r(e)}catch(t){n(t)}}))}}],n&&f(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),t}()}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/41547.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/41547.affd309bf2aa3f38d3a0.chunk.js deleted file mode 100644 index 04188c5543..0000000000 --- a/geonode_mapstore_client/static/mapstore/dist/js/41547.affd309bf2aa3f38d3a0.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[41547],{641547:(t,r,n)=>{"use strict";n.r(r),n.d(r,{default:()=>A});var e=n(92742),o=n.n(e),i=n(747037),c=n.n(i),a=n(717621),l=n.n(a);function u(t){return u="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},u(t)}function f(t,r){for(var n=0;nt.length)&&(r=t.length);for(var n=0,e=new Array(r);n":case"<":case">=":case"<=":case"!=":case"==":case"*=":var i=v(o,2),a=i[0],l=i[1];return function(t,r,n){var e="!(${".concat(t,"} === undefined").concat(null===n?"":" || ${".concat(t,"} === null"),")");return"=~"===r?"(".concat(e," && regExp('").concat(n,"').test(${").concat(t,"}) === true)"):"(".concat(e," && ${").concat(t,"} ").concat(r," ").concat(c()(n)?"'".concat(n,"'"):n,")")}(a,{"==":"===",">":">",">=":">=","<":"<","<=":"<=","!=":"!==","*=":"=~"}[e],l);default:return""}}function S(t){return!t||j(t)}function P(t){var r=t.conditions;return 1===r.length&&!0===r[0][0]?r[0][1]:{conditions:r}}function k(t){if(/rgb\(|rgba\(|hsl\(|hsla\(/.test(t)){var r=l()(t);return{color:r.toHexString(),fillOpacity:r.getAlpha()}}if(/color\(/.test(t)){var n=v(t.replace(/color\(|\)/g,"").split(","),2),e=n[0],o=n[1];return{color:e.replace(/\'/g,""),fillOpacity:parseFloat(void 0!==o?o:1)}}return{color:"#ffffff",fillOpacity:1}}const A=function(){function t(){!function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,t)}var r,n;return r=t,n=[{key:"readStyle",value:function(t){return new Promise((function(r,n){try{var e=function(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=r.color,e=r.pointSize,i=r.meta,a=null!=i&&i.names?o()(i.names,"'").split(","):[],l=c()(n)?[{filter:void 0,name:a[0]||"",symbolizers:[y({kind:e?"Mark":"Fill"},k(n))]}]:null==n||null===(t=n.conditions)||void 0===t?void 0:t.map((function(t,r){var n=t[1];return{filter:void 0,name:a[r]||"",symbolizers:[y({kind:e?"Mark":"Fill"},k(n))]}}));return{name:null!=i&&i.title?o()(i.title,"'"):"",rules:m(l).reverse()}}(t);r(e)}catch(t){n(t)}}))}},{key:"writeStyle",value:function(t){return new Promise((function(r,n){try{var e=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.name,n=t.rules,e=m(void 0===n?[]:n).reverse(),o=e.find((function(t){return"Mark"===t.symbolizers[0].kind})),i=e.map((function(t){var r=t.filter,n=t.symbolizers;return[S(r),o&&0===(n[0].fillOpacity||0)?"${COLOR}":"color('".concat(n[0].color,"', ").concat(n[0].fillOpacity,")")]})),c=i.find((function(t){return!0===v(t,1)[0]})),a=!c&&{show:i.filter((function(t){return!0!==t})).map((function(t){return v(t,1)[0]})).join(" || ")},l=e.map((function(t){var r=t.filter,n=t.symbolizers;return[S(r),n[0].radius||1]})),u=e.map((function(t){return t.name})),f=!!u.find((function(t){return!!t}));return y(y(y({},a),{},{color:P({conditions:c?i:[].concat(m(i),[[!0,"color('#ffffff', 1)"]])})},o&&{pointSize:P({conditions:c?l:[].concat(m(l),[[!0,1]])})}),(r||f)&&{meta:y(y({},r&&{title:"'".concat(r,"'")}),f&&{names:"'".concat(u.join(","),"'")})})}(t);r(e)}catch(t){n(t)}}))}}],n&&f(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),t}()}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/41692.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/41692.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/41692.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/41692.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/41745.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/41745.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/41745.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/41745.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/4181.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/4181.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/4181.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/4181.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/41857.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/41857.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/41857.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/41857.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/4187.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/4187.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/4187.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/4187.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/41876.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/41876.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/41876.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/41876.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/4190.018dc26183efb561a8b1.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/4190.018dc26183efb561a8b1.chunk.js new file mode 100644 index 0000000000..b9a33098be --- /dev/null +++ b/geonode_mapstore_client/static/mapstore/dist/js/4190.018dc26183efb561a8b1.chunk.js @@ -0,0 +1 @@ +(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[4190],{604206:(e,t,n)=>{"use strict";n.d(t,{hZ:()=>r,pb:()=>o,kD:()=>i,DI:()=>a,IC:()=>l,iU:()=>s,W7:()=>u,uB:()=>p,Rh:()=>c,G_:()=>f,vU:()=>m,Vw:()=>d,KD:()=>y,uj:()=>g,lo:()=>v,Yf:()=>b,fo:()=>h,PY:()=>E,bp:()=>S,oJ:()=>O,k4:()=>P,sc:()=>T,Li:()=>j});var r="CHANGE_DRAWING_STATUS",o="DRAW:END_DRAWING",i="DRAW:SET_CURRENT_STYLE",a="DRAW:GEOMETRY_CHANGED",l="DRAW:DRAW_SUPPORT_STOPPED",s="DRAW:FEATURES_SELECTED",u="DRAW:DRAWING_FEATURES",p="DRAW:SET_SNAPPING_LAYER",c="DRAW:SNAPPING_IS_LOADING",f="DRAW:TOGGLE_SNAPPING",m="DRAW:SET_SNAPPING_CONFIG";function d(e,t,n,r,o){return{type:a,features:e,owner:t,enableEdit:n,textChanged:r,circleChanged:o}}function y(){return{type:s,features:arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]}}function g(){return{type:u,features:arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]}}function v(){return{type:l}}function b(e,t,n,o,i,a){return{type:r,status:e,method:t,owner:n,features:o,options:i,style:a}}function h(e,t){return{type:o,geometry:e,owner:t}}function E(e){return{type:i,currentStyle:e}}var S=function(e){return b("clean","",e,[],{})};function O(){return{type:f}}function P(e){return{type:p,snappingLayer:e}}function T(){return{type:c}}function j(e,t,n){return{type:m,value:e,prop:t,pluginCfg:n}}},589602:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}n.d(t,{lD:()=>i,yK:()=>a,gf:()=>l,Qr:()=>s,Kx:()=>u,V:()=>p,Wt:()=>c,Qw:()=>f,GI:()=>m,MT:()=>d,XX:()=>y,sc:()=>g,qg:()=>v,Kf:()=>b,ES:()=>h,ud:()=>E,Bd:()=>S,pO:()=>O,Gd:()=>P,$3:()=>T,el:()=>j,CG:()=>w,h2:()=>A,NR:()=>C,RM:()=>M,dD:()=>N,wB:()=>x,Y_:()=>D,nl:()=>R,S1:()=>F});var i="CHANGE_MEASUREMENT_TOOL",a="CHANGE_MEASUREMENT_STATE",l="MEASUREMENT:CHANGE_UOM",s="MEASUREMENT:CHANGED_GEOMETRY",u="MEASUREMENT:SET_TEXT_LABELS",p="MEASUREMENT:SET_CURRENT_FEATURE",c="MEASUREMENT:ADD_AS_LAYER",f="MEASUREMENT:RESET_GEOMETRY",m="MEASUREMENT:CHANGE_FORMAT",d="MEASUREMENT:CHANGE_COORDINATES",y="MEASUREMENT:ADD_MEASURE_AS_ANNOTATION",g="MEASUREMENT:UPDATE_MEASURES",v="MEASUREMENT:INIT",b="MEASUREMENT:SET_MEASUREMENT_CONFIG",h="MEASUREMENT:SET_ANNOTATION_MEASUREMENT";function E(e,t,n,r,o){return{type:y,features:e,textLabels:t,uom:n,save:r,properties:o}}function S(e){return function(t){t(function(e){return function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{}}}},260024:(e,t,n)=>{"use strict";n.d(t,{Z:()=>z});var r=n(124852),o=n.n(r),i=n(675263),a=n.n(i),l=n(480681),s=n(743129),u=n(815135),p=n(91175),c=n.n(p),f=n(807654),m=n.n(f),d=n(227361),y=n.n(d),g=n(441609),v=n.n(g),b=n(86638),h=n(80717),E=n(245567),S=n(805346),O=n(446707),P=n(438261),T=n(281763),j=n.n(T),w=n(808797),A=n(986267),C=n(794192),M=n(867076),N=function(e,t,n){return j()(parseFloat(e))&&!isNaN(parseFloat(e))?(0,w.Ov)(parseFloat(e),t,n):e},x=function(e,t,n){return j()(parseFloat(e))&&!isNaN(parseFloat(e))?parseFloat((0,w.Ov)(e,n,t).toFixed(4)):e};const D=(0,M.compose)((0,M.defaultProps)({valueUom:"m",displayUom:"m",units:[{value:"degrees",label:"deg",originUom:"degrees"},{value:"ft",label:"ft",originUom:"m"},{value:"m",label:"m",originUom:"m"},{value:"km",label:"km",originUom:"m"},{value:"mi",label:"mi",originUom:"m"},{value:"nm",label:"nm",originUom:"m"}]}),(0,M.withStateHandlers)((function(e){var t=e.displayUom;return{uom:void 0===t?"nm":t}}),{setUom:function(){return function(e){return{uom:e}}}}),(0,M.withState)("localValue","setLocalValue"),(0,M.withPropsOnChange)(["value","localValue","uom","valueUom"],(function(e){var t=e.value,n=e.localValue,r=e.uom,o=e.valueUom;return{value:t===N(n,r,o)?n:x(t,r,o)}})),(0,M.withHandlers)({onChange:function(e){var t=e.uom,n=e.projection,r=e.valueUom,o=e.onChange,i=void 0===o?function(){}:o,a=e.setLocalValue,l=void 0===a?function(){}:a;return function(e){l(e),i(N(e,t,r),n)}}}))((function(e){var t=e.value,n=e.units,r=void 0===n?[]:n,i=e.uom,a=e.projection,s=void 0===a?"EPSG:3857":a,u=e.style,p=void 0===u?{display:"inline-flex",width:"100%"}:u,c=e.setUom,f=void 0===c?function(){}:c,m=e.onChange,d=void 0===m?function(){}:m,y=(0,A.getUnits)(s);return o().createElement(l.FormGroup,{style:p},o().createElement(C.Z,{value:t,placeholder:"radius",name:"radius",onChange:function(e){return d(e,i)},step:1,type:"number"}),o().createElement(l.FormControl,{componentClass:"select",placeholder:"select",value:i,onChange:function(e){return f(e.target.value)},style:{width:85}},r.filter((function(e){var t=e.originUom;return y===t})).map((function(e){return o().createElement("option",{key:e.value,value:e.value},e.label)}))))}));function R(e){return R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},R(e)}function F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function L(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:e.props.components,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2?arguments[2]:void 0;if(t&&t.length){var o=t.filter(O.Tl);return n?o.length>e.props.componentsValidation[e.props.type].min||o.length>=e.props.componentsValidation[e.props.type].min&&!(0,O.Tl)(t[r]):o.length>=e.props.componentsValidation[e.props.type].min}return!1})),B(k(e),"validateCircle",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.props.components,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.props.properties.radius;if(t&&t.length){var r=c()(t);return!m()(parseFloat(n))&&(0,O.Tl)(r)}return!1})),B(k(e),"validateText",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.props.components,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.props.properties.valueText;if(t&&t.length){var r=c()(t);return!!n&&(0,O.Tl)(r)}return!1})),B(k(e),"isValid",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.props.components,n=arguments.length>1?arguments[1]:void 0;return e[e.props.componentsValidation[e.props.type].validation](t,!1,n)})),B(k(e),"addCoordPolygon",(function(t){if("Polygon"===e.props.type){var n,r,o,i=t.filter(O.Tl),a=(null===(n=e.props.features[e.props.currentFeature])||void 0===n||null===(r=n.geometry)||void 0===r||null===(o=r.coordinates)||void 0===o?void 0:o[0])||[],l=void 0!==a?a.findIndex((function(e){return!(0,O.Tl)({lon:e[0],lat:e[1]})})):-1;return t.concat([i.length&&0!==l?i[0]:{lat:"",lon:""}])}return t})),B(k(e),"change",(function(t,n){var r=e.props.components,o=m()(parseFloat(n.lat))?"":parseFloat(n.lat),i=m()(parseFloat(n.lon))?"":parseFloat(n.lon);r[t]={lat:o,lon:i};var a=e.addCoordPolygon(r);e.props.onChange(a,e.props.properties.radius,e.props.properties.valueText,e.props.mapProjection),e.isValid(r)?(e.props.isMouseEnterEnabled||"LineString"===e.props.type||"Polygon"===e.props.type)&&e.props.onHighlightPoint(r[t]):((e.props.isMouseLeaveEnabled||"LineString"===e.props.type||"Polygon"===e.props.type)&&e.props.onHighlightPoint(null),e.props.onSetInvalidSelected("coords",r.map(O.bh)))})),e}return t=u,(n=[{key:"renderCircle",value:function(){var e=this;return o().createElement("div",{style:{flex:1,overflowY:"auto",padding:"0 10px"}},o().createElement("div",null,o().createElement(l.FormGroup,{validationState:this.getValidationStateRadius(this.props.properties.radius)},o().createElement(l.ControlLabel,null,o().createElement(S.Z,{msgId:"annotations.editor.radius"})),o().createElement(D,V({placeholder:"radius"},this.props.measureOptions,{value:this.props.properties.radius,projection:this.props.mapProjection,name:"radius",onChange:function(t,n){e.props.onValidateFeature(),e.isValid(e.props.components,t)?e.props.onChangeRadius(parseFloat(t),e.props.components.map(O.bh),n):""!==t?e.props.onChangeRadius(parseFloat(t),[],n):(e.props.onChangeRadius(null,e.props.components.map(O.bh),n),e.props.onSetInvalidSelected("radius",e.props.components.map(O.bh)))},step:1,type:"number"})))))}},{key:"render",value:function(){var e=this,t=this.props.features[this.props.currentFeature||0],n=y()(t,"geometry.textLabels",[]),r=y()(t,"properties.values",[]),i=this.props,a=i.componentsValidation,u=i.type,p=U(this.props.components),f=p.filter(O.Tl).length===p.length,m=this[a[u].validation]()&&f,d=[{value:"decimal",text:o().createElement(S.Z,{msgId:"annotations.editor.decimal"})},{value:"aeronautical",text:o().createElement(S.Z,{msgId:"annotations.editor.aeronautical"})}],g=[{glyph:m?"ok-sign text-success":"exclamation-mark text-danger",tooltipId:m?"annotations.editor.valid":a[u].notValid,visible:!0},{Element:function(){return o().createElement(Z,{noCaret:!0,title:o().createElement(W,{glyph:"cog"}),pullRight:!0,className:"square-button-md no-border",tooltip:"Format"},d.map((function(t){var n=t.text,r=t.value;return o().createElement(l.MenuItem,{active:e.props.format===r,key:r,onClick:function(){return e.props.onChangeFormat(r)}},n)})))}},{glyph:"plus",tooltipId:"annotations.editor.add",disabled:"Bearing"!==u&&this.props.properties.disabled,visible:!a[u].add||!a[u].max||this.props.components.length!==a[u].max,onClick:function(){var t=U(e.props.components);t=t.concat([{lat:"",lon:""}]),e.props.onChange(t,e.props.properties.radius,e.props.properties.valueText,e.props.mapProjection)}}];return o().createElement("div",{className:"coordinates-editor",style:this.props.style},o().createElement("div",{className:"measure-feature-selector"},o().createElement("div",null,this.props.showFeatureSelector?o().createElement(s.ZP,{value:this.props.currentFeature,disabled:this.props.properties.disabled,options:[].concat(U(this.props.features.map((function(t,n){var r=y()(t,"properties.values",[]),o="bearing"===(r[0]||{}).type?"Bearing":t.geometry.type;if(o!==e.props.type)return null;var i="LineString"===o?"Length":"Bearing"===o?"Bearing":"Area",a=r.length>0?"".concat(i," ").concat(r[0].formattedValue):"",l=r.length>1&&"Polygon"===o?", Perimeter: ".concat(r[1].formattedValue):"";return{label:"".concat(o," (").concat(a).concat(l,")"),value:n}}))),[{label:(0,b.S$)(this.context.messages,"annotations.editor.newFeature"),value:this.props.features.length}]).filter((function(e){return!!e})),onChange:function(t){return e.props.onChangeCurrentFeature(null==t?void 0:t.value)}}):null),o().createElement("div",null,o().createElement(h.Z,{btnGroupProps:{className:"pull-right"},btnDefaultProps:{className:"square-button-md no-border"},buttons:g}))),"Circle"===this.props.type&&this.renderCircle(),"Circle"===this.props.type&&o().createElement("div",{style:{flex:1,overflowY:"auto",paddingLeft:10,marginTop:10}},o().createElement("div",null,o().createElement(l.ControlLabel,null,o().createElement(S.Z,{msgId:"annotations.editor.center"})))),o().createElement("div",{className:"coordinates-row-container coordinates-row-type-".concat(u)},this.props.components.map((function(t,i){return o().createElement(o().Fragment,null,e.props.showLengthAndBearingLabel&&o().createElement("div",{className:"label-texts"},o().createElement("span",null,e.renderLabelTexts(i,{textLabels:n,featurePropValue:r}))),o().createElement(P.Z,{format:e.props.format,aeronauticalOptions:e.props.aeronauticalOptions,sortId:i,key:i+" key",disabled:e.props.properties.disabled&&(0,O.Tl)(t),renderer:e.props.renderer,isDraggable:e.props.isDraggable,isDraggableEnabled:e.props.isDraggable&&e[a[u].validation]()&&!e.props.properties.disabled,showDraggable:e.props.isDraggable&&!("Point"===e.props.type||"Text"===e.props.type||"Circle"===e.props.type),formatVisible:!1,removeVisible:a[u].remove,removeEnabled:e[a[u].validation](e.props.components,a[u].remove,i),onSubmit:e.change,onMouseEnter:function(t){(e.props.isMouseEnterEnabled||"LineString"===e.props.type||"Polygon"===e.props.type||"MultiPoint"===e.props.type)&&e.props.onHighlightPoint(t)},onMouseLeave:function(){(e.props.isMouseLeaveEnabled||"LineString"===e.props.type||"Polygon"===e.props.type||"MultiPoint"===e.props.type)&&e.props.onHighlightPoint(null)},onSort:function(t,n){var r=e.props.components.reduce((function(r,o,i){return t===i?[].concat(U(r),t>n?[L({},o),c()(e.props.components.filter((function(e,t){return t===n})))]:[c()(e.props.components.filter((function(e,t){return t===n}))),L({},o)]):n===i?U(r):[].concat(U(r),[L({},o)])}),[]).filter((function(e){return e}));e.isValid(r)?e.props.onChange(r):e.props.properties.isValidFeature&&e.props.onSetInvalidSelected("coords",e.props.components.map(O.bh))},idx:i,component:t,onRemove:function(){var t=e.props.components.filter((function(e,t){return t!==i}));e.isValid(t)?(e.props.isMouseEnterEnabled||"LineString"===e.props.type&&i!==t.length||"Polygon"===e.props.type?e.props.onHighlightPoint(t[i]):e.props.onHighlightPoint(null),e.props.onChange(t)):e.props.properties.isValidFeature&&e.props.onSetInvalidSelected("coords",e.props.components.map(O.bh))},onValidateFeature:e.props.onValidateFeature}))}))),(!this.props.components||0===this.props.components.length)&&o().createElement("div",{className:"text-center",style:{padding:15,paddingBottom:30}},o().createElement("i",null,o().createElement(S.Z,{msgId:"annotations.editor.addByClick"}))))}}])&&I(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u}(o().Component);B(Y,"propTypes",{components:a().array,measureOptions:a().object,onSetInvalidSelected:a().func,onChange:a().func,onChangeRadius:a().func,onHighlightPoint:a().func,onChangeText:a().func,onChangeFormat:a().func,onChangeCurrentFeature:a().func,format:a().string,aeronauticalOptions:a().object,componentsValidation:a().object,transitionProps:a().object,properties:a().object,mapProjection:a().string,features:a().array,currentFeature:a().number,showFeatureSelector:a().bool,type:a().string,isDraggable:a().bool,isMouseEnterEnabled:a().bool,isMouseLeaveEnabled:a().bool,showLengthAndBearingLabel:a().bool,renderer:a().string,style:a().object,onValidateFeature:a().func}),B(Y,"contextTypes",{messages:a().object}),B(Y,"defaultProps",{components:[],measureOptions:{},onChange:function(){},onChangeRadius:function(){},onHighlightPoint:function(){},onChangeFormat:function(){},onChangeText:function(){},onChangeCurrentFeature:function(){},onSetInvalidSelected:function(){},onValidateFeature:function(){},componentsValidation:{Bearing:{min:2,max:2,add:!0,remove:!0,validation:"validateCoordinates",notValid:"annotations.editor.notValidPolyline"},Polygon:{min:3,add:!0,remove:!0,validation:"validateCoordinates",notValid:"annotations.editor.notValidPolyline"},LineString:{min:2,add:!0,remove:!0,validation:"validateCoordinates",notValid:"annotations.editor.notValidPolyline"},MultiPoint:{min:2,add:!0,remove:!0,validation:"validateCoordinates",notValid:"annotations.editor.notValidPolyline"},Point:{min:1,max:1,add:!0,remove:!1,validation:"validateCoordinates",notValid:"annotations.editor.notValidMarker"},Circle:{min:1,max:1,add:!0,remove:!1,validation:"validateCircle",notValid:"annotations.editor.notValidCircle"},Text:{min:1,max:1,add:!0,remove:!1,validation:"validateText",notValid:"annotations.editor.notValidText"}},transitionProps:{transitionName:"switch-panel-transition",transitionEnterTimeout:300,transitionLeaveTimeout:300},features:[],isDraggable:!0,isMouseEnterEnabled:!1,isMouseLeaveEnabled:!1,properties:{},type:"Point",style:{display:"flex",flexDirection:"column",flex:1}});const z=(0,E.Z)(Y)},245567:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(124852),o=n.n(r),i=n(867076);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}var l=["onSort","isDraggable","items","containerId"];function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,l),f=a.map((function(e,t){return p(p({},e),{},{onSort:n,isDraggable:r,sortId:t,key:e.id||t,containerId:u})}));return o().createElement(e,s({},p(p({},c),{},{isDraggable:r}),{items:f}))}})))},998869:(e,t,n)=>{"use strict";n.d(t,{U:()=>c});var r=n(782904),o=n(49977),i=n.n(o),a=n(607147),l=n(242780),s=n(604206),u=n(801550),p=n(433528),c=function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(e,t){return i().Observable.from([(0,r.Xg)(t,"enabled",null)])},c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(e,t){return(0,a.Yq)(t)(e)};return e.ofType(l.Np,s.hZ,u.YD,p.$O).filter((function(e){var r=e.type,o=e.status,i=e.owner,a=e.eventName,f=e.toolName,m=c(t.getState(),n);switch(r){case p.$O:return"featureGrid"!==n;case u.YD:return m&&"click"===a&&f!==n;case s.hZ:return m&&("drawOrEdit"===o||"start"===o)&&i!==n;case l.Np:default:return m&&"annotations"!==n}})).switchMap((function(e){return c(t.getState(),n)?o(t.getState(),n,e):i().Observable.empty()}))}},808797:(e,t,n)=>{"use strict";n.d(t,{rp:()=>s,Ov:()=>p,wd:()=>c,L0:()=>f}),n(701469);var r=n(91175),o=n.n(r),i=n(807654),a=n.n(i);function l(e){var t=Math.floor(e),n=60*(e-t),r=Math.floor(n),o=60*(n-r);return t+"° "+r+"' "+Math.floor(o)+"'' "}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.measureTrueBearing,r=void 0!==n&&n,o=t.fractionDigits,i=void 0===o?0:o,a="";if(r){var s="";e>=0&&e<10?s="00":e>10&&e<100&&(s="0"),a=s+(i>0?e.toFixed(i):Math.floor(e))+"°"}else e>=0&&e<90?a="N "+l(e)+"E":e>90&&e<=180?a="S "+l(180-e)+"E":e>180&&e<270?a="S "+l(e-180)+"W":e>=270&&e<=360&&(a="N "+l(360-e)+"W");return a}var u={yd:{ft:3,m:.9144,km:9144e-7,yd:1,mi:.00056818181818,nm:.00049373650107},ft:{ft:1,m:.3048,km:3048e-7,yd:.33333333333334,mi:.0001893932,nm:164579e-9},m:{ft:3.28084,m:1,km:.001,yd:1.0936132983377,mi:621371e-9,nm:.000539956803},km:{ft:3280.84,m:1e3,km:1,yd:1093.6132983377,mi:.62137121212121,nm:.5399568207343395},mi:{ft:5280.000168959982,m:1609.3440514990027,km:1.6093440514990027,yd:1760,mi:1,nm:.8689762697078849},nm:{ft:6076.115679999979,m:1852.0000592639938,km:1.8520000592639938,yd:2025.3718285214,mi:1.150779484848481,nm:1},sqft:{sqft:1,sqm:.09290304,sqkm:9.2903043596611e-8,sqmi:3.587e-8,sqnm:2.7051601137505e-8},sqyd:{sqft:8.9999247491639,sqm:.83612040133779,sqkm:8.3612040133779e-7,sqyd:1,sqmi:3.228278917579e-7,sqnm:2.4346237458194e-7},sqm:{sqft:10.76391,sqm:1,sqkm:1e-6,sqyd:1.196,sqmi:3.8610215854245e-7,sqnm:2.91181e-7},sqkm:{sqft:10763910,sqm:1e6,sqkm:1,sqyd:1196e3,sqmi:.38610215854245,sqnm:.291181},sqmi:{sqft:27878398.920726,sqm:2589988.110336,sqkm:2.589988110336,sqyd:27878398.920726,sqmi:1,sqnm:.75415532795574},sqnm:{sqft:36966388.603652,sqm:3434290.0120544,sqkm:3.4342900120544,sqyd:36966388.603652,sqmi:1.325986786715,sqnm:1}};function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"m",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"m";return u[t]&&u[t][n]?e*u[t][n]:e}var c=function(e){return!a()(parseFloat(e[0]))&&!a()(parseFloat(e[1]))},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.coordinates,n=e.type,r=t;if("LineString"===n){if((r=t.filter(c)).length<2)return[]}else if("Polygon"===n){if((r=o()(t).filter(c)).length<3)return[[]];r=[r.concat([o()(r)])]}return r}},162192:(e,t,n)=>{"use strict";n.d(t,{zE:()=>P,k2:()=>j,tL:()=>C});var r=n(59854),o=n.n(r),i=n(385564),a=n.n(i),l=n(318029),s=n.n(l),u=n(944908),p=n.n(u),c=n(227361),f=n.n(c),m=n(423570),d=n.n(m),y=n(446707),g=n(808797),v=n(986267);function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:[];return p()(e.map((function(e){return"LineString"===e.geometry.type&&"bearing"===f()(e,"properties.values[0].type","")?"Bearing":e.geometry.type})))},w={offsetY:1,fontSize:"10",fontSizeUom:"px",fontFamily:"Courier New",font:"10px Courier New",textAlign:"center",color:"#000000",opacity:1,fillColor:"#000000",fillOpacity:1},A={offsetY:-15,fontSize:"13",fontSizeUom:"px",fontFamily:"Courier New",font:"13px Courier New",textAlign:"center",color:"#000000",opacity:1,fillColor:"#000000",fillOpacity:1},C=function(e,t,n,r,o,i){var l,u,c=(l=e,(u=p()(l.map((function(e){return f()(e,"properties.values[0].type","")})))).length>1?{title:"Multiple Measurement",iconGlyph:"geometry-collection"}:{title:P+" "+s()(u[0]),iconGlyph:"1-measure-"+u[0]});return{type:"FeatureCollection",features:[].concat(S(a()(e.map((function(e){return function(e,t,n){var r,o,i,a=n||A,l=!(null===(r=e.properties)||void 0===r||null===(o=r.values)||void 0===o||!o.find((function(e){return"bearing"===e.type})));return[{type:"Feature",geometry:{type:e.geometry.type,coordinates:(0,g.L0)(e.geometry),textLabels:e.geometry.textLabels},properties:{id:d()(),isValidFeature:!0,geometryGeodesic:"LineString"!==e.geometry.type||l?null:{type:"LineString",coordinates:(0,v.transformLineToArcs)(e.geometry.coordinates)},useGeodesicLines:"LineString"===e.geometry.type&&!l,values:(null===(i=e.properties)||void 0===i?void 0:i.values)||[]},style:[E(E({},y.z4[e.geometry.type]),{},{type:e.geometry.type,id:d()(),geometry:"LineString"!==e.geometry.type||l?null:"lineToArc",title:"".concat(e.geometry.type," Style"),filtering:!0})].concat("LineString"===e.geometry.type?(0,y.N_)():[])}].concat(S(e.properties.values.map((function(e){var n=e.value,r=e.formattedValue,o=e.type;return{type:"Feature",geometry:{type:"Point",coordinates:e.position},properties:{valueText:r||T(t,n)[o],isText:!0,isValidFeature:!0,id:d()()},style:E(E({},a),{},{id:d()(),filtering:!0,title:"Text Style",type:"Text"})}}))))}(e,n,i)})))),S(t.filter((function(e){return!!e})).map((function(e){var t=e.text;return{type:"Feature",geometry:{type:"Point",coordinates:e.position},properties:{valueText:t,isValidFeature:!0,isText:!0,id:d()()},style:E(E({},w),{},{id:d()(),filtering:!0,title:"Text Style",type:"Text"})}})))),properties:{id:r,description:o,type:P,title:c.title,iconGlyph:c.iconGlyph},style:{}}}}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/4190.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/4190.affd309bf2aa3f38d3a0.chunk.js deleted file mode 100644 index 99765c7d1d..0000000000 --- a/geonode_mapstore_client/static/mapstore/dist/js/4190.affd309bf2aa3f38d3a0.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[4190],{604206:(e,t,n)=>{"use strict";n.d(t,{hZ:()=>r,pb:()=>o,kD:()=>i,DI:()=>a,IC:()=>l,iU:()=>s,W7:()=>u,uB:()=>p,Rh:()=>c,G_:()=>f,vU:()=>m,Vw:()=>d,KD:()=>y,uj:()=>g,lo:()=>v,Yf:()=>b,fo:()=>h,PY:()=>E,bp:()=>S,oJ:()=>O,k4:()=>P,sc:()=>T,Li:()=>j});var r="CHANGE_DRAWING_STATUS",o="DRAW:END_DRAWING",i="DRAW:SET_CURRENT_STYLE",a="DRAW:GEOMETRY_CHANGED",l="DRAW:DRAW_SUPPORT_STOPPED",s="DRAW:FEATURES_SELECTED",u="DRAW:DRAWING_FEATURES",p="DRAW:SET_SNAPPING_LAYER",c="DRAW:SNAPPING_IS_LOADING",f="DRAW:TOGGLE_SNAPPING",m="DRAW:SET_SNAPPING_CONFIG";function d(e,t,n,r,o){return{type:a,features:e,owner:t,enableEdit:n,textChanged:r,circleChanged:o}}function y(){return{type:s,features:arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]}}function g(){return{type:u,features:arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]}}function v(){return{type:l}}function b(e,t,n,o,i,a){return{type:r,status:e,method:t,owner:n,features:o,options:i,style:a}}function h(e,t){return{type:o,geometry:e,owner:t}}function E(e){return{type:i,currentStyle:e}}var S=function(e){return b("clean","",e,[],{})};function O(){return{type:f}}function P(e){return{type:p,snappingLayer:e}}function T(){return{type:c}}function j(e,t,n){return{type:m,value:e,prop:t,pluginCfg:n}}},589602:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===r(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{lD:()=>a,yK:()=>l,gf:()=>s,Qr:()=>u,Kx:()=>p,V:()=>c,Wt:()=>f,Qw:()=>m,GI:()=>d,MT:()=>y,XX:()=>g,sc:()=>v,qg:()=>b,Kf:()=>h,ES:()=>E,ud:()=>S,Bd:()=>O,pO:()=>P,Gd:()=>T,$3:()=>j,el:()=>w,CG:()=>A,h2:()=>C,NR:()=>M,RM:()=>N,dD:()=>x,wB:()=>D,Y_:()=>R,nl:()=>F,S1:()=>L});var a="CHANGE_MEASUREMENT_TOOL",l="CHANGE_MEASUREMENT_STATE",s="MEASUREMENT:CHANGE_UOM",u="MEASUREMENT:CHANGED_GEOMETRY",p="MEASUREMENT:SET_TEXT_LABELS",c="MEASUREMENT:SET_CURRENT_FEATURE",f="MEASUREMENT:ADD_AS_LAYER",m="MEASUREMENT:RESET_GEOMETRY",d="MEASUREMENT:CHANGE_FORMAT",y="MEASUREMENT:CHANGE_COORDINATES",g="MEASUREMENT:ADD_MEASURE_AS_ANNOTATION",v="MEASUREMENT:UPDATE_MEASURES",b="MEASUREMENT:INIT",h="MEASUREMENT:SET_MEASUREMENT_CONFIG",E="MEASUREMENT:SET_ANNOTATION_MEASUREMENT";function S(e,t,n,r,o){return{type:g,features:e,textLabels:t,uom:n,save:r,properties:o}}function O(e){return function(t){t(function(e){return function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{}}}},260024:(e,t,n)=>{"use strict";n.d(t,{Z:()=>z});var r=n(124852),o=n.n(r),i=n(675263),a=n.n(i),l=n(480681),s=n(743129),u=n(815135),p=n(91175),c=n.n(p),f=n(807654),m=n.n(f),d=n(227361),y=n.n(d),g=n(441609),v=n.n(g),b=n(86638),h=n(80717),E=n(245567),S=n(805346),O=n(446707),P=n(438261),T=n(281763),j=n.n(T),w=n(808797),A=n(986267),C=n(794192),M=n(867076),N=function(e,t,n){return j()(parseFloat(e))&&!isNaN(parseFloat(e))?(0,w.Ov)(parseFloat(e),t,n):e},x=function(e,t,n){return j()(parseFloat(e))&&!isNaN(parseFloat(e))?parseFloat((0,w.Ov)(e,n,t).toFixed(4)):e};const D=(0,M.compose)((0,M.defaultProps)({valueUom:"m",displayUom:"m",units:[{value:"degrees",label:"deg",originUom:"degrees"},{value:"ft",label:"ft",originUom:"m"},{value:"m",label:"m",originUom:"m"},{value:"km",label:"km",originUom:"m"},{value:"mi",label:"mi",originUom:"m"},{value:"nm",label:"nm",originUom:"m"}]}),(0,M.withStateHandlers)((function(e){var t=e.displayUom;return{uom:void 0===t?"nm":t}}),{setUom:function(){return function(e){return{uom:e}}}}),(0,M.withState)("localValue","setLocalValue"),(0,M.withPropsOnChange)(["value","localValue","uom","valueUom"],(function(e){var t=e.value,n=e.localValue,r=e.uom,o=e.valueUom;return{value:t===N(n,r,o)?n:x(t,r,o)}})),(0,M.withHandlers)({onChange:function(e){var t=e.uom,n=e.projection,r=e.valueUom,o=e.onChange,i=void 0===o?function(){}:o,a=e.setLocalValue,l=void 0===a?function(){}:a;return function(e){l(e),i(N(e,t,r),n)}}}))((function(e){var t=e.value,n=e.units,r=void 0===n?[]:n,i=e.uom,a=e.projection,s=void 0===a?"EPSG:3857":a,u=e.style,p=void 0===u?{display:"inline-flex",width:"100%"}:u,c=e.setUom,f=void 0===c?function(){}:c,m=e.onChange,d=void 0===m?function(){}:m,y=(0,A.getUnits)(s);return o().createElement(l.FormGroup,{style:p},o().createElement(C.Z,{value:t,placeholder:"radius",name:"radius",onChange:function(e){return d(e,i)},step:1,type:"number"}),o().createElement(l.FormControl,{componentClass:"select",placeholder:"select",value:i,onChange:function(e){return f(e.target.value)},style:{width:85}},r.filter((function(e){var t=e.originUom;return y===t})).map((function(e){return o().createElement("option",{key:e.value,value:e.value},e.label)}))))}));function R(e){return R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},R(e)}function F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function L(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:e.props.components,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2?arguments[2]:void 0;if(t&&t.length){var o=t.filter(O.Tl);return n?o.length>e.props.componentsValidation[e.props.type].min||o.length>=e.props.componentsValidation[e.props.type].min&&!(0,O.Tl)(t[r]):o.length>=e.props.componentsValidation[e.props.type].min}return!1})),B(k(e),"validateCircle",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.props.components,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.props.properties.radius;if(t&&t.length){var r=c()(t);return!m()(parseFloat(n))&&(0,O.Tl)(r)}return!1})),B(k(e),"validateText",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.props.components,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.props.properties.valueText;if(t&&t.length){var r=c()(t);return!!n&&(0,O.Tl)(r)}return!1})),B(k(e),"isValid",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.props.components,n=arguments.length>1?arguments[1]:void 0;return e[e.props.componentsValidation[e.props.type].validation](t,!1,n)})),B(k(e),"addCoordPolygon",(function(t){if("Polygon"===e.props.type){var n,r,o,i=t.filter(O.Tl),a=(null===(n=e.props.features[e.props.currentFeature])||void 0===n||null===(r=n.geometry)||void 0===r||null===(o=r.coordinates)||void 0===o?void 0:o[0])||[],l=void 0!==a?a.findIndex((function(e){return!(0,O.Tl)({lon:e[0],lat:e[1]})})):-1;return t.concat([i.length&&0!==l?i[0]:{lat:"",lon:""}])}return t})),B(k(e),"change",(function(t,n){var r=e.props.components,o=m()(parseFloat(n.lat))?"":parseFloat(n.lat),i=m()(parseFloat(n.lon))?"":parseFloat(n.lon);r[t]={lat:o,lon:i};var a=e.addCoordPolygon(r);e.props.onChange(a,e.props.properties.radius,e.props.properties.valueText,e.props.mapProjection),e.isValid(r)?(e.props.isMouseEnterEnabled||"LineString"===e.props.type||"Polygon"===e.props.type)&&e.props.onHighlightPoint(r[t]):((e.props.isMouseLeaveEnabled||"LineString"===e.props.type||"Polygon"===e.props.type)&&e.props.onHighlightPoint(null),e.props.onSetInvalidSelected("coords",r.map(O.bh)))})),e}return t=u,(n=[{key:"renderCircle",value:function(){var e=this;return o().createElement("div",{style:{flex:1,overflowY:"auto",padding:"0 10px"}},o().createElement("div",null,o().createElement(l.FormGroup,{validationState:this.getValidationStateRadius(this.props.properties.radius)},o().createElement(l.ControlLabel,null,o().createElement(S.Z,{msgId:"annotations.editor.radius"})),o().createElement(D,V({placeholder:"radius"},this.props.measureOptions,{value:this.props.properties.radius,projection:this.props.mapProjection,name:"radius",onChange:function(t,n){e.props.onValidateFeature(),e.isValid(e.props.components,t)?e.props.onChangeRadius(parseFloat(t),e.props.components.map(O.bh),n):""!==t?e.props.onChangeRadius(parseFloat(t),[],n):(e.props.onChangeRadius(null,e.props.components.map(O.bh),n),e.props.onSetInvalidSelected("radius",e.props.components.map(O.bh)))},step:1,type:"number"})))))}},{key:"render",value:function(){var e=this,t=this.props.features[this.props.currentFeature||0],n=y()(t,"geometry.textLabels",[]),r=y()(t,"properties.values",[]),i=this.props,a=i.componentsValidation,u=i.type,p=U(this.props.components),f=p.filter(O.Tl).length===p.length,m=this[a[u].validation]()&&f,d=[{value:"decimal",text:o().createElement(S.Z,{msgId:"annotations.editor.decimal"})},{value:"aeronautical",text:o().createElement(S.Z,{msgId:"annotations.editor.aeronautical"})}],g=[{glyph:m?"ok-sign text-success":"exclamation-mark text-danger",tooltipId:m?"annotations.editor.valid":a[u].notValid,visible:!0},{Element:function(){return o().createElement(Z,{noCaret:!0,title:o().createElement(W,{glyph:"cog"}),pullRight:!0,className:"square-button-md no-border",tooltip:"Format"},d.map((function(t){var n=t.text,r=t.value;return o().createElement(l.MenuItem,{active:e.props.format===r,key:r,onClick:function(){return e.props.onChangeFormat(r)}},n)})))}},{glyph:"plus",tooltipId:"annotations.editor.add",disabled:"Bearing"!==u&&this.props.properties.disabled,visible:!a[u].add||!a[u].max||this.props.components.length!==a[u].max,onClick:function(){var t=U(e.props.components);t=t.concat([{lat:"",lon:""}]),e.props.onChange(t,e.props.properties.radius,e.props.properties.valueText,e.props.mapProjection)}}];return o().createElement("div",{className:"coordinates-editor",style:this.props.style},o().createElement("div",{className:"measure-feature-selector"},o().createElement("div",null,this.props.showFeatureSelector?o().createElement(s.ZP,{value:this.props.currentFeature,disabled:this.props.properties.disabled,options:[].concat(U(this.props.features.map((function(t,n){var r=y()(t,"properties.values",[]),o="bearing"===(r[0]||{}).type?"Bearing":t.geometry.type;if(o!==e.props.type)return null;var i="LineString"===o?"Length":"Bearing"===o?"Bearing":"Area",a=r.length>0?"".concat(i," ").concat(r[0].formattedValue):"",l=r.length>1&&"Polygon"===o?", Perimeter: ".concat(r[1].formattedValue):"";return{label:"".concat(o," (").concat(a).concat(l,")"),value:n}}))),[{label:(0,b.S$)(this.context.messages,"annotations.editor.newFeature"),value:this.props.features.length}]).filter((function(e){return!!e})),onChange:function(t){return e.props.onChangeCurrentFeature(null==t?void 0:t.value)}}):null),o().createElement("div",null,o().createElement(h.Z,{btnGroupProps:{className:"pull-right"},btnDefaultProps:{className:"square-button-md no-border"},buttons:g}))),"Circle"===this.props.type&&this.renderCircle(),"Circle"===this.props.type&&o().createElement("div",{style:{flex:1,overflowY:"auto",paddingLeft:10,marginTop:10}},o().createElement("div",null,o().createElement(l.ControlLabel,null,o().createElement(S.Z,{msgId:"annotations.editor.center"})))),o().createElement("div",{className:"coordinates-row-container coordinates-row-type-".concat(u)},this.props.components.map((function(t,i){return o().createElement(o().Fragment,null,e.props.showLengthAndBearingLabel&&o().createElement("div",{className:"label-texts"},o().createElement("span",null,e.renderLabelTexts(i,{textLabels:n,featurePropValue:r}))),o().createElement(P.Z,{format:e.props.format,aeronauticalOptions:e.props.aeronauticalOptions,sortId:i,key:i+" key",disabled:e.props.properties.disabled&&(0,O.Tl)(t),renderer:e.props.renderer,isDraggable:e.props.isDraggable,isDraggableEnabled:e.props.isDraggable&&e[a[u].validation]()&&!e.props.properties.disabled,showDraggable:e.props.isDraggable&&!("Point"===e.props.type||"Text"===e.props.type||"Circle"===e.props.type),formatVisible:!1,removeVisible:a[u].remove,removeEnabled:e[a[u].validation](e.props.components,a[u].remove,i),onSubmit:e.change,onMouseEnter:function(t){(e.props.isMouseEnterEnabled||"LineString"===e.props.type||"Polygon"===e.props.type||"MultiPoint"===e.props.type)&&e.props.onHighlightPoint(t)},onMouseLeave:function(){(e.props.isMouseLeaveEnabled||"LineString"===e.props.type||"Polygon"===e.props.type||"MultiPoint"===e.props.type)&&e.props.onHighlightPoint(null)},onSort:function(t,n){var r=e.props.components.reduce((function(r,o,i){return t===i?[].concat(U(r),t>n?[L({},o),c()(e.props.components.filter((function(e,t){return t===n})))]:[c()(e.props.components.filter((function(e,t){return t===n}))),L({},o)]):n===i?U(r):[].concat(U(r),[L({},o)])}),[]).filter((function(e){return e}));e.isValid(r)?e.props.onChange(r):e.props.properties.isValidFeature&&e.props.onSetInvalidSelected("coords",e.props.components.map(O.bh))},idx:i,component:t,onRemove:function(){var t=e.props.components.filter((function(e,t){return t!==i}));e.isValid(t)?(e.props.isMouseEnterEnabled||"LineString"===e.props.type&&i!==t.length||"Polygon"===e.props.type?e.props.onHighlightPoint(t[i]):e.props.onHighlightPoint(null),e.props.onChange(t)):e.props.properties.isValidFeature&&e.props.onSetInvalidSelected("coords",e.props.components.map(O.bh))},onValidateFeature:e.props.onValidateFeature}))}))),(!this.props.components||0===this.props.components.length)&&o().createElement("div",{className:"text-center",style:{padding:15,paddingBottom:30}},o().createElement("i",null,o().createElement(S.Z,{msgId:"annotations.editor.addByClick"}))))}}])&&I(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u}(o().Component);B(Y,"propTypes",{components:a().array,measureOptions:a().object,onSetInvalidSelected:a().func,onChange:a().func,onChangeRadius:a().func,onHighlightPoint:a().func,onChangeText:a().func,onChangeFormat:a().func,onChangeCurrentFeature:a().func,format:a().string,aeronauticalOptions:a().object,componentsValidation:a().object,transitionProps:a().object,properties:a().object,mapProjection:a().string,features:a().array,currentFeature:a().number,showFeatureSelector:a().bool,type:a().string,isDraggable:a().bool,isMouseEnterEnabled:a().bool,isMouseLeaveEnabled:a().bool,showLengthAndBearingLabel:a().bool,renderer:a().string,style:a().object,onValidateFeature:a().func}),B(Y,"contextTypes",{messages:a().object}),B(Y,"defaultProps",{components:[],measureOptions:{},onChange:function(){},onChangeRadius:function(){},onHighlightPoint:function(){},onChangeFormat:function(){},onChangeText:function(){},onChangeCurrentFeature:function(){},onSetInvalidSelected:function(){},onValidateFeature:function(){},componentsValidation:{Bearing:{min:2,max:2,add:!0,remove:!0,validation:"validateCoordinates",notValid:"annotations.editor.notValidPolyline"},Polygon:{min:3,add:!0,remove:!0,validation:"validateCoordinates",notValid:"annotations.editor.notValidPolyline"},LineString:{min:2,add:!0,remove:!0,validation:"validateCoordinates",notValid:"annotations.editor.notValidPolyline"},MultiPoint:{min:2,add:!0,remove:!0,validation:"validateCoordinates",notValid:"annotations.editor.notValidPolyline"},Point:{min:1,max:1,add:!0,remove:!1,validation:"validateCoordinates",notValid:"annotations.editor.notValidMarker"},Circle:{min:1,max:1,add:!0,remove:!1,validation:"validateCircle",notValid:"annotations.editor.notValidCircle"},Text:{min:1,max:1,add:!0,remove:!1,validation:"validateText",notValid:"annotations.editor.notValidText"}},transitionProps:{transitionName:"switch-panel-transition",transitionEnterTimeout:300,transitionLeaveTimeout:300},features:[],isDraggable:!0,isMouseEnterEnabled:!1,isMouseLeaveEnabled:!1,properties:{},type:"Point",style:{display:"flex",flexDirection:"column",flex:1}});const z=(0,E.Z)(Y)},245567:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(124852),o=n.n(r),i=n(867076);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}var l=["onSort","isDraggable","items","containerId"];function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,l),f=a.map((function(e,t){return p(p({},e),{},{onSort:n,isDraggable:r,sortId:t,key:e.id||t,containerId:u})}));return o().createElement(e,s({},p(p({},c),{},{isDraggable:r}),{items:f}))}})))},998869:(e,t,n)=>{"use strict";n.d(t,{U:()=>c});var r=n(782904),o=n(49977),i=n.n(o),a=n(607147),l=n(242780),s=n(604206),u=n(801550),p=n(433528),c=function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(e,t){return i().Observable.from([(0,r.Xg)(t,"enabled",null)])},c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(e,t){return(0,a.Yq)(t)(e)};return e.ofType(l.Np,s.hZ,u.YD,p.$O).filter((function(e){var r=e.type,o=e.status,i=e.owner,a=e.eventName,f=e.toolName,m=c(t.getState(),n);switch(r){case p.$O:return"featureGrid"!==n;case u.YD:return m&&"click"===a&&f!==n;case s.hZ:return m&&("drawOrEdit"===o||"start"===o)&&i!==n;case l.Np:default:return m&&"annotations"!==n}})).switchMap((function(e){return c(t.getState(),n)?o(t.getState(),n,e):i().Observable.empty()}))}},808797:(e,t,n)=>{"use strict";n.d(t,{rp:()=>s,Ov:()=>p,wd:()=>c,L0:()=>f}),n(701469);var r=n(91175),o=n.n(r),i=n(807654),a=n.n(i);function l(e){var t=Math.floor(e),n=60*(e-t),r=Math.floor(n),o=60*(n-r);return t+"° "+r+"' "+Math.floor(o)+"'' "}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.measureTrueBearing,r=void 0!==n&&n,o=t.fractionDigits,i=void 0===o?0:o,a="";if(r){var s="";e>=0&&e<10?s="00":e>10&&e<100&&(s="0"),a=s+(i>0?e.toFixed(i):Math.floor(e))+"°"}else e>=0&&e<90?a="N "+l(e)+"E":e>90&&e<=180?a="S "+l(180-e)+"E":e>180&&e<270?a="S "+l(e-180)+"W":e>=270&&e<=360&&(a="N "+l(360-e)+"W");return a}var u={yd:{ft:3,m:.9144,km:9144e-7,yd:1,mi:.00056818181818,nm:.00049373650107},ft:{ft:1,m:.3048,km:3048e-7,yd:.33333333333334,mi:.0001893932,nm:164579e-9},m:{ft:3.28084,m:1,km:.001,yd:1.0936132983377,mi:621371e-9,nm:.000539956803},km:{ft:3280.84,m:1e3,km:1,yd:1093.6132983377,mi:.62137121212121,nm:.5399568207343395},mi:{ft:5280.000168959982,m:1609.3440514990027,km:1.6093440514990027,yd:1760,mi:1,nm:.8689762697078849},nm:{ft:6076.115679999979,m:1852.0000592639938,km:1.8520000592639938,yd:2025.3718285214,mi:1.150779484848481,nm:1},sqft:{sqft:1,sqm:.09290304,sqkm:9.2903043596611e-8,sqmi:3.587e-8,sqnm:2.7051601137505e-8},sqyd:{sqft:8.9999247491639,sqm:.83612040133779,sqkm:8.3612040133779e-7,sqyd:1,sqmi:3.228278917579e-7,sqnm:2.4346237458194e-7},sqm:{sqft:10.76391,sqm:1,sqkm:1e-6,sqyd:1.196,sqmi:3.8610215854245e-7,sqnm:2.91181e-7},sqkm:{sqft:10763910,sqm:1e6,sqkm:1,sqyd:1196e3,sqmi:.38610215854245,sqnm:.291181},sqmi:{sqft:27878398.920726,sqm:2589988.110336,sqkm:2.589988110336,sqyd:27878398.920726,sqmi:1,sqnm:.75415532795574},sqnm:{sqft:36966388.603652,sqm:3434290.0120544,sqkm:3.4342900120544,sqyd:36966388.603652,sqmi:1.325986786715,sqnm:1}};function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"m",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"m";return u[t]&&u[t][n]?e*u[t][n]:e}var c=function(e){return!a()(parseFloat(e[0]))&&!a()(parseFloat(e[1]))},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.coordinates,n=e.type,r=t;if("LineString"===n){if((r=t.filter(c)).length<2)return[]}else if("Polygon"===n){if((r=o()(t).filter(c)).length<3)return[[]];r=[r.concat([o()(r)])]}return r}},162192:(e,t,n)=>{"use strict";n.d(t,{zE:()=>T,k2:()=>w,tL:()=>M});var r=n(59854),o=n.n(r),i=n(385564),a=n.n(i),l=n(318029),s=n.n(l),u=n(944908),p=n.n(u),c=n(227361),f=n.n(c),m=n(423570),d=n.n(m),y=n(446707),g=n(808797),v=n(986267);function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:[];return p()(e.map((function(e){return"LineString"===e.geometry.type&&"bearing"===f()(e,"properties.values[0].type","")?"Bearing":e.geometry.type})))},A={offsetY:1,fontSize:"10",fontSizeUom:"px",fontFamily:"Courier New",font:"10px Courier New",textAlign:"center",color:"#000000",opacity:1,fillColor:"#000000",fillOpacity:1},C={offsetY:-15,fontSize:"13",fontSizeUom:"px",fontFamily:"Courier New",font:"13px Courier New",textAlign:"center",color:"#000000",opacity:1,fillColor:"#000000",fillOpacity:1},M=function(e,t,n,r,o,i){var l,u,c=(l=e,(u=p()(l.map((function(e){return f()(e,"properties.values[0].type","")})))).length>1?{title:"Multiple Measurement",iconGlyph:"geometry-collection"}:{title:T+" "+s()(u[0]),iconGlyph:"1-measure-"+u[0]});return{type:"FeatureCollection",features:[].concat(O(a()(e.map((function(e){return function(e,t,n){var r,o,i,a=n||C,l=!(null===(r=e.properties)||void 0===r||null===(o=r.values)||void 0===o||!o.find((function(e){return"bearing"===e.type})));return[{type:"Feature",geometry:{type:e.geometry.type,coordinates:(0,g.L0)(e.geometry),textLabels:e.geometry.textLabels},properties:{id:d()(),isValidFeature:!0,geometryGeodesic:"LineString"!==e.geometry.type||l?null:{type:"LineString",coordinates:(0,v.transformLineToArcs)(e.geometry.coordinates)},useGeodesicLines:"LineString"===e.geometry.type&&!l,values:(null===(i=e.properties)||void 0===i?void 0:i.values)||[]},style:[E(E({},y.z4[e.geometry.type]),{},{type:e.geometry.type,id:d()(),geometry:"LineString"!==e.geometry.type||l?null:"lineToArc",title:"".concat(e.geometry.type," Style"),filtering:!0})].concat("LineString"===e.geometry.type?(0,y.N_)():[])}].concat(O(e.properties.values.map((function(e){var n=e.value,r=e.formattedValue,o=e.type;return{type:"Feature",geometry:{type:"Point",coordinates:e.position},properties:{valueText:r||j(t,n)[o],isText:!0,isValidFeature:!0,id:d()()},style:E(E({},a),{},{id:d()(),filtering:!0,title:"Text Style",type:"Text"})}}))))}(e,n,i)})))),O(t.filter((function(e){return!!e})).map((function(e){var t=e.text;return{type:"Feature",geometry:{type:"Point",coordinates:e.position},properties:{valueText:t,isValidFeature:!0,isText:!0,id:d()()},style:E(E({},A),{},{id:d()(),filtering:!0,title:"Text Style",type:"Text"})}})))),properties:{id:r,description:o,type:T,title:c.title,iconGlyph:c.iconGlyph},style:{}}}}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/41932.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/41932.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/41932.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/41932.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/41983.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/41983.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/41983.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/41983.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/42007.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/42007.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/42007.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/42007.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/42039.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/42039.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/42039.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/42039.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/42043.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/42043.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/42043.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/42043.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/42081.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/42081.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/42081.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/42081.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/42379.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/42379.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/42379.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/42379.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/42531.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/42531.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/42531.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/42531.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/42542.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/42542.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/42542.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/42542.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/42803.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/42803.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/42803.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/42803.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/42860.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/42860.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/42860.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/42860.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/4294.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/4294.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/4294.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/4294.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/43009.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/43009.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/43009.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/43009.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/43109.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/43109.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/43109.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/43109.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/43122.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/43122.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/43122.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/43122.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/43129.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/43129.018dc26183efb561a8b1.chunk.js similarity index 99% rename from geonode_mapstore_client/static/mapstore/dist/js/43129.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/43129.018dc26183efb561a8b1.chunk.js index 1b59119ed1..83684984fd 100644 --- a/geonode_mapstore_client/static/mapstore/dist/js/43129.affd309bf2aa3f38d3a0.chunk.js +++ b/geonode_mapstore_client/static/mapstore/dist/js/43129.018dc26183efb561a8b1.chunk.js @@ -1,2 +1,2 @@ -/*! For license information please see 43129.affd309bf2aa3f38d3a0.chunk.js.LICENSE.txt */ +/*! For license information please see 43129.018dc26183efb561a8b1.chunk.js.LICENSE.txt */ (self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[43129],{743129:(e,t,u)=>{"use strict";u.d(t,{ZP:()=>Z});var n=u(366680),o=u(294184),s=u.n(o),i=u(675263),r=u.n(i),a=u(124852),l=u.n(a),p=u(180307),c=function(e){var t=e.onMouseDown;return l().createElement("span",{className:"Select-arrow",onMouseDown:t})};c.propTypes={onMouseDown:r().func};var h=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}],d=function(e){for(var t=0;t-1)return!1;if(n.filterOption)return n.filterOption.call(void 0,e,t);if(!t)return!0;var o=e[n.valueKey],s=e[n.labelKey],i=f(o),r=f(s);if(!i&&!r)return!1;var a=i?String(o):null,l=r?String(s):null;return n.ignoreAccents&&(a&&"label"!==n.matchProp&&(a=d(a)),l&&"value"!==n.matchProp&&(l=d(l))),n.ignoreCase&&(a&&"label"!==n.matchProp&&(a=a.toLowerCase()),l&&"value"!==n.matchProp&&(l=l.toLowerCase())),"start"===n.matchPos?a&&"label"!==n.matchProp&&a.substr(0,t.length)===t||l&&"value"!==n.matchProp&&l.substr(0,t.length)===t:a&&"label"!==n.matchProp&&a.indexOf(t)>=0||l&&"value"!==n.matchProp&&l.indexOf(t)>=0}))},E=function(e){var t=e.focusedOption,u=e.focusOption,n=e.inputValue,o=e.instancePrefix,i=e.onFocus,r=e.onOptionRef,a=e.onSelect,p=e.optionClassName,c=e.optionComponent,h=e.optionRenderer,d=e.options,f=e.removeValue,v=e.selectValue,E=e.valueArray,b=e.valueKey,y=c;return d.map((function(e,c){var d=E&&E.some((function(t){return t[b]===e[b]})),g=e===t,m=s()(p,{"Select-option":!0,"is-selected":d,"is-focused":g,"is-disabled":e.disabled});return l().createElement(y,{className:m,focusOption:u,inputValue:n,instancePrefix:o,isDisabled:e.disabled,isFocused:g,isSelected:d,key:"option-"+c+"-"+e[b],onFocus:i,onSelect:a,option:e,optionIndex:c,ref:function(e){r(e,g)},removeValue:f,selectValue:v},h(e,c,n))}))};E.propTypes={focusOption:r().func,focusedOption:r().object,inputValue:r().string,instancePrefix:r().string,onFocus:r().func,onOptionRef:r().func,onSelect:r().func,optionClassName:r().string,optionComponent:r().func,optionRenderer:r().func,options:r().array,removeValue:r().func,selectValue:r().func,valueArray:r().array,valueKey:r().string};var b=function(e){e.preventDefault(),e.stopPropagation(),"A"===e.target.tagName&&"href"in e.target&&(e.target.target?window.open(e.target.href,e.target.target):window.location.href=e.target.href)},y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g=(function(){function e(e){this.value=e}function t(t){var u,n;function o(u,n){try{var i=t[u](n),r=i.value;r instanceof e?Promise.resolve(r.value).then((function(e){o("next",e)}),(function(e){o("throw",e)})):s(i.done?"return":"normal",i.value)}catch(e){s("throw",e)}}function s(e,t){switch(e){case"return":u.resolve({value:t,done:!0});break;case"throw":u.reject(t);break;default:u.resolve({value:t,done:!1})}(u=u.next)?o(u.key,u.arg):n=null}this._invoke=function(e,t){return new Promise((function(s,i){var r={key:e,arg:t,resolve:s,reject:i,next:null};n?n=n.next=r:(u=n=r,o(e,t))}))},"function"!=typeof t.return&&(this.return=void 0)}"function"==typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)}}(),function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}),m=function(){function e(e,t){for(var u=0;u=0||Object.prototype.hasOwnProperty.call(e,n)&&(u[n]=e[n]);return u},D=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},k=function(e){function t(e){g(this,t);var u=D(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return u.handleMouseDown=u.handleMouseDown.bind(u),u.handleMouseEnter=u.handleMouseEnter.bind(u),u.handleMouseMove=u.handleMouseMove.bind(u),u.handleTouchStart=u.handleTouchStart.bind(u),u.handleTouchEnd=u.handleTouchEnd.bind(u),u.handleTouchMove=u.handleTouchMove.bind(u),u.onFocus=u.onFocus.bind(u),u}return O(t,e),m(t,[{key:"handleMouseDown",value:function(e){e.preventDefault(),e.stopPropagation(),this.props.onSelect(this.props.option,e)}},{key:"handleMouseEnter",value:function(e){this.onFocus(e)}},{key:"handleMouseMove",value:function(e){this.onFocus(e)}},{key:"handleTouchEnd",value:function(e){this.dragging||this.handleMouseDown(e)}},{key:"handleTouchMove",value:function(){this.dragging=!0}},{key:"handleTouchStart",value:function(){this.dragging=!1}},{key:"onFocus",value:function(e){this.props.isFocused||this.props.onFocus(this.props.option,e)}},{key:"render",value:function(){var e=this.props,t=e.option,u=e.instancePrefix,n=e.optionIndex,o=s()(this.props.className,t.className);return t.disabled?l().createElement("div",{className:o,onMouseDown:b,onClick:b},this.props.children):l().createElement("div",{className:o,style:t.style,role:"option","aria-label":t.label,onMouseDown:this.handleMouseDown,onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd,id:u+"-option-"+n,title:t.title},this.props.children)}}]),t}(l().Component);k.propTypes={children:r().node,className:r().string,instancePrefix:r().string.isRequired,isDisabled:r().bool,isFocused:r().bool,isSelected:r().bool,onFocus:r().func,onSelect:r().func,onUnfocus:r().func,option:r().object.isRequired,optionIndex:r().number};var S=function(e){function t(e){g(this,t);var u=D(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return u.handleMouseDown=u.handleMouseDown.bind(u),u.onRemove=u.onRemove.bind(u),u.handleTouchEndRemove=u.handleTouchEndRemove.bind(u),u.handleTouchMove=u.handleTouchMove.bind(u),u.handleTouchStart=u.handleTouchStart.bind(u),u}return O(t,e),m(t,[{key:"handleMouseDown",value:function(e){if("mousedown"!==e.type||0===e.button)return this.props.onClick?(e.stopPropagation(),void this.props.onClick(this.props.value,e)):void(this.props.value.href&&e.stopPropagation())}},{key:"onRemove",value:function(e){e.preventDefault(),e.stopPropagation(),this.props.onRemove(this.props.value)}},{key:"handleTouchEndRemove",value:function(e){this.dragging||this.onRemove(e)}},{key:"handleTouchMove",value:function(){this.dragging=!0}},{key:"handleTouchStart",value:function(){this.dragging=!1}},{key:"renderRemoveIcon",value:function(){if(!this.props.disabled&&this.props.onRemove)return l().createElement("span",{className:"Select-value-icon","aria-hidden":"true",onMouseDown:this.onRemove,onTouchEnd:this.handleTouchEndRemove,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove},"×")}},{key:"renderLabel",value:function(){var e="Select-value-label";return this.props.onClick||this.props.value.href?l().createElement("a",{className:e,href:this.props.value.href,target:this.props.value.target,onMouseDown:this.handleMouseDown,onTouchEnd:this.handleMouseDown},this.props.children):l().createElement("span",{className:e,role:"option","aria-selected":"true",id:this.props.id},this.props.children)}},{key:"render",value:function(){return l().createElement("div",{className:s()("Select-value",this.props.value.disabled?"Select-value-disabled":"",this.props.value.className),style:this.props.value.style,title:this.props.value.title},this.renderRemoveIcon(),this.renderLabel())}}]),t}(l().Component);S.propTypes={children:r().node,disabled:r().bool,id:r().string,onClick:r().func,onRemove:r().func,value:r().object.isRequired};var w=function(e){return"string"==typeof e?e:null!==e&&JSON.stringify(e)||""},V=r().oneOfType([r().string,r().node]),T=r().oneOfType([r().string,r().number]),P=1,I=function(e,t){var u=void 0===e?"undefined":y(e);if("string"!==u&&"number"!==u&&"boolean"!==u)return e;var n=t.options,o=t.valueKey;if(n)for(var s=0;si||sh.bottom?l.scrollTop=a.offsetTop+a.clientHeight-l.offsetHeight:c.topt.offsetHeight&&t.scrollHeight-t.offsetHeight-t.scrollTop<=0&&this.props.onMenuScrollToBottom()}}},{key:"getOptionLabel",value:function(e){return e[this.props.labelKey]}},{key:"getValueArray",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,u="object"===(void 0===t?"undefined":y(t))?t:this.props;if(u.multi){if("string"==typeof e&&(e=e.split(u.delimiter)),!Array.isArray(e)){if(null==e)return[];e=[e]}return e.map((function(e){return I(e,u)})).filter((function(e){return e}))}var n=I(e,u);return n?[n]:[]}},{key:"setValue",value:function(e){var t=this;if(this.props.autoBlur&&this.blurInput(),this.props.required){var u=R(e,this.props.multi);this.setState({required:u})}this.props.simpleValue&&e&&(e=this.props.multi?e.map((function(e){return e[t.props.valueKey]})).join(this.props.delimiter):e[this.props.valueKey]),this.props.onChange&&this.props.onChange(e)}},{key:"selectValue",value:function(e){var t=this;this.props.closeOnSelect&&(this.hasScrolledToOption=!1);var u=this.props.onSelectResetsInput?"":this.state.inputValue;this.props.multi?this.setState({focusedIndex:null,inputValue:this.handleInputValueChange(u),isOpen:!this.props.closeOnSelect},(function(){t.getValueArray(t.props.value).some((function(u){return u[t.props.valueKey]===e[t.props.valueKey]}))?t.removeValue(e):t.addValue(e)})):this.setState({inputValue:this.handleInputValueChange(u),isOpen:!this.props.closeOnSelect,isPseudoFocused:this.state.isFocused},(function(){t.setValue(e)}))}},{key:"addValue",value:function(e){var t=this.getValueArray(this.props.value),u=this._visibleOptions.filter((function(e){return!e.disabled})),n=u.indexOf(e);this.setValue(t.concat(e)),this.props.closeOnSelect&&(u.length-1===n?this.focusOption(u[n-1]):u.length>n&&this.focusOption(u[n+1]))}},{key:"popValue",value:function(){var e=this.getValueArray(this.props.value);e.length&&!1!==e[e.length-1].clearableValue&&this.setValue(this.props.multi?e.slice(0,e.length-1):null)}},{key:"removeValue",value:function(e){var t=this,u=this.getValueArray(this.props.value);this.setValue(u.filter((function(u){return u[t.props.valueKey]!==e[t.props.valueKey]}))),this.focus()}},{key:"clearValue",value:function(e){e&&"mousedown"===e.type&&0!==e.button||(e.preventDefault(),this.setValue(this.getResetValue()),this.setState({inputValue:this.handleInputValueChange(""),isOpen:!1},this.focus),this._focusAfterClear=!0)}},{key:"getResetValue",value:function(){return void 0!==this.props.resetValue?this.props.resetValue:this.props.multi?[]:null}},{key:"focusOption",value:function(e){this.setState({focusedOption:e})}},{key:"focusNextOption",value:function(){this.focusAdjacentOption("next")}},{key:"focusPreviousOption",value:function(){this.focusAdjacentOption("previous")}},{key:"focusPageUpOption",value:function(){this.focusAdjacentOption("page_up")}},{key:"focusPageDownOption",value:function(){this.focusAdjacentOption("page_down")}},{key:"focusStartOption",value:function(){this.focusAdjacentOption("start")}},{key:"focusEndOption",value:function(){this.focusAdjacentOption("end")}},{key:"focusAdjacentOption",value:function(e){var t=this._visibleOptions.map((function(e,t){return{option:e,index:t}})).filter((function(e){return!e.option.disabled}));if(this._scrollToFocusedOptionOnUpdate=!0,!this.state.isOpen){var u={focusedOption:this._focusedOption||(t.length?t["next"===e?0:t.length-1].option:null),isOpen:!0};return this.props.onSelectResetsInput&&(u.inputValue=""),void this.setState(u)}if(t.length){for(var n=-1,o=0;o0?n-=1:n=t.length-1;else if("start"===e)n=0;else if("end"===e)n=t.length-1;else if("page_up"===e){var s=n-this.props.pageSize;n=s<0?0:s}else if("page_down"===e){var i=n+this.props.pageSize;n=i>t.length-1?t.length-1:i}-1===n&&(n=0),this.setState({focusedIndex:t[n].index,focusedOption:t[n].option})}}},{key:"getFocusedOption",value:function(){return this._focusedOption}},{key:"selectFocusedOption",value:function(){if(this._focusedOption)return this.selectValue(this._focusedOption)}},{key:"renderLoading",value:function(){if(this.props.isLoading)return l().createElement("span",{className:"Select-loading-zone","aria-hidden":"true"},l().createElement("span",{className:"Select-loading"}))}},{key:"renderValue",value:function(e,t){var u=this,n=this.props.valueRenderer||this.getOptionLabel,o=this.props.valueComponent;if(!e.length){var s=function(e,t,u){var n=e.inputValue,o=e.isPseudoFocused,s=e.isFocused,i=t.onSelectResetsInput;return!n||!i&&!u&&!o&&!s}(this.state,this.props,t);return s?l().createElement("div",{className:"Select-placeholder"},this.props.placeholder):null}var i,r,a,p,c,h,d=this.props.onValueClick?this.handleValueClick:null;return this.props.multi?e.map((function(t,s){return l().createElement(o,{disabled:u.props.disabled||!1===t.clearableValue,id:u._instancePrefix+"-value-"+s,instancePrefix:u._instancePrefix,key:"value-"+s+"-"+t[u.props.valueKey],onClick:d,onRemove:u.removeValue,placeholder:u.props.placeholder,value:t,values:e},n(t,s),l().createElement("span",{className:"Select-aria-only"}," "))})):(i=this.state,r=this.props,a=i.inputValue,p=i.isPseudoFocused,c=i.isFocused,h=r.onSelectResetsInput,a&&(h||!c&&p||c&&!p)?void 0:(t&&(d=null),l().createElement(o,{disabled:this.props.disabled,id:this._instancePrefix+"-value-item",instancePrefix:this._instancePrefix,onClick:d,placeholder:this.props.placeholder,value:e[0]},n(e[0]))))}},{key:"renderInput",value:function(e,t){var u,o=this,i=s()("Select-input",this.props.inputProps.className),r=this.state.isOpen,a=s()((C(u={},this._instancePrefix+"-list",r),C(u,this._instancePrefix+"-backspace-remove-message",this.props.multi&&!this.props.disabled&&this.state.isFocused&&!this.state.inputValue),u)),p=this.state.inputValue;!p||this.props.onSelectResetsInput||this.state.isFocused||(p="");var c=F({},this.props.inputProps,{"aria-activedescendant":r?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-describedby":this.props["aria-describedby"],"aria-expanded":""+r,"aria-haspopup":""+r,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-owns":a,onBlur:this.handleInputBlur,onChange:this.handleInputChange,onFocus:this.handleInputFocus,ref:function(e){return o.input=e},role:"combobox",required:this.state.required,tabIndex:this.props.tabIndex,value:p});if(this.props.inputRenderer)return this.props.inputRenderer(c);if(this.props.disabled||!this.props.searchable){var h=A(this.props.inputProps,[]),d=s()(C({},this._instancePrefix+"-list",r));return l().createElement("div",F({},h,{"aria-expanded":r,"aria-owns":d,"aria-activedescendant":r?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-disabled":""+this.props.disabled,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],className:i,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,ref:function(e){return o.input=e},role:"combobox",style:{border:0,width:1,display:"inline-block"},tabIndex:this.props.tabIndex||0}))}return this.props.autosize?l().createElement(n.Z,F({id:this.props.id},c,{className:i,minWidth:"5"})):l().createElement("div",{className:i,key:"input-wrap",style:{display:"inline-block"}},l().createElement("input",F({id:this.props.id},c)))}},{key:"renderClear",value:function(){var e=this.getValueArray(this.props.value);if(this.props.clearable&&e.length&&!this.props.disabled&&!this.props.isLoading){var t=this.props.multi?this.props.clearAllText:this.props.clearValueText,u=this.props.clearRenderer();return l().createElement("span",{"aria-label":t,className:"Select-clear-zone",onMouseDown:this.clearValue,onTouchEnd:this.handleTouchEndClearValue,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,title:t},u)}}},{key:"renderArrow",value:function(){if(this.props.arrowRenderer){var e=this.handleMouseDownOnArrow,t=this.state.isOpen,u=this.props.arrowRenderer({onMouseDown:e,isOpen:t});return u?l().createElement("span",{className:"Select-arrow-zone",onMouseDown:e},u):null}}},{key:"filterOptions",value:function(e){var t=this.state.inputValue,u=this.props.options||[];return this.props.filterOptions?("function"==typeof this.props.filterOptions?this.props.filterOptions:v)(u,t,e,{filterOption:this.props.filterOption,ignoreAccents:this.props.ignoreAccents,ignoreCase:this.props.ignoreCase,labelKey:this.props.labelKey,matchPos:this.props.matchPos,matchProp:this.props.matchProp,trimFilter:this.props.trimFilter,valueKey:this.props.valueKey}):u}},{key:"onOptionRef",value:function(e,t){t&&(this.focused=e)}},{key:"renderMenu",value:function(e,t,u){return e&&e.length?this.props.menuRenderer({focusedOption:u,focusOption:this.focusOption,inputValue:this.state.inputValue,instancePrefix:this._instancePrefix,labelKey:this.props.labelKey,onFocus:this.focusOption,onOptionRef:this.onOptionRef,onSelect:this.selectValue,optionClassName:this.props.optionClassName,optionComponent:this.props.optionComponent,optionRenderer:this.props.optionRenderer||this.getOptionLabel,options:e,removeValue:this.removeValue,selectValue:this.selectValue,valueArray:t,valueKey:this.props.valueKey}):this.props.noResultsText?l().createElement("div",{className:"Select-noresults"},this.props.noResultsText):null}},{key:"renderHiddenField",value:function(e){var t=this;if(this.props.name){if(this.props.joinValues){var u=e.map((function(e){return w(e[t.props.valueKey])})).join(this.props.delimiter);return l().createElement("input",{disabled:this.props.disabled,name:this.props.name,ref:function(e){return t.value=e},type:"hidden",value:u})}return e.map((function(e,u){return l().createElement("input",{disabled:t.props.disabled,key:"hidden."+u,name:t.props.name,ref:"value"+u,type:"hidden",value:w(e[t.props.valueKey])})}))}}},{key:"getFocusableOptionIndex",value:function(e){var t=this._visibleOptions;if(!t.length)return null;var u=this.props.valueKey,n=this.state.focusedOption||e;if(n&&!n.disabled){var o=-1;if(t.some((function(e,t){var s=e[u]===n[u];return s&&(o=t),s})),-1!==o)return o}for(var s=0;s{"use strict";var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,n)&&(u[n]=e[n]);return u}(this.props,[]);return function(e){p.forEach((function(t){return delete e[t]}))}(o),o.className=this.props.inputClassName,o.id=this.state.inputId,o.style=u,i.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),i.default.createElement("input",n({},o,{ref:this.inputRef})),i.default.createElement("div",{ref:this.sizerRef,style:l},e),this.props.placeholder?i.default.createElement("div",{ref:this.placeHolderSizerRef,style:l},this.props.placeholder):null)}}]),t}(s.Component);f.propTypes={className:r.default.string,defaultValue:r.default.any,extraWidth:r.default.oneOfType([r.default.number,r.default.string]),id:r.default.string,injectStyles:r.default.bool,inputClassName:r.default.string,inputRef:r.default.func,inputStyle:r.default.object,minWidth:r.default.oneOfType([r.default.number,r.default.string]),onAutosize:r.default.func,onChange:r.default.func,placeholder:r.default.string,placeholderIsMinWidth:r.default.bool,style:r.default.object,value:r.default.any},f.defaultProps={minWidth:1,injectStyles:!0},t.Z=f}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/43129.affd309bf2aa3f38d3a0.chunk.js.LICENSE.txt b/geonode_mapstore_client/static/mapstore/dist/js/43129.018dc26183efb561a8b1.chunk.js.LICENSE.txt similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/43129.affd309bf2aa3f38d3a0.chunk.js.LICENSE.txt rename to geonode_mapstore_client/static/mapstore/dist/js/43129.018dc26183efb561a8b1.chunk.js.LICENSE.txt diff --git a/geonode_mapstore_client/static/mapstore/dist/js/43137.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/43137.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/43137.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/43137.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/43157.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/43157.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/43157.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/43157.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/43193.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/43193.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/43193.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/43193.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/4331.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/4331.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/4331.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/4331.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/4333.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/4333.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/4333.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/4333.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/43468.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/43468.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/43468.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/43468.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/43471.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/43471.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/43471.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/43471.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/43518.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/43518.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/43518.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/43518.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/43581.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/43581.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/43581.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/43581.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/43697.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/43697.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/43697.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/43697.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/43784.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/43784.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/43784.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/43784.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/43853.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/43853.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/43853.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/43853.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/4400.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/4400.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/4400.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/4400.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/44017.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/44017.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/44017.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/44017.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/44067.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/44067.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/44067.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/44067.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/44071.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/44071.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/44071.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/44071.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/44113.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/44113.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/44113.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/44113.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/44148.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/44148.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/44148.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/44148.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/44154.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/44154.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/44154.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/44154.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/44192.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/44192.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/44192.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/44192.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/44194.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/44194.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/44194.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/44194.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/44251.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/44251.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/44251.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/44251.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/44496.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/44496.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/44496.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/44496.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/4455.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/4455.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/4455.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/4455.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/44704.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/44704.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/44704.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/44704.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/44839.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/44839.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/44839.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/44839.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/44887.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/44887.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/44887.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/44887.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/44976.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/44976.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/44976.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/44976.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/4503.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/4503.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/4503.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/4503.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/45243.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/45243.018dc26183efb561a8b1.chunk.js similarity index 99% rename from geonode_mapstore_client/static/mapstore/dist/js/45243.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/45243.018dc26183efb561a8b1.chunk.js index 29483d2106..af7f33ff94 100644 --- a/geonode_mapstore_client/static/mapstore/dist/js/45243.affd309bf2aa3f38d3a0.chunk.js +++ b/geonode_mapstore_client/static/mapstore/dist/js/45243.018dc26183efb561a8b1.chunk.js @@ -1,2 +1,2 @@ -/*! For license information please see 45243.affd309bf2aa3f38d3a0.chunk.js.LICENSE.txt */ +/*! For license information please see 45243.018dc26183efb561a8b1.chunk.js.LICENSE.txt */ (self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[45243],{845243:function(t,i){!function(t){"use strict";var i=Object.freeze;function e(t){var i,e,n,o;for(e=1,n=arguments.length;e0?Math.floor(t):Math.ceil(t)};function A(t,i,e){return t instanceof k?t:g(t)?new k(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new k(t.x,t.y):new k(t,i,e)}function B(t,i){if(t)for(var e=i?[t,i]:t,n=0,o=e.length;n=this.min.x&&e.x<=this.max.x&&i.y>=this.min.y&&e.y<=this.max.y},intersects:function(t){t=O(t);var i=this.min,e=this.max,n=t.min,o=t.max,s=o.x>=i.x&&n.x<=e.x,r=o.y>=i.y&&n.y<=e.y;return s&&r},overlaps:function(t){t=O(t);var i=this.min,e=this.max,n=t.min,o=t.max,s=o.x>i.x&&n.xi.y&&n.y=n.lat&&e.lat<=o.lat&&i.lng>=n.lng&&e.lng<=o.lng},intersects:function(t){t=D(t);var i=this._southWest,e=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>=i.lat&&n.lat<=e.lat,r=o.lng>=i.lng&&n.lng<=e.lng;return s&&r},overlaps:function(t){t=D(t);var i=this._southWest,e=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>i.lat&&n.lati.lng&&n.lng1,zt=!!document.createElement("canvas").getContext,Mt=!(!document.createElementNS||!Y("svg").createSVGRect),Ct=!Mt&&function(){try{var t=document.createElement("div");t.innerHTML='';var i=t.firstChild;return i.style.behavior="url(#default#VML)",i&&"object"==typeof i.adj}catch(t){return!1}}();function Zt(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var St=(Object.freeze||Object)({ie:$,ielt9:Q,edge:tt,webkit:it,android:et,android23:nt,androidStock:st,opera:rt,chrome:at,gecko:ht,safari:ut,phantom:lt,opera12:ct,win:_t,ie3d:dt,webkit3d:pt,gecko3d:mt,any3d:ft,mobile:gt,mobileWebkit:vt,mobileWebkit3d:yt,msPointer:xt,pointer:wt,touch:Pt,mobileOpera:Lt,mobileGecko:bt,retina:Tt,canvas:zt,svg:Mt,vml:Ct}),Et=xt?"MSPointerDown":"pointerdown",kt=xt?"MSPointerMove":"pointermove",It=xt?"MSPointerUp":"pointerup",At=xt?"MSPointerCancel":"pointercancel",Bt=["INPUT","SELECT","OPTION"],Ot={},Rt=!1,Dt=0;function Nt(t,i,e,n){return"touchstart"===i?function(t,i,e){var n=o((function(t){if("mouse"!==t.pointerType&&t.MSPOINTER_TYPE_MOUSE&&t.pointerType!==t.MSPOINTER_TYPE_MOUSE){if(!(Bt.indexOf(t.target.tagName)<0))return;ni(t)}Ft(t,i)}));t["_leaflet_touchstart"+e]=n,t.addEventListener(Et,n,!1),Rt||(document.documentElement.addEventListener(Et,jt,!0),document.documentElement.addEventListener(kt,Wt,!0),document.documentElement.addEventListener(It,Ht,!0),document.documentElement.addEventListener(At,Ht,!0),Rt=!0)}(t,e,n):"touchmove"===i?function(t,i,e){var n=function(t){(t.pointerType!==t.MSPOINTER_TYPE_MOUSE&&"mouse"!==t.pointerType||0!==t.buttons)&&Ft(t,i)};t["_leaflet_touchmove"+e]=n,t.addEventListener(kt,n,!1)}(t,e,n):"touchend"===i&&function(t,i,e){var n=function(t){Ft(t,i)};t["_leaflet_touchend"+e]=n,t.addEventListener(It,n,!1),t.addEventListener(At,n,!1)}(t,e,n),this}function jt(t){Ot[t.pointerId]=t,Dt++}function Wt(t){Ot[t.pointerId]&&(Ot[t.pointerId]=t)}function Ht(t){delete Ot[t.pointerId],Dt--}function Ft(t,i){for(var e in t.touches=[],Ot)t.touches.push(Ot[e]);t.changedTouches=[t],i(t)}var Ut=xt?"MSPointerDown":wt?"pointerdown":"touchstart",Vt=xt?"MSPointerUp":wt?"pointerup":"touchend",qt="_leaflet_";function Gt(t,i,e){var n,o,s=!1;function r(t){var i;if(wt){if(!tt||"mouse"===t.pointerType)return;i=Dt}else i=t.touches.length;if(!(i>1)){var e=Date.now(),r=e-(n||e);o=t.touches?t.touches[0]:t,s=r>0&&r<=250,n=e}}function a(t){if(s&&!o.cancelBubble){if(wt){if(!tt||"mouse"===t.pointerType)return;var e,r,a={};for(r in o)e=o[r],a[r]=e&&e.bind?e.bind(o):e;o=a}o.type="dblclick",i(o),n=null}}return t[qt+Ut+e]=r,t[qt+Vt+e]=a,t[qt+"dblclick"+e]=i,t.addEventListener(Ut,r,!1),t.addEventListener(Vt,a,!1),t.addEventListener("dblclick",i,!1),this}function Kt(t,i){var e=t[qt+Ut+i],n=t[qt+Vt+i],o=t[qt+"dblclick"+i];return t.removeEventListener(Ut,e,!1),t.removeEventListener(Vt,n,!1),tt||t.removeEventListener("dblclick",o,!1),this}function Yt(t,i,e,n){if("object"==typeof i)for(var o in i)$t(t,o,i[o],e);else for(var s=0,r=(i=_(i)).length;s100&&n<500||t.target._simulatedClick&&!t._simulated?oi(t):(hi=e,i(t))}(t,a)}),t.addEventListener(i,s,!1)):"attachEvent"in t&&t.attachEvent("on"+i,s):Gt(t,s,o),t[Xt]=t[Xt]||{},t[Xt][o]=s}function Qt(t,i,e,n){var o=i+r(e)+(n?"_"+r(n):""),s=t[Xt]&&t[Xt][o];if(!s)return this;wt&&0===i.indexOf("touch")?function(t,i,e){var n=t["_leaflet_"+i+e];"touchstart"===i?t.removeEventListener(Et,n,!1):"touchmove"===i?t.removeEventListener(kt,n,!1):"touchend"===i&&(t.removeEventListener(It,n,!1),t.removeEventListener(At,n,!1))}(t,i,o):!Pt||"dblclick"!==i||!Kt||wt&&at?"removeEventListener"in t?"mousewheel"===i?t.removeEventListener("onwheel"in t?"wheel":"mousewheel",s,!1):t.removeEventListener("mouseenter"===i?"mouseover":"mouseleave"===i?"mouseout":i,s,!1):"detachEvent"in t&&t.detachEvent("on"+i,s):Kt(t,o),t[Xt][o]=null}function ti(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,ci(t),this}function ii(t){return $t(t,"mousewheel",ti),this}function ei(t){return Yt(t,"mousedown touchstart dblclick",ti),$t(t,"click",li),this}function ni(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function oi(t){return ni(t),ti(t),this}function si(t,i){if(!i)return new k(t.clientX,t.clientY);var e=i.getBoundingClientRect(),n=e.width/i.offsetWidth||1,o=e.height/i.offsetHeight||1;return new k(t.clientX/n-e.left-i.clientLeft,t.clientY/o-e.top-i.clientTop)}var ri=_t&&at?2*window.devicePixelRatio:ht?window.devicePixelRatio:1;function ai(t){return tt?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/ri:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}var hi,ui={};function li(t){ui[t.type]=!0}function ci(t){var i=ui[t.type];return ui[t.type]=!1,i}function _i(t,i){var e=i.relatedTarget;if(!e)return!0;try{for(;e&&e!==t;)e=e.parentNode}catch(t){return!1}return e!==t}var di,pi,mi,fi,gi,vi=(Object.freeze||Object)({on:Yt,off:Jt,stopPropagation:ti,disableScrollPropagation:ii,disableClickPropagation:ei,preventDefault:ni,stop:oi,getMousePosition:si,getWheelDelta:ai,fakeStop:li,skipped:ci,isExternalTarget:_i,addListener:Yt,removeListener:Jt}),yi=Bi(["transform","WebkitTransform","OTransform","MozTransform","msTransform"]),xi=Bi(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),wi="webkitTransition"===xi||"OTransition"===xi?xi+"End":"transitionend";function Pi(t){return"string"==typeof t?document.getElementById(t):t}function Li(t,i){var e=t.style[i]||t.currentStyle&&t.currentStyle[i];if((!e||"auto"===e)&&document.defaultView){var n=document.defaultView.getComputedStyle(t,null);e=n?n[i]:null}return"auto"===e?null:e}function bi(t,i,e){var n=document.createElement(t);return n.className=i||"",e&&e.appendChild(n),n}function Ti(t){var i=t.parentNode;i&&i.removeChild(t)}function zi(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function Mi(t){var i=t.parentNode;i.lastChild!==t&&i.appendChild(t)}function Ci(t){var i=t.parentNode;i.firstChild!==t&&i.insertBefore(t,i.firstChild)}function Zi(t,i){if(void 0!==t.classList)return t.classList.contains(i);var e=Ii(t);return e.length>0&&new RegExp("(^|\\s)"+i+"(\\s|$)").test(e)}function Si(t,i){if(void 0!==t.classList)for(var e=_(i),n=0,o=e.length;nthis.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,i){this._enforcingBounds=!0;var e=this.getCenter(),n=this._limitCenter(e,this._zoom,D(t));return e.equals(n)||this.panTo(n,i),this._enforcingBounds=!1,this},invalidateSize:function(t){if(!this._loaded)return this;t=e({animate:!1,pan:!0},!0===t?{animate:!0}:t);var i=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var n=this.getSize(),s=i.divideBy(2).round(),r=n.divideBy(2).round(),a=s.subtract(r);return a.x||a.y?(t.animate&&t.pan?this.panBy(a):(t.pan&&this._rawPanBy(a),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(o(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:i,newSize:n})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=e({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var i=o(this._handleGeolocationResponse,this),n=o(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(i,n,t):navigator.geolocation.getCurrentPosition(i,n,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){var i=t.code,e=t.message||(1===i?"permission denied":2===i?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:i,message:"Geolocation error: "+e+"."})},_handleGeolocationResponse:function(t){var i=new N(t.coords.latitude,t.coords.longitude),e=i.toBounds(t.coords.accuracy),n=this._locateOptions;if(n.setView){var o=this.getBoundsZoom(e);this.setView(i,n.maxZoom?Math.min(o,n.maxZoom):o)}var s={latlng:i,bounds:e,timestamp:t.timestamp};for(var r in t.coords)"number"==typeof t.coords[r]&&(s[r]=t.coords[r]);this.fire("locationfound",s)},addHandler:function(t,i){if(!i)return this;var e=this[t]=new i(this);return this._handlers.push(e),this.options[t]&&e.enable(),this},remove:function(){if(this._initEvents(!0),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}var t;for(t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),Ti(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)Ti(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,i){var e=bi("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),i||this._mapPane);return t&&(this._panes[t]=e),e},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new R(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,i,e){t=D(t),e=A(e||[0,0]);var n=this.getZoom()||0,o=this.getMinZoom(),s=this.getMaxZoom(),r=t.getNorthWest(),a=t.getSouthEast(),h=this.getSize().subtract(e),u=O(this.project(a,n),this.project(r,n)).getSize(),l=ft?this.options.zoomSnap:1,c=h.x/u.x,_=h.y/u.y,d=i?Math.max(c,_):Math.min(c,_);return n=this.getScaleZoom(d,n),l&&(n=Math.round(n/(l/100))*(l/100),n=i?Math.ceil(n/l)*l:Math.floor(n/l)*l),Math.max(o,Math.min(s,n))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new k(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,i){var e=this._getTopLeftPoint(t,i);return new B(e,e.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,i){var e=this.options.crs;return i=void 0===i?this._zoom:i,e.scale(t)/e.scale(i)},getScaleZoom:function(t,i){var e=this.options.crs;i=void 0===i?this._zoom:i;var n=e.zoom(t*e.scale(i));return isNaN(n)?1/0:n},project:function(t,i){return i=void 0===i?this._zoom:i,this.options.crs.latLngToPoint(j(t),i)},unproject:function(t,i){return i=void 0===i?this._zoom:i,this.options.crs.pointToLatLng(A(t),i)},layerPointToLatLng:function(t){var i=A(t).add(this.getPixelOrigin());return this.unproject(i)},latLngToLayerPoint:function(t){return this.project(j(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(j(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(D(t))},distance:function(t,i){return this.options.crs.distance(j(t),j(i))},containerPointToLayerPoint:function(t){return A(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return A(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var i=this.containerPointToLayerPoint(A(t));return this.layerPointToLatLng(i)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(j(t)))},mouseEventToContainerPoint:function(t){return si(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var i=this._container=Pi(t);if(!i)throw new Error("Map container not found.");if(i._leaflet_id)throw new Error("Map container is already initialized.");Yt(i,"scroll",this._onScroll,this),this._containerId=r(i)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&ft,Si(t,"leaflet-container"+(Pt?" leaflet-touch":"")+(Tt?" leaflet-retina":"")+(Q?" leaflet-oldie":"")+(ut?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var i=Li(t,"position");"absolute"!==i&&"relative"!==i&&"fixed"!==i&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Ri(this._mapPane,new k(0,0)),this.createPane("tilePane"),this.createPane("shadowPane"),this.createPane("overlayPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Si(t.markerPane,"leaflet-zoom-hide"),Si(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,i){Ri(this._mapPane,new k(0,0));var e=!this._loaded;this._loaded=!0,i=this._limitZoom(i),this.fire("viewprereset");var n=this._zoom!==i;this._moveStart(n,!1)._move(t,i)._moveEnd(n),this.fire("viewreset"),e&&this.fire("load")},_moveStart:function(t,i){return t&&this.fire("zoomstart"),i||this.fire("movestart"),this},_move:function(t,i,e){void 0===i&&(i=this._zoom);var n=this._zoom!==i;return this._zoom=i,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),(n||e&&e.pinch)&&this.fire("zoom",e),this.fire("move",e)},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return M(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){Ri(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[r(this._container)]=this;var i=t?Jt:Yt;i(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress",this._handleDOMEvent,this),this.options.trackResize&&i(window,"resize",this._onResize,this),ft&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){M(this._resizeRequest),this._resizeRequest=z((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,i){for(var e,n=[],o="mouseout"===i||"mouseover"===i,s=t.target||t.srcElement,a=!1;s;){if((e=this._targets[r(s)])&&("click"===i||"preclick"===i)&&!t._simulated&&this._draggableMoved(e)){a=!0;break}if(e&&e.listens(i,!0)){if(o&&!_i(s,t))break;if(n.push(e),o)break}if(s===this._container)break;s=s.parentNode}return n.length||a||o||!_i(s,t)||(n=[this]),n},_handleDOMEvent:function(t){if(this._loaded&&!ci(t)){var i=t.type;"mousedown"!==i&&"keypress"!==i||Hi(t.target||t.srcElement),this._fireDOMEvent(t,i)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,i,n){if("click"===t.type){var o=e({},t);o.type="preclick",this._fireDOMEvent(o,o.type,n)}if(!t._stopped&&(n=(n||[]).concat(this._findEventTargets(t,i))).length){var s=n[0];"contextmenu"===i&&s.listens(i,!0)&&ni(t);var r={originalEvent:t};if("keypress"!==t.type){var a=s.getLatLng&&(!s._radius||s._radius<=10);r.containerPoint=a?this.latLngToContainerPoint(s.getLatLng()):this.mouseEventToContainerPoint(t),r.layerPoint=this.containerPointToLayerPoint(r.containerPoint),r.latlng=a?s.getLatLng():this.layerPointToLatLng(r.layerPoint)}for(var h=0;h0?Math.round(t-i)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(i))},_limitZoom:function(t){var i=this.getMinZoom(),e=this.getMaxZoom(),n=ft?this.options.zoomSnap:1;return n&&(t=Math.round(t/n)*n),Math.max(i,Math.min(e,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Ei(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,i){var e=this._getCenterOffset(t)._trunc();return!(!0!==(i&&i.animate)&&!this.getSize().contains(e)||(this.panBy(e,i),0))},_createAnimProxy:function(){var t=this._proxy=bi("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",(function(t){var i=yi,e=this._proxy.style[i];Oi(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),e===this._proxy.style[i]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",(function(){var t=this.getCenter(),i=this.getZoom();Oi(this._proxy,this.project(t,i),this.getZoomScale(i,1))}),this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Ti(this._proxy),delete this._proxy},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,i,e){if(this._animatingZoom)return!0;if(e=e||{},!this._zoomAnimated||!1===e.animate||this._nothingToAnimate()||Math.abs(i-this._zoom)>this.options.zoomAnimationThreshold)return!1;var n=this.getZoomScale(i),o=this._getCenterOffset(t)._divideBy(1-1/n);return!(!0!==e.animate&&!this.getSize().contains(o)||(z((function(){this._moveStart(!0,!1)._animateZoom(t,i,!0)}),this),0))},_animateZoom:function(t,i,e,n){this._mapPane&&(e&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=i,Si(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:i,noUpdate:n}),setTimeout(o(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Ei(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom),z((function(){this._moveEnd(!0)}),this))}});var Gi=Z.extend({options:{position:"topright"},initialize:function(t){d(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var i=this._map;return i&&i.removeControl(this),this.options.position=t,i&&i.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var i=this._container=this.onAdd(t),e=this.getPosition(),n=t._controlCorners[e];return Si(i,"leaflet-control"),-1!==e.indexOf("bottom")?n.insertBefore(i,n.firstChild):n.appendChild(i),this},remove:function(){return this._map?(Ti(this._container),this.onRemove&&this.onRemove(this._map),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),Ki=function(t){return new Gi(t)};qi.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},i="leaflet-",e=this._controlContainer=bi("div",i+"control-container",this._container);function n(n,o){var s=i+n+" "+i+o;t[n+o]=bi("div",s,e)}n("top","left"),n("top","right"),n("bottom","left"),n("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)Ti(this._controlCorners[t]);Ti(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Yi=Gi.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,i,e,n){return e1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=i&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var i=this._getLayer(r(t.target)),e=i.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;e&&this._map.fire(e,i)},_createRadioElement:function(t,i){var e='",n=document.createElement("div");return n.innerHTML=e,n.firstChild},_addItem:function(t){var i,e=document.createElement("label"),n=this._map.hasLayer(t.layer);t.overlay?((i=document.createElement("input")).type="checkbox",i.className="leaflet-control-layers-selector",i.defaultChecked=n):i=this._createRadioElement("leaflet-base-layers",n),this._layerControlInputs.push(i),i.layerId=r(t.layer),Yt(i,"click",this._onInputClick,this);var o=document.createElement("span");o.innerHTML=" "+t.name;var s=document.createElement("div");return e.appendChild(s),s.appendChild(i),s.appendChild(o),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(e),this._checkDisabledLayers(),e},_onInputClick:function(){var t,i,e=this._layerControlInputs,n=[],o=[];this._handlingClick=!0;for(var s=e.length-1;s>=0;s--)t=e[s],i=this._getLayer(t.layerId).layer,t.checked?n.push(i):t.checked||o.push(i);for(s=0;s=0;o--)t=e[o],i=this._getLayer(t.layerId).layer,t.disabled=void 0!==i.options.minZoom&&ni.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expand:function(){return this.expand()},_collapse:function(){return this.collapse()}}),Xi=Gi.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"−",zoomOutTitle:"Zoom out"},onAdd:function(t){var i="leaflet-control-zoom",e=bi("div",i+" leaflet-bar"),n=this.options;return this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,i+"-in",e,this._zoomIn),this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,i+"-out",e,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),e},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,i,e,n,o){var s=bi("a",e,n);return s.innerHTML=t,s.href="#",s.title=i,s.setAttribute("role","button"),s.setAttribute("aria-label",i),ei(s),Yt(s,"click",oi),Yt(s,"click",o,this),Yt(s,"click",this._refocusOnMap,this),s},_updateDisabled:function(){var t=this._map,i="leaflet-disabled";Ei(this._zoomInButton,i),Ei(this._zoomOutButton,i),(this._disabled||t._zoom===t.getMinZoom())&&Si(this._zoomOutButton,i),(this._disabled||t._zoom===t.getMaxZoom())&&Si(this._zoomInButton,i)}});qi.mergeOptions({zoomControl:!0}),qi.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new Xi,this.addControl(this.zoomControl))}));var Ji=Gi.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var i="leaflet-control-scale",e=bi("div",i),n=this.options;return this._addScales(n,i+"-line",e),t.on(n.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),e},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,i,e){t.metric&&(this._mScale=bi("div",i,e)),t.imperial&&(this._iScale=bi("div",i,e))},_update:function(){var t=this._map,i=t.getSize().y/2,e=t.distance(t.containerPointToLatLng([0,i]),t.containerPointToLatLng([this.options.maxWidth,i]));this._updateScales(e)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var i=this._getRoundNum(t),e=i<1e3?i+" m":i/1e3+" km";this._updateScale(this._mScale,e,i/t)},_updateImperial:function(t){var i,e,n,o=3.2808399*t;o>5280?(i=o/5280,e=this._getRoundNum(i),this._updateScale(this._iScale,e+" mi",e/i)):(n=this._getRoundNum(o),this._updateScale(this._iScale,n+" ft",n/o))},_updateScale:function(t,i,e){t.style.width=Math.round(this.options.maxWidth*e)+"px",t.innerHTML=i},_getRoundNum:function(t){var i=Math.pow(10,(Math.floor(t)+"").length-1),e=t/i;return i*(e>=10?10:e>=5?5:e>=3?3:e>=2?2:1)}}),$i=Gi.extend({options:{position:"bottomright",prefix:'Leaflet'},initialize:function(t){d(this,t),this._attributions={}},onAdd:function(t){for(var i in t.attributionControl=this,this._container=bi("div","leaflet-control-attribution"),ei(this._container),t._layers)t._layers[i].getAttribution&&this.addAttribution(t._layers[i].getAttribution());return this._update(),this._container},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var i in this._attributions)this._attributions[i]&&t.push(i);var e=[];this.options.prefix&&e.push(this.options.prefix),t.length&&e.push(t.join(", ")),this._container.innerHTML=e.join(" | ")}}});qi.mergeOptions({attributionControl:!0}),qi.addInitHook((function(){this.options.attributionControl&&(new $i).addTo(this)}));Gi.Layers=Yi,Gi.Zoom=Xi,Gi.Scale=Ji,Gi.Attribution=$i,Ki.layers=function(t,i,e){return new Yi(t,i,e)},Ki.zoom=function(t){return new Xi(t)},Ki.scale=function(t){return new Ji(t)},Ki.attribution=function(t){return new $i(t)};var Qi=Z.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Qi.addTo=function(t,i){return t.addHandler(i,this),this};var te,ie={Events:S},ee=Pt?"touchstart mousedown":"mousedown",ne={mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},oe={mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"},se=E.extend({options:{clickTolerance:3},initialize:function(t,i,e,n){d(this,n),this._element=t,this._dragStartTarget=i||t,this._preventOutline=e},enable:function(){this._enabled||(Yt(this._dragStartTarget,ee,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(se._dragging===this&&this.finishDrag(),Jt(this._dragStartTarget,ee,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(!t._simulated&&this._enabled&&(this._moved=!1,!Zi(this._element,"leaflet-zoom-anim")&&!(se._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||(se._dragging=this,this._preventOutline&&Hi(this._element),ji(),di(),this._moving)))){this.fire("down");var i=t.touches?t.touches[0]:t;this._startPoint=new k(i.clientX,i.clientY),Yt(document,oe[t.type],this._onMove,this),Yt(document,ne[t.type],this._onUp,this)}},_onMove:function(t){if(!t._simulated&&this._enabled)if(t.touches&&t.touches.length>1)this._moved=!0;else{var i=t.touches&&1===t.touches.length?t.touches[0]:t,e=new k(i.clientX,i.clientY).subtract(this._startPoint);(e.x||e.y)&&(Math.abs(e.x)+Math.abs(e.y)i&&(e.push(t[n]),o=n);return oh&&(s=r,h=a);h>e&&(i[s]=1,he(t,i,e,n,s),he(t,i,e,s,o))}function ue(t,i,e,n,o){var s,r,a,h=n?te:ce(t,e),u=ce(i,e);for(te=u;;){if(!(h|u))return[t,i];if(h&u)return!1;a=ce(r=le(t,i,s=h||u,e,o),e),s===h?(t=r,h=a):(i=r,u=a)}}function le(t,i,e,n,o){var s,r,a=i.x-t.x,h=i.y-t.y,u=n.min,l=n.max;return 8&e?(s=t.x+a*(l.y-t.y)/h,r=l.y):4&e?(s=t.x+a*(u.y-t.y)/h,r=u.y):2&e?(s=l.x,r=t.y+h*(l.x-t.x)/a):1&e&&(s=u.x,r=t.y+h*(u.x-t.x)/a),new k(s,r,o)}function ce(t,i){var e=0;return t.xi.max.x&&(e|=2),t.yi.max.y&&(e|=8),e}function _e(t,i){var e=i.x-t.x,n=i.y-t.y;return e*e+n*n}function de(t,i,e,n){var o,s=i.x,r=i.y,a=e.x-s,h=e.y-r,u=a*a+h*h;return u>0&&((o=((t.x-s)*a+(t.y-r)*h)/u)>1?(s=e.x,r=e.y):o>0&&(s+=a*o,r+=h*o)),a=t.x-s,h=t.y-r,n?a*a+h*h:new k(s,r)}function pe(t){return!g(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function me(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),pe(t)}var fe=(Object.freeze||Object)({simplify:re,pointToSegmentDistance:ae,closestPointOnSegment:function(t,i,e){return de(t,i,e)},clipSegment:ue,_getEdgeIntersection:le,_getBitCode:ce,_sqClosestPointOnSegment:de,isFlat:pe,_flat:me});function ge(t,i,e){var n,o,s,r,a,h,u,l,c,_=[1,4,2,8];for(o=0,u=t.length;o1e-7;h++)i=s*Math.sin(a),i=Math.pow((1-i)/(1+i),s/2),a+=u=Math.PI/2-2*Math.atan(r*i)-a;return new N(a*e,t.x*e/n)}},we=(Object.freeze||Object)({LonLat:ye,Mercator:xe,SphericalMercator:U}),Pe=e({},F,{code:"EPSG:3395",projection:xe,transformation:function(){var t=.5/(Math.PI*xe.R);return q(t,.5,-t,.5)}()}),Le=e({},F,{code:"EPSG:4326",projection:ye,transformation:q(1/180,1,-1/180,.5)}),be=e({},H,{projection:ye,transformation:q(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,i){var e=i.lng-t.lng,n=i.lat-t.lat;return Math.sqrt(e*e+n*n)},infinite:!0});H.Earth=F,H.EPSG3395=Pe,H.EPSG3857=G,H.EPSG900913=K,H.EPSG4326=Le,H.Simple=be;var Te=E.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[r(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[r(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var i=t.target;if(i.hasLayer(this)){if(this._map=i,this._zoomAnimated=i._zoomAnimated,this.getEvents){var e=this.getEvents();i.on(e,this),this.once("remove",(function(){i.off(e,this)}),this)}this.onAdd(i),this.getAttribution&&i.attributionControl&&i.attributionControl.addAttribution(this.getAttribution()),this.fire("add"),i.fire("layeradd",{layer:this})}}});qi.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var i=r(t);return this._layers[i]||(this._layers[i]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var i=r(t);return this._layers[i]?(this._loaded&&t.onRemove(this),t.getAttribution&&this.attributionControl&&this.attributionControl.removeAttribution(t.getAttribution()),delete this._layers[i],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return!!t&&r(t)in this._layers},eachLayer:function(t,i){for(var e in this._layers)t.call(i,this._layers[e]);return this},_addLayers:function(t){for(var i=0,e=(t=t?g(t)?t:[t]:[]).length;ithis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()i)return r=(n-i)/e,this._map.layerPointToLatLng([s.x-r*(s.x-o.x),s.y-r*(s.y-o.y)])},getBounds:function(){return this._bounds},addLatLng:function(t,i){return i=i||this._defaultShape(),t=j(t),i.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new R,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return pe(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var i=[],e=pe(t),n=0,o=t.length;n=2&&i[0]instanceof N&&i[0].equals(i[e-1])&&i.pop(),i},_setLatLngs:function(t){Be.prototype._setLatLngs.call(this,t),pe(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return pe(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,i=this.options.weight,e=new k(i,i);if(t=new B(t.min.subtract(e),t.max.add(e)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var n,o=0,s=this._rings.length;ot.y!=n.y>t.y&&t.x<(n.x-e.x)*(t.y-e.y)/(n.y-e.y)+e.x&&(u=!u);return u||Be.prototype._containsPoint.call(this,t,!0)}});var Re=Me.extend({initialize:function(t,i){d(this,i),this._layers={},t&&this.addData(t)},addData:function(t){var i,e,n,o=g(t)?t:t.features;if(o){for(i=0,e=o.length;i0?n:[i.src]}else{g(this._url)||(this._url=[this._url]),i.autoplay=!!this.options.autoplay,i.loop=!!this.options.loop;for(var r=0;ro?(i.height=o+"px",Si(t,s)):Ei(t,s),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),e=this._getAnchor();Ri(this._container,i.add(e))},_adjustPan:function(){if(!(!this.options.autoPan||this._map._panAnim&&this._map._panAnim._inProgress)){var t=this._map,i=parseInt(Li(this._container,"marginBottom"),10)||0,e=this._container.offsetHeight+i,n=this._containerWidth,o=new k(this._containerLeft,-e-this._containerBottom);o._add(Di(this._container));var s=t.layerPointToContainerPoint(o),r=A(this.options.autoPanPadding),a=A(this.options.autoPanPaddingTopLeft||r),h=A(this.options.autoPanPaddingBottomRight||r),u=t.getSize(),l=0,c=0;s.x+n+h.x>u.x&&(l=s.x+n-u.x+h.x),s.x-l-a.x<0&&(l=s.x-a.x),s.y+e+h.y>u.y&&(c=s.y+e-u.y+h.y),s.y-c-a.y<0&&(c=s.y-a.y),(l||c)&&t.fire("autopanstart").panBy([l,c])}},_onCloseButtonClick:function(t){this._close(),oi(t)},_getAnchor:function(){return A(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});qi.mergeOptions({closePopupOnClick:!0}),qi.include({openPopup:function(t,i,e){return t instanceof Je||(t=new Je(e).setContent(t)),i&&t.setLatLng(i),this.hasLayer(t)?this:(this._popup&&this._popup.options.autoClose&&this.closePopup(),this._popup=t,this.addLayer(t))},closePopup:function(t){return t&&t!==this._popup||(t=this._popup,this._popup=null),t&&this.removeLayer(t),this}}),Te.include({bindPopup:function(t,i){return t instanceof Je?(d(t,i),this._popup=t,t._source=this):(this._popup&&!i||(this._popup=new Je(i,this)),this._popup.setContent(t)),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t,i){if(t instanceof Te||(i=t,t=this),t instanceof Me)for(var e in this._layers){t=this._layers[e];break}return i||(i=t.getCenter?t.getCenter():t.getLatLng()),this._popup&&this._map&&(this._popup._source=t,this._popup.update(),this._map.openPopup(this._popup,i)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(t){return this._popup&&(this._popup._map?this.closePopup():this.openPopup(t)),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){var i=t.layer||t.target;this._popup&&this._map&&(oi(t),i instanceof ke?this.openPopup(t.layer||t.target,t.latlng):this._map.hasLayer(this._popup)&&this._popup._source===i?this.closePopup():this.openPopup(i,t.latlng))},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var $e=Xe.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,interactive:!1,opacity:.9},onAdd:function(t){Xe.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&this._source.fire("tooltipopen",{tooltip:this},!0)},onRemove:function(t){Xe.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&this._source.fire("tooltipclose",{tooltip:this},!0)},getEvents:function(){var t=Xe.prototype.getEvents.call(this);return Pt&&!this.options.permanent&&(t.preclick=this._close),t},_close:function(){this._map&&this._map.closeTooltip(this)},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=bi("div",t)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var i=this._map,e=this._container,n=i.latLngToContainerPoint(i.getCenter()),o=i.layerPointToContainerPoint(t),s=this.options.direction,r=e.offsetWidth,a=e.offsetHeight,h=A(this.options.offset),u=this._getAnchor();"top"===s?t=t.add(A(-r/2+h.x,-a+h.y+u.y,!0)):"bottom"===s?t=t.subtract(A(r/2-h.x,-h.y,!0)):"center"===s?t=t.subtract(A(r/2+h.x,a/2-u.y+h.y,!0)):"right"===s||"auto"===s&&o.xthis.options.maxZoom||en&&this._retainParent(o,s,r,n))},_retainChildren:function(t,i,e,n){for(var o=2*t;o<2*t+2;o++)for(var s=2*i;s<2*i+2;s++){var r=new k(o,s);r.z=e+1;var a=this._tileCoordsToKey(r),h=this._tiles[a];h&&h.active?h.retain=!0:(h&&h.loaded&&(h.retain=!0),e+1this.options.maxZoom||void 0!==this.options.minZoom&&o1)this._setView(t,e);else{for(var c=o.min.y;c<=o.max.y;c++)for(var _=o.min.x;_<=o.max.x;_++){var d=new k(_,c);if(d.z=this._tileZoom,this._isValidTile(d)){var p=this._tiles[this._tileCoordsToKey(d)];p?p.current=!0:r.push(d)}}if(r.sort((function(t,i){return t.distanceTo(s)-i.distanceTo(s)})),0!==r.length){this._loading||(this._loading=!0,this.fire("loading"));var m=document.createDocumentFragment();for(_=0;_e.max.x)||!i.wrapLat&&(t.ye.max.y))return!1}if(!this.options.bounds)return!0;var n=this._tileCoordsToBounds(t);return D(this.options.bounds).overlaps(n)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var i=this._map,e=this.getTileSize(),n=t.scaleBy(e),o=n.add(e);return[i.unproject(n,t.z),i.unproject(o,t.z)]},_tileCoordsToBounds:function(t){var i=this._tileCoordsToNwSe(t),e=new R(i[0],i[1]);return this.options.noWrap||(e=this._map.wrapLatLngBounds(e)),e},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var i=t.split(":"),e=new k(+i[0],+i[1]);return e.z=+i[2],e},_removeTile:function(t){var i=this._tiles[t];i&&(st||i.el.setAttribute("src",y),Ti(i.el),delete this._tiles[t],this.fire("tileunload",{tile:i.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){Si(t,"leaflet-tile");var i=this.getTileSize();t.style.width=i.x+"px",t.style.height=i.y+"px",t.onselectstart=u,t.onmousemove=u,Q&&this.options.opacity<1&&Ai(t,this.options.opacity),et&&!nt&&(t.style.WebkitBackfaceVisibility="hidden")},_addTile:function(t,i){var e=this._getTilePos(t),n=this._tileCoordsToKey(t),s=this.createTile(this._wrapCoords(t),o(this._tileReady,this,t));this._initTile(s),this.createTile.length<2&&z(o(this._tileReady,this,t,null,s)),Ri(s,e),this._tiles[n]={el:s,coords:t,current:!0},i.appendChild(s),this.fire("tileloadstart",{tile:s,coords:t})},_tileReady:function(t,i,e){if(this._map){i&&this.fire("tileerror",{error:i,tile:e,coords:t});var n=this._tileCoordsToKey(t);(e=this._tiles[n])&&(e.loaded=+new Date,this._map._fadeAnimated?(Ai(e.el,0),M(this._fadeFrame),this._fadeFrame=z(this._updateOpacity,this)):(e.active=!0,this._pruneTiles()),i||(Si(e.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:e.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Q||!this._map._fadeAnimated?z(this._pruneTiles,this):setTimeout(o(this._pruneTiles,this),250)))}},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var i=new k(this._wrapX?h(t.x,this._wrapX):t.x,this._wrapY?h(t.y,this._wrapY):t.y);return i.z=t.z,i},_pxBoundsToTileRange:function(t){var i=this.getTileSize();return new B(t.min.unscaleBy(i).floor(),t.max.unscaleBy(i).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});var en=tn.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1},initialize:function(t,i){this._url=t,(i=d(this,i)).detectRetina&&Tt&&i.maxZoom>0&&(i.tileSize=Math.floor(i.tileSize/2),i.zoomReverse?(i.zoomOffset--,i.minZoom++):(i.zoomOffset++,i.maxZoom--),i.minZoom=Math.max(0,i.minZoom)),"string"==typeof i.subdomains&&(i.subdomains=i.subdomains.split("")),et||this.on("tileunload",this._onTileRemove)},setUrl:function(t,i){return this._url=t,i||this.redraw(),this},createTile:function(t,i){var e=document.createElement("img");return Yt(e,"load",o(this._tileOnLoad,this,i,e)),Yt(e,"error",o(this._tileOnError,this,i,e)),this.options.crossOrigin&&(e.crossOrigin=""),e.alt="",e.setAttribute("role","presentation"),e.src=this.getTileUrl(t),e},getTileUrl:function(t){var i={r:Tt?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var n=this._globalTileRange.max.y-t.y;this.options.tms&&(i.y=n),i["-y"]=n}return f(this._url,e(i,this.options))},_tileOnLoad:function(t,i){Q?setTimeout(o(t,this,null,i),0):t(null,i)},_tileOnError:function(t,i,e){var n=this.options.errorTileUrl;n&&i.getAttribute("src")!==n&&(i.src=n),t(e,i)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,i=this.options.maxZoom;return this.options.zoomReverse&&(t=i-t),t+this.options.zoomOffset},_getSubdomain:function(t){var i=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[i]},_abortLoading:function(){var t,i;for(t in this._tiles)this._tiles[t].coords.z!==this._tileZoom&&((i=this._tiles[t].el).onload=u,i.onerror=u,i.complete||(i.src=y,Ti(i),delete this._tiles[t]))}});function nn(t,i){return new en(t,i)}var on=en.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,i){this._url=t;var n=e({},this.defaultWmsParams);for(var o in i)o in this.options||(n[o]=i[o]);var s=(i=d(this,i)).detectRetina&&Tt?2:1,r=this.getTileSize();n.width=r.x*s,n.height=r.y*s,this.wmsParams=n},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var i=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[i]=this._crs.code,en.prototype.onAdd.call(this,t)},getTileUrl:function(t){var i=this._tileCoordsToNwSe(t),e=this._crs,n=O(e.project(i[0]),e.project(i[1])),o=n.min,s=n.max,r=(this._wmsVersion>=1.3&&this._crs===Le?[o.y,o.x,s.y,s.x]:[o.x,o.y,s.x,s.y]).join(","),a=L.TileLayer.prototype.getTileUrl.call(this,t);return a+p(this.wmsParams,a,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+r},setParams:function(t,i){return e(this.wmsParams,t),i||this.redraw(),this}});en.WMS=on,nn.wms=function(t,i){return new on(t,i)};var sn=Te.extend({options:{padding:.1,tolerance:0},initialize:function(t){d(this,t),r(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&Si(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,i){var e=this._map.getZoomScale(i,this._zoom),n=Di(this._container),o=this._map.getSize().multiplyBy(.5+this.options.padding),s=this._map.project(this._center,i),r=this._map.project(t,i).subtract(s),a=o.multiplyBy(-e).add(n).add(o).subtract(r);ft?Oi(this._container,a,e):Ri(this._container,a)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,i=this._map.getSize(),e=this._map.containerPointToLayerPoint(i.multiplyBy(-t)).round();this._bounds=new B(e,e.add(i.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),rn=sn.extend({getEvents:function(){var t=sn.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){sn.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");Yt(t,"mousemove",a(this._onMouseMove,32,this),this),Yt(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Yt(t,"mouseout",this._handleMouseOut,this),this._ctx=t.getContext("2d")},_destroyContainer:function(){delete this._ctx,Ti(this._container),Jt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){this._drawnLayers={},sn.prototype._update.call(this);var t=this._bounds,i=this._container,e=t.getSize(),n=Tt?2:1;Ri(i,t.min),i.width=n*e.x,i.height=n*e.y,i.style.width=e.x+"px",i.style.height=e.y+"px",Tt&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){sn.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[r(t)]=t;var i=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=i),this._drawLast=i,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var i=t._order,e=i.next,n=i.prev;e?e.prev=n:this._drawLast=n,n?n.next=e:this._drawFirst=e,delete t._order,delete this._layers[L.stamp(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if(t.options.dashArray){var i,e=t.options.dashArray.split(","),n=[];for(i=0;i')}}catch(t){return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}(),un={_initContainer:function(){this._container=bi("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(sn.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var i=t._container=hn("shape");Si(i,"leaflet-vml-shape "+(this.options.className||"")),i.coordsize="1 1",t._path=hn("path"),i.appendChild(t._path),this._updateStyle(t),this._layers[r(t)]=t},_addPath:function(t){var i=t._container;this._container.appendChild(i),t.options.interactive&&t.addInteractiveTarget(i)},_removePath:function(t){var i=t._container;Ti(i),t.removeInteractiveTarget(i),delete this._layers[r(t)]},_updateStyle:function(t){var i=t._stroke,e=t._fill,n=t.options,o=t._container;o.stroked=!!n.stroke,o.filled=!!n.fill,n.stroke?(i||(i=t._stroke=hn("stroke")),o.appendChild(i),i.weight=n.weight+"px",i.color=n.color,i.opacity=n.opacity,n.dashArray?i.dashStyle=g(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," "):i.dashStyle="",i.endcap=n.lineCap.replace("butt","flat"),i.joinstyle=n.lineJoin):i&&(o.removeChild(i),t._stroke=null),n.fill?(e||(e=t._fill=hn("fill")),o.appendChild(e),e.color=n.fillColor||n.color,e.opacity=n.fillOpacity):e&&(o.removeChild(e),t._fill=null)},_updateCircle:function(t){var i=t._point.round(),e=Math.round(t._radius),n=Math.round(t._radiusY||e);this._setPath(t,t._empty()?"M0 0":"AL "+i.x+","+i.y+" "+e+","+n+" 0,23592600")},_setPath:function(t,i){t._path.v=i},_bringToFront:function(t){Mi(t._container)},_bringToBack:function(t){Ci(t._container)}},ln=Ct?hn:Y,cn=sn.extend({getEvents:function(){var t=sn.prototype.getEvents.call(this);return t.zoomstart=this._onZoomStart,t},_initContainer:function(){this._container=ln("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=ln("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Ti(this._container),Jt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_onZoomStart:function(){this._update()},_update:function(){if(!this._map._animatingZoom||!this._bounds){sn.prototype._update.call(this);var t=this._bounds,i=t.getSize(),e=this._container;this._svgSize&&this._svgSize.equals(i)||(this._svgSize=i,e.setAttribute("width",i.x),e.setAttribute("height",i.y)),Ri(e,t.min),e.setAttribute("viewBox",[t.min.x,t.min.y,i.x,i.y].join(" ")),this.fire("update")}},_initPath:function(t){var i=t._path=ln("path");t.options.className&&Si(i,t.options.className),t.options.interactive&&Si(i,"leaflet-interactive"),this._updateStyle(t),this._layers[r(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){Ti(t._path),t.removeInteractiveTarget(t._path),delete this._layers[r(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var i=t._path,e=t.options;i&&(e.stroke?(i.setAttribute("stroke",e.color),i.setAttribute("stroke-opacity",e.opacity),i.setAttribute("stroke-width",e.weight),i.setAttribute("stroke-linecap",e.lineCap),i.setAttribute("stroke-linejoin",e.lineJoin),e.dashArray?i.setAttribute("stroke-dasharray",e.dashArray):i.removeAttribute("stroke-dasharray"),e.dashOffset?i.setAttribute("stroke-dashoffset",e.dashOffset):i.removeAttribute("stroke-dashoffset")):i.setAttribute("stroke","none"),e.fill?(i.setAttribute("fill",e.fillColor||e.color),i.setAttribute("fill-opacity",e.fillOpacity),i.setAttribute("fill-rule",e.fillRule||"evenodd")):i.setAttribute("fill","none"))},_updatePoly:function(t,i){this._setPath(t,X(t._parts,i))},_updateCircle:function(t){var i=t._point,e=Math.max(Math.round(t._radius),1),n="a"+e+","+(Math.max(Math.round(t._radiusY),1)||e)+" 0 1,0 ",o=t._empty()?"M0 0":"M"+(i.x-e)+","+i.y+n+2*e+",0 "+n+2*-e+",0 ";this._setPath(t,o)},_setPath:function(t,i){t._path.setAttribute("d",i)},_bringToFront:function(t){Mi(t._path)},_bringToBack:function(t){Ci(t._path)}});function _n(t){return Mt||Ct?new cn(t):null}Ct&&cn.include(un),qi.include({getRenderer:function(t){var i=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return i||(i=this._renderer=this.options.preferCanvas&&an()||_n()),this.hasLayer(i)||this.addLayer(i),i},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var i=this._paneRenderers[t];return void 0===i&&(i=cn&&_n({pane:t})||rn&&an({pane:t}),this._paneRenderers[t]=i),i}});var dn=Oe.extend({initialize:function(t,i){Oe.prototype.initialize.call(this,this._boundsToLatLngs(t),i)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=D(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});cn.create=ln,cn.pointsToPath=X,Re.geometryToLayer=De,Re.coordsToLatLng=Ne,Re.coordsToLatLngs=je,Re.latLngToCoords=We,Re.latLngsToCoords=He,Re.getFeature=Fe,Re.asFeature=Ue,qi.mergeOptions({boxZoom:!0});var pn=Qi.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){Yt(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Jt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Ti(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),di(),ji(),this._startPoint=this._map.mouseEventToContainerPoint(t),Yt(document,{contextmenu:oi,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=bi("div","leaflet-zoom-box",this._container),Si(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var i=new B(this._point,this._startPoint),e=i.getSize();Ri(this._box,i.min),this._box.style.width=e.x+"px",this._box.style.height=e.y+"px"},_finish:function(){this._moved&&(Ti(this._box),Ei(this._container,"leaflet-crosshair")),pi(),Wi(),Jt(document,{contextmenu:oi,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(o(this._resetState,this),0);var i=new R(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(i).fire("boxzoomend",{boxZoomBounds:i})}},_onKeyDown:function(t){27===t.keyCode&&this._finish()}});qi.addInitHook("addHandler","boxZoom",pn),qi.mergeOptions({doubleClickZoom:!0});var mn=Qi.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var i=this._map,e=i.getZoom(),n=i.options.zoomDelta,o=t.originalEvent.shiftKey?e-n:e+n;"center"===i.options.doubleClickZoom?i.setZoom(o):i.setZoomAround(t.containerPoint,o)}});qi.addInitHook("addHandler","doubleClickZoom",mn),qi.mergeOptions({dragging:!0,inertia:!nt,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var fn=Qi.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new se(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}Si(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Ei(this._map._container,"leaflet-grab"),Ei(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var i=D(this._map.options.maxBounds);this._offsetLimit=O(this._map.latLngToContainerPoint(i.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(i.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var i=this._lastTime=+new Date,e=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(e),this._times.push(i),this._prunePositions(i)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),i=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=i.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,i){return t-(t-i)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),i=this._offsetLimit;t.xi.max.x&&(t.x=this._viscousLimit(t.x,i.max.x)),t.y>i.max.y&&(t.y=this._viscousLimit(t.y,i.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,i=Math.round(t/2),e=this._initialWorldOffset,n=this._draggable._newPos.x,o=(n-i+e)%t+i-e,s=(n+i+e)%t-i-e,r=Math.abs(o+e)0?s:-s))-i;this._delta=0,this._startTime=null,r&&("center"===t.options.scrollWheelZoom?t.setZoom(i+r):t.setZoomAround(this._lastMousePos,i+r))}});qi.addInitHook("addHandler","scrollWheelZoom",vn),qi.mergeOptions({tap:!0,tapTolerance:15});var yn=Qi.extend({addHooks:function(){Yt(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Jt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(t.touches){if(ni(t),this._fireClick=!0,t.touches.length>1)return this._fireClick=!1,void clearTimeout(this._holdTimeout);var i=t.touches[0],e=i.target;this._startPos=this._newPos=new k(i.clientX,i.clientY),e.tagName&&"a"===e.tagName.toLowerCase()&&Si(e,"leaflet-active"),this._holdTimeout=setTimeout(o((function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent("contextmenu",i))}),this),1e3),this._simulateEvent("mousedown",i),Yt(document,{touchmove:this._onMove,touchend:this._onUp},this)}},_onUp:function(t){if(clearTimeout(this._holdTimeout),Jt(document,{touchmove:this._onMove,touchend:this._onUp},this),this._fireClick&&t&&t.changedTouches){var i=t.changedTouches[0],e=i.target;e&&e.tagName&&"a"===e.tagName.toLowerCase()&&Ei(e,"leaflet-active"),this._simulateEvent("mouseup",i),this._isTapValid()&&this._simulateEvent("click",i)}},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(t){var i=t.touches[0];this._newPos=new k(i.clientX,i.clientY),this._simulateEvent("mousemove",i)},_simulateEvent:function(t,i){var e=document.createEvent("MouseEvents");e._simulated=!0,i.target._simulatedClick=!0,e.initMouseEvent(t,!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),i.target.dispatchEvent(e)}});Pt&&!wt&&qi.addInitHook("addHandler","tap",yn),qi.mergeOptions({touchZoom:Pt&&!nt,bounceAtZoomLimits:!0});var xn=Qi.extend({addHooks:function(){Si(this._map._container,"leaflet-touch-zoom"),Yt(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Ei(this._map._container,"leaflet-touch-zoom"),Jt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var i=this._map;if(t.touches&&2===t.touches.length&&!i._animatingZoom&&!this._zooming){var e=i.mouseEventToContainerPoint(t.touches[0]),n=i.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=i.getSize()._divideBy(2),this._startLatLng=i.containerPointToLatLng(this._centerPoint),"center"!==i.options.touchZoom&&(this._pinchStartLatLng=i.containerPointToLatLng(e.add(n)._divideBy(2))),this._startDist=e.distanceTo(n),this._startZoom=i.getZoom(),this._moved=!1,this._zooming=!0,i._stop(),Yt(document,"touchmove",this._onTouchMove,this),Yt(document,"touchend",this._onTouchEnd,this),ni(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var i=this._map,e=i.mouseEventToContainerPoint(t.touches[0]),n=i.mouseEventToContainerPoint(t.touches[1]),s=e.distanceTo(n)/this._startDist;if(this._zoom=i.getScaleZoom(s,this._startZoom),!i.options.bounceAtZoomLimits&&(this._zoomi.getMaxZoom()&&s>1)&&(this._zoom=i._limitZoom(this._zoom)),"center"===i.options.touchZoom){if(this._center=this._startLatLng,1===s)return}else{var r=e._add(n)._divideBy(2)._subtract(this._centerPoint);if(1===s&&0===r.x&&0===r.y)return;this._center=i.unproject(i.project(this._pinchStartLatLng,this._zoom).subtract(r),this._zoom)}this._moved||(i._moveStart(!0,!1),this._moved=!0),M(this._animRequest);var a=o(i._move,i,this._center,this._zoom,{pinch:!0,round:!1});this._animRequest=z(a,this,!0),ni(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,M(this._animRequest),Jt(document,"touchmove",this._onTouchMove),Jt(document,"touchend",this._onTouchEnd),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});qi.addInitHook("addHandler","touchZoom",xn),qi.BoxZoom=pn,qi.DoubleClickZoom=mn,qi.Drag=fn,qi.Keyboard=gn,qi.ScrollWheelZoom=vn,qi.Tap=yn,qi.TouchZoom=xn;var wn=window.L;window.L=t,Object.freeze=i,t.version="1.3.1",t.noConflict=function(){return window.L=wn,this},t.Control=Gi,t.control=Ki,t.Browser=St,t.Evented=E,t.Mixin=ie,t.Util=C,t.Class=Z,t.Handler=Qi,t.extend=e,t.bind=o,t.stamp=r,t.setOptions=d,t.DomEvent=vi,t.DomUtil=Ui,t.PosAnimation=Vi,t.Draggable=se,t.LineUtil=fe,t.PolyUtil=ve,t.Point=k,t.point=A,t.Bounds=B,t.bounds=O,t.Transformation=V,t.transformation=q,t.Projection=we,t.LatLng=N,t.latLng=j,t.LatLngBounds=R,t.latLngBounds=D,t.CRS=H,t.GeoJSON=Re,t.geoJSON=qe,t.geoJson=Ge,t.Layer=Te,t.LayerGroup=ze,t.layerGroup=function(t,i){return new ze(t,i)},t.FeatureGroup=Me,t.featureGroup=function(t){return new Me(t)},t.ImageOverlay=Ke,t.imageOverlay=function(t,i,e){return new Ke(t,i,e)},t.VideoOverlay=Ye,t.videoOverlay=function(t,i,e){return new Ye(t,i,e)},t.DivOverlay=Xe,t.Popup=Je,t.popup=function(t,i){return new Je(t,i)},t.Tooltip=$e,t.tooltip=function(t,i){return new $e(t,i)},t.Icon=Ce,t.icon=function(t){return new Ce(t)},t.DivIcon=Qe,t.divIcon=function(t){return new Qe(t)},t.Marker=Ee,t.marker=function(t,i){return new Ee(t,i)},t.TileLayer=en,t.tileLayer=nn,t.GridLayer=tn,t.gridLayer=function(t){return new tn(t)},t.SVG=cn,t.svg=_n,t.Renderer=sn,t.Canvas=rn,t.canvas=an,t.Path=ke,t.CircleMarker=Ie,t.circleMarker=function(t,i){return new Ie(t,i)},t.Circle=Ae,t.circle=function(t,i,e){return new Ae(t,i,e)},t.Polyline=Be,t.polyline=function(t,i){return new Be(t,i)},t.Polygon=Oe,t.polygon=function(t,i){return new Oe(t,i)},t.Rectangle=dn,t.rectangle=function(t,i){return new dn(t,i)},t.Map=qi,t.map=function(t,i){return new qi(t,i)}}(i)}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/45243.affd309bf2aa3f38d3a0.chunk.js.LICENSE.txt b/geonode_mapstore_client/static/mapstore/dist/js/45243.018dc26183efb561a8b1.chunk.js.LICENSE.txt similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/45243.affd309bf2aa3f38d3a0.chunk.js.LICENSE.txt rename to geonode_mapstore_client/static/mapstore/dist/js/45243.018dc26183efb561a8b1.chunk.js.LICENSE.txt diff --git a/geonode_mapstore_client/static/mapstore/dist/js/45357.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/45357.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/45357.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/45357.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/45405.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/45405.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/45405.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/45405.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/45447.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/45447.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/45447.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/45447.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/45453.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/45453.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/45453.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/45453.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/45459.018dc26183efb561a8b1.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/45459.018dc26183efb561a8b1.chunk.js new file mode 100644 index 0000000000..923a910ea4 --- /dev/null +++ b/geonode_mapstore_client/static/mapstore/dist/js/45459.018dc26183efb561a8b1.chunk.js @@ -0,0 +1 @@ +(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[45459],{545459:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>z});var n=o(893379),r=o.n(n),i=o(949916);r()(i.Z,{insert:"head",singleton:!1}),i.Z.locals;var s=o(727418),a=o.n(s),p=o(611847),l=o(949179),c=o(558493),u=o(193409),h=o(623068),g=o(973410),f=o(429902),d=o(116892),m=o(752043),y=o(869669),v=o(798090),b=o(898185),w=o(120767),O=o(831219),k=o(162875),x=o(823493),A=o.n(x),E=o(414293),P=o.n(E),S=o(199405);function j(t){return j="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},j(t)}function C(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}function L(t){for(var e=1;eo.options.locateOptions.speedThreshold&&o.posFt.setProperties({heading:t})})),this.popup=D,this.popup.hidden=!0,this.popCnt=D.getElementsByClassName("ol-popup-cnt")[0],this.overlay=new u.Z({element:this.popup,positioning:"top-center",stopEvent:!1}),this.layer=new f.Z({source:new g.Z({useSpatialIndex:!1})}),this.posFt=new h.Z({geometry:this.geolocate.getAccuracyGeometry(),properties:{heading:this.geolocate.getHeading()},name:"position",id:"_locate-pos"}),this.posFt.setStyle(this.options.style),this.layer.getSource().addFeature(this.posFt),this.clickHandler=this.mapClick.bind(this),this.stopHandler=this.stopFollow.bind(this),this.errorHandler=this.options.onLocationError.bind(this)};(0,l.XW)(F,c.ZP),F.prototype.start=function(){this.geolocate.on("error",this.errorHandler),this.follow=this.options.follow,this.geolocate.setTracking(!0),this.layer.setMap(this.map),this.map.addOverlay(this.overlay),this.options.showPopup&&(this.map.on("click",this.clickHandler),this.map.on("touch",this.clickHandler)),this.options.stopFollowingOnDrag&&this.map.on("pointerdrag",this.stopHandler),this.p?this._updatePosFt():this.set("state","LOCATING")},F.prototype.startFollow=function(){this.follow=!0,this.options.stopFollowingOnDrag&&this.map.on("pointerdrag",this.stopHandler),this.p&&this._updatePosFt()},F.prototype.stop=function(){this.geolocate.un("error",this.errorHandler),this.geolocate.setTracking(!1),this.popup.hide=!0,this.map.removeOverlay(this.overlay),this.layer.setMap(null),this.options.showPopup&&(this.map.un("click",this.clickHandler),this.map.un("touch",this.clickHandler)),this.options.stopFollowingOnDrag&&this.map.un("pointerdrag",this.stopHandler),this.set("state","DISABLED")},F.prototype.stopFollow=function(){this.follow=!1,this.map.un("pointerdrag",this.stopHandler),this.set("state","ENABLED")},F.prototype._updatePosFt=function(){var t=this.get("state"),e=this.follow?"FOLLOWING":"ENABLED";e!==t&&this.set("state",e);var o=this.geolocate.getPosition();this.p=o;var n=new m.Z([parseFloat(o[0]),parseFloat(o[1])]);if(this.options.drawCircle)if(null===this.geolocate.getAccuracyGeometry()){var r=new y.Z([parseFloat(o[0]),parseFloat(o[1])],this.geolocate.getAccuracy());this.posFt.setGeometry(new v.default([n,r]))}else{var i=this.geolocate.getAccuracyGeometry();this.posFt.setGeometry(new v.default([n,i]))}else this.posFt.setGeometry(new v.default([n]));var s=this.geolocate.getHeading();if(this.posFt.setProperties({heading:s}),this.popup.hidden||this._updatePopUpCnt(),this.follow&&this.updateView(n),this.options.remainActive||this.geolocate.setTracking(!1),"true"===(0,p.vl)(window.location.search).locateDebug){var a=document.getElementById("OL_LOCATION_DEBUG");a||((a=document.createElement("div")).setAttribute("id","OL_LOCATION_DEBUG"),a.setAttribute("style","position: absolute; bottom: 0; width: 100%; height: 200px; z-index:100000; background: rgba(5,5,5,.5)"),document.body.appendChild(a));var l=this.geolocate.getSpeed();a.innerHTML="
\n            Position: ".concat(o[0],", ").concat(o[1],",\n            Heading: ").concat(s,"\n            speed: ").concat(l,"\n        
")}},F.prototype.updateView=function(t){this.follow&&(this.map.getView().setCenter(t.getCoordinates()),this.options.keepCurrentZoomLevel||this.map.getView().setZoom(this.options.locateOptions.maxZoom))},F.prototype._updatePopUpCnt=function(){var t,e;this.options.metric?(t=this.geolocate.getAccuracy(),e=this.options.strings.metersUnit):(t=Math.round(3.2808399*this.geolocate.getAccuracy()),e=this.options.strings.feetUnit);var o=this.options.strings.popup.replace("{distance}",t);this.popCnt.innerHTML=o.replace("{unit}",e),this.overlay.setPosition(this.posFt.getGeometry().getGeometries()[0].getCoordinates()),this.popup.hidden=!1},F.prototype.onLocationError=function(t){alert(t.message)},F.prototype.mapClick=function(t){var e=this.map.forEachFeatureAtPixel(t.pixel,(function(t){return t}));e&&"_locate-pos"===e.get("id")&&this.popup.hidden?this._updatePopUpCnt():this.popup.hidden||(D.hidden=!0)},F.prototype._getDefaultStyles=function(){var t=this,e="#2A93EE",o={fill:new b.default({color:"rgba(19,106,236,0.15)"}),stroke:new w.default({color:"rgba(19,106,236,1)",width:2})},n=(0,S.w)({color:e,svgAttributes:'width="300" height="300"'}),r=(0,S.B)({color:e,svgAttributes:'width="300" height="300"'});return function(e){var i,s=null===(i=e.getProperties())||void 0===i?void 0:i.heading,a=t.geolocate.getSpeed();return!P()(s)&&a>t.options.locateOptions.speedThreshold?new O.default(L({image:new k.default({imgSize:[300,300],anchorXUnits:"fraction",anchorYUnits:"fraction",anchor:[.5,.5],scale:.2,rotation:null!=s?s:0,opacity:1,src:"data:image/svg+xml;charset=utf-8,"+encodeURIComponent(n)})},o)):new O.default(L({image:new k.default({imgSize:[300,300],anchorXUnits:"fraction",anchorYUnits:"fraction",anchor:[.5,.5],scale:.2,rotation:null!=s?s:0,opacity:1,src:"data:image/svg+xml;charset=utf-8,"+encodeURIComponent(r)})},o))}},F.prototype.setStrings=function(t){this.options.strings=a()({},this.options.strings,t)},F.prototype.setTrackingOptions=function(t){this.geolocate&&(this.geolocate.setTrackingOptions(t),this.options.locateOptions=L({},t))};const H=F;function T(t){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},T(t)}function _(t,e){for(var o=0;o{"use strict";o.d(e,{w:()=>r,B:()=>i});var n=8;function r(t){var e=t.color,o=void 0===e?"#2A93EE":e,r=t.svgAttributes,i=t.strokeWidth,s=void 0===i?n:i;return'\n\t\t\n \n \n \n \n \n \n \n \n \n ')}function i(t){var e=t.color,o=void 0===e?"#2A93EE":e,r=t.svgAttributes,i=t.strokeWidth,s=void 0===i?n:i;return'\n\t\t\n \n \n \n \n \n \n ')}},611847:(t,e,o)=>{"use strict";o.d(e,{ij:()=>y,w0:()=>v,vl:()=>b,K2:()=>w,Nw:()=>O});var n=o(472500),r=o.n(n),i=o(701469),s=o.n(i),a=o(747037),p=o.n(a),l=o(618446),c=o.n(l),u=o(189734),h=o.n(u),g=o(313311),f=o.n(g),d=o(964210);function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,n=new Array(e);o0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(t===e)return!0;if(!t&&!e)return!0;var o=t?t.split("&").filter((function(t){return!!t})):[],n=e?e.split("&").filter((function(t){return!!t})):[];return c()(h()(o),h()(n))}(i.query,a.query);return g&&d&&f&&m&&v},b=function(t){return d.Qc(t)},w=function(t){return new RegExp(arguments.length>1&&void 0!==arguments[1]?arguments[1]:/^(http(s{0,1}):\/\/)+?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$/).test(t)},O=function(t,e){var o=new RegExp(arguments.length>2&&void 0!==arguments[2]?arguments[2]:/^(http(s{0,1}):\/\/)+?[\w.\-{}]+(?:\.[\w\.-]+)+[\w\-\._~\/\;\.\%\:\&\=\?{}]+$/).test(t);if(!o)return!1;if(o&&!e)return!0;if(o&&e){var n=/\{(.*?)\}/.test(t);return 0===e.filter((function(t){return f()(n,t)})).length}return!1}},949916:(t,e,o)=>{"use strict";o.d(e,{Z:()=>i});var n=o(923645),r=o.n(n)()((function(t){return t[1]}));r.push([t.id,'.msgapi .ol-popup {\n position: absolute;\n text-align: center;\n font: 12px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;\n -ms-transform: translate(-50%,-100%); /* IE 9 */\n -webkit-transform: translate(-50%,-100%); /* Safari */\n transform: translate(-50%,-100%);\n}\n.msgapi a.ol-popup-close-btn {\n position: absolute;\n top: 0;\n right: 0;\n padding: 4px 4px 0 0;\n text-align: center;\n width: 18px;\n height: 14px;\n font: 16px/14px Tahoma, Verdana, sans-serif;\n color: #c3c3c3;\n text-decoration: none;\n font-weight: bold;\n background: transparent;\n}\n.msgapi .ol-popup-cnt-wrapper {\n padding: 1px;\n text-align: left;\n border-radius: 12px;\n}\n.msgapi .ol-popup-cnt-wrapper, .msgapi .ol-popup-tip {\n background: white;\n box-shadow: 0 3px 14px rgba(0,0,0,0.4);\n}\n.msgapi .ol-popup-cnt {\n margin: 13px 19px;\n line-height: 1.4;\n white-space: nowrap;\n\n}\n.msgapi .ol-popup-tip-wrapper {\n margin: 0 auto;\n width: 40px;\n height: 20px;\n position: relative;\n overflow: hidden;\n\n}\n.msgapi .ol-popup-tip {\n width: 17px;\n height: 17px;\n padding: 1px;\n margin: -10px auto 0;\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -ms-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n transform: rotate(45deg);\n}\n',""]);const i=r}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/45459.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/45459.affd309bf2aa3f38d3a0.chunk.js deleted file mode 100644 index 98639ca7ac..0000000000 --- a/geonode_mapstore_client/static/mapstore/dist/js/45459.affd309bf2aa3f38d3a0.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[45459],{545459:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>V});var n=o(893379),r=o.n(n),i=o(949916);r()(i.Z,{insert:"head",singleton:!1}),i.Z.locals;var s=o(727418),a=o.n(s),p=o(611847),l=o(949179),c=o(558493),u=o(193409),h=o(623068),f=o(973410),g=o(429902),d=o(116892),m=o(752043),y=o(869669),v=o(798090),b=o(898185),w=o(120767),O=o(831219),k=o(162875),x=o(823493),A=o.n(x),E=o(414293),P=o.n(E),S=o(199405);function j(t){return j="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},j(t)}function C(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}function L(t){for(var e=1;eo.options.locateOptions.speedThreshold&&o.posFt.setProperties({heading:t})})),this.popup=F,this.popup.hidden=!0,this.popCnt=F.getElementsByClassName("ol-popup-cnt")[0],this.overlay=new u.Z({element:this.popup,positioning:"top-center",stopEvent:!1}),this.layer=new g.Z({source:new f.Z({useSpatialIndex:!1})}),this.posFt=new h.Z({geometry:this.geolocate.getAccuracyGeometry(),properties:{heading:this.geolocate.getHeading()},name:"position",id:"_locate-pos"}),this.posFt.setStyle(this.options.style),this.layer.getSource().addFeature(this.posFt),this.clickHandler=this.mapClick.bind(this),this.stopHandler=this.stopFollow.bind(this),this.errorHandler=this.options.onLocationError.bind(this)};(0,l.XW)(H,c.ZP),H.prototype.start=function(){this.geolocate.on("error",this.errorHandler),this.follow=this.options.follow,this.geolocate.setTracking(!0),this.layer.setMap(this.map),this.map.addOverlay(this.overlay),this.options.showPopup&&(this.map.on("click",this.clickHandler),this.map.on("touch",this.clickHandler)),this.options.stopFollowingOnDrag&&this.map.on("pointerdrag",this.stopHandler),this.p?this._updatePosFt():this.set("state","LOCATING")},H.prototype.startFollow=function(){this.follow=!0,this.options.stopFollowingOnDrag&&this.map.on("pointerdrag",this.stopHandler),this.p&&this._updatePosFt()},H.prototype.stop=function(){this.geolocate.un("error",this.errorHandler),this.geolocate.setTracking(!1),this.popup.hide=!0,this.map.removeOverlay(this.overlay),this.layer.setMap(null),this.options.showPopup&&(this.map.un("click",this.clickHandler),this.map.un("touch",this.clickHandler)),this.options.stopFollowingOnDrag&&this.map.un("pointerdrag",this.stopHandler),this.set("state","DISABLED")},H.prototype.stopFollow=function(){this.follow=!1,this.map.un("pointerdrag",this.stopHandler),this.set("state","ENABLED")},H.prototype._updatePosFt=function(){var t=this.get("state"),e=this.follow?"FOLLOWING":"ENABLED";e!==t&&this.set("state",e);var o=this.geolocate.getPosition();this.p=o;var n=new m.Z([parseFloat(o[0]),parseFloat(o[1])]);if(this.options.drawCircle)if(null===this.geolocate.getAccuracyGeometry()){var r=new y.Z([parseFloat(o[0]),parseFloat(o[1])],this.geolocate.getAccuracy());this.posFt.setGeometry(new v.default([n,r]))}else{var i=this.geolocate.getAccuracyGeometry();this.posFt.setGeometry(new v.default([n,i]))}else this.posFt.setGeometry(new v.default([n]));var s=this.geolocate.getHeading();if(this.posFt.setProperties({heading:s}),this.popup.hidden||this._updatePopUpCnt(),this.follow&&this.updateView(n),this.options.remainActive||this.geolocate.setTracking(!1),"true"===(0,p.vl)(window.location.search).locateDebug){var a=document.getElementById("OL_LOCATION_DEBUG");a||((a=document.createElement("div")).setAttribute("id","OL_LOCATION_DEBUG"),a.setAttribute("style","position: absolute; bottom: 0; width: 100%; height: 200px; z-index:100000; background: rgba(5,5,5,.5)"),document.body.appendChild(a));var l=this.geolocate.getSpeed();a.innerHTML="
\n            Position: ".concat(o[0],", ").concat(o[1],",\n            Heading: ").concat(s,"\n            speed: ").concat(l,"\n        
")}},H.prototype.updateView=function(t){this.follow&&(this.map.getView().setCenter(t.getCoordinates()),this.options.keepCurrentZoomLevel||this.map.getView().setZoom(this.options.locateOptions.maxZoom))},H.prototype._updatePopUpCnt=function(){var t,e;this.options.metric?(t=this.geolocate.getAccuracy(),e=this.options.strings.metersUnit):(t=Math.round(3.2808399*this.geolocate.getAccuracy()),e=this.options.strings.feetUnit);var o=this.options.strings.popup.replace("{distance}",t);this.popCnt.innerHTML=o.replace("{unit}",e),this.overlay.setPosition(this.posFt.getGeometry().getGeometries()[0].getCoordinates()),this.popup.hidden=!1},H.prototype.onLocationError=function(t){alert(t.message)},H.prototype.mapClick=function(t){var e=this.map.forEachFeatureAtPixel(t.pixel,(function(t){return t}));e&&"_locate-pos"===e.get("id")&&this.popup.hidden?this._updatePopUpCnt():this.popup.hidden||(F.hidden=!0)},H.prototype._getDefaultStyles=function(){var t=this,e="#2A93EE",o={fill:new b.default({color:"rgba(19,106,236,0.15)"}),stroke:new w.default({color:"rgba(19,106,236,1)",width:2})},n=(0,S.w)({color:e,svgAttributes:'width="300" height="300"'}),r=(0,S.B)({color:e,svgAttributes:'width="300" height="300"'});return function(e){var i,s=null===(i=e.getProperties())||void 0===i?void 0:i.heading,a=t.geolocate.getSpeed();return!P()(s)&&a>t.options.locateOptions.speedThreshold?new O.default(L({image:new k.default({imgSize:[300,300],anchorXUnits:"fraction",anchorYUnits:"fraction",anchor:[.5,.5],scale:.2,rotation:null!=s?s:0,opacity:1,src:"data:image/svg+xml;charset=utf-8,"+encodeURIComponent(n)})},o)):new O.default(L({image:new k.default({imgSize:[300,300],anchorXUnits:"fraction",anchorYUnits:"fraction",anchor:[.5,.5],scale:.2,rotation:null!=s?s:0,opacity:1,src:"data:image/svg+xml;charset=utf-8,"+encodeURIComponent(r)})},o))}},H.prototype.setStrings=function(t){this.options.strings=a()({},this.options.strings,t)},H.prototype.setTrackingOptions=function(t){this.geolocate&&(this.geolocate.setTrackingOptions(t),this.options.locateOptions=L({},t))};const T=H;function _(t){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_(t)}function U(t,e){for(var o=0;o{"use strict";o.d(e,{w:()=>r,B:()=>i});var n=8;function r(t){var e=t.color,o=void 0===e?"#2A93EE":e,r=t.svgAttributes,i=t.strokeWidth,s=void 0===i?n:i;return'\n\t\t\n \n \n \n \n \n \n \n \n \n ')}function i(t){var e=t.color,o=void 0===e?"#2A93EE":e,r=t.svgAttributes,i=t.strokeWidth,s=void 0===i?n:i;return'\n\t\t\n \n \n \n \n \n \n ')}},611847:(t,e,o)=>{"use strict";o.d(e,{ij:()=>y,w0:()=>v,vl:()=>b,K2:()=>w,Nw:()=>O});var n=o(472500),r=o.n(n),i=o(701469),s=o.n(i),a=o(747037),p=o.n(a),l=o(618446),c=o.n(l),u=o(189734),h=o.n(u),f=o(313311),g=o.n(f),d=o(964210);function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,n=new Array(e);o0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(t===e)return!0;if(!t&&!e)return!0;var o=t?t.split("&").filter((function(t){return!!t})):[],n=e?e.split("&").filter((function(t){return!!t})):[];return c()(h()(o),h()(n))}(i.query,a.query);return f&&d&&g&&m&&v},b=function(t){return d.Qc(t)},w=function(t){return new RegExp(arguments.length>1&&void 0!==arguments[1]?arguments[1]:/^(http(s{0,1}):\/\/)+?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$/).test(t)},O=function(t,e){var o=new RegExp(arguments.length>2&&void 0!==arguments[2]?arguments[2]:/^(http(s{0,1}):\/\/)+?[\w.\-{}]+(?:\.[\w\.-]+)+[\w\-\._~\/\;\.\%\:\&\=\?{}]+$/).test(t);if(!o)return!1;if(o&&!e)return!0;if(o&&e){var n=/\{(.*?)\}/.test(t);return 0===e.filter((function(t){return g()(n,t)})).length}return!1}},949916:(t,e,o)=>{"use strict";o.d(e,{Z:()=>i});var n=o(923645),r=o.n(n)()((function(t){return t[1]}));r.push([t.id,'.msgapi .ol-popup {\n position: absolute;\n text-align: center;\n font: 12px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;\n -ms-transform: translate(-50%,-100%); /* IE 9 */\n -webkit-transform: translate(-50%,-100%); /* Safari */\n transform: translate(-50%,-100%);\n}\n.msgapi a.ol-popup-close-btn {\n position: absolute;\n top: 0;\n right: 0;\n padding: 4px 4px 0 0;\n text-align: center;\n width: 18px;\n height: 14px;\n font: 16px/14px Tahoma, Verdana, sans-serif;\n color: #c3c3c3;\n text-decoration: none;\n font-weight: bold;\n background: transparent;\n}\n.msgapi .ol-popup-cnt-wrapper {\n padding: 1px;\n text-align: left;\n border-radius: 12px;\n}\n.msgapi .ol-popup-cnt-wrapper, .msgapi .ol-popup-tip {\n background: white;\n box-shadow: 0 3px 14px rgba(0,0,0,0.4);\n}\n.msgapi .ol-popup-cnt {\n margin: 13px 19px;\n line-height: 1.4;\n white-space: nowrap;\n\n}\n.msgapi .ol-popup-tip-wrapper {\n margin: 0 auto;\n width: 40px;\n height: 20px;\n position: relative;\n overflow: hidden;\n\n}\n.msgapi .ol-popup-tip {\n width: 17px;\n height: 17px;\n padding: 1px;\n margin: -10px auto 0;\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -ms-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n transform: rotate(45deg);\n}\n',""]);const i=r}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/45477.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/45477.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/45477.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/45477.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/45531.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/45531.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/45531.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/45531.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/45612.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/45612.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/45612.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/45612.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/45649.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/45649.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/45649.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/45649.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/45675.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/45675.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/45675.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/45675.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/45678.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/45678.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/45678.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/45678.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/45688.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/45688.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/45688.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/45688.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/45914.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/45914.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/45914.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/45914.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/45992.018dc26183efb561a8b1.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/45992.018dc26183efb561a8b1.chunk.js new file mode 100644 index 0000000000..9e482c50a6 --- /dev/null +++ b/geonode_mapstore_client/static/mapstore/dist/js/45992.018dc26183efb561a8b1.chunk.js @@ -0,0 +1 @@ +(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[45992,34344],{45992:(t,r,e)=>{"use strict";e.d(r,{h:()=>p,Z:()=>s});var o=e(535937),n=e.n(o),i=e(836882),u=e(737275);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function a(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,o)}return e}function l(t){for(var r=1;r{"use strict";e.d(r,{h:()=>s,Z:()=>f});var o=e(535937),n=e.n(o),i=e(836882),u=e(737275);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function a(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,o)}return e}function l(t){for(var r=1;r{"use strict";n.d(t,{Z:()=>a});var r=n(923645),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,'.msgapi .react-checkbox-tree {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: reverse;\n -ms-flex-direction: row-reverse;\n flex-direction: row-reverse;\n font-size: 16px;\n}\n\n.msgapi .react-checkbox-tree > ol {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n}\n\n.msgapi .react-checkbox-tree ol {\n margin: 0;\n padding-left: 0;\n list-style-type: none;\n}\n\n.msgapi .react-checkbox-tree ol ol {\n padding-left: 24px;\n}\n\n.msgapi .react-checkbox-tree button {\n line-height: normal;\n color: inherit;\n}\n\n.msgapi .react-checkbox-tree button:focus {\n outline: none;\n}\n\n.msgapi .react-checkbox-tree button:disabled {\n cursor: not-allowed;\n}\n\n.msgapi .react-checkbox-tree .rct-bare-label {\n cursor: default;\n}\n\n.msgapi .react-checkbox-tree label {\n margin-bottom: 0;\n cursor: pointer;\n}\n\n.msgapi .react-checkbox-tree label:hover {\n background: rgba(51, 51, 204, 0.1);\n}\n\n.msgapi .react-checkbox-tree label:active {\n background: rgba(51, 51, 204, 0.15);\n}\n\n.msgapi .react-checkbox-tree:not(.rct-native-display) input {\n display: none;\n}\n\n.msgapi .react-checkbox-tree.rct-native-display input {\n margin: 0 5px;\n}\n\n.msgapi .react-checkbox-tree .rct-icon {\n font-family: "FontAwesome";\n font-style: normal;\n}\n\n.msgapi .rct-disabled > .rct-text > label {\n opacity: .75;\n cursor: not-allowed;\n}\n\n.msgapi .rct-disabled > .rct-text > label:hover {\n background: transparent;\n}\n\n.msgapi .rct-disabled > .rct-text > label:active {\n background: transparent;\n}\n\n.msgapi .rct-text {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n\n.msgapi .rct-options {\n -webkit-box-flex: 0;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n margin-left: .5rem;\n text-align: right;\n}\n\n.msgapi .rct-option {\n opacity: .75;\n border: 0;\n background: none;\n cursor: pointer;\n padding: 0 4px;\n font-size: 18px;\n}\n\n.msgapi .rct-option:hover {\n opacity: 1;\n}\n\n.msgapi .rct-option + .rct-option {\n margin-left: 2px;\n}\n\n.msgapi .rct-collapse,\n.msgapi .rct-checkbox,\n.msgapi .rct-node-icon {\n padding: 0 5px;\n}\n\n.msgapi .rct-collapse *,\n.msgapi .rct-checkbox *,\n.msgapi .rct-node-icon * {\n display: inline-block;\n margin: 0;\n width: 14px;\n}\n\n.msgapi .rct-collapse {\n border: 0;\n background: none;\n line-height: normal;\n color: inherit;\n font-size: 12px;\n}\n\n.msgapi .rct-collapse.rct-collapse-btn {\n cursor: pointer;\n}\n\n.msgapi .rct-collapse > .rct-icon-expand-close {\n opacity: .5;\n}\n\n.msgapi .rct-collapse > .rct-icon-expand-close:hover {\n opacity: 1;\n}\n\n.msgapi .rct-native-display .rct-checkbox {\n display: none;\n}\n\n.msgapi .rct-node-clickable {\n cursor: pointer;\n}\n\n.msgapi .rct-node-clickable:hover {\n background: rgba(51, 51, 204, 0.1);\n}\n\n.msgapi .rct-node-clickable:focus {\n outline: 0;\n background: rgba(51, 51, 204, 0.2);\n}\n\n.msgapi .rct-node-icon {\n color: #33c;\n}\n\n.msgapi .rct-title {\n padding: 0 5px;\n}\n\n.msgapi .rct-icon-expand-close::before {\n content: "\\f054";\n}\n\n.msgapi .rct-icon-expand-open::before {\n content: "\\f078";\n}\n\n.msgapi .rct-icon-uncheck::before {\n content: "\\f096";\n}\n\n.msgapi .rct-icon-check::before {\n content: "\\f046";\n}\n\n.msgapi .rct-icon-half-check::before {\n opacity: .5;\n content: "\\f046";\n}\n\n.msgapi .rct-icon-leaf::before {\n content: "\\f016";\n}\n\n.msgapi .rct-icon-parent-open::before {\n content: "\\f115";\n}\n\n.msgapi .rct-icon-parent-close::before {\n content: "\\f114";\n}\n\n.msgapi .rct-icon-expand-all::before {\n content: "\\f0fe";\n}\n\n.msgapi .rct-icon-collapse-all::before {\n content: "\\f146";\n}\n',""]);const a=o},580760:(e,t,n)=>{var r=n(989881);e.exports=function(e,t){var n=[];return r(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}},498805:(e,t,n)=>{var r=n(440180),o=n(862689),a=n(683140),i=n(479833);e.exports=function(e){return function(t){t=i(t);var n=o(t)?a(t):void 0,c=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return c[e]()+l}}},548403:(e,t,n)=>{var r=n(479833),o=n(711700);e.exports=function(e){return o(r(e).toLowerCase())}},763105:(e,t,n)=>{var r=n(234963),o=n(580760),a=n(267206),i=n(701469);e.exports=function(e,t){return(i(e)?r:o)(e,a(t,3))}},313880:(e,t,n)=>{var r=n(479833);e.exports=function(){var e=arguments,t=r(e[0]);return e.length<3?t:t.replace(e[1],e[2])}},395659:(e,t,n)=>{var r=n(880531),o=n(440180),a=n(489817),i=n(683140),c=n(479833),l=/^\s+/;e.exports=function(e,t,n){if((e=c(e))&&(n||void 0===t))return e.replace(l,"");if(!e||!(t=r(t)))return e;var s=i(e),u=a(s,i(t));return o(s,u).join("")}},711700:(e,t,n)=>{var r=n(498805)("toUpperCase");e.exports=r},228388:(e,t,n)=>{var r;window,e.exports=(r=n(124852),function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=27)}([function(e,t,n){e.exports=n(96)()},function(e,t){e.exports=r},function(e,t,n){var r=n(16),o="object"==typeof self&&self&&self.Object===Object&&self,a=r||o||Function("return this")();e.exports=a},function(e,t,n){var r=n(41),o=n(47);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t,n){var r=n(31),o=n(32),a=n(33),i=n(34),c=n(35);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++tu))return!1;var f=l.get(e);if(f&&l.get(t))return f==t;var d=-1,h=!0,b=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++d-1&&e%1==0&&e<=9007199254740991}},function(e,t,n){var r=n(28);e.exports=function(e,t){return r(e,t)}},function(e,t,n){var r=self.crypto||self.msCrypto;e.exports=function(e){e=e||21;for(var t="",n=r.getRandomValues(new Uint8Array(e));0-1}},function(e,t,n){var r=n(5);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var r=n(4);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(4),o=n(11),a=n(19);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var i=n.__data__;if(!o||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(i)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(15),o=n(45),a=n(17),i=n(18),c=/^\[object .+?Constructor\]$/,l=Function.prototype,s=Object.prototype,u=l.toString,p=s.hasOwnProperty,f=RegExp("^"+u.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||o(e))&&(r(e)?f:c).test(i(e))}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(12),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,c=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,c),n=e[c];try{e[c]=void 0;var r=!0}catch(e){}var o=i.call(e);return r&&(t?e[c]=n:delete e[c]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r,o=n(46),a=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!a&&a in e}},function(e,t,n){var r=n(2)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(49),o=n(4),a=n(11);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||o),string:new r}}},function(e,t,n){var r=n(50),o=n(51),a=n(52),i=n(53),c=n(54);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["children","title"]);return f.a.createElement("button",h({"aria-label":n,title:n,type:"button"},r),t)}}])&&b(n.prototype,r),t}();g(m,"propTypes",{children:u.a.node.isRequired,title:u.a.string}),g(m,"defaultProps",{title:null});var x=m;function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.props=t,this.flatNodes=n}var t,n;return t=e,(n=[{key:"setProps",value:function(e){this.props=e}},{key:"clone",value:function(){var t=this,n={};return Object.keys(this.flatNodes).forEach((function(e){var r=t.flatNodes[e];n[e]=function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(Array.isArray(e)&&0!==e.length){var o=this.props,a=o.disabled,i=o.noCascade;e.forEach((function(e,o){var c=t.nodeHasChildren(e);t.flatNodes[e.value]={label:e.label,value:e.value,children:e.children,parent:n,isParent:c,isLeaf:!c,showCheckbox:void 0===e.showCheckbox||e.showCheckbox,disabled:t.getDisabledState(e,n,a,i),treeDepth:r,index:o},t.flattenNodes(e.children,e,r+1)}))}}},{key:"nodeHasChildren",value:function(e){return Array.isArray(e.children)&&e.children.length>0}},{key:"getDisabledState",value:function(e,t,n,r){return!!n||!(r||!t.disabled)||Boolean(e.disabled)}},{key:"deserializeLists",value:function(e){var t=this,n=["checked","expanded"];Object.keys(this.flatNodes).forEach((function(e){n.forEach((function(n){t.flatNodes[e][n]=!1}))})),n.forEach((function(n){e[n].forEach((function(e){void 0!==t.flatNodes[e]&&(t.flatNodes[e][n]=!0)}))}))}},{key:"serializeList",value:function(e){var t=this,n=[];return Object.keys(this.flatNodes).forEach((function(r){t.flatNodes[r][e]&&n.push(r)})),n}},{key:"expandAllNodes",value:function(e){var t=this;return Object.keys(this.flatNodes).forEach((function(n){t.flatNodes[n].isParent&&(t.flatNodes[n].expanded=e)})),this}},{key:"toggleChecked",value:function(e,t,n){var r=this,o=this.flatNodes[e.value];if(o.isLeaf||n){if(e.disabled)return this;this.toggleNode(e.value,"checked",t)}else o.children.forEach((function(e){r.toggleChecked(e,t,n)}));return this}},{key:"toggleNode",value:function(e,t,n){return this.flatNodes[e][t]=n,this}}])&&_(t.prototype,n),e}();function j(e){return(j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(){return(w=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0])||arguments[0];(0,this.props.onExpand)(this.state.model.clone().expandAllNodes(e).serializeList("expanded"))}},{key:"determineShallowCheckState",value:function(e,t){var n=this.state.model.getNode(e.value);return n.isLeaf||t?n.checked?1:0:this.isEveryChildChecked(e)?1:this.isSomeChildChecked(e)?2:0}},{key:"isEveryChildChecked",value:function(e){var t=this;return e.children.every((function(e){return 1===t.state.model.getNode(e.value).checkState}))}},{key:"isSomeChildChecked",value:function(e){var t=this;return e.children.some((function(e){return t.state.model.getNode(e.value).checkState>0}))}},{key:"renderTreeNodes",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=this.props,a=o.expandDisabled,i=o.expandOnClick,c=o.icons,l=o.lang,s=o.noCascade,u=o.onClick,p=o.onlyLeafCheckboxes,d=o.optimisticToggle,h=o.showNodeTitle,b=o.showNodeIcon,y=this.state,v=y.id,g=y.model,m=t.defaultProps.icons,x=e.map((function(e){var t=e.value,o=g.getNode(e.value),y=o.isParent?n.renderTreeNodes(e.children,e):null;o.checkState=n.determineShallowCheckState(e,s);var x=p?o.isLeaf:o.showCheckbox;return!r.value||g.getNode(r.value).expanded?f.a.createElement(B,{key:t,checked:o.checkState,className:e.className,disabled:o.disabled,expandDisabled:a,expandOnClick:i,expanded:o.expanded,icon:e.icon,icons:W({},m,c),label:e.label,lang:l,optimisticToggle:d,isLeaf:o.isLeaf,isParent:o.isParent,showCheckbox:x,showNodeIcon:b,title:h?e.title||e.label:e.title,treeId:v,value:e.value,onCheck:n.onCheck,onClick:u&&n.onNodeClick,onExpand:n.onExpand},y):null}));return f.a.createElement("ol",null,x)}},{key:"renderExpandAll",value:function(){var e=this.props,t=e.icons,n=t.expandAll,r=t.collapseAll,o=e.lang;return e.showExpandAll?f.a.createElement("div",{className:"rct-options"},f.a.createElement(x,{className:"rct-option rct-option-expand-all",title:o.expandAll,onClick:this.onExpandAll},n),f.a.createElement(x,{className:"rct-option rct-option-collapse-all",title:o.collapseAll,onClick:this.onCollapseAll},r)):null}},{key:"renderHiddenInput",value:function(){var e=this.props,t=e.name,n=e.nameAsArray;return void 0===t?null:n?this.renderArrayHiddenInput():this.renderJoinedHiddenInput()}},{key:"renderArrayHiddenInput",value:function(){var e=this.props,t=e.checked,n=e.name;return t.map((function(e){var t="".concat(n,"[]");return f.a.createElement("input",{key:e,name:t,type:"hidden",value:e})}))}},{key:"renderJoinedHiddenInput",value:function(){var e=this.props,t=e.checked,n=e.name,r=t.join(",");return f.a.createElement("input",{name:n,type:"hidden",value:r})}},{key:"render",value:function(){var e=this.props,t=e.disabled,n=e.nodes,r=e.nativeCheckboxes,a=this.renderTreeNodes(n),i=o()({"react-checkbox-tree":!0,"rct-disabled":t,"rct-native-display":r});return f.a.createElement("div",{className:i},this.renderExpandAll(),this.renderHiddenInput(),a)}}])&&Z(n.prototype,r),a&&Z(n,a),t}();Y(Q,"propTypes",{nodes:u.a.arrayOf(K).isRequired,checked:F,disabled:u.a.bool,expandDisabled:u.a.bool,expandOnClick:u.a.bool,expanded:F,icons:T,id:u.a.string,lang:R,name:u.a.string,nameAsArray:u.a.bool,nativeCheckboxes:u.a.bool,noCascade:u.a.bool,onlyLeafCheckboxes:u.a.bool,optimisticToggle:u.a.bool,showExpandAll:u.a.bool,showNodeIcon:u.a.bool,showNodeTitle:u.a.bool,onCheck:u.a.func,onClick:u.a.func,onExpand:u.a.func}),Y(Q,"defaultProps",{checked:[],disabled:!1,expandDisabled:!1,expandOnClick:!1,expanded:[],icons:{check:f.a.createElement("span",{className:"rct-icon rct-icon-check"}),uncheck:f.a.createElement("span",{className:"rct-icon rct-icon-uncheck"}),halfCheck:f.a.createElement("span",{className:"rct-icon rct-icon-half-check"}),expandClose:f.a.createElement("span",{className:"rct-icon rct-icon-expand-close"}),expandOpen:f.a.createElement("span",{className:"rct-icon rct-icon-expand-open"}),expandAll:f.a.createElement("span",{className:"rct-icon rct-icon-expand-all"}),collapseAll:f.a.createElement("span",{className:"rct-icon rct-icon-collapse-all"}),parentClose:f.a.createElement("span",{className:"rct-icon rct-icon-parent-close"}),parentOpen:f.a.createElement("span",{className:"rct-icon rct-icon-parent-open"}),leaf:f.a.createElement("span",{className:"rct-icon rct-icon-leaf"})},id:null,lang:{collapseAll:"Collapse all",expandAll:"Expand all",toggle:"Toggle"},name:void 0,nameAsArray:!1,nativeCheckboxes:!1,noCascade:!1,onlyLeafCheckboxes:!1,optimisticToggle:!0,showExpandAll:!1,showNodeIcon:!0,showNodeTitle:!1,onCheck:function(){},onClick:null,onExpand:function(){}}),t.default=Q}]))},561512:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;n--){var r=d(t[n]);if(null!==r)return r}return null}function h(e){var t=d(e),n=document.activeElement===e;if(null!==t&&null!==t.nodeValue&&n){var r=window.getSelection();if(null!==r){var o=document.createRange();o.setStart(t,t.nodeValue.length),o.collapse(!0),r.removeAllRanges(),r.addRange(o)}e instanceof HTMLElement&&e.focus()}}var b=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.lastHtml=t.props.html,t.el="function"==typeof t.props.innerRef?{current:null}:s.createRef(),t.getEl=function(){return(t.props.innerRef&&"function"!=typeof t.props.innerRef?t.props.innerRef:t.el).current},t.emitChange=function(e){var n=t.getEl();if(n){var r=n.innerHTML;if(t.props.onChange&&r!==t.lastHtml){var o=Object.assign({},e,{target:{value:r}});t.props.onChange(o)}t.lastHtml=r}},t}return o(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.tagName,r=t.html,o=t.innerRef,c=i(t,["tagName","html","innerRef"]);return s.createElement(n||"div",a({},c,{ref:"function"==typeof o?function(t){o(t),e.el.current=t}:o||this.el,onInput:this.emitChange,onBlur:this.props.onBlur||this.emitChange,onKeyUp:this.props.onKeyUp||this.emitChange,onKeyDown:this.props.onKeyDown||this.emitChange,contentEditable:!this.props.disabled,dangerouslySetInnerHTML:{__html:r}}),this.props.children)},t.prototype.shouldComponentUpdate=function(e){var t=this.props,n=this.getEl();return!n||f(e.html)!==f(n.innerHTML)||t.disabled!==e.disabled||t.tagName!==e.tagName||t.className!==e.className||t.innerRef!==e.innerRef||!u.default(t.style,e.style)},t.prototype.componentDidUpdate=function(){var e=this.getEl();e&&(this.props.html!==e.innerHTML&&(e.innerHTML=this.lastHtml=this.props.html),h(e))},t.propTypes={html:p.string.isRequired,onChange:p.func,disabled:p.bool,tagName:p.string,className:p.string,style:p.object,innerRef:p.oneOfType([p.object,p.func])},t}(s.Component);t.default=b},911937:e=>{"use strict";var t=Array.isArray,n=Object.keys,r=Object.prototype.hasOwnProperty;e.exports=function e(o,a){if(o===a)return!0;if(o&&a&&"object"==typeof o&&"object"==typeof a){var i,c,l,s=t(o),u=t(a);if(s&&u){if((c=o.length)!=a.length)return!1;for(i=c;0!=i--;)if(!e(o[i],a[i]))return!1;return!0}if(s!=u)return!1;var p=o instanceof Date,f=a instanceof Date;if(p!=f)return!1;if(p&&f)return o.getTime()==a.getTime();var d=o instanceof RegExp,h=a instanceof RegExp;if(d!=h)return!1;if(d&&h)return o.toString()==a.toString();var b=n(o);if((c=b.length)!==n(a).length)return!1;for(i=c;0!=i--;)if(!r.call(a,b[i]))return!1;for(i=c;0!=i--;)if(!e(o[l=b[i]],a[l]))return!1;return!0}return o!=o&&a!=a}},750288:(e,t,n)=>{"use strict";var r=n(893379),o=n.n(r),a=n(42229);o()(a.Z,{insert:"head",singleton:!1}),a.Z.locals}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/46278.affd309bf2aa3f38d3a0.chunk.js.LICENSE.txt b/geonode_mapstore_client/static/mapstore/dist/js/46278.018dc26183efb561a8b1.chunk.js.LICENSE.txt similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/46278.affd309bf2aa3f38d3a0.chunk.js.LICENSE.txt rename to geonode_mapstore_client/static/mapstore/dist/js/46278.018dc26183efb561a8b1.chunk.js.LICENSE.txt diff --git a/geonode_mapstore_client/static/mapstore/dist/js/46284.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/46284.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/46284.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/46284.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/46417.018dc26183efb561a8b1.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/46417.018dc26183efb561a8b1.chunk.js new file mode 100644 index 0000000000..145f35993f --- /dev/null +++ b/geonode_mapstore_client/static/mapstore/dist/js/46417.018dc26183efb561a8b1.chunk.js @@ -0,0 +1 @@ +(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[46417],{694745:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var o=n(124852),r=n.n(o),a=n(294184),i=n.n(a),l=n(480681),s=n(807472),c=n(80717),u=n(867076),p=n(819081),d=n.n(p),m=n(975480),f={xs:" ms-xs",sm:" ms-sm",md:"",lg:" ms-lg"},b={className:{vertical:" ms-fullscreen-v",horizontal:" ms-fullscreen-h",full:" ms-fullscreen"},glyph:{expanded:{vertical:"resize-vertical",horizontal:"resize-horizontal",full:"resize-small"},collapsed:{vertical:"resize-vertical",horizontal:"resize-horizontal",full:"resize-full"}}};const g=(0,u.withState)("fullscreenState","onFullscreen",(function(e){var t=e.initialFullscreenState;return void 0===t?"collapsed":t}))((function(e){var t=e.show,n=void 0!==t&&t,o=e.loading,a=e.loadingText,u=e.onClose,p=void 0===u?function(){}:u,g=e.title,y=void 0===g?"":g,v=e.clickOutEnabled,h=void 0===v||v,O=e.showClose,E=void 0===O||O,w=e.disabledClose,j=void 0!==w&&w,S=e.showFullscreen,P=void 0!==S&&S,C=e.fullscreenType,D=void 0===C?"full":C,N=e.buttons,x=void 0===N?[]:N,k=e.size,I=void 0===k?"":k,z=e.bodyClassName,F=void 0===z?"":z,Z=e.children,T=e.draggable,R=void 0!==T&&T,G=e.fullscreenState,L=e.onFullscreen,_=e.fade,M=void 0!==_&&_,V=e.fitContent,A=e.modalClassName,q=void 0===A?"":A,B=e.dialogClassName,K=void 0===B?"":B,H=e.enableFooter,U=void 0===H||H,W=f[I]||"",X=P&&"expanded"===G&&b.className[D]||"",J=n?r().createElement("div",{className:"modal-fixed ".concat(q," ")+(R?"ms-draggable":"")},r().createElement(s.Z,{id:"ms-resizable-modal",style:{display:"flex"},onClickOut:h?p:function(){},containerClassName:"ms-resizable-modal",draggable:R,modal:!0,className:i()("modal-dialog modal-content",W,X,K,{"ms-fit-content":V})},r().createElement("span",{role:"header"},r().createElement("h4",{className:"modal-title"},r().createElement("div",{className:"ms-title"},y),P&&b.className[D]&&r().createElement(l.Glyphicon,{className:"ms-header-btn",onClick:function(){return L("expanded"===G?"collapsed":"expanded")},glyph:b.glyph[G][D]}),E&&p&&r().createElement(l.Glyphicon,{glyph:"1-close",className:"ms-header-btn",onClick:p,disabled:j}))),r().createElement("div",{role:"body",className:F},Z),U&&r().createElement("div",{style:{display:"flex"},role:"footer"},r().createElement("div",{className:"ms-resizable-modal-loading-spinner-container"},o?r().createElement(m.Z,null):null),r().createElement("div",{className:"ms-resizable-modal-loading-text"},o?a:null),r().createElement(c.Z,{buttons:x})))):null;return M?r().createElement(d(),{transitionName:"ms-resizable-modal-fade",transitionEnterTimeout:300,transitionLeaveTimeout:300},J):J}))},438261:(e,t,n)=>{"use strict";n.d(t,{Z:()=>D});var o=n(124852),r=n.n(o),a=n(675263),i=n.n(a),l=n(480681),s=n(80717),c=n(625311),u=n(799509),p=n(805346),d=n(618446),m=n.n(d),f=n(281763),b=n.n(f),g=n(777900);function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function h(e){for(var t=1;t{"use strict";n.d(t,{Z:()=>d});var o=n(124852),r=n.n(o),a=n(590937),i=n(867076),l=["connectDragSource","connectDragPreview","connectDropTarget","isDragging","isOver"];function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{}).isDraggable}),(0,i.compose)((0,a.Ej)("row",p,(function(e,t){return{connectDragSource:e.dragSource(),connectDragPreview:e.dragPreview(),isDragging:t.isDragging(),draggingItem:t.getItem()||null}})),(0,a.GR)("row",{drop:function(e,t){var n=t.getItem();n.sortId!==e.sortId&&e.onSort(e.sortId,n.sortId,{id:e.id,containerId:e.containerId},{id:n.id,containerId:n.containerId})}},(function(e,t){return{connectDropTarget:e.dropTarget(),isOver:t.isOver()}})),(function(e){return function(t){var n=t.connectDragSource,o=t.connectDragPreview,a=t.connectDropTarget,i=t.isDragging,s=t.isOver,u=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(t,l),p=u.draggingItem&&u.draggingItem.sortId{"use strict";n.d(t,{Z:()=>d});var o=n(124852),r=n.n(o),a=n(732833),i=n(965539),l=n(867076),s=n(480681),c=n(38560),u={bottom:{true:"chevron-down",false:"chevron-up"},top:{true:"chevron-up",false:"chevron-down"},right:{true:"chevron-right",false:"chevron-left"},left:{true:"chevron-left",false:"chevron-right"}};const p=function(e){var t=e.position,n=void 0===t?"right":t,o=e.onClose,a=e.bsStyle,i=void 0===a?"default":a,l=e.title,p=void 0===l?"":l,d=e.fullscreen,m=void 0!==d&&d,f=e.showFullscreen,b=void 0!==f&&f,g=e.glyph,y=void 0===g?"info-sign":g,v=e.additionalRows,h=e.onFullscreen,O=void 0===h?function(){}:h,E=o?r().createElement(c.Z,{key:"ms-header-close",className:"square-button ms-close",onClick:o,bsStyle:i},r().createElement(s.Glyphicon,{glyph:"1-close"})):null,w=b?r().createElement(c.Z,{key:"ms-header-glyph",className:"square-button",bsStyle:i,onClick:function(){return O(!m)}},r().createElement(s.Glyphicon,{glyph:u[n]&&u[n][m]||"resize-full"})):r().createElement("div",{key:"ms-header-glyph",className:"square-button ".concat("bg-"+i),style:{display:"flex"}},r().createElement(s.Glyphicon,{glyph:y,className:"".concat("default"===i?"text-primary":"")})),j="left"===n?[E,w]:[w,E];return r().createElement(s.Grid,{fluid:!0,style:{width:"100%"},className:"ms-header ms-"+i},r().createElement(s.Row,null,r().createElement(s.Col,{xs:2},j[0]),r().createElement(s.Col,{xs:8},r().createElement("h4",null,p)),r().createElement(s.Col,{xs:2},j[1])),v)},d=(0,l.withState)("fullscreen","onFullscreen",!1)((function(e){var t=e.fluid,n=e.className,o=void 0===n?"":n,l=e.fullscreen,s=void 0!==l&&l,c=e.position,u=e.open,d=e.size,m=void 0===d?550:d,f=e.style,b=void 0===f?{}:f,g=e.zIndex,y=void 0===g?1030:g,v=e.onClose,h=e.bsStyle,O=e.title,E=e.showFullscreen,w=void 0!==E&&E,j=e.glyph,S=e.header,P=e.footer,C=e.children,D=e.onFullscreen,N=void 0===D?function(){}:D,x=e.fixed,k=void 0!==x&&x,I=e.resizable,z=void 0!==I&&I,F=e.hideHeader;return r().createElement("div",{className:"ms-side-panel "+(k?"":"ms-absolute-dock ")+(z?"":"react-dock-no-resize ")+o},r().createElement(a.default,{fluid:t||s,position:c,dimMode:"none",isVisible:u,size:s?1:m,dockStyle:b,zIndex:y},r().createElement(i.Z,{header:!F&&u&&r().createElement(p,{position:c,onClose:v,bsStyle:h,title:O,fullscreen:s,showFullscreen:w,glyph:j,additionalRows:S,onFullscreen:N}),footer:u&&P},u&&C)))}))},632107:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var o=n(124852),r=n.n(o),a=n(867076),i=n(965539),l=n(416919),s=n(694745),c=["children","header"];var u=(0,a.renameProps)({open:"show"})((function(e){var t=e.children,n=e.header,o=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,c);return r().createElement(s.Z,o,r().createElement(i.Z,{header:r().createElement("div",{className:"ms-header"},n)},t))}));const p=(0,a.branch)((function(e){return!e.dock}),(function(){return function(e){return r().createElement(u,e)}}))(l.Z)},51736:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var o=n(124852),r=n.n(o),a=n(294184),i=n.n(a);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function c(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,f);return r().createElement(p,{dockStyle:a,id:o,className:n},r().createElement(d.Z,null,(function(e){var n=e.width;return r().createElement(r().Fragment,null,r().createElement(m.Z,b({dock:l,size:c/n>1?n:c},u),t),s)})))}}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/46417.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/46417.affd309bf2aa3f38d3a0.chunk.js deleted file mode 100644 index dcfa4b98b7..0000000000 --- a/geonode_mapstore_client/static/mapstore/dist/js/46417.affd309bf2aa3f38d3a0.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[46417],{694745:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var o=n(124852),r=n.n(o),i=n(294184),l=n.n(i),a=n(480681),s=n(807472),c=n(80717),u=n(867076),p=n(819081),d=n.n(p),m=n(975480),f={xs:" ms-xs",sm:" ms-sm",md:"",lg:" ms-lg"},b={className:{vertical:" ms-fullscreen-v",horizontal:" ms-fullscreen-h",full:" ms-fullscreen"},glyph:{expanded:{vertical:"resize-vertical",horizontal:"resize-horizontal",full:"resize-small"},collapsed:{vertical:"resize-vertical",horizontal:"resize-horizontal",full:"resize-full"}}};const g=(0,u.withState)("fullscreenState","onFullscreen",(function(e){var t=e.initialFullscreenState;return void 0===t?"collapsed":t}))((function(e){var t=e.show,n=void 0!==t&&t,o=e.loading,i=e.loadingText,u=e.onClose,p=void 0===u?function(){}:u,g=e.title,y=void 0===g?"":g,v=e.clickOutEnabled,h=void 0===v||v,O=e.showClose,E=void 0===O||O,w=e.disabledClose,j=void 0!==w&&w,S=e.showFullscreen,P=void 0!==S&&S,C=e.fullscreenType,D=void 0===C?"full":C,N=e.buttons,x=void 0===N?[]:N,k=e.size,I=void 0===k?"":k,z=e.bodyClassName,F=void 0===z?"":z,Z=e.children,T=e.draggable,R=void 0!==T&&T,G=e.fullscreenState,L=e.onFullscreen,_=e.fade,M=void 0!==_&&_,V=e.fitContent,A=e.modalClassName,q=void 0===A?"":A,B=e.dialogClassName,K=void 0===B?"":B,H=e.enableFooter,U=void 0===H||H,W=f[I]||"",X=P&&"expanded"===G&&b.className[D]||"",J=n?r().createElement("div",{className:"modal-fixed ".concat(q," ")+(R?"ms-draggable":"")},r().createElement(s.Z,{id:"ms-resizable-modal",style:{display:"flex"},onClickOut:h?p:function(){},containerClassName:"ms-resizable-modal",draggable:R,modal:!0,className:l()("modal-dialog modal-content",W,X,K,{"ms-fit-content":V})},r().createElement("span",{role:"header"},r().createElement("h4",{className:"modal-title"},r().createElement("div",{className:"ms-title"},y),P&&b.className[D]&&r().createElement(a.Glyphicon,{className:"ms-header-btn",onClick:function(){return L("expanded"===G?"collapsed":"expanded")},glyph:b.glyph[G][D]}),E&&p&&r().createElement(a.Glyphicon,{glyph:"1-close",className:"ms-header-btn",onClick:p,disabled:j}))),r().createElement("div",{role:"body",className:F},Z),U&&r().createElement("div",{style:{display:"flex"},role:"footer"},r().createElement("div",{className:"ms-resizable-modal-loading-spinner-container"},o?r().createElement(m.Z,null):null),r().createElement("div",{className:"ms-resizable-modal-loading-text"},o?i:null),r().createElement(c.Z,{buttons:x})))):null;return M?r().createElement(d(),{transitionName:"ms-resizable-modal-fade",transitionEnterTimeout:300,transitionLeaveTimeout:300},J):J}))},438261:(e,t,n)=>{"use strict";n.d(t,{Z:()=>D});var o=n(124852),r=n.n(o),i=n(675263),l=n.n(i),a=n(480681),s=n(80717),c=n(625311),u=n(799509),p=n(805346),d=n(618446),m=n.n(d),f=n(281763),b=n.n(f),g=n(777900);function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function h(e){for(var t=1;t{"use strict";n.d(t,{Z:()=>m});var o=n(124852),r=n.n(o),i=n(590937),l=n(867076),a=["connectDragSource","connectDragPreview","connectDropTarget","isDragging","isOver"];function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{}).isDraggable}),(0,l.compose)((0,i.Ej)("row",d,(function(e,t){return{connectDragSource:e.dragSource(),connectDragPreview:e.dragPreview(),isDragging:t.isDragging(),draggingItem:t.getItem()||null}})),(0,i.GR)("row",{drop:function(e,t){var n=t.getItem();n.sortId!==e.sortId&&e.onSort(e.sortId,n.sortId,{id:e.id,containerId:e.containerId},{id:n.id,containerId:n.containerId})}},(function(e,t){return{connectDropTarget:e.dropTarget(),isOver:t.isOver()}})),(function(e){return function(t){var n=t.connectDragSource,o=t.connectDragPreview,i=t.connectDropTarget,l=t.isDragging,s=t.isOver,u=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(t,a),p=u.draggingItem&&u.draggingItem.sortId{"use strict";n.d(t,{Z:()=>d});var o=n(124852),r=n.n(o),i=n(732833),l=n(965539),a=n(867076),s=n(480681),c=n(38560),u={bottom:{true:"chevron-down",false:"chevron-up"},top:{true:"chevron-up",false:"chevron-down"},right:{true:"chevron-right",false:"chevron-left"},left:{true:"chevron-left",false:"chevron-right"}};const p=function(e){var t=e.position,n=void 0===t?"right":t,o=e.onClose,i=e.bsStyle,l=void 0===i?"default":i,a=e.title,p=void 0===a?"":a,d=e.fullscreen,m=void 0!==d&&d,f=e.showFullscreen,b=void 0!==f&&f,g=e.glyph,y=void 0===g?"info-sign":g,v=e.additionalRows,h=e.onFullscreen,O=void 0===h?function(){}:h,E=o?r().createElement(c.Z,{key:"ms-header-close",className:"square-button ms-close",onClick:o,bsStyle:l},r().createElement(s.Glyphicon,{glyph:"1-close"})):null,w=b?r().createElement(c.Z,{key:"ms-header-glyph",className:"square-button",bsStyle:l,onClick:function(){return O(!m)}},r().createElement(s.Glyphicon,{glyph:u[n]&&u[n][m]||"resize-full"})):r().createElement("div",{key:"ms-header-glyph",className:"square-button ".concat("bg-"+l),style:{display:"flex"}},r().createElement(s.Glyphicon,{glyph:y,className:"".concat("default"===l?"text-primary":"")})),j="left"===n?[E,w]:[w,E];return r().createElement(s.Grid,{fluid:!0,style:{width:"100%"},className:"ms-header ms-"+l},r().createElement(s.Row,null,r().createElement(s.Col,{xs:2},j[0]),r().createElement(s.Col,{xs:8},r().createElement("h4",null,p)),r().createElement(s.Col,{xs:2},j[1])),v)},d=(0,a.withState)("fullscreen","onFullscreen",!1)((function(e){var t=e.fluid,n=e.className,o=void 0===n?"":n,a=e.fullscreen,s=void 0!==a&&a,c=e.position,u=e.open,d=e.size,m=void 0===d?550:d,f=e.style,b=void 0===f?{}:f,g=e.zIndex,y=void 0===g?1030:g,v=e.onClose,h=e.bsStyle,O=e.title,E=e.showFullscreen,w=void 0!==E&&E,j=e.glyph,S=e.header,P=e.footer,C=e.children,D=e.onFullscreen,N=void 0===D?function(){}:D,x=e.fixed,k=void 0!==x&&x,I=e.resizable,z=void 0!==I&&I,F=e.hideHeader;return r().createElement("div",{className:"ms-side-panel "+(k?"":"ms-absolute-dock ")+(z?"":"react-dock-no-resize ")+o},r().createElement(i.default,{fluid:t||s,position:c,dimMode:"none",isVisible:u,size:s?1:m,dockStyle:b,zIndex:y},r().createElement(l.Z,{header:!F&&u&&r().createElement(p,{position:c,onClose:v,bsStyle:h,title:O,fullscreen:s,showFullscreen:w,glyph:j,additionalRows:S,onFullscreen:N}),footer:u&&P},u&&C)))}))},632107:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var o=n(124852),r=n.n(o),i=n(867076),l=n(965539),a=n(416919),s=n(694745),c=["children","header"];var u=(0,i.renameProps)({open:"show"})((function(e){var t=e.children,n=e.header,o=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,c);return r().createElement(s.Z,o,r().createElement(l.Z,{header:r().createElement("div",{className:"ms-header"},n)},t))}));const p=(0,i.branch)((function(e){return!e.dock}),(function(){return function(e){return r().createElement(u,e)}}))(a.Z)},51736:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var o=n(124852),r=n.n(o),i=n(294184),l=n.n(i);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function c(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,f);return r().createElement(p,{dockStyle:i,id:o,className:n},r().createElement(d.Z,null,(function(e){var n=e.width;return r().createElement(r().Fragment,null,r().createElement(m.Z,b({dock:a,size:c/n>1?n:c},u),t),s)})))}}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/46879.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/46879.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/46879.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/46879.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/46906.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/46906.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/46906.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/46906.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/46971.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/46971.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/46971.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/46971.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/4704.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/4704.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/4704.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/4704.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/47042.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/47042.018dc26183efb561a8b1.chunk.js similarity index 99% rename from geonode_mapstore_client/static/mapstore/dist/js/47042.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/47042.018dc26183efb561a8b1.chunk.js index 0eabd91a19..268702d3a1 100644 --- a/geonode_mapstore_client/static/mapstore/dist/js/47042.affd309bf2aa3f38d3a0.chunk.js +++ b/geonode_mapstore_client/static/mapstore/dist/js/47042.018dc26183efb561a8b1.chunk.js @@ -1,2 +1,2 @@ -/*! For license information please see 47042.affd309bf2aa3f38d3a0.chunk.js.LICENSE.txt */ +/*! For license information please see 47042.018dc26183efb561a8b1.chunk.js.LICENSE.txt */ (self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[47042],{379958:(e,t,r)=>{e.exports=function e(t,r,n){function a(o,l){if(!r[o]){if(!t[o]){if(i)return i(o,!0);var s=new Error("Cannot find module '"+o+"'");throw s.code="MODULE_NOT_FOUND",s}var c=r[o]={exports:{}};t[o][0].call(c.exports,(function(e){return a(t[o][1][e]||e)}),c,c.exports,e,t,r,n)}return r[o].exports}for(var i=void 0,o=0;o:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:transparent;border:6px solid transparent;z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid transparent;border-left-color:#69738a;margin-top:8px;margin-right:-30px;","X .select-outline":"fill:none;stroke-width:1;shape-rendering:crispEdges;","X .select-outline-1":"stroke:#fff;","X .select-outline-2":"stroke:#000;stroke-dasharray:2px 2px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var i in a){var o=i.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");n.addStyleRule(o,a[i])}},{"../src/lib":287}],2:[function(e,t,r){"use strict";t.exports=e("../src/transforms/aggregate")},{"../src/transforms/aggregate":544}],3:[function(e,t,r){"use strict";t.exports=e("../src/traces/bar")},{"../src/traces/bar":394}],4:[function(e,t,r){"use strict";t.exports=e("../src/traces/box")},{"../src/traces/box":409}],5:[function(e,t,r){"use strict";t.exports=e("../src/components/calendars")},{"../src/components/calendars":155}],6:[function(e,t,r){"use strict";t.exports=e("../src/traces/contour")},{"../src/traces/contour":429}],7:[function(e,t,r){"use strict";t.exports=e("../src/core")},{"../src/core":269}],8:[function(e,t,r){"use strict";t.exports=e("../src/transforms/filter")},{"../src/transforms/filter":545}],9:[function(e,t,r){"use strict";t.exports=e("../src/transforms/groupby")},{"../src/transforms/groupby":546}],10:[function(e,t,r){"use strict";t.exports=e("../src/traces/heatmap")},{"../src/traces/heatmap":445}],11:[function(e,t,r){"use strict";t.exports=e("../src/traces/histogram")},{"../src/traces/histogram":463}],12:[function(e,t,r){"use strict";t.exports=e("../src/traces/histogram2d")},{"../src/traces/histogram2d":469}],13:[function(e,t,r){"use strict";t.exports=e("../src/traces/histogram2dcontour")},{"../src/traces/histogram2dcontour":473}],14:[function(e,t,r){"use strict";t.exports=e("../src/traces/image")},{"../src/traces/image":481}],15:[function(e,t,r){"use strict";var n=e("./core");n.register([e("./bar"),e("./box"),e("./heatmap"),e("./histogram"),e("./histogram2d"),e("./histogram2dcontour"),e("./contour"),e("./scatterternary"),e("./violin"),e("./image"),e("./pie"),e("./aggregate"),e("./filter"),e("./groupby"),e("./sort"),e("./calendars")]),t.exports=n},{"./aggregate":2,"./bar":3,"./box":4,"./calendars":5,"./contour":6,"./core":7,"./filter":8,"./groupby":9,"./heatmap":10,"./histogram":11,"./histogram2d":12,"./histogram2dcontour":13,"./image":14,"./pie":16,"./scatterternary":17,"./sort":18,"./violin":19}],16:[function(e,t,r){"use strict";t.exports=e("../src/traces/pie")},{"../src/traces/pie":490}],17:[function(e,t,r){"use strict";t.exports=e("../src/traces/scatterternary")},{"../src/traces/scatterternary":531}],18:[function(e,t,r){"use strict";t.exports=e("../src/transforms/sort")},{"../src/transforms/sort":548}],19:[function(e,t,r){"use strict";t.exports=e("../src/traces/violin")},{"../src/traces/violin":539}],20:[function(e,t,r){(function(){var e={version:"3.8.0"},r=[].slice,n=function(e){return r.call(e)},a=self.document;function i(e){return e&&(e.ownerDocument||e.document||e).documentElement}function o(e){return e&&(e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView)}if(a)try{n(a.documentElement.childNodes)[0].nodeType}catch(e){n=function(e){for(var t=e.length,r=new Array(t);t--;)r[t]=e[t];return r}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(e){var l=this.Element.prototype,s=l.setAttribute,c=l.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;l.setAttribute=function(e,t){s.call(this,e,t+"")},l.setAttributeNS=function(e,t,r){c.call(this,e,t,r+"")},u.setProperty=function(e,t,r){f.call(this,e,t+"",r)}}function d(e,t){return et?1:e>=t?0:NaN}function p(e){return null===e?NaN:+e}function h(e){return!isNaN(e)}function m(e){return{left:function(t,r,n,a){for(arguments.length<3&&(n=0),arguments.length<4&&(a=t.length);n>>1;e(t[i],r)<0?n=i+1:a=i}return n},right:function(t,r,n,a){for(arguments.length<3&&(n=0),arguments.length<4&&(a=t.length);n>>1;e(t[i],r)>0?a=i:n=i+1}return n}}}e.ascending=d,e.descending=function(e,t){return te?1:t>=e?0:NaN},e.min=function(e,t){var r,n,a=-1,i=e.length;if(1===arguments.length){for(;++a=n){r=n;break}for(;++an&&(r=n)}else{for(;++a=n){r=n;break}for(;++an&&(r=n)}return r},e.max=function(e,t){var r,n,a=-1,i=e.length;if(1===arguments.length){for(;++a=n){r=n;break}for(;++ar&&(r=n)}else{for(;++a=n){r=n;break}for(;++ar&&(r=n)}return r},e.extent=function(e,t){var r,n,a,i=-1,o=e.length;if(1===arguments.length){for(;++i=n){r=a=n;break}for(;++in&&(r=n),a=n){r=a=n;break}for(;++in&&(r=n),a1)return o/(s-1)},e.deviation=function(){var t=e.variance.apply(this,arguments);return t?Math.sqrt(t):t};var y=m(d);function g(e){return e.length}e.bisectLeft=y.left,e.bisect=e.bisectRight=y.right,e.bisector=function(e){return m(1===e.length?function(t,r){return d(e(t),r)}:e)},e.shuffle=function(e,t,r){(i=arguments.length)<3&&(r=e.length,i<2&&(t=0));for(var n,a,i=r-t;i;)a=Math.random()*i--|0,n=e[i+t],e[i+t]=e[a+t],e[a+t]=n;return e},e.permute=function(e,t){for(var r=t.length,n=new Array(r);r--;)n[r]=e[t[r]];return n},e.pairs=function(e){for(var t=0,r=e.length-1,n=e[0],a=new Array(r<0?0:r);t=0;)for(t=(n=e[a]).length;--t>=0;)r[--o]=n[t];return r};var v=Math.abs;function x(e,t){for(var r in t)Object.defineProperty(e.prototype,r,{value:t[r],enumerable:!1})}function b(){this._=Object.create(null)}e.range=function(e,t,r){if(arguments.length<3&&(r=1,arguments.length<2&&(t=e,e=0)),(t-e)/r==1/0)throw new Error("infinite range");var n,a=[],i=function(e){for(var t=1;e*t%1;)t*=10;return t}(v(r)),o=-1;if(e*=i,t*=i,(r*=i)<0)for(;(n=e+r*++o)>t;)a.push(n/i);else for(;(n=e+r*++o)=a.length)return r?r.call(n,i):t?i.sort(t):i;for(var s,c,u,f,d=-1,p=i.length,h=a[l++],m=new b;++d=a.length)return e;var r=[],n=i[t++];return e.forEach((function(e,n){r.push({key:e,values:l(n,t)})})),n?r.sort((function(e,t){return n(e.key,t.key)})):r}return n.map=function(e,t){return o(t,e,0)},n.entries=function(t){return l(o(e.map,t,0),0)},n.key=function(e){return a.push(e),n},n.sortKeys=function(e){return i[a.length-1]=e,n},n.sortValues=function(e){return t=e,n},n.rollup=function(e){return r=e,n},n},e.set=function(e){var t=new D;if(e)for(var r=0,n=e.length;r=0&&(n=e.slice(r+1),e=e.slice(0,r)),e)return arguments.length<2?this[e].on(n):this[e].on(n,t);if(2===arguments.length){if(null==t)for(e in this)this.hasOwnProperty(e)&&this[e].on(n,null);return this}},e.event=null,e.requote=function(e){return e.replace(H,"\\$&")};var H=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,U={}.__proto__?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)e[r]=t[r]};function Y(e){return U(e,Z),e}var q=function(e,t){return t.querySelector(e)},V=function(e,t){return t.querySelectorAll(e)},G=function(e,t){var r=e.matches||e[P(e,"matchesSelector")];return G=function(e,t){return r.call(e,t)},G(e,t)};"function"==typeof Sizzle&&(q=function(e,t){return Sizzle(e,t)[0]||null},V=Sizzle,G=Sizzle.matchesSelector),e.selection=function(){return e.select(a.documentElement)};var Z=e.selection.prototype=[];function W(e){return"function"==typeof e?e:function(){return q(e,this)}}function X(e){return"function"==typeof e?e:function(){return V(e,this)}}Z.select=function(e){var t,r,n,a,i=[];e=W(e);for(var o=-1,l=this.length;++o=0&&"xmlns"!==(r=e.slice(0,t))&&(e=e.slice(t+1)),K.hasOwnProperty(r)?{space:K[r],local:e}:e}},Z.attr=function(t,r){if(arguments.length<2){if("string"==typeof t){var n=this.node();return(t=e.ns.qualify(t)).local?n.getAttributeNS(t.space,t.local):n.getAttribute(t)}for(r in t)this.each(Q(r,t[r]));return this}return this.each(Q(t,r))},Z.classed=function(e,t){if(arguments.length<2){if("string"==typeof e){var r=this.node(),n=(e=te(e)).length,a=-1;if(t=r.classList){for(;++a=0;)(r=n[a])&&(i&&i!==r.nextSibling&&i.parentNode.insertBefore(r,i),i=r);return this},Z.sort=function(e){e=ue.apply(this,arguments);for(var t=-1,r=this.length;++t0&&(t=t.slice(0,o));var s=me.get(t);function c(){var e=this[i];e&&(this.removeEventListener(t,e,e.$),delete this[i])}return s&&(t=s,l=ge),o?r?function(){var e=l(r,n(arguments));c.call(this),this.addEventListener(t,this[i]=e,e.$=a),e._=r}:c:r?z:function(){var r,n=new RegExp("^__on([^.]+)"+e.requote(t)+"$");for(var a in this)if(r=a.match(n)){var i=this[a];this.removeEventListener(r[1],i,i.$),delete this[a]}}}e.selection.enter=de,e.selection.enter.prototype=pe,pe.append=Z.append,pe.empty=Z.empty,pe.node=Z.node,pe.call=Z.call,pe.size=Z.size,pe.select=function(e){for(var t,r,n,a,i,o=[],l=-1,s=this.length;++l=n&&(n=t+1);!(o=l[n])&&++n1?Oe:e<-1?-Oe:Math.asin(e)}function Pe(e){return((e=Math.exp(e))+1/e)/2}var Re=Math.SQRT2;e.interpolateZoom=function(e,t){var r,n,a=e[0],i=e[1],o=e[2],l=t[0],s=t[1],c=t[2],u=l-a,f=s-i,d=u*u+f*f;if(d0&&(t=t.transition().duration(m)),t.call(w.event)}function L(){c&&c.domain(s.range().map((function(e){return(e-d.x)/d.k})).map(s.invert)),f&&f.domain(u.range().map((function(e){return(e-d.y)/d.k})).map(u.invert))}function S(e){y++||e({type:"zoomstart"})}function O(e){L(),e({type:"zoom",scale:d.k,translate:[d.x,d.y]})}function D(e){--y||(e({type:"zoomend"}),r=null)}function C(){var t=this,r=_.of(t,arguments),n=0,a=e.select(o(t)).on(v,(function(){n=1,k(e.mouse(t),i),O(r)})).on(x,(function(){a.on(v,null).on(x,null),l(n),D(r)})),i=T(e.mouse(t)),l=be(t);Ga.call(t),S(r)}function E(){var t,r=this,n=_.of(r,arguments),a={},i=0,o=".zoom-"+e.event.changedTouches[0].identifier,s="touchmove"+o,c="touchend"+o,u=[],f=e.select(r),p=be(r);function h(){var n=e.touches(r);return t=d.k,n.forEach((function(e){e.identifier in a&&(a[e.identifier]=T(e))})),n}function m(){var t=e.event.target;e.select(t).on(s,y).on(c,v),u.push(t);for(var n=e.event.changedTouches,o=0,f=n.length;o1){g=p[0];var x=p[1],b=g[0]-x[0],_=g[1]-x[1];i=b*b+_*_}}function y(){var o,s,c,u,f=e.touches(r);Ga.call(r);for(var d=0,p=f.length;d360?e-=360:e<0&&(e+=360),e<60?n+(a-n)*e/60:e<180?a:e<240?n+(a-n)*(240-e)/60:n}(e))}return e=isNaN(e)?0:(e%=360)<0?e+360:e,t=isNaN(t)||t<0?0:t>1?1:t,n=2*(r=r<0?0:r>1?1:r)-(a=r<=.5?r*(1+t):r+t-r*t),new tt(i(e+120),i(e),i(e-120))}function Ue(t,r,n){return this instanceof Ue?(this.h=+t,this.c=+r,void(this.l=+n)):arguments.length<2?t instanceof Ue?new Ue(t.h,t.c,t.l):function(e,t,r){return e>0?new Ue(Math.atan2(r,t)*Ce,Math.sqrt(t*t+r*r),e):new Ue(NaN,NaN,e)}(t instanceof Ve?t.l:(t=st((t=e.rgb(t)).r,t.g,t.b)).l,t.a,t.b):new Ue(t,r,n)}Be.brighter=function(e){return e=Math.pow(.7,arguments.length?e:1),new je(this.h,this.s,this.l/e)},Be.darker=function(e){return e=Math.pow(.7,arguments.length?e:1),new je(this.h,this.s,e*this.l)},Be.rgb=function(){return He(this.h,this.s,this.l)},e.hcl=Ue;var Ye=Ue.prototype=new Fe;function qe(e,t,r){return isNaN(e)&&(e=0),isNaN(t)&&(t=0),new Ve(r,Math.cos(e*=De)*t,Math.sin(e)*t)}function Ve(e,t,r){return this instanceof Ve?(this.l=+e,this.a=+t,void(this.b=+r)):arguments.length<2?e instanceof Ve?new Ve(e.l,e.a,e.b):e instanceof Ue?qe(e.h,e.c,e.l):st((e=tt(e)).r,e.g,e.b):new Ve(e,t,r)}Ye.brighter=function(e){return new Ue(this.h,this.c,Math.min(100,this.l+Ge*(arguments.length?e:1)))},Ye.darker=function(e){return new Ue(this.h,this.c,Math.max(0,this.l-Ge*(arguments.length?e:1)))},Ye.rgb=function(){return qe(this.h,this.c,this.l).rgb()},e.lab=Ve;var Ge=18,Ze=.95047,We=1,Xe=1.08883,Je=Ve.prototype=new Fe;function Ke(e,t,r){var n=(e+16)/116,a=n+t/500,i=n-r/200;return new tt(et(3.2404542*(a=Qe(a)*Ze)-1.5371385*(n=Qe(n)*We)-.4985314*(i=Qe(i)*Xe)),et(-.969266*a+1.8760108*n+.041556*i),et(.0556434*a-.2040259*n+1.0572252*i))}function Qe(e){return e>.206893034?e*e*e:(e-4/29)/7.787037}function $e(e){return e>.008856?Math.pow(e,1/3):7.787037*e+4/29}function et(e){return Math.round(255*(e<=.00304?12.92*e:1.055*Math.pow(e,1/2.4)-.055))}function tt(e,t,r){return this instanceof tt?(this.r=~~e,this.g=~~t,void(this.b=~~r)):arguments.length<2?e instanceof tt?new tt(e.r,e.g,e.b):ot(""+e,tt,He):new tt(e,t,r)}function rt(e){return new tt(e>>16,e>>8&255,255&e)}function nt(e){return rt(e)+""}Je.brighter=function(e){return new Ve(Math.min(100,this.l+Ge*(arguments.length?e:1)),this.a,this.b)},Je.darker=function(e){return new Ve(Math.max(0,this.l-Ge*(arguments.length?e:1)),this.a,this.b)},Je.rgb=function(){return Ke(this.l,this.a,this.b)},e.rgb=tt;var at=tt.prototype=new Fe;function it(e){return e<16?"0"+Math.max(0,e).toString(16):Math.min(255,e).toString(16)}function ot(e,t,r){var n,a,i,o=0,l=0,s=0;if(n=/([a-z]+)\((.*)\)/.exec(e=e.toLowerCase()))switch(a=n[2].split(","),n[1]){case"hsl":return r(parseFloat(a[0]),parseFloat(a[1])/100,parseFloat(a[2])/100);case"rgb":return t(ut(a[0]),ut(a[1]),ut(a[2]))}return(i=ft.get(e))?t(i.r,i.g,i.b):(null==e||"#"!==e.charAt(0)||isNaN(i=parseInt(e.slice(1),16))||(4===e.length?(o=(3840&i)>>4,o|=o>>4,l=240&i,l|=l>>4,s=15&i,s|=s<<4):7===e.length&&(o=(16711680&i)>>16,l=(65280&i)>>8,s=255&i)),t(o,l,s))}function lt(e,t,r){var n,a,i=Math.min(e/=255,t/=255,r/=255),o=Math.max(e,t,r),l=o-i,s=(o+i)/2;return l?(a=s<.5?l/(o+i):l/(2-o-i),n=e==o?(t-r)/l+(t0&&s<1?0:n),new je(n,a,s)}function st(e,t,r){var n=$e((.4124564*(e=ct(e))+.3575761*(t=ct(t))+.1804375*(r=ct(r)))/Ze),a=$e((.2126729*e+.7151522*t+.072175*r)/We);return Ve(116*a-16,500*(n-a),200*(a-$e((.0193339*e+.119192*t+.9503041*r)/Xe)))}function ct(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ut(e){var t=parseFloat(e);return"%"===e.charAt(e.length-1)?Math.round(2.55*t):t}at.brighter=function(e){e=Math.pow(.7,arguments.length?e:1);var t=this.r,r=this.g,n=this.b,a=30;return t||r||n?(t&&t=200&&t<300||304===t){try{e=a.call(o,c)}catch(e){return void l.error.call(o,e)}l.load.call(o,e)}else l.error.call(o,c)}return self.XDomainRequest&&!("withCredentials"in c)&&/^(http(s)?:)?\/\//.test(t)&&(c=new XDomainRequest),"onload"in c?c.onload=c.onerror=f:c.onreadystatechange=function(){c.readyState>3&&f()},c.onprogress=function(t){var r=e.event;e.event=t;try{l.progress.call(o,c)}finally{e.event=r}},o.header=function(e,t){return e=(e+"").toLowerCase(),arguments.length<2?s[e]:(null==t?delete s[e]:s[e]=t+"",o)},o.mimeType=function(e){return arguments.length?(r=null==e?null:e+"",o):r},o.responseType=function(e){return arguments.length?(u=e,o):u},o.response=function(e){return a=e,o},["get","post"].forEach((function(e){o[e]=function(){return o.send.apply(o,[e].concat(n(arguments)))}})),o.send=function(e,n,a){if(2===arguments.length&&"function"==typeof n&&(a=n,n=null),c.open(e,t,!0),null==r||"accept"in s||(s.accept=r+",*/*"),c.setRequestHeader)for(var i in s)c.setRequestHeader(i,s[i]);return null!=r&&c.overrideMimeType&&c.overrideMimeType(r),null!=u&&(c.responseType=u),null!=a&&o.on("error",a).on("load",(function(e){a(null,e)})),l.beforesend.call(o,c),c.send(null==n?null:n),o},o.abort=function(){return c.abort(),o},e.rebind(o,l,"on"),null==i?o:o.get(function(e){return 1===e.length?function(t,r){e(null==t?r:null)}:e}(i))}ft.forEach((function(e,t){ft.set(e,rt(t))})),e.functor=dt,e.xhr=pt(C),e.dsv=function(e,t){var r=new RegExp('["'+e+"\n]"),n=e.charCodeAt(0);function a(e,r,n){arguments.length<3&&(n=r,r=null);var a=ht(e,t,null==r?i:o(r),n);return a.row=function(e){return arguments.length?a.response(null==(r=e)?i:o(e)):r},a}function i(e){return a.parse(e.responseText)}function o(e){return function(t){return a.parse(t.responseText,e)}}function l(t){return t.map(s).join(e)}function s(e){return r.test(e)?'"'+e.replace(/\"/g,'""')+'"':e}return a.parse=function(e,t){var r;return a.parseRows(e,(function(e,n){if(r)return r(e,n-1);var a=function(t){for(var r={},n=e.length,a=0;a=s)return o;if(a)return a=!1,i;var t=c;if(34===e.charCodeAt(t)){for(var r=t;r++24?(isFinite(t)&&(clearTimeout(vt),vt=setTimeout(_t,t)),gt=0):(gt=1,xt(_t))}function wt(){for(var e=Date.now(),t=mt;t;)e>=t.t&&t.c(e-t.t)&&(t.c=null),t=t.n;return e}function Tt(){for(var e,t=mt,r=1/0;t;)t.c?(t.t1&&(i=e[r[n-2]],o=e[r[n-1]],l=e[a],(o[0]-i[0])*(l[1]-i[1])-(o[1]-i[1])*(l[0]-i[0])<=0);)--n;r[n++]=a}var i,o,l;return r.slice(0,n)}function Lt(e,t){return e[0]-t[0]||e[1]-t[1]}e.timer=function(){bt.apply(this,arguments)},e.timer.flush=function(){wt(),Tt()},e.round=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)},e.geom={},e.geom.hull=function(e){var t=Mt,r=kt;if(arguments.length)return n(e);function n(e){if(e.length<3)return[];var n,a=dt(t),i=dt(r),o=e.length,l=[],s=[];for(n=0;n=0;--n)p.push(e[l[c[n]][2]]);for(n=+f;nMe)l=l.L;else{if(!((a=i-Vt(l,o))>Me)){n>-Me?(t=l.P,r=l):a>-Me?(t=l,r=l.N):t=r=l;break}if(!l.R){t=l;break}l=l.R}var s=Bt(e);if(Rt.insert(t,s),t||r){if(t===r)return Jt(t),r=Bt(t.site),Rt.insert(s,r),s.edge=r.edge=$t(t.site,s.site),Xt(t),void Xt(r);if(r){Jt(t),Jt(r);var c=t.site,u=c.x,f=c.y,d=e.x-u,p=e.y-f,h=r.site,m=h.x-u,y=h.y-f,g=2*(d*y-p*m),v=d*d+p*p,x=m*m+y*y,b={x:(y*v-p*x)/g+u,y:(d*x-m*v)/g+f};er(r.edge,c,h,b),s.edge=$t(c,e,null,b),r.edge=$t(e,h,null,b),Xt(t),Xt(r)}else s.edge=$t(t.site,s.site)}}function qt(e,t){var r=e.site,n=r.x,a=r.y,i=a-t;if(!i)return n;var o=e.P;if(!o)return-1/0;var l=(r=o.site).x,s=r.y,c=s-t;if(!c)return l;var u=l-n,f=1/i-1/c,d=u/c;return f?(-d+Math.sqrt(d*d-2*f*(u*u/(-2*c)-s+c/2+a-i/2)))/f+n:(n+l)/2}function Vt(e,t){var r=e.N;if(r)return qt(r,t);var n=e.site;return n.y===t?n.x:1/0}function Gt(e){this.site=e,this.edges=[]}function Zt(e,t){return t.angle-e.angle}function Wt(){nr(this),this.x=this.y=this.arc=this.site=this.cy=null}function Xt(e){var t=e.P,r=e.N;if(t&&r){var n=t.site,a=e.site,i=r.site;if(n!==i){var o=a.x,l=a.y,s=n.x-o,c=n.y-l,u=i.x-o,f=2*(s*(y=i.y-l)-c*u);if(!(f>=-ke)){var d=s*s+c*c,p=u*u+y*y,h=(y*d-c*p)/f,m=(s*p-u*d)/f,y=m+l,g=Ft.pop()||new Wt;g.arc=e,g.site=a,g.x=h+o,g.y=y+Math.sqrt(h*h+m*m),g.cy=y,e.circle=g;for(var v=null,x=It._;x;)if(g.y=l)return;if(d>h){if(i){if(i.y>=c)return}else i={x:y,y:s};r={x:y,y:c}}else{if(i){if(i.y1)if(d>h){if(i){if(i.y>=c)return}else i={x:(s-a)/n,y:s};r={x:(c-a)/n,y:c}}else{if(i){if(i.y=l)return}else i={x:o,y:n*o+a};r={x:l,y:n*l+a}}else{if(i){if(i.x0)){if(i/=d,d<0){if(i0){if(i>f)return;i>u&&(u=i)}if(i=r-s,d||!(i<0)){if(i/=d,d<0){if(i>f)return;i>u&&(u=i)}else if(d>0){if(i0)){if(i/=p,p<0){if(i0){if(i>f)return;i>u&&(u=i)}if(i=n-c,p||!(i<0)){if(i/=p,p<0){if(i>f)return;i>u&&(u=i)}else if(p>0){if(i0&&(a.a={x:s+u*d,y:c+u*p}),f<1&&(a.b={x:s+f*d,y:c+f*p}),a}}}}}}(e[0][0],e[0][1],e[1][0],e[1][1]),a=r.length;a--;)(!Kt(t=r[a],e)||!n(t)||v(t.a.x-t.b.x)Me||v(a-r)>Me)&&(l.splice(o,0,new tr((g=i.site,x=u,b=v(n-f)Me?{x:f,y:v(t-f)Me?{x:v(r-h)Me?{x:d,y:v(t-d)Me?{x:v(r-p)=r&&c.x<=a&&c.y>=n&&c.y<=o?[[r,o],[a,o],[a,n],[r,n]]:[]).point=e[l]})),t}function l(e){return e.map((function(e,t){return{x:Math.round(n(e,t)/Me)*Me,y:Math.round(a(e,t)/Me)*Me,i:t}}))}return o.links=function(e){return lr(l(e)).edges.filter((function(e){return e.l&&e.r})).map((function(t){return{source:e[t.l.i],target:e[t.r.i]}}))},o.triangles=function(e){var t=[];return lr(l(e)).cells.forEach((function(r,n){for(var a,i=r.site,o=r.edges.sort(Zt),l=-1,s=o.length,c=o[s-1].edge,u=c.l===i?c.r:c.l;++li&&(a=t.slice(i,a),l[o]?l[o]+=a:l[++o]=a),(r=r[0])===(n=n[0])?l[o]?l[o]+=n:l[++o]=n:(l[++o]=null,s.push({i:o,x:mr(r,n)})),i=vr.lastIndex;return im&&(m=s.x),s.y>y&&(y=s.y),c.push(s.x),u.push(s.y);else for(f=0;fm&&(m=b),_>y&&(y=_),c.push(b),u.push(_)}var w=m-p,T=y-h;function M(e,t,r,n,a,i,o,l){if(!isNaN(r)&&!isNaN(n))if(e.leaf){var s=e.x,c=e.y;if(null!=s)if(v(s-r)+v(c-n)<.01)k(e,t,r,n,a,i,o,l);else{var u=e.point;e.x=e.y=e.point=null,k(e,u,s,c,a,i,o,l),k(e,t,r,n,a,i,o,l)}else e.x=r,e.y=n,e.point=t}else k(e,t,r,n,a,i,o,l)}function k(e,t,r,n,a,i,o,l){var s=.5*(a+o),c=.5*(i+l),u=r>=s,f=n>=c,d=f<<1|u;e.leaf=!1,u?a=s:o=s,f?i=c:l=c,M(e=e.nodes[d]||(e.nodes[d]={leaf:!0,nodes:[],point:null,x:null,y:null}),t,r,n,a,i,o,l)}w>T?y=h+w:m=p+T;var A={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(e){M(A,e,+g(e,++f),+x(e,f),p,h,m,y)}};if(A.visit=function(e){dr(e,A,p,h,m,y)},A.find=function(e){return function(e,t,r,n,a,i,o){var l,s=1/0;return function e(c,u,f,d,p){if(!(u>i||f>o||d=_)<<1|t>=b,T=w+4;w=0&&!(n=e.interpolators[a](t,r)););return n}function br(e,t){var r,n=[],a=[],i=e.length,o=t.length,l=Math.min(e.length,t.length);for(r=0;r=1)return 1;var t=e*e,r=t*e;return 4*(e<.5?r:3*(e-t)+r-.75)}function Or(e){return 1-Math.cos(e*Oe)}function Dr(e){return Math.pow(2,10*(e-1))}function Cr(e){return 1-Math.sqrt(1-e*e)}function Er(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375}function Pr(e,t){return t-=e,function(r){return Math.round(e+t*r)}}function Rr(e){var t,r,n,a=[e.a,e.b],i=[e.c,e.d],o=Ir(a),l=zr(a,i),s=Ir(((t=i)[0]+=(n=-l)*(r=a)[0],t[1]+=n*r[1],t))||0;a[0]*i[1]=0?e.slice(0,n):e,i=n>=0?e.slice(n+1):"in";return a=wr.get(a)||_r,t=(i=Tr.get(i)||C)(a.apply(null,r.call(arguments,1))),function(e){return e<=0?0:e>=1?1:t(e)}},e.interpolateHcl=function(t,r){t=e.hcl(t),r=e.hcl(r);var n=t.h,a=t.c,i=t.l,o=r.h-n,l=r.c-a,s=r.l-i;return isNaN(l)&&(l=0,a=isNaN(a)?r.c:a),isNaN(o)?(o=0,n=isNaN(n)?r.h:n):o>180?o-=360:o<-180&&(o+=360),function(e){return qe(n+o*e,a+l*e,i+s*e)+""}},e.interpolateHsl=function(t,r){t=e.hsl(t),r=e.hsl(r);var n=t.h,a=t.s,i=t.l,o=r.h-n,l=r.s-a,s=r.l-i;return isNaN(l)&&(l=0,a=isNaN(a)?r.s:a),isNaN(o)?(o=0,n=isNaN(n)?r.h:n):o>180?o-=360:o<-180&&(o+=360),function(e){return He(n+o*e,a+l*e,i+s*e)+""}},e.interpolateLab=function(t,r){t=e.lab(t),r=e.lab(r);var n=t.l,a=t.a,i=t.b,o=r.l-n,l=r.a-a,s=r.b-i;return function(e){return Ke(n+o*e,a+l*e,i+s*e)+""}},e.interpolateRound=Pr,e.transform=function(t){var r=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(e){if(null!=e){r.setAttribute("transform",e);var t=r.transform.baseVal.consolidate()}return new Rr(t?t.matrix:Nr)})(t)},Rr.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var Nr={a:1,b:0,c:0,d:1,e:0,f:0};function Fr(e){return e.length?e.pop()+",":""}function jr(t,r){var n=[],a=[];return t=e.transform(t),r=e.transform(r),function(e,t,r,n){if(e[0]!==t[0]||e[1]!==t[1]){var a=r.push("translate(",null,",",null,")");n.push({i:a-4,x:mr(e[0],t[0])},{i:a-2,x:mr(e[1],t[1])})}else(t[0]||t[1])&&r.push("translate("+t+")")}(t.translate,r.translate,n,a),function(e,t,r,n){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),n.push({i:r.push(Fr(r)+"rotate(",null,")")-2,x:mr(e,t)})):t&&r.push(Fr(r)+"rotate("+t+")")}(t.rotate,r.rotate,n,a),function(e,t,r,n){e!==t?n.push({i:r.push(Fr(r)+"skewX(",null,")")-2,x:mr(e,t)}):t&&r.push(Fr(r)+"skewX("+t+")")}(t.skew,r.skew,n,a),function(e,t,r,n){if(e[0]!==t[0]||e[1]!==t[1]){var a=r.push(Fr(r)+"scale(",null,",",null,")");n.push({i:a-4,x:mr(e[0],t[0])},{i:a-2,x:mr(e[1],t[1])})}else 1===t[0]&&1===t[1]||r.push(Fr(r)+"scale("+t+")")}(t.scale,r.scale,n,a),t=r=null,function(e){for(var t,r=-1,i=a.length;++r0?n=e:(t.c=null,t.t=NaN,t=null,s.end({type:"end",alpha:n=0})):e>0&&(s.start({type:"start",alpha:n=e}),t=bt(l.tick)),l):n},l.start=function(){var e,t,r,n=g.length,s=v.length,u=c[0],h=c[1];for(e=0;e=0;)r.push(a[n])}function en(e,t){for(var r=[e],n=[];null!=(e=r.pop());)if(n.push(e),(i=e.children)&&(a=i.length))for(var a,i,o=-1;++o=0;)o.push(u=c[s]),u.parent=i,u.depth=i.depth+1;r&&(i.value=0),i.children=c}else r&&(i.value=+r.call(n,i,i.depth)||0),delete i.children;return en(a,(function(t){var n,a;e&&(n=t.children)&&n.sort(e),r&&(a=t.parent)&&(a.value+=t.value)})),l}return n.sort=function(t){return arguments.length?(e=t,n):e},n.children=function(e){return arguments.length?(t=e,n):t},n.value=function(e){return arguments.length?(r=e,n):r},n.revalue=function(e){return r&&($r(e,(function(e){e.children&&(e.value=0)})),en(e,(function(e){var t;e.children||(e.value=+r.call(n,e,e.depth)||0),(t=e.parent)&&(t.value+=e.value)}))),e},n},e.layout.partition=function(){var t=e.layout.hierarchy(),r=[1,1];function n(e,t,r,a){var i=e.children;if(e.x=t,e.y=e.depth*a,e.dx=r,e.dy=a,i&&(o=i.length)){var o,l,s,c=-1;for(r=e.value?r/e.value:0;++cl&&(l=n),o.push(n)}for(r=0;ra&&(n=r,a=t);return n}function mn(e){return e.reduce(yn,0)}function yn(e,t){return e+t[1]}function gn(e,t){return vn(e,Math.ceil(Math.log(t.length)/Math.LN2+1))}function vn(e,t){for(var r=-1,n=+e[0],a=(e[1]-n)/t,i=[];++r<=t;)i[r]=a*r+n;return i}function xn(t){return[e.min(t),e.max(t)]}function bn(e,t){return e.value-t.value}function _n(e,t){var r=e._pack_next;e._pack_next=t,t._pack_prev=e,t._pack_next=r,r._pack_prev=t}function wn(e,t){e._pack_next=t,t._pack_prev=e}function Tn(e,t){var r=t.x-e.x,n=t.y-e.y,a=e.r+t.r;return.999*a*a>r*r+n*n}function Mn(e){if((t=e.children)&&(s=t.length)){var t,r,n,a,i,o,l,s,c=1/0,u=-1/0,f=1/0,d=-1/0;if(t.forEach(kn),(r=t[0]).x=-r.r,r.y=0,x(r),s>1&&((n=t[1]).x=n.r,n.y=0,x(n),s>2))for(Sn(r,n,a=t[2]),x(a),_n(r,a),r._pack_prev=a,_n(a,n),n=r._pack_next,i=3;i0)for(o=-1;++o=f[0]&&s<=f[1]&&((l=c[e.bisect(d,s,1,h)-1]).y+=m,l.push(i[o]));return c}return i.value=function(e){return arguments.length?(r=e,i):r},i.range=function(e){return arguments.length?(n=dt(e),i):n},i.bins=function(e){return arguments.length?(a="number"==typeof e?function(t){return vn(t,e)}:dt(e),i):a},i.frequency=function(e){return arguments.length?(t=!!e,i):t},i},e.layout.pack=function(){var t,r=e.layout.hierarchy().sort(bn),n=0,a=[1,1];function i(e,i){var o=r.call(this,e,i),l=o[0],s=a[0],c=a[1],u=null==t?Math.sqrt:"function"==typeof t?t:function(){return t};if(l.x=l.y=0,en(l,(function(e){e.r=+u(e.value)})),en(l,Mn),n){var f=n*(t?1:Math.max(2*l.r/s,2*l.r/c))/2;en(l,(function(e){e.r+=f})),en(l,Mn),en(l,(function(e){e.r-=f}))}return Ln(l,s/2,c/2,t?1:1/Math.max(2*l.r/s,2*l.r/c)),o}return i.size=function(e){return arguments.length?(a=e,i):a},i.radius=function(e){return arguments.length?(t=null==e||"function"==typeof e?e:+e,i):t},i.padding=function(e){return arguments.length?(n=+e,i):n},Qr(i,r)},e.layout.tree=function(){var t=e.layout.hierarchy().sort(null).value(null),r=On,n=[1,1],a=null;function i(e,i){var c=t.call(this,e,i),u=c[0],f=function(e){for(var t,r={A:null,children:[e]},n=[r];null!=(t=n.pop());)for(var a,i=t.children,o=0,l=i.length;op.x&&(p=e),e.depth>h.depth&&(h=e)}));var m=r(d,p)/2-d.x,y=n[0]/(p.x+r(p,d)/2+m),g=n[1]/(h.depth||1);$r(u,(function(e){e.x=(e.x+m)*y,e.y=e.depth*g}))}return c}function o(e){var t=e.children,n=e.parent.children,a=e.i?n[e.i-1]:null;if(t.length){!function(e){for(var t,r=0,n=0,a=e.children,i=a.length;--i>=0;)(t=a[i]).z+=r,t.m+=r,r+=t.s+(n+=t.c)}(e);var i=(t[0].z+t[t.length-1].z)/2;a?(e.z=a.z+r(e._,a._),e.m=e.z-i):e.z=i}else a&&(e.z=a.z+r(e._,a._));e.parent.A=function(e,t,n){if(t){for(var a,i=e,o=e,l=t,s=i.parent.children[0],c=i.m,u=o.m,f=l.m,d=s.m;l=Cn(l),i=Dn(i),l&&i;)s=Dn(s),(o=Cn(o)).a=e,(a=l.z+f-i.z-c+r(l._,i._))>0&&(En(Pn(l,e,n),e,a),c+=a,u+=a),f+=l.m,c+=i.m,d+=s.m,u+=o.m;l&&!Cn(o)&&(o.t=l,o.m+=f-u),i&&!Dn(s)&&(s.t=i,s.m+=c-d,n=e)}return n}(e,a,e.parent.A||n[0])}function l(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function s(e){e.x*=n[0],e.y=e.depth*n[1]}return i.separation=function(e){return arguments.length?(r=e,i):r},i.size=function(e){return arguments.length?(a=null==(n=e)?s:null,i):a?null:n},i.nodeSize=function(e){return arguments.length?(a=null==(n=e)?null:s,i):a?n:null},Qr(i,t)},e.layout.cluster=function(){var t=e.layout.hierarchy().sort(null).value(null),r=On,n=[1,1],a=!1;function i(i,o){var l,s=t.call(this,i,o),c=s[0],u=0;en(c,(function(t){var n=t.children;n&&n.length?(t.x=function(e){return e.reduce((function(e,t){return e+t.x}),0)/e.length}(n),t.y=function(t){return 1+e.max(t,(function(e){return e.y}))}(n)):(t.x=l?u+=r(t,l):0,t.y=0,l=t)}));var f=Rn(c),d=zn(c),p=f.x-r(f,d)/2,h=d.x+r(d,f)/2;return en(c,a?function(e){e.x=(e.x-c.x)*n[0],e.y=(c.y-e.y)*n[1]}:function(e){e.x=(e.x-p)/(h-p)*n[0],e.y=(1-(c.y?e.y/c.y:1))*n[1]}),s}return i.separation=function(e){return arguments.length?(r=e,i):r},i.size=function(e){return arguments.length?(a=null==(n=e),i):a?null:n},i.nodeSize=function(e){return arguments.length?(a=null!=(n=e),i):a?n:null},Qr(i,t)},e.layout.treemap=function(){var t,r=e.layout.hierarchy(),n=Math.round,a=[1,1],i=null,o=In,l=!1,s="squarify",c=.5*(1+Math.sqrt(5));function u(e,t){for(var r,n,a=-1,i=e.length;++a0;)l.push(r=c[a-1]),l.area+=r.area,"squarify"!==s||(n=p(l,m))<=d?(c.pop(),d=n):(l.area-=l.pop().area,h(l,m,i,!1),m=Math.min(i.dx,i.dy),l.length=l.area=0,d=1/0);l.length&&(h(l,m,i,!0),l.length=l.area=0),t.forEach(f)}}function d(e){var t=e.children;if(t&&t.length){var r,n=o(e),a=t.slice(),i=[];for(u(a,n.dx*n.dy/e.value),i.area=0;r=a.pop();)i.push(r),i.area+=r.area,null!=r.z&&(h(i,r.z?n.dx:n.dy,n,!a.length),i.length=i.area=0);t.forEach(d)}}function p(e,t){for(var r,n=e.area,a=0,i=1/0,o=-1,l=e.length;++oa&&(a=r));return t*=t,(n*=n)?Math.max(t*a*c/n,n/(t*i*c)):1/0}function h(e,t,r,a){var i,o=-1,l=e.length,s=r.x,c=r.y,u=t?n(e.area/t):0;if(t==r.dx){for((a||u>r.dy)&&(u=r.dy);++or.dx)&&(u=r.dx);++o1);return e+t*r*Math.sqrt(-2*Math.log(a)/a)}},logNormal:function(){var t=e.random.normal.apply(e,arguments);return function(){return Math.exp(t())}},bates:function(t){var r=e.random.irwinHall(t);return function(){return r()/t}},irwinHall:function(e){return function(){for(var t=0,r=0;r2?qn:Bn,s=n?Hr:Br;return a=o(e,t,s,r),i=o(t,e,s,xr),l}function l(e){return a(e)}return l.invert=function(e){return i(e)},l.domain=function(t){return arguments.length?(e=t.map(Number),o()):e},l.range=function(e){return arguments.length?(t=e,o()):t},l.rangeRound=function(e){return l.range(e).interpolate(Pr)},l.clamp=function(e){return arguments.length?(n=e,o()):n},l.interpolate=function(e){return arguments.length?(r=e,o()):r},l.ticks=function(t){return Xn(e,t)},l.tickFormat=function(t,r){return d3_scale_linearTickFormat(e,t,r)},l.nice=function(t){return Zn(e,t),o()},l.copy=function(){return Vn(e,t,r,n)},o()}function Gn(t,r){return e.rebind(t,r,"range","rangeRound","interpolate","clamp")}function Zn(e,t){return Hn(e,Un(Wn(e,t)[2])),Hn(e,Un(Wn(e,t)[2])),e}function Wn(e,t){null==t&&(t=10);var r=Fn(e),n=r[1]-r[0],a=Math.pow(10,Math.floor(Math.log(n/t)/Math.LN10)),i=t/n*a;return i<=.15?a*=10:i<=.35?a*=5:i<=.75&&(a*=2),r[0]=Math.ceil(r[0]/a)*a,r[1]=Math.floor(r[1]/a)*a+.5*a,r[2]=a,r}function Xn(t,r){return e.range.apply(e,Wn(t,r))}function Jn(e,t,r,n){function a(e){return(r?Math.log(e<0?0:e):-Math.log(e>0?0:-e))/Math.log(t)}function i(e){return r?Math.pow(t,e):-Math.pow(t,-e)}function o(t){return e(a(t))}return o.invert=function(t){return i(e.invert(t))},o.domain=function(t){return arguments.length?(r=t[0]>=0,e.domain((n=t.map(Number)).map(a)),o):n},o.base=function(r){return arguments.length?(t=+r,e.domain(n.map(a)),o):t},o.nice=function(){var t=Hn(n.map(a),r?Math:Kn);return e.domain(t),n=t.map(i),o},o.ticks=function(){var e=Fn(n),o=[],l=e[0],s=e[1],c=Math.floor(a(l)),u=Math.ceil(a(s)),f=t%1?2:t;if(isFinite(u-c)){if(r){for(;c0;d--)o.push(i(c)*d);for(c=0;o[c]s;u--);o=o.slice(c,u)}return o},o.copy=function(){return Jn(e.copy(),t,r,n)},Gn(o,e)}e.scale.linear=function(){return Vn([0,1],[0,1],xr,!1)},e.scale.log=function(){return Jn(e.scale.linear().domain([0,1]),10,!0,[1,10])};var Kn={floor:function(e){return-Math.ceil(-e)},ceil:function(e){return-Math.floor(-e)}};function Qn(e,t,r){var n=$n(t),a=$n(1/t);function i(t){return e(n(t))}return i.invert=function(t){return a(e.invert(t))},i.domain=function(t){return arguments.length?(e.domain((r=t.map(Number)).map(n)),i):r},i.ticks=function(e){return Xn(r,e)},i.tickFormat=function(e,t){return d3_scale_linearTickFormat(r,e,t)},i.nice=function(e){return i.domain(Zn(r,e))},i.exponent=function(o){return arguments.length?(n=$n(t=o),a=$n(1/t),e.domain(r.map(n)),i):t},i.copy=function(){return Qn(e.copy(),t,r)},Gn(i,e)}function $n(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function ea(t,r){var n,a,i;function o(e){return a[((n.get(e)||("range"===r.t?n.set(e,t.push(e)):NaN))-1)%a.length]}function l(r,n){return e.range(t.length).map((function(e){return r+n*e}))}return o.domain=function(e){if(!arguments.length)return t;t=[],n=new b;for(var a,i=-1,l=e.length;++i0?n[e-1]:t[0],ef?0:1;if(c=Se)return s(c,p)+(l?s(l,1-p):"")+"Z";var h,m,y,g,v,x,b,_,w,T,M,k,A=0,L=0,S=[];if((g=(+o.apply(this,arguments)||0)/2)&&(y=n===ua?Math.sqrt(l*l+c*c):+n.apply(this,arguments),p||(L*=-1),c&&(L=Ee(y/c*Math.sin(g))),l&&(A=Ee(y/l*Math.sin(g)))),c){v=c*Math.cos(u+L),x=c*Math.sin(u+L),b=c*Math.cos(f-L),_=c*Math.sin(f-L);var O=Math.abs(f-u-2*L)<=Ae?0:1;if(L&&ya(v,x,b,_)===p^O){var D=(u+f)/2;v=c*Math.cos(D),x=c*Math.sin(D),b=_=null}}else v=x=0;if(l){w=l*Math.cos(f-A),T=l*Math.sin(f-A),M=l*Math.cos(u+A),k=l*Math.sin(u+A);var C=Math.abs(u-f+2*A)<=Ae?0:1;if(A&&ya(w,T,M,k)===1-p^C){var E=(u+f)/2;w=l*Math.cos(E),T=l*Math.sin(E),M=k=null}}else w=T=0;if(d>Me&&(h=Math.min(Math.abs(c-l)/2,+r.apply(this,arguments)))>.001){m=l0?0:1}function ga(e,t,r,n,a){var i=e[0]-t[0],o=e[1]-t[1],l=(a?n:-n)/Math.sqrt(i*i+o*o),s=l*o,c=-l*i,u=e[0]+s,f=e[1]+c,d=t[0]+s,p=t[1]+c,h=(u+d)/2,m=(f+p)/2,y=d-u,g=p-f,v=y*y+g*g,x=r-n,b=u*p-d*f,_=(g<0?-1:1)*Math.sqrt(Math.max(0,x*x*v-b*b)),w=(b*g-y*_)/v,T=(-b*y-g*_)/v,M=(b*g+y*_)/v,k=(-b*y+g*_)/v,A=w-h,L=T-m,S=M-h,O=k-m;return A*A+L*L>S*S+O*O&&(w=M,T=k),[[w-s,T-c],[w*r/x,T*r/x]]}function va(){return!0}function xa(e){var t=Mt,r=kt,n=va,a=_a,i=a.key,o=.7;function l(i){var l,s=[],c=[],u=-1,f=i.length,d=dt(t),p=dt(r);function h(){s.push("M",a(e(c),o))}for(;++u1&&a.push("H",n[0]),a.join("")},"step-before":Ta,"step-after":Ma,basis:La,"basis-open":function(e){if(e.length<4)return _a(e);for(var t,r=[],n=-1,a=e.length,i=[0],o=[0];++n<3;)t=e[n],i.push(t[0]),o.push(t[1]);for(r.push(Sa(Ca,i)+","+Sa(Ca,o)),--n;++n9&&(a=3*t/Math.sqrt(a),o[l]=a*r,o[l+1]=a*n);for(l=-1;++l<=s;)a=(e[Math.min(s,l+1)][0]-e[Math.max(0,l-1)][0])/(6*(1+o[l]*o[l])),i.push([a||0,o[l]*a||0]);return i}(e))}});function _a(e){return e.length>1?e.join("L"):e+"Z"}function wa(e){return e.join("L")+"Z"}function Ta(e){for(var t=0,r=e.length,n=e[0],a=[n[0],",",n[1]];++t1){l=t[1],i=e[s],s++,n+="C"+(a[0]+o[0])+","+(a[1]+o[1])+","+(i[0]-l[0])+","+(i[1]-l[1])+","+i[0]+","+i[1];for(var c=2;cAe)+",1 "+t}function s(e,t,r,n){return"Q 0,0 "+n}return i.radius=function(e){return arguments.length?(r=dt(e),i):r},i.source=function(t){return arguments.length?(e=dt(t),i):e},i.target=function(e){return arguments.length?(t=dt(e),i):t},i.startAngle=function(e){return arguments.length?(n=dt(e),i):n},i.endAngle=function(e){return arguments.length?(a=dt(e),i):a},i},e.svg.diagonal=function(){var e=Ia,t=Na,r=ja;function n(n,a){var i=e.call(this,n,a),o=t.call(this,n,a),l=(i.y+o.y)/2,s=[i,{x:i.x,y:l},{x:o.x,y:l},o];return"M"+(s=s.map(r))[0]+"C"+s[1]+" "+s[2]+" "+s[3]}return n.source=function(t){return arguments.length?(e=dt(t),n):e},n.target=function(e){return arguments.length?(t=dt(e),n):t},n.projection=function(e){return arguments.length?(r=e,n):r},n},e.svg.diagonal.radial=function(){var t=e.svg.diagonal(),r=ja,n=t.projection;return t.projection=function(e){return arguments.length?n(function(e){return function(){var t=e.apply(this,arguments),r=t[0],n=t[1]-Oe;return[r*Math.cos(n),r*Math.sin(n)]}}(r=e)):r},t},e.svg.symbol=function(){var e=Ha,t=Ba;function r(r,n){return(Ya.get(e.call(this,r,n))||Ua)(t.call(this,r,n))}return r.type=function(t){return arguments.length?(e=dt(t),r):e},r.size=function(e){return arguments.length?(t=dt(e),r):t},r};var Ya=e.map({circle:Ua,cross:function(e){var t=Math.sqrt(e/5)/2;return"M"+-3*t+","+-t+"H"+-t+"V"+-3*t+"H"+t+"V"+-t+"H"+3*t+"V"+t+"H"+t+"V"+3*t+"H"+-t+"V"+t+"H"+-3*t+"Z"},diamond:function(e){var t=Math.sqrt(e/(2*Va)),r=t*Va;return"M0,"+-t+"L"+r+",0 0,"+t+" "+-r+",0Z"},square:function(e){var t=Math.sqrt(e)/2;return"M"+-t+","+-t+"L"+t+","+-t+" "+t+","+t+" "+-t+","+t+"Z"},"triangle-down":function(e){var t=Math.sqrt(e/qa),r=t*qa/2;return"M0,"+r+"L"+t+","+-r+" "+-t+","+-r+"Z"},"triangle-up":function(e){var t=Math.sqrt(e/qa),r=t*qa/2;return"M0,"+-r+"L"+t+","+r+" "+-t+","+r+"Z"}});e.svg.symbolTypes=Ya.keys();var qa=Math.sqrt(3),Va=Math.tan(30*De);Z.transition=function(e){for(var t,r,n=Xa||++Qa,a=ti(e),i=[],o=Ja||{time:Date.now(),ease:Sr,delay:0,duration:250},l=-1,s=this.length;++l0;)c[--d].call(e,o);if(i>=1)return f.event&&f.event.end.call(e,e.__data__,t),--u.count?delete u[n]:delete e[r],1}f||(i=a.time,o=bt((function(e){var t=f.delay;if(o.t=t+i,t<=e)return d(e-t);o.c=d}),0,i),f=u[n]={tween:new b,time:i,timer:o,delay:a.delay,duration:a.duration,ease:a.ease,index:t},a=null,++u.count)}Ka.call=Z.call,Ka.empty=Z.empty,Ka.node=Z.node,Ka.size=Z.size,e.transition=function(t,r){return t&&t.transition?Xa?t.transition(r):t:e.selection().transition(t)},e.transition.prototype=Ka,Ka.select=function(e){var t,r,n,a=this.id,i=this.namespace,o=[];e=W(e);for(var l=-1,s=this.length;++lrect,.s>rect").attr("width",l[1]-l[0])}function m(e){e.select(".extent").attr("y",s[0]),e.selectAll(".extent,.e>rect,.w>rect").attr("height",s[1]-s[0])}function y(){var f,y,g=this,v=e.select(e.event.target),x=n.of(g,arguments),b=e.select(g),_=v.datum(),w=!/^(n|s)$/.test(_)&&a,T=!/^(e|w)$/.test(_)&&i,M=v.classed("extent"),k=be(g),A=e.mouse(g),L=e.select(o(g)).on("keydown.brush",(function(){32==e.event.keyCode&&(M||(f=null,A[0]-=l[1],A[1]-=s[1],M=2),F())})).on("keyup.brush",(function(){32==e.event.keyCode&&2==M&&(A[0]+=l[1],A[1]+=s[1],M=0,F())}));if(e.event.changedTouches?L.on("touchmove.brush",D).on("touchend.brush",E):L.on("mousemove.brush",D).on("mouseup.brush",E),b.interrupt().selectAll("*").interrupt(),M)A[0]=l[0]-A[0],A[1]=s[0]-A[1];else if(_){var S=+/w$/.test(_),O=+/^n/.test(_);y=[l[1-S]-A[0],s[1-O]-A[1]],A[0]=l[S],A[1]=s[O]}else e.event.altKey&&(f=A.slice());function D(){var t=e.mouse(g),r=!1;y&&(t[0]+=y[0],t[1]+=y[1]),M||(e.event.altKey?(f||(f=[(l[0]+l[1])/2,(s[0]+s[1])/2]),A[0]=l[+(t[0]=0;c--)if(u[c]!==f[c])return!1;for(c=u.length-1;c>=0;c--)if(!x(e[l=u[c]],t[l],r,n))return!1;return!0}(e,t,r,n))}return r?e===t:e==t}function b(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function _(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function w(e,t,r,n){var a;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(n=r,r=null),a=function(e){var t;try{e()}catch(e){t=e}return t}(t),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),e&&!a&&g(a,r,"Missing expected exception"+n);var i="string"==typeof n,l=!e&&a&&!r;if((!e&&o.isError(a)&&i&&_(a,r)||l)&&g(a,r,"Got unwanted exception"+n),e&&a&&r&&!_(a,r)||!e&&a)throw a}d.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return m(y(e.actual),128)+" "+e.operator+" "+m(y(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||g;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var r=new Error;if(r.stack){var n=r.stack,a=h(t),i=n.indexOf("\n"+a);if(i>=0){var o=n.indexOf("\n",i+1);n=n.substring(o+1)}this.stack=n}}},o.inherits(d.AssertionError,Error),d.fail=g,d.ok=v,d.equal=function(e,t,r){e!=t&&g(e,t,r,"==",d.equal)},d.notEqual=function(e,t,r){e==t&&g(e,t,r,"!=",d.notEqual)},d.deepEqual=function(e,t,r){x(e,t,!1)||g(e,t,r,"deepEqual",d.deepEqual)},d.deepStrictEqual=function(e,t,r){x(e,t,!0)||g(e,t,r,"deepStrictEqual",d.deepStrictEqual)},d.notDeepEqual=function(e,t,r){x(e,t,!1)&&g(e,t,r,"notDeepEqual",d.notDeepEqual)},d.notDeepStrictEqual=function e(t,r,n){x(t,r,!0)&&g(t,r,n,"notDeepStrictEqual",e)},d.strictEqual=function(e,t,r){e!==t&&g(e,t,r,"===",d.strictEqual)},d.notStrictEqual=function(e,t,r){e===t&&g(e,t,r,"!==",d.notStrictEqual)},d.throws=function(e,t,r){w(!0,e,t,r)},d.doesNotThrow=function(e,t,r){w(!1,e,t,r)},d.ifError=function(e){if(e)throw e},d.strict=n((function e(t,r){t||g(t,!0,r,"==",e)}),d,{equal:d.strictEqual,deepEqual:d.deepStrictEqual,notEqual:d.notStrictEqual,notDeepEqual:d.notDeepStrictEqual}),d.strict.strict=d.strict;var T=Object.keys||function(e){var t=[];for(var r in e)l.call(e,r)&&t.push(r);return t}}).call(this)}).call(this,void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"object-assign":73,"util/":24}],22:[function(e,t,r){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},{}],23:[function(e,t,r){t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],24:[function(e,t,n){(function(t,r){(function(){var a=/%[sdj%]/g;n.format=function(e){if(!g(e)){for(var t=[],r=0;r=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),s=n[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),h(t)?r.showHidden=t:t&&n._extend(r,t),v(r.showHidden)&&(r.showHidden=!1),v(r.depth)&&(r.depth=2),v(r.colors)&&(r.colors=!1),v(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=s),u(r,e,r.depth)}function s(e,t){var r=l.styles[t];return r?"["+l.colors[r][0]+"m"+e+"["+l.colors[r][1]+"m":e}function c(e,t){return e}function u(e,t,r){if(e.customInspect&&t&&T(t.inspect)&&t.inspect!==n.inspect&&(!t.constructor||t.constructor.prototype!==t)){var a=t.inspect(r,e);return g(a)||(a=u(e,a,r)),a}var i=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(g(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return y(t)?e.stylize(""+t,"number"):h(t)?e.stylize(""+t,"boolean"):m(t)?e.stylize("null","null"):void 0}(e,t);if(i)return i;var o=Object.keys(t),l=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),w(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return f(t);if(0===o.length){if(T(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(x(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(_(t))return e.stylize(Date.prototype.toString.call(t),"date");if(w(t))return f(t)}var c,b="",M=!1,k=["{","}"];return p(t)&&(M=!0,k=["[","]"]),T(t)&&(b=" [Function"+(t.name?": "+t.name:"")+"]"),x(t)&&(b=" "+RegExp.prototype.toString.call(t)),_(t)&&(b=" "+Date.prototype.toUTCString.call(t)),w(t)&&(b=" "+f(t)),0!==o.length||M&&0!=t.length?r<0?x(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),c=M?function(e,t,r,n,a){for(var i=[],o=0,l=t.length;o60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}(c,b,k)):k[0]+b+k[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,r,n,a,i){var o,l,s;if((s=Object.getOwnPropertyDescriptor(t,a)||{value:t[a]}).get?l=s.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):s.set&&(l=e.stylize("[Setter]","special")),L(n,a)||(o="["+a+"]"),l||(e.seen.indexOf(s.value)<0?(l=m(r)?u(e,s.value,null):u(e,s.value,r-1)).indexOf("\n")>-1&&(l=i?l.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+l.split("\n").map((function(e){return" "+e})).join("\n")):l=e.stylize("[Circular]","special")),v(o)){if(i&&a.match(/^\d+$/))return l;(o=JSON.stringify(""+a)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+l}function p(e){return Array.isArray(e)}function h(e){return"boolean"==typeof e}function m(e){return null===e}function y(e){return"number"==typeof e}function g(e){return"string"==typeof e}function v(e){return void 0===e}function x(e){return b(e)&&"[object RegExp]"===M(e)}function b(e){return"object"==typeof e&&null!==e}function _(e){return b(e)&&"[object Date]"===M(e)}function w(e){return b(e)&&("[object Error]"===M(e)||e instanceof Error)}function T(e){return"function"==typeof e}function M(e){return Object.prototype.toString.call(e)}function k(e){return e<10?"0"+e.toString(10):e.toString(10)}n.debuglog=function(e){if(v(i)&&(i=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!o[e])if(new RegExp("\\b"+e+"\\b","i").test(i)){var r=t.pid;o[e]=function(){var t=n.format.apply(n,arguments);console.error("%s %d: %s",e,r,t)}}else o[e]=function(){};return o[e]},n.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},n.isArray=p,n.isBoolean=h,n.isNull=m,n.isNullOrUndefined=function(e){return null==e},n.isNumber=y,n.isString=g,n.isSymbol=function(e){return"symbol"==typeof e},n.isUndefined=v,n.isRegExp=x,n.isObject=b,n.isDate=_,n.isError=w,n.isFunction=T,n.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},n.isBuffer=e("./support/isBuffer");var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function L(e,t){return Object.prototype.hasOwnProperty.call(e,t)}n.log=function(){var e,t;console.log("%s - %s",(e=new Date,t=[k(e.getHours()),k(e.getMinutes()),k(e.getSeconds())].join(":"),[e.getDate(),A[e.getMonth()],t].join(" ")),n.format.apply(n,arguments))},n.inherits=e("inherits"),n._extend=function(e,t){if(!t||!b(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}}).call(this)}).call(this,e("_process"),void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":23,_process:98,inherits:22}],25:[function(e,t,r){"use strict";r.byteLength=function(e){var t=s(e),r=t[0],n=t[1];return 3*(r+n)/4-n},r.toByteArray=function(e){var t,r,n=s(e),o=n[0],l=n[1],c=new i(function(e,t,r){return 3*(t+r)/4-r}(0,o,l)),u=0,f=l>0?o-4:o;for(r=0;r>16&255,c[u++]=t>>8&255,c[u++]=255&t;return 2===l&&(t=a[e.charCodeAt(r)]<<2|a[e.charCodeAt(r+1)]>>4,c[u++]=255&t),1===l&&(t=a[e.charCodeAt(r)]<<10|a[e.charCodeAt(r+1)]<<4|a[e.charCodeAt(r+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c},r.fromByteArray=function(e){for(var t,r=e.length,a=r%3,i=[],o=16383,l=0,s=r-a;ls?s:l+o));return 1===a?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===a&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),i.join("")};for(var n=[],a=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0;l<64;++l)n[l]=o[l],a[o.charCodeAt(l)]=l;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,r){for(var a,i=[],o=t;o>18&63]+n[l>>12&63]+n[l>>6&63]+n[63&l]);var l;return i.join("")}a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63},{}],26:[function(e,t,r){},{}],27:[function(e,t,r){"use strict";var n,a="object"==typeof Reflect?Reflect:null,i=a&&"function"==typeof a.apply?a.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};n=a&&"function"==typeof a.ownKeys?a.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function l(){l.init.call(this)}t.exports=l,t.exports.once=function(e,t){return new Promise((function(r,n){function a(){void 0!==i&&e.removeListener("error",i),r([].slice.call(arguments))}var i;"error"!==t&&(i=function(r){e.removeListener(t,a),n(r)},e.once("error",i)),e.once(t,a)}))},l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var s=10;function c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?l.defaultMaxListeners:e._maxListeners}function f(e,t,r,n){var a,i,o,l;if(c(r),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),i=e._events),o=i[t]),void 0===o)o=i[t]=r,++e._eventsCount;else if("function"==typeof o?o=i[t]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),(a=u(e))>0&&o.length>a&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,l=s,console&&console.warn&&console.warn(l)}return e}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},a=d.bind(n);return a.listener=r,n.wrapFn=a,a}function h(e,t,r){var n=e._events;if(void 0===n)return[];var a=n[t];return void 0===a?[]:"function"==typeof a?r?[a.listener||a]:[a]:r?function(e){for(var t=new Array(e.length),r=0;r0&&(o=t[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var s=a[e];if(void 0===s)return!1;if("function"==typeof s)i(s,this,t);else{var c=s.length,u=y(s,c);for(r=0;r=0;i--)if(r[i]===t||r[i].listener===t){o=r[i].listener,a=i;break}if(a<0)return this;0===a?r.shift():function(e,t){for(;t+1=0;n--)this.removeListener(e,t[n]);return this},l.prototype.listeners=function(e){return h(this,e,!0)},l.prototype.rawListeners=function(e){return h(this,e,!1)},l.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},l.prototype.listenerCount=m,l.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},{}],28:[function(e,t,r){(function(t){(function(){"use strict";var t=e("base64-js"),n=e("ieee754");r.Buffer=o,r.SlowBuffer=function(e){return+e!=e&&(e=0),o.alloc(+e)},r.INSPECT_MAX_BYTES=50;var a=2147483647;function i(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return t.__proto__=o.prototype,t}function o(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!o.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=0|d(e,t),n=i(r),a=n.write(e,t);return a!==r&&(n=n.slice(0,a)),n}(e,t);if(ArrayBuffer.isView(e))return u(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(j(e,ArrayBuffer)||e&&j(e.buffer,ArrayBuffer))return function(e,t,r){if(t<0||e.byteLength=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function d(e,t){if(o.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||j(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var a=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return I(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return N(e).length;default:if(a)return n?-1:I(e).length;t=(""+t).toLowerCase(),a=!0}}function p(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return S(this,t,r);case"utf8":case"utf-8":return M(this,t,r);case"ascii":return A(this,t,r);case"latin1":case"binary":return L(this,t,r);case"base64":return T(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function h(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function m(e,t,r,n,a){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),B(r=+r)&&(r=a?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(a)return-1;r=e.length-1}else if(r<0){if(!a)return-1;r=0}if("string"==typeof t&&(t=o.from(t,n)),o.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,a);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,n,a);throw new TypeError("val must be string, number or Buffer")}function y(e,t,r,n,a){var i,o=1,l=e.length,s=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;o=2,l/=2,s/=2,r/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(a){var u=-1;for(i=r;il&&(r=l-s),i=r;i>=0;i--){for(var f=!0,d=0;da&&(n=a):n=a;var i=t.length;n>i/2&&(n=i/2);for(var o=0;o>8,a=r%256,i.push(a),i.push(n);return i}(t,e.length-r),e,r,n)}function T(e,r,n){return 0===r&&n===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(r,n))}function M(e,t,r){r=Math.min(e.length,r);for(var n=[],a=t;a239?4:c>223?3:c>191?2:1;if(a+f<=r)switch(f){case 1:c<128&&(u=c);break;case 2:128==(192&(i=e[a+1]))&&(s=(31&c)<<6|63&i)>127&&(u=s);break;case 3:i=e[a+1],o=e[a+2],128==(192&i)&&128==(192&o)&&(s=(15&c)<<12|(63&i)<<6|63&o)>2047&&(s<55296||s>57343)&&(u=s);break;case 4:i=e[a+1],o=e[a+2],l=e[a+3],128==(192&i)&&128==(192&o)&&128==(192&l)&&(s=(15&c)<<18|(63&i)<<12|(63&o)<<6|63&l)>65535&&s<1114112&&(u=s)}null===u?(u=65533,f=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),a+=f}return function(e){var t=e.length;if(t<=k)return String.fromCharCode.apply(String,e);for(var r="",n=0;nt&&(e+=" ... "),""},o.prototype.compare=function(e,t,r,n,a){if(j(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),!o.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===a&&(a=this.length),t<0||r>e.length||n<0||a>this.length)throw new RangeError("out of range index");if(n>=a&&t>=r)return 0;if(n>=a)return-1;if(t>=r)return 1;if(this===e)return 0;for(var i=(a>>>=0)-(n>>>=0),l=(r>>>=0)-(t>>>=0),s=Math.min(i,l),c=this.slice(n,a),u=e.slice(t,r),f=0;f>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var a=this.length-t;if((void 0===r||r>a)&&(r=a),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return g(this,e,t,r);case"utf8":case"utf-8":return v(this,e,t,r);case"ascii":return x(this,e,t,r);case"latin1":case"binary":return b(this,e,t,r);case"base64":return _(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var k=4096;function A(e,t,r){var n="";r=Math.min(e.length,r);for(var a=t;aa)&&(r=a);for(var i="",o=t;or)throw new RangeError("Trying to access beyond buffer length")}function C(e,t,r,n,a,i){if(!o.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||te.length)throw new RangeError("Index out of range")}function E(e,t,r,n,a,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function P(e,t,r,a,i){return t=+t,r>>>=0,i||E(e,0,r,4),n.write(e,t,r,a,23,4),r+4}function R(e,t,r,a,i){return t=+t,r>>>=0,i||E(e,0,r,8),n.write(e,t,r,a,52,8),r+8}o.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||D(e,t,this.length);for(var n=this[e],a=1,i=0;++i>>=0,t>>>=0,r||D(e,t,this.length);for(var n=this[e+--t],a=1;t>0&&(a*=256);)n+=this[e+--t]*a;return n},o.prototype.readUInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),this[e]},o.prototype.readUInt16LE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUInt16BE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},o.prototype.readUInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||D(e,t,this.length);for(var n=this[e],a=1,i=0;++i=(a*=128)&&(n-=Math.pow(2,8*t)),n},o.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||D(e,t,this.length);for(var n=t,a=1,i=this[e+--n];n>0&&(a*=256);)i+=this[e+--n]*a;return i>=(a*=128)&&(i-=Math.pow(2,8*t)),i},o.prototype.readInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){e>>>=0,t||D(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt16BE=function(e,t){e>>>=0,t||D(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readFloatLE=function(e,t){return e>>>=0,t||D(e,4,this.length),n.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return e>>>=0,t||D(e,4,this.length),n.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return e>>>=0,t||D(e,8,this.length),n.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return e>>>=0,t||D(e,8,this.length),n.read(this,e,!1,52,8)},o.prototype.writeUIntLE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||C(this,e,t,r,Math.pow(2,8*r)-1,0);var a=1,i=0;for(this[t]=255&e;++i>>=0,r>>>=0,n||C(this,e,t,r,Math.pow(2,8*r)-1,0);var a=r-1,i=1;for(this[t+a]=255&e;--a>=0&&(i*=256);)this[t+a]=e/i&255;return t+r},o.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,255,0),this[t]=255&e,t+1},o.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},o.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var a=Math.pow(2,8*r-1);C(this,e,t,r,a-1,-a)}var i=0,o=1,l=0;for(this[t]=255&e;++i>0)-l&255;return t+r},o.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var a=Math.pow(2,8*r-1);C(this,e,t,r,a-1,-a)}var i=r-1,o=1,l=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===l&&0!==this[t+i+1]&&(l=1),this[t+i]=(e/o>>0)-l&255;return t+r},o.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},o.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeFloatLE=function(e,t,r){return P(this,e,t,!0,r)},o.prototype.writeFloatBE=function(e,t,r){return P(this,e,t,!1,r)},o.prototype.writeDoubleLE=function(e,t,r){return R(this,e,t,!0,r)},o.prototype.writeDoubleBE=function(e,t,r){return R(this,e,t,!1,r)},o.prototype.copy=function(e,t,r,n){if(!o.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return a},o.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!o.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){var a=e.charCodeAt(0);("utf8"===n&&a<128||"latin1"===n)&&(e=a)}}else"number"==typeof e&&(e&=255);if(t<0||this.length>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&r<57344){if(!a){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(o+1===n){(t-=3)>-1&&i.push(239,191,189);continue}a=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),a=r;continue}r=65536+(a-55296<<10|r-56320)}else a&&(t-=3)>-1&&i.push(239,191,189);if(a=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function N(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(z,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function F(e,t,r,n){for(var a=0;a=t.length||a>=e.length);++a)t[a+r]=e[a];return a}function j(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function B(e){return e!=e}}).call(this)}).call(this,e("buffer").Buffer)},{"base64-js":25,buffer:28,ieee754:66}],29:[function(e,t,r){var n,a;n=this,a=function(e){"use strict";function t(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function r(e){return(e=t(Math.abs(e)))?e[1]:NaN}var n,a=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(e){if(!(t=a.exec(e)))throw new Error("invalid format: "+e);var t;return new o({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function o(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function l(e,r){var n=t(e,r);if(!n)return e+"";var a=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+a:a.length>i+1?a.slice(0,i+1)+"."+a.slice(i+1):a+new Array(i-a.length+2).join("0")}i.prototype=o.prototype,o.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var s={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return l(100*e,t)},r:l,s:function(e,r){var a=t(e,r);if(!a)return e+"";var i=a[0],o=a[1],l=o-(n=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length;return l===s?i:l>s?i+new Array(l-s+1).join("0"):l>0?i.slice(0,l)+"."+i.slice(l):"0."+new Array(1-l).join("0")+t(e,Math.max(0,r+l-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function c(e){return e}var u,f=Array.prototype.map,d=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function p(e){var t,a,o=void 0===e.grouping||void 0===e.thousands?c:(t=f.call(e.grouping,Number),a=e.thousands+"",function(e,r){for(var n=e.length,i=[],o=0,l=t[0],s=0;n>0&&l>0&&(s+l+1>r&&(l=Math.max(1,r-s)),i.push(e.substring(n-=l,n+l)),!((s+=l+1)>r));)l=t[o=(o+1)%t.length];return i.reverse().join(a)}),l=void 0===e.currency?"":e.currency[0]+"",u=void 0===e.currency?"":e.currency[1]+"",p=void 0===e.decimal?".":e.decimal+"",h=void 0===e.numerals?c:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(f.call(e.numerals,String)),m=void 0===e.percent?"%":e.percent+"",y=void 0===e.minus?"-":e.minus+"",g=void 0===e.nan?"NaN":e.nan+"";function v(e){var t=(e=i(e)).fill,r=e.align,a=e.sign,c=e.symbol,f=e.zero,v=e.width,x=e.comma,b=e.precision,_=e.trim,w=e.type;"n"===w?(x=!0,w="g"):s[w]||(void 0===b&&(b=12),_=!0,w="g"),(f||"0"===t&&"="===r)&&(f=!0,t="0",r="=");var T="$"===c?l:"#"===c&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",M="$"===c?u:/[%p]/.test(w)?m:"",k=s[w],A=/[defgprs%]/.test(w);function L(e){var i,l,s,c=T,u=M;if("c"===w)u=k(e)+u,e="";else{var m=(e=+e)<0||1/e<0;if(e=isNaN(e)?g:k(Math.abs(e),b),_&&(e=function(e){e:for(var t,r=e.length,n=1,a=-1;n0&&(a=0)}return a>0?e.slice(0,a)+e.slice(t+1):e}(e)),m&&0==+e&&"+"!==a&&(m=!1),c=(m?"("===a?a:y:"-"===a||"("===a?"":a)+c,u=("s"===w?d[8+n/3]:"")+u+(m&&"("===a?")":""),A)for(i=-1,l=e.length;++i(s=e.charCodeAt(i))||s>57){u=(46===s?p+e.slice(i+1):e.slice(i))+u,e=e.slice(0,i);break}}x&&!f&&(e=o(e,1/0));var L=c.length+e.length+u.length,S=L>1)+c+e+u+S.slice(L);break;default:e=S+c+e+u}return h(e)}return b=void 0===b?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b)),L.toString=function(){return e+""},L}return{format:v,formatPrefix:function(e,t){var n=v(((e=i(e)).type="f",e)),a=3*Math.max(-8,Math.min(8,Math.floor(r(t)/3))),o=Math.pow(10,-a),l=d[8+a/3];return function(e){return n(o*e)+l}}}}function h(t){return u=p(t),e.format=u.format,e.formatPrefix=u.formatPrefix,u}h({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),e.FormatSpecifier=o,e.formatDefaultLocale=h,e.formatLocale=p,e.formatSpecifier=i,e.precisionFixed=function(e){return Math.max(0,-r(Math.abs(e)))},e.precisionPrefix=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(r(t)/3)))-r(Math.abs(e)))},e.precisionRound=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,r(t)-r(e))+1},Object.defineProperty(e,"__esModule",{value:!0})},a("object"==typeof r&&void 0!==t?r:(n="undefined"!=typeof globalThis?globalThis:n||self).d3=n.d3||{})},{}],30:[function(e,t,r){var n,a;n=this,a=function(e,t){"use strict";function r(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function n(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function a(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function i(e){var i=e.dateTime,o=e.date,s=e.time,c=e.periods,u=e.days,f=e.shortDays,d=e.months,ve=e.shortMonths,xe=p(c),be=h(c),_e=p(u),we=h(u),Te=p(f),Me=h(f),ke=p(d),Ae=h(d),Le=p(ve),Se=h(ve),Oe={a:function(e){return f[e.getDay()]},A:function(e){return u[e.getDay()]},b:function(e){return ve[e.getMonth()]},B:function(e){return d[e.getMonth()]},c:null,d:z,e:z,f:B,H:I,I:N,j:F,L:j,m:H,M:U,p:function(e){return c[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:ye,s:ge,S:Y,u:q,U:V,V:G,w:Z,W,x:null,X:null,y:X,Y:J,Z:K,"%":me},De={a:function(e){return f[e.getUTCDay()]},A:function(e){return u[e.getUTCDay()]},b:function(e){return ve[e.getUTCMonth()]},B:function(e){return d[e.getUTCMonth()]},c:null,d:Q,e:Q,f:ne,H:$,I:ee,j:te,L:re,m:ae,M:ie,p:function(e){return c[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:ye,s:ge,S:oe,u:le,U:se,V:ce,w:ue,W:fe,x:null,X:null,y:de,Y:pe,Z:he,"%":me},Ce={a:function(e,t,r){var n=Te.exec(t.slice(r));return n?(e.w=Me[n[0].toLowerCase()],r+n[0].length):-1},A:function(e,t,r){var n=_e.exec(t.slice(r));return n?(e.w=we[n[0].toLowerCase()],r+n[0].length):-1},b:function(e,t,r){var n=Le.exec(t.slice(r));return n?(e.m=Se[n[0].toLowerCase()],r+n[0].length):-1},B:function(e,t,r){var n=ke.exec(t.slice(r));return n?(e.m=Ae[n[0].toLowerCase()],r+n[0].length):-1},c:function(e,t,r){return Re(e,i,t,r)},d:k,e:k,f:C,H:L,I:L,j:A,L:D,m:M,M:S,p:function(e,t,r){var n=xe.exec(t.slice(r));return n?(e.p=be[n[0].toLowerCase()],r+n[0].length):-1},q:T,Q:P,s:R,S:O,u:y,U:g,V:v,w:m,W:x,x:function(e,t,r){return Re(e,o,t,r)},X:function(e,t,r){return Re(e,s,t,r)},y:_,Y:b,Z:w,"%":E};function Ee(e,t){return function(r){var n,a,i,o=[],s=-1,c=0,u=e.length;for(r instanceof Date||(r=new Date(+r));++s53)return null;"w"in c||(c.w=1),"Z"in c?(s=(l=n(a(c.y,0,1))).getUTCDay(),l=s>4||0===s?t.utcMonday.ceil(l):t.utcMonday(l),l=t.utcDay.offset(l,7*(c.V-1)),c.y=l.getUTCFullYear(),c.m=l.getUTCMonth(),c.d=l.getUTCDate()+(c.w+6)%7):(s=(l=r(a(c.y,0,1))).getDay(),l=s>4||0===s?t.timeMonday.ceil(l):t.timeMonday(l),l=t.timeDay.offset(l,7*(c.V-1)),c.y=l.getFullYear(),c.m=l.getMonth(),c.d=l.getDate()+(c.w+6)%7)}else("W"in c||"U"in c)&&("w"in c||(c.w="u"in c?c.u%7:"W"in c?1:0),s="Z"in c?n(a(c.y,0,1)).getUTCDay():r(a(c.y,0,1)).getDay(),c.m=0,c.d="W"in c?(c.w+6)%7+7*c.W-(s+5)%7:c.w+7*c.U-(s+6)%7);return"Z"in c?(c.H+=c.Z/100|0,c.M+=c.Z%100,n(c)):r(c)}}function Re(e,t,r,n){for(var a,i,o=0,s=t.length,c=r.length;o=c)return-1;if(37===(a=t.charCodeAt(o++))){if(a=t.charAt(o++),!(i=Ce[a in l?t.charAt(o++):a])||(n=i(e,r,n))<0)return-1}else if(a!=r.charCodeAt(n++))return-1}return n}return Oe.x=Ee(o,Oe),Oe.X=Ee(s,Oe),Oe.c=Ee(i,Oe),De.x=Ee(o,De),De.X=Ee(s,De),De.c=Ee(i,De),{format:function(e){var t=Ee(e+="",Oe);return t.toString=function(){return e},t},parse:function(e){var t=Pe(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=Ee(e+="",De);return t.toString=function(){return e},t},utcParse:function(e){var t=Pe(e+="",!0);return t.toString=function(){return e},t}}}var o,l={"-":"",_:" ",0:"0"},s=/^\s*\d+/,c=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(e,t,r){var n=e<0?"-":"",a=(n?-e:e)+"",i=a.length;return n+(i68?1900:2e3),r+n[0].length):-1}function w(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function T(e,t,r){var n=s.exec(t.slice(r,r+1));return n?(e.q=3*n[0]-3,r+n[0].length):-1}function M(e,t,r){var n=s.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function k(e,t,r){var n=s.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function A(e,t,r){var n=s.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function L(e,t,r){var n=s.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function S(e,t,r){var n=s.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function O(e,t,r){var n=s.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function D(e,t,r){var n=s.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function C(e,t,r){var n=s.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function E(e,t,r){var n=c.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function P(e,t,r){var n=s.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function R(e,t,r){var n=s.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function z(e,t){return f(e.getDate(),t,2)}function I(e,t){return f(e.getHours(),t,2)}function N(e,t){return f(e.getHours()%12||12,t,2)}function F(e,r){return f(1+t.timeDay.count(t.timeYear(e),e),r,3)}function j(e,t){return f(e.getMilliseconds(),t,3)}function B(e,t){return j(e,t)+"000"}function H(e,t){return f(e.getMonth()+1,t,2)}function U(e,t){return f(e.getMinutes(),t,2)}function Y(e,t){return f(e.getSeconds(),t,2)}function q(e){var t=e.getDay();return 0===t?7:t}function V(e,r){return f(t.timeSunday.count(t.timeYear(e)-1,e),r,2)}function G(e,r){var n=e.getDay();return e=n>=4||0===n?t.timeThursday(e):t.timeThursday.ceil(e),f(t.timeThursday.count(t.timeYear(e),e)+(4===t.timeYear(e).getDay()),r,2)}function Z(e){return e.getDay()}function W(e,r){return f(t.timeMonday.count(t.timeYear(e)-1,e),r,2)}function X(e,t){return f(e.getFullYear()%100,t,2)}function J(e,t){return f(e.getFullYear()%1e4,t,4)}function K(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+f(t/60|0,"0",2)+f(t%60,"0",2)}function Q(e,t){return f(e.getUTCDate(),t,2)}function $(e,t){return f(e.getUTCHours(),t,2)}function ee(e,t){return f(e.getUTCHours()%12||12,t,2)}function te(e,r){return f(1+t.utcDay.count(t.utcYear(e),e),r,3)}function re(e,t){return f(e.getUTCMilliseconds(),t,3)}function ne(e,t){return re(e,t)+"000"}function ae(e,t){return f(e.getUTCMonth()+1,t,2)}function ie(e,t){return f(e.getUTCMinutes(),t,2)}function oe(e,t){return f(e.getUTCSeconds(),t,2)}function le(e){var t=e.getUTCDay();return 0===t?7:t}function se(e,r){return f(t.utcSunday.count(t.utcYear(e)-1,e),r,2)}function ce(e,r){var n=e.getUTCDay();return e=n>=4||0===n?t.utcThursday(e):t.utcThursday.ceil(e),f(t.utcThursday.count(t.utcYear(e),e)+(4===t.utcYear(e).getUTCDay()),r,2)}function ue(e){return e.getUTCDay()}function fe(e,r){return f(t.utcMonday.count(t.utcYear(e)-1,e),r,2)}function de(e,t){return f(e.getUTCFullYear()%100,t,2)}function pe(e,t){return f(e.getUTCFullYear()%1e4,t,4)}function he(){return"+0000"}function me(){return"%"}function ye(e){return+e}function ge(e){return Math.floor(+e/1e3)}function ve(t){return o=i(t),e.timeFormat=o.format,e.timeParse=o.parse,e.utcFormat=o.utcFormat,e.utcParse=o.utcParse,o}ve({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var xe="%Y-%m-%dT%H:%M:%S.%LZ";var be=Date.prototype.toISOString?function(e){return e.toISOString()}:e.utcFormat(xe);var _e=+new Date("2000-01-01T00:00:00.000Z")?function(e){var t=new Date(e);return isNaN(t)?null:t}:e.utcParse(xe);e.isoFormat=be,e.isoParse=_e,e.timeFormatDefaultLocale=ve,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})},"object"==typeof r&&void 0!==t?a(r,e("d3-time")):a((n=n||self).d3=n.d3||{},n.d3)},{"d3-time":31}],31:[function(e,t,r){var n,a;n=this,a=function(e){"use strict";var t=new Date,r=new Date;function n(e,a,i,o){function l(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return l.floor=function(t){return e(t=new Date(+t)),t},l.ceil=function(t){return e(t=new Date(t-1)),a(t,1),e(t),t},l.round=function(e){var t=l(e),r=l.ceil(e);return e-t0))return o;do{o.push(i=new Date(+t)),a(t,n),e(t)}while(i=r)for(;e(r),!t(r);)r.setTime(r-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;a(e,-1),!t(e););else for(;--r>=0;)for(;a(e,1),!t(e););}))},i&&(l.count=function(n,a){return t.setTime(+n),r.setTime(+a),e(t),e(r),Math.floor(i(t,r))},l.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?l.filter(o?function(t){return o(t)%e==0}:function(t){return l.count(0,t)%e==0}):l:null}),l}var a=n((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));a.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?n((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,r){t.setTime(+t+r*e)}),(function(t,r){return(r-t)/e})):a:null};var i=a.range,o=1e3,l=6e4,s=36e5,c=864e5,u=6048e5,f=n((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*o)}),(function(e,t){return(t-e)/o}),(function(e){return e.getUTCSeconds()})),d=f.range,p=n((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*o)}),(function(e,t){e.setTime(+e+t*l)}),(function(e,t){return(t-e)/l}),(function(e){return e.getMinutes()})),h=p.range,m=n((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*o-e.getMinutes()*l)}),(function(e,t){e.setTime(+e+t*s)}),(function(e,t){return(t-e)/s}),(function(e){return e.getHours()})),y=m.range,g=n((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*l)/c}),(function(e){return e.getDate()-1})),v=g.range;function x(e){return n((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*l)/u}))}var b=x(0),_=x(1),w=x(2),T=x(3),M=x(4),k=x(5),A=x(6),L=b.range,S=_.range,O=w.range,D=T.range,C=M.range,E=k.range,P=A.range,R=n((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()})),z=R.range,I=n((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));I.every=function(e){return isFinite(e=Math.floor(e))&&e>0?n((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,r){t.setFullYear(t.getFullYear()+r*e)})):null};var N=I.range,F=n((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*l)}),(function(e,t){return(t-e)/l}),(function(e){return e.getUTCMinutes()})),j=F.range,B=n((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*s)}),(function(e,t){return(t-e)/s}),(function(e){return e.getUTCHours()})),H=B.range,U=n((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/c}),(function(e){return e.getUTCDate()-1})),Y=U.range;function q(e){return n((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/u}))}var V=q(0),G=q(1),Z=q(2),W=q(3),X=q(4),J=q(5),K=q(6),Q=V.range,$=G.range,ee=Z.range,te=W.range,re=X.range,ne=J.range,ae=K.range,ie=n((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()})),oe=ie.range,le=n((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));le.every=function(e){return isFinite(e=Math.floor(e))&&e>0?n((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)})):null};var se=le.range;e.timeDay=g,e.timeDays=v,e.timeFriday=k,e.timeFridays=E,e.timeHour=m,e.timeHours=y,e.timeInterval=n,e.timeMillisecond=a,e.timeMilliseconds=i,e.timeMinute=p,e.timeMinutes=h,e.timeMonday=_,e.timeMondays=S,e.timeMonth=R,e.timeMonths=z,e.timeSaturday=A,e.timeSaturdays=P,e.timeSecond=f,e.timeSeconds=d,e.timeSunday=b,e.timeSundays=L,e.timeThursday=M,e.timeThursdays=C,e.timeTuesday=w,e.timeTuesdays=O,e.timeWednesday=T,e.timeWednesdays=D,e.timeWeek=b,e.timeWeeks=L,e.timeYear=I,e.timeYears=N,e.utcDay=U,e.utcDays=Y,e.utcFriday=J,e.utcFridays=ne,e.utcHour=B,e.utcHours=H,e.utcMillisecond=a,e.utcMilliseconds=i,e.utcMinute=F,e.utcMinutes=j,e.utcMonday=G,e.utcMondays=$,e.utcMonth=ie,e.utcMonths=oe,e.utcSaturday=K,e.utcSaturdays=ae,e.utcSecond=f,e.utcSeconds=d,e.utcSunday=V,e.utcSundays=Q,e.utcThursday=X,e.utcThursdays=re,e.utcTuesday=Z,e.utcTuesdays=ee,e.utcWednesday=W,e.utcWednesdays=te,e.utcWeek=V,e.utcWeeks=Q,e.utcYear=le,e.utcYears=se,Object.defineProperty(e,"__esModule",{value:!0})},a("object"==typeof r&&void 0!==t?r:(n=n||self).d3=n.d3||{})},{}],32:[function(e,t,r){arguments[4][31][0].apply(r,arguments)},{dup:31}],33:[function(e,t,r){"use strict";var n=e("is-string-blank");t.exports=function(e){var t=typeof e;if("string"===t){var r=e;if(0==(e=+e)&&n(r))return!1}else if("number"!==t)return!1;return e-e<1}},{"is-string-blank":70}],34:[function(e,t,r){t.exports=function(e,t){var r=t[0],n=t[1],a=t[2],i=t[3],o=t[4],l=t[5],s=t[6],c=t[7],u=t[8],f=t[9],d=t[10],p=t[11],h=t[12],m=t[13],y=t[14],g=t[15];return e[0]=l*(d*g-p*y)-f*(s*g-c*y)+m*(s*p-c*d),e[1]=-(n*(d*g-p*y)-f*(a*g-i*y)+m*(a*p-i*d)),e[2]=n*(s*g-c*y)-l*(a*g-i*y)+m*(a*c-i*s),e[3]=-(n*(s*p-c*d)-l*(a*p-i*d)+f*(a*c-i*s)),e[4]=-(o*(d*g-p*y)-u*(s*g-c*y)+h*(s*p-c*d)),e[5]=r*(d*g-p*y)-u*(a*g-i*y)+h*(a*p-i*d),e[6]=-(r*(s*g-c*y)-o*(a*g-i*y)+h*(a*c-i*s)),e[7]=r*(s*p-c*d)-o*(a*p-i*d)+u*(a*c-i*s),e[8]=o*(f*g-p*m)-u*(l*g-c*m)+h*(l*p-c*f),e[9]=-(r*(f*g-p*m)-u*(n*g-i*m)+h*(n*p-i*f)),e[10]=r*(l*g-c*m)-o*(n*g-i*m)+h*(n*c-i*l),e[11]=-(r*(l*p-c*f)-o*(n*p-i*f)+u*(n*c-i*l)),e[12]=-(o*(f*y-d*m)-u*(l*y-s*m)+h*(l*d-s*f)),e[13]=r*(f*y-d*m)-u*(n*y-a*m)+h*(n*d-a*f),e[14]=-(r*(l*y-s*m)-o*(n*y-a*m)+h*(n*s-a*l)),e[15]=r*(l*d-s*f)-o*(n*d-a*f)+u*(n*s-a*l),e}},{}],35:[function(e,t,r){t.exports=function(e){var t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}},{}],36:[function(e,t,r){t.exports=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}},{}],37:[function(e,t,r){t.exports=function(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},{}],38:[function(e,t,r){t.exports=function(e){var t=e[0],r=e[1],n=e[2],a=e[3],i=e[4],o=e[5],l=e[6],s=e[7],c=e[8],u=e[9],f=e[10],d=e[11],p=e[12],h=e[13],m=e[14],y=e[15];return(t*o-r*i)*(f*y-d*m)-(t*l-n*i)*(u*y-d*h)+(t*s-a*i)*(u*m-f*h)+(r*l-n*o)*(c*y-d*p)-(r*s-a*o)*(c*m-f*p)+(n*s-a*l)*(c*h-u*p)}},{}],39:[function(e,t,r){t.exports=function(e,t){var r=t[0],n=t[1],a=t[2],i=t[3],o=r+r,l=n+n,s=a+a,c=r*o,u=n*o,f=n*l,d=a*o,p=a*l,h=a*s,m=i*o,y=i*l,g=i*s;return e[0]=1-f-h,e[1]=u+g,e[2]=d-y,e[3]=0,e[4]=u-g,e[5]=1-c-h,e[6]=p+m,e[7]=0,e[8]=d+y,e[9]=p-m,e[10]=1-c-f,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},{}],40:[function(e,t,r){t.exports=function(e,t,r){var n,a,i,o=r[0],l=r[1],s=r[2],c=Math.sqrt(o*o+l*l+s*s);return Math.abs(c)<1e-6?null:(o*=c=1/c,l*=c,s*=c,n=Math.sin(t),i=1-(a=Math.cos(t)),e[0]=o*o*i+a,e[1]=l*o*i+s*n,e[2]=s*o*i-l*n,e[3]=0,e[4]=o*l*i-s*n,e[5]=l*l*i+a,e[6]=s*l*i+o*n,e[7]=0,e[8]=o*s*i+l*n,e[9]=l*s*i-o*n,e[10]=s*s*i+a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}},{}],41:[function(e,t,r){t.exports=function(e,t,r){var n=t[0],a=t[1],i=t[2],o=t[3],l=n+n,s=a+a,c=i+i,u=n*l,f=n*s,d=n*c,p=a*s,h=a*c,m=i*c,y=o*l,g=o*s,v=o*c;return e[0]=1-(p+m),e[1]=f+v,e[2]=d-g,e[3]=0,e[4]=f-v,e[5]=1-(u+m),e[6]=h+y,e[7]=0,e[8]=d+g,e[9]=h-y,e[10]=1-(u+p),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}},{}],42:[function(e,t,r){t.exports=function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},{}],43:[function(e,t,r){t.exports=function(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}},{}],44:[function(e,t,r){t.exports=function(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},{}],45:[function(e,t,r){t.exports=function(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},{}],46:[function(e,t,r){t.exports=function(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},{}],47:[function(e,t,r){t.exports=function(e,t,r,n,a,i,o){var l=1/(r-t),s=1/(a-n),c=1/(i-o);return e[0]=2*i*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*i*s,e[6]=0,e[7]=0,e[8]=(r+t)*l,e[9]=(a+n)*s,e[10]=(o+i)*c,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*i*2*c,e[15]=0,e}},{}],48:[function(e,t,r){t.exports=function(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},{}],49:[function(e,t,r){t.exports={create:e("./create"),clone:e("./clone"),copy:e("./copy"),identity:e("./identity"),transpose:e("./transpose"),invert:e("./invert"),adjoint:e("./adjoint"),determinant:e("./determinant"),multiply:e("./multiply"),translate:e("./translate"),scale:e("./scale"),rotate:e("./rotate"),rotateX:e("./rotateX"),rotateY:e("./rotateY"),rotateZ:e("./rotateZ"),fromRotation:e("./fromRotation"),fromRotationTranslation:e("./fromRotationTranslation"),fromScaling:e("./fromScaling"),fromTranslation:e("./fromTranslation"),fromXRotation:e("./fromXRotation"),fromYRotation:e("./fromYRotation"),fromZRotation:e("./fromZRotation"),fromQuat:e("./fromQuat"),frustum:e("./frustum"),perspective:e("./perspective"),perspectiveFromFieldOfView:e("./perspectiveFromFieldOfView"),ortho:e("./ortho"),lookAt:e("./lookAt"),str:e("./str")}},{"./adjoint":34,"./clone":35,"./copy":36,"./create":37,"./determinant":38,"./fromQuat":39,"./fromRotation":40,"./fromRotationTranslation":41,"./fromScaling":42,"./fromTranslation":43,"./fromXRotation":44,"./fromYRotation":45,"./fromZRotation":46,"./frustum":47,"./identity":48,"./invert":50,"./lookAt":51,"./multiply":52,"./ortho":53,"./perspective":54,"./perspectiveFromFieldOfView":55,"./rotate":56,"./rotateX":57,"./rotateY":58,"./rotateZ":59,"./scale":60,"./str":61,"./translate":62,"./transpose":63}],50:[function(e,t,r){t.exports=function(e,t){var r=t[0],n=t[1],a=t[2],i=t[3],o=t[4],l=t[5],s=t[6],c=t[7],u=t[8],f=t[9],d=t[10],p=t[11],h=t[12],m=t[13],y=t[14],g=t[15],v=r*l-n*o,x=r*s-a*o,b=r*c-i*o,_=n*s-a*l,w=n*c-i*l,T=a*c-i*s,M=u*m-f*h,k=u*y-d*h,A=u*g-p*h,L=f*y-d*m,S=f*g-p*m,O=d*g-p*y,D=v*O-x*S+b*L+_*A-w*k+T*M;return D?(D=1/D,e[0]=(l*O-s*S+c*L)*D,e[1]=(a*S-n*O-i*L)*D,e[2]=(m*T-y*w+g*_)*D,e[3]=(d*w-f*T-p*_)*D,e[4]=(s*A-o*O-c*k)*D,e[5]=(r*O-a*A+i*k)*D,e[6]=(y*b-h*T-g*x)*D,e[7]=(u*T-d*b+p*x)*D,e[8]=(o*S-l*A+c*M)*D,e[9]=(n*A-r*S-i*M)*D,e[10]=(h*w-m*b+g*v)*D,e[11]=(f*b-u*w-p*v)*D,e[12]=(l*k-o*L-s*M)*D,e[13]=(r*L-n*k+a*M)*D,e[14]=(m*x-h*_-y*v)*D,e[15]=(u*_-f*x+d*v)*D,e):null}},{}],51:[function(e,t,r){var n=e("./identity");t.exports=function(e,t,r,a){var i,o,l,s,c,u,f,d,p,h,m=t[0],y=t[1],g=t[2],v=a[0],x=a[1],b=a[2],_=r[0],w=r[1],T=r[2];return Math.abs(m-_)<1e-6&&Math.abs(y-w)<1e-6&&Math.abs(g-T)<1e-6?n(e):(f=m-_,d=y-w,p=g-T,i=x*(p*=h=1/Math.sqrt(f*f+d*d+p*p))-b*(d*=h),o=b*(f*=h)-v*p,l=v*d-x*f,(h=Math.sqrt(i*i+o*o+l*l))?(i*=h=1/h,o*=h,l*=h):(i=0,o=0,l=0),s=d*l-p*o,c=p*i-f*l,u=f*o-d*i,(h=Math.sqrt(s*s+c*c+u*u))?(s*=h=1/h,c*=h,u*=h):(s=0,c=0,u=0),e[0]=i,e[1]=s,e[2]=f,e[3]=0,e[4]=o,e[5]=c,e[6]=d,e[7]=0,e[8]=l,e[9]=u,e[10]=p,e[11]=0,e[12]=-(i*m+o*y+l*g),e[13]=-(s*m+c*y+u*g),e[14]=-(f*m+d*y+p*g),e[15]=1,e)}},{"./identity":48}],52:[function(e,t,r){t.exports=function(e,t,r){var n=t[0],a=t[1],i=t[2],o=t[3],l=t[4],s=t[5],c=t[6],u=t[7],f=t[8],d=t[9],p=t[10],h=t[11],m=t[12],y=t[13],g=t[14],v=t[15],x=r[0],b=r[1],_=r[2],w=r[3];return e[0]=x*n+b*l+_*f+w*m,e[1]=x*a+b*s+_*d+w*y,e[2]=x*i+b*c+_*p+w*g,e[3]=x*o+b*u+_*h+w*v,x=r[4],b=r[5],_=r[6],w=r[7],e[4]=x*n+b*l+_*f+w*m,e[5]=x*a+b*s+_*d+w*y,e[6]=x*i+b*c+_*p+w*g,e[7]=x*o+b*u+_*h+w*v,x=r[8],b=r[9],_=r[10],w=r[11],e[8]=x*n+b*l+_*f+w*m,e[9]=x*a+b*s+_*d+w*y,e[10]=x*i+b*c+_*p+w*g,e[11]=x*o+b*u+_*h+w*v,x=r[12],b=r[13],_=r[14],w=r[15],e[12]=x*n+b*l+_*f+w*m,e[13]=x*a+b*s+_*d+w*y,e[14]=x*i+b*c+_*p+w*g,e[15]=x*o+b*u+_*h+w*v,e}},{}],53:[function(e,t,r){t.exports=function(e,t,r,n,a,i,o){var l=1/(t-r),s=1/(n-a),c=1/(i-o);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*c,e[11]=0,e[12]=(t+r)*l,e[13]=(a+n)*s,e[14]=(o+i)*c,e[15]=1,e}},{}],54:[function(e,t,r){t.exports=function(e,t,r,n,a){var i=1/Math.tan(t/2),o=1/(n-a);return e[0]=i/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(a+n)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*a*n*o,e[15]=0,e}},{}],55:[function(e,t,r){t.exports=function(e,t,r,n){var a=Math.tan(t.upDegrees*Math.PI/180),i=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),l=Math.tan(t.rightDegrees*Math.PI/180),s=2/(o+l),c=2/(a+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=c,e[6]=0,e[7]=0,e[8]=-(o-l)*s*.5,e[9]=(a-i)*c*.5,e[10]=n/(r-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*r/(r-n),e[15]=0,e}},{}],56:[function(e,t,r){t.exports=function(e,t,r,n){var a,i,o,l,s,c,u,f,d,p,h,m,y,g,v,x,b,_,w,T,M,k,A,L,S=n[0],O=n[1],D=n[2],C=Math.sqrt(S*S+O*O+D*D);return Math.abs(C)<1e-6?null:(S*=C=1/C,O*=C,D*=C,a=Math.sin(r),o=1-(i=Math.cos(r)),l=t[0],s=t[1],c=t[2],u=t[3],f=t[4],d=t[5],p=t[6],h=t[7],m=t[8],y=t[9],g=t[10],v=t[11],x=S*S*o+i,b=O*S*o+D*a,_=D*S*o-O*a,w=S*O*o-D*a,T=O*O*o+i,M=D*O*o+S*a,k=S*D*o+O*a,A=O*D*o-S*a,L=D*D*o+i,e[0]=l*x+f*b+m*_,e[1]=s*x+d*b+y*_,e[2]=c*x+p*b+g*_,e[3]=u*x+h*b+v*_,e[4]=l*w+f*T+m*M,e[5]=s*w+d*T+y*M,e[6]=c*w+p*T+g*M,e[7]=u*w+h*T+v*M,e[8]=l*k+f*A+m*L,e[9]=s*k+d*A+y*L,e[10]=c*k+p*A+g*L,e[11]=u*k+h*A+v*L,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}},{}],57:[function(e,t,r){t.exports=function(e,t,r){var n=Math.sin(r),a=Math.cos(r),i=t[4],o=t[5],l=t[6],s=t[7],c=t[8],u=t[9],f=t[10],d=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=i*a+c*n,e[5]=o*a+u*n,e[6]=l*a+f*n,e[7]=s*a+d*n,e[8]=c*a-i*n,e[9]=u*a-o*n,e[10]=f*a-l*n,e[11]=d*a-s*n,e}},{}],58:[function(e,t,r){t.exports=function(e,t,r){var n=Math.sin(r),a=Math.cos(r),i=t[0],o=t[1],l=t[2],s=t[3],c=t[8],u=t[9],f=t[10],d=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=i*a-c*n,e[1]=o*a-u*n,e[2]=l*a-f*n,e[3]=s*a-d*n,e[8]=i*n+c*a,e[9]=o*n+u*a,e[10]=l*n+f*a,e[11]=s*n+d*a,e}},{}],59:[function(e,t,r){t.exports=function(e,t,r){var n=Math.sin(r),a=Math.cos(r),i=t[0],o=t[1],l=t[2],s=t[3],c=t[4],u=t[5],f=t[6],d=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=i*a+c*n,e[1]=o*a+u*n,e[2]=l*a+f*n,e[3]=s*a+d*n,e[4]=c*a-i*n,e[5]=u*a-o*n,e[6]=f*a-l*n,e[7]=d*a-s*n,e}},{}],60:[function(e,t,r){t.exports=function(e,t,r){var n=r[0],a=r[1],i=r[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*a,e[5]=t[5]*a,e[6]=t[6]*a,e[7]=t[7]*a,e[8]=t[8]*i,e[9]=t[9]*i,e[10]=t[10]*i,e[11]=t[11]*i,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}},{}],61:[function(e,t,r){t.exports=function(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}},{}],62:[function(e,t,r){t.exports=function(e,t,r){var n,a,i,o,l,s,c,u,f,d,p,h,m=r[0],y=r[1],g=r[2];return t===e?(e[12]=t[0]*m+t[4]*y+t[8]*g+t[12],e[13]=t[1]*m+t[5]*y+t[9]*g+t[13],e[14]=t[2]*m+t[6]*y+t[10]*g+t[14],e[15]=t[3]*m+t[7]*y+t[11]*g+t[15]):(n=t[0],a=t[1],i=t[2],o=t[3],l=t[4],s=t[5],c=t[6],u=t[7],f=t[8],d=t[9],p=t[10],h=t[11],e[0]=n,e[1]=a,e[2]=i,e[3]=o,e[4]=l,e[5]=s,e[6]=c,e[7]=u,e[8]=f,e[9]=d,e[10]=p,e[11]=h,e[12]=n*m+l*y+f*g+t[12],e[13]=a*m+s*y+d*g+t[13],e[14]=i*m+c*y+p*g+t[14],e[15]=o*m+u*y+h*g+t[15]),e}},{}],63:[function(e,t,r){t.exports=function(e,t){if(e===t){var r=t[1],n=t[2],a=t[3],i=t[6],o=t[7],l=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=i,e[11]=t[14],e[12]=a,e[13]=o,e[14]=l}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}},{}],64:[function(e,t,n){(function(r){(function(){"use strict";var n,a=e("is-browser");n="function"==typeof r.matchMedia?!r.matchMedia("(hover: none)").matches:a,t.exports=n}).call(this)}).call(this,void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"is-browser":68}],65:[function(e,t,r){"use strict";var n=e("is-browser");t.exports=n&&function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){e=!1}return e}()},{"is-browser":68}],66:[function(e,t,r){r.read=function(e,t,r,n,a){var i,o,l=8*a-n-1,s=(1<>1,u=-7,f=r?a-1:0,d=r?-1:1,p=e[t+f];for(f+=d,i=p&(1<<-u)-1,p>>=-u,u+=l;u>0;i=256*i+e[t+f],f+=d,u-=8);for(o=i&(1<<-u)-1,i>>=-u,u+=n;u>0;o=256*o+e[t+f],f+=d,u-=8);if(0===i)i=1-c;else{if(i===s)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),i-=c}return(p?-1:1)*o*Math.pow(2,i-n)},r.write=function(e,t,r,n,a,i){var o,l,s,c=8*i-a-1,u=(1<>1,d=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,h=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-o))<1&&(o--,s*=2),(t+=o+f>=1?d/s:d*Math.pow(2,1-f))*s>=2&&(o++,s/=2),o+f>=u?(l=0,o=u):o+f>=1?(l=(t*s-1)*Math.pow(2,a),o+=f):(l=t*Math.pow(2,f-1)*Math.pow(2,a),o=0));a>=8;e[r+p]=255&l,p+=h,l/=256,a-=8);for(o=o<0;e[r+p]=255&o,p+=h,o/=256,c-=8);e[r+p-h]|=128*m}},{}],67:[function(e,t,r){"function"==typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},{}],68:[function(e,t,r){t.exports=!0},{}],69:[function(e,t,r){"use strict";t.exports=i,t.exports.isMobile=i,t.exports.default=i;var n=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,a=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i;function i(e){e||(e={});var t=e.ua;if(t||"undefined"==typeof navigator||(t=navigator.userAgent),t&&t.headers&&"string"==typeof t.headers["user-agent"]&&(t=t.headers["user-agent"]),"string"!=typeof t)return!1;var r=e.tablet?a.test(t):n.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&-1!==t.indexOf("Macintosh")&&-1!==t.indexOf("Safari")&&(r=!0),r}},{}],70:[function(e,t,r){"use strict";t.exports=function(e){for(var t,r=e.length,n=0;n13)&&32!==t&&133!==t&&160!==t&&5760!==t&&6158!==t&&(t<8192||t>8205)&&8232!==t&&8233!==t&&8239!==t&&8287!==t&&8288!==t&&12288!==t&&65279!==t)return!1;return!0}},{}],71:[function(e,t,r){var n={left:0,top:0};t.exports=function(e,t,r){t=t||e.currentTarget||e.srcElement,Array.isArray(r)||(r=[0,0]);var a,i=e.clientX||0,o=e.clientY||0,l=(a=t)===window||a===document||a===document.body?n:a.getBoundingClientRect();return r[0]=i-l.left,r[1]=o-l.top,r}},{}],72:[function(e,t,n){(function(e,r){(function(){var n,a,i;i=function(){"use strict";var e,t,n,a=Object.prototype.toString,i=void 0!==r?function(e){return r(e)}:setTimeout;try{Object.defineProperty({},"x",{}),e=function(e,t,r,n){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==n})}}catch(t){e=function(e,t,r){return e[t]=r,e}}function o(e,r){n.add(e,r),t||(t=i(n.drain))}function l(e){var t,r=typeof e;return null==e||"object"!=r&&"function"!=r||(t=e.then),"function"==typeof t&&t}function s(){for(var e=0;e0&&o(s,r))}catch(e){f.call(new p(r),e)}}}function f(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&o(s,t))}function d(e,t,r,n){for(var a=0;a2&&(t.push([r].concat(a.splice(0,2))),o="l",r="m"==r?"l":"L");;){if(a.length==n[o])return a.unshift(r),t.push(a);if(a.length=-e},pointBetween:function(t,r,n){var a=t[1]-r[1],i=n[0]-r[0],o=t[0]-r[0],l=n[1]-r[1],s=o*i+a*l;return!(s-e)},pointsSameX:function(t,r){return Math.abs(t[0]-r[0])e!=o-a>e&&(i-c)*(a-u)/(o-u)+c-n>e&&(l=!l),i=c,o=u}return l}};return t}},{}],78:[function(e,t,r){var n={toPolygon:function(e,t){function r(t){if(t.length<=0)return e.segments({inverted:!1,regions:[]});function r(t){var r=t.slice(0,t.length-1);return e.segments({inverted:!1,regions:[r]})}for(var n=r(t[0]),a=1;a0;var n,a,i,o,l,s}))}function u(e,n){var a=e.seg,i=n.seg,o=a.start,l=a.end,c=i.start,u=i.end;r&&r.checkIntersection(a,i);var f=t.linesIntersect(o,l,c,u);if(!1===f){if(!t.pointsCollinear(o,l,c))return!1;if(t.pointsSame(o,u)||t.pointsSame(l,c))return!1;var d=t.pointsSame(o,c),p=t.pointsSame(l,u);if(d&&p)return n;var h=!d&&t.pointBetween(o,c,u),m=!p&&t.pointBetween(l,c,u);if(d)return m?s(n,l):s(e,u),n;h&&(p||(m?s(n,l):s(e,u)),s(n,o))}else 0===f.alongA&&(-1===f.alongB?s(e,c):0===f.alongB?s(e,f.pt):1===f.alongB&&s(e,u)),0===f.alongB&&(-1===f.alongA?s(n,o):0===f.alongA?s(n,f.pt):1===f.alongA&&s(n,l));return!1}for(var f=[];!i.isEmpty();){var d=i.getHead();if(r&&r.vert(d.pt[0]),d.isStart){r&&r.segmentNew(d.seg,d.primary);var p=c(d),h=p.before?p.before.ev:null,m=p.after?p.after.ev:null;function y(){if(h){var e=u(d,h);if(e)return e}return!!m&&u(d,m)}r&&r.tempStatus(d.seg,!!h&&h.seg,!!m&&m.seg);var g,v,x=y();if(x&&(e?(v=null===d.seg.myFill.below||d.seg.myFill.above!==d.seg.myFill.below)&&(x.seg.myFill.above=!x.seg.myFill.above):x.seg.otherFill=d.seg.myFill,r&&r.segmentUpdate(x.seg),d.other.remove(),d.remove()),i.getHead()!==d){r&&r.rewind(d.seg);continue}e?(v=null===d.seg.myFill.below||d.seg.myFill.above!==d.seg.myFill.below,d.seg.myFill.below=m?m.seg.myFill.above:a,d.seg.myFill.above=v?!d.seg.myFill.below:d.seg.myFill.below):null===d.seg.otherFill&&(g=m?d.primary===m.primary?m.seg.otherFill.above:m.seg.myFill.above:d.primary?o:a,d.seg.otherFill={above:g,below:g}),r&&r.status(d.seg,!!h&&h.seg,!!m&&m.seg),d.other.status=p.insert(n.node({ev:d}))}else{var b=d.status;if(null===b)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(l.exists(b.prev)&&l.exists(b.next)&&u(b.prev.ev,b.next.ev),r&&r.statusRemove(b.ev.seg),b.remove(),!d.primary){var _=d.seg.myFill;d.seg.myFill=d.seg.otherFill,d.seg.otherFill=_}f.push(d.seg)}i.getHead().remove()}return r&&r.done(),f}return e?{addRegion:function(e){for(var n,a=e[e.length-1],i=0;i0&&!this.aborted;){var r=this.ifds_to_read.shift();r.offset&&this.scan_ifd(r.id,r.offset,e)}},i.prototype.read_uint16=function(e){var t=this.input;if(e+2>t.length)throw n("unexpected EOF","EBADDATA");return this.big_endian?256*t[e]+t[e+1]:t[e]+256*t[e+1]},i.prototype.read_uint32=function(e){var t=this.input;if(e+4>t.length)throw n("unexpected EOF","EBADDATA");return this.big_endian?16777216*t[e]+65536*t[e+1]+256*t[e+2]+t[e+3]:t[e]+256*t[e+1]+65536*t[e+2]+16777216*t[e+3]},i.prototype.is_subifd_link=function(e,t){return 0===e&&34665===t||0===e&&34853===t||34665===e&&40965===t},i.prototype.exif_format_length=function(e){switch(e){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}},i.prototype.exif_format_read=function(e,t){var r;switch(e){case 1:case 2:return this.input[t];case 6:return(r=this.input[t])|33554430*(128&r);case 3:return this.read_uint16(t);case 8:return(r=this.read_uint16(t))|131070*(32768&r);case 4:return this.read_uint32(t);case 9:return 0|this.read_uint32(t);default:return null}},i.prototype.scan_ifd=function(e,t,r){var i=this.read_uint16(t);t+=2;for(var o=0;othis.input.length)throw n("unexpected EOF","EBADDATA");for(var h=[],m=d,y=0;y0&&(this.ifds_to_read.push({id:l,offset:h[0]}),p=!0),!1===r({is_big_endian:this.big_endian,ifd:e,tag:l,format:s,count:c,entry_offset:t+this.start,data_length:f,data_offset:d+this.start,value:h,is_subifd_link:p}))return void(this.aborted=!0);t+=12}0===e&&this.ifds_to_read.push({id:1,offset:this.read_uint32(t)})},t.exports.ExifParser=i,t.exports.get_orientation=function(e){var t=0;try{return new i(e,0,e.length).each((function(e){if(0===e.ifd&&274===e.tag&&Array.isArray(e.value))return t=e.value[0],!1})),t}catch(e){return-1}}},{}],85:[function(e,t,r){"use strict";var n=e("./common").readUInt16BE,a=e("./common").readUInt32BE;function i(e,t){if(e.length<4+t)return null;var r=a(e,t);return e.length>4&15,a=15&e[4],i=e[5]>>4&15,o=n(e,6),s=8,c=0;ct.width||e.width===t.width&&e.height>t.height?e:t})),n=t.reduce((function(e,t){return e.height>t.height||e.height===t.height&&e.width>t.width?e:t})),r.width>n.height||r.width===n.height&&r.height>n.width?r:n),l=1;a.transforms.forEach((function(e){var t={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},r={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if("imir"===e.type&&(l=0===e.value?r[l]:t[l=t[l=r[l]]]),"irot"===e.type)for(var n=0;n1&&(d.variants=f.variants),f.orientation&&(d.orientation=f.orientation),f.exif_location&&f.exif_location.offset+f.exif_location.length<=e.length){var p=i(e,f.exif_location.offset),h=e.slice(f.exif_location.offset+p+4,f.exif_location.offset+f.exif_location.length),m=l.get_orientation(h);m>0&&(d.orientation=m)}return d}}}}}}},{"../common":83,"../exif_utils":84,"../miaf_utils":85}],87:[function(e,t,r){"use strict";var n=e("../common").str2arr,a=e("../common").sliceEq,i=e("../common").readUInt16LE,o=n("BM");t.exports=function(e){if(!(e.length<26)&&a(e,0,o))return{width:i(e,18),height:i(e,22),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}},{"../common":83}],88:[function(e,t,r){"use strict";var n=e("../common").str2arr,a=e("../common").sliceEq,i=e("../common").readUInt16LE,o=n("GIF87a"),l=n("GIF89a");t.exports=function(e){if(!(e.length<10)&&(a(e,0,o)||a(e,0,l)))return{width:i(e,6),height:i(e,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}},{"../common":83}],89:[function(e,t,r){"use strict";var n=e("../common").readUInt16LE;t.exports=function(e){var t=n(e,0),r=n(e,2),a=n(e,4);if(0===t&&1===r&&a){for(var i=[],o={width:0,height:0},l=0;lo.width||c>o.height)&&(o=u)}return{width:o.width,height:o.height,variants:i,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}},{"../common":83}],90:[function(e,t,r){"use strict";var n=e("../common").readUInt16BE,a=e("../common").str2arr,i=e("../common").sliceEq,o=e("../exif_utils"),l=a("Exif\0\0");t.exports=function(e){if(!(e.length<2)&&255===e[0]&&216===e[1])for(var t=2;;){if(e.length-t<2)return;if(255!==e[t++])return;for(var r,a,s=e[t++];255===s;)s=e[t++];if(208<=s&&s<=217||1===s)r=0;else{if(!(192<=s&&s<=254))return;if(e.length-t<2)return;r=n(e,t)-2,t+=2}if(217===s||218===s)return;if(225===s&&r>=10&&i(e,t,l)&&(a=o.get_orientation(e.slice(t+6,t+r))),r>=5&&192<=s&&s<=207&&196!==s&&200!==s&&204!==s){if(e.length-t0&&(c.orientation=a),c}t+=r}}},{"../common":83,"../exif_utils":84}],91:[function(e,t,r){"use strict";var n=e("../common").str2arr,a=e("../common").sliceEq,i=e("../common").readUInt32BE,o=n("‰PNG\r\n\n"),l=n("IHDR");t.exports=function(e){if(!(e.length<24)&&a(e,0,o)&&a(e,12,l))return{width:i(e,16),height:i(e,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}},{"../common":83}],92:[function(e,t,r){"use strict";var n=e("../common").str2arr,a=e("../common").sliceEq,i=e("../common").readUInt32BE,o=n("8BPS\0");t.exports=function(e){if(!(e.length<22)&&a(e,0,o))return{width:i(e,18),height:i(e,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}},{"../common":83}],93:[function(e,t,r){"use strict";function n(e){return"number"==typeof e&&isFinite(e)&&e>0}var a=/<[-_.:a-zA-Z0-9][^>]*>/,i=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,o=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,l=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,s=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,c=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function u(e){return c.test(e)?e.match(c)[0]:"px"}t.exports=function(e){if(function(e){var t,r=0,n=e.length;for(239===e[0]&&187===e[1]&&191===e[2]&&(r=3);r>14&16383),type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function d(e,t){return{width:1+(e[t+6]<<16|e[t+5]<<8|e[t+4]),height:1+(e[t+9]<e.length)){for(;t+8=10?r=r||u(e,t+8):"VP8L"===p&&h>=9?r=r||f(e,t+8):"VP8X"===p&&h>=10?r=r||d(e,t+8):"EXIF"===p&&(n=l.get_orientation(e.slice(t+8,t+8+h)),t=1/0),t+=8+h}else t++;if(r)return n>0&&(r.orientation=n),r}}}},{"../common":83,"../exif_utils":84}],96:[function(e,t,r){"use strict";t.exports={avif:e("./parse_sync/avif"),bmp:e("./parse_sync/bmp"),gif:e("./parse_sync/gif"),ico:e("./parse_sync/ico"),jpeg:e("./parse_sync/jpeg"),png:e("./parse_sync/png"),psd:e("./parse_sync/psd"),svg:e("./parse_sync/svg"),tiff:e("./parse_sync/tiff"),webp:e("./parse_sync/webp")}},{"./parse_sync/avif":86,"./parse_sync/bmp":87,"./parse_sync/gif":88,"./parse_sync/ico":89,"./parse_sync/jpeg":90,"./parse_sync/png":91,"./parse_sync/psd":92,"./parse_sync/svg":93,"./parse_sync/tiff":94,"./parse_sync/webp":95}],97:[function(e,t,r){"use strict";var n=e("./lib/parsers_sync");t.exports=function(e){return function(e){for(var t=Object.keys(n),r=0;r1)for(var r=1;r2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}a("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),a("ERR_INVALID_ARG_TYPE",(function(e,t,r){var n,a,o,l;if("string"==typeof t&&(o="not ",t.substr(!l||l<0?0:+l,o.length)===o)?(n="must not be",t=t.replace(/^not /,"")):n="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))a="The ".concat(e," ").concat(n," ").concat(i(t,"type"));else{var s=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(s," ").concat(n," ").concat(i(t,"type"))}return a+". Received type ".concat(typeof r)}),TypeError),a("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),a("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),a("ERR_STREAM_PREMATURE_CLOSE","Premature close"),a("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),a("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),a("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),a("ERR_STREAM_WRITE_AFTER_END","write after end"),a("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),a("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),a("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=n},{}],102:[function(e,t,r){(function(r){(function(){"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};t.exports=c;var a=e("./_stream_readable"),i=e("./_stream_writable");e("inherits")(c,a);for(var o=n(i.prototype),l=0;l0)if("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=function(e){return l.from(e)}(t)),n)o.endEmitted?w(e,new _):L(e,o,t,!0);else if(o.ended)w(e,new x);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!r?(t=o.decoder.write(t),o.objectMode||0!==t.length?L(e,o,t,!1):E(e,o)):L(e,o,t,!1)}else n||(o.reading=!1,E(e,o));return!o.ended&&(o.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=S?e=S:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function D(e){var t=e._readableState;c("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(c("emitReadable",t.flowing),t.emittedReadable=!0,r.nextTick(C,e))}function C(e){var t=e._readableState;c("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,N(e)}function E(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(P,e,t))}function P(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function z(e){c("readable nexttick read 0"),e.read(0)}function I(e,t){c("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),N(e),t.flowing&&!t.reading&&e.read(0)}function N(e){var t=e._readableState;for(c("flow",t.flowing);t.flowing&&null!==e.read(););}function F(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function j(e){var t=e._readableState;c("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(B,t,e))}function B(e,t){if(c("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function H(e,t){for(var r=0,n=e.length;r=t.highWaterMark:t.length>0)||t.ended))return c("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?j(this):D(this),null;if(0===(e=O(e,t))&&t.ended)return 0===t.length&&j(this),null;var n,a=t.needReadable;return c("need readable",a),(0===t.length||t.length-e0?F(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&j(this)),null!==n&&this.emit("data",n),n},k.prototype._read=function(e){w(this,new b("_read()"))},k.prototype.pipe=function(e,t){var n=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=e;break;case 1:a.pipes=[a.pipes,e];break;default:a.pipes.push(e)}a.pipesCount+=1,c("pipe count=%d opts=%j",a.pipesCount,t);var o=t&&!1===t.end||e===r.stdout||e===r.stderr?y:s;function l(t,r){c("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,c("cleanup"),e.removeListener("close",h),e.removeListener("finish",m),e.removeListener("drain",u),e.removeListener("error",p),e.removeListener("unpipe",l),n.removeListener("end",s),n.removeListener("end",y),n.removeListener("data",d),f=!0,!a.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}function s(){c("onend"),e.end()}a.endEmitted?r.nextTick(o):n.once("end",o),e.on("unpipe",l);var u=function(e){return function(){var t=e._readableState;c("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&i(e,"data")&&(t.flowing=!0,N(e))}}(n);e.on("drain",u);var f=!1;function d(t){c("ondata");var r=e.write(t);c("dest.write",r),!1===r&&((1===a.pipesCount&&a.pipes===e||a.pipesCount>1&&-1!==H(a.pipes,e))&&!f&&(c("false write response, pause",a.awaitDrain),a.awaitDrain++),n.pause())}function p(t){c("onerror",t),y(),e.removeListener("error",p),0===i(e,"error")&&w(e,t)}function h(){e.removeListener("finish",m),y()}function m(){c("onfinish"),e.removeListener("close",h),y()}function y(){c("unpipe"),n.unpipe(e)}return n.on("data",d),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",p),e.once("close",h),e.once("finish",m),e.emit("pipe",n),a.flowing||(c("pipe resume"),n.resume()),e},k.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,a=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i0,!1!==a.flowing&&this.resume()):"readable"===e&&(a.endEmitted||a.readableListening||(a.readableListening=a.needReadable=!0,a.flowing=!1,a.emittedReadable=!1,c("on readable",a.length,a.reading),a.length?D(this):a.reading||r.nextTick(z,this))),n},k.prototype.addListener=k.prototype.on,k.prototype.removeListener=function(e,t){var n=o.prototype.removeListener.call(this,e,t);return"readable"===e&&r.nextTick(R,this),n},k.prototype.removeAllListeners=function(e){var t=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||r.nextTick(R,this),t},k.prototype.resume=function(){var e=this._readableState;return e.flowing||(c("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(I,e,t))}(this,e)),e.paused=!1,this},k.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},k.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var a in e.on("end",(function(){if(c("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(a){c("wrapped data"),r.decoder&&(a=r.decoder.write(a)),r.objectMode&&null==a||(r.objectMode||a&&a.length)&&(t.push(a)||(n=!0,e.pause()))})),e)void 0===this[a]&&"function"==typeof e[a]&&(this[a]=function(t){return function(){return e[t].apply(e,arguments)}}(a));for(var i=0;i-1))throw new _(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),k.prototype._write=function(e,t,r){r(new m("_write()"))},k.prototype._writev=null,k.prototype.end=function(e,t,n){var a=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),a.corked&&(a.corked=1,this.uncork()),a.ending||function(e,t,n){t.ending=!0,E(e,t),n&&(t.finished?r.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,a,n),this},Object.defineProperty(k.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),k.prototype.destroy=f.destroy,k.prototype._undestroy=f.undestroy,k.prototype._destroy=function(e,t){t(e)}}).call(this)}).call(this,e("_process"),void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":101,"./_stream_duplex":102,"./internal/streams/destroy":109,"./internal/streams/state":113,"./internal/streams/stream":114,_process:98,buffer:28,inherits:67,"util-deprecate":122}],107:[function(e,t,r){(function(r){(function(){"use strict";var n;function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=e("./end-of-stream"),o=Symbol("lastResolve"),l=Symbol("lastReject"),s=Symbol("error"),c=Symbol("ended"),u=Symbol("lastPromise"),f=Symbol("handlePromise"),d=Symbol("stream");function p(e,t){return{value:e,done:t}}function h(e){var t=e[o];if(null!==t){var r=e[d].read();null!==r&&(e[u]=null,e[o]=null,e[l]=null,t(p(r,!1)))}}function m(e){r.nextTick(h,e)}var y=Object.getPrototypeOf((function(){})),g=Object.setPrototypeOf((a(n={get stream(){return this[d]},next:function(){var e=this,t=this[s];if(null!==t)return Promise.reject(t);if(this[c])return Promise.resolve(p(void 0,!0));if(this[d].destroyed)return new Promise((function(t,n){r.nextTick((function(){e[s]?n(e[s]):t(p(void 0,!0))}))}));var n,a=this[u];if(a)n=new Promise(function(e,t){return function(r,n){e.then((function(){t[c]?r(p(void 0,!0)):t[f](r,n)}),n)}}(a,this));else{var i=this[d].read();if(null!==i)return Promise.resolve(p(i,!1));n=new Promise(this[f])}return this[u]=n,n}},Symbol.asyncIterator,(function(){return this})),a(n,"return",(function(){var e=this;return new Promise((function(t,r){e[d].destroy(null,(function(e){e?r(e):t(p(void 0,!0))}))}))})),n),y);t.exports=function(e){var t,r=Object.create(g,(a(t={},d,{value:e,writable:!0}),a(t,o,{value:null,writable:!0}),a(t,l,{value:null,writable:!0}),a(t,s,{value:null,writable:!0}),a(t,c,{value:e._readableState.endEmitted,writable:!0}),a(t,f,{value:function(e,t){var n=r[d].read();n?(r[u]=null,r[o]=null,r[l]=null,e(p(n,!1))):(r[o]=e,r[l]=t)},writable:!0}),t));return r[u]=null,i(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[l];return null!==t&&(r[u]=null,r[o]=null,r[l]=null,t(e)),void(r[s]=e)}var n=r[o];null!==n&&(r[u]=null,r[o]=null,r[l]=null,n(p(void 0,!0))),r[c]=!0})),e.on("readable",m.bind(null,r)),r}}).call(this)}).call(this,e("_process"))},{"./end-of-stream":110,_process:98}],108:[function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){for(var r=0;r0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return o.alloc(0);for(var t=o.allocUnsafe(e>>>0),r=this.head,n=0;r;)a=r.data,i=t,l=n,o.prototype.copy.call(a,i,l),n+=r.data.length,r=r.next;var a,i,l;return t}},{key:"consume",value:function(e,t){var r;return ea.length?a.length:e;if(i===a.length?n+=a:n+=a.slice(0,e),0==(e-=i)){i===a.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=a.slice(i));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=o.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var a=r.data,i=e>a.length?a.length:e;if(a.copy(t,t.length-e,0,i),0==(e-=i)){i===a.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=a.slice(i));break}++n}return this.length-=n,t}},{key:s,value:function(e,t){return l(this,function(e){for(var t=1;t0,(function(e){u||(u=e),e&&d.forEach(s),i||(d.forEach(s),f(u))}))}));return r.reduce(c)}},{"../../../errors":101,"./end-of-stream":110}],113:[function(e,t,r){"use strict";var n=e("../../../errors").codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(e,t,r,a){var i=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,a,r);if(null!=i){if(!isFinite(i)||Math.floor(i)!==i||i<0)throw new n(a?r:"highWaterMark",i);return Math.floor(i)}return e.objectMode?16:16384}}},{"../../../errors":101}],114:[function(e,t,r){t.exports=e("events").EventEmitter},{events:27}],115:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer,a=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===a||!a(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=s,this.end=c,t=4;break;case"utf8":this.fillLast=l,t=4;break;case"base64":this.text=u,this.end=f,t=3;break;default:return this.write=d,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function l(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function s(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function u(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}r.StringDecoder=i,i.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0?(a>0&&(e.lastNeed=a-1),a):--n=0?(a>0&&(e.lastNeed=a-2),a):--n=0?(a>0&&(2===a?a=0:e.lastNeed=a-3),a):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},i.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{"safe-buffer":99}],116:[function(e,t,r){(function(r,n){(function(){var r=e("assert"),a=e("debug")("stream-parser");t.exports=function(e){var t=e&&"function"==typeof e._transform,r=e&&"function"==typeof e._write;if(!t&&!r)throw new Error("must pass a Writable or Transform stream in");a("extending Parser into stream"),e._bytes=u,e._skipBytes=f,t&&(e._passthrough=d),t?e._transform=h:e._write=p};var i=-1,o=0,l=1,s=2;function c(e){a("initializing parser stream"),e._parserBytesLeft=0,e._parserBuffers=[],e._parserBuffered=0,e._parserState=i,e._parserCallback=null,"function"==typeof e.push&&(e._parserOutput=e.push.bind(e)),e._parserInit=!0}function u(e,t){r(!this._parserCallback,'there is already a "callback" set!'),r(isFinite(e)&&e>0,'can only buffer a finite number of bytes > 0, got "'+e+'"'),this._parserInit||c(this),a("buffering %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=o}function f(e,t){r(!this._parserCallback,'there is already a "callback" set!'),r(e>0,'can only skip > 0 bytes, got "'+e+'"'),this._parserInit||c(this),a("skipping %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=l}function d(e,t){r(!this._parserCallback,'There is already a "callback" set!'),r(e>0,'can only pass through > 0 bytes, got "'+e+'"'),this._parserInit||c(this),a("passing through %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=s}function p(e,t,r){this._parserInit||c(this),a("write(%o bytes)",e.length),"function"==typeof t&&(r=t),y(this,e,null,r)}function h(e,t,r){this._parserInit||c(this),a("transform(%o bytes)",e.length),"function"!=typeof t&&(t=this._parserOutput),y(this,e,t,r)}function m(e,t,r,l){if(e._parserBytesLeft-=t.length,a("%o bytes left for stream piece",e._parserBytesLeft),e._parserState===o?(e._parserBuffers.push(t),e._parserBuffered+=t.length):e._parserState===s&&r(t),0!==e._parserBytesLeft)return l;var c=e._parserCallback;if(c&&e._parserState===o&&e._parserBuffers.length>1&&(t=n.concat(e._parserBuffers,e._parserBuffered)),e._parserState!==o&&(t=null),e._parserCallback=null,e._parserBuffered=0,e._parserState=i,e._parserBuffers.splice(0),c){var u=[];t&&u.push(t),r&&u.push(r);var f=c.length>u.length;f&&u.push(g(l));var d=c.apply(e,u);if(!f||l===d)return l}}var y=g((function e(t,r,n,a){return t._parserBytesLeft<=0?a(new Error("got data but not currently parsing anything")):r.length<=t._parserBytesLeft?function(){return m(t,r,n,a)}:function(){var i=r.slice(0,t._parserBytesLeft);return m(t,i,n,(function(o){return o?a(o):r.length>i.length?function(){return e(t,r.slice(i.length),n,a)}:void 0}))}}));function g(e){return function(){for(var t=e.apply(this,arguments);"function"==typeof t;)t=t();return t}}}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{_process:98,assert:21,buffer:28,debug:117}],117:[function(e,t,r){(function(n){(function(){function a(){var e;try{e=r.storage.debug}catch(e){}return!e&&void 0!==n&&"env"in n&&(e=n.env.DEBUG),e}(r=t.exports=e("./debug")).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},r.formatArgs=function(e){var t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+r.humanize(this.diff),t){var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var a=0,i=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(a++,"%c"===e&&(i=a))})),e.splice(i,0,n)}},r.save=function(e){try{null==e?r.storage.removeItem("debug"):r.storage.debug=e}catch(e){}},r.load=a,r.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},r.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),r.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],r.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},r.enable(a())}).call(this)}).call(this,e("_process"))},{"./debug":118,_process:98}],118:[function(e,t,r){var n;function a(e){function t(){if(t.enabled){var e=t,a=+new Date,i=a-(n||a);e.diff=i,e.prev=n,e.curr=a,n=a;for(var o=new Array(arguments.length),l=0;l0)return function(e){if(!((e=String(e)).length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*r;case"days":case"day":case"d":return r*o;case"hours":case"hour":case"hrs":case"hr":case"h":return r*i;case"minutes":case"minute":case"mins":case"min":case"m":return r*a;case"seconds":case"second":case"secs":case"sec":case"s":return r*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}(e);if("number"===s&&!1===isNaN(e))return t.long?l(r=e,o,"day")||l(r,i,"hour")||l(r,a,"minute")||l(r,n,"second")||r+" ms":function(e){return e>=o?Math.round(e/o)+"d":e>=i?Math.round(e/i)+"h":e>=a?Math.round(e/a)+"m":e>=n?Math.round(e/n)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},{}],120:[function(e,t,r){(function(t,n){(function(){var a=e("process/browser.js").nextTick,i=Function.prototype.apply,o=Array.prototype.slice,l={},s=0;function c(e,t){this._id=e,this._clearFn=t}r.setTimeout=function(){return new c(i.call(setTimeout,window,arguments),clearTimeout)},r.setInterval=function(){return new c(i.call(setInterval,window,arguments),clearInterval)},r.clearTimeout=r.clearInterval=function(e){e.close()},c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(window,this._id)},r.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},r.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},r._unrefActive=r.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},r.setImmediate="function"==typeof t?t:function(e){var t=s++,n=!(arguments.length<2)&&o.call(arguments,1);return l[t]=!0,a((function(){l[t]&&(n?e.apply(null,n):e.call(null),r.clearImmediate(t))})),t},r.clearImmediate="function"==typeof n?n:function(e){delete l[e]}}).call(this)}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":98,timers:120}],121:[function(e,t,r){!function(e){var r=/^\s+/,n=/\s+$/,a=0,i=e.round,o=e.min,l=e.max,s=e.random;function c(t,s){if(s=s||{},(t=t||"")instanceof c)return t;if(!(this instanceof c))return new c(t,s);var u=function(t){var a={r:0,g:0,b:0},i=1,s=null,c=null,u=null,f=!1,d=!1;return"string"==typeof t&&(t=function(e){e=e.replace(r,"").replace(n,"").toLowerCase();var t,a=!1;if(L[e])e=L[e],a=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=B.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=B.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=B.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=B.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=B.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=B.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=B.hex8.exec(e))?{r:E(t[1]),g:E(t[2]),b:E(t[3]),a:I(t[4]),format:a?"name":"hex8"}:(t=B.hex6.exec(e))?{r:E(t[1]),g:E(t[2]),b:E(t[3]),format:a?"name":"hex"}:(t=B.hex4.exec(e))?{r:E(t[1]+""+t[1]),g:E(t[2]+""+t[2]),b:E(t[3]+""+t[3]),a:I(t[4]+""+t[4]),format:a?"name":"hex8"}:!!(t=B.hex3.exec(e))&&{r:E(t[1]+""+t[1]),g:E(t[2]+""+t[2]),b:E(t[3]+""+t[3]),format:a?"name":"hex"}}(t)),"object"==typeof t&&(H(t.r)&&H(t.g)&&H(t.b)?(p=t.r,h=t.g,m=t.b,a={r:255*D(p,255),g:255*D(h,255),b:255*D(m,255)},f=!0,d="%"===String(t.r).substr(-1)?"prgb":"rgb"):H(t.h)&&H(t.s)&&H(t.v)?(s=R(t.s),c=R(t.v),a=function(t,r,n){t=6*D(t,360),r=D(r,100),n=D(n,100);var a=e.floor(t),i=t-a,o=n*(1-r),l=n*(1-i*r),s=n*(1-(1-i)*r),c=a%6;return{r:255*[n,l,o,o,s,n][c],g:255*[s,n,n,l,o,o][c],b:255*[o,o,s,n,n,l][c]}}(t.h,s,c),f=!0,d="hsv"):H(t.h)&&H(t.s)&&H(t.l)&&(s=R(t.s),u=R(t.l),a=function(e,t,r){var n,a,i;function o(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(e=D(e,360),t=D(t,100),r=D(r,100),0===t)n=a=i=r;else{var l=r<.5?r*(1+t):r+t-r*t,s=2*r-l;n=o(s,l,e+1/3),a=o(s,l,e),i=o(s,l,e-1/3)}return{r:255*n,g:255*a,b:255*i}}(t.h,s,u),f=!0,d="hsl"),t.hasOwnProperty("a")&&(i=t.a)),i=O(i),{ok:f,format:t.format||d,r:o(255,l(a.r,0)),g:o(255,l(a.g,0)),b:o(255,l(a.b,0)),a:i};var p,h,m}(t);this._originalInput=t,this._r=u.r,this._g=u.g,this._b=u.b,this._a=u.a,this._roundA=i(100*this._a)/100,this._format=s.format||u.format,this._gradientType=s.gradientType,this._r<1&&(this._r=i(this._r)),this._g<1&&(this._g=i(this._g)),this._b<1&&(this._b=i(this._b)),this._ok=u.ok,this._tc_id=a++}function u(e,t,r){e=D(e,255),t=D(t,255),r=D(r,255);var n,a,i=l(e,t,r),s=o(e,t,r),c=(i+s)/2;if(i==s)n=a=0;else{var u=i-s;switch(a=c>.5?u/(2-i-s):u/(i+s),i){case e:n=(t-r)/u+(t>1)+720)%360;--t;)n.h=(n.h+a)%360,i.push(c(n));return i}function A(e,t){t=t||6;for(var r=c(e).toHsv(),n=r.h,a=r.s,i=r.v,o=[],l=1/t;t--;)o.push(c({h:n,s:a,v:i})),i=(i+l)%1;return o}c.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var t,r,n,a=this.toRgb();return t=a.r/255,r=a.g/255,n=a.b/255,.2126*(t<=.03928?t/12.92:e.pow((t+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:e.pow((r+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:e.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=O(e),this._roundA=i(100*this._a)/100,this},toHsv:function(){var e=f(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=f(this._r,this._g,this._b),t=i(360*e.h),r=i(100*e.s),n=i(100*e.v);return 1==this._a?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=u(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=u(this._r,this._g,this._b),t=i(360*e.h),r=i(100*e.s),n=i(100*e.l);return 1==this._a?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return d(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,r,n,a){var o=[P(i(e).toString(16)),P(i(t).toString(16)),P(i(r).toString(16)),P(z(n))];return a&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:i(this._r),g:i(this._g),b:i(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+i(this._r)+", "+i(this._g)+", "+i(this._b)+")":"rgba("+i(this._r)+", "+i(this._g)+", "+i(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:i(100*D(this._r,255))+"%",g:i(100*D(this._g,255))+"%",b:i(100*D(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+i(100*D(this._r,255))+"%, "+i(100*D(this._g,255))+"%, "+i(100*D(this._b,255))+"%)":"rgba("+i(100*D(this._r,255))+"%, "+i(100*D(this._g,255))+"%, "+i(100*D(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(S[d(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+p(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var a=c(e);r="#"+p(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,n=this._a<1&&this._a>=0;return t||!n||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return c(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(g,arguments)},brighten:function(){return this._applyModification(v,arguments)},darken:function(){return this._applyModification(x,arguments)},desaturate:function(){return this._applyModification(h,arguments)},saturate:function(){return this._applyModification(m,arguments)},greyscale:function(){return this._applyModification(y,arguments)},spin:function(){return this._applyModification(b,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(k,arguments)},complement:function(){return this._applyCombination(_,arguments)},monochromatic:function(){return this._applyCombination(A,arguments)},splitcomplement:function(){return this._applyCombination(M,arguments)},triad:function(){return this._applyCombination(w,arguments)},tetrad:function(){return this._applyCombination(T,arguments)}},c.fromRatio=function(e,t){if("object"==typeof e){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]="a"===n?e[n]:R(e[n]));e=r}return c(e,t)},c.equals=function(e,t){return!(!e||!t)&&c(e).toRgbString()==c(t).toRgbString()},c.random=function(){return c.fromRatio({r:s(),g:s(),b:s()})},c.mix=function(e,t,r){r=0===r?0:r||50;var n=c(e).toRgb(),a=c(t).toRgb(),i=r/100;return c({r:(a.r-n.r)*i+n.r,g:(a.g-n.g)*i+n.g,b:(a.b-n.b)*i+n.b,a:(a.a-n.a)*i+n.a})},c.readability=function(t,r){var n=c(t),a=c(r);return(e.max(n.getLuminance(),a.getLuminance())+.05)/(e.min(n.getLuminance(),a.getLuminance())+.05)},c.isReadable=function(e,t,r){var n,a,i,o,l,s=c.readability(e,t);switch(a=!1,(i=r,"AA"!==(o=((i=i||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==o&&(o="AA"),"small"!==(l=(i.size||"small").toLowerCase())&&"large"!==l&&(l="small"),n={level:o,size:l}).level+n.size){case"AAsmall":case"AAAlarge":a=s>=4.5;break;case"AAlarge":a=s>=3;break;case"AAAsmall":a=s>=7}return a},c.mostReadable=function(e,t,r){var n,a,i,o,l=null,s=0;a=(r=r||{}).includeFallbackColors,i=r.level,o=r.size;for(var u=0;us&&(s=n,l=c(t[u]));return c.isReadable(e,l,{level:i,size:o})||!a?l:(r.includeFallbackColors=!1,c.mostReadable(e,["#fff","#000"],r))};var L=c.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},S=c.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(L);function O(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function D(t,r){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(t)&&(t="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(t);return t=o(r,l(0,parseFloat(t))),n&&(t=parseInt(t*r,10)/100),e.abs(t-r)<1e-6?1:t%r/parseFloat(r)}function C(e){return o(1,l(0,e))}function E(e){return parseInt(e,16)}function P(e){return 1==e.length?"0"+e:""+e}function R(e){return e<=1&&(e=100*e+"%"),e}function z(t){return e.round(255*parseFloat(t)).toString(16)}function I(e){return E(e)/255}var N,F,j,B=(F="[\\s|\\(]+("+(N="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+N+")[,|\\s]+("+N+")\\s*\\)?",j="[\\s|\\(]+("+N+")[,|\\s]+("+N+")[,|\\s]+("+N+")[,|\\s]+("+N+")\\s*\\)?",{CSS_UNIT:new RegExp(N),rgb:new RegExp("rgb"+F),rgba:new RegExp("rgba"+j),hsl:new RegExp("hsl"+F),hsla:new RegExp("hsla"+j),hsv:new RegExp("hsv"+F),hsva:new RegExp("hsva"+j),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function H(e){return!!B.CSS_UNIT.exec(e)}void 0!==t&&t.exports?t.exports=c:window.tinycolor=c}(Math)},{}],122:[function(e,t,n){(function(e){(function(){function r(t){try{if(!e.localStorage)return!1}catch(e){return!1}var r=e.localStorage[t];return null!=r&&"true"===String(r).toLowerCase()}t.exports=function(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}}).call(this)}).call(this,void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],123:[function(e,t,r){var n=e("../main"),a=e("object-assign"),i=n.instance();function o(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}o.prototype=new n.baseCalendar,a(o.prototype,{name:"Chinese",jdEpoch:1721425.5,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,t){if("string"==typeof e){var r=e.match(s);return r?r[0]:""}var n=this._validateYear(e),a=e.month(),i=""+this.toChineseMonth(n,a);return t&&i.length<2&&(i="0"+i),this.isIntercalaryMonth(n,a)&&(i+="i"),i},monthNames:function(e){if("string"==typeof e){var t=e.match(c);return t?t[0]:""}var r=this._validateYear(e),n=e.month(),a=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][this.toChineseMonth(r,n)-1];return this.isIntercalaryMonth(r,n)&&(a="闰"+a),a},monthNamesShort:function(e){if("string"==typeof e){var t=e.match(u);return t?t[0]:""}var r=this._validateYear(e),n=e.month(),a=["一","二","三","四","五","六","七","八","九","十","十一","十二"][this.toChineseMonth(r,n)-1];return this.isIntercalaryMonth(r,n)&&(a="闰"+a),a},parseMonth:function(e,t){e=this._validateYear(e);var r,n=parseInt(t);if(isNaN(n))"闰"===t[0]&&(r=!0,t=t.substring(1)),"月"===t[t.length-1]&&(t=t.substring(0,t.length-1)),n=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(t);else{var a=t[t.length-1];r="i"===a||"I"===a}return this.toMonthIndex(e,n,r)},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,t){if(e.year&&(e=e.year()),"number"!=typeof e||e<1888||e>2111)throw t.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,t,r){var a=this.intercalaryMonth(e);if(r&&t!==a||t<1||t>12)throw n.local.invalidMonth.replace(/\{0\}/,this.local.name);return a?!r&&t<=a?t-1:t:t-1},toChineseMonth:function(e,t){e.year&&(t=(e=e.year()).month());var r=this.intercalaryMonth(e);if(t<0||t>(r?12:11))throw n.local.invalidMonth.replace(/\{0\}/,this.local.name);return r?t>13},isIntercalaryMonth:function(e,t){e.year&&(t=(e=e.year()).month());var r=this.intercalaryMonth(e);return!!r&&r===t},leapYear:function(e){return 0!==this.intercalaryMonth(e)},weekOfYear:function(e,t,r){var a,o=this._validateYear(e,n.local.invalidyear),l=d[o-d[0]],s=l>>9&4095,c=l>>5&15,u=31&l;(a=i.newDate(s,c,u)).add(4-(a.dayOfWeek()||7),"d");var f=this.toJD(e,t,r)-a.toJD();return 1+Math.floor(f/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,t){e.year&&(t=e.month(),e=e.year()),e=this._validateYear(e);var r=f[e-f[0]];if(t>(r>>13?12:11))throw n.local.invalidMonth.replace(/\{0\}/,this.local.name);return r&1<<12-t?30:29},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var a=this._validate(e,l,r,n.local.invalidDate);e=this._validateYear(a.year()),t=a.month(),r=a.day();var o=this.isIntercalaryMonth(e,t),l=this.toChineseMonth(e,t),s=function(e,t,r,n,a){var i,o,l;if("object"==typeof e)o=e,i=t||{};else{var s;if(!("number"==typeof e&&e>=1888&&e<=2111))throw new Error("Lunar year outside range 1888-2111");if(!("number"==typeof t&&t>=1&&t<=12))throw new Error("Lunar month outside range 1 - 12");if(!("number"==typeof r&&r>=1&&r<=30))throw new Error("Lunar day outside range 1 - 30");"object"==typeof n?(s=!1,i=n):(s=!!n,i=a||{}),o={year:e,month:t,day:r,isIntercalary:s}}l=o.day-1;var c,u=f[o.year-f[0]],p=u>>13;c=p&&(o.month>p||o.isIntercalary)?o.month:o.month-1;for(var h=0;h>9&4095,(m>>5&15)-1,(31&m)+l);return i.year=y.getFullYear(),i.month=1+y.getMonth(),i.day=y.getDate(),i}(e,l,r,o);return i.toJD(s.year,s.month,s.day)},fromJD:function(e){var t=i.fromJD(e),r=function(e,t,r,n){var a,i;if("object"==typeof e)a=e,i=t||{};else{if(!("number"==typeof e&&e>=1888&&e<=2111))throw new Error("Solar year outside range 1888-2111");if(!("number"==typeof t&&t>=1&&t<=12))throw new Error("Solar month outside range 1 - 12");if(!("number"==typeof r&&r>=1&&r<=31))throw new Error("Solar day outside range 1 - 31");a={year:e,month:t,day:r},i=n||{}}var o=d[a.year-d[0]],l=a.year<<9|a.month<<5|a.day;i.year=l>=o?a.year:a.year-1,o=d[i.year-d[0]];var s,c=new Date(o>>9&4095,(o>>5&15)-1,31&o),u=new Date(a.year,a.month-1,a.day);s=Math.round((u-c)/864e5);var p,h=f[i.year-f[0]];for(p=0;p<13;p++){var m=h&1<<12-p?30:29;if(s>13;return!y||p=2&&n<=6},extraInfo:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate);return{century:o[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate);return e=a.year()+(a.year()<0?1:0),t=a.month(),(r=a.day())+(t>1?16:0)+(t>2?32*(t-2):0)+400*(e-1)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var t=Math.floor(e/400)+1;e-=400*(t-1),e+=e>15?16:0;var r=Math.floor(e/32)+1,n=e-32*(r-1)+1;return this.newDate(t<=0?t-1:t,r,n)}});var o={20:"Fruitbat",21:"Anchovy"};n.calendars.discworld=i},{"../main":137,"object-assign":73}],126:[function(e,t,r){var n=e("../main"),a=e("object-assign");function i(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}i.prototype=new n.baseCalendar,a(i.prototype,{name:"Ethiopian",jdEpoch:1724220.5,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear);return(e=t.year()+(t.year()<0?1:0))%4==3||e%4==-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,n.local.invalidYear||n.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(13===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate);return(e=a.year())<0&&e++,a.day()+30*(a.month()-1)+365*(e-1)+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(t/30)+1,a=t-30*(n-1)+1;return this.newDate(r,n,a)}}),n.calendars.ethiopian=i},{"../main":137,"object-assign":73}],127:[function(e,t,r){var n=e("../main"),a=e("object-assign");function i(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function o(e,t){return e-t*Math.floor(e/t)}i.prototype=new n.baseCalendar,a(i.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear);return this._leapYear(t.year())},_leapYear:function(e){return o(7*(e=e<0?e+1:e)+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,n.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){return e=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear).year(),this.toJD(-1===e?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,n.local.invalidMonth),12===t&&this.leapYear(e)||8===t&&5===o(this.daysInYear(e),10)?30:9===t&&3===o(this.daysInYear(e),10)?29:this.daysPerMonth[t-1]},weekDay:function(e,t,r){return 6!==this.dayOfWeek(e,t,r)},extraInfo:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate);e=a.year(),t=a.month(),r=a.day();var i=e<=0?e+1:e,o=this.jdEpoch+this._delay1(i)+this._delay2(i)+r+1;if(t<7){for(var l=7;l<=this.monthsInYear(e);l++)o+=this.daysInMonth(e,l);for(l=1;l=this.toJD(-1===t?1:t+1,7,1);)t++;for(var r=ethis.toJD(t,r,this.daysInMonth(t,r));)r++;var n=e-this.toJD(t,r,1)+1;return this.newDate(t,r,n)}}),n.calendars.hebrew=i},{"../main":137,"object-assign":73}],128:[function(e,t,r){var n=e("../main"),a=e("object-assign");function i(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}i.prototype=new n.baseCalendar,a(i.prototype,{name:"Islamic",jdEpoch:1948439.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){return(11*this._validate(e,this.minMonth,this.minDay,n.local.invalidYear).year()+14)%30<11},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return 5!==this.dayOfWeek(e,t,r)},toJD:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate);return e=a.year(),t=a.month(),e=e<=0?e+1:e,(r=a.day())+Math.ceil(29.5*(t-1))+354*(e-1)+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=Math.floor((30*(e-this.jdEpoch)+10646)/10631);t=t<=0?t-1:t;var r=Math.min(12,Math.ceil((e-29-this.toJD(t,1,1))/29.5)+1),n=e-this.toJD(t,r,1)+1;return this.newDate(t,r,n)}}),n.calendars.islamic=i},{"../main":137,"object-assign":73}],129:[function(e,t,r){var n=e("../main"),a=e("object-assign");function i(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}i.prototype=new n.baseCalendar,a(i.prototype,{name:"Julian",jdEpoch:1721423.5,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear);return(e=t.year()<0?t.year()+1:t.year())%4==0},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(4-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate);return e=a.year(),t=a.month(),r=a.day(),e<0&&e++,t<=2&&(e--,t+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(t+1))+r-1524.5},fromJD:function(e){var t=Math.floor(e+.5)+1524,r=Math.floor((t-122.1)/365.25),n=Math.floor(365.25*r),a=Math.floor((t-n)/30.6001),i=a-Math.floor(a<14?1:13),o=r-Math.floor(i>2?4716:4715),l=t-n-Math.floor(30.6001*a);return o<=0&&o--,this.newDate(o,i,l)}}),n.calendars.julian=i},{"../main":137,"object-assign":73}],130:[function(e,t,r){var n=e("../main"),a=e("object-assign");function i(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function o(e,t){return e-t*Math.floor(e/t)}function l(e,t){return o(e-1,t)+1}i.prototype=new n.baseCalendar,a(i.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,n.local.invalidYear),!1},formatYear:function(e){e=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear).year();var t=Math.floor(e/400);return e%=400,e+=e<0?400:0,t+"."+Math.floor(e/20)+"."+e%20},forYear:function(e){if((e=e.split(".")).length<3)throw"Invalid Mayan year";for(var t=0,r=0;r19||r>0&&n<0)throw"Invalid Mayan year";t=20*t+n}return t},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,n.local.invalidYear),18},weekOfYear:function(e,t,r){return this._validate(e,t,r,n.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,n.local.invalidYear),360},daysInMonth:function(e,t){return this._validate(e,t,this.minDay,n.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,t,r){return this._validate(e,t,r,n.local.invalidDate).day()},weekDay:function(e,t,r){return this._validate(e,t,r,n.local.invalidDate),!0},extraInfo:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate).toJD(),i=this._toHaab(a),o=this._toTzolkin(a);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){var t=o(8+(e-=this.jdEpoch)+340,365);return[Math.floor(t/20)+1,o(t,20)]},_toTzolkin:function(e){return[l(20+(e-=this.jdEpoch),20),l(e+4,13)]},toJD:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate);return a.day()+20*a.month()+360*a.year()+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var t=Math.floor(e/360);e%=360,e+=e<0?360:0;var r=Math.floor(e/20),n=e%20;return this.newDate(t,r,n)}}),n.calendars.mayan=i},{"../main":137,"object-assign":73}],131:[function(e,t,r){var n=e("../main"),a=e("object-assign");function i(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}i.prototype=new n.baseCalendar;var o=n.instance("gregorian");a(i.prototype,{name:"Nanakshahi",jdEpoch:2257673.5,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear||n.regionalOptions[""].invalidYear);return o.leapYear(t.year()+(t.year()<1?1:0)+1469)},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(1-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidMonth);(e=a.year())<0&&e++;for(var i=a.day(),l=1;l=this.toJD(t+1,1,1);)t++;for(var r=e-Math.floor(this.toJD(t,1,1)+.5)+1,n=1;r>this.daysInMonth(t,n);)r-=this.daysInMonth(t,n),n++;return this.newDate(t,n,r)}}),n.calendars.nanakshahi=i},{"../main":137,"object-assign":73}],132:[function(e,t,r){var n=e("../main"),a=e("object-assign");function i(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}i.prototype=new n.baseCalendar,a(i.prototype,{name:"Nepali",jdEpoch:1700709.5,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){if(e=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear).year(),void 0===this.NEPALI_CALENDAR_DATA[e])return this.daysPerYear;for(var t=0,r=this.minMonth;r<=12;r++)t+=this.NEPALI_CALENDAR_DATA[e][r];return t},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,n.local.invalidMonth),void 0===this.NEPALI_CALENDAR_DATA[e]?this.daysPerMonth[t-1]:this.NEPALI_CALENDAR_DATA[e][t]},weekDay:function(e,t,r){return 6!==this.dayOfWeek(e,t,r)},toJD:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate);e=a.year(),t=a.month(),r=a.day();var i=n.instance(),o=0,l=t,s=e;this._createMissingCalendarData(e);var c=e-(l>9||9===l&&r>=this.NEPALI_CALENDAR_DATA[s][0]?56:57);for(9!==t&&(o=r,l--);9!==l;)l<=0&&(l=12,s--),o+=this.NEPALI_CALENDAR_DATA[s][l],l--;return 9===t?(o+=r-this.NEPALI_CALENDAR_DATA[s][0])<0&&(o+=i.daysInYear(c)):o+=this.NEPALI_CALENDAR_DATA[s][9]-this.NEPALI_CALENDAR_DATA[s][0],i.newDate(c,1,1).add(o,"d").toJD()},fromJD:function(e){var t=n.instance().fromJD(e),r=t.year(),a=t.dayOfYear(),i=r+56;this._createMissingCalendarData(i);for(var o=9,l=this.NEPALI_CALENDAR_DATA[i][0],s=this.NEPALI_CALENDAR_DATA[i][o]-l+1;a>s;)++o>12&&(o=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][o];var c=this.NEPALI_CALENDAR_DATA[i][o]-(s-a);return this.newDate(i,o,c)},_createMissingCalendarData:function(e){var t=this.daysPerMonth.slice(0);t.unshift(17);for(var r=e-1;r0?474:473))%2820+474+38)%2816<682},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-(n.dayOfWeek()+1)%7,"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return 5!==this.dayOfWeek(e,t,r)},toJD:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate);e=a.year(),t=a.month(),r=a.day();var i=e-(e>=0?474:473),l=474+o(i,2820);return r+(t<=7?31*(t-1):30*(t-1)+6)+Math.floor((682*l-110)/2816)+365*(l-1)+1029983*Math.floor(i/2820)+this.jdEpoch-1},fromJD:function(e){var t=(e=Math.floor(e)+.5)-this.toJD(475,1,1),r=Math.floor(t/1029983),n=o(t,1029983),a=2820;if(1029982!==n){var i=Math.floor(n/366),l=o(n,366);a=Math.floor((2134*i+2816*l+2815)/1028522)+i+1}var s=a+2820*r+474;s=s<=0?s-1:s;var c=e-this.toJD(s,1,1)+1,u=c<=186?Math.ceil(c/31):Math.ceil((c-6)/30),f=e-this.toJD(s,u,1)+1;return this.newDate(s,u,f)}}),n.calendars.persian=i,n.calendars.jalali=i},{"../main":137,"object-assign":73}],134:[function(e,t,r){var n=e("../main"),a=e("object-assign"),i=n.instance();function o(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}o.prototype=new n.baseCalendar,a(o.prototype,{name:"Taiwan",jdEpoch:2419402.5,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear);return e=this._t2gYear(t.year()),i.leapYear(e)},weekOfYear:function(e,t,r){var a=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear);return e=this._t2gYear(a.year()),i.weekOfYear(e,a.month(),a.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate);return e=this._t2gYear(a.year()),i.toJD(e,a.month(),a.day())},fromJD:function(e){var t=i.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}}),n.calendars.taiwan=o},{"../main":137,"object-assign":73}],135:[function(e,t,r){var n=e("../main"),a=e("object-assign"),i=n.instance();function o(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}o.prototype=new n.baseCalendar,a(o.prototype,{name:"Thai",jdEpoch:1523098.5,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear);return e=this._t2gYear(t.year()),i.leapYear(e)},weekOfYear:function(e,t,r){var a=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear);return e=this._t2gYear(a.year()),i.weekOfYear(e,a.month(),a.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate);return e=this._t2gYear(a.year()),i.toJD(e,a.month(),a.day())},fromJD:function(e){var t=i.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}}),n.calendars.thai=o},{"../main":137,"object-assign":73}],136:[function(e,t,r){var n=e("../main"),a=e("object-assign");function i(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}i.prototype=new n.baseCalendar,a(i.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā’","Yawm al-Arba‘ā’","Yawm al-Khamīs","Yawm al-Jum‘a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear);return 355===this.daysInYear(t.year())},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var t=0,r=1;r<=12;r++)t+=this.daysInMonth(e,r);return t},daysInMonth:function(e,t){for(var r=this._validate(e,t,this.minDay,n.local.invalidMonth).toJD()-24e5+.5,a=0,i=0;ir)return o[a]-o[a-1];a++}return 30},weekDay:function(e,t,r){return 5!==this.dayOfWeek(e,t,r)},toJD:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate),i=12*(a.year()-1)+a.month()-15292;return a.day()+o[i-1]-1+24e5-.5},fromJD:function(e){for(var t=e-24e5+.5,r=0,n=0;nt);n++)r++;var a=r+15292,i=Math.floor((a-1)/12),l=i+1,s=a-12*i,c=t-o[r-1]+1;return this.newDate(l,s,c)},isValid:function(e,t,r){var a=n.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(a=(e=null!=e.year?e.year:e)>=1276&&e<=1500),a},_validate:function(e,t,r,a){var i=n.baseCalendar.prototype._validate.apply(this,arguments);if(i.year<1276||i.year>1500)throw a.replace(/\{0\}/,this.local.name);return i}}),n.calendars.ummalqura=i;var o=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},{"../main":137,"object-assign":73}],137:[function(e,t,r){var n=e("object-assign");function a(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}function i(e,t,r,n){if(this._calendar=e,this._year=t,this._month=r,this._day=n,0===this._calendar._validateLevel&&!this._calendar.isValid(this._year,this._month,this._day))throw(c.local.invalidDate||c.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function o(e,t){return"000000".substring(0,t-(e=""+e).length)+e}function l(){this.shortYearCutoff="+10"}function s(e){this.local=this.regionalOptions[e]||this.regionalOptions[""]}n(a.prototype,{instance:function(e,t){e=(e||"gregorian").toLowerCase(),t=t||"";var r=this._localCals[e+"-"+t];if(!r&&this.calendars[e]&&(r=new this.calendars[e](t),this._localCals[e+"-"+t]=r),!r)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return r},newDate:function(e,t,r,n,a){return(n=(null!=e&&e.year?e.calendar():"string"==typeof n?this.instance(n,a):n)||this.instance()).newDate(e,t,r)},substituteDigits:function(e){return function(t){return(t+"").replace(/[0-9]/g,(function(t){return e[t]}))}},substituteChineseDigits:function(e,t){return function(r){for(var n="",a=0;r>0;){var i=r%10;n=(0===i?"":e[i]+t[a])+n,a++,r=Math.floor(r/10)}return 0===n.indexOf(e[1]+t[1])&&(n=n.substr(1)),n||e[0]}}}),n(i.prototype,{newDate:function(e,t,r){return this._calendar.newDate(null==e?this:e,t,r)},year:function(e){return 0===arguments.length?this._year:this.set(e,"y")},month:function(e){return 0===arguments.length?this._month:this.set(e,"m")},day:function(e){return 0===arguments.length?this._day:this.set(e,"d")},date:function(e,t,r){if(!this._calendar.isValid(e,t,r))throw(c.local.invalidDate||c.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=t,this._day=r,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,t){return this._calendar.add(this,e,t)},set:function(e,t){return this._calendar.set(this,e,t)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(c.local.differentCalendars||c.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var t=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return 0===t?0:t<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+o(Math.abs(this.year()),4)+"-"+o(this.month(),2)+"-"+o(this.day(),2)}}),n(l.prototype,{_validateLevel:0,newDate:function(e,t,r){return null==e?this.today():(e.year&&(this._validate(e,t,r,c.local.invalidDate||c.regionalOptions[""].invalidDate),r=e.day(),t=e.month(),e=e.year()),new i(this,e,t,r))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){return this._validate(e,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[""].invalidYear).year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[""].invalidYear);return(t.year()<0?"-":"")+o(Math.abs(t.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[""].invalidYear),12},monthOfYear:function(e,t){var r=this._validate(e,t,this.minDay,c.local.invalidMonth||c.regionalOptions[""].invalidMonth);return(r.month()+this.monthsInYear(r)-this.firstMonth)%this.monthsInYear(r)+this.minMonth},fromMonthOfYear:function(e,t){var r=(t+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,r,this.minDay,c.local.invalidMonth||c.regionalOptions[""].invalidMonth),r},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[""].invalidYear);return this.leapYear(t)?366:365},dayOfYear:function(e,t,r){var n=this._validate(e,t,r,c.local.invalidDate||c.regionalOptions[""].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,t,r){var n=this._validate(e,t,r,c.local.invalidDate||c.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(e,t,r){return this._validate(e,t,r,c.local.invalidDate||c.regionalOptions[""].invalidDate),{}},add:function(e,t,r){return this._validate(e,this.minMonth,this.minDay,c.local.invalidDate||c.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,t,r),t,r)},_add:function(e,t,r){if(this._validateLevel++,"d"===r||"w"===r){var n=e.toJD()+t*("w"===r?this.daysInWeek():1),a=e.calendar().fromJD(n);return this._validateLevel--,[a.year(),a.month(),a.day()]}try{var i=e.year()+("y"===r?t:0),o=e.monthOfYear()+("m"===r?t:0),l=(a=e.day(),function(e){for(;ot-1+e.minMonth;)i++,o-=t,t=e.monthsInYear(i)});"y"===r?(e.month()!==this.fromMonthOfYear(i,o)&&(o=this.newDate(i,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(i)),a=Math.min(a,this.daysInMonth(i,this.fromMonthOfYear(i,o)))):"m"===r&&(l(this),a=Math.min(a,this.daysInMonth(i,this.fromMonthOfYear(i,o))));var s=[i,this.fromMonthOfYear(i,o),a];return this._validateLevel--,s}catch(e){throw this._validateLevel--,e}},_correctAdd:function(e,t,r,n){if(!(this.hasYearZero||"y"!==n&&"m"!==n||0!==t[0]&&e.year()>0==t[0]>0)){var a={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[n],i=r<0?-1:1;t=this._add(e,r*a[0]+i*a[1],a[2])}return e.date(t[0],t[1],t[2])},set:function(e,t,r){this._validate(e,this.minMonth,this.minDay,c.local.invalidDate||c.regionalOptions[""].invalidDate);var n="y"===r?t:e.year(),a="m"===r?t:e.month(),i="d"===r?t:e.day();return"y"!==r&&"m"!==r||(i=Math.min(i,this.daysInMonth(n,a))),e.date(n,a,i)},isValid:function(e,t,r){this._validateLevel++;var n=this.hasYearZero||0!==e;if(n){var a=this.newDate(e,t,this.minDay);n=t>=this.minMonth&&t-this.minMonth=this.minDay&&r-this.minDay13.5?13:1),c=a-(s>2.5?4716:4715);return c<=0&&c--,this.newDate(c,s,l)},toJSDate:function(e,t,r){var n=this._validate(e,t,r,c.local.invalidDate||c.regionalOptions[""].invalidDate),a=new Date(n.year(),n.month()-1,n.day());return a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0),a.setHours(a.getHours()>12?a.getHours()+2:0),a},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var c=t.exports=new a;c.cdate=i,c.baseCalendar=l,c.calendars.gregorian=s},{"object-assign":73}],138:[function(e,t,r){var n=e("object-assign"),a=e("./main");n(a.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),a.local=a.regionalOptions[""],n(a.cdate.prototype,{formatDate:function(e,t){return"string"!=typeof e&&(t=e,e=""),this._calendar.formatDate(e||"",this,t)}}),n(a.baseCalendar.prototype,{UNIX_EPOCH:a.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:a.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,t,r){if("string"!=typeof e&&(r=t,t=e,e=""),!t)return"";if(t.calendar()!==this)throw a.local.invalidFormat||a.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat;for(var n=(r=r||{}).dayNamesShort||this.local.dayNamesShort,i=r.dayNames||this.local.dayNames,o=r.monthNumbers||this.local.monthNumbers,l=r.monthNamesShort||this.local.monthNamesShort,s=r.monthNames||this.local.monthNames,c=(r.calculateWeek||this.local.calculateWeek,function(t,r){for(var n=1;v+n1}),u=function(e,t,r,n){var a=""+t;if(c(e,n))for(;a.length1},x=function(e,r){var n=v(e,r),i=[2,3,n?4:2,n?4:2,10,11,20]["oyYJ@!".indexOf(e)+1],o=new RegExp("^-?\\d{1,"+i+"}"),l=t.substring(k).match(o);if(!l)throw(a.local.missingNumberAt||a.regionalOptions[""].missingNumberAt).replace(/\{0\}/,k);return k+=l[0].length,parseInt(l[0],10)},b=this,_=function(){if("function"==typeof s){v("m");var e=s.call(b,t.substring(k));return k+=e.length,e}return x("m")},w=function(e,r,n,i){for(var o=v(e,i)?n:r,l=0;l-1){p=1,h=m;for(var S=this.daysInMonth(d,p);h>S;S=this.daysInMonth(d,p))p++,h-=S}return f>-1?this.fromJD(f):this.newDate(d,p,h)},determineDate:function(e,t,r,n,a){r&&"object"!=typeof r&&(a=n,n=r,r=null),"string"!=typeof n&&(a=n,n="");var i=this;return t=t?t.newDate():null,null==e?t:"string"==typeof e?function(e){try{return i.parseDate(n,e,a)}catch(e){}for(var t=((e=e.toLowerCase()).match(/^c/)&&r?r.newDate():null)||i.today(),o=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,l=o.exec(e);l;)t.add(parseInt(l[1],10),l[2]||"d"),l=o.exec(e);return t}(e):"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?t:i.today().add(e,"d"):i.newDate(e)}})},{"./main":137,"object-assign":73}],139:[function(e,t,r){"use strict";t.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},{}],140:[function(e,t,r){"use strict";var n=e("./arrow_paths"),a=e("../../plots/font_attributes"),i=e("../../plots/cartesian/constants"),o=e("../../plot_api/plot_template").templatedArray;e("../../constants/axis_placeable_objects"),t.exports=o("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:a({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:n.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:n.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",i.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",i.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",i.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",i.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:a({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},{"../../constants/axis_placeable_objects":263,"../../plot_api/plot_template":323,"../../plots/cartesian/constants":341,"../../plots/font_attributes":363,"./arrow_paths":139}],141:[function(e,t,r){"use strict";var n=e("../../lib"),a=e("../../plots/cartesian/axes"),i=e("./draw").draw;function o(e){var t=e._fullLayout;n.filterVisible(t.annotations).forEach((function(t){var r=a.getFromId(e,t.xref),n=a.getFromId(e,t.yref),i=a.getRefType(t.xref),o=a.getRefType(t.yref);t._extremes={},"range"===i&&l(t,r),"range"===o&&l(t,n)}))}function l(e,t){var r,n=t._id,i=n.charAt(0),o=e[i],l=e["a"+i],s=e[i+"ref"],c=e["a"+i+"ref"],u=e["_"+i+"padplus"],f=e["_"+i+"padminus"],d={x:1,y:-1}[i]*e[i+"shift"],p=3*e.arrowsize*e.arrowwidth||0,h=p+d,m=p-d,y=3*e.startarrowsize*e.arrowwidth||0,g=y+d,v=y-d;if(c===s){var x=a.findExtremes(t,[t.r2c(o)],{ppadplus:h,ppadminus:m}),b=a.findExtremes(t,[t.r2c(l)],{ppadplus:Math.max(u,g),ppadminus:Math.max(f,v)});r={min:[x.min[0],b.min[0]],max:[x.max[0],b.max[0]]}}else g=l?g+l:g,v=l?v-l:v,r=a.findExtremes(t,[t.r2c(o)],{ppadplus:Math.max(u,h,g),ppadminus:Math.max(f,m,v)});e._extremes[n]=r}t.exports=function(e){var t=e._fullLayout;if(n.filterVisible(t.annotations).length&&e._fullData.length)return n.syncOrAsync([i,o],e)}},{"../../lib":287,"../../plots/cartesian/axes":334,"./draw":146}],142:[function(e,t,r){"use strict";var n=e("../../lib"),a=e("../../registry"),i=e("../../plot_api/plot_template").arrayEditor;function o(e,t){var r,n,a,i,o,s,c,u=e._fullLayout.annotations,f=[],d=[],p=[],h=(t||[]).length;for(r=0;r0||r.explicitOff.length>0},onClick:function(e,t){var r,l,s=o(e,t),c=s.on,u=s.off.concat(s.explicitOff),f={},d=e._fullLayout.annotations;if(c.length||u.length){for(r=0;r2/3?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[t]}for(var Z=!1,W=["x","y"],X=0;X1)&&(ne===re?((pe=ae.r2fraction(t["a"+te]))<0||pe>1)&&(Z=!0):Z=!0),J=ae._offset+ae.r2p(t[te]),$=.5}else{var he="domain"===de;"x"===te?(Q=t[te],J=he?ae._offset+ae._length*Q:J=T.l+T.w*Q):(Q=1-t[te],J=he?ae._offset+ae._length*Q:J=T.t+T.h*Q),$=t.showarrow?.5:Q}if(t.showarrow){fe.head=J;var me=t["a"+te];if(ee=oe*q(.5,t.xanchor)-le*q(.5,t.yanchor),ne===re){var ye=s.getRefType(ne);"domain"===ye?("y"===te&&(me=1-me),fe.tail=ae._offset+ae._length*me):"paper"===ye?"y"===te?(me=1-me,fe.tail=T.t+T.h*me):fe.tail=T.l+T.w*me:fe.tail=ae._offset+ae.r2p(me),K=ee}else fe.tail=J+me,K=ee+me;fe.text=fe.tail+ee;var ge=w["x"===te?"width":"height"];if("paper"===re&&(fe.head=o.constrain(fe.head,1,ge-1)),"pixel"===ne){var ve=-Math.max(fe.tail-3,fe.text),xe=Math.min(fe.tail+3,fe.text)-ge;ve>0?(fe.tail+=ve,fe.text+=ve):xe>0&&(fe.tail-=xe,fe.text-=xe)}fe.tail+=ue,fe.head+=ue}else K=ee=se*q($,ce),fe.text=J+ee;fe.text+=ue,ee+=ue,K+=ue,t["_"+te+"padplus"]=se/2+K,t["_"+te+"padminus"]=se/2-K,t["_"+te+"size"]=se,t["_"+te+"shift"]=ee}if(Z)I.remove();else{var be=0,_e=0;if("left"!==t.align&&(be=(k-b)*("center"===t.align?.5:1)),"top"!==t.valign&&(_e=(z-_)*("middle"===t.valign?.5:1)),f)n.select("svg").attr({x:j+be-1,y:j+_e}).call(u.setClipUrl,H?O:null,e);else{var we=j+_e-m.top,Te=j+be-m.left;V.call(d.positionText,Te,we).call(u.setClipUrl,H?O:null,e)}U.select("rect").call(u.setRect,j,j,k,z),B.call(u.setRect,N/2,N/2,F-N,Y-N),I.call(u.setTranslate,Math.round(D.x.text-F/2),Math.round(D.y.text-Y/2)),P.attr({transform:"rotate("+C+","+D.x.text+","+D.y.text+")"});var Me,ke=function(r,n){E.selectAll(".annotation-arrow-g").remove();var s=D.x.head,f=D.y.head,d=D.x.tail+r,p=D.y.tail+n,m=D.x.text+r,b=D.y.text+n,_=o.rotationXYMatrix(C,m,b),w=o.apply2DTransform(_),k=o.apply2DTransform2(_),O=+B.attr("width"),R=+B.attr("height"),z=m-.5*O,N=z+O,F=b-.5*R,j=F+R,H=[[z,F,z,j],[z,j,N,j],[N,j,N,F],[N,F,z,F]].map(k);if(!H.reduce((function(e,t){return e^!!o.segmentsIntersect(s,f,s+1e6,f+1e6,t[0],t[1],t[2],t[3])}),!1)){H.forEach((function(e){var t=o.segmentsIntersect(d,p,s,f,e[0],e[1],e[2],e[3]);t&&(d=t.x,p=t.y)}));var U=t.arrowwidth,Y=t.arrowcolor,q=t.arrowside,V=E.append("g").style({opacity:c.opacity(Y)}).classed("annotation-arrow-g",!0),G=V.append("path").attr("d","M"+d+","+p+"L"+s+","+f).style("stroke-width",U+"px").call(c.stroke,c.rgb(Y));if(y(G,q,t),M.annotationPosition&&G.node().parentNode&&!i){var Z=s,W=f;if(t.standoff){var X=Math.sqrt(Math.pow(s-d,2)+Math.pow(f-p,2));Z+=t.standoff*(d-s)/X,W+=t.standoff*(p-f)/X}var J,K,Q=V.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(d-Z)+","+(p-W),transform:l(Z,W)}).style("stroke-width",U+6+"px").call(c.stroke,"rgba(0,0,0,0)").call(c.fill,"rgba(0,0,0,0)");h.init({element:Q.node(),gd:e,prepFn:function(){var e=u.getTranslate(I);J=e.x,K=e.y,g&&g.autorange&&A(g._name+".autorange",!0),x&&x.autorange&&A(x._name+".autorange",!0)},moveFn:function(e,r){var n=w(J,K),a=n[0]+e,i=n[1]+r;I.call(u.setTranslate,a,i),L("x",v(g,e,"x",T,t)),L("y",v(x,r,"y",T,t)),t.axref===t.xref&&L("ax",v(g,e,"ax",T,t)),t.ayref===t.yref&&L("ay",v(x,r,"ay",T,t)),V.attr("transform",l(e,r)),P.attr({transform:"rotate("+C+","+a+","+i+")"})},doneFn:function(){a.call("_guiRelayout",e,S());var t=document.querySelector(".js-notes-box-panel");t&&t.redraw(t.selectedObj)}})}}};t.showarrow&&ke(0,0),R&&h.init({element:I.node(),gd:e,prepFn:function(){Me=P.attr("transform")},moveFn:function(e,r){var n="pointer";if(t.showarrow)t.axref===t.xref?L("ax",v(g,e,"ax",T,t)):L("ax",t.ax+e),t.ayref===t.yref?L("ay",v(x,r,"ay",T.w,t)):L("ay",t.ay+r),ke(e,r);else{if(i)return;var a,o;if(g)a=v(g,e,"x",T,t);else{var s=t._xsize/T.w,c=t.x+(t._xshift-t.xshift)/T.w-s/2;a=h.align(c+e/T.w,s,0,1,t.xanchor)}if(x)o=v(x,r,"y",T,t);else{var u=t._ysize/T.h,f=t.y-(t._yshift+t.yshift)/T.h-u/2;o=h.align(f-r/T.h,u,0,1,t.yanchor)}L("x",a),L("y",o),g&&x||(n=h.getCursor(g?.5:a,x?.5:o,t.xanchor,t.yanchor))}P.attr({transform:l(e,r)+Me}),p(I,n)},clickFn:function(r,n){t.captureevents&&e.emit("plotly_clickannotation",G(n))},doneFn:function(){p(I),a.call("_guiRelayout",e,S());var t=document.querySelector(".js-notes-box-panel");t&&t.redraw(t.selectedObj)}})}}}t.exports={draw:function(e){var t=e._fullLayout;t._infolayer.selectAll(".annotation").remove();for(var r=0;r=0,x=t.indexOf("end")>=0,b=h.backoff*y+r.standoff,_=m.backoff*g+r.startstandoff;if("line"===p.nodeName){o={x:+e.attr("x1"),y:+e.attr("y1")},u={x:+e.attr("x2"),y:+e.attr("y2")};var w=o.x-u.x,T=o.y-u.y;if(d=(f=Math.atan2(T,w))+Math.PI,b&&_&&b+_>Math.sqrt(w*w+T*T))return void R();if(b){if(b*b>w*w+T*T)return void R();var M=b*Math.cos(f),k=b*Math.sin(f);u.x+=M,u.y+=k,e.attr({x2:u.x,y2:u.y})}if(_){if(_*_>w*w+T*T)return void R();var A=_*Math.cos(f),L=_*Math.sin(f);o.x-=A,o.y-=L,e.attr({x1:o.x,y1:o.y})}}else if("path"===p.nodeName){var S=p.getTotalLength(),O="";if(S1){c=!0;break}}c?e.fullLayout._infolayer.select(".annotation-"+e.id+'[data-index="'+l+'"]').remove():(s._pdata=a(e.glplot.cameraParams,[t.xaxis.r2l(s.x)*r[0],t.yaxis.r2l(s.y)*r[1],t.zaxis.r2l(s.z)*r[2]]),n(e.graphDiv,s,l,e.id,s._xa,s._ya))}}},{"../../plots/gl3d/project":366,"../annotations/draw":146}],153:[function(e,t,r){"use strict";var n=e("../../registry"),a=e("../../lib");t.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:e("./attributes")}}},layoutAttributes:e("./attributes"),handleDefaults:e("./defaults"),includeBasePlot:function(e,t){var r=n.subplotsRegistry.gl3d;if(r)for(var i=r.attrRegex,o=Object.keys(e),l=0;l=0))return e;if(3===o)n[o]>1&&(n[o]=1);else if(n[o]>=1)return e}var l=Math.round(255*n[0])+", "+Math.round(255*n[1])+", "+Math.round(255*n[2]);return i?"rgba("+l+", "+n[3]+")":"rgb("+l+")"}o.tinyRGB=function(e){var t=e.toRgb();return"rgb("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+")"},o.rgb=function(e){return o.tinyRGB(n(e))},o.opacity=function(e){return e?n(e).getAlpha():0},o.addOpacity=function(e,t){var r=n(e).toRgb();return"rgba("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+", "+t+")"},o.combine=function(e,t){var r=n(e).toRgb();if(1===r.a)return n(e).toRgbString();var a=n(t||c).toRgb(),i=1===a.a?a:{r:255*(1-a.a)+a.r*a.a,g:255*(1-a.a)+a.g*a.a,b:255*(1-a.a)+a.b*a.a},o={r:i.r*(1-r.a)+r.r*r.a,g:i.g*(1-r.a)+r.g*r.a,b:i.b*(1-r.a)+r.b*r.a};return n(o).toRgbString()},o.contrast=function(e,t,r){var a=n(e);return 1!==a.getAlpha()&&(a=n(o.combine(e,c))),(a.isDark()?t?a.lighten(t):c:r?a.darken(r):s).toString()},o.stroke=function(e,t){var r=n(t);e.style({stroke:o.tinyRGB(r),"stroke-opacity":r.getAlpha()})},o.fill=function(e,t){var r=n(t);e.style({fill:o.tinyRGB(r),"fill-opacity":r.getAlpha()})},o.clean=function(e){if(e&&"object"==typeof e){var t,r,n,a,l=Object.keys(e);for(t=0;t0?n>=s:n<=s));a++)n>u&&n0?n>=s:n<=s));a++)n>r[0]&&n1){var J=Math.pow(10,Math.floor(Math.log(X)/Math.LN10));Z*=J*c.roundUp(X/J,[2,5,10]),(Math.abs(D.start)/D.size+1e-6)%1<2e-6&&(G.tick0=0)}G.dtick=Z}G.domain=[Y+B,Y+N-B],G.setScale(),e.attr("transform",u(Math.round(s.l),Math.round(s.t)));var K,Q=e.select("."+k.cbtitleunshift).attr("transform",u(-Math.round(s.l),-Math.round(s.t))),$=e.select("."+k.cbaxis),ee=0;function te(n,a){var i={propContainer:G,propName:t._propPrefix+"title",traceIndex:t._traceIndex,_meta:t._meta,placeholder:o._dfltTitle.colorbar,containerGroup:e.select("."+k.cbtitle)},l="h"===n.charAt(0)?n.substr(1):"h"+n;e.selectAll("."+l+",."+l+"-math-group").remove(),m.draw(r,n,f(i,a||{}))}function re(){if(-1!==["top","bottom"].indexOf(A)){var e,r=s.l+(t.x+F)*s.w,n=G.title.font.size;e="top"===A?(1-(Y+N-B))*s.h+s.t+3+.75*n:(1-(Y+B))*s.h+s.t-3-.25*n,te(G._id+"title",{attributes:{x:r,y:e,"text-anchor":"start"}})}}function ne(){if(-1===["top","bottom"].indexOf(A)){var e=G.title.font.size,t=G._offset+G._length/2,a=s.l+(G.position||0)*s.w+("right"===G.side?10+e*(G.showticklabels?1:.5):-10-e*(G.showticklabels?.5:0));te("h"+G._id+"title",{avoid:{selection:n.select(r).selectAll("g."+G._id+"tick"),side:A,offsetLeft:s.l,offsetTop:0,maxShift:o.width},attributes:{x:a,y:t,"text-anchor":"middle"},transform:{rotate:"-90",offset:0}})}}function ae(){if(-1!==["top","bottom"].indexOf(A)){var i=e.select("."+k.cbtitle),o=i.select("text"),f=[-t.outlinewidth/2,t.outlinewidth/2],d=i.select(".h"+G._id+"title-math-group").node(),h=15.6;if(o.node()&&(h=parseInt(o.node().style.fontSize,10)*w),d?(ee=p.bBox(d).height)>h&&(f[1]-=(ee-h)/2):o.node()&&!o.classed(k.jsPlaceholder)&&(ee=p.bBox(o.node()).height),ee){if(ee+=5,"top"===A)G.domain[1]-=ee/s.h,f[1]*=-1;else{G.domain[0]+=ee/s.h;var m=y.lineCount(o);f[1]+=(1-m)*h}i.attr("transform",u(f[0],f[1])),G.setScale()}}e.selectAll("."+k.cbfills+",."+k.cblines).attr("transform",u(0,Math.round(s.h*(1-G.domain[1])))),$.attr("transform",u(0,Math.round(-s.t)));var v=e.select("."+k.cbfills).selectAll("rect."+k.cbfill).attr("style","").data(E);v.enter().append("rect").classed(k.cbfill,!0).style("stroke","none"),v.exit().remove();var x=L.map(G.c2p).map(Math.round).sort((function(e,t){return e-t}));v.each((function(e,i){var o=[0===i?L[0]:(E[i]+E[i-1])/2,i===E.length-1?L[1]:(E[i]+E[i+1])/2].map(G.c2p).map(Math.round);o[1]=c.constrain(o[1]+(o[1]>o[0])?1:-1,x[0],x[1]);var l=n.select(this).attr({x:H,width:Math.max(R,2),y:n.min(o),height:Math.max(n.max(o)-n.min(o),2)});if(t._fillgradient)p.gradient(l,r,t._id,"vertical",t._fillgradient,"fill");else{var s=O(e).replace("e-","");l.attr("fill",a(s).toHexString())}}));var b=e.select("."+k.cblines).selectAll("path."+k.cbline).data(g.color&&g.width?P:[]);b.enter().append("path").classed(k.cbline,!0),b.exit().remove(),b.each((function(e){n.select(this).attr("d","M"+H+","+(Math.round(G.c2p(e))+g.width/2%1)+"h"+R).call(p.lineGroupStyle,g.width,S(e),g.dash)})),$.selectAll("g."+G._id+"tick,path").remove();var _=H+R+(t.outlinewidth||0)/2-("outside"===t.ticks?1:0),T=l.calcTicks(G),M=l.getTickSigns(G)[2];return l.drawTicks(r,G,{vals:"inside"===G.ticks?l.clipEnds(G,T):T,layer:$,path:l.makeTickPath(G,_,M),transFn:l.makeTransTickFn(G)}),l.drawLabels(r,G,{vals:T,layer:$,transFn:l.makeTransTickLabelFn(G),labelFns:l.makeLabelFns(G,_)})}function ie(){var n=R+t.outlinewidth/2;if(-1===G.ticklabelposition.indexOf("inside")&&(n+=p.bBox($.node()).width),(K=Q.select("text")).node()&&!K.classed(k.jsPlaceholder)){var a,o=Q.select(".h"+G._id+"title-math-group").node();a=o&&-1!==["top","bottom"].indexOf(A)?p.bBox(o).width:p.bBox(Q.node()).right-H-s.l,n=Math.max(n,a)}var l=2*t.xpad+n+t.borderwidth+t.outlinewidth/2,c=q-V;e.select("."+k.cbbg).attr({x:H-t.xpad-(t.borderwidth+t.outlinewidth)/2,y:V-j,width:Math.max(l,2),height:Math.max(c+2*j,2)}).call(h.fill,t.bgcolor).call(h.stroke,t.bordercolor).style("stroke-width",t.borderwidth),e.selectAll("."+k.cboutline).attr({x:H,y:V+t.ypad+("top"===A?ee:0),width:Math.max(R,2),height:Math.max(c-2*t.ypad-ee,2)}).call(h.stroke,t.outlinecolor).style({fill:"none","stroke-width":t.outlinewidth});var f=({center:.5,right:1}[t.xanchor]||0)*l;e.attr("transform",u(s.l-f,s.t));var d={},m=T[t.yanchor],y=M[t.yanchor];"pixels"===t.lenmode?(d.y=t.y,d.t=c*m,d.b=c*y):(d.t=d.b=0,d.yt=t.y+t.len*m,d.yb=t.y-t.len*y);var g=T[t.xanchor],v=M[t.xanchor];if("pixels"===t.thicknessmode)d.x=t.x,d.l=l*g,d.r=l*v;else{var x=l-R;d.l=x*g,d.r=x*v,d.xl=t.x-t.thickness*g,d.xr=t.x+t.thickness*v}i.autoMargin(r,t._id,d)}return c.syncOrAsync([i.previousPromises,re,ae,ne,i.previousPromises,ie],r)}(r,t,e);g&&g.then&&(e._promises||[]).push(g),e._context.edits.colorbarPosition&&function(e,t,r){var n,a,i,l=r._fullLayout._size;s.init({element:e.node(),gd:r,prepFn:function(){n=e.attr("transform"),d(e)},moveFn:function(r,o){e.attr("transform",n+u(r,o)),a=s.align(t._xLeftFrac+r/l.w,t._thickFrac,0,1,t.xanchor),i=s.align(t._yBottomFrac-o/l.h,t._lenFrac,0,1,t.yanchor);var c=s.getCursor(a,i,t.xanchor,t.yanchor);d(e,c)},doneFn:function(){if(d(e),void 0!==a&&void 0!==i){var n={};n[t._propPrefix+"x"]=a,n[t._propPrefix+"y"]=i,void 0!==t._traceIndex?o.call("_guiRestyle",r,n,t._traceIndex):o.call("_guiRelayout",r,n)}}})}(r,t,e)})),t.exit().each((function(t){i.autoMargin(e,t._id)})).remove(),t.order()}}},{"../../constants/alignment":262,"../../lib":287,"../../lib/extend":281,"../../lib/setcursor":307,"../../lib/svg_text_utils":310,"../../plots/cartesian/axes":334,"../../plots/cartesian/axis_defaults":336,"../../plots/cartesian/layout_attributes":349,"../../plots/cartesian/position_defaults":352,"../../plots/plots":369,"../../registry":376,"../color":157,"../colorscale/helpers":168,"../dragelement":176,"../drawing":179,"../titles":255,"./constants":159,"@plotly/d3":20,tinycolor2:121}],162:[function(e,t,r){"use strict";var n=e("../../lib");t.exports=function(e){return n.isPlainObject(e.colorbar)}},{"../../lib":287}],163:[function(e,t,r){"use strict";t.exports={moduleType:"component",name:"colorbar",attributes:e("./attributes"),supplyDefaults:e("./defaults"),draw:e("./draw").draw,hasColorbar:e("./has_colorbar")}},{"./attributes":158,"./defaults":160,"./draw":161,"./has_colorbar":162}],164:[function(e,t,r){"use strict";var n=e("../colorbar/attributes"),a=e("../../lib/regex").counter,i=e("../../lib/sort_object_keys"),o=e("./scales.js").scales;function l(e){return"`"+e+"`"}i(o),t.exports=function(e,t){e=e||"";var r,i=(t=t||{}).cLetter||"c",s=("onlyIfNumerical"in t?t.onlyIfNumerical:Boolean(e),"noScale"in t?t.noScale:"marker.line"===e),c="showScaleDflt"in t?t.showScaleDflt:"z"===i,u="string"==typeof t.colorscaleDflt?o[t.colorscaleDflt]:null,f=t.editTypeOverride||"",d=e?e+".":"";"colorAttr"in t?(r=t.colorAttr,t.colorAttr):l(d+(r={z:"z",c:"color"}[i]));var p=i+"auto",h=i+"min",m=i+"max",y=i+"mid",g=(l(d+p),l(d+h),l(d+m),{});g[h]=g[m]=void 0;var v={};v[p]=!1;var x={};return"color"===r&&(x.color={valType:"color",arrayOk:!0,editType:f||"style"},t.anim&&(x.color.anim=!0)),x[p]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:g},x[h]={valType:"number",dflt:null,editType:f||"plot",impliedEdits:v},x[m]={valType:"number",dflt:null,editType:f||"plot",impliedEdits:v},x[y]={valType:"number",dflt:null,editType:"calc",impliedEdits:g},x.colorscale={valType:"colorscale",editType:"calc",dflt:u,impliedEdits:{autocolorscale:!1}},x.autocolorscale={valType:"boolean",dflt:!1!==t.autoColorDflt,editType:"calc",impliedEdits:{colorscale:void 0}},x.reversescale={valType:"boolean",dflt:!1,editType:"plot"},s||(x.showscale={valType:"boolean",dflt:c,editType:"calc"},x.colorbar=n),t.noColorAxis||(x.coloraxis={valType:"subplotid",regex:a("coloraxis"),dflt:null,editType:"calc"}),x}},{"../../lib/regex":303,"../../lib/sort_object_keys":308,"../colorbar/attributes":158,"./scales.js":172}],165:[function(e,t,r){"use strict";var n=e("fast-isnumeric"),a=e("../../lib"),i=e("./helpers").extractOpts;t.exports=function(e,t,r){var o,l=e._fullLayout,s=r.vals,c=r.containerStr,u=c?a.nestedProperty(t,c).get():t,f=i(u),d=!1!==f.auto,p=f.min,h=f.max,m=f.mid,y=function(){return a.aggNums(Math.min,null,s)},g=function(){return a.aggNums(Math.max,null,s)};void 0===p?p=y():d&&(p=u._colorAx&&n(p)?Math.min(p,y()):y()),void 0===h?h=g():d&&(h=u._colorAx&&n(h)?Math.max(h,g()):g()),d&&void 0!==m&&(h-m>m-p?p=m-(h-m):h-m=0?l.colorscale.sequential:l.colorscale.sequentialminus,f._sync("colorscale",o))}},{"../../lib":287,"./helpers":168,"fast-isnumeric":33}],166:[function(e,t,r){"use strict";var n=e("../../lib"),a=e("./helpers").hasColorscale,i=e("./helpers").extractOpts;t.exports=function(e,t){function r(e,t){var r=e["_"+t];void 0!==r&&(e[t]=r)}function o(e,a){var o=a.container?n.nestedProperty(e,a.container).get():e;if(o)if(o.coloraxis)o._colorAx=t[o.coloraxis];else{var l=i(o),s=l.auto;(s||void 0===l.min)&&r(o,a.min),(s||void 0===l.max)&&r(o,a.max),l.autocolorscale&&r(o,"colorscale")}}for(var l=0;l=0;n--,a++){var i=e[n];r[a]=[1-i[0],i[1]]}return r}function h(e,t){t=t||{};for(var r=e.domain,o=e.range,s=o.length,c=new Array(s),u=0;u4/3-l?o:l}},{}],174:[function(e,t,r){"use strict";var n=e("../../lib"),a=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];t.exports=function(e,t,r,i){return e="left"===r?0:"center"===r?1:"right"===r?2:n.constrain(Math.floor(3*e),0,2),t="bottom"===i?0:"middle"===i?1:"top"===i?2:n.constrain(Math.floor(3*t),0,2),a[t][e]}},{"../../lib":287}],175:[function(e,t,r){"use strict";r.selectMode=function(e){return"lasso"===e||"select"===e},r.drawMode=function(e){return"drawclosedpath"===e||"drawopenpath"===e||"drawline"===e||"drawrect"===e||"drawcircle"===e},r.openMode=function(e){return"drawline"===e||"drawopenpath"===e},r.rectMode=function(e){return"select"===e||"drawline"===e||"drawrect"===e||"drawcircle"===e},r.freeMode=function(e){return"lasso"===e||"drawclosedpath"===e||"drawopenpath"===e},r.selectingOrDrawing=function(e){return r.freeMode(e)||r.rectMode(e)}},{}],176:[function(e,t,r){"use strict";var n=e("mouse-event-offset"),a=e("has-hover"),i=e("has-passive-events"),o=e("../../lib").removeElement,l=e("../../plots/cartesian/constants"),s=t.exports={};s.align=e("./align"),s.getCursor=e("./cursor");var c=e("./unhover");function u(){var e=document.createElement("div");e.className="dragcover";var t=e.style;return t.position="fixed",t.left=0,t.right=0,t.top=0,t.bottom=0,t.zIndex=999999999,t.background="none",document.body.appendChild(e),e}function f(e){return n(e.changedTouches?e.changedTouches[0]:e,document.body)}s.unhover=c.wrapped,s.unhoverRaw=c.raw,s.init=function(e){var t,r,n,c,d,p,h,m,y=e.gd,g=1,v=y._context.doubleClickDelay,x=e.element;y._mouseDownTime||(y._mouseDownTime=0),x.style.pointerEvents="all",x.onmousedown=_,i?(x._ontouchstart&&x.removeEventListener("touchstart",x._ontouchstart),x._ontouchstart=_,x.addEventListener("touchstart",_,{passive:!1})):x.ontouchstart=_;var b=e.clampFn||function(e,t,r){return Math.abs(e)v&&(g=Math.max(g-1,1)),y._dragged)e.doneFn&&e.doneFn();else if(e.clickFn&&e.clickFn(g,p),!m){var r;try{r=new MouseEvent("click",t)}catch(e){var n=f(t);(r=document.createEvent("MouseEvents")).initMouseEvent("click",t.bubbles,t.cancelable,t.view,t.detail,t.screenX,t.screenY,n[0],n[1],t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget)}h.dispatchEvent(r)}y._dragging=!1,y._dragged=!1}else y._dragged=!1}},s.coverSlip=u},{"../../lib":287,"../../plots/cartesian/constants":341,"./align":173,"./cursor":174,"./unhover":177,"has-hover":64,"has-passive-events":65,"mouse-event-offset":71}],177:[function(e,t,r){"use strict";var n=e("../../lib/events"),a=e("../../lib/throttle"),i=e("../../lib/dom").getGraphDiv,o=e("../fx/constants"),l=t.exports={};l.wrapped=function(e,t,r){(e=i(e))._fullLayout&&a.clear(e._fullLayout._uid+o.HOVERID),l.raw(e,t,r)},l.raw=function(e,t){var r=e._fullLayout,a=e._hoverdata;t||(t={}),t.target&&!e._dragged&&!1===n.triggerHandler(e,"plotly_beforehover",t)||(r._hoverlayer.selectAll("g").remove(),r._hoverlayer.selectAll("line").remove(),r._hoverlayer.selectAll("circle").remove(),e._hoverdata=void 0,t.target&&a&&e.emit("plotly_unhover",{event:t,points:a}))}},{"../../lib/dom":279,"../../lib/events":280,"../../lib/throttle":311,"../fx/constants":191}],178:[function(e,t,r){"use strict";r.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},r.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}},{}],179:[function(e,t,r){"use strict";var n=e("@plotly/d3"),a=e("../../lib"),i=a.numberFormat,o=e("fast-isnumeric"),l=e("tinycolor2"),s=e("../../registry"),c=e("../color"),u=e("../colorscale"),f=a.strTranslate,d=e("../../lib/svg_text_utils"),p=e("../../constants/xmlns_namespaces"),h=e("../../constants/alignment").LINE_SPACING,m=e("../../constants/interactions").DESELECTDIM,y=e("../../traces/scatter/subtypes"),g=e("../../traces/scatter/make_bubble_size_func"),v=e("../../components/fx/helpers").appendArrayPointValue,x=t.exports={};x.font=function(e,t,r,n){a.isPlainObject(t)&&(n=t.color,r=t.size,t=t.family),t&&e.style("font-family",t),r+1&&e.style("font-size",r+"px"),n&&e.call(c.fill,n)},x.setPosition=function(e,t,r){e.attr("x",t).attr("y",r)},x.setSize=function(e,t,r){e.attr("width",t).attr("height",r)},x.setRect=function(e,t,r,n,a){e.call(x.setPosition,t,r).call(x.setSize,n,a)},x.translatePoint=function(e,t,r,n){var a=r.c2p(e.x),i=n.c2p(e.y);return!!(o(a)&&o(i)&&t.node())&&("text"===t.node().nodeName?t.attr("x",a).attr("y",i):t.attr("transform",f(a,i)),!0)},x.translatePoints=function(e,t,r){e.each((function(e){var a=n.select(this);x.translatePoint(e,a,t,r)}))},x.hideOutsideRangePoint=function(e,t,r,n,a,i){t.attr("display",r.isPtWithinRange(e,a)&&n.isPtWithinRange(e,i)?null:"none")},x.hideOutsideRangePoints=function(e,t){if(t._hasClipOnAxisFalse){var r=t.xaxis,a=t.yaxis;e.each((function(t){var i=t[0].trace,o=i.xcalendar,l=i.ycalendar,c=s.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(c).each((function(e){x.hideOutsideRangePoint(e,n.select(this),r,a,o,l)}))}))}},x.crispRound=function(e,t,r){return t&&o(t)?e._context.staticPlot?t:t<1?1:Math.round(t):r||0},x.singleLineStyle=function(e,t,r,n,a){t.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},o=r||i.width||0,l=a||i.dash||"";c.stroke(t,n||i.color),x.dashLine(t,l,o)},x.lineGroupStyle=function(e,t,r,a){e.style("fill","none").each((function(e){var i=(((e||[])[0]||{}).trace||{}).line||{},o=t||i.width||0,l=a||i.dash||"";n.select(this).call(c.stroke,r||i.color).call(x.dashLine,l,o)}))},x.dashLine=function(e,t,r){r=+r||0,t=x.dashStyle(t,r),e.style({"stroke-dasharray":t,"stroke-width":r+"px"})},x.dashStyle=function(e,t){t=+t||1;var r=Math.max(t,3);return"solid"===e?e="":"dot"===e?e=r+"px,"+r+"px":"dash"===e?e=3*r+"px,"+3*r+"px":"longdash"===e?e=5*r+"px,"+5*r+"px":"dashdot"===e?e=3*r+"px,"+r+"px,"+r+"px,"+r+"px":"longdashdot"===e&&(e=5*r+"px,"+2*r+"px,"+r+"px,"+2*r+"px"),e},x.singleFillStyle=function(e){var t=(((n.select(e.node()).data()[0]||[])[0]||{}).trace||{}).fillcolor;t&&e.call(c.fill,t)},x.fillGroupStyle=function(e){e.style("stroke-width",0).each((function(e){var t=n.select(this);e[0].trace&&t.call(c.fill,e[0].trace.fillcolor)}))};var b=e("./symbol_defs");x.symbolNames=[],x.symbolFuncs=[],x.symbolNeedLines={},x.symbolNoDot={},x.symbolNoFill={},x.symbolList=[],Object.keys(b).forEach((function(e){var t=b[e],r=t.n;x.symbolList.push(r,String(r),e,r+100,String(r+100),e+"-open"),x.symbolNames[r]=e,x.symbolFuncs[r]=t.f,t.needLine&&(x.symbolNeedLines[r]=!0),t.noDot?x.symbolNoDot[r]=!0:x.symbolList.push(r+200,String(r+200),e+"-dot",r+300,String(r+300),e+"-open-dot"),t.noFill&&(x.symbolNoFill[r]=!0)}));var _=x.symbolNames.length;function w(e,t){var r=e%100;return x.symbolFuncs[r](t)+(e>=200?"M0,0.5L0.5,0L0,-0.5L-0.5,0Z":"")}x.symbolNumber=function(e){if(o(e))e=+e;else if("string"==typeof e){var t=0;e.indexOf("-open")>0&&(t=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(t+=200,e=e.replace("-dot","")),(e=x.symbolNames.indexOf(e))>=0&&(e+=t)}return e%100>=_||e>=400?0:Math.floor(Math.max(e,0))};var T={x1:1,x2:0,y1:0,y2:0},M={x1:0,x2:0,y1:1,y2:0},k=i("~f"),A={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:T},horizontalreversed:{node:"linearGradient",attrs:T,reversed:!0},vertical:{node:"linearGradient",attrs:M},verticalreversed:{node:"linearGradient",attrs:M,reversed:!0}};x.gradient=function(e,t,r,i,o,s){for(var u=o.length,f=A[i],d=new Array(u),p=0;p"+g(e);h._gradientUrlQueryParts[v]=1},x.pattern=function(e,t,r,i,o,l,s,u,f,d,p,h){var m="legend"===t;u&&("overlay"===f?(d=u,p=c.contrast(d)):(d=void 0,p=u));var y,g,v,x,b,_,w,T,M,k,A,L=r._fullLayout,S="p"+L._uid+"-"+i,O={};switch(o){case"/":y=l*Math.sqrt(2),g=l*Math.sqrt(2),_="path",O={d:v="M-"+y/4+","+g/4+"l"+y/2+",-"+g/2+"M0,"+g+"L"+y+",0M"+y/4*3+","+g/4*5+"l"+y/2+",-"+g/2,opacity:h,stroke:p,"stroke-width":(x=s*l)+"px"};break;case"\\":y=l*Math.sqrt(2),g=l*Math.sqrt(2),_="path",O={d:v="M"+y/4*3+",-"+g/4+"l"+y/2+","+g/2+"M0,0L"+y+","+g+"M-"+y/4+","+g/4*3+"l"+y/2+","+g/2,opacity:h,stroke:p,"stroke-width":(x=s*l)+"px"};break;case"x":y=l*Math.sqrt(2),g=l*Math.sqrt(2),v="M-"+y/4+","+g/4+"l"+y/2+",-"+g/2+"M0,"+g+"L"+y+",0M"+y/4*3+","+g/4*5+"l"+y/2+",-"+g/2+"M"+y/4*3+",-"+g/4+"l"+y/2+","+g/2+"M0,0L"+y+","+g+"M-"+y/4+","+g/4*3+"l"+y/2+","+g/2,x=l-l*Math.sqrt(1-s),_="path",O={d:v,opacity:h,stroke:p,"stroke-width":x+"px"};break;case"|":_="path",_="path",O={d:v="M"+(y=l)/2+",0L"+y/2+","+(g=l),opacity:h,stroke:p,"stroke-width":(x=s*l)+"px"};break;case"-":_="path",_="path",O={d:v="M0,"+(g=l)/2+"L"+(y=l)+","+g/2,opacity:h,stroke:p,"stroke-width":(x=s*l)+"px"};break;case"+":_="path",v="M"+(y=l)/2+",0L"+y/2+","+(g=l)+"M0,"+g/2+"L"+y+","+g/2,x=l-l*Math.sqrt(1-s),_="path",O={d:v,opacity:h,stroke:p,"stroke-width":x+"px"};break;case".":y=l,g=l,b=s.pattern_filled";L._patternUrlQueryParts[E]=1},x.initGradients=function(e){var t=e._fullLayout;a.ensureSingle(t._defs,"g","gradients").selectAll("linearGradient,radialGradient").remove(),t._gradientUrlQueryParts={}},x.initPatterns=function(e){var t=e._fullLayout;a.ensureSingle(t._defs,"g","patterns").selectAll("pattern").remove(),t._patternUrlQueryParts={}},x.getPatternAttr=function(e,t,r){return e&&a.isArrayOrTypedArray(e)?t=100,t.attr("d",w(u,s))}var f,d,p,h=!1;if(e.so)p=l.outlierwidth,d=l.outliercolor,f=o.outliercolor;else{var m=(l||{}).width;p=(e.mlw+1||m+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,d="mlc"in e?e.mlcc=n.lineScale(e.mlc):a.isArrayOrTypedArray(l.color)?c.defaultLine:l.color,a.isArrayOrTypedArray(o.color)&&(f=c.defaultLine,h=!0),f="mc"in e?e.mcc=n.markerScale(e.mc):o.color||"rgba(0,0,0,0)",n.selectedColorFn&&(f=n.selectedColorFn(e))}if(e.om)t.call(c.stroke,f).style({"stroke-width":(p||1)+"px",fill:"none"});else{t.style("stroke-width",(e.isBlank?0:p)+"px");var y=o.gradient,g=e.mgt;g?h=!0:g=y&&y.type,a.isArrayOrTypedArray(g)&&(g=g[0],A[g]||(g=0));var v=o.pattern,b=v&&x.getPatternAttr(v.shape,e.i,"");if(g&&"none"!==g){var _=e.mgc;_?h=!0:_=y.color;var T=r.uid;h&&(T+="-"+e.i),x.gradient(t,i,T,g,[[0,_],[1,f]],"fill")}else if(b){var M=x.getPatternAttr(v.bgcolor,e.i,null),k=x.getPatternAttr(v.fgcolor,e.i,null),L=v.fgopacity,S=x.getPatternAttr(v.size,e.i,8),O=x.getPatternAttr(v.solidity,e.i,.3),D=e.mcc||a.isArrayOrTypedArray(v.shape)||a.isArrayOrTypedArray(v.bgcolor)||a.isArrayOrTypedArray(v.size)||a.isArrayOrTypedArray(v.solidity),C=r.uid;D&&(C+="-"+e.i),x.pattern(t,"point",i,C,b,S,O,e.mcc,v.fillmode,M,k,L)}else c.fill(t,f);p&&c.stroke(t,d)}},x.makePointStyleFns=function(e){var t={},r=e.marker;return t.markerScale=x.tryColorscale(r,""),t.lineScale=x.tryColorscale(r,"line"),s.traceIs(e,"symbols")&&(t.ms2mrc=y.isBubble(e)?g(e):function(){return(r.size||6)/2}),e.selectedpoints&&a.extendFlat(t,x.makeSelectedPointStyleFns(e)),t},x.makeSelectedPointStyleFns=function(e){var t={},r=e.selected||{},n=e.unselected||{},i=e.marker||{},o=r.marker||{},l=n.marker||{},c=i.opacity,u=o.opacity,f=l.opacity,d=void 0!==u,p=void 0!==f;(a.isArrayOrTypedArray(c)||d||p)&&(t.selectedOpacityFn=function(e){var t=void 0===e.mo?i.opacity:e.mo;return e.selected?d?u:t:p?f:m*t});var h=i.color,y=o.color,g=l.color;(y||g)&&(t.selectedColorFn=function(e){var t=e.mcc||h;return e.selected?y||t:g||t});var v=i.size,x=o.size,b=l.size,_=void 0!==x,w=void 0!==b;return s.traceIs(e,"symbols")&&(_||w)&&(t.selectedSizeFn=function(e){var t=e.mrc||v/2;return e.selected?_?x/2:t:w?b/2:t}),t},x.makeSelectedTextStyleFns=function(e){var t={},r=e.selected||{},n=e.unselected||{},a=e.textfont||{},i=r.textfont||{},o=n.textfont||{},l=a.color,s=i.color,u=o.color;return t.selectedTextColorFn=function(e){var t=e.tc||l;return e.selected?s||t:u||(s?t:c.addOpacity(t,m))},t},x.selectedPointStyle=function(e,t){if(e.size()&&t.selectedpoints){var r=x.makeSelectedPointStyleFns(t),a=t.marker||{},i=[];r.selectedOpacityFn&&i.push((function(e,t){e.style("opacity",r.selectedOpacityFn(t))})),r.selectedColorFn&&i.push((function(e,t){c.fill(e,r.selectedColorFn(t))})),r.selectedSizeFn&&i.push((function(e,t){var n=t.mx||a.symbol||0,i=r.selectedSizeFn(t);e.attr("d",w(x.symbolNumber(n),i)),t.mrc2=i})),i.length&&e.each((function(e){for(var t=n.select(this),r=0;r0?r:0}x.textPointStyle=function(e,t,r){if(e.size()){var i;if(t.selectedpoints){var o=x.makeSelectedTextStyleFns(t);i=o.selectedTextColorFn}var l=t.texttemplate,s=r._fullLayout;e.each((function(e){var o=n.select(this),c=l?a.extractOption(e,t,"txt","texttemplate"):a.extractOption(e,t,"tx","text");if(c||0===c){if(l){var u=t._module.formatLabels,f=u?u(e,t,s):{},p={};v(p,t,e.i);var h=t._meta||{};c=a.texttemplateString(c,f,s._d3locale,p,e,h)}var m=e.tp||t.textposition,y=O(e,t),g=i?i(e):e.tc||t.textfont.color;o.call(x.font,e.tf||t.textfont.family,y,g).text(c).call(d.convertToTspans,r).call(S,m,y,e.mrc)}else o.remove()}))}},x.selectedTextStyle=function(e,t){if(e.size()&&t.selectedpoints){var r=x.makeSelectedTextStyleFns(t);e.each((function(e){var a=n.select(this),i=r.selectedTextColorFn(e),o=e.tp||t.textposition,l=O(e,t);c.fill(a,i),S(a,o,l,e.mrc2||e.mrc)}))}};function D(e,t,r,a){var i=e[0]-t[0],o=e[1]-t[1],l=r[0]-t[0],s=r[1]-t[1],c=Math.pow(i*i+o*o,.25),u=Math.pow(l*l+s*s,.25),f=(u*u*i-c*c*l)*a,d=(u*u*o-c*c*s)*a,p=3*u*(c+u),h=3*c*(c+u);return[[n.round(t[0]+(p&&f/p),2),n.round(t[1]+(p&&d/p),2)],[n.round(t[0]-(h&&f/h),2),n.round(t[1]-(h&&d/h),2)]]}x.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var r,n="M"+e[0],a=[];for(r=1;r=1e4&&(x.savedBBoxes={},P=0),r&&(x.savedBBoxes[r]=y),P++,a.extendFlat({},y)},x.setClipUrl=function(e,t,r){e.attr("clip-path",z(t,r))},x.getTranslate=function(e){var t=(e[e.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,(function(e,t,r){return[t,r].join(" ")})).split(" ");return{x:+t[0]||0,y:+t[1]||0}},x.setTranslate=function(e,t,r){var n=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",i=e[n]("transform")||"";return t=t||0,r=r||0,i=i.replace(/(\btranslate\(.*?\);?)/,"").trim(),i=(i+=f(t,r)).trim(),e[a]("transform",i),i},x.getScale=function(e){var t=(e[e.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,(function(e,t,r){return[t,r].join(" ")})).split(" ");return{x:+t[0]||1,y:+t[1]||1}},x.setScale=function(e,t,r){var n=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",i=e[n]("transform")||"";return t=t||1,r=r||1,i=i.replace(/(\bscale\(.*?\);?)/,"").trim(),i=(i+="scale("+t+","+r+")").trim(),e[a]("transform",i),i};var I=/\s*sc.*/;x.setPointGroupScale=function(e,t,r){if(t=t||1,r=r||1,e){var n=1===t&&1===r?"":"scale("+t+","+r+")";e.each((function(){var e=(this.getAttribute("transform")||"").replace(I,"");e=(e+=n).trim(),this.setAttribute("transform",e)}))}};var N=/translate\([^)]*\)\s*$/;x.setTextPointsScale=function(e,t,r){e&&e.each((function(){var e,a=n.select(this),i=a.select("text");if(i.node()){var o=parseFloat(i.attr("x")||0),l=parseFloat(i.attr("y")||0),s=(a.attr("transform")||"").match(N);e=1===t&&1===r?[]:[f(o,l),"scale("+t+","+r+")",f(-o,-l)],s&&e.push(s),a.attr("transform",e.join(""))}}))}},{"../../components/fx/helpers":193,"../../constants/alignment":262,"../../constants/interactions":266,"../../constants/xmlns_namespaces":268,"../../lib":287,"../../lib/svg_text_utils":310,"../../registry":376,"../../traces/scatter/make_bubble_size_func":514,"../../traces/scatter/subtypes":522,"../color":157,"../colorscale":169,"./symbol_defs":180,"@plotly/d3":20,"fast-isnumeric":33,tinycolor2:121}],180:[function(e,t,r){"use strict";var n=e("@plotly/d3");t.exports={circle:{n:0,f:function(e){var t=n.round(e,2);return"M"+t+",0A"+t+","+t+" 0 1,1 0,-"+t+"A"+t+","+t+" 0 0,1 "+t+",0Z"}},square:{n:1,f:function(e){var t=n.round(e,2);return"M"+t+","+t+"H-"+t+"V-"+t+"H"+t+"Z"}},diamond:{n:2,f:function(e){var t=n.round(1.3*e,2);return"M"+t+",0L0,"+t+"L-"+t+",0L0,-"+t+"Z"}},cross:{n:3,f:function(e){var t=n.round(.4*e,2),r=n.round(1.2*e,2);return"M"+r+","+t+"H"+t+"V"+r+"H-"+t+"V"+t+"H-"+r+"V-"+t+"H-"+t+"V-"+r+"H"+t+"V-"+t+"H"+r+"Z"}},x:{n:4,f:function(e){var t=n.round(.8*e/Math.sqrt(2),2),r="l"+t+","+t,a="l"+t+",-"+t,i="l-"+t+",-"+t,o="l-"+t+","+t;return"M0,"+t+r+a+i+a+i+o+i+o+r+o+r+"Z"}},"triangle-up":{n:5,f:function(e){var t=n.round(2*e/Math.sqrt(3),2);return"M-"+t+","+n.round(e/2,2)+"H"+t+"L0,-"+n.round(e,2)+"Z"}},"triangle-down":{n:6,f:function(e){var t=n.round(2*e/Math.sqrt(3),2);return"M-"+t+",-"+n.round(e/2,2)+"H"+t+"L0,"+n.round(e,2)+"Z"}},"triangle-left":{n:7,f:function(e){var t=n.round(2*e/Math.sqrt(3),2);return"M"+n.round(e/2,2)+",-"+t+"V"+t+"L-"+n.round(e,2)+",0Z"}},"triangle-right":{n:8,f:function(e){var t=n.round(2*e/Math.sqrt(3),2);return"M-"+n.round(e/2,2)+",-"+t+"V"+t+"L"+n.round(e,2)+",0Z"}},"triangle-ne":{n:9,f:function(e){var t=n.round(.6*e,2),r=n.round(1.2*e,2);return"M-"+r+",-"+t+"H"+t+"V"+r+"Z"}},"triangle-se":{n:10,f:function(e){var t=n.round(.6*e,2),r=n.round(1.2*e,2);return"M"+t+",-"+r+"V"+t+"H-"+r+"Z"}},"triangle-sw":{n:11,f:function(e){var t=n.round(.6*e,2),r=n.round(1.2*e,2);return"M"+r+","+t+"H-"+t+"V-"+r+"Z"}},"triangle-nw":{n:12,f:function(e){var t=n.round(.6*e,2),r=n.round(1.2*e,2);return"M-"+t+","+r+"V-"+t+"H"+r+"Z"}},pentagon:{n:13,f:function(e){var t=n.round(.951*e,2),r=n.round(.588*e,2),a=n.round(-e,2),i=n.round(-.309*e,2);return"M"+t+","+i+"L"+r+","+n.round(.809*e,2)+"H-"+r+"L-"+t+","+i+"L0,"+a+"Z"}},hexagon:{n:14,f:function(e){var t=n.round(e,2),r=n.round(e/2,2),a=n.round(e*Math.sqrt(3)/2,2);return"M"+a+",-"+r+"V"+r+"L0,"+t+"L-"+a+","+r+"V-"+r+"L0,-"+t+"Z"}},hexagon2:{n:15,f:function(e){var t=n.round(e,2),r=n.round(e/2,2),a=n.round(e*Math.sqrt(3)/2,2);return"M-"+r+","+a+"H"+r+"L"+t+",0L"+r+",-"+a+"H-"+r+"L-"+t+",0Z"}},octagon:{n:16,f:function(e){var t=n.round(.924*e,2),r=n.round(.383*e,2);return"M-"+r+",-"+t+"H"+r+"L"+t+",-"+r+"V"+r+"L"+r+","+t+"H-"+r+"L-"+t+","+r+"V-"+r+"Z"}},star:{n:17,f:function(e){var t=1.4*e,r=n.round(.225*t,2),a=n.round(.951*t,2),i=n.round(.363*t,2),o=n.round(.588*t,2),l=n.round(-t,2),s=n.round(-.309*t,2),c=n.round(.118*t,2),u=n.round(.809*t,2);return"M"+r+","+s+"H"+a+"L"+i+","+c+"L"+o+","+u+"L0,"+n.round(.382*t,2)+"L-"+o+","+u+"L-"+i+","+c+"L-"+a+","+s+"H-"+r+"L0,"+l+"Z"}},hexagram:{n:18,f:function(e){var t=n.round(.66*e,2),r=n.round(.38*e,2),a=n.round(.76*e,2);return"M-"+a+",0l-"+r+",-"+t+"h"+a+"l"+r+",-"+t+"l"+r+","+t+"h"+a+"l-"+r+","+t+"l"+r+","+t+"h-"+a+"l-"+r+","+t+"l-"+r+",-"+t+"h-"+a+"Z"}},"star-triangle-up":{n:19,f:function(e){var t=n.round(e*Math.sqrt(3)*.8,2),r=n.round(.8*e,2),a=n.round(1.6*e,2),i=n.round(4*e,2),o="A "+i+","+i+" 0 0 1 ";return"M-"+t+","+r+o+t+","+r+o+"0,-"+a+o+"-"+t+","+r+"Z"}},"star-triangle-down":{n:20,f:function(e){var t=n.round(e*Math.sqrt(3)*.8,2),r=n.round(.8*e,2),a=n.round(1.6*e,2),i=n.round(4*e,2),o="A "+i+","+i+" 0 0 1 ";return"M"+t+",-"+r+o+"-"+t+",-"+r+o+"0,"+a+o+t+",-"+r+"Z"}},"star-square":{n:21,f:function(e){var t=n.round(1.1*e,2),r=n.round(2*e,2),a="A "+r+","+r+" 0 0 1 ";return"M-"+t+",-"+t+a+"-"+t+","+t+a+t+","+t+a+t+",-"+t+a+"-"+t+",-"+t+"Z"}},"star-diamond":{n:22,f:function(e){var t=n.round(1.4*e,2),r=n.round(1.9*e,2),a="A "+r+","+r+" 0 0 1 ";return"M-"+t+",0"+a+"0,"+t+a+t+",0"+a+"0,-"+t+a+"-"+t+",0Z"}},"diamond-tall":{n:23,f:function(e){var t=n.round(.7*e,2),r=n.round(1.4*e,2);return"M0,"+r+"L"+t+",0L0,-"+r+"L-"+t+",0Z"}},"diamond-wide":{n:24,f:function(e){var t=n.round(1.4*e,2),r=n.round(.7*e,2);return"M0,"+r+"L"+t+",0L0,-"+r+"L-"+t+",0Z"}},hourglass:{n:25,f:function(e){var t=n.round(e,2);return"M"+t+","+t+"H-"+t+"L"+t+",-"+t+"H-"+t+"Z"},noDot:!0},bowtie:{n:26,f:function(e){var t=n.round(e,2);return"M"+t+","+t+"V-"+t+"L-"+t+","+t+"V-"+t+"Z"},noDot:!0},"circle-cross":{n:27,f:function(e){var t=n.round(e,2);return"M0,"+t+"V-"+t+"M"+t+",0H-"+t+"M"+t+",0A"+t+","+t+" 0 1,1 0,-"+t+"A"+t+","+t+" 0 0,1 "+t+",0Z"},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e){var t=n.round(e,2),r=n.round(e/Math.sqrt(2),2);return"M"+r+","+r+"L-"+r+",-"+r+"M"+r+",-"+r+"L-"+r+","+r+"M"+t+",0A"+t+","+t+" 0 1,1 0,-"+t+"A"+t+","+t+" 0 0,1 "+t+",0Z"},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e){var t=n.round(e,2);return"M0,"+t+"V-"+t+"M"+t+",0H-"+t+"M"+t+","+t+"H-"+t+"V-"+t+"H"+t+"Z"},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e){var t=n.round(e,2);return"M"+t+","+t+"L-"+t+",-"+t+"M"+t+",-"+t+"L-"+t+","+t+"M"+t+","+t+"H-"+t+"V-"+t+"H"+t+"Z"},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e){var t=n.round(1.3*e,2);return"M"+t+",0L0,"+t+"L-"+t+",0L0,-"+t+"ZM0,-"+t+"V"+t+"M-"+t+",0H"+t},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e){var t=n.round(1.3*e,2),r=n.round(.65*e,2);return"M"+t+",0L0,"+t+"L-"+t+",0L0,-"+t+"ZM-"+r+",-"+r+"L"+r+","+r+"M-"+r+","+r+"L"+r+",-"+r},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e){var t=n.round(1.4*e,2);return"M0,"+t+"V-"+t+"M"+t+",0H-"+t},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e){var t=n.round(e,2);return"M"+t+","+t+"L-"+t+",-"+t+"M"+t+",-"+t+"L-"+t+","+t},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e){var t=n.round(1.2*e,2),r=n.round(.85*e,2);return"M0,"+t+"V-"+t+"M"+t+",0H-"+t+"M"+r+","+r+"L-"+r+",-"+r+"M"+r+",-"+r+"L-"+r+","+r},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e){var t=n.round(e/2,2),r=n.round(e,2);return"M"+t+","+r+"V-"+r+"m-"+r+",0V"+r+"M"+r+","+t+"H-"+r+"m0,-"+r+"H"+r},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e){var t=n.round(1.2*e,2),r=n.round(1.6*e,2),a=n.round(.8*e,2);return"M-"+t+","+a+"L0,0M"+t+","+a+"L0,0M0,-"+r+"L0,0"},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e){var t=n.round(1.2*e,2),r=n.round(1.6*e,2),a=n.round(.8*e,2);return"M-"+t+",-"+a+"L0,0M"+t+",-"+a+"L0,0M0,"+r+"L0,0"},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e){var t=n.round(1.2*e,2),r=n.round(1.6*e,2),a=n.round(.8*e,2);return"M"+a+","+t+"L0,0M"+a+",-"+t+"L0,0M-"+r+",0L0,0"},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e){var t=n.round(1.2*e,2),r=n.round(1.6*e,2),a=n.round(.8*e,2);return"M-"+a+","+t+"L0,0M-"+a+",-"+t+"L0,0M"+r+",0L0,0"},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e){var t=n.round(1.4*e,2);return"M"+t+",0H-"+t},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e){var t=n.round(1.4*e,2);return"M0,"+t+"V-"+t},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e){var t=n.round(e,2);return"M"+t+",-"+t+"L-"+t+","+t},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e){var t=n.round(e,2);return"M"+t+","+t+"L-"+t+",-"+t},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e){var t=n.round(e,2);return"M0,0L-"+t+","+n.round(2*e,2)+"H"+t+"Z"},noDot:!0},"arrow-down":{n:46,f:function(e){var t=n.round(e,2);return"M0,0L-"+t+",-"+n.round(2*e,2)+"H"+t+"Z"},noDot:!0},"arrow-left":{n:47,f:function(e){var t=n.round(2*e,2),r=n.round(e,2);return"M0,0L"+t+",-"+r+"V"+r+"Z"},noDot:!0},"arrow-right":{n:48,f:function(e){var t=n.round(2*e,2),r=n.round(e,2);return"M0,0L-"+t+",-"+r+"V"+r+"Z"},noDot:!0},"arrow-bar-up":{n:49,f:function(e){var t=n.round(e,2);return"M-"+t+",0H"+t+"M0,0L-"+t+","+n.round(2*e,2)+"H"+t+"Z"},needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e){var t=n.round(e,2);return"M-"+t+",0H"+t+"M0,0L-"+t+",-"+n.round(2*e,2)+"H"+t+"Z"},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e){var t=n.round(2*e,2),r=n.round(e,2);return"M0,-"+r+"V"+r+"M0,0L"+t+",-"+r+"V"+r+"Z"},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e){var t=n.round(2*e,2),r=n.round(e,2);return"M0,-"+r+"V"+r+"M0,0L-"+t+",-"+r+"V"+r+"Z"},needLine:!0,noDot:!0}}},{"@plotly/d3":20}],181:[function(e,t,r){"use strict";t.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc",_deprecated:{opacity:{valType:"number",editType:"style"}}}},{}],182:[function(e,t,r){"use strict";var n=e("fast-isnumeric"),a=e("../../registry"),i=e("../../plots/cartesian/axes"),o=e("../../lib"),l=e("./compute_error");function s(e,t,r,a){var s=t["error_"+a]||{},c=[];if(s.visible&&-1!==["linear","log"].indexOf(r.type)){for(var u=l(s),f=0;f0;t.each((function(t){var f,d=t[0].trace,p=d.error_x||{},h=d.error_y||{};d.ids&&(f=function(e){return e.id});var m=o.hasMarkers(d)&&d.marker.maxdisplayed>0;h.visible||p.visible||(t=[]);var y=n.select(this).selectAll("g.errorbar").data(t,f);if(y.exit().remove(),t.length){p.visible||y.selectAll("path.xerror").remove(),h.visible||y.selectAll("path.yerror").remove(),y.style("opacity",1);var g=y.enter().append("g").classed("errorbar",!0);u&&g.style("opacity",0).transition().duration(l.duration).style("opacity",1),i.setClipUrl(y,r.layerClipId,e),y.each((function(e){var t=n.select(this),r=function(e,t,r){var n={x:t.c2p(e.x),y:r.c2p(e.y)};return void 0!==e.yh&&(n.yh=r.c2p(e.yh),n.ys=r.c2p(e.ys),a(n.ys)||(n.noYS=!0,n.ys=r.c2p(e.ys,!0))),void 0!==e.xh&&(n.xh=t.c2p(e.xh),n.xs=t.c2p(e.xs),a(n.xs)||(n.noXS=!0,n.xs=t.c2p(e.xs,!0))),n}(e,s,c);if(!m||e.vis){var i,o=t.select("path.yerror");if(h.visible&&a(r.x)&&a(r.yh)&&a(r.ys)){var f=h.width;i="M"+(r.x-f)+","+r.yh+"h"+2*f+"m-"+f+",0V"+r.ys,r.noYS||(i+="m-"+f+",0h"+2*f),o.size()?u&&(o=o.transition().duration(l.duration).ease(l.easing)):o=t.append("path").style("vector-effect","non-scaling-stroke").classed("yerror",!0),o.attr("d",i)}else o.remove();var d=t.select("path.xerror");if(p.visible&&a(r.y)&&a(r.xh)&&a(r.xs)){var y=(p.copy_ystyle?h:p).width;i="M"+r.xh+","+(r.y-y)+"v"+2*y+"m0,-"+y+"H"+r.xs,r.noXS||(i+="m0,-"+y+"v"+2*y),d.size()?u&&(d=d.transition().duration(l.duration).ease(l.easing)):d=t.append("path").style("vector-effect","non-scaling-stroke").classed("xerror",!0),d.attr("d",i)}else d.remove()}}))}}))}},{"../../traces/scatter/subtypes":522,"../drawing":179,"@plotly/d3":20,"fast-isnumeric":33}],187:[function(e,t,r){"use strict";var n=e("@plotly/d3"),a=e("../color");t.exports=function(e){e.each((function(e){var t=e[0].trace,r=t.error_y||{},i=t.error_x||{},o=n.select(this);o.selectAll("path.yerror").style("stroke-width",r.thickness+"px").call(a.stroke,r.color),i.copy_ystyle&&(i=r),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(a.stroke,i.color)}))}},{"../color":157,"@plotly/d3":20}],188:[function(e,t,r){"use strict";var n=e("../../plots/font_attributes"),a=e("./layout_attributes").hoverlabel,i=e("../../lib/extend").extendFlat;t.exports={hoverlabel:{bgcolor:i({},a.bgcolor,{arrayOk:!0}),bordercolor:i({},a.bordercolor,{arrayOk:!0}),font:n({arrayOk:!0,editType:"none"}),align:i({},a.align,{arrayOk:!0}),namelength:i({},a.namelength,{arrayOk:!0}),editType:"none"}}},{"../../lib/extend":281,"../../plots/font_attributes":363,"./layout_attributes":198}],189:[function(e,t,r){"use strict";var n=e("../../lib"),a=e("../../registry");function i(e,t,r,a){a=a||n.identity,Array.isArray(e)&&(t[0][r]=a(e))}t.exports=function(e){var t=e.calcdata,r=e._fullLayout;function o(e){return function(t){return n.coerceHoverinfo({hoverinfo:t},{_module:e._module},r)}}for(var l=0;l=0&&r.indexb[0]._length||ie<0||ie>_[0]._length)return h.unhoverRaw(e,t)}else ae="xpx"in t?t.xpx:b[0]._length/2,ie="ypx"in t?t.ypx:_[0]._length/2;if(t.pointerX=ae+b[0]._offset,t.pointerY=ie+_[0]._offset,R="xval"in t?g.flat(l,t.xval):g.p2c(b,ae),j="yval"in t?g.flat(l,t.yval):g.p2c(_,ie),!a(R[0])||!a(j[0]))return o.warn("Fx.hover failed",t,e),h.unhoverRaw(e,t)}var ce=1/0;function ue(e,r){for(q=0;q$&&(ee.splice(0,$),ce=ee[0].distance),m&&0!==E&&0===ee.length){Q.distance=E,Q.index=!1;var f=G._module.hoverPoints(Q,J,K,"closest",{hoverLayer:s._hoverlayer});if(f&&(f=f.filter((function(e){return e.spikeDistance<=E}))),f&&f.length){var d,h=f.filter((function(e){return e.xa.showspikes&&"hovered data"!==e.xa.spikesnap}));if(h.length){var y=h[0];a(y.x0)&&a(y.y0)&&(d=de(y),(!re.vLinePoint||re.vLinePoint.spikeDistance>d.spikeDistance)&&(re.vLinePoint=d))}var v=f.filter((function(e){return e.ya.showspikes&&"hovered data"!==e.ya.spikesnap}));if(v.length){var x=v[0];a(x.x0)&&a(x.y0)&&(d=de(x),(!re.hLinePoint||re.hLinePoint.spikeDistance>d.spikeDistance)&&(re.hLinePoint=d))}}}}}function fe(e,t,r){for(var n,a=null,i=1/0,o=0;o0&&Math.abs(e.distance)Te-1;Me--)Se(ee[Me]);ee=ke,ye()}var Oe=e._hoverdata,De=[],Ce=H(e),Ee=U(e);for(Y=0;Y1||ee.length>1)||"closest"===L&&ne&&ee.length>1,Ve=p.combine(s.plot_bgcolor||p.background,s.paper_bgcolor),Ge=P(ee,{gd:e,hovermode:L,rotateLabels:qe,bgColor:Ve,container:s._hoverlayer,outerContainer:s._paper.node(),commonLabelOpts:s.hoverlabel,hoverdistance:s.hoverdistance});if(g.isUnifiedHover(L)||(function(e,t,r){var n,a,i,o,l,s,c,u=0,f=1,d=e.size(),p=new Array(d),h=0;function m(e){var t=e[0],r=e[e.length-1];if(a=t.pmin-t.pos-t.dp+t.size,i=r.pos+r.dp+r.size-t.pmax,a>.01){for(l=e.length-1;l>=0;l--)e[l].dp+=a;n=!1}if(!(i<.01)){if(a<-.01){for(l=e.length-1;l>=0;l--)e[l].dp-=i;n=!1}if(n){var c=0;for(o=0;ot.pmax&&c++;for(o=e.length-1;o>=0&&!(c<=0);o--)(s=e[o]).pos>t.pmax-1&&(s.del=!0,c--);for(o=0;o=0;l--)e[l].dp-=i;for(o=e.length-1;o>=0&&!(c<=0);o--)(s=e[o]).pos+s.dp+s.size>t.pmax&&(s.del=!0,c--)}}}for(e.each((function(e){var n=e[t],a="x"===n._id.charAt(0),i=n.range;0===h&&i&&i[0]>i[1]!==a&&(f=-1),p[h++]=[{datum:e,traceIndex:e.trace.index,dp:0,pos:e.pos,posref:e.posref,size:e.by*(a?T:1)/2,pmin:0,pmax:a?r.width:r.height}]})),p.sort((function(e,t){return e[0].posref-t[0].posref||f*(t[0].traceIndex-e[0].traceIndex)}));!n&&u<=d;){for(u++,n=!0,o=0;o.01&&v.pmin===x.pmin&&v.pmax===x.pmax){for(l=g.length-1;l>=0;l--)g[l].dp+=a;for(y.push.apply(y,g),p.splice(o+1,1),c=0,l=y.length-1;l>=0;l--)c+=y[l].dp;for(i=c/y.length,l=y.length-1;l>=0;l--)y[l].dp-=i;n=!1}else o++}p.forEach(m)}for(o=p.length-1;o>=0;o--){var b=p[o];for(l=b.length-1;l>=0;l--){var _=b[l],w=_.datum;w.offset=_.dp,w.del=_.del}}}(Ge,qe?"xa":"ya",s),z(Ge,qe,s._invScaleX,s._invScaleY)),t.target&&t.target.tagName){var Ze=y.getComponentMethod("annotations","hasClickToShow")(e,De);f(n.select(t.target),Ze?"pointer":"")}t.target&&!i&&function(e,t,r){if(!r||r.length!==e._hoverdata.length)return!0;for(var n=r.length-1;n>=0;n--){var a=r[n],i=e._hoverdata[n];if(a.curveNumber!==i.curveNumber||String(a.pointNumber)!==String(i.pointNumber)||String(a.pointNumbers)!==String(i.pointNumbers))return!0}return!1}(e,0,Oe)&&(Oe&&e.emit("plotly_unhover",{event:t,points:Oe}),e.emit("plotly_hover",{event:t,points:e._hoverdata,xaxes:b,yaxes:_,xvals:R,yvals:j}))}function C(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}r.hover=function(e,t,r,n){e=o.getGraphDiv(e),o.throttle(e._fullLayout._uid+v.HOVERID,v.HOVERMINTIME,(function(){D(e,t,r,n)}))},r.loneHover=function(e,t){var r=!0;Array.isArray(e)||(r=!1,e=[e]);var a=t.gd,i=H(a),o=U(a),l=P(e.map((function(e){var r=e._x0||e.x0||e.x||0,n=e._x1||e.x1||e.x||0,l=e._y0||e.y0||e.y||0,s=e._y1||e.y1||e.y||0,c=e.eventData;if(c){var u=Math.min(r,n),f=Math.max(r,n),d=Math.min(l,s),h=Math.max(l,s),m=e.trace;if(y.traceIs(m,"gl3d")){var g=a._fullLayout[m.scene]._scene.container,v=g.offsetLeft,x=g.offsetTop;u+=v,f+=v,d+=x,h+=x}c.bbox={x0:u+o,x1:f+o,y0:d+i,y1:h+i},t.inOut_bbox&&t.inOut_bbox.push(c.bbox)}else c=!1;return{color:e.color||p.defaultLine,x0:e.x0||e.x||0,x1:e.x1||e.x||0,y0:e.y0||e.y||0,y1:e.y1||e.y||0,xLabel:e.xLabel,yLabel:e.yLabel,zLabel:e.zLabel,text:e.text,name:e.name,idealAlign:e.idealAlign,borderColor:e.borderColor,fontFamily:e.fontFamily,fontSize:e.fontSize,fontColor:e.fontColor,nameLength:e.nameLength,textAlign:e.textAlign,trace:e.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:e.hovertemplate||!1,hovertemplateLabels:e.hovertemplateLabels||!1,eventData:c}})),{gd:a,hovermode:"closest",rotateLabels:false,bgColor:t.bgColor||p.background,container:n.select(t.container),outerContainer:t.outerContainer||t.container}),s=0,c=0;return l.sort((function(e,t){return e.y0-t.y0})).each((function(e,r){var n=e.y0-e.by/2;e.offset=n-5([\s\S]*)<\/extra>/;function P(e,t){var r=t.gd,a=r._fullLayout,i=t.hovermode,c=t.rotateLabels,f=t.bgColor,h=t.container,m=t.outerContainer,w=t.commonLabelOpts||{},T=t.fontFamily||v.HOVERFONT,M=t.fontSize||v.HOVERFONTSIZE,k=e[0],S=k.xa,O=k.ya,D=i.charAt(0),E=k[D+"Label"],P=Y(r,m),z=P.top,I=P.width,N=P.height,F=void 0!==E&&k.distance<=t.hoverdistance&&("x"===i||"y"===i);if(F){var j,B,H=!0;for(j=0;ja.width-b?(y=a.width-b,t.attr("d","M"+(b-A)+",0L"+b+","+x+A+"v"+x+(2*L+v.height)+"H-"+b+"V"+x+A+"H"+(b-2*A)+"Z")):t.attr("d","M0,0L"+A+","+x+A+"H"+(L+v.width/2)+"v"+x+(2*L+v.height)+"H-"+(L+v.width/2)+"V"+x+A+"H-"+A+"Z")}else{var _,D,C;"right"===O.side?(_="start",D=1,C="",y=S._offset+S._length):(_="end",D=-1,C="-",y=S._offset),g=O._offset+(k.y0+k.y1)/2,s.attr("text-anchor",_),t.attr("d","M0,0L"+C+A+","+A+"V"+(L+v.height/2)+"h"+C+(2*L+v.width)+"V-"+(L+v.height/2)+"H"+C+A+"V-"+A+"Z");var P,R=v.height/2,I=z-v.top-R,N="clip"+a._uid+"commonlabel"+O._id;if(y=0?ae:ie+se=0?ie:ye+se=0?re:ne+ce=0?ne:ge+ce=0,"top"!==e.idealAlign&&V||!G?V?(P+=B/2,e.anchor="start"):e.anchor="middle":(P-=B/2,e.anchor="end");else if(e.pos=P,V=C+j/2+Z<=I,G=C-j/2-Z>=0,"left"!==e.idealAlign&&V||!G)if(V)C+=j/2,e.anchor="start";else{e.anchor="middle";var W=Z/2,X=C+W-I,J=C-W;X>0&&(C-=X),J<0&&(C+=-J)}else C-=j/2,e.anchor="end";w.attr("text-anchor",e.anchor),S&&k.attr("text-anchor",e.anchor),t.attr("transform",l(C,P)+(c?s(_):""))})),ve}function R(e,t,r,n,a,i){var l="",s="";void 0!==e.nameOverride&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=o.templateString(e.name,e.trace._meta)),l=j(e.name,e.nameLength));var c=r.charAt(0),u="x"===c?"y":"x";void 0!==e.zLabel?(void 0!==e.xLabel&&(s+="x: "+e.xLabel+"
"),void 0!==e.yLabel&&(s+="y: "+e.yLabel+"
"),"choropleth"!==e.trace.type&&"choroplethmapbox"!==e.trace.type&&(s+=(s?"z: ":"")+e.zLabel)):t&&e[c+"Label"]===a?s=e[u+"Label"]||"":void 0===e.xLabel?void 0!==e.yLabel&&"scattercarpet"!==e.trace.type&&(s=e.yLabel):s=void 0===e.yLabel?e.xLabel:"("+e.xLabel+", "+e.yLabel+")",!e.text&&0!==e.text||Array.isArray(e.text)||(s+=(s?"
":"")+e.text),void 0!==e.extraText&&(s+=(s?"
":"")+e.extraText),i&&""===s&&!e.hovertemplate&&(""===l&&i.remove(),s=l);var f=e.hovertemplate||!1;if(f){var d=e.hovertemplateLabels||e;e[c+"Label"]!==a&&(d[c+"other"]=d[c+"Val"],d[c+"otherLabel"]=d[c+"Label"]),s=(s=o.hovertemplateString(f,d,n._d3locale,e.eventData[0]||{},e.trace._meta)).replace(E,(function(t,r){return l=j(r,e.nameLength),""}))}return[s,l]}function z(e,t,r,a){var i=function(e){return e*r},o=function(e){return e*a};e.each((function(e){var r=n.select(this);if(e.del)return r.remove();var a=r.select("text.nums"),l=e.anchor,s="end"===l?-1:1,c={start:1,end:-1,middle:0}[l],f=c*(A+L),p=f+c*(e.txwidth+L),h=0,m=e.offset,y="middle"===l;y&&(f-=e.tx2width/2,p+=e.txwidth/2+L),t&&(m*=-k,h=e.offset*M),r.select("path").attr("d",y?"M-"+i(e.bx/2+e.tx2width/2)+","+o(m-e.by/2)+"h"+i(e.bx)+"v"+o(e.by)+"h-"+i(e.bx)+"Z":"M0,0L"+i(s*A+h)+","+o(A+m)+"v"+o(e.by/2-A)+"h"+i(s*e.bx)+"v-"+o(e.by)+"H"+i(s*A+h)+"V"+o(m-A)+"Z");var g=h+f,v=m+e.ty0-e.by/2+L,x=e.textAlign||"auto";"auto"!==x&&("left"===x&&"start"!==l?(a.attr("text-anchor","start"),g=y?-e.bx/2-e.tx2width/2+L:-e.bx-L):"right"===x&&"end"!==l&&(a.attr("text-anchor","end"),g=y?e.bx/2-e.tx2width/2-L:e.bx+L)),a.call(u.positionText,i(g),o(v)),e.tx2width&&(r.select("text.name").call(u.positionText,i(p+c*L+h),o(m+e.ty0-e.by/2+L)),r.select("rect").call(d.setRect,i(p+(c-1)*e.tx2width/2+h),o(m-e.by/2-1),i(e.tx2width),o(e.by+2)))}))}function I(e,t){var r=e.index,n=e.trace||{},i=e.cd[0],l=e.cd[r]||{};function s(e){return e||a(e)&&0===e}var c=Array.isArray(r)?function(e,t){var a=o.castOption(i,r,e);return s(a)?a:o.extractOption({},n,"",t)}:function(e,t){return o.extractOption(l,n,e,t)};function u(t,r,n){var a=c(r,n);s(a)&&(e[t]=a)}if(u("hoverinfo","hi","hoverinfo"),u("bgcolor","hbg","hoverlabel.bgcolor"),u("borderColor","hbc","hoverlabel.bordercolor"),u("fontFamily","htf","hoverlabel.font.family"),u("fontSize","hts","hoverlabel.font.size"),u("fontColor","htc","hoverlabel.font.color"),u("nameLength","hnl","hoverlabel.namelength"),u("textAlign","hta","hoverlabel.align"),e.posref="y"===t||"closest"===t&&"h"===n.orientation?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=o.constrain(e.x0,0,e.xa._length),e.x1=o.constrain(e.x1,0,e.xa._length),e.y0=o.constrain(e.y0,0,e.ya._length),e.y1=o.constrain(e.y1,0,e.ya._length),void 0!==e.xLabelVal&&(e.xLabel="xLabel"in e?e.xLabel:m.hoverLabelText(e.xa,e.xLabelVal,n.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),void 0!==e.yLabelVal&&(e.yLabel="yLabel"in e?e.yLabel:m.hoverLabelText(e.ya,e.yLabelVal,n.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),void 0!==e.zLabelVal&&void 0===e.zLabel&&(e.zLabel=String(e.zLabelVal)),!(isNaN(e.xerr)||"log"===e.xa.type&&e.xerr<=0)){var f=m.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;void 0!==e.xerrneg?e.xLabel+=" +"+f+" / -"+m.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" ± "+f,"x"===t&&(e.distance+=1)}if(!(isNaN(e.yerr)||"log"===e.ya.type&&e.yerr<=0)){var d=m.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;void 0!==e.yerrneg?e.yLabel+=" +"+d+" / -"+m.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" ± "+d,"y"===t&&(e.distance+=1)}var p=e.hoverinfo||e.trace.hoverinfo;return p&&"all"!==p&&(-1===(p=Array.isArray(p)?p:p.split("+")).indexOf("x")&&(e.xLabel=void 0),-1===p.indexOf("y")&&(e.yLabel=void 0),-1===p.indexOf("z")&&(e.zLabel=void 0),-1===p.indexOf("text")&&(e.text=void 0),-1===p.indexOf("name")&&(e.name=void 0)),e}function N(e,t,r){var n,a,o=r.container,l=r.fullLayout,s=l._size,c=r.event,u=!!t.hLinePoint,f=!!t.vLinePoint;if(o.selectAll(".spikeline").remove(),f||u){var h=p.combine(l.plot_bgcolor,l.paper_bgcolor);if(u){var y,g,v=t.hLinePoint;n=v&&v.xa,"cursor"===(a=v&&v.ya).spikesnap?(y=c.pointerX,g=c.pointerY):(y=n._offset+v.x,g=a._offset+v.y);var x,b,_=i.readability(v.color,h)<1.5?p.contrast(h):v.color,w=a.spikemode,T=a.spikethickness,M=a.spikecolor||_,k=m.getPxPosition(e,a);if(-1!==w.indexOf("toaxis")||-1!==w.indexOf("across")){if(-1!==w.indexOf("toaxis")&&(x=k,b=y),-1!==w.indexOf("across")){var A=a._counterDomainMin,L=a._counterDomainMax;"free"===a.anchor&&(A=Math.min(A,a.position),L=Math.max(L,a.position)),x=s.l+A*s.w,b=s.l+L*s.w}o.insert("line",":first-child").attr({x1:x,x2:b,y1:g,y2:g,"stroke-width":T,stroke:M,"stroke-dasharray":d.dashStyle(a.spikedash,T)}).classed("spikeline",!0).classed("crisp",!0),o.insert("line",":first-child").attr({x1:x,x2:b,y1:g,y2:g,"stroke-width":T+2,stroke:h}).classed("spikeline",!0).classed("crisp",!0)}-1!==w.indexOf("marker")&&o.insert("circle",":first-child").attr({cx:k+("right"!==a.side?T:-T),cy:g,r:T,fill:M}).classed("spikeline",!0)}if(f){var S,O,D=t.vLinePoint;n=D&&D.xa,a=D&&D.ya,"cursor"===n.spikesnap?(S=c.pointerX,O=c.pointerY):(S=n._offset+D.x,O=a._offset+D.y);var C,E,P=i.readability(D.color,h)<1.5?p.contrast(h):D.color,R=n.spikemode,z=n.spikethickness,I=n.spikecolor||P,N=m.getPxPosition(e,n);if(-1!==R.indexOf("toaxis")||-1!==R.indexOf("across")){if(-1!==R.indexOf("toaxis")&&(C=N,E=O),-1!==R.indexOf("across")){var F=n._counterDomainMin,j=n._counterDomainMax;"free"===n.anchor&&(F=Math.min(F,n.position),j=Math.max(j,n.position)),C=s.t+(1-j)*s.h,E=s.t+(1-F)*s.h}o.insert("line",":first-child").attr({x1:S,x2:S,y1:C,y2:E,"stroke-width":z,stroke:I,"stroke-dasharray":d.dashStyle(n.spikedash,z)}).classed("spikeline",!0).classed("crisp",!0),o.insert("line",":first-child").attr({x1:S,x2:S,y1:C,y2:E,"stroke-width":z+2,stroke:h}).classed("spikeline",!0).classed("crisp",!0)}-1!==R.indexOf("marker")&&o.insert("circle",":first-child").attr({cx:S,cy:N-("top"!==n.side?z:-z),r:z,fill:I}).classed("spikeline",!0)}}}function F(e,t){return!t||t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint}function j(e,t){return u.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em"]})}function B(e,t,r){var n=t[e+"a"],a=t[e+"Val"],i=t.cd[0];if("category"===n.type)a=n._categoriesMap[a];else if("date"===n.type){var o=t.trace[e+"periodalignment"];if(o){var l=t.cd[t.index],s=l[e+"Start"];void 0===s&&(s=l[e]);var c=l[e+"End"];void 0===c&&(c=l[e]);var u=c-s;"end"===o?a+=u:"middle"===o&&(a+=u/2)}a=n.d2c(a)}return i&&i.t&&i.t.posLetter===n._id&&("group"!==r.boxmode&&"group"!==r.violinmode||(a+=i.t.dPos)),a}function H(e){return e.offsetTop+e.clientTop}function U(e){return e.offsetLeft+e.clientLeft}function Y(e,t){var r=e._fullLayout,n=t.getBoundingClientRect(),a=n.x,i=n.y,l=a+n.width,s=i+n.height,c=o.apply3DTransform(r._invTransform)(a,i),u=o.apply3DTransform(r._invTransform)(l,s),f=c[0],d=c[1],p=u[0],h=u[1];return{x:f,y:d,width:p-f,height:h-d,top:Math.min(d,h),left:Math.min(f,p),right:Math.max(f,p),bottom:Math.max(d,h)}}},{"../../lib":287,"../../lib/events":280,"../../lib/override_cursor":298,"../../lib/svg_text_utils":310,"../../plots/cartesian/axes":334,"../../registry":376,"../color":157,"../dragelement":176,"../drawing":179,"../legend/defaults":209,"../legend/draw":210,"./constants":191,"./helpers":193,"@plotly/d3":20,"fast-isnumeric":33,tinycolor2:121}],195:[function(e,t,r){"use strict";var n=e("../../lib"),a=e("../color"),i=e("./helpers").isUnifiedHover;t.exports=function(e,t,r,o){function l(e){o.font[e]||(o.font[e]=t.legend?t.legend.font[e]:t.font[e])}o=o||{},t&&i(t.hovermode)&&(o.font||(o.font={}),l("size"),l("family"),l("color"),t.legend?(o.bgcolor||(o.bgcolor=a.combine(t.legend.bgcolor,t.paper_bgcolor)),o.bordercolor||(o.bordercolor=t.legend.bordercolor)):o.bgcolor||(o.bgcolor=t.paper_bgcolor)),r("hoverlabel.bgcolor",o.bgcolor),r("hoverlabel.bordercolor",o.bordercolor),r("hoverlabel.namelength",o.namelength),n.coerceFont(r,"hoverlabel.font",o.font),r("hoverlabel.align",o.align)}},{"../../lib":287,"../color":157,"./helpers":193}],196:[function(e,t,r){"use strict";var n=e("../../lib"),a=e("./layout_attributes");t.exports=function(e,t){function r(r,i){return void 0!==t[r]?t[r]:n.coerce(e,t,a,r,i)}return r("clickmode"),r("hovermode")}},{"../../lib":287,"./layout_attributes":198}],197:[function(e,t,r){"use strict";var n=e("@plotly/d3"),a=e("../../lib"),i=e("../dragelement"),o=e("./helpers"),l=e("./layout_attributes"),s=e("./hover");t.exports={moduleType:"component",name:"fx",constants:e("./constants"),schema:{layout:l},attributes:e("./attributes"),layoutAttributes:l,supplyLayoutGlobalDefaults:e("./layout_global_defaults"),supplyDefaults:e("./defaults"),supplyLayoutDefaults:e("./layout_defaults"),calc:e("./calc"),getDistanceFunction:o.getDistanceFunction,getClosest:o.getClosest,inbox:o.inbox,quadrature:o.quadrature,appendArrayPointValue:o.appendArrayPointValue,castHoverOption:function(e,t,r){return a.castOption(e,t,"hoverlabel."+r)},castHoverinfo:function(e,t,r){return a.castOption(e,r,"hoverinfo",(function(r){return a.coerceHoverinfo({hoverinfo:r},{_module:e._module},t)}))},hover:s.hover,unhover:i.unhover,loneHover:s.loneHover,loneUnhover:function(e){var t=a.isD3Selection(e)?e:n.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()},click:e("./click")}},{"../../lib":287,"../dragelement":176,"./attributes":188,"./calc":189,"./click":190,"./constants":191,"./defaults":192,"./helpers":193,"./hover":194,"./layout_attributes":198,"./layout_defaults":199,"./layout_global_defaults":200,"@plotly/d3":20}],198:[function(e,t,r){"use strict";var n=e("./constants"),a=e("../../plots/font_attributes")({editType:"none"});a.family.dflt=n.HOVERFONT,a.size.dflt=n.HOVERFONTSIZE,t.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:a,align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}},{"../../plots/font_attributes":363,"./constants":191}],199:[function(e,t,r){"use strict";var n=e("../../lib"),a=e("./layout_attributes"),i=e("./hovermode_defaults"),o=e("./hoverlabel_defaults");t.exports=function(e,t){function r(r,i){return n.coerce(e,t,a,r,i)}i(e,t)&&(r("hoverdistance"),r("spikedistance")),"select"===r("dragmode")&&r("selectdirection");var l=t._has("mapbox"),s=t._has("geo"),c=t._basePlotModules.length;"zoom"===t.dragmode&&((l||s)&&1===c||l&&s&&2===c)&&(t.dragmode="pan"),o(e,t,r)}},{"../../lib":287,"./hoverlabel_defaults":195,"./hovermode_defaults":196,"./layout_attributes":198}],200:[function(e,t,r){"use strict";var n=e("../../lib"),a=e("./hoverlabel_defaults"),i=e("./layout_attributes");t.exports=function(e,t){a(e,t,(function(r,a){return n.coerce(e,t,i,r,a)}))}},{"../../lib":287,"./hoverlabel_defaults":195,"./layout_attributes":198}],201:[function(e,t,r){"use strict";var n=e("../../lib"),a=e("../../lib/regex").counter,i=e("../../plots/domain").attributes,o=e("../../plots/cartesian/constants").idRegex,l=e("../../plot_api/plot_template"),s={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[a("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[o.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[o.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:i({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function c(e,t,r){var n=t[r+"axes"],a=Object.keys((e._splomAxes||{})[r]||{});return Array.isArray(n)?n:a.length?a:void 0}function u(e,t,r,n,a,i){var o=t(e+"gap",r),l=t("domain."+e);t(e+"side",n);for(var s=new Array(a),c=l[0],u=(l[1]-c)/(a-o),f=u*(1-o),d=0;d1){d||p||h||"independent"===M("pattern")&&(d=!0),y._hasSubplotGrid=d;var x,b,_="top to bottom"===M("roworder"),w=d?.2:.1,T=d?.3:.1;m&&t._splomGridDflt&&(x=t._splomGridDflt.xside,b=t._splomGridDflt.yside),y._domains={x:u("x",M,w,x,v),y:u("y",M,T,b,g,_)}}else delete t.grid}function M(e,t){return n.coerce(r,y,s,e,t)}},contentDefaults:function(e,t){var r=t.grid;if(r&&r._domains){var n,a,i,o,l,s,u,d=e.grid||{},p=t._subplots,h=r._hasSubplotGrid,m=r.rows,y=r.columns,g="independent"===r.pattern,v=r._axisMap={};if(h){var x=d.subplots||[];s=r.subplots=new Array(m);var b=1;for(n=0;n1);if(!1!==m||c.uirevision){var y=i.newContainer(t,"legend");if(T("uirevision",t.uirevision),!1!==m){T("bgcolor",t.paper_bgcolor),T("bordercolor"),T("borderwidth");var g,v,x,b=a.coerceFont(T,"font",t.font),_="h"===T("orientation");if(_?(g=0,n.getComponentMethod("rangeslider","isVisible")(e.xaxis)?(v=1.1,x="bottom"):(v=-.1,x="top")):(g=1.02,v=1,x="auto"),T("traceorder",d),s.isGrouped(t.legend)&&T("tracegroupgap"),T("itemsizing"),T("itemwidth"),T("itemclick"),T("itemdoubleclick"),T("groupclick"),T("x",g),T("xanchor"),T("y",v),T("yanchor",x),T("valign"),a.noneOrAll(c,y,["x","y"]),T("title.text")){T("title.side",_?"left":"top");var w=a.extendFlat({},b,{size:a.bigFont(b.size)});a.coerceFont(T,"title.font",w)}}}function T(e,t){return a.coerce(c,y,o,e,t)}}},{"../../lib":287,"../../plot_api/plot_template":323,"../../plots/layout_attributes":367,"../../registry":376,"./attributes":207,"./helpers":213}],210:[function(e,t,r){"use strict";var n=e("@plotly/d3"),a=e("../../lib"),i=e("../../plots/plots"),o=e("../../registry"),l=e("../../lib/events"),s=e("../dragelement"),c=e("../drawing"),u=e("../color"),f=e("../../lib/svg_text_utils"),d=e("./handle_click"),p=e("./constants"),h=e("../../constants/alignment"),m=h.LINE_SPACING,y=h.FROM_TL,g=h.FROM_BR,v=e("./get_legend_data"),x=e("./style"),b=e("./helpers"),_=1;function w(e,t){var r,l=e._fullLayout,f="legend"+l._uid,d=t._inHover;if(d?(r=t.layer,f+="-hover"):r=l._infolayer,r){var h;if(e._legendMouseDownTime||(e._legendMouseDownTime=0),d){if(!t.entries)return;h=v(t.entries,t)}else{if(!e.calcdata)return;h=l.showlegend&&v(e.calcdata,t)}var m=l.hiddenlabels||[];if(!(d||l.showlegend&&h.length))return r.selectAll(".legend").remove(),l._topdefs.select("#"+f).remove(),i.autoMargin(e,"legend");var w=a.ensureSingle(r,"g","legend",(function(e){d||e.attr("pointer-events","all")})),k=a.ensureSingleById(l._topdefs,"clipPath",f,(function(e){e.append("rect")})),D=a.ensureSingle(w,"rect","bg",(function(e){e.attr("shape-rendering","crispEdges")}));D.call(u.stroke,t.bordercolor).call(u.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var C=a.ensureSingle(w,"g","scrollbox"),E=t.title;if(t._titleWidth=0,t._titleHeight=0,E.text){var P=a.ensureSingle(C,"text","legendtitletext");P.attr("text-anchor","start").call(c.font,E.font).text(E.text),L(P,C,e,t,_)}else C.selectAll(".legendtitletext").remove();var R=a.ensureSingle(w,"rect","scrollbar",(function(e){e.attr(p.scrollBarEnterAttrs).call(u.fill,p.scrollBarColor)})),z=C.selectAll("g.groups").data(h);z.enter().append("g").attr("class","groups"),z.exit().remove();var I=z.selectAll("g.traces").data(a.identity);I.enter().append("g").attr("class","traces"),I.exit().remove(),I.style("opacity",(function(e){var t=e[0].trace;return o.traceIs(t,"pie-like")?-1!==m.indexOf(e[0].label)?.5:1:"legendonly"===t.visible?.5:1})).each((function(){n.select(this).call(M,e,t)})).call(x,e,t).each((function(){d||n.select(this).call(A,e)})),a.syncOrAsync([i.previousPromises,function(){return function(e,t,r,a){var i=e._fullLayout;a||(a=i.legend);var o=i._size,l=b.isVertical(a),s=b.isGrouped(a),u=a.borderwidth,f=2*u,d=p.itemGap,h=a.itemwidth+2*d,m=2*(u+d),y=O(a),g=a.y<0||0===a.y&&"top"===y,v=a.y>1||1===a.y&&"bottom"===y,x=a.tracegroupgap;a._maxHeight=Math.max(g||v?i.height/2:o.h,30);var _=0;a._width=0,a._height=0;var w=function(e){var t=0,r=0,n=e.title.side;return n&&(-1!==n.indexOf("left")&&(t=e._titleWidth),-1!==n.indexOf("top")&&(r=e._titleHeight)),[t,r]}(a);if(l)r.each((function(e){var t=e[0].height;c.setTranslate(this,u+w[0],u+w[1]+a._height+t/2+d),a._height+=t,a._width=Math.max(a._width,e[0].width)})),_=h+a._width,a._width+=d+h+f,a._height+=m,s&&(t.each((function(e,t){c.setTranslate(this,0,t*a.tracegroupgap)})),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var T=S(a),M=a.x<0||0===a.x&&"right"===T,k=a.x>1||1===a.x&&"left"===T,A=v||g,L=i.width/2;a._maxWidth=Math.max(M?A&&"left"===T?o.l+o.w:L:k?A&&"right"===T?o.r+o.w:L:o.w,2*h);var D=0,C=0;r.each((function(e){var t=e[0].width+h;D=Math.max(D,t),C+=t})),_=null;var E=0;if(s){var P=0,R=0,z=0;t.each((function(){var e=0,t=0;n.select(this).selectAll("g.traces").each((function(r){var n=r[0].height;c.setTranslate(this,w[0],w[1]+u+d+n/2+t),t+=n,e=Math.max(e,h+r[0].width)})),P=Math.max(P,t);var r=e+d;r+u+R>a._maxWidth&&(E=Math.max(E,R),R=0,z+=P+x,P=t),c.setTranslate(this,R,z),R+=r})),a._width=Math.max(E,R)+u,a._height=z+P+m}else{var I=r.size(),N=C+f+(I-1)*d=a._maxWidth&&(E=Math.max(E,H),j=0,B+=F,a._height+=F,F=0),c.setTranslate(this,w[0]+u+j,w[1]+u+B+t/2+d),H=j+r+d,j+=n,F=Math.max(F,t)})),N?(a._width=j+f,a._height=F+m):(a._width=Math.max(E,H)+f,a._height+=F+m)}}a._width=Math.ceil(Math.max(a._width+w[0],a._titleWidth+2*(u+p.titlePad))),a._height=Math.ceil(Math.max(a._height+w[1],a._titleHeight+2*(u+p.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var U=e._context.edits,Y=U.legendText||U.legendPosition;r.each((function(e){var t=n.select(this).select(".legendtoggle"),r=e[0].height,a=Y?h:_||h+e[0].width;l||(a+=d/2),c.setRect(t,0,-r/2,a,r)}))}(e,z,I,t)},function(){if(d||!function(e){var t=e._fullLayout.legend,r=S(t),n=O(t);return i.autoMargin(e,"legend",{x:t.x,y:t.y,l:t._width*y[r],r:t._width*g[r],b:t._effHeight*g[n],t:t._effHeight*y[n]})}(e)){var u,h,m,v,x=l._size,b=t.borderwidth,_=x.l+x.w*t.x-y[S(t)]*t._width,M=x.t+x.h*(1-t.y)-y[O(t)]*t._effHeight;if(!d&&l.margin.autoexpand){var A=_,L=M;_=a.constrain(_,0,l.width-t._width),M=a.constrain(M,0,l.height-t._effHeight),_!==A&&a.log("Constrain legend.x to make legend fit inside graph"),M!==L&&a.log("Constrain legend.y to make legend fit inside graph")}if(d||c.setTranslate(w,_,M),R.on(".drag",null),w.on("wheel",null),d||t._height<=t._maxHeight||e._context.staticPlot){var E=t._effHeight;d&&(E=t._height),D.attr({width:t._width-b,height:E-b,x:b/2,y:b/2}),c.setTranslate(C,0,0),k.select("rect").attr({width:t._width-2*b,height:E-2*b,x:b,y:b}),c.setClipUrl(C,f,e),c.setRect(R,0,0,0,0),delete t._scrollY}else{var P,z,I,N=Math.max(p.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),F=t._effHeight-N-2*p.scrollBarMargin,j=t._height-t._effHeight,B=F/j,H=Math.min(t._scrollY||0,j);D.attr({width:t._width-2*b+p.scrollBarWidth+p.scrollBarMargin,height:t._effHeight-b,x:b/2,y:b/2}),k.select("rect").attr({width:t._width-2*b+p.scrollBarWidth+p.scrollBarMargin,height:t._effHeight-2*b,x:b,y:b+H}),c.setClipUrl(C,f,e),q(H,N,B),w.on("wheel",(function(){q(H=a.constrain(t._scrollY+n.event.deltaY/F*j,0,j),N,B),0!==H&&H!==j&&n.event.preventDefault()}));var U=n.behavior.drag().on("dragstart",(function(){var e=n.event.sourceEvent;P="touchstart"===e.type?e.changedTouches[0].clientY:e.clientY,I=H})).on("drag",(function(){var e=n.event.sourceEvent;2===e.buttons||e.ctrlKey||(z="touchmove"===e.type?e.changedTouches[0].clientY:e.clientY,q(H=function(e,t,r){var n=(r-t)/B+e;return a.constrain(n,0,j)}(I,P,z),N,B))}));R.call(U);var Y=n.behavior.drag().on("dragstart",(function(){var e=n.event.sourceEvent;"touchstart"===e.type&&(P=e.changedTouches[0].clientY,I=H)})).on("drag",(function(){var e=n.event.sourceEvent;"touchmove"===e.type&&(z=e.changedTouches[0].clientY,q(H=function(e,t,r){var n=(t-r)/B+e;return a.constrain(n,0,j)}(I,P,z),N,B))}));C.call(Y)}e._context.edits.legendPosition&&(w.classed("cursor-move",!0),s.init({element:w.node(),gd:e,prepFn:function(){var e=c.getTranslate(w);m=e.x,v=e.y},moveFn:function(e,r){var n=m+e,a=v+r;c.setTranslate(w,n,a),u=s.align(n,0,x.l,x.l+x.w,t.xanchor),h=s.align(a,0,x.t+x.h,x.t,t.yanchor)},doneFn:function(){void 0!==u&&void 0!==h&&o.call("_guiRelayout",e,{"legend.x":u,"legend.y":h})},clickFn:function(t,n){var a=r.selectAll("g.traces").filter((function(){var e=this.getBoundingClientRect();return n.clientX>=e.left&&n.clientX<=e.right&&n.clientY>=e.top&&n.clientY<=e.bottom}));a.size()>0&&T(e,w,a,t,n)}}))}function q(r,n,a){t._scrollY=e._fullLayout.legend._scrollY=r,c.setTranslate(C,0,-r),c.setRect(R,t._width,p.scrollBarMargin+r*a,p.scrollBarWidth,n),k.select("rect").attr("y",b+r)}}],e)}}function T(e,t,r,n,a){var i=r.data()[0][0].trace,s={event:a,node:r.node(),curveNumber:i.index,expandedIndex:i._expandedIndex,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};i._group&&(s.group=i._group),o.traceIs(i,"pie-like")&&(s.label=r.datum()[0].label),!1!==l.triggerHandler(e,"plotly_legendclick",s)&&(1===n?t._clickTimeout=setTimeout((function(){e._fullLayout&&d(r,e,n)}),e._context.doubleClickDelay):2===n&&(t._clickTimeout&&clearTimeout(t._clickTimeout),e._legendMouseDownTime=0,!1!==l.triggerHandler(e,"plotly_legenddoubleclick",s)&&d(r,e,n)))}function M(e,t,r){var n,i,l=e.data()[0][0],s=l.trace,u=o.traceIs(s,"pie-like"),d=!r._inHover&&t._context.edits.legendText&&!u,h=r._maxNameLength;l.groupTitle?(n=l.groupTitle.text,i=l.groupTitle.font):(i=r.font,r.entries?n=l.text:(n=u?l.label:s.name,s._meta&&(n=a.templateString(n,s._meta))));var m=a.ensureSingle(e,"text","legendtext");m.attr("text-anchor","start").call(c.font,i).text(d?k(n,h):n);var y=r.itemwidth+2*p.itemGap;f.positionText(m,y,0),d?m.call(f.makeEditable,{gd:t,text:n}).call(L,e,t,r).on("edit",(function(n){this.text(k(n,h)).call(L,e,t,r);var i=l.trace._fullInput||{},c={};if(o.hasTransform(i,"groupby")){var u=o.getTransformIndices(i,"groupby"),f=u[u.length-1],d=a.keyedContainer(i,"transforms["+f+"].styles","target","value.name");d.set(l.trace._group,n),c=d.constructUpdate()}else c.name=n;return o.call("_guiRestyle",t,c,s.index)})):L(m,e,t,r)}function k(e,t){var r=Math.max(4,t);if(e&&e.trim().length>=r/2)return e;for(var n=r-(e=e||"").length;n>0;n--)e+=" ";return e}function A(e,t){var r,i=t._context.doubleClickDelay,o=1,l=a.ensureSingle(e,"rect","legendtoggle",(function(e){t._context.staticPlot||e.style("cursor","pointer").attr("pointer-events","all"),e.call(u.fill,"rgba(0,0,0,0)")}));t._context.staticPlot||(l.on("mousedown",(function(){(r=(new Date).getTime())-t._legendMouseDownTimei&&(o=Math.max(o-1,1)),T(t,r,e,o,n.event)}})))}function L(e,t,r,n,a){n._inHover&&e.attr("data-notex",!0),f.convertToTspans(e,r,(function(){!function(e,t,r,n){var a=e.data()[0][0];if(r._inHover||!a||a.trace.showlegend){var i=e.select("g[class*=math-group]"),o=i.node();r||(r=t._fullLayout.legend);var l,s,u=r.borderwidth,d=(n===_?r.title.font:a.groupTitle?a.groupTitle.font:r.font).size*m;if(o){var h=c.bBox(o);l=h.height,s=h.width,n===_?c.setTranslate(i,u,u+.75*l):c.setTranslate(i,0,.25*l)}else{var y=e.select(n===_?".legendtitletext":".legendtext"),g=f.lineCount(y),v=y.node();if(l=d*g,s=v?c.bBox(v).width:0,n===_)"left"===r.title.side&&(s+=2*p.itemGap),f.positionText(y,u+p.titlePad,u+d);else{var x=2*p.itemGap+r.itemwidth;a.groupTitle&&(x=p.itemGap,s-=r.itemwidth),f.positionText(y,x,-d*((g-1)/2-.3))}}n===_?(r._titleWidth=s,r._titleHeight=l):(a.lineHeight=d,a.height=Math.max(l,16)+3,a.width=s)}else e.remove()}(t,r,n,a)}))}function S(e){return a.isRightAnchor(e)?"right":a.isCenterAnchor(e)?"center":"left"}function O(e){return a.isBottomAnchor(e)?"bottom":a.isMiddleAnchor(e)?"middle":"top"}t.exports=function(e,t){return t||(t=e._fullLayout.legend||{}),w(e,t)}},{"../../constants/alignment":262,"../../lib":287,"../../lib/events":280,"../../lib/svg_text_utils":310,"../../plots/plots":369,"../../registry":376,"../color":157,"../dragelement":176,"../drawing":179,"./constants":208,"./get_legend_data":211,"./handle_click":212,"./helpers":213,"./style":215,"@plotly/d3":20}],211:[function(e,t,r){"use strict";var n=e("../../registry"),a=e("./helpers");t.exports=function(e,t){var r,i,o=t._inHover,l=a.isGrouped(t),s=a.isReversed(t),c={},u=[],f=!1,d={},p=0,h=0;function m(e,r){if(""!==e&&a.isGrouped(t))-1===u.indexOf(e)?(u.push(e),f=!0,c[e]=[r]):c[e].push(r);else{var n="~~i"+p;u.push(n),c[n]=[r],p++}}for(r=0;rk&&(M=k)}w[r][0]._groupMinRank=M,w[r][0]._preGroupSort=r}var A=function(e,t){return e.trace.legendrank-t.trace.legendrank||e._preSort-t._preSort};for(w.forEach((function(e,t){e[0]._preGroupSort=t})),w.sort((function(e,t){return e[0]._groupMinRank-t[0]._groupMinRank||e[0]._preGroupSort-t[0]._preGroupSort})),r=0;rr?r:e}t.exports=function(e,t,r){var g=t._fullLayout;r||(r=g.legend);var v="constant"===r.itemsizing,x=r.itemwidth,b=(x+2*p.itemGap)/2,_=o(b,0),w=function(e,t,r,n){var a;if(e+1)a=e;else{if(!(t&&t.width>0))return 0;a=t.width}return v?n:Math.min(a,r)};function T(e,i,o){var u=e[0].trace,f=u.marker||{},d=f.line||{},p=o?u.visible&&u.type===o:a.traceIs(u,"bar"),h=n.select(i).select("g.legendpoints").selectAll("path.legend"+o).data(p?[e]:[]);h.enter().append("path").classed("legend"+o,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",_),h.exit().remove(),h.each((function(e){var a=n.select(this),i=e[0],o=w(i.mlw,f.line,5,2);a.style("stroke-width",o+"px");var p=i.mcc;if(!r._inHover&&"mc"in i){var h=c(f),m=h.mid;void 0===m&&(m=(h.max+h.min)/2),p=l.tryColorscale(f,"")(m)}var g=p||i.mc||f.color,v=f.pattern,x=v&&l.getPatternAttr(v.shape,0,"");if(x){var b=l.getPatternAttr(v.bgcolor,0,null),_=l.getPatternAttr(v.fgcolor,0,null),T=v.fgopacity,M=y(v.size,8,10),k=y(v.solidity,.5,1),A="legend-"+u.uid;a.call(l.pattern,"legend",t,A,x,M,k,p,v.fillmode,b,_,T)}else a.call(s.fill,g);o&&s.stroke(a,i.mlc||d.color)}))}function M(e,t,r){var o=e[0],l=o.trace,s=r?l.visible&&l.type===r:a.traceIs(l,r),c=n.select(t).select("g.legendpoints").selectAll("path.legend"+r).data(s?[e]:[]);if(c.enter().append("path").classed("legend"+r,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",_),c.exit().remove(),c.size()){var u=(l.marker||{}).line,p=w(d(u.width,o.pts),u,5,2),h=i.minExtend(l,{marker:{line:{width:p}}});h.marker.line.color=u.color;var m=i.minExtend(o,{trace:h});f(c,m,h)}}e.each((function(e){var t=n.select(this),a=i.ensureSingle(t,"g","layers");a.style("opacity",e[0].trace.opacity);var l=r.valign,s=e[0].lineHeight,c=e[0].height;if("middle"!==l&&s&&c){var u={top:1,bottom:-1}[l]*(.5*(s-c+3));a.attr("transform",o(0,u))}else a.attr("transform",null);a.selectAll("g.legendfill").data([e]).enter().append("g").classed("legendfill",!0),a.selectAll("g.legendlines").data([e]).enter().append("g").classed("legendlines",!0);var f=a.selectAll("g.legendsymbols").data([e]);f.enter().append("g").classed("legendsymbols",!0),f.selectAll("g.legendpoints").data([e]).enter().append("g").classed("legendpoints",!0)})).each((function(e){var r,a=e[0].trace,o=[];if(a.visible)switch(a.type){case"histogram2d":case"heatmap":o=[["M-15,-2V4H15V-2Z"]],r=!0;break;case"choropleth":case"choroplethmapbox":o=[["M-6,-6V6H6V-6Z"]],r=!0;break;case"densitymapbox":o=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],r="radial";break;case"cone":o=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],r=!1;break;case"streamtube":o=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],r=!1;break;case"surface":o=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],r=!0;break;case"mesh3d":o=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],r=!1;break;case"volume":o=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],r=!0;break;case"isosurface":o=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],r=!1}var u=n.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(o);u.enter().append("path").classed("legend3dandfriends",!0).attr("transform",_).style("stroke-miterlimit",1),u.exit().remove(),u.each((function(e,o){var u,f=n.select(this),d=c(a),p=d.colorscale,m=d.reversescale;if(p){if(!r){var y=p.length;u=0===o?p[m?y-1:0][1]:1===o?p[m?0:y-1][1]:p[Math.floor((y-1)/2)][1]}}else{var g=a.vertexcolor||a.facecolor||a.color;u=i.isArrayOrTypedArray(g)?g[o]||g[0]:g}f.attr("d",e[0]),u?f.call(s.fill,u):f.call((function(e){if(e.size()){var n="legendfill-"+a.uid;l.gradient(e,t,n,h(m,"radial"===r),p,"fill")}}))}))})).each((function(e){var t=e[0].trace,r="waterfall"===t.type;if(e[0]._distinct&&r){var a=e[0].trace[e[0].dir].marker;return e[0].mc=a.color,e[0].mlw=a.line.width,e[0].mlc=a.line.color,T(e,this,"waterfall")}var i=[];t.visible&&r&&(i=e[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var o=n.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(i);o.enter().append("path").classed("legendwaterfall",!0).attr("transform",_).style("stroke-miterlimit",1),o.exit().remove(),o.each((function(e){var r=n.select(this),a=t[e[0]].marker,i=w(void 0,a.line,5,2);r.attr("d",e[1]).style("stroke-width",i+"px").call(s.fill,a.color),i&&r.call(s.stroke,a.line.color)}))})).each((function(e){T(e,this,"funnel")})).each((function(e){T(e,this)})).each((function(e){var r=e[0].trace,o=n.select(this).select("g.legendpoints").selectAll("path.legendbox").data(r.visible&&a.traceIs(r,"box-violin")?[e]:[]);o.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",_),o.exit().remove(),o.each((function(){var e=n.select(this);if("all"!==r.boxpoints&&"all"!==r.points||0!==s.opacity(r.fillcolor)||0!==s.opacity((r.line||{}).color)){var a=w(void 0,r.line,5,2);e.style("stroke-width",a+"px").call(s.fill,r.fillcolor),a&&s.stroke(e,r.line.color)}else{var c=i.minExtend(r,{marker:{size:v?12:i.constrain(r.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});o.call(l.pointStyle,c,t)}}))})).each((function(e){M(e,this,"funnelarea")})).each((function(e){M(e,this,"pie")})).each((function(e){var r,a,o=m(e),s=o.showFill,f=o.showLine,d=o.showGradientLine,p=o.showGradientFill,y=o.anyFill,g=o.anyLine,v=e[0],b=v.trace,_=c(b),T=_.colorscale,M=_.reversescale,k=u.hasMarkers(b)||!y?"M5,0":g?"M5,-2":"M5,-3",A=n.select(this),L=A.select(".legendfill").selectAll("path").data(s||p?[e]:[]);if(L.enter().append("path").classed("js-fill",!0),L.exit().remove(),L.attr("d",k+"h"+x+"v6h-"+x+"z").call(s?l.fillGroupStyle:function(e){if(e.size()){var r="legendfill-"+b.uid;l.gradient(e,t,r,h(M),T,"fill")}}),f||d){var S=w(void 0,b.line,10,5);a=i.minExtend(b,{line:{width:S}}),r=[i.minExtend(v,{trace:a})]}var O=A.select(".legendlines").selectAll("path").data(f||d?[r]:[]);O.enter().append("path").classed("js-line",!0),O.exit().remove(),O.attr("d",k+(d?"l"+x+",0.0001":"h"+x)).call(f?l.lineGroupStyle:function(e){if(e.size()){var r="legendline-"+b.uid;l.lineGroupStyle(e),l.gradient(e,t,r,h(M),T,"stroke")}})})).each((function(e){var r,a,o=m(e),s=o.anyFill,c=o.anyLine,f=o.showLine,d=o.showMarker,p=e[0],h=p.trace,y=!d&&!c&&!s&&u.hasText(h);function g(e,t,r,n){var a=i.nestedProperty(h,e).get(),o=i.isArrayOrTypedArray(a)&&t?t(a):a;if(v&&o&&void 0!==n&&(o=n),r){if(or[1])return r[1]}return o}function x(e){return p._distinct&&p.index&&e[p.index]?e[p.index]:e[0]}if(d||y||f){var b={},w={};if(d){b.mc=g("marker.color",x),b.mx=g("marker.symbol",x),b.mo=g("marker.opacity",i.mean,[.2,1]),b.mlc=g("marker.line.color",x),b.mlw=g("marker.line.width",i.mean,[0,5],2),w.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var T=g("marker.size",i.mean,[2,16],12);b.ms=T,w.marker.size=T}f&&(w.line={width:g("line.width",x,[0,10],5)}),y&&(b.tx="Aa",b.tp=g("textposition",x),b.ts=10,b.tc=g("textfont.color",x),b.tf=g("textfont.family",x)),r=[i.minExtend(p,b)],(a=i.minExtend(h,w)).selectedpoints=null,a.texttemplate=null}var M=n.select(this).select("g.legendpoints"),k=M.selectAll("path.scatterpts").data(d?r:[]);k.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",_),k.exit().remove(),k.call(l.pointStyle,a,t),d&&(r[0].mrc=3);var A=M.selectAll("g.pointtext").data(y?r:[]);A.enter().append("g").classed("pointtext",!0).append("text").attr("transform",_),A.exit().remove(),A.selectAll("text").call(l.textPointStyle,a,t)})).each((function(e){var t=e[0].trace,r=n.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(t.visible&&"candlestick"===t.type?[e,e]:[]);r.enter().append("path").classed("legendcandle",!0).attr("d",(function(e,t){return t?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"})).attr("transform",_).style("stroke-miterlimit",1),r.exit().remove(),r.each((function(e,r){var a=n.select(this),i=t[r?"increasing":"decreasing"],o=w(void 0,i.line,5,2);a.style("stroke-width",o+"px").call(s.fill,i.fillcolor),o&&s.stroke(a,i.line.color)}))})).each((function(e){var t=e[0].trace,r=n.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(t.visible&&"ohlc"===t.type?[e,e]:[]);r.enter().append("path").classed("legendohlc",!0).attr("d",(function(e,t){return t?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"})).attr("transform",_).style("stroke-miterlimit",1),r.exit().remove(),r.each((function(e,r){var a=n.select(this),i=t[r?"increasing":"decreasing"],o=w(void 0,i.line,5,2);a.style("fill","none").call(l.dashLine,i.line.dash,o),o&&s.stroke(a,i.line.color)}))}))}},{"../../lib":287,"../../registry":376,"../../traces/pie/helpers":489,"../../traces/pie/style_one":495,"../../traces/scatter/subtypes":522,"../color":157,"../colorscale/helpers":168,"../drawing":179,"./constants":208,"@plotly/d3":20}],216:[function(e,t,r){"use strict";e("./constants"),t.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}},{"./constants":218}],217:[function(e,t,r){"use strict";var n=e("../../registry"),a=e("../../plots/plots"),i=e("../../plots/cartesian/axis_ids"),o=e("../../fonts/ploticon"),l=e("../shapes/draw").eraseActiveShape,s=e("../../lib"),c=s._,u=t.exports={};function f(e,t){var r,a,o=t.currentTarget,l=o.getAttribute("data-attr"),s=o.getAttribute("data-val")||!0,c=e._fullLayout,u={},f=i.list(e,null,!0),d=c._cartesianSpikesEnabled;if("zoom"===l){var p,h="in"===s?.5:2,m=(1+h)/2,y=(1-h)/2;for(a=0;a1?(C=["toggleHover"],E=["resetViews"]):g?(D=["zoomInGeo","zoomOutGeo"],C=["hoverClosestGeo"],E=["resetGeo"]):y?(C=["hoverClosest3d"],E=["resetCameraDefault3d","resetCameraLastSave3d"]):w?(D=["zoomInMapbox","zoomOutMapbox"],C=["toggleHover"],E=["resetViewMapbox"]):b?C=["hoverClosestGl2d"]:v?C=["hoverClosestPie"]:M?(C=["hoverClosestCartesian","hoverCompareCartesian"],E=["resetViewSankey"]):C=["toggleHover"],m&&(C=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(function(e){for(var t=0;t0)){var m=function(e,t,r){for(var n=r.filter((function(r){return t[r].anchor===e._id})),a=0,i=0;i=n.max)t=z[r+1];else if(e=n.pmax)t=z[r+1];else if(e0?d+c:c;return{ppad:c,ppadplus:u?h:m,ppadminus:u?m:h}}return{ppad:c}}function u(e,t,r,n,a){var l="category"===e.type||"multicategory"===e.type?e.r2c:e.d2c;if(void 0!==t)return[l(t),l(r)];if(n){var s,c,u,f,d=1/0,p=-1/0,h=n.match(i.segmentRE);for("date"===e.type&&(l=o.decodeDate(l)),s=0;sp&&(p=f)));return p>=d?[d,p]:void 0}}t.exports=function(e){var t=e._fullLayout,r=n.filterVisible(t.shapes);if(r.length&&e._fullData.length)for(var o=0;oR&&i>z&&!r.shiftKey?d.getCursor(o/a,1-l/i):"move";p(t,s),P=s.split("-")[0]}}function ee(n){g(e)||(I&&(x=V(r.xanchor)),N&&(T=G(r.yanchor)),"path"===r.type?E=r.path:(c=I?r.x0:V(r.x0),f=N?r.y0:G(r.y0),y=I?r.x1:V(r.x1),v=N?r.y1:G(r.y1)),cv?(M=f,S="y0",k=v,O="y1"):(M=v,S="y1",k=f,O="y0"),$(n),ie(l,r),le(t,r,e),J.moveFn="move"===P?ne:ae,J.altKey=n.altKey)}function te(){g(e)||(p(t),oe(l),b(t,e,r),n.call("_guiRelayout",e,s.getUpdateObj()))}function re(){g(e)||oe(l)}function ne(n,a){if("path"===r.type){var i=function(e){return e},o=i,s=i;I?B("xanchor",r.xanchor=Z(x+n)):(o=function(e){return Z(V(e)+n)},H&&"date"===H.type&&(o=m.encodeDate(o))),N?B("yanchor",r.yanchor=W(T+a)):(s=function(e){return W(G(e)+a)},Y&&"date"===Y.type&&(s=m.encodeDate(s))),B("path",r.path=w(E,o,s))}else I?B("xanchor",r.xanchor=Z(x+n)):(B("x0",r.x0=Z(c+n)),B("x1",r.x1=Z(y+n))),N?B("yanchor",r.yanchor=W(T+a)):(B("y0",r.y0=W(f+a)),B("y1",r.y1=W(v+a)));t.attr("d",_(e,r)),ie(l,r)}function ae(n,a){if(j){var i=function(e){return e},o=i,s=i;I?B("xanchor",r.xanchor=Z(x+n)):(o=function(e){return Z(V(e)+n)},H&&"date"===H.type&&(o=m.encodeDate(o))),N?B("yanchor",r.yanchor=W(T+a)):(s=function(e){return W(G(e)+a)},Y&&"date"===Y.type&&(s=m.encodeDate(s))),B("path",r.path=w(E,o,s))}else if(F){if("resize-over-start-point"===P){var u=c+n,d=N?f-a:f+a;B("x0",r.x0=I?u:Z(u)),B("y0",r.y0=N?d:W(d))}else if("resize-over-end-point"===P){var p=y+n,h=N?v-a:v+a;B("x1",r.x1=I?p:Z(p)),B("y1",r.y1=N?h:W(h))}}else{var g=function(e){return-1!==P.indexOf(e)},b=g("n"),U=g("s"),q=g("w"),X=g("e"),J=b?M+a:M,K=U?k+a:k,Q=q?A+n:A,$=X?L+n:L;N&&(b&&(J=M-a),U&&(K=k-a)),(!N&&K-J>z||N&&J-K>z)&&(B(S,r[S]=N?J:W(J)),B(O,r[O]=N?K:W(K))),$-Q>R&&(B(D,r[D]=I?Q:Z(Q)),B(C,r[C]=I?$:Z($)))}t.attr("d",_(e,r)),ie(l,r)}function ie(e,t){function r(){var r="path"!==t.type,n=e.selectAll(".visual-cue").data([0]),i=1;n.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":i}).classed("visual-cue",!0);var o=V(I?t.xanchor:a.midRange(r?[t.x0,t.x1]:m.extractPathCoords(t.path,h.paramIsX))),l=G(N?t.yanchor:a.midRange(r?[t.y0,t.y1]:m.extractPathCoords(t.path,h.paramIsY)));if(o=m.roundPositionForSharpStrokeRendering(o,i),l=m.roundPositionForSharpStrokeRendering(l,i),I&&N){var s="M"+(o-1-i)+","+(l-1-i)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";n.attr("d",s)}else if(I){var c="M"+(o-1-i)+","+(l-9-i)+"v18 h2 v-18 Z";n.attr("d",c)}else{var u="M"+(o-9-i)+","+(l-1-i)+"h18 v2 h-18 Z";n.attr("d",u)}}(I||N)&&r()}function oe(e){e.selectAll(".visual-cue").remove()}function le(e,t,r){var n=t.xref,a=t.yref,o=i.getFromId(r,n),l=i.getFromId(r,a),s="";"paper"===n||o.autorange||(s+=n),"paper"===a||l.autorange||(s+=a),u.setClipUrl(e,s?"clip"+r._fullLayout._uid+s:null,r)}d.init(J),X.node().onmousemove=$}(e,R,s,t,r,P):!0===s.editable&&R.style("pointer-events",C||c.opacity(L)*A<=.5?"stroke":"all");R.node().addEventListener("click",(function(){return function(e,t){if(v(e)){var r=+t.node().getAttribute("data-index");if(r>=0){if(r===e._fullLayout._activeShapeIndex)return void T(e);e._fullLayout._activeShapeIndex=r,e._fullLayout._deactivateShape=T,y(e)}}}(e,R)}))}s._input&&!1!==s.visible&&("below"!==s.layer?M(e._fullLayout._shapeUpperLayer):"paper"===s.xref||"paper"===s.yref?M(e._fullLayout._shapeLowerLayer):x._hadPlotinfo?M((x.mainplotinfo||x).shapelayer):M(e._fullLayout._shapeLowerLayer))}function b(e,t,r){var n=(r.xref+r.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");u.setClipUrl(e,n?"clip"+t._fullLayout._uid+n:null,t)}function _(e,t){var r,n,o,l,s,c,u,f,d=t.type,p=i.getRefType(t.xref),y=i.getRefType(t.yref),g=i.getFromId(e,t.xref),v=i.getFromId(e,t.yref),x=e._fullLayout._size;if(g?"domain"===p?n=function(e){return g._offset+g._length*e}:(r=m.shapePositionToRange(g),n=function(e){return g._offset+g.r2p(r(e,!0))}):n=function(e){return x.l+x.w*e},v?"domain"===y?l=function(e){return v._offset+v._length*(1-e)}:(o=m.shapePositionToRange(v),l=function(e){return v._offset+v.r2p(o(e,!0))}):l=function(e){return x.t+x.h*(1-e)},"path"===d)return g&&"date"===g.type&&(n=m.decodeDate(n)),v&&"date"===v.type&&(l=m.decodeDate(l)),function(e,t,r){var n=e.path,i=e.xsizemode,o=e.ysizemode,l=e.xanchor,s=e.yanchor;return n.replace(h.segmentRE,(function(e){var n=0,c=e.charAt(0),u=h.paramIsX[c],f=h.paramIsY[c],d=h.numParams[c],p=e.substr(1).replace(h.paramRE,(function(e){return u[n]?e="pixel"===i?t(l)+Number(e):t(e):f[n]&&(e="pixel"===o?r(s)-Number(e):r(e)),++n>d&&(e="X"),e}));return n>d&&(p=p.replace(/[\s,]*X.*/,""),a.log("Ignoring extra params in segment "+e)),c+p}))}(t,n,l);if("pixel"===t.xsizemode){var b=n(t.xanchor);s=b+t.x0,c=b+t.x1}else s=n(t.x0),c=n(t.x1);if("pixel"===t.ysizemode){var _=l(t.yanchor);u=_-t.y0,f=_-t.y1}else u=l(t.y0),f=l(t.y1);if("line"===d)return"M"+s+","+u+"L"+c+","+f;if("rect"===d)return"M"+s+","+u+"H"+c+"V"+f+"H"+s+"Z";var w=(s+c)/2,T=(u+f)/2,M=Math.abs(w-s),k=Math.abs(T-u),A="A"+M+","+k,L=w+M+","+T;return"M"+L+A+" 0 1,1 "+w+","+(T-k)+A+" 0 0,1 "+L+"Z"}function w(e,t,r){return e.replace(h.segmentRE,(function(e){var n=0,a=e.charAt(0),i=h.paramIsX[a],o=h.paramIsY[a],l=h.numParams[a];return a+e.substr(1).replace(h.paramRE,(function(e){return n>=l||(i[n]?e=t(e):o[n]&&(e=r(e)),n++),e}))}))}function T(e){v(e)&&e._fullLayout._activeShapeIndex>=0&&(s(e),delete e._fullLayout._activeShapeIndex,y(e))}t.exports={draw:y,drawOne:x,eraseActiveShape:function(e){if(v(e)){s(e);var t=e._fullLayout._activeShapeIndex,r=(e.layout||{}).shapes||[];if(t1&&(2!==e.length||"Z"!==e[1][0])&&(0===T&&(e[0][0]="M"),t[w]=e,v(),x())}}()}}function E(e,r){(function(e,r){if(t.length)for(var n=0;n=0&&f(g),r.attr("d",m(t)),k&&!d&&(M=function(e,t){for(var r=0;r0&&s0&&(l=l.transition().duration(t.transition.duration).ease(t.transition.easing)),l.attr("transform",s(o-.5*f.gripWidth,t._dims.currentValueTotalHeight))}}function S(e,t){var r=e._dims;return r.inputAreaStart+f.stepInset+(r.inputAreaLength-2*f.stepInset)*Math.min(1,Math.max(0,t))}function O(e,t){var r=e._dims;return Math.min(1,Math.max(0,(t-f.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*f.stepInset-2*r.inputAreaStart)))}function D(e,t,r){var n=r._dims,a=l.ensureSingle(e,"rect",f.railTouchRectClass,(function(n){n.call(k,t,e,r).style("pointer-events","all")}));a.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,f.tickOffset+r.ticklen+n.labelHeight)}).call(i.fill,r.bgcolor).attr("opacity",0),o.setTranslate(a,0,n.currentValueTotalHeight)}function C(e,t){var r=t._dims,n=r.inputAreaLength-2*f.railInset,a=l.ensureSingle(e,"rect",f.railRectClass);a.attr({width:n,height:f.railWidth,rx:f.railRadius,ry:f.railRadius,"shape-rendering":"crispEdges"}).call(i.stroke,t.bordercolor).call(i.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px"),o.setTranslate(a,f.railInset,.5*(r.inputAreaWidth-f.railWidth)+r.currentValueTotalHeight)}t.exports=function(e){var t=e._fullLayout,r=function(e,t){for(var r=e[f.name],n=[],a=0;a0?[0]:[]);function l(t){t._commandObserver&&(t._commandObserver.remove(),delete t._commandObserver),a.autoMargin(e,y(t))}if(i.enter().append("g").classed(f.containerClassName,!0).style("cursor","ew-resize"),i.exit().each((function(){n.select(this).selectAll("g."+f.groupClassName).each(l)})).remove(),0!==r.length){var s=i.selectAll("g."+f.groupClassName).data(r,g);s.enter().append("g").classed(f.groupClassName,!0),s.exit().each(l).remove();for(var c=0;c0||d<0){var g={left:[-h,0],right:[h,0],top:[0,-h],bottom:[0,h]}[b.side];t.attr("transform",s(g[0],g[1]))}}}return z.call(I),P&&(S?z.on(".opacity",null):(k=0,A=!0,z.text(v).on("mouseover.opacity",(function(){n.select(this).transition().duration(d.SHOW_PLACEHOLDER).style("opacity",1)})).on("mouseout.opacity",(function(){n.select(this).transition().duration(d.HIDE_PLACEHOLDER).style("opacity",0)}))),z.call(f.makeEditable,{gd:e}).on("edit",(function(t){void 0!==x?o.call("_guiRestyle",e,g,t,x):o.call("_guiRelayout",e,g,t)})).on("cancel",(function(){this.text(this.attr("data-unformatted")).call(I)})).on("input",(function(e){this.text(e||" ").call(f.positionText,_.x,_.y)}))),z.classed("js-placeholder",A),T}}},{"../../constants/alignment":262,"../../constants/interactions":266,"../../lib":287,"../../lib/svg_text_utils":310,"../../plots/plots":369,"../../registry":376,"../color":157,"../drawing":179,"@plotly/d3":20,"fast-isnumeric":33}],256:[function(e,t,r){"use strict";var n=e("../../plots/font_attributes"),a=e("../color/attributes"),i=e("../../lib/extend").extendFlat,o=e("../../plot_api/edit_types").overrideAll,l=e("../../plots/pad_attributes"),s=e("../../plot_api/plot_template").templatedArray,c=s("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});t.exports=o(s("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:c,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:i(l({editType:"arraydraw"}),{}),font:n({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:a.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},{"../../lib/extend":281,"../../plot_api/edit_types":316,"../../plot_api/plot_template":323,"../../plots/font_attributes":363,"../../plots/pad_attributes":368,"../color/attributes":156}],257:[function(e,t,r){"use strict";t.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"◄",right:"►",up:"▲",down:"▼"}}},{}],258:[function(e,t,r){"use strict";var n=e("../../lib"),a=e("../../plots/array_container_defaults"),i=e("./attributes"),o=e("./constants").name,l=i.buttons;function s(e,t,r){function o(r,a){return n.coerce(e,t,i,r,a)}o("visible",a(e,t,{name:"buttons",handleItemDefaults:c}).length>0)&&(o("active"),o("direction"),o("type"),o("showactive"),o("x"),o("y"),n.noneOrAll(e,t,["x","y"]),o("xanchor"),o("yanchor"),o("pad.t"),o("pad.r"),o("pad.b"),o("pad.l"),n.coerceFont(o,"font",r.font),o("bgcolor",r.paper_bgcolor),o("bordercolor"),o("borderwidth"))}function c(e,t){function r(r,a){return n.coerce(e,t,l,r,a)}r("visible","skip"===e.method||Array.isArray(e.args))&&(r("method"),r("args"),r("args2"),r("label"),r("execute"))}t.exports=function(e,t){a(e,t,{name:o,handleItemDefaults:s})}},{"../../lib":287,"../../plots/array_container_defaults":329,"./attributes":256,"./constants":257}],259:[function(e,t,r){"use strict";var n=e("@plotly/d3"),a=e("../../plots/plots"),i=e("../color"),o=e("../drawing"),l=e("../../lib"),s=e("../../lib/svg_text_utils"),c=e("../../plot_api/plot_template").arrayEditor,u=e("../../constants/alignment").LINE_SPACING,f=e("./constants"),d=e("./scrollbox");function p(e){return e._index}function h(e,t){return+e.attr(f.menuIndexAttrName)===t._index}function m(e,t,r,n,a,i,o,l){t.active=o,c(e.layout,f.name,t).applyUpdate("active",o),"buttons"===t.type?g(e,n,null,null,t):"dropdown"===t.type&&(a.attr(f.menuIndexAttrName,"-1"),y(e,n,a,i,t),l||g(e,n,a,i,t))}function y(e,t,r,n,a){var i=l.ensureSingle(t,"g",f.headerClassName,(function(e){e.style("pointer-events","all")})),s=a._dims,c=a.active,u=a.buttons[c]||f.blankHeaderOpts,d={y:a.pad.t,yPad:0,x:a.pad.l,xPad:0,index:0},p={width:s.headerWidth,height:s.headerHeight};i.call(v,a,u,e).call(A,a,d,p),l.ensureSingle(t,"text",f.headerArrowClassName,(function(e){e.attr("text-anchor","end").call(o.font,a.font).text(f.arrowSymbol[a.direction])})).attr({x:s.headerWidth-f.arrowOffsetX+a.pad.l,y:s.headerHeight/2+f.textOffsetY+a.pad.t}),i.on("click",(function(){r.call(L,String(h(r,a)?-1:a._index)),g(e,t,r,n,a)})),i.on("mouseover",(function(){i.call(w)})),i.on("mouseout",(function(){i.call(T,a)})),o.setTranslate(t,s.lx,s.ly)}function g(e,t,r,i,o){r||(r=t).attr("pointer-events","all");var s=function(e){return-1==+e.attr(f.menuIndexAttrName)}(r)&&"buttons"!==o.type?[]:o.buttons,c="dropdown"===o.type?f.dropdownButtonClassName:f.buttonClassName,u=r.selectAll("g."+c).data(l.filterVisible(s)),d=u.enter().append("g").classed(c,!0),p=u.exit();"dropdown"===o.type?(d.attr("opacity","0").transition().attr("opacity","1"),p.transition().attr("opacity","0").remove()):p.remove();var h=0,y=0,g=o._dims,x=-1!==["up","down"].indexOf(o.direction);"dropdown"===o.type&&(x?y=g.headerHeight+f.gapButtonHeader:h=g.headerWidth+f.gapButtonHeader),"dropdown"===o.type&&"up"===o.direction&&(y=-f.gapButtonHeader+f.gapButton-g.openHeight),"dropdown"===o.type&&"left"===o.direction&&(h=-f.gapButtonHeader+f.gapButton-g.openWidth);var b={x:g.lx+h+o.pad.l,y:g.ly+y+o.pad.t,yPad:f.gapButton,xPad:f.gapButton,index:0},M={l:b.x+o.borderwidth,t:b.y+o.borderwidth};u.each((function(l,s){var c=n.select(this);c.call(v,o,l,e).call(A,o,b),c.on("click",(function(){n.event.defaultPrevented||(l.execute&&(l.args2&&o.active===s?(m(e,o,0,t,r,i,-1),a.executeAPICommand(e,l.method,l.args2)):(m(e,o,0,t,r,i,s),a.executeAPICommand(e,l.method,l.args))),e.emit("plotly_buttonclicked",{menu:o,button:l,active:o.active}))})),c.on("mouseover",(function(){c.call(w)})),c.on("mouseout",(function(){c.call(T,o),u.call(_,o)}))})),u.call(_,o),x?(M.w=Math.max(g.openWidth,g.headerWidth),M.h=b.y-M.t):(M.w=b.x-M.l,M.h=Math.max(g.openHeight,g.headerHeight)),M.direction=o.direction,i&&(u.size()?function(e,t,r,n,a,i){var o,l,s,c=a.direction,u="up"===c||"down"===c,d=a._dims,p=a.active;if(u)for(l=0,s=0;s0?[0]:[]);if(o.enter().append("g").classed(f.containerClassName,!0).style("cursor","pointer"),o.exit().each((function(){n.select(this).selectAll("g."+f.headerGroupClassName).each(i)})).remove(),0!==r.length){var s=o.selectAll("g."+f.headerGroupClassName).data(r,p);s.enter().append("g").classed(f.headerGroupClassName,!0);for(var c=l.ensureSingle(o,"g",f.dropdownButtonGroupClassName,(function(e){e.style("pointer-events","all")})),u=0;uw,k=l.barLength+2*l.barPad,A=l.barWidth+2*l.barPad,L=h,S=y+g;S+A>c&&(S=c-A);var O=this.container.selectAll("rect.scrollbar-horizontal").data(M?[0]:[]);O.exit().on(".drag",null).remove(),O.enter().append("rect").classed("scrollbar-horizontal",!0).call(a.fill,l.barColor),M?(this.hbar=O.attr({rx:l.barRadius,ry:l.barRadius,x:L,y:S,width:k,height:A}),this._hbarXMin=L+k/2,this._hbarTranslateMax=w-k):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var D=g>T,C=l.barWidth+2*l.barPad,E=l.barLength+2*l.barPad,P=h+m,R=y;P+C>s&&(P=s-C);var z=this.container.selectAll("rect.scrollbar-vertical").data(D?[0]:[]);z.exit().on(".drag",null).remove(),z.enter().append("rect").classed("scrollbar-vertical",!0).call(a.fill,l.barColor),D?(this.vbar=z.attr({rx:l.barRadius,ry:l.barRadius,x:P,y:R,width:C,height:E}),this._vbarYMin=R+E/2,this._vbarTranslateMax=T-E):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var I=this.id,N=u-.5,F=D?f+C+.5:f+.5,j=d-.5,B=M?p+A+.5:p+.5,H=o._topdefs.selectAll("#"+I).data(M||D?[0]:[]);if(H.exit().remove(),H.enter().append("clipPath").attr("id",I).append("rect"),M||D?(this._clipRect=H.select("rect").attr({x:Math.floor(N),y:Math.floor(j),width:Math.ceil(F)-Math.floor(N),height:Math.ceil(B)-Math.floor(j)}),this.container.call(i.setClipUrl,I,this.gd),this.bg.attr({x:h,y,width:m,height:g})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(i.setClipUrl,null),delete this._clipRect),M||D){var U=n.behavior.drag().on("dragstart",(function(){n.event.sourceEvent.preventDefault()})).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(U);var Y=n.behavior.drag().on("dragstart",(function(){n.event.sourceEvent.preventDefault(),n.event.sourceEvent.stopPropagation()})).on("drag",this._onBarDrag.bind(this));M&&this.hbar.on(".drag",null).call(Y),D&&this.vbar.on(".drag",null).call(Y)}this.setTranslate(t,r)},l.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(i.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},l.prototype._onBoxDrag=function(){var e=this.translateX,t=this.translateY;this.hbar&&(e-=n.event.dx),this.vbar&&(t-=n.event.dy),this.setTranslate(e,t)},l.prototype._onBoxWheel=function(){var e=this.translateX,t=this.translateY;this.hbar&&(e+=n.event.deltaY),this.vbar&&(t+=n.event.deltaY),this.setTranslate(e,t)},l.prototype._onBarDrag=function(){var e=this.translateX,t=this.translateY;if(this.hbar){var r=e+this._hbarXMin,a=r+this._hbarTranslateMax;e=(o.constrain(n.event.x,r,a)-r)/(a-r)*(this.position.w-this._box.w)}if(this.vbar){var i=t+this._vbarYMin,l=i+this._vbarTranslateMax;t=(o.constrain(n.event.y,i,l)-i)/(l-i)*(this.position.h-this._box.h)}this.setTranslate(e,t)},l.prototype.setTranslate=function(e,t){var r=this.position.w-this._box.w,n=this.position.h-this._box.h;if(e=o.constrain(e||0,0,r),t=o.constrain(t||0,0,n),this.translateX=e,this.translateY=t,this.container.call(i.setTranslate,this._box.l-this.position.l-e,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+e-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var a=e/r;this.hbar.call(i.setTranslate,e+a*this._hbarTranslateMax,t)}if(this.vbar){var l=t/n;this.vbar.call(i.setTranslate,e,t+l*this._vbarTranslateMax)}}},{"../../lib":287,"../color":157,"../drawing":179,"@plotly/d3":20}],262:[function(e,t,r){"use strict";t.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},{}],263:[function(e,t,r){"use strict";t.exports={axisRefDescription:function(e,t,r){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",t,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",t,"("+r+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",t,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",t,"and the",r,"of the domain of the","second",e,"axis."].join(" ")}}},{}],264:[function(e,t,r){"use strict";t.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}},{}],265:[function(e,t,r){"use strict";t.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},{}],266:[function(e,t,r){"use strict";t.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},{}],267:[function(e,t,r){"use strict";t.exports={BADNUM:void 0,FP_SAFE:1e-4*Number.MAX_VALUE,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:2440587.5,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"−"}},{}],268:[function(e,t,r){"use strict";r.xmlns="http://www.w3.org/2000/xmlns/",r.svg="http://www.w3.org/2000/svg",r.xlink="http://www.w3.org/1999/xlink",r.svgAttrs={xmlns:r.svg,"xmlns:xlink":r.xlink}},{}],269:[function(e,t,r){"use strict";r.version=e("./version").version,e("native-promise-only"),e("../build/plotcss");for(var n=e("./registry"),a=r.register=n.register,i=e("./plot_api"),o=Object.keys(i),l=0;lplotly-logomark"}}},{}],271:[function(e,t,r){"use strict";r.isLeftAnchor=function(e){return"left"===e.xanchor||"auto"===e.xanchor&&e.x<=1/3},r.isCenterAnchor=function(e){return"center"===e.xanchor||"auto"===e.xanchor&&e.x>1/3&&e.x<2/3},r.isRightAnchor=function(e){return"right"===e.xanchor||"auto"===e.xanchor&&e.x>=2/3},r.isTopAnchor=function(e){return"top"===e.yanchor||"auto"===e.yanchor&&e.y>=2/3},r.isMiddleAnchor=function(e){return"middle"===e.yanchor||"auto"===e.yanchor&&e.y>1/3&&e.y<2/3},r.isBottomAnchor=function(e){return"bottom"===e.yanchor||"auto"===e.yanchor&&e.y<=1/3}},{}],272:[function(e,t,r){"use strict";var n=e("./mod"),a=n.mod,i=n.modHalf,o=Math.PI,l=2*o;function s(e){return Math.abs(e[1]-e[0])>l-1e-14}function c(e,t){return i(t-e,l)}function u(e,t){if(s(t))return!0;var r,n;t[0](n=a(n,l))&&(n+=l);var i=a(e,l),o=i+l;return i>=r&&i<=n||o>=r&&o<=n}function f(e,t,r,n,a,i,c){a=a||0,i=i||0;var u,f,d,p,h,m=s([r,n]);function y(e,t){return[e*Math.cos(t)+a,i-e*Math.sin(t)]}m?(u=0,f=o,d=l):r=a&&e<=i);var a,i},pathArc:function(e,t,r,n,a){return f(null,e,t,r,n,a,0)},pathSector:function(e,t,r,n,a){return f(null,e,t,r,n,a,1)},pathAnnulus:function(e,t,r,n,a,i){return f(e,t,r,n,a,i,1)}}},{"./mod":294}],273:[function(e,t,r){"use strict";var n=Array.isArray,a=ArrayBuffer,i=DataView;function o(e){return a.isView(e)&&!(e instanceof i)}function l(e){return n(e)||o(e)}function s(e,t,r){if(l(e)){if(l(e[0])){for(var n=r,a=0;aa.max?t.set(r):t.set(+e)}},integer:{coerceFunction:function(e,t,r,a){e%1||!n(e)||void 0!==a.min&&ea.max?t.set(r):t.set(+e)}},string:{coerceFunction:function(e,t,r,n){if("string"!=typeof e){var a="number"==typeof e;!0!==n.strict&&a?t.set(String(e)):t.set(r)}else n.noBlank&&!e?t.set(r):t.set(e)}},color:{coerceFunction:function(e,t,r){a(e).isValid()?t.set(e):t.set(r)}},colorlist:{coerceFunction:function(e,t,r){Array.isArray(e)&&e.length&&e.every((function(e){return a(e).isValid()}))?t.set(e):t.set(r)}},colorscale:{coerceFunction:function(e,t,r){t.set(o.get(e,r))}},angle:{coerceFunction:function(e,t,r){"auto"===e?t.set("auto"):n(e)?t.set(f(+e,360)):t.set(r)}},subplotid:{coerceFunction:function(e,t,r,n){var a=n.regex||u(r);"string"==typeof e&&a.test(e)?t.set(e):t.set(r)},validateFunction:function(e,t){var r=t.dflt;return e===r||"string"==typeof e&&!!u(r).test(e)}},flaglist:{coerceFunction:function(e,t,r,n){if("string"==typeof e)if(-1===(n.extras||[]).indexOf(e)){for(var a=e.split("+"),i=0;i=n&&e<=a?e:u}if("string"!=typeof e&&"number"!=typeof e)return u;e=String(e);var c=_(t),g=e.charAt(0);!c||"G"!==g&&"g"!==g||(e=e.substr(1),t="");var w=c&&"chinese"===t.substr(0,7),T=e.match(w?x:v);if(!T)return u;var M=T[1],k=T[3]||"1",A=Number(T[5]||1),L=Number(T[7]||0),S=Number(T[9]||0),O=Number(T[11]||0);if(c){if(2===M.length)return u;var D;M=Number(M);try{var C=y.getComponentMethod("calendars","getCal")(t);if(w){var E="i"===k.charAt(k.length-1);k=parseInt(k,10),D=C.newDate(M,C.toMonthIndex(M,k,E),A)}else D=C.newDate(M,Number(k),A)}catch(e){return u}return D?(D.toJD()-m)*f+L*d+S*p+O*h:u}M=2===M.length?(Number(M)+2e3-b)%100+b:Number(M),k-=1;var P=new Date(Date.UTC(2e3,k,A,L,S));return P.setUTCFullYear(M),P.getUTCMonth()!==k||P.getUTCDate()!==A?u:P.getTime()+O*h},n=r.MIN_MS=r.dateTime2ms("-9999"),a=r.MAX_MS=r.dateTime2ms("9999-12-31 23:59:59.9999"),r.isDateTime=function(e,t){return r.dateTime2ms(e,t)!==u};var T=90*f,M=3*d,k=5*p;function A(e,t,r,n,a){if((t||r||n||a)&&(e+=" "+w(t,2)+":"+w(r,2),(n||a)&&(e+=":"+w(n,2),a))){for(var i=4;a%10==0;)i-=1,a/=10;e+="."+w(a,i)}return e}r.ms2DateTime=function(e,t,r){if("number"!=typeof e||!(e>=n&&e<=a))return u;t||(t=0);var i,o,l,c,v,x,b=Math.floor(10*s(e+.05,1)),w=Math.round(e-b/10);if(_(r)){var L=Math.floor(w/f)+m,S=Math.floor(s(e,f));try{i=y.getComponentMethod("calendars","getCal")(r).fromJD(L).formatDate("yyyy-mm-dd")}catch(e){i=g("G%Y-%m-%d")(new Date(w))}if("-"===i.charAt(0))for(;i.length<11;)i="-0"+i.substr(1);else for(;i.length<10;)i="0"+i;o=t=n+f&&e<=a-f))return u;var t=Math.floor(10*s(e+.05,1)),r=new Date(Math.round(e-t/10));return A(i("%Y-%m-%d")(r),r.getHours(),r.getMinutes(),r.getSeconds(),10*r.getUTCMilliseconds()+t)},r.cleanDate=function(e,t,n){if(e===u)return t;if(r.isJSDate(e)||"number"==typeof e&&isFinite(e)){if(_(n))return l.error("JS Dates and milliseconds are incompatible with world calendars",e),t;if(!(e=r.ms2DateTimeLocal(+e))&&void 0!==t)return t}else if(!r.isDateTime(e,n))return l.error("unrecognized date",e),t;return e};var L=/%\d?f/g,S=/%h/g,O={1:"1",2:"1",3:"2",4:"2"};function D(e,t,r,n){e=e.replace(L,(function(e){var r=Math.min(+e.charAt(1)||6,6);return(t/1e3%1+2).toFixed(r).substr(2).replace(/0+$/,"")||"0"}));var a=new Date(Math.floor(t+.05));if(e=e.replace(S,(function(){return O[r("%q")(a)]})),_(n))try{e=y.getComponentMethod("calendars","worldCalFmt")(e,t,n)}catch(e){return"Invalid"}return r(e)(a)}var C=[59,59.9,59.99,59.999,59.9999];r.formatDate=function(e,t,r,n,a,i){if(a=_(a)&&a,!t)if("y"===r)t=i.year;else if("m"===r)t=i.month;else{if("d"!==r)return function(e,t){var r=s(e+.05,f),n=w(Math.floor(r/d),2)+":"+w(s(Math.floor(r/p),60),2);if("M"!==t){o(t)||(t=0);var a=(100+Math.min(s(e/h,60),C[t])).toFixed(t).substr(1);t>0&&(a=a.replace(/0+$/,"").replace(/[\.]$/,"")),n+=":"+a}return n}(e,r)+"\n"+D(i.dayMonthYear,e,n,a);t=i.dayMonth+"\n"+i.year}return D(t,e,n,a)};var E=3*f;r.incrementMonth=function(e,t,r){r=_(r)&&r;var n=s(e,f);if(e=Math.round(e-n),r)try{var a=Math.round(e/f)+m,i=y.getComponentMethod("calendars","getCal")(r),o=i.fromJD(a);return t%12?i.add(o,t,"m"):i.add(o,t/12,"y"),(o.toJD()-m)*f+n}catch(t){l.error("invalid ms "+e+" in calendar "+r)}var c=new Date(e+E);return c.setUTCMonth(c.getUTCMonth()+t)+n-E},r.findExactDates=function(e,t){for(var r,n,a=0,i=0,l=0,s=0,c=_(t)&&y.getComponentMethod("calendars","getCal")(t),u=0;u1||m<0||m>1?null:{x:e+s*m,y:t+f*m}}function s(e,t,r,n,a){var i=n*e+a*t;if(i<0)return n*n+a*a;if(i>r){var o=n-e,l=a-t;return o*o+l*l}var s=n*t-a*e;return s*s/r}r.segmentsIntersect=l,r.segmentDistance=function(e,t,r,n,a,i,o,c){if(l(e,t,r,n,a,i,o,c))return 0;var u=r-e,f=n-t,d=o-a,p=c-i,h=u*u+f*f,m=d*d+p*p,y=Math.min(s(u,f,h,a-e,i-t),s(u,f,h,o-e,c-t),s(d,p,m,e-a,t-i),s(d,p,m,r-a,n-i));return Math.sqrt(y)},r.getTextLocation=function(e,t,r,l){if(e===a&&l===i||(n={},a=e,i=l),n[r])return n[r];var s=e.getPointAtLength(o(r-l/2,t)),c=e.getPointAtLength(o(r+l/2,t)),u=Math.atan((c.y-s.y)/(c.x-s.x)),f=e.getPointAtLength(o(r,t)),d={x:(4*f.x+s.x+c.x)/6,y:(4*f.y+s.y+c.y)/6,theta:u};return n[r]=d,d},r.clearLocationCache=function(){a=null},r.getVisibleSegment=function(e,t,r){var n,a,i=t.left,o=t.right,l=t.top,s=t.bottom,c=0,u=e.getTotalLength(),f=u;function d(t){var r=e.getPointAtLength(t);0===t?n=r:t===u&&(a=r);var c=r.xo?r.x-o:0,f=r.ys?r.y-s:0;return Math.sqrt(c*c+f*f)}for(var p=d(c);p;){if((c+=p+r)>f)return;p=d(c)}for(p=d(f);p;){if(c>(f-=p+r))return;p=d(f)}return{min:c,max:f,len:f-c,total:u,isClosed:0===c&&f===u&&Math.abs(n.x-a.x)<.1&&Math.abs(n.y-a.y)<.1}},r.findPointOnPath=function(e,t,r,n){for(var a,i,o,l=(n=n||{}).pathLength||e.getTotalLength(),s=n.tolerance||.001,c=n.iterationLimit||30,u=e.getPointAtLength(0)[r]>e.getPointAtLength(l)[r]?-1:1,f=0,d=0,p=l;f0?p=a:d=a,f++}return i}},{"./mod":294}],285:[function(e,t,r){"use strict";t.exports=function(e){return e}},{}],286:[function(e,t,r){"use strict";t.exports=function(e,t){if(!t)return e;var r=1/Math.abs(t),n=r>1?(r*e+r*t)/r:e+t,a=String(n).length;if(a>16){var i=String(t).length;if(a>=String(e).length+i){var o=parseFloat(n).toPrecision(12);-1===o.indexOf("e+")&&(n=+o)}}return n}},{}],287:[function(e,t,r){"use strict";var n=e("@plotly/d3"),a=e("d3-time-format").utcFormat,i=e("d3-format").format,o=e("fast-isnumeric"),l=e("../constants/numerical"),s=l.FP_SAFE,c=-s,u=l.BADNUM,f=t.exports={};f.adjustFormat=function(e){return!e||/^\d[.]\df/.test(e)||/[.]\d%/.test(e)?e:"0.f"===e?"~f":/^\d%/.test(e)?"~%":/^\ds/.test(e)?"~s":!/^[~,.0$]/.test(e)&&/[&fps]/.test(e)?"~"+e:e};var d={};f.warnBadFormat=function(e){var t=String(e);d[t]||(d[t]=1,f.warn('encountered bad format: "'+t+'"'))},f.noFormat=function(e){return String(e)},f.numberFormat=function(e){var t;try{t=i(f.adjustFormat(e))}catch(t){return f.warnBadFormat(e),f.noFormat}return t},f.nestedProperty=e("./nested_property"),f.keyedContainer=e("./keyed_container"),f.relativeAttr=e("./relative_attr"),f.isPlainObject=e("./is_plain_object"),f.toLogRange=e("./to_log_range"),f.relinkPrivateKeys=e("./relink_private");var p=e("./array");f.isTypedArray=p.isTypedArray,f.isArrayOrTypedArray=p.isArrayOrTypedArray,f.isArray1D=p.isArray1D,f.ensureArray=p.ensureArray,f.concat=p.concat,f.maxRowLength=p.maxRowLength,f.minRowLength=p.minRowLength;var h=e("./mod");f.mod=h.mod,f.modHalf=h.modHalf;var m=e("./coerce");f.valObjectMeta=m.valObjectMeta,f.coerce=m.coerce,f.coerce2=m.coerce2,f.coerceFont=m.coerceFont,f.coercePattern=m.coercePattern,f.coerceHoverinfo=m.coerceHoverinfo,f.coerceSelectionMarkerOpacity=m.coerceSelectionMarkerOpacity,f.validate=m.validate;var y=e("./dates");f.dateTime2ms=y.dateTime2ms,f.isDateTime=y.isDateTime,f.ms2DateTime=y.ms2DateTime,f.ms2DateTimeLocal=y.ms2DateTimeLocal,f.cleanDate=y.cleanDate,f.isJSDate=y.isJSDate,f.formatDate=y.formatDate,f.incrementMonth=y.incrementMonth,f.dateTick0=y.dateTick0,f.dfltRange=y.dfltRange,f.findExactDates=y.findExactDates,f.MIN_MS=y.MIN_MS,f.MAX_MS=y.MAX_MS;var g=e("./search");f.findBin=g.findBin,f.sorterAsc=g.sorterAsc,f.sorterDes=g.sorterDes,f.distinctVals=g.distinctVals,f.roundUp=g.roundUp,f.sort=g.sort,f.findIndexOfMin=g.findIndexOfMin,f.sortObjectKeys=e("./sort_object_keys");var v=e("./stats");f.aggNums=v.aggNums,f.len=v.len,f.mean=v.mean,f.median=v.median,f.midRange=v.midRange,f.variance=v.variance,f.stdev=v.stdev,f.interp=v.interp;var x=e("./matrix");f.init2dArray=x.init2dArray,f.transposeRagged=x.transposeRagged,f.dot=x.dot,f.translationMatrix=x.translationMatrix,f.rotationMatrix=x.rotationMatrix,f.rotationXYMatrix=x.rotationXYMatrix,f.apply3DTransform=x.apply3DTransform,f.apply2DTransform=x.apply2DTransform,f.apply2DTransform2=x.apply2DTransform2,f.convertCssMatrix=x.convertCssMatrix,f.inverseTransformMatrix=x.inverseTransformMatrix;var b=e("./angles");f.deg2rad=b.deg2rad,f.rad2deg=b.rad2deg,f.angleDelta=b.angleDelta,f.angleDist=b.angleDist,f.isFullCircle=b.isFullCircle,f.isAngleInsideSector=b.isAngleInsideSector,f.isPtInsideSector=b.isPtInsideSector,f.pathArc=b.pathArc,f.pathSector=b.pathSector,f.pathAnnulus=b.pathAnnulus;var _=e("./anchor_utils");f.isLeftAnchor=_.isLeftAnchor,f.isCenterAnchor=_.isCenterAnchor,f.isRightAnchor=_.isRightAnchor,f.isTopAnchor=_.isTopAnchor,f.isMiddleAnchor=_.isMiddleAnchor,f.isBottomAnchor=_.isBottomAnchor;var w=e("./geometry2d");f.segmentsIntersect=w.segmentsIntersect,f.segmentDistance=w.segmentDistance,f.getTextLocation=w.getTextLocation,f.clearLocationCache=w.clearLocationCache,f.getVisibleSegment=w.getVisibleSegment,f.findPointOnPath=w.findPointOnPath;var T=e("./extend");f.extendFlat=T.extendFlat,f.extendDeep=T.extendDeep,f.extendDeepAll=T.extendDeepAll,f.extendDeepNoArrays=T.extendDeepNoArrays;var M=e("./loggers");f.log=M.log,f.warn=M.warn,f.error=M.error;var k=e("./regex");f.counterRegex=k.counter;var A=e("./throttle");f.throttle=A.throttle,f.throttleDone=A.done,f.clearThrottle=A.clear;var L=e("./dom");function S(e){var t={};for(var r in e)for(var n=e[r],a=0;as||e=t)&&o(e)&&e>=0&&e%1==0},f.noop=e("./noop"),f.identity=e("./identity"),f.repeat=function(e,t){for(var r=new Array(t),n=0;nr?Math.max(r,Math.min(t,e)):Math.max(t,Math.min(r,e))},f.bBoxIntersect=function(e,t,r){return r=r||0,e.left<=t.right+r&&t.left<=e.right+r&&e.top<=t.bottom+r&&t.top<=e.bottom+r},f.simpleMap=function(e,t,r,n,a){for(var i=e.length,o=new Array(i),l=0;l=Math.pow(2,r)?a>10?(f.warn("randstr failed uniqueness"),s):e(t,r,n,(a||0)+1):s},f.OptionControl=function(e,t){e||(e={}),t||(t="opt");var r={optionList:[],_newoption:function(n){n[t]=e,r[n.name]=n,r.optionList.push(n)}};return r["_"+t]=e,r},f.smooth=function(e,t){if((t=Math.round(t)||0)<2)return e;var r,n,a,i,o=e.length,l=2*o,s=2*t-1,c=new Array(s),u=new Array(o);for(r=0;r=l&&(a-=l*Math.floor(a/l)),a<0?a=-1-a:a>=o&&(a=l-1-a),i+=e[a]*c[n];u[r]=i}return u},f.syncOrAsync=function(e,t,r){var n;function a(){return f.syncOrAsync(e,t,r)}for(;e.length;)if((n=(0,e.splice(0,1)[0])(t))&&n.then)return n.then(a);return r&&r(t)},f.stripTrailingSlash=function(e){return"/"===e.substr(-1)?e.substr(0,e.length-1):e},f.noneOrAll=function(e,t,r){if(e){var n,a=!1,i=!0;for(n=0;n0?t:0}))},f.fillArray=function(e,t,r,n){if(n=n||f.identity,f.isArrayOrTypedArray(e))for(var a=0;a1?a+o[1]:"";if(i&&(o.length>1||l.length>4||r))for(;n.test(l);)l=l.replace(n,"$1"+i+"$2");return l+s},f.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var R=/^\w*$/;f.templateString=function(e,t){var r={};return e.replace(f.TEMPLATE_STRING_REGEX,(function(e,n){var a;return R.test(n)?a=t[n]:(r[n]=r[n]||f.nestedProperty(t,n).get,a=r[n]()),f.isValidTextValue(a)?a:""}))};var z={max:10,count:0,name:"hovertemplate"};f.hovertemplateString=function(){return F.apply(z,arguments)};var I={max:10,count:0,name:"texttemplate"};f.texttemplateString=function(){return F.apply(I,arguments)};var N=/^[:|\|]/;function F(e,t,r){var n=this,i=arguments;t||(t={});var o={};return e.replace(f.TEMPLATE_STRING_REGEX,(function(e,l,s){var c,u,d,p="_xother"===l||"_yother"===l,h="_xother_"===l||"_yother_"===l,m="xother_"===l||"yother_"===l,y="xother"===l||"yother"===l||p||m||h,g=l;if((p||h)&&(g=g.substring(1)),(m||h)&&(g=g.substring(0,g.length-1)),y){if(void 0===(c=t[g]))return""}else for(d=3;d=48&&o<=57,c=l>=48&&l<=57;if(s&&(n=10*n+o-48),c&&(a=10*a+l-48),!s||!c){if(n!==a)return n-a;if(o!==l)return o-l}}return a-n};var j=2e9;f.seedPseudoRandom=function(){j=2e9},f.pseudoRandom=function(){var e=j;return j=(69069*j+1)%4294967296,Math.abs(j-e)<429496729?f.pseudoRandom():j/4294967296},f.fillText=function(e,t,r){var n=Array.isArray(r)?function(e){r.push(e)}:function(e){r.text=e},a=f.extractOption(e,t,"htx","hovertext");if(f.isValidTextValue(a))return n(a);var i=f.extractOption(e,t,"tx","text");return f.isValidTextValue(i)?n(i):void 0},f.isValidTextValue=function(e){return e||0===e},f.formatPercent=function(e,t){t=t||0;for(var r=(Math.round(100*e*Math.pow(10,t))*Math.pow(.1,t)).toFixed(t)+"%",n=0;n1&&(c=1):c=0,f.strTranslate(a-c*(r+o),i-c*(n+l))+f.strScale(c)+(s?"rotate("+s+(t?"":" "+r+" "+n)+")":"")},f.ensureUniformFontSize=function(e,t){var r=f.extendFlat({},t);return r.size=Math.max(t.size,e._fullLayout.uniformtext.minsize||0),r},f.join2=function(e,t,r){var n=e.length;return n>1?e.slice(0,-1).join(t)+r+e[n-1]:e.join(t)},f.bigFont=function(e){return Math.round(1.2*e)};var B=f.getFirefoxVersion(),H=null!==B&&B<86;f.getPositionFromD3Event=function(){return H?[n.event.layerX,n.event.layerY]:[n.event.offsetX,n.event.offsetY]}},{"../constants/numerical":267,"./anchor_utils":271,"./angles":272,"./array":273,"./clean_number":274,"./clear_responsive":276,"./coerce":277,"./dates":278,"./dom":279,"./extend":281,"./filter_unique":282,"./filter_visible":283,"./geometry2d":284,"./identity":285,"./increment":286,"./is_plain_object":288,"./keyed_container":289,"./localize":290,"./loggers":291,"./make_trace_groups":292,"./matrix":293,"./mod":294,"./nested_property":295,"./noop":296,"./notifier":297,"./preserve_drawing_buffer":300,"./push_unique":301,"./regex":303,"./relative_attr":304,"./relink_private":305,"./search":306,"./sort_object_keys":308,"./stats":309,"./throttle":311,"./to_log_range":312,"@plotly/d3":20,"d3-format":29,"d3-time-format":30,"fast-isnumeric":33}],288:[function(e,t,r){"use strict";t.exports=function(e){return window&&window.process&&window.process.versions?"[object Object]"===Object.prototype.toString.call(e):"[object Object]"===Object.prototype.toString.call(e)&&Object.getPrototypeOf(e).hasOwnProperty("hasOwnProperty")}},{}],289:[function(e,t,r){"use strict";var n=e("./nested_property"),a=/^\w*$/;t.exports=function(e,t,r,i){var o,l,s;r=r||"name",i=i||"value";var c={};t&&t.length?(s=n(e,t),l=s.get()):l=e,t=t||"";var u={};if(l)for(o=0;o2)return c[t]=2|c[t],d.set(e,null);if(f){for(o=t;o1){var t=["LOG:"];for(e=0;e1){var r=[];for(e=0;e"),"long")}},i.warn=function(){var e;if(n.logging>0){var t=["WARN:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}},i.error=function(){var e;if(n.logging>0){var t=["ERROR:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}}},{"../plot_api/plot_config":321,"./notifier":297}],292:[function(e,t,r){"use strict";var n=e("@plotly/d3");t.exports=function(e,t,r){var a=e.selectAll("g."+r.replace(/\s/g,".")).data(t,(function(e){return e[0].trace.uid}));a.exit().remove(),a.enter().append("g").attr("class",r),a.order();var i=e.classed("rangeplot")?"nodeRangePlot3":"node3";return a.each((function(e){e[0][i]=n.select(this)})),a}},{"@plotly/d3":20}],293:[function(e,t,r){"use strict";var n=e("gl-mat4");r.init2dArray=function(e,t){for(var r=new Array(e),n=0;nt/2?e-Math.round(e/t)*t:e}}},{}],295:[function(e,t,r){"use strict";var n=e("fast-isnumeric"),a=e("./array").isArrayOrTypedArray;function i(e,t){return function(){var r,n,o,l,s,c=e;for(l=0;l/g),s=0;si||c===a||cl||t&&s(e))}:function(e,t){var s=e[0],c=e[1];if(s===a||si||c===a||cl)return!1;var u,f,d,p,h,m=r.length,y=r[0][0],g=r[0][1],v=0;for(u=1;uMath.max(f,y)||c>Math.max(d,g)))if(cu||Math.abs(n(o,d))>a)return!0;return!1},i.filter=function(e,t){var r=[e[0]],n=0,a=0;function o(o){e.push(o);var l=r.length,s=n;r.splice(a+1);for(var c=s+1;c1&&o(e.pop()),{addPt:o,raw:e,filtered:r}}},{"../constants/numerical":267,"./matrix":293}],300:[function(e,t,r){"use strict";var n=e("fast-isnumeric"),a=e("is-mobile");t.exports=function(e){var t;if("string"!=typeof(t=e&&e.hasOwnProperty("userAgent")?e.userAgent:function(){var e;return"undefined"!=typeof navigator&&(e=navigator.userAgent),e&&e.headers&&"string"==typeof e.headers["user-agent"]&&(e=e.headers["user-agent"]),e}()))return!0;var r=a({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!r)for(var i=t.split(" "),o=1;o-1;l--){var s=i[l];if("Version/"===s.substr(0,8)){var c=s.substr(8).split(".")[0];if(n(c)&&(c=+c),c>=13)return!0}}return r}},{"fast-isnumeric":33,"is-mobile":69}],301:[function(e,t,r){"use strict";t.exports=function(e,t){if(t instanceof RegExp){for(var r=t.toString(),n=0;na.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--))},startSequence:function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0},stopSequence:function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1},undo:function(e){var t,r;if(!(void 0===e.undoQueue||isNaN(e.undoQueue.index)||e.undoQueue.index<=0)){for(e.undoQueue.index--,t=e.undoQueue.queue[e.undoQueue.index],e.undoQueue.inSequence=!0,r=0;r=e.undoQueue.queue.length)){for(t=e.undoQueue.queue[e.undoQueue.index],e.undoQueue.inSequence=!0,r=0;rt}function f(e,t){return e>=t}r.findBin=function(e,t,r){if(n(t.start))return r?Math.ceil((e-t.start)/t.size-l)-1:Math.floor((e-t.start)/t.size+l);var i,o,d=0,p=t.length,h=0,m=p>1?(t[p-1]-t[0])/(p-1):1;for(o=m>=0?r?s:c:r?f:u,e+=m*l*(r?-1:1)*(m>=0?1:-1);d90&&a.log("Long binary search..."),d-1},r.sorterAsc=function(e,t){return e-t},r.sorterDes=function(e,t){return t-e},r.distinctVals=function(e){var t,n=e.slice();for(n.sort(r.sorterAsc),t=n.length-1;t>-1&&n[t]===o;t--);for(var a,i=n[t]-n[0]||1,l=i/(t||1)/1e4,s=[],c=0;c<=t;c++){var u=n[c],f=u-a;void 0===a?(s.push(u),a=u):f>l&&(i=Math.min(i,f),s.push(u),a=u)}return{vals:s,minDiff:i}},r.roundUp=function(e,t,r){for(var n,a=0,i=t.length-1,o=0,l=r?0:1,s=r?1:0,c=r?Math.ceil:Math.floor;a0&&(n=1),r&&n)return e.sort(t)}return n?e:e.reverse()},r.findIndexOfMin=function(e,t){t=t||i;for(var r,n=1/0,a=0;ai.length)&&(o=i.length),n(t)||(t=!1),a(i[0])){for(s=new Array(o),l=0;le.length-1)return e[e.length-1];var r=t%1;return r*e[Math.ceil(t)]+(1-r)*e[Math.floor(t)]}},{"./array":273,"fast-isnumeric":33}],310:[function(e,t,r){"use strict";var n=e("@plotly/d3"),a=e("../lib"),i=a.strTranslate,o=e("../constants/xmlns_namespaces"),l=e("../constants/alignment").LINE_SPACING;function s(e,t){return e.node().getBoundingClientRect()[t]}var c=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;r.convertToTspans=function(e,t,y){var L=e.text(),S=!e.attr("data-notex")&&"undefined"!=typeof MathJax&&L.match(c),C=n.select(e.node().parentNode);if(!C.empty()){var E=e.attr("class")?e.attr("class").split(" ")[0]:"text";return E+="-math",C.selectAll("svg."+E).remove(),C.selectAll("g."+E+"-group").remove(),e.style("display",null).attr({"data-unformatted":L,"data-math":"N"}),S?(t&&t._promises||[]).push(new Promise((function(t){e.style("display","none");var r=parseInt(e.node().style.fontSize,10),o={fontSize:r};!function(e,t,r){var i,o,l,s;MathJax.Hub.Queue((function(){return o=a.extendDeepAll({},MathJax.Hub.config),l=MathJax.Hub.processSectionDelay,void 0!==MathJax.Hub.processSectionDelay&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:[["$","$"],["\\(","\\)"]]},displayAlign:"left"})}),(function(){if("SVG"!==(i=MathJax.Hub.config.menuSettings.renderer))return MathJax.Hub.setRenderer("SVG")}),(function(){var r="math-output-"+a.randstr({},64);return s=n.select("body").append("div").attr({id:r}).style({visibility:"hidden",position:"absolute"}).style({"font-size":t.fontSize+"px"}).text(e.replace(u,"\\lt ").replace(f,"\\gt ")),MathJax.Hub.Typeset(s.node())}),(function(){var t=n.select("body").select("#MathJax_SVG_glyphs");if(s.select(".MathJax_SVG").empty()||!s.select("svg").node())a.log("There was an error in the tex syntax.",e),r();else{var o=s.select("svg").node().getBoundingClientRect();r(s.select(".MathJax_SVG"),t,o)}if(s.remove(),"SVG"!==i)return MathJax.Hub.setRenderer(i)}),(function(){return void 0!==l&&(MathJax.Hub.processSectionDelay=l),MathJax.Hub.Config(o)}))}(S[2],o,(function(n,a,o){C.selectAll("svg."+E).remove(),C.selectAll("g."+E+"-group").remove();var l=n&&n.select("svg");if(!l||!l.node())return P(),void t();var c=C.append("g").classed(E+"-group",!0).attr({"pointer-events":"none","data-unformatted":L,"data-math":"Y"});c.node().appendChild(l.node()),a&&a.node()&&l.node().insertBefore(a.node().cloneNode(!0),l.node().firstChild),l.attr({class:E,height:o.height,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var u=e.node().style.fill||"black",f=l.select("g");f.attr({fill:u,stroke:u});var d=s(f,"width"),p=s(f,"height"),h=+e.attr("x")-d*{start:0,middle:.5,end:1}[e.attr("text-anchor")||"start"],m=-(r||s(e,"height"))/4;"y"===E[0]?(c.attr({transform:"rotate("+[-90,+e.attr("x"),+e.attr("y")]+")"+i(-d/2,m-p/2)}),l.attr({x:+e.attr("x"),y:+e.attr("y")})):"l"===E[0]?l.attr({x:e.attr("x"),y:m-p/2}):"a"===E[0]&&0!==E.indexOf("atitle")?l.attr({x:0,y:m}):l.attr({x:h,y:+e.attr("y")+m-p/2}),y&&y.call(e,c),t(c)}))}))):P(),e}function P(){C.empty()||(E=e.attr("class")+"-math",C.select("svg."+E).remove()),e.text("").style("white-space","pre"),function(e,t){t=t.replace(g," ");var r,i=!1,s=[],c=-1;function u(){c++;var t=document.createElementNS(o.svg,"tspan");n.select(t).attr({class:"line",dy:c*l+"em"}),e.appendChild(t),r=t;var a=s;if(s=[{node:t}],a.length>1)for(var i=1;i doesnt match end tag <"+e+">. Pretending it did match.",t),r=s[s.length-1].node}else a.log("Ignoring unexpected end tag .",t)}b.test(t)?u():(r=e,s=[{node:e}]);for(var S=t.split(v),C=0;C|>|>)/g;var d={sup:"font-size:70%",sub:"font-size:70%",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},p={sub:"0.3em",sup:"-0.6em"},h={sub:"-0.21em",sup:"0.42em"},m="​",y=["http:","https:","mailto:","",void 0,":"],g=r.NEWLINES=/(\r\n?|\n)/g,v=/(<[^<>]*>)/,x=/<(\/?)([^ >]*)(\s+(.*))?>/i,b=//i;r.BR_TAG_ALL=//gi;var _=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,w=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,T=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,M=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function k(e,t){if(!e)return null;var r=e.match(t),n=r&&(r[3]||r[4]);return n&&O(n)}var A=/(^|;)\s*color:/;r.plainText=function(e,t){for(var r=void 0!==(t=t||{}).len&&-1!==t.len?t.len:1/0,n=void 0!==t.allowedTags?t.allowedTags:["br"],a=e.split(v),i=[],o="",l=0,s=0;s3?i.push(c.substr(0,p-3)+"..."):i.push(c.substr(0,p));break}o=""}}return i.join("")};var L={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},S=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function O(e){return e.replace(S,(function(e,t){return("#"===t.charAt(0)?function(e){if(!(e>1114111)){var t=String.fromCodePoint;if(t)return t(e);var r=String.fromCharCode;return e<=65535?r(e):r(55232+(e>>10),e%1024+56320)}}("x"===t.charAt(1)?parseInt(t.substr(2),16):parseInt(t.substr(1),10)):L[t])||e}))}function D(e){var t=encodeURI(decodeURI(e)),r=document.createElement("a"),n=document.createElement("a");r.href=e,n.href=t;var a=r.protocol,i=n.protocol;return-1!==y.indexOf(a)&&-1!==y.indexOf(i)?t:""}function C(e,t,r){var n,i,o,l=r.horizontalAlign,s=r.verticalAlign||"top",c=e.node().getBoundingClientRect(),u=t.node().getBoundingClientRect();return i="bottom"===s?function(){return c.bottom-n.height}:"middle"===s?function(){return c.top+(c.height-n.height)/2}:function(){return c.top},o="right"===l?function(){return c.right-n.width}:"center"===l?function(){return c.left+(c.width-n.width)/2}:function(){return c.left},function(){n=this.node().getBoundingClientRect();var e=o()-u.left,t=i()-u.top,l=r.gd||{};if(r.gd){l._fullLayout._calcInverseTransform(l);var s=a.apply3DTransform(l._fullLayout._invTransform)(e,t);e=s[0],t=s[1]}return this.style({top:t+"px",left:e+"px","z-index":1e3}),this}}r.convertEntities=O,r.sanitizeHTML=function(e){e=e.replace(g," ");for(var t=document.createElement("p"),r=t,a=[],i=e.split(v),o=0;oi.ts+t?s():i.timer=setTimeout((function(){s(),i.timer=null}),t)},r.done=function(e){var t=n[e];return t&&t.timer?new Promise((function(e){var r=t.onDone;t.onDone=function(){r&&r(),e(),t.onDone=null}})):Promise.resolve()},r.clear=function(e){if(e)a(n[e]),delete n[e];else for(var t in n)r.clear(t)}},{}],312:[function(e,t,r){"use strict";var n=e("fast-isnumeric");t.exports=function(e,t){if(e>0)return Math.log(e)/Math.LN10;var r=Math.log(Math.min(t[0],t[1]))/Math.LN10;return n(r)||(r=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),r}},{"fast-isnumeric":33}],313:[function(e,t,r){"use strict";t.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}},{}],314:[function(e,t,r){"use strict";t.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}},{}],315:[function(e,t,r){"use strict";var n=e("../registry");t.exports=function(e){for(var t,r,a=n.layoutArrayContainers,i=n.layoutArrayRegexes,o=e.split("[")[0],l=0;l0&&o.log("Clearing previous rejected promises from queue."),e._promises=[]},r.cleanLayout=function(e){var t,n;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var i=(l.subplotsRegistry.cartesian||{}).attrRegex,s=(l.subplotsRegistry.polar||{}).attrRegex,f=(l.subplotsRegistry.ternary||{}).attrRegex,d=(l.subplotsRegistry.gl3d||{}).attrRegex,m=Object.keys(e);for(t=0;t3?(P.x=1.02,P.xanchor="left"):P.x<-2&&(P.x=-.02,P.xanchor="right"),P.y>3?(P.y=1.02,P.yanchor="bottom"):P.y<-2&&(P.y=-.02,P.yanchor="top")),h(e),"rotate"===e.dragmode&&(e.dragmode="orbit"),c.clean(e),e.template&&e.template.layout&&r.cleanLayout(e.template.layout),e},r.cleanData=function(e){for(var t=0;t0)return e.substr(0,t)}r.hasParent=function(e,t){for(var r=b(t);r;){if(r in e)return!0;r=b(r)}return!1};var _=["x","y","z"];r.clearAxisTypes=function(e,t,r){for(var n=0;n1&&i.warn("Full array edits are incompatible with other edits",f);var v=r[""][""];if(c(v))t.set(null);else{if(!Array.isArray(v))return i.warn("Unrecognized full array edit value",f,v),!0;t.set(v)}return!m&&(d(y,g),p(e),!0)}var x,b,_,w,T,M,k,A,L=Object.keys(r).map(Number).sort(o),S=t.get(),O=S||[],D=u(g,f).get(),C=[],E=-1,P=O.length;for(x=0;xO.length-(k?0:1))i.warn("index out of range",f,_);else if(void 0!==M)T.length>1&&i.warn("Insertion & removal are incompatible with edits to the same index.",f,_),c(M)?C.push(_):k?("add"===M&&(M={}),O.splice(_,0,M),D&&D.splice(_,0,{})):i.warn("Unrecognized full object edit value",f,_,M),-1===E&&(E=_);else for(b=0;b=0;x--)O.splice(C[x],1),D&&D.splice(C[x],1);if(O.length?S||t.set(O):t.set(null),m)return!1;if(d(y,g),h!==a){var R;if(-1===E)R=L;else{for(P=Math.max(O.length,P),R=[],x=0;x=E);x++)R.push(_);for(x=E;x=e.data.length||a<-e.data.length)throw new Error(r+" must be valid indices for gd.data.");if(t.indexOf(a,n+1)>-1||a>=0&&t.indexOf(-e.data.length+a)>-1||a<0&&t.indexOf(e.data.length+a)>-1)throw new Error("each index in "+r+" must be unique.")}}function E(e,t,r){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(void 0===t)throw new Error("currentIndices is a required argument.");if(Array.isArray(t)||(t=[t]),C(e,t,"currentIndices"),void 0===r||Array.isArray(r)||(r=[r]),void 0!==r&&C(e,r,"newIndices"),void 0!==r&&t.length!==r.length)throw new Error("current and new indices must be of equal length.")}function P(e,t,r,n,i){!function(e,t,r,n){var a=o.isPlainObject(n);if(!Array.isArray(e.data))throw new Error("gd.data must be an array");if(!o.isPlainObject(t))throw new Error("update must be a key:value object");if(void 0===r)throw new Error("indices must be an integer or array of integers");for(var i in C(e,r,"indices"),t){if(!Array.isArray(t[i])||t[i].length!==r.length)throw new Error("attribute "+i+" must be an array of length equal to indices array length");if(a&&(!(i in n)||!Array.isArray(n[i])||n[i].length!==t[i].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}}(e,t,r,n);for(var s=function(e,t,r,n){var i,s,c,u,f,d=o.isPlainObject(n),p=[];for(var h in Array.isArray(r)||(r=[r]),r=D(r,e.data.length-1),t)for(var m=0;m-1?s(r,r.replace("titlefont","title.font")):r.indexOf("titleposition")>-1?s(r,r.replace("titleposition","title.position")):r.indexOf("titleside")>-1?s(r,r.replace("titleside","title.side")):r.indexOf("titleoffset")>-1&&s(r,r.replace("titleoffset","title.offset")):s(r,r.replace("title","title.text"));function s(t,r){e[r]=e[t],delete e[t]}}function H(e,t,r){e=o.getGraphDiv(e),_.clearPromiseQueue(e);var n={};if("string"==typeof t)n[t]=r;else{if(!o.isPlainObject(t))return o.warn("Relayout fail.",t,r),Promise.reject();n=o.extendFlat({},t)}Object.keys(n).length&&(e.changed=!0);var a=Z(e,n),i=a.flags;i.calc&&(e.calcdata=void 0);var l=[d.previousPromises];i.layoutReplot?l.push(w.layoutReplot):Object.keys(n).length&&(U(e,i,a)||d.supplyDefaults(e),i.legend&&l.push(w.doLegend),i.layoutstyle&&l.push(w.layoutStyles),i.axrange&&Y(l,a.rangesAltered),i.ticks&&l.push(w.doTicksRelayout),i.modebar&&l.push(w.doModeBar),i.camera&&l.push(w.doCamera),i.colorbars&&l.push(w.doColorBars),l.push(A)),l.push(d.rehover,d.redrag),c.add(e,H,[e,a.undoit],H,[e,a.redoit]);var s=o.syncOrAsync(l,e);return s&&s.then||(s=Promise.resolve(e)),s.then((function(){return e.emit("plotly_relayout",a.eventData),e}))}function U(e,t,r){var n=e._fullLayout;if(!t.axrange)return!1;for(var a in t)if("axrange"!==a&&t[a])return!1;for(var i in r.rangesAltered){var o=p.id2name(i),l=e.layout[o],s=n[o];if(s.autorange=l.autorange,l.range&&(s.range=l.range.slice()),s.cleanRange(),s._matchGroup)for(var c in s._matchGroup)if(c!==i){var u=n[p.id2name(c)];u.autorange=s.autorange,u.range=s.range.slice(),u._input.range=s.range.slice()}}return!0}function Y(e,t){var r=t?function(e){var r=[],n=!0;for(var a in t){var i=p.getFromId(e,a);if(r.push(a),-1!==(i.ticklabelposition||"").indexOf("inside")&&i._anchorAxis&&r.push(i._anchorAxis._id),i._matchGroup)for(var o in i._matchGroup)t[o]||r.push(o);i.automargin&&(n=!1)}return p.draw(e,r,{skipTitle:n})}:function(e){return p.draw(e,"redraw")};e.push(v,w.doAutoRangeAndConstraints,r,w.drawData,w.finalDraw)}var q=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,V=/^[xyz]axis[0-9]*\.autorange$/,G=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function Z(e,t){var r,n,a,i=e.layout,s=e._fullLayout,c=s._guiEditing,d=N(s._preGUI,c),h=Object.keys(t),m=p.list(e),y=o.extendDeepAll({},t),g={};for(B(t),h=Object.keys(t),n=0;n0&&"string"!=typeof P.parts[z];)z--;var F=P.parts[z],j=P.parts[z-1]+"."+F,H=P.parts.slice(0,z).join("."),U=l(e.layout,H).get(),Y=l(s,H).get(),Z=P.get();if(void 0!==R){A[E]=R,L[E]="reverse"===F?R:I(Z);var X=f.getLayoutValObject(s,P.parts);if(X&&X.impliedEdits&&null!==R)for(var J in X.impliedEdits)S(o.relativeAttr(E,J),X.impliedEdits[J]);if(-1!==["width","height"].indexOf(E))if(R){S("autosize",null);var K="height"===E?"width":"height";S(K,s[K])}else s[E]=e._initialAutoSize[E];else if("autosize"===E)S("width",R?null:s.width),S("height",R?null:s.height);else if(j.match(q))C(j),l(s,H+"._inputRange").set(null);else if(j.match(V)){C(j),l(s,H+"._inputRange").set(null);var Q=l(s,H).get();Q._inputDomain&&(Q._input.domain=Q._inputDomain.slice())}else j.match(G)&&l(s,H+"._inputDomain").set(null);if("type"===F){O=U;var $="linear"===Y.type&&"log"===R,ee="log"===Y.type&&"linear"===R;if($||ee){if(O&&O.range)if(Y.autorange)$&&(O.range=O.range[1]>O.range[0]?[1,2]:[2,1]);else{var te=O.range[0],re=O.range[1];$?(te<=0&&re<=0&&S(H+".autorange",!0),te<=0?te=re/1e6:re<=0&&(re=te/1e6),S(H+".range[0]",Math.log(te)/Math.LN10),S(H+".range[1]",Math.log(re)/Math.LN10)):(S(H+".range[0]",Math.pow(10,te)),S(H+".range[1]",Math.pow(10,re)))}else S(H+".autorange",!0);Array.isArray(s._subplots.polar)&&s._subplots.polar.length&&s[P.parts[0]]&&"radialaxis"===P.parts[1]&&delete s[P.parts[0]]._subplot.viewInitial["radialaxis.range"],u.getComponentMethod("annotations","convertCoords")(e,Y,R,S),u.getComponentMethod("images","convertCoords")(e,Y,R,S)}else S(H+".autorange",!0),S(H+".range",null);l(s,H+"._inputRange").set(null)}else if(F.match(M)){var ne=l(s,E).get(),ae=(R||{}).type;ae&&"-"!==ae||(ae="linear"),u.getComponentMethod("annotations","convertCoords")(e,ne,ae,S),u.getComponentMethod("images","convertCoords")(e,ne,ae,S)}var ie=b.containerArrayMatch(E);if(ie){r=ie.array,n=ie.index;var oe=ie.property,le=X||{editType:"calc"};""!==n&&""===oe&&(b.isAddVal(R)?L[E]=null:b.isRemoveVal(R)?L[E]=(l(i,r).get()||[])[n]:o.warn("unrecognized full object value",t)),T.update(k,le),g[r]||(g[r]={});var se=g[r][n];se||(se=g[r][n]={}),se[oe]=R,delete t[E]}else"reverse"===F?(U.range?U.range.reverse():(S(H+".autorange",!0),U.range=[1,0]),Y.autorange?k.calc=!0:k.plot=!0):(s._has("scatter-like")&&s._has("regl")&&"dragmode"===E&&("lasso"===R||"select"===R)&&"lasso"!==Z&&"select"!==Z||s._has("gl2d")?k.plot=!0:X?T.update(k,X):k.calc=!0,P.set(R))}}for(r in g)b.applyContainerArrayChanges(e,d(i,r),g[r],k,d)||(k.plot=!0);for(var ce in D){var ue=(O=p.getFromId(e,ce))&&O._constraintGroup;if(ue)for(var fe in k.calc=!0,ue)D[fe]||(p.getFromId(e,fe)._constraintShrinkable=!0)}return(W(e)||t.height||t.width)&&(k.plot=!0),(k.plot||k.calc)&&(k.layoutReplot=!0),{flags:k,rangesAltered:D,undoit:L,redoit:A,eventData:y}}function W(e){var t=e._fullLayout,r=t.width,n=t.height;return e.layout.autosize&&d.plotAutoSize(e,e.layout,t),t.width!==r||t.height!==n}function X(e,t,n,a){e=o.getGraphDiv(e),_.clearPromiseQueue(e),o.isPlainObject(t)||(t={}),o.isPlainObject(n)||(n={}),Object.keys(t).length&&(e.changed=!0),Object.keys(n).length&&(e.changed=!0);var i=_.coerceTraceIndices(e,a),l=j(e,o.extendFlat({},t),i),s=l.flags,u=Z(e,o.extendFlat({},n)),f=u.flags;(s.calc||f.calc)&&(e.calcdata=void 0),s.clearAxisTypes&&_.clearAxisTypes(e,i,n);var p=[];f.layoutReplot?p.push(w.layoutReplot):s.fullReplot?p.push(r._doPlot):(p.push(d.previousPromises),U(e,f,u)||d.supplyDefaults(e),s.style&&p.push(w.doTraceStyle),(s.colorbars||f.colorbars)&&p.push(w.doColorBars),f.legend&&p.push(w.doLegend),f.layoutstyle&&p.push(w.layoutStyles),f.axrange&&Y(p,u.rangesAltered),f.ticks&&p.push(w.doTicksRelayout),f.modebar&&p.push(w.doModeBar),f.camera&&p.push(w.doCamera),p.push(A)),p.push(d.rehover,d.redrag),c.add(e,X,[e,l.undoit,u.undoit,l.traces],X,[e,l.redoit,u.redoit,l.traces]);var h=o.syncOrAsync(p,e);return h&&h.then||(h=Promise.resolve(e)),h.then((function(){return e.emit("plotly_update",{data:l.eventData,layout:u.eventData}),e}))}function J(e){return function(t){t._fullLayout._guiEditing=!0;var r=e.apply(null,arguments);return t._fullLayout._guiEditing=!1,r}}var K=[{pattern:/^hiddenlabels/,attr:"legend.uirevision"},{pattern:/^((x|y)axis\d*)\.((auto)?range|title\.text)/},{pattern:/axis\d*\.showspikes$/,attr:"modebar.uirevision"},{pattern:/(hover|drag)mode$/,attr:"modebar.uirevision"},{pattern:/^(scene\d*)\.camera/},{pattern:/^(geo\d*)\.(projection|center|fitbounds)/},{pattern:/^(ternary\d*\.[abc]axis)\.(min|title\.text)$/},{pattern:/^(polar\d*\.radialaxis)\.((auto)?range|angle|title\.text)/},{pattern:/^(polar\d*\.angularaxis)\.rotation/},{pattern:/^(mapbox\d*)\.(center|zoom|bearing|pitch)/},{pattern:/^legend\.(x|y)$/,attr:"editrevision"},{pattern:/^(shapes|annotations)/,attr:"editrevision"},{pattern:/^title\.text$/,attr:"editrevision"}],Q=[{pattern:/^selectedpoints$/,attr:"selectionrevision"},{pattern:/(^|value\.)visible$/,attr:"legend.uirevision"},{pattern:/^dimensions\[\d+\]\.constraintrange/},{pattern:/^node\.(x|y|groups)/},{pattern:/^level$/},{pattern:/(^|value\.)name$/},{pattern:/colorbar\.title\.text$/},{pattern:/colorbar\.(x|y)$/,attr:"editrevision"}];function $(e,t){for(var r=0;r1;)if(n.pop(),void 0!==(r=l(t,n.join(".")+".uirevision").get()))return r;return t.uirevision}function te(e,t){for(var r=0;r=a.length?a[0]:a[e]:a}function s(e){return Array.isArray(i)?e>=i.length?i[0]:i[e]:i}function c(e,t){var r=0;return function(){if(e&&++r===t)return e()}}return void 0===n._frameWaitingCnt&&(n._frameWaitingCnt=0),new Promise((function(i,u){function f(){n._currentFrame&&n._currentFrame.onComplete&&n._currentFrame.onComplete();var t=n._currentFrame=n._frameQueue.shift();if(t){var r=t.name?t.name.toString():null;e._fullLayout._currentFrame=r,n._lastFrameAt=Date.now(),n._timeToNext=t.frameOpts.duration,d.transition(e,t.frame.data,t.frame.layout,_.coerceTraceIndices(e,t.frame.traces),t.frameOpts,t.transitionOpts).then((function(){t.onComplete&&t.onComplete()})),e.emit("plotly_animatingframe",{name:r,frame:t.frame,animation:{frame:t.frameOpts,transition:t.transitionOpts}})}else e.emit("plotly_animated"),window.cancelAnimationFrame(n._animationRaf),n._animationRaf=null}function p(){e.emit("plotly_animating"),n._lastFrameAt=-1/0,n._timeToNext=0,n._runningTransitions=0,n._currentFrame=null;var t=function(){n._animationRaf=window.requestAnimationFrame(t),Date.now()-n._lastFrameAt>n._timeToNext&&f()};t()}var h,m,y=0;function g(e){return Array.isArray(a)?y>=a.length?e.transitionOpts=a[y]:e.transitionOpts=a[0]:e.transitionOpts=a,y++,e}var v=[],x=null==t,b=Array.isArray(t);if(x||b||!o.isPlainObject(t)){if(x||-1!==["string","number"].indexOf(typeof t))for(h=0;h0&&MM)&&k.push(m);v=k}}v.length>0?function(t){if(0!==t.length){for(var a=0;a=0;n--)if(o.isPlainObject(t[n])){var m=t[n].name,y=(u[m]||h[m]||{}).name,g=t[n].name,v=u[y]||h[y];y&&g&&"number"==typeof g&&v&&k<5&&(k++,o.warn('addFrames: overwriting frame "'+(u[y]||h[y]).name+'" with a frame whose name of type "number" also equates to "'+y+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),5===k&&o.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),h[m]={name:m},p.push({frame:d.supplyFrameDefaults(t[n]),index:r&&void 0!==r[n]&&null!==r[n]?r[n]:f+n})}p.sort((function(e,t){return e.index>t.index?-1:e.index=0;n--){if("number"==typeof(a=p[n].frame).name&&o.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!a.name)for(;u[a.name="frame "+e._transitionData._counter++];);if(u[a.name]){for(i=0;i=0;r--)n=t[r],i.push({type:"delete",index:n}),l.unshift({type:"insert",index:n,value:a[n]});var s=d.modifyFrames,u=d.modifyFrames,f=[e,l],p=[e,i];return c&&c.add(e,s,f,u,p),d.modifyFrames(e,i)},r.addTraces=function e(t,n,a){t=o.getGraphDiv(t);var i,l,s=[],u=r.deleteTraces,f=e,d=[t,s],p=[t,n];for(function(e,t,r){var n,a;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(void 0===t)throw new Error("traces must be defined.");for(Array.isArray(t)||(t=[t]),n=0;n=0&&r=0&&r=i.length)return!1;if(2===e.dimensions){if(r++,t.length===r)return e;var o=t[r];if(!_(o))return!1;e=i[a][o]}else e=i[a]}else e=i}}return e}function _(e){return e===Math.round(e)&&e>=0}function w(){var e,t,r={};for(e in f(r,o),n.subplotsRegistry)if((t=n.subplotsRegistry[e]).layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a=s.length)return!1;a=(r=(n.transformsRegistry[s[c].type]||{}).attributes)&&r[t[2]],l=3}else{var u=e._module;if(u||(u=(n.modules[e.type||i.type.dflt]||{})._module),!u)return!1;if(!(a=(r=u.attributes)&&r[o])){var f=u.basePlotModule;f&&f.attributes&&(a=f.attributes[o])}a||(a=i[o])}return b(a,t,l)},r.getLayoutValObject=function(e,t){return b(function(e,t){var r,a,i,l,s=e._basePlotModules;if(s){var c;for(r=0;r=a&&(r._input||{})._templateitemname;l&&(o=a);var s,c=t+"["+o+"]";function u(){s={},l&&(s[c]={},s[c][i]=l)}function f(e,t){l?n.nestedProperty(s[c],e).set(t):s[c+"."+e]=t}function d(){var e=s;return u(),e}return u(),{modifyBase:function(e,t){s[e]=t},modifyItem:f,getUpdateObj:d,applyUpdate:function(t,r){t&&f(t,r);var a=d();for(var i in a)n.nestedProperty(e,i).set(a[i])}}}},{"../lib":287,"../plots/attributes":330}],324:[function(e,t,r){"use strict";var n=e("@plotly/d3"),a=e("../registry"),i=e("../plots/plots"),o=e("../lib"),l=e("../lib/clear_gl_canvases"),s=e("../components/color"),c=e("../components/drawing"),u=e("../components/titles"),f=e("../components/modebar"),d=e("../plots/cartesian/axes"),p=e("../constants/alignment"),h=e("../plots/cartesian/constraints"),m=h.enforce,y=h.clean,g=e("../plots/cartesian/autorange").doAutoRange,v="start";function x(e,t,r){for(var n=0;n=e[1]||a[1]<=e[0])&&i[0]t[0])return!0}return!1}function b(e){var t,a,l,u,h,m,y=e._fullLayout,g=y._size,v=g.p,b=d.list(e,"",!0);if(y._paperdiv.style({width:e._context.responsive&&y.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":y.width+"px",height:e._context.responsive&&y.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":y.height+"px"}).selectAll(".main-svg").call(c.setSize,y.width,y.height),e._context.setBackground(e,y.paper_bgcolor),r.drawMainTitle(e),f.manage(e),!y._has("cartesian"))return i.previousPromises(e);function w(e,t,r){var n=e._lw/2;return"x"===e._id.charAt(0)?t?"top"===r?t._offset-v-n:t._offset+t._length+v+n:g.t+g.h*(1-(e.position||0))+n%1:t?"right"===r?t._offset+t._length+v+n:t._offset-v-n:g.l+g.w*(e.position||0)+n%1}for(t=0;tT?u.push({code:"unused",traceType:v,templateCount:w,dataCount:T}):T>w&&u.push({code:"reused",traceType:v,templateCount:w,dataCount:T})}}else u.push({code:"data"});if(function e(t,r){for(var n in t)if("_"!==n.charAt(0)){var i=t[n],o=m(t,n,r);a(i)?(Array.isArray(t)&&!1===i._template&&i.templateitemname&&u.push({code:"missing",path:o,templateitemname:i.templateitemname}),e(i,o)):Array.isArray(i)&&y(i)&&e(i,o)}}({data:p,layout:d},""),u.length)return u.map(g)}},{"../lib":287,"../plots/attributes":330,"../plots/plots":369,"./plot_config":321,"./plot_schema":322,"./plot_template":323}],326:[function(e,t,r){"use strict";var n=e("fast-isnumeric"),a=e("./plot_api"),i=e("../plots/plots"),o=e("../lib"),l=e("../snapshot/helpers"),s=e("../snapshot/tosvg"),c=e("../snapshot/svgtoimg"),u=e("../version").version,f={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};t.exports=function(e,t){var r,d,p,h;function m(e){return!(e in t)||o.validate(t[e],f[e])}if(t=t||{},o.isPlainObject(e)?(r=e.data||[],d=e.layout||{},p=e.config||{},h={}):(e=o.getGraphDiv(e),r=o.extendDeep([],e.data),d=o.extendDeep({},e.layout),p=e._context,h=e._fullLayout||{}),!m("width")&&null!==t.width||!m("height")&&null!==t.height)throw new Error("Height and width should be pixel values.");if(!m("format"))throw new Error("Export format is not "+o.join2(f.format.values,", "," or ")+".");var y={};function g(e,r){return o.coerce(t,y,f,e,r)}var v=g("format"),x=g("width"),b=g("height"),_=g("scale"),w=g("setBackground"),T=g("imageDataOnly"),M=document.createElement("div");M.style.position="absolute",M.style.left="-5000px",document.body.appendChild(M);var k=o.extendFlat({},d);x?k.width=x:null===t.width&&n(h.width)&&(k.width=h.width),b?k.height=b:null===t.height&&n(h.height)&&(k.height=h.height);var A=o.extendFlat({},p,{_exportedPlot:!0,staticPlot:!0,setBackground:w}),L=l.getRedrawFunc(M);function S(){return new Promise((function(e){setTimeout(e,l.getDelay(M._fullLayout))}))}function O(){return new Promise((function(e,t){var r=s(M,v,_),n=M._fullLayout.width,f=M._fullLayout.height;function d(){a.purge(M),document.body.removeChild(M)}if("full-json"===v){var p=i.graphJson(M,!1,"keepdata","object",!0,!0);return p.version=u,p=JSON.stringify(p),d(),e(T?p:l.encodeJSON(p))}if(d(),"svg"===v)return e(T?r:l.encodeSVG(r));var h=document.createElement("canvas");h.id=o.randstr(),c({format:v,width:n,height:f,scale:_,canvas:h,svg:r,promise:!0}).then(e).catch(t)}))}return new Promise((function(e,t){a.newPlot(M,r,k,A).then(L).then(S).then(O).then((function(t){e(function(e){return T?e.replace(l.IMAGE_URL_PREFIX,""):e}(t))})).catch((function(e){t(e)}))}))}},{"../lib":287,"../plots/plots":369,"../snapshot/helpers":380,"../snapshot/svgtoimg":382,"../snapshot/tosvg":384,"../version":549,"./plot_api":320,"fast-isnumeric":33}],327:[function(e,t,r){"use strict";var n=e("../lib"),a=e("../plots/plots"),i=e("./plot_schema"),o=e("./plot_config").dfltConfig,l=n.isPlainObject,s=Array.isArray,c=n.isArrayOrTypedArray;function u(e,t,r,a,i,o){o=o||[];for(var f=Object.keys(e),d=0;dx.length&&a.push(p("unused",i,g.concat(x.length)));var k,A,L,S,O,D=x.length,C=Array.isArray(M);if(C&&(D=Math.min(D,M.length)),2===b.dimensions)for(A=0;Ax[A].length&&a.push(p("unused",i,g.concat(A,x[A].length)));var E=x[A].length;for(k=0;k<(C?Math.min(E,M[A].length):E);k++)L=C?M[A][k]:M,S=v[A][k],O=x[A][k],n.validate(S,L)?O!==S&&O!==+S&&a.push(p("dynamic",i,g.concat(A,k),S,O)):a.push(p("value",i,g.concat(A,k),S))}else a.push(p("array",i,g.concat(A),v[A]));else for(A=0;A1&&d.push(p("object","layout"))),a.supplyDefaults(h);for(var m=h._fullData,y=r.length,g=0;g0&&Math.round(f)===f))return{vals:a};c=f}for(var d=t.calendar,p="start"===s,h="end"===s,m=e[r+"period0"],y=i(m,d)||0,g=[],v=[],x=[],b=a.length,_=0;_k;)M=o(M,-c,d);for(;M<=k;)M=o(M,c,d);T=o(M,-c,d)}else{for(M=y+(w=Math.round((k-y)/u))*u;M>k;)M-=u;for(;M<=k;)M+=u;T=M-u}g[_]=p?T:h?M:(T+M)/2,v[_]=T,x[_]=M}return{vals:g,starts:v,ends:x}}},{"../../constants/numerical":267,"../../lib":287,"fast-isnumeric":33}],332:[function(e,t,r){"use strict";t.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}},{}],333:[function(e,t,r){"use strict";var n=e("@plotly/d3"),a=e("fast-isnumeric"),i=e("../../lib"),o=e("../../constants/numerical").FP_SAFE,l=e("../../registry"),s=e("../../components/drawing"),c=e("./axis_ids"),u=c.getFromId,f=c.isLinked;function d(e,t){var r,n,a=[],o=e._fullLayout,l=h(o,t,0),s=h(o,t,1),c=y(e,t),u=c.min,f=c.max;if(0===u.length||0===f.length)return i.simpleMap(t.range,t.r2l);var d=u[0].val,m=f[0].val;for(r=1;r0&&((T=S-l(x)-s(b))>O?M/T>D&&(_=x,w=b,D=M/T):M/S>D&&(_={val:x.val,nopad:1},w={val:b.val,nopad:1},D=M/S));if(d===m){var C=d-1,E=d+1;if(A)if(0===d)a=[0,1];else{var P=(d>0?f:u).reduce((function(e,t){return Math.max(e,s(t))}),0),R=d/(1-Math.min(.5,P/S));a=d>0?[0,R]:[R,0]}else a=L?[Math.max(0,C),Math.max(1,E)]:[C,E]}else A?(_.val>=0&&(_={val:0,nopad:1}),w.val<=0&&(w={val:0,nopad:1})):L&&(_.val-D*l(_)<0&&(_={val:0,nopad:1}),w.val<=0&&(w={val:1,nopad:1})),D=(w.val-_.val-p(t,x.val,b.val))/(S-l(_)-s(w)),a=[_.val-D*l(_),w.val+D*s(w)];return g&&a.reverse(),i.simpleMap(a,t.l2r||Number)}function p(e,t,r){var n=0;if(e.rangebreaks)for(var a=e.locateBreaks(t,r),i=0;i0?r.ppadplus:r.ppadminus)||r.ppad||0),L=k((e._m>0?r.ppadminus:r.ppadplus)||r.ppad||0),S=k(r.vpadplus||r.vpad),O=k(r.vpadminus||r.vpad);if(!T){if(d=1/0,p=-1/0,w)for(n=0;n0&&(d=i),i>p&&i-o&&(d=i),i>p&&i=E;n--)C(n);return{min:h,max:m,opts:r}},concatExtremes:y};var m=3;function y(e,t,r){var n,a,i,o=t._id,l=e._fullData,s=e._fullLayout,c=[],f=[];function d(e,t){for(n=0;n=r&&(c.extrapad||!o)){l=!1;break}a(t,c.val)&&c.pad<=r&&(o||!c.extrapad)&&(e.splice(s,1),s--)}if(l){var u=i&&0===t;e.push({val:t,pad:u?0:r,extrapad:!u&&o})}}function b(e){return a(e)&&Math.abs(e)=t}},{"../../components/drawing":179,"../../constants/numerical":267,"../../lib":287,"../../registry":376,"./axis_ids":338,"@plotly/d3":20,"fast-isnumeric":33}],334:[function(e,t,r){"use strict";var n=e("@plotly/d3"),a=e("fast-isnumeric"),i=e("../../plots/plots"),o=e("../../registry"),l=e("../../lib"),s=l.strTranslate,c=e("../../lib/svg_text_utils"),u=e("../../components/titles"),f=e("../../components/color"),d=e("../../components/drawing"),p=e("./layout_attributes"),h=e("./clean_ticks"),m=e("../../constants/numerical"),y=m.ONEMAXYEAR,g=m.ONEAVGYEAR,v=m.ONEMINYEAR,x=m.ONEMAXQUARTER,b=m.ONEAVGQUARTER,_=m.ONEMINQUARTER,w=m.ONEMAXMONTH,T=m.ONEAVGMONTH,M=m.ONEMINMONTH,k=m.ONEWEEK,A=m.ONEDAY,L=A/2,S=m.ONEHOUR,O=m.ONEMIN,D=m.ONESEC,C=m.MINUS_SIGN,E=m.BADNUM,P={K:"zeroline"},R={K:"gridline",L:"path"},z={K:"tick",L:"path"},I={K:"tick",L:"text"},N=e("../../constants/alignment"),F=N.MID_SHIFT,j=N.CAP_SHIFT,B=N.LINE_SPACING,H=N.OPPOSITE_SIDE,U=t.exports={};U.setConvert=e("./set_convert");var Y=e("./axis_autotype"),q=e("./axis_ids"),V=q.idSort,G=q.isLinked;U.id2name=q.id2name,U.name2id=q.name2id,U.cleanId=q.cleanId,U.list=q.list,U.listIds=q.listIds,U.getFromId=q.getFromId,U.getFromTrace=q.getFromTrace;var Z=e("./autorange");U.getAutoRange=Z.getAutoRange,U.findExtremes=Z.findExtremes;var W=1e-4;function X(e){var t=(e[1]-e[0])*W;return[e[0]-t,e[1]+t]}U.coerceRef=function(e,t,r,n,a,i){var o=n.charAt(n.length-1),s=r._fullLayout._subplots[o+"axis"],c=n+"ref",u={};return a||(a=s[0]||("string"==typeof i?i:i[0])),i||(i=a),s=s.concat(s.map((function(e){return e+" domain"}))),u[c]={valType:"enumerated",values:s.concat(i?"string"==typeof i?[i]:i:[]),dflt:a},l.coerce(e,t,u,c)},U.getRefType=function(e){return void 0===e?e:"paper"===e?"paper":"pixel"===e?"pixel":/( domain)$/.test(e)?"domain":"range"},U.coercePosition=function(e,t,r,n,a,i){var o,s;if("range"!==U.getRefType(n))o=l.ensureNumber,s=r(a,i);else{var c=U.getFromId(t,n);s=r(a,i=c.fraction2r(i)),o=c.cleanPos}e[a]=o(s)},U.cleanPosition=function(e,t,r){return("paper"===r||"pixel"===r?l.ensureNumber:U.getFromId(t,r).cleanPos)(e)},U.redrawComponents=function(e,t){t=t||U.listIds(e);var r=e._fullLayout;function n(n,a,i,l){for(var s=o.getComponentMethod(n,a),c={},u=0;u2e-6||((r-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0)):e._minDtick=0},U.saveRangeInitial=function(e,t){for(var r=U.list(e,"",!0),n=!1,a=0;a.3*d||u(n)||u(i))){var p=r.dtick/2;e+=e+p.8){var o=Number(r.substr(1));i.exactYears>.8&&o%12==0?e=U.tickIncrement(e,"M6","reverse")+1.5*A:i.exactMonths>.8?e=U.tickIncrement(e,"M1","reverse")+15.5*A:e-=L;var s=U.tickIncrement(e,r);if(s<=n)return s}return e}(v,e,g,c,i)),y=v;y<=u;)y=U.tickIncrement(y,g,!1,i);return{start:t.c2r(v,0,i),end:t.c2r(y,0,i),size:g,_dataSpan:u-c}},U.prepTicks=function(e,t){var r=l.simpleMap(e.range,e.r2l,void 0,void 0,t);if(e._dtickInit=e.dtick,e._tick0Init=e.tick0,"auto"===e.tickmode||!e.dtick){var n,i=e.nticks;i||("category"===e.type||"multicategory"===e.type?(n=e.tickfont?l.bigFont(e.tickfont.size||12):15,i=e._length/n):(n="y"===e._id.charAt(0)?40:80,i=l.constrain(e._length/n,4,9)+1),"radialaxis"===e._name&&(i*=2)),"array"===e.tickmode&&(i*=100),e._roughDTick=Math.abs(r[1]-r[0])/i,U.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick<2*e._minDtick&&(e.dtick=e._minDtick,e.tick0=e.l2r(e._forceTick0))}"period"===e.ticklabelmode&&function(e){var t;function r(){return!(a(e.dtick)||"M"!==e.dtick.charAt(0))}var n=r(),i=U.getTickFormat(e);if(i){var o=e._dtickInit!==e.dtick;/%[fLQsSMX]/.test(i)||(/%[HI]/.test(i)?(t=S,o&&!n&&e.dticki&&f=o:p<=o;p=U.tickIncrement(p,e.dtick,s,e.calendar)){if(e.rangebreaks&&!s){if(p=u)break}if(O.length>m||p===D)break;D=p;var C=!1;f&&p!==(0|p)&&(C=!0),O.push({minor:C,value:p})}if(d&&function(e,t,r){for(var n=0;n0?(i=n-1,o=n):(i=n,o=n);var l,s=e[i].value,c=e[o].value,u=Math.abs(c-s),f=r||u,d=0;f>=v?d=u>=v&&u<=y?u:g:r===b&&f>=_?d=u>=_&&u<=x?u:b:f>=M?d=u>=M&&u<=w?u:T:r===k&&f>=k?d=k:f>=A?d=A:r===L&&f>=L?d=L:r===S&&f>=S&&(d=S),d>=u&&(d=u,l=!0);var p=a+d;if(t.rangebreaks&&d>0){for(var h=0,m=0;m<84;m++){var O=(m+.5)/84;t.maskBreaks(a*(1-O)+O*p)!==E&&h++}(d*=h/84)||(e[n].drop=!0),l&&u>k&&(d=u)}(d>0||0===n)&&(e[n].periodX=a+d/2)}}(O,e,e._definedDelta),e.rangebreaks){var P="y"===e._id.charAt(0),R=1;"auto"===e.tickmode&&(R=e.tickfont?e.tickfont.size:12);var z=NaN;for(h=O.length-1;h>-1;h--)if(O[h].drop)O.splice(h,1);else{O[h].value=Se(O[h].value,e);var I=e.c2p(O[h].value);(P?z>I-R:zu||Fu&&(N.periodX=u),F10||"01-01"!==n.substr(5)?e._tickround="d":e._tickround=+t.substr(1)%12==0?"y":"m";else if(t>=A&&i<=10||t>=15*A)e._tickround="d";else if(t>=O&&i<=16||t>=S)e._tickround="M";else if(t>=D&&i<=19||t>=O)e._tickround="S";else{var o=e.l2r(r+t).replace(/^-/,"").length;e._tickround=Math.max(i,o)-20,e._tickround<0&&(e._tickround=4)}}else if(a(t)||"L"===t.charAt(0)){var l=e.range.map(e.r2d||Number);a(t)||(t=Number(t.substr(1))),e._tickround=2-Math.floor(Math.log(t)/Math.LN10+.01);var s=Math.max(Math.abs(l[0]),Math.abs(l[1])),c=Math.floor(Math.log(s)/Math.LN10+.01),u=void 0===e.minexponent?3:e.minexponent;Math.abs(c)>u&&(de(e.exponentformat)&&!pe(c)?e._tickexponent=3*Math.round((c-1)/3):e._tickexponent=c)}else e._tickround=null}function ce(e,t,r){var n=e.tickfont||{};return{x:t,dx:0,dy:0,text:r||"",fontSize:n.size,font:n.family,fontColor:n.color}}function ue(e,t,r,n,a){if("radians"!==e.thetaunit||r)t.text=he(t.x,e,a,n);else{var i=t.x/180;if(0===i)t.text="0";else{var o=function(e){function t(e,t){return Math.abs(e-t)<=1e-6}function r(e,n){return t(n,0)?e:r(n,e%n)}function n(e){for(var r=1;!t(Math.round(e*r)/r,e);)r*=10;return r}var a=n(e),i=e*a,o=Math.abs(r(i,a));return[Math.round(i/o),Math.round(a/o)]}(i);if(o[1]>=100)t.text=he(l.deg2rad(t.x),e,a,n);else{var s=t.x<0;1===o[1]?1===o[0]?t.text="π":t.text=o[0]+"π":t.text=["",o[0],"","⁄","",o[1],"","π"].join(""),s&&(t.text=C+t.text)}}}}U.autoTicks=function(e,t){var r;function n(e){return Math.pow(e,Math.floor(Math.log(t)/Math.LN10))}if("date"===e.type){e.tick0=l.dateTick0(e.calendar,0);var i=2*t;if(i>g)t/=g,r=n(10),e.dtick="M"+12*le(t,r,ee);else if(i>T)t/=T,e.dtick="M"+le(t,1,te);else if(i>A){e.dtick=le(t,A,e._hasDayOfWeekBreaks?[1,2,7,14]:ne);var o=U.getTickFormat(e),s="period"===e.ticklabelmode;s&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=l.dateTick0(e.calendar,2):e.tick0=l.dateTick0(e.calendar,1),s&&(e._dowTick0=e.tick0)}else i>S?e.dtick=le(t,S,te):i>O?e.dtick=le(t,O,re):i>D?e.dtick=le(t,D,re):(r=n(10),e.dtick=le(t,r,ee))}else if("log"===e.type){e.tick0=0;var c=l.simpleMap(e.range,e.r2l);if(t>.7)e.dtick=Math.ceil(t);else if(Math.abs(c[1]-c[0])<1){var u=1.5*Math.abs((c[1]-c[0])/t);t=Math.abs(Math.pow(10,c[1])-Math.pow(10,c[0]))/u,r=n(10),e.dtick="L"+le(t,r,ee)}else e.dtick=t>.3?"D2":"D1"}else"category"===e.type||"multicategory"===e.type?(e.tick0=0,e.dtick=Math.ceil(Math.max(t,1))):Le(e)?(e.tick0=0,r=1,e.dtick=le(t,r,oe)):(e.tick0=0,r=n(10),e.dtick=le(t,r,ee));if(0===e.dtick&&(e.dtick=1),!a(e.dtick)&&"string"!=typeof e.dtick){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}},U.tickIncrement=function(e,t,r,i){var o=r?-1:1;if(a(t))return l.increment(e,o*t);var s=t.charAt(0),c=o*Number(t.substr(1));if("M"===s)return l.incrementMonth(e,c,i);if("L"===s)return Math.log(Math.pow(10,e)+c)/Math.LN10;if("D"===s){var u="D2"===t?ie:ae,f=e+.01*o,d=l.roundUp(l.mod(f,1),u,r);return Math.floor(f)+Math.log(n.round(Math.pow(10,d),1))/Math.LN10}throw"unrecognized dtick "+String(t)},U.tickFirst=function(e,t){var r=e.r2l||Number,i=l.simpleMap(e.range,r,void 0,void 0,t),o=i[1] ")}else e._prevDateHead=s,c+="
"+s;t.text=c}(e,o,r,c):"log"===u?function(e,t,r,n,i){var o=e.dtick,s=t.x,c=e.tickformat,u="string"==typeof o&&o.charAt(0);if("never"===i&&(i=""),n&&"L"!==u&&(o="L3",u="L"),c||"L"===u)t.text=he(Math.pow(10,s),e,i,n);else if(a(o)||"D"===u&&l.mod(s+.01,1)<.1){var f=Math.round(s),d=Math.abs(f),p=e.exponentformat;"power"===p||de(p)&&pe(f)?(t.text=0===f?1:1===f?"10":"10"+(f>1?"":C)+d+"",t.fontSize*=1.25):("e"===p||"E"===p)&&d>2?t.text="1"+p+(f>0?"+":C)+d:(t.text=he(Math.pow(10,s),e,"","fakehover"),"D1"===o&&"y"===e._id.charAt(0)&&(t.dy-=t.fontSize/6))}else{if("D"!==u)throw"unrecognized dtick "+String(o);t.text=String(Math.round(Math.pow(10,l.mod(s,1)))),t.fontSize*=.75}if("D1"===e.dtick){var h=String(t.text).charAt(0);"0"!==h&&"1"!==h||("y"===e._id.charAt(0)?t.dx-=t.fontSize/4:(t.dy+=t.fontSize/2,t.dx+=(e.range[1]>e.range[0]?1:-1)*t.fontSize*(s<0?.5:.25)))}}(e,o,0,c,m):"category"===u?function(e,t){var r=e._categories[Math.round(t.x)];void 0===r&&(r=""),t.text=String(r)}(e,o):"multicategory"===u?function(e,t,r){var n=Math.round(t.x),a=e._categories[n]||[],i=void 0===a[1]?"":String(a[1]),o=void 0===a[0]?"":String(a[0]);r?t.text=o+" - "+i:(t.text=i,t.text2=o)}(e,o,r):Le(e)?ue(e,o,r,c,m):function(e,t,r,n,a){"never"===a?a="":"all"===e.showexponent&&Math.abs(t.x/e.dtick)<1e-6&&(a="hide"),t.text=he(t.x,e,a,n)}(e,o,0,c,m),n||(e.tickprefix&&!h(e.showtickprefix)&&(o.text=e.tickprefix+o.text),e.ticksuffix&&!h(e.showticksuffix)&&(o.text+=e.ticksuffix)),"boundaries"===e.tickson||e.showdividers){var y=function(t){var r=e.l2p(t);return r>=0&&r<=e._length?t:null};o.xbnd=[y(o.x-.5),y(o.x+e.dtick-.5)]}return o},U.hoverLabelText=function(e,t,r){r&&(e=l.extendFlat({},e,{hoverformat:r}));var n=Array.isArray(t)?t[0]:t,a=Array.isArray(t)?t[1]:void 0;if(void 0!==a&&a!==n)return U.hoverLabelText(e,n,r)+" - "+U.hoverLabelText(e,a,r);var i="log"===e.type&&n<=0,o=U.tickText(e,e.c2l(i?-n:n),"hover").text;return i?0===n?"0":C+o:o};var fe=["f","p","n","μ","m","","k","M","G","T"];function de(e){return"SI"===e||"B"===e}function pe(e){return e>14||e<-15}function he(e,t,r,n){var i=e<0,o=t._tickround,s=r||t.exponentformat||"B",c=t._tickexponent,u=U.getTickFormat(t),f=t.separatethousands;if(n){var d={exponentformat:s,minexponent:t.minexponent,dtick:"none"===t.showexponent?t.dtick:a(e)&&Math.abs(e)||1,range:"none"===t.showexponent?t.range.map(t.r2d):[0,e||1]};se(d),o=(Number(d._tickround)||0)+4,c=d._tickexponent,t.hoverformat&&(u=t.hoverformat)}if(u)return t._numFormat(u)(e).replace(/-/g,C);var p,h=Math.pow(10,-o)/2;if("none"===s&&(c=0),(e=Math.abs(e))"+p+"":"B"===s&&9===c?e+="B":de(s)&&(e+=fe[c/3+5])),i?C+e:e}function me(e,t){for(var r=[],n={},a=0;a1&&r=a.min&&e=0,i=u(e,t[1])<=0;return(r||a)&&(n||i)}if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":for(t=0;t=o(a)))){r=n;break}break;case"log":for(t=0;t0?r.bottom-f:0,d)))),t.automargin){n={x:0,y:0,r:0,l:0,t:0,b:0};var p=[0,1];if("x"===h){if("b"===s?n[s]=t._depth:(n[s]=t._depth=Math.max(r.width>0?f-r.top:0,d),p.reverse()),r.width>0){var y=r.right-(t._offset+t._length);y>0&&(n.xr=1,n.r=y);var g=t._offset-r.left;g>0&&(n.xl=0,n.l=g)}}else if("l"===s?n[s]=t._depth=Math.max(r.height>0?f-r.left:0,d):(n[s]=t._depth=Math.max(r.height>0?r.right-f:0,d),p.reverse()),r.height>0){var v=r.bottom-(t._offset+t._length);v>0&&(n.yb=0,n.b=v);var x=t._offset-r.top;x>0&&(n.yt=1,n.t=x)}n[m]="free"===t.anchor?t.position:t._anchorAxis.domain[p[0]],t.title.text!==c._dfltTitle[h]&&(n[s]+=ve(t)+(t.title.standoff||0)),t.mirror&&"free"!==t.anchor&&((a={x:0,y:0,r:0,l:0,t:0,b:0})[u]=t.linewidth,t.mirror&&!0!==t.mirror&&(a[u]+=d),!0===t.mirror||"ticks"===t.mirror?a[m]=t._anchorAxis.domain[p[1]]:"all"!==t.mirror&&"allticks"!==t.mirror||(a[m]=[t._counterDomainMin,t._counterDomainMax][p[1]]))}K&&(l=o.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),i.autoMargin(e,_e(t),n),i.autoMargin(e,we(t),a),i.autoMargin(e,Te(t),l)})),r.skipTitle||K&&"bottom"===t.side||X.push((function(){return function(e,t){var r,n=e._fullLayout,a=t._id,i=a.charAt(0),o=t.title.font.size;if(t.title.hasOwnProperty("standoff"))r=t._depth+t.title.standoff+ve(t);else{var l=Oe(t);if("multicategory"===t.type)r=t._depth;else{var s=1.5*o;l&&(s=.5*o,"outside"===t.ticks&&(s+=t.ticklen)),r=10+s+(t.linewidth?t.linewidth-1:0)}l||(r+="x"===i?"top"===t.side?o*(t.showticklabels?1:0):o*(t.showticklabels?1.5:.5):"right"===t.side?o*(t.showticklabels?1:.5):o*(t.showticklabels?.5:0))}var c,f,p,h,m=U.getPxPosition(e,t);if("x"===i?(f=t._offset+t._length/2,p="top"===t.side?m-r:m+r):(p=t._offset+t._length/2,f="right"===t.side?m+r:m-r,c={rotate:"-90",offset:0}),"multicategory"!==t.type){var y=t._selections[t._id+"tick"];if(h={selection:y,side:t.side},y&&y.node()&&y.node().parentNode){var g=d.getTranslate(y.node().parentNode);h.offsetLeft=g.x,h.offsetTop=g.y}t.title.hasOwnProperty("standoff")&&(h.pad=0)}return u.draw(e,a+"title",{propContainer:t,propName:t._name+".title.text",placeholder:n._dfltTitle[i],avoid:h,transform:c,attributes:{x:f,y:p,"text-anchor":"middle"}})}(e,t)})),l.syncOrAsync(X)}}function Q(e){var r=p+(e||"tick");return w[r]||(w[r]=function(e,t){var r,n,a,i;return e._selections[t].size()?(r=1/0,n=-1/0,a=1/0,i=-1/0,e._selections[t].each((function(){var e=be(this),t=d.bBox(e.node().parentNode);r=Math.min(r,t.top),n=Math.max(n,t.bottom),a=Math.min(a,t.left),i=Math.max(i,t.right)}))):(r=0,n=0,a=0,i=0),{top:r,bottom:n,left:a,right:i,height:n-r,width:i-a}}(t,r)),w[r]}},U.getTickSigns=function(e){var t=e._id.charAt(0),r={x:"top",y:"right"}[t],n=e.side===r?1:-1,a=[-1,1,n,-n];return"inside"!==e.ticks==("x"===t)&&(a=a.map((function(e){return-e}))),e.side&&a.push({l:-1,t:-1,r:1,b:1}[e.side.charAt(0)]),a},U.makeTransTickFn=function(e){return"x"===e._id.charAt(0)?function(t){return s(e._offset+e.l2p(t.x),0)}:function(t){return s(0,e._offset+e.l2p(t.x))}},U.makeTransTickLabelFn=function(e){var t=function(e){var t=e.ticklabelposition||"",r=function(e){return-1!==t.indexOf(e)},n=r("top"),a=r("left"),i=r("right"),o=r("bottom"),l=r("inside"),s=o||a||n||i;if(!s&&!l)return[0,0];var c=e.side,u=s?(e.tickwidth||0)/2:0,f=3,d=e.tickfont?e.tickfont.size:12;return(o||n)&&(u+=d*j,f+=(e.linewidth||0)/2),(a||i)&&(u+=(e.linewidth||0)/2,f+=3),l&&"top"===c&&(f-=d*(1-j)),(a||n)&&(u=-u),"bottom"!==c&&"right"!==c||(f=-f),[s?u:0,l?f:0]}(e),r=t[0],n=t[1];return"x"===e._id.charAt(0)?function(t){return s(r+e._offset+e.l2p(ye(t)),n)}:function(t){return s(n,r+e._offset+e.l2p(ye(t)))}},U.makeTickPath=function(e,t,r,n){n=void 0!==n?n:e.ticklen;var a=e._id.charAt(0),i=(e.linewidth||1)/2;return"x"===a?"M0,"+(t+i*r)+"v"+n*r:"M"+(t+i*r)+",0h"+n*r},U.makeLabelFns=function(e,t,r){var n=e.ticklabelposition||"",i=function(e){return-1!==n.indexOf(e)},o=i("top"),s=i("left"),c=i("right"),u=i("bottom")||s||o||c,f=i("inside"),d="inside"===n&&"inside"===e.ticks||!f&&"outside"===e.ticks&&"boundaries"!==e.tickson,p=0,h=0,m=d?e.ticklen:0;if(f?m*=-1:u&&(m=0),d&&(p+=m,r)){var y=l.deg2rad(r);p=m*Math.cos(y)+1,h=m*Math.sin(y)}e.showticklabels&&(d||e.showline)&&(p+=.2*e.tickfont.size);var g,v,x,b,_,w={labelStandoff:p+=(e.linewidth||1)/2*(f?-1:1),labelShift:h},T=0,M=e.side,k=e._id.charAt(0),A=e.tickangle;if("x"===k)b=(_=!f&&"bottom"===M||f&&"top"===M)?1:-1,f&&(b*=-1),g=h*b,v=t+p*b,x=_?1:-.2,90===Math.abs(A)&&(f?x+=F:x=-90===A&&"bottom"===M?j:90===A&&"top"===M?F:.5,T=F/2*(A/90)),w.xFn=function(e){return e.dx+g+T*e.fontSize},w.yFn=function(e){return e.dy+v+e.fontSize*x},w.anchorFn=function(e,t){if(u){if(s)return"end";if(c)return"start"}return a(t)&&0!==t&&180!==t?t*b<0!==f?"end":"start":"middle"},w.heightFn=function(t,r,n){return r<-60||r>60?-.5*n:"top"===e.side!==f?-n:0};else if("y"===k){if(b=(_=!f&&"left"===M||f&&"right"===M)?1:-1,f&&(b*=-1),g=p,v=h*b,x=0,f||90!==Math.abs(A)||(x=-90===A&&"left"===M||90===A&&"right"===M?j:.5),f){var L=a(A)?+A:0;if(0!==L){var S=l.deg2rad(L);T=Math.abs(Math.sin(S))*j*b,x=0}}w.xFn=function(e){return e.dx+t-(g+e.fontSize*x)*b+T*e.fontSize},w.yFn=function(e){return e.dy+v+e.fontSize*F},w.anchorFn=function(e,t){return a(t)&&90===Math.abs(t)?"middle":_?"end":"start"},w.heightFn=function(t,r,n){return"right"===e.side&&(r*=-1),r<-30?-n:r<30?-.5*n:0}}return w},U.drawTicks=function(e,t,r){r=r||{};var n=t._id+"tick",a=r.vals;"period"===t.ticklabelmode&&(a=a.slice()).shift();var i=r.layer.selectAll("path."+n).data(t.ticks?a:[],ge);i.exit().remove(),i.enter().append("path").classed(n,1).classed("ticks",1).classed("crisp",!1!==r.crisp).call(f.stroke,t.tickcolor).style("stroke-width",d.crispRound(e,t.tickwidth,1)+"px").attr("d",r.path).style("display",null),De(t,[z]),i.attr("transform",r.transFn)},U.drawGrid=function(e,t,r){r=r||{};var n=t._id+"grid",a=r.vals,i=r.counterAxis;if(!1===t.showgrid)a=[];else if(i&&U.shouldShowZeroLine(e,t,i))for(var o="array"===t.tickmode,l=0;lp||i.leftp||i.top+(t.tickangle?0:e.fontSize/4)t["_visibleLabelMin_"+r._id]?s.style("display","none"):"tick"!==e.K||a||s.style("display",null)}))}))}))}))},x(g,y+1?y:m);var b=null;t._selections&&(t._selections[f]=g);var _=[function(){return v.length&&Promise.all(v)}];t.automargin&&i._redrawFromAutoMarginCount&&90===y?(b=90,_.push((function(){x(g,y)}))):_.push((function(){if(x(g,m),p.length&&"x"===u&&!a(m)&&("log"!==t.type||"D"!==String(t.dtick).charAt(0))){b=0;var e,n=0,i=[];if(g.each((function(e){n=Math.max(n,e.fontSize);var r=t.l2p(e.x),a=be(this),o=d.bBox(a.node());i.push({top:0,bottom:10,height:10,left:r-o.width/2,right:r+o.width/2+2,width:o.width+2})})),"boundaries"!==t.tickson&&!t.showdividers||r.secondary){var o=p.length,s=Math.abs((p[o-1].x-p[0].x)*t._m)/(o-1),c=t.ticklabelposition||"",f=function(e){return-1!==c.indexOf(e)},h=f("top"),y=f("left"),v=f("right"),_=f("bottom")||y||h||v?(t.tickwidth||0)+6:0,w=s<2.5*n||"multicategory"===t.type;for(e=0;e1)for(n=1;n2*o}(a,t))return"date";var y="strict"!==r.autotypenumbers;return function(e,t){for(var r=e.length,n=f(r),a=0,o=0,l={},u=0;u2*a}(a,y)?"category":function(e,t){for(var r=e.length,n=0;n=2){var s,c,u="";if(2===o.length)for(s=0;s<2;s++)if(c=v(o[s])){u=h;break}var f=a("pattern",u);if(f===h)for(s=0;s<2;s++)(c=v(o[s]))&&(t.bounds[s]=o[s]=c-1);if(f)for(s=0;s<2;s++)switch(c=o[s],f){case h:if(!n(c))return void(t.enabled=!1);if((c=+c)!==Math.floor(c)||c<0||c>=7)return void(t.enabled=!1);t.bounds[s]=o[s]=c;break;case m:if(!n(c))return void(t.enabled=!1);if((c=+c)<0||c>24)return void(t.enabled=!1);t.bounds[s]=o[s]=c}if(!1===r.autorange){var d=r.range;if(d[0]d[1])return void(t.enabled=!1)}else if(o[0]>d[0]&&o[1]n?1:-1:+(e.substr(1)||1)-+(t.substr(1)||1)},r.ref2id=function(e){return!!/^[xyz]/.test(e)&&e.split(" ")[0]},r.isLinked=function(e,t){return i(t,e._axisMatchGroups)||i(t,e._axisConstraintGroups)}},{"../../registry":376,"./constants":341}],339:[function(e,t,r){"use strict";t.exports=function(e,t,r,n){if("category"===t.type){var a,i=e.categoryarray,o=Array.isArray(i)&&i.length>0;o&&(a="array");var l,s=r("categoryorder",a);"array"===s&&(l=r("categoryarray")),o||"array"!==s||(s=t.categoryorder="trace"),"trace"===s?t._initialCategories=[]:"array"===s?t._initialCategories=l.slice():(l=function(e,t){var r,n,a,i=t.dataAttr||e._id.charAt(0),o={};if(t.axData)r=t.axData;else for(r=[],n=0;nn?a.substr(n):i.substr(r))+o:a+i+e*t:o}function y(e,t){for(var r=t._size,n=r.h/r.w,a={},i=Object.keys(e),o=0;oc*x)||T)for(r=0;rP&&NC&&(C=N);d/=(C-D)/(2*E),D=s.l2r(D),C=s.l2r(C),s.range=s._input.range=L=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function j(e,t,r,n,a){return e.append("path").attr("class","zoombox").style({fill:t>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",c(r,n)).attr("d",a+"Z")}function B(e,t,r){return e.append("path").attr("class","zoombox-corners").style({fill:f.background,stroke:f.defaultLine,"stroke-width":1,opacity:0}).attr("transform",c(t,r)).attr("d","M0,0Z")}function H(e,t,r,n,a,i){e.attr("d",n+"M"+r.l+","+r.t+"v"+r.h+"h"+r.w+"v-"+r.h+"h-"+r.w+"Z"),U(e,t,a,i)}function U(e,t,r,n){r||(e.transition().style("fill",n>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}function Y(e){n.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function q(e){E&&e.data&&e._context.showTips&&(a.notifier(a._(e,"Double-click to zoom back out"),"long"),E=!1)}function V(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,C)/2);return"M"+(e.l-3.5)+","+(e.t-.5+t)+"h3v"+-t+"h"+t+"v-3h-"+(t+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+t)+"h-3v"+-t+"h"+-t+"v-3h"+(t+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-t)+"h-3v"+t+"h"+-t+"v3h"+(t+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-t)+"h3v"+t+"h"+t+"v3h-"+(t+3)+"Z"}function G(e,t,r,n,i){for(var o,l,s,c,u=!1,f={},d={},p=(i||{}).xaHash,h=(i||{}).yaHash,m=0;m=0)a._fullLayout._deactivateShape(a);else{var o=a._fullLayout.clickmode;if(Y(a),2!==e||ge||qe(),ye)o.indexOf("select")>-1&&L(r,a,J,K,t.id,Ce),o.indexOf("event")>-1&&p.click(a,r,t.id);else if(1===e&&ge){var l=m?P:E,c="s"===m||"w"===g?0:1,f=l._name+".range["+c+"]",d=function(e,t){var r,n=e.range[t],a=Math.abs(n-e.range[1-t]);return"date"===e.type?n:"log"===e.type?(r=Math.ceil(Math.max(0,-Math.log(a)/Math.LN10))+3,i("."+r+"g")(Math.pow(10,n))):(r=Math.floor(Math.log(Math.abs(n))/Math.LN10)-Math.floor(Math.log(a)/Math.LN10)+4,i("."+String(r)+"g")(n))}(l,c),h="left",y="middle";if(l.fixedrange)return;m?(y="n"===m?"top":"bottom","right"===l.side&&(h="right")):"e"===g&&(h="right"),a._context.showAxisRangeEntryBoxes&&n.select(be).call(u.makeEditable,{gd:a,immediate:!0,background:a._fullLayout.paper_bgcolor,text:String(d),fill:l.tickfont?l.tickfont.color:"#444",horizontalAlign:h,verticalAlign:y}).on("edit",(function(e){var t=l.d2r(e);void 0!==t&&s.call("_guiRelayout",a,f,t)}))}}}function Re(t,r){if(e._transitioningWithDuration)return!1;var n=Math.max(0,Math.min(ee,pe*t+_e)),a=Math.max(0,Math.min(te,he*r+we)),i=Math.abs(n-_e),o=Math.abs(a-we);function l(){Le="",Te.r=Te.l,Te.t=Te.b,Oe.attr("d","M0,0Z")}if(Te.l=Math.min(_e,n),Te.r=Math.max(_e,n),Te.t=Math.min(we,a),Te.b=Math.max(we,a),re.isSubplotConstrained)i>C||o>C?(Le="xy",i/ee>o/te?(o=i*te/ee,we>a?Te.t=we-o:Te.b=we+o):(i=o*ee/te,_e>n?Te.l=_e-i:Te.r=_e+i),Oe.attr("d",V(Te))):l();else if(ne.isSubplotConstrained)if(i>C||o>C){Le="xy";var s=Math.min(Te.l/ee,(te-Te.b)/te),c=Math.max(Te.r/ee,(te-Te.t)/te);Te.l=s*ee,Te.r=c*ee,Te.b=(1-s)*te,Te.t=(1-c)*te,Oe.attr("d",V(Te))}else l();else!ie||o0){var u;if(ne.isSubplotConstrained||!ae&&1===ie.length){for(u=0;um[1]-1/4096&&(t.domain=l),a.noneOrAll(e.domain,t.domain,l)}return r("layer"),t}},{"../../lib":287,"fast-isnumeric":33}],353:[function(e,t,r){"use strict";var n=e("../../constants/alignment").FROM_BL;t.exports=function(e,t,r){void 0===r&&(r=n[e.constraintoward||"center"]);var a=[e.r2l(e.range[0]),e.r2l(e.range[1])],i=a[0]+(a[1]-a[0])*r;e.range=e._input.range=[e.l2r(i+(a[0]-i)*t),e.l2r(i+(a[1]-i)*t)],e.setScale()}},{"../../constants/alignment":262}],354:[function(e,t,r){"use strict";var n=e("polybooljs"),a=e("../../registry"),i=e("../../components/drawing").dashStyle,o=e("../../components/color"),l=e("../../components/fx"),s=e("../../components/fx/helpers").makeEventData,c=e("../../components/dragelement/helpers"),u=c.freeMode,f=c.rectMode,d=c.drawMode,p=c.openMode,h=c.selectMode,m=e("../../components/shapes/draw_newshape/display_outlines"),y=e("../../components/shapes/draw_newshape/helpers").handleEllipse,g=e("../../components/shapes/draw_newshape/newshapes"),v=e("../../lib"),x=e("../../lib/polygon"),b=e("../../lib/throttle"),_=e("./axis_ids").getFromId,w=e("../../lib/clear_gl_canvases"),T=e("../../plot_api/subroutines").redrawReglTraces,M=e("./constants"),k=M.MINSELECT,A=x.filter,L=x.tester,S=e("./handle_outline").clearSelect,O=e("./helpers"),D=O.p2r,C=O.axValue,E=O.getTransform;function P(e,t,r,n,a,i,o){var l,s,c,u,f,d,h,y,g,v=t._hoverdata,x=t._fullLayout.clickmode.indexOf("event")>-1,b=[];if(function(e){return e&&Array.isArray(e)&&!0!==e[0].hoverOnBox}(v)){N(e,t,i);var _=function(e,t){var r,n,a=e[0],i=-1,o=[];for(n=0;n0?function(e,t){var r,n,a,i=[];for(a=0;a0&&i.push(r);if(1===i.length&&i[0]===t.searchInfo&&(n=t.searchInfo.cd[0].trace).selectedpoints.length===t.pointNumbers.length){for(a=0;a1)return!1;if((n+=t.selectedpoints.length)>1)return!1}return 1===n}(l)&&(d=B(_))){for(o&&o.remove(),g=0;g=0&&n._fullLayout._deactivateShape(n),d(t)){var i=n._fullLayout._zoomlayer.selectAll(".select-outline-"+r.id);if(i&&n._fullLayout._drawing){var o=g(i,e);o&&a.call("_guiRelayout",n,{shapes:o}),n._fullLayout._drawing=!1}}r.selection={},r.selection.selectionDefs=e.selectionDefs=[],r.selection.mergedPolygons=e.mergedPolygons=[]}function j(e,t,r,n){var a,i,o,l=[],s=t.map((function(e){return e._id})),c=r.map((function(e){return e._id}));for(o=0;o0?n[0]:r;return!!t.selectedpoints&&t.selectedpoints.indexOf(a)>-1}function H(e,t,r){var n,i,o,l;for(n=0;n=0)O._fullLayout._deactivateShape(O);else if(!_){var r=R.clickmode;b.done(me).then((function(){if(b.clear(me),2===e){for(fe.remove(),$=0;$-1&&P(t,O,a.xaxes,a.yaxes,a.subplot,a,fe),"event"===r&&O.emit("plotly_selected",void 0);l.click(O,t)})).catch(v.error)}},a.doneFn=function(){he.remove(),b.done(me).then((function(){b.clear(me),a.gd.emit("plotly_selected",te),Q&&a.selectionDefs&&(Q.subtract=ue,a.selectionDefs.push(Q),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,K)),a.doneFnCompleted&&a.doneFnCompleted(ye)})).catch(v.error),_&&F(a)}},clearSelect:S,clearSelectionsCache:F,selectOnClick:P}},{"../../components/color":157,"../../components/dragelement/helpers":175,"../../components/drawing":179,"../../components/fx":197,"../../components/fx/helpers":193,"../../components/shapes/draw_newshape/display_outlines":245,"../../components/shapes/draw_newshape/helpers":246,"../../components/shapes/draw_newshape/newshapes":247,"../../lib":287,"../../lib/clear_gl_canvases":275,"../../lib/polygon":299,"../../lib/throttle":311,"../../plot_api/subroutines":324,"../../registry":376,"./axis_ids":338,"./constants":341,"./handle_outline":345,"./helpers":346,polybooljs:75}],355:[function(e,t,r){"use strict";var n=e("@plotly/d3"),a=e("d3-time-format").utcFormat,i=e("../../lib"),o=i.numberFormat,l=e("fast-isnumeric"),s=i.cleanNumber,c=i.ms2DateTime,u=i.dateTime2ms,f=i.ensureNumber,d=i.isArrayOrTypedArray,p=e("../../constants/numerical"),h=p.FP_SAFE,m=p.BADNUM,y=p.LOG_CLIP,g=p.ONEWEEK,v=p.ONEDAY,x=p.ONEHOUR,b=p.ONEMIN,_=p.ONESEC,w=e("./axis_ids"),T=e("./constants"),M=T.HOUR_PATTERN,k=T.WEEKDAY_PATTERN;function A(e){return Math.pow(10,e)}function L(e){return null!=e}t.exports=function(e,t){t=t||{};var r=e._id||"x",p=r.charAt(0);function S(t,r){if(t>0)return Math.log(t)/Math.LN10;if(t<=0&&r&&e.range&&2===e.range.length){var n=e.range[0],a=e.range[1];return.5*(n+a-2*y*Math.abs(n-a))}return m}function O(t,r,n,a){if((a||{}).msUTC&&l(t))return+t;var o=u(t,n||e.calendar);if(o===m){if(!l(t))return m;t=+t;var s=Math.floor(10*i.mod(t+.05,1)),c=Math.round(t-s/10);o=u(new Date(c))+s/10}return o}function D(t,r,n){return c(t,r,n||e.calendar)}function C(t){return e._categories[Math.round(t)]}function E(t){if(L(t)){if(void 0===e._categoriesMap&&(e._categoriesMap={}),void 0!==e._categoriesMap[t])return e._categoriesMap[t];e._categories.push("number"==typeof t?String(t):t);var r=e._categories.length-1;return e._categoriesMap[t]=r,r}return m}function P(t){if(e._categoriesMap)return e._categoriesMap[t]}function R(e){var t=P(e);return void 0!==t?t:l(e)?+e:void 0}function z(e){return l(e)?+e:P(e)}function I(e,t,r){return n.round(r+t*e,2)}function N(e,t,r){return(e-r)/t}var F=function(t){return l(t)?I(t,e._m,e._b):m},j=function(t){return N(t,e._m,e._b)};if(e.rangebreaks){var B="y"===p;F=function(t){if(!l(t))return m;var r=e._rangebreaks.length;if(!r)return I(t,e._m,e._b);var n=B;e.range[0]>e.range[1]&&(n=!n);for(var a=n?-1:1,i=a*t,o=0,s=0;su)){o=i<(c+u)/2?s:s+1;break}o=s+1}var f=e._B[o]||0;return isFinite(f)?I(t,e._m2,f):0},j=function(t){var r=e._rangebreaks.length;if(!r)return N(t,e._m,e._b);for(var n=0,a=0;ae._rangebreaks[a].pmax&&(n=a+1);return N(t,e._m2,e._B[n])}}e.c2l="log"===e.type?S:f,e.l2c="log"===e.type?A:f,e.l2p=F,e.p2l=j,e.c2p="log"===e.type?function(e,t){return F(S(e,t))}:F,e.p2c="log"===e.type?function(e){return A(j(e))}:j,-1!==["linear","-"].indexOf(e.type)?(e.d2r=e.r2d=e.d2c=e.r2c=e.d2l=e.r2l=s,e.c2d=e.c2r=e.l2d=e.l2r=f,e.d2p=e.r2p=function(t){return e.l2p(s(t))},e.p2d=e.p2r=j,e.cleanPos=f):"log"===e.type?(e.d2r=e.d2l=function(e,t){return S(s(e),t)},e.r2d=e.r2c=function(e){return A(s(e))},e.d2c=e.r2l=s,e.c2d=e.l2r=f,e.c2r=S,e.l2d=A,e.d2p=function(t,r){return e.l2p(e.d2r(t,r))},e.p2d=function(e){return A(j(e))},e.r2p=function(t){return e.l2p(s(t))},e.p2r=j,e.cleanPos=f):"date"===e.type?(e.d2r=e.r2d=i.identity,e.d2c=e.r2c=e.d2l=e.r2l=O,e.c2d=e.c2r=e.l2d=e.l2r=D,e.d2p=e.r2p=function(t,r,n){return e.l2p(O(t,0,n))},e.p2d=e.p2r=function(e,t,r){return D(j(e),t,r)},e.cleanPos=function(t){return i.cleanDate(t,m,e.calendar)}):"category"===e.type?(e.d2c=e.d2l=E,e.r2d=e.c2d=e.l2d=C,e.d2r=e.d2l_noadd=R,e.r2c=function(t){var r=z(t);return void 0!==r?r:e.fraction2r(.5)},e.l2r=e.c2r=f,e.r2l=z,e.d2p=function(t){return e.l2p(e.r2c(t))},e.p2d=function(e){return C(j(e))},e.r2p=e.d2p,e.p2r=j,e.cleanPos=function(e){return"string"==typeof e&&""!==e?e:f(e)}):"multicategory"===e.type&&(e.r2d=e.c2d=e.l2d=C,e.d2r=e.d2l_noadd=R,e.r2c=function(t){var r=R(t);return void 0!==r?r:e.fraction2r(.5)},e.r2c_just_indices=P,e.l2r=e.c2r=f,e.r2l=R,e.d2p=function(t){return e.l2p(e.r2c(t))},e.p2d=function(e){return C(j(e))},e.r2p=e.d2p,e.p2r=j,e.cleanPos=function(e){return Array.isArray(e)||"string"==typeof e&&""!==e?e:f(e)},e.setupMultiCategory=function(n){var a,o,l=e._traceIndices,s=e._matchGroup;if(s&&0===e._categories.length)for(var c in s)if(c!==r){var u=t[w.id2name(c)];l=l.concat(u._traceIndices)}var f=[[0,{}],[0,{}]],h=[];for(a=0;ah&&(o[n]=h),o[0]===o[1]){var c=Math.max(1,Math.abs(1e-6*o[0]));o[0]-=c,o[1]+=c}}else i.nestedProperty(e,t).set(a)},e.setScale=function(r){var n=t._size;if(e.overlaying){var a=w.getFromId({_fullLayout:t},e.overlaying);e.domain=a.domain}var i=r&&e._r?"_r":"range",o=e.calendar;e.cleanRange(i);var l,s,c=e.r2l(e[i][0],o),u=e.r2l(e[i][1],o),f="y"===p;if(f?(e._offset=n.t+(1-e.domain[1])*n.h,e._length=n.h*(e.domain[1]-e.domain[0]),e._m=e._length/(c-u),e._b=-e._m*u):(e._offset=n.l+e.domain[0]*n.w,e._length=n.w*(e.domain[1]-e.domain[0]),e._m=e._length/(u-c),e._b=-e._m*c),e._rangebreaks=[],e._lBreaks=0,e._m2=0,e._B=[],e.rangebreaks&&(e._rangebreaks=e.locateBreaks(Math.min(c,u),Math.max(c,u)),e._rangebreaks.length)){for(l=0;lu&&(d=!d),d&&e._rangebreaks.reverse();var h=d?-1:1;for(e._m2=h*e._length/(Math.abs(u-c)-e._lBreaks),e._B.push(-e._m2*(f?u:c)),l=0;la&&(a+=7,oa&&(a+=24,o=n&&o=n&&t=l.min&&(el.max&&(l.max=n),a=!1)}a&&c.push({min:e,max:n})}};for(n=0;nr.duration?(function(){for(var r={},n=0;n rect").call(o.setTranslate,0,0).call(o.setScale,1,1),e.plot.call(o.setTranslate,t._offset,r._offset).call(o.setScale,1,1);var n=e.plot.selectAll(".scatterlayer .trace");n.selectAll(".point").call(o.setPointGroupScale,1,1),n.selectAll(".textpoint").call(o.setTextPointsScale,1,1),n.call(o.hideOutsideRangePoints,e)}function y(t,r){var n=t.plotinfo,a=n.xaxis,s=n.yaxis,c=a._length,u=s._length,f=!!t.xr1,d=!!t.yr1,p=[];if(f){var h=i.simpleMap(t.xr0,a.r2l),m=i.simpleMap(t.xr1,a.r2l),y=h[1]-h[0],g=m[1]-m[0];p[0]=(h[0]*(1-r)+r*m[0]-h[0])/(h[1]-h[0])*c,p[2]=c*(1-r+r*g/y),a.range[0]=a.l2r(h[0]*(1-r)+r*m[0]),a.range[1]=a.l2r(h[1]*(1-r)+r*m[1])}else p[0]=0,p[2]=c;if(d){var v=i.simpleMap(t.yr0,s.r2l),x=i.simpleMap(t.yr1,s.r2l),b=v[1]-v[0],_=x[1]-x[0];p[1]=(v[1]*(1-r)+r*x[1]-v[1])/(v[0]-v[1])*u,p[3]=u*(1-r+r*_/b),s.range[0]=a.l2r(v[0]*(1-r)+r*x[0]),s.range[1]=s.l2r(v[1]*(1-r)+r*x[1])}else p[1]=0,p[3]=u;l.drawOne(e,a,{skipTitle:!0}),l.drawOne(e,s,{skipTitle:!0}),l.redrawComponents(e,[a._id,s._id]);var w=f?c/p[2]:1,T=d?u/p[3]:1,M=f?p[0]:0,k=d?p[1]:0,A=f?p[0]/p[2]*c:0,L=d?p[1]/p[3]*u:0,S=a._offset-A,O=s._offset-L;n.clipRect.call(o.setTranslate,M,k).call(o.setScale,1/w,1/T),n.plot.call(o.setTranslate,S,O).call(o.setScale,w,T),o.setPointGroupScale(n.zoomScalePts,1/w,1/T),o.setTextPointsScale(n.zoomScaleTxt,1/w,1/T)}l.redrawComponents(e)}},{"../../components/drawing":179,"../../lib":287,"../../registry":376,"./axes":334,"@plotly/d3":20}],360:[function(e,t,r){"use strict";var n=e("../../registry").traceIs,a=e("./axis_autotype");function i(e,t){if("-"===e.type){var r,i=e._id,s=i.charAt(0);-1!==i.indexOf("scene")&&(i=s);var c=function(e,t,r){for(var n=0;n0&&(a["_"+r+"axes"]||{})[t])return a;if((a[r+"axis"]||r)===t){if(l(a,r))return a;if((a[r]||[]).length||a[r+"0"])return a}}}(t,i,s);if(c)if("histogram"!==c.type||s!=={v:"y",h:"x"}[c.orientation||"v"]){var u=s+"calendar",f=c[u],d={noMultiCategory:!n(c,"cartesian")||n(c,"noMultiCategory")};if("box"===c.type&&c._hasPreCompStats&&s==={h:"x",v:"y"}[c.orientation||"v"]&&(d.noMultiCategory=!0),d.autotypenumbers=e.autotypenumbers,l(c,s)){var p=o(c),h=[];for(r=0;r0?".":"")+i;a.isPlainObject(o)?s(o,t,l,n+1):t(l,i,o)}}))}r.manageCommandObserver=function(e,t,n,o){var l={},s=!0;t&&t._commandObserver&&(l=t._commandObserver),l.cache||(l.cache={}),l.lookupTable={};var c=r.hasSimpleAPICommandBindings(e,n,l.lookupTable);if(t&&t._commandObserver){if(c)return l;if(t._commandObserver.remove)return t._commandObserver.remove(),t._commandObserver=null,l}if(c){i(e,c,l.cache),l.check=function(){if(s){var t=i(e,c,l.cache);return t.changed&&o&&void 0!==l.lookupTable[t.value]&&(l.disable(),Promise.resolve(o({value:t.value,type:c.type,prop:c.prop,traces:c.traces,index:l.lookupTable[t.value]})).then(l.enable,l.enable)),t.changed}};for(var u=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],f=0;f=t.width-20?(i["text-anchor"]="start",i.x=5):(i["text-anchor"]="end",i.x=t._paper.attr("width")-7),r.attr(i);var o=r.select(".js-link-to-tool"),l=r.select(".js-link-spacer"),s=r.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&function(e,t){t.text("");var r=t.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" "+String.fromCharCode(187));if(e._context.sendData)r.on("click",(function(){b.sendDataToCloud(e)}));else{var n=window.location.pathname.split("/"),a=window.location.search;r.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+n[2].split(".")[0]+"/"+n[1]+a})}}(e,o),l.text(o.text()&&s.text()?" - ":"")}},b.sendDataToCloud=function(e){var t=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(t){e.emit("plotly_beforeexport");var r=n.select(e).append("div").attr("id","hiddenform").style("display","none"),a=r.append("form").attr({action:t+"/external",method:"post",target:"_blank"});return a.append("input").attr({type:"text",name:"data"}).node().value=b.graphJson(e,!1,"keepdata"),a.node().submit(),r.remove(),e.emit("plotly_afterexport"),!1}};var T=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],M=["year","month","dayMonth","dayMonthYear"];function k(e,t){var r=e._context.locale;r||(r="en-US");var n=!1,a={};function i(e){for(var r=!0,i=0;i1&&R.length>1){for(l.getComponentMethod("grid","sizeDefaults")(c,s),o=0;o15&&R.length>15&&0===s.shapes.length&&0===s.images.length,b.linkSubplots(d,s,f,n),b.cleanPlot(d,s,f,n);var j=!(!n._has||!n._has("gl2d")),B=!(!s._has||!s._has("gl2d")),H=!(!n._has||!n._has("cartesian"))||j,U=!(!s._has||!s._has("cartesian"))||B;H&&!U?n._bgLayer.remove():U&&!H&&(s._shouldCreateBgLayer=!0),n._zoomlayer&&!e._dragging&&h({_fullLayout:n}),function(e,t){var r,n=[];t.meta&&(r=t._meta={meta:t.meta,layout:{meta:t.meta}});for(var a=0;a0){var f=1-2*l;n=Math.round(f*n),a=Math.round(f*a)}}var d=b.layoutAttributes.width.min,p=b.layoutAttributes.height.min;n1,m=!t.height&&Math.abs(r.height-a)>1;(m||h)&&(h&&(r.width=n),m&&(r.height=a)),e._initialAutoSize||(e._initialAutoSize={width:n,height:a}),b.sanitizeMargins(r)},b.supplyLayoutModuleDefaults=function(e,t,r,n){var a,i,o,s=l.componentsRegistry,c=t._basePlotModules,f=l.subplotsRegistry.cartesian;for(a in s)(o=s[a]).includeBasePlot&&o.includeBasePlot(e,t);for(var d in c.length||c.push(f),t._has("cartesian")&&(l.getComponentMethod("grid","contentDefaults")(e,t),f.finalizeSubplots(e,t)),t._subplots)t._subplots[d].sort(u.subplotSort);for(i=0;i1&&(r.l/=m,r.r/=m)}if(f){var y=(r.t+r.b)/f;y>1&&(r.t/=y,r.b/=y)}var g=void 0!==r.xl?r.xl:r.x,v=void 0!==r.xr?r.xr:r.x,x=void 0!==r.yt?r.yt:r.y,_=void 0!==r.yb?r.yb:r.y;d[t]={l:{val:g,size:r.l+h},r:{val:v,size:r.r+h},b:{val:_,size:r.b+h},t:{val:x,size:r.t+h}},p[t]=1}else delete d[t],delete p[t];if(!n._replotting)return b.doAutoMargin(e)}},b.doAutoMargin=function(e){var t=e._fullLayout,r=t.width,n=t.height;t._size||(t._size={}),D(t);var a=t._size,i=t.margin,s=u.extendFlat({},a),c=i.l,f=i.r,d=i.t,h=i.b,m=t._pushmargin,y=t._pushmarginIds;if(!1!==t.margin.autoexpand){for(var g in m)y[g]||delete m[g];for(var v in m.base={l:{val:0,size:c},r:{val:1,size:f},t:{val:1,size:d},b:{val:0,size:h}},m){var x=m[v].l||{},_=m[v].b||{},w=x.val,T=x.size,M=_.val,k=_.size;for(var A in m){if(o(T)&&m[A].r){var L=m[A].r.val,S=m[A].r.size;if(L>w){var O=(T*L+(S-r)*w)/(L-w),C=(S*(1-w)+(T-r)*(1-L))/(L-w);O+C>c+f&&(c=O,f=C)}}if(o(k)&&m[A].t){var E=m[A].t.val,P=m[A].t.size;if(E>M){var R=(k*E+(P-n)*M)/(E-M),z=(P*(1-M)+(k-n)*(1-E))/(E-M);R+z>h+d&&(h=R,d=z)}}}}}var I=u.constrain(r-i.l-i.r,2,64),N=u.constrain(n-i.t-i.b,2,64),F=Math.max(0,r-I),j=Math.max(0,n-N);if(F){var B=(c+f)/F;B>1&&(c/=B,f/=B)}if(j){var H=(h+d)/j;H>1&&(h/=H,d/=H)}if(a.l=Math.round(c),a.r=Math.round(f),a.t=Math.round(d),a.b=Math.round(h),a.p=Math.round(i.pad),a.w=Math.round(r)-a.l-a.r,a.h=Math.round(n)-a.t-a.b,!t._replotting&&b.didMarginChange(s,a)){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var U=3*(1+Object.keys(y).length);if(t._redrawFromAutoMarginCount0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push((function(){n=!0})),r.redraw&&e._transitionData._interruptCallbacks.push((function(){return l.call("redraw",e)})),e._transitionData._interruptCallbacks.push((function(){e.emit("plotly_transitioninterrupted",[])}));var i=0,o=0;function s(){return i++,function(){o++,n||o!==i||function(t){if(e._transitionData)(function(e){if(e)for(;e.length;)e.shift()})(e._transitionData._interruptCallbacks),Promise.resolve().then((function(){if(r.redraw)return l.call("redraw",e)})).then((function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])})).then(t)}(a)}}r.runFn(s),setTimeout(s())}))}],i=u.syncOrAsync(a,e);return i&&i.then||(i=Promise.resolve()),i.then((function(){return e}))}b.didMarginChange=function(e,t){for(var r=0;r1)return!0}return!1},b.graphJson=function(e,t,r,n,a,i){(a&&t&&!e._fullData||a&&!t&&!e._fullLayout)&&b.supplyDefaults(e);var o=a?e._fullData:e.data,l=a?e._fullLayout:e.layout,s=(e._transitionData||{})._frames;function c(e,t){if("function"==typeof e)return t?"_function_":null;if(u.isPlainObject(e)){var n,a={};return Object.keys(e).sort().forEach((function(i){if(-1===["_","["].indexOf(i.charAt(0)))if("function"!=typeof e[i]){if("keepdata"===r){if("src"===i.substr(i.length-3))return}else if("keepstream"===r){if("string"==typeof(n=e[i+"src"])&&n.indexOf(":")>0&&!u.isPlainObject(e.stream))return}else if("keepall"!==r&&"string"==typeof(n=e[i+"src"])&&n.indexOf(":")>0)return;a[i]=c(e[i],t)}else t&&(a[i]="_function")})),a}return Array.isArray(e)?e.map((function(e){return c(e,t)})):u.isTypedArray(e)?u.simpleMap(e,u.identity):u.isJSDate(e)?u.ms2DateTimeLocal(+e):e}var f={data:(o||[]).map((function(e){var r=c(e);return t&&delete r.fit,r}))};if(!t&&(f.layout=c(l),a)){var d=l._size;f.layout.computed={margin:{b:d.b,l:d.l,r:d.r,t:d.t}}}return s&&(f.frames=c(s)),i&&(f.config=c(e._context,!0)),"object"===n?f:JSON.stringify(f)},b.modifyFrames=function(e,t){var r,n,a,i=e._transitionData._frames,o=e._transitionData._frameHash;for(r=0;r=0;i--)if(l[i].enabled){r._indexToPoints=l[i]._indexToPoints;break}n&&n.calc&&(o=n.calc(e,r))}Array.isArray(o)&&o[0]||(o=[{x:d,y:d}]),o[0].t||(o[0].t={}),o[0].trace=r,h[t]=o}}for(R(o,c,f),a=0;a0){for(var n=[],a=0;a=u&&(p.min=0,m.min=0,y.min=0,e.aaxis&&delete e.aaxis.min,e.baxis&&delete e.baxis.min,e.caxis&&delete e.caxis.min)}function h(e,t,r,n){var a=f[t._name];function o(r,n){return i.coerce(e,t,a,r,n)}o("uirevision",n.uirevision),t.type="linear";var d=o("color"),p=d!==a.color.dflt?d:r.font.color,h=t._name.charAt(0).toUpperCase(),m="Component "+h,y=o("title.text",m);t._hovertitle=y===m?y:h,i.coerceFont(o,"title.font",{family:r.font.family,size:i.bigFont(r.font.size),color:p}),o("min"),c(e,t,o,"linear"),l(e,t,o,"linear",{}),s(e,t,o,{outerTicks:!0}),o("showticklabels")&&(i.coerceFont(o,"tickfont",{family:r.font.family,size:r.font.size,color:p}),o("tickangle"),o("tickformat")),u(e,t,o,{dfltColor:d,bgColor:r.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:a}),o("hoverformat"),o("layer")}t.exports=function(e,t,r){o(e,t,r,{type:"ternary",attributes:f,handleDefaults:p,font:t.font,paper_bgcolor:t.paper_bgcolor})}},{"../../components/color":157,"../../lib":287,"../../plot_api/plot_template":323,"../cartesian/line_grid_defaults":351,"../cartesian/tick_label_defaults":356,"../cartesian/tick_mark_defaults":357,"../cartesian/tick_value_defaults":358,"../subplot_defaults":370,"./layout_attributes":373}],375:[function(e,t,r){"use strict";var n=e("@plotly/d3"),a=e("tinycolor2"),i=e("../../registry"),o=e("../../lib"),l=o.strTranslate,s=o._,c=e("../../components/color"),u=e("../../components/drawing"),f=e("../cartesian/set_convert"),d=e("../../lib/extend").extendFlat,p=e("../plots"),h=e("../cartesian/axes"),m=e("../../components/dragelement"),y=e("../../components/fx"),g=e("../../components/dragelement/helpers"),v=g.freeMode,x=g.rectMode,b=e("../../components/titles"),_=e("../cartesian/select").prepSelect,w=e("../cartesian/select").selectOnClick,T=e("../cartesian/select").clearSelect,M=e("../cartesian/select").clearSelectionsCache,k=e("../cartesian/constants");function A(e,t){this.id=e.id,this.graphDiv=e.graphDiv,this.init(t),this.makeFramework(t),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}t.exports=A;var L=A.prototype;L.init=function(e){this.container=e._ternarylayer,this.defs=e._defs,this.layoutId=e._uid,this.traceHash={},this.layers={}},L.plot=function(e,t){var r=this,n=t[r.id],a=t._size;r._hasClipOnAxisFalse=!1;for(var i=0;iS*b?a=(i=b)*S:i=(a=x)/S,o=g*a/x,s=v*i/b,r=t.l+t.w*m-a/2,n=t.t+t.h*(1-y)-i/2,p.x0=r,p.y0=n,p.w=a,p.h=i,p.sum=_,p.xaxis={type:"linear",range:[w+2*M-_,_-w-2*T],domain:[m-o/2,m+o/2],_id:"x"},f(p.xaxis,p.graphDiv._fullLayout),p.xaxis.setScale(),p.xaxis.isPtWithinRange=function(e){return e.a>=p.aaxis.range[0]&&e.a<=p.aaxis.range[1]&&e.b>=p.baxis.range[1]&&e.b<=p.baxis.range[0]&&e.c>=p.caxis.range[1]&&e.c<=p.caxis.range[0]},p.yaxis={type:"linear",range:[w,_-T-M],domain:[y-s/2,y+s/2],_id:"y"},f(p.yaxis,p.graphDiv._fullLayout),p.yaxis.setScale(),p.yaxis.isPtWithinRange=function(){return!0};var k=p.yaxis.domain[0],A=p.aaxis=d({},e.aaxis,{range:[w,_-T-M],side:"left",tickangle:(+e.aaxis.tickangle||0)-30,domain:[k,k+s*S],anchor:"free",position:0,_id:"y",_length:a});f(A,p.graphDiv._fullLayout),A.setScale();var L=p.baxis=d({},e.baxis,{range:[_-w-M,T],side:"bottom",domain:p.xaxis.domain,anchor:"free",position:0,_id:"x",_length:a});f(L,p.graphDiv._fullLayout),L.setScale();var O=p.caxis=d({},e.caxis,{range:[_-w-T,M],side:"right",tickangle:(+e.caxis.tickangle||0)+30,domain:[k,k+s*S],anchor:"free",position:0,_id:"y",_length:a});f(O,p.graphDiv._fullLayout),O.setScale();var D="M"+r+","+(n+i)+"h"+a+"l-"+a/2+",-"+i+"Z";p.clipDef.select("path").attr("d",D),p.layers.plotbg.select("path").attr("d",D);var C="M0,"+i+"h"+a+"l-"+a/2+",-"+i+"Z";p.clipDefRelative.select("path").attr("d",C);var E=l(r,n);p.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",E),p.clipDefRelative.select("path").attr("transform",null);var P=l(r-L._offset,n+i);p.layers.baxis.attr("transform",P),p.layers.bgrid.attr("transform",P);var R=l(r+a/2,n)+"rotate(30)"+l(0,-A._offset);p.layers.aaxis.attr("transform",R),p.layers.agrid.attr("transform",R);var z=l(r+a/2,n)+"rotate(-30)"+l(0,-O._offset);p.layers.caxis.attr("transform",z),p.layers.cgrid.attr("transform",z),p.drawAxes(!0),p.layers.aline.select("path").attr("d",A.showline?"M"+r+","+(n+i)+"l"+a/2+",-"+i:"M0,0").call(c.stroke,A.linecolor||"#000").style("stroke-width",(A.linewidth||0)+"px"),p.layers.bline.select("path").attr("d",L.showline?"M"+r+","+(n+i)+"h"+a:"M0,0").call(c.stroke,L.linecolor||"#000").style("stroke-width",(L.linewidth||0)+"px"),p.layers.cline.select("path").attr("d",O.showline?"M"+(r+a/2)+","+n+"l"+a/2+","+i:"M0,0").call(c.stroke,O.linecolor||"#000").style("stroke-width",(O.linewidth||0)+"px"),p.graphDiv._context.staticPlot||p.initInteractions(),u.setClipUrl(p.layers.frontplot,p._hasClipOnAxisFalse?null:p.clipId,p.graphDiv)},L.drawAxes=function(e){var t=this,r=t.graphDiv,n=t.id.substr(7)+"title",a=t.layers,i=t.aaxis,o=t.baxis,l=t.caxis;if(t.drawAx(i),t.drawAx(o),t.drawAx(l),e){var c=Math.max(i.showticklabels?i.tickfont.size/2:0,(l.showticklabels?.75*l.tickfont.size:0)+("outside"===l.ticks?.87*l.ticklen:0)),u=(o.showticklabels?o.tickfont.size:0)+("outside"===o.ticks?o.ticklen:0)+3;a["a-title"]=b.draw(r,"a"+n,{propContainer:i,propName:t.id+".aaxis.title",placeholder:s(r,"Click to enter Component A title"),attributes:{x:t.x0+t.w/2,y:t.y0-i.title.font.size/3-c,"text-anchor":"middle"}}),a["b-title"]=b.draw(r,"b"+n,{propContainer:o,propName:t.id+".baxis.title",placeholder:s(r,"Click to enter Component B title"),attributes:{x:t.x0-u,y:t.y0+t.h+.83*o.title.font.size+u,"text-anchor":"middle"}}),a["c-title"]=b.draw(r,"c"+n,{propContainer:l,propName:t.id+".caxis.title",placeholder:s(r,"Click to enter Component C title"),attributes:{x:t.x0+t.w+u,y:t.y0+t.h+.83*l.title.font.size+u,"text-anchor":"middle"}})}},L.drawAx=function(e){var t,r=this,n=r.graphDiv,a=e._name,i=a.charAt(0),l=e._id,s=r.layers[a],c=i+"tickLayout",u=(t=e).ticks+String(t.ticklen)+String(t.showticklabels);r[c]!==u&&(s.selectAll("."+l+"tick").remove(),r[c]=u),e.setScale();var f=h.calcTicks(e),d=h.clipEnds(e,f),p=h.makeTransTickFn(e),m=h.getTickSigns(e)[2],y=o.deg2rad(30),g=m*(e.linewidth||1)/2,v=m*e.ticklen,x=r.w,b=r.h,_="b"===i?"M0,"+g+"l"+Math.sin(y)*v+","+Math.cos(y)*v:"M"+g+",0l"+Math.cos(y)*v+","+-Math.sin(y)*v,w={a:"M0,0l"+b+",-"+x/2,b:"M0,0l-"+x/2+",-"+b,c:"M0,0l-"+b+","+x/2}[i];h.drawTicks(n,e,{vals:"inside"===e.ticks?d:f,layer:s,path:_,transFn:p,crisp:!1}),h.drawGrid(n,e,{vals:d,layer:r.layers[i+"grid"],path:w,transFn:p,crisp:!1}),h.drawLabels(n,e,{vals:f,layer:s,transFn:p,labelFns:h.makeLabelFns(e,0,30)})};var O=k.MINZOOM/2+.87,D="m-0.87,.5h"+O+"v3h-"+(O+5.2)+"l"+(O/2+2.6)+",-"+(.87*O+4.5)+"l2.6,1.5l-"+O/2+","+.87*O+"Z",C="m0.87,.5h-"+O+"v3h"+(O+5.2)+"l-"+(O/2+2.6)+",-"+(.87*O+4.5)+"l-2.6,1.5l"+O/2+","+.87*O+"Z",E="m0,1l"+O/2+","+.87*O+"l2.6,-1.5l-"+(O/2+2.6)+",-"+(.87*O+4.5)+"l-"+(O/2+2.6)+","+(.87*O+4.5)+"l2.6,1.5l"+O/2+",-"+.87*O+"Z",P=!0;function R(e){n.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}L.clearSelect=function(){M(this.dragOptions),T(this.dragOptions.gd)},L.initInteractions=function(){var e,t,r,n,f,d,p,h,g,b,T,M,A=this,L=A.layers.plotbg.select("path").node(),O=A.graphDiv,z=O._fullLayout._zoomlayer;function I(e){var t={};return t[A.id+".aaxis.min"]=e.a,t[A.id+".baxis.min"]=e.b,t[A.id+".caxis.min"]=e.c,t}function N(e,t){var r=O._fullLayout.clickmode;R(O),2===e&&(O.emit("plotly_doubleclick",null),i.call("_guiRelayout",O,I({a:0,b:0,c:0}))),r.indexOf("select")>-1&&1===e&&w(t,O,[A.xaxis],[A.yaxis],A.id,A.dragOptions),r.indexOf("event")>-1&&y.click(O,t,A.id)}function F(e,t){return 1-t/A.h}function j(e,t){return 1-(e+(A.h-t)/Math.sqrt(3))/A.w}function B(e,t){return(e-(A.h-t)/Math.sqrt(3))/A.w}function H(a,i){var o=r+a*e,l=n+i*t,s=Math.max(0,Math.min(1,F(0,n),F(0,l))),c=Math.max(0,Math.min(1,j(r,n),j(o,l))),u=Math.max(0,Math.min(1,B(r,n),B(o,l))),m=(s/2+u)*A.w,y=(1-s/2-c)*A.w,v=(m+y)/2,x=y-m,_=(1-s)*A.h,w=_-x/S;x.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),M.transition().style("opacity",1).duration(200),b=!0),O.emit("plotly_relayouting",I(p))}function U(){R(O),p!==f&&(i.call("_guiRelayout",O,I(p)),P&&O.data&&O._context.showTips&&(o.notifier(s(O,"Double-click to zoom back out"),"long"),P=!1))}function Y(e,t){var r=e/A.xaxis._m,n=t/A.yaxis._m,a=[(p={a:f.a-n,b:f.b+(r+n)/2,c:f.c-(r-n)/2}).a,p.b,p.c].sort(o.sorterAsc),i=a.indexOf(p.a),s=a.indexOf(p.b),c=a.indexOf(p.c);a[0]<0&&(a[1]+a[0]/2<0?(a[2]+=a[0]+a[1],a[0]=a[1]=0):(a[2]+=a[0]/2,a[1]+=a[0]/2,a[0]=0),p={a:a[i],b:a[s],c:a[c]},t=(f.a-p.a)*A.yaxis._m,e=(f.c-p.c-f.b+p.b)*A.xaxis._m);var d=l(A.x0+e,A.y0+t);A.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",d);var h=l(-e,-t);A.clipDefRelative.select("path").attr("transform",h),A.aaxis.range=[p.a,A.sum-p.b-p.c],A.baxis.range=[A.sum-p.a-p.c,p.b],A.caxis.range=[A.sum-p.a-p.b,p.c],A.drawAxes(!1),A._hasClipOnAxisFalse&&A.plotContainer.select(".scatterlayer").selectAll(".trace").call(u.hideOutsideRangePoints,A),O.emit("plotly_relayouting",I(p))}function q(){i.call("_guiRelayout",O,I(p))}this.dragOptions={element:L,gd:O,plotinfo:{id:A.id,domain:O._fullLayout[A.id].domain,xaxis:A.xaxis,yaxis:A.yaxis},subplot:A.id,prepFn:function(i,s,u){A.dragOptions.xaxes=[A.xaxis],A.dragOptions.yaxes=[A.yaxis],e=O._fullLayout._invScaleX,t=O._fullLayout._invScaleY;var m=A.dragOptions.dragmode=O._fullLayout.dragmode;v(m)?A.dragOptions.minDrag=1:A.dragOptions.minDrag=void 0,"zoom"===m?(A.dragOptions.moveFn=H,A.dragOptions.clickFn=N,A.dragOptions.doneFn=U,function(e,t,i){var s=L.getBoundingClientRect();r=t-s.left,n=i-s.top,O._fullLayout._calcInverseTransform(O);var u=O._fullLayout._invTransform,m=o.apply3DTransform(u)(r,n);r=m[0],n=m[1],f={a:A.aaxis.range[0],b:A.baxis.range[1],c:A.caxis.range[1]},p=f,d=A.aaxis.range[1]-f.a,h=a(A.graphDiv._fullLayout[A.id].bgcolor).getLuminance(),g="M0,"+A.h+"L"+A.w/2+", 0L"+A.w+","+A.h+"Z",b=!1,T=z.append("path").attr("class","zoombox").attr("transform",l(A.x0,A.y0)).style({fill:h>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",g),M=z.append("path").attr("class","zoombox-corners").attr("transform",l(A.x0,A.y0)).style({fill:c.background,stroke:c.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),A.clearSelect(O)}(0,s,u)):"pan"===m?(A.dragOptions.moveFn=Y,A.dragOptions.clickFn=N,A.dragOptions.doneFn=q,f={a:A.aaxis.range[0],b:A.baxis.range[1],c:A.caxis.range[1]},p=f,A.clearSelect(O)):(x(m)||v(m))&&_(i,s,u,A.dragOptions,m)}},L.onmousemove=function(e){y.hover(O,e,A.id),O._fullLayout._lasthover=L,O._fullLayout._hoversubplot=A.id},L.onmouseout=function(e){O._dragging||m.unhover(O,e)},m.init(this.dragOptions)}},{"../../components/color":157,"../../components/dragelement":176,"../../components/dragelement/helpers":175,"../../components/drawing":179,"../../components/fx":197,"../../components/titles":255,"../../lib":287,"../../lib/extend":281,"../../registry":376,"../cartesian/axes":334,"../cartesian/constants":341,"../cartesian/select":354,"../cartesian/set_convert":355,"../plots":369,"@plotly/d3":20,tinycolor2:121}],376:[function(e,t,r){"use strict";var n=e("./lib/loggers"),a=e("./lib/noop"),i=e("./lib/push_unique"),o=e("./lib/is_plain_object"),l=e("./lib/dom").addStyleRule,s=e("./lib/extend"),c=e("./plots/attributes"),u=e("./plots/layout_attributes"),f=s.extendFlat,d=s.extendDeepAll;function p(e){var t=e.name,a=e.categories,i=e.meta;if(r.modules[t])n.log("Type "+t+" already registered");else{r.subplotsRegistry[e.basePlotModule.name]||function(e){var t=e.name;if(r.subplotsRegistry[t])n.log("Plot type "+t+" already registered.");else for(var a in g(e),r.subplotsRegistry[t]=e,r.componentsRegistry)b(a,e.name)}(e.basePlotModule);for(var o={},s=0;s-1&&(f[p[r]].title={text:""});for(r=0;r")?"":t.html(e).text()}));return t.remove(),r}(k),k=M.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")).replace(u,"'"),a.isIE()&&(k=(k=(k=k.replace(/"/gi,"'")).replace(/(\('#)([^']*)('\))/gi,'("#$2")')).replace(/(\\')/gi,'"')),k}},{"../components/color":157,"../components/drawing":179,"../constants/xmlns_namespaces":268,"../lib":287,"@plotly/d3":20}],385:[function(e,t,r){"use strict";var n=e("../../lib");t.exports=function(e,t){for(var r=0;rf+c||!n(u))}for(var p=0;pi))return t}return void 0!==r?r:e.dflt},r.coerceColor=function(e,t,r){return a(t).isValid()?t:void 0!==r?r:e.dflt},r.coerceEnumerated=function(e,t,r){return e.coerceNumber&&(t=+t),-1!==e.values.indexOf(t)?t:void 0!==r?r:e.dflt},r.getValue=function(e,t){var r;return Array.isArray(e)?t0?t+=r:u<0&&(t-=r)}return t}function R(e){var t=u,r=e.b,a=P(e);return n.inbox(r-t,a-t,_+(a-t)/(a-r)-1)}var z=e[f+"a"],I=e[d+"a"];m=Math.abs(z.r2c(z.range[1])-z.r2c(z.range[0]));var N=n.getDistanceFunction(a,p,h,(function(e){return(p(e)+h(e))/2}));if(n.getClosest(y,N,e),!1!==e.index&&y[e.index].p!==c){M||(O=function(e){return Math.min(k(e),e.p-v.bargroupwidth/2)},D=function(e){return Math.max(A(e),e.p+v.bargroupwidth/2)});var F=y[e.index],j=g.base?F.b+F.s:F.s;e[d+"0"]=e[d+"1"]=I.c2p(F[d],!0),e[d+"LabelVal"]=j;var B=v.extents[v.extents.round(F.p)];e[f+"0"]=z.c2p(x?O(F):B[0],!0),e[f+"1"]=z.c2p(x?D(F):B[1],!0);var H=void 0!==F.orig_p;return e[f+"LabelVal"]=H?F.orig_p:F.p,e.labelLabel=s(z,e[f+"LabelVal"],g[f+"hoverformat"]),e.valueLabel=s(I,e[d+"LabelVal"],g[d+"hoverformat"]),e.baseLabel=s(I,F.b,g[d+"hoverformat"]),e.spikeDistance=(function(e){var t=u,r=e.b,a=P(e);return n.inbox(r-t,a-t,w+(a-t)/(a-r)-1)}(F)+function(e){return C(k(e),A(e),w)}(F))/2,e[f+"Spike"]=z.c2p(F.p,!0),o(F,g,e),e.hovertemplate=g.hovertemplate,e}}function f(e,t){var r=t.mcc||e.marker.color,n=t.mlcc||e.marker.line.color,a=l(e,t);return i.opacity(r)?r:i.opacity(n)&&a?n:void 0}t.exports={hoverPoints:function(e,t,r,n,i){var o=u(e,t,r,n,i);if(o){var l=o.cd,s=l[0].trace,c=l[o.index];return o.color=f(s,c),a.getComponentMethod("errorbars","hoverInfo")(c,s,o),[o]}},hoverOnBars:u,getTraceColor:f}},{"../../components/color":157,"../../components/fx":197,"../../constants/numerical":267,"../../lib":287,"../../plots/cartesian/axes":334,"../../registry":376,"./helpers":392}],394:[function(e,t,r){"use strict";t.exports={attributes:e("./attributes"),layoutAttributes:e("./layout_attributes"),supplyDefaults:e("./defaults").supplyDefaults,crossTraceDefaults:e("./defaults").crossTraceDefaults,supplyLayoutDefaults:e("./layout_defaults"),calc:e("./calc"),crossTraceCalc:e("./cross_trace_calc").crossTraceCalc,colorbar:e("../scatter/marker_colorbar"),arraysToCalcdata:e("./arrays_to_calcdata"),plot:e("./plot").plot,style:e("./style").style,styleOnSelect:e("./style").styleOnSelect,hoverPoints:e("./hover").hoverPoints,eventData:e("./event_data"),selectPoints:e("./select"),moduleType:"trace",name:"bar",basePlotModule:e("../../plots/cartesian"),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}},{"../../plots/cartesian":348,"../scatter/marker_colorbar":515,"./arrays_to_calcdata":385,"./attributes":386,"./calc":387,"./cross_trace_calc":389,"./defaults":390,"./event_data":391,"./hover":393,"./layout_attributes":395,"./layout_defaults":396,"./plot":397,"./select":398,"./style":400}],395:[function(e,t,r){"use strict";t.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}},{}],396:[function(e,t,r){"use strict";var n=e("../../registry"),a=e("../../plots/cartesian/axes"),i=e("../../lib"),o=e("./layout_attributes");t.exports=function(e,t,r){function l(r,n){return i.coerce(e,t,o,r,n)}for(var s=!1,c=!1,u=!1,f={},d=l("barmode"),p=0;p0}function L(e){return"auto"===e?0:e}function S(e,t){var r=Math.PI/180*t,n=Math.abs(Math.sin(r)),a=Math.abs(Math.cos(r));return{x:e.width*a+e.height*n,y:e.width*n+e.height*a}}function O(e,t,r,n,a,i){var o=!!i.isHorizontal,l=!!i.constrained,s=i.angle||0,c=i.anchor||"end",u="end"===c,f="start"===c,d=((i.leftToRight||0)+1)/2,p=1-d,h=a.width,m=a.height,y=Math.abs(t-e),g=Math.abs(n-r),v=y>2*_&&g>2*_?_:0;y-=2*v,g-=2*v;var x=L(s);"auto"!==s||h<=y&&m<=g||!(h>y||m>g)||(h>g||m>y)&&h.01?q:function(e,t,r){return r&&e===t?e:Math.abs(e-t)>=2?q(e):e>t?Math.ceil(e):Math.floor(e)};F=V(F,j,z),j=V(j,F,z),B=V(B,H,!z),H=V(H,B,!z)}var G=k(i.ensureSingle(E,"path"),C,y,g);if(G.style("vector-effect","non-scaling-stroke").attr("d",isNaN((j-F)*(H-B))||U&&e._context.staticPlot?"M0,0Z":"M"+F+","+B+"V"+H+"H"+j+"V"+B+"Z").call(s.setClipUrl,t.layerClipId,e),!C.uniformtext.mode&&I){var Z=s.makePointStyleFns(f);s.singlePointStyle(c,G,f,Z,e)}(function(e,t,r,n,a,l,c,f,p,y,g){var w,T=t.xaxis,A=t.yaxis,D=e._fullLayout;function C(t,r,n){return i.ensureSingle(t,"text").text(r).attr({class:"bartext bartext-"+w,"text-anchor":"middle","data-notex":1}).call(s.font,n).call(o.convertToTspans,e)}var E=n[0].trace,P="h"===E.orientation,R=function(e,t,r,n,a){var o,l=t[0].trace;return o=l.texttemplate?function(e,t,r,n,a){var o=t[0].trace,l=i.castOption(o,r,"texttemplate");if(!l)return"";var s,c,f,d,p="waterfall"===o.type,h="funnel"===o.type;function m(e){return u(c,c.c2l(e),!0).text}function y(e){return u(d,d.c2l(e),!0).text}"h"===o.orientation?(s="y",c=a,f="x",d=n):(s="x",c=n,f="y",d=a);var g=t[r],v={};v.label=g.p,v.labelLabel=v[s+"Label"]=m(g.p);var x=i.castOption(o,g.i,"text");(0===x||x)&&(v.text=x),v.value=g.s,v.valueLabel=v[f+"Label"]=y(g.s);var _={};b(_,o,g.i),p&&(v.delta=+g.rawS||g.s,v.deltaLabel=y(v.delta),v.final=g.v,v.finalLabel=y(v.final),v.initial=v.final-v.delta,v.initialLabel=y(v.initial)),h&&(v.value=g.s,v.valueLabel=y(v.value),v.percentInitial=g.begR,v.percentInitialLabel=i.formatPercent(g.begR),v.percentPrevious=g.difR,v.percentPreviousLabel=i.formatPercent(g.difR),v.percentTotal=g.sumR,v.percenTotalLabel=i.formatPercent(g.sumR));var w=i.castOption(o,g.i,"customdata");return w&&(v.customdata=w),i.texttemplateString(l,v,e._d3locale,_,v,o._meta||{})}(e,t,r,n,a):l.textinfo?function(e,t,r,n){var a=e[0].trace,o="h"===a.orientation,l="waterfall"===a.type,s="funnel"===a.type;function c(e){return u(o?n:r,e,!0).text}function f(e){return u(o?r:n,+e,!0).text}var d,p=a.textinfo,h=e[t],m=p.split("+"),y=[],g=function(e){return-1!==m.indexOf(e)};if(g("label")&&y.push(c(e[t].p)),g("text")&&(0===(d=i.castOption(a,h.i,"text"))||d)&&y.push(d),l){var v=+h.rawS||h.s,x=h.v,b=x-v;g("initial")&&y.push(f(b)),g("delta")&&y.push(f(v)),g("final")&&y.push(f(x))}if(s){g("value")&&y.push(f(h.s));var _=0;g("percent initial")&&_++,g("percent previous")&&_++,g("percent total")&&_++;var w=_>1;g("percent initial")&&(d=i.formatPercent(h.begR),w&&(d+=" of initial"),y.push(d)),g("percent previous")&&(d=i.formatPercent(h.difR),w&&(d+=" of previous"),y.push(d)),g("percent total")&&(d=i.formatPercent(h.sumR),w&&(d+=" of total"),y.push(d))}return y.join("
")}(t,r,n,a):m.getValue(l.text,r),m.coerceString(v,o)}(D,n,a,T,A);w=function(e,t){var r=m.getValue(e.textposition,t);return m.coerceEnumerated(x,r)}(E,a);var z="stack"===y.mode||"relative"===y.mode,I=n[a],N=!z||I._outmost;if(R&&"none"!==w&&(!I.isBlank&&l!==c&&f!==p||"auto"!==w&&"inside"!==w)){var F=D.font,j=h.getBarColor(n[a],E),B=h.getInsideTextFont(E,a,F,j),H=h.getOutsideTextFont(E,a,F),U=r.datum();P?"log"===T.type&&U.s0<=0&&(l=T.range[0]0&&G>0&&(V<=W&&G<=X||V<=X&&G<=W||(P?W>=V*(X/G):X>=G*(W/V)))?w="inside":(w="outside",Y.remove(),Y=null)):w="inside"),!Y){var J=(Y=C(r,R,Z=i.ensureUniformFontSize(e,"outside"===w?H:B))).attr("transform");if(Y.attr("transform",""),V=(q=s.bBox(Y.node())).width,G=q.height,Y.attr("transform",J),V<=0||G<=0)return void Y.remove()}var K,Q=E.textangle;(K="outside"===w?function(e,t,r,n,a,i){var o,l=!!i.isHorizontal,s=!!i.constrained,c=i.angle||0,u=a.width,f=a.height,d=Math.abs(t-e),p=Math.abs(n-r);o=l?p>2*_?_:0:d>2*_?_:0;var h=1;s&&(h=l?Math.min(1,p/f):Math.min(1,d/u));var m=L(c),y=S(a,m),g=(l?y.x:y.y)/2,v=(a.left+a.right)/2,x=(a.top+a.bottom)/2,b=(e+t)/2,w=(r+n)/2,T=0,k=0,A=l?M(t,e):M(r,n);return l?(b=t-A*o,T=A*g):(w=n+A*o,k=-A*g),{textX:v,textY:x,targetX:b,targetY:w,anchorX:T,anchorY:k,scale:h,rotate:m}}(l,c,f,p,q,{isHorizontal:P,constrained:"both"===E.constraintext||"outside"===E.constraintext,angle:Q}):O(l,c,f,p,q,{isHorizontal:P,constrained:"both"===E.constraintext||"inside"===E.constraintext,angle:Q,anchor:E.insidetextanchor})).fontSize=Z.size,d(E.type,K,D),I.transform=K,k(Y,D,y,g).attr("transform",i.getTextTransform(K))}else r.select("text").remove()})(e,t,E,r,p,F,j,B,H,y,g),t.layerClipId&&s.hideOutsideRangePoint(c,E.select("text"),w,D,f.xcalendar,f.ycalendar)}));var B=!1===f.cliponaxis;s.setClipUrl(c,B?null:t.layerClipId,e)}));c.getComponentMethod("errorbars","plot")(e,E,t,y)},toMoveInsideBar:O}},{"../../components/color":157,"../../components/drawing":179,"../../components/fx/helpers":193,"../../lib":287,"../../lib/svg_text_utils":310,"../../plots/cartesian/axes":334,"../../registry":376,"./attributes":386,"./constants":388,"./helpers":392,"./style":400,"./uniform_text":402,"@plotly/d3":20,"fast-isnumeric":33}],398:[function(e,t,r){"use strict";function n(e,t,r,n,a){var i=t.c2p(n?e.s0:e.p0,!0),o=t.c2p(n?e.s1:e.p1,!0),l=r.c2p(n?e.p0:e.s0,!0),s=r.c2p(n?e.p1:e.s1,!0);return a?[(i+o)/2,(l+s)/2]:n?[o,(l+s)/2]:[(i+o)/2,s]}t.exports=function(e,t){var r,a=e.cd,i=e.xaxis,o=e.yaxis,l=a[0].trace,s="funnel"===l.type,c="h"===l.orientation,u=[];if(!1===t)for(r=0;r1||0===a.bargap&&0===a.bargroupgap&&!e[0].trace.marker.line.width)&&n.select(this).attr("shape-rendering","crispEdges")})),t.selectAll("g.points").each((function(t){h(n.select(this),t[0].trace,e)})),l.getComponentMethod("errorbars","style")(t)},styleTextPoints:m,styleOnSelect:function(e,t,r){var a=t[0].trace;a.selectedpoints?function(e,t,r){i.selectedPointStyle(e.selectAll("path"),t),function(e,t,r){e.each((function(e){var a,l=n.select(this);if(e.selected){a=o.ensureUniformFontSize(r,y(l,e,t,r));var s=t.selected.textfont&&t.selected.textfont.color;s&&(a.color=s),i.font(l,a)}else i.selectedTextStyle(l,t)}))}(e.selectAll("text"),t,r)}(r,a,e):(h(r,a,e),l.getComponentMethod("errorbars","style")(r))},getInsideTextFont:v,getOutsideTextFont:x,getBarColor:_,resizeText:s}},{"../../components/color":157,"../../components/drawing":179,"../../lib":287,"../../registry":376,"./attributes":386,"./helpers":392,"./uniform_text":402,"@plotly/d3":20}],401:[function(e,t,r){"use strict";var n=e("../../components/color"),a=e("../../components/colorscale/helpers").hasColorscale,i=e("../../components/colorscale/defaults"),o=e("../../lib").coercePattern;t.exports=function(e,t,r,l,s){var c=r("marker.color",l),u=a(e,"marker");u&&i(e,t,s,r,{prefix:"marker.",cLetter:"c"}),r("marker.line.color",n.defaultLine),a(e,"marker.line")&&i(e,t,s,r,{prefix:"marker.line.",cLetter:"c"}),r("marker.line.width"),r("marker.opacity"),o(r,"marker.pattern",c,u),r("selected.marker.color"),r("unselected.marker.color")}},{"../../components/color":157,"../../components/colorscale/defaults":167,"../../components/colorscale/helpers":168,"../../lib":287}],402:[function(e,t,r){"use strict";var n=e("@plotly/d3"),a=e("../../lib");function i(e){return"_"+e+"Text_minsize"}t.exports={recordMinTextSize:function(e,t,r){if(r.uniformtext.mode){var n=i(e),a=r.uniformtext.minsize,o=t.scale*t.fontSize;t.hide=oS.uf};if(t._hasPreCompStats){var H=t[x],U=function(e){return v.d2c((t[e]||[])[r])},Y=1/0,q=-1/0;for(r=0;r=S.q1&&S.q3>=S.med){var G=U("lowerfence");S.lf=G!==l&&G<=S.q1?G:p(S,D,C);var Z=U("upperfence");S.uf=Z!==l&&Z>=S.q3?Z:h(S,D,C);var W=U("mean");S.mean=W!==l?W:C?o.mean(D,C):(S.q1+S.q3)/2;var X=U("sd");S.sd=W!==l&&X>=0?X:C?o.stdev(D,C,S.mean):S.q3-S.q1,S.lo=m(S),S.uo=y(S);var J=U("notchspan");J=J!==l&&J>0?J:g(S,C),S.ln=S.med-J,S.un=S.med+J;var K=S.lf,Q=S.uf;t.boxpoints&&D.length&&(K=Math.min(K,D[0]),Q=Math.max(Q,D[C-1])),t.notched&&(K=Math.min(K,S.ln),Q=Math.max(Q,S.un)),S.min=K,S.max=Q}else{var $;o.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+S.q1,"median = "+S.med,"q3 = "+S.q3].join("\n")),$=S.med!==l?S.med:S.q1!==l?S.q3!==l?(S.q1+S.q3)/2:S.q1:S.q3!==l?S.q3:0,S.med=$,S.q1=S.q3=$,S.lf=S.uf=$,S.mean=S.sd=$,S.ln=S.un=$,S.min=S.max=$}Y=Math.min(Y,S.min),q=Math.max(q,S.max),S.pts2=O.filter(B),A.push(S)}}t._extremes[v._id]=a.findExtremes(v,[Y,q],{padded:!0})}else{var ee=v.makeCalcdata(t,x),te=function(e,t){for(var r=e.length,n=new Array(r+1),a=0;a=0&&ae0){var ue,fe;(S={}).pos=S[_]=F[r],O=S.pts=ne[r].sort(f),C=(D=S[x]=O.map(d)).length,S.min=D[0],S.max=D[C-1],S.mean=o.mean(D,C),S.sd=o.stdev(D,C,S.mean),S.med=o.interp(D,.5),C%2&&(se||ce)?(se?(ue=D.slice(0,C/2),fe=D.slice(C/2+1)):ce&&(ue=D.slice(0,C/2+1),fe=D.slice(C/2)),S.q1=o.interp(ue,.5),S.q3=o.interp(fe,.5)):(S.q1=o.interp(D,.25),S.q3=o.interp(D,.75)),S.lf=p(S,D,C),S.uf=h(S,D,C),S.lo=m(S),S.uo=y(S);var de=g(S,C);S.ln=S.med-de,S.un=S.med+de,ie=Math.min(ie,S.ln),oe=Math.max(oe,S.un),S.pts2=O.filter(B),A.push(S)}t._extremes[v._id]=a.findExtremes(v,t.notched?ee.concat([ie,oe]):ee,{padded:!0})}return function(e,t){if(o.isArrayOrTypedArray(t.selectedpoints))for(var r=0;r0?(A[0].t={num:T[L],dPos:j,posLetter:_,valLetter:x,labels:{med:s(e,"median:"),min:s(e,"min:"),q1:s(e,"q1:"),q3:s(e,"q3:"),max:s(e,"max:"),mean:"sd"===t.boxmean?s(e,"mean ± σ:"):s(e,"mean:"),lf:s(e,"lower fence:"),uf:s(e,"upper fence:")}},T[L]++,A):[{t:{empty:!0}}]};var c={text:"tx",hovertext:"htx"};function u(e,t,r){for(var n in c)o.isArrayOrTypedArray(t[n])&&(Array.isArray(r)?o.isArrayOrTypedArray(t[n][r[0]])&&(e[c[n]]=t[n][r[0]][r[1]]):e[c[n]]=t[n][r])}function f(e,t){return e.v-t.v}function d(e){return e.v}function p(e,t,r){return 0===r?e.q1:Math.min(e.q1,t[Math.min(o.findBin(2.5*e.q1-1.5*e.q3,t,!0)+1,r-1)])}function h(e,t,r){return 0===r?e.q3:Math.max(e.q3,t[Math.max(o.findBin(2.5*e.q3-1.5*e.q1,t),0)])}function m(e){return 4*e.q1-3*e.q3}function y(e){return 4*e.q3-3*e.q1}function g(e,t){return 0===t?0:1.57*(e.q3-e.q1)/Math.sqrt(t)}},{"../../constants/numerical":267,"../../lib":287,"../../plots/cartesian/align_period":331,"../../plots/cartesian/axes":334,"fast-isnumeric":33}],405:[function(e,t,r){"use strict";var n=e("../../plots/cartesian/axes"),a=e("../../lib"),i=e("../../plots/cartesian/constraints").getAxisGroup,o=["v","h"];function l(e,t,r,o){var l,s,c,u=t.calcdata,f=t._fullLayout,d=o._id,p=d.charAt(0),h=[],m=0;for(l=0;l1,b=1-f[e+"gap"],_=1-f[e+"groupgap"];for(l=0;l0){var q=S.pointpos,V=S.jitter,G=S.marker.size/2,Z=0;q+V>=0&&((Z=U*(q+V))>A?(Y=!0,B=G,F=Z):Z>I&&(B=G,F=A)),Z<=A&&(F=A);var W=0;q-V<=0&&((W=-U*(q-V))>L?(Y=!0,H=G,j=W):W>N&&(H=G,j=L)),W<=L&&(j=L)}else F=A,j=L;var X=new Array(c.length);for(s=0;s0?(y="v",g=x>0?Math.min(_,b):Math.min(b)):x>0?(y="h",g=Math.min(_)):g=0;if(g){t._length=g;var L=r("orientation",y);t._hasPreCompStats?"v"===L&&0===x?(r("x0",0),r("dx",1)):"h"===L&&0===v&&(r("y0",0),r("dy",1)):"v"===L&&0===x?r("x0"):"h"===L&&0===v&&r("y0"),a.getComponentMethod("calendars","handleTraceDefaults")(e,t,["x","y"],i)}else t.visible=!1}function f(e,t,r,a){var i=a.prefix,o=n.coerce2(e,t,c,"marker.outliercolor"),l=r("marker.line.outliercolor"),s="outliers";t._hasPreCompStats?s="all":(o||l)&&(s="suspectedoutliers");var u=r(i+"points",s);u?(r("jitter","all"===u?.3:0),r("pointpos","all"===u?-1.5:0),r("marker.symbol"),r("marker.opacity"),r("marker.size"),r("marker.color",t.line.color),r("marker.line.color"),r("marker.line.width"),"suspectedoutliers"===u&&(r("marker.line.outliercolor",t.marker.color),r("marker.line.outlierwidth")),r("selected.marker.color"),r("unselected.marker.color"),r("selected.marker.size"),r("unselected.marker.size"),r("text"),r("hovertext")):delete t.marker;var f=r("hoveron");"all"!==f&&-1===f.indexOf("points")||r("hovertemplate"),n.coerceSelectionMarkerOpacity(t,r)}t.exports={supplyDefaults:function(e,t,r,a){function l(r,a){return n.coerce(e,t,c,r,a)}if(u(e,t,l,a),!1!==t.visible){o(e,t,a,l),l("xhoverformat"),l("yhoverformat");var s=t._hasPreCompStats;s&&(l("lowerfence"),l("upperfence")),l("line.color",(e.marker||{}).color||r),l("line.width"),l("fillcolor",i.addOpacity(t.line.color,.5));var d=!1;if(s){var p=l("mean"),h=l("sd");p&&p.length&&(d=!0,h&&h.length&&(d="sd"))}l("boxmean",d),l("whiskerwidth"),l("width"),l("quartilemethod");var m=!1;if(s){var y=l("notchspan");y&&y.length&&(m=!0)}else n.validate(e.notchwidth,c.notchwidth)&&(m=!0);l("notched",m)&&l("notchwidth"),f(e,t,l,{prefix:"box"})}},crossTraceDefaults:function(e,t){var r,a;function i(e){return n.coerce(a._input,a,c,e)}for(var o=0;oe.lo&&(_.so=!0)}return i}));h.enter().append("path").classed("point",!0),h.exit().remove(),h.call(i.translatePoints,s,c)}function u(e,t,r,i){var o,l,s=t.val,c=t.pos,u=!!c.rangebreaks,f=i.bPos,d=i.bPosPxOffset||0,p=r.boxmean||(r.meanline||{}).visible;Array.isArray(i.bdPos)?(o=i.bdPos[0],l=i.bdPos[1]):(o=i.bdPos,l=i.bdPos);var h=e.selectAll("path.mean").data("box"===r.type&&r.boxmean||"violin"===r.type&&r.box.visible&&r.meanline.visible?a.identity:[]);h.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),h.exit().remove(),h.each((function(e){var t=c.c2l(e.pos+f,!0),a=c.l2p(t-o)+d,i=c.l2p(t+l)+d,h=u?(a+i)/2:c.l2p(t)+d,m=s.c2p(e.mean,!0),y=s.c2p(e.mean-e.sd,!0),g=s.c2p(e.mean+e.sd,!0);"h"===r.orientation?n.select(this).attr("d","M"+m+","+a+"V"+i+("sd"===p?"m0,0L"+y+","+h+"L"+m+","+a+"L"+g+","+h+"Z":"")):n.select(this).attr("d","M"+a+","+m+"H"+i+("sd"===p?"m0,0L"+h+","+y+"L"+a+","+m+"L"+h+","+g+"Z":""))}))}t.exports={plot:function(e,t,r,i){var o=t.xaxis,l=t.yaxis;a.makeTraceGroups(i,r,"trace boxes").each((function(e){var t,r,a=n.select(this),i=e[0],f=i.t,d=i.trace;f.wdPos=f.bdPos*d.whiskerwidth,!0!==d.visible||f.empty?a.remove():("h"===d.orientation?(t=l,r=o):(t=o,r=l),s(a,{pos:t,val:r},d,f),c(a,{x:o,y:l},d,f),u(a,{pos:t,val:r},d,f))}))},plotBoxAndWhiskers:s,plotPoints:c,plotBoxMean:u}},{"../../components/drawing":179,"../../lib":287,"@plotly/d3":20}],413:[function(e,t,r){"use strict";t.exports=function(e,t){var r,n,a=e.cd,i=e.xaxis,o=e.yaxis,l=[];if(!1===t)for(r=0;ro.level||o.starts.length&&i===o.level)}break;case"constraint":if(n.prefixBoundary=!1,n.edgepaths.length)return;var l=n.x.length,s=n.y.length,c=-1/0,u=1/0;for(r=0;r":p>c&&(n.prefixBoundary=!0);break;case"<":(pc||n.starts.length&&d===u)&&(n.prefixBoundary=!0);break;case"][":f=Math.min(p[0],p[1]),d=Math.max(p[0],p[1]),fc&&(n.prefixBoundary=!0)}}}},{}],418:[function(e,t,r){"use strict";var n=e("../../components/colorscale"),a=e("./make_color_map"),i=e("./end_plus");t.exports={min:"zmin",max:"zmax",calc:function(e,t,r){var o=t.contours,l=t.line,s=o.size||1,c=o.coloring,u=a(t,{isColorbar:!0});if("heatmap"===c){var f=n.extractOpts(t);r._fillgradient=f.reversescale?n.flipScale(f.colorscale):f.colorscale,r._zrange=[f.min,f.max]}else"fill"===c&&(r._fillcolor=u);r._line={color:"lines"===c?u:l.color,width:!1!==o.showlines?l.width:0,dash:l.dash},r._levels={start:o.start,end:i(o),size:s}}}},{"../../components/colorscale":169,"./end_plus":426,"./make_color_map":431}],419:[function(e,t,r){"use strict";t.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}},{}],420:[function(e,t,r){"use strict";var n=e("fast-isnumeric"),a=e("./label_defaults"),i=e("../../components/color"),o=i.addOpacity,l=i.opacity,s=e("../../constants/filter_ops"),c=s.CONSTRAINT_REDUCTION,u=s.COMPARISON_OPS2;t.exports=function(e,t,r,i,s,f){var d,p,h,m=t.contours,y=r("contours.operation");m._operation=c[y],function(e,t){var r;-1===u.indexOf(t.operation)?(e("contours.value",[0,1]),Array.isArray(t.value)?t.value.length>2?t.value=t.value.slice(2):0===t.length?t.value=[0,1]:t.length<2?(r=parseFloat(t.value[0]),t.value=[r,r+1]):t.value=[parseFloat(t.value[0]),parseFloat(t.value[1])]:n(t.value)&&(r=parseFloat(t.value),t.value=[r,r+1])):(e("contours.value",0),n(t.value)||(Array.isArray(t.value)?t.value=parseFloat(t.value[0]):t.value=0))}(r,m),"="===y?d=m.showlines=!0:(d=r("contours.showlines"),h=r("fillcolor",o((e.line||{}).color||s,.5))),d&&(p=r("line.color",h&&l(h)?o(t.fillcolor,1):s),r("line.width",2),r("line.dash")),r("line.smoothing"),a(r,i,p,f)}},{"../../components/color":157,"../../constants/filter_ops":265,"./label_defaults":430,"fast-isnumeric":33}],421:[function(e,t,r){"use strict";var n=e("../../constants/filter_ops"),a=e("fast-isnumeric");function i(e,t){var r,i=Array.isArray(t);function o(e){return a(e)?+e:null}return-1!==n.COMPARISON_OPS2.indexOf(e)?r=o(i?t[0]:t):-1!==n.INTERVAL_OPS.indexOf(e)?r=i?[o(t[0]),o(t[1])]:[o(t),o(t)]:-1!==n.SET_OPS.indexOf(e)&&(r=i?t.map(o):[o(t)]),r}function o(e){return function(t){t=i(e,t);var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]);return{start:r,end:n,size:n-r}}}function l(e){return function(t){return{start:t=i(e,t),end:1/0,size:1/0}}}t.exports={"[]":o("[]"),"][":o("]["),">":l(">"),"<":l("<"),"=":l("=")}},{"../../constants/filter_ops":265,"fast-isnumeric":33}],422:[function(e,t,r){"use strict";t.exports=function(e,t,r,n){var a=n("contours.start"),i=n("contours.end"),o=!1===a||!1===i,l=r("contours.size");!(o?t.autocontour=!0:r("autocontour",!1))&&l||r("ncontours")}},{}],423:[function(e,t,r){"use strict";var n=e("../../lib");function a(e){return n.extendFlat({},e,{edgepaths:n.extendDeep([],e.edgepaths),paths:n.extendDeep([],e.paths),starts:n.extendDeep([],e.starts)})}t.exports=function(e,t){var r,i,o,l=function(e){return e.reverse()},s=function(e){return e};switch(t){case"=":case"<":return e;case">":for(1!==e.length&&n.warn("Contour data invalid for the specified inequality operation."),i=e[0],r=0;r1e3){n.warn("Too many contours, clipping at 1000",e);break}return s}},{"../../lib":287,"./constraint_mapping":421,"./end_plus":426}],426:[function(e,t,r){"use strict";t.exports=function(e){return e.end+e.size/1e6}},{}],427:[function(e,t,r){"use strict";var n=e("../../lib"),a=e("./constants");function i(e,t,r,n){return Math.abs(e[0]-t[0])20&&t?208===e||1114===e?n=0===r[0]?1:-1:i=0===r[1]?1:-1:-1!==a.BOTTOMSTART.indexOf(e)?i=1:-1!==a.LEFTSTART.indexOf(e)?n=1:-1!==a.TOPSTART.indexOf(e)?i=-1:n=-1,[n,i]}(f,r,t),p=[l(e,t,[-d[0],-d[1]])],h=e.z.length,m=e.z[0].length,y=t.slice(),g=d.slice();for(c=0;c<1e4;c++){if(f>20?(f=a.CHOOSESADDLE[f][(d[0]||d[1])<0?0:1],e.crossings[u]=a.SADDLEREMAINDER[f]):delete e.crossings[u],!(d=a.NEWDELTA[f])){n.log("Found bad marching index:",f,t,e.level);break}p.push(l(e,t,d)),t[0]+=d[0],t[1]+=d[1],u=t.join(","),i(p[p.length-1],p[p.length-2],o,s)&&p.pop();var v=d[0]&&(t[0]<0||t[0]>m-2)||d[1]&&(t[1]<0||t[1]>h-2);if(t[0]===y[0]&&t[1]===y[1]&&d[0]===g[0]&&d[1]===g[1]||r&&v)break;f=e.crossings[u]}1e4===c&&n.log("Infinite loop in contour?");var x,b,_,w,T,M,k,A,L,S,O,D,C,E,P,R=i(p[0],p[p.length-1],o,s),z=0,I=.2*e.smoothing,N=[],F=0;for(c=1;c=F;c--)if((x=N[c])=F&&x+N[b]A&&L--,e.edgepaths[L]=O.concat(p,S));break}U||(e.edgepaths[A]=p.concat(S))}for(A=0;Ae?0:1)+(t[0][1]>e?0:2)+(t[1][1]>e?0:4)+(t[1][0]>e?0:8);return 5===r||10===r?e>(t[0][0]+t[0][1]+t[1][0]+t[1][1])/4?5===r?713:1114:5===r?104:208:15===r?0:r}t.exports=function(e){var t,r,i,o,l,s,c,u,f,d=e[0].z,p=d.length,h=d[0].length,m=2===p||2===h;for(r=0;r=0&&(n=v,l=s):Math.abs(r[1]-n[1])<.01?Math.abs(r[1]-v[1])<.01&&(v[0]-r[0])*(n[0]-v[0])>=0&&(n=v,l=s):a.log("endpt to newendpt is not vert. or horz.",r,n,v)}if(r=n,l>=0)break;f+="L"+n}if(l===e.edgepaths.length){a.log("unclosed perimeter path");break}d=l,(h=-1===p.indexOf(d))&&(d=p[0],f+="Z")}for(d=0;dn.center?n.right-l:l-n.left)/(u+Math.abs(Math.sin(c)*o)),p=(s>n.middle?n.bottom-s:s-n.top)/(Math.abs(f)+Math.cos(c)*o);if(d<1||p<1)return 1/0;var h=g.EDGECOST*(1/(d-1)+1/(p-1));h+=g.ANGLECOST*c*c;for(var m=l-u,y=s-f,v=l+u,x=s+f,b=0;b2*g.MAXCOST)break;p&&(l/=2),s=(o=c-l/2)+1.5*l}if(d<=g.MAXCOST)return u},r.addLabelData=function(e,t,r,n){var a=t.fontSize,i=t.width+a/3,o=Math.max(0,t.height-a/3),l=e.x,s=e.y,c=e.theta,u=Math.sin(c),f=Math.cos(c),d=function(e,t){return[l+e*f-t*u,s+e*u+t*f]},p=[d(-i/2,-o/2),d(-i/2,o/2),d(i/2,o/2),d(i/2,-o/2)];r.push({text:t.text,x:l,y:s,dy:t.dy,theta:c,level:t.level,width:i,height:o}),n.push(p)},r.drawLabels=function(e,t,r,i,o){var s=e.selectAll("text").data(t,(function(e){return e.text+","+e.x+","+e.y+","+e.theta}));if(s.exit().remove(),s.enter().append("text").attr({"data-notex":1,"text-anchor":"middle"}).each((function(e){var t=e.x+Math.sin(e.theta)*e.dy,a=e.y-Math.cos(e.theta)*e.dy;n.select(this).text(e.text).attr({x:t,y:a,transform:"rotate("+180*e.theta/Math.PI+" "+t+" "+a+")"}).call(l.convertToTspans,r)})),o){for(var c="",u=0;ur.end&&(r.start=r.end=(r.start+r.end)/2),e._input.contours||(e._input.contours={}),a.extendFlat(e._input.contours,{start:r.start,end:r.end,size:r.size}),e._input.autocontour=!0}else if("constraint"!==r.type){var c,u=r.start,f=r.end,d=e._input.contours;u>f&&(r.start=d.start=f,f=r.end=d.end=u,u=r.start),r.size>0||(c=u===f?1:i(u,f,e.ncontours).dtick,d.size=r.size=c)}}},{"../../lib":287,"../../plots/cartesian/axes":334}],435:[function(e,t,r){"use strict";var n=e("@plotly/d3"),a=e("../../components/drawing"),i=e("../heatmap/style"),o=e("./make_color_map");t.exports=function(e){var t=n.select(e).selectAll("g.contour");t.style("opacity",(function(e){return e[0].trace.opacity})),t.each((function(e){var t=n.select(this),r=e[0].trace,i=r.contours,l=r.line,s=i.size||1,c=i.start,u="constraint"===i.type,f=!u&&"lines"===i.coloring,d=!u&&"fill"===i.coloring,p=f||d?o(r):null;t.selectAll("g.contourlevel").each((function(e){n.select(this).selectAll("path").call(a.lineGroupStyle,l.width,f?p(e.level):l.color,l.dash)}));var h=i.labelfont;if(t.selectAll("g.contourlabels text").each((function(e){a.font(n.select(this),{family:h.family,size:h.size,color:h.color||(f?p(e.level):l.color)})})),u)t.selectAll("g.contourfill path").style("fill",r.fillcolor);else if(d){var m;t.selectAll("g.contourfill path").style("fill",(function(e){return void 0===m&&(m=e.level),p(e.level+.5*s)})),void 0===m&&(m=c),t.selectAll("g.contourbg path").style("fill",p(m-.5*s))}})),i(e)}},{"../../components/drawing":179,"../heatmap/style":449,"./make_color_map":431,"@plotly/d3":20}],436:[function(e,t,r){"use strict";var n=e("../../components/colorscale/defaults"),a=e("./label_defaults");t.exports=function(e,t,r,i,o){var l,s=r("contours.coloring"),c="";"fill"===s&&(l=r("contours.showlines")),!1!==l&&("lines"!==s&&(c=r("line.color","#000")),r("line.width",.5),r("line.dash")),"none"!==s&&(!0!==e.showlegend&&(t.showlegend=!1),t._dfltShowLegend=!1,n(e,t,i,r,{prefix:"",cLetter:"z"})),r("line.smoothing"),a(r,i,c,o)}},{"../../components/colorscale/defaults":167,"./label_defaults":430}],437:[function(e,t,r){"use strict";var n=e("../scatter/attributes"),a=e("../../plots/attributes"),i=e("../../plots/cartesian/axis_format_attributes").axisHoverFormat,o=e("../../plots/template_attributes").hovertemplateAttrs,l=e("../../components/colorscale/attributes"),s=e("../../lib/extend").extendFlat;t.exports=s({z:{valType:"data_array",editType:"calc"},x:s({},n.x,{impliedEdits:{xtype:"array"}}),x0:s({},n.x0,{impliedEdits:{xtype:"scaled"}}),dx:s({},n.dx,{impliedEdits:{xtype:"scaled"}}),y:s({},n.y,{impliedEdits:{ytype:"array"}}),y0:s({},n.y0,{impliedEdits:{ytype:"scaled"}}),dy:s({},n.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:s({},n.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:s({},n.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:s({},n.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:s({},n.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:s({},n.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:s({},n.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:i("x"),yhoverformat:i("y"),zhoverformat:i("z",1),hovertemplate:o(),showlegend:s({},a.showlegend,{dflt:!1})},{transforms:void 0},l("",{cLetter:"z",autoColorDflt:!1}))},{"../../components/colorscale/attributes":164,"../../lib/extend":281,"../../plots/attributes":330,"../../plots/cartesian/axis_format_attributes":337,"../../plots/template_attributes":371,"../scatter/attributes":497}],438:[function(e,t,r){"use strict";var n=e("../../registry"),a=e("../../lib"),i=e("../../plots/cartesian/axes"),o=e("../../plots/cartesian/align_period"),l=e("../histogram2d/calc"),s=e("../../components/colorscale/calc"),c=e("./convert_column_xyz"),u=e("./clean_2d_array"),f=e("./interp2d"),d=e("./find_empties"),p=e("./make_bound_array"),h=e("../../constants/numerical").BADNUM;function m(e){for(var t=[],r=e.length,n=0;nz){P("x scale is not linear");break}}if(x.length&&"fast"===C){var I=(x[x.length-1]-x[0])/(x.length-1),N=Math.abs(I/100);for(M=0;MN){P("y scale is not linear");break}}}var F=a.maxRowLength(T),j="scaled"===t.xtype?"":r,B=p(t,j,y,g,F,A),H="scaled"===t.ytype?"":x,U=p(t,H,b,_,T.length,L);D||(t._extremes[A._id]=i.findExtremes(A,B),t._extremes[L._id]=i.findExtremes(L,U));var Y={x:B,y:U,z:T,text:t._text||t.text,hovertext:t._hovertext||t.hovertext};if(t.xperiodalignment&&v&&(Y.orig_x=v),t.yperiodalignment&&w&&(Y.orig_y=w),j&&j.length===B.length-1&&(Y.xCenter=j),H&&H.length===U.length-1&&(Y.yCenter=H),O&&(Y.xRanges=k.xRanges,Y.yRanges=k.yRanges,Y.pts=k.pts),S||s(e,t,{vals:T,cLetter:"z"}),S&&t.contours&&"heatmap"===t.contours.coloring){var q={type:"contour"===t.type?"heatmap":"histogram2d",xcalendar:t.xcalendar,ycalendar:t.ycalendar};Y.xfill=p(q,j,y,g,F,A),Y.yfill=p(q,H,b,_,T.length,L)}return[Y]}},{"../../components/colorscale/calc":165,"../../constants/numerical":267,"../../lib":287,"../../plots/cartesian/align_period":331,"../../plots/cartesian/axes":334,"../../registry":376,"../histogram2d/calc":466,"./clean_2d_array":439,"./convert_column_xyz":441,"./find_empties":443,"./interp2d":446,"./make_bound_array":447}],439:[function(e,t,r){"use strict";var n=e("fast-isnumeric"),a=e("../../lib"),i=e("../../constants/numerical").BADNUM;t.exports=function(e,t,r,o){var l,s,c,u,f,d;function p(e){if(n(e))return+e}if(t&&t.transpose){for(l=0,f=0;f=0;o--)(l=((f[[(r=(i=d[o])[0])-1,a=i[1]]]||m)[2]+(f[[r+1,a]]||m)[2]+(f[[r,a-1]]||m)[2]+(f[[r,a+1]]||m)[2])/20)&&(s[i]=[r,a,l],d.splice(o,1),c=!0);if(!c)throw"findEmpties iterated with no new neighbors";for(i in s)f[i]=s[i],u.push(s[i])}return u.sort((function(e,t){return t[2]-e[2]}))}},{"../../lib":287}],444:[function(e,t,r){"use strict";var n=e("../../components/fx"),a=e("../../lib"),i=e("../../plots/cartesian/axes"),o=e("../../components/colorscale").extractOpts;t.exports=function(e,t,r,l,s){s||(s={});var c,u,f,d,p=s.isContour,h=e.cd[0],m=h.trace,y=e.xa,g=e.ya,v=h.x,x=h.y,b=h.z,_=h.xCenter,w=h.yCenter,T=h.zmask,M=m.zhoverformat,k=v,A=x;if(!1!==e.index){try{f=Math.round(e.index[1]),d=Math.round(e.index[0])}catch(t){return void a.error("Error hovering on heatmap, pointNumber must be [row,col], found:",e.index)}if(f<0||f>=b[0].length||d<0||d>b.length)return}else{if(n.inbox(t-v[0],t-v[v.length-1],0)>0||n.inbox(r-x[0],r-x[x.length-1],0)>0)return;if(p){var L;for(k=[2*v[0]-v[1]],L=1;Lm&&(g=Math.max(g,Math.abs(e[i][o]-h)/(y-m))))}return g}t.exports=function(e,t){var r,a=1;for(o(e,t),r=0;r.01;r++)a=o(e,t,i(a));return a>.01&&n.log("interp2d didn't converge quickly",a),e}},{"../../lib":287}],447:[function(e,t,r){"use strict";var n=e("../../registry"),a=e("../../lib").isArrayOrTypedArray;t.exports=function(e,t,r,i,o,l){var s,c,u,f=[],d=n.traceIs(e,"contour"),p=n.traceIs(e,"histogram"),h=n.traceIs(e,"gl2d");if(a(t)&&t.length>1&&!p&&"category"!==l.type){var m=t.length;if(!(m<=o))return d?t.slice(0,o):t.slice(0,o+1);if(d||h)f=t.slice(0,o);else if(1===o)f=[t[0]-.5,t[0]+.5];else{for(f=[1.5*t[0]-.5*t[1]],u=1;u0;)d=p.c2p(T[v]),v--;for(d0;)g=h.c2p(M[v]),v--;if(g0&&(i=!0);for(var s=0;si){var o=i-r[e];return r[e]=i,o}}return 0},max:function(e,t,r,a){var i=a[t];if(n(i)){if(i=Number(i),!n(r[e]))return r[e]=i,i;if(r[e]c?e>o?e>1.1*a?a:e>1.1*i?i:o:e>l?l:e>s?s:c:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function p(e,t,r,n,i,l){if(n&&e>o){var s=h(t,i,l),c=h(r,i,l),u=e===a?0:1;return s[u]!==c[u]}return Math.floor(r/e)-Math.floor(t/e)>.1}function h(e,t,r){var n=t.c2d(e,a,r).split("-");return""===n[0]&&(n.unshift(),n[0]="-"+n[0]),n}t.exports=function(e,t,r,n,i){var l,s,c=-1.1*t,d=-.1*t,p=e-d,h=r[0],m=r[1],y=Math.min(f(h+d,h+p,n,i),f(m+d,m+p,n,i)),g=Math.min(f(h+c,h+d,n,i),f(m+c,m+d,n,i));if(y>g&&go){var v=l===a?1:6,x=l===a?"M12":"M1";return function(t,r){var o=n.c2d(t,a,i),l=o.indexOf("-",v);l>0&&(o=o.substr(0,l));var c=n.d2c(o,0,i);if(cr.r2l(F)&&(B=o.tickIncrement(B,b.size,!0,p)),R.start=r.l2r(B),N||a.nestedProperty(t,g+".start").set(R.start)}var H=b.end,U=r.r2l(P.end),Y=void 0!==U;if((b.endFound||Y)&&U!==r.r2l(H)){var q=Y?U:a.aggNums(Math.max,null,h);R.end=r.l2r(q),Y||a.nestedProperty(t,g+".start").set(R.end)}var V="autobin"+l;return!1===t._input[V]&&(t._input[g]=a.extendFlat({},t[g]||{}),delete t._input[V],delete t[V]),[R,h]}t.exports={calc:function(e,t){var r,i,p,h,m=[],y=[],g=o.getFromId(e,"h"===t.orientation?t.yaxis:t.xaxis),v="h"===t.orientation?"y":"x",x={x:"y",y:"x"}[v],b=t[v+"calendar"],_=t.cumulative,w=d(e,t,g,v),T=w[0],M=w[1],k="string"==typeof T.size,A=[],L=k?A:T,S=[],O=[],D=[],C=0,E=t.histnorm,P=t.histfunc,R=-1!==E.indexOf("density");_.enabled&&R&&(E=E.replace(/ ?density$/,""),R=!1);var z,I="max"===P||"min"===P?null:0,N=s.count,F=c[E],j=!1,B=function(e){return g.r2c(e,0,b)};for(a.isArrayOrTypedArray(t[x])&&"count"!==P&&(z=t[x],j="avg"===P,N=s[P]),r=B(T.start),p=B(T.end)+(r-o.tickIncrement(r,T.size,!1,b))/1e6;r=0&&h=0;n--)l(n);else if("increasing"===t){for(n=1;n=0;n--)e[n]+=e[n+1];"exclude"===r&&(e.push(0),e.shift())}}(y,_.direction,_.currentbin);var J=Math.min(m.length,y.length),K=[],Q=0,$=J-1;for(r=0;r=Q;r--)if(y[r]){$=r;break}for(r=Q;r<=$;r++)if(n(m[r])&&n(y[r])){var ee={p:m[r],s:y[r],b:0};_.enabled||(ee.pts=D[r],V?ee.ph0=ee.ph1=D[r].length?M[D[r][0]]:m[r]:(t._computePh=!0,ee.ph0=Y(A[r]),ee.ph1=Y(A[r+1],!0))),K.push(ee)}return 1===K.length&&(K[0].width1=o.tickIncrement(K[0].p,T.size,!1,b)-K[0].p),l(K,t),a.isArrayOrTypedArray(t.selectedpoints)&&a.tagSelected(K,t,W),K},calcAllAutoBins:d}},{"../../lib":287,"../../plots/cartesian/axes":334,"../../registry":376,"../bar/arrays_to_calcdata":385,"./average":453,"./bin_functions":455,"./bin_label_vals":456,"./norm_functions":464,"fast-isnumeric":33}],458:[function(e,t,r){"use strict";t.exports={eventDataKeys:["binNumber"]}},{}],459:[function(e,t,r){"use strict";var n=e("../../lib"),a=e("../../plots/cartesian/axis_ids"),i=e("../../registry").traceIs,o=e("../bar/defaults").handleGroupingDefaults,l=n.nestedProperty,s=e("../../plots/cartesian/constraints").getAxisGroup,c=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],u=["x","y"];t.exports=function(e,t){var r,f,d,p,h,m,y,g=t._histogramBinOpts={},v=[],x={},b=[];function _(e,t){return n.coerce(r._input,r,r._module.attributes,e,t)}function w(e){return"v"===e.orientation?"x":"y"}function T(e,r,i){var o=e.uid+"__"+i;r||(r=o);var l=function(e,r){return a.getFromTrace({_fullLayout:t},e,r).type}(e,i),s=e[i+"calendar"]||"",c=g[r],u=!0;c&&(l===c.axType&&s===c.calendar?(u=!1,c.traces.push(e),c.dirs.push(i)):(r=o,l!==c.axType&&n.warn(["Attempted to group the bins of trace",e.index,"set on a","type:"+l,"axis","with bins on","type:"+c.axType,"axis."].join(" ")),s!==c.calendar&&n.warn(["Attempted to group the bins of trace",e.index,"set with a",s,"calendar","with bins",c.calendar?"on a "+c.calendar+" calendar":"w/o a set calendar"].join(" ")))),u&&(g[r]={traces:[e],dirs:[i],axType:l,calendar:e[i+"calendar"]||""}),e["_"+i+"bingroup"]=r}for(h=0;hL&&T.splice(L,T.length-L),A.length>L&&A.splice(L,A.length-L);var S=[],O=[],D=[],C="string"==typeof w.size,E="string"==typeof k.size,P=[],R=[],z=C?P:w,I=E?R:k,N=0,F=[],j=[],B=t.histnorm,H=t.histfunc,U=-1!==B.indexOf("density"),Y="max"===H||"min"===H?null:0,q=i.count,V=o[B],G=!1,Z=[],W=[],X="z"in t?t.z:"marker"in t&&Array.isArray(t.marker.color)?t.marker.color:"";X&&"count"!==H&&(G="avg"===H,q=i[H]);var J=w.size,K=x(w.start),Q=x(w.end)+(K-a.tickIncrement(K,J,!1,g))/1e6;for(r=K;r=0&&p=0&&h0||n.inbox(r-o.y0,r-(o.y0+o.h*l.dy),0)>0)){var u,f=Math.floor((t-o.x0)/l.dx),d=Math.floor(Math.abs(r-o.y0)/l.dy);if(l._hasZ?u=o.z[d][f]:l._hasSource&&(u=l._canvas.el.getContext("2d").getImageData(f,d,1,1).data),u){var p,h=o.hi||l.hoverinfo;if(h){var m=h.split("+");-1!==m.indexOf("all")&&(m=["color"]),-1!==m.indexOf("color")&&(p=!0)}var y,g=i.colormodel[l.colormodel],v=g.colormodel||l.colormodel,x=v.length,b=l._scaler(u),_=g.suffix,w=[];(l.hovertemplate||p)&&(w.push("["+[b[0]+_[0],b[1]+_[1],b[2]+_[2]].join(", ")),4===x&&w.push(", "+b[3]+_[3]),w.push("]"),w=w.join(""),e.extraText=v.toUpperCase()+": "+w),Array.isArray(l.hovertext)&&Array.isArray(l.hovertext[d])?y=l.hovertext[d][f]:Array.isArray(l.text)&&Array.isArray(l.text[d])&&(y=l.text[d][f]);var T=c.c2p(o.y0+(d+.5)*l.dy),M=o.x0+(f+.5)*l.dx,k=o.y0+(d+.5)*l.dy,A="["+u.slice(0,l.colormodel.length).join(", ")+"]";return[a.extendFlat(e,{index:[d,f],x0:s.c2p(o.x0+f*l.dx),x1:s.c2p(o.x0+(f+1)*l.dx),y0:T,y1:T,color:b,xVal:M,xLabelVal:M,yVal:k,yLabelVal:k,zLabelVal:A,text:y,hovertemplateLabels:{zLabel:A,colorLabel:w,"color[0]Label":b[0]+_[0],"color[1]Label":b[1]+_[1],"color[2]Label":b[2]+_[2],"color[3]Label":b[3]+_[3]}})]}}}},{"../../components/fx":197,"../../lib":287,"./constants":476}],481:[function(e,t,r){"use strict";t.exports={attributes:e("./attributes"),supplyDefaults:e("./defaults"),calc:e("./calc"),plot:e("./plot"),style:e("./style"),hoverPoints:e("./hover"),eventData:e("./event_data"),moduleType:"trace",name:"image",basePlotModule:e("../../plots/cartesian"),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}},{"../../plots/cartesian":348,"./attributes":474,"./calc":475,"./defaults":477,"./event_data":478,"./hover":480,"./plot":482,"./style":483}],482:[function(e,t,r){"use strict";var n=e("@plotly/d3"),a=e("../../lib"),i=a.strTranslate,o=e("../../constants/xmlns_namespaces"),l=e("./constants"),s=a.isIOS()||a.isSafari()||a.isIE();t.exports=function(e,t,r,c){var u=t.xaxis,f=t.yaxis,d=!(s||e._context._exportedPlot);a.makeTraceGroups(c,r,"im").each((function(t){var r=n.select(this),s=t[0],c=s.trace,p=("fast"===c.zsmooth||!1===c.zsmooth&&d)&&!c._hasZ&&c._hasSource&&"linear"===u.type&&"linear"===f.type;c._realImage=p;var h,m,y,g,v,x,b=s.z,_=s.x0,w=s.y0,T=s.w,M=s.h,k=c.dx,A=c.dy;for(x=0;void 0===h&&x0;)m=u.c2p(_+x*k),x--;for(x=0;void 0===g&&x0;)v=f.c2p(w+x*A),x--;if(mE[0];if(P||R){var z=h+L/2,I=g+S/2;D+="transform:"+i(z+"px",I+"px")+"scale("+(P?-1:1)+","+(R?-1:1)+")"+i(-z+"px",-I+"px")+";"}}O.attr("style",D);var N=new Promise((function(e){if(c._hasZ)e();else if(c._hasSource)if(c._canvas&&c._canvas.el.width===T&&c._canvas.el.height===M&&c._canvas.source===c.source)e();else{var t=document.createElement("canvas");t.width=T,t.height=M;var r=t.getContext("2d");c._image=c._image||new Image;var n=c._image;n.onload=function(){r.drawImage(n,0,0),c._canvas={el:t,source:c.source},e()},n.setAttribute("src",c.source)}})).then((function(){var e,t;if(c._hasZ)t=F((function(e,t){return b[t][e]})),e=t.toDataURL("image/png");else if(c._hasSource)if(p)e=c.source;else{var r=c._canvas.el.getContext("2d").getImageData(0,0,T,M).data;t=F((function(e,t){var n=4*(t*T+e);return[r[n],r[n+1],r[n+2],r[n+3]]})),e=t.toDataURL("image/png")}O.attr({"xlink:href":e,height:S,width:L,x:h,y:g})}));e._promises.push(N)}function F(e){var t=document.createElement("canvas");t.width=L,t.height=S;var r,n=t.getContext("2d"),i=function(e){return a.constrain(Math.round(u.c2p(_+e*k)-h),0,L)},o=function(e){return a.constrain(Math.round(f.c2p(w+e*A)-g),0,S)},d=l.colormodel[c.colormodel],p=d.colormodel||c.colormodel,m=d.fmt;for(x=0;x0){l=!0;break}}l||(o=0)}return{hasLabels:r,hasValues:i,len:o}}t.exports={handleLabelsAndValues:s,supplyDefaults:function(e,t,r,n){function c(r,n){return a.coerce(e,t,i,r,n)}var u=s(c("labels"),c("values")),f=u.len;if(t._hasLabels=u.hasLabels,t._hasValues=u.hasValues,!t._hasLabels&&t._hasValues&&(c("label0"),c("dlabel")),f){t._length=f,c("marker.line.width")&&c("marker.line.color"),c("marker.colors"),c("scalegroup");var d,p=c("text"),h=c("texttemplate");if(h||(d=c("textinfo",Array.isArray(p)?"text+percent":"percent")),c("hovertext"),c("hovertemplate"),h||d&&"none"!==d){var m=c("textposition");l(e,t,n,c,m,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),(Array.isArray(m)||"auto"===m||"outside"===m)&&c("automargin"),("inside"===m||"auto"===m||Array.isArray(m))&&c("insidetextorientation")}o(t,n,c);var y=c("hole");if(c("title.text")){var g=c("title.position",y?"middle center":"top center");y||"middle center"!==g||(t.title.position="top center"),a.coerceFont(c,"title.font",n.font)}c("sort"),c("direction"),c("rotation"),c("pull")}else t.visible=!1}}},{"../../lib":287,"../../plots/domain":362,"../bar/defaults":390,"./attributes":484,"fast-isnumeric":33}],488:[function(e,t,r){"use strict";var n=e("../../components/fx/helpers").appendArrayMultiPointValues;t.exports=function(e,t){var r={curveNumber:t.index,pointNumbers:e.pts,data:t._input,fullData:t,label:e.label,color:e.color,value:e.v,percent:e.percent,text:e.text,bbox:e.bbox,v:e.v};return 1===e.pts.length&&(r.pointNumber=r.i=e.pts[0]),n(r,t,e.pts),"funnelarea"===t.type&&(delete r.v,delete r.i),r}},{"../../components/fx/helpers":193}],489:[function(e,t,r){"use strict";var n=e("../../lib");function a(e){return-1!==e.indexOf("e")?e.replace(/[.]?0+e/,"e"):-1!==e.indexOf(".")?e.replace(/[.]?0+$/,""):e}r.formatPiePercent=function(e,t){var r=a((100*e).toPrecision(3));return n.numSeparate(r,t)+"%"},r.formatPieValue=function(e,t){var r=a(e.toPrecision(10));return n.numSeparate(r,t)},r.getFirstFilled=function(e,t){if(Array.isArray(e))for(var r=0;r"),name:f.hovertemplate||-1!==d.indexOf("name")?f.name:void 0,idealAlign:e.pxmid[0]<0?"left":"right",color:y.castOption(_.bgcolor,e.pts)||e.color,borderColor:y.castOption(_.bordercolor,e.pts),fontFamily:y.castOption(w.family,e.pts),fontSize:y.castOption(w.size,e.pts),fontColor:y.castOption(w.color,e.pts),nameLength:y.castOption(_.namelength,e.pts),textAlign:y.castOption(_.align,e.pts),hovertemplate:y.castOption(f.hovertemplate,e.pts),hovertemplateLabels:e,eventData:[g(e,f)]},{container:r._hoverlayer.node(),outerContainer:r._paper.node(),gd:t,inOut_bbox:T}),e.bbox=T[0],c._hasHoverLabel=!0}c._hasHoverEvent=!0,t.emit("plotly_hover",{points:[g(e,f)],event:n.event})}})),e.on("mouseout",(function(e){var r=t._fullLayout,a=t._fullData[c.index],o=n.select(this).datum();c._hasHoverEvent&&(e.originalEvent=n.event,t.emit("plotly_unhover",{points:[g(o,a)],event:n.event}),c._hasHoverEvent=!1),c._hasHoverLabel&&(i.loneUnhover(r._hoverlayer.node()),c._hasHoverLabel=!1)})),e.on("click",(function(e){var r=t._fullLayout,a=t._fullData[c.index];t._dragging||!1===r.hovermode||(t._hoverdata=[g(e,a)],i.click(t,n.event))}))}function b(e,t,r){var n=y.castOption(e.insidetextfont.color,t.pts);!n&&e._input.textfont&&(n=y.castOption(e._input.textfont.color,t.pts));var a=y.castOption(e.insidetextfont.family,t.pts)||y.castOption(e.textfont.family,t.pts)||r.family,i=y.castOption(e.insidetextfont.size,t.pts)||y.castOption(e.textfont.size,t.pts)||r.size;return{color:n||o.contrast(t.color),family:a,size:i}}function _(e,t){for(var r,n,a=0;at&&t>n||r=-4;y-=2)g(Math.PI*y,"tan");for(y=4;y>=-4;y-=2)g(Math.PI*(y+1),"tan")}if(f||p){for(y=4;y>=-4;y-=2)g(Math.PI*(y+1.5),"rad");for(y=4;y>=-4;y-=2)g(Math.PI*(y+.5),"rad")}}if(l||h||f){var v=Math.sqrt(e.width*e.width+e.height*e.height);if((i={scale:a*n*2/v,rCenter:1-a,rotate:0}).textPosAngle=(t.startangle+t.stopangle)/2,i.scale>=1)return i;m.push(i)}(h||p)&&((i=T(e,n,o,s,c)).textPosAngle=(t.startangle+t.stopangle)/2,m.push(i)),(h||d)&&((i=M(e,n,o,s,c)).textPosAngle=(t.startangle+t.stopangle)/2,m.push(i));for(var x=0,b=0,_=0;_=1)break}return m[x]}function T(e,t,r,n,a){t=Math.max(0,t-2*m);var i=e.width/e.height,o=L(i,n,t,r);return{scale:2*o/e.height,rCenter:k(i,o/t),rotate:A(a)}}function M(e,t,r,n,a){t=Math.max(0,t-2*m);var i=e.height/e.width,o=L(i,n,t,r);return{scale:2*o/e.width,rCenter:k(i,o/t),rotate:A(a+Math.PI/2)}}function k(e,t){return Math.cos(t)-e*t}function A(e){return(180/Math.PI*e+720)%180-90}function L(e,t,r,n){var a=e+1/(2*Math.tan(t));return r*Math.min(1/(Math.sqrt(a*a+.5)+a),n/(Math.sqrt(e*e+n/2)+e))}function S(e,t){return e.v!==t.vTotal||t.trace.hole?Math.min(1/(1+1/Math.sin(e.halfangle)),e.ring/2):1}function O(e,t){var r=t.pxmid[0],n=t.pxmid[1],a=e.width/2,i=e.height/2;return r<0&&(a*=-1),n<0&&(i*=-1),{scale:1,rCenter:1,rotate:0,x:a+Math.abs(i)*(a>0?1:-1)/2,y:i/(1+r*r/(n*n)),outside:!0}}function D(e,t){var r,n,a,i=e.trace,o={x:e.cx,y:e.cy},l={tx:0,ty:0};l.ty+=i.title.font.size,r=E(i),-1!==i.title.position.indexOf("top")?(o.y-=(1+r)*e.r,l.ty-=e.titleBox.height):-1!==i.title.position.indexOf("bottom")&&(o.y+=(1+r)*e.r);var s,c,u=(s=e.r,c=e.trace.aspectratio,s/(void 0===c?1:c)),f=t.w*(i.domain.x[1]-i.domain.x[0])/2;return-1!==i.title.position.indexOf("left")?(f+=u,o.x-=(1+r)*u,l.tx+=e.titleBox.width/2):-1!==i.title.position.indexOf("center")?f*=2:-1!==i.title.position.indexOf("right")&&(f+=u,o.x+=(1+r)*u,l.tx-=e.titleBox.width/2),n=f/e.titleBox.width,a=C(e,t)/e.titleBox.height,{x:o.x,y:o.y,scale:Math.min(n,a),tx:l.tx,ty:l.ty}}function C(e,t){var r=e.trace,n=t.h*(r.domain.y[1]-r.domain.y[0]);return Math.min(e.titleBox.height,n/2)}function E(e){var t,r=e.pull;if(!r)return 0;if(Array.isArray(r))for(r=0,t=0;tr&&(r=e.pull[t]);return r}function P(e,t){for(var r=[],n=0;n1?u=(c=r.r)/a.aspectratio:c=(u=r.r)*a.aspectratio,s=(c*=(1+a.baseratio)/2)*u}o=Math.min(o,s/r.vTotal)}for(n=0;n")}if(i){var x=s.castOption(a,t.i,"texttemplate");if(x){var b=function(e){return{label:e.label,value:e.v,valueLabel:y.formatPieValue(e.v,n.separators),percent:e.v/r.vTotal,percentLabel:y.formatPiePercent(e.v/r.vTotal,n.separators),color:e.color,text:e.text,customdata:s.castOption(a,e.i,"customdata")}}(t),_=y.getFirstFilled(a.text,t.pts);(v(_)||""===_)&&(b.text=_),t.text=s.texttemplateString(x,b,e._fullLayout._d3locale,b,a._meta||{})}else t.text=""}}function I(e,t){var r=e.rotate*Math.PI/180,n=Math.cos(r),a=Math.sin(r),i=(t.left+t.right)/2,o=(t.top+t.bottom)/2;e.textX=i*n-o*a,e.textY=i*a+o*n,e.noCenter=!0}t.exports={plot:function(e,t){var r=e._fullLayout,i=r._size;h("pie",r),_(t,e),P(t,i);var d=s.makeTraceGroups(r._pielayer,t,"trace").each((function(t){var d=n.select(this),h=t[0],m=h.trace;(function(e){var t,r,n,a=e[0],i=a.r,o=a.trace,l=y.getRotationAngle(o.rotation),s=2*Math.PI/a.vTotal,c="px0",u="px1";if("counterclockwise"===o.direction){for(t=0;ta.vTotal/2?1:0,r.halfangle=Math.PI*Math.min(r.v/a.vTotal,.5),r.ring=1-o.hole,r.rInscribed=S(r,a))})(t),d.attr("stroke-linejoin","round"),d.each((function(){var g=n.select(this).selectAll("g.slice").data(t);g.enter().append("g").classed("slice",!0),g.exit().remove();var v=[[[],[]],[[],[]]],_=!1;g.each((function(a,i){if(a.hidden)n.select(this).selectAll("path,g").remove();else{a.pointNumber=a.i,a.curveNumber=m.index,v[a.pxmid[1]<0?0:1][a.pxmid[0]<0?0:1].push(a);var o=h.cx,c=h.cy,u=n.select(this),d=u.selectAll("path.surface").data([a]);if(d.enter().append("path").classed("surface",!0).style({"pointer-events":"all"}),u.call(x,e,t),m.pull){var g=+y.castOption(m.pull,a.pts)||0;g>0&&(o+=g*a.pxmid[0],c+=g*a.pxmid[1])}a.cxFinal=o,a.cyFinal=c;var T=m.hole;if(a.v===h.vTotal){var M="M"+(o+a.px0[0])+","+(c+a.px0[1])+D(a.px0,a.pxmid,!0,1)+D(a.pxmid,a.px0,!0,1)+"Z";T?d.attr("d","M"+(o+T*a.px0[0])+","+(c+T*a.px0[1])+D(a.px0,a.pxmid,!1,T)+D(a.pxmid,a.px0,!1,T)+"Z"+M):d.attr("d",M)}else{var k=D(a.px0,a.px1,!0,1);if(T){var A=1-T;d.attr("d","M"+(o+T*a.px1[0])+","+(c+T*a.px1[1])+D(a.px1,a.px0,!1,T)+"l"+A*a.px0[0]+","+A*a.px0[1]+k+"Z")}else d.attr("d","M"+o+","+c+"l"+a.px0[0]+","+a.px0[1]+k+"Z")}z(e,a,h);var L=y.castOption(m.textposition,a.pts),S=u.selectAll("g.slicetext").data(a.text&&"none"!==L?[0]:[]);S.enter().append("g").classed("slicetext",!0),S.exit().remove(),S.each((function(){var u=s.ensureSingle(n.select(this),"text","",(function(e){e.attr("data-notex",1)})),d=s.ensureUniformFontSize(e,"outside"===L?function(e,t,r){return{color:y.castOption(e.outsidetextfont.color,t.pts)||y.castOption(e.textfont.color,t.pts)||r.color,family:y.castOption(e.outsidetextfont.family,t.pts)||y.castOption(e.textfont.family,t.pts)||r.family,size:y.castOption(e.outsidetextfont.size,t.pts)||y.castOption(e.textfont.size,t.pts)||r.size}}(m,a,r.font):b(m,a,r.font));u.text(a.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(l.font,d).call(f.convertToTspans,e);var g,v=l.bBox(u.node());if("outside"===L)g=O(v,a);else if(g=w(v,a,h),"auto"===L&&g.scale<1){var x=s.ensureUniformFontSize(e,m.outsidetextfont);u.call(l.font,x),g=O(v=l.bBox(u.node()),a)}var T=g.textPosAngle,M=void 0===T?a.pxmid:R(h.r,T);if(g.targetX=o+M[0]*g.rCenter+(g.x||0),g.targetY=c+M[1]*g.rCenter+(g.y||0),I(g,v),g.outside){var k=g.targetY;a.yLabelMin=k-v.height/2,a.yLabelMid=k,a.yLabelMax=k+v.height/2,a.labelExtraX=0,a.labelExtraY=0,_=!0}g.fontSize=d.size,p(m.type,g,r),t[i].transform=g,u.attr("transform",s.getTextTransform(g))}))}function D(e,t,r,n){var i=n*(t[0]-e[0]),o=n*(t[1]-e[1]);return"a"+n*h.r+","+n*h.r+" 0 "+a.largeArc+(r?" 1 ":" 0 ")+i+","+o}}));var T=n.select(this).selectAll("g.titletext").data(m.title.text?[0]:[]);if(T.enter().append("g").classed("titletext",!0),T.exit().remove(),T.each((function(){var t,r=s.ensureSingle(n.select(this),"text","",(function(e){e.attr("data-notex",1)})),a=m.title.text;m._meta&&(a=s.templateString(a,m._meta)),r.text(a).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(l.font,m.title.font).call(f.convertToTspans,e),t="middle center"===m.title.position?function(e){var t=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/t,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}(h):D(h,i),r.attr("transform",u(t.x,t.y)+c(Math.min(1,t.scale))+u(t.tx,t.ty))})),_&&function(e,t){var r,n,a,i,o,l,s,c,u,f,d,p,h;function m(e,t){return e.pxmid[1]-t.pxmid[1]}function g(e,t){return t.pxmid[1]-e.pxmid[1]}function v(e,r){r||(r={});var a,c,u,d,p=r.labelExtraY+(n?r.yLabelMax:r.yLabelMin),h=n?e.yLabelMin:e.yLabelMax,m=n?e.yLabelMax:e.yLabelMin,g=e.cyFinal+o(e.px0[1],e.px1[1]),v=p-h;if(v*s>0&&(e.labelExtraY=v),Array.isArray(t.pull))for(c=0;c=(y.castOption(t.pull,u.pts)||0)||((e.pxmid[1]-u.pxmid[1])*s>0?(v=u.cyFinal+o(u.px0[1],u.px1[1])-h-e.labelExtraY)*s>0&&(e.labelExtraY+=v):(m+e.labelExtraY-g)*s>0&&(a=3*l*Math.abs(c-f.indexOf(e)),(d=u.cxFinal+i(u.px0[0],u.px1[0])+a-(e.cxFinal+e.pxmid[0])-e.labelExtraX)*l>0&&(e.labelExtraX+=d)))}for(n=0;n<2;n++)for(a=n?m:g,o=n?Math.max:Math.min,s=n?1:-1,r=0;r<2;r++){for(i=r?Math.max:Math.min,l=r?1:-1,(c=e[n][r]).sort(a),u=e[1-n][r],f=u.concat(c),p=[],d=0;dMath.abs(f)?l+="l"+f*e.pxmid[0]/e.pxmid[1]+","+f+"H"+(i+e.labelExtraX+c):l+="l"+e.labelExtraX+","+u+"v"+(f-u)+"h"+c}else l+="V"+(e.yLabelMid+e.labelExtraY)+"h"+c;s.ensureSingle(r,"path","textline").call(o.stroke,t.outsidetextfont.color).attr({"stroke-width":Math.min(2,t.outsidetextfont.size/8),d:l,fill:"none"})}else r.select("path.textline").remove()}))}(g,m),_&&m.automargin){var M=l.bBox(d.node()),k=m.domain,A=i.w*(k.x[1]-k.x[0]),L=i.h*(k.y[1]-k.y[0]),S=(.5*A-h.r)/i.w,C=(.5*L-h.r)/i.h;a.autoMargin(e,"pie."+m.uid+".automargin",{xl:k.x[0]-S,xr:k.x[1]+S,yb:k.y[0]-C,yt:k.y[1]+C,l:Math.max(h.cx-h.r-M.left,0),r:Math.max(M.right-(h.cx+h.r),0),b:Math.max(M.bottom-(h.cy+h.r),0),t:Math.max(h.cy-h.r-M.top,0),pad:5})}}))}));setTimeout((function(){d.selectAll("tspan").each((function(){var e=n.select(this);e.attr("dy")&&e.attr("dy",e.attr("dy"))}))}),0)},formatSliceLabel:z,transformInsideText:w,determineInsideTextFont:b,positionTitleOutside:D,prerenderTitles:_,layoutAreas:P,attachFxHandlers:x,computeTransform:I}},{"../../components/color":157,"../../components/drawing":179,"../../components/fx":197,"../../lib":287,"../../lib/svg_text_utils":310,"../../plots/plots":369,"../bar/constants":388,"../bar/uniform_text":402,"./event_data":488,"./helpers":489,"@plotly/d3":20}],494:[function(e,t,r){"use strict";var n=e("@plotly/d3"),a=e("./style_one"),i=e("../bar/uniform_text").resizeText;t.exports=function(e){var t=e._fullLayout._pielayer.selectAll(".trace");i(e,t,"pie"),t.each((function(e){var t=e[0].trace,r=n.select(this);r.style({opacity:t.opacity}),r.selectAll("path.surface").each((function(e){n.select(this).call(a,e,t)}))}))}},{"../bar/uniform_text":402,"./style_one":495,"@plotly/d3":20}],495:[function(e,t,r){"use strict";var n=e("../../components/color"),a=e("./helpers").castOption;t.exports=function(e,t,r){var i=r.marker.line,o=a(i.color,t.pts)||n.defaultLine,l=a(i.width,t.pts)||0;e.style("stroke-width",l).call(n.fill,t.color).call(n.stroke,o)}},{"../../components/color":157,"./helpers":489}],496:[function(e,t,r){"use strict";var n=e("../../lib");t.exports=function(e,t){for(var r=0;rs&&D[g].gap;)g--;for(x=D[g].s,m=D.length-1;m>g;m--)D[m].s=x;for(;sA[u]&&u=0;a--){var i=e[a];if("scatter"===i.type&&i.xaxis===r.xaxis&&i.yaxis===r.yaxis){i.opacity=void 0;break}}}}}},{}],504:[function(e,t,r){"use strict";var n=e("../../lib"),a=e("../../registry"),i=e("./attributes"),o=e("./constants"),l=e("./subtypes"),s=e("./xy_defaults"),c=e("./period_defaults"),u=e("./stack_defaults"),f=e("./marker_defaults"),d=e("./line_defaults"),p=e("./line_shape_defaults"),h=e("./text_defaults"),m=e("./fillcolor_defaults");t.exports=function(e,t,r,y){function g(r,a){return n.coerce(e,t,i,r,a)}var v=s(e,t,y,g);if(v||(t.visible=!1),t.visible){c(e,t,y,g),g("xhoverformat"),g("yhoverformat");var x=u(e,t,y,g),b=!x&&v=Math.min(t,r)&&h<=Math.max(t,r)?0:1/0}var n=Math.max(3,e.mrc||0),a=1-1/n,i=Math.abs(d.c2p(e.x)-h);return i=Math.min(t,r)&&m<=Math.max(t,r)?0:1/0}var n=Math.max(3,e.mrc||0),a=1-1/n,i=Math.abs(p.c2p(e.y)-m);return iZ!=(j=R[E][1])>=Z&&(I=R[E-1][0],N=R[E][0],j-F&&(z=I+(N-I)*(Z-F)/(j-F),Y=Math.min(Y,z),q=Math.max(q,z)));Y=Math.max(Y,0),q=Math.min(q,d._length);var W=l.defaultLine;return l.opacity(f.fillcolor)?W=f.fillcolor:l.opacity((f.line||{}).color)&&(W=f.line.color),n.extendFlat(e,{distance:e.maxHoverDistance,x0:Y,x1:q,y0:Z,y1:Z,color:W,hovertemplate:!1}),delete e.index,f.text&&!Array.isArray(f.text)?e.text=String(f.text):e.text=f.name,[e]}}}},{"../../components/color":157,"../../components/fx":197,"../../lib":287,"../../registry":376,"./get_trace_color":507}],509:[function(e,t,r){"use strict";var n=e("./subtypes");t.exports={hasLines:n.hasLines,hasMarkers:n.hasMarkers,hasText:n.hasText,isBubble:n.isBubble,attributes:e("./attributes"),supplyDefaults:e("./defaults"),crossTraceDefaults:e("./cross_trace_defaults"),calc:e("./calc").calc,crossTraceCalc:e("./cross_trace_calc"),arraysToCalcdata:e("./arrays_to_calcdata"),plot:e("./plot"),colorbar:e("./marker_colorbar"),formatLabels:e("./format_labels"),style:e("./style").style,styleOnSelect:e("./style").styleOnSelect,hoverPoints:e("./hover"),selectPoints:e("./select"),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:e("../../plots/cartesian"),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}},{"../../plots/cartesian":348,"./arrays_to_calcdata":496,"./attributes":497,"./calc":498,"./cross_trace_calc":502,"./cross_trace_defaults":503,"./defaults":504,"./format_labels":506,"./hover":508,"./marker_colorbar":515,"./plot":518,"./select":519,"./style":521,"./subtypes":522}],510:[function(e,t,r){"use strict";var n=e("../../lib").isArrayOrTypedArray,a=e("../../components/colorscale/helpers").hasColorscale,i=e("../../components/colorscale/defaults");t.exports=function(e,t,r,o,l,s){var c=(e.marker||{}).color;l("line.color",r),a(e,"line")?i(e,t,o,l,{prefix:"line.",cLetter:"c"}):l("line.color",!n(c)&&c||r),l("line.width"),(s||{}).noDash||l("line.dash")}},{"../../components/colorscale/defaults":167,"../../components/colorscale/helpers":168,"../../lib":287}],511:[function(e,t,r){"use strict";var n=e("../../constants/numerical"),a=n.BADNUM,i=n.LOG_CLIP,o=i+.5,l=i-.5,s=e("../../lib"),c=s.segmentsIntersect,u=s.constrain,f=e("./constants");t.exports=function(e,t){var r,n,i,d,p,h,m,y,g,v,x,b,_,w,T,M,k,A,L=t.xaxis,S=t.yaxis,O="log"===L.type,D="log"===S.type,C=L._length,E=S._length,P=t.connectGaps,R=t.baseTolerance,z=t.shape,I="linear"===z,N=t.fill&&"none"!==t.fill,F=[],j=f.minTolerance,B=e.length,H=new Array(B),U=0;function Y(r){var n=e[r];if(!n)return!1;var i=t.linearized?L.l2p(n.x):L.c2p(n.x),s=t.linearized?S.l2p(n.y):S.c2p(n.y);if(i===a){if(O&&(i=L.c2p(n.x,!0)),i===a)return!1;D&&s===a&&(i*=Math.abs(L._m*E*(L._m>0?o:l)/(S._m*C*(S._m>0?o:l)))),i*=1e3}if(s===a){if(D&&(s=S.c2p(n.y,!0)),s===a)return!1;s*=1e3}return[i,s]}function q(e,t,r,n){var a=r-e,i=n-t,o=.5-e,l=.5-t,s=a*a+i*i,c=a*o+i*l;if(c>0&&cre||e[1]ae)return[u(e[0],te,re),u(e[1],ne,ae)]}function le(e,t){return e[0]===t[0]&&(e[0]===te||e[0]===re)||e[1]===t[1]&&(e[1]===ne||e[1]===ae)||void 0}function se(e,t,r){return function(n,a){var i=oe(n),o=oe(a),l=[];if(i&&o&&le(i,o))return l;i&&l.push(i),o&&l.push(o);var c=2*s.constrain((n[e]+a[e])/2,t,r)-((i||n)[e]+(o||a)[e]);return c&&((i&&o?c>0==i[e]>o[e]?i:o:i||o)[e]+=c),l}}function ce(e){var t=e[0],r=e[1],n=t===H[U-1][0],a=r===H[U-1][1];if(!n||!a)if(U>1){var i=t===H[U-2][0],o=r===H[U-2][1];n&&(t===te||t===re)&&i?o?U--:H[U-1]=e:a&&(r===ne||r===ae)&&o?i?U--:H[U-1]=e:H[U++]=e}else H[U++]=e}function ue(e){H[U-1][0]!==e[0]&&H[U-1][1]!==e[1]&&ce([X,J]),ce(e),K=null,X=J=0}function fe(e){if(k=e[0]/C,A=e[1]/E,Z=e[0]re?re:0,W=e[1]ae?ae:0,Z||W){if(U)if(K){var t=$(K,e);t.length>1&&(ue(t[0]),H[U++]=t[1])}else Q=$(H[U-1],e)[0],H[U++]=Q;else H[U++]=[Z||e[0],W||e[1]];var r=H[U-1];Z&&W&&(r[0]!==Z||r[1]!==W)?(K&&(X!==Z&&J!==W?ce(X&&J?(n=K,i=(a=e)[0]-n[0],o=(a[1]-n[1])/i,(n[1]*a[0]-a[1]*n[0])/i>0?[o>0?te:re,ae]:[o>0?re:te,ne]):[X||Z,J||W]):X&&J&&ce([X,J])),ce([Z,W])):X-Z&&J-W&&ce([Z||X,W||J]),K=e,X=Z,J=W}else K&&ue($(K,e)[0]),H[U++]=e;var n,a,i,o}for("linear"===z||"spline"===z?$=function(e,t){for(var r=[],n=0,a=0;a<4;a++){var i=ie[a],o=c(e[0],e[1],t[0],t[1],i[0],i[1],i[2],i[3]);o&&(!n||Math.abs(o.x-r[0][0])>1||Math.abs(o.y-r[0][1])>1)&&(o=[o.x,o.y],n&&G(o,e)V(h,de))break;i=h,(_=g[0]*y[0]+g[1]*y[1])>x?(x=_,d=h,m=!1):_=e.length||!h)break;fe(h),n=h}}else fe(d)}K&&ce([X||K[0],J||K[1]]),F.push(H.slice(0,U))}return F}},{"../../constants/numerical":267,"../../lib":287,"./constants":501}],512:[function(e,t,r){"use strict";t.exports=function(e,t,r){"spline"===r("line.shape")&&r("line.smoothing")}},{}],513:[function(e,t,r){"use strict";var n={tonextx:1,tonexty:1,tonext:1};t.exports=function(e,t,r){var a,i,o,l,s,c={},u=!1,f=-1,d=0,p=-1;for(i=0;i=0?s=p:(s=p=d,d++),s0?Math.max(r,i):0}}},{"fast-isnumeric":33}],515:[function(e,t,r){"use strict";t.exports={container:"marker",min:"cmin",max:"cmax"}},{}],516:[function(e,t,r){"use strict";var n=e("../../components/color"),a=e("../../components/colorscale/helpers").hasColorscale,i=e("../../components/colorscale/defaults"),o=e("./subtypes");t.exports=function(e,t,r,l,s,c){var u=o.isBubble(e),f=(e.line||{}).color;c=c||{},f&&(r=f),s("marker.symbol"),s("marker.opacity",u?.7:1),s("marker.size"),s("marker.color",r),a(e,"marker")&&i(e,t,l,s,{prefix:"marker.",cLetter:"c"}),c.noSelect||(s("selected.marker.color"),s("unselected.marker.color"),s("selected.marker.size"),s("unselected.marker.size")),c.noLine||(s("marker.line.color",f&&!Array.isArray(f)&&t.marker.color!==f?f:u?n.background:n.defaultLine),a(e,"marker.line")&&i(e,t,l,s,{prefix:"marker.line.",cLetter:"c"}),s("marker.line.width",u?1:0)),u&&(s("marker.sizeref"),s("marker.sizemin"),s("marker.sizemode")),c.gradient&&"none"!==s("marker.gradient.type")&&s("marker.gradient.color")}},{"../../components/color":157,"../../components/colorscale/defaults":167,"../../components/colorscale/helpers":168,"./subtypes":522}],517:[function(e,t,r){"use strict";var n=e("../../lib").dateTick0,a=e("../../constants/numerical").ONEWEEK;function i(e,t){return n(t,e%a==0?1:0)}t.exports=function(e,t,r,n,a){if(a||(a={x:!0,y:!0}),a.x){var o=n("xperiod");o&&(n("xperiod0",i(o,t.xcalendar)),n("xperiodalignment"))}if(a.y){var l=n("yperiod");l&&(n("yperiod0",i(l,t.ycalendar)),n("yperiodalignment"))}}},{"../../constants/numerical":267,"../../lib":287}],518:[function(e,t,r){"use strict";var n=e("@plotly/d3"),a=e("../../registry"),i=e("../../lib"),o=i.ensureSingle,l=i.identity,s=e("../../components/drawing"),c=e("./subtypes"),u=e("./line_points"),f=e("./link_traces"),d=e("../../lib/polygon").tester;function p(e,t,r,f,p,h,m){var y;!function(e,t,r,a,o){var l=r.xaxis,s=r.yaxis,u=n.extent(i.simpleMap(l.range,l.r2c)),f=n.extent(i.simpleMap(s.range,s.r2c)),d=a[0].trace;if(c.hasMarkers(d)){var p=d.marker.maxdisplayed;if(0!==p){var h=a.filter((function(e){return e.x>=u[0]&&e.x<=u[1]&&e.y>=f[0]&&e.y<=f[1]})),m=Math.ceil(h.length/p),y=0;o.forEach((function(e,r){var n=e[0].trace;c.hasMarkers(n)&&n.marker.maxdisplayed>0&&r0;function v(e){return g?e.transition():e}var x=r.xaxis,b=r.yaxis,_=f[0].trace,w=_.line,T=n.select(h),M=o(T,"g","errorbars"),k=o(T,"g","lines"),A=o(T,"g","points"),L=o(T,"g","text");if(a.getComponentMethod("errorbars","plot")(e,M,r,m),!0===_.visible){var S,O;v(T).style("opacity",_.opacity);var D=_.fill.charAt(_.fill.length-1);"x"!==D&&"y"!==D&&(D=""),f[0][r.isRangePlot?"nodeRangePlot3":"node3"]=T;var C,E,P="",R=[],z=_._prevtrace;z&&(P=z._prevRevpath||"",O=z._nextFill,R=z._polygons);var I,N,F,j,B,H,U,Y="",q="",V=[],G=i.noop;if(S=_._ownFill,c.hasLines(_)||"none"!==_.fill){for(O&&O.datum(f),-1!==["hv","vh","hvh","vhv"].indexOf(w.shape)?(I=s.steps(w.shape),N=s.steps(w.shape.split("").reverse().join(""))):I=N="spline"===w.shape?function(e){var t=e[e.length-1];return e.length>1&&e[0][0]===t[0]&&e[0][1]===t[1]?s.smoothclosed(e.slice(1),w.smoothing):s.smoothopen(e,w.smoothing)}:function(e){return"M"+e.join("L")},F=function(e){return N(e.reverse())},V=u(f,{xaxis:x,yaxis:b,connectGaps:_.connectgaps,baseTolerance:Math.max(w.width||1,3)/4,shape:w.shape,simplify:w.simplify,fill:_.fill}),U=_._polygons=new Array(V.length),y=0;y1){var r=n.select(this);if(r.datum(f),e)v(r.style("opacity",0).attr("d",C).call(s.lineGroupStyle)).style("opacity",1);else{var a=v(r);a.attr("d",C),s.singleLineStyle(f,a)}}}}}var Z=k.selectAll(".js-line").data(V);v(Z.exit()).style("opacity",0).remove(),Z.each(G(!1)),Z.enter().append("path").classed("js-line",!0).style("vector-effect","non-scaling-stroke").call(s.lineGroupStyle).each(G(!0)),s.setClipUrl(Z,r.layerClipId,e),V.length?(S?(S.datum(f),j&&H&&(D?("y"===D?j[1]=H[1]=b.c2p(0,!0):"x"===D&&(j[0]=H[0]=x.c2p(0,!0)),v(S).attr("d","M"+H+"L"+j+"L"+Y.substr(1)).call(s.singleFillStyle)):v(S).attr("d",Y+"Z").call(s.singleFillStyle))):O&&("tonext"===_.fill.substr(0,6)&&Y&&P?("tonext"===_.fill?v(O).attr("d",Y+"Z"+P+"Z").call(s.singleFillStyle):v(O).attr("d",Y+"L"+P.substr(1)+"Z").call(s.singleFillStyle),_._polygons=_._polygons.concat(R)):(X(O),_._polygons=null)),_._prevRevpath=q,_._prevPolygons=U):(S?X(S):O&&X(O),_._polygons=_._prevRevpath=_._prevPolygons=null),A.datum(f),L.datum(f),function(t,a,i){var o,u=i[0].trace,f=c.hasMarkers(u),d=c.hasText(u),p=ee(u),h=te,m=te;if(f||d){var y=l,_=u.stackgroup,w=_&&"infer zero"===e._fullLayout._scatterStackOpts[x._id+b._id][_].stackgaps;u.marker.maxdisplayed||u._needsCull?y=w?K:J:_&&!w&&(y=Q),f&&(h=y),d&&(m=y)}var T,M=(o=t.selectAll("path.point").data(h,p)).enter().append("path").classed("point",!0);g&&M.call(s.pointStyle,u,e).call(s.translatePoints,x,b).style("opacity",0).transition().style("opacity",1),o.order(),f&&(T=s.makePointStyleFns(u)),o.each((function(t){var a=n.select(this),i=v(a);s.translatePoint(t,i,x,b)?(s.singlePointStyle(t,i,u,T,e),r.layerClipId&&s.hideOutsideRangePoint(t,i,x,b,u.xcalendar,u.ycalendar),u.customdata&&a.classed("plotly-customdata",null!==t.data&&void 0!==t.data)):i.remove()})),g?o.exit().transition().style("opacity",0).remove():o.exit().remove(),(o=a.selectAll("g").data(m,p)).enter().append("g").classed("textpoint",!0).append("text"),o.order(),o.each((function(e){var t=n.select(this),a=v(t.select("text"));s.translatePoint(e,a,x,b)?r.layerClipId&&s.hideOutsideRangePoint(e,t,x,b,u.xcalendar,u.ycalendar):t.remove()})),o.selectAll("text").call(s.textPointStyle,u,e).each((function(e){var t=x.c2p(e.x),r=b.c2p(e.y);n.select(this).selectAll("tspan.line").each((function(){v(n.select(this)).attr({x:t,y:r})}))})),o.exit().remove()}(A,L,f);var W=!1===_.cliponaxis?null:r.layerClipId;s.setClipUrl(A,W,e),s.setClipUrl(L,W,e)}function X(e){v(e).attr("d","M0,0Z")}function J(e){return e.filter((function(e){return!e.gap&&e.vis}))}function K(e){return e.filter((function(e){return e.vis}))}function Q(e){return e.filter((function(e){return!e.gap}))}function $(e){return e.id}function ee(e){if(e.ids)return $}function te(){return!1}}t.exports=function(e,t,r,a,i,c){var u,d,h=!i,m=!!i&&i.duration>0,y=f(e,t,r);(u=a.selectAll("g.trace").data(y,(function(e){return e[0].trace.uid}))).enter().append("g").attr("class",(function(e){return"trace scatter trace"+e[0].trace.uid})).style("stroke-miterlimit",2),u.order(),function(e,t,r){t.each((function(t){var a=o(n.select(this),"g","fills");s.setClipUrl(a,r.layerClipId,e);var i=t[0].trace,c=[];i._ownfill&&c.push("_ownFill"),i._nexttrace&&c.push("_nextFill");var u=a.selectAll("g").data(c,l);u.enter().append("g"),u.exit().each((function(e){i[e]=null})).remove(),u.order().each((function(e){i[e]=o(n.select(this),"path","js-fill")}))}))}(e,u,t),m?(c&&(d=c()),n.transition().duration(i.duration).ease(i.easing).each("end",(function(){d&&d()})).each("interrupt",(function(){d&&d()})).each((function(){a.selectAll("g.trace").each((function(r,n){p(e,n,t,r,y,this,i)}))}))):u.each((function(r,n){p(e,n,t,r,y,this,i)})),h&&u.exit().remove(),a.selectAll("path:not([d])").remove()}},{"../../components/drawing":179,"../../lib":287,"../../lib/polygon":299,"../../registry":376,"./line_points":511,"./link_traces":513,"./subtypes":522,"@plotly/d3":20}],519:[function(e,t,r){"use strict";var n=e("./subtypes");t.exports=function(e,t){var r,a,i,o,l=e.cd,s=e.xaxis,c=e.yaxis,u=[],f=l[0].trace;if(!n.hasMarkers(f)&&!n.hasText(f))return[];if(!1===t)for(r=0;r"),o.hovertemplate=d.hovertemplate,i}function x(e,t){g.push(e._hovertitle+": "+t)}}},{"../scatter/hover":508}],531:[function(e,t,r){"use strict";t.exports={attributes:e("./attributes"),supplyDefaults:e("./defaults"),colorbar:e("../scatter/marker_colorbar"),formatLabels:e("./format_labels"),calc:e("./calc"),plot:e("./plot"),style:e("../scatter/style").style,styleOnSelect:e("../scatter/style").styleOnSelect,hoverPoints:e("./hover"),selectPoints:e("../scatter/select"),eventData:e("./event_data"),moduleType:"trace",name:"scatterternary",basePlotModule:e("../../plots/ternary"),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}},{"../../plots/ternary":372,"../scatter/marker_colorbar":515,"../scatter/select":519,"../scatter/style":521,"./attributes":525,"./calc":526,"./defaults":527,"./event_data":528,"./format_labels":529,"./hover":530,"./plot":532}],532:[function(e,t,r){"use strict";var n=e("../scatter/plot");t.exports=function(e,t,r){var a=t.plotContainer;a.select(".scatterlayer").selectAll("*").remove();var i={xaxis:t.xaxis,yaxis:t.yaxis,plot:a,layerClipId:t._hasClipOnAxisFalse?t.clipIdRelative:null},o=t.layers.frontplot.select("g.scatterlayer");n(e,i,r,o)}},{"../scatter/plot":518}],533:[function(e,t,r){"use strict";var n=e("../box/attributes"),a=e("../../lib/extend").extendFlat,i=e("../../plots/cartesian/axis_format_attributes").axisHoverFormat;t.exports={y:n.y,x:n.x,x0:n.x0,y0:n.y0,xhoverformat:i("x"),yhoverformat:i("y"),name:a({},n.name,{}),orientation:a({},n.orientation,{}),bandwidth:{valType:"number",min:0,editType:"calc"},scalegroup:{valType:"string",dflt:"",editType:"calc"},scalemode:{valType:"enumerated",values:["width","count"],dflt:"width",editType:"calc"},spanmode:{valType:"enumerated",values:["soft","hard","manual"],dflt:"soft",editType:"calc"},span:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:n.fillcolor,points:a({},n.boxpoints,{}),jitter:a({},n.jitter,{}),pointpos:a({},n.pointpos,{}),width:a({},n.width,{}),marker:n.marker,text:n.text,hovertext:n.hovertext,hovertemplate:n.hovertemplate,box:{visible:{valType:"boolean",dflt:!1,editType:"plot"},width:{valType:"number",min:0,max:1,dflt:.25,editType:"plot"},fillcolor:{valType:"color",editType:"style"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"style"},editType:"plot"},meanline:{visible:{valType:"boolean",dflt:!1,editType:"plot"},color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"plot"},side:{valType:"enumerated",values:["both","positive","negative"],dflt:"both",editType:"calc"},offsetgroup:n.offsetgroup,alignmentgroup:n.alignmentgroup,selected:n.selected,unselected:n.unselected,hoveron:{valType:"flaglist",flags:["violins","points","kde"],dflt:"violins+points+kde",extras:["all"],editType:"style"}}},{"../../lib/extend":281,"../../plots/cartesian/axis_format_attributes":337,"../box/attributes":403}],534:[function(e,t,r){"use strict";var n=e("../../lib"),a=e("../../plots/cartesian/axes"),i=e("../box/calc"),o=e("./helpers"),l=e("../../constants/numerical").BADNUM;function s(e,t,r){var a=t.max-t.min;if(!a)return e.bandwidth?e.bandwidth:0;if(e.bandwidth)return Math.max(e.bandwidth,a/1e4);var i=r.length,o=n.stdev(r,i-1,t.mean);return Math.max(function(e,t,r){return 1.059*Math.min(t,r/1.349)*Math.pow(e,-.2)}(i,o,t.q3-t.q1),a/100)}function c(e,t,r,n){var i,o=e.spanmode,s=e.span||[],c=[t.min,t.max],u=[t.min-2*n,t.max+2*n];function f(n){var a=s[n],i="multicategory"===r.type?r.r2c(a):r.d2c(a,0,e[t.valLetter+"calendar"]);return i===l?u[n]:i}var d={type:"linear",range:i="soft"===o?u:"hard"===o?c:[f(0),f(1)]};return a.setConvert(d),d.cleanRange(),i}t.exports=function(e,t){var r=i(e,t);if(r[0].t.empty)return r;for(var l=e._fullLayout,u=a.getFromId(e,t["h"===t.orientation?"xaxis":"yaxis"]),f=1/0,d=-1/0,p=0,h=0,m=0;m0){var x,b,_,w,T,M=e.xa,k=e.ya;"h"===p.orientation?(T=t,x="y",_=k,b="x",w=M):(T=r,x="x",_=M,b="y",w=k);var A=d[e.index];if(T>=A.span[0]&&T<=A.span[1]){var L=n.extendFlat({},e),S=w.c2p(T,!0),O=o.getKdeValue(A,p,T),D=o.getPositionOnKdePath(A,p,S),C=_._offset,E=_._length;L[x+"0"]=D[0],L[x+"1"]=D[1],L[b+"0"]=L[b+"1"]=S,L[b+"Label"]=b+": "+a.hoverLabelText(w,T,p[b+"hoverformat"])+", "+d[0].t.labels.kde+" "+O.toFixed(3),L.spikeDistance=v[0].spikeDistance;var P=x+"Spike";L[P]=v[0][P],v[0].spikeDistance=void 0,v[0][P]=void 0,L.hovertemplate=!1,g.push(L),(u={stroke:e.color})[x+"1"]=n.constrain(C+D[0],C,C+E),u[x+"2"]=n.constrain(C+D[1],C,C+E),u[b+"1"]=u[b+"2"]=w._offset+S}}m&&(g=g.concat(v))}-1!==h.indexOf("points")&&(c=i.hoverOnPoints(e,t,r));var R=f.selectAll(".violinline-"+p.uid).data(u?[0]:[]);return R.enter().append("line").classed("violinline-"+p.uid,!0).attr("stroke-width",1.5),R.exit().remove(),R.attr(u),"closest"===l?c?[c]:g:c?(g.push(c),g):g}},{"../../lib":287,"../../plots/cartesian/axes":334,"../box/hover":408,"./helpers":537}],539:[function(e,t,r){"use strict";t.exports={attributes:e("./attributes"),layoutAttributes:e("./layout_attributes"),supplyDefaults:e("./defaults"),crossTraceDefaults:e("../box/defaults").crossTraceDefaults,supplyLayoutDefaults:e("./layout_defaults"),calc:e("./calc"),crossTraceCalc:e("./cross_trace_calc"),plot:e("./plot"),style:e("./style"),styleOnSelect:e("../scatter/style").styleOnSelect,hoverPoints:e("./hover"),selectPoints:e("../box/select"),moduleType:"trace",name:"violin",basePlotModule:e("../../plots/cartesian"),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","violinLayout","zoomScale"],meta:{}}},{"../../plots/cartesian":348,"../box/defaults":406,"../box/select":413,"../scatter/style":521,"./attributes":533,"./calc":534,"./cross_trace_calc":535,"./defaults":536,"./hover":538,"./layout_attributes":540,"./layout_defaults":541,"./plot":542,"./style":543}],540:[function(e,t,r){"use strict";var n=e("../box/layout_attributes"),a=e("../../lib").extendFlat;t.exports={violinmode:a({},n.boxmode,{}),violingap:a({},n.boxgap,{}),violingroupgap:a({},n.boxgroupgap,{})}},{"../../lib":287,"../box/layout_attributes":410}],541:[function(e,t,r){"use strict";var n=e("../../lib"),a=e("./layout_attributes"),i=e("../box/layout_defaults");t.exports=function(e,t,r){i._supply(e,t,r,(function(r,i){return n.coerce(e,t,a,r,i)}),"violin")}},{"../../lib":287,"../box/layout_defaults":411,"./layout_attributes":540}],542:[function(e,t,r){"use strict";var n=e("@plotly/d3"),a=e("../../lib"),i=e("../../components/drawing"),o=e("../box/plot"),l=e("../scatter/line_points"),s=e("./helpers");t.exports=function(e,t,r,c){var u=e._fullLayout,f=t.xaxis,d=t.yaxis;function p(e){var t=l(e,{xaxis:f,yaxis:d,connectGaps:!0,baseTolerance:.75,shape:"spline",simplify:!0,linearized:!0});return i.smoothopen(t[0],1)}a.makeTraceGroups(c,r,"trace violins").each((function(e){var r=n.select(this),i=e[0],l=i.t,c=i.trace;if(!0!==c.visible||l.empty)r.remove();else{var h=l.bPos,m=l.bdPos,y=t[l.valLetter+"axis"],g=t[l.posLetter+"axis"],v="both"===c.side,x=v||"positive"===c.side,b=v||"negative"===c.side,_=r.selectAll("path.violin").data(a.identity);_.enter().append("path").style("vector-effect","non-scaling-stroke").attr("class","violin"),_.exit().remove(),_.each((function(e){var t,r,a,i,o,s,f,d,_=n.select(this),w=e.density,T=w.length,M=g.c2l(e.pos+h,!0),k=g.l2p(M);if(c.width)t=l.maxKDE/m;else{var A=u._violinScaleGroupStats[c.scalegroup];t="count"===c.scalemode?A.maxKDE/m*(A.maxCount/e.pts.length):A.maxKDE/m}if(x){for(f=new Array(T),o=0;oa&&(a=u,o=c)}}return a?i(o):l};case"rms":return function(e,t){for(var r=0,a=0,o=0;o":return function(e){return d(e)>l};case">=":return function(e){return d(e)>=l};case"[]":return function(e){var t=d(e);return t>=l[0]&&t<=l[1]};case"()":return function(e){var t=d(e);return t>l[0]&&t=l[0]&&tl[0]&&t<=l[1]};case"][":return function(e){var t=d(e);return t<=l[0]||t>=l[1]};case")(":return function(e){var t=d(e);return tl[1]};case"](":return function(e){var t=d(e);return t<=l[0]||t>l[1]};case")[":return function(e){var t=d(e);return t=l[1]};case"{}":return function(e){return-1!==l.indexOf(d(e))};case"}{":return function(e){return-1===l.indexOf(d(e))}}}(r,i.getDataToCoordFunc(e,t,l,a),d),x={},b={},_=0;h?(y=function(e){x[e.astr]=n.extendDeep([],e.get()),e.set(new Array(f))},g=function(e,t){var r=x[e.astr][t];e.get()[t]=r}):(y=function(e){x[e.astr]=n.extendDeep([],e.get()),e.set([])},g=function(e,t){var r=x[e.astr][t];e.get().push(r)}),M(y);for(var w=o(t.transforms,r),T=0;T1?"%{group} (%{trace})":"%{group}");var s=e.styles,c=o.styles=[];if(s)for(i=0;i{"use strict";t.Z=function(e){var t=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(y,t);var r,n,i,o,m=(r=y,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=f(r);if(n){var a=f(this).constructor;e=Reflect.construct(t,arguments,a)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?u(e):t}(this,e)});function y(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),(t=m.call(this,e)).p=Promise.resolve(),t.resizeHandler=null,t.handlers={},t.syncWindowResize=t.syncWindowResize.bind(u(t)),t.syncEventHandlers=t.syncEventHandlers.bind(u(t)),t.attachUpdateEvents=t.attachUpdateEvents.bind(u(t)),t.getRef=t.getRef.bind(u(t)),t.handleUpdate=t.handleUpdate.bind(u(t)),t.figureCallback=t.figureCallback.bind(u(t)),t.updatePlotly=t.updatePlotly.bind(u(t)),t}return i=y,(o=[{key:"updatePlotly",value:function(t,r,n){var a=this;this.p=this.p.then((function(){if(!a.unmounting){if(!a.el)throw new Error("Missing element reference");return e.react(a.el,{data:a.props.data,layout:a.props.layout,config:a.props.config,frames:a.props.frames})}})).then((function(){a.unmounting||(a.syncWindowResize(t),a.syncEventHandlers(),a.figureCallback(r),n&&a.attachUpdateEvents())})).catch((function(e){a.props.onError&&a.props.onError(e)}))}},{key:"componentDidMount",value:function(){this.unmounting=!1,this.updatePlotly(!0,this.props.onInitialized,!0)}},{key:"componentDidUpdate",value:function(e){this.unmounting=!1;var t=e.frames&&e.frames.length?e.frames.length:0,r=this.props.frames&&this.props.frames.length?this.props.frames.length:0,n=!(e.layout===this.props.layout&&e.data===this.props.data&&e.config===this.props.config&&r===t),a=void 0!==e.revision,i=e.revision!==this.props.revision;(n||a&&(!a||i))&&this.updatePlotly(!1,this.props.onUpdate,!1)}},{key:"componentWillUnmount",value:function(){this.unmounting=!0,this.figureCallback(this.props.onPurge),this.resizeHandler&&h&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),this.removeUpdateEvents(),e.purge(this.el)}},{key:"attachUpdateEvents",value:function(){var e=this;this.el&&this.el.removeListener&&p.forEach((function(t){e.el.on(t,e.handleUpdate)}))}},{key:"removeUpdateEvents",value:function(){var e=this;this.el&&this.el.removeListener&&p.forEach((function(t){e.el.removeListener(t,e.handleUpdate)}))}},{key:"handleUpdate",value:function(){this.figureCallback(this.props.onUpdate)}},{key:"figureCallback",value:function(e){if("function"==typeof e){var t=this.el;e({data:t.data,layout:t.layout,frames:this.el._transitionData?this.el._transitionData._frames:null},this.el)}}},{key:"syncWindowResize",value:function(t){var r=this;h&&(this.props.useResizeHandler&&!this.resizeHandler?(this.resizeHandler=function(){return e.Plots.resize(r.el)},window.addEventListener("resize",this.resizeHandler),t&&this.resizeHandler()):!this.props.useResizeHandler&&this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null))}},{key:"getRef",value:function(e){this.el=e,this.props.debug&&h&&(window.gd=this.el)}},{key:"syncEventHandlers",value:function(){var e=this;d.forEach((function(t){var r=e.props["on"+t],n=e.handlers[t],a=Boolean(n);r&&!a?e.addEventHandler(t,r):!r&&a?e.removeEventHandler(t):r&&a&&r!==n&&(e.removeEventHandler(t),e.addEventHandler(t,r))}))}},{key:"addEventHandler",value:function(e,t){this.handlers[e]=t,this.el.on(this.getPlotlyEventName(e),this.handlers[e])}},{key:"removeEventHandler",value:function(e){this.el.removeListener(this.getPlotlyEventName(e),this.handlers[e]),delete this.handlers[e]}},{key:"getPlotlyEventName",value:function(e){return"plotly_"+e.toLowerCase()}},{key:"render",value:function(){return a.default.createElement("div",{id:this.props.divId,style:this.props.style,ref:this.getRef,className:this.props.className})}}])&&s(i.prototype,o),y}(a.Component);return t.propTypes={data:i.default.arrayOf(i.default.object),config:i.default.object,layout:i.default.object,frames:i.default.arrayOf(i.default.object),revision:i.default.number,onInitialized:i.default.func,onPurge:i.default.func,onError:i.default.func,onUpdate:i.default.func,debug:i.default.bool,style:i.default.object,className:i.default.string,useResizeHandler:i.default.bool,divId:i.default.string},d.forEach((function(e){t.propTypes["on"+e]=i.default.func})),t.defaultProps={debug:!1,useResizeHandler:!1,data:[],style:{position:"relative",display:"inline-block"}},t};var n,a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==l(e)&&"function"!=typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var i=n?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}return r.default=e,t&&t.set(e,r),r}(r(124852)),i=(n=r(675263))&&n.__esModule?n:{default:n};function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function s(e,t){for(var r=0;r{var r={"./cesium/plugins/index":[109578,9,76180,9578],"./leaflet/index":[408097,9,45243,55215,93991,61715],"./leaflet/plugins/index":[935701,7,45243,41263,35701],"./openlayers/index":[39190,9,58493,52043,40353,47202,69141,74738,97892,10027,38920,61332,11704,72445,78471,66920,44496,93546,49005,17919],"./openlayers/plugins/index":[103498,9,58493,52043,40353,47202,69141,74738,97892,10027,76932,65604,85986,93546,3498,85886],"./popups/index":[821751,9,96259,24226,74211]};function o(e){if(!n.o(r,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],o=t[0];return Promise.all(t.slice(2).map(n.e)).then((()=>n.t(o,16|t[1])))}o.keys=()=>Object.keys(r),o.id=740026,e.exports=o},862769:(e,t,n)=>{var r={"./cesium/plugins/index":[109578,9,76180,9578,45992],"./leaflet/plugins/index":[935701,7,45243,41263,35701,34344],"./openlayers/plugins/index":[103498,9,18672,58493,52043,40353,47202,69141,74738,97892,49232,10027,76932,65604,85986,13581,93546,3498,77545]};function o(e){if(!n.o(r,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],o=t[0];return Promise.all(t.slice(2).map(n.e)).then((()=>n.t(o,16|t[1])))}o.keys=()=>Object.keys(r),o.id=862769,e.exports=o},875964:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(618446),o=n.n(r),i=n(675263),a=n.n(i),l=n(124852),c=n.n(l),u=n(480681),p=n(552259);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function f(e,t){for(var n=0;n=e.props.minZoom}))})),e}return t=l,(n=[{key:"shouldComponentUpdate",value:function(e){return!o()(e,this.props)}},{key:"render",value:function(){var e;return e=this.props.readOnly?c().createElement("label",null,this.props.template(this.props.scales[this.props.currentZoomLvl],this.props.currentZoomLvl)):this.props.useRawInput?c().createElement("select",{label:this.props.label,onChange:this.onComboChange,bsSize:"small",value:this.props.currentZoomLvl||""},this.getOptions()):c().createElement(u.Form,{inline:!0},c().createElement(u.FormGroup,{bsSize:"small"},c().createElement(u.ControlLabel,null,this.props.label),c().createElement(u.FormControl,{componentClass:"select",onChange:this.onComboChange,value:this.props.currentZoomLvl||""},this.getOptions()))),c().createElement("div",{id:this.props.id,style:this.props.style},e)}}])&&f(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(c().Component);d(g,"propTypes",{id:a().string,style:a().object,scales:a().array,currentZoomLvl:a().number,minZoom:a().number,onChange:a().func,readOnly:a().bool,label:a().oneOfType([a().func,a().string,a().object]),template:a().func,useRawInput:a().bool}),d(g,"defaultProps",{id:"mapstore-scalebox",scales:(0,p.getGoogleMercatorScales)(0,28),currentZoomLvl:0,minZoom:0,onChange:function(){},readOnly:!1,template:function(e){return e<1?Math.round(1/e)+" : 1":"1 : "+Math.round(e)},useRawInput:!1});const h=g},38560:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(480681),o=n(124852),i=n.n(o),a=n(294184),l=n.n(a),c=["disabled","className","onClick"];function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,c);return i().createElement(s,u({ref:t,className:n?l()("disabled",r):r,onClick:function(){n||a.apply(void 0,arguments)}},p),p.children)})));var s},587401:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(675263),o=n.n(r),i=n(124852),a=n.n(i),l=n(480681);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){for(var n=0;n{"use strict";n.d(t,{Z:()=>d});var r=n(675263),o=n.n(r),i=n(124852),a=n.n(i),l=n(480681);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){for(var n=0;n{"use strict";n.d(t,{W:()=>m});var r=n(124852),o=n.n(r),i=n(675263),a=n.n(i),l=n(322843),c=n(86638),u=n(496829),p=n(227361),s=n.n(p);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var m=function(e,t){var n=e.spec,i=e.property,a=e.label,p=e.onChangeParameter,m=e.enabled,b=void 0===m||m,d=e.actions,v=e.path,g=void 0===v?"params.":v,h=e.additionalProperty,O=void 0===h||h,P=g+i;return(0,r.useEffect)((function(){var e;O&&(null==d||d.addParameter(i,null!==(e=s()(n,P))&&void 0!==e&&e))}),[]),(0,l.CU)({},function(e){for(var t=1;t{"use strict";n.r(t),n.d(t,{OutputFormat:()=>v,default:()=>g});var r=n(124852),o=n.n(r),i=n(675263),a=n.n(i),l=n(322843),c=n(171703),u=n(986069),p=n(86638),s=n(587401),f=n(134049),y=n(145959);function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t{"use strict";n.r(t),n.d(t,{projectionSelector:()=>h,Projection:()=>P,default:()=>j});var r=n(124852),o=n.n(r),i=n(675263),a=n.n(i),l=n(171703),c=n(322843),u=n(134049),p=n(986069),s=n(145959),f=n(587401),y=n(86638),m=n(552259),b=n(986267);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t{"use strict";n.r(t),n.d(t,{TextInput:()=>b,default:()=>d});var r=n(124852),o=n.n(r),i=n(675263),a=n.n(i),l=n(171703),c=n(322843),u=n(86638),p=n(986069),s=n(480681),f=n(227361),y=n.n(f);function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t{"use strict";n.r(t),n.d(t,{AdditionalLayers:()=>ct,DefaultBackgrounOption:()=>lt,Description:()=>et,Layout:()=>rt,LegendOptions:()=>ot,MapPreview:()=>at,Name:()=>Ye,OutputFormat:()=>tt,PrintPreview:()=>pt,PrintSubmit:()=>ut,Projection:()=>nt,Resolution:()=>it,default:()=>ft,standardItems:()=>st});var r=n(171703),o=n(782904),i=n(986069),a=n(737275),l=n(986267),c=n(747812),u=n(832395),p=n(124852),s=n.n(p),f=n(322843),y=n(480681),m=n(472986),b=n.n(m),d=n(805346);function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&-1===t.indexOf(r[r.length-1])&&t.concat([r[r.length-1]])||t}),[]).map((function(t){return{name:e.getLayoutName(t),value:t}}))})),e}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=(e.children,e.sheetRegex,e.layouts,function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,T));return s().createElement(x.Z,F({},t,{items:this.getSheetFormats()}))}}])&&L(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(s().Component);I($,"propTypes",{layouts:S().array,sheetRegex:S().oneOfType([S().object,S().string]),label:S().string,onChange:S().func,selected:S().string,layoutNames:S().oneOfType([S().object,S().func])}),I($,"defaultProps",{layouts:[],sheetRegex:/^[^_]+/,label:"Sheet Size",onChange:function(){},selected:""});const A=$;function B(e){return B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},B(e)}function M(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Ze),g=f.scales.slice(0).reverse().map((function(e){return parseFloat(e.value)}))||[];return b.valid?s().createElement(ze,De({},v,{map:p,layers:null!==(t=null==p?void 0:p.layers)&&void 0!==t?t:[],scales:g,width:n.width,height:n.height,mapType:u,onMapRefresh:y,layout:o,layoutSize:r&&r.map||{width:10,height:10},resolutions:i,useFixedScales:a,env:l},c)):s().createElement("div",{id:"map-preview-disabled-message"},s().createElement(d.Z,{msgId:"print.disabledpreview"}))};Ie.contextTypes={messages:S().object};var Ne=n(466756);function $e(e){return $e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$e(e)}function Ae(e,t){for(var n=0;n0&&e.props.setPage(0)})),Ue(Me(e),"lastPage",(function(){e.props.currentPage0&&e.props.setPage(e.props.currentPage-1)})),Ue(Me(e),"nextPage",(function(){e.props.currentPage=this.props.maxScale,onClick:this.zoomIn},s().createElement(y.Glyphicon,{glyph:"zoom-in"})),s().createElement(ee.Z,{bsStyle:this.props.buttonStyle,disabled:this.props.scale<=this.props.minScale,onClick:this.zoomOut},s().createElement(y.Glyphicon,{glyph:"zoom-out"})),s().createElement("label",{style:{marginLeft:"10px",marginRight:"10px"}},this.props.scale,"x"),s().createElement("div",{className:"print-download btn btn-"+this.props.buttonStyle},s().createElement("a",{href:this.props.downloadUrl,target:"_blank"},s().createElement(y.Glyphicon,{glyph:"save"}))),s().createElement(ee.Z,{bsStyle:this.props.buttonStyle,disabled:0===this.props.currentPage,onClick:this.firstPage},s().createElement(y.Glyphicon,{glyph:"step-backward"})),s().createElement(ee.Z,{bsStyle:this.props.buttonStyle,disabled:0===this.props.currentPage,onClick:this.prevPage},s().createElement(y.Glyphicon,{glyph:"chevron-left"})),s().createElement("label",{style:{marginLeft:"10px",marginRight:"10px"}},this.props.currentPage+1," / ",this.props.pages),s().createElement(ee.Z,{bsStyle:this.props.buttonStyle,disabled:this.props.currentPage===this.props.pages-1,onClick:this.nextPage},s().createElement(y.Glyphicon,{glyph:"chevron-right"})),s().createElement(ee.Z,{bsStyle:this.props.buttonStyle,disabled:this.props.currentPage===this.props.pages-1,onClick:this.lastPage},s().createElement(y.Glyphicon,{glyph:"step-forward"}))))}}])&&Ae(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(s().Component);Ue(We,"propTypes",{url:S().string,downloadUrl:S().string,scale:S().number,currentPage:S().number,pages:S().number,zoomFactor:S().number,minScale:S().number,maxScale:S().number,back:S().func,setScale:S().func,setPage:S().func,setPages:S().func,style:S().object,buttonStyle:S().string}),Ue(We,"defaultProps",{url:null,downloadUrl:null,scale:1,minScale:.25,maxScale:8,currentPage:0,pages:1,zoomFactor:2,back:function(){},setScale:function(){},setPage:function(){},setPages:function(){},style:{height:"500px",width:"800px",overflow:"auto",backgroundColor:"#888",padding:"10px"},buttonStyle:"default"});const Xe=We;var qe=["outputFormat"];function He(){return He=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=c,onClick:function(){v((function(e){return e+1}))}},s().createElement(y.Glyphicon,{glyph:"zoom-in"})),s().createElement(y.Button,{bsStyle:i,disabled:!g||b<=1,onClick:function(){v((function(e){return e-1}))}},s().createElement(y.Glyphicon,{glyph:"zoom-out"})),s().createElement("label",{style:{marginLeft:"10px",marginRight:"10px"}},b,"x"),s().createElement("div",{className:"print-download btn btn-"+i},s().createElement("a",{href:r,target:"_blank"},s().createElement(y.Glyphicon,{glyph:"save"})))))},Ye=(0,r.connect)((function(e){var t;return{spec:(null===(t=e.print)||void 0===t?void 0:t.spec)||{},additionalProperty:!1,property:"name",path:"",type:"text",label:"print.title",placeholder:"print.titleplaceholder"}}),{onChangeParameter:i.d$})(c.TextInput),et=(0,r.connect)((function(e){var t;return{spec:(null===(t=e.print)||void 0===t?void 0:t.spec)||{},additionalProperty:!1,property:"description",path:"",type:"textarea",label:"print.description",placeholder:"print.descriptionplaceholder"}}),{onChangeParameter:i.d$})(c.TextInput),tt=(0,r.connect)((function(e){var t,n,r,o,i;return{spec:(null==e||null===(t=e.print)||void 0===t?void 0:t.spec)||{},items:null!==(n=null==e||null===(r=e.print)||void 0===r||null===(o=r.capabilities)||void 0===o||null===(i=o.outputFormats)||void 0===i?void 0:i.map((function(e){return{name:e.name,value:e.name}})))&&void 0!==n?n:[{name:"PDF",value:"pdf"}]}}),{onChangeParameter:i.d$})(P.OutputFormat),nt=(0,r.connect)((function(e){var t,n;return{spec:(null==e||null===(t=e.print)||void 0===t?void 0:t.spec)||{},map:null==e||null===(n=e.print)||void 0===n?void 0:n.map,projection:(0,j.projectionSelector)(e),items:Object.keys((0,l.getAvailableCRS)()).map((function(e){return{name:e,value:e}}))}}),{onChangeParameter:i.d$})(j.Projection),rt=(0,r.connect)((function(e){var t,n,r;return{spec:(null===(t=e.print)||void 0===t?void 0:t.spec)||{},layouts:(null==e||null===(n=e.print)||void 0===n||null===(r=n.capabilities)||void 0===r?void 0:r.layouts)||[]}}),{onChangeParameter:i.d$})(Y),ot=(0,r.connect)((function(e){var t;return{spec:(null===(t=e.print)||void 0===t?void 0:t.spec)||{}}}),{onChangeParameter:i.d$})(se),it=(0,r.connect)((function(e){var t,n,r,o,i;return{spec:(null===(t=e.print)||void 0===t?void 0:t.spec)||{},items:null!==(n=null==e||null===(r=e.print)||void 0===r||null===(o=r.capabilities)||void 0===o||null===(i=o.dpis)||void 0===i?void 0:i.map((function(e){return{name:e.name+" dpi",value:e.value}})))&&void 0!==n?n:[]}}),{onChangeParameter:i.d$})(fe),at=(0,r.connect)((function(e){var t,n;return{capabilities:null!==(t=null===(n=e.print)||void 0===n?void 0:n.capabilities)&&void 0!==t?t:{}}}),{onChangeZoomLevel:i.pQ,onMapViewChanges:i.z})(Ie),lt=(0,r.connect)((function(e){var t;return{spec:(null==e||null===(t=e.print)||void 0===t?void 0:t.spec)||{},enabled:"context.notAllowedLayers",path:"",property:"defaultBackground",additionalProperty:!1,label:"print.defaultBackground"}}),{onChangeParameter:i.d$})(u.W),ct=(0,r.connect)((function(e){var t;return{spec:(null===(t=e.print)||void 0===t?void 0:t.spec)||{},path:"",property:"additionalLayers",additionalProperty:!1,label:"print.additionalLayers"}}),{onChangeParameter:i.d$})(u.W),ut=(0,r.connect)((function(e){var t;return{spec:(null==e||null===(t=e.print)||void 0===t?void 0:t.spec)||{},loading:e.print&&e.print.isLoading||!1,text:"print.submit",action:"print",enabled:"context.layout",className:"print-submit"}}))(O),pt=(0,r.connect)((function(e){var t,n,r,o,i;return{url:e.print&&a.ZP.getProxiedUrl(e.print.pdfUrl),downloadUrl:e.print&&e.print.pdfUrl,scale:e.controls&&e.controls.print&&e.controls.print.viewScale||.5,currentPage:e.controls&&e.controls.print&&e.controls.print.currentPage||0,pages:e.controls&&e.controls.print&&e.controls.print.pages||1,additionalLayers:null!==(t=null===(n=e.print)||void 0===n||null===(r=n.spec)||void 0===r?void 0:r.additionalLayers)&&void 0!==t&&t,outputFormat:(null===(o=e.print)||void 0===o||null===(i=o.spec)||void 0===i?void 0:i.outputFormat)||"pdf"}}),{back:i._4,setPage:o.Xg.bind(null,"print","currentPage"),setPages:o.Xg.bind(null,"print","pages"),setScale:o.Xg.bind(null,"print","viewScale")})((function(e){var t=e.outputFormat,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,qe);return"pdf"===t?s().createElement(Xe,n):s().createElement(Ke,He({format:t},n))})),st={"left-panel":[{id:"name",plugin:Ye,cfg:{},position:1},{id:"description",plugin:et,cfg:{},position:2},{id:"outputFormat",plugin:tt,cfg:{allowedFormats:[{name:"PDF",value:"pdf"},{name:"PNG",value:"png"},{name:"JPEG",value:"jpg"}]},position:3},{id:"projection",plugin:nt,cfg:{allowPreview:!0,projections:[{name:"EPSG:3857",value:"EPSG:3857"},{name:"EPSG:4326",value:"EPSG:4326"}]},position:4},{id:"overlayLayers",plugin:ct,cfg:{enabled:!1},position:5}],"left-panel-accordion":[{id:"layout",plugin:rt,cfg:{title:"print.layout"},position:1},{id:"legend-options",plugin:ot,cfg:{title:"print.legendoptions"},position:2}],"right-panel":[{id:"resolution",plugin:it,cfg:{},position:1},{id:"map-preview",plugin:at,cfg:{},position:2},{id:"default-background-ignore",plugin:lt,cfg:{},position:3}],buttons:[{id:"submit",plugin:ut,cfg:{},position:1}],"preview-panel":[{id:"printpreview",plugin:pt,cfg:{},position:1}]};const ft={standardItems:st}},212993:()=>{},558618:()=>{},200120:()=>{},945804:()=>{}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/47316.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/47316.affd309bf2aa3f38d3a0.chunk.js deleted file mode 100644 index 4c9bfe235b..0000000000 --- a/geonode_mapstore_client/static/mapstore/dist/js/47316.affd309bf2aa3f38d3a0.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[47316,77236],{740026:(e,t,n)=>{var r={"./cesium/plugins/index":[109578,9,76180,9578],"./leaflet/index":[408097,9,45243,55215,93991,61715],"./leaflet/plugins/index":[935701,7,45243,41263,35701],"./openlayers/index":[39190,9,58493,52043,40353,47202,69141,74738,97892,10027,38920,61332,11704,72445,78471,66920,44496,93546,49005,17919],"./openlayers/plugins/index":[103498,9,58493,52043,40353,47202,69141,74738,97892,10027,76932,65604,85986,93546,3498,85886],"./popups/index":[821751,9,96259,24226,74211]};function o(e){if(!n.o(r,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],o=t[0];return Promise.all(t.slice(2).map(n.e)).then((()=>n.t(o,16|t[1])))}o.keys=()=>Object.keys(r),o.id=740026,e.exports=o},862769:(e,t,n)=>{var r={"./cesium/plugins/index":[109578,9,76180,9578,45992],"./leaflet/plugins/index":[935701,7,45243,41263,35701,34344],"./openlayers/plugins/index":[103498,9,18672,58493,52043,40353,47202,69141,74738,97892,49232,10027,76932,65604,85986,13581,93546,3498,77545]};function o(e){if(!n.o(r,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],o=t[0];return Promise.all(t.slice(2).map(n.e)).then((()=>n.t(o,16|t[1])))}o.keys=()=>Object.keys(r),o.id=862769,e.exports=o},875964:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(618446),o=n.n(r),i=n(675263),a=n.n(i),l=n(124852),c=n.n(l),u=n(480681),p=n(552259);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function f(e,t){for(var n=0;n=e.props.minZoom}))})),e}return t=l,(n=[{key:"shouldComponentUpdate",value:function(e){return!o()(e,this.props)}},{key:"render",value:function(){var e;return e=this.props.readOnly?c().createElement("label",null,this.props.template(this.props.scales[this.props.currentZoomLvl],this.props.currentZoomLvl)):this.props.useRawInput?c().createElement("select",{label:this.props.label,onChange:this.onComboChange,bsSize:"small",value:this.props.currentZoomLvl||""},this.getOptions()):c().createElement(u.Form,{inline:!0},c().createElement(u.FormGroup,{bsSize:"small"},c().createElement(u.ControlLabel,null,this.props.label),c().createElement(u.FormControl,{componentClass:"select",onChange:this.onComboChange,value:this.props.currentZoomLvl||""},this.getOptions()))),c().createElement("div",{id:this.props.id,style:this.props.style},e)}}])&&f(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(c().Component);d(g,"propTypes",{id:a().string,style:a().object,scales:a().array,currentZoomLvl:a().number,minZoom:a().number,onChange:a().func,readOnly:a().bool,label:a().oneOfType([a().func,a().string,a().object]),template:a().func,useRawInput:a().bool}),d(g,"defaultProps",{id:"mapstore-scalebox",scales:(0,p.getGoogleMercatorScales)(0,28),currentZoomLvl:0,minZoom:0,onChange:function(){},readOnly:!1,template:function(e){return e<1?Math.round(1/e)+" : 1":"1 : "+Math.round(e)},useRawInput:!1});const h=g},38560:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(480681),o=n(124852),i=n.n(o),a=n(294184),l=n.n(a),c=["disabled","className","onClick"];function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,c);return i().createElement(s,u({ref:t,className:n?l()("disabled",r):r,onClick:function(){n||a.apply(void 0,arguments)}},p),p.children)})));var s},587401:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(675263),o=n.n(r),i=n(124852),a=n.n(i),l=n(480681);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){for(var n=0;n{"use strict";n.d(t,{Z:()=>d});var r=n(675263),o=n.n(r),i=n(124852),a=n.n(i),l=n(480681);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){for(var n=0;n{"use strict";n.d(t,{W:()=>b});var r=n(124852),o=n.n(r),i=n(675263),a=n.n(i),l=n(322843),c=n(86638),u=n(496829),p=n(227361),s=n.n(p);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==f(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===f(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=function(e,t){var n=e.spec,i=e.property,a=e.label,p=e.onChangeParameter,f=e.enabled,b=void 0===f||f,d=e.actions,v=e.path,g=void 0===v?"params.":v,h=e.additionalProperty,O=void 0===h||h,P=g+i;return(0,r.useEffect)((function(){var e;O&&(null==d||d.addParameter(i,null!==(e=s()(n,P))&&void 0!==e&&e))}),[]),(0,l.CU)({},function(e){for(var t=1;t{"use strict";n.r(t),n.d(t,{OutputFormat:()=>g,default:()=>h});var r=n(124852),o=n.n(r),i=n(675263),a=n.n(i),l=n(322843),c=n(171703),u=n(986069),p=n(86638),s=n(587401),f=n(134049),y=n(145959);function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t{"use strict";n.r(t),n.d(t,{projectionSelector:()=>O,Projection:()=>j,default:()=>w});var r=n(124852),o=n.n(r),i=n(675263),a=n.n(i),l=n(171703),c=n(322843),u=n(134049),p=n(986069),s=n(145959),f=n(587401),y=n(86638),m=n(552259),b=n(986267);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t{"use strict";n.r(t),n.d(t,{TextInput:()=>b,default:()=>d});var r=n(124852),o=n.n(r),i=n(675263),a=n.n(i),l=n(171703),c=n(322843),u=n(86638),p=n(986069),s=n(480681),f=n(227361),y=n.n(f);function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t{"use strict";n.r(t),n.d(t,{AdditionalLayers:()=>ut,DefaultBackgrounOption:()=>ct,Description:()=>tt,Layout:()=>ot,LegendOptions:()=>it,MapPreview:()=>lt,Name:()=>et,OutputFormat:()=>nt,PrintPreview:()=>st,PrintSubmit:()=>pt,Projection:()=>rt,Resolution:()=>at,default:()=>yt,standardItems:()=>ft});var r=n(171703),o=n(782904),i=n(986069),a=n(737275),l=n(986267),c=n(747812),u=n(832395),p=n(124852),s=n.n(p),f=n(322843),y=n(480681),m=n(472986),b=n.n(m),d=n(805346);function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&-1===t.indexOf(r[r.length-1])&&t.concat([r[r.length-1]])||t}),[]).map((function(t){return{name:e.getLayoutName(t),value:t}}))})),e}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=(e.children,e.sheetRegex,e.layouts,function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,_));return s().createElement(R.Z,L({},t,{items:this.getSheetFormats()}))}}])&&z(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(s().Component);N(A,"propTypes",{layouts:E().array,sheetRegex:E().oneOfType([E().object,E().string]),label:E().string,onChange:E().func,selected:E().string,layoutNames:E().oneOfType([E().object,E().func])}),N(A,"defaultProps",{layouts:[],sheetRegex:/^[^_]+/,label:"Sheet Size",onChange:function(){},selected:""});const B=A;function M(e){return M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},M(e)}function G(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,De),g=f.scales.slice(0).reverse().map((function(e){return parseFloat(e.value)}))||[];return b.valid?s().createElement(Ze,Ie({},v,{map:p,layers:null!==(t=null==p?void 0:p.layers)&&void 0!==t?t:[],scales:g,width:n.width,height:n.height,mapType:u,onMapRefresh:y,layout:o,layoutSize:r&&r.map||{width:10,height:10},resolutions:i,useFixedScales:a,env:l},c)):s().createElement("div",{id:"map-preview-disabled-message"},s().createElement(d.Z,{msgId:"print.disabledpreview"}))};Ne.contextTypes={messages:E().object};var $e=n(466756);function Ae(e){return Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ae(e)}function Be(e,t){for(var n=0;n0&&e.props.setPage(0)})),Ve(Ge(e),"lastPage",(function(){e.props.currentPage0&&e.props.setPage(e.props.currentPage-1)})),Ve(Ge(e),"nextPage",(function(){e.props.currentPage=this.props.maxScale,onClick:this.zoomIn},s().createElement(y.Glyphicon,{glyph:"zoom-in"})),s().createElement(te.Z,{bsStyle:this.props.buttonStyle,disabled:this.props.scale<=this.props.minScale,onClick:this.zoomOut},s().createElement(y.Glyphicon,{glyph:"zoom-out"})),s().createElement("label",{style:{marginLeft:"10px",marginRight:"10px"}},this.props.scale,"x"),s().createElement("div",{className:"print-download btn btn-"+this.props.buttonStyle},s().createElement("a",{href:this.props.downloadUrl,target:"_blank"},s().createElement(y.Glyphicon,{glyph:"save"}))),s().createElement(te.Z,{bsStyle:this.props.buttonStyle,disabled:0===this.props.currentPage,onClick:this.firstPage},s().createElement(y.Glyphicon,{glyph:"step-backward"})),s().createElement(te.Z,{bsStyle:this.props.buttonStyle,disabled:0===this.props.currentPage,onClick:this.prevPage},s().createElement(y.Glyphicon,{glyph:"chevron-left"})),s().createElement("label",{style:{marginLeft:"10px",marginRight:"10px"}},this.props.currentPage+1," / ",this.props.pages),s().createElement(te.Z,{bsStyle:this.props.buttonStyle,disabled:this.props.currentPage===this.props.pages-1,onClick:this.nextPage},s().createElement(y.Glyphicon,{glyph:"chevron-right"})),s().createElement(te.Z,{bsStyle:this.props.buttonStyle,disabled:this.props.currentPage===this.props.pages-1,onClick:this.lastPage},s().createElement(y.Glyphicon,{glyph:"step-forward"}))))}}])&&Be(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(s().Component);Ve(Xe,"propTypes",{url:E().string,downloadUrl:E().string,scale:E().number,currentPage:E().number,pages:E().number,zoomFactor:E().number,minScale:E().number,maxScale:E().number,back:E().func,setScale:E().func,setPage:E().func,setPages:E().func,style:E().object,buttonStyle:E().string}),Ve(Xe,"defaultProps",{url:null,downloadUrl:null,scale:1,minScale:.25,maxScale:8,currentPage:0,pages:1,zoomFactor:2,back:function(){},setScale:function(){},setPage:function(){},setPages:function(){},style:{height:"500px",width:"800px",overflow:"auto",backgroundColor:"#888",padding:"10px"},buttonStyle:"default"});const qe=Xe;var He=["outputFormat"];function Je(){return Je=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=c,onClick:function(){v((function(e){return e+1}))}},s().createElement(y.Glyphicon,{glyph:"zoom-in"})),s().createElement(y.Button,{bsStyle:i,disabled:!g||b<=1,onClick:function(){v((function(e){return e-1}))}},s().createElement(y.Glyphicon,{glyph:"zoom-out"})),s().createElement("label",{style:{marginLeft:"10px",marginRight:"10px"}},b,"x"),s().createElement("div",{className:"print-download btn btn-"+i},s().createElement("a",{href:r,target:"_blank"},s().createElement(y.Glyphicon,{glyph:"save"})))))},et=(0,r.connect)((function(e){var t;return{spec:(null===(t=e.print)||void 0===t?void 0:t.spec)||{},additionalProperty:!1,property:"name",path:"",type:"text",label:"print.title",placeholder:"print.titleplaceholder"}}),{onChangeParameter:i.d$})(c.TextInput),tt=(0,r.connect)((function(e){var t;return{spec:(null===(t=e.print)||void 0===t?void 0:t.spec)||{},additionalProperty:!1,property:"description",path:"",type:"textarea",label:"print.description",placeholder:"print.descriptionplaceholder"}}),{onChangeParameter:i.d$})(c.TextInput),nt=(0,r.connect)((function(e){var t,n,r,o,i;return{spec:(null==e||null===(t=e.print)||void 0===t?void 0:t.spec)||{},items:null!==(n=null==e||null===(r=e.print)||void 0===r||null===(o=r.capabilities)||void 0===o||null===(i=o.outputFormats)||void 0===i?void 0:i.map((function(e){return{name:e.name,value:e.name}})))&&void 0!==n?n:[{name:"PDF",value:"pdf"}]}}),{onChangeParameter:i.d$})(j.OutputFormat),rt=(0,r.connect)((function(e){var t,n;return{spec:(null==e||null===(t=e.print)||void 0===t?void 0:t.spec)||{},map:null==e||null===(n=e.print)||void 0===n?void 0:n.map,projection:(0,w.projectionSelector)(e),items:Object.keys((0,l.getAvailableCRS)()).map((function(e){return{name:e,value:e}}))}}),{onChangeParameter:i.d$})(w.Projection),ot=(0,r.connect)((function(e){var t,n,r;return{spec:(null===(t=e.print)||void 0===t?void 0:t.spec)||{},layouts:(null==e||null===(n=e.print)||void 0===n||null===(r=n.capabilities)||void 0===r?void 0:r.layouts)||[]}}),{onChangeParameter:i.d$})(ee),it=(0,r.connect)((function(e){var t;return{spec:(null===(t=e.print)||void 0===t?void 0:t.spec)||{}}}),{onChangeParameter:i.d$})(fe),at=(0,r.connect)((function(e){var t,n,r,o,i;return{spec:(null===(t=e.print)||void 0===t?void 0:t.spec)||{},items:null!==(n=null==e||null===(r=e.print)||void 0===r||null===(o=r.capabilities)||void 0===o||null===(i=o.dpis)||void 0===i?void 0:i.map((function(e){return{name:e.name+" dpi",value:e.value}})))&&void 0!==n?n:[]}}),{onChangeParameter:i.d$})(ye),lt=(0,r.connect)((function(e){var t,n;return{capabilities:null!==(t=null===(n=e.print)||void 0===n?void 0:n.capabilities)&&void 0!==t?t:{}}}),{onChangeZoomLevel:i.pQ,onMapViewChanges:i.z})(Ne),ct=(0,r.connect)((function(e){var t;return{spec:(null==e||null===(t=e.print)||void 0===t?void 0:t.spec)||{},enabled:"context.notAllowedLayers",path:"",property:"defaultBackground",additionalProperty:!1,label:"print.defaultBackground"}}),{onChangeParameter:i.d$})(u.W),ut=(0,r.connect)((function(e){var t;return{spec:(null===(t=e.print)||void 0===t?void 0:t.spec)||{},path:"",property:"additionalLayers",additionalProperty:!1,label:"print.additionalLayers"}}),{onChangeParameter:i.d$})(u.W),pt=(0,r.connect)((function(e){var t;return{spec:(null==e||null===(t=e.print)||void 0===t?void 0:t.spec)||{},loading:e.print&&e.print.isLoading||!1,text:"print.submit",action:"print",enabled:"context.layout",className:"print-submit"}}))(P),st=(0,r.connect)((function(e){var t,n,r,o,i;return{url:e.print&&a.ZP.getProxiedUrl(e.print.pdfUrl),downloadUrl:e.print&&e.print.pdfUrl,scale:e.controls&&e.controls.print&&e.controls.print.viewScale||.5,currentPage:e.controls&&e.controls.print&&e.controls.print.currentPage||0,pages:e.controls&&e.controls.print&&e.controls.print.pages||1,additionalLayers:null!==(t=null===(n=e.print)||void 0===n||null===(r=n.spec)||void 0===r?void 0:r.additionalLayers)&&void 0!==t&&t,outputFormat:(null===(o=e.print)||void 0===o||null===(i=o.spec)||void 0===i?void 0:i.outputFormat)||"pdf"}}),{back:i._4,setPage:o.Xg.bind(null,"print","currentPage"),setPages:o.Xg.bind(null,"print","pages"),setScale:o.Xg.bind(null,"print","viewScale")})((function(e){var t=e.outputFormat,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,He);return"pdf"===t?s().createElement(qe,n):s().createElement(Ye,Je({format:t},n))})),ft={"left-panel":[{id:"name",plugin:et,cfg:{},position:1},{id:"description",plugin:tt,cfg:{},position:2},{id:"outputFormat",plugin:nt,cfg:{allowedFormats:[{name:"PDF",value:"pdf"},{name:"PNG",value:"png"},{name:"JPEG",value:"jpg"}]},position:3},{id:"projection",plugin:rt,cfg:{allowPreview:!0,projections:[{name:"EPSG:3857",value:"EPSG:3857"},{name:"EPSG:4326",value:"EPSG:4326"}]},position:4},{id:"overlayLayers",plugin:ut,cfg:{enabled:!1},position:5}],"left-panel-accordion":[{id:"layout",plugin:ot,cfg:{title:"print.layout"},position:1},{id:"legend-options",plugin:it,cfg:{title:"print.legendoptions"},position:2}],"right-panel":[{id:"resolution",plugin:at,cfg:{},position:1},{id:"map-preview",plugin:lt,cfg:{},position:2},{id:"default-background-ignore",plugin:ct,cfg:{},position:3}],buttons:[{id:"submit",plugin:pt,cfg:{},position:1}],"preview-panel":[{id:"printpreview",plugin:st,cfg:{},position:1}]};const yt={standardItems:ft}},212993:()=>{},558618:()=>{},200120:()=>{},945804:()=>{}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/47492.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/47492.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/47492.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/47492.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/47547.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/47547.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/47547.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/47547.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/47553.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/47553.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/47553.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/47553.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/47617.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/47617.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/47617.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/47617.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/47693.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/47693.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/47693.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/47693.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/47778.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/47778.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/47778.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/47778.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/47811.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/47811.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/47811.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/47811.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/47847.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/47847.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/47847.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/47847.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/47929.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/47929.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/47929.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/47929.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/47970.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/47970.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/47970.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/47970.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/47980.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/47980.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/47980.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/47980.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/48013.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/48013.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/48013.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/48013.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/48018.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/48018.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/48018.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/48018.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/48241.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/48241.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/48241.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/48241.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/48408.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/48408.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/48408.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/48408.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/48475.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/48475.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/48475.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/48475.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/485.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/485.018dc26183efb561a8b1.chunk.js similarity index 88% rename from geonode_mapstore_client/static/mapstore/dist/js/485.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/485.018dc26183efb561a8b1.chunk.js index 12ce0623ef..6e500dfc81 100644 --- a/geonode_mapstore_client/static/mapstore/dist/js/485.affd309bf2aa3f38d3a0.chunk.js +++ b/geonode_mapstore_client/static/mapstore/dist/js/485.018dc26183efb561a8b1.chunk.js @@ -1 +1 @@ -(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[485],{830029:(e,t,r)=>{"use strict";r.d(t,{Z:()=>h});var n=r(124852),o=r.n(n),a=r(675263),i=r.n(a),l=r(805346);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(e,t){for(var r=0;r{"use strict";r.d(t,{Q:()=>we});var n=r(867076),o=r(124852),a=r.n(o),i=r(675263),l=r.n(i),u=r(868195),c=r(730381),s=r.n(c),p=r(200020),f=r(93054),d=r.n(f),y=r(480681),b=r(647960),m=r.n(b),v=r(950966);function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function g(e,t){for(var r=0;r-1&&e.setState({focusedItemIndex:u})}})),S(O(e),"scrollDown",(function(t){var r=e.itemsRef[t];r&&r.offsetTop>e.listRef.offsetHeight&&(e.listRef.scrollTop=r.offsetTop-e.listRef.offsetTop)})),S(O(e),"scrollUp",(function(t){var r=e.itemsRef[t];if(r){var n=e.listRef.scrollTop,o=r.offsetTop;n&&o|<=|>=|===|==|=|<|>)?(.*)/.exec(r);e.setState({inputValue:n[2],operator:n[1]||""}),e.inputFlush=!0})),V(I(e),"handleCalendarChange",(function(t){var r=F(t,new Date),n=e.format(r);e.setState({date:r,inputValue:n,open:""}),e.props.onChange(r,"".concat(e.state.operator).concat(n))})),V(I(e),"handleTimeSelect",(function(t){var r=e.state.date||new Date,n=F(r,t.date),o=e.format(n);e.setState({date:n,inputValue:o,open:""}),e.props.onChange(n,"".concat(e.state.operator).concat(o))})),V(I(e),"attachTimeRef",(function(t){return e.timeRef=t})),V(I(e),"attachCalRef",(function(t){return e.calRef=t})),e}return t=l,(r=[{key:"componentDidMount",value:function(){var e=this.props,t=e.value,r=e.operator;this.setDateFromValueProp(t,r)}},{key:"componentDidUpdate",value:function(e){if(e.value!==this.props.value||e.operator!==this.props.operator){var t=this.props,r=t.value,n=t.operator;this.setDateFromValueProp(r,n)}}},{key:"render",value:function(){var e=this,t=this.state,r=t.open,n=t.inputValue,o=t.operator,i=t.focused,l=this.props,u=l.calendar,c=l.time,s=l.toolTip,f=l.placeholder,d=l.tabIndex,y=Object.keys(this.props).reduce((function(t,r){return["placeholder","calendar","time","onChange","value"].includes(r)||(t[r]=e.props[r]),t}),{}),b="date"===r,m="time"===r;return a().createElement("div",{tabIndex:"-1",onKeyDown:this.handleKeyDown,onBlur:this.handleWidgetBlur,onFocus:this.handleWidgetFocus,className:"rw-datetimepicker rw-widget ".concat(u&&c?"rw-has-both":""," ").concat(u||c?"":"rw-has-neither"," ").concat(i?"rw-state-focus":"")},this.renderInput(n,o,s,f,d,b,m),u||c?a().createElement("span",{className:"rw-select"},u?a().createElement("button",{tabIndex:"-1",title:"Select Date",type:"button","aria-disabled":"false","aria-label":"Select Date",className:"rw-btn-calendar rw-btn",onClick:this.toggleCalendar},a().createElement("span",{"aria-hidden":"true",className:"rw-i rw-i-calendar"})):"",c?a().createElement("button",{tabIndex:"-1",title:"Select Time",type:"button","aria-disabled":"false","aria-label":"Select Time",className:"rw-btn-time rw-btn",onClick:this.toggleTime},a().createElement("span",{"aria-hidden":"true",className:"rw-i rw-i-clock-o"})):""):"",a().createElement("div",{className:"rw-popup-container rw-popup-animating",style:{display:m?"block":"none",overflow:m?"visible":"hidden",height:"216px"}},a().createElement("div",{className:"rw-popup rw-widget",style:{transform:m?"translateY(0)":"translateY(-100%)",position:m?"":"absolute"}},a().createElement(T,D({ref:this.attachTimeRef,onMouseDown:this.handleMouseDown},y,{onClose:this.close,onSelect:this.handleTimeSelect})))),a().createElement("div",{className:"rw-calendar-popup rw-popup-container ".concat(b?"":"rw-popup-animating"),style:{display:b?"block":"none",overflow:b?"visible":"hidden",height:"375px"}},a().createElement("div",{className:"rw-popup",style:{transform:b?"translateY(0)":"translateY(-100%)",padding:"0",borderRadius:"4px",position:b?"":"absolute"}},a().createElement(p.Calendar,D({tabIndex:"-1",ref:this.attachCalRef,onMouseDown:this.handleMouseDown,onChange:this.handleCalendarChange},y)))))}}])&&x(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(o.Component);V(U,"propTypes",{format:l().string,type:l().string,placeholder:l().string,onChange:l().func,calendar:l().bool,time:l().bool,value:l().any,operator:l().string,culture:l().string,toolTip:l().string,tabIndex:l().string}),V(U,"defaultProps",{placeholder:"Type date...",calendar:!0,time:!0,onChange:function(){},value:null});const Z=U;var A=r(86638),H=r(55237);function K(e){return K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},K(e)}function $(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{},r=t.value,n=t.attribute,o=t.stringValue,a=/\s*(!==|!=|<>|<=|>=|===|==|=|<|>)?(.*)/.exec(o),i=a[1],l=a[1]||"=";"!=="===i|"!="===i?l="<>":"==="===i|"=="===i&&(l="="),e.onValueChange(r),e.onChange({value:{startDate:r,operator:i},operator:l,type:e.type,attribute:n})}}}),(0,n.defaultProps)({placeholderMsgId:"featuregrid.filter.placeholders.date",tooltipMsgId:"featuregrid.filter.tooltips.date"}))(ie),ue=(0,n.compose)((0,n.defaultProps)({onValueChange:function(){}}),(0,n.withHandlers)({onChange:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.value,n=t.attribute;e.onValueChange(r),e.onChange({value:r,operator:"=",type:e.type,attribute:n})}}}))(X);var ce=r(805346);const se=function(e){var t=e.value,r=e.filterEnabled,n=void 0!==r&&r,o=e.filterDeactivated,i=void 0!==o&&o,l=e.column,u=void 0===l?{}:l,c=e.tooltipPlace,s=void 0===c?"top":c,p=e.tooltipDisabled,f=void 0===p?"featuregrid.filter.tooltips.geometry.disabled":p,d=e.tooltipEnabled,b=void 0===d?"featuregrid.filter.tooltips.geometry.enabled":d,m=e.tooltipApplied,h=void 0===m?"featuregrid.filter.tooltips.geometry.applied":m,g=e.onChange,w=void 0===g?function(){}:g,O=i?void 0:n&&t?h:n&&!t?b:f,P=a().createElement("div",{className:"featuregrid-geometry-filter".concat(n?" filter-enabled":"").concat(i?" filter-deactivated":""),onClick:i?function(){}:function(){w({enabled:!n,type:"geometry",attribute:u.geometryPropName})}},a().createElement(y.Glyphicon,{glyph:t?"remove-sign":"map-marker"}));return O?a().createElement(v.Z,{placement:s,overlay:a().createElement(y.Tooltip,{id:"gofull-tooltip"},a().createElement(ce.Z,{msgId:O}))},P):P};var pe=r(92742),fe=r.n(pe),de=r(406557),ye=r.n(de),be=r(196958),me=/\,/;const ve=(0,n.compose)((0,n.defaultProps)({onValueChange:function(){}}),(0,n.withState)("valid","setValid",!0),(0,n.withHandlers)({onChange:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.value,n=t.attribute;if(e.onValueChange(r),me.exec(r))if(/,\s*$/.exec(r))e.setValid(!1);else{var o=((null==r?void 0:r.split(",").filter(ye()))||[]).reduce((function(e,t){var r=(0,be.Cf)(t).newVal;return e&&!(isNaN(r)&&""!==fe()(t))}),!0);e.setValid(o),o&&e.onChange({value:r,rawValue:r,operator:"=",type:"number",attribute:n})}else{var a=(0,be.Cf)(r,"number"),i=a.operator,l=a.newVal;isNaN(l)&&""!==fe()(r)?e.setValid(!1):e.setValid(!0),e.onChange({value:isNaN(l)?void 0:l,rawValue:r,operator:i,type:"number",attribute:n})}}}}),(0,n.defaultProps)({placeholderMsgId:"featuregrid.filter.placeholders.number",tooltipMsgId:"featuregrid.filter.tooltips.number"}))(X),he=(0,n.compose)((0,n.defaultProps)({onValueChange:function(){},placeholderMsgId:"featuregrid.filter.placeholders.string"}),(0,n.withHandlers)({onChange:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.value,n=t.attribute;e.onValueChange(r),e.onChange({rawValue:r,value:fe()(r)?fe()(r):void 0,operator:"ilike",type:"string",attribute:n})}}}))(X);var ge={defaultFilter:function(e){return(0,n.withProps)((function(){return{type:e}}))(ue)},string:function(){return he},number:function(){return ve},int:function(){return ve},date:function(){return(0,n.withProps)((function(){return{type:"date"}}))(le)},time:function(){return(0,n.withProps)((function(){return{type:"time"}}))(le)},"date-time":function(){return(0,n.withProps)((function(){return{type:"date-time"}}))(le)},geometry:function(){return se}},we=function(e,t){return ge[e]?ge[e](e,t):ge.defaultFilter(e,t)}},965539:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(124852),o=r.n(n);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t{"use strict";r.d(t,{Z:()=>d});var n=r(867076),o=r(747037),a=r.n(o),i=r(647960),l=r.n(i),u=r(730381),c=r.n(u),s=r(55237);function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function f(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==p(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===p(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.dateTypeProp,r=void 0===t?"type":t,o=e.dateProp,i=void 0===o?"date":o,u=e.setDateProp,p=void 0===u?"onSetDate":u;return(0,n.compose)((0,n.withPropsOnChange)([i],(function(e){var t,n=e[i],o=e[r],u=e.useUTCOffset,p=void 0===u||u,d=n,y="1970-01-01",b="00:00:00";!l()(n)&&a()(n)&&("time"===o&&(d=new Date("".concat(y,"T").concat(n))),"date"===o&&(-1!==n.indexOf("Z")&&(d=n.substr(0,n.length-1)),d=new Date("".concat(d,"T").concat(b,"Z"))),"date-time"===o&&(d=new Date(n)));var m=d;if(d){switch(o){case"time":b=(0,s.kN)(d);break;case"date":y=(0,s.oD)(d);break;default:b=(0,s.kN)(d),y=(0,s.oD)(d)}(m=new Date("".concat(y,"T").concat(b,"Z"))).setUTCMilliseconds(d.getUTCMilliseconds());var v=p?(0,s.$4)(m):0;m=new Date(m.getTime()+v)}return f(t={},i,m),f(t,"defaultCurrentDate","date-time"===o?c()().startOf("day").toDate():void 0),t})),(0,n.withHandlers)(f({},p,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e[p],n=e[r],o=e.useUTCOffset,a=void 0===o||o;return function(e,r){if(e){var o=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())),i=a?(0,s.$4)(e):0,l=new Date(o.getTime()-i);switch(n){case"time":l="".concat((0,s.kN)(l),"Z");break;case"date":l="".concat((0,s.oD)(l),"Z")}t(l,r)}else t(null)}}))))}}}]); \ No newline at end of file +(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[485],{830029:(e,t,r)=>{"use strict";r.d(t,{Z:()=>h});var n=r(124852),o=r.n(n),a=r(675263),i=r.n(a),l=r(805346);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(e,t){for(var r=0;r{"use strict";r.d(t,{Q:()=>we});var n=r(867076),o=r(124852),a=r.n(o),i=r(675263),l=r.n(i),u=r(868195),c=r(730381),s=r.n(c),p=r(200020),f=r(93054),d=r.n(f),y=r(480681),b=r(647960),m=r.n(b),v=r(950966);function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function g(e,t){for(var r=0;r-1&&e.setState({focusedItemIndex:u})}})),S(O(e),"scrollDown",(function(t){var r=e.itemsRef[t];r&&r.offsetTop>e.listRef.offsetHeight&&(e.listRef.scrollTop=r.offsetTop-e.listRef.offsetTop)})),S(O(e),"scrollUp",(function(t){var r=e.itemsRef[t];if(r){var n=e.listRef.scrollTop,o=r.offsetTop;n&&o|<=|>=|===|==|=|<|>)?(.*)/.exec(r);e.setState({inputValue:n[2],operator:n[1]||""}),e.inputFlush=!0})),V(I(e),"handleCalendarChange",(function(t){var r=F(t,new Date),n=e.format(r);e.setState({date:r,inputValue:n,open:""}),e.props.onChange(r,"".concat(e.state.operator).concat(n))})),V(I(e),"handleTimeSelect",(function(t){var r=e.state.date||new Date,n=F(r,t.date),o=e.format(n);e.setState({date:n,inputValue:o,open:""}),e.props.onChange(n,"".concat(e.state.operator).concat(o))})),V(I(e),"attachTimeRef",(function(t){return e.timeRef=t})),V(I(e),"attachCalRef",(function(t){return e.calRef=t})),e}return t=l,(r=[{key:"componentDidMount",value:function(){var e=this.props,t=e.value,r=e.operator;this.setDateFromValueProp(t,r)}},{key:"componentDidUpdate",value:function(e){if(e.value!==this.props.value||e.operator!==this.props.operator){var t=this.props,r=t.value,n=t.operator;this.setDateFromValueProp(r,n)}}},{key:"render",value:function(){var e=this,t=this.state,r=t.open,n=t.inputValue,o=t.operator,i=t.focused,l=this.props,u=l.calendar,c=l.time,s=l.toolTip,f=l.placeholder,d=l.tabIndex,y=Object.keys(this.props).reduce((function(t,r){return["placeholder","calendar","time","onChange","value"].includes(r)||(t[r]=e.props[r]),t}),{}),b="date"===r,m="time"===r;return a().createElement("div",{tabIndex:"-1",onKeyDown:this.handleKeyDown,onBlur:this.handleWidgetBlur,onFocus:this.handleWidgetFocus,className:"rw-datetimepicker rw-widget ".concat(u&&c?"rw-has-both":""," ").concat(u||c?"":"rw-has-neither"," ").concat(i?"rw-state-focus":"")},this.renderInput(n,o,s,f,d,b,m),u||c?a().createElement("span",{className:"rw-select"},u?a().createElement("button",{tabIndex:"-1",title:"Select Date",type:"button","aria-disabled":"false","aria-label":"Select Date",className:"rw-btn-calendar rw-btn",onClick:this.toggleCalendar},a().createElement("span",{"aria-hidden":"true",className:"rw-i rw-i-calendar"})):"",c?a().createElement("button",{tabIndex:"-1",title:"Select Time",type:"button","aria-disabled":"false","aria-label":"Select Time",className:"rw-btn-time rw-btn",onClick:this.toggleTime},a().createElement("span",{"aria-hidden":"true",className:"rw-i rw-i-clock-o"})):""):"",a().createElement("div",{className:"rw-popup-container rw-popup-animating",style:{display:m?"block":"none",overflow:m?"visible":"hidden",height:"216px"}},a().createElement("div",{className:"rw-popup rw-widget",style:{transform:m?"translateY(0)":"translateY(-100%)",position:m?"":"absolute"}},a().createElement(T,D({ref:this.attachTimeRef,onMouseDown:this.handleMouseDown},y,{onClose:this.close,onSelect:this.handleTimeSelect})))),a().createElement("div",{className:"rw-calendar-popup rw-popup-container ".concat(b?"":"rw-popup-animating"),style:{display:b?"block":"none",overflow:b?"visible":"hidden",height:"375px"}},a().createElement("div",{className:"rw-popup",style:{transform:b?"translateY(0)":"translateY(-100%)",padding:"0",borderRadius:"4px",position:b?"":"absolute"}},a().createElement(p.Calendar,D({tabIndex:"-1",ref:this.attachCalRef,onMouseDown:this.handleMouseDown,onChange:this.handleCalendarChange},y)))))}}])&&x(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(o.Component);V(U,"propTypes",{format:l().string,type:l().string,placeholder:l().string,onChange:l().func,calendar:l().bool,time:l().bool,value:l().any,operator:l().string,culture:l().string,toolTip:l().string,tabIndex:l().string}),V(U,"defaultProps",{placeholder:"Type date...",calendar:!0,time:!0,onChange:function(){},value:null});const Z=U;var A=r(86638),H=r(55237);function K(e){return K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},K(e)}function $(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{},r=t.value,n=t.attribute,o=t.stringValue,a=/\s*(!==|!=|<>|<=|>=|===|==|=|<|>)?(.*)/.exec(o),i=a[1],l=a[1]||"=";"!=="===i|"!="===i?l="<>":"==="===i|"=="===i&&(l="="),e.onValueChange(r),e.onChange({value:{startDate:r,operator:i},operator:l,type:e.type,attribute:n})}}}),(0,n.defaultProps)({placeholderMsgId:"featuregrid.filter.placeholders.date",tooltipMsgId:"featuregrid.filter.tooltips.date"}))(ie),ue=(0,n.compose)((0,n.defaultProps)({onValueChange:function(){}}),(0,n.withHandlers)({onChange:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.value,n=t.attribute;e.onValueChange(r),e.onChange({value:r,operator:"=",type:e.type,attribute:n})}}}))(X);var ce=r(805346);const se=function(e){var t=e.value,r=e.filterEnabled,n=void 0!==r&&r,o=e.filterDeactivated,i=void 0!==o&&o,l=e.column,u=void 0===l?{}:l,c=e.tooltipPlace,s=void 0===c?"top":c,p=e.tooltipDisabled,f=void 0===p?"featuregrid.filter.tooltips.geometry.disabled":p,d=e.tooltipEnabled,b=void 0===d?"featuregrid.filter.tooltips.geometry.enabled":d,m=e.tooltipApplied,h=void 0===m?"featuregrid.filter.tooltips.geometry.applied":m,g=e.onChange,w=void 0===g?function(){}:g,O=i?void 0:n&&t?h:n&&!t?b:f,P=a().createElement("div",{className:"featuregrid-geometry-filter".concat(n?" filter-enabled":"").concat(i?" filter-deactivated":""),onClick:i?function(){}:function(){w({enabled:!n,type:"geometry",attribute:u.geometryPropName})}},a().createElement(y.Glyphicon,{glyph:t?"remove-sign":"map-marker"}));return O?a().createElement(v.Z,{placement:s,overlay:a().createElement(y.Tooltip,{id:"gofull-tooltip"},a().createElement(ce.Z,{msgId:O}))},P):P};var pe=r(92742),fe=r.n(pe),de=r(406557),ye=r.n(de),be=r(196958),me=/\,/;const ve=(0,n.compose)((0,n.defaultProps)({onValueChange:function(){}}),(0,n.withState)("valid","setValid",!0),(0,n.withHandlers)({onChange:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.value,n=t.attribute;if(e.onValueChange(r),me.exec(r))if(/,\s*$/.exec(r))e.setValid(!1);else{var o=((null==r?void 0:r.split(",").filter(ye()))||[]).reduce((function(e,t){var r=(0,be.Cf)(t).newVal;return e&&!(isNaN(r)&&""!==fe()(t))}),!0);e.setValid(o),o&&e.onChange({value:r,rawValue:r,operator:"=",type:"number",attribute:n})}else{var a=(0,be.Cf)(r,"number"),i=a.operator,l=a.newVal;isNaN(l)&&""!==fe()(r)?e.setValid(!1):e.setValid(!0),e.onChange({value:isNaN(l)?void 0:l,rawValue:r,operator:i,type:"number",attribute:n})}}}}),(0,n.defaultProps)({placeholderMsgId:"featuregrid.filter.placeholders.number",tooltipMsgId:"featuregrid.filter.tooltips.number"}))(X),he=(0,n.compose)((0,n.defaultProps)({onValueChange:function(){},placeholderMsgId:"featuregrid.filter.placeholders.string"}),(0,n.withHandlers)({onChange:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.value,n=t.attribute;e.onValueChange(r),e.onChange({rawValue:r,value:fe()(r)?fe()(r):void 0,operator:"ilike",type:"string",attribute:n})}}}))(X);var ge={defaultFilter:function(e){return(0,n.withProps)((function(){return{type:e}}))(ue)},string:function(){return he},number:function(){return ve},int:function(){return ve},date:function(){return(0,n.withProps)((function(){return{type:"date"}}))(le)},time:function(){return(0,n.withProps)((function(){return{type:"time"}}))(le)},"date-time":function(){return(0,n.withProps)((function(){return{type:"date-time"}}))(le)},geometry:function(){return se}},we=function(e,t){return ge[e]?ge[e](e,t):ge.defaultFilter(e,t)}},965539:(e,t,r)=>{"use strict";r.d(t,{Z:()=>u});var n=r(124852),o=r.n(n);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t{"use strict";r.d(t,{Z:()=>d});var n=r(867076),o=r(747037),a=r.n(o),i=r(647960),l=r.n(i),u=r(730381),c=r.n(u),s=r(55237);function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function f(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==p(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===p(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.dateTypeProp,r=void 0===t?"type":t,o=e.dateProp,i=void 0===o?"date":o,u=e.setDateProp,p=void 0===u?"onSetDate":u;return(0,n.compose)((0,n.withPropsOnChange)([i],(function(e){var t,n=e[i],o=e[r],u=e.useUTCOffset,p=void 0===u||u,d=n,y="1970-01-01",b="00:00:00";!l()(n)&&a()(n)&&("time"===o&&(d=new Date("".concat(y,"T").concat(n))),"date"===o&&(-1!==n.indexOf("Z")&&(d=n.substr(0,n.length-1)),d=new Date("".concat(d,"T").concat(b,"Z"))),"date-time"===o&&(d=new Date(n)));var m=d;if(d){switch(o){case"time":b=(0,s.kN)(d);break;case"date":y=(0,s.oD)(d);break;default:b=(0,s.kN)(d),y=(0,s.oD)(d)}(m=new Date("".concat(y,"T").concat(b,"Z"))).setUTCMilliseconds(d.getUTCMilliseconds());var v=p?(0,s.$4)(m):0;m=new Date(m.getTime()+v)}return f(t={},i,m),f(t,"defaultCurrentDate","date-time"===o?c()().startOf("day").toDate():void 0),t})),(0,n.withHandlers)(f({},p,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e[p],n=e[r],o=e.useUTCOffset,a=void 0===o||o;return function(e,r){if(e){var o=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())),i=a?(0,s.$4)(e):0,l=new Date(o.getTime()-i);switch(n){case"time":l="".concat((0,s.kN)(l),"Z");break;case"date":l="".concat((0,s.oD)(l),"Z")}t(l,r)}else t(null)}}))))}}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/48620.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/48620.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/48620.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/48620.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/48890.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/48890.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/48890.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/48890.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/48894.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/48894.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/48894.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/48894.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/49005.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/49005.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/49005.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/49005.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/4915.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/4915.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/4915.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/4915.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/49174.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/49174.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/49174.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/49174.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/49232.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/49232.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/49232.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/49232.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/49235.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/49235.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/49235.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/49235.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/4926.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/4926.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/4926.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/4926.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/49318.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/49318.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/49318.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/49318.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/4942.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/4942.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/4942.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/4942.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/49532.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/49532.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/49532.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/49532.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/49595.018dc26183efb561a8b1.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/49595.018dc26183efb561a8b1.chunk.js new file mode 100644 index 0000000000..b0f83d5417 --- /dev/null +++ b/geonode_mapstore_client/static/mapstore/dist/js/49595.018dc26183efb561a8b1.chunk.js @@ -0,0 +1 @@ +(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[49595],{881808:(e,r,t)=>{"use strict";t.d(r,{eD:()=>n,AM:()=>o,ok:()=>i,Gg:()=>u,nT:()=>a,TL:()=>c,KS:()=>s,EB:()=>l,DZ:()=>f,Aw:()=>p,V_:()=>y,H0:()=>d,jW:()=>E,JZ:()=>m,fQ:()=>b,HK:()=>v,YO:()=>g,I6:()=>O});var n="MAP:LOAD_NEW_MAP",o="MAP_LOAD_MAP_CONFIG",i="MAP_CONFIG_LOADED",u="MAP_CONFIG_LOAD_ERROR",a="MAP_LOAD_INFO",c="MAP_INFO_LOAD_START",s="MAP_INFO_LOADED",l="MAP_INFO_LOAD_ERROR",f="MAP:MAP_SAVE_ERROR",p="MAP:MAP_SAVED",y="MAP:RESET_MAP_SAVE_ERROR";function d(e,r,t){return{type:i,config:e,legacy:!!r,mapId:r,zoomToExtent:t}}function E(e,r){return{type:u,error:e,mapId:r}}function m(e,r,t,n,i){return{type:o,configName:e,mapId:r,config:t,mapInfo:n,overrideConfig:i}}function b(e,r){return{type:s,mapId:r,info:e}}function v(e,r){return{type:l,mapId:e,error:r}}function g(e){return{type:c,mapId:e}}function O(e){return{type:a,mapId:e}}},580416:(e,r,t)=>{"use strict";t.d(r,{yS:()=>n,Zz:()=>o,ms:()=>i,ih:()=>u,OX:()=>c,sb:()=>s,K$:()=>l,k7:()=>f,cX:()=>p,x9:()=>y,vs:()=>d,oE:()=>E,Po:()=>m,qv:()=>b,cI:()=>v,g6:()=>g,I4:()=>O,l$:()=>_,Xv:()=>S,k3:()=>A,CQ:()=>R,R8:()=>P,HN:()=>T,sH:()=>h,c7:()=>D,_7:()=>I,eF:()=>w,O6:()=>j,ED:()=>L,RP:()=>C,sF:()=>M,VP:()=>H,He:()=>N,vO:()=>q,WO:()=>G,bh:()=>F,pV:()=>Y,MK:()=>k,ZF:()=>x,tV:()=>X,Dv:()=>U,Yz:()=>V,kI:()=>Z,XG:()=>W,A4:()=>K,Rp:()=>Q,$o:()=>z,ct:()=>$,oh:()=>B,$h:()=>J,ud:()=>ee,Qr:()=>re,LR:()=>te,nN:()=>ne,UG:()=>oe,F5:()=>ie,c9:()=>ue,Jh:()=>ae,Xy:()=>ce});var n="CHANGE_LAYER_PROPERTIES",o="LAYERS:CHANGE_LAYER_PARAMS",i="CHANGE_GROUP_PROPERTIES",u="TOGGLE_NODE",a="CONTEXT_NODE",c="SORT_NODE",s="REMOVE_NODE",l="UPDATE_NODE",f="MOVE_NODE",p="LAYER_LOADING",y="LAYER_LOAD",d="LAYER_ERROR",E="ADD_LAYER",m="ADD_GROUP",b="REMOVE_LAYER",v="SHOW_SETTINGS",g="HIDE_SETTINGS",O="UPDATE_SETTINGS",_="REFRESH_LAYERS",S="LAYERS:UPDATE_LAYERS_DIMENSION",A="LAYERS_REFRESHED",R="LAYERS_REFRESH_ERROR",P="LAYERS:BROWSE_DATA",T="LAYERS:DOWNLOAD",h="LAYERS:CLEAR_LAYERS",D="LAYERS:SELECT_NODE",I="LAYERS:FILTER_LAYERS",w="LAYERS:SHOW_LAYER_METADATA",j="LAYERS:HIDE_LAYER_METADATA",L="LAYERS:UPDATE_SETTINGS_PARAMS";function C(e,r,t){return{type:v,node:e,nodeType:r,options:t}}function M(){return{type:g}}function H(e){return{type:O,options:e}}function N(e,r){return{type:n,newProperties:r,layer:e}}function q(e,r){return{type:o,layer:e,params:r}}function G(e,r){return{type:i,newProperties:r,group:e}}function F(e,r,t){return{type:u,node:e,nodeType:r,status:!t}}function Y(e){return{type:a,node:e}}function k(e,r){return{type:c,node:e,order:r,sortLayers:arguments.length>2&&void 0!==arguments[2]?arguments[2]:null}}function x(e,r){return{type:s,node:e,nodeType:r,removeEmpty:arguments.length>2&&void 0!==arguments[2]&&arguments[2]}}function X(e,r,t){return{type:l,node:e,nodeType:r,options:t}}function U(e,r,t){return{type:f,node:e,groupId:r,index:t}}function V(e){return{type:p,layerId:e}}function Z(e,r){return{type:y,layerId:e,error:r}}function W(e,r,t){return{type:d,layerId:e,tilesCount:r,tilesErrorCount:t}}function K(e){return{type:E,layer:e,foreground:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]}}function Q(e,r,t){return{type:m,group:e,parent:r,options:t}}function z(e){return{type:b,layerId:e}}function $(e,r){return{type:n,layer:e,newProperties:{_v_:r||(new Date).getTime()}}}function B(e){return{type:A,layers:e}}function J(e,r){return{type:R,layers:e,error:r}}function ee(e,r,t,n){return{type:S,dimension:e,value:r,options:t,layers:n}}function re(e){return{type:P,layer:e}}function te(e){return{type:T,layer:e}}function ne(){return{type:h}}function oe(e,r,t){return{type:D,id:e,nodeType:r,ctrlKey:t}}function ie(e){return{type:I,text:e}}function ue(e,r){return{type:w,metadataRecord:e,maskLoading:r}}function ae(){return{type:j}}function ce(e,r){return{type:L,newParams:e,update:r}}},73814:(e,r,t)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function i(e){for(var r=1;ru,HH:()=>a,yp:()=>c,i8:()=>s,hC:()=>l,UK:()=>f});var u="MAP:ADD_POPUP",a="MAP:REMOVE_POPUP",c="MAP:CLEAN_POPUPS",s=function(e,r){var t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return{type:u,id:e,popup:i({id:e},r),single:t}},l=function(e){return{type:a,id:e}},f=function(){return{type:c}}},213652:(e,r,t)=>{"use strict";t.d(r,{Wz:()=>n,v2:()=>o,gj:()=>i,e_:()=>u});var n="MAP_TYPE_CHANGED",o="MAP_TYPE:UPDATE_LAST_2D_MAPTYPE";function i(e){return{type:n,mapType:e}}function u(e){return{type:o,mapType:e}}},597222:(e,r,t)=>{"use strict";t.d(r,{Vc:()=>o,qj:()=>i,bj:()=>u,p7:()=>a,Av:()=>c,M8:()=>s,wn:()=>l,gs:()=>f,NN:()=>p,C2:()=>y,O7:()=>d,oQ:()=>E,dX:()=>m,al:()=>b,Gh:()=>v,x2:()=>g,Y7:()=>O,b4:()=>_,GI:()=>S,KP:()=>A,dS:()=>R,Zw:()=>P,l4:()=>T,fZ:()=>h,Z:()=>D,a:()=>I,WN:()=>w,k9:()=>j,yo:()=>L,kE:()=>C,kV:()=>M,v2:()=>H,_q:()=>N,tt:()=>q,Jc:()=>G,w4:()=>F,QJ:()=>Y,KG:()=>k,o$:()=>x,TS:()=>X,Tw:()=>U,I3:()=>V});var n=t(197395),o="SEARCH:SEARCH_WITH_FILTER",i="SEARCH:SCHEDULE_SEARCH_WITH_FILTER",u="TEXT_SEARCH_STARTED",a="TEXT_SEARCH_RESULTS_LOADED",c="TEXT_SEARCH_RESULTS_PURGE",s="TEXT_SEARCH_RESET",l="TEXT_SEARCH_ADD_MARKER",f="TEXT_SEARCH_TEXT_CHANGE",p="TEXT_SEARCH_LOADING",y="TEXT_SEARCH_NESTED_SERVICE_SELECTED",d="TEXT_SEARCH_ERROR",E="TEXT_SEARCH_CANCEL_ITEM",m="TEXT_SEARCH_ITEM_SELECTED",b="TEXT_SEARCH_SHOW_GFI",v="TEXT_SEARCH_SET_HIGHLIGHTED_FEATURE",g="UPDATE_RESULTS_STYLE",O="CHANGE_SEARCH_TOOL",_="SEARCH:ZOOM_ADD_POINT",S="SEARCH:CHANGE_FORMAT",A="SEARCH:CHANGE_COORD",R="SEARCH:HIDE_MARKER";function P(e){return{type:S,format:e}}function T(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.layer,t=e.cql_filter;return{type:o,layer:r,cql_filter:t}}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.layer,t=e.cql_filter;return{type:i,layer:r,cql_filter:t}}function D(e,r,t){return{type:_,pos:e,zoom:r,crs:t}}function I(e){return{type:O,activeSearchTool:e}}function w(e){return{type:a,results:e,append:arguments.length>1&&void 0!==arguments[1]&&arguments[1],services:arguments.length>2?arguments[2]:void 0}}function j(e){return{type:f,searchText:e}}function L(e){return{type:p,loading:e}}function C(e){return{type:d,error:e}}function M(){return{type:c}}function H(){return{type:s}}function N(e,r){return{type:l,markerPosition:e,markerLabel:r}}function q(e){var r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).services;return{type:u,searchText:e,services:void 0===r?null:r,maxResults:arguments.length>2&&void 0!==arguments[2]?arguments[2]:15}}function G(e,r,t){return{type:m,item:e,mapConfig:r,resultsStyle:t}}var F=function(e){return{type:b,item:e}};function Y(e,r,t){return{type:y,searchText:t,services:e,items:r}}function k(e){return{type:E,item:e}}function x(e){return{type:g,style:e}}function X(e,r){return{type:A,coord:e,val:r}}function U(){return(0,n.vU)({title:"Error",position:"tc",message:"search.errors.nonQueriableLayers",autoDismiss:10})}function V(){return(0,n.vU)({title:"Error",position:"tc",message:"search.errors.serverError",autoDismiss:10})}},615402:(e,r,t)=>{"use strict";t.d(r,{Z:()=>E});var n=t(675263),o=t.n(n),i=t(124852),u=t.n(i);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function c(e,r){for(var t=0;t{"use strict";t.r(r),t.d(r,{IDENTIFY_POPUP:()=>S,default:()=>A});var n=t(124852),o=t.n(n),i=t(173014),u=t(11196),a=t(867076),c=t(171703),s=t(22222),l=t(307877),f=t(921914),p=t(542872),y=t(701469),d=t.n(y),E=t(352353),m=t.n(E),b=t(979870),v=t(800827),g=(0,a.compose)((0,c.connect)((0,s.P1)(l.Qf,(function(e){return{index:e}})),{setIndex:f.oO}),(0,a.defaultProps)({index:0,responses:[]})),O=(0,s.P1)([l.q7,l.o9,l.OK,l.us,l.x0,v.hp,l.vR],(function(e,r,t,n,o,i,u){return{responses:e,validResponses:r,requests:t,format:n,showEmptyMessageGFI:o,missingResponses:(t||[]).length-(e||[]).length,renderValidOnly:i,loaded:u}}));const _=(0,a.compose)((0,c.connect)(O),(0,a.defaultProps)({responses:[],container:function(e){var r=e.index,t=e.children;return o().createElement(o().Fragment,null,d()(t)&&t[r]||t)},header:b.Z}),g,u.Yy,u.mI,(0,i.Z)((function(e){var r=e.loaded;return m()(r)})))(p.Z);var S="identify";const A={identify:_}},993451:(e,r,t)=>{"use strict";t.d(r,{Z:()=>O});var n=t(86638),o=t(675263),i=t.n(o),u=t(984596),a=t.n(u),c=t(701469),s=t.n(c),l=t(414293),f=t.n(l),p=t(747037),y=t.n(p),d=t(867076),E=["messages"];function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function b(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function v(e){for(var r=1;r1&&void 0!==arguments[1]?arguments[1]:"label";return(0,d.compose)((0,d.getContext)({messages:i().object}),(0,d.mapProps)((function(t){var o=t.messages,i=function(e,r){if(null==e)return{};var t,n,o=function(e,r){if(null==e)return{};var t,n,o={},i=Object.keys(e);for(n=0;n=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}(t,E);return v(v({},i),a()(e).reduce(function(e,r,t){return function(){var o=arguments.length>1?arguments[1]:void 0;return v(v({},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),{},g({},o,e[o]&&function(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"label";if(s()(r))return r.map((function(o){var i=(0,n.S$)(e,o[t]||y()(o)&&o||"");return v(v({},o),{},g({},t,f()(i)?r:i))}));var o=(0,n.S$)(e,r);return f()(o)?r:o}(r,e[o],t)))}}(i,o,r),{}))})))}},426125:(e,r,t)=>{"use strict";t.d(r,{Z:()=>D});var n=t(727418),o=t.n(n),i=t(630998),u=t.n(i),a=t(352353),c=t.n(a),s=t(441609),l=t.n(s),f=t(755745),p=t.n(f),y=t(165442),d=t.n(y),E=t(921914),m=t(881808),b=t(782904),v=t(213652),g=t(396606),O=["index","loaded"];function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}function S(e){return function(e){if(Array.isArray(e))return A(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(e){if("string"==typeof e)return A(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?A(e,r):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t0&&void 0!==arguments[0]?arguments[0]:h,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case E.Re:return o()({},e,{warning:"NO_QUERYABLE_LAYERS"});case E.ih:return o()({},e,{warning:null});case E.Xw:return o()({},e,{enabled:r.enabled});case E.ph:return o()({},e,{enabled:!e.enabled});case E.gG:return o()({},e,{index:r.index});case E.oz:return o()({},e,{highlight:r.enabled});case E.Pn:var t=r.reqId,n=r.request,i=e.requests||[];return o()({},e,{requests:[].concat(S(i),[{request:n,reqId:t}])});case E.DZ:return e.index,e.loaded,P(P({},function(e,r){if(null==e)return{};var t,n,o=function(e,r){if(null==e)return{};var t,n,o={},i=Object.keys(e);for(n=0;n=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}(e,O)),{},{queryableLayers:[],responses:[],requests:[]});case E.XL:return T(e,r,"data");case E.Ih:return T(e,r,"exceptions");case E.km:return T(e,r,"error");case E.xy:return o()({},e,{clickPoint:r.point,clickLayer:r.layer||null,itemId:r.itemId||null,overrideParams:r.overrideParams||null,filterNameList:r.filterNameList||null});case E.e8:return P(P({},e),{},{configuration:P(P({},e.configuration),{},{infoFormat:r.infoFormat})});case E.E0:return o()({},e,{showMarker:!0});case E.F9:return o()({},e,{showMarker:!1});case E.X_:return o()({},e,{showModalReverse:!0,reverseGeocodeData:r.reverseGeocodeData});case E.pb:return o()({},e,{showModalReverse:!1,reverseGeocodeData:void 0});case b.l:return o()({},e,{showMarker:!1,responses:[],requests:[],configuration:P(P({},e.configuration),{},{trigger:"click"})});case E.qb:var u,a={type:"Feature",properties:{},geometry:{type:"Point",coordinates:[r.request.lng,r.request.lat]}},c=r.metadata&&r.metadata.units;switch(c){case"m":default:c="meters";break;case"deg":c="degrees";break;case"mi":c="miles"}var s,l=r.metadata&&r.metadata.resolution||1,f=p()(a,(r.metadata.buffer||1)*l,c),y=(r.layer.features||[]).filter((function(e){try{return"FeatureCollection"===e.type&&e.features&&e.features.length?e.features.reduce((function(e,t){var n=t.properties.useGeodesicLines&&t.properties.geometryGeodesic?P(P({},t),{},{geometry:t.properties.geometryGeodesic}):t;return e||d()(f,l&&r.metadata.buffer&&c?p()(n,1,"meters"):n)}),!1):d()(f,l&&r.metadata.buffer&&c?p()(e,1,"meters"):e)}catch(e){return!1}})),g=e.responses||[],_="hover"===(null==e||null===(u=e.configuration)||void 0===u?void 0:u.trigger)||(null==e?void 0:e.showInMapPopup),A={response:{crs:null,features:y,totalFeatures:"unknown",type:"FeatureCollection"},queryParams:r.request,layerMetadata:r.metadata,format:"JSON"};_?(g=[].concat(S(g),[A]),s={reqId:0}):(g[e.requests.length]=A,s={reqId:e.requests.length});var R=[].concat(S(e.requests),[{}]);return T(o()({},e,{requests:R,queryableLayers:r.queryableLayers,responses:S(g)}),s,"vector");case E.lF:return o()({},e,{centerToMarker:r.status});case E.ZF:return P(P({},e),{},{configuration:P(P({},e.configuration),{},{showEmptyMessageGFI:!e.configuration.showEmptyMessageGFI})});case m.ok:return P(P({},e),{},{configuration:r.config.mapInfoConfiguration||e.configuration||{}});case E.GI:return P(P({},e),{},{formatCoord:r.format});case E.B1:return P(P({},e),{},{showCoordinateEditor:!r.showCoordinateEditor});case E.gc:return P(P({},e),{},{currentEditFeatureQuery:r.query});case E.zX:return P(P({},e),{},{configuration:P(P({},e.configuration),{},{trigger:r.trigger})});case E.Zb:return P(P({},e),{},{showInMapPopup:r.value});case v.Wz:return"cesium"===r.mapType?P(P({},e),{},{configuration:P(P({},e.configuration),{},{trigger:"click"})}):e;case E.Xp:var D;return P(P(P({},e),r.cfg),{},{configuration:P(P({},e.configuration),null===(D=r.cfg)||void 0===D?void 0:D.configuration)});default:return e}}}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/49595.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/49595.affd309bf2aa3f38d3a0.chunk.js deleted file mode 100644 index f826e3a903..0000000000 --- a/geonode_mapstore_client/static/mapstore/dist/js/49595.affd309bf2aa3f38d3a0.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[49595],{881808:(e,r,t)=>{"use strict";t.d(r,{eD:()=>n,AM:()=>o,ok:()=>i,Gg:()=>u,nT:()=>a,TL:()=>c,KS:()=>s,EB:()=>l,DZ:()=>f,Aw:()=>p,V_:()=>y,H0:()=>d,jW:()=>E,JZ:()=>m,fQ:()=>b,HK:()=>v,YO:()=>g,I6:()=>O});var n="MAP:LOAD_NEW_MAP",o="MAP_LOAD_MAP_CONFIG",i="MAP_CONFIG_LOADED",u="MAP_CONFIG_LOAD_ERROR",a="MAP_LOAD_INFO",c="MAP_INFO_LOAD_START",s="MAP_INFO_LOADED",l="MAP_INFO_LOAD_ERROR",f="MAP:MAP_SAVE_ERROR",p="MAP:MAP_SAVED",y="MAP:RESET_MAP_SAVE_ERROR";function d(e,r,t){return{type:i,config:e,legacy:!!r,mapId:r,zoomToExtent:t}}function E(e,r){return{type:u,error:e,mapId:r}}function m(e,r,t,n,i){return{type:o,configName:e,mapId:r,config:t,mapInfo:n,overrideConfig:i}}function b(e,r){return{type:s,mapId:r,info:e}}function v(e,r){return{type:l,mapId:e,error:r}}function g(e){return{type:c,mapId:e}}function O(e){return{type:a,mapId:e}}},580416:(e,r,t)=>{"use strict";t.d(r,{yS:()=>n,Zz:()=>o,ms:()=>i,ih:()=>u,OX:()=>c,sb:()=>s,K$:()=>l,k7:()=>f,cX:()=>p,x9:()=>y,vs:()=>d,oE:()=>E,Po:()=>m,qv:()=>b,cI:()=>v,g6:()=>g,I4:()=>O,l$:()=>_,Xv:()=>S,k3:()=>A,CQ:()=>R,R8:()=>P,HN:()=>T,sH:()=>h,c7:()=>D,_7:()=>I,eF:()=>w,O6:()=>j,ED:()=>L,RP:()=>C,sF:()=>M,VP:()=>H,He:()=>N,vO:()=>q,WO:()=>G,bh:()=>F,pV:()=>Y,MK:()=>k,ZF:()=>x,tV:()=>X,Dv:()=>U,Yz:()=>V,kI:()=>Z,XG:()=>W,A4:()=>K,Rp:()=>Q,$o:()=>z,ct:()=>$,oh:()=>B,$h:()=>J,ud:()=>ee,Qr:()=>re,LR:()=>te,nN:()=>ne,UG:()=>oe,F5:()=>ie,c9:()=>ue,Jh:()=>ae,Xy:()=>ce});var n="CHANGE_LAYER_PROPERTIES",o="LAYERS:CHANGE_LAYER_PARAMS",i="CHANGE_GROUP_PROPERTIES",u="TOGGLE_NODE",a="CONTEXT_NODE",c="SORT_NODE",s="REMOVE_NODE",l="UPDATE_NODE",f="MOVE_NODE",p="LAYER_LOADING",y="LAYER_LOAD",d="LAYER_ERROR",E="ADD_LAYER",m="ADD_GROUP",b="REMOVE_LAYER",v="SHOW_SETTINGS",g="HIDE_SETTINGS",O="UPDATE_SETTINGS",_="REFRESH_LAYERS",S="LAYERS:UPDATE_LAYERS_DIMENSION",A="LAYERS_REFRESHED",R="LAYERS_REFRESH_ERROR",P="LAYERS:BROWSE_DATA",T="LAYERS:DOWNLOAD",h="LAYERS:CLEAR_LAYERS",D="LAYERS:SELECT_NODE",I="LAYERS:FILTER_LAYERS",w="LAYERS:SHOW_LAYER_METADATA",j="LAYERS:HIDE_LAYER_METADATA",L="LAYERS:UPDATE_SETTINGS_PARAMS";function C(e,r,t){return{type:v,node:e,nodeType:r,options:t}}function M(){return{type:g}}function H(e){return{type:O,options:e}}function N(e,r){return{type:n,newProperties:r,layer:e}}function q(e,r){return{type:o,layer:e,params:r}}function G(e,r){return{type:i,newProperties:r,group:e}}function F(e,r,t){return{type:u,node:e,nodeType:r,status:!t}}function Y(e){return{type:a,node:e}}function k(e,r){return{type:c,node:e,order:r,sortLayers:arguments.length>2&&void 0!==arguments[2]?arguments[2]:null}}function x(e,r){return{type:s,node:e,nodeType:r,removeEmpty:arguments.length>2&&void 0!==arguments[2]&&arguments[2]}}function X(e,r,t){return{type:l,node:e,nodeType:r,options:t}}function U(e,r,t){return{type:f,node:e,groupId:r,index:t}}function V(e){return{type:p,layerId:e}}function Z(e,r){return{type:y,layerId:e,error:r}}function W(e,r,t){return{type:d,layerId:e,tilesCount:r,tilesErrorCount:t}}function K(e){return{type:E,layer:e,foreground:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]}}function Q(e,r,t){return{type:m,group:e,parent:r,options:t}}function z(e){return{type:b,layerId:e}}function $(e,r){return{type:n,layer:e,newProperties:{_v_:r||(new Date).getTime()}}}function B(e){return{type:A,layers:e}}function J(e,r){return{type:R,layers:e,error:r}}function ee(e,r,t,n){return{type:S,dimension:e,value:r,options:t,layers:n}}function re(e){return{type:P,layer:e}}function te(e){return{type:T,layer:e}}function ne(){return{type:h}}function oe(e,r,t){return{type:D,id:e,nodeType:r,ctrlKey:t}}function ie(e){return{type:I,text:e}}function ue(e,r){return{type:w,metadataRecord:e,maskLoading:r}}function ae(){return{type:j}}function ce(e,r){return{type:L,newParams:e,update:r}}},73814:(e,r,t)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function i(e){for(var r=1;ra,HH:()=>c,yp:()=>s,i8:()=>l,hC:()=>f,UK:()=>p});var a="MAP:ADD_POPUP",c="MAP:REMOVE_POPUP",s="MAP:CLEAN_POPUPS",l=function(e,r){var t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return{type:a,id:e,popup:i({id:e},r),single:t}},f=function(e){return{type:c,id:e}},p=function(){return{type:s}}},213652:(e,r,t)=>{"use strict";t.d(r,{Wz:()=>n,v2:()=>o,gj:()=>i,e_:()=>u});var n="MAP_TYPE_CHANGED",o="MAP_TYPE:UPDATE_LAST_2D_MAPTYPE";function i(e){return{type:n,mapType:e}}function u(e){return{type:o,mapType:e}}},597222:(e,r,t)=>{"use strict";t.d(r,{Vc:()=>o,qj:()=>i,bj:()=>u,p7:()=>a,Av:()=>c,M8:()=>s,wn:()=>l,gs:()=>f,NN:()=>p,C2:()=>y,O7:()=>d,oQ:()=>E,dX:()=>m,al:()=>b,Gh:()=>v,x2:()=>g,Y7:()=>O,b4:()=>_,GI:()=>S,KP:()=>A,dS:()=>R,Zw:()=>P,l4:()=>T,fZ:()=>h,Z:()=>D,a:()=>I,WN:()=>w,k9:()=>j,yo:()=>L,kE:()=>C,kV:()=>M,v2:()=>H,_q:()=>N,tt:()=>q,Jc:()=>G,w4:()=>F,QJ:()=>Y,KG:()=>k,o$:()=>x,TS:()=>X,Tw:()=>U,I3:()=>V});var n=t(197395),o="SEARCH:SEARCH_WITH_FILTER",i="SEARCH:SCHEDULE_SEARCH_WITH_FILTER",u="TEXT_SEARCH_STARTED",a="TEXT_SEARCH_RESULTS_LOADED",c="TEXT_SEARCH_RESULTS_PURGE",s="TEXT_SEARCH_RESET",l="TEXT_SEARCH_ADD_MARKER",f="TEXT_SEARCH_TEXT_CHANGE",p="TEXT_SEARCH_LOADING",y="TEXT_SEARCH_NESTED_SERVICE_SELECTED",d="TEXT_SEARCH_ERROR",E="TEXT_SEARCH_CANCEL_ITEM",m="TEXT_SEARCH_ITEM_SELECTED",b="TEXT_SEARCH_SHOW_GFI",v="TEXT_SEARCH_SET_HIGHLIGHTED_FEATURE",g="UPDATE_RESULTS_STYLE",O="CHANGE_SEARCH_TOOL",_="SEARCH:ZOOM_ADD_POINT",S="SEARCH:CHANGE_FORMAT",A="SEARCH:CHANGE_COORD",R="SEARCH:HIDE_MARKER";function P(e){return{type:S,format:e}}function T(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.layer,t=e.cql_filter;return{type:o,layer:r,cql_filter:t}}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.layer,t=e.cql_filter;return{type:i,layer:r,cql_filter:t}}function D(e,r,t){return{type:_,pos:e,zoom:r,crs:t}}function I(e){return{type:O,activeSearchTool:e}}function w(e){return{type:a,results:e,append:arguments.length>1&&void 0!==arguments[1]&&arguments[1],services:arguments.length>2?arguments[2]:void 0}}function j(e){return{type:f,searchText:e}}function L(e){return{type:p,loading:e}}function C(e){return{type:d,error:e}}function M(){return{type:c}}function H(){return{type:s}}function N(e,r){return{type:l,markerPosition:e,markerLabel:r}}function q(e){var r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).services;return{type:u,searchText:e,services:void 0===r?null:r,maxResults:arguments.length>2&&void 0!==arguments[2]?arguments[2]:15}}function G(e,r,t){return{type:m,item:e,mapConfig:r,resultsStyle:t}}var F=function(e){return{type:b,item:e}};function Y(e,r,t){return{type:y,searchText:t,services:e,items:r}}function k(e){return{type:E,item:e}}function x(e){return{type:g,style:e}}function X(e,r){return{type:A,coord:e,val:r}}function U(){return(0,n.vU)({title:"Error",position:"tc",message:"search.errors.nonQueriableLayers",autoDismiss:10})}function V(){return(0,n.vU)({title:"Error",position:"tc",message:"search.errors.serverError",autoDismiss:10})}},615402:(e,r,t)=>{"use strict";t.d(r,{Z:()=>E});var n=t(675263),o=t.n(n),i=t(124852),u=t.n(i);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function c(e,r){for(var t=0;t{"use strict";t.r(r),t.d(r,{IDENTIFY_POPUP:()=>S,default:()=>A});var n=t(124852),o=t.n(n),i=t(173014),u=t(11196),a=t(867076),c=t(171703),s=t(22222),l=t(307877),f=t(921914),p=t(542872),y=t(701469),d=t.n(y),E=t(352353),m=t.n(E),b=t(979870),v=t(800827),g=(0,a.compose)((0,c.connect)((0,s.P1)(l.Qf,(function(e){return{index:e}})),{setIndex:f.oO}),(0,a.defaultProps)({index:0,responses:[]})),O=(0,s.P1)([l.q7,l.o9,l.OK,l.us,l.x0,v.hp,l.vR],(function(e,r,t,n,o,i,u){return{responses:e,validResponses:r,requests:t,format:n,showEmptyMessageGFI:o,missingResponses:(t||[]).length-(e||[]).length,renderValidOnly:i,loaded:u}}));const _=(0,a.compose)((0,c.connect)(O),(0,a.defaultProps)({responses:[],container:function(e){var r=e.index,t=e.children;return o().createElement(o().Fragment,null,d()(t)&&t[r]||t)},header:b.Z}),g,u.Yy,u.mI,(0,i.Z)((function(e){var r=e.loaded;return m()(r)})))(p.Z);var S="identify";const A={identify:_}},993451:(e,r,t)=>{"use strict";t.d(r,{Z:()=>O});var n=t(86638),o=t(675263),i=t.n(o),u=t(984596),a=t.n(u),c=t(701469),s=t.n(c),l=t(414293),f=t.n(l),p=t(747037),y=t.n(p),d=t(867076),E=["messages"];function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function b(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function v(e){for(var r=1;r1&&void 0!==arguments[1]?arguments[1]:"label";return(0,d.compose)((0,d.getContext)({messages:i().object}),(0,d.mapProps)((function(t){var o=t.messages,i=function(e,r){if(null==e)return{};var t,n,o=function(e,r){if(null==e)return{};var t,n,o={},i=Object.keys(e);for(n=0;n=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}(t,E);return v(v({},i),a()(e).reduce(function(e,r,t){return function(){var o=arguments.length>1?arguments[1]:void 0;return v(v({},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),{},g({},o,e[o]&&function(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"label";if(s()(r))return r.map((function(o){var i=(0,n.S$)(e,o[t]||y()(o)&&o||"");return v(v({},o),{},g({},t,f()(i)?r:i))}));var o=(0,n.S$)(e,r);return f()(o)?r:o}(r,e[o],t)))}}(i,o,r),{}))})))}},426125:(e,r,t)=>{"use strict";t.d(r,{Z:()=>I});var n=t(727418),o=t.n(n),i=t(630998),u=t.n(i),a=t(352353),c=t.n(a),s=t(441609),l=t.n(s),f=t(755745),p=t.n(f),y=t(165442),d=t.n(y),E=t(921914),m=t(881808),b=t(782904),v=t(213652),g=t(396606),O=["index","loaded"];function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}function S(e){return function(e){if(Array.isArray(e))return A(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(e){if("string"==typeof e)return A(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?A(e,r):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t0&&void 0!==arguments[0]?arguments[0]:D,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case E.Re:return o()({},e,{warning:"NO_QUERYABLE_LAYERS"});case E.ih:return o()({},e,{warning:null});case E.Xw:return o()({},e,{enabled:r.enabled});case E.ph:return o()({},e,{enabled:!e.enabled});case E.gG:return o()({},e,{index:r.index});case E.oz:return o()({},e,{highlight:r.enabled});case E.Pn:var t=r.reqId,n=r.request,i=e.requests||[];return o()({},e,{requests:[].concat(S(i),[{request:n,reqId:t}])});case E.DZ:return e.index,e.loaded,P(P({},function(e,r){if(null==e)return{};var t,n,o=function(e,r){if(null==e)return{};var t,n,o={},i=Object.keys(e);for(n=0;n=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}(e,O)),{},{queryableLayers:[],responses:[],requests:[]});case E.XL:return h(e,r,"data");case E.Ih:return h(e,r,"exceptions");case E.km:return h(e,r,"error");case E.xy:return o()({},e,{clickPoint:r.point,clickLayer:r.layer||null,itemId:r.itemId||null,overrideParams:r.overrideParams||null,filterNameList:r.filterNameList||null});case E.e8:return P(P({},e),{},{configuration:P(P({},e.configuration),{},{infoFormat:r.infoFormat})});case E.E0:return o()({},e,{showMarker:!0});case E.F9:return o()({},e,{showMarker:!1});case E.X_:return o()({},e,{showModalReverse:!0,reverseGeocodeData:r.reverseGeocodeData});case E.pb:return o()({},e,{showModalReverse:!1,reverseGeocodeData:void 0});case b.l:return o()({},e,{showMarker:!1,responses:[],requests:[],configuration:P(P({},e.configuration),{},{trigger:"click"})});case E.qb:var u,a={type:"Feature",properties:{},geometry:{type:"Point",coordinates:[r.request.lng,r.request.lat]}},c=r.metadata&&r.metadata.units;switch(c){case"m":default:c="meters";break;case"deg":c="degrees";break;case"mi":c="miles"}var s,l=r.metadata&&r.metadata.resolution||1,f=p()(a,(r.metadata.buffer||1)*l,c),y=(r.layer.features||[]).filter((function(e){try{return"FeatureCollection"===e.type&&e.features&&e.features.length?e.features.reduce((function(e,t){var n=t.properties.useGeodesicLines&&t.properties.geometryGeodesic?P(P({},t),{},{geometry:t.properties.geometryGeodesic}):t;return e||d()(f,l&&r.metadata.buffer&&c?p()(n,1,"meters"):n)}),!1):d()(f,l&&r.metadata.buffer&&c?p()(e,1,"meters"):e)}catch(e){return!1}})),g=e.responses||[],_="hover"===(null==e||null===(u=e.configuration)||void 0===u?void 0:u.trigger)||(null==e?void 0:e.showInMapPopup),A={response:{crs:null,features:y,totalFeatures:"unknown",type:"FeatureCollection"},queryParams:r.request,layerMetadata:r.metadata,format:"JSON"};_?(g=[].concat(S(g),[A]),s={reqId:0}):(g[e.requests.length]=A,s={reqId:e.requests.length});var R=[].concat(S(e.requests),[{}]);return h(o()({},e,{requests:R,queryableLayers:r.queryableLayers,responses:S(g)}),s,"vector");case E.lF:return o()({},e,{centerToMarker:r.status});case E.ZF:return P(P({},e),{},{configuration:P(P({},e.configuration),{},{showEmptyMessageGFI:!e.configuration.showEmptyMessageGFI})});case m.ok:return P(P({},e),{},{configuration:r.config.mapInfoConfiguration||e.configuration||{}});case E.GI:return P(P({},e),{},{formatCoord:r.format});case E.B1:return P(P({},e),{},{showCoordinateEditor:!r.showCoordinateEditor});case E.gc:return P(P({},e),{},{currentEditFeatureQuery:r.query});case E.zX:return P(P({},e),{},{configuration:P(P({},e.configuration),{},{trigger:r.trigger})});case E.Zb:return P(P({},e),{},{showInMapPopup:r.value});case v.Wz:return"cesium"===r.mapType?P(P({},e),{},{configuration:P(P({},e.configuration),{},{trigger:"click"})}):e;case E.Xp:var T;return P(P(P({},e),r.cfg),{},{configuration:P(P({},e.configuration),null===(T=r.cfg)||void 0===T?void 0:T.configuration)});default:return e}}}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/49698.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/49698.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/49698.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/49698.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/49722.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/49722.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/49722.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/49722.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/49734.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/49734.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/49734.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/49734.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/49908.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/49908.018dc26183efb561a8b1.chunk.js similarity index 53% rename from geonode_mapstore_client/static/mapstore/dist/js/49908.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/49908.018dc26183efb561a8b1.chunk.js index 1a9fd39386..39b481e080 100644 --- a/geonode_mapstore_client/static/mapstore/dist/js/49908.affd309bf2aa3f38d3a0.chunk.js +++ b/geonode_mapstore_client/static/mapstore/dist/js/49908.018dc26183efb561a8b1.chunk.js @@ -1 +1 @@ -(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[49908],{243120:(e,t,r)=>{var n={"./cesium.js":[61133,76180,75560,36882,9578,79216,89437],"./leaflet.js":[48507,96259,45243,55215,41263,24226,36882,93991,35701,49967,37161],"./openlayers.js":[434637,96259,18672,58493,52043,40353,47202,69141,74738,97892,49232,10027,38920,61332,76932,11704,72445,78471,8623,65604,85986,66920,24226,36882,13581,93546,6909,49005,3498,22467,16037],"./sink.js":[871405,5442]};function o(e){if(!r.o(n,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=n[e],o=t[0];return Promise.all(t.slice(1).map(r.e)).then((()=>r(o)))}o.keys=()=>Object.keys(n),o.id=243120,e.exports=o},461928:(e,t,r)=>{"use strict";r.d(t,{Z:()=>E});var n=r(124852),o=r.n(n),a=r(675263),i=r.n(a),l=r(747037),u=r.n(l),c=["impl","name"];function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(r,c);return o().createElement(n,f({key:a},i))}))})),e}return t=l,(r=[{key:"render",value:function(){var e=this.props.plugins.Map,t=this.props.map&&this.props.map.projection||"EPSG:3857";return this.props.map&&e?o().createElement(e,f({projectionDefs:this.props.projectionDefs,style:this.props.styleMap,id:this.props.id,zoomControl:!1,center:{x:0,y:0},zoom:1,hookRegister:this.props.hookRegister,mapStateSource:this.props.mapStateSource||this.props.id},this.props.options,this.props.map,{projection:t},this.props.eventHandlers),this.renderLayers(),this.renderTools(),this.props.children):null}}])&&m(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(o().Component);v(g,"propTypes",{id:i().string,options:i().object,map:i().object,mapStateSource:i().string,eventHandlers:i().object,styleMap:i().object,layers:i().array,hookRegister:i().object,projectionDefs:i().array,plugins:i().any,tools:i().array,getLayerProps:i().func,env:i().array}),v(g,"defaultProps",{id:"__base_map__",options:{},map:{},styleMap:{},tools:[],projectionDefs:[],eventHandlers:{onMapViewChanges:function(){},onClick:function(){},onMouseMove:function(){},onLayerLoading:function(){},onLayerError:function(){}},env:[]});const E=g},319180:(e,t,r)=>{"use strict";r.d(t,{Z:()=>y});var n=r(124852),o=r.n(n),a=r(675263),i=r.n(a);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t{"use strict";r.d(t,{Z:()=>d});var n=r(124852),o=r.n(n),a=r(855033),i=r.n(a),l=r(532425),u=r(483139),c=r(80717);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=k?["SIZE"]:[])),e)):null})).catch((function(e){return L.current?(F(!1),D(e)):null}))}}),g?o().createElement("div",{style:{position:"relative",width:"100%",height:"100%"}},o().createElement("div",{ref:t,style:{position:"relative",width:"100%",height:"100%",backgroundImage:"url(".concat(g,")"),backgroundSize:null!=M&&M.contain?"contain":"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}}),o().createElement("div",{className:"dropzone-content-image-added"},v),q):o().createElement("div",{className:"dropzone-content-image"},v,q,h&&o().createElement("div",{className:"dropzone-errors"},h))))}))},483139:(e,t,r)=>{"use strict";r.d(t,{Xq:()=>n,v9:()=>o});var n=function(e,t){return new Promise((function(r,n){var o=t||{},a=o.width,i=void 0===a?64:a,l=o.height,u=void 0===l?64:l,c=o.contain,s=o.type,f=void 0===s?"image/jpeg":s,p=o.quality,m=void 0===p?.5:p,d=new Image;d.crossOrigin="anonymous",d.onload=function(){var e=d.naturalWidth/d.naturalHeight,t=i,n=u,o=i/u,a=document.createElement("canvas");a.setAttribute("width",i),a.setAttribute("height",u),a.style.width=i+"px",a.style.height=u+"px";var l=a.getContext("2d"),s=!c&&eo?[t,t/e]:[n*e,n];l.save(),l.translate(t/2,n/2),l.drawImage(d,-s[0]/2,-s[1]/2,s[0],s[1]),l.restore();var p=a.toDataURL(f,m);r(p)},d.onerror=function(e){n(e)},d.src=e}))},o=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0,o=null===(e=t.match(/(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})|youtube\.com\/playlist\?list=/))||void 0===e?void 0:e[1];return o?new Promise((function(e){return e("http://img.youtube.com/vi/".concat(o,"/sddefault.jpg"))})):t.match(/\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i)?function(e,t){return new Promise((function(t,r){var n={},o=n.type,a=void 0===o?"image/jpeg":o,i=n.quality,l=void 0===i?.5:i,u=document.createElement("video");u.crossOrigin="anonymous";var c=document.createElement("source"),s=document.createElement("canvas");u.addEventListener("loadedmetadata",(function(){var e=u.videoWidth,t=u.videoHeight;s.setAttribute("width",e),s.setAttribute("height",t),s.style.width=e+"px",s.style.height=t+"px"}),!0),u.addEventListener("loadeddata",(function(){u.currentTime=1}),!0),u.addEventListener("seeked",(function(){s.getContext("2d").drawImage(u,0,0);try{var e=s.toDataURL(a,l);t(e)}catch(e){r(e)}}),!0),u.addEventListener("error",(function(e){r(e)}),!0),u.appendChild(c),u.setAttribute("src",e)}))}(t).then((function(e){return n(e,r)})):new Promise((function(e,t){return t("Cannot create a thumbnail from the provided source")}))}},843683:(e,t,r)=>{"use strict";r.d(t,{Z:()=>Re});var n=r(124852),o=r.n(n),a=r(480681),i=r(507412),l=r(303744),u=r(984596),c=r.n(u),s=r(441609),f=r.n(s),p=r(730381),m=r.n(p),d=r(868195),y=r(675263),b=r.n(y),v=function(e){var t=e.head,r=e.body,n=null==t?void 0:t.map((function(e){return e.value&&o().createElement(o().Fragment,null,o().createElement("th",null,e.value))})),a=null==r?void 0:r.map((function(e){return o().createElement("tr",null,t.map((function(t){return o().createElement("td",null,e[t.key])})))}));return o().createElement("table",{className:"table"},o().createElement("thead",null,o().createElement("tr",null,n)),o().createElement("tbody",null,a))};v.propTypes={head:b().array,body:b().array},v.defaultProps={head:[],body:[]};const h=v;var g=function(e){var t=function(e){if(e){var t=o().createElement(d.FormattedMessage,{id:"gnhome.na",defaultMessage:"N/A"});return{header:[{value:"Name",key:"name"},{value:"Label",key:"label"},{value:"Description",key:"description"}],rows:e.map((function(e){return{name:e.attribute,label:e.attribute_label||t,description:e.description||t}}))}}return{header:[],rows:[]}}(e.fields);return o().createElement("div",{className:"gn-details-info-table"},o().createElement(h,{head:t.header,body:t.rows}))};g.propTypes={fields:b().array},g.defaultProps={fields:[]};const E=g;var w=function(e){var t=e.fields,r=e.resourceTypesInfo;return t.map((function(e,t){var n,a=(null!==(n=r[e.resource_type])&&void 0!==n?n:{}).icon;return o().createElement("div",{key:t,className:"gn-details-info-fields"},o().createElement("div",{className:"gn-details-info-row linked-resources"},o().createElement(i.Z,{name:a}),o().createElement("a",{key:e.pk,href:e.detail_url},e.title)))}))};w.propTypes={fields:b().array,resourceTypesInfo:b().object},w.defaultProps={fields:[],resourceTypesInfo:{}};const O=w;var j=r(805346),S=["Component"];function P(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function T(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0})),c=null==u||null===(t=u[0])||void 0===t?void 0:t.id;return o().createElement(a.Tabs,{defaultActiveKey:c,bsStyle:"pills",className:"gn-details-info tabs-underline"},u.map((function(e,t){var r=e.Component,n=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,S);return o().createElement(a.Tab,{key:t,eventKey:null==n?void 0:n.id,title:o().createElement(_,{field:n})},o().createElement(r,{fields:null==n?void 0:n.items,formatHref:i,resourceTypesInfo:l}))})))};var R=r(51605),U=r(815135),L=r(535721),z=r(23279),H=r.n(z),F=r(774855),q=r.n(F),B=r(71268),Y=r(834065),G=r(877593),W=r(748759);function $(e){return $="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$(e)}var V=["src","style","icon"];function K(){return K=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,V),s=(t=(0,n.useState)(),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,l=[],u=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return ee(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ee(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),f=s[0],p=s[1];return(0,n.useEffect)((function(){a&&!f&&p(!0)}),[a]),o().createElement(o().Fragment,null,a?o().createElement("img",K({},c,{src:a,onLoad:function(){return p(!1)},onError:function(){return p(!1)},style:X(X({},l),f&&{backgroundColor:"transparent"})})):o().createElement("div",{className:"card-img-placeholder",style:X({},l)},o().createElement(i.Z,{name:u})))},re=function(e){var t=e.resource,r=e.getTypesInfo,n=void 0===r?L.NN:r,a=e.loading;if(!e.enabled)return null;var l=n(),u=t&&(l[t.subtype]||l[t.resource_type])||{},c=u.formatEmbedUrl,s=void 0===c?function(e){return null==e?void 0:e.embed_url}:c,f=u.icon,p=(null==t?void 0:t.embed_url)&&s(t);return o().createElement("div",{className:"gn-details-panel-preview"},o().createElement("div",{className:"gn-loader-placeholder",style:{position:"absolute",width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"}},o().createElement(i.Z,{name:f})),p?o().createElement("iframe",{key:p,src:p,style:{position:"absolute",width:"100%",height:"100%"},frameBorder:"0"}):p?void 0:o().createElement(te,{src:null==t?void 0:t.thumbnail_url,icon:f,style:{position:"absolute",width:"100%",height:"100%",top:0,left:0,backgroundColor:"inherit"}}),a&&o().createElement("div",{className:"gn-details-panel-preview-loader",style:{position:"absolute",width:"100%",height:"100%",top:0,left:0,display:"flex",alignItems:"center",justifyContent:"center"}},o().createElement(R.Z,{animation:"border",role:"status"},o().createElement("span",{className:"sr-only"},"Loading resource detail..."))))};var ne=r(314068);function oe(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r{"use strict";r.d(t,{Z:()=>i});var n=r(124852),o=r(986267);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r{"use strict";r.d(t,{Z:()=>c});var n=r(49977),o=r(441609),a=r.n(o),i=r(337326),l=r(643892),u=r(76907);const c={gnGetLinkedResources:function(e,t){return e.ofType(l.Zf).filter((function(e){var r,n;return!e.pending&&(null===(r=e.data)||void 0===r?void 0:r.pk)&&a()(null===(n=(0,u.yK)(t.getState()))||void 0===n?void 0:n.linkedResources)})).switchMap((function(e){return n.Observable.defer((function(){return(0,i.NH)(e.data.pk).then((function(e){return e})).catch((function(){return[]}))})).switchMap((function(e){return n.Observable.of((0,l.QN)({linkedResources:e}))}))}))}}}}]); \ No newline at end of file +(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[49908],{243120:(e,t,r)=>{var n={"./cesium.js":[61133,76180,75560,36882,9578,79216,89437],"./leaflet.js":[48507,96259,45243,55215,41263,24226,36882,93991,35701,49967,37161],"./openlayers.js":[434637,96259,18672,58493,52043,40353,47202,69141,74738,97892,49232,10027,38920,61332,76932,11704,72445,78471,8623,65604,85986,66920,24226,36882,13581,93546,6909,49005,3498,22467,16037],"./sink.js":[871405,5442]};function o(e){if(!r.o(n,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=n[e],o=t[0];return Promise.all(t.slice(1).map(r.e)).then((()=>r(o)))}o.keys=()=>Object.keys(n),o.id=243120,e.exports=o},461928:(e,t,r)=>{"use strict";r.d(t,{Z:()=>E});var n=r(124852),o=r.n(n),a=r(675263),i=r.n(a),l=r(747037),u=r.n(l),c=["impl","name"];function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(r,c);return o().createElement(n,f({key:a},i))}))})),e}return t=l,(r=[{key:"render",value:function(){var e=this.props.plugins.Map,t=this.props.map&&this.props.map.projection||"EPSG:3857";return this.props.map&&e?o().createElement(e,f({projectionDefs:this.props.projectionDefs,style:this.props.styleMap,id:this.props.id,zoomControl:!1,center:{x:0,y:0},zoom:1,hookRegister:this.props.hookRegister,mapStateSource:this.props.mapStateSource||this.props.id},this.props.options,this.props.map,{projection:t},this.props.eventHandlers),this.renderLayers(),this.renderTools(),this.props.children):null}}])&&m(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(o().Component);v(g,"propTypes",{id:i().string,options:i().object,map:i().object,mapStateSource:i().string,eventHandlers:i().object,styleMap:i().object,layers:i().array,hookRegister:i().object,projectionDefs:i().array,plugins:i().any,tools:i().array,getLayerProps:i().func,env:i().array}),v(g,"defaultProps",{id:"__base_map__",options:{},map:{},styleMap:{},tools:[],projectionDefs:[],eventHandlers:{onMapViewChanges:function(){},onClick:function(){},onMouseMove:function(){},onLayerLoading:function(){},onLayerError:function(){}},env:[]});const E=g},319180:(e,t,r)=>{"use strict";r.d(t,{Z:()=>y});var n=r(124852),o=r.n(n),a=r(675263),i=r.n(a);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t{"use strict";r.d(t,{Z:()=>d});var n=r(124852),o=r.n(n),a=r(855033),i=r.n(a),l=r(532425),u=r(483139),c=r(80717);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=k?["SIZE"]:[])),e)):null})).catch((function(e){return L.current?(F(!1),D(e)):null}))}}),g?o().createElement("div",{style:{position:"relative",width:"100%",height:"100%"}},o().createElement("div",{ref:t,style:{position:"relative",width:"100%",height:"100%",backgroundImage:"url(".concat(g,")"),backgroundSize:null!=M&&M.contain?"contain":"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}}),o().createElement("div",{className:"dropzone-content-image-added"},v),q):o().createElement("div",{className:"dropzone-content-image"},v,q,h&&o().createElement("div",{className:"dropzone-errors"},h))))}))},483139:(e,t,r)=>{"use strict";r.d(t,{Xq:()=>n,v9:()=>o});var n=function(e,t){return new Promise((function(r,n){var o=t||{},a=o.width,i=void 0===a?64:a,l=o.height,u=void 0===l?64:l,c=o.contain,s=o.type,f=void 0===s?"image/jpeg":s,p=o.quality,m=void 0===p?.5:p,d=new Image;d.crossOrigin="anonymous",d.onload=function(){var e=d.naturalWidth/d.naturalHeight,t=i,n=u,o=i/u,a=document.createElement("canvas");a.setAttribute("width",i),a.setAttribute("height",u),a.style.width=i+"px",a.style.height=u+"px";var l=a.getContext("2d"),s=!c&&eo?[t,t/e]:[n*e,n];l.save(),l.translate(t/2,n/2),l.drawImage(d,-s[0]/2,-s[1]/2,s[0],s[1]),l.restore();var p=a.toDataURL(f,m);r(p)},d.onerror=function(e){n(e)},d.src=e}))},o=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0,o=null===(e=t.match(/(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})|youtube\.com\/playlist\?list=/))||void 0===e?void 0:e[1];return o?new Promise((function(e){return e("http://img.youtube.com/vi/".concat(o,"/sddefault.jpg"))})):t.match(/\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i)?function(e,t){return new Promise((function(t,r){var n={},o=n.type,a=void 0===o?"image/jpeg":o,i=n.quality,l=void 0===i?.5:i,u=document.createElement("video");u.crossOrigin="anonymous";var c=document.createElement("source"),s=document.createElement("canvas");u.addEventListener("loadedmetadata",(function(){var e=u.videoWidth,t=u.videoHeight;s.setAttribute("width",e),s.setAttribute("height",t),s.style.width=e+"px",s.style.height=t+"px"}),!0),u.addEventListener("loadeddata",(function(){u.currentTime=1}),!0),u.addEventListener("seeked",(function(){s.getContext("2d").drawImage(u,0,0);try{var e=s.toDataURL(a,l);t(e)}catch(e){r(e)}}),!0),u.addEventListener("error",(function(e){r(e)}),!0),u.appendChild(c),u.setAttribute("src",e)}))}(t).then((function(e){return n(e,r)})):new Promise((function(e,t){return t("Cannot create a thumbnail from the provided source")}))}},843683:(e,t,r)=>{"use strict";r.d(t,{Z:()=>xe});var n=r(124852),o=r.n(n),a=r(480681),i=r(507412),l=r(303744),u=r(984596),c=r.n(u),s=r(441609),f=r.n(s),p=r(730381),m=r.n(p),d=r(868195),y=r(675263),b=r.n(y),v=function(e){var t=e.head,r=e.body,n=null==t?void 0:t.map((function(e){return e.value&&o().createElement(o().Fragment,null,o().createElement("th",null,e.value))})),a=null==r?void 0:r.map((function(e){return o().createElement("tr",null,t.map((function(t){return o().createElement("td",null,e[t.key])})))}));return o().createElement("table",{className:"table"},o().createElement("thead",null,o().createElement("tr",null,n)),o().createElement("tbody",null,a))};v.propTypes={head:b().array,body:b().array},v.defaultProps={head:[],body:[]};const h=v;var g=function(e){var t=function(e){if(e){var t=o().createElement(d.FormattedMessage,{id:"gnhome.na",defaultMessage:"N/A"});return{header:[{value:"Name",key:"name"},{value:"Label",key:"label"},{value:"Description",key:"description"}],rows:e.map((function(e){return{name:e.attribute,label:e.attribute_label||t,description:e.description||t}}))}}return{header:[],rows:[]}}(e.fields);return o().createElement("div",{className:"gn-details-info-table"},o().createElement(h,{head:t.header,body:t.rows}))};g.propTypes={fields:b().array},g.defaultProps={fields:[]};const E=g;var w=function(e){var t=e.fields,r=e.resourceTypesInfo;return t.map((function(e,t){var n,a=(null!==(n=r[e.resource_type])&&void 0!==n?n:{}).icon;return o().createElement("div",{key:t,className:"gn-details-info-fields"},o().createElement("div",{className:"gn-details-info-row linked-resources"},o().createElement(i.Z,{name:a}),o().createElement("a",{key:e.pk,href:e.detail_url},e.title)))}))};w.propTypes={fields:b().array,resourceTypesInfo:b().object},w.defaultProps={fields:[],resourceTypesInfo:{}};const O=w;var j=r(805346),S=["Component"];function P(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function T(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0})),c=null==u||null===(t=u[0])||void 0===t?void 0:t.id;return o().createElement(a.Tabs,{defaultActiveKey:c,bsStyle:"pills",className:"gn-details-info tabs-underline"},u.map((function(e,t){var r=e.Component,n=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,S);return o().createElement(a.Tab,{key:t,eventKey:null==n?void 0:n.id,title:o().createElement(_,{field:n})},o().createElement(r,{fields:null==n?void 0:n.items,formatHref:i,resourceTypesInfo:l}))})))};var R=r(51605),U=r(815135),L=r(535721),z=r(23279),H=r.n(z),F=r(774855),q=r.n(F),B=r(71268),Y=r(834065),G=r(877593),W=r(748759);function $(e){return $="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$(e)}var V=["src","style","icon"];function K(){return K=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,V),s=(t=(0,n.useState)(),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,l=[],u=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return J(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?J(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),f=s[0],p=s[1];return(0,n.useEffect)((function(){a&&!f&&p(!0)}),[a]),o().createElement(o().Fragment,null,a?o().createElement("img",K({},c,{src:a,onLoad:function(){return p(!1)},onError:function(){return p(!1)},style:X(X({},l),f&&{backgroundColor:"transparent"})})):o().createElement("div",{className:"card-img-placeholder",style:X({},l)},o().createElement(i.Z,{name:u})))},te=function(e){var t=e.resource,r=e.getTypesInfo,n=void 0===r?L.NN:r,a=e.loading;if(!e.enabled)return null;var l=n(),u=t&&(l[t.subtype]||l[t.resource_type])||{},c=u.formatEmbedUrl,s=void 0===c?function(e){return null==e?void 0:e.embed_url}:c,f=u.icon,p=(null==t?void 0:t.embed_url)&&s(t);return o().createElement("div",{className:"gn-details-panel-preview"},o().createElement("div",{className:"gn-loader-placeholder",style:{position:"absolute",width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"}},o().createElement(i.Z,{name:f})),p?o().createElement("iframe",{key:p,src:p,style:{position:"absolute",width:"100%",height:"100%"},frameBorder:"0"}):p?void 0:o().createElement(ee,{src:null==t?void 0:t.thumbnail_url,icon:f,style:{position:"absolute",width:"100%",height:"100%",top:0,left:0,backgroundColor:"inherit"}}),a&&o().createElement("div",{className:"gn-details-panel-preview-loader",style:{position:"absolute",width:"100%",height:"100%",top:0,left:0,display:"flex",alignItems:"center",justifyContent:"center"}},o().createElement(R.Z,{animation:"border",role:"status"},o().createElement("span",{className:"sr-only"},"Loading resource detail..."))))};var re=r(314068);function ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r{"use strict";r.d(t,{Z:()=>i});var n=r(124852),o=r(986267);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r{"use strict";r.d(t,{Z:()=>c});var n=r(49977),o=r(441609),a=r.n(o),i=r(337326),l=r(643892),u=r(76907);const c={gnGetLinkedResources:function(e,t){return e.ofType(l.Zf).filter((function(e){var r,n;return!e.pending&&(null===(r=e.data)||void 0===r?void 0:r.pk)&&a()(null===(n=(0,u.yK)(t.getState()))||void 0===n?void 0:n.linkedResources)})).switchMap((function(e){return n.Observable.defer((function(){return(0,i.NH)(e.data.pk).then((function(e){return e})).catch((function(){return[]}))})).switchMap((function(e){return n.Observable.of((0,l.QN)({linkedResources:e}))}))}))}}}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/49967.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/49967.018dc26183efb561a8b1.chunk.js similarity index 92% rename from geonode_mapstore_client/static/mapstore/dist/js/49967.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/49967.018dc26183efb561a8b1.chunk.js index d4142083d4..acbd01da97 100644 --- a/geonode_mapstore_client/static/mapstore/dist/js/49967.affd309bf2aa3f38d3a0.chunk.js +++ b/geonode_mapstore_client/static/mapstore/dist/js/49967.018dc26183efb561a8b1.chunk.js @@ -1 +1 @@ -(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[49967],{791753:(e,t,r)=>{"use strict";r.d(t,{Z:()=>I});var o=r(675263),n=r.n(o),a=r(124852),i=r.n(a),p=r(610928),s=r.n(p),c=r(414293),u=r.n(c),l=r(845243),f=r.n(l),d=(r(921787),r(451172),r(552259));function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function w(e){for(var t=1;t0){var t=this._map.latLngToContainerPoint(this._markers[0].getLatLng()),r=this._map.latLngToContainerPoint(this._markers[this._markers.length-1].getLatLng()),o=new(f().Marker)(e,{icon:this.options.icon,zIndexOffset:2*this.options.zIndexOffset}),n=this._map.latLngToContainerPoint(o.getLatLng());return Math.min(t.distanceTo(n),r.distanceTo(n))}return 1/0};var j=r(727418),S=r(986267),L=S.reproject,C=S.reprojectBbox,E=S.calculateCircleCoordinates,D=S.reprojectGeoJson,M=r(680379).pointToLayer,G=Math.PI/180,k=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"EPSG:4326";if("EPSG:4326"===r||void 0===e)return{center:t,projection:r,radius:e};var o=L({x:t.lng,y:t.lat},r,"EPSG:4326");if(void 0===e)return{center:o,projection:r,radius:e};var n=L([t.lng+e,t.lat],r,"EPSG:4326");return{center:o,projection:"EPSG:4326",radius:Math.sqrt(Math.pow(o.x-n.x,2)+Math.pow(o.y-n.y,2))*Math.cos(G*o.y)*40075017/360}},_=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(i,e);var t,r,o,n,a=(o=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=b(o);if(n){var r=b(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}(this,e)});function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o0&&r.addData(e.convertFeaturesPolygonToPoint(t.features,e.props.drawMethod)),e.drawLayer=r})),P(h(e),"addGeojsonLayer",(function(t){var r=t.features,o=t.projection,n=t.style;e.clean();var a=f().geoJson(r,{style:function(e){return e.style||n},pointToLayer:function(e,t){var r=L({x:t.lng,y:t.lat},o,"EPSG:4326");return M(f().latLng(r.y,r.x),e,n)}});e.drawLayer=a.addTo(e.props.map)})),P(h(e),"replaceFeatures",(function(t){e.drawLayer?(e.drawLayer.clearLayers(),"Circle"===e.props.drawMethod?(e.drawLayer.options.pointToLayer=function(e,t){var r=k(e.radius,t,e.projection),o=r.center,n=r.radius;return f().circle(o,n||5)},e.drawLayer.options.style={color:"#ffcc33",opacity:1,weight:3,fillColor:"#ffffff",fillOpacity:.2,clickable:!1}):e.drawLayer.options.pointToLayer=function(e,r){var o=L({x:r.lng,y:r.lat},t.options&&t.options.featureProjection||"EPSG:4326","EPSG:4326");return M(f().latLng(o.y,o.x),e,t.style)},e.drawLayer.addData(e.convertFeaturesPolygonToPoint(t.features,e.props.drawMethod))):e.addGeojsonLayer({features:t.features,projection:t.options&&t.options.featureProjection||"EPSG:4326",style:t.style&&t.style[t.drawMethod]||t.style})})),P(h(e),"endDrawing",(function(t){e.replaceFeatures(t);var r=s()(t.features);"Circle"!==e.props.drawMethod||!r||u()(r.center)||u()(r.radius)?r&&e.props.onEndDrawing(r,e.props.drawOwner):e.props.onEndDrawing(w(w({},r),{},{coordinates:E(r.center,r.radius,100)}),e.props.drawOwner)})),P(h(e),"addDrawInteraction",(function(t){e.removeAllInteractions(),"Point"===t.drawMethod||"MultiPoint"===t.drawMethod?e.addGeojsonLayer({features:t.features,projection:t.options&&t.options.featureProjection||"EPSG:4326",style:t.style&&t.style[t.drawMethod]||t.style}):e.addLayer(t),e.props.map.on("draw:created",e.onDrawCreated,h(e)),e.props.map.on("draw:drawstart",e.onDrawStart,h(e)),"LineString"===t.drawMethod||"Bearing"===t.drawMethod||"MultiLineString"===t.drawMethod?e.drawControl=new(f().Draw.Polyline)(e.props.map,{shapeOptions:{color:"#000000",weight:2,fillColor:"#ffffff",fillOpacity:.2},showLength:!1,repeatMode:!0,icon:new(f().DivIcon)({iconSize:new(f().Point)(8,8),className:"leaflet-div-icon leaflet-editing-icon"}),touchIcon:new(f().DivIcon)({iconSize:new(f().Point)(8,8),className:"leaflet-div-icon leaflet-editing-icon leaflet-touch-icon"})}):"Polygon"===t.drawMethod||"MultiPolygon"===t.drawMethod?e.drawControl=new(f().Draw.Polygon)(e.props.map,{shapeOptions:{color:"#000000",weight:2,fillColor:"#ffffff",fillOpacity:.2,dashArray:[5,5],guidelineDistance:5},allowIntersection:!1,showLength:!1,showArea:!1,repeatMode:!0,icon:new(f().DivIcon)({iconSize:new(f().Point)(8,8),className:"leaflet-div-icon leaflet-editing-icon"}),touchIcon:new(f().DivIcon)({iconSize:new(f().Point)(8,8),className:"leaflet-div-icon leaflet-editing-icon leaflet-touch-icon"})}):"BBOX"===t.drawMethod?e.drawControl=new(f().Draw.Rectangle)(e.props.map,{draw:!1,shapeOptions:{color:"#000000",weight:2,fillColor:"#ffffff",fillOpacity:.2,dashArray:[5,5]},repeatMode:!0,icon:new(f().DivIcon)({iconSize:new(f().Point)(8,8),className:"leaflet-div-icon leaflet-editing-icon"}),touchIcon:new(f().DivIcon)({iconSize:new(f().Point)(8,8),className:"leaflet-div-icon leaflet-editing-icon leaflet-touch-icon"})}):"Circle"===t.drawMethod?e.drawControl=new(f().Draw.Circle)(e.props.map,{shapeOptions:{color:"#000000",weight:2,fillColor:"#ffffff",fillOpacity:.2,dashArray:[5,5]},showRadius:!1,repeatMode:!0}):"Point"!==t.drawMethod&&"MultiPoint"!==t.drawMethod||(e.drawControl=new(f().Draw.Marker)(e.props.map,{shapeOptions:{color:"#000000",weight:2,fillColor:"#ffffff",fillOpacity:.2},repeatMode:!0})),e.props.map.doubleClickZoom&&e.props.map.doubleClickZoom.disable(),e.drawControl.enable()})),P(h(e),"addDrawOrEditInteractions",(function(t){var r=[];t.features.map((function(e){var t;e&&e.geometry&&e.geometry.type&&!(0,d.isSimpleGeomType)(e.geometry.type)&&("GeometryCollection"===e.geometry.type?(t=e.geometry.geometries.map((function(t){return t.coordinates.map((function(r,o){return{type:"Feature",properties:w({},e.properties),id:t.type+o,geometry:{coordinates:r,type:(0,d.getSimpleGeomType)(t.type)}}}))})),r.push({type:"FeatureCollection",features:t})):(t=e.geometry.coordinates.map((function(t,r){return{type:"Feature",properties:w({},e.properties),id:e.geometry.type+r,geometry:{coordinates:t,type:(0,d.getSimpleGeomType)(e.geometry.type)}}})),r.push({type:"FeatureCollection",features:t})))}));var o=j({},t,{features:r.length>0?r:[{}]});e.drawLayer?(e.drawLayer.clearLayers(),e.drawLayer.addData(e.convertFeaturesPolygonToPoint(o.features,o.drawMethod))):e.addGeojsonLayer({features:t.features&&t.options.featureProjection&&"EPSG:4326"!==t.options.featureProjection?t.features.map((function(e){return D(e,t.options.featureProjection,"EPSG:4326")})):t.features,projection:t.options&&t.options.featureProjection||"EPSG:4326",style:t.style&&t.style[t.drawMethod]||t.style}),t.options.editEnabled&&e.addEditInteraction(o),t.options.drawEnabled&&e.addDrawInteraction(o)})),P(h(e),"addEditInteraction",(function(t){e.clean(),e.addGeojsonLayer({features:t.features,projection:t.options&&t.options.featureProjection||"EPSG:4326",style:j({},t.style,{poly:{icon:new(f().DivIcon)({iconSize:new(f().Point)(8,8),className:"leaflet-div-icon leaflet-editing-icon"}),touchIcon:new(f().DivIcon)({iconSize:new(f().Point)(8,8),className:"leaflet-div-icon leaflet-editing-icon leaflet-touch-icon"})}})});var r=e.drawLayer.getLayers();setTimeout((function(){r.forEach((function(r){r.getLayers&&r.getLayers()&&r.getLayers().length?r.getLayers().forEach((function(r){r.on("edit",(function(r){return e.onUpdateGeom(r.target,t)})),r.on("moveend",(function(r){return e.onUpdateGeom(r.target,t)})),r.editing&&r.editing.enable()})):(r.on("edit",(function(r){return e.onUpdateGeom(r.target,t)})),r.on("moveend",(function(r){return e.onUpdateGeom(r.target,t)})),r.editing&&r.editing.enable())}))}),0),e.editControl=new(f().Control.Draw)({edit:{featureGroup:e.drawLayer,poly:{allowIntersection:!1},edit:!0},draw:{polygon:{allowIntersection:!1,showArea:!0}}}),e.props.map.doubleClickZoom&&e.props.map.doubleClickZoom.disable()})),P(h(e),"removeAllInteractions",(function(){e.removeEditInteraction(),e.removeDrawInteraction()})),P(h(e),"removeDrawInteraction",(function(){null!==e.drawControl&&void 0!==e.drawControl&&(e.props.options&&e.props.options.stopAfterDrawing&&(e.drawControl.setOptions({repeatMode:!1}),e.props.onDrawStopped()),e.drawControl.disable(),e.drawControl=null,e.props.map.off("draw:created",e.onDrawCreated,h(e)),e.props.map.off("draw:drawstart",e.onDrawStart,h(e)),e.props.map.doubleClickZoom&&e.props.map.doubleClickZoom.enable())})),P(h(e),"removeEditInteraction",(function(){e.drawLayer&&(e.drawLayer.getLayers().forEach((function(e){e.getLayers&&e.getLayers()&&e.getLayers().length?e.getLayers().forEach((function(e){e.off("edit"),e.off("moveend"),e.editing&&e.editing.disable()})):(e.off("edit"),e.off("moveend"),e.editing&&e.editing.disable())})),e.editControl=null),e.props.map.doubleClickZoom&&e.props.map.doubleClickZoom.enable()})),P(h(e),"cleanAndStop",(function(){e.removeAllInteractions(),e.drawLayer&&(e.drawLayer.clearLayers(),e.props.map.removeLayer(e.drawLayer),e.drawLayer=null)})),P(h(e),"clean",(function(){e.removeEditInteraction(),e.removeDrawInteraction(),e.drawLayer&&(e.drawLayer.clearLayers(),e.props.map.removeLayer(e.drawLayer),e.drawLayer=null)})),P(h(e),"convertFeaturesPolygonToPoint",(function(e,t){return"Circle"===t?e.map((function(e){var t=void 0!==e.center&&void 0!==e.radius?k(e.radius,{lat:e.center.y,lng:e.center.x},e.projection):e,r=t.center,o=t.projection,n=t.radius;return w(w({},e),{},{coordinates:r?[r.x,r.y]:e.coordinates,center:r||e.center,projection:o||e.projection,radius:void 0!==n?n:e.radius,type:"Point"})})):e})),P(h(e),"convertFeaturesToGeoJson",(function(t,r){var o;if((0,d.isSimpleGeomType)(r.drawMethod))o=t.toGeoJSON().geometry;else{if("GeometryCollection"===r.drawMethod)return{type:"GeometryCollection",geometries:e.drawLayer.getLayers().map((function(e){return e.toGeoJSON()})).map((function(e){return"FeatureCollection"===e.type?{type:"Multi"+e.features[0].geometry.type,coordinates:e.features.map((function(e){return e.geometry.coordinates}))}:{type:e.geometry.type,coordinates:e.geometry.coordinates}}))};var n=e.drawLayer.getLayers().map((function(e){return e.toGeoJSON()}));o={type:r.drawMethod,coordinates:n.reduce((function(e,t){return e.concat([t.geometry.coordinates])}),[])}}return j({},t.toGeoJSON(),{geometry:o})})),e}return t=i,(r=[{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=!(!this.props.messages&&!this.context.messages)&&this.context.messages.drawLocal;if(t&&(f().drawLocal=t),this.props.drawStatus!==e.drawStatus||"replace"===e.drawStatus||this.props.drawMethod!==e.drawMethod||this.props.features!==e.features)switch(e.drawStatus){case"create":this.addGeojsonLayer({features:e.features,projection:e.options&&e.options.featureProjection||"EPSG:4326",style:e.style&&e.style[e.drawMethod]||e.style});break;case"start":this.addDrawInteraction(e);break;case"drawOrEdit":this.addDrawOrEditInteractions(e);break;case"stop":this.removeAllInteractions();break;case"replace":this.replaceFeatures(e);break;case"clean":this.cleanAndStop();break;case"endDrawing":this.endDrawing(e);break;default:return}}},{key:"render",value:function(){return null}}])&&g(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(i().Component);P(_,"displayName","DrawSupport"),P(_,"propTypes",{map:n().object,drawOwner:n().string,drawStatus:n().string,drawMethod:n().string,options:n().object,features:n().array,onChangeDrawingStatus:n().func,onGeometryChanged:n().func,onDrawStopped:n().func,onEndDrawing:n().func,messages:n().object,style:n().object}),P(_,"defaultProps",{map:null,drawOwner:null,drawStatus:null,drawMethod:null,features:null,options:{stopAfterDrawing:!0},onChangeDrawingStatus:function(){},onGeometryChanged:function(){},onDrawStopped:function(){},onEndDrawing:function(){},style:{color:"#ffcc33",opacity:1,weight:3,fillColor:"#ffffff",fillOpacity:.2,clickable:!1,editing:{fill:1}}});const I=_},967465:(e,t,r)=>{"use strict";r.d(t,{Z:()=>j});var o=r(124852),n=r.n(o),a=r(180307),i=r.n(a),p=r(675263),s=r.n(p),c=r(845243),u=r.n(c),l=r(747037),f=r.n(l),d=r(925064),y=r(821751);function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function g(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{}).target,r=(void 0===t?{}:t).options,o=(void 0===r?{}:r).id;o&&e.props.onPopupClose(o)})),P(h(e),"preparePopups",(function(){var t=e.props,r=t.popups,o=void 0===r?[]:r,n=t.map,a=e.props.map.getSize();return(e._popups||[]).forEach((function(t){var r=t.popup;r.off("remove",e.popupClose),r&&e.props.map.removeLayer(r)})),e._popups=o.map((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=.9*a.x,o=.9*a.y,i=t.id,p=t.position.coordinates,s=t.component,c=t.content,l=t.className,f=t.maxWidth,y=void 0===f?r:f,m=t.maxHeight,g=void 0===m?o:m,v=t.autoPan,h=void 0===v||v,b=t.offset,O=void 0===b?[0,7]:b,j=y>r?r:y,S=g>o?o:g,L=d.fH(i,l);L.setAttribute("style","max-width: ".concat(j,"px; max-height: ").concat(S,"px")),d.R3(L,c);var C=u().popup({id:i,autoClose:!1,closeOnClick:!1,autoPan:h,autoPanPadding:u().point(70,70),maxWidth:j,maxHeight:S,className:"ms-leaflet-popup",offset:O}).setContent(L);return C.once("remove",e.popupClose),s&&function(e,t){var r=new MutationObserver((function(){e.update()}));e.once("remove",(function(){r&&r.disconnect(),r=null})),r.observe(t,{attributes:!0,childList:!0,subtree:!0})}(C,L),C.setLatLng(p),n.addLayer(C),function(e){for(var t=1;t{"use strict";r.r(t),r.d(t,{IDENTIFY_POPUP:()=>O,default:()=>j});var o=r(124852),n=r.n(o),a=r(173014),i=r(11196),p=r(867076),s=r(171703),c=r(22222),u=r(307877),l=r(921914),f=r(542872),d=r(701469),y=r.n(d),m=r(352353),w=r.n(m),g=r(979870),v=r(800827),h=(0,p.compose)((0,s.connect)((0,c.P1)(u.Qf,(function(e){return{index:e}})),{setIndex:l.oO}),(0,p.defaultProps)({index:0,responses:[]})),b=(0,c.P1)([u.q7,u.o9,u.OK,u.us,u.x0,v.hp,u.vR],(function(e,t,r,o,n,a,i){return{responses:e,validResponses:t,requests:r,format:o,showEmptyMessageGFI:n,missingResponses:(r||[]).length-(e||[]).length,renderValidOnly:a,loaded:i}}));const P=(0,p.compose)((0,s.connect)(b),(0,p.defaultProps)({responses:[],container:function(e){var t=e.index,r=e.children;return n().createElement(n().Fragment,null,y()(r)&&r[t]||r)},header:g.Z}),h,i.Yy,i.mI,(0,a.Z)((function(e){var t=e.loaded;return w()(t)})))(f.Z);var O="identify";const j={identify:P}},532425:(e,t,r)=>{"use strict";r.d(t,{Z:()=>d});var o=r(675263),n=r.n(o),a=r(124852),i=r.n(a);function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function c(e){for(var t=1;t100?"full":e>40?"medium":"small"},f=function(e){var t=e.size,r=e.style,o=void 0===r?{}:r,n=e.className,a=e.hidden;return i().createElement("div",{className:n,style:c({width:t,height:t,overflow:"hidden"},o)},!a&&i().createElement("div",{className:"mapstore-".concat(l(t),"-size-loader")}))};f.propTypes={size:n().number,className:n().string,style:n().object};const d=f},925064:(e,t,r)=>{"use strict";r.d(t,{fH:()=>a,FP:()=>i,R3:()=>p});var o=r(455877),n=r.n(o),a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n()(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ms-map-popup",r=document.createElement("div");return r.setAttribute("id",e+"-map-popup"),r.setAttribute("class",t),r},i=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").startsWith("<")},p=function(e,t){if(!t)return e;if(t instanceof Node){var r=document.createDocumentFragment();r.appendChild(t),e.appendChild(r)}else i(t)?e.innerHTML=t:e.append(document.createTextNode(String(t)));return e}},531351:e=>{var t=Array.prototype.reverse;e.exports=function(e){return null==e?e:t.call(e)}},410240:(e,t,r)=>{var o=r(829750),n=r(880531),a=r(640554),i=r(479833);e.exports=function(e,t,r){return e=i(e),r=null==r?0:o(a(r),0,e.length),t=n(t),e.slice(r,r+t.length)==t}}}]); \ No newline at end of file +(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[49967],{791753:(e,t,r)=>{"use strict";r.d(t,{Z:()=>I});var o=r(675263),n=r.n(o),a=r(124852),i=r.n(a),p=r(610928),s=r.n(p),c=r(414293),u=r.n(c),l=r(845243),f=r.n(l),d=(r(921787),r(451172),r(552259));function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function w(e){for(var t=1;t0){var t=this._map.latLngToContainerPoint(this._markers[0].getLatLng()),r=this._map.latLngToContainerPoint(this._markers[this._markers.length-1].getLatLng()),o=new(f().Marker)(e,{icon:this.options.icon,zIndexOffset:2*this.options.zIndexOffset}),n=this._map.latLngToContainerPoint(o.getLatLng());return Math.min(t.distanceTo(n),r.distanceTo(n))}return 1/0};var j=r(727418),S=r(986267),L=S.reproject,C=S.reprojectBbox,E=S.calculateCircleCoordinates,D=S.reprojectGeoJson,M=r(680379).pointToLayer,G=Math.PI/180,k=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"EPSG:4326";if("EPSG:4326"===r||void 0===e)return{center:t,projection:r,radius:e};var o=L({x:t.lng,y:t.lat},r,"EPSG:4326");if(void 0===e)return{center:o,projection:r,radius:e};var n=L([t.lng+e,t.lat],r,"EPSG:4326");return{center:o,projection:"EPSG:4326",radius:Math.sqrt(Math.pow(o.x-n.x,2)+Math.pow(o.y-n.y,2))*Math.cos(G*o.y)*40075017/360}},_=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(i,e);var t,r,o,n,a=(o=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=b(o);if(n){var r=b(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}(this,e)});function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o0&&r.addData(e.convertFeaturesPolygonToPoint(t.features,e.props.drawMethod)),e.drawLayer=r})),P(h(e),"addGeojsonLayer",(function(t){var r=t.features,o=t.projection,n=t.style;e.clean();var a=f().geoJson(r,{style:function(e){return e.style||n},pointToLayer:function(e,t){var r=L({x:t.lng,y:t.lat},o,"EPSG:4326");return M(f().latLng(r.y,r.x),e,n)}});e.drawLayer=a.addTo(e.props.map)})),P(h(e),"replaceFeatures",(function(t){e.drawLayer?(e.drawLayer.clearLayers(),"Circle"===e.props.drawMethod?(e.drawLayer.options.pointToLayer=function(e,t){var r=k(e.radius,t,e.projection),o=r.center,n=r.radius;return f().circle(o,n||5)},e.drawLayer.options.style={color:"#ffcc33",opacity:1,weight:3,fillColor:"#ffffff",fillOpacity:.2,clickable:!1}):e.drawLayer.options.pointToLayer=function(e,r){var o=L({x:r.lng,y:r.lat},t.options&&t.options.featureProjection||"EPSG:4326","EPSG:4326");return M(f().latLng(o.y,o.x),e,t.style)},e.drawLayer.addData(e.convertFeaturesPolygonToPoint(t.features,e.props.drawMethod))):e.addGeojsonLayer({features:t.features,projection:t.options&&t.options.featureProjection||"EPSG:4326",style:t.style&&t.style[t.drawMethod]||t.style})})),P(h(e),"endDrawing",(function(t){e.replaceFeatures(t);var r=s()(t.features);"Circle"!==e.props.drawMethod||!r||u()(r.center)||u()(r.radius)?r&&e.props.onEndDrawing(r,e.props.drawOwner):e.props.onEndDrawing(w(w({},r),{},{coordinates:E(r.center,r.radius,100)}),e.props.drawOwner)})),P(h(e),"addDrawInteraction",(function(t){e.removeAllInteractions(),"Point"===t.drawMethod||"MultiPoint"===t.drawMethod?e.addGeojsonLayer({features:t.features,projection:t.options&&t.options.featureProjection||"EPSG:4326",style:t.style&&t.style[t.drawMethod]||t.style}):e.addLayer(t),e.props.map.on("draw:created",e.onDrawCreated,h(e)),e.props.map.on("draw:drawstart",e.onDrawStart,h(e)),"LineString"===t.drawMethod||"Bearing"===t.drawMethod||"MultiLineString"===t.drawMethod?e.drawControl=new(f().Draw.Polyline)(e.props.map,{shapeOptions:{color:"#000000",weight:2,fillColor:"#ffffff",fillOpacity:.2},showLength:!1,repeatMode:!0,icon:new(f().DivIcon)({iconSize:new(f().Point)(8,8),className:"leaflet-div-icon leaflet-editing-icon"}),touchIcon:new(f().DivIcon)({iconSize:new(f().Point)(8,8),className:"leaflet-div-icon leaflet-editing-icon leaflet-touch-icon"})}):"Polygon"===t.drawMethod||"MultiPolygon"===t.drawMethod?e.drawControl=new(f().Draw.Polygon)(e.props.map,{shapeOptions:{color:"#000000",weight:2,fillColor:"#ffffff",fillOpacity:.2,dashArray:[5,5],guidelineDistance:5},allowIntersection:!1,showLength:!1,showArea:!1,repeatMode:!0,icon:new(f().DivIcon)({iconSize:new(f().Point)(8,8),className:"leaflet-div-icon leaflet-editing-icon"}),touchIcon:new(f().DivIcon)({iconSize:new(f().Point)(8,8),className:"leaflet-div-icon leaflet-editing-icon leaflet-touch-icon"})}):"BBOX"===t.drawMethod?e.drawControl=new(f().Draw.Rectangle)(e.props.map,{draw:!1,shapeOptions:{color:"#000000",weight:2,fillColor:"#ffffff",fillOpacity:.2,dashArray:[5,5]},repeatMode:!0,icon:new(f().DivIcon)({iconSize:new(f().Point)(8,8),className:"leaflet-div-icon leaflet-editing-icon"}),touchIcon:new(f().DivIcon)({iconSize:new(f().Point)(8,8),className:"leaflet-div-icon leaflet-editing-icon leaflet-touch-icon"})}):"Circle"===t.drawMethod?e.drawControl=new(f().Draw.Circle)(e.props.map,{shapeOptions:{color:"#000000",weight:2,fillColor:"#ffffff",fillOpacity:.2,dashArray:[5,5]},showRadius:!1,repeatMode:!0}):"Point"!==t.drawMethod&&"MultiPoint"!==t.drawMethod||(e.drawControl=new(f().Draw.Marker)(e.props.map,{shapeOptions:{color:"#000000",weight:2,fillColor:"#ffffff",fillOpacity:.2},repeatMode:!0})),e.props.map.doubleClickZoom&&e.props.map.doubleClickZoom.disable(),e.drawControl.enable()})),P(h(e),"addDrawOrEditInteractions",(function(t){var r=[];t.features.map((function(e){var t;e&&e.geometry&&e.geometry.type&&!(0,d.isSimpleGeomType)(e.geometry.type)&&("GeometryCollection"===e.geometry.type?(t=e.geometry.geometries.map((function(t){return t.coordinates.map((function(r,o){return{type:"Feature",properties:w({},e.properties),id:t.type+o,geometry:{coordinates:r,type:(0,d.getSimpleGeomType)(t.type)}}}))})),r.push({type:"FeatureCollection",features:t})):(t=e.geometry.coordinates.map((function(t,r){return{type:"Feature",properties:w({},e.properties),id:e.geometry.type+r,geometry:{coordinates:t,type:(0,d.getSimpleGeomType)(e.geometry.type)}}})),r.push({type:"FeatureCollection",features:t})))}));var o=j({},t,{features:r.length>0?r:[{}]});e.drawLayer?(e.drawLayer.clearLayers(),e.drawLayer.addData(e.convertFeaturesPolygonToPoint(o.features,o.drawMethod))):e.addGeojsonLayer({features:t.features&&t.options.featureProjection&&"EPSG:4326"!==t.options.featureProjection?t.features.map((function(e){return D(e,t.options.featureProjection,"EPSG:4326")})):t.features,projection:t.options&&t.options.featureProjection||"EPSG:4326",style:t.style&&t.style[t.drawMethod]||t.style}),t.options.editEnabled&&e.addEditInteraction(o),t.options.drawEnabled&&e.addDrawInteraction(o)})),P(h(e),"addEditInteraction",(function(t){e.clean(),e.addGeojsonLayer({features:t.features,projection:t.options&&t.options.featureProjection||"EPSG:4326",style:j({},t.style,{poly:{icon:new(f().DivIcon)({iconSize:new(f().Point)(8,8),className:"leaflet-div-icon leaflet-editing-icon"}),touchIcon:new(f().DivIcon)({iconSize:new(f().Point)(8,8),className:"leaflet-div-icon leaflet-editing-icon leaflet-touch-icon"})}})});var r=e.drawLayer.getLayers();setTimeout((function(){r.forEach((function(r){r.getLayers&&r.getLayers()&&r.getLayers().length?r.getLayers().forEach((function(r){r.on("edit",(function(r){return e.onUpdateGeom(r.target,t)})),r.on("moveend",(function(r){return e.onUpdateGeom(r.target,t)})),r.editing&&r.editing.enable()})):(r.on("edit",(function(r){return e.onUpdateGeom(r.target,t)})),r.on("moveend",(function(r){return e.onUpdateGeom(r.target,t)})),r.editing&&r.editing.enable())}))}),0),e.editControl=new(f().Control.Draw)({edit:{featureGroup:e.drawLayer,poly:{allowIntersection:!1},edit:!0},draw:{polygon:{allowIntersection:!1,showArea:!0}}}),e.props.map.doubleClickZoom&&e.props.map.doubleClickZoom.disable()})),P(h(e),"removeAllInteractions",(function(){e.removeEditInteraction(),e.removeDrawInteraction()})),P(h(e),"removeDrawInteraction",(function(){null!==e.drawControl&&void 0!==e.drawControl&&(e.props.options&&e.props.options.stopAfterDrawing&&(e.drawControl.setOptions({repeatMode:!1}),e.props.onDrawStopped()),e.drawControl.disable(),e.drawControl=null,e.props.map.off("draw:created",e.onDrawCreated,h(e)),e.props.map.off("draw:drawstart",e.onDrawStart,h(e)),e.props.map.doubleClickZoom&&e.props.map.doubleClickZoom.enable())})),P(h(e),"removeEditInteraction",(function(){e.drawLayer&&(e.drawLayer.getLayers().forEach((function(e){e.getLayers&&e.getLayers()&&e.getLayers().length?e.getLayers().forEach((function(e){e.off("edit"),e.off("moveend"),e.editing&&e.editing.disable()})):(e.off("edit"),e.off("moveend"),e.editing&&e.editing.disable())})),e.editControl=null),e.props.map.doubleClickZoom&&e.props.map.doubleClickZoom.enable()})),P(h(e),"cleanAndStop",(function(){e.removeAllInteractions(),e.drawLayer&&(e.drawLayer.clearLayers(),e.props.map.removeLayer(e.drawLayer),e.drawLayer=null)})),P(h(e),"clean",(function(){e.removeEditInteraction(),e.removeDrawInteraction(),e.drawLayer&&(e.drawLayer.clearLayers(),e.props.map.removeLayer(e.drawLayer),e.drawLayer=null)})),P(h(e),"convertFeaturesPolygonToPoint",(function(e,t){return"Circle"===t?e.map((function(e){var t=void 0!==e.center&&void 0!==e.radius?k(e.radius,{lat:e.center.y,lng:e.center.x},e.projection):e,r=t.center,o=t.projection,n=t.radius;return w(w({},e),{},{coordinates:r?[r.x,r.y]:e.coordinates,center:r||e.center,projection:o||e.projection,radius:void 0!==n?n:e.radius,type:"Point"})})):e})),P(h(e),"convertFeaturesToGeoJson",(function(t,r){var o;if((0,d.isSimpleGeomType)(r.drawMethod))o=t.toGeoJSON().geometry;else{if("GeometryCollection"===r.drawMethod)return{type:"GeometryCollection",geometries:e.drawLayer.getLayers().map((function(e){return e.toGeoJSON()})).map((function(e){return"FeatureCollection"===e.type?{type:"Multi"+e.features[0].geometry.type,coordinates:e.features.map((function(e){return e.geometry.coordinates}))}:{type:e.geometry.type,coordinates:e.geometry.coordinates}}))};var n=e.drawLayer.getLayers().map((function(e){return e.toGeoJSON()}));o={type:r.drawMethod,coordinates:n.reduce((function(e,t){return e.concat([t.geometry.coordinates])}),[])}}return j({},t.toGeoJSON(),{geometry:o})})),e}return t=i,(r=[{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=!(!this.props.messages&&!this.context.messages)&&this.context.messages.drawLocal;if(t&&(f().drawLocal=t),this.props.drawStatus!==e.drawStatus||"replace"===e.drawStatus||this.props.drawMethod!==e.drawMethod||this.props.features!==e.features)switch(e.drawStatus){case"create":this.addGeojsonLayer({features:e.features,projection:e.options&&e.options.featureProjection||"EPSG:4326",style:e.style&&e.style[e.drawMethod]||e.style});break;case"start":this.addDrawInteraction(e);break;case"drawOrEdit":this.addDrawOrEditInteractions(e);break;case"stop":this.removeAllInteractions();break;case"replace":this.replaceFeatures(e);break;case"clean":this.cleanAndStop();break;case"endDrawing":this.endDrawing(e);break;default:return}}},{key:"render",value:function(){return null}}])&&g(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(i().Component);P(_,"displayName","DrawSupport"),P(_,"propTypes",{map:n().object,drawOwner:n().string,drawStatus:n().string,drawMethod:n().string,options:n().object,features:n().array,onChangeDrawingStatus:n().func,onGeometryChanged:n().func,onDrawStopped:n().func,onEndDrawing:n().func,messages:n().object,style:n().object}),P(_,"defaultProps",{map:null,drawOwner:null,drawStatus:null,drawMethod:null,features:null,options:{stopAfterDrawing:!0},onChangeDrawingStatus:function(){},onGeometryChanged:function(){},onDrawStopped:function(){},onEndDrawing:function(){},style:{color:"#ffcc33",opacity:1,weight:3,fillColor:"#ffffff",fillOpacity:.2,clickable:!1,editing:{fill:1}}});const I=_},967465:(e,t,r)=>{"use strict";r.d(t,{Z:()=>j});var o=r(124852),n=r.n(o),a=r(180307),i=r.n(a),p=r(675263),s=r.n(p),c=r(845243),u=r.n(c),l=r(747037),f=r.n(l),d=r(925064),y=r(821751);function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function g(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{}).target,r=(void 0===t?{}:t).options,o=(void 0===r?{}:r).id;o&&e.props.onPopupClose(o)})),P(h(e),"preparePopups",(function(){var t=e.props,r=t.popups,o=void 0===r?[]:r,n=t.map,a=e.props.map.getSize();return(e._popups||[]).forEach((function(t){var r=t.popup;r.off("remove",e.popupClose),r&&e.props.map.removeLayer(r)})),e._popups=o.map((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=.9*a.x,o=.9*a.y,i=t.id,p=t.position.coordinates,s=t.component,c=t.content,l=t.className,f=t.maxWidth,y=void 0===f?r:f,m=t.maxHeight,g=void 0===m?o:m,v=t.autoPan,h=void 0===v||v,b=t.offset,O=void 0===b?[0,7]:b,j=y>r?r:y,S=g>o?o:g,L=d.fH(i,l);L.setAttribute("style","max-width: ".concat(j,"px; max-height: ").concat(S,"px")),d.R3(L,c);var C=u().popup({id:i,autoClose:!1,closeOnClick:!1,autoPan:h,autoPanPadding:u().point(70,70),maxWidth:j,maxHeight:S,className:"ms-leaflet-popup",offset:O}).setContent(L);return C.once("remove",e.popupClose),s&&function(e,t){var r=new MutationObserver((function(){e.update()}));e.once("remove",(function(){r&&r.disconnect(),r=null})),r.observe(t,{attributes:!0,childList:!0,subtree:!0})}(C,L),C.setLatLng(p),n.addLayer(C),function(e){for(var t=1;t{"use strict";r.r(t),r.d(t,{IDENTIFY_POPUP:()=>O,default:()=>j});var o=r(124852),n=r.n(o),a=r(173014),i=r(11196),p=r(867076),s=r(171703),c=r(22222),u=r(307877),l=r(921914),f=r(542872),d=r(701469),y=r.n(d),m=r(352353),w=r.n(m),g=r(979870),v=r(800827),h=(0,p.compose)((0,s.connect)((0,c.P1)(u.Qf,(function(e){return{index:e}})),{setIndex:l.oO}),(0,p.defaultProps)({index:0,responses:[]})),b=(0,c.P1)([u.q7,u.o9,u.OK,u.us,u.x0,v.hp,u.vR],(function(e,t,r,o,n,a,i){return{responses:e,validResponses:t,requests:r,format:o,showEmptyMessageGFI:n,missingResponses:(r||[]).length-(e||[]).length,renderValidOnly:a,loaded:i}}));const P=(0,p.compose)((0,s.connect)(b),(0,p.defaultProps)({responses:[],container:function(e){var t=e.index,r=e.children;return n().createElement(n().Fragment,null,y()(r)&&r[t]||r)},header:g.Z}),h,i.Yy,i.mI,(0,a.Z)((function(e){var t=e.loaded;return w()(t)})))(f.Z);var O="identify";const j={identify:P}},532425:(e,t,r)=>{"use strict";r.d(t,{Z:()=>f});var o=r(675263),n=r.n(o),a=r(124852),i=r.n(a);function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function c(e){for(var t=1;t100?"full":e>40?"medium":"small"},l=function(e){var t=e.size,r=e.style,o=void 0===r?{}:r,n=e.className,a=e.hidden;return i().createElement("div",{className:n,style:c({width:t,height:t,overflow:"hidden"},o)},!a&&i().createElement("div",{className:"mapstore-".concat(u(t),"-size-loader")}))};l.propTypes={size:n().number,className:n().string,style:n().object};const f=l},925064:(e,t,r)=>{"use strict";r.d(t,{fH:()=>a,FP:()=>i,R3:()=>p});var o=r(455877),n=r.n(o),a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n()(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ms-map-popup",r=document.createElement("div");return r.setAttribute("id",e+"-map-popup"),r.setAttribute("class",t),r},i=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").startsWith("<")},p=function(e,t){if(!t)return e;if(t instanceof Node){var r=document.createDocumentFragment();r.appendChild(t),e.appendChild(r)}else i(t)?e.innerHTML=t:e.append(document.createTextNode(String(t)));return e}},531351:e=>{var t=Array.prototype.reverse;e.exports=function(e){return null==e?e:t.call(e)}},410240:(e,t,r)=>{var o=r(829750),n=r(880531),a=r(640554),i=r(479833);e.exports=function(e,t,r){return e=i(e),r=null==r?0:o(a(r),0,e.length),t=n(t),e.slice(r,r+t.length)==t}}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/50026.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/50026.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/50026.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/50026.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/50066.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/50066.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/50066.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/50066.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/50121.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/50121.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/50121.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/50121.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/5021.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/5021.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/5021.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/5021.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/50224.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/50224.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/50224.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/50224.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/50247.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/50247.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/50247.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/50247.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/50330.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/50330.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/50330.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/50330.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/50337.018dc26183efb561a8b1.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/50337.018dc26183efb561a8b1.chunk.js new file mode 100644 index 0000000000..b65e48b735 --- /dev/null +++ b/geonode_mapstore_client/static/mapstore/dist/js/50337.018dc26183efb561a8b1.chunk.js @@ -0,0 +1 @@ +(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[50337],{306504:(t,e,r)=>{"use strict";r.d(e,{Z:()=>b});var n=r(124852),o=r.n(n),i=r(675263),u=r.n(i);function a(t){return a="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},a(t)}function l(){return l=Object.assign?Object.assign.bind():function(t){for(var e=1;e{"use strict";r.r(e),r.d(e,{default:()=>A});var n=r(124852),o=r.n(n),i=r(480681),u=r(867076),a=r(378889),l=r(753370),c=r.n(l),f=r(984596),s=r.n(f),p=r(264721),y=r.n(p),m=r(545578),b=r.n(m),d=r(441609),v=r.n(d),h=r(805346),g=r(306504);function w(t){return w="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},w(t)}function O(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function j(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&void 0!==arguments[0]?arguments[0]:{},e=t.attributes,r=void 0===e?[]:e,n=t.options,o=void 0===n?{}:n;return{attributes:r.filter((function(t){return!(0,a.isGeometryType)(t)})).map((function(t){var e,r,n=null==o||null===(e=o.propertyName)||void 0===e?void 0:e.map((function(t){return t.name})),i=null==o||null===(r=o.propertyName)||void 0===r?void 0:r.find((function(e){return e.name===t.name}));return _(_({},t),{},{label:t.name,attribute:t.name,hide:(null==n?void 0:n.indexOf(t.name))<0,title:(null==i?void 0:i.title)||"",description:(null==i?void 0:i.description)||""})}))}})),(0,R.Z)((function(t){var e=t.attributes;return 0===(void 0===e?[]:e).length})))((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.style,r=void 0===e?{}:e,n=t.titleMsg,i=void 0===n?"featuregrid.columns":n,u=t.onChange,a=void 0===u?function(){}:u,l=t.attributes,f=void 0===l?[]:l,p=t.options,m=void 0===p?{}:p,d=function(t){return f[t]},g=function(t,e){a("options.propertyName",function(t,e,r){var n=s()(e);return r?t.filter((function(t){return!y()(n,t.name)})):b()([].concat(S(t),S(n.map((function(t){return{name:t}})))),"name")}(m&&m.propertyName||[],t,e))};return o().createElement("div",{className:"bg-body data-attribute-selector",style:r},o().createElement("h4",{className:"text-center"},o().createElement("strong",null,o().createElement(h.Z,{msgId:i}))),o().createElement(c(),{rowKey:"id",columns:x,enableCellSelect:!0,rowGetter:d,rowsCount:f.length,onGridRowsUpdated:function(t){var e,r,n,o,i=t.fromRow,u=t.toRow,l=t.updated,c=(n=(e=i,r=u,Array.from({length:r+1-e},(function(t,r){return r+e}))).map((function(t){return d(t)})).filter((function(t){return Object.keys(l||{}).filter((function(e){return t[e]!==l[e]})).length>0})),o=1,function(t){if(Array.isArray(t))return t}(n)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,u,a=[],l=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(c)throw o}}return a}}(n,o)||P(n,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],f=(void 0===c?{}:c).name;!v()(f)&&a("options.propertyName",m.propertyName.map((function(t){return f===t.name?j(j({},t),l):t})))},rowSelection:{showCheckbox:!0,enableShiftSelect:!0,onRowsSelected:function(t){return g(t.map((function(t){return f[t.rowIdx].name})),!1)},onRowsDeselected:function(t){return g(t.map((function(t){return f[t.rowIdx].name})),!0)},selectBy:{indexes:f.reduce((function(t,e,r){return[].concat(S(t),S(e.hide?[]:[r]))}),[])}}}))}));const A=function(t){var e=t.data,r=void 0===e?{options:{}}:e,n=t.onChange,u=void 0===n?function(){}:n,a=t.featureTypeProperties,l=t.sampleChart;return o().createElement(i.Row,null,o().createElement(C.Z,{title:o().createElement(h.Z,{msgId:"widgets.builder.wizard.configureTableOptions"})}),o().createElement(i.Col,{xs:12},o().createElement("div",null,l)),o().createElement(i.Col,{xs:12},o().createElement(i.Form,{className:"chart-options-form",horizontal:!0},o().createElement(I,{options:r.options,onChange:u,attributes:a}),r.options&&r.options.columnSettings?o().createElement(k.Z,{style:{float:"right"},onClick:function(){return u("options.columnSettings",void 0)}},o().createElement(h.Z,{msgId:"widgets.builder.wizard.resetColumnsSizes"})):null)))}}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/50337.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/50337.affd309bf2aa3f38d3a0.chunk.js deleted file mode 100644 index 2d0830f2ef..0000000000 --- a/geonode_mapstore_client/static/mapstore/dist/js/50337.affd309bf2aa3f38d3a0.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[50337],{306504:(t,e,r)=>{"use strict";r.d(e,{Z:()=>b});var n=r(124852),o=r.n(n),i=r(675263),u=r.n(i);function a(t){return a="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},a(t)}function l(){return l=Object.assign?Object.assign.bind():function(t){for(var e=1;e{"use strict";r.r(e),r.d(e,{default:()=>V});var n=r(124852),o=r.n(n),i=r(480681),u=r(867076),a=r(378889),l=r(753370),c=r.n(l),f=r(984596),s=r.n(f),p=r(264721),y=r.n(p),m=r(545578),b=r.n(m),d=r(441609),v=r.n(d),h=r(805346),g=r(306504);function w(t){return w="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},w(t)}function O(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function j(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&void 0!==arguments[0]?arguments[0]:{},e=t.attributes,r=void 0===e?[]:e,n=t.options,o=void 0===n?{}:n;return{attributes:r.filter((function(t){return!(0,a.isGeometryType)(t)})).map((function(t){var e,r,n=null==o||null===(e=o.propertyName)||void 0===e?void 0:e.map((function(t){return t.name})),i=null==o||null===(r=o.propertyName)||void 0===r?void 0:r.find((function(e){return e.name===t.name}));return I(I({},t),{},{label:t.name,attribute:t.name,hide:(null==n?void 0:n.indexOf(t.name))<0,title:(null==i?void 0:i.title)||"",description:(null==i?void 0:i.description)||""})}))}})),(0,k.Z)((function(t){var e=t.attributes;return 0===(void 0===e?[]:e).length})))((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.style,r=void 0===e?{}:e,n=t.titleMsg,i=void 0===n?"featuregrid.columns":n,u=t.onChange,a=void 0===u?function(){}:u,l=t.attributes,f=void 0===l?[]:l,p=t.options,m=void 0===p?{}:p,d=function(t){return f[t]},g=function(t,e){a("options.propertyName",function(t,e,r){var n=s()(e);return r?t.filter((function(t){return!y()(n,t.name)})):b()([].concat(P(t),P(n.map((function(t){return{name:t}})))),"name")}(m&&m.propertyName||[],t,e))};return o().createElement("div",{className:"bg-body data-attribute-selector",style:r},o().createElement("h4",{className:"text-center"},o().createElement("strong",null,o().createElement(h.Z,{msgId:i}))),o().createElement(c(),{rowKey:"id",columns:C,enableCellSelect:!0,rowGetter:d,rowsCount:f.length,onGridRowsUpdated:function(t){var e,r,n,o,i=t.fromRow,u=t.toRow,l=t.updated,c=(n=(e=i,r=u,Array.from({length:r+1-e},(function(t,r){return r+e}))).map((function(t){return d(t)})).filter((function(t){return Object.keys(l||{}).filter((function(e){return t[e]!==l[e]})).length>0})),o=1,function(t){if(Array.isArray(t))return t}(n)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,u,a=[],l=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(c)throw o}}return a}}(n,o)||E(n,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],f=(void 0===c?{}:c).name;!v()(f)&&a("options.propertyName",m.propertyName.map((function(t){return f===t.name?j(j({},t),l):t})))},rowSelection:{showCheckbox:!0,enableShiftSelect:!0,onRowsSelected:function(t){return g(t.map((function(t){return f[t.rowIdx].name})),!1)},onRowsDeselected:function(t){return g(t.map((function(t){return f[t.rowIdx].name})),!0)},selectBy:{indexes:f.reduce((function(t,e,r){return[].concat(P(t),P(e.hide?[]:[r]))}),[])}}}))}));const V=function(t){var e=t.data,r=void 0===e?{options:{}}:e,n=t.onChange,u=void 0===n?function(){}:n,a=t.featureTypeProperties,l=t.sampleChart;return o().createElement(i.Row,null,o().createElement(R.Z,{title:o().createElement(h.Z,{msgId:"widgets.builder.wizard.configureTableOptions"})}),o().createElement(i.Col,{xs:12},o().createElement("div",null,l)),o().createElement(i.Col,{xs:12},o().createElement(i.Form,{className:"chart-options-form",horizontal:!0},o().createElement(Z,{options:r.options,onChange:u,attributes:a}),r.options&&r.options.columnSettings?o().createElement(N.Z,{style:{float:"right"},onClick:function(){return u("options.columnSettings",void 0)}},o().createElement(h.Z,{msgId:"widgets.builder.wizard.resetColumnsSizes"})):null)))}}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/50366.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/50366.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/50366.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/50366.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/50383.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/50383.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/50383.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/50383.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/50433.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/50433.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/50433.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/50433.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/50467.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/50467.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/50467.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/50467.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/50577.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/50577.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/50577.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/50577.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/50792.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/50792.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/50792.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/50792.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/50986.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/50986.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/50986.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/50986.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/51099.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/51099.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/51099.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/51099.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/51181.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/51181.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/51181.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/51181.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/51490.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/51490.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/51490.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/51490.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/51796.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/51796.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/51796.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/51796.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/51895.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/51895.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/51895.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/51895.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/51920.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/51920.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/51920.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/51920.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/51949.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/51949.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/51949.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/51949.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/52043.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/52043.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/52043.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/52043.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/52046.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/52046.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/52046.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/52046.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/52056.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/52056.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/52056.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/52056.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/52066.018dc26183efb561a8b1.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/52066.018dc26183efb561a8b1.chunk.js new file mode 100644 index 0000000000..e4403b49ff --- /dev/null +++ b/geonode_mapstore_client/static/mapstore/dist/js/52066.018dc26183efb561a8b1.chunk.js @@ -0,0 +1 @@ +(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[52066],{801550:(e,t,r)=>{"use strict";r.d(t,{pP:()=>n,TR:()=>o,N7:()=>i,mq:()=>a,uv:()=>u,Qy:()=>l,IL:()=>c,Li:()=>s,OW:()=>f,ZO:()=>p,Um:()=>y,TF:()=>m,Ls:()=>b,Ec:()=>v,Eu:()=>d,JJ:()=>g,nZ:()=>O,YD:()=>h,GI:()=>S,Jb:()=>w,Uh:()=>x,e$:()=>P,eh:()=>j,$j:()=>R,bJ:()=>T,Mk:()=>E,xy:()=>M,o6:()=>C,FP:()=>A,Mo:()=>L,sO:()=>D,Px:()=>U,hd:()=>I,Ju:()=>_,BV:()=>F,SO:()=>N,H0:()=>W,$X:()=>G,ou:()=>B,NE:()=>k,Lq:()=>V,aN:()=>$});var n="CHANGE_MAP_VIEW",o="CLICK_ON_MAP",i="CHANGE_MOUSE_POINTER",a="CHANGE_ZOOM_LVL",u="PAN_TO",l="ZOOM_TO_EXTENT",c="ZOOM_TO_POINT",s="CHANGE_MAP_CRS",f="CHANGE_MAP_SCALES",p="CHANGE_MAP_STYLE",y="CHANGE_ROTATION",m="CREATION_ERROR_LAYER",b="UPDATE_VERSION",v="INIT_MAP",d="RESIZE_MAP",g="CHANGE_MAP_LIMITS",O="SET_MAP_RESOLUTIONS",h="REGISTER_EVENT_LISTENER",S="UNREGISTER_EVENT_LISTENER",w="MOUSE_MOVE",x="MOUSE_OUT",P="MAP:MAP_PLUGIN_LOAD",j="MAP:ORIENTATION",R="MAP:UPDATE_MAP_VIEW",T="MAP:UPDATE_MAP_OPTIONS";function E(e,t,r,n){return{type:P,mapType:t,loading:e,loaded:r,error:n}}function M(e,t,r){return{type:c,pos:e,zoom:t,crs:r}}function C(e,t,r,o,i,a,u,l){return{type:n,center:e,zoom:t,bbox:r,size:o,mapStateSource:i,projection:a,viewerOptions:u,resolution:l}}function A(e,t){return{type:o,point:e,layer:t}}function L(e){return{type:i,pointer:e}}function D(e,t){return{type:a,zoom:e,mapStateSource:t}}function U(e,t,r,n){return{type:l,extent:e,crs:t,maxZoom:r,options:n}}function I(e,t){return{type:p,style:e,mapStateSource:t}}function _(){return{type:d}}function F(e){var t=e.restrictedExtent,r=e.crs,n=e.minZoom;return{type:g,restrictedExtent:t,crs:r,minZoom:n}}function N(e){return{type:O,resolutions:e}}var W=function(e,t){return{type:h,eventName:e,toolName:t}},G=function(e,t){return{type:S,eventName:e,toolName:t}},B=function(e){return{type:w,position:e}},k=function(){return{type:x}},V=function(e){return{type:j,orientation:e}},$=function(e){return{type:T,configUpdate:e}}},658918:(e,t,r)=>{"use strict";r.d(t,{F:()=>p});var n=r(375875),o=r.n(n),i=r(986267),a=r(552259);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r{"use strict";r.d(t,{Z:()=>Yt});var n={};r.r(n),r.d(n,{getCatalogRecords:()=>oe,getLayerFromRecord:()=>ie,preprocess:()=>ee,testService:()=>re,textSearch:()=>ne,validate:()=>te});var o={};r.r(o),r.d(o,{getCatalogRecords:()=>ge,getLayerFromRecord:()=>Oe,preprocess:()=>me,testService:()=>ve,textSearch:()=>de,validate:()=>be});var i={};r.r(i),r.d(i,{getCatalogRecords:()=>Ie,getLayerFromRecord:()=>_e,preprocess:()=>Le,testService:()=>Ue,textSearch:()=>Ae,validate:()=>De});var a={};r.r(a),r.d(a,{getCatalogRecords:()=>ft,getLayerFromRecord:()=>mt,getRecords:()=>ut,testService:()=>st,textSearch:()=>lt,tileProviderToLayer:()=>yt,tmsToLayer:()=>pt,validate:()=>ct});var u={};r.r(u),r.d(u,{getCatalogRecords:()=>Tt,getLayerFromRecord:()=>Et,getRecords:()=>wt,preprocess:()=>xt,testService:()=>jt,textSearch:()=>Rt,validate:()=>Pt});var l={};r.r(l),r.d(l,{getCatalogRecords:()=>_t,getLayerFromRecord:()=>Ft,preprocess:()=>Dt,testService:()=>It,textSearch:()=>Lt,validate:()=>Ut});var c={};r.r(c),r.d(c,{getCatalogRecords:()=>zt,getLayerFromRecord:()=>Ht,preprocess:()=>$t,testService:()=>qt,textSearch:()=>Zt,validate:()=>Jt});var s=r(91175),f=r.n(s),p=r(747037),y=r.n(p),m=r(264721),b=r.n(m),v=r(984596),d=r.n(v),g=r(189734),O=r.n(g),h=r(944908),S=r.n(h),w=r(701469),x=r.n(w),P=r(763105),j=r.n(P),R=r(441609),T=r.n(R),E=r(414293),M=r.n(E),C=r(727418),A=r.n(C),L=r(552259),D=r(49977),U=r.n(D),I=r(737275),_=r(624262),F=r(576712),N=r(501157),W=r(375875),G=r.n(W);function B(e){return B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},B(e)}function k(e){var t="function"==typeof Map?new Map:void 0;return k=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return V(e,arguments,Z(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),q(n,e)},k(e)}function V(e,t,r){return V=$()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&q(o,r.prototype),o},V.apply(null,arguments)}function $(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function q(e,t){return q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},q(e,t)}function Z(e){return Z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Z(e)}var z=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&q(e,t)}(i,e);var t,r,n,o=(r=i,n=$(),function(){var e,t=Z(r);if(n){var o=Z(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===B(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(e,t){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(r=o.call(this,e)).name="ServiceValidationError",r.notification=t,r}return t=i,Object.defineProperty(t,"prototype",{writable:!1}),t}(k(Error)),H=function(e){return U().Observable.of(e)},J=function(e){return""===e.title||""===e.url?U().Observable.throw(new z("Validation Error","catalog.notification.warningAddCatalogService")):U().Observable.of(e)},Y=function(e){var t=e.parseUrl,r=void 0===t?function(e){return e}:t;return function(e){var t="catalog.notification.errorServiceUrl";return U().Observable.defer((function(){return G().get(r(e.url))})).catch((function(){throw new z("Service Test error",t)})).switchMap((function(r){if(r.error||""===r.data)throw new z("Service Test error",t);return U().Observable.of(e)}))}};function K(e){return K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},K(e)}function X(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Q(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=r.removeParams,o=void 0===n?[]:n,i=r.format,a=r.catalogURL,u=r.url,l=r.formats,c=void 0===l?{}:l,s=r.map,f=void 0===s?{}:s,p=r.layerBaseConfig,y=r.localizedLayerStyles,m=r.allowUnsecureLayers;if(!e||!e.references)return null;var b,v,d=(0,F.tW)(e).wms,g=function(e){return(0,F.em)((0,I.$F)(e),["request","layer","layers","service","version"].concat(o))},O=(0,F.qy)(d.url);if(O&&x()(O))b=O.map((function(e){return g(e)})).map((function(e){return e.url})),v=O.map((function(e){return g(e)})).map((function(e){return e.params})).reduce((function(e,t){return Q(Q({},e),t)}),{});else{var h=g(O||a);b=h.url,v=h.params}var S,w=(S=u||b,x()(S)&&1===S.length?S[0]:S),P=(0,F.n0)(d.SRS),j=null!==(t=null==e?void 0:e.capabilities)&&void 0!==t?t:{},R=j.MaxScaleDenominator,E=j.MinScaleDenominator,C=Q(Q(Q(Q({type:"wms",requestEncoding:e.requestEncoding,style:e.style,format:i,url:w,capabilitiesURL:e.capabilitiesURL,queryable:e.queryable,visibility:!0,dimensions:e.dimensions||[],name:d.params&&d.params.name,title:e.title||d.params&&d.params.name,description:e.description||"",credits:!(0,I.u8)("noCreditsFromCatalog")&&e.credits,bbox:{crs:e.boundingBox.crs,bounds:{minx:e.boundingBox.extent[0],miny:e.boundingBox.extent[1],maxx:e.boundingBox.extent[2],maxy:e.boundingBox.extent[3]}},links:(0,F.F8)(e),params:v,allowedSRS:P,catalogURL:a},p),e.layerOptions),{},{localizedLayerStyles:M()(y)?void 0:y},!T()(c)&&{imageFormats:c.imageFormats,infoFormats:c.infoFormats}),!M()(m)&&{forceProxy:m});if(!T()(f)&&(R||E)){var A=(!M()(E)&&(0,L.getResolutionObject)(E,"scale",f)||{}).resolution,D=(!M()(R)&&(0,L.getResolutionObject)(R,"scale",f)||{}).resolution;C=Q(Q({},C),{},{minResolution:A,maxResolution:D})}return C}(e,t);return r?Promise.resolve(n):n},ae=r(86638),ue=r(659551);function le(e){return le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},le(e)}function ce(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function se(e){for(var t=1;t').concat(a,"")};function ye(e,t){var r,n,o=(null==e?void 0:e.URI)&&d()(e.URI);if(o){var i=f()(o.filter((function(e){return"thumbnail"===e.name})))||f()(o.filter((function(e){var t;return!e.name&&(null===(t=e.protocol)||void 0===t?void 0:t.indexOf("image/"))>-1})));r=i?i.value:null}if(!r&&e&&e.references){var a=function(e){return f()(d()(e.references).filter((function(t){return"WWW:LINK-1.0-http--image-thumbnail"===t.scheme||"thumbnail"===t.scheme||"WWW:DOWNLOAD-1.0-http--download"===t.scheme&&-1!==(t.value||"").indexOf("".concat(e.identifier||"","-thumb"))||"WWW:DOWNLOAD-REST_MAP"===t.scheme&&-1!==(t.value||"").indexOf("".concat(e.identifier||"","-thumb"))})))}(e);a&&(r=a.value)}return r&&(0===r.indexOf("http")||(r=((n=t&&t.url)&&n.replace(/\/csw$/,"/")||"")+r)),r}var me=H,be=J,ve=Y({parseUrl:ue.ZP.parseUrl}),de=ue.ZP.textSearch,ge=function(e,t,r){var n=e;return n&&n.records?n.records.map((function(e){var n=e.dc,o=[];n&&n.references&&(Array.isArray(n.references)?n.references:[n.references]).filter((function(e){return e.scheme.indexOf("http-get-capabilities")>-1})).forEach((function(e){var r=0===e.value.indexOf("http")?e.value:(t&&t.catalogURL||"")+"/"+e.value;o.push({type:e.scheme,url:r})}));var i=(0,ue.kv)(n,t);i&&o.push(i);var a={boundingBox:e.boundingBox&&e.boundingBox.extent&&d()(e.boundingBox.extent.join(","))};if(n&&(a=se(se({},a),O()(Object.keys(n)).reduce((function(e,t){return se(se({},e),{},fe({},t,S()(d()(n[t]))))}),{}))),n&&n.URI&&d()(n.URI)&&d()(n.URI).length&&(a=se(se({},a),{},{uri:["
    "+d()(n.URI).map(pe.bind(void 0,a,r)).join("")+"
"]})),n&&n.subject&&d()(n.subject)&&d()(n.subject).length&&(a=se(se({},a),{},{subject:["
    "+d()(n.subject).map((function(e){return"
  • ".concat(e,"
  • ")})).join("")+"
"]})),o&&d()(o).length?a=se(se({},a),{},{references:[""]}):delete a.references,n&&n.temporal){var u=y()(n.temporal)?n.temporal.split("; "):[];if(u.length){var l=u.filter((function(e){return-1!==e.indexOf("scheme=")})).map((function(e){var t=e.indexOf("=");return e.substr(t+1,e.length-1)}));l=l.length?l[0]:"W3C-DTF";var c=u.filter((function(e){return-1!==e.indexOf("start=")||-1!==e.indexOf("end=")})).map((function(e){var t=e.indexOf("="),n=e.substr(0,t),o=e.substr(t+1,e.length-1),i=e.length-t-1<=10;return b()(["start","end"],n)&&"W3C-DTF"===l&&!i?(0,ae.S$)(r,"catalog.".concat(n))+new Date(o).toLocaleString():b()(["start","end"],n)?(0,ae.S$)(r,"catalog.".concat(n))+o:""}));a=se(se({},a),{},{temporal:["
    "+c.map((function(e){return"
  • ".concat(e,"
  • ")})).join("")+"
"]})}}var s=se(se({},(0,F.tW)({references:o})),(0,F.FJ)({references:o})),f=Object.keys(s).find((function(e){return s[e]})),p=f&&"esri"!==f?s[f]:void 0;return{serviceType:"csw",layerType:f,isValid:!!f,boundingBox:e.boundingBox,description:n&&y()(n.abstract)&&n.abstract||"",layerOptions:t&&t.layerOptions||{},identifier:n&&y()(n.identifier)&&n.identifier||"",references:o,thumbnail:ye(n,t),title:n&&y()(n.title)&&n.title||"",tags:n&&n.tags||"",metadata:a,capabilities:e.capabilities,ogcReferences:p}})):null},Oe=function(e,t,r){var n=function(e,t){switch(e.layerType){case"wms":return ie(e,t);case"esri":return function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).layerBaseConfig,r=void 0===t?{}:t;if(!e||!e.references)return null;var n=(0,F.FJ)(e).esri;return se({type:n.type,url:n.url,visibility:!0,dimensions:e.dimensions||[],name:n.params&&n.params.name,bbox:{crs:e.boundingBox.crs,bounds:{minx:e.boundingBox.extent[0],miny:e.boundingBox.extent[1],maxx:e.boundingBox.extent[2],maxy:e.boundingBox.extent[3]}}},r)}(e,t);default:return null}}(e,t);return r?Promise.resolve(n):n},he=r(513218),Se=r.n(he),we=r(986267),xe=r(707294),Pe=r(603475);function je(e){return je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},je(e)}function Re(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Te(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=t.removeParams,n=void 0===r?[]:r,o=t.format,i=t.catalogURL,a=t.url,u=t.layerBaseConfig,l=t.localizedLayerStyles;if(!e||!e.references)return null;var c,s,f=(0,F.tW)(e).wmts,p=function(e){return(0,F.em)((0,I.$F)(e),["request","layer","layers","service","version"].concat(n))},y=(0,F.qy)(f.url);if(y&&x()(y))c=y.map((function(e){return p(e)})).map((function(e){return e.url})),s=y.map((function(e){return p(e)})).map((function(e){return e.params})).reduce((function(e,t){return Te(Te({},e),t)}),{});else{var m=p(y||i);c=m.url,s=m.params}var b,v=(b=a||c,x()(b)&&1===b.length?b[0]:b),d=(0,F.n0)(f.SRS);return Te(Te(Te({type:"wmts",requestEncoding:e.requestEncoding,style:e.style,format:o,url:v,capabilitiesURL:e.capabilitiesURL,queryable:e.queryable,visibility:!0,dimensions:e.dimensions||[],name:f.params&&f.params.name,title:e.title||f.params&&f.params.name,matrixIds:e.matrixIds||[],description:e.description||"",tileMatrixSet:e.tileMatrixSet||[],credits:!(0,I.u8)("noCreditsFromCatalog")&&e.credits,bbox:{crs:e.boundingBox.crs,bounds:{minx:e.boundingBox.extent[0],miny:e.boundingBox.extent[1],maxx:e.boundingBox.extent[2],maxy:e.boundingBox.extent[3]}},links:(0,F.F8)(e),params:s,allowedSRS:d,catalogURL:i},u),e.layerOptions),{},{localizedLayerStyles:M()(l)?void 0:l})}(e,t);return r?Promise.resolve(n):n},Fe=r(227361),Ne=r.n(Fe),We=r(505055),Ge=r.n(We),Be=r(233044),ke=r(993201);function Ve(e){return Ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ve(e)}function $e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function qe(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=d()(Ne()(e,"TileMapService.TileMaps.TileMap",[])),a=o.projection,u=Ne()(o,"options.service.allSRS"),l=i.map((function(t){var r=t.$,n=void 0===r?{}:r;return qe(qe({},n),{},{href:(0,Be.cleanAuthParamsFromURL)(n.href),identifier:(0,Be.cleanAuthParamsFromURL)(n.href),format:(0,ke.A)(n.href),tmsUrl:(0,Be.cleanAuthParamsFromURL)(e.url)})})).filter((function(e){var t=e.srs;return!(a&&!u)||function(e,t){return e===t||"EPSG:3857"===e&&"EPSG:900913"===t||"EPSG:900913"===e&&"EPSG:3857"===t}(t,a)})).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.title,r=void 0===t?"":t,o=e.srs,i=void 0===o?"":o;return!n||-1!==r.toLowerCase().indexOf(n.toLowerCase())||-1!==i.toLowerCase().indexOf(n.toLowerCase())}));return{numberOfRecordsMatched:l.length,numberOfRecordsReturned:Math.min(r,l.length),nextRecord:t+Math.min(r,l.length)+1,records:l.filter((function(e,n){return n>=t-1&&n0&&void 0!==arguments[0]?arguments[0]:{}).title;return!n||-1!==(void 0===e?"":e).toLowerCase().indexOf(n.toLowerCase())})),i=o.filter((function(e,n){return n>=t-1&&n4&&void 0!==arguments[4]?arguments[4]:{},i=(o.options||{}).service;return"tms"===(void 0===i?{}:i).provider&&Je(e,t,r,n,o),rt(0,t,r,n,o)},lt=function(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=(o.options||{}).service;return"tms"===(void 0===i?{}:i).provider?Je(e,t,r,n,o):rt(0,t,r,n,o)},ct=function(e){return"tms"===e.provider?J(e):function(e){var t,r=e.provider&&"custom"!==e.provider?!!e.provider:(t=e.url,(0,Ke.Nw)(t));if(e.title&&r)return D.Observable.of(e);throw new Error("catalog.config.notValidURLTemplate")}(e)},st=function(e){return"tms"===e.provider?Y({parseUrl:He})(e):function(e){return D.Observable.of(e)}(e)},ft=function(e,t){if(e&&e.records){if(t.service&&"tms"===t.service.provider){var r=[{type:"OGC:TMS",version:"1.0.0",url:t.url}],n=(0,F.tW)({references:r}).tms;return e.records.map((function(e){return{serviceType:"tms",layerType:"tms",isValid:!!n,title:e.title,tileMapUrl:e.href,description:"".concat(e.srs).concat(e.format?", "+e.format:""),tmsUrl:t.tmsUrl,references:r,ogcReferences:n}}))}return e.records.map((function(e){return{serviceType:"tms",layerType:"tileprovider",isValid:!!e.provider,title:e.title||e.provider,url:e.url,attribution:e.attribution,options:e.options,provider:e.provider,references:[]}}))}return null},pt=function(e,t){var r=e.tileMapUrl,n=t.tileMap,o=t.service,i=(n||{}).TileMap,a=void 0===i?{}:i,u=(o||{}).forceDefaultTileGrid,l=a.Title,c=a.Abstract,s=a.SRS,f=a.BoundingBox,p=void 0===f?{}:f,y=a.Origin,m=a.TileFormat,b=void 0===m?{}:m,v=a.TileSets,g=a.$,O=g.version,h=g.tilemapservice,S=Ne()(p,"$",{}),w=S.minx,x=S.miny,P=S.maxx,j=S.maxy,R=Ne()(y,"$"),T=R.x,E=R.y,M=Ne()(b,"$",{}),C=M.width,A=M.height,L=M["mime-type"],D=M.extension,U=[parseFloat(C),parseFloat(A,10)],I=d()(Ne()(v,"TileSet",[]).map((function(e){return e.$}))).map((function(e){var t=e.href,r=e.order,n=e["units-per-pixel"];return{href:(0,Be.cleanAuthParamsFromURL)(t),order:parseFloat(r),resolution:parseFloat(n)}})),_=Ne()(v,"profile");return{title:l,visibility:!0,hideErrors:!0,name:l,allowedSRS:at({},s,!0),description:c,srs:s,version:O,tileMapService:h?(0,Be.cleanAuthParamsFromURL)(h):void 0,type:"tms",profile:_,tileMapUrl:r,forceDefaultTileGrid:u,bbox:p&&{crs:s,bounds:{minx:parseFloat(w),miny:parseFloat(x),maxx:parseFloat(P),maxy:parseFloat(j)}},tileSets:I,origin:{x:parseFloat(T),y:parseFloat(E)},format:L,tileSize:U,extension:D}},yt=function(e){return{type:"tileprovider",visibility:!0,url:e.url,title:e.title,attribution:e.attribution,options:e.options,provider:e.provider,name:e.provider}},mt=function(e,t,r){return r?"tms"===e.layerType?(n=e.tileMapUrl,G().get(n).then((function(e){return new Promise((function(t){Ge().parseString(e.data,{explicitArray:!1},(function(e,r){return t(r)}))}))}))).then((function(r){return pt(e,it(it({},t),{},{tileMap:r}))})):Promise.resolve(yt(e)):function(e,t){return"tms"===e.layerType?pt(e,t):"tileprovider"===e.layerType?yt(e,t):null}(e,t);var n},bt=r(432420);function vt(e){return vt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vt(e)}function dt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function gt(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,o=d()(Ne()(e,'["wfs:WFS_Capabilities"].FeatureTypeList.FeatureType',[])).map((function(t){var r,n=t.Name,o=t.Title,i=t.Abstract,a=t.DefaultSRS,u=t.OtherSRS,l=void 0===u?[]:u,c=t["ows:WGS84BoundingBox"],s=c["ows:LowerCorner"].split(" "),f=c["ows:UpperCorner"].split(" "),p={minx:parseFloat(s[0]),miny:parseFloat(s[1]),maxx:parseFloat(f[0]),maxy:parseFloat(f[1])};return{featureType:t,type:"wfs",url:(0,Be.cleanAuthParamsFromURL)(e.url),name:n,title:o,description:i,SRS:[a].concat((r=l,function(e){if(Array.isArray(e))return Ot(e)}(r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return Ot(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ot(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),defaultSRS:a,boundingBox:{bounds:p,crs:"EPSG:4326"}}})).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.title,r=void 0===t?"":t,o=e.name,i=void 0===o?"":o,a=e.description;return!n||-1!==r.toLowerCase().indexOf(n.toLowerCase())||-1!==i.toLowerCase().indexOf(n.toLowerCase())||-1!==a.toLowerCase().indexOf(n.toLowerCase())})),i=o.filter((function(e,n){return n>=t-1&&n0&&void 0!==arguments[0]?arguments[0]:{}).records;return e?e.map((function(e){var t=[{type:"OGC:WFS-1.1.0-http-get-capabilities",url:e.url},{type:"OGC:WFS-1.1.0-http-get-feature",url:e.url}],r=(0,F.tW)({references:t}).wfs;return gt(gt({},e),{},{serviceType:"wfs",isValid:!!r,references:t,ogcReferences:r})})):null},Et=function(e,t,r){var n=function(e){return gt({type:e.type||"wfs",search:{url:e.url,type:"wfs"},url:e.url,queryable:e.queryable,visibility:!0,name:e.name,title:e.title||e.name,description:e.description||"",bbox:e.boundingBox,links:(0,F.F8)(e),style:{weight:1,color:"rgba(0, 0, 255, 1)",opacity:1,fillColor:"rgba(0, 0, 255, 0.1)",fillOpacity:.1,radius:10}},e.layerOptions)}(e);return r?Promise.resolve(n):n};function Mt(e){return Mt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mt(e)}function Ct(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function At(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,Wt),l=[kt({title:(null==o||null===(r=o.options)||void 0===r||null===(i=r.service)||void 0===i?void 0:i.title)||Vt(e),url:e,type:"3dtiles",tileset:a},u)].filter((function(e){var t=e.title;return!n||(null==t?void 0:t.toLowerCase().includes((null==n?void 0:n.toLowerCase())||""))}));return{numberOfRecordsMatched:l.length,numberOfRecordsReturned:l.length,records:l}}))}(e,0,0,n,o)},zt=function(e){return null!=e&&e.records?e.records.map((function(e){var t=e.version,r=e.bbox,n=e.format,o=e.properties;return kt(kt(kt(kt({serviceType:"3dtiles",isValid:!0,description:"v. ".concat(t),title:e.title,identifier:e.url,url:e.url,thumbnail:null},r&&{bbox:r}),n&&{format:n}),o&&{properties:o}),{},{references:[]})})):null},Ht=function(e,t,r){var n=function(e){var t=e.bbox,r=e.format,n=e.properties;return kt(kt(kt({type:"3dtiles",url:e.url,title:e.title,visibility:!0},t&&{bbox:t}),r&&{format:r}),n&&{properties:n})}(e);return r?Promise.resolve(n):n},Jt=function(e){if(e.title&&function(e){if((0,Ke.Nw)(e)){var t=e.split(/\./g);return"json"===t[t.length-1]}return!1}(e.url))return D.Observable.of(e);throw new Error("catalog.config.notValidURLTemplate")};const Yt={csw:o,wfs:u,wms:n,tms:a,wmts:i,backgrounds:l,"3dtiles":c}},856175:(e,t,r)=>{"use strict";r.d(t,{Z:()=>ee});var n=r(49977),o=r(409669),i=r.n(o),a=r(737691),u=r.n(a),l=r(430647),c=r(91175),s=r.n(c),f=r(227361),p=r.n(f),y=r(313311),m=r.n(y),b=r(701469),v=r.n(b),d=r(747037),g=r.n(d),O=r(513218),h=r.n(O),S=r(3674),w=r.n(S),x=r(493220),P=r.n(x),j=r(682492),R=r.n(j),T=r(931273),E=r(580416),M=r(197395),C=r(782904),A=r(921914),L=r(53001),D=r(788113),U=r(31935),I=r(308316),_=r(675110),F=r(576712),N=r(501157),W=r(986267),G=r(737275),B=r(624262),k=r(589919),V=r(801550),$=r(659551),q=["format","url","text","layerOptions"];function Z(e){return function(e){if(Array.isArray(e))return H(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||z(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function z(e,t){if(e){if("string"==typeof e)return H(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?H(e,t):void 0}}function H(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,q),l=(0,I.Ps)(y),c=e[r].getCatalogRecords(u,a,l)||[],f=s()(c.filter((function(e){return e.identifier||e.name===i}))),p=(0,F.tW)(f),m=p.wms,b=p.wmts,v=m||b;if(v){var d=(0,F.n0)(v.SRS);if(v.SRS.length>0&&!W.default.isAllowedSRS("EPSG:3857",d))return n.Observable.empty()}var g=(0,D.kS)(y),O=e[r].getLayerFromRecord(f,{removeParams:g,catalogURL:"csw"===r&&o?o+"?request=GetRecordById&service=CSW&version=2.0.2&elementSetName=full&id="+f.identifier:o,layerBaseConfig:{}});return f?[O,a]:[i]}))):n.Observable.empty()}))})).mergeMap((function(e){if(e){var t=e.filter((function(e){return g()(e[0])})).join(" "),r=[];return t&&(r=[(0,T.E9)(t)]),r=[].concat(Z(r),Z(e.filter((function(e){return h()(e[0])})).map((function(e){return(0,T.A4)(R()({},e[0],e[1]))})))),n.Observable.from(r)}return n.Observable.empty()})).catch((function(){return n.Observable.empty()}))},addLayerAndDescribeEpic:function(e,t){return e.ofType(T.r7).mergeMap((function(e){var r=e.layer,o=e.zoomToLayer,i=[],a=t.getState(),u=(0,B.R8)(r);return i.push((0,E.A4)(K(K({},r),{},{id:u}))),o&&r.bbox&&i.push((0,V.Px)(r.bbox.bounds,r.bbox.crs)),"wms"===r.type?n.Observable.defer((function(){return(0,N.gs)((0,B.Hi)(r),r.name)})).switchMap((function(e){if(e){var t=m()(e,(function(e){return e.name===r.name}));if(t&&"WFS"===t.owsType){var o=G.ZP.filterUrlParams(G.ZP.cleanDuplicatedQuestionMarks(t.owsURL),(0,D.kS)(a));return n.Observable.of((0,E.He)(u,{search:{url:o,type:"wfs"}}))}}return n.Observable.empty()})).merge(n.Observable.from(i)).catch((function(e){return n.Observable.of((0,T.bu)(r,e))})):n.Observable.from(i)})).catch((function(){return n.Observable.empty()}))},newCatalogServiceAdded:function(t,r){return t.ofType(T.mh).switchMap((function(){var t=r.getState(),o=(0,D._S)(t),i=(0,D.y)(t);return n.Observable.of(o).switchMap((function(t){var r,o,i;return null!==(r=null===(o=e[t.type])||void 0===o||null===(i=o.preprocess)||void 0===i?void 0:i.call(o,t))&&void 0!==r?r:n.Observable.of(t)})).switchMap((function(t){var r,o,i;return null!==(r=null===(o=e[t.type])||void 0===o||null===(i=o.validate)||void 0===i?void 0:i.call(o,t))&&void 0!==r?r:n.Observable.of(t)})).switchMap((function(e){return n.Observable.of((0,T.tt)({format:e.type,url:e.url,startPosition:1,maxRecords:i,text:"",options:{service:e,isNewService:!0}}))})).catch((function(e){return n.Observable.of((0,M.vU)({exception:e,title:"notification.warning",message:e.notification||"catalog.notification.warningAddCatalogService",autoDismiss:6,position:"tc"}))}))}))},deleteCatalogServiceEpic:function(e,t){return e.ofType(T.$Y).switchMap((function(){var e=t.getState(),r=(0,D.Cb)(e),o=(0,D.b6)(e),i=o[r]?(0,M.Vp)({title:"notification.warning",message:"catalog.notification.serviceDeletedCorrectly",autoDismiss:6,position:"tc"}):(0,M.vU)({title:"notification.warning",message:"catalog.notification.impossibleDeleteService",autoDismiss:6,position:"tc"}),a=(0,T.SU)(r);return o[r]?n.Observable.of(i,a):n.Observable.of(i)}))},openCatalogEpic:function(e,t){return e.ofType(C.At,C.kM).filter((function(e){return"metadataexplorer"===e.control&&(0,D.JF)(t.getState())})).switchMap((function(){return n.Observable.of((0,A.g)(),(0,A.aN)())}))},getMetadataRecordById:function(e,t){return e.ofType(T.UT).switchMap((function(e){var r=e.metadataOptions,o=void 0===r?{}:r,a=t.getState(),c=(0,_.Iz)(a);return n.Observable.defer((function(){return(0,N.FU)((0,B.Fh)(c))})).switchMap((function(e){var t=p()(e,"capability.layer.layer",[]),r=1===t.length?t[0].metadataURL:m()(t,(function(e){return e.name===c.name.split(":")[1]})),a=p()(m()(r,(function(e){return g()(e.type)&&"iso19115:2003"===e.type.toLowerCase()&&("application/xml"===e.format||"text/xml"===e.format)})),"onlineResource.href"),s=p()(m()(r,(function(e){return g()(e.type)&&"iso19115:2003"===e.type.toLowerCase()&&"text/html"===e.format})),"onlineResource.href"),f=m()(p()(o,"extractors",[]),(function(e){var t=e.properties,r=e.layersRegex,n=r?new RegExp(r):null;return h()(t)&&(!r||n.test(c.name))})),y=s?{metadataUrl:s}:{},b=n.Observable.defer((function(){return $.ZP.getRecordById(c.catalogURL)})).switchMap((function(e){return e&&e.error?n.Observable.of((0,M.vU)({title:"notification.warning",message:"toc.layerMetadata.notification.warnigGetMetadataRecordById",autoDismiss:6,position:"tc"}),(0,E.c9)(y,!1)):e&&e.dc?n.Observable.of((0,E.c9)(K(K({},y),e.dc),!1)):n.Observable.empty()})),v=n.Observable.defer((function(){return i().get(a,{headers:{Accept:"application/xml"}})})).pluck("data").map((function(e){return(new l.a).parseFromString(e)})).map((function(e){var t=u().useNamespaces(o.xmlNamespaces||{});return function e(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return P()(r).reduce((function(r,o){var i,a,u,l=(u=2,function(e){if(Array.isArray(e))return e}(a=o)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,u=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(u.push(n.value),u.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(a,u)||z(a,u)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=l[0],s=l[1];if(h()(s)&&g()(s.xpath)&&h()(s.properties)&&w()(s.properties).length>0)0===(i=t(s.xpath,n).map((function(t){return e(s.properties,t)}))).length&&(i=null);else{var f,y=t(s,n);1===y.length?i=null!==(f=p()(y[0],"nodeValue"))&&void 0!==f?f:p()(y[0],"childNodes[0].nodeValue"):y.length>1&&(i=y.map((function(e){return p()(e,"childNodes[0].nodeValue")})).filter((function(e){return!!e})))}return K(K({},r),i?X({},c,i):{})}),{})}(f.properties,e)})).switchMap((function(e){return n.Observable.of((0,E.c9)(K(K({},y),e),!1))}));return a&&f?v:c.catalogURL?b:n.Observable.of((0,E.c9)(y,!1))})).startWith((0,E.c9)({},!0)).catch((function(){return n.Observable.of((0,M.vU)({title:"notification.warning",message:"toc.layerMetadata.notification.warnigGetMetadataRecordById",autoDismiss:6,position:"tc"}),(0,E.c9)({},!1))}))}))},autoSearchEpic:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).getState,r=void 0===t?function(){}:t;return e.ofType(T.CO).debounce((function(){var e=r(),t=(0,D.l2)(e);return n.Observable.timer(t)})).switchMap((function(e){var t=e.text,o=r(),i=(0,D.y)(o),a=(0,D.R7)(o),u=a.type,l=a.url,c=a.filter;return n.Observable.of((0,T.tt)({format:u,url:l,startPosition:1,maxRecords:i,text:t,options:{service:a,filter:c}}))}))},catalogCloseEpic:function(e,t){return e.ofType(T.ur).switchMap((function(){var e,r=t.getState(),o=(0,U.YL)(r),i=(0,D.b6)(r);return(e=n.Observable).of.apply(e,Z([(0,C.pu)("metadataexplorer","enabled",!1,"group",null),(0,T.In)("view"),(0,T.ye)()].concat("backgroundSelector"===o?[(0,T.Dw)(s()(w()(i))),(0,L.vw)(!0)]:[])))}))},getSupportedFormatsEpic:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).getState,r=void 0===t?function(){}:t;return e.ofType(T.xM).filter((function(e){return(0,D.CK)(r())!==(null==e?void 0:e.url)})).switchMap((function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).url,t=void 0===e?"":e;return n.Observable.defer((function(){return(0,N.T6)(t,!0)})).switchMap((function(e){return n.Observable.of((0,T.nx)(e,t))})).let((0,k.hP)((0,T.We)(!0),(0,T.We)(!1),(function(){return n.Observable.of((0,M.vU)({title:"layerProperties.format.error.title",message:"layerProperties.format.error.message"}),(0,T.We)(!1))})))}))},updateGroupSelectedMetadataExplorerEpic:function(e,t){return e.ofType(E.c7).filter((function(){return(0,D.JF)(t.getState())})).switchMap((function(e){var r=e.nodeType,o=e.id,i=t.getState(),a=0===(0,_.NP)(i).length||"group"!==r?"Default":o;return n.Observable.of((0,C.Xg)("metadataexplorer","group",a))}))}}}},589919:(e,t,r)=>{"use strict";r.d(t,{hP:()=>c});var n=r(984596),o=r.n(n),i=r(49977),a=r.n(i);function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]?arguments[1]:[];return e.startWith.apply(e,function(e){if(Array.isArray(e))return u(e)}(t=r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())},c=function(e,t,r){return function(n){return(r?l(n,o()(e)).catch(r):l(n,o()(e))).concat(a().Observable.from(o()(t)))}}},38842:(e,t,r)=>{"use strict";r.d(t,{wk:()=>f,Yf:()=>p,c3:()=>y,fY:()=>m});var n=r(218721),o=r.n(n),i=r(227361),a=r.n(i),u=r(313311),l=r.n(u),c=r(22222),s=r(308316),f=function(e){return o()(e,"localConfig.localizedLayerStyles")},p=function(e){var t=a()(e,"localConfig.plugins.dashboard",[]),r=l()(t,(function(e){return"DashboardEditor"===e.name}))||{};return a()(r,"cfg.catalog.localizedLayerStyles",!1)},y=function(e){return a()(e,"localConfig.localizedLayerStyles.name","mapstore_language")},m=(0,c.P1)(f,y,s.KV,(function(e,t,r){var n=[];return e&&n.push({name:t,value:r}),n}))},576712:(e,t,r)=>{"use strict";r.d(t,{n0:()=>p,em:()=>y,tW:()=>m,FJ:()=>b,F8:()=>v,p8:()=>d,qy:()=>g});var n=r(727418),o=r.n(n),i=r(91175),a=r.n(i),u=r(701469),l=r.n(u),c=r(986267);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=2&&r[1]&&r[1].split(/[&;]/g).forEach((function(e){var r=e.split("=");-1===t.indexOf(r[0].toLowerCase())&&(n[r[0]]=r[1])})),{url:r[0],params:n}},m=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).references,t=void 0===e?[]:e;return{wfs:a()(t.filter((function(e){return e.type&&("OGC:WFS"===e.type||e.type.indexOf("OGC:WFS")>-1&&e.type.indexOf("http-get-feature")>-1)}))),wms:a()(t.filter((function(e){return e.type&&("OGC:WMS"===e.type||e.type.indexOf("OGC:WMS")>-1&&e.type.indexOf("http-get-map")>-1)}))),wmts:a()(t.filter((function(e){return e.type&&("OGC:WMTS"===e.type||e.type.indexOf("OGC:WMTS")>-1&&e.type.indexOf("http-get-map")>-1)}))),tms:a()(t.filter((function(e){return e.type&&("OGC:TMS"===e.type||e.type.indexOf("OGC:TMS")>-1)})))}},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{references:[]};return{esri:a()(e.references.filter((function(e){return e.type&&("ESRI:SERVER"===e.type||"arcgis"===e.type)})))}},v=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).references,t=void 0===e?[]:e,r=a()(t.filter((function(e){return e.type&&e.type.indexOf("OGC:WMS")>-1&&e.type.indexOf("http-get-capabilities")>-1}))),n=a()(t.filter((function(e){return e.type&&e.type.indexOf("OGC:WFS")>-1&&e.type.indexOf("http-get-capabilities")>-1}))),o=a()(t.filter((function(e){return e.type&&e.type.indexOf("OGC:WMTS")>-1&&e.type.indexOf("http-get-capabilities")>-1}))),i=[];return r&&i.push({type:"WMS_GET_CAPABILITIES",url:r.url,labelId:"catalog.wmsGetCapLink"}),o&&i.push({type:"WMTS_GET_CAPABILITIES",url:o.url,labelId:"catalog.wmtsGetCapLink"}),n&&i.push({type:"WFS_GET_CAPABILITIES",url:n.url,labelId:"catalog.wfsGetCapLink"}),i},d=function(e){var t,r;return"wms"===e.type?[e.url].concat((r=null!==(t=e.domainAliases)&&void 0!==t?t:[],function(e){if(Array.isArray(e))return f(e)}(r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())).join(","):e.url},g=function(e){return e&&!l()(e)&&-1!==e.indexOf(",")?e.split(",").map((function(e){return e.trim()})):e}},993201:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(264721),o=r.n(n),i=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split("?")[0].split("@");if(e.length>1){var t=e[e.length-1];if(o()(["png","png8","jpeg","vnd.jpeg-png","gif"],t))return t}return null}},611847:(e,t,r)=>{"use strict";r.d(t,{ij:()=>d,w0:()=>g,vl:()=>O,K2:()=>h,Nw:()=>S});var n=r(472500),o=r.n(n),i=r(701469),a=r.n(i),u=r(747037),l=r.n(u),c=r(618446),s=r.n(c),f=r(189734),p=r.n(f),y=r(313311),m=r.n(y),b=r(964210);function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(e===t)return!0;if(!e&&!t)return!0;var r=e?e.split("&").filter((function(e){return!!e})):[],n=t?t.split("&").filter((function(e){return!!e})):[];return s()(p()(r),p()(n))}(i.query,u.query);return y&&b&&m&&v&&g},O=function(e){return b.Qc(e)},h=function(e){return new RegExp(arguments.length>1&&void 0!==arguments[1]?arguments[1]:/^(http(s{0,1}):\/\/)+?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$/).test(e)},S=function(e,t){var r=new RegExp(arguments.length>2&&void 0!==arguments[2]?arguments[2]:/^(http(s{0,1}):\/\/)+?[\w.\-{}]+(?:\.[\w\.-]+)+[\w\-\._~\/\;\.\%\:\&\=\?{}]+$/).test(e);if(!r)return!1;if(r&&!t)return!0;if(r&&t){var n=/\{(.*?)\}/.test(e);return 0===t.filter((function(e){return m()(n,e)})).length}return!1}}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/52066.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/52066.affd309bf2aa3f38d3a0.chunk.js deleted file mode 100644 index 0bb22900bd..0000000000 --- a/geonode_mapstore_client/static/mapstore/dist/js/52066.affd309bf2aa3f38d3a0.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[52066],{801550:(e,t,r)=>{"use strict";r.d(t,{pP:()=>n,TR:()=>o,N7:()=>i,mq:()=>a,uv:()=>u,Qy:()=>c,IL:()=>l,Li:()=>s,OW:()=>f,ZO:()=>p,Um:()=>y,TF:()=>m,Ls:()=>b,Ec:()=>v,Eu:()=>d,JJ:()=>g,nZ:()=>O,YD:()=>h,GI:()=>S,Jb:()=>w,Uh:()=>x,e$:()=>P,eh:()=>j,$j:()=>R,bJ:()=>T,Mk:()=>E,xy:()=>M,o6:()=>C,FP:()=>A,Mo:()=>L,sO:()=>D,Px:()=>U,hd:()=>I,Ju:()=>_,BV:()=>F,SO:()=>N,H0:()=>W,$X:()=>G,ou:()=>B,NE:()=>k,Lq:()=>V,aN:()=>$});var n="CHANGE_MAP_VIEW",o="CLICK_ON_MAP",i="CHANGE_MOUSE_POINTER",a="CHANGE_ZOOM_LVL",u="PAN_TO",c="ZOOM_TO_EXTENT",l="ZOOM_TO_POINT",s="CHANGE_MAP_CRS",f="CHANGE_MAP_SCALES",p="CHANGE_MAP_STYLE",y="CHANGE_ROTATION",m="CREATION_ERROR_LAYER",b="UPDATE_VERSION",v="INIT_MAP",d="RESIZE_MAP",g="CHANGE_MAP_LIMITS",O="SET_MAP_RESOLUTIONS",h="REGISTER_EVENT_LISTENER",S="UNREGISTER_EVENT_LISTENER",w="MOUSE_MOVE",x="MOUSE_OUT",P="MAP:MAP_PLUGIN_LOAD",j="MAP:ORIENTATION",R="MAP:UPDATE_MAP_VIEW",T="MAP:UPDATE_MAP_OPTIONS";function E(e,t,r,n){return{type:P,mapType:t,loading:e,loaded:r,error:n}}function M(e,t,r){return{type:l,pos:e,zoom:t,crs:r}}function C(e,t,r,o,i,a,u,c){return{type:n,center:e,zoom:t,bbox:r,size:o,mapStateSource:i,projection:a,viewerOptions:u,resolution:c}}function A(e,t){return{type:o,point:e,layer:t}}function L(e){return{type:i,pointer:e}}function D(e,t){return{type:a,zoom:e,mapStateSource:t}}function U(e,t,r,n){return{type:c,extent:e,crs:t,maxZoom:r,options:n}}function I(e,t){return{type:p,style:e,mapStateSource:t}}function _(){return{type:d}}function F(e){var t=e.restrictedExtent,r=e.crs,n=e.minZoom;return{type:g,restrictedExtent:t,crs:r,minZoom:n}}function N(e){return{type:O,resolutions:e}}var W=function(e,t){return{type:h,eventName:e,toolName:t}},G=function(e,t){return{type:S,eventName:e,toolName:t}},B=function(e){return{type:w,position:e}},k=function(){return{type:x}},V=function(e){return{type:j,orientation:e}},$=function(e){return{type:T,configUpdate:e}}},658918:(e,t,r)=>{"use strict";r.d(t,{F:()=>y});var n=r(375875),o=r.n(n),i=r(986267),a=r(552259);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r{"use strict";r.d(t,{Z:()=>rr});var n={};r.r(n),r.d(n,{getCatalogRecords:()=>ie,getLayerFromRecord:()=>ae,preprocess:()=>te,testService:()=>ne,textSearch:()=>oe,validate:()=>re});var o={};r.r(o),r.d(o,{getCatalogRecords:()=>Oe,getLayerFromRecord:()=>he,preprocess:()=>be,testService:()=>de,textSearch:()=>ge,validate:()=>ve});var i={};r.r(i),r.d(i,{getCatalogRecords:()=>_e,getLayerFromRecord:()=>Fe,preprocess:()=>De,testService:()=>Ie,textSearch:()=>Le,validate:()=>Ue});var a={};r.r(a),r.d(a,{getCatalogRecords:()=>mt,getLayerFromRecord:()=>dt,getRecords:()=>st,testService:()=>yt,textSearch:()=>ft,tileProviderToLayer:()=>vt,tmsToLayer:()=>bt,validate:()=>pt});var u={};r.r(u),r.d(u,{getCatalogRecords:()=>At,getLayerFromRecord:()=>Lt,getRecords:()=>Rt,preprocess:()=>Tt,testService:()=>Mt,textSearch:()=>Ct,validate:()=>Et});var c={};r.r(c),r.d(c,{getCatalogRecords:()=>Bt,getLayerFromRecord:()=>kt,preprocess:()=>Nt,testService:()=>Gt,textSearch:()=>Ft,validate:()=>Wt});var l={};r.r(l),r.d(l,{getCatalogRecords:()=>Qt,getLayerFromRecord:()=>er,preprocess:()=>Yt,testService:()=>Kt,textSearch:()=>Xt,validate:()=>tr});var s=r(91175),f=r.n(s),p=r(747037),y=r.n(p),m=r(264721),b=r.n(m),v=r(984596),d=r.n(v),g=r(189734),O=r.n(g),h=r(944908),S=r.n(h),w=r(701469),x=r.n(w),P=r(763105),j=r.n(P),R=r(441609),T=r.n(R),E=r(414293),M=r.n(E),C=r(727418),A=r.n(C),L=r(552259),D=r(49977),U=r.n(D),I=r(737275),_=r(624262),F=r(576712),N=r(501157),W=r(375875),G=r.n(W);function B(e){return B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},B(e)}function k(e){var t="function"==typeof Map?new Map:void 0;return k=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return V(e,arguments,Z(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),q(n,e)},k(e)}function V(e,t,r){return V=$()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&q(o,r.prototype),o},V.apply(null,arguments)}function $(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function q(e,t){return q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},q(e,t)}function Z(e){return Z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Z(e)}var z=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&q(e,t)}(i,e);var t,r,n,o=(r=i,n=$(),function(){var e,t=Z(r);if(n){var o=Z(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===B(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(e,t){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(r=o.call(this,e)).name="ServiceValidationError",r.notification=t,r}return t=i,Object.defineProperty(t,"prototype",{writable:!1}),t}(k(Error)),H=function(e){return U().Observable.of(e)},J=function(e){return""===e.title||""===e.url?U().Observable.throw(new z("Validation Error","catalog.notification.warningAddCatalogService")):U().Observable.of(e)},Y=function(e){var t=e.parseUrl,r=void 0===t?function(e){return e}:t;return function(e){var t="catalog.notification.errorServiceUrl";return U().Observable.defer((function(){return G().get(r(e.url))})).catch((function(){throw new z("Service Test error",t)})).switchMap((function(r){if(r.error||""===r.data)throw new z("Service Test error",t);return U().Observable.of(e)}))}};function K(e){return K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},K(e)}function X(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Q(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=r.removeParams,o=void 0===n?[]:n,i=r.format,a=r.catalogURL,u=r.url,c=r.formats,l=void 0===c?{}:c,s=r.map,f=void 0===s?{}:s,p=r.layerBaseConfig,y=r.localizedLayerStyles,m=r.allowUnsecureLayers;if(!e||!e.references)return null;var b,v,d=(0,F.tW)(e).wms,g=function(e){return(0,F.em)((0,I.$F)(e),["request","layer","layers","service","version"].concat(o))},O=(0,F.qy)(d.url);if(O&&x()(O))b=O.map((function(e){return g(e)})).map((function(e){return e.url})),v=O.map((function(e){return g(e)})).map((function(e){return e.params})).reduce((function(e,t){return Q(Q({},e),t)}),{});else{var h=g(O||a);b=h.url,v=h.params}var S,w=(S=u||b,x()(S)&&1===S.length?S[0]:S),P=(0,F.n0)(d.SRS),j=null!==(t=null==e?void 0:e.capabilities)&&void 0!==t?t:{},R=j.MaxScaleDenominator,E=j.MinScaleDenominator,C=Q(Q(Q(Q({type:"wms",requestEncoding:e.requestEncoding,style:e.style,format:i,url:w,capabilitiesURL:e.capabilitiesURL,queryable:e.queryable,visibility:!0,dimensions:e.dimensions||[],name:d.params&&d.params.name,title:e.title||d.params&&d.params.name,description:e.description||"",credits:!(0,I.u8)("noCreditsFromCatalog")&&e.credits,bbox:{crs:e.boundingBox.crs,bounds:{minx:e.boundingBox.extent[0],miny:e.boundingBox.extent[1],maxx:e.boundingBox.extent[2],maxy:e.boundingBox.extent[3]}},links:(0,F.F8)(e),params:v,allowedSRS:P,catalogURL:a},p),e.layerOptions),{},{localizedLayerStyles:M()(y)?void 0:y},!T()(l)&&{imageFormats:l.imageFormats,infoFormats:l.infoFormats}),!M()(m)&&{forceProxy:m});if(!T()(f)&&(R||E)){var A=(!M()(E)&&(0,L.getResolutionObject)(E,"scale",f)||{}).resolution,D=(!M()(R)&&(0,L.getResolutionObject)(R,"scale",f)||{}).resolution;C=Q(Q({},C),{},{minResolution:A,maxResolution:D})}return C}(e,t);return r?Promise.resolve(n):n},ue=r(86638),ce=r(659551);function le(e){return le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},le(e)}function se(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function fe(e){for(var t=1;t').concat(a,"")};function me(e,t){var r,n,o=(null==e?void 0:e.URI)&&d()(e.URI);if(o){var i=f()(o.filter((function(e){return"thumbnail"===e.name})))||f()(o.filter((function(e){var t;return!e.name&&(null===(t=e.protocol)||void 0===t?void 0:t.indexOf("image/"))>-1})));r=i?i.value:null}if(!r&&e&&e.references){var a=function(e){return f()(d()(e.references).filter((function(t){return"WWW:LINK-1.0-http--image-thumbnail"===t.scheme||"thumbnail"===t.scheme||"WWW:DOWNLOAD-1.0-http--download"===t.scheme&&-1!==(t.value||"").indexOf("".concat(e.identifier||"","-thumb"))||"WWW:DOWNLOAD-REST_MAP"===t.scheme&&-1!==(t.value||"").indexOf("".concat(e.identifier||"","-thumb"))})))}(e);a&&(r=a.value)}return r&&(0===r.indexOf("http")||(r=((n=t&&t.url)&&n.replace(/\/csw$/,"/")||"")+r)),r}var be=H,ve=J,de=Y({parseUrl:ce.ZP.parseUrl}),ge=ce.ZP.textSearch,Oe=function(e,t,r){var n=e;return n&&n.records?n.records.map((function(e){var n=e.dc,o=[];n&&n.references&&(Array.isArray(n.references)?n.references:[n.references]).filter((function(e){return e.scheme.indexOf("http-get-capabilities")>-1})).forEach((function(e){var r=0===e.value.indexOf("http")?e.value:(t&&t.catalogURL||"")+"/"+e.value;o.push({type:e.scheme,url:r})}));var i=(0,ce.kv)(n,t);i&&o.push(i);var a={boundingBox:e.boundingBox&&e.boundingBox.extent&&d()(e.boundingBox.extent.join(","))};if(n&&(a=fe(fe({},a),O()(Object.keys(n)).reduce((function(e,t){return fe(fe({},e),{},pe({},t,S()(d()(n[t]))))}),{}))),n&&n.URI&&d()(n.URI)&&d()(n.URI).length&&(a=fe(fe({},a),{},{uri:["
    "+d()(n.URI).map(ye.bind(void 0,a,r)).join("")+"
"]})),n&&n.subject&&d()(n.subject)&&d()(n.subject).length&&(a=fe(fe({},a),{},{subject:["
    "+d()(n.subject).map((function(e){return"
  • ".concat(e,"
  • ")})).join("")+"
"]})),o&&d()(o).length?a=fe(fe({},a),{},{references:[""]}):delete a.references,n&&n.temporal){var u=y()(n.temporal)?n.temporal.split("; "):[];if(u.length){var c=u.filter((function(e){return-1!==e.indexOf("scheme=")})).map((function(e){var t=e.indexOf("=");return e.substr(t+1,e.length-1)}));c=c.length?c[0]:"W3C-DTF";var l=u.filter((function(e){return-1!==e.indexOf("start=")||-1!==e.indexOf("end=")})).map((function(e){var t=e.indexOf("="),n=e.substr(0,t),o=e.substr(t+1,e.length-1),i=e.length-t-1<=10;return b()(["start","end"],n)&&"W3C-DTF"===c&&!i?(0,ue.S$)(r,"catalog.".concat(n))+new Date(o).toLocaleString():b()(["start","end"],n)?(0,ue.S$)(r,"catalog.".concat(n))+o:""}));a=fe(fe({},a),{},{temporal:["
    "+l.map((function(e){return"
  • ".concat(e,"
  • ")})).join("")+"
"]})}}var s=fe(fe({},(0,F.tW)({references:o})),(0,F.FJ)({references:o})),f=Object.keys(s).find((function(e){return s[e]})),p=f&&"esri"!==f?s[f]:void 0;return{serviceType:"csw",layerType:f,isValid:!!f,boundingBox:e.boundingBox,description:n&&y()(n.abstract)&&n.abstract||"",layerOptions:t&&t.layerOptions||{},identifier:n&&y()(n.identifier)&&n.identifier||"",references:o,thumbnail:me(n,t),title:n&&y()(n.title)&&n.title||"",tags:n&&n.tags||"",metadata:a,capabilities:e.capabilities,ogcReferences:p}})):null},he=function(e,t,r){var n=function(e,t){switch(e.layerType){case"wms":return ae(e,t);case"esri":return function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).layerBaseConfig,r=void 0===t?{}:t;if(!e||!e.references)return null;var n=(0,F.FJ)(e).esri;return fe({type:n.type,url:n.url,visibility:!0,dimensions:e.dimensions||[],name:n.params&&n.params.name,bbox:{crs:e.boundingBox.crs,bounds:{minx:e.boundingBox.extent[0],miny:e.boundingBox.extent[1],maxx:e.boundingBox.extent[2],maxy:e.boundingBox.extent[3]}}},r)}(e,t);default:return null}}(e,t);return r?Promise.resolve(n):n},Se=r(513218),we=r.n(Se),xe=r(986267),Pe=r(707294),je=r(603475);function Re(e){return Re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Re(e)}function Te(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ee(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=t.removeParams,n=void 0===r?[]:r,o=t.format,i=t.catalogURL,a=t.url,u=t.layerBaseConfig,c=t.localizedLayerStyles;if(!e||!e.references)return null;var l,s,f=(0,F.tW)(e).wmts,p=function(e){return(0,F.em)((0,I.$F)(e),["request","layer","layers","service","version"].concat(n))},y=(0,F.qy)(f.url);if(y&&x()(y))l=y.map((function(e){return p(e)})).map((function(e){return e.url})),s=y.map((function(e){return p(e)})).map((function(e){return e.params})).reduce((function(e,t){return Ee(Ee({},e),t)}),{});else{var m=p(y||i);l=m.url,s=m.params}var b,v=(b=a||l,x()(b)&&1===b.length?b[0]:b),d=(0,F.n0)(f.SRS);return Ee(Ee(Ee({type:"wmts",requestEncoding:e.requestEncoding,style:e.style,format:o,url:v,capabilitiesURL:e.capabilitiesURL,queryable:e.queryable,visibility:!0,dimensions:e.dimensions||[],name:f.params&&f.params.name,title:e.title||f.params&&f.params.name,matrixIds:e.matrixIds||[],description:e.description||"",tileMatrixSet:e.tileMatrixSet||[],credits:!(0,I.u8)("noCreditsFromCatalog")&&e.credits,bbox:{crs:e.boundingBox.crs,bounds:{minx:e.boundingBox.extent[0],miny:e.boundingBox.extent[1],maxx:e.boundingBox.extent[2],maxy:e.boundingBox.extent[3]}},links:(0,F.F8)(e),params:s,allowedSRS:d,catalogURL:i},u),e.layerOptions),{},{localizedLayerStyles:M()(c)?void 0:c})}(e,t);return r?Promise.resolve(n):n},Ne=r(227361),We=r.n(Ne),Ge=r(505055),Be=r.n(Ge),ke=r(233044),Ve=r(993201);function $e(e){return $e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$e(e)}function qe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ze(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=d()(We()(e,"TileMapService.TileMaps.TileMap",[])),a=o.projection,u=We()(o,"options.service.allSRS"),c=i.map((function(t){var r=t.$,n=void 0===r?{}:r;return Ze(Ze({},n),{},{href:(0,ke.cleanAuthParamsFromURL)(n.href),identifier:(0,ke.cleanAuthParamsFromURL)(n.href),format:(0,Ve.A)(n.href),tmsUrl:(0,ke.cleanAuthParamsFromURL)(e.url)})})).filter((function(e){var t=e.srs;return!(a&&!u)||function(e,t){return e===t||"EPSG:3857"===e&&"EPSG:900913"===t||"EPSG:900913"===e&&"EPSG:3857"===t}(t,a)})).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.title,r=void 0===t?"":t,o=e.srs,i=void 0===o?"":o;return!n||-1!==r.toLowerCase().indexOf(n.toLowerCase())||-1!==i.toLowerCase().indexOf(n.toLowerCase())}));return{numberOfRecordsMatched:c.length,numberOfRecordsReturned:Math.min(r,c.length),nextRecord:t+Math.min(r,c.length)+1,records:c.filter((function(e,n){return n>=t-1&&n0&&void 0!==arguments[0]?arguments[0]:{}).title;return!n||-1!==(void 0===e?"":e).toLowerCase().indexOf(n.toLowerCase())})),i=o.filter((function(e,n){return n>=t-1&&n4&&void 0!==arguments[4]?arguments[4]:{},i=(o.options||{}).service;return"tms"===(void 0===i?{}:i).provider&&Ke(e,t,r,n,o),it(0,t,r,n,o)},ft=function(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=(o.options||{}).service;return"tms"===(void 0===i?{}:i).provider?Ke(e,t,r,n,o):it(0,t,r,n,o)},pt=function(e){return"tms"===e.provider?J(e):function(e){var t,r=e.provider&&"custom"!==e.provider?!!e.provider:(t=e.url,(0,Qe.Nw)(t));if(e.title&&r)return D.Observable.of(e);throw new Error("catalog.config.notValidURLTemplate")}(e)},yt=function(e){return"tms"===e.provider?Y({parseUrl:Ye})(e):function(e){return D.Observable.of(e)}(e)},mt=function(e,t){if(e&&e.records){if(t.service&&"tms"===t.service.provider){var r=[{type:"OGC:TMS",version:"1.0.0",url:t.url}],n=(0,F.tW)({references:r}).tms;return e.records.map((function(e){return{serviceType:"tms",layerType:"tms",isValid:!!n,title:e.title,tileMapUrl:e.href,description:"".concat(e.srs).concat(e.format?", "+e.format:""),tmsUrl:t.tmsUrl,references:r,ogcReferences:n}}))}return e.records.map((function(e){return{serviceType:"tms",layerType:"tileprovider",isValid:!!e.provider,title:e.title||e.provider,url:e.url,attribution:e.attribution,options:e.options,provider:e.provider,references:[]}}))}return null},bt=function(e,t){var r=e.tileMapUrl,n=t.tileMap,o=t.service,i=(n||{}).TileMap,a=void 0===i?{}:i,u=(o||{}).forceDefaultTileGrid,c=a.Title,l=a.Abstract,s=a.SRS,f=a.BoundingBox,p=void 0===f?{}:f,y=a.Origin,m=a.TileFormat,b=void 0===m?{}:m,v=a.TileSets,g=a.$,O=g.version,h=g.tilemapservice,S=We()(p,"$",{}),w=S.minx,x=S.miny,P=S.maxx,j=S.maxy,R=We()(y,"$"),T=R.x,E=R.y,M=We()(b,"$",{}),C=M.width,A=M.height,L=M["mime-type"],D=M.extension,U=[parseFloat(C),parseFloat(A,10)],I=d()(We()(v,"TileSet",[]).map((function(e){return e.$}))).map((function(e){var t=e.href,r=e.order,n=e["units-per-pixel"];return{href:(0,ke.cleanAuthParamsFromURL)(t),order:parseFloat(r),resolution:parseFloat(n)}})),_=We()(v,"profile");return{title:c,visibility:!0,hideErrors:!0,name:c,allowedSRS:lt({},s,!0),description:l,srs:s,version:O,tileMapService:h?(0,ke.cleanAuthParamsFromURL)(h):void 0,type:"tms",profile:_,tileMapUrl:r,forceDefaultTileGrid:u,bbox:p&&{crs:s,bounds:{minx:parseFloat(w),miny:parseFloat(x),maxx:parseFloat(P),maxy:parseFloat(j)}},tileSets:I,origin:{x:parseFloat(T),y:parseFloat(E)},format:L,tileSize:U,extension:D}},vt=function(e){return{type:"tileprovider",visibility:!0,url:e.url,title:e.title,attribution:e.attribution,options:e.options,provider:e.provider,name:e.provider}},dt=function(e,t,r){return r?"tms"===e.layerType?(n=e.tileMapUrl,G().get(n).then((function(e){return new Promise((function(t){Be().parseString(e.data,{explicitArray:!1},(function(e,r){return t(r)}))}))}))).then((function(r){return bt(e,ct(ct({},t),{},{tileMap:r}))})):Promise.resolve(vt(e)):function(e,t){return"tms"===e.layerType?bt(e,t):"tileprovider"===e.layerType?vt(e,t):null}(e,t);var n},gt=r(432420);function Ot(e){return Ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ot(e)}function ht(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function St(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,o=d()(We()(e,'["wfs:WFS_Capabilities"].FeatureTypeList.FeatureType',[])).map((function(t){var r,n=t.Name,o=t.Title,i=t.Abstract,a=t.DefaultSRS,u=t.OtherSRS,c=void 0===u?[]:u,l=t["ows:WGS84BoundingBox"],s=l["ows:LowerCorner"].split(" "),f=l["ows:UpperCorner"].split(" "),p={minx:parseFloat(s[0]),miny:parseFloat(s[1]),maxx:parseFloat(f[0]),maxy:parseFloat(f[1])};return{featureType:t,type:"wfs",url:(0,ke.cleanAuthParamsFromURL)(e.url),name:n,title:o,description:i,SRS:[a].concat((r=c,function(e){if(Array.isArray(e))return xt(e)}(r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return xt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?xt(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),defaultSRS:a,boundingBox:{bounds:p,crs:"EPSG:4326"}}})).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.title,r=void 0===t?"":t,o=e.name,i=void 0===o?"":o,a=e.description;return!n||-1!==r.toLowerCase().indexOf(n.toLowerCase())||-1!==i.toLowerCase().indexOf(n.toLowerCase())||-1!==a.toLowerCase().indexOf(n.toLowerCase())})),i=o.filter((function(e,n){return n>=t-1&&n0&&void 0!==arguments[0]?arguments[0]:{}).records;return e?e.map((function(e){var t=[{type:"OGC:WFS-1.1.0-http-get-capabilities",url:e.url},{type:"OGC:WFS-1.1.0-http-get-feature",url:e.url}],r=(0,F.tW)({references:t}).wfs;return St(St({},e),{},{serviceType:"wfs",isValid:!!r,references:t,ogcReferences:r})})):null},Lt=function(e,t,r){var n=function(e){return St({type:e.type||"wfs",search:{url:e.url,type:"wfs"},url:e.url,queryable:e.queryable,visibility:!0,name:e.name,title:e.title||e.name,description:e.description||"",bbox:e.boundingBox,links:(0,F.F8)(e),style:{weight:1,color:"rgba(0, 0, 255, 1)",opacity:1,fillColor:"rgba(0, 0, 255, 0.1)",fillOpacity:.1,radius:10}},e.layerOptions)}(e);return r?Promise.resolve(n):n};function Dt(e){return Dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dt(e)}function Ut(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function It(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,$t),c=[zt({title:(null==o||null===(r=o.options)||void 0===r||null===(i=r.service)||void 0===i?void 0:i.title)||Jt(e),url:e,type:"3dtiles",tileset:a},u)].filter((function(e){var t=e.title;return!n||(null==t?void 0:t.toLowerCase().includes((null==n?void 0:n.toLowerCase())||""))}));return{numberOfRecordsMatched:c.length,numberOfRecordsReturned:c.length,records:c}}))}(e,0,0,n,o)},Qt=function(e){return null!=e&&e.records?e.records.map((function(e){var t=e.version,r=e.bbox,n=e.format,o=e.properties;return zt(zt(zt(zt({serviceType:"3dtiles",isValid:!0,description:"v. ".concat(t),title:e.title,identifier:e.url,url:e.url,thumbnail:null},r&&{bbox:r}),n&&{format:n}),o&&{properties:o}),{},{references:[]})})):null},er=function(e,t,r){var n=function(e){var t=e.bbox,r=e.format,n=e.properties;return zt(zt(zt({type:"3dtiles",url:e.url,title:e.title,visibility:!0},t&&{bbox:t}),r&&{format:r}),n&&{properties:n})}(e);return r?Promise.resolve(n):n},tr=function(e){if(e.title&&function(e){if((0,Qe.Nw)(e)){var t=e.split(/\./g);return"json"===t[t.length-1]}return!1}(e.url))return D.Observable.of(e);throw new Error("catalog.config.notValidURLTemplate")};const rr={csw:o,wfs:u,wms:n,tms:a,wmts:i,backgrounds:c,"3dtiles":l}},856175:(e,t,r)=>{"use strict";r.d(t,{Z:()=>ee});var n=r(49977),o=r(409669),i=r.n(o),a=r(737691),u=r.n(a),c=r(430647),l=r(91175),s=r.n(l),f=r(227361),p=r.n(f),y=r(313311),m=r.n(y),b=r(701469),v=r.n(b),d=r(747037),g=r.n(d),O=r(513218),h=r.n(O),S=r(3674),w=r.n(S),x=r(493220),P=r.n(x),j=r(682492),R=r.n(j),T=r(931273),E=r(580416),M=r(197395),C=r(782904),A=r(921914),L=r(53001),D=r(788113),U=r(31935),I=r(308316),_=r(675110),F=r(576712),N=r(501157),W=r(986267),G=r(737275),B=r(624262),k=r(589919),V=r(801550),$=r(659551),q=["format","url","text","layerOptions"];function Z(e){return function(e){if(Array.isArray(e))return H(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||z(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function z(e,t){if(e){if("string"==typeof e)return H(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?H(e,t):void 0}}function H(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,q),c=(0,I.Ps)(y),l=e[r].getCatalogRecords(u,a,c)||[],f=s()(l.filter((function(e){return e.identifier||e.name===i}))),p=(0,F.tW)(f),m=p.wms,b=p.wmts,v=m||b;if(v){var d=(0,F.n0)(v.SRS);if(v.SRS.length>0&&!W.default.isAllowedSRS("EPSG:3857",d))return n.Observable.empty()}var g=(0,D.kS)(y),O=e[r].getLayerFromRecord(f,{removeParams:g,catalogURL:"csw"===r&&o?o+"?request=GetRecordById&service=CSW&version=2.0.2&elementSetName=full&id="+f.identifier:o,layerBaseConfig:{}});return f?[O,a]:[i]}))):n.Observable.empty()}))})).mergeMap((function(e){if(e){var t=e.filter((function(e){return g()(e[0])})).join(" "),r=[];return t&&(r=[(0,T.E9)(t)]),r=[].concat(Z(r),Z(e.filter((function(e){return h()(e[0])})).map((function(e){return(0,T.A4)(R()({},e[0],e[1]))})))),n.Observable.from(r)}return n.Observable.empty()})).catch((function(){return n.Observable.empty()}))},addLayerAndDescribeEpic:function(e,t){return e.ofType(T.r7).mergeMap((function(e){var r=e.layer,o=e.zoomToLayer,i=[],a=t.getState(),u=(0,B.R8)(r);return i.push((0,E.A4)(K(K({},r),{},{id:u}))),o&&r.bbox&&i.push((0,V.Px)(r.bbox.bounds,r.bbox.crs)),"wms"===r.type?n.Observable.defer((function(){return(0,N.gs)((0,B.Hi)(r),r.name)})).switchMap((function(e){if(e){var t=m()(e,(function(e){return e.name===r.name}));if(t&&"WFS"===t.owsType){var o=G.ZP.filterUrlParams(G.ZP.cleanDuplicatedQuestionMarks(t.owsURL),(0,D.kS)(a));return n.Observable.of((0,E.He)(u,{search:{url:o,type:"wfs"}}))}}return n.Observable.empty()})).merge(n.Observable.from(i)).catch((function(e){return n.Observable.of((0,T.bu)(r,e))})):n.Observable.from(i)})).catch((function(){return n.Observable.empty()}))},newCatalogServiceAdded:function(t,r){return t.ofType(T.mh).switchMap((function(){var t=r.getState(),o=(0,D._S)(t),i=(0,D.y)(t);return n.Observable.of(o).switchMap((function(t){var r,o,i;return null!==(r=null===(o=e[t.type])||void 0===o||null===(i=o.preprocess)||void 0===i?void 0:i.call(o,t))&&void 0!==r?r:n.Observable.of(t)})).switchMap((function(t){var r,o,i;return null!==(r=null===(o=e[t.type])||void 0===o||null===(i=o.validate)||void 0===i?void 0:i.call(o,t))&&void 0!==r?r:n.Observable.of(t)})).switchMap((function(e){return n.Observable.of((0,T.tt)({format:e.type,url:e.url,startPosition:1,maxRecords:i,text:"",options:{service:e,isNewService:!0}}))})).catch((function(e){return n.Observable.of((0,M.vU)({exception:e,title:"notification.warning",message:e.notification||"catalog.notification.warningAddCatalogService",autoDismiss:6,position:"tc"}))}))}))},deleteCatalogServiceEpic:function(e,t){return e.ofType(T.$Y).switchMap((function(){var e=t.getState(),r=(0,D.Cb)(e),o=(0,D.b6)(e),i=o[r]?(0,M.Vp)({title:"notification.warning",message:"catalog.notification.serviceDeletedCorrectly",autoDismiss:6,position:"tc"}):(0,M.vU)({title:"notification.warning",message:"catalog.notification.impossibleDeleteService",autoDismiss:6,position:"tc"}),a=(0,T.SU)(r);return o[r]?n.Observable.of(i,a):n.Observable.of(i)}))},openCatalogEpic:function(e,t){return e.ofType(C.At,C.kM).filter((function(e){return"metadataexplorer"===e.control&&(0,D.JF)(t.getState())})).switchMap((function(){return n.Observable.of((0,A.g)(),(0,A.aN)())}))},getMetadataRecordById:function(e,t){return e.ofType(T.UT).switchMap((function(e){var r=e.metadataOptions,o=void 0===r?{}:r,a=t.getState(),l=(0,_.Iz)(a);return n.Observable.defer((function(){return(0,N.FU)((0,B.Fh)(l))})).switchMap((function(e){var t=p()(e,"capability.layer.layer",[]),r=1===t.length?t[0].metadataURL:m()(t,(function(e){return e.name===l.name.split(":")[1]})),a=p()(m()(r,(function(e){return g()(e.type)&&"iso19115:2003"===e.type.toLowerCase()&&("application/xml"===e.format||"text/xml"===e.format)})),"onlineResource.href"),s=p()(m()(r,(function(e){return g()(e.type)&&"iso19115:2003"===e.type.toLowerCase()&&"text/html"===e.format})),"onlineResource.href"),f=m()(p()(o,"extractors",[]),(function(e){var t=e.properties,r=e.layersRegex,n=r?new RegExp(r):null;return h()(t)&&(!r||n.test(l.name))})),y=s?{metadataUrl:s}:{},b=n.Observable.defer((function(){return $.ZP.getRecordById(l.catalogURL)})).switchMap((function(e){return e&&e.error?n.Observable.of((0,M.vU)({title:"notification.warning",message:"toc.layerMetadata.notification.warnigGetMetadataRecordById",autoDismiss:6,position:"tc"}),(0,E.c9)(y,!1)):e&&e.dc?n.Observable.of((0,E.c9)(K(K({},y),e.dc),!1)):n.Observable.empty()})),v=n.Observable.defer((function(){return i().get(a,{headers:{Accept:"application/xml"}})})).pluck("data").map((function(e){return(new c.a).parseFromString(e)})).map((function(e){var t=u().useNamespaces(o.xmlNamespaces||{});return function e(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return P()(r).reduce((function(r,o){var i,a,u,c=(u=2,function(e){if(Array.isArray(e))return e}(a=o)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(a,u)||z(a,u)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=c[0],s=c[1];if(h()(s)&&g()(s.xpath)&&h()(s.properties)&&w()(s.properties).length>0)0===(i=t(s.xpath,n).map((function(t){return e(s.properties,t)}))).length&&(i=null);else{var f,y=t(s,n);1===y.length?i=null!==(f=p()(y[0],"nodeValue"))&&void 0!==f?f:p()(y[0],"childNodes[0].nodeValue"):y.length>1&&(i=y.map((function(e){return p()(e,"childNodes[0].nodeValue")})).filter((function(e){return!!e})))}return K(K({},r),i?X({},l,i):{})}),{})}(f.properties,e)})).switchMap((function(e){return n.Observable.of((0,E.c9)(K(K({},y),e),!1))}));return a&&f?v:l.catalogURL?b:n.Observable.of((0,E.c9)(y,!1))})).startWith((0,E.c9)({},!0)).catch((function(){return n.Observable.of((0,M.vU)({title:"notification.warning",message:"toc.layerMetadata.notification.warnigGetMetadataRecordById",autoDismiss:6,position:"tc"}),(0,E.c9)({},!1))}))}))},autoSearchEpic:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).getState,r=void 0===t?function(){}:t;return e.ofType(T.CO).debounce((function(){var e=r(),t=(0,D.l2)(e);return n.Observable.timer(t)})).switchMap((function(e){var t=e.text,o=r(),i=(0,D.y)(o),a=(0,D.R7)(o),u=a.type,c=a.url,l=a.filter;return n.Observable.of((0,T.tt)({format:u,url:c,startPosition:1,maxRecords:i,text:t,options:{service:a,filter:l}}))}))},catalogCloseEpic:function(e,t){return e.ofType(T.ur).switchMap((function(){var e,r=t.getState(),o=(0,U.YL)(r),i=(0,D.b6)(r);return(e=n.Observable).of.apply(e,Z([(0,C.pu)("metadataexplorer","enabled",!1,"group",null),(0,T.In)("view"),(0,T.ye)()].concat("backgroundSelector"===o?[(0,T.Dw)(s()(w()(i))),(0,L.vw)(!0)]:[])))}))},getSupportedFormatsEpic:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).getState,r=void 0===t?function(){}:t;return e.ofType(T.xM).filter((function(e){return(0,D.CK)(r())!==(null==e?void 0:e.url)})).switchMap((function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).url,t=void 0===e?"":e;return n.Observable.defer((function(){return(0,N.T6)(t,!0)})).switchMap((function(e){return n.Observable.of((0,T.nx)(e,t))})).let((0,k.hP)((0,T.We)(!0),(0,T.We)(!1),(function(){return n.Observable.of((0,M.vU)({title:"layerProperties.format.error.title",message:"layerProperties.format.error.message"}),(0,T.We)(!1))})))}))},updateGroupSelectedMetadataExplorerEpic:function(e,t){return e.ofType(E.c7).filter((function(){return(0,D.JF)(t.getState())})).switchMap((function(e){var r=e.nodeType,o=e.id,i=t.getState(),a=0===(0,_.NP)(i).length||"group"!==r?"Default":o;return n.Observable.of((0,C.Xg)("metadataexplorer","group",a))}))}}}},589919:(e,t,r)=>{"use strict";r.d(t,{hP:()=>l});var n=r(984596),o=r.n(n),i=r(49977),a=r.n(i);function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]?arguments[1]:[];return e.startWith.apply(e,function(e){if(Array.isArray(e))return u(e)}(t=r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())},l=function(e,t,r){return function(n){return(r?c(n,o()(e)).catch(r):c(n,o()(e))).concat(a().Observable.from(o()(t)))}}},38842:(e,t,r)=>{"use strict";r.d(t,{wk:()=>f,Yf:()=>p,c3:()=>y,fY:()=>m});var n=r(218721),o=r.n(n),i=r(227361),a=r.n(i),u=r(313311),c=r.n(u),l=r(22222),s=r(308316),f=function(e){return o()(e,"localConfig.localizedLayerStyles")},p=function(e){var t=a()(e,"localConfig.plugins.dashboard",[]),r=c()(t,(function(e){return"DashboardEditor"===e.name}))||{};return a()(r,"cfg.catalog.localizedLayerStyles",!1)},y=function(e){return a()(e,"localConfig.localizedLayerStyles.name","mapstore_language")},m=(0,l.P1)(f,y,s.KV,(function(e,t,r){var n=[];return e&&n.push({name:t,value:r}),n}))},576712:(e,t,r)=>{"use strict";r.d(t,{n0:()=>p,em:()=>y,tW:()=>m,FJ:()=>b,F8:()=>v,p8:()=>d,qy:()=>g});var n=r(727418),o=r.n(n),i=r(91175),a=r.n(i),u=r(701469),c=r.n(u),l=r(986267);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=2&&r[1]&&r[1].split(/[&;]/g).forEach((function(e){var r=e.split("=");-1===t.indexOf(r[0].toLowerCase())&&(n[r[0]]=r[1])})),{url:r[0],params:n}},m=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).references,t=void 0===e?[]:e;return{wfs:a()(t.filter((function(e){return e.type&&("OGC:WFS"===e.type||e.type.indexOf("OGC:WFS")>-1&&e.type.indexOf("http-get-feature")>-1)}))),wms:a()(t.filter((function(e){return e.type&&("OGC:WMS"===e.type||e.type.indexOf("OGC:WMS")>-1&&e.type.indexOf("http-get-map")>-1)}))),wmts:a()(t.filter((function(e){return e.type&&("OGC:WMTS"===e.type||e.type.indexOf("OGC:WMTS")>-1&&e.type.indexOf("http-get-map")>-1)}))),tms:a()(t.filter((function(e){return e.type&&("OGC:TMS"===e.type||e.type.indexOf("OGC:TMS")>-1)})))}},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{references:[]};return{esri:a()(e.references.filter((function(e){return e.type&&("ESRI:SERVER"===e.type||"arcgis"===e.type)})))}},v=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).references,t=void 0===e?[]:e,r=a()(t.filter((function(e){return e.type&&e.type.indexOf("OGC:WMS")>-1&&e.type.indexOf("http-get-capabilities")>-1}))),n=a()(t.filter((function(e){return e.type&&e.type.indexOf("OGC:WFS")>-1&&e.type.indexOf("http-get-capabilities")>-1}))),o=a()(t.filter((function(e){return e.type&&e.type.indexOf("OGC:WMTS")>-1&&e.type.indexOf("http-get-capabilities")>-1}))),i=[];return r&&i.push({type:"WMS_GET_CAPABILITIES",url:r.url,labelId:"catalog.wmsGetCapLink"}),o&&i.push({type:"WMTS_GET_CAPABILITIES",url:o.url,labelId:"catalog.wmtsGetCapLink"}),n&&i.push({type:"WFS_GET_CAPABILITIES",url:n.url,labelId:"catalog.wfsGetCapLink"}),i},d=function(e){var t,r;return"wms"===e.type?[e.url].concat((r=null!==(t=e.domainAliases)&&void 0!==t?t:[],function(e){if(Array.isArray(e))return f(e)}(r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())).join(","):e.url},g=function(e){return e&&!c()(e)&&-1!==e.indexOf(",")?e.split(",").map((function(e){return e.trim()})):e}},993201:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(264721),o=r.n(n),i=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split("?")[0].split("@");if(e.length>1){var t=e[e.length-1];if(o()(["png","png8","jpeg","vnd.jpeg-png","gif"],t))return t}return null}},611847:(e,t,r)=>{"use strict";r.d(t,{ij:()=>d,w0:()=>g,vl:()=>O,K2:()=>h,Nw:()=>S});var n=r(472500),o=r.n(n),i=r(701469),a=r.n(i),u=r(747037),c=r.n(u),l=r(618446),s=r.n(l),f=r(189734),p=r.n(f),y=r(313311),m=r.n(y),b=r(964210);function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(e===t)return!0;if(!e&&!t)return!0;var r=e?e.split("&").filter((function(e){return!!e})):[],n=t?t.split("&").filter((function(e){return!!e})):[];return s()(p()(r),p()(n))}(i.query,u.query);return y&&b&&m&&v&&g},O=function(e){return b.Qc(e)},h=function(e){return new RegExp(arguments.length>1&&void 0!==arguments[1]?arguments[1]:/^(http(s{0,1}):\/\/)+?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$/).test(e)},S=function(e,t){var r=new RegExp(arguments.length>2&&void 0!==arguments[2]?arguments[2]:/^(http(s{0,1}):\/\/)+?[\w.\-{}]+(?:\.[\w\.-]+)+[\w\-\._~\/\;\.\%\:\&\=\?{}]+$/).test(e);if(!r)return!1;if(r&&!t)return!0;if(r&&t){var n=/\{(.*?)\}/.test(e);return 0===t.filter((function(e){return m()(n,e)})).length}return!1}}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/52105.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/52105.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/52105.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/52105.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/52274.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/52274.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/52274.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/52274.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/52324.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/52324.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/52324.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/52324.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/52571.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/52571.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/52571.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/52571.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/52572.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/52572.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/52572.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/52572.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/52604.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/52604.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/52604.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/52604.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/52709.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/52709.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/52709.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/52709.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/52779.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/52779.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/52779.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/52779.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/52843.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/52843.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/52843.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/52843.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/5293.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/5293.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/5293.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/5293.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/52930.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/52930.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/52930.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/52930.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/53046.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/53046.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/53046.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/53046.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/53069.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/53069.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/53069.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/53069.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/53139.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/53139.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/53139.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/53139.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/53178.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/53178.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/53178.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/53178.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/53181.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/53181.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/53181.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/53181.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/53213.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/53213.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/53213.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/53213.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/53287.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/53287.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/53287.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/53287.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/53370.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/53370.018dc26183efb561a8b1.chunk.js similarity index 99% rename from geonode_mapstore_client/static/mapstore/dist/js/53370.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/53370.018dc26183efb561a8b1.chunk.js index 873ce7cce4..b719a6a495 100644 --- a/geonode_mapstore_client/static/mapstore/dist/js/53370.affd309bf2aa3f38d3a0.chunk.js +++ b/geonode_mapstore_client/static/mapstore/dist/js/53370.018dc26183efb561a8b1.chunk.js @@ -1,2 +1,2 @@ -/*! For license information please see 53370.affd309bf2aa3f38d3a0.chunk.js.LICENSE.txt */ +/*! For license information please see 53370.018dc26183efb561a8b1.chunk.js.LICENSE.txt */ (self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[53370],{140464:function(e,t,o){var r;r=function(e,t){return function(e){var t={};function o(r){if(t[r])return t[r].exports;var n=t[r]={exports:{},id:r,loaded:!1};return e[r].call(n.exports,n,n.exports,o),n.loaded=!0,n.exports}return o.m=e,o.c=t,o.p="",o(0)}([function(e,t,o){e.exports=o(271)},,function(t,o){t.exports=e},function(e,t,o){e.exports=o(119)()},function(e,t,o){var r;!function(){"use strict";var o={}.hasOwnProperty;function n(){for(var e=[],t=0;t=0&&u.splice(t,1)}function h(e){var t=document.createElement("style");return t.type="text/css",p(e,t),t}function g(e,t){var o,r,n;if(t.singleton){var i=s++;o=a||(a=h(t)),r=b.bind(null,o,i,!1),n=b.bind(null,o,i,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(o=function(e){var t=document.createElement("link");return t.rel="stylesheet",p(e,t),t}(t),r=C.bind(null,o),n=function(){f(o),o.href&&URL.revokeObjectURL(o.href)}):(o=h(t),r=v.bind(null,o),n=function(){f(o)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else n()}}e.exports=function(e,t){void 0===(t=t||{}).singleton&&(t.singleton=i()),void 0===t.insertAt&&(t.insertAt="bottom");var o=d(e);return c(o,t),function(e){for(var n=[],i=0;i=0||Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=e[r]);return o}(e,["width","height","top","left","zIndex","children","position","innerRef"]);return n.default.createElement("div",r({style:a({left:l,top:i,width:t,height:o,zIndex:s,position:c}),"data-test":"cell-mask",ref:d},p),u)};s.propTypes={width:i.default.number.isRequired,height:i.default.number.isRequired,top:i.default.number.isRequired,left:i.default.number.isRequired,zIndex:i.default.number.isRequired,children:i.default.node,innerRef:i.default.func},t.default=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNextSelectedCellPosition=t.isSelectedCellEditable=t.getSelectedCellValue=t.getSelectedColumn=t.getSelectedRangeDimensions=t.getSelectedDimensions=t.getSelectedRow=void 0;var r=Object.assign||function(e){for(var t=1;t=0){var l=s.getColumn(o,n);return{width:l.width,left:l.left,top:d(i,r),height:r,zIndex:s.isFrozen(o)?u.default.FROZEN_CELL_MASK:u.default.CELL_MASK}}return{width:0,left:0,top:0,height:r,zIndex:1}},t.getSelectedRangeDimensions=function(e){var t=e.selectedRange,o=e.columns,r=e.rowHeight,n=t.topLeft,i=t.bottomRight;if(n.idx<0)return{width:0,left:0,top:0,height:r,zIndex:u.default.CELL_MASK};var l=function(e,t,o){for(var r=0,n=!1,i=e;i<=t;i++){var l=s.getColumn(o,i);r+=l.width,n=n||s.isFrozen(l)}return{totalWidth:r,anyColFrozen:n,left:s.getColumn(o,e).left}}(n.idx,i.idx,o),a=l.totalWidth,c=l.anyColFrozen;return{width:a,left:l.left,top:d(n.rowIdx,r),height:(i.rowIdx-n.rowIdx+1)*r,zIndex:c?u.default.FROZEN_CELL_MASK:u.default.CELL_MASK}},t.getSelectedColumn=function(e){var t=e.selectedPosition,o=e.columns,r=t.idx;return s.getColumn(o,r)});t.getSelectedCellValue=function(e){var t=e.selectedPosition,o=e.columns,r=e.rowGetter,n=f({selectedPosition:t,columns:o}),i=p({selectedPosition:t,rowGetter:r});return i&&n?a.get(i,n.key):null},t.isSelectedCellEditable=function(e){var t=e.enableCellSelect,o=e.selectedPosition,n=e.columns,i=e.rowGetter,a=e.onCheckCellIsEditable,u=f({selectedPosition:o,columns:n}),c=p({selectedPosition:o,rowGetter:i}),d=!(0,l.isFunction)(a)||a(r({row:c,column:u},o));return s.canEdit(u,c,t)&&d},t.getNextSelectedCellPosition=function(e,t){var o=e.cellNavigationMode,n=e.columns,l=e.rowsCount;if(o!==i.CellNavigationMode.NONE){var a=t.idx,s=t.rowIdx,u=-1===a;if(a===n.length){if(o===i.CellNavigationMode.CHANGE_ROW){if(s!==l-1)return{idx:0,rowIdx:s+1,changeRowOrColumn:!0}}else if(o===i.CellNavigationMode.LOOP_OVER_ROW)return{rowIdx:s,idx:0,changeRowOrColumn:!0}}else if(u)if(o===i.CellNavigationMode.CHANGE_ROW){if(0!==s)return{rowIdx:s-1,idx:n.length-1,changeRowOrColumn:!0}}else if(o===i.CellNavigationMode.LOOP_OVER_ROW)return{rowIdx:s,idx:n.length-1,changeRowOrColumn:!0}}return r({},t,{changeRowOrColumn:!1})}},,,,,,,,,,function(e,t,o){var r=o(283);"string"==typeof r&&(r=[[e.id,r,""]]),o(9)(r,{}),r.locals&&(e.exports=r.locals)},,,,,,,,,,function(e,t,o){"use strict";var r,n=function(){function e(e,t){for(var o=0;o-1:e&&e.rowKey&&e.values&&"[object Array]"===Object.prototype.toString.call(e.values)?e.values.indexOf(r[e.rowKey])>-1:!(!o||!r||"string"!=typeof o)&&r[o]}};e.exports=o},function(e,t){"use strict";var o=void 0;e.exports=function(){if(void 0===o){var e=document.createElement("div");e.style.width="50px",e.style.height="50px",e.style.position="absolute",e.style.top="-200px",e.style.left="-200px";var t=document.createElement("div");t.style.height="100px",t.style.width="100%",e.appendChild(t),document.body.appendChild(e);var r=e.clientWidth;e.style.overflowY="scroll";var n=t.clientWidth;document.body.removeChild(e),o=r-n}return o}},,,,,,,,,,,,,,,,,,function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=(r=o(18))&&r.__esModule?r:{default:r};t.default={ExcelColumn:n.default}},,,,function(e,t,o){var r=o(109);"string"==typeof r&&(r=[[e.id,r,""]]),o(9)(r,{}),r.locals&&(e.exports=r.locals)},,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NONE="none",t.CHANGE_ROW="changeRow",t.LOOP_OVER_ROW="loopOverRow"},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SELECT_CELL="SELECT_CELL",t.SELECT_START="SELECT_START",t.SELECT_UPDATE="SELECT_UPDATE",t.SELECT_END="SELECT_END",t.DRAG_ENTER="DRAG_ENTER",t.SCROLL_TO_COLUMN="SCROLL_TO_COLUMN"},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HEADER="header",t.FILTER="filter"},function(e,t,o){(e.exports=o(8)()).push([e.id,'.react-grid-Cell{background-color:#fff;padding-left:8px;padding-right:8px;border-right:1px solid #eee;border-bottom:1px solid #ddd}.rdg-selected{border:2px solid #66afe9}.rdg-selected-range{border:1px solid #66afe9;background-color:#66afe930}.moving-element{will-change:transform}.react-grid-Cell--frozen,.react-grid-Cell--frozen:focus{z-index:12}.rdg-last--frozen{border-right:1px solid #ddd;box-shadow:2px 0 5px -2px hsla(0,0%,53%,.3)!important}.react-contextmenu--visible{z-index:1000}.react-grid-Cell:not(.editing) .react-grid-Cell__value{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;height:inherit}.react-grid-Cell.readonly{background-color:#000}.react-grid-Cell:hover{background:#eee}.react-grid-cell .form-control-feedback{color:#a94442;position:absolute;top:0;right:10px;z-index:1000000;display:block;width:34px;height:34px}.react-grid-Row.row-selected .react-grid-Cell{background-color:#dbecfa}.react-grid-Cell.editing{padding:0;overflow:visible!important}.react-grid-Cell--frozen.editing{z-index:100}.react-grid-Cell.editing .has-error input{border:2px solid red!important;border-radius:2px!important}.react-grid-Cell__value ul{margin-top:0;margin-bottom:0;display:inline-block}.react-grid-Cell__value .btn-sm{padding:0}.cell-tooltip{position:relative;display:inline-block}.cell-tooltip:hover{z-index:101}.cell-tooltip .cell-tooltip-text{visibility:hidden;width:150px;background-color:#000;color:#fff;text-align:center;border-radius:6px;padding:5px 0;position:absolute;z-index:1;bottom:-150%;left:50%;margin-left:-60px;opacity:1s}.cell-tooltip:hover .cell-tooltip-text{visibility:visible;opacity:.8}.cell-tooltip .cell-tooltip-text:after{content:" ";position:absolute;bottom:100%;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:transparent transparent #000}.react-grid-Canvas.opaque .react-grid-Cell.cell-tooltip:hover .cell-tooltip-text{visibility:hidden}.rdg-cell-expand{float:right;display:table;height:100%}.rdg-cell-expand>span{display:table-cell;vertical-align:middle;cursor:pointer}.rdg-child-row-action-cross-last:before,.rdg-child-row-action-cross:before,rdg-child-row-action-cross-last:after,rdg-child-row-action-cross:after{content:"";position:absolute;background:grey;height:50%}.rdg-child-row-action-cross:before{left:21px;width:1px;height:100%}.rdg-child-row-action-cross-last:before{left:21px;width:1px}.rdg-child-row-action-cross-last:after,.rdg-child-row-action-cross:after{top:50%;left:20px;height:1px;width:15px;content:"";position:absolute;background:grey}.rdg-child-row-action-cross:hover{background:red}.rdg-child-row-btn{position:absolute;cursor:pointer;border:1px solid grey;border-radius:14px;z-index:3;background:#fff}.rdg-child-row-btn div{font-size:12px;text-align:center;line-height:19px;color:grey;height:20px;width:20px;position:absolute;top:60%;left:53%;margin-top:-10px;margin-left:-10px}.rdg-empty-child-row:hover .glyphicon-plus-sign,.rdg-empty-child-row:hover a{color:green}.rdg-child-row-btn .glyphicon-remove-sign:hover{color:red}.last-column .cell-tooltip-text{right:100%;left:0!important}.rdg-cell-action{float:right;height:100%}.rdg-cell-action-last{margin-right:-8px}.rdg-cell-action-button{width:35px;height:100%;text-align:center;position:relative;display:table;color:#4a9de2}.rdg-cell-action-button>span{display:table-cell;vertical-align:middle}.rdg-cell-action-button-toggled,.rdg-cell-action-button:hover{color:#447bbb}.rdg-cell-action-menu{position:absolute;top:100%;z-index:1000;float:left;min-width:160px;padding:5px 0;text-align:left;list-style:none;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc;box-shadow:0 0 3px 0 #ccc}.rdg-cell-action-menu>span{display:block;padding:3px 10px;clear:both;font-weight:400;line-height:1.42857143;color:#333;white-space:nowrap}.rdg-cell-action-menu>span:hover{color:#262626;text-decoration:none;background-color:#f5f5f5}',""])},function(e,t,o){(e.exports=o(8)()).push([e.id,'.radio-custom,.react-grid-checkbox{opacity:0;position:absolute}.radio-custom,.radio-custom-label,.react-grid-checkbox,.react-grid-checkbox-label{display:inline-block;vertical-align:middle;cursor:pointer}.radio-custom-label,.react-grid-checkbox-label{position:relative}.radio-custom+.radio-custom-label:before,.react-grid-checkbox+.react-grid-checkbox-label:before{content:"";background:#fff;border:2px solid #ddd;display:inline-block;vertical-align:middle;width:20px;height:20px;text-align:center}.react-grid-checkbox:checked+.react-grid-checkbox-label:before{background:#005295;box-shadow:inset 0 0 0 4px #fff}.radio-custom:focus+.radio-custom-label,.react-grid-checkbox:focus+.react-grid-checkbox-label{outline:1px solid #ddd}.react-grid-HeaderCell input[type=checkbox]{z-index:99999}.react-grid-HeaderCell>.react-grid-checkbox-container{padding:0 10px;height:100%}.react-grid-HeaderCell>.react-grid-checkbox-container>.react-grid-checkbox-label{margin:0;position:relative;top:50%;transform:translateY(-50%)}.radio-custom+.radio-custom-label:before{border-radius:50%}.radio-custom:checked+.radio-custom-label:before{background:#ccc;box-shadow:inset 0 0 0 4px #fff}.checkbox-align{text-align:center}',""])},function(e,t,o){(e.exports=o(8)()).push([e.id,'.react-grid-Row.row-context-menu .react-grid-Cell,.react-grid-Row:hover .react-grid-Cell{background-color:#f9f9f9}.react-grid-Row:hover .rdg-row-index{display:none}.react-grid-Row:hover .rdg-actions-checkbox{display:block}.react-grid-Row:hover .rdg-drag-row-handle{cursor:move;cursor:grab;cursor:-moz-grab;cursor:-webkit-grab;width:12px;height:30px;margin-left:0;background-image:url("data:image/svg+xml;base64, PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+Cjxzdmcgd2lkdGg9IjlweCIgaGVpZ2h0PSIyOXB4IiB2aWV3Qm94PSIwIDAgOSAyOSIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4KICAgIDwhLS0gR2VuZXJhdG9yOiBTa2V0Y2ggMzkgKDMxNjY3KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5kcmFnIGljb248L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZGVmcz48L2RlZnM+CiAgICA8ZyBpZD0iQWN0dWFsaXNhdGlvbi12MiIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IkRlc2t0b3AiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xNS4wMDAwMDAsIC0yNjIuMDAwMDAwKSIgZmlsbD0iI0Q4RDhEOCI+CiAgICAgICAgICAgIDxnIGlkPSJJbnRlcmFjdGlvbnMiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE1LjAwMDAwMCwgMjU4LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPGcgaWQ9IlJvdy1Db250cm9scyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMC4wMDAwMDAsIDIuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICAgICAgPGcgaWQ9ImRyYWctaWNvbiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMC4wMDAwMDAsIDIuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICAgICAgICAgIDxjaXJjbGUgaWQ9Ik92YWwtMzAiIGN4PSIyIiBjeT0iMiIgcj0iMiI+PC9jaXJjbGU+CiAgICAgICAgICAgICAgICAgICAgICAgIDxjaXJjbGUgaWQ9Ik92YWwtMzAiIGN4PSI3IiBjeT0iMiIgcj0iMiI+PC9jaXJjbGU+CiAgICAgICAgICAgICAgICAgICAgICAgIDxjaXJjbGUgaWQ9Ik92YWwtMzAiIGN4PSIyIiBjeT0iNyIgcj0iMiI+PC9jaXJjbGU+CiAgICAgICAgICAgICAgICAgICAgICAgIDxjaXJjbGUgaWQ9Ik92YWwtMzAiIGN4PSI3IiBjeT0iNyIgcj0iMiI+PC9jaXJjbGU+CiAgICAgICAgICAgICAgICAgICAgICAgIDxjaXJjbGUgaWQ9Ik92YWwtMzAiIGN4PSIyIiBjeT0iMTIiIHI9IjIiPjwvY2lyY2xlPgogICAgICAgICAgICAgICAgICAgICAgICA8Y2lyY2xlIGlkPSJPdmFsLTMwIiBjeD0iNyIgY3k9IjEyIiByPSIyIj48L2NpcmNsZT4KICAgICAgICAgICAgICAgICAgICAgICAgPGNpcmNsZSBpZD0iT3ZhbC0zMCIgY3g9IjIiIGN5PSIxNyIgcj0iMiI+PC9jaXJjbGU+CiAgICAgICAgICAgICAgICAgICAgICAgIDxjaXJjbGUgaWQ9Ik92YWwtMzAiIGN4PSI3IiBjeT0iMTciIHI9IjIiPjwvY2lyY2xlPgogICAgICAgICAgICAgICAgICAgICAgICA8Y2lyY2xlIGlkPSJPdmFsLTMwIiBjeD0iMiIgY3k9IjIyIiByPSIyIj48L2NpcmNsZT4KICAgICAgICAgICAgICAgICAgICAgICAgPGNpcmNsZSBpZD0iT3ZhbC0zMCIgY3g9IjciIGN5PSIyMiIgcj0iMiI+PC9jaXJjbGU+CiAgICAgICAgICAgICAgICAgICAgICAgIDxjaXJjbGUgaWQ9Ik92YWwtMzAiIGN4PSIyIiBjeT0iMjciIHI9IjIiPjwvY2lyY2xlPgogICAgICAgICAgICAgICAgICAgICAgICA8Y2lyY2xlIGlkPSJPdmFsLTMwIiBjeD0iNyIgY3k9IjI3IiByPSIyIj48L2NpcmNsZT4KICAgICAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==");background-repeat:no-repeat}.react-grid-Row.row-selected,.react-grid-Row .row-selected{background-color:#dbecfa}.react-grid-row-group .row-expand-icon:hover{color:#777}.react-grid-row-index{padding:0 18px}.rdg-row-index{display:block;text-align:center}.rdg-row-actions-cell{padding:0}.rdg-actions-checkbox{display:none;text-align:center}.rdg-actions-checkbox.selected{display:block}.rdg-dragging{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.rdg-dragged-row{border-bottom:1px solid #000}.rdg-scrolling{pointer-events:none}',""])},function(e,t){"use strict";e.exports=function(e){var t,o={};if(!(e instanceof Object)||Array.isArray(e))throw new Error("keyMirror(...): Argument must be an object.");for(t in e)e.hasOwnProperty(t)&&(o[t]=t);return o}},,,,,,,function(e,t,o){"use strict";var r=o(120);function n(){}e.exports=function(){function e(e,t,o,n,i,l){if(l!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var o={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return o.checkPropTypes=n,o.PropTypes=o,o}},function(e,t){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},,,,,function(e,t,o){"use strict";var r,n=function(){function e(e,t){for(var o=0;o47&&e<58||32===e||13===e||e>64&&e<91||e>95&&e<112||e>185&&e<193||e>218&&e<223},t.isCtrlKeyHeldDown=function(e){return(!0===e.ctrlKey||!0===e.metaKey)&&"Control"!==e.key}},,,,,function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:n.props;return e.rowData.toJSON?e.rowData.toJSON():e.rowData},n.getFormatterDependencies=function(){if("function"==typeof n.props.column.getRowMetaData)return n.props.column.getRowMetaData(n.getRowData(),n.props.column)},n.getCellClass=function(){var e=n.props,t=e.idx,o=e.lastFrozenColumnIndex,r=w(n.props.column.cellClass,"react-grid-Cell",n.props.className,p.default.isFrozen(n.props.column)?"react-grid-Cell--frozen":null,o===t?"rdg-last--frozen":null),i=w({"row-selected":n.props.isRowSelected,editing:n.isEditorEnabled(),"cell-tooltip":!!n.props.tooltip,"rdg-child-cell":n.props.expandableOptions&&n.props.expandableOptions.subRowDetails&&n.props.expandableOptions.treeDepth>0,"last-column":n.props.column.isLastColumn});return w(r,i)},n.getUpdateCellClass=function(){return n.props.column.getUpdateCellClass?n.props.column.getUpdateCellClass(n.props.selectedColumn,n.props.column,n.state.isCellValueChanging):""},n.isEditorEnabled=function(){return!0===n.props.isEditorEnabled},n.setScrollLeft=function(e){var t=n.node;if(t){var o="translate3d("+e+"px, 0px, 0px)";t.style.webkitTransform=o,t.style.transform=o}},n.removeScroll=function(){var e=n.node;e&&(e.style.webkitTransform=null,e.style.transform=null)},n.canExpand=function(){return n.props.expandableOptions&&n.props.expandableOptions.canExpand},n.createColumEventCallBack=function(e,t){return function(o){e(o,t)}},n.createCellEventCallBack=function(e,t){return function(o){e(o),t(o)}},n.createEventDTO=function(e,t,o){var r=Object.assign({},e);for(var i in t)if(t.hasOwnProperty(i)){var l={idx:n.props.idx,rowIdx:n.props.rowIdx,rowId:n.props.rowData[n.props.cellMetaData.rowKey],name:i},a=n.createColumEventCallBack(o,l);if(r.hasOwnProperty(i)){var s=r[i];r[i]=n.createCellEventCallBack(s,a)}else r[i]=a}return r},n.getEvents=function(){var e=n.props.column?Object.assign({},n.props.column.events):void 0,t=n.props.cellMetaData?n.props.cellMetaData.onColumnEvent:void 0,o={onClick:n.onCellClick,onMouseDown:n.onCellMouseDown,onMouseEnter:n.onCellMouseEnter,onDoubleClick:n.onCellDoubleClick,onContextMenu:n.onCellContextMenu,onDragOver:n.onDragOver};return e&&t?n.createEventDTO(o,e,t):o},n.getKnownDivProps=function(){return b(n.props,v)},n.setCellRef=function(e){n.node=e},n.renderCellContent=function(e){var t,o=n.getFormatter();t=g.isValidElement(o)?g.cloneElement(o,r({},e,{dependentValues:n.getFormatterDependencies(),row:n.getRowData()})):(0,a.isFunction)(o)?g.createElement(o,{value:n.props.value,dependentValues:n.getFormatterDependencies(),isScrolling:n.props.isScrolling,row:n.getRowData()}):g.createElement(m,{value:n.props.value});var i=!!n.props.expandableOptions&&n.props.expandableOptions.field===n.props.column.key,l=n.props.expandableOptions?n.props.expandableOptions.treeDepth:0,s=n.props.expandableOptions&&i?30*n.props.expandableOptions.treeDepth:0,u=void 0,c=!!n.props.cellMetaData.onDeleteSubRow;return l>0&&i&&(u=g.createElement(d.default,{treeDepth:l,cellHeight:n.props.height,siblingIndex:n.props.expandableOptions.subRowDetails.siblingIndex,numberSiblings:n.props.expandableOptions.subRowDetails.numberSiblings,onDeleteSubRow:n.onDeleteSubRow,isDeleteSubRowEnabled:c})),g.createElement("div",{className:"react-grid-Cell__value"},u,g.createElement("div",{style:{marginLeft:s,position:"relative",top:"50%",transform:"translateY(-50%)"}},g.createElement("span",null,t),n.props.cellControls))},h(n,o)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"componentWillReceiveProps",value:function(e){this.setState({isCellValueChanging:this.props.isCellValueChanging(this.props.value,e.value),isLockChanging:p.default.isFrozen(this.props.column)!==p.default.isFrozen(e.column)})}},{key:"componentDidMount",value:function(){this.checkScroll()}},{key:"componentDidUpdate",value:function(){this.state.isLockChanging&&!p.default.isFrozen(this.props.column)&&this.removeScroll()}},{key:"checkScroll",value:function(){var e=this.props,t=e.scrollLeft,o=e.column,r=this.node;p.default.isFrozen(o)&&r&&null!=r.style.transform&&this.setScrollLeft(t)}},{key:"getCellActions",value:function(){var e=this.props,t=e.cellMetaData,o=e.column,r=e.rowData;if(t&&t.getCellActions){var n=t.getCellActions(o,r);return n&&n.length?n.map((function(e,t){return g.createElement(u.default,{key:t,action:e,isFirst:0===t})})):null}return null}},{key:"render",value:function(){if(this.props.column.hidden)return null;var e=this.getStyle(),t=this.getCellClass(),o=this.getCellActions(),n=this.props,i=n.value,l=n.column,a=n.rowIdx,s=n.isExpanded,u=n.isScrolling,d=this.props.children||this.renderCellContent({value:i,column:l,rowIdx:a,isExpanded:s,isScrolling:u}),p=this.getEvents(),f=this.props.tooltip?g.createElement("span",{className:"cell-tooltip-text"},this.props.tooltip):null,h=this.canExpand()&&g.createElement(c.default,{expandableOptions:this.props.expandableOptions,onCellExpand:this.onCellExpand});return g.createElement("div",r({},this.getKnownDivProps(),{className:t,style:e},p,{ref:this.setCellRef}),o,h,d,f)}}]),t}(g.PureComponent);C.propTypes={rowIdx:i.default.number.isRequired,idx:i.default.number.isRequired,isSelected:i.default.bool,wasPreviouslySelected:i.default.bool,isEditorEnabled:i.default.bool,selectedColumn:i.default.object,height:i.default.number,column:i.default.shape(l.default).isRequired,value:i.default.oneOfType([i.default.string,i.default.number,i.default.object,i.default.bool]),isExpanded:i.default.bool,isRowSelected:i.default.bool,cellMetaData:i.default.shape(s.default).isRequired,handleDragStart:i.default.func,className:i.default.string,cellControls:i.default.any,rowData:i.default.object.isRequired,forceUpdate:i.default.bool,expandableOptions:i.default.object.isRequired,tooltip:i.default.string,isScrolling:i.default.bool,isCellValueChanging:i.default.func,children:i.default.oneOfType([i.default.arrayOf(i.default.node),i.default.node]),scrollLeft:i.default.number.isRequired},C.defaultProps={isExpanded:!1,value:"",isCellValueChanging:function(e,t){return e!==t}},t.default=C},function(e,t,o){"use strict";var r=o(5),n=o(140),i=o(257),l=o(6),a=o(82),s=function(e){return e.reduce((function(e,t){return e+t.width}),0)};function u(e){var t=function(e,t){return e.map((function(e){var o=Object.assign({},e);return e.width&&/^([0-9]+)%$/.exec(e.width.toString())&&(o.width=Math.floor(e.width/100*t)),o}))}(e.columns,e.totalWidth),o=t.filter((function(e){return e.width})).reduce((function(e,t){return e-t.width}),e.totalWidth);o-=a();var r=t.filter((function(e){return e.width})).reduce((function(e,t){return e+t.width}),0);t=function(e,t,o){var r=e.filter((function(e){return!e.width}));return e.map((function(e){if(!e.width&&0!==e.width)if(t<=0)e.width=o;else{var n=Math.floor(t/l.getSize(r));e.width=n0&&t(r.props.column,o)}},r.onDragEnd=function(e){var t=r.getWidthFromMouseEvent(e);r.props.onResizeEnd(r.props.column,t),r.setState({resizing:!1})},r.getWidthFromMouseEvent=function(e){return(e.pageX||e.touches&&e.touches[0]&&e.touches[0].pageX||e.changedTouches&&e.changedTouches[e.changedTouches.length-1].pageX)-i.default.findDOMNode(r).getBoundingClientRect().left},r.getCell=function(){var e=r.props,t=e.height,o=e.column,i=e.renderer;return n.default.isValidElement(i)?"string"==typeof r.props.renderer.type?n.default.cloneElement(i,{height:t}):n.default.cloneElement(i,{column:o,height:t}):r.props.renderer({column:o})},r.getStyle=function(){return{width:r.props.column.width,left:r.props.column.left,display:"inline-block",position:"absolute",height:r.props.height,margin:0,textOverflow:"ellipsis",whiteSpace:"nowrap"}},r.setScrollLeft=function(e){var t=i.default.findDOMNode(r);t&&(t.style.webkitTransform="translate3d("+e+"px, 0px, 0px)",t.style.transform="translate3d("+e+"px, 0px, 0px)")},r.removeScroll=function(){var e=i.default.findDOMNode(r);if(e){var t="none";e.style.webkitTransform=t,e.style.transform=t}},p(r,o)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"render",value:function(){var e=this.props,t=e.column,o=e.rowType,r=t.resizable&&n.default.createElement(f,{onDrag:this.onDrag,onDragStart:this.onDragStart,onDragEnd:this.onDragEnd}),i=(0,a.default)({"react-grid-HeaderCell":!0,"react-grid-HeaderCell--resizing":this.state.resizing,"react-grid-HeaderCell--frozen":u.default.isFrozen(t)},this.props.className,t.cellClass),l=n.default.createElement("div",{className:i,style:this.getStyle()},this.getCell(),r);if(o===c.HeaderRowType.HEADER&&t.draggable){var s=this.props.draggableHeaderCell;return n.default.createElement(s,{column:t,onHeaderDrop:this.props.onHeaderDrop},l)}return l}}]),t}(n.default.Component);h.propTypes={renderer:l.default.oneOfType([l.default.func,l.default.element]).isRequired,column:l.default.shape(s.default).isRequired,rowType:l.default.string.isRequired,height:l.default.number.isRequired,onResize:l.default.func.isRequired,onResizeEnd:l.default.func.isRequired,onHeaderDrop:l.default.func,draggableHeaderCell:l.default.element,className:l.default.string},h.defaultProps={renderer:function(e){var t="header"===e.column.rowType?e.column.name:"";return n.default.createElement("div",{className:"widget-HeaderCell__value"},t)}},e.exports=h},function(e,t){"use strict";e.exports={Backspace:8,Tab:9,Enter:13,Shift:16,Ctrl:17,Alt:18,PauseBreak:19,CapsLock:20,Escape:27,PageUp:33,PageDown:34,End:35,Home:36,LeftArrow:37,UpArrow:38,RightArrow:39,DownArrow:40,Insert:45,Delete:46,0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,LeftWindowKey:91,RightWindowKey:92,SelectKey:93,NumPad0:96,NumPad1:97,NumPad2:98,NumPad3:99,NumPad4:100,NumPad5:101,NumPad6:102,NumPad7:103,NumPad8:104,NumPad9:105,Multiply:106,Add:107,Subtract:109,DecimalPoint:110,Divide:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F12:123,NumLock:144,ScrollLock:145,SemiColon:186,EqualSign:187,Comma:188,Dash:189,Period:190,ForwardSlash:191,GraveAccent:192,OpenBracket:219,BackSlash:220,CloseBracket:221,SingleQuote:222}},function(e,t,o){"use strict";var r=Object.assign||function(e){for(var t=1;t0||!0===t.group),field:t.field,expanded:t&&t.expanded,children:t&&t.children,treeDepth:t?t.treeDepth:0,subRowDetails:t}:{}},n.setScrollLeft=function(e){n.props.columns.forEach((function(t){if(p.default.isFrozen(t)){if(!n[t.key])return;n[t.key].setScrollLeft(e)}}))},n.getKnownDivProps=function(){return(0,d.default)(n.props,g)},h(n,o)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"shouldComponentUpdate",value:function(e){return(0,i.default)(e,this.props)}},{key:"render",value:function(){var e=(0,s.default)("react-grid-Row","react-grid-Row--"+(this.props.idx%2==0?"even":"odd"),{"row-selected":this.props.isSelected},this.props.extraClasses,{"rdg-scrolling":this.props.isScrolling}),t={height:this.getRowHeight(this.props),overflow:"hidden"},o=this.getCells();return l.default.createElement("div",r({},this.getKnownDivProps(),{className:e,style:t,onDragEnter:this.handleDragEnter,onDragOver:this.handleDragOver,onDrop:this.handleDrop}),l.default.isValidElement(this.props.row)?this.props.row:o)}}]),t}(l.default.Component);w.displayName="Row",w.propTypes={height:a.default.number.isRequired,columns:a.default.oneOfType([a.default.object,a.default.array]).isRequired,row:a.default.any.isRequired,cellRenderer:a.default.func,cellMetaData:a.default.shape(c.default),isSelected:a.default.bool,idx:a.default.number.isRequired,expandedRows:a.default.arrayOf(a.default.object),extraClasses:a.default.string,forceUpdate:a.default.bool,subRowDetails:a.default.object,isRowHovered:a.default.bool,colVisibleStartIdx:a.default.number.isRequired,colVisibleEndIdx:a.default.number.isRequired,colOverscanStartIdx:a.default.number.isRequired,colOverscanEndIdx:a.default.number.isRequired,isScrolling:a.default.bool.isRequired,scrollLeft:a.default.number,lastFrozenColumnIndex:a.default.number},w.defaultProps={cellRenderer:u.default,isSelected:!1,height:35},e.exports=w},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(o(2)),n=i(o(3));function i(e){return e&&e.__esModule?e:{default:e}}var l=function(e){return r.default.createElement("div",{className:"react-grid-checkbox-container checkbox-align"},r.default.createElement("input",{className:"react-grid-checkbox",type:"checkbox",name:"select-all-checkbox",id:"select-all-checkbox",ref:e.inputRef,onChange:e.onChange}),r.default.createElement("label",{htmlFor:"select-all-checkbox",className:"react-grid-checkbox-label"}))};l.propTypes={onChange:n.default.func,inputRef:n.default.func},t.default=l},function(e,t,o){"use strict";var r,n=function(){function e(e,t){for(var o=0;o-1},this.isClickInsideEditor=function(t){var o=e.getRelatedTarget(t);return t.currentTarget.contains(o)||o.className.indexOf("editing")>-1||o.className.indexOf("react-grid-Cell")>-1},this.getRelatedTarget=function(e){return e.relatedTarget||e.explicitOriginalTarget||document.activeElement},this.handleRightClick=function(e){e.stopPropagation()},this.handleBlur=function(t){t.stopPropagation(),e.isBodyClicked(t)&&e.commit(t),e.isBodyClicked(t)||!e.isViewportClicked(t)&&e.isClickInsideEditor(t)||e.commit(t)},this.setTextInputFocus=function(){var t=e.props.firstEditorKeyPress,o=e.getInputNode();o.focus(),"INPUT"===o.tagName&&((0,c.isKeyPrintable)(t)||o.focus(),o.select())},this.renderStatusIcon=function(){if(!0===e.state.isInvalid)return i.default.createElement("span",{className:"glyphicon glyphicon-remove form-control-feedback"})}};e.exports=g},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,o){"use strict";var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=e[r]);return o}function b(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}o(59);var v=function(e){function t(){var e,o,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,a=Array(n),u=0;u0?t-o:0},r.onHitBottomCanvas=function(){var e=r.props.rowHeight,t=r.canvas;t.scrollTop+=e+r.getClientScrollTopOffset(t)},r.onHitTopCanvas=function(){var e=r.props.rowHeight,t=r.canvas;t.scrollTop-=e-r.getClientScrollTopOffset(t)},r.scrollToColumn=function(e){var t=r.canvas,o=t.scrollLeft,n=t.clientWidth,i=(0,f.getColumnScrollPosition)(r.props.columns,e,o,n);null!=i&&(r.canvas.scrollLeft=o+i)},r.onHitLeftCanvas=function(e){var t=e.idx;r.scrollToColumn(t)},r.onHitRightCanvas=function(e){var t=e.idx;r.scrollToColumn(t)},r.getRows=function(e,t){if(r._currentRowsRange={start:e,end:t},Array.isArray(r.props.rowGetter))return r.props.rowGetter.slice(e,t);for(var o=[],n=e;n0&&o[0].isSelected}if(r.props.rowSelection){var n=r.props.rowSelection,i=n.keys,l=n.indexes,a=n.isSelectedKey;return c.isRowSelected(i,l,a,t,e)}return!1},r.setScrollLeft=function(e){r.rows.forEach((function(t,o){if(t){var n=r.getRowByRef(o);n&&n.setScrollLeft&&n.setScrollLeft(e)}}))},r.getRowByRef=function(e){var t=r.rows[e]&&r.rows[e].getDecoratedComponentInstance?r.rows[e].getDecoratedComponentInstance(e):null;return t?t.row:r.rows[e]},r.getSelectedRowTop=function(e){var t=r.getRowByRef(e);if(t){var o=l.default.findDOMNode(t);return o&&o.offsetTop}return r.props.rowHeight*e},r.getSelectedRowHeight=function(e){var t=r.getRowByRef(e);if(t){var o=l.default.findDOMNode(t);return o&&o.clientHeight>0?o.clientHeight:r.props.rowHeight}return r.props.rowHeight},r.getSelectedRowColumns=function(e){var t=r.getRowByRef(e);return t&&t.props?t.props.columns:r.props.columns},r.setCanvasRef=function(e){r.canvas=e},r.setRowRef=function(e){return function(t){r.rows[e]=t}},r.renderRow=function(e){var t=e.row;return t.__metaData&&t.__metaData.getRowRenderer?t.__metaData.getRowRenderer(r.props,e.idx):t.__metaData&&t.__metaData.isGroup?r.renderGroupRow(e):r.props.rowRenderer?r.renderCustomRowRenderer(e):i.default.createElement(s.default,e)},r.renderPlaceholder=function(e,t){return i.default.createElement("div",{key:e,style:{height:t}},r.props.columns.map((function(e,t){return i.default.createElement("div",{style:{width:e.width},key:t})})))},b(r,o)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"componentDidMount",value:function(){this.unsubscribeScrollToColumn=this.props.eventBus.subscribe(g.EventTypes.SCROLL_TO_COLUMN,this.scrollToColumn),this.onRows()}},{key:"componentWillUnmount",value:function(){this._currentRowsRange={start:0,end:0},this._scroll={scrollTop:0,scrollLeft:0},this.rows=[],this.unsubscribeScrollToColumn()}},{key:"componentDidUpdate",value:function(e){var t=this.props.scrollToRowIndex;e.scrollToRowIndex!==t&&0!==t&&this.scrollToRow(t),this.onRows()}},{key:"renderCustomRowRenderer",value:function(e){var t=e.ref,o=m(e,["ref"]),n=this.props.rowRenderer,l=r({},o,{renderBaseRow:function(e){return i.default.createElement(s.default,r({ref:t},e))}});return n.type===s.default?i.default.createElement(s.default,e):(0,h.isFunction)(n)?i.default.createElement(n,l):i.default.isValidElement(n)?i.default.cloneElement(n,l):void 0}},{key:"renderGroupRow",value:function(e){var t=e.ref,o=m(e,["ref"]);return i.default.createElement(d.default,r({},o,e.row.__metaData,{rowRef:e.ref,name:e.row.name,eventBus:this.props.eventBus,renderer:this.props.rowGroupRenderer,renderBaseRow:function(e){return i.default.createElement(s.default,r({ref:t},e))}}))}},{key:"render",value:function(){var e=this,t=this.props,o=t.rowOverscanStartIdx,r=t.rowOverscanEndIdx,n=t.cellMetaData,l=t.columns,a=t.colOverscanStartIdx,s=t.colOverscanEndIdx,u=t.colVisibleStartIdx,c=t.colVisibleEndIdx,d=t.lastFrozenColumnIndex,f=t.expandedRows,h=t.rowHeight,g=t.rowsCount,w=t.totalColumnWidth,m=t.totalWidth,b=t.height,v=t.rowGetter,C=t.RowsContainer,y=t.contextMenu,R=this.getRows(o,r).map((function(t,i){var p=o+i,g="row-"+p;return e.renderRow({key:g,ref:e.setRowRef(p),idx:p,rowVisibleStartIdx:e.props.rowVisibleStartIdx,rowVisibleEndIdx:e.props.rowVisibleEndIdx,row:t.row,height:h,onMouseOver:e.onMouseOver,columns:l,isSelected:e.isRowSelected(p,t.row,o,r),expandedRows:f,cellMetaData:n,subRowDetails:t.subRowDetails,colVisibleStartIdx:u,colVisibleEndIdx:c,colOverscanStartIdx:a,colOverscanEndIdx:s,lastFrozenColumnIndex:d,isScrolling:e.props.isScrolling,scrollLeft:e._scroll.scrollLeft})}));o>0&&R.unshift(this.renderPlaceholder("top",o*h)),g-r>0&&R.push(this.renderPlaceholder("bottom",(g-r)*h));var x={position:"absolute",top:0,left:0,overflowX:"auto",overflowY:"scroll",width:m,height:b};return i.default.createElement("div",{ref:this.setCanvasRef,style:x,onScroll:this.onScroll,className:"react-grid-Canvas"},i.default.createElement(p.InteractionMasks,{rowGetter:v,rowsCount:g,width:this.props.totalWidth,height:b,rowHeight:h,columns:l,rowOverscanStartIdx:this.props.rowOverscanStartIdx,rowVisibleStartIdx:this.props.rowVisibleStartIdx,rowVisibleEndIdx:this.props.rowVisibleEndIdx,colVisibleStartIdx:u,colVisibleEndIdx:c,enableCellSelect:this.props.enableCellSelect,enableCellAutoFocus:this.props.enableCellAutoFocus,cellNavigationMode:this.props.cellNavigationMode,eventBus:this.props.eventBus,contextMenu:this.props.contextMenu,onHitBottomBoundary:this.onHitBottomCanvas,onHitTopBoundary:this.onHitTopCanvas,onHitLeftBoundary:this.onHitLeftCanvas,onHitRightBoundary:this.onHitRightCanvas,onCommit:this.props.onCommit,onCheckCellIsEditable:this.props.onCheckCellIsEditable,onCellCopyPaste:this.props.onCellCopyPaste,onGridRowsUpdated:this.props.onGridRowsUpdated,onDragHandleDoubleClick:this.props.onDragHandleDoubleClick,onCellSelected:this.props.onCellSelected,onCellDeSelected:this.props.onCellDeSelected,onCellRangeSelectionStarted:this.props.onCellRangeSelectionStarted,onCellRangeSelectionUpdated:this.props.onCellRangeSelectionUpdated,onCellRangeSelectionCompleted:this.props.onCellRangeSelectionCompleted,scrollLeft:this._scroll.scrollLeft,scrollTop:this._scroll.scrollTop,prevScrollLeft:this.props.prevScrollLeft,prevScrollTop:this.props.prevScrollTop,getSelectedRowHeight:this.getSelectedRowHeight,getSelectedRowTop:this.getSelectedRowTop,getSelectedRowColumns:this.getSelectedRowColumns}),i.default.createElement(C,{id:y?y.props.id:"rowsContainer"},i.default.createElement("div",{style:{width:w}},R)))}}]),t}(i.default.PureComponent);v.propTypes={rowRenderer:a.default.oneOfType([a.default.func,a.default.element]),rowHeight:a.default.number.isRequired,height:a.default.number.isRequired,width:a.default.number,totalWidth:a.default.oneOfType([a.default.number,a.default.string]),style:a.default.string,className:a.default.string,rowOverscanStartIdx:a.default.number.isRequired,rowOverscanEndIdx:a.default.number.isRequired,rowVisibleStartIdx:a.default.number.isRequired,rowVisibleEndIdx:a.default.number.isRequired,colVisibleStartIdx:a.default.number.isRequired,colVisibleEndIdx:a.default.number.isRequired,colOverscanStartIdx:a.default.number.isRequired,colOverscanEndIdx:a.default.number.isRequired,rowsCount:a.default.number.isRequired,rowGetter:a.default.oneOfType([a.default.func.isRequired,a.default.array.isRequired]),expandedRows:a.default.array,onRows:a.default.func,onScroll:a.default.func,columns:a.default.oneOfType([a.default.object,a.default.array]).isRequired,cellMetaData:a.default.shape(u.default).isRequired,selectedRows:a.default.array,rowKey:a.default.string,rowScrollTimeout:a.default.number,scrollToRowIndex:a.default.number,contextMenu:a.default.element,getSubRowDetails:a.default.func,rowSelection:a.default.oneOfType([a.default.shape({indexes:a.default.arrayOf(a.default.number).isRequired}),a.default.shape({isSelectedKey:a.default.string.isRequired}),a.default.shape({keys:a.default.shape({values:a.default.array.isRequired,rowKey:a.default.string.isRequired}).isRequired})]),rowGroupRenderer:a.default.func,isScrolling:a.default.bool,length:a.default.number,enableCellSelect:a.default.bool.isRequired,enableCellAutoFocus:a.default.bool.isRequired,cellNavigationMode:a.default.string.isRequired,eventBus:a.default.object.isRequired,onCheckCellIsEditable:a.default.func,onCellCopyPaste:a.default.func,onGridRowsUpdated:a.default.func.isRequired,onDragHandleDoubleClick:a.default.func.isRequired,onCellSelected:a.default.func,onCellDeSelected:a.default.func,onCellRangeSelectionStarted:a.default.func,onCellRangeSelectionUpdated:a.default.func,onCellRangeSelectionCompleted:a.default.func,onCommit:a.default.func.isRequired},v.defaultProps={onRows:function(){},selectedRows:[],rowScrollTimeout:0,scrollToRowIndex:0,RowsContainer:function(e){return e.children}},e.exports=v},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var o=0;o0&&this.props.columns.some((function(e){return a.default.isFrozen(e)}))}},{key:"componentDidMount",value:function(){this._scrollLeft=this.viewport?this.viewport.getScroll().scrollLeft:0,this._onScroll()}},{key:"componentDidUpdate",value:function(){this._onScroll()}},{key:"componentWillUnmount",value:function(){this._scrollLeft=void 0}},{key:"render",value:function(){var e=this.props.headerRows,t=this.props.emptyRowsView;return c.createElement("div",{style:this.getStyle(),className:"react-grid-Grid"},c.createElement(d,{ref:this.setHeaderRef,columnMetrics:this.props.columnMetrics,onColumnResize:this.props.onColumnResize,height:this.props.rowHeight,totalWidth:this.props.totalWidth,headerRows:e,sortColumn:this.props.sortColumn,sortDirection:this.props.sortDirection,draggableHeaderCell:this.props.draggableHeaderCell,onSort:this.props.onSort,onHeaderDrop:this.props.onHeaderDrop,getValidFilterValues:this.props.getValidFilterValues,cellMetaData:this.props.cellMetaData}),this.props.rowsCount>=1||0===this.props.rowsCount&&!this.props.emptyRowsView?c.createElement("div",{ref:this.setViewportContainerRef,onKeyDown:this.props.onViewportKeydown,onKeyUp:this.props.onViewportKeyup},c.createElement(p,r({},this.props,{ref:this.setViewportRef,rowKey:this.props.rowKey,width:this.props.columnMetrics.width,rowHeight:this.props.rowHeight,rowRenderer:this.props.rowRenderer,rowGetter:this.props.rowGetter,rowsCount:this.props.rowsCount,selectedRows:this.props.selectedRows,expandedRows:this.props.expandedRows,columnMetrics:this.props.columnMetrics,totalWidth:this.props.totalWidth,onScroll:this.onScroll,onRows:this.props.onRows,cellMetaData:this.props.cellMetaData,rowOffsetHeight:this.props.rowOffsetHeight||this.props.rowHeight*e.length,minHeight:this.props.minHeight,rowScrollTimeout:this.props.rowScrollTimeout,scrollToRowIndex:this.props.scrollToRowIndex,contextMenu:this.props.contextMenu,rowSelection:this.props.rowSelection,getSubRowDetails:this.props.getSubRowDetails,rowGroupRenderer:this.props.rowGroupRenderer,overScan:this.props.overScan,enableCellSelect:this.props.enableCellSelect,enableCellAutoFocus:this.props.enableCellAutoFocus,cellNavigationMode:this.props.cellNavigationMode,eventBus:this.props.eventBus,onCheckCellIsEditable:this.props.onCheckCellIsEditable,onCellCopyPaste:this.props.onCellCopyPaste,onGridRowsUpdated:this.props.onGridRowsUpdated,onDragHandleDoubleClick:this.props.onDragHandleDoubleClick,onCellSelected:this.props.onCellSelected,onCellDeSelected:this.props.onCellDeSelected,onCellRangeSelectionStarted:this.props.onCellRangeSelectionStarted,onCellRangeSelectionUpdated:this.props.onCellRangeSelectionUpdated,onCellRangeSelectionCompleted:this.props.onCellRangeSelectionCompleted,onCommit:this.props.onCommit,RowsContainer:this.props.RowsContainer}))):c.createElement("div",{ref:this.setEmptyViewRef,className:"react-grid-Empty"},c.createElement(t,null)))}}]),t}(c.Component);f.displayName="Grid",f.propTypes={rowGetter:i.default.oneOfType([i.default.array,i.default.func]).isRequired,columns:i.default.oneOfType([i.default.array,i.default.object]),columnMetrics:i.default.object,minHeight:i.default.number,totalWidth:i.default.oneOfType([i.default.number,i.default.string]),headerRows:i.default.oneOfType([i.default.array,i.default.func]),rowHeight:i.default.number,rowRenderer:i.default.oneOfType([i.default.element,i.default.func]),emptyRowsView:i.default.func,expandedRows:i.default.oneOfType([i.default.array,i.default.func]),selectedRows:i.default.oneOfType([i.default.array,i.default.func]),rowSelection:i.default.oneOfType([i.default.shape({indexes:i.default.arrayOf(i.default.number).isRequired}),i.default.shape({isSelectedKey:i.default.string.isRequired}),i.default.shape({keys:i.default.shape({values:i.default.array.isRequired,rowKey:i.default.string.isRequired}).isRequired})]),rowsCount:i.default.number,onRows:i.default.func,sortColumn:i.default.string,cellMetaData:i.default.shape(l.default).isRequired,sortDirection:i.default.oneOf(["ASC","DESC","NONE"]),rowOffsetHeight:i.default.number.isRequired,onViewportKeydown:i.default.func.isRequired,onViewportKeyup:i.default.func,onColumnResize:i.default.func,onSort:i.default.func,onHeaderDrop:i.default.func,rowKey:i.default.string.isRequired,rowScrollTimeout:i.default.number,scrollToRowIndex:i.default.number,contextMenu:i.default.element,getSubRowDetails:i.default.func,draggableHeaderCell:i.default.func,getValidFilterValues:i.default.func,rowGroupRenderer:i.default.func,overScan:i.default.object,enableCellSelect:i.default.bool.isRequired,enableCellAutoFocus:i.default.bool.isRequired,cellNavigationMode:i.default.string.isRequired,eventBus:i.default.object.isRequired,onCheckCellIsEditable:i.default.func,onCellCopyPaste:i.default.func,onGridRowsUpdated:i.default.func.isRequired,onDragHandleDoubleClick:i.default.func.isRequired,onCellSelected:i.default.func,onCellDeSelected:i.default.func,onCellRangeSelectionStarted:i.default.func,onCellRangeSelectionUpdated:i.default.func,onCellRangeSelectionCompleted:i.default.func,onCommit:i.default.func.isRequired,onScroll:i.default.func,scrollLeft:i.default.number,RowsContainer:i.default.node},f.defaultProps={rowHeight:35,minHeight:350},e.exports=f},function(e,t,o){"use strict";var r,n=Object.assign||function(e){for(var t=1;t0?w():0,c=isNaN(r.props.totalWidth-s)?r.props.totalWidth:r.props.totalWidth-s,d={position:"absolute",top:r.getCombinedHeaderHeights(n),left:0,width:c,overflowX:"hidden",minHeight:l};return u.createElement(g,{key:o.rowType,ref:i?r.setFilterRowRef:r.setRowRef,rowType:o.rowType,style:d,onColumnResize:r.onColumnResize,onColumnResizeEnd:r.onColumnResizeEnd,width:e.width,height:o.height||r.props.height,columns:e.columns,resizing:t,draggableHeaderCell:r.props.draggableHeaderCell,filterable:o.filterable,onFilterChange:o.onFilterChange,onHeaderDrop:r.props.onHeaderDrop,sortColumn:r.props.sortColumn,sortDirection:r.props.sortDirection,onSort:r.props.onSort,onScroll:r.props.onScroll,getValidFilterValues:r.props.getValidFilterValues})}))},r.getColumnMetrics=function(){return r.state.resizing?r.state.resizing.columnMetrics:r.props.columnMetrics},r.getColumnPosition=function(e){var t=r.getColumnMetrics(),o=-1;return t.columns.forEach((function(t,r){t.key===e.key&&(o=r)})),-1===o?null:o},r.getCombinedHeaderHeights=function(e){var t=r.props.headerRows.length;void 0!==e&&(t=e);for(var o=0,n=0;n0&&void 0!==arguments[0]?arguments[0]:e.props,o=e.setupGridColumns(t);return e.getColumnMetricsType({columns:o,minColumnWidth:e.props.minColumnWidth,totalWidth:t.minWidth})},this.onColumnResize=function(t,o){var r=v.resizeColumn(e.state.columnMetrics,t,o);e.setState({columnMetrics:r}),e.props.onColumnResize&&e.props.onColumnResize(t,o)},this.onKeyDown=function(t){e._keysDown=e._keysDown||{},e._keysDown[t.keyCode]=!0;var o=e.props.onGridKeyDown;(0,f.isFunction)(o)&&o(t)},this.onKeyUp=function(t){e._keysDown=e._keysDown||{},delete e._keysDown[t.keyCode];var o=e.props.onGridKeyUp;(0,f.isFunction)(o)&&o(t)},this.isSingleKeyDown=function(t){return!!e._keysDown&&t in e._keysDown&&1===Object.keys(e._keysDown).length},this.onColumnEvent=function(t,o){var r=o.idx,n=o.name;if(n&&void 0!==r){var i=e.getColumn(r);if(i&&i.events&&(0,f.isFunction)(i.events[n])){var l={idx:r,rowIdx:o.rowIdx,rowId:o.rowId,column:i};i.events[n](t,l)}}},this.onCellClick=function(t){var o=t.rowIdx,r=t.idx,n=e.props,i=n.onRowClick,l=n.rowGetter;e.selectCell({rowIdx:o,idx:r}),(0,f.isFunction)(i)&&i(o,l(o),e.getColumn(r))},this.onCellMouseDown=function(t){e.selectStart(t)},this.onCellMouseEnter=function(t){e.selectUpdate(t)},this.onWindowMouseUp=function(){e.selectEnd()},this.onCellContextMenu=function(t){var o=t.rowIdx,r=t.idx;e.selectCell({rowIdx:o,idx:r})},this.onCellDoubleClick=function(t){var o=t.rowIdx,r=t.idx,n=e.props,i=n.onRowDoubleClick,l=n.rowGetter;(0,f.isFunction)(i)&&i(o,l(o),e.getColumn(r)),e.openCellEditor(o,r)},this.onToggleFilter=function(){e.setState({canFilter:!e.state.canFilter},(function(){!1===e.state.canFilter&&e.props.onClearFilters&&e.props.onClearFilters()}))},this.onDragHandleDoubleClick=function(t){if(e.props.onDragHandleDoubleClick&&e.props.onDragHandleDoubleClick(t),e.props.onGridRowsUpdated){var o=e.getColumn(t.idx).key;e.onGridRowsUpdated(o,t.rowIdx,e.props.rowsCount-1,(r={},n=o,i=t.rowData[o],n in r?Object.defineProperty(r,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[n]=i,r),w.UpdateActions.COLUMN_FILL)}var r,n,i},this.onCellExpand=function(t){e.props.onCellExpand&&e.props.onCellExpand(t)},this.onRowExpandToggle=function(t){"function"==typeof e.props.onRowExpandToggle&&e.props.onRowExpandToggle(t)},this.onGridRowsUpdated=function(t,o,r,n,i,l){var a=e.props,s=a.rowGetter,u=a.rowKey,c=a.onGridRowsUpdated;if((0,f.isFunction)(e.props.onRowUpdated)&&e.props.onRowUpdated({updated:n,rowIdx:o,cellKey:t,value:n[t]}),(0,f.isFunction)(c)){for(var d=[],p=o;p<=r;p++)d.push(s(p)[u]);var h=s(i===w.UpdateActions.COPY_PASTE?l:o);c({cellKey:t,fromRow:o,toRow:r,fromRowId:h[u],toRowId:s(r)[u],rowIds:d,updated:n,action:i,fromRowData:h})}},this.onCommit=function(t){var o=t.rowIdx;e.onGridRowsUpdated(t.cellKey,o,o,t.updated,w.UpdateActions.CELL_UPDATE)},this.onScroll=function(t){(0,f.isFunction)(e.props.onScroll)&&e.props.onScroll(t)},this.handleSort=function(t,o){e.setState({sortDirection:o,sortColumn:t},(function(){e.props.onGridSort(t,o)}))},this.getSelectedRow=function(t,o){var r=t.filter((function(t){return t[e.props.rowKey]===o}));if(r.length>0)return r[0]},this.useNewRowSelection=function(){return e.props.rowSelection&&e.props.rowSelection.selectBy},this.handleShiftSelect=function(t){if(e.state.lastRowIdxUiSelected>-1&&e.isSingleKeyDown(p.default.Shift)){var o=e.props.rowSelection.selectBy,r=o.keys,n=o.indexes,i=o.isSelectedKey;if(c.default.isRowSelected(r,n,i,e.props.rowGetter(t),t))return!1;var l=!1;if(t>e.state.lastRowIdxUiSelected){for(var a=[],s=e.state.lastRowIdxUiSelected+1;s<=t;s++)a.push({rowIdx:s,row:e.props.rowGetter(s)});"function"==typeof e.props.rowSelection.onRowsSelected&&e.props.rowSelection.onRowsSelected(a),l=!0}else if(t0&&e.props.rowSelection.onRowsSelected(a)}else if(!o&&"function"==typeof e.props.rowSelection.onRowsDeselected){for(var d=[],p=0;p0&&e.props.rowSelection.onRowsDeselected(d)}}else{for(var h=[],g=0;g0&&void 0!==arguments[0]?arguments[0]:e.props,o=t.columns;if(e._cachedColumns===o)return e._cachedComputedColumns;e._cachedColumns=o;var r=o.slice(0),n={};if(e.props.rowActionsCell||t.enableRowSelect&&!e.props.rowSelection||t.rowSelection&&!1!==t.rowSelection.showCheckbox){var l=e.props.selectAllRenderer||h.default,a=i.default.createElement(l,{onChange:e.handleCheckboxChange,inputRef:function(t){return e.selectAllCheckbox=t}}),s="single"===t.enableRowSelect?null:a,c=e.props.rowActionsCell?e.props.rowActionsCell:u.default,d={key:"select-row",name:"",formatter:i.default.createElement(c,{rowSelection:e.props.rowSelection}),onCellChange:e.handleRowSelect,filterable:!1,headerRenderer:s,width:60,frozen:!0,getRowMetaData:function(e){return e},cellClass:e.props.rowActionsCell?"rdg-row-actions-cell":""};n=r.unshift(d),r=n>0?r:n}return e._cachedComputedColumns=r,e._cachedComputedColumns},this.setGridRef=function(t){e.grid=t},this.setBaseGridRef=function(t){e.base=t},this.renderToolbar=function(){var t=e.props.toolbar,o={columns:e.props.columns,onToggleFilter:e.onToggleFilter,numberOfRows:e.props.rowsCount};return i.default.isValidElement(t)?i.default.cloneElement(t,o):(0,f.isFunction)(t)?i.default.createElement(t,o):void 0}};e.exports=y},function(e,t,o){"use strict";var r=Object.assign||function(e){for(var t=1;t0&&o.splice(e,1)}}},{key:"dispatch",value:function(e){for(var t=arguments.length,o=Array(t>1?t-1:0),r=1;r=0||Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=e[r]);return o}function S(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}o(391);var E=function(e){function t(){var e,o,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,i=Array(n),l=0;l=o-2},p=function(e){return 0!==e.rowIdx&&e.rowIdx<=n-1},f={ArrowDown:{getNext:function(e){return r({},e,{rowIdx:e.rowIdx+1})},isCellAtBoundary:d,onHitBoundary:a},ArrowUp:{getNext:function(e){return r({},e,{rowIdx:e.rowIdx-1})},isCellAtBoundary:p,onHitBoundary:c},ArrowRight:{getNext:function(e){return r({},e,{idx:e.idx+1})},isCellAtBoundary:function(e){return 0!==e.idx&&e.idx>=i-1},onHitBoundary:function(e){s(e),d(e)&&a(e)}},ArrowLeft:{getNext:function(e){return r({},e,{idx:e.idx-1})},isCellAtBoundary:function(e){return 0!==e.idx&&e.idx<=l+1},onHitBoundary:function(e){u(e),p(e)&&c(e)}}};return e.keyCode===v.Tab?!0===e.shiftKey?f.ArrowLeft:f.ArrowRight:f[e.key]}},{key:"changeCellFromEvent",value:function(e){e.preventDefault();var t=e.keyCode===v.Tab,o=e.shiftKey;if(t){var r=this.props.cellNavigationMode===h.CellNavigationMode.NONE?h.CellNavigationMode.CHANGE_ROW:this.props.cellNavigationMode;this.changeCellFromKeyAction(e,r)}else o?this.changeSelectedRangeFromArrowKeyAction(e):this.changeCellFromKeyAction(e,this.props.cellNavigationMode)}},{key:"changeCellFromKeyAction",value:function(e,t){var o=this.state.selectedPosition,r=this.getKeyNavActionFromEvent(e),n=this.getNextSelectedCellPositionForKeyNavAction(r,o,t);this.checkIsAtGridBoundary(r,n),n.changeRowOrColumn;var i=x(n,["changeRowOrColumn"]);this.selectCell(i)}},{key:"changeSelectedRangeFromArrowKeyAction",value:function(e){var t=this,o=this.props.cellNavigationMode,r=this.state.selectedRange.cursorCell||this.state.selectedPosition,n=this.getKeyNavActionFromEvent(e),i=this.getNextSelectedCellPositionForKeyNavAction(n,r,o);this.checkIsAtGridBoundary(n,i),i.changeRowOrColumn;var l=x(i,["changeRowOrColumn"]);this.onSelectCellRangeUpdated(l,!0,(function(){t.onSelectCellRangeEnded()}))}},{key:"getNextSelectedCellPositionForKeyNavAction",value:function(e,t,o){var r=(0,e.getNext)(t),n=this.props,i=n.columns,l=n.rowsCount;return(0,w.getNextSelectedCellPosition)({columns:i,rowsCount:l,cellNavigationMode:o},r)}},{key:"checkIsAtGridBoundary",value:function(e,t){var o=e.isCellAtBoundary,r=e.onHitBoundary,n=t.changeRowOrColumn,i=x(t,["changeRowOrColumn"]);(o(i)||n)&&r(i)}},{key:"createSingleCellSelectedRange",value:function(e,t){return{topLeft:e,bottomRight:e,startCell:e,cursorCell:e,isDragging:t}}},{key:"render",value:function(){var e=this.props,t=e.rowGetter,o=e.contextMenu,n=e.rowHeight,a=e.getSelectedRowColumns,s=this.state,u=s.isEditorEnabled,p=s.firstEditorKeyPress,h=s.selectedPosition,g=s.draggedPosition,m=s.copiedPosition,b=(0,w.getSelectedRow)({selectedPosition:h,rowGetter:t}),v=a(h.rowIdx);return l.default.createElement("div",{onKeyDown:this.onKeyDown,onFocus:this.onFocus},m&&l.default.createElement(c.default,{copiedPosition:m,rowHeight:n,columns:a(m.rowIdx)}),g&&l.default.createElement(d.default,{draggedPosition:g,rowHeight:n,columns:a(g.rowIdx)}),(0,w.selectedRangeIsSingleCell)(this.state.selectedRange)?this.getSingleCellSelectView():this.getCellRangeSelectView(),u&&l.default.createElement(f.default,r({firstEditorKeyPress:p,onCommit:this.onCommit,onCommitCancel:this.onCommitCancel,rowIdx:h.rowIdx,value:(0,w.getSelectedCellValue)({selectedPosition:h,columns:v,rowGetter:t}),rowData:b,column:(0,w.getSelectedColumn)({selectedPosition:h,columns:v}),scrollLeft:this.props.scrollLeft,scrollTop:this.props.scrollTop},(0,w.getSelectedDimensions)({selectedPosition:h,rowHeight:n,columns:v}))),(0,i.isValidElement)(o)&&(0,i.cloneElement)(o,r({},h)))}}]),t}(l.default.Component);E.propTypes={colVisibleStartIdx:a.default.number.isRequired,colVisibleEndIdx:a.default.number.isRequired,rowVisibleStartIdx:a.default.number.isRequired,rowVisibleEndIdx:a.default.number.isRequired,rowOverscanStartIdx:a.default.number.isRequired,columns:a.default.array,width:a.default.number,rowHeight:a.default.number.isRequired,rowGetter:a.default.func.isRequired,rowsCount:a.default.number.isRequired,enableCellSelect:a.default.bool.isRequired,enableCellAutoFocus:a.default.bool.isRequired,cellNavigationMode:a.default.oneOf([h.CellNavigationMode.NONE,h.CellNavigationMode.LOOP_OVER_ROW,h.CellNavigationMode.CHANGE_ROW]).isRequired,eventBus:a.default.object.isRequired,contextMenu:a.default.element,onCheckCellIsEditable:a.default.func,onCellCopyPaste:a.default.func,onGridRowsUpdated:a.default.func.isRequired,onHitBottomBoundary:a.default.func.isRequired,onHitTopBoundary:a.default.func.isRequired,onHitRightBoundary:a.default.func.isRequired,onHitLeftBoundary:a.default.func.isRequired,onCommit:a.default.func.isRequired,onCommitCancel:a.default.func,onCellSelected:a.default.func,onCellDeSelected:a.default.func,onCellRangeSelectionStarted:a.default.func,onCellRangeSelectionUpdated:a.default.func,onCellRangeSelectionCompleted:a.default.func,onCellsDragged:a.default.func,onDragHandleDoubleClick:a.default.func.isRequired,scrollLeft:a.default.number.isRequired,prevScrollLeft:a.default.number.isRequired,scrollTop:a.default.number.isRequired,prevScrollTop:a.default.number.isRequired,rows:a.default.array.isRequired,getSelectedRowHeight:a.default.func.isRequired,getSelectedRowTop:a.default.func.isRequired,getSelectedRowColumns:a.default.func.isRequired};var I=function(){var e=this;this.state={selectedPosition:{idx:-1,rowIdx:-1},selectedRange:{topLeft:{idx:-1,rowIdx:-1},bottomRight:{idx:-1,rowIdx:-1}},copiedPosition:null,draggedPosition:null,frozenPosition:null,isEditorEnabled:!1,firstEditorKeyPress:null},this.onKeyDown=function(t){(0,g.isCtrlKeyHeldDown)(t)?e.onPressKeyWithCtrl(t):t.keyCode===v.Escape?e.onPressEscape(t):t.keyCode===v.Tab?e.onPressTab(t):e.isKeyboardNavigationEvent(t)?e.changeCellFromEvent(t):((0,g.isKeyPrintable)(t.keyCode)||-1!==[v.Backspace,v.Delete,v.Enter].indexOf(t.keyCode))&&e.openEditor(t)},this.isSelectedCellEditable=function(){var t=e.props,o=t.enableCellSelect,r=t.columns,n=t.rowGetter,i=t.onCheckCellIsEditable,l=e.state.selectedPosition;return(0,w.isSelectedCellEditable)({enableCellSelect:o,columns:r,rowGetter:n,selectedPosition:l,onCheckCellIsEditable:i})},this.openEditor=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).key;e.isSelectedCellEditable()&&!e.state.isEditorEnabled&&e.setState({isEditorEnabled:!0,firstEditorKeyPress:t})},this.closeEditor=function(){e.setState({isEditorEnabled:!1,firstEditorKeyPress:null})},this.onPressKeyWithCtrl=function(t){var o=t.keyCode;if(e.copyPasteEnabled())if(o===v.c){var r=e.props,n=r.columns,i=r.rowGetter,l=e.state.selectedPosition,a=(0,w.getSelectedCellValue)({selectedPosition:l,columns:n,rowGetter:i});e.handleCopy({value:a})}else o===v.v&&e.handlePaste()},this.onFocus=function(t){var o=!0===t.shiftKey,r=e.state.selectedPosition,n=r.idx,i=r.rowIdx;-1===n&&-1===i&&(o?e.selectLastCell():e.selectFirstCell())},this.onPressTab=function(t){var o=e.props,r=o.cellNavigationMode,n=o.columns,i=o.rowsCount,l=e.state,a=l.selectedPosition,s=l.isEditorEnabled;if(0!==i)return(0,w.canExitGrid)(t,{cellNavigationMode:r,columns:n,rowsCount:i,selectedPosition:a})?s?void e.closeEditor():void e.setState({selectedPosition:{idx:-1,rowIdx:-1}}):void e.changeCellFromEvent(t)},this.onPressEscape=function(){e.copyPasteEnabled()&&(e.handleCancelCopy(),e.closeEditor())},this.copyPasteEnabled=function(){return null!==e.props.onCellCopyPaste&&e.isSelectedCellEditable()},this.handleCopy=function(t){var o=t.value,r=e.state.selectedPosition,n=r.rowIdx,i=r.idx;e.setState({copiedPosition:{rowIdx:n,idx:i,value:o}})},this.handleCancelCopy=function(){e.setState({copiedPosition:null})},this.handlePaste=function(){var t=e.props,o=t.columns,r=t.onCellCopyPaste,n=t.onGridRowsUpdated,i=e.state,l=i.selectedPosition,a=i.copiedPosition,s=l.rowIdx;if(null!=a){var u=(0,w.getSelectedColumn)({selectedPosition:l,columns:o}).key,c=a.rowIdx,d=a.value;(0,m.isFunction)(r)&&r({cellKey:u,rowIdx,fromRow:c,toRow:s,value:d}),n(u,s,s,R({},u,d),h.UpdateActions.COPY_PASTE,c)}},this.isCellWithinBounds=function(t){var o=t.idx,r=t.rowIdx,n=e.props,i=n.columns,l=n.rowsCount;return r>=0&&r=0&&o-1&&i){t.dataTransfer.effectAllowed="copy";var l=JSON.stringify({idx:r,rowIdx:n});try{t.dataTransfer.setData("text/plain",l)}catch(e){t.dataTransfer.setData("text",l)}e.setState({draggedPosition:{idx:r,rowIdx:n}})}},this.handleDragEnter=function(t){var o=t.overRowIdx;null!=e.state.draggedPosition&&e.setState((function(e){var t=e.draggedPosition;return{draggedPosition:r({},t,{overRowIdx:o})}}))},this.handleDragEnd=function(){var t=e.state.draggedPosition;if(null!=t){var o=t.rowIdx,r=t.overRowIdx;if(null!=r){var n=e.props,i=n.columns,l=n.onCellsDragged,a=n.onGridRowsUpdated,s=n.rowGetter,u=(0,w.getSelectedColumn)({selectedPosition:t,columns:i}),c=(0,w.getSelectedCellValue)({selectedPosition:t,columns:i,rowGetter:s}),d=u.key,p=or?o:r;(0,m.isFunction)(l)&&l({cellKey:d,fromRow:p,toRow:f,value:c}),(0,m.isFunction)(a)&&a(d,p,f,R({},d,c),h.UpdateActions.CELL_DRAG)}e.setState({draggedPosition:null})}},this.onDragHandleDoubleClick=function(){var t=e.props,o=t.onDragHandleDoubleClick,r=t.rowGetter,n=e.state.selectedPosition;o({idx:n.idx,rowIdx:n.rowIdx,rowData:(0,w.getSelectedRow)({selectedPosition:n,rowGetter:r})})},this.onCommit=function(){var t;(t=e.props).onCommit.apply(t,arguments),e.closeEditor()},this.onCommitCancel=function(){e.closeEditor()},this.setSelectionMaskRef=function(t){e.selectionMask=t},this.getSelectionMaskProps=function(){var t=e.props,o=t.columns,r=t.getSelectedRowHeight,n=t.getSelectedRowTop,i=t.scrollLeft;return{columns:o,scrollTop:t.scrollTop,scrollLeft:i,getSelectedRowHeight:r,getSelectedRowTop:n,prevScrollLeft:t.prevScrollLeft,prevScrollTop:t.prevScrollTop,prevSelectedPosition:e.state.prevSelectedPosition,isGroupedRow:e.isGroupedRowSelected(),innerRef:e.setSelectionMaskRef}},this.getSingleCellSelectView=function(){var t=e.state.selectedPosition;return!e.state.isEditorEnabled&&e.isGridSelected()&&l.default.createElement(s.default,r({selectedPosition:t},e.getSelectionMaskProps()),e.isDragEnabled()&&l.default.createElement(p.default,{onDragStart:e.handleDragStart,onDragEnd:e.handleDragEnd,onDoubleClick:e.onDragHandleDoubleClick}))},this.getCellRangeSelectView=function(){var t=e.props,o=t.columns,n=t.rowHeight;return[l.default.createElement(u.default,{key:"range-mask",selectedRange:e.state.selectedRange,columns:o,rowHeight:n}),l.default.createElement(s.default,r({key:"selection-mask",selectedPosition:e.state.selectedRange.startCell},e.getSelectionMaskProps()))]}};t.default=E},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCellMaskDimensions=void 0;var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=e[r]);return o}(e,["children","innerRef"]),a=p(i),s=c(i.columns,i.selectedPosition)&&d(i)?"fixed":"absolute";return n.default.createElement(l.default,r({},a,{className:"rdg-selected",position:s,innerRef:o,tabIndex:"0"}),t)}f.propTypes={selectedPosition:i.default.object.isRequired,columns:i.default.array.isRequired,innerRef:i.default.func},t.default=f},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;tn)return d-n}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getColOverscanEndIdx=t.getColOverscanStartIdx=t.getRowOverscanEndIdx=t.getRowOverscanStartIdx=t.getScrollDirection=t.getVisibleBoundaries=t.getNonFrozenRenderedColumnCount=t.getNonFrozenVisibleColStartIdx=t.findLastFrozenColumnIndex=t.getGridState=t.SCROLL_DIRECTION=t.OVERSCAN_ROWS=void 0;var r,n=(r=o(6))&&r.__esModule?r:{default:r},i=t.OVERSCAN_ROWS=2,l=t.SCROLL_DIRECTION={UP:"upwards",DOWN:"downwards",LEFT:"left",RIGHT:"right",NONE:"none"},a=Math.min,s=Math.max,u=Math.ceil,c=(t.getGridState=function(e){var t=n.default.getSize(e.columnMetrics.columns),o=e.minHeight-e.rowOffsetHeight,r=u((e.minHeight-e.rowHeight)/e.rowHeight);return{rowOverscanStartIdx:0,rowOverscanEndIdx:a(e.rowsCount,2*r),rowVisibleStartIdx:0,rowVisibleEndIdx:r,height:o,scrollTop:0,scrollLeft:0,colVisibleStartIdx:0,colVisibleEndIdx:t,colOverscanStartIdx:0,colOverscanEndIdx:t,isScrolling:!1,lastFrozenColumnIndex:0}},t.findLastFrozenColumnIndex=function(e){var t=-1;return e.forEach((function(e,o){n.default.isFrozen(e)&&(t=o)})),t}),d=t.getNonFrozenVisibleColStartIdx=function(e,t){for(var o=t,r=c(e),i=e.slice(r+1),l=r;o>=0&&l-1){var o=n.default.getColumn(e,t);return o.left+o.width}return 0}(e.columns),a=t>0?t:e.totalColumnWidth,s=n.default.getColumn(e.columns,i),u=l+o,p=a-l+(u>s.left?u-s.left:0),f=function(e,t,o){var r={width:t,count:0};return e.slice(o).reduce((function(e,t){var o=e.width,r=e.count,n=o-t.width;return{width:n,count:n>=0?r+1:r}}),r)}(e.columns,p,i);return f.count},t.getVisibleBoundaries=function(e,t,o,r){var n=u(e/t),i=s(0,Math.round(o/t));return{rowVisibleStartIdx:i,rowVisibleEndIdx:a(i+n,r)}},t.getScrollDirection=function(e,t,o){return t!==e.scrollTop&&void 0!==e.scrollTop?t-e.scrollTop>=0?l.DOWN:l.UP:o!==e.scrollLeft&&void 0!==e.scrollLeft?o-e.scrollLeft>=0?l.RIGHT:l.LEFT:l.NONE},t.getRowOverscanStartIdx=function(e,t){return s(0,e===l.UP?t-i:t)},t.getRowOverscanEndIdx=function(e,t,o){return e===l.DOWN?a(t+i,o):t},t.getColOverscanStartIdx=function(e,t,o){return e===l.LEFT||e===l.RIGHT?o>-1?o+1:0:t},t.getColOverscanEndIdx=function(e,t,o){return e===l.DOWN||e===l.UP?t:o}},,function(e,t,o){(e.exports=o(8)()).push([e.id,'.rdg-selected{border:2px solid #66afe9}.rdg-selected .drag-handle{pointer-events:auto;position:absolute;bottom:-5px;right:-4px;background:#66afe9;width:8px;height:8px;border:1px solid #fff;border-right:0;border-bottom:0;z-index:8;cursor:crosshair;cursor:-moz-grab;cursor:-webkit-grab;cursor:grab}.rdg-selected:hover .drag-handle{bottom:-8px;right:-7px;background:#fff;width:16px;height:16px;border:1px solid #66afe9}.rdg-selected:hover .drag-handle .glyphicon-arrow-down{display:"block"}.react-grid-cell-dragged-over-down,.react-grid-cell-dragged-over-up{border:1px dashed #000;background:rgba(0,0,255,.2)!important}.react-grid-cell-dragged-over-up{border-bottom-width:0}.react-grid-cell-dragged-over-down{border-top-width:0}.react-grid-cell-copied{background:rgba(0,0,255,.2)!important}.rdg-editor-container input.editor-main,select.editor-main{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}input.editor-main:focus,select.editor-main:focus{border-color:#66afe9;border:2px solid #66afe9;background:#eee;border-radius:4px}.rdg-editor-container input.editor-main::-moz-placeholder,select.editor-main::-moz-placeholder{color:#999;opacity:1}.rdg-editor-container input.editor-main:-ms-input-placeholder,select.editor-main:-ms-input-placeholder{color:#999}.rdg-editor-container input.editor-main::-webkit-input-placeholder,select.editor-main::-webkit-input-placeholder{color:#999}.rdg-editor-container input.editor-main[disabled],.rdg-editor-container input.editor-main[readonly],fieldset[disabled] .rdg-editor-container input.editor-main,fieldset[disabled] select.editor-main,select.editor-main[disabled],select.editor-main[readonly]{cursor:not-allowed;background-color:#eee;opacity:1}textarea.rdg-editor-container input.editor-main,textareaselect.editor-main{height:auto}',""])},function(e,t,o){(e.exports=o(8)()).push([e.id,".react-grid-Container{clear:both;margin-top:0;padding:0}.react-grid-Main{background-color:#fff;color:inherit;padding:0;outline:1px solid #e7eaec;clear:both}.react-grid-Grid{border:1px solid #ddd;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.react-grid-Canvas,.react-grid-Grid{background-color:#fff}",""])},,function(e,t,o){(e.exports=o(8)()).push([e.id,".react-grid-Header{box-shadow:0 0 4px 0 #ddd;background:#f9f9f9}.react-grid-Header--resizing{cursor:ew-resize}.react-grid-HeaderCell,.react-grid-HeaderRow{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.react-grid-HeaderCell{background:#f9f9f9;padding:8px;font-weight:700;border-right:1px solid #ddd;border-bottom:1px solid #ddd}.react-grid-HeaderCell__value{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;position:relative;top:50%;transform:translateY(-50%)}.react-grid-HeaderCell__resizeHandle:hover{cursor:ew-resize;background:#ddd}.react-grid-HeaderCell--frozen:last-of-type{box-shadow:2px 0 5px -2px hsla(0,0%,53%,.3)}.react-grid-HeaderCell--resizing .react-grid-HeaderCell__resizeHandle{background:#ddd}.react-grid-HeaderCell__draggable{cursor:col-resize}.rdg-can-drop>.react-grid-HeaderCell{background:#ececec}.react-grid-HeaderCell .Select{max-height:30px;font-size:12px;font-weight:400}.react-grid-HeaderCell .Select-control{max-height:30px;border:1px solid #ccc;color:#555;border-radius:3px}.react-grid-HeaderCell .is-focused:not(.is-open)>.Select-control{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.react-grid-HeaderCell .Select-control .Select-placeholder{line-height:20px;color:#999;padding:4px}.react-grid-HeaderCell .Select-control .Select-input{max-height:28px;padding:4px;margin-left:0}.react-grid-HeaderCell .Select-control .Select-input input{padding:0;height:100%}.react-grid-HeaderCell .Select-control .Select-arrow-zone .Select-arrow{border-color:gray transparent transparent;border-width:4px 4px 2.5px}.react-grid-HeaderCell .Select-control .Select-value{padding:4px;line-height:20px!important}.react-grid-HeaderCell .Select--multi .Select-control .Select-value{padding:0;line-height:16px!important;max-height:20px}.react-grid-HeaderCell .Select--multi .Select-control .Select-value .Select-value-icon,.react-grid-HeaderCell .Select--multi .Select-control .Select-value .Select-value-label{max-height:20px}.react-grid-HeaderCell .Select-control .Select-value .Select-value-label{color:#555!important}.react-grid-HeaderCell .Select-menu-outer{z-index:2}.react-grid-HeaderCell .Select-menu-outer .Select-option{padding:4px;line-height:20px}.react-grid-HeaderCell .Select-menu-outer .Select-menu .Select-option.is-focused,.react-grid-HeaderCell .Select-menu-outer .Select-menu .Select-option.is-selected{color:#555}",""])},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t{e.exports=o(140464)}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/53370.affd309bf2aa3f38d3a0.chunk.js.LICENSE.txt b/geonode_mapstore_client/static/mapstore/dist/js/53370.018dc26183efb561a8b1.chunk.js.LICENSE.txt similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/53370.affd309bf2aa3f38d3a0.chunk.js.LICENSE.txt rename to geonode_mapstore_client/static/mapstore/dist/js/53370.018dc26183efb561a8b1.chunk.js.LICENSE.txt diff --git a/geonode_mapstore_client/static/mapstore/dist/js/53385.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/53385.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/53385.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/53385.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/53392.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/53392.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/53392.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/53392.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/53450.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/53450.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/53450.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/53450.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/53457.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/53457.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/53457.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/53457.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/53519.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/53519.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/53519.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/53519.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/53541.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/53541.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/53541.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/53541.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/53646.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/53646.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/53646.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/53646.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/53742.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/53742.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/53742.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/53742.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/53862.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/53862.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/53862.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/53862.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/53907.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/53907.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/53907.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/53907.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/53922.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/53922.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/53922.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/53922.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/5404.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/5404.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/5404.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/5404.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/54158.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/54158.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/54158.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/54158.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/54169.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/54169.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/54169.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/54169.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/54483.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/54483.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/54483.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/54483.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/54635.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/54635.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/54635.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/54635.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/54696.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/54696.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/54696.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/54696.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/54793.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/54793.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/54793.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/54793.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/54825.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/54825.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/54825.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/54825.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/54925.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/54925.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/54925.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/54925.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/54979.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/54979.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/54979.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/54979.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/55033.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/55033.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/55033.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/55033.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/55158.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/55158.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/55158.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/55158.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/55215.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/55215.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/55215.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/55215.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/55260.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/55260.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/55260.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/55260.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/55380.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/55380.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/55380.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/55380.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/55392.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/55392.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/55392.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/55392.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/55539.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/55539.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/55539.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/55539.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/55541.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/55541.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/55541.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/55541.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/55685.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/55685.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/55685.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/55685.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/5580.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/5580.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/5580.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/5580.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/55841.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/55841.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/55841.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/55841.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/55881.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/55881.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/55881.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/55881.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/5605.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/5605.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/5605.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/5605.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/56103.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/56103.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/56103.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/56103.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/56169.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/56169.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/56169.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/56169.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/56246.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/56246.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/56246.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/56246.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/56349.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/56349.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/56349.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/56349.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/5642.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/5642.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/5642.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/5642.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/56516.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/56516.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/56516.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/56516.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/56556.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/56556.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/56556.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/56556.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/56636.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/56636.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/56636.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/56636.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/56667.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/56667.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/56667.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/56667.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/56758.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/56758.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/56758.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/56758.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/56861.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/56861.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/56861.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/56861.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/56883.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/56883.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/56883.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/56883.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/56936.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/56936.018dc26183efb561a8b1.chunk.js similarity index 99% rename from geonode_mapstore_client/static/mapstore/dist/js/56936.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/56936.018dc26183efb561a8b1.chunk.js index 34f36ce2e1..599c474d36 100644 --- a/geonode_mapstore_client/static/mapstore/dist/js/56936.affd309bf2aa3f38d3a0.chunk.js +++ b/geonode_mapstore_client/static/mapstore/dist/js/56936.018dc26183efb561a8b1.chunk.js @@ -1,2 +1,2 @@ -/*! For license information please see 56936.affd309bf2aa3f38d3a0.chunk.js.LICENSE.txt */ +/*! For license information please see 56936.018dc26183efb561a8b1.chunk.js.LICENSE.txt */ (self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[56936],{584121:(e,t,n)=>{"use strict";function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function r(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===o(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>r})},315897:(e,t,n)=>{"use strict";t.__esModule=!0;var o=n(124852),r=(s(o),s(n(675263))),i=s(n(847815));function s(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}s(n(725506));var u=1073741823;t.default=function(e,t){var n,s,c="__create-react-context-"+(0,i.default)()+"__",f=function(e){function n(){var t,o,r,i;a(this,n);for(var s=arguments.length,l=Array(s),u=0;u{"use strict";t.__esModule=!0;var o=i(n(124852)),r=i(n(315897));function i(e){return e&&e.__esModule?e:{default:e}}t.default=o.default.createContext||r.default,e.exports=t.default},725506:e=>{"use strict";e.exports=function(){}},553369:(e,t,n)=>{"use strict";var o=n(595318);t.__esModule=!0,t.default=function(e){var t=(0,r.default)(e);return t&&t.defaultView||t.parentWindow};var r=o(n(99981));e.exports=t.default},644838:(e,t,n)=>{"use strict";var o=n(595318);t.__esModule=!0,t.default=function(e,t){var n=(0,i.default)(e);return n?n.innerHeight:t?e.clientHeight:(0,r.default)(e).height};var r=o(n(292565)),i=o(n(507624));e.exports=t.default},768604:(e,t,n)=>{"use strict";var o=n(595318);t.__esModule=!0,t.default=function(e,t){if(!r&&i.default){var n=document.body,o=n.matches||n.matchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector;r=o?function(e,t){return o.call(e,t)}:a}return r?r(e,t):null};var r,i=o(n(250139)),s=o(n(96792));function a(e,t){for(var n=(0,s.default)(e.document||e.ownerDocument,t),o=0;n[o]&&n[o]!==e;)o++;return!!n[o]}e.exports=t.default},847815:(e,t,n)=>{"use strict";var o="__global_unique_id__";e.exports=function(){return n.g[o]=(n.g[o]||0)+1}},372423:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=function(e,t){var n=t.displayName,o=t.propTypes,i=t.defaultProps,s=t.allowFallback,a=void 0!==s&&s,p=function(t,n){return e(t,n)};return Object.assign(p,{displayName:n}),r.default.forwardRef||!a?Object.assign(r.default.forwardRef(p),{propTypes:o,defaultProps:i}):Object.assign((function(e){return p(e,null)}),{displayName:n,propTypes:o,defaultProps:i})};var o,r=(o=n(124852))&&o.__esModule?o:{default:o}},380151:(e,t,n)=>{"use strict";t.Z=function(e,t,n){return 2===arguments.length?l(e,t):l({consumers:e,mapToProps:t},n)};var o=i(n(124852)),r=i(n(372423));function i(e){return e&&e.__esModule?e:{default:e}}function s(){return s=Object.assign||function(e){for(var t=1;t{"use strict";n.d(t,{h_:()=>fe});var o=n(148941),r=n.n(o),i=n(644838),s=n.n(i),a=n(292565),p=n.n(a),l=n(218093),u=n.n(l),c=n(682939),f=n.n(c),d=n(390504),h=n.n(d),m=n(945177),v=n.n(m),g=n(675263),y=n.n(g),b=n(124852),w=n.n(b),E=n(180307),x=n.n(E);function O(e){return Math.max(e.documentElement.offsetHeight||0,e.height||0,e.body.scrollHeight||0,e.body.offsetHeight||0)}var C=n(99981),S=n.n(C);function T(e){return S()(x().findDOMNode(e))}var N=n(553369),M=n.n(N);function _(e){return M()(x().findDOMNode(e))}function k(){return k=Object.assign||function(e){for(var t=1;to.getPositionTopMax()?"bottom"===o.state.affixed?o.updateStateAtBottom():o.setState({affixed:"bottom",position:"absolute",top:null},(function(){o._isMounted&&o.updateStateAtBottom()})):o.updateState("affix","fixed",n)}},o.getPositionTopMax=function(){return O(T(R(R(o))))-s()(x().findDOMNode(R(R(o))))-o.props.offsetBottom},o.updateState=function(e,t,n){if(e!==o.state.affixed||t!==o.state.position||n!==o.state.top){var r="affix"===e?"":e.charAt(0).toUpperCase()+e.substr(1);o.props["onAffix"+r]&&o.props["onAffix"+r](),o.setState({affixed:e,position:t,top:n},(function(){o.props["onAffixed"+r]&&o.props["onAffixed"+r]()}))}},o.updateStateAtBottom=function(){var e=o.getPositionTopMax(),t=f()(x().findDOMNode(R(R(o)))),n=p()(t).top;o.updateState("bottom","absolute",e-n)},o.state={affixed:"top",position:null,top:null},o}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=o.prototype;return i.componentDidMount=function(){var e=this;this._isMounted=!0,this.removeScrollListener=u()(_(this),"scroll",(function(){return e.onWindowScroll()})),this.removeClickListener=u()(T(this),"click",(function(){return e.onDocumentClick()})),this.onUpdate()},i.componentDidUpdate=function(e){e!==this.props&&this.onUpdate()},i.componentWillUnmount=function(){this._isMounted=!1,this.removeClickListener&&this.removeClickListener(),this.removeScrollListener&&this.removeScrollListener()},i.render=function(){var e,t,n=w().Children.only(this.props.children),o=n.props,i=o.className,s=o.style,a=this.state,p=a.affixed,l={position:a.position,top:a.top};return"top"===p?(e=this.props.topClassName,t=this.props.topStyle):"bottom"===p?(e=this.props.bottomClassName,t=this.props.bottomStyle):(e=this.props.affixClassName,t=this.props.affixStyle),w().cloneElement(n,{className:r()(e,i),style:k({},l,t,s)})},o}(w().Component);D.propTypes={offsetTop:y().number,viewportOffsetTop:y().number,offsetBottom:y().number,topClassName:y().string,topStyle:y().object,affixClassName:y().string,affixStyle:y().object,bottomClassName:y().string,bottomStyle:y().object,onAffix:y().func,onAffixed:y().func,onAffixTop:y().func,onAffixedTop:y().func,onAffixBottom:y().func,onAffixedBottom:y().func},D.defaultProps={offsetTop:0,viewportOffsetTop:null,offsetBottom:0};const P=D;var L=n(690621),F=n.n(L);function j(e,t){return null==e?t:(e="function"==typeof e?e():e,x().findDOMNode(e)||null)}function Z(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function A(){return A=Object.assign||function(e){for(var t=1;t=0||(r[n]=e[n]);return r}(t,["autoWidth","viewportOffsetTop","children"]),s=this.state,a=s.offsetTop,p=s.offsetBottom,l=s.width;delete i.container;var u=Math.max(a,o||0),c=this.props,f=c.affixStyle,d=c.bottomStyle;return n&&(f=A({width:l},f),d=A({width:l},d)),w().createElement("div",null,w().createElement("div",{ref:function(t){e.positioner=t}}),w().createElement(P,A({},i,{offsetTop:u,viewportOffsetTop:o,offsetBottom:p,affixStyle:f,bottomStyle:d}),r))},o}(w().Component);B.displayName="AutoAffix",B.propTypes=U,B.defaultProps={viewportOffsetTop:0,autoWidth:!0};var H=n(753465),I=n.n(H),W=n(781629),K=n.n(W),z=n(250139),q=n.n(z),V=n(728853),Y=n.n(V),G=n(850580),X=n(410162),$=n.n(X),J=n(144825),Q=n.n(J),ee=n(507624),te=n.n(ee);function ne(e){var t;return te()(e)||(t=e)&&"body"===t.tagName.toLowerCase()?function(e){var t=S()(e),n=te()(t);return t.body.clientWidthe.clientHeight}var oe=["template","script","style"],re=function(e,t,n){t=[].concat(t),[].forEach.call(e.children,(function(e){var o,r,i;-1===t.indexOf(e)&&(r=(o=e).nodeType,i=o.tagName,1===r&&-1===oe.indexOf(i.toLowerCase()))&&n(e)}))};function ie(e,t){t&&(e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden"))}const se=function(){function e(e){var t=void 0===e?{}:e,n=t.hideSiblingNodes,o=void 0===n||n,r=t.handleContainerOverflow,i=void 0===r||r;this.hideSiblingNodes=o,this.handleContainerOverflow=i,this.modals=[],this.containers=[],this.data=[],this.scrollbarSize=Q()()}var t=e.prototype;return t.isContainerOverflowing=function(e){var t=this.data[this.containerIndexFromModal(e)];return t&&t.overflowing},t.containerIndexFromModal=function(e){return t=this.data,n=function(t){return-1!==t.modals.indexOf(e)},o=-1,t.some((function(e,t){if(n(e))return o=t,!0})),o;var t,n,o},t.setContainerStyle=function(e,t){var n={overflow:"hidden"};e.style={overflow:t.style.overflow,paddingRight:t.style.paddingRight},e.overflowing&&(n.paddingRight=parseInt($()(t,"paddingRight")||0,10)+this.scrollbarSize+"px"),$()(t,n)},t.removeContainerStyle=function(e,t){var n=e.style;Object.keys(n).forEach((function(e){t.style[e]=n[e]}))},t.add=function(e,t,n){var o=this.modals.indexOf(e),r=this.containers.indexOf(t);if(-1!==o)return o;if(o=this.modals.length,this.modals.push(e),this.hideSiblingNodes&&function(e,t){var n=t.root,o=t.backdrop;re(e,[n,o],(function(e){return ie(!0,e)}))}(t,e),-1!==r)return this.data[r].modals.push(e),o;var i={modals:[e],classes:n?n.split(/\s+/):[],overflowing:ne(t)};return this.handleContainerOverflow&&this.setContainerStyle(i,t),i.classes.forEach(G.default.addClass.bind(null,t)),this.containers.push(t),this.data.push(i),o},t.remove=function(e){var t=this.modals.indexOf(e);if(-1!==t){var n=this.containerIndexFromModal(e),o=this.data[n],r=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(t,1),0===o.modals.length)o.classes.forEach(G.default.removeClass.bind(null,r)),this.handleContainerOverflow&&this.removeContainerStyle(o,r),this.hideSiblingNodes&&function(e,t){var n=t.root,o=t.backdrop;re(e,[n,o],(function(e){return ie(!1,e)}))}(r,e),this.containers.splice(n,1),this.data.splice(n,1);else if(this.hideSiblingNodes){var i=o.modals[o.modals.length-1],s=i.backdrop;ie(!1,i.dialog),ie(!1,s)}}},t.isTopModal=function(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e},e}();function ae(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var pe={container:y().oneOfType([F(),y().func]),onContainerResolved:y().func},le=function(e){var t,n;function o(){for(var t,n=arguments.length,o=new Array(n),r=0;r=0||(r[n]=e[n]);return r}(e,["show","container","children","renderDialog","role","transition","backdrop","className","style","onExit","onExiting","onEnter","onEntering","onEntered"]);if(!(t||p&&!this.state.exited))return null;var y=de({role:a,ref:this.setDialogRef,"aria-modal":"dialog"===a||void 0},function(e,t){var n=Object.keys(e),o={};return n.map((function(n){Object.prototype.hasOwnProperty.call(t,n)||(o[n]=e[n])})),o}(g,o.propTypes),{style:c,className:u,tabIndex:"-1"}),b=i?i(y):w().createElement("div",y,w().cloneElement(r,{role:"document"}));return p&&(b=w().createElement(p,{appear:!0,unmountOnExit:!0,in:t,onExit:f,onExiting:d,onExited:this.handleHidden,onEnter:h,onEntering:m,onEntered:v},b)),w().createElement(fe,{container:n,onRendered:this.onPortalRendered},w().createElement(w().Fragment,null,l&&this.renderBackdrop(),b))},o}(w().Component);function ge(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}ve.propTypes={show:y().bool,container:y().oneOfType([F(),y().func]),onShow:y().func,onHide:y().func,backdrop:y().oneOfType([y().bool,y().oneOf(["static"])]),renderDialog:y().func,renderBackdrop:y().func,onEscapeKeyDown:y().func,onBackdropClick:y().func,containerClassName:y().string,keyboard:y().bool,transition:Y(),backdropTransition:Y(),autoFocus:y().bool,enforceFocus:y().bool,restoreFocus:y().bool,onEnter:y().func,onEntering:y().func,onEntered:y().func,onExit:y().func,onExiting:y().func,onExited:y().func,manager:y().object.isRequired},ve.defaultProps={show:!1,role:"dialog",backdrop:!0,keyboard:!0,autoFocus:!0,enforceFocus:!0,restoreFocus:!0,onHide:function(){},manager:me,renderBackdrop:function(e){return w().createElement("div",e)}},ve.Manager=se;var ye=function(){},be=function(e){var t,n;function o(t,n){var o;return(o=e.call(this,t,n)||this).addEventListeners=function(){var e=o.props.event,t=T(ge(ge(o)));o.removeMouseCaptureListener=u()(t,e,o.handleMouseCapture,!0),o.removeMouseListener=u()(t,e,o.handleMouse),o.removeKeyupListener=u()(t,"keyup",o.handleKeyUp),"ontouchstart"in t.documentElement&&(o.mobileSafariHackListeners=[].slice.call(document.body.children).map((function(e){return u()(e,"mousemove",ye)})))},o.removeEventListeners=function(){o.removeMouseCaptureListener&&o.removeMouseCaptureListener(),o.removeMouseListener&&o.removeMouseListener(),o.removeKeyupListener&&o.removeKeyupListener(),o.mobileSafariHackListeners&&o.mobileSafariHackListeners.forEach((function(e){return e()}))},o.handleMouseCapture=function(e){var t;o.preventMouseRootClose=!!((t=e).metaKey||t.altKey||t.ctrlKey||t.shiftKey)||!function(e){return 0===e.button}(e)||K()(x().findDOMNode(ge(ge(o))),e.target)},o.handleMouse=function(e){!o.preventMouseRootClose&&o.props.onRootClose&&o.props.onRootClose(e)},o.handleKeyUp=function(e){27===e.keyCode&&o.props.onRootClose&&o.props.onRootClose(e)},o.preventMouseRootClose=!1,o}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=o.prototype;return r.componentDidMount=function(){this.props.disabled||this.addEventListeners()},r.componentDidUpdate=function(e){!this.props.disabled&&e.disabled?this.addEventListeners():this.props.disabled&&!e.disabled&&this.removeEventListeners()},r.componentWillUnmount=function(){this.props.disabled||this.removeEventListeners()},r.render=function(){return this.props.children},o}(w().Component);be.displayName="RootCloseWrapper",be.propTypes={onRootClose:y().func,children:y().element,disabled:y().bool,event:y().oneOf(["click","mousedown"])},be.defaultProps={event:"click"};const we=be;var Ee=n(419756),xe=n(722122),Oe=n(393552),Ce=n(663349),Se=n(584121),Te=n(110251),Ne=n.n(Te),Me="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,_e=function(){for(var e=["Edge","Trident","Firefox"],t=0;t=0)return 1;return 0}(),ke=Me&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),_e))}};function Re(e){return e&&"[object Function]"==={}.toString.call(e)}function De(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function Pe(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function Le(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=De(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/(auto|scroll|overlay)/.test(n+r+o)?e:Le(Pe(e))}function Fe(e){return e&&e.referenceNode?e.referenceNode:e}var je=Me&&!(!window.MSInputMethodContext||!document.documentMode),Ze=Me&&/MSIE 10/.test(navigator.userAgent);function Ae(e){return 11===e?je:10===e?Ze:je||Ze}function Ue(e){if(!e)return document.documentElement;for(var t=Ae(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var o=n&&n.nodeName;return o&&"BODY"!==o&&"HTML"!==o?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===De(n,"position")?Ue(n):n:e?e.ownerDocument.documentElement:document.documentElement}function Be(e){return null!==e.parentNode?Be(e.parentNode):e}function He(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,o=n?e:t,r=n?t:e,i=document.createRange();i.setStart(o,0),i.setEnd(r,0);var s,a,p=i.commonAncestorContainer;if(e!==p&&t!==p||o.contains(r))return"BODY"===(a=(s=p).nodeName)||"HTML"!==a&&Ue(s.firstElementChild)!==s?Ue(p):p;var l=Be(e);return l.host?He(l.host,t):He(e,Be(t).host)}function Ie(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var o=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||o)[t]}return e[t]}function We(e,t){var n="x"===t?"Left":"Top",o="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+o+"Width"])}function Ke(e,t,n,o){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Ae(10)?parseInt(n["offset"+e])+parseInt(o["margin"+("Height"===e?"Top":"Left")])+parseInt(o["margin"+("Height"===e?"Bottom":"Right")]):0)}function ze(e){var t=e.body,n=e.documentElement,o=Ae(10)&&getComputedStyle(n);return{height:Ke("Height",t,n,o),width:Ke("Width",t,n,o)}}var qe=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],o=Ae(10),r="HTML"===t.nodeName,i=Xe(e),s=Xe(t),a=Le(e),p=De(t),l=parseFloat(p.borderTopWidth),u=parseFloat(p.borderLeftWidth);n&&r&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var c=Ge({top:i.top-s.top-l,left:i.left-s.left-u,width:i.width,height:i.height});if(c.marginTop=0,c.marginLeft=0,!o&&r){var f=parseFloat(p.marginTop),d=parseFloat(p.marginLeft);c.top-=l-f,c.bottom-=l-f,c.left-=u-d,c.right-=u-d,c.marginTop=f,c.marginLeft=d}return(o&&!n?t.contains(a):t===a&&"BODY"!==a.nodeName)&&(c=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=Ie(t,"top"),r=Ie(t,"left"),i=n?-1:1;return e.top+=o*i,e.bottom+=o*i,e.left+=r*i,e.right+=r*i,e}(c,t)),c}function Je(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===De(e,"position"))return!0;var n=Pe(e);return!!n&&Je(n)}function Qe(e){if(!e||!e.parentElement||Ae())return document.documentElement;for(var t=e.parentElement;t&&"none"===De(t,"transform");)t=t.parentElement;return t||document.documentElement}function et(e,t,n,o){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},s=r?Qe(e):He(e,Fe(t));if("viewport"===o)i=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,o=$e(e,n),r=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),s=t?0:Ie(n),a=t?0:Ie(n,"left");return Ge({top:s-o.top+o.marginTop,left:a-o.left+o.marginLeft,width:r,height:i})}(s,r);else{var a=void 0;"scrollParent"===o?"BODY"===(a=Le(Pe(t))).nodeName&&(a=e.ownerDocument.documentElement):a="window"===o?e.ownerDocument.documentElement:o;var p=$e(a,s,r);if("HTML"!==a.nodeName||Je(s))i=p;else{var l=ze(e.ownerDocument),u=l.height,c=l.width;i.top+=p.top-p.marginTop,i.bottom=u+p.top,i.left+=p.left-p.marginLeft,i.right=c+p.left}}var f="number"==typeof(n=n||0);return i.left+=f?n:n.left||0,i.top+=f?n:n.top||0,i.right-=f?n:n.right||0,i.bottom-=f?n:n.bottom||0,i}function tt(e,t,n,o,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var s=et(n,o,i,r),a={top:{width:s.width,height:t.top-s.top},right:{width:s.right-t.right,height:s.height},bottom:{width:s.width,height:s.bottom-t.bottom},left:{width:t.left-s.left,height:s.height}},p=Object.keys(a).map((function(e){return Ye({key:e},a[e],{area:(t=a[e],t.width*t.height)});var t})).sort((function(e,t){return t.area-e.area})),l=p.filter((function(e){var t=e.width,o=e.height;return t>=n.clientWidth&&o>=n.clientHeight})),u=l.length>0?l[0].key:p[0].key,c=e.split("-")[1];return u+(c?"-"+c:"")}function nt(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return $e(n,o?Qe(t):He(t,Fe(n)),o)}function ot(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),o=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+o,height:e.offsetHeight+n}}function rt(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function it(e,t,n){n=n.split("-")[0];var o=ot(e),r={width:o.width,height:o.height},i=-1!==["right","left"].indexOf(n),s=i?"top":"left",a=i?"left":"top",p=i?"height":"width",l=i?"width":"height";return r[s]=t[s]+t[p]/2-o[p]/2,r[a]=n===a?t[a]-o[l]:t[rt(a)],r}function st(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function at(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var o=st(e,(function(e){return e[t]===n}));return e.indexOf(o)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&Re(n)&&(t.offsets.popper=Ge(t.offsets.popper),t.offsets.reference=Ge(t.offsets.reference),t=n(t,e))})),t}function pt(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=nt(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=tt(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=it(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=at(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function lt(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function ut(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),o=0;o1&&void 0!==arguments[1]&&arguments[1],n=xt.indexOf(e),o=xt.slice(n+1).concat(xt.slice(0,n));return t?o.reverse():o}var Ct={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],o=t.split("-")[1];if(o){var r=e.offsets,i=r.reference,s=r.popper,a=-1!==["bottom","top"].indexOf(n),p=a?"left":"top",l=a?"width":"height",u={start:Ve({},p,i[p]),end:Ve({},p,i[p]+i[l]-s[l])};e.offsets.popper=Ye({},s,u[o])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n,o=t.offset,r=e.placement,i=e.offsets,s=i.popper,a=i.reference,p=r.split("-")[0];return n=gt(+o)?[+o,0]:function(e,t,n,o){var r=[0,0],i=-1!==["right","left"].indexOf(o),s=e.split(/(\+|\-)/).map((function(e){return e.trim()})),a=s.indexOf(st(s,(function(e){return-1!==e.search(/,|\s/)})));s[a]&&-1===s[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var p=/\s*,\s*|\s+/,l=-1!==a?[s.slice(0,a).concat([s[a].split(p)[0]]),[s[a].split(p)[1]].concat(s.slice(a+1))]:[s];return(l=l.map((function(e,o){var r=(1===o?!i:i)?"height":"width",s=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,s=!0,e):s?(e[e.length-1]+=t,s=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,o){var r=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+r[1],s=r[2];return i?0===s.indexOf("%")?Ge("%p"===s?n:o)[t]/100*i:"vh"===s||"vw"===s?("vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i:i:e}(e,r,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,o){gt(n)&&(r[t]+=n*("-"===e[o-1]?-1:1))}))})),r}(o,s,a,p),"left"===p?(s.top+=n[0],s.left-=n[1]):"right"===p?(s.top+=n[0],s.left+=n[1]):"top"===p?(s.left+=n[0],s.top-=n[1]):"bottom"===p&&(s.left+=n[0],s.top+=n[1]),e.popper=s,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||Ue(e.instance.popper);e.instance.reference===n&&(n=Ue(n));var o=ut("transform"),r=e.instance.popper.style,i=r.top,s=r.left,a=r[o];r.top="",r.left="",r[o]="";var p=et(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);r.top=i,r.left=s,r[o]=a,t.boundaries=p;var l=t.priority,u=e.offsets.popper,c={primary:function(e){var n=u[e];return u[e]p[e]&&!t.escapeWithReference&&(o=Math.min(u[n],p[e]-("right"===e?u.width:u.height))),Ve({},n,o)}};return l.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=Ye({},u,c[t](e))})),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,o=t.reference,r=e.placement.split("-")[0],i=Math.floor,s=-1!==["top","bottom"].indexOf(r),a=s?"right":"bottom",p=s?"left":"top",l=s?"width":"height";return n[a]i(o[a])&&(e.offsets.popper[p]=i(o[a])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!wt(e.instance.modifiers,"arrow","keepTogether"))return e;var o=t.element;if("string"==typeof o){if(!(o=e.instance.popper.querySelector(o)))return e}else if(!e.instance.popper.contains(o))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var r=e.placement.split("-")[0],i=e.offsets,s=i.popper,a=i.reference,p=-1!==["left","right"].indexOf(r),l=p?"height":"width",u=p?"Top":"Left",c=u.toLowerCase(),f=p?"left":"top",d=p?"bottom":"right",h=ot(o)[l];a[d]-hs[d]&&(e.offsets.popper[c]+=a[c]+h-s[d]),e.offsets.popper=Ge(e.offsets.popper);var m=a[c]+a[l]/2-h/2,v=De(e.instance.popper),g=parseFloat(v["margin"+u]),y=parseFloat(v["border"+u+"Width"]),b=m-e.offsets.popper[c]-g-y;return b=Math.max(Math.min(s[l]-h,b),0),e.arrowElement=o,e.offsets.arrow=(Ve(n={},c,Math.round(b)),Ve(n,f,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(lt(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=et(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),o=e.placement.split("-")[0],r=rt(o),i=e.placement.split("-")[1]||"",s=[];switch(t.behavior){case"flip":s=[o,r];break;case"clockwise":s=Ot(o);break;case"counterclockwise":s=Ot(o,!0);break;default:s=t.behavior}return s.forEach((function(a,p){if(o!==a||s.length===p+1)return e;o=e.placement.split("-")[0],r=rt(o);var l=e.offsets.popper,u=e.offsets.reference,c=Math.floor,f="left"===o&&c(l.right)>c(u.left)||"right"===o&&c(l.left)c(u.top)||"bottom"===o&&c(l.top)c(n.right),m=c(l.top)c(n.bottom),g="left"===o&&d||"right"===o&&h||"top"===o&&m||"bottom"===o&&v,y=-1!==["top","bottom"].indexOf(o),b=!!t.flipVariations&&(y&&"start"===i&&d||y&&"end"===i&&h||!y&&"start"===i&&m||!y&&"end"===i&&v),w=!!t.flipVariationsByContent&&(y&&"start"===i&&h||y&&"end"===i&&d||!y&&"start"===i&&v||!y&&"end"===i&&m),E=b||w;(f||g||E)&&(e.flipped=!0,(f||g)&&(o=s[p+1]),E&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=o+(i?"-"+i:""),e.offsets.popper=Ye({},e.offsets.popper,it(e.instance.popper,e.offsets.reference,e.placement)),e=at(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],o=e.offsets,r=o.popper,i=o.reference,s=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return r[s?"left":"top"]=i[n]-(a?r[s?"width":"height"]:0),e.placement=rt(t),e.offsets.popper=Ge(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!wt(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=st(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=ke(this.update.bind(this)),this.options=Ye({},e.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(Ye({},e.Defaults.modifiers,r.modifiers)).forEach((function(t){o.options.modifiers[t]=Ye({},e.Defaults.modifiers[t]||{},r.modifiers?r.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return Ye({name:e},o.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&Re(e.onLoad)&&e.onLoad(o.reference,o.popper,o.options,e,o.state)})),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return qe(e,[{key:"update",value:function(){return pt.call(this)}},{key:"destroy",value:function(){return ct.call(this)}},{key:"enableEventListeners",value:function(){return mt.call(this)}},{key:"disableEventListeners",value:function(){return vt.call(this)}}]),e}();Tt.Utils=("undefined"!=typeof window?window:n.g).PopperUtils,Tt.placements=Et,Tt.Defaults=St;const Nt=Tt;var Mt=n(988740),_t=n.n(Mt),kt=_t()(),Rt=_t()(),Dt=function(e){function t(){for(var t,n=arguments.length,o=new Array(n),r=0;r1?t-1:0),o=1;o=0||(r[n]=e[n]);return r}function It(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Wt=function(e){var t,n;function o(t,n){var o;return(o=e.call(this,t,n)||this).handleHidden=function(){var e;o.setState({exited:!0}),o.props.onExited&&(e=o.props).onExited.apply(e,arguments)},o.state={exited:!t.show},o.onHiddenListener=o.handleHidden.bind(It(It(o))),o._lastTarget=null,o}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,o.getDerivedStateFromProps=function(e){return e.show?{exited:!1}:e.transition?null:{exited:!0}};var r=o.prototype;return r.componentDidMount=function(){this.setState({target:this.getTarget()})},r.componentDidUpdate=function(e){if(this.props!==e){var t=this.getTarget();t!==this.state.target&&this.setState({target:t})}},r.getTarget=function(){var e=this.props.target;return(e="function"==typeof e?e():e)&&x().findDOMNode(e)||null},r.render=function(){var e=this,t=this.props,n=(t.target,t.container),o=t.containerPadding,r=t.placement,i=t.rootClose,s=t.children,a=t.flip,p=t.popperConfig,l=void 0===p?{}:p,u=t.transition,c=Ht(t,["target","container","containerPadding","placement","rootClose","children","flip","popperConfig","transition"]),f=this.state.target;if(!(c.show||u&&!this.state.exited))return null;var d=s,h=l.modifiers,m=void 0===h?{}:h,v=Bt({},l,{placement:r,referenceElement:f,enableEvents:c.show,modifiers:Bt({},m,{preventOverflow:Bt({padding:o||5},m.preventOverflow),flip:Bt({enabled:!!a},m.preventOverflow)})});return d=w().createElement(At,v,(function(t){var n=t.arrowProps,o=t.style,i=t.ref,s=Ht(t,["arrowProps","style","ref"]);e.popper=s;var a=e.props.children(Bt({},s,{placement:s.placement||r,show:c.show,arrowProps:n,props:{ref:i,style:o}}));if(u){var p=c.onExit,l=c.onExiting,f=c.onEnter,d=c.onEntering,h=c.onEntered;a=w().createElement(u,{in:c.show,appear:!0,onExit:p,onExiting:l,onExited:e.onHiddenListener,onEnter:f,onEntering:d,onEntered:h},a)}return a})),i&&(d=w().createElement(we,{onRootClose:c.onHide,event:c.rootCloseEvent,disabled:c.rootCloseDisabled},d)),w().createElement(fe,{container:n},d)},o}(w().Component);Wt.propTypes=Bt({},fe.propTypes,{show:y().bool,placement:y().oneOf(Zt),container:y().oneOfType([F(),y().func]),flip:y().bool,children:y().func.isRequired,popperConfig:y().object,rootClose:y().bool,rootCloseEvent:we.propTypes.event,rootCloseDisabled:we.propTypes.disabled,onHide:function(e){var t=y().func;e.rootClose&&(t=t.isRequired);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r=0||(r[n]=e[n]);return r}(t,["ref","style"]);return e.scheduleUpdate=r.scheduleUpdate,e.props.children(tn({},r,m,{props:tn({},h,{ref:n,style:o})}))}))):d=this.props.children(tn({},m,{props:h})),d&&w().createElement(we,{disabled:!n,event:l,onRootClose:this.handleClose},d)},o}(w().Component);nn.displayName="ReactOverlaysDropdownMenu",nn.propTypes={children:y().func.isRequired,show:y().bool,alignEnd:y().bool,flip:y().bool,usePopper:y().oneOf([!0,!1]),popperConfig:y().object,rootCloseEvent:y().string,onToggle:y().func,menuRef:y().func,drop:y().string,toggleNode:y().any},nn.defaultProps={usePopper:!0};const on=(0,en.Z)(Qt,(function(e,t){var n=e.show,o=e.alignEnd,r=e.toggle;return{drop:e.drop,menuRef:e.menuRef,toggleNode:e.toggleNode,onToggle:r,show:null==n?t.show:n,alignEnd:null==o?t.alignEnd:o}}),nn);var rn={children:y().func.isRequired};function sn(e){var t=e.children;return w().createElement(Qt.Consumer,null,(function(e){var n=e.show,o=e.toggle,r=e.toggleRef;return t({show:n,toggle:o,props:{ref:r,"aria-haspopup":!0,"aria-expanded":!!n}})}))}sn.displayName="ReactOverlaysDropdownToggle",sn.propTypes=rn;const an=sn;function pn(){return pn=Object.assign||function(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,["children"]).onToggle,this.menu&&this.state.lastShow&&!this.props.show&&(this._focusInDropdown=this.menu.contains(document.activeElement)),w().createElement(Qt.Provider,{value:this.state.context},w().createElement(Dt,null,t({props:{onKeyDown:this.handleKeyDown}})))},o}(w().Component);un.displayName="ReactOverlaysDropdown",un.propTypes=ln,un.defaultProps={itemSelector:"* > *"};var cn=function e(t,n,o){void 0===o&&(o=[]);var r,i=t.displayName||t.name||"Component",s=!!(r=t)&&("function"!=typeof r||r.prototype&&r.prototype.isReactComponent),a=Object.keys(n),p=a.map(Jt);!s&&o.length&&Gt()(!1);var l=function(e){function r(){for(var t,r=arguments.length,i=new Array(r),s=0;s1?i-1:0),a=1;a{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e=[],t=0;t{"use strict";n.r(e),n.d(e,{default:()=>Y});var o=n(124852),r=n.n(o),a=n(867076),i=n(192579),l=n(993451),c=(n(707169),n(909041)),s=n(967134),u=n(675263),p=n.n(u),d=n(294184),f=n.n(d);function m(t){return m="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},m(t)}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){for(var n=0;n0&&(l=T),null!=r&&r.attributes["data-geostory-interaction-name"]&&(l=r.attributes["data-geostory-interaction-name"]),t.setState({showModal:!0,linkTarget:r&&r.target||"",linkTargetOption:r&&r.targetOption||i,linkTitle:r&&r.title||a,attributes:r&&r.attributes||{},currentSelectOption:l})})),E(w(t),"forceExpandAndShowModal",(function(){var e=t.props,n=e.doExpand,o=e.currentState,r=o.link,a=o.selectionText,i=t.state.linkTargetOption;n();var l="Select link target";null!=r&&r.target&&r.target.length>0&&(l=T),null!=r&&r.attributes["data-geostory-interaction-name"]&&(l=r.attributes["data-geostory-interaction-name"]),t.setState({showModal:!0,linkTarget:r&&r.target,linkTargetOption:r&&r.targetOption||i,linkTitle:r&&r.title||a,attributes:r&&r.attributes||{},currentSelectOption:l})})),t}return b(n,[{key:"componentDidUpdate",value:function(t){t.expanded&&!this.props.expanded&&this.setState({showModal:!1,linkTarget:"",linkTitle:"",attributes:{},linkTargetOption:this.props.config.defaultTargetOption,currentSelectOption:"Select link target"})}},{key:"renderAddLinkModal",value:function(){var t=this.props,e=t.config.popupClassName,n=t.doCollapse,o=t.translations,a=t.availableStorySections,i=this.state,l=i.linkTitle,c=i.linkTarget,u=i.linkTargetOption,p=i.currentSelectOption;return r().createElement("div",{className:f()("rdw-link-modal",e),onClick:s.stopPropagation},r().createElement("label",{className:"rdw-link-modal-label",htmlFor:"linkTitle"},o["components.controls.link.linkTitle"]),r().createElement("input",{id:"linkTitle",className:"rdw-link-modal-input",onChange:this.updateValue,onBlur:this.updateValue,name:"linkTitle",value:l}),r().createElement("label",{className:"rdw-link-modal-label",htmlFor:"linkTarget"},o["components.controls.link.linkTarget"]),r().createElement(C,{externalLinkOption:T,currentSelectOption:p,onSelectionChange:this.onSelectionChange,availableStorySections:a}),p===T&&r().createElement(r().Fragment,null,r().createElement("input",{id:"linkTarget",className:"rdw-link-modal-input",onChange:this.updateValue,onBlur:this.updateValue,name:"linkTarget",value:c}),r().createElement("label",{className:"rdw-link-modal-target-option",htmlFor:"openLinkInNewWindow"},r().createElement("input",{id:"openLinkInNewWindow",type:"checkbox",defaultChecked:"_blank"===u,value:"_blank",onChange:this.updateTargetOption}),r().createElement("span",null,o["components.controls.link.linkTargetOption"]))),r().createElement("span",{className:"rdw-link-modal-buttonsection"},r().createElement("button",{className:"rdw-link-modal-btn",onClick:this.addLink,disabled:!c||!l},o["generic.add"]),r().createElement("button",{className:"rdw-link-modal-btn",onClick:n},o["generic.cancel"])))}},{key:"renderInFlatList",value:function(){var t=this.props,e=t.config,n=e.options,o=e.link,a=e.unlink,i=e.className,l=t.currentState,c=t.expanded,u=t.translations,p=this.state.showModal;return r().createElement("div",{className:f()("rdw-link-wrapper",i),"aria-label":"rdw-link-control"},n.indexOf("link")>=0&&r().createElement(s.Option,{value:"unordered-list-item",className:f()(o.className),onClick:this.signalExpandShowModal,"aria-haspopup":"true","aria-expanded":p,title:o.title||u["components.controls.link.link"]},r().createElement("img",{src:o.icon,alt:""})),n.indexOf("unlink")>=0&&r().createElement(s.Option,{disabled:!l.link,value:"ordered-list-item",className:f()(a.className),onClick:this.removeLink,title:a.title||u["components.controls.link.unlink"]},r().createElement("img",{src:a.icon,alt:""})),c&&p?this.renderAddLinkModal():void 0)}},{key:"renderInDropDown",value:function(){var t=this.props,e=t.expanded,n=t.onExpandEvent,o=t.doCollapse,a=t.doExpand,i=t.onChange,l=t.config,c=t.currentState,u=t.translations,p=l.options,d=l.link,m=l.unlink,y=l.className,g=l.dropdownClassName,b=l.title,v=this.state.showModal;return r().createElement("div",{className:"rdw-link-wrapper","aria-haspopup":"true","aria-label":"rdw-link-control","aria-expanded":e,title:b},r().createElement(s.Dropdown,{className:f()("rdw-link-dropdown",y),optionWrapperClassName:f()(g),onChange:i,expanded:e&&!v,doExpand:a,doCollapse:o,onExpandEvent:n},r().createElement("img",{src:(0,s.getFirstIcon)(l),alt:""}),p.indexOf("link")>=0&&r().createElement(s.DropdownOption,{onClick:this.forceExpandAndShowModal,className:f()("rdw-link-dropdownoption",d.className),title:d.title||u["components.controls.link.link"]},r().createElement("img",{src:d.icon,alt:""})),p.indexOf("unlink")>=0&&r().createElement(s.DropdownOption,{onClick:this.removeLink,disabled:!c.link,className:f()("rdw-link-dropdownoption",m.className),title:m.title||u["components.controls.link.unlink"]},r().createElement("img",{src:m.icon,alt:""}))),e&&v?this.renderAddLinkModal():void 0)}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}]),n}(o.Component);E(N,"propTypes",{expanded:p().bool,doExpand:p().func,doCollapse:p().func,onExpandEvent:p().func,config:p().object,onChange:p().func,currentState:p().object,translations:p().object,modalHandler:p().any});const j=N;function P(t){return P="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},P(t)}function x(t,e){for(var n=0;n').concat(e,"");if("LINK"===t.type){var n=t.data.targetOption||"_self",o=t.data.attributes;return o&&o["data-geostory-interaction-type"]?'").concat(e,""):'').concat(e,"")}if("IMAGE"===t.type){var r=t.data.alignment,a=r&&"none"!==r?"float: ".concat(r,";"):"display: block; margin: 0 auto 0 auto;";return'').concat(t.data.alt,'')}return"EMBEDDED_LINK"===t.type?''):e};function q(t){return q="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},q(t)}function z(){return z=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,o=new Array(e);n0?n:i.Km,className:void 0,component:void 0,dropdownClassName:void 0},link:{inDropdown:!1,className:void 0,component:void 0,popupClassName:void 0,dropdownClassName:void 0,showOpenOptionOnHover:!0,defaultTargetOption:"_self",options:["link","unlink"],link:{icon:void 0,className:void 0},unlink:{icon:void 0,className:void 0},linkCallback:void 0},blockType:{inDropdown:!0,options:["Normal","H1","H2","H3","H4","H5","H6","Blockquote","Code"],className:void 0,component:void 0,dropdownClassName:void 0},inline:{options:["bold","italic","underline","strikethrough","monospace"],bold:{className:"".concat(c,"-toolbar-btn")},italic:{className:"".concat(c,"-toolbar-btn")},underline:{className:"".concat(c,"-toolbar-btn")},strikethrough:{className:"".concat(c,"-toolbar-btn")},code:{className:"".concat(c,"-toolbar-btn")}},textAlign:{left:{className:"".concat(c,"-toolbar-btn")},center:{className:"".concat(c,"-toolbar-btn")},right:{className:"".concat(c,"-toolbar-btn")},justify:{className:"".concat(c,"-toolbar-btn")}},colorPicker:{className:"".concat(c,"-toolbar-btn")},remove:{className:"".concat(c,"-toolbar-btn")}},u),toolbarClassName:"".concat(c,"-toolbar"),wrapperClassName:"".concat(c,"-wrapper"),editorClassName:"".concat(c,"-main")}})),(0,a.renderComponent)(s.Editor)),Q=(0,a.compose)((0,a.lifecycle)({componentWillUnmount:function(){var t=this.props,e=t.editorState,n=t.save;(void 0===n?function(){}:n)(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(t){var n=1!==(0,c.convertToRaw)(t.getCurrentContent()).blocks.length||(0,c.convertToRaw)(t.getCurrentContent()).blocks[0].text,o=F()((0,c.convertToRaw)(t.getCurrentContent()),null,null,V);return n?o:e}return e}(e,i.gg))}}),(0,a.withHandlers)({onBlur:function(t){var e=t.toggleEditing,n=void 0===e?function(){}:e;return function(){n(!1)}}}),(0,a.withProps)((function(t){var e=t.sections;return{availableStorySections:(void 0===e?[]:e).reduce((function(t,e){var n,o=[];return[i.ID.IMMERSIVE,i.ID.CAROUSEL].includes(e.type)?e.contents.forEach((function(t){o.push(t)})):o.push(e),[].concat(function(t){if(Array.isArray(t))return G(t)}(n=t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||function(t,e){if(t){if("string"==typeof t)return G(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?G(t,e):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o)}),[])}})),(0,a.withProps)((function(t){var e=t.availableStorySections,n=void 0===e?[]:e;return{toolbar:{link:{inDropdown:!1,className:void 0,component:function(t){return r().createElement(j,z({},t,{availableStorySections:n}))},popupClassName:void 0,dropdownClassName:void 0,showOpenOptionOnHover:!0,defaultTargetOption:"_self",options:["link","unlink"],link:{icon:void 0,className:void 0},unlink:{icon:void 0,className:void 0},linkCallback:void 0,getLinkDecorator:H}}}})),J);const X=(0,a.compose)((0,a.withState)("contentEditing","setContentEditing",!1),(0,a.withState)("editorState","onEditorStateChange"),(0,a.withHandlers)({toggleEditing:function(t){var e=t.bubblingTextEditing,n=void 0===e?function(){}:e,o=t.sectionType,r=t.onEditorStateChange,a=void 0===r?function(){}:r,l=t.setContentEditing,s=void 0===l?function(){}:l;return function(t,e){if(t){var r=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=U()(t,null,W),n=c.ContentState.createFromBlockArray(e.contentBlocks);return c.EditorState.createWithContent(n)}(e);if(o===i.ID.TITLE&&"unstyled"===c.RichUtils.getCurrentBlockType(r)){var l=r.getCurrentContent();l=c.Modifier.setBlockType(l,c.EditorState.createWithContent(l).getSelection(),"header-one"),r=c.EditorState.createWithContent(l)}a(r),s(!0),n(!0)}else s(!1),n(!1)}}}),(0,a.branch)((function(t){return!!t.contentEditing}),Q)),Y=(0,a.compose)((0,a.withHandlers)({save:function(t){var e=t.update,n=void 0===e?function(){}:e;return function(t){return n("html",t)}}}),(0,a.branch)((function(t){return t.mode===i.nl.EDIT}),X),(0,a.compose)((0,a.withPropsOnChange)(["sectionType"],(function(t){var e=t.sectionType;return{placeholder:i.ID.TITLE===e?"geostory.builder.defaults.htmlTitlePlaceholder":"geostory.builder.defaults.htmlPlaceholder",placeholderTag:i.ID.TITLE===e?"h1":"p"}})),(0,l.Z)("placeholder")))((function(t){var e=t.placeholder,n=t.placeholderTag,o=void 0===n?"p":n,a=t.id,l=t.toggleEditing,c=void 0===l?function(){}:l,s=t.html,u=t.mode;return r().createElement("div",{className:"ms-text-wrapper"},s!==i.gg&&r().createElement("div",{id:a,onClick:function(){return c(!0,s)},dangerouslySetInnerHTML:{__html:s}}),(!s||s===i.gg)&&u===i.nl.EDIT&&r().createElement("div",{className:"ms-text-placeholder",id:"placeholder"+a,onClick:function(){return c(!0,s===i.gg?"":s)},dangerouslySetInnerHTML:{__html:"<".concat(o,">").concat(e,"")}}))}))}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/57588.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/57588.affd309bf2aa3f38d3a0.chunk.js deleted file mode 100644 index e7a28e3c71..0000000000 --- a/geonode_mapstore_client/static/mapstore/dist/js/57588.affd309bf2aa3f38d3a0.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[57588],{957588:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>tt});var o=n(124852),r=n.n(o),a=n(867076),i=n(192579),l=n(993451),c=(n(707169),n(909041)),s=n(967134),u=n(675263),p=n.n(u),d=n(294184),f=n.n(d);function m(t){return m="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},m(t)}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){for(var n=0;n0&&(l=T),null!=r&&r.attributes["data-geostory-interaction-name"]&&(l=r.attributes["data-geostory-interaction-name"]),t.setState({showModal:!0,linkTarget:r&&r.target||"",linkTargetOption:r&&r.targetOption||i,linkTitle:r&&r.title||a,attributes:r&&r.attributes||{},currentSelectOption:l})})),E(w(t),"forceExpandAndShowModal",(function(){var e=t.props,n=e.doExpand,o=e.currentState,r=o.link,a=o.selectionText,i=t.state.linkTargetOption;n();var l="Select link target";null!=r&&r.target&&r.target.length>0&&(l=T),null!=r&&r.attributes["data-geostory-interaction-name"]&&(l=r.attributes["data-geostory-interaction-name"]),t.setState({showModal:!0,linkTarget:r&&r.target,linkTargetOption:r&&r.targetOption||i,linkTitle:r&&r.title||a,attributes:r&&r.attributes||{},currentSelectOption:l})})),t}return b(n,[{key:"componentDidUpdate",value:function(t){t.expanded&&!this.props.expanded&&this.setState({showModal:!1,linkTarget:"",linkTitle:"",attributes:{},linkTargetOption:this.props.config.defaultTargetOption,currentSelectOption:"Select link target"})}},{key:"renderAddLinkModal",value:function(){var t=this.props,e=t.config.popupClassName,n=t.doCollapse,o=t.translations,a=t.availableStorySections,i=this.state,l=i.linkTitle,c=i.linkTarget,u=i.linkTargetOption,p=i.currentSelectOption;return r().createElement("div",{className:f()("rdw-link-modal",e),onClick:s.stopPropagation},r().createElement("label",{className:"rdw-link-modal-label",htmlFor:"linkTitle"},o["components.controls.link.linkTitle"]),r().createElement("input",{id:"linkTitle",className:"rdw-link-modal-input",onChange:this.updateValue,onBlur:this.updateValue,name:"linkTitle",value:l}),r().createElement("label",{className:"rdw-link-modal-label",htmlFor:"linkTarget"},o["components.controls.link.linkTarget"]),r().createElement(C,{externalLinkOption:T,currentSelectOption:p,onSelectionChange:this.onSelectionChange,availableStorySections:a}),p===T&&r().createElement(r().Fragment,null,r().createElement("input",{id:"linkTarget",className:"rdw-link-modal-input",onChange:this.updateValue,onBlur:this.updateValue,name:"linkTarget",value:c}),r().createElement("label",{className:"rdw-link-modal-target-option",htmlFor:"openLinkInNewWindow"},r().createElement("input",{id:"openLinkInNewWindow",type:"checkbox",defaultChecked:"_blank"===u,value:"_blank",onChange:this.updateTargetOption}),r().createElement("span",null,o["components.controls.link.linkTargetOption"]))),r().createElement("span",{className:"rdw-link-modal-buttonsection"},r().createElement("button",{className:"rdw-link-modal-btn",onClick:this.addLink,disabled:!c||!l},o["generic.add"]),r().createElement("button",{className:"rdw-link-modal-btn",onClick:n},o["generic.cancel"])))}},{key:"renderInFlatList",value:function(){var t=this.props,e=t.config,n=e.options,o=e.link,a=e.unlink,i=e.className,l=t.currentState,c=t.expanded,u=t.translations,p=this.state.showModal;return r().createElement("div",{className:f()("rdw-link-wrapper",i),"aria-label":"rdw-link-control"},n.indexOf("link")>=0&&r().createElement(s.Option,{value:"unordered-list-item",className:f()(o.className),onClick:this.signalExpandShowModal,"aria-haspopup":"true","aria-expanded":p,title:o.title||u["components.controls.link.link"]},r().createElement("img",{src:o.icon,alt:""})),n.indexOf("unlink")>=0&&r().createElement(s.Option,{disabled:!l.link,value:"ordered-list-item",className:f()(a.className),onClick:this.removeLink,title:a.title||u["components.controls.link.unlink"]},r().createElement("img",{src:a.icon,alt:""})),c&&p?this.renderAddLinkModal():void 0)}},{key:"renderInDropDown",value:function(){var t=this.props,e=t.expanded,n=t.onExpandEvent,o=t.doCollapse,a=t.doExpand,i=t.onChange,l=t.config,c=t.currentState,u=t.translations,p=l.options,d=l.link,m=l.unlink,y=l.className,g=l.dropdownClassName,b=l.title,v=this.state.showModal;return r().createElement("div",{className:"rdw-link-wrapper","aria-haspopup":"true","aria-label":"rdw-link-control","aria-expanded":e,title:b},r().createElement(s.Dropdown,{className:f()("rdw-link-dropdown",y),optionWrapperClassName:f()(g),onChange:i,expanded:e&&!v,doExpand:a,doCollapse:o,onExpandEvent:n},r().createElement("img",{src:(0,s.getFirstIcon)(l),alt:""}),p.indexOf("link")>=0&&r().createElement(s.DropdownOption,{onClick:this.forceExpandAndShowModal,className:f()("rdw-link-dropdownoption",d.className),title:d.title||u["components.controls.link.link"]},r().createElement("img",{src:d.icon,alt:""})),p.indexOf("unlink")>=0&&r().createElement(s.DropdownOption,{onClick:this.removeLink,disabled:!c.link,className:f()("rdw-link-dropdownoption",m.className),title:m.title||u["components.controls.link.unlink"]},r().createElement("img",{src:m.icon,alt:""}))),e&&v?this.renderAddLinkModal():void 0)}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}]),n}(o.Component);E(N,"propTypes",{expanded:p().bool,doExpand:p().func,doCollapse:p().func,onExpandEvent:p().func,config:p().object,onChange:p().func,currentState:p().object,translations:p().object,modalHandler:p().any});const j=N;function P(t){return P="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},P(t)}function x(t,e){for(var n=0;n').concat(e,"");if("LINK"===t.type){var n=t.data.targetOption||"_self",o=t.data.attributes;return o&&o["data-geostory-interaction-type"]?'").concat(e,""):'').concat(e,"")}if("IMAGE"===t.type){var r=t.data.alignment,a=r&&"none"!==r?"float: ".concat(r,";"):"display: block; margin: 0 auto 0 auto;";return'').concat(t.data.alt,'')}return"EMBEDDED_LINK"===t.type?''):e};function q(t){return q="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},q(t)}function z(){return z=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,o=new Array(e);n0?n:i.Km,className:void 0,component:void 0,dropdownClassName:void 0},link:{inDropdown:!1,className:void 0,component:void 0,popupClassName:void 0,dropdownClassName:void 0,showOpenOptionOnHover:!0,defaultTargetOption:"_self",options:["link","unlink"],link:{icon:void 0,className:void 0},unlink:{icon:void 0,className:void 0},linkCallback:void 0},blockType:{inDropdown:!0,options:["Normal","H1","H2","H3","H4","H5","H6","Blockquote","Code"],className:void 0,component:void 0,dropdownClassName:void 0},inline:{options:["bold","italic","underline","strikethrough","monospace"],bold:{className:"".concat(c,"-toolbar-btn")},italic:{className:"".concat(c,"-toolbar-btn")},underline:{className:"".concat(c,"-toolbar-btn")},strikethrough:{className:"".concat(c,"-toolbar-btn")},code:{className:"".concat(c,"-toolbar-btn")}},textAlign:{left:{className:"".concat(c,"-toolbar-btn")},center:{className:"".concat(c,"-toolbar-btn")},right:{className:"".concat(c,"-toolbar-btn")},justify:{className:"".concat(c,"-toolbar-btn")}},colorPicker:{className:"".concat(c,"-toolbar-btn")},remove:{className:"".concat(c,"-toolbar-btn")}},u),toolbarClassName:"".concat(c,"-toolbar"),wrapperClassName:"".concat(c,"-wrapper"),editorClassName:"".concat(c,"-main")}})),(0,a.renderComponent)(s.Editor)),X=(0,a.compose)((0,a.lifecycle)({componentWillUnmount:function(){var t=this.props,e=t.editorState,n=t.save;(void 0===n?function(){}:n)(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(t){var n=1!==(0,c.convertToRaw)(t.getCurrentContent()).blocks.length||(0,c.convertToRaw)(t.getCurrentContent()).blocks[0].text,o=F()((0,c.convertToRaw)(t.getCurrentContent()),null,null,V);return n?o:e}return e}(e,i.gg))}}),(0,a.withHandlers)({onBlur:function(t){var e=t.toggleEditing,n=void 0===e?function(){}:e;return function(){n(!1)}}}),(0,a.withProps)((function(t){var e=t.sections;return{availableStorySections:(void 0===e?[]:e).reduce((function(t,e){var n,o=[];return[i.ID.IMMERSIVE,i.ID.CAROUSEL].includes(e.type)?e.contents.forEach((function(t){o.push(t)})):o.push(e),[].concat(function(t){if(Array.isArray(t))return G(t)}(n=t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||function(t,e){if(t){if("string"==typeof t)return G(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?G(t,e):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o)}),[])}})),(0,a.withProps)((function(t){var e=t.availableStorySections,n=void 0===e?[]:e;return{toolbar:{link:{inDropdown:!1,className:void 0,component:function(t){return r().createElement(j,z({},t,{availableStorySections:n}))},popupClassName:void 0,dropdownClassName:void 0,showOpenOptionOnHover:!0,defaultTargetOption:"_self",options:["link","unlink"],link:{icon:void 0,className:void 0},unlink:{icon:void 0,className:void 0},linkCallback:void 0,getLinkDecorator:H}}}})),Q);const Y=(0,a.compose)((0,a.withState)("contentEditing","setContentEditing",!1),(0,a.withState)("editorState","onEditorStateChange"),(0,a.withHandlers)({toggleEditing:function(t){var e=t.bubblingTextEditing,n=void 0===e?function(){}:e,o=t.sectionType,r=t.onEditorStateChange,a=void 0===r?function(){}:r,l=t.setContentEditing,s=void 0===l?function(){}:l;return function(t,e){if(t){var r=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=U()(t,null,W),n=c.ContentState.createFromBlockArray(e.contentBlocks);return c.EditorState.createWithContent(n)}(e);if(o===i.ID.TITLE&&"unstyled"===c.RichUtils.getCurrentBlockType(r)){var l=r.getCurrentContent();l=c.Modifier.setBlockType(l,c.EditorState.createWithContent(l).getSelection(),"header-one"),r=c.EditorState.createWithContent(l)}a(r),s(!0),n(!0)}else s(!1),n(!1)}}}),(0,a.branch)((function(t){return!!t.contentEditing}),X)),tt=(0,a.compose)((0,a.withHandlers)({save:function(t){var e=t.update,n=void 0===e?function(){}:e;return function(t){return n("html",t)}}}),(0,a.branch)((function(t){return t.mode===i.nl.EDIT}),Y),(0,a.compose)((0,a.withPropsOnChange)(["sectionType"],(function(t){var e=t.sectionType;return{placeholder:i.ID.TITLE===e?"geostory.builder.defaults.htmlTitlePlaceholder":"geostory.builder.defaults.htmlPlaceholder",placeholderTag:i.ID.TITLE===e?"h1":"p"}})),(0,l.Z)("placeholder")))((function(t){var e=t.placeholder,n=t.placeholderTag,o=void 0===n?"p":n,a=t.id,l=t.toggleEditing,c=void 0===l?function(){}:l,s=t.html,u=t.mode;return r().createElement("div",{className:"ms-text-wrapper"},s!==i.gg&&r().createElement("div",{id:a,onClick:function(){return c(!0,s)},dangerouslySetInnerHTML:{__html:s}}),(!s||s===i.gg)&&u===i.nl.EDIT&&r().createElement("div",{className:"ms-text-placeholder",id:"placeholder"+a,onClick:function(){return c(!0,s===i.gg?"":s)},dangerouslySetInnerHTML:{__html:"<".concat(o,">").concat(e,"")}}))}))}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/57632.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/57632.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/57632.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/57632.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/57748.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/57748.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/57748.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/57748.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/57755.018dc26183efb561a8b1.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/57755.018dc26183efb561a8b1.chunk.js new file mode 100644 index 0000000000..4e11f6c82b --- /dev/null +++ b/geonode_mapstore_client/static/mapstore/dist/js/57755.018dc26183efb561a8b1.chunk.js @@ -0,0 +1 @@ +(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[57755],{807691:(e,r,t)=>{"use strict";t.d(r,{ZP:()=>M});var n=t(49977),o=t.n(n),i=t(557579),a=t(555927),s=t(782904),c=t(95797),u=t(197395),l=t(807878),f=t(263516),v=t(367306),d=t(274621),b=t(401757),p=t(324684),y=t(989077),g=t(291312),h=t(589919),m=t(275982),O=t(246781),w=["data"],S=["status","statusText","data","message"];function j(e){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},j(e)}function P(e,r){if(null==e)return{};var t,n,o=function(e,r){if(null==e)return{};var t,n,o={},i=Object.keys(e);for(n=0;n=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function D(e){return function(e){if(Array.isArray(e))return E(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(e){if("string"==typeof e)return E(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?E(e,r):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t1&&void 0!==arguments[1]?arguments[1]:{}).getState,t=void 0===r?function(){}:r;return e.ofType(i.AE,i.dm).filter((function(){return(0,v.Wy)(t())})).switchMap((function(){return o().Observable.of((0,a.D_)(!0))}))},closeDashboardWidgetEditorOnFinish:function(e){var r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).getState,t=void 0===r?function(){}:r;return e.ofType(i.Jm).filter((function(){return(0,v.Wy)(t())})).switchMap((function(){return o().Observable.of((0,a.D_)(!1))}))},initDashboardEditorOnNew:function(e){var r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).getState,t=void 0===r?function(){}:r;return e.ofType(i.AE).filter((function(){return(0,v.Wy)(t())})).switchMap((function(e){return o().Observable.of((0,i.bS)(k(k({legend:!1,mapSync:!1,cartesian:!0,yAxis:!0},e),{},{type:void 0}),{step:0}))}))},closeDashboardEditorOnExit:function(e){var r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).getState,t=void 0===r?function(){}:r;return e.ofType(m.nk).filter((function(){return(0,v.Wy)(t())})).filter((function(){return(0,v.i$)(t())})).switchMap((function(){return o().Observable.of((0,a.D_)(!1))}))},handleDashboardWidgetsFilterPanel:function(e){var r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).getState,t=void 0===r?function(){}:r;return e.ofType(i.lG).filter((function(){return(0,v.Wy)(t())})).switchMap((function(){return o().Observable.of(c.gT.apply(void 0,D((r=t(),n=(0,b.JT)(r),[n.search&&n.search.url,n.name]))),(0,l.F)((0,b.um)(t())),(0,s.Xg)("queryPanel","enabled",!0)).concat(o().Observable.race(e.ofType(l.Wm).take(1),e.ofType(s.kM).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.control,t=e.property;return"queryPanel"===r&&(!t||"enabled"===t)})).take(1)).switchMap((function(e){return(e.filterObj?o().Observable.of((0,i.Rz)("filter",e.filterObj)):o().Observable.empty()).merge(o().Observable.of((0,s.Xg)("widgetBuilder","enabled",!0)))}))).takeUntil(e.ofType(m.nk,i.dm).merge(e.ofType(s.kM).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.control,t=e.property;return"widgetBuilder"===r&&0==!t})))).concat(o().Observable.of((0,s.Xg)("queryPanel","enabled",!1)));var r,n}))},filterAnonymousUsersForDashboard:function(e,r){return e.ofType(f.c8,f.Nv).filter((function(){return"/dashboard"===(0,p.F)(r.getState())})).switchMap((function(e){return function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e),(0,d.jl)(r.getState())?o().Observable.empty():o().Observable.of((0,a.AN)({status:403}))}))},loadDashboardStream:function(e,r){var t=r.getState,n=void 0===t?function(){}:t;return e.ofType(a.zX).switchMap((function(e){var r=e.id;return(0,g.RX)(r).map((function(e){var r=e.data,t=P(e,w);return(0,a.rR)(t,(0,O.sq)(r))})).let((0,h.hP)((0,a.vM)(!0,"loading"),(0,a.vM)(!1,"loading"),(function(e){var r=window.location.href.match("dashboard-embedded")?"dashboardEmbedded":"dashboard",t=r+".errors.loading.unknownError";return 403===e.status&&(t=r+".errors.loading.pleaseLogin",(0,d.jl)(n())&&(t=r+".errors.loading.dashboardNotAccessible")),404===e.status&&(t=r+".errors.loading.dashboardDoesNotExist"),o().Observable.of((0,u.vU)({title:r+".errors.loading.title",message:t}),(0,a.AN)(k(k({},e),{},{messageId:t})))})))}))},reloadDashboardOnLoginLogout:function(e){return e.ofType(a.zX).switchMap((function(r){var t=r.id;return e.ofType(f.XP,f.Nv).switchMap((function(){return o().Observable.of((0,a.o2)(t)).delay(1e3)})).takeUntil(e.ofType(m.nk))}))},saveDashboard:function(e){return e.ofType(a.aR).exhaustMap((function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).resource;return(e.id?(0,g.id)(e):(0,g.SN)(e)).switchMap((function(r){return o().Observable.of((0,a.sA)(r),e.id?(0,a.gE)(!1):(0,a.pB)(!1),e.id?(0,a.o2)(r):(0,m.VF)("/dashboard/".concat(r))).merge(o().Observable.of((0,u.$Z)({id:"DASHBOARD_SAVE_SUCCESS",title:"saveDialog.saveSuccessTitle",message:"saveDialog.saveSuccessMessage"})).delay(e.id?0:1e3))})).let((0,h.hP)((0,a.vM)(!0,"saving"),(0,a.vM)(!1,"saving"))).catch((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.status,t=e.statusText,n=e.data,i=e.message,s=P(e,S);return o().Observable.of((0,a.GD)(r?{status:r,statusText:t,data:n}:i||s),(0,a.vM)(!1,"saving"))}))}))},exportDashboard:function(e){return e.ofType(a.Kv).switchMap((function(e){var r=e.data,t=e.fileName;return o().Observable.of([JSON.stringify(k({},r)),t,"application/json"]).do((function(e){return y.LR.apply(void 0,D(e))})).map((function(){return(0,s.Xi)("export")}))}))},importDashboard:function(e){return e.ofType(a.zV).switchMap((function(e){var r=e.file,t=e.resource;return o().Observable.defer((function(){return(0,y.zr)(r[0]).then((function(e){return e}))})).switchMap((function(e){return o().Observable.of((0,a.rR)(t,e),(0,s.Xi)("import"))})).catch((function(e){return o().Observable.of((0,u.vU)({title:"dashboard.errors.loading.title"}),(0,a.AN)(k({},e)))}))}))}}},24412:(e,r,t)=>{"use strict";t.d(r,{Z:()=>f});var n=t(555927),o=t(557579),i=t(761868),a=t(984596),s=t.n(a);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function l(e){for(var r=1;r0&&void 0!==arguments[0]?arguments[0]:{showConnections:!0,services:null,saveServiceLoading:!1},r=arguments.length>1?arguments[1]:void 0;switch(r.type){case n.BJ:return(0,i.t8)("editor.available",r.available,e);case n._y:case o.wb:case o.Jm:case o.yY:return(0,i.t8)("editing",r.editing,e);case n.vk:return(0,i.t8)("showConnections",r.show,e);case n.uI:return(0,i.t8)("showSaveModal",r.show,(0,i.t8)("saveErrors",void 0,e));case n.mg:return(0,i.t8)("showSaveAsModal",r.show,(0,i.t8)("saveErrors",void 0,e));case n.E9:var t;return l(l({},e),{},{originalData:r.data,resource:r.resource,services:null===(t=r.data)||void 0===t?void 0:t.catalogs});case n.R4:return l(l({},e),{},{originalData:void 0,resource:void 0,mode:"view",services:void 0});case n.SW:return(0,i.t8)("saveErrors",s()(r.error),e);case n.$l:return(0,i.t8)("saveErrors",void 0,e);case n.E5:var a;return l(l({},e),{},{services:e.services||r.services,selectedService:(null===(a=r.service)||void 0===a?void 0:a.key)||""});case n.s6:return(0,i.t8)("services",r.services,e);case n.B_:return l(l({},e),{},{mode:r.mode,isNew:r.isNew,saveServiceLoading:!1});case n.TA:return l(l({},e),{},{saveServiceLoading:r.loading});case n.CF:var c=r.services,u=r.service;u.isNew=!1,u.showAdvancedSettings=!1,delete u.old,c[u.key]=u;var f=u.key;return l(l({},e),{},{services:c,selectedService:f,mode:"view"});case n.js:var v,d,b=r.services,p=r.service;(b[p.key]||b[null===(v=p.old)||void 0===v?void 0:v.key])&&(delete b[p.key]||b[null===(d=p.old)||void 0===d?void 0:d.key]);var y=Object.keys(b)[0]||"";return l(l({},e),{},{services:b,mode:"view",selectedService:y});case n.CP:return(0,i.t8)("loading"===r.name?"loading":"loadFlags.".concat(r.name),r.value,(0,i.t8)("loading",r.value,e));default:return e}}}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/57755.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/57755.affd309bf2aa3f38d3a0.chunk.js deleted file mode 100644 index 7dae0d0cad..0000000000 --- a/geonode_mapstore_client/static/mapstore/dist/js/57755.affd309bf2aa3f38d3a0.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[57755],{807691:(e,r,t)=>{"use strict";t.d(r,{ZP:()=>A});var n=t(49977),o=t.n(n),i=t(557579),a=t(555927),s=t(782904),c=t(95797),u=t(197395),l=t(807878),f=t(263516),v=t(367306),d=t(274621),b=t(401757),p=t(324684),y=t(989077),g=t(291312),h=t(589919),m=t(275982),O=t(246781),w=["data"],S=["status","statusText","data","message"];function j(e){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},j(e)}function P(e,r){if(null==e)return{};var t,n,o=function(e,r){if(null==e)return{};var t,n,o={},i=Object.keys(e);for(n=0;n=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function D(e){return function(e){if(Array.isArray(e))return E(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(e){if("string"==typeof e)return E(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?E(e,r):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t1&&void 0!==arguments[1]?arguments[1]:{}).getState,t=void 0===r?function(){}:r;return e.ofType(i.AE,i.dm).filter((function(){return(0,v.Wy)(t())})).switchMap((function(){return o().Observable.of((0,a.D_)(!0))}))},closeDashboardWidgetEditorOnFinish:function(e){var r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).getState,t=void 0===r?function(){}:r;return e.ofType(i.Jm).filter((function(){return(0,v.Wy)(t())})).switchMap((function(){return o().Observable.of((0,a.D_)(!1))}))},initDashboardEditorOnNew:function(e){var r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).getState,t=void 0===r?function(){}:r;return e.ofType(i.AE).filter((function(){return(0,v.Wy)(t())})).switchMap((function(e){return o().Observable.of((0,i.bS)(k(k({legend:!1,mapSync:!1,cartesian:!0,yAxis:!0},e),{},{type:void 0}),{step:0}))}))},closeDashboardEditorOnExit:function(e){var r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).getState,t=void 0===r?function(){}:r;return e.ofType(m.nk).filter((function(){return(0,v.Wy)(t())})).filter((function(){return(0,v.i$)(t())})).switchMap((function(){return o().Observable.of((0,a.D_)(!1))}))},handleDashboardWidgetsFilterPanel:function(e){var r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).getState,t=void 0===r?function(){}:r;return e.ofType(i.lG).filter((function(){return(0,v.Wy)(t())})).switchMap((function(){return o().Observable.of(c.gT.apply(void 0,D((r=t(),n=(0,b.JT)(r),[n.search&&n.search.url,n.name]))),(0,l.F)((0,b.um)(t())),(0,s.Xg)("queryPanel","enabled",!0)).concat(o().Observable.race(e.ofType(l.Wm).take(1),e.ofType(s.kM).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.control,t=e.property;return"queryPanel"===r&&(!t||"enabled"===t)})).take(1)).switchMap((function(e){return(e.filterObj?o().Observable.of((0,i.Rz)("filter",e.filterObj)):o().Observable.empty()).merge(o().Observable.of((0,s.Xg)("widgetBuilder","enabled",!0)))}))).takeUntil(e.ofType(m.nk,i.dm).merge(e.ofType(s.kM).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.control,t=e.property;return"widgetBuilder"===r&&0==!t})))).concat(o().Observable.of((0,s.Xg)("queryPanel","enabled",!1)));var r,n}))},filterAnonymousUsersForDashboard:function(e,r){return e.ofType(f.c8,f.Nv).filter((function(){return"/dashboard"===(0,p.F)(r.getState())})).switchMap((function(e){return function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e),(0,d.jl)(r.getState())?o().Observable.empty():o().Observable.of((0,a.AN)({status:403}))}))},loadDashboardStream:function(e,r){var t=r.getState,n=void 0===t?function(){}:t;return e.ofType(a.zX).switchMap((function(e){var r=e.id;return(0,g.RX)(r).map((function(e){var r=e.data,t=P(e,w);return(0,a.rR)(t,(0,O.sq)(r))})).let((0,h.hP)((0,a.vM)(!0,"loading"),(0,a.vM)(!1,"loading"),(function(e){var r=window.location.href.match("dashboard-embedded")?"dashboardEmbedded":"dashboard",t=r+".errors.loading.unknownError";return 403===e.status&&(t=r+".errors.loading.pleaseLogin",(0,d.jl)(n())&&(t=r+".errors.loading.dashboardNotAccessible")),404===e.status&&(t=r+".errors.loading.dashboardDoesNotExist"),o().Observable.of((0,u.vU)({title:r+".errors.loading.title",message:t}),(0,a.AN)(k(k({},e),{},{messageId:t})))})))}))},reloadDashboardOnLoginLogout:function(e){return e.ofType(a.zX).switchMap((function(r){var t=r.id;return e.ofType(f.XP,f.Nv).switchMap((function(){return o().Observable.of((0,a.o2)(t)).delay(1e3)})).takeUntil(e.ofType(m.nk))}))},saveDashboard:function(e){return e.ofType(a.aR).exhaustMap((function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).resource;return(e.id?(0,g.id)(e):(0,g.SN)(e)).switchMap((function(r){return o().Observable.of((0,a.sA)(r),e.id?(0,a.gE)(!1):(0,a.pB)(!1),e.id?(0,a.o2)(r):(0,m.VF)("/dashboard/".concat(r))).merge(o().Observable.of((0,u.$Z)({id:"DASHBOARD_SAVE_SUCCESS",title:"saveDialog.saveSuccessTitle",message:"saveDialog.saveSuccessMessage"})).delay(e.id?0:1e3))})).let((0,h.hP)((0,a.vM)(!0,"saving"),(0,a.vM)(!1,"saving"))).catch((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.status,t=e.statusText,n=e.data,i=e.message,s=P(e,S);return o().Observable.of((0,a.GD)(r?{status:r,statusText:t,data:n}:i||s),(0,a.vM)(!1,"saving"))}))}))},exportDashboard:function(e){return e.ofType(a.Kv).switchMap((function(e){var r=e.data,t=e.fileName;return o().Observable.of([JSON.stringify(k({},r)),t,"application/json"]).do((function(e){return y.LR.apply(void 0,D(e))})).map((function(){return(0,s.Xi)("export")}))}))},importDashboard:function(e){return e.ofType(a.zV).switchMap((function(e){var r=e.file,t=e.resource;return o().Observable.defer((function(){return(0,y.zr)(r[0]).then((function(e){return e}))})).switchMap((function(e){return o().Observable.of((0,a.rR)(t,e),(0,s.Xi)("import"))})).catch((function(e){return o().Observable.of((0,u.vU)({title:"dashboard.errors.loading.title"}),(0,a.AN)(k({},e)))}))}))}}},24412:(e,r,t)=>{"use strict";t.d(r,{Z:()=>v});var n=t(555927),o=t(557579),i=t(761868),a=t(984596),s=t.n(a);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function l(e){for(var r=1;r0&&void 0!==arguments[0]?arguments[0]:{showConnections:!0,services:null,saveServiceLoading:!1},r=arguments.length>1?arguments[1]:void 0;switch(r.type){case n.BJ:return(0,i.t8)("editor.available",r.available,e);case n._y:case o.wb:case o.Jm:case o.yY:return(0,i.t8)("editing",r.editing,e);case n.vk:return(0,i.t8)("showConnections",r.show,e);case n.uI:return(0,i.t8)("showSaveModal",r.show,(0,i.t8)("saveErrors",void 0,e));case n.mg:return(0,i.t8)("showSaveAsModal",r.show,(0,i.t8)("saveErrors",void 0,e));case n.E9:var t;return l(l({},e),{},{originalData:r.data,resource:r.resource,services:null===(t=r.data)||void 0===t?void 0:t.catalogs});case n.R4:return l(l({},e),{},{originalData:void 0,resource:void 0,mode:"view",services:void 0});case n.SW:return(0,i.t8)("saveErrors",s()(r.error),e);case n.$l:return(0,i.t8)("saveErrors",void 0,e);case n.E5:var a;return l(l({},e),{},{services:e.services||r.services,selectedService:(null===(a=r.service)||void 0===a?void 0:a.key)||""});case n.s6:return(0,i.t8)("services",r.services,e);case n.B_:return l(l({},e),{},{mode:r.mode,isNew:r.isNew,saveServiceLoading:!1});case n.TA:return l(l({},e),{},{saveServiceLoading:r.loading});case n.CF:var c=r.services,u=r.service;u.isNew=!1,u.showAdvancedSettings=!1,delete u.old,c[u.key]=u;var f=u.key;return l(l({},e),{},{services:c,selectedService:f,mode:"view"});case n.js:var v,d,b=r.services,p=r.service;(b[p.key]||b[null===(v=p.old)||void 0===v?void 0:v.key])&&(delete b[p.key]||b[null===(d=p.old)||void 0===d?void 0:d.key]);var y=Object.keys(b)[0]||"";return l(l({},e),{},{services:b,mode:"view",selectedService:y});case n.CP:return(0,i.t8)("loading"===r.name?"loading":"loadFlags.".concat(r.name),r.value,(0,i.t8)("loading",r.value,e));default:return e}}}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/57831.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/57831.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/57831.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/57831.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/58059.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/58059.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/58059.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/58059.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/58071.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/58071.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/58071.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/58071.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/58137.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/58137.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/58137.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/58137.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/58252.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/58252.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/58252.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/58252.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/58257.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/58257.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/58257.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/58257.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/58267.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/58267.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/58267.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/58267.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/5831.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/5831.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/5831.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/5831.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/58317.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/58317.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/58317.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/58317.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/58337.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/58337.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/58337.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/58337.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/58355.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/58355.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/58355.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/58355.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/58448.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/58448.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/58448.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/58448.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/58493.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/58493.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/58493.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/58493.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/58559.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/58559.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/58559.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/58559.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/58659.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/58659.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/58659.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/58659.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/58853.018dc26183efb561a8b1.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/58853.018dc26183efb561a8b1.chunk.js new file mode 100644 index 0000000000..0708a40d44 --- /dev/null +++ b/geonode_mapstore_client/static/mapstore/dist/js/58853.018dc26183efb561a8b1.chunk.js @@ -0,0 +1 @@ +(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[58853],{247361:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var r=n(675263),o=n.n(r),i=n(124852),a=n.n(i),l=n(414293),c=n.n(l),u=n(868195);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t{"use strict";n.d(t,{Z:()=>u});var r=n(867076),o=n(815135),i=n(159979);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}var l=["renderPopover","popoverOptions"];function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const u=(0,r.compose)((0,r.withProps)((function(e){var t=e.renderPopover,n=e.popoverOptions;return function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,l))})),(0,r.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.renderPopover,n=e.popoverOptions;return t&&!!n}),i.Z,o.Z))},159979:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r=n(124852),o=n.n(r),i=n(352595),a=n(480681),l=n(957557),c=n.n(l),u=n(180307),s=n.n(u);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}var p=["popoverOptions","keyProp"];function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(n,p);return o().createElement("span",{className:"mapstore-info-popover"},o().createElement(e,d({},c()(u,["renderPopover","tooltipId"]),{key:l,ref:function(e){t=e}})),o().createElement(i.Z,{placement:r.placement,shouldUpdatePosition:!0,show:!0,target:function(){return s().findDOMNode(t)}},o().createElement(a.Popover,r.props,r.content)))}}])&&m(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),v}(o().Component)}},656903:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(124852),o=n.n(r),i=n(480681),a=n(38560),l=["disabled","id","visible","onClick","glyph","active","className"];function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,l);return o().createElement(a.Z,c({ref:t},y,{bsStyle:d?"success":"primary",disabled:n,id:"fg-".concat(r),style:f(u),className:b,onClick:function(){return!n&&s()}}),o().createElement(i.Glyphicon,{glyph:p}))}))},38560:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(480681),o=n(124852),i=n.n(o),a=n(294184),l=n.n(a),c=["disabled","className","onClick"];function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,c);return i().createElement(f,u({ref:t,className:n?l()("disabled",r):r,onClick:function(){n||a.apply(void 0,arguments)}},s),s.children)})));var f},501262:(e,t,n)=>{"use strict";n.d(t,{Z:()=>S});var r=n(727418),o=n.n(r),i=n(675263),a=n.n(i),l=n(124852),c=n.n(l),u=n(180307),s=n.n(u),f=n(480681),p=n(38560),d=n(805346),m=n(807472);function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function y(e,t){for(var n=0;n{"use strict";n.d(t,{Z:()=>j});var r=n(727418),o=n.n(r),i=n(675263),a=n.n(i),l=n(124852),c=n.n(l),u=n(485294),s=n.n(u),f=n(472986),p=n.n(f),d=n(805346);function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t0})),w(h(e),"onClickOut",(function(t){e.props.onClickOut&&e.mask===t.target&&e.props.onClickOut(t)})),e}return t=l,(n=[{key:"render",value:function(){var e=this,t=c().createElement("div",{id:this.props.id,style:y({},this.props.style),className:"".concat(this.props.draggable?"modal-dialog-draggable":""," ").concat(this.props.className," modal-dialog-container")},c().createElement("div",{className:this.props.headerClassName+" draggable-header"},this.renderRole("header")),c().createElement("div",{className:this.props.bodyClassName},this.renderLoading(),this.renderRole("body")),this.hasRole("footer")?c().createElement("div",{className:this.props.footerClassName},this.renderRole("footer")):c().createElement("span",null)),n=this.props.draggable?c().createElement(s(),{defaultPosition:this.props.start,bounds:this.props.bounds,handle:".draggable-header, .draggable-header *"},t):t,r=o()({},this.props.style.display?{display:this.props.style.display}:{},this.props.backgroundStyle);return this.props.modal?c().createElement("div",{ref:function(t){e.mask=t},onClick:this.onClickOut,style:r,className:"fade in modal "+this.props.containerClassName,role:"dialog"},n):n}}])&&g(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(c().Component);w(S,"propTypes",{id:a().string.isRequired,style:a().object,backgroundStyle:a().object,className:a().string,maskLoading:a().bool,containerClassName:a().string,headerClassName:a().string,bodyClassName:a().string,footerClassName:a().string,onClickOut:a().func,modal:a().bool,start:a().object,draggable:a().bool,bounds:a().oneOfType([a().string,a().object])}),w(S,"defaultProps",{style:{},backgroundStyle:{background:"rgba(0,0,0,.5)"},start:{x:0,y:150},className:"modal-dialog modal-content",maskLoading:!1,containerClassName:"",headerClassName:"modal-header",bodyClassName:"modal-body",footerClassName:"modal-footer",modal:!1,draggable:!0,bounds:"parent"});const j=S},352595:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=(0,n(461365).Z)(n(480681).Overlay)},399534:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(461365),o=n(356936);const i=(0,r.Z)(o.h_)},273849:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(867076),o=n(828878),i=n(49977),a=n.n(i);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return u(u({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),e)}))})))},75460:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>nt});var r=n(124852),o=n.n(r),i=n(171703),a=n(22222),l=n(12838),c=n(227361),u=n.n(c),s=n(478718),f=n.n(s),p=n(618446),d=n.n(p),m=n(867076),b=n(732833),y=n(496259),g=n(588300),v=n(965539),h=n(196958),O=n(433528),w=n(55105),E=n(824260),S=n(731255),j=n(501262),P=n(399534),C=n(805346),k=n(830029),T=n(118027),x=n(480681),D=n(472986),I=n.n(D),N=n(38560),Z=n(893379),F=n.n(Z),B=n(213506);F()(B.Z,{insert:"head",singleton:!1}),B.Z.locals;var G=n(189734),M=n.n(G),R=n(921533),z=n(656903),A=n(415124),_=n(210308);F()(_.Z,{insert:"head",singleton:!1}),_.Z.locals;var Y=n(294184),L=n.n(Y);function V(e){return V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},V(e)}var q=["disabled","id","visible","onClick","active","title","buttonClassName","menuStyle","className","children","onMount"];function W(){return W=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,q),E=(n=(0,r.useState)(!1),i=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(n,i)||function(e,t){if(e){if("string"==typeof e)return Q(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Q(e,t):void 0}}(n,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),S=E[0],j=E[1];return(0,r.useEffect)((function(){"function"==typeof O&&O()}),[]),!!c&&o().createElement(y.Z,null,o().createElement(x.Dropdown,{className:L()(U({"split-button":!0},g?H({},g,!0):{})),open:S,onToggle:function(e,t){t&&j(e)}},o().createElement(x.Button,W({ref:t,id:l,onClick:function(){return!a&&u()},className:d,bsStyle:s?"success":"primary"},w),f),o().createElement(x.Dropdown.Toggle,{bsStyle:s?"success":"primary"}),o().createElement(x.Dropdown.Menu,{style:b,onSelect:function(e){["number","text"].includes(e.target.type)?j(!0):j(!S)}},v)))}));var J=n(743129);function X(e){return X="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},X(e)}var ee=["position"];function te(){return te=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&!i&&!a,onClick:c.deleteFeatures,glyph:"trash-square"})},saveFeature:function(e){var t=e.saving,n=void 0!==t&&t,r=e.saved,i=void 0!==r&&r,a=e.disabled,l=e.mode,c=e.hasChanges,u=e.hasNewFeatures,s=e.events,f=void 0===s?{}:s;return o().createElement(oe,{id:"save-feature",keyProp:"save-feature",tooltipId:le({saving:n,saved:i}),disabled:n||i||a,visible:"EDIT"===l&&c||u,active:i,onClick:f.saveChanges,glyph:"floppy-disk"})},cancelEditing:function(e){var t=e.disabled,n=e.mode,r=e.hasChanges,i=e.hasNewFeatures,a=e.events,l=void 0===a?{}:a;return o().createElement(oe,{id:"cancel-editing",keyProp:"cancel-editing",tooltipId:"featuregrid.toolbar.cancelChanges",disabled:t,visible:"EDIT"===n&&r||i,onClick:l.clearFeatureEditing,glyph:"remove-square"})},deleteGeometry:function(e){var t=e.disabled,n=e.mode,r=e.hasGeometry,i=e.selectedCount,a=e.hasSupportedGeometry,l=void 0===a||a,c=e.events,u=void 0===c?{}:c;return o().createElement(oe,{id:"delete-geometry",keyProp:"delete-geometry",tooltipId:"featuregrid.toolbar.deleteGeometry",disabled:t,visible:"EDIT"===n&&r&&1===i&&l,onClick:u.deleteGeometry,glyph:"polygon-trash"})},gridSettings:function(e){var t=e.disabled,n=e.isColumnsOpen,r=e.selectedCount,i=e.mode,a=e.events,l=void 0===a?{}:a;return o().createElement(oe,{id:"grid-settings",keyProp:"grid-settings",tooltipId:"featuregrid.toolbar.hideShowColumns",disabled:t,active:n,visible:r<=1&&"VIEW"===i,onClick:l.settings,glyph:"features-grid-set"})},syncGridFilterToMap:function(e){var t=e.disabled,n=e.isSyncActive,r=void 0!==n&&n,i=e.showSyncOnMapButton,a=void 0===i||i,l=e.events,c=void 0===l?{}:l,u=e.syncPopover,s=void 0===u?{showPopoverSync:!0,dockSize:"32.2%"}:u;return o().createElement(oe,{id:"grid-map-filter",keyProp:"grid-map-filter",tooltipId:"featuregrid.toolbar.syncOnMap",disabled:t,active:r,visible:a,onClick:c.sync,glyph:"map-filter",renderPopover:s.showPopoverSync,popoverOptions:!t&&{placement:"top",content:o().createElement("span",null,o().createElement("p",null,o().createElement(C.Z,{msgId:"featuregrid.toolbar.synchPopoverText"})),o().createElement("p",null,o().createElement(x.Checkbox,{checked:s.showAgain,onClick:c.toggleShowAgain},o().createElement(C.Z,{msgId:"featuregrid.toolbar.notShowAgain"})))),props:{id:"sync-popover",title:o().createElement("div",null,o().createElement(C.Z,{msgId:"featuregrid.toolbar.synchPopoverTitle"}),o().createElement("button",{onClick:function(){if(s.showAgain)try{(0,A.ac)().setItem("showPopoverSync",!1)}catch(e){console.error(e)}c.hideSyncPopover()},className:"close"},o().createElement(x.Glyphicon,{className:"pull-right",glyph:"1-close"}))),style:{bottom:s.dockSize}}}})},syncTimeParameter:function(e){var t=e.timeSync,n=e.showTimeSyncButton,r=void 0!==n&&n,i=e.events,a=void 0===i?{}:i;return o().createElement(oe,{id:"timeSync-button",keyProp:"fg-timeSync-button",tooltipId:t?"featuregrid.toolbar.disableTimeSync":"featuregrid.toolbar.enableTimeSync",visible:r,active:t,onClick:function(){return a.setTimeSync&&a.setTimeSync(!t)},glyph:"time"})},snapToFeature:function(e){var t,n,r,i,a,l,c,u,s,f,p,d,m,b=e.snapping,y=e.availableSnappingLayers,g=void 0===y?[]:y,v=e.isSnappingLoading,h=e.snappingConfig,O=e.mode,w=e.mapType,E=e.editorHeight,S=e.pluginCfg,j=e.events,P=void 0===j?{}:j;return o().createElement(ie,{id:"snap-button",keyProp:"snap-button",tooltipId:b?"featuregrid.toolbar.disableSnapping":"featuregrid.toolbar.enableSnapping",visible:"EDIT"===O&&(null===(t=null==S?void 0:S.snapTool)||void 0===t||t)&&"openlayers"===w,onClick:function(){P.toggleSnapping&&P.toggleSnapping(!b)},onMount:function(){return!h&&P.setSnappingConfig&&P.setSnappingConfig(null,null,S)},title:v?o().createElement(I(),{spinnerName:"ball-beat",overrideSpinnerClassName:"spinner",key:"loadingSpinner",noFadeIn:!0}):o().createElement(x.Glyphicon,{glyph:"magnet"}),tooltipPosition:"top",className:"snap-tool",buttonClassName:"square-button-md no-border",menuStyle:{maxHeight:"calc(".concat(Math.round(100*E),"vh - 50px)"),overflowY:"auto"},active:!!b,pullLeft:!0},o().createElement(o().Fragment,null,o().createElement("label",{className:"control-label"},o().createElement(C.Z,{msgId:"featuregrid.toolbar.snapToLayer"})),o().createElement(J.ZP,{clearable:!1,escapeClearsValue:!1,options:g,onChange:function(e){return P.setSnappingLayer(e.value)},value:g.find((function(e){return e.active}))})),o().createElement("label",{className:"control-label"},o().createElement(C.Z,{msgId:"featuregrid.toolbar.snappingSettings.header"})),o().createElement(x.FormGroup,null,o().createElement(x.Col,{xs:6},o().createElement(x.Checkbox,{key:"edge",checked:null===(n=null!==(r=null==h?void 0:h.edge)&&void 0!==r?r:null==S||null===(i=S.snapConfig)||void 0===i?void 0:i.edge)||void 0===n||n,inline:!0,onChange:function(e){return P.setSnappingConfig(e.target.checked,"edge",S)}},o().createElement(C.Z,{msgId:"featuregrid.toolbar.snappingSettings.edge"}))),o().createElement(x.Col,{xs:6},o().createElement(x.Checkbox,{key:"vertex",checked:null===(a=null!==(l=null==h?void 0:h.vertex)&&void 0!==l?l:null==S||null===(c=S.snapConfig)||void 0===c?void 0:c.vertex)||void 0===a||a,inline:!0,onChange:function(e){return P.setSnappingConfig(e.target.checked,"vertex",S)}},o().createElement(C.Z,{msgId:"featuregrid.toolbar.snappingSettings.vertex"}))),o().createElement("span",{className:"clearfix"})),o().createElement(x.FormGroup,null,o().createElement(x.Col,{xs:7},o().createElement("span",{className:"inline-control-label"},o().createElement(C.Z,{msgId:"featuregrid.toolbar.snappingSettings.pixelTolerance"}))),o().createElement(x.Col,{xs:5},o().createElement(x.FormControl,{key:"pixelTolerance",type:"number",onChange:function(e){return P.setSnappingConfig(e.target.value,"pixelTolerance",S)},defaultValue:null!==(u=null!==(s=null==h?void 0:h.pixelTolerance)&&void 0!==s?s:null==S||null===(f=S.snapConfig)||void 0===f?void 0:f.pixelTolerance)&&void 0!==u?u:10})),o().createElement("span",{className:"clearfix"})),o().createElement(x.FormGroup,null,o().createElement(x.Col,{xs:7},o().createElement("span",{className:"inline-control-label"},o().createElement(C.Z,{msgId:"featuregrid.toolbar.snappingSettings.loadingStrategy"}))),o().createElement(x.Col,{xs:5},o().createElement(x.FormControl,{componentClass:"select",defaultValue:null!==(p=null!==(d=null==h?void 0:h.strategy)&&void 0!==d?d:null==S||null===(m=S.snapConfig)||void 0===m?void 0:m.strategy)&&void 0!==p?p:"bbox",onChange:function(e){return P.setSnappingConfig(e.target.value,"strategy",S)}},o().createElement("option",{value:"bbox"},"bbox"),o().createElement("option",{value:"all"},"all"))),o().createElement("span",{className:"clearfix"})))}},ue=[{name:"editMode",Component:ce.editMode},{name:"backToViewMode",Component:ce.backToViewMode},{name:"addFeature",Component:ce.addFeature},{name:"drawFeature",Component:ce.drawFeature},{name:"removeFeature",Component:ce.removeFeature},{name:"saveFeature",Component:ce.saveFeature},{name:"cancelEditing",Component:ce.cancelEditing},{name:"deleteGeometry",Component:ce.deleteGeometry},{name:"filter",Component:ce.filter},{name:"zoomAll",Component:ce.zoomAll},{name:"gridSettings",position:900,Component:ce.gridSettings},{name:"snap",position:1300,Component:ce.snapToFeature},{name:"syncGridFilterToMap",position:1100,Component:ce.syncGridFilterToMap},{name:"syncTimeParameter",Component:ce.syncTimeParameter}].map((function(e,t){var n=e.position;return re(re({},function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,ee)),{},{position:null!=n?n:t})})),se=n(93152),fe=n(378889);const pe={onGridSort:function(e,t){return(0,O.DY)(e,t)},onAddFilter:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,O.a8)(e)},onTemporaryChanges:function(e){return(0,O.aT)(e)},onGridRowsUpdated:function(e,t){var n,r,o=e.fromRow,i=e.toRow,a=e.updated,l=(n=o,r=i,Array.from({length:r+1-n},(function(e,t){return t+n}))).map((function(e){return t(e)})).filter((function(e){return Object.keys(a||{}).filter((function(t){return e.properties[t]!==a[t]})).length>0}));return(0,O.nG)(l,a)},onRowsToggled:function(e,t){return(0,O.KD)(e.map((function(e){return t(e.rowIdx)})),!1)},onRowsSelected:function(e,t){return(0,O.KD)(e.map((function(e){return t(e.rowIdx)})),!0)},onRowsDeselected:function(e,t){return(0,O.gr)(e.map((function(e){return t(e.rowIdx)})))}};var de=n(813292),me=n.n(de),be=n(801550),ye=n(950966);const ge=[{name:"",key:"geometry",width:35,frozen:!0,events:{onClick:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.crs,i=r.maxZoom;return e.geometry?(0,be.Px)(me()(e),o||"EPSG:4326",i):{type:"NONE"}}},formatter:function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).value?o().createElement(ye.Z,{placement:"top",overlay:o().createElement(x.Tooltip,{id:"fe-zoom-object"},o().createElement(C.Z,{msgId:"featuregrid.zoomObject"}))},o().createElement(x.Glyphicon,{glyph:"zoom-to"})):o().createElement(ye.Z,{placement:"top",overlay:o().createElement(x.Tooltip,{id:"fe-save-features"},o().createElement(C.Z,{msgId:"featuregrid.missingGeometry"}))},o().createElement(x.Glyphicon,{glyph:"exclamation-mark"}))}}],ve={onPageChange:function(e,t){return(0,O.oO)(e,t)},moreFeatures:O.zd};var he=n(95797),Oe=n(604206);const we={createFeature:function(){return(0,O.lx)([{}])},saveChanges:function(){return(0,O.$S)()},clearFeatureEditing:function(){return(0,O.Pv)("clearConfirm",!0)},deleteGeometry:function(){return(0,O.pX)()},deleteFeatures:function(){return(0,O.Pv)("deleteConfirm",!0)},settings:function(){return(0,O.Pv)("settings")},switchEditMode:function(){return(0,O.lg)()},startEditingFeature:function(){return(0,O.sY)()},startDrawingFeature:function(){return(0,O.kA)()},switchViewMode:function(){return(0,O.nY)()},onClose:function(){return(0,O.JK)()},showQueryPanel:function(){return(0,O.MY)()},zoomAll:function(){return(0,O.ve)()},sync:function(){return(0,he.XO)()},setTimeSync:O.Yb,hideSyncPopover:function(){return(0,O.Pl)()},toggleShowAgain:function(){return(0,O.Ib)()},toggleSnapping:function(){return(0,Oe.oJ)()},setSnappingLayer:function(e){return(0,Oe.k4)(e)},setSnappingConfig:function(e,t,n){return(0,Oe.Li)(e,t,n)}};var Ee=pe,Se=ge,je=ve,Pe=we;const Ce=(0,i.connect)((function(e){return{attributes:(0,S.o)(e)}}),{onChange:function(e,t){return(0,O.an)(e,"hide",t)}})((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.style,n=void 0===t?{}:t,r=e.titleMsg,i=void 0===r?"featuregrid.columns":r,a=e.onChange,l=void 0===a?function(){}:a,c=e.attributes,u=void 0===c?[]:c;return o().createElement("div",{className:"bg-body data-attribute-selector",style:n},o().createElement("h4",{className:"text-center"},o().createElement("strong",null,o().createElement(C.Z,{msgId:i}))),o().createElement("div",null,u.map((function(e){return o().createElement(x.Checkbox,{key:e.attribute||e.name,checked:!e.hide,onChange:function(){return l(e.attribute,!e.hide)}},e.label||e.attribute)}))))}));var ke=n(120096);function Te(e){return Te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Te(e)}function xe(){return xe=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.toolbarItems,n=void 0===t?[]:t;return o().createElement(x.ButtonGroup,{id:"featuregrid-toolbar",className:"featuregrid-toolbar featuregrid-toolbar-margin"},M()(ue.concat(n),["position"]).map((function(t){var n,r=t.Component;return o().createElement(r,te({},e,{mode:null!==(n=null==e?void 0:e.mode)&&void 0!==n?n:"VIEW",disabled:e.disableToolbar}))})))})),Be=(0,i.connect)((0,a.P1)(S.Sj,(function(e){return{title:e}})),{onClose:Pe.onClose})((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{onDownloadToggle:function(){}};return o().createElement("div",{className:"data-grid-top-toolbar"},o().createElement("div",{className:"data-grid-top-toolbar-left"},e.children),!e.hideLayerTitle&&o().createElement("div",{className:"data-grid-top-toolbar-title"},e.title),o().createElement("div",{className:"data-grid-top-toolbar-right"},!e.hideCloseButton&&o().createElement(N.Z,{onClick:e.onClose,className:"square-button-md no-border featuregrid-top-toolbar-margin"},o().createElement(x.Glyphicon,{glyph:"1-close"}))))})),Ge=(0,i.connect)((0,a.P1)((0,a.zB)(E.b0),E.gy,(function(e){return e&&e.featuregrid&&!!e.featuregrid.virtualScroll}),S.jY,(function(e,t,n,r){return Ie(Ie({},e),{},{selected:r,loading:t,virtualScroll:n})})),je)((function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{loading:!1,onPageChange:function(){}},r=(0,h.DR)(n),i=r.page,a=void 0===i?0:i,l=r.size,c=void 0===l?0:l,u=r.resultSize,s=void 0===u?0:u,f=r.maxPages,p=void 0===f?0:f,d=r.total,m=void 0===d?0:d;return o().createElement(x.Grid,{className:"bg-body data-grid-bottom-toolbar",fluid:!0,style:{width:"100%"}},o().createElement(x.Row,{className:"featuregrid-toolbar-margin"},o().createElement(x.Col,{md:3},o().createElement("span",null,o().createElement(C.Z,{msgId:n.virtualScroll?"featuregrid.resultInfoVirtual":"featuregrid.resultInfo",msgParams:{start:a*c+1,end:a*c+s,total:m,selected:null!==(e=n.selected)&&void 0!==e?e:0}}))," ",n.selected>0?o().createElement("span",null,o().createElement(C.Z,{msgId:"featuregrid.selectedInfo",msgParams:{selected:null!==(t=n.selected)&&void 0!==t?t:0}})):null),n.virtualScroll?null:o().createElement(x.Col,{className:"text-center",md:6},o().createElement(N.Z,{key:"first-page",onClick:function(){return n.onPageChange(0)},disabled:0===a,className:"no-border first-page"},o().createElement(x.Glyphicon,{glyph:"step-backward"})),o().createElement(N.Z,{key:"prev-page",onClick:function(){return n.onPageChange(a-1)},disabled:0===a,className:"no-border prev-page"},o().createElement(x.Glyphicon,{glyph:"chevron-left"})),o().createElement("span",{key:"page-info"},o().createElement(C.Z,{msgId:"featuregrid.pageInfo",msgParams:{page:a+1,totalPages:p+1}})),o().createElement(N.Z,{key:"next-page",onClick:function(){return n.onPageChange(a+1)},className:"no-border next-page",disabled:a>=p},o().createElement(x.Glyphicon,{glyph:"chevron-right"})),o().createElement(N.Z,{key:"last-page",onClick:function(){return n.onPageChange(p)},className:"no-border last-page",disabled:a>=p},o().createElement(x.Glyphicon,{glyph:"step-forward"})))," ",o().createElement(x.Col,{md:3},n.loading?o().createElement("span",{style:{float:"right"}},o().createElement(C.Z,{msgId:"loading"}),o().createElement(I(),{spinnerName:"circle",style:{float:"right"},noFadeIn:!0})):null)))})),Me=(0,i.connect)((0,a.P1)(S.jY,(function(e){return{count:e}})),{onClose:function(){return(0,O.Pv)("deleteConfirm",!1)},onConfirm:function(){return(0,O.Uz)()}})((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onClose,n=void 0===t?function(){}:t,r=e.saving,i=void 0!==r&&r,a=e.count,l=e.onConfirm,c=void 0===l?function(){}:l;return o().createElement(P.Z,null,o().createElement(j.Z,{show:!0,onClose:n,onConfirm:c,confirmButtonBSStyle:"default",closeGlyph:"1-close",confirmButtonContent:o().createElement(C.Z,{msgId:"featuregrid.deleteButton"}),confirmButtonDisabled:i},o().createElement(C.Z,{msgId:"featuregrid.delete",msgParams:{count:a}})))})),Re=(0,i.connect)((0,a.P1)(S.jY,(function(e){return{count:e}})),{onClose:function(){return(0,O.Pv)("clearConfirm",!1)},onConfirm:function(){return(0,O.oL)()}})((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onClose,n=void 0===t?function(){}:t,r=e.saving,i=void 0!==r&&r,a=e.onConfirm,l=void 0===a?function(){}:a;return o().createElement(P.Z,null,o().createElement(j.Z,{draggable:!1,show:!0,onClose:n,onConfirm:l,confirmButtonBSStyle:"default",closeGlyph:"1-close",confirmButtonContent:o().createElement(C.Z,{msgId:"featuregrid.yesButton"}),confirmButtonDisabled:i,closeText:o().createElement(C.Z,{msgId:"featuregrid.noButton"})},o().createElement(C.Z,{msgId:"featuregrid.clear"})))})),ze=(0,i.connect)((function(){return{}}),{onClose:function(){return(0,O.Ap)()},onConfirm:function(){return(0,O.YV)()}})((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onClose,n=void 0===t?function(){}:t,r=e.saving,i=void 0!==r&&r,a=e.onConfirm,l=void 0===a?function(){}:a;return o().createElement(P.Z,null,o().createElement(j.Z,{show:!0,onClose:n,onConfirm:l,confirmButtonBSStyle:"default",closeGlyph:"1-close",confirmButtonContent:o().createElement(C.Z,{msgId:"featuregrid.yesButton"}),confirmButtonDisabled:i,closeText:o().createElement(C.Z,{msgId:"featuregrid.noButton"})},o().createElement(C.Z,{msgId:"featuregrid.featureClose"})))})),Ae={settings:Ce},_e={deleteConfirm:Me,featureCloseConfirm:ze,clearConfirm:Re},Ye={settings:{style:{padding:"0 12px",overflow:"auto",flex:"0 0 14em",boxShadow:"inset 0px 0px 10px rgba(0, 0, 0, 0.4)",height:"100%",minWidth:195}}},Le=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).filter((function(t){return e[t]&&Ae[t]})).map((function(e){var t=Ae[e];return o().createElement(t,xe({key:e},Ye[e]||{}))}))},Ve=function(e){var t=e.hideCloseButton,n=e.hideLayerTitle,r=e.toolbarItems,i=e.pluginCfg;return o().createElement(Be,{hideCloseButton:t,hideLayerTitle:n},o().createElement(Fe,{pluginCfg:i,toolbarItems:r}))},qe=function(e){return e.focusOnEdit&&e.hasChanges||e.newFeatures.length>0?null:o().createElement(Ge,null)},We=(0,a.P1)((function(e){return e}),(function(e){return e?((0,fe.getFeatureTypeProperties)(e)||[]).reduce((function(e,t){return Ie(Ie({},e),{},Ne({},t.name,(0,i.connect)((0,a.P1)((function(e){return(0,S.g5)(e,t.name)}),S.eK,(function(e,n){var r=Ie({value:e&&(e.rawValue||e.value)},(0,fe.isGeometryType)(t)?{filterEnabled:null==e?void 0:e.enabled,filterDeactivated:null==e?void 0:e.deactivated}:{}),o=(0,fe.isGeometryType)(t)?{}:{disabled:!0,tooltipMsgId:"featuregrid.filter.tooltips.editMode"};return"EDIT"===n?Ie(Ie({},r),o):r})))((0,T.Q)((0,fe.isGeometryType)(t)?"geometry":t.localType,{name:t.name}))))}),{}):{}}));function Ke(e){return Ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ke(e)}function Ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function He(e){for(var t=1;t11?arguments[11]:void 0,a=arguments.length>16?arguments[16]:void 0,l=arguments.length>17?arguments[17]:void 0,c=arguments.length>18?arguments[18]:void 0;return{open:e,customEditorsOptions:t,autocompleteEnabled:n,url:r,typeName:o,hasChanges:arguments.length>13?arguments[13]:void 0,newFeatures:arguments.length>12&&void 0!==arguments[12]?arguments[12]:$e,features:arguments.length>5&&void 0!==arguments[5]?arguments[5]:$e,describe:arguments.length>6?arguments[6]:void 0,attributes:arguments.length>7?arguments[7]:void 0,tools:arguments.length>8?arguments[8]:void 0,select:arguments.length>9?arguments[9]:void 0,mode:arguments.length>10?arguments[10]:void 0,focusOnEdit:arguments.length>14?arguments[14]:void 0,enableColumnFilters:arguments.length>15?arguments[15]:void 0,changes:(0,h.rK)(i),pagination:a,pages:l,size:c}})),tt=(0,m.compose)((0,i.connect)((function(){return{}}),(function(e){return{onMount:(0,l.DE)(O.Z_,e),setSyncTool:(0,l.DE)(O.gL,e)}})),(0,m.lifecycle)({componentDidMount:function(){this.props.onMount(f()(this.props,["showFilteredObject","showTimeSync","timeSync","customEditorsOptions"])),this.props.enableMapFilterSync?this.props.setSyncTool(!0):this.props.setSyncTool(!1)},componentDidUpdate:function(e){var t=f()(this.props,["showFilteredObject","showTimeSync","timeSync","customEditorsOptions"]),n=f()(e,["showFilteredObject","showTimeSync","timeSync","customEditorsOptions"]);d()(t,n)||this.props.onMount(t),this.props.enableMapFilterSync?this.props.setSyncTool(!0):this.props.setSyncTool(!1)}}),(0,i.connect)(et,(function(e){return{gridEvents:(0,l.DE)(Ee,e),pageEvents:(0,l.DE)(je,e),initPlugin:(0,l.DE)((function(e){return(0,O.QT)(e)}),e),toolbarEvents:(0,l.DE)(Pe,e),gridTools:Se.map((function(t){return He(He({},t),{},{events:(0,l.DE)(t.events,e)})})),onSizeChange:function(){return e(O.Ox.apply(void 0,arguments))}}})))((function(){var e,t,n,i,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{tools:Je,dialogs:Je,select:$e},l=null===(e=a.virtualScroll)||void 0===e||e,c=null==a||null===(t=a.pluginCfg)||void 0===t?void 0:t.maxZoom,u={dimMode:"none",defaultSize:.35,fluid:!0,isVisible:a.open,maxDockSize:.7,minDockSize:.1,position:"bottom",setDockSize:function(){},zIndex:1060},s=(null!==(n=null==a?void 0:a.items)&&void 0!==n?n:[]).filter((function(e){return"toolbar"===e.target}));return(0,r.useEffect)((function(){a.initPlugin({virtualScroll:l,editingAllowedRoles:a.editingAllowedRoles,maxStoredPages:a.maxStoredPages})}),[l,(null!==(i=a.editingAllowedRoles)&&void 0!==i?i:[]).join(","),a.maxStoredPages]),o().createElement(Xe,Qe({},u,{onSizeChange:function(e){a.onSizeChange(e,u)}}),a.open&&o().createElement(y.Z,null,(function(e){var t=e.height;return o().createElement(v.Z,{className:"feature-grid-container",key:"feature-grid-container",height:t-74,header:Ve({toolbarItems:s,hideCloseButton:a.hideCloseButton,hideLayerTitle:a.hideLayerTitle,pluginCfg:a.pluginCfg}),columns:Le(a.tools),footer:qe(a)},function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).filter((function(t){return e[t]&&_e[t]})).map((function(e){var t=_e[e];return o().createElement(t,{key:e})}))}(a.tools),o().createElement(g.default,{showCheckbox:a.showCheckbox,editingAllowedRoles:a.editingAllowedRoles,customEditorsOptions:a.customEditorsOptions,autocompleteEnabled:a.autocompleteEnabled,url:a.url,typeName:a.typeName,filterRenderers:We(a.describe),enableColumnFilters:a.enableColumnFilters,emptyRowsView:Ze,focusOnEdit:a.focusOnEdit,newFeatures:a.newFeatures,changes:a.changes,mode:a.mode,select:a.select,key:"feature-grid-container",columnSettings:a.attributes,gridEvents:a.gridEvents,pageEvents:a.pageEvents,describeFeatureType:a.describe,features:a.features,minHeight:600,tools:a.gridTools,pagination:a.pagination,pages:a.pages,virtualScroll:l,maxStoredPages:a.maxStoredPages,vsOverScan:a.vsOverScan,scrollDebounce:a.scrollDebounce,size:a.size,actionOpts:{maxZoom:c}}))})))}));const nt=tt},210308:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(923645),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,"#featuregrid-toolbar .snap-tool.split-button .dropdown-menu {\n min-width: 250px;\n min-height: 200px;\n overflow: hidden !important;\n}\n#featuregrid-toolbar .snap-tool.split-button .dropdown-menu > label,\n#featuregrid-toolbar .snap-tool.split-button .dropdown-menu .form-group > label {\n padding: 3px 10px;\n margin-bottom: 0;\n}\n#featuregrid-toolbar .snap-tool.split-button .dropdown-menu .Select {\n margin: 0 15px;\n}\n#featuregrid-toolbar .snap-tool.split-button .Select-menu-outer .Select-menu {\n overflow: auto;\n max-height: 150px;\n}\n",""]);const i=o},213506:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(923645),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,"\n.msgapi .featuregrid-toolbar {\n margin-top: 5px;\n margin-bottom: 5px;\n}\n\n.msgapi #featuregrid-toolbar .btn {\n overflow: hidden;\n}\n\n.msgapi #featuregrid-toolbar .spinner {\n margin: 0 auto;\n width: 100%;\n}\n\n.msgapi #featuregrid-toolbar .spinner > div {\n background-color: white;\n width: 8px;\n height: 8px;\n}\n",""]);const i=o},945177:(e,t,n)=>{"use strict";var r=n(595318);t.__esModule=!0,t.default=void 0;var o,i=r(n(250139)),a="clearTimeout",l=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-u)),r=setTimeout(e,n);return u=t,r},c=function(e,t){return e+(e?t[0].toUpperCase()+t.substr(1):t)+"AnimationFrame"};i.default&&["","webkit","moz","o","ms"].some((function(e){var t=c(e,"request");if(t in window)return a=c(e,"cancel"),l=function(e){return window[t](e)}}));var u=(new Date).getTime();(o=function(e){return l(e)}).cancel=function(e){window[a]&&"function"==typeof window[a]&&window[a](e)};var s=o;t.default=s,e.exports=t.default},93054:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=function(e){if("function"!=typeof e)throw new TypeError("You must provide a valid moment object");var t="function"==typeof e().locale?"locale":"lang";if(!e.localeData)throw new TypeError("The Moment localizer depends on the `localeData` api, please provide a moment object v2.2.0 or higher");function n(n,r,o){return n?e(r,o)[t](n):e(r,o)}var r={formats:{date:"L",time:"LT",default:"lll",header:"MMMM YYYY",footer:"LL",weekday:"dd",dayOfMonth:"DD",month:"MMM",year:"YYYY",decade:function(t,n,r){return r.format(t,"YYYY",n)+" - "+r.format(function(t){return e(t).add(10,"year").add(-1,"millisecond").toDate()}(t),"YYYY",n)},century:function(t,n,r){return r.format(t,"YYYY",n)+" - "+r.format(function(t){return e(t).add(100,"year").add(-1,"millisecond").toDate()}(t),"YYYY",n)}},firstOfWeek:function(t){return e.localeData(t).firstDayOfWeek()},parse:function(e,t,r){if(!e)return null;var o=n(r,e,t);return o.isValid()?o.toDate():null},format:function(e,t,r){return n(r,e).format(t)}};return o.default.setDateLocalizer(r),r};var r,o=(r=n(577036))&&r.__esModule?r:{default:r};e.exports=t.default}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/58853.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/58853.affd309bf2aa3f38d3a0.chunk.js deleted file mode 100644 index 3806655b6d..0000000000 --- a/geonode_mapstore_client/static/mapstore/dist/js/58853.affd309bf2aa3f38d3a0.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[58853],{247361:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var r=n(675263),o=n.n(r),i=n(124852),a=n.n(i),l=n(414293),c=n.n(l),u=n(868195);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t{"use strict";n.d(t,{Z:()=>s});var r=n(867076),o=n(815135),i=n(159979);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}var l=["renderPopover","popoverOptions"];function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==a(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===a(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const s=(0,r.compose)((0,r.withProps)((function(e){var t=e.renderPopover,n=e.popoverOptions;return function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,l))})),(0,r.branch)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.renderPopover,n=e.popoverOptions;return t&&!!n}),i.Z,o.Z))},159979:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r=n(124852),o=n.n(r),i=n(352595),a=n(480681),l=n(957557),c=n.n(l),u=n(180307),s=n.n(u);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}var p=["popoverOptions","keyProp"];function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(n,p);return o().createElement("span",{className:"mapstore-info-popover"},o().createElement(e,d({},c()(u,["renderPopover","tooltipId"]),{key:l,ref:function(e){t=e}})),o().createElement(i.Z,{placement:r.placement,shouldUpdatePosition:!0,show:!0,target:function(){return s().findDOMNode(t)}},o().createElement(a.Popover,r.props,r.content)))}}])&&m(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),v}(o().Component)}},656903:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(124852),o=n.n(r),i=n(480681),a=n(38560),l=["disabled","id","visible","onClick","glyph","active","className"];function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,l);return o().createElement(a.Z,c({ref:t},y,{bsStyle:d?"success":"primary",disabled:n,id:"fg-".concat(r),style:f(u),className:b,onClick:function(){return!n&&s()}}),o().createElement(i.Glyphicon,{glyph:p}))}))},38560:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(480681),o=n(124852),i=n.n(o),a=n(294184),l=n.n(a),c=["disabled","className","onClick"];function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,c);return i().createElement(f,u({ref:t,className:n?l()("disabled",r):r,onClick:function(){n||a.apply(void 0,arguments)}},s),s.children)})));var f},501262:(e,t,n)=>{"use strict";n.d(t,{Z:()=>S});var r=n(727418),o=n.n(r),i=n(675263),a=n.n(i),l=n(124852),c=n.n(l),u=n(180307),s=n.n(u),f=n(480681),p=n(38560),d=n(805346),m=n(807472);function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function y(e,t){for(var n=0;n{"use strict";n.d(t,{Z:()=>j});var r=n(727418),o=n.n(r),i=n(675263),a=n.n(i),l=n(124852),c=n.n(l),u=n(485294),s=n.n(u),f=n(472986),p=n.n(f),d=n(805346);function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t0})),w(h(e),"onClickOut",(function(t){e.props.onClickOut&&e.mask===t.target&&e.props.onClickOut(t)})),e}return t=l,(n=[{key:"render",value:function(){var e=this,t=c().createElement("div",{id:this.props.id,style:y({},this.props.style),className:"".concat(this.props.draggable?"modal-dialog-draggable":""," ").concat(this.props.className," modal-dialog-container")},c().createElement("div",{className:this.props.headerClassName+" draggable-header"},this.renderRole("header")),c().createElement("div",{className:this.props.bodyClassName},this.renderLoading(),this.renderRole("body")),this.hasRole("footer")?c().createElement("div",{className:this.props.footerClassName},this.renderRole("footer")):c().createElement("span",null)),n=this.props.draggable?c().createElement(s(),{defaultPosition:this.props.start,bounds:this.props.bounds,handle:".draggable-header, .draggable-header *"},t):t,r=o()({},this.props.style.display?{display:this.props.style.display}:{},this.props.backgroundStyle);return this.props.modal?c().createElement("div",{ref:function(t){e.mask=t},onClick:this.onClickOut,style:r,className:"fade in modal "+this.props.containerClassName,role:"dialog"},n):n}}])&&g(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(c().Component);w(S,"propTypes",{id:a().string.isRequired,style:a().object,backgroundStyle:a().object,className:a().string,maskLoading:a().bool,containerClassName:a().string,headerClassName:a().string,bodyClassName:a().string,footerClassName:a().string,onClickOut:a().func,modal:a().bool,start:a().object,draggable:a().bool,bounds:a().oneOfType([a().string,a().object])}),w(S,"defaultProps",{style:{},backgroundStyle:{background:"rgba(0,0,0,.5)"},start:{x:0,y:150},className:"modal-dialog modal-content",maskLoading:!1,containerClassName:"",headerClassName:"modal-header",bodyClassName:"modal-body",footerClassName:"modal-footer",modal:!1,draggable:!0,bounds:"parent"});const j=S},352595:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=(0,n(461365).Z)(n(480681).Overlay)},399534:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(461365),o=n(356936);const i=(0,r.Z)(o.h_)},273849:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(867076),o=n(828878),i=n(49977),a=n.n(i);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return u(u({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),e)}))})))},75460:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>ot});var r=n(124852),o=n.n(r),i=n(171703),a=n(22222),l=n(12838),c=n(227361),u=n.n(c),s=n(478718),f=n.n(s),p=n(618446),d=n.n(p),m=n(867076),b=n(732833),y=n(496259),g=n(588300),v=n(965539),h=n(196958),O=n(433528),w=n(55105),E=n(824260),S=n(731255),j=n(501262),P=n(399534),C=n(805346),k=n(830029),T=n(118027),x=n(480681),D=n(472986),I=n.n(D),N=n(38560),Z=n(893379),F=n.n(Z),B=n(213506);F()(B.Z,{insert:"head",singleton:!1}),B.Z.locals;var G=n(189734),M=n.n(G),R=n(921533),z=n(656903),A=n(415124),_=n(210308);F()(_.Z,{insert:"head",singleton:!1}),_.Z.locals;var Y=n(294184),L=n.n(Y);function V(e){return V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},V(e)}var q=["disabled","id","visible","onClick","active","title","buttonClassName","menuStyle","className","children","onMount"];function W(){return W=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,q),E=(n=(0,r.useState)(!1),i=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(n,i)||function(e,t){if(e){if("string"==typeof e)return Q(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Q(e,t):void 0}}(n,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),S=E[0],j=E[1];return(0,r.useEffect)((function(){"function"==typeof O&&O()}),[]),!!c&&o().createElement(y.Z,null,o().createElement(x.Dropdown,{className:L()(U({"split-button":!0},g?H({},g,!0):{})),open:S,onToggle:function(e,t){t&&j(e)}},o().createElement(x.Button,W({ref:t,id:l,onClick:function(){return!a&&u()},className:d,bsStyle:s?"success":"primary"},w),f),o().createElement(x.Dropdown.Toggle,{bsStyle:s?"success":"primary"}),o().createElement(x.Dropdown.Menu,{style:b,onSelect:function(e){["number","text"].includes(e.target.type)?j(!0):j(!S)}},v)))}));var J=n(743129);function X(e){return X="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},X(e)}var ee=["position"];function te(){return te=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&!i&&!a,onClick:c.deleteFeatures,glyph:"trash-square"})},saveFeature:function(e){var t=e.saving,n=void 0!==t&&t,r=e.saved,i=void 0!==r&&r,a=e.disabled,l=e.mode,c=e.hasChanges,u=e.hasNewFeatures,s=e.events,f=void 0===s?{}:s;return o().createElement(ie,{id:"save-feature",keyProp:"save-feature",tooltipId:ce({saving:n,saved:i}),disabled:n||i||a,visible:"EDIT"===l&&c||u,active:i,onClick:f.saveChanges,glyph:"floppy-disk"})},cancelEditing:function(e){var t=e.disabled,n=e.mode,r=e.hasChanges,i=e.hasNewFeatures,a=e.events,l=void 0===a?{}:a;return o().createElement(ie,{id:"cancel-editing",keyProp:"cancel-editing",tooltipId:"featuregrid.toolbar.cancelChanges",disabled:t,visible:"EDIT"===n&&r||i,onClick:l.clearFeatureEditing,glyph:"remove-square"})},deleteGeometry:function(e){var t=e.disabled,n=e.mode,r=e.hasGeometry,i=e.selectedCount,a=e.hasSupportedGeometry,l=void 0===a||a,c=e.events,u=void 0===c?{}:c;return o().createElement(ie,{id:"delete-geometry",keyProp:"delete-geometry",tooltipId:"featuregrid.toolbar.deleteGeometry",disabled:t,visible:"EDIT"===n&&r&&1===i&&l,onClick:u.deleteGeometry,glyph:"polygon-trash"})},gridSettings:function(e){var t=e.disabled,n=e.isColumnsOpen,r=e.selectedCount,i=e.mode,a=e.events,l=void 0===a?{}:a;return o().createElement(ie,{id:"grid-settings",keyProp:"grid-settings",tooltipId:"featuregrid.toolbar.hideShowColumns",disabled:t,active:n,visible:r<=1&&"VIEW"===i,onClick:l.settings,glyph:"features-grid-set"})},syncGridFilterToMap:function(e){var t=e.disabled,n=e.isSyncActive,r=void 0!==n&&n,i=e.showSyncOnMapButton,a=void 0===i||i,l=e.events,c=void 0===l?{}:l,u=e.syncPopover,s=void 0===u?{showPopoverSync:!0,dockSize:"32.2%"}:u;return o().createElement(ie,{id:"grid-map-filter",keyProp:"grid-map-filter",tooltipId:"featuregrid.toolbar.syncOnMap",disabled:t,active:r,visible:a,onClick:c.sync,glyph:"map-filter",renderPopover:s.showPopoverSync,popoverOptions:!t&&{placement:"top",content:o().createElement("span",null,o().createElement("p",null,o().createElement(C.Z,{msgId:"featuregrid.toolbar.synchPopoverText"})),o().createElement("p",null,o().createElement(x.Checkbox,{checked:s.showAgain,onClick:c.toggleShowAgain},o().createElement(C.Z,{msgId:"featuregrid.toolbar.notShowAgain"})))),props:{id:"sync-popover",title:o().createElement("div",null,o().createElement(C.Z,{msgId:"featuregrid.toolbar.synchPopoverTitle"}),o().createElement("button",{onClick:function(){if(s.showAgain)try{(0,A.ac)().setItem("showPopoverSync",!1)}catch(e){console.error(e)}c.hideSyncPopover()},className:"close"},o().createElement(x.Glyphicon,{className:"pull-right",glyph:"1-close"}))),style:{bottom:s.dockSize}}}})},syncTimeParameter:function(e){var t=e.timeSync,n=e.showTimeSyncButton,r=void 0!==n&&n,i=e.events,a=void 0===i?{}:i;return o().createElement(ie,{id:"timeSync-button",keyProp:"fg-timeSync-button",tooltipId:t?"featuregrid.toolbar.disableTimeSync":"featuregrid.toolbar.enableTimeSync",visible:r,active:t,onClick:function(){return a.setTimeSync&&a.setTimeSync(!t)},glyph:"time"})},snapToFeature:function(e){var t,n,r,i,a,l,c,u,s,f,p,d,m,b=e.snapping,y=e.availableSnappingLayers,g=void 0===y?[]:y,v=e.isSnappingLoading,h=e.snappingConfig,O=e.mode,w=e.mapType,E=e.editorHeight,S=e.pluginCfg,j=e.events,P=void 0===j?{}:j;return o().createElement(ae,{id:"snap-button",keyProp:"snap-button",tooltipId:b?"featuregrid.toolbar.disableSnapping":"featuregrid.toolbar.enableSnapping",visible:"EDIT"===O&&(null===(t=null==S?void 0:S.snapTool)||void 0===t||t)&&"openlayers"===w,onClick:function(){P.toggleSnapping&&P.toggleSnapping(!b)},onMount:function(){return!h&&P.setSnappingConfig&&P.setSnappingConfig(null,null,S)},title:v?o().createElement(I(),{spinnerName:"ball-beat",overrideSpinnerClassName:"spinner",key:"loadingSpinner",noFadeIn:!0}):o().createElement(x.Glyphicon,{glyph:"magnet"}),tooltipPosition:"top",className:"snap-tool",buttonClassName:"square-button-md no-border",menuStyle:{maxHeight:"calc(".concat(Math.round(100*E),"vh - 50px)"),overflowY:"auto"},active:!!b,pullLeft:!0},o().createElement(o().Fragment,null,o().createElement("label",{className:"control-label"},o().createElement(C.Z,{msgId:"featuregrid.toolbar.snapToLayer"})),o().createElement(J.ZP,{clearable:!1,escapeClearsValue:!1,options:g,onChange:function(e){return P.setSnappingLayer(e.value)},value:g.find((function(e){return e.active}))})),o().createElement("label",{className:"control-label"},o().createElement(C.Z,{msgId:"featuregrid.toolbar.snappingSettings.header"})),o().createElement(x.FormGroup,null,o().createElement(x.Col,{xs:6},o().createElement(x.Checkbox,{key:"edge",checked:null===(n=null!==(r=null==h?void 0:h.edge)&&void 0!==r?r:null==S||null===(i=S.snapConfig)||void 0===i?void 0:i.edge)||void 0===n||n,inline:!0,onChange:function(e){return P.setSnappingConfig(e.target.checked,"edge",S)}},o().createElement(C.Z,{msgId:"featuregrid.toolbar.snappingSettings.edge"}))),o().createElement(x.Col,{xs:6},o().createElement(x.Checkbox,{key:"vertex",checked:null===(a=null!==(l=null==h?void 0:h.vertex)&&void 0!==l?l:null==S||null===(c=S.snapConfig)||void 0===c?void 0:c.vertex)||void 0===a||a,inline:!0,onChange:function(e){return P.setSnappingConfig(e.target.checked,"vertex",S)}},o().createElement(C.Z,{msgId:"featuregrid.toolbar.snappingSettings.vertex"}))),o().createElement("span",{className:"clearfix"})),o().createElement(x.FormGroup,null,o().createElement(x.Col,{xs:7},o().createElement("span",{className:"inline-control-label"},o().createElement(C.Z,{msgId:"featuregrid.toolbar.snappingSettings.pixelTolerance"}))),o().createElement(x.Col,{xs:5},o().createElement(x.FormControl,{key:"pixelTolerance",type:"number",onChange:function(e){return P.setSnappingConfig(e.target.value,"pixelTolerance",S)},defaultValue:null!==(u=null!==(s=null==h?void 0:h.pixelTolerance)&&void 0!==s?s:null==S||null===(f=S.snapConfig)||void 0===f?void 0:f.pixelTolerance)&&void 0!==u?u:10})),o().createElement("span",{className:"clearfix"})),o().createElement(x.FormGroup,null,o().createElement(x.Col,{xs:7},o().createElement("span",{className:"inline-control-label"},o().createElement(C.Z,{msgId:"featuregrid.toolbar.snappingSettings.loadingStrategy"}))),o().createElement(x.Col,{xs:5},o().createElement(x.FormControl,{componentClass:"select",defaultValue:null!==(p=null!==(d=null==h?void 0:h.strategy)&&void 0!==d?d:null==S||null===(m=S.snapConfig)||void 0===m?void 0:m.strategy)&&void 0!==p?p:"bbox",onChange:function(e){return P.setSnappingConfig(e.target.value,"strategy",S)}},o().createElement("option",{value:"bbox"},"bbox"),o().createElement("option",{value:"all"},"all"))),o().createElement("span",{className:"clearfix"})))}},se=[{name:"editMode",Component:ue.editMode},{name:"backToViewMode",Component:ue.backToViewMode},{name:"addFeature",Component:ue.addFeature},{name:"drawFeature",Component:ue.drawFeature},{name:"removeFeature",Component:ue.removeFeature},{name:"saveFeature",Component:ue.saveFeature},{name:"cancelEditing",Component:ue.cancelEditing},{name:"deleteGeometry",Component:ue.deleteGeometry},{name:"filter",Component:ue.filter},{name:"zoomAll",Component:ue.zoomAll},{name:"gridSettings",position:900,Component:ue.gridSettings},{name:"snap",position:1300,Component:ue.snapToFeature},{name:"syncGridFilterToMap",position:1100,Component:ue.syncGridFilterToMap},{name:"syncTimeParameter",Component:ue.syncTimeParameter}].map((function(e,t){var n=e.position;return re(re({},function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,ee)),{},{position:null!=n?n:t})})),fe=n(93152),pe=n(378889);const de={onGridSort:function(e,t){return(0,O.DY)(e,t)},onAddFilter:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,O.a8)(e)},onTemporaryChanges:function(e){return(0,O.aT)(e)},onGridRowsUpdated:function(e,t){var n,r,o=e.fromRow,i=e.toRow,a=e.updated,l=(n=o,r=i,Array.from({length:r+1-n},(function(e,t){return t+n}))).map((function(e){return t(e)})).filter((function(e){return Object.keys(a||{}).filter((function(t){return e.properties[t]!==a[t]})).length>0}));return(0,O.nG)(l,a)},onRowsToggled:function(e,t){return(0,O.KD)(e.map((function(e){return t(e.rowIdx)})),!1)},onRowsSelected:function(e,t){return(0,O.KD)(e.map((function(e){return t(e.rowIdx)})),!0)},onRowsDeselected:function(e,t){return(0,O.gr)(e.map((function(e){return t(e.rowIdx)})))}};var me=n(813292),be=n.n(me),ye=n(801550),ge=n(950966);const ve=[{name:"",key:"geometry",width:35,frozen:!0,events:{onClick:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.crs,i=r.maxZoom;return e.geometry?(0,ye.Px)(be()(e),o||"EPSG:4326",i):{type:"NONE"}}},formatter:function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).value?o().createElement(ge.Z,{placement:"top",overlay:o().createElement(x.Tooltip,{id:"fe-zoom-object"},o().createElement(C.Z,{msgId:"featuregrid.zoomObject"}))},o().createElement(x.Glyphicon,{glyph:"zoom-to"})):o().createElement(ge.Z,{placement:"top",overlay:o().createElement(x.Tooltip,{id:"fe-save-features"},o().createElement(C.Z,{msgId:"featuregrid.missingGeometry"}))},o().createElement(x.Glyphicon,{glyph:"exclamation-mark"}))}}],he={onPageChange:function(e,t){return(0,O.oO)(e,t)},moreFeatures:O.zd};var Oe=n(95797),we=n(604206);const Ee={createFeature:function(){return(0,O.lx)([{}])},saveChanges:function(){return(0,O.$S)()},clearFeatureEditing:function(){return(0,O.Pv)("clearConfirm",!0)},deleteGeometry:function(){return(0,O.pX)()},deleteFeatures:function(){return(0,O.Pv)("deleteConfirm",!0)},settings:function(){return(0,O.Pv)("settings")},switchEditMode:function(){return(0,O.lg)()},startEditingFeature:function(){return(0,O.sY)()},startDrawingFeature:function(){return(0,O.kA)()},switchViewMode:function(){return(0,O.nY)()},onClose:function(){return(0,O.JK)()},showQueryPanel:function(){return(0,O.MY)()},zoomAll:function(){return(0,O.ve)()},sync:function(){return(0,Oe.XO)()},setTimeSync:O.Yb,hideSyncPopover:function(){return(0,O.Pl)()},toggleShowAgain:function(){return(0,O.Ib)()},toggleSnapping:function(){return(0,we.oJ)()},setSnappingLayer:function(e){return(0,we.k4)(e)},setSnappingConfig:function(e,t,n){return(0,we.Li)(e,t,n)}};var Se=de,je=ve,Pe=he,Ce=Ee;const ke=(0,i.connect)((function(e){return{attributes:(0,S.o)(e)}}),{onChange:function(e,t){return(0,O.an)(e,"hide",t)}})((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.style,n=void 0===t?{}:t,r=e.titleMsg,i=void 0===r?"featuregrid.columns":r,a=e.onChange,l=void 0===a?function(){}:a,c=e.attributes,u=void 0===c?[]:c;return o().createElement("div",{className:"bg-body data-attribute-selector",style:n},o().createElement("h4",{className:"text-center"},o().createElement("strong",null,o().createElement(C.Z,{msgId:i}))),o().createElement("div",null,u.map((function(e){return o().createElement(x.Checkbox,{key:e.attribute||e.name,checked:!e.hide,onChange:function(){return l(e.attribute,!e.hide)}},e.label||e.attribute)}))))}));var Te=n(120096);function xe(e){return xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xe(e)}function De(){return De=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.toolbarItems,n=void 0===t?[]:t;return o().createElement(x.ButtonGroup,{id:"featuregrid-toolbar",className:"featuregrid-toolbar featuregrid-toolbar-margin"},M()(se.concat(n),["position"]).map((function(t){var n,r=t.Component;return o().createElement(r,te({},e,{mode:null!==(n=null==e?void 0:e.mode)&&void 0!==n?n:"VIEW",disabled:e.disableToolbar}))})))})),Ge=(0,i.connect)((0,a.P1)(S.Sj,(function(e){return{title:e}})),{onClose:Ce.onClose})((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{onDownloadToggle:function(){}};return o().createElement("div",{className:"data-grid-top-toolbar"},o().createElement("div",{className:"data-grid-top-toolbar-left"},e.children),!e.hideLayerTitle&&o().createElement("div",{className:"data-grid-top-toolbar-title"},e.title),o().createElement("div",{className:"data-grid-top-toolbar-right"},!e.hideCloseButton&&o().createElement(N.Z,{onClick:e.onClose,className:"square-button-md no-border featuregrid-top-toolbar-margin"},o().createElement(x.Glyphicon,{glyph:"1-close"}))))})),Me=(0,i.connect)((0,a.P1)((0,a.zB)(E.b0),E.gy,(function(e){return e&&e.featuregrid&&!!e.featuregrid.virtualScroll}),S.jY,(function(e,t,n,r){return Ne(Ne({},e),{},{selected:r,loading:t,virtualScroll:n})})),Pe)((function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{loading:!1,onPageChange:function(){}},r=(0,h.DR)(n),i=r.page,a=void 0===i?0:i,l=r.size,c=void 0===l?0:l,u=r.resultSize,s=void 0===u?0:u,f=r.maxPages,p=void 0===f?0:f,d=r.total,m=void 0===d?0:d;return o().createElement(x.Grid,{className:"bg-body data-grid-bottom-toolbar",fluid:!0,style:{width:"100%"}},o().createElement(x.Row,{className:"featuregrid-toolbar-margin"},o().createElement(x.Col,{md:3},o().createElement("span",null,o().createElement(C.Z,{msgId:n.virtualScroll?"featuregrid.resultInfoVirtual":"featuregrid.resultInfo",msgParams:{start:a*c+1,end:a*c+s,total:m,selected:null!==(e=n.selected)&&void 0!==e?e:0}}))," ",n.selected>0?o().createElement("span",null,o().createElement(C.Z,{msgId:"featuregrid.selectedInfo",msgParams:{selected:null!==(t=n.selected)&&void 0!==t?t:0}})):null),n.virtualScroll?null:o().createElement(x.Col,{className:"text-center",md:6},o().createElement(N.Z,{key:"first-page",onClick:function(){return n.onPageChange(0)},disabled:0===a,className:"no-border first-page"},o().createElement(x.Glyphicon,{glyph:"step-backward"})),o().createElement(N.Z,{key:"prev-page",onClick:function(){return n.onPageChange(a-1)},disabled:0===a,className:"no-border prev-page"},o().createElement(x.Glyphicon,{glyph:"chevron-left"})),o().createElement("span",{key:"page-info"},o().createElement(C.Z,{msgId:"featuregrid.pageInfo",msgParams:{page:a+1,totalPages:p+1}})),o().createElement(N.Z,{key:"next-page",onClick:function(){return n.onPageChange(a+1)},className:"no-border next-page",disabled:a>=p},o().createElement(x.Glyphicon,{glyph:"chevron-right"})),o().createElement(N.Z,{key:"last-page",onClick:function(){return n.onPageChange(p)},className:"no-border last-page",disabled:a>=p},o().createElement(x.Glyphicon,{glyph:"step-forward"})))," ",o().createElement(x.Col,{md:3},n.loading?o().createElement("span",{style:{float:"right"}},o().createElement(C.Z,{msgId:"loading"}),o().createElement(I(),{spinnerName:"circle",style:{float:"right"},noFadeIn:!0})):null)))})),Re=(0,i.connect)((0,a.P1)(S.jY,(function(e){return{count:e}})),{onClose:function(){return(0,O.Pv)("deleteConfirm",!1)},onConfirm:function(){return(0,O.Uz)()}})((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onClose,n=void 0===t?function(){}:t,r=e.saving,i=void 0!==r&&r,a=e.count,l=e.onConfirm,c=void 0===l?function(){}:l;return o().createElement(P.Z,null,o().createElement(j.Z,{show:!0,onClose:n,onConfirm:c,confirmButtonBSStyle:"default",closeGlyph:"1-close",confirmButtonContent:o().createElement(C.Z,{msgId:"featuregrid.deleteButton"}),confirmButtonDisabled:i},o().createElement(C.Z,{msgId:"featuregrid.delete",msgParams:{count:a}})))})),ze=(0,i.connect)((0,a.P1)(S.jY,(function(e){return{count:e}})),{onClose:function(){return(0,O.Pv)("clearConfirm",!1)},onConfirm:function(){return(0,O.oL)()}})((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onClose,n=void 0===t?function(){}:t,r=e.saving,i=void 0!==r&&r,a=e.onConfirm,l=void 0===a?function(){}:a;return o().createElement(P.Z,null,o().createElement(j.Z,{draggable:!1,show:!0,onClose:n,onConfirm:l,confirmButtonBSStyle:"default",closeGlyph:"1-close",confirmButtonContent:o().createElement(C.Z,{msgId:"featuregrid.yesButton"}),confirmButtonDisabled:i,closeText:o().createElement(C.Z,{msgId:"featuregrid.noButton"})},o().createElement(C.Z,{msgId:"featuregrid.clear"})))})),Ae=(0,i.connect)((function(){return{}}),{onClose:function(){return(0,O.Ap)()},onConfirm:function(){return(0,O.YV)()}})((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onClose,n=void 0===t?function(){}:t,r=e.saving,i=void 0!==r&&r,a=e.onConfirm,l=void 0===a?function(){}:a;return o().createElement(P.Z,null,o().createElement(j.Z,{show:!0,onClose:n,onConfirm:l,confirmButtonBSStyle:"default",closeGlyph:"1-close",confirmButtonContent:o().createElement(C.Z,{msgId:"featuregrid.yesButton"}),confirmButtonDisabled:i,closeText:o().createElement(C.Z,{msgId:"featuregrid.noButton"})},o().createElement(C.Z,{msgId:"featuregrid.featureClose"})))})),_e={settings:ke},Ye={deleteConfirm:Re,featureCloseConfirm:Ae,clearConfirm:ze},Le={settings:{style:{padding:"0 12px",overflow:"auto",flex:"0 0 14em",boxShadow:"inset 0px 0px 10px rgba(0, 0, 0, 0.4)",height:"100%",minWidth:195}}},Ve=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).filter((function(t){return e[t]&&_e[t]})).map((function(e){var t=_e[e];return o().createElement(t,De({key:e},Le[e]||{}))}))},qe=function(e){var t=e.hideCloseButton,n=e.hideLayerTitle,r=e.toolbarItems,i=e.pluginCfg;return o().createElement(Ge,{hideCloseButton:t,hideLayerTitle:n},o().createElement(Be,{pluginCfg:i,toolbarItems:r}))},We=function(e){return e.focusOnEdit&&e.hasChanges||e.newFeatures.length>0?null:o().createElement(Me,null)},Ke=(0,a.P1)((function(e){return e}),(function(e){return e?((0,pe.getFeatureTypeProperties)(e)||[]).reduce((function(e,t){return Ne(Ne({},e),{},Ze({},t.name,(0,i.connect)((0,a.P1)((function(e){return(0,S.g5)(e,t.name)}),S.eK,(function(e,n){var r=Ne({value:e&&(e.rawValue||e.value)},(0,pe.isGeometryType)(t)?{filterEnabled:null==e?void 0:e.enabled,filterDeactivated:null==e?void 0:e.deactivated}:{}),o=(0,pe.isGeometryType)(t)?{}:{disabled:!0,tooltipMsgId:"featuregrid.filter.tooltips.editMode"};return"EDIT"===n?Ne(Ne({},r),o):r})))((0,T.Q)((0,pe.isGeometryType)(t)?"geometry":t.localType,{name:t.name}))))}),{}):{}}));function Ue(e){return Ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ue(e)}function He(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qe(e){for(var t=1;t11?arguments[11]:void 0,a=arguments.length>16?arguments[16]:void 0,l=arguments.length>17?arguments[17]:void 0,c=arguments.length>18?arguments[18]:void 0;return{open:e,customEditorsOptions:t,autocompleteEnabled:n,url:r,typeName:o,hasChanges:arguments.length>13?arguments[13]:void 0,newFeatures:arguments.length>12&&void 0!==arguments[12]?arguments[12]:Xe,features:arguments.length>5&&void 0!==arguments[5]?arguments[5]:Xe,describe:arguments.length>6?arguments[6]:void 0,attributes:arguments.length>7?arguments[7]:void 0,tools:arguments.length>8?arguments[8]:void 0,select:arguments.length>9?arguments[9]:void 0,mode:arguments.length>10?arguments[10]:void 0,focusOnEdit:arguments.length>14?arguments[14]:void 0,enableColumnFilters:arguments.length>15?arguments[15]:void 0,changes:(0,h.rK)(i),pagination:a,pages:l,size:c}})),rt=(0,m.compose)((0,i.connect)((function(){return{}}),(function(e){return{onMount:(0,l.DE)(O.Z_,e),setSyncTool:(0,l.DE)(O.gL,e)}})),(0,m.lifecycle)({componentDidMount:function(){this.props.onMount(f()(this.props,["showFilteredObject","showTimeSync","timeSync","customEditorsOptions"])),this.props.enableMapFilterSync?this.props.setSyncTool(!0):this.props.setSyncTool(!1)},componentDidUpdate:function(e){var t=f()(this.props,["showFilteredObject","showTimeSync","timeSync","customEditorsOptions"]),n=f()(e,["showFilteredObject","showTimeSync","timeSync","customEditorsOptions"]);d()(t,n)||this.props.onMount(t),this.props.enableMapFilterSync?this.props.setSyncTool(!0):this.props.setSyncTool(!1)}}),(0,i.connect)(nt,(function(e){return{gridEvents:(0,l.DE)(Se,e),pageEvents:(0,l.DE)(Pe,e),initPlugin:(0,l.DE)((function(e){return(0,O.QT)(e)}),e),toolbarEvents:(0,l.DE)(Ce,e),gridTools:je.map((function(t){return Qe(Qe({},t),{},{events:(0,l.DE)(t.events,e)})})),onSizeChange:function(){return e(O.Ox.apply(void 0,arguments))}}})))((function(){var e,t,n,i,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{tools:et,dialogs:et,select:Xe},l=null===(e=a.virtualScroll)||void 0===e||e,c=null==a||null===(t=a.pluginCfg)||void 0===t?void 0:t.maxZoom,u={dimMode:"none",defaultSize:.35,fluid:!0,isVisible:a.open,maxDockSize:.7,minDockSize:.1,position:"bottom",setDockSize:function(){},zIndex:1060},s=(null!==(n=null==a?void 0:a.items)&&void 0!==n?n:[]).filter((function(e){return"toolbar"===e.target}));return(0,r.useEffect)((function(){a.initPlugin({virtualScroll:l,editingAllowedRoles:a.editingAllowedRoles,maxStoredPages:a.maxStoredPages})}),[l,(null!==(i=a.editingAllowedRoles)&&void 0!==i?i:[]).join(","),a.maxStoredPages]),o().createElement(tt,Je({},u,{onSizeChange:function(e){a.onSizeChange(e,u)}}),a.open&&o().createElement(y.Z,null,(function(e){var t=e.height;return o().createElement(v.Z,{className:"feature-grid-container",key:"feature-grid-container",height:t-74,header:qe({toolbarItems:s,hideCloseButton:a.hideCloseButton,hideLayerTitle:a.hideLayerTitle,pluginCfg:a.pluginCfg}),columns:Ve(a.tools),footer:We(a)},function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).filter((function(t){return e[t]&&Ye[t]})).map((function(e){var t=Ye[e];return o().createElement(t,{key:e})}))}(a.tools),o().createElement(g.default,{showCheckbox:a.showCheckbox,editingAllowedRoles:a.editingAllowedRoles,customEditorsOptions:a.customEditorsOptions,autocompleteEnabled:a.autocompleteEnabled,url:a.url,typeName:a.typeName,filterRenderers:Ke(a.describe),enableColumnFilters:a.enableColumnFilters,emptyRowsView:Fe,focusOnEdit:a.focusOnEdit,newFeatures:a.newFeatures,changes:a.changes,mode:a.mode,select:a.select,key:"feature-grid-container",columnSettings:a.attributes,gridEvents:a.gridEvents,pageEvents:a.pageEvents,describeFeatureType:a.describe,features:a.features,minHeight:600,tools:a.gridTools,pagination:a.pagination,pages:a.pages,virtualScroll:l,maxStoredPages:a.maxStoredPages,vsOverScan:a.vsOverScan,scrollDebounce:a.scrollDebounce,size:a.size,actionOpts:{maxZoom:c}}))})))}));const ot=rt},210308:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(923645),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,"#featuregrid-toolbar .snap-tool.split-button .dropdown-menu {\n min-width: 250px;\n min-height: 200px;\n overflow: hidden !important;\n}\n#featuregrid-toolbar .snap-tool.split-button .dropdown-menu > label,\n#featuregrid-toolbar .snap-tool.split-button .dropdown-menu .form-group > label {\n padding: 3px 10px;\n margin-bottom: 0;\n}\n#featuregrid-toolbar .snap-tool.split-button .dropdown-menu .Select {\n margin: 0 15px;\n}\n#featuregrid-toolbar .snap-tool.split-button .Select-menu-outer .Select-menu {\n overflow: auto;\n max-height: 150px;\n}\n",""]);const i=o},213506:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(923645),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,"\n.msgapi .featuregrid-toolbar {\n margin-top: 5px;\n margin-bottom: 5px;\n}\n\n.msgapi #featuregrid-toolbar .btn {\n overflow: hidden;\n}\n\n.msgapi #featuregrid-toolbar .spinner {\n margin: 0 auto;\n width: 100%;\n}\n\n.msgapi #featuregrid-toolbar .spinner > div {\n background-color: white;\n width: 8px;\n height: 8px;\n}\n",""]);const i=o},945177:(e,t,n)=>{"use strict";var r=n(595318);t.__esModule=!0,t.default=void 0;var o,i=r(n(250139)),a="clearTimeout",l=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-u)),r=setTimeout(e,n);return u=t,r},c=function(e,t){return e+(e?t[0].toUpperCase()+t.substr(1):t)+"AnimationFrame"};i.default&&["","webkit","moz","o","ms"].some((function(e){var t=c(e,"request");if(t in window)return a=c(e,"cancel"),l=function(e){return window[t](e)}}));var u=(new Date).getTime();(o=function(e){return l(e)}).cancel=function(e){window[a]&&"function"==typeof window[a]&&window[a](e)};var s=o;t.default=s,e.exports=t.default},93054:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=function(e){if("function"!=typeof e)throw new TypeError("You must provide a valid moment object");var t="function"==typeof e().locale?"locale":"lang";if(!e.localeData)throw new TypeError("The Moment localizer depends on the `localeData` api, please provide a moment object v2.2.0 or higher");function n(n,r,o){return n?e(r,o)[t](n):e(r,o)}var r={formats:{date:"L",time:"LT",default:"lll",header:"MMMM YYYY",footer:"LL",weekday:"dd",dayOfMonth:"DD",month:"MMM",year:"YYYY",decade:function(t,n,r){return r.format(t,"YYYY",n)+" - "+r.format(function(t){return e(t).add(10,"year").add(-1,"millisecond").toDate()}(t),"YYYY",n)},century:function(t,n,r){return r.format(t,"YYYY",n)+" - "+r.format(function(t){return e(t).add(100,"year").add(-1,"millisecond").toDate()}(t),"YYYY",n)}},firstOfWeek:function(t){return e.localeData(t).firstDayOfWeek()},parse:function(e,t,r){if(!e)return null;var o=n(r,e,t);return o.isValid()?o.toDate():null},format:function(e,t,r){return n(r,e).format(t)}};return o.default.setDateLocalizer(r),r};var r,o=(r=n(577036))&&r.__esModule?r:{default:r};e.exports=t.default}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/58869.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/58869.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/58869.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/58869.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/58913.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/58913.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/58913.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/58913.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/59073.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/59073.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/59073.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/59073.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/59078.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/59078.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/59078.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/59078.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/59093.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/59093.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/59093.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/59093.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/59173.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/59173.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/59173.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/59173.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/59350.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/59350.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/59350.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/59350.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/59425.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/59425.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/59425.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/59425.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/5950.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/5950.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/5950.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/5950.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/59615.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/59615.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/59615.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/59615.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/59637.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/59637.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/59637.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/59637.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/59645.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/59645.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/59645.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/59645.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/59698.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/59698.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/59698.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/59698.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/59718.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/59718.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/59718.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/59718.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/59837.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/59837.018dc26183efb561a8b1.chunk.js similarity index 99% rename from geonode_mapstore_client/static/mapstore/dist/js/59837.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/59837.018dc26183efb561a8b1.chunk.js index 1c23d03824..e1de76e31f 100644 --- a/geonode_mapstore_client/static/mapstore/dist/js/59837.affd309bf2aa3f38d3a0.chunk.js +++ b/geonode_mapstore_client/static/mapstore/dist/js/59837.018dc26183efb561a8b1.chunk.js @@ -1,2 +1,2 @@ -/*! For license information please see 59837.affd309bf2aa3f38d3a0.chunk.js.LICENSE.txt */ +/*! For license information please see 59837.018dc26183efb561a8b1.chunk.js.LICENSE.txt */ (self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[59837],{966337:()=>{!function(){"use strict";if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var t=window.document,e=[];i.prototype.THROTTLE_TIMEOUT=100,i.prototype.POLL_INTERVAL=null,i.prototype.USE_MUTATION_OBSERVER=!0,i.prototype.observe=function(t){if(!this._observationTargets.some((function(e){return e.element==t}))){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},i.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t})),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},i.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},i.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},i.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter((function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]}))},i.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}}));return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},i.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(o(window,"resize",this._checkForIntersections,!0),o(t,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in window&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},i.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,r(window,"resize",this._checkForIntersections,!0),r(t,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},i.prototype._checkForIntersections=function(){var t=this._rootIsInDom(),e=t?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(i){var o=i.element,r=s(o),a=this._rootContainsTarget(o),c=i.entry,u=t&&a&&this._computeTargetAndRootIntersection(o,e),h=i.entry=new n({time:window.performance&&performance.now&&performance.now(),target:o,boundingClientRect:r,rootBounds:e,intersectionRect:u});c?t&&a?this._hasCrossedThreshold(c,h)&&this._queuedEntries.push(h):c&&c.isIntersecting&&this._queuedEntries.push(h):this._queuedEntries.push(h)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},i.prototype._computeTargetAndRootIntersection=function(e,n){if("none"!=window.getComputedStyle(e).display){for(var i,o,r,a,u,h,l,f,p=s(e),d=c(e),v=!1;!v;){var g=null,m=1==d.nodeType?window.getComputedStyle(d):{};if("none"==m.display)return;if(d==this.root||d==t?(v=!0,g=n):d!=t.body&&d!=t.documentElement&&"visible"!=m.overflow&&(g=s(d)),g&&(i=g,o=p,void 0,void 0,void 0,void 0,void 0,void 0,r=Math.max(i.top,o.top),a=Math.min(i.bottom,o.bottom),u=Math.max(i.left,o.left),f=a-r,!(p=(l=(h=Math.min(i.right,o.right))-u)>=0&&f>=0&&{top:r,bottom:a,left:u,right:h,width:l,height:f})))break;d=c(d)}return p}},i.prototype._getRootRect=function(){var e;if(this.root)e=s(this.root);else{var n=t.documentElement,i=t.body;e={top:0,left:0,right:n.clientWidth||i.clientWidth,width:n.clientWidth||i.clientWidth,bottom:n.clientHeight||i.clientHeight,height:n.clientHeight||i.clientHeight}}return this._expandRectByRootMargin(e)},i.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map((function(e,n){return"px"==e.unit?e.value:e.value*(n%2?t.width:t.height)/100})),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},i.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,i=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==i)for(var o=0;o{var e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;t.exports=function(t){return t.match(e)||[]}},593157:t=>{var e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;t.exports=function(t){return e.test(t)}},579783:t=>{t.exports=function(t,e,n){for(var i=n+1;i--;)if(t[i]===e)return i;return i}},902757:t=>{var e="\\ud800-\\udfff",n="\\u2700-\\u27bf",i="a-z\\xdf-\\xf6\\xf8-\\xff",o="A-Z\\xc0-\\xd6\\xd8-\\xde",r="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",s="["+r+"]",a="\\d+",c="["+n+"]",u="["+i+"]",h="[^"+e+r+a+n+i+o+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",f="[\\ud800-\\udbff][\\udc00-\\udfff]",p="["+o+"]",d="(?:"+u+"|"+h+")",v="(?:"+p+"|"+h+")",g="(?:['’](?:d|ll|m|re|s|t|ve))?",m="(?:['’](?:D|LL|M|RE|S|T|VE))?",w="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",y="[\\ufe0e\\ufe0f]?",b=y+w+"(?:\\u200d(?:"+["[^"+e+"]",l,f].join("|")+")"+y+w+")*",_="(?:"+[c,l,f].join("|")+")"+b,k=RegExp([p+"?"+u+"+"+g+"(?="+[s,p,"$"].join("|")+")",v+"+"+m+"(?="+[s,p+d,"$"].join("|")+")",p+"?"+d+"+"+g,p+"+"+m,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",a,_].join("|"),"g");t.exports=function(t){return t.match(k)||[]}},666379:(t,e,n)=>{var i=n(702958),o=n(301499);t.exports=function(t,e){return t===e||i(t,e,o(e))}},807654:(t,e,n)=>{var i=n(281763);t.exports=function(t){return i(t)&&t!=+t}},595825:(t,e,n)=>{var i=n(41848),o=n(662722),r=n(579783),s=n(640554),a=Math.max,c=Math.min;t.exports=function(t,e,n){var u=null==t?0:t.length;if(!u)return-1;var h=u;return void 0!==n&&(h=(h=s(n))<0?a(u+h,0):c(h,u-1)),e==e?r(t,e,h):i(t,o,h,!0)}},84753:(t,e,n)=>{var i=n(456029),o=n(753325),r=n(267206);t.exports=function(t,e){return t&&t.length?i(t,r(e,2),o):void 0}},158748:(t,e,n)=>{var i=n(949029),o=n(593157),r=n(479833),s=n(902757);t.exports=function(t,e,n){return t=r(t),void 0===(e=n?void 0:e)?o(t)?s(t):i(t):t.match(e)||[]}},748759:(t,e,n)=>{"use strict";n.d(e,{df:()=>w,YD:()=>y});var i=n(722122),o=n(419756),r=n(663349),s=n(393552),a=n(584121),c=n(124852),u=n(441143),h=n.n(u),l=new Map,f=new Map,p=new Map,d=0;function v(t,e,n){void 0===n&&(n={}),n.threshold||(n.threshold=0);var i=n,o=i.root,r=i.rootMargin,s=i.threshold;if(h()(!l.has(t),"react-intersection-observer: Trying to observe %s, but it's already being observed by another instance.\nMake sure the `ref` is only used by a single instance.\n\n%s",t),t){var a=function(t){return t?p.has(t)?p.get(t):(d+=1,p.set(t,d.toString()),p.get(t)+"_"):""}(o)+(r?s.toString()+"_"+r:s.toString()),c=f.get(a);c||(c=new IntersectionObserver(m,n),a&&f.set(a,c));var u={callback:e,element:t,inView:!1,observerId:a,observer:c,thresholds:c.thresholds||(Array.isArray(s)?s:[s])};return l.set(t,u),c.observe(t),u}}function g(t){if(t){var e=l.get(t);if(e){var n=e.observerId,i=e.observer,o=i.root;i.unobserve(t);var r=!1,s=!1;n&&l.forEach((function(e,i){i!==t&&(e.observerId===n&&(r=!0,s=!0),e.observer.root===o&&(s=!0))})),!s&&o&&p.delete(o),i&&!r&&i.disconnect(),l.delete(t)}}}function m(t){t.forEach((function(t){var e=t.isIntersecting,n=t.intersectionRatio,i=t.target,o=l.get(i);if(o&&n>=0){var r=o.thresholds.some((function(t){return o.inView?n>t:n>=t}));void 0!==e&&(r=r&&e),o.inView=r,o.callback(r,t)}}))}var w=function(t){function e(){for(var e,n=arguments.length,i=new Array(n),o=0;o{"use strict";n.d(e,{QS:()=>k});var i=n(124852),o=n.n(i),r=n(675263),s=n.n(r);function a(){return a=Object.assign||function(t){for(var e=1;e1||t((function(t,n){n.trackMouse&&(document.addEventListener(m,i),document.addEventListener(w,r));var o=e.touches?e.touches[0]:e,s=y([o.clientX,o.clientY],n.rotationAngle);return a({},t,u,{eventData:{initial:[].concat(s),first:!0},xy:s,start:e.timeStamp||0})}))},i=function(e){t((function(t,n){if(!t.xy[0]||!t.xy[1]||e.touches&&e.touches.length>1)return t;var i=e.touches?e.touches[0]:e,o=y([i.clientX,i.clientY],n.rotationAngle),r=o[0],s=o[1],c=t.xy[0]-r,u=t.xy[1]-s,d=Math.abs(c),v=Math.abs(u),g=(e.timeStamp||0)-t.start,m=Math.sqrt(d*d+v*v)/(g||1);if(de?n>0?h:l:i>0?f:p}(d,v,c,u),b=a({},t.eventData,{event:e,absX:d,absY:v,deltaX:c,deltaY:u,velocity:m,dir:w});n.onSwiping&&n.onSwiping(b);var _=!1;return(n.onSwiping||n.onSwiped||n["onSwiped"+w])&&(_=!0),_&&n.preventDefaultTouchmoveEvent&&n.trackTouch&&e.cancelable&&e.preventDefault(),a({},t,{eventData:a({},b,{first:!1}),swiping:!0})}))},o=function(e){t((function(t,n){var i;return t.swiping&&(i=a({},t.eventData,{event:e}),n.onSwiped&&n.onSwiped(i),n["onSwiped"+i.dir]&&n["onSwiped"+i.dir](i)),a({},t,u,{eventData:i})}))},r=function(t){document.removeEventListener(m,i),document.removeEventListener(w,r),o(t)},s=function(t){if(t&&t.addEventListener){var e=[[d,n],[v,i],[g,o]];return e.forEach((function(e){var n=e[0],i=e[1];return t.addEventListener(n,i)})),function(){return e.forEach((function(e){var n=e[0],i=e[1];return t.removeEventListener(n,i)}))}}},c={ref:function(e){null!==e&&t((function(t,n){if(t.el===e)return t;var i={};return t.el&&t.el!==e&&t.cleanUpTouch&&(t.cleanUpTouch(),i.cleanUpTouch=null),n.trackTouch&&e&&(i.cleanUpTouch=s(e)),a({},t,{el:e},i)}))}};return e.trackMouse&&(c.onMouseDown=n),[c,s]}function _(t,e,n){var i={};return!e.trackTouch&&t.cleanUpTouch?(t.cleanUpTouch(),i.cleanUpTouch=null):e.trackTouch&&!t.cleanUpTouch&&t.el&&(i.cleanUpTouch=n(t.el)),a({},t,i)}function k(t){var e=t.trackMouse,n=o().useRef(a({},u,{type:"hook"})),i=o().useRef();i.current=a({},c,t);var r=o().useMemo((function(){return b((function(t){return n.current=t(n.current,i.current)}),{trackMouse:e})}),[e]),s=r[0],h=r[1];return n.current=_(n.current,i.current,h),s}var x=function(t){var e,n;function i(e){var n;return(n=t.call(this,e)||this)._set=function(t){n.transientState=t(n.transientState,n.props)},n.transientState=a({},u,{type:"class"}),n}return n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,i.prototype.render=function(){var t=this.props,e=t.className,n=t.style,i=t.nodeName,r=void 0===i?"div":i,s=t.innerRef,c=t.children,u=t.trackMouse,h=b(this._set,{trackMouse:u}),l=h[0],f=h[1];this.transientState=_(this.transientState,this.props,f);var p=s?function(t){return s(t),l.ref(t)}:l.ref;return o().createElement(r,a({},l,{className:e,style:n,ref:p}),c)},i}(o().PureComponent);x.propTypes={onSwiped:s().func,onSwiping:s().func,onSwipedUp:s().func,onSwipedRight:s().func,onSwipedDown:s().func,onSwipedLeft:s().func,delta:s().number,preventDefaultTouchmoveEvent:s().bool,nodeName:s().string,trackMouse:s().bool,trackTouch:s().bool,innerRef:s().func,rotationAngle:s().number},x.defaultProps=c},264317:(t,e,n)=>{"use strict";var i=r(n(1174)),o=r(n(692381));function r(t){return t&&t.__esModule?t:{default:t}}t.exports={TransitionGroup:o.default,CSSTransitionGroup:i.default}},689438:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var i=function(){function t(t,e){var n=void 0!==e?e:{};this.version="3.6.6",this.userAgent=window.navigator.userAgent||"no `userAgent` provided by the browser",this.props={customStickyChangeNumber:n.customStickyChangeNumber||null,noStyles:n.noStyles||!1,stickyBitStickyOffset:n.stickyBitStickyOffset||0,parentClass:n.parentClass||"js-stickybit-parent",scrollEl:"string"==typeof n.scrollEl?document.querySelector(n.scrollEl):n.scrollEl||window,stickyClass:n.stickyClass||"js-is-sticky",stuckClass:n.stuckClass||"js-is-stuck",stickyChangeClass:n.stickyChangeClass||"js-is-sticky--change",useStickyClasses:n.useStickyClasses||!1,useFixed:n.useFixed||!1,useGetBoundingClientRect:n.useGetBoundingClientRect||!1,verticalPosition:n.verticalPosition||"top"},this.props.positionVal=this.definePosition()||"fixed",this.instances=[];var i=this.props,o=i.positionVal,r=i.verticalPosition,s=i.noStyles,a=i.stickyBitStickyOffset,c="top"!==r||s?"":a+"px",u="fixed"!==o?o:"";this.els="string"==typeof t?document.querySelectorAll(t):t,"length"in this.els||(this.els=[this.els]);for(var h=0;h=a&&"sticky"===o;y>r&&y=s&&y<=a;ya?m((function(){w(n,p)})):k&&m((function(){w(n,"stub",p)}))},e.update=function(t){void 0===t&&(t=null);for(var e=0;e{var i;!function(){function o(t,e,n){return t.call.apply(t.bind,arguments)}function r(t,e,n){if(!t)throw Error();if(2=e.f?o():t.fonts.load(function(t){return E(t)+" "+t.f+"00 300px "+x(t.c)}(e.a),e.h).then((function(t){1<=t.length?i():setTimeout(r,25)}),(function(){o()}))}()})),o=null,r=new Promise((function(t,n){o=setTimeout(n,e.f)}));Promise.race([r,i]).then((function(){o&&(clearTimeout(o),o=null),e.g(e.a)}),(function(){e.j(e.a)}))};var P={D:"serif",C:"sans-serif"},V=null;function D(){if(null===V){var t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);V=!!t&&(536>parseInt(t[1],10)||536===parseInt(t[1],10)&&11>=parseInt(t[2],10))}return V}function F(t,e,n){for(var i in P)if(P.hasOwnProperty(i)&&e===t.f[P[i]]&&n===t.f[P[i]])return!0;return!1}function B(t){var e,n=t.g.a.offsetWidth,i=t.h.a.offsetWidth;(e=n===t.f.serif&&i===t.f["sans-serif"])||(e=D()&&F(t,n,i)),e?a()-t.A>=t.w?D()&&F(t,n,i)&&(null===t.u||t.u.hasOwnProperty(t.a.c))?Z(t,t.v):Z(t,t.B):function(t){setTimeout(s((function(){B(this)}),t),50)}(t):Z(t,t.v)}function Z(t,e){setTimeout(s((function(){f(this.g.a),f(this.h.a),f(this.j.a),f(this.m.a),e(this.a)}),t),0)}function U(t,e,n){this.c=t,this.a=e,this.f=0,this.m=this.j=!1,this.s=n}L.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=a(),B(this)};var W=null;function q(t){0==--t.f&&t.j&&(t.m?((t=t.a).g&&p(t.f,[t.a.c("wf","active")],[t.a.c("wf","loading"),t.a.c("wf","inactive")]),O(t,"active")):C(t.a))}function H(t){this.j=t,this.a=new M,this.h=0,this.f=this.g=!0}function z(t,e,n,i,o){var r=0==--t.h;(t.f||t.g)&&setTimeout((function(){var t=o||null,a=i||{};if(0===n.length&&r)C(e.a);else{e.f+=n.length,r&&(e.j=r);var c,u=[];for(c=0;c{"use strict";r.d(t,{hn:()=>n,yg:()=>o,vD:()=>i,jJ:()=>l,oy:()=>a,W:()=>u,B1:()=>c,fU:()=>s,cY:()=>f});var n="ADDITIONALLAYER:ADD_ADDITIONAL_LAYERS",o="ADDITIONALLAYER:REMOVE_ADDITIONAL_LAYER",i="ADDITIONALLAYER:REMOVE_ALL_ADDITIONAL_LAYERS",l="ADDITIONALLAYER:UPDATE_ADDITIONAL_LAYER",a="ADDITIONALLAYER:UPDATE_OPTIONS_BY_OWNER",u=function(e,t){return{type:l,id:e,owner:t,actionType:arguments.length>2&&void 0!==arguments[2]?arguments[2]:"override",options:arguments.length>3?arguments[3]:void 0}},c=function(e,t){return{type:a,owner:e,options:t}},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,r=e.owner;return{type:o,id:t,owner:r}},f=function(e){return{type:i,owner:e}}},396909:(e,t,r)=>{"use strict";r.d(t,{vZ:()=>n,TB:()=>o,gF:()=>i,g$:()=>l,dJ:()=>a,uz:()=>u,vA:()=>c,lX:()=>s,E2:()=>f,mF:()=>d,ch:()=>p,DX:()=>y,j1:()=>m,wL:()=>v,Nm:()=>b,rb:()=>g,dk:()=>h,Wv:()=>O,Nf:()=>S,FU:()=>w,k5:()=>k,pt:()=>E,Wm:()=>j,wj:()=>P,l1:()=>I,cu:()=>T,Fe:()=>C,Lc:()=>A,p2:()=>D,WQ:()=>x,E0:()=>F,xR:()=>R,WB:()=>N,bB:()=>L});var n="STYLEEDITOR:TOGGLE_STYLE_EDITOR",o="STYLEEDITOR:SELECT_STYLE_TEMPLATE",i="STYLEEDITOR:UPDATE_TEMPORARY_STYLE",l="STYLEEDITOR:UPDATE_STATUS",a="STYLEEDITOR:RESET_STYLE_EDITOR",u="STYLEEDITOR:ADD_STYLE",c="STYLEEDITOR:CREATE_STYLE",s="STYLEEDITOR:LOADING_STYLE",f="STYLEEDITOR:LOADED_STYLE",d="STYLEEDITOR:ERROR_STYLE",p="STYLEEDITOR:UPDATE_STYLE_CODE",y="STYLEEDITOR:EDIT_STYLE_CODE",m="STYLEEDITOR:DELETE_STYLE",v="STYLEEDITOR:INIT_STYLE_SERVICE",b="STYLEEDITOR:SET_EDIT_PERMISSION",g="STYLEEDITOR:SET_DEFAULT_STYLE",h="STYLEEDITOR:UPDATE_EDITOR_METADATA";function O(e,t){return{type:n,layer:e,enabled:t}}function S(e){return{type:l,status:e}}function w(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.code,r=e.templateId,n=e.format,i=e.languageVersion,l=e.init;return{type:o,code:t,templateId:r,format:n,init:l,languageVersion:i}}function k(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.temporaryId,r=e.templateId,n=e.code,o=e.format,l=e.languageVersion,a=e.init;return{type:i,temporaryId:t,templateId:r,code:n,format:o,init:a,languageVersion:l}}function E(e){return{type:s,status:e}}function j(){return{type:f}}function P(e){return{type:c,settings:e}}function I(){return{type:a}}function T(e){return{type:u,add:e}}function C(e,t){return{type:d,status:e,error:t}}function A(){return{type:p}}function D(e){return{type:y,code:e}}function x(e){return{type:m,styleName:e}}function F(e,t){return{type:v,service:e,canEdit:t}}function R(e){return{type:b,canEdit:e}}function N(){return{type:g}}function L(e){return{type:h,metadata:e}}},378795:(e,t,r)=>{"use strict";r.d(t,{Z:()=>M});var n=r(611847),o=r(472500),i=r.n(o),l=r(189734),a=r.n(l),u=r(91175),c=r.n(u),s=r(984596),f=r.n(s),d=r(281763),p=r.n(d),y=r(747037),m=r.n(y),v=r(944908),b=r.n(v),g=r(727418),h=r.n(g),O=r(65792),S=r.n(O),w=r(624262);function k(e){return k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k(e)}var E=["SLD","viewparams"];function j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function P(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==k(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==k(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===k(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I(e){return function(e){if(Array.isArray(e))return T(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return T(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?T(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=2)?{ramp:"custom",colors:S().scale(o.colors).colors(r).join(",")}:{ramp:t}},x=function(e,t){var r=e.thematic&&e.thematic.params||[],n=e.thematic&&e.thematic.fieldAsParam&&["field"]||[];return Object.keys(t).reduce((function(o,i){return function(e,t){return function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).filter((function(t){return t.field===e})).length>0}(e,t)}(i,[].concat(I(r),I(n)))?h()(o,function(e,t,r){return{viewparams:(e?e+";":"")+t+":"+r}}(o.viewparams,i,t[i])):"ramp"===i?h()(o,D(e,t[i],t.intervals||5)):"classification"===i?h()(o,(l=t[i])?{customClasses:l.reduce((function(e,t){return[].concat(I(e),[t.min+","+t.max+","+t.color])}),[]).join(";")}:{}):"attribute"===i?h()(o,{attribute:e.thematic&&e.thematic.fieldAsParam?t[i]:t.field}):"field"===i&&e.thematic&&!e.thematic.fieldAsParam?o:"strokeWeight"!==i||t.strokeOn?"strokeOn"===i?o:h()(o,P({},i,t[i])):h()(o,P({},i,-1));var l}),{})},F=function(e){return h()({protocol:e.protocol,hostname:e.domain},e.port?{port:e.port}:{})},R=function(e){return e.reduce((function(e,t){return p()(t)?t:e}),null)},N=function(e){return e.PolygonSymbolizer?"Polygon":e.LineSymbolizer?"LineString":e.PointSymbolizer?"Point":null},L=function(e){return e.PolygonSymbolizer?e.PolygonSymbolizer.Fill&&e.PolygonSymbolizer.Fill.CssParameter&&e.PolygonSymbolizer.Fill.CssParameter.$||"#808080":e.LineSymbolizer?e.LineSymbolizer.Stroke&&e.LineSymbolizer.Stroke.CssParameter&&e.LineSymbolizer.Stroke.CssParameter.$||"#808080":e.PointSymbolizer&&e.PointSymbolizer.Graphic&&e.PointSymbolizer.Graphic.Mark&&e.PointSymbolizer.Graphic.Mark.Fill&&e.PointSymbolizer.Graphic.Mark.Fill.CssParameter&&e.PointSymbolizer.Graphic.Mark.Fill.CssParameter.$||"#808080"},Z={getStyleService:function(e,t){var r=(0,n.ij)((0,w.Hi)(e));return i().format(h()(F(r),{pathname:r.applicationRootPath+"/rest/sldservice/"+e.name+"/classify.xml",query:h()({},x(e,t),{fullSLD:!0})}))},getCapabilitiesUrl:function(e){var t=(0,n.ij)((0,w.Hi)(e));return i().format(h()(F(t),{pathname:t.applicationRootPath+"/rest/sldservice/capabilities.json"}))},getStyleMetadataService:function(e,t,r){var o=r||{},l=o.baseUrl,a=void 0===l?"":l,u=o.isStatic,c=void 0!==u&&u,s=(0,n.ij)(c?a:(0,w.Hi)(e));return i().format(h()(F(s),{pathname:s.applicationRootPath+"/rest/sldservice/"+e.name+"/classify.json",query:t}))},getStyleParameters:function(e,t){return{SLD:Z.getStyleService(e,t),viewparams:x(e,t).viewparams}},getMetadataParameters:function(e,t){return x(e,t)},getFieldsService:function(e){var t=(0,n.ij)((0,w.Hi)(e)),r=e.thematic&&e.thematic.datatable||e.name;return i().format(h()(F(t),{pathname:t.applicationRootPath+"/rest/sldservice/"+r+"/attributes.json"}))},readFields:function(e){return a()(f()(e.Attributes.Attribute||[]).filter((function(e){return t=e.type,-1!==["Integer","Long","Double","Float","BigDecimal"].indexOf(t);var t})).map((function(e){return{name:e.name,type:(e.type,"number")}})),(function(e){return e.name}))},readClassification:function(e,t){!function(e){if(e&&e.Rule)throw new Error("toc.thematic.invalid_attribute");if(!e||!e.Rules||!e.Rules.Rule)throw new Error("toc.thematic.invalid_object");f()(e.Rules.Rule).forEach((function(e){if(!e.PolygonSymbolizer&&!e.LineSymbolizer&&!e.PointSymbolizer)throw new Error("toc.thematic.invalid_geometry")}))}(e);var r=f()(e.Rules.Rule||[]);return r.map((function(e,n){var o,i,l,a;return function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:A,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0;return(t?t.thematic.colors||[].concat(I(e),I(t.thematic.additionalColors||[])):n?[n].concat(I(e)):I(e)).map((function(e){return!m()(e.colors)&&e.colors.length>=r?e:h()({},e,{colors:S().scale(e.colors).colors(r)})}))},hasThematicStyle:function(e){return!!(e&&e.params&&e.params.SLD)},removeThematicStyle:function(e){e.SLD,e.viewparams;var t=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,E);return h()({},t,{SLD:null,viewparams:null})},defaultParams:{attribute:"",intervals:5,method:"equalInterval",ramp:"red",field:"",open:!1,strokeWeight:.2,strokeColor:"#ff0000",strokeOn:!1}};const M=Z},108954:(e,t,r)=>{"use strict";r.d(t,{eb:()=>P,IW:()=>I,DG:()=>T});var n=r(618446),o=r.n(n),i=r(227361),l=r.n(i),a=r(984596),u=r.n(a),c=r(375875),s=r.n(c),f=r(409082),d=r(378795);function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r2&&void 0!==arguments[2]?arguments[2]:function(e){return e};return t.map((function(t){return t.ruleId===e?r(t):t}))}var w=function(e,t){var r="uniqueInterval"===(null==e?void 0:e.method),n=null==e?void 0:e.intervalsForUnique;return{errorId:t&&t.includes("toc")?t:r?"styleeditor.classificationUniqueIntervalError":"styleeditor.classificationError",msgParams:r?{intervalsForUnique:n}:{}}},k=function(e,t){var r="uniqueInterval"===(null==e?void 0:e.method),n=null==e?void 0:e.intervalsForUnique;return{errorId:r?t&&t.includes("float type")?"styleeditor.classificationRasterUniqueIntervalError":"styleeditor.classificationUniqueIntervalError":"styleeditor.classificationRasterError",msgParams:r?{intervalsForUnique:n}:{}}},E=function(e,t){var r=l()(e,"Rules.Rule"),n=r&&l()(r,"RasterSymbolizer.ColorMap.ColorMapEntry"),o="classificationRaster"===t.type?n&&u()(n).length:r&&u()(r).length,i="custom"===t.ramp&&t.classification.length>0&&{name:"custom",colors:t.classification.map((function(e){return e.color}))},a=d.Z.getColor(void 0,t.ramp,o||t.intervals,i).colors,c=void 0===a?[]:a,s=null==c?void 0:c.split(",");return t.reverse&&(s=s.reverse()),{classification:d.Z["classificationRaster"===t.type?"readRasterClassification":"readClassification"](e,t.method).map((function(e,t){return v(v({},e),{},{color:s[t]})}))}},j={geoserver:{updateStyleService:function(e){var t=e.baseUrl,r=e.styleService,n=null!=r&&r.isStatic?r.baseUrl:t;if(O[n])return new Promise((function(e){return e(O[n])}));var o=d.Z.getCapabilitiesUrl({url:n});return(null!=r&&r.isStatic?new Promise((function(e){return e(r)})):f.ZP.getStyleService({baseUrl:n})).then((function(e){return s().get(o).then((function(t){var r=t.data;return[e,r]})).catch((function(){return[e,null]}))})).then((function(e){var t,r,o,i,l,a,u,c,s,f,d,p=(d=2,function(e){if(Array.isArray(e))return e}(f=e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,l,a=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw o}}return a}}(f,d)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(e,t):void 0}}(f,d)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=p[0],b=p[1],S=v(v({},m),{},{classificationMethods:b?(t=b,r=(t||{}).capabilities,o=void 0===r?{}:r,i=o.vector,l=void 0===i?{}:i,a=o.raster,u=void 0===a?{}:a,c=l.classifications||[],s=u.classifications||[],{vector:c.filter((function(e){return-1!==g.indexOf(e)})),raster:s.filter((function(e){return-1!==g.indexOf(e)}))}):{vector:h,raster:h}});return O[n]=S,S}))}}};function P(e){var t=e.baseUrl,r=e.styleService;return j.geoserver.updateStyleService({baseUrl:t,styleService:r})}function I(e){var t=e.values,r=e.properties,n=e.rules,i=e.layer,l=e.styleService,a=["intervals","method","reverse","attribute","ramp","intervalsForUnique"],u=v(v({},r),t),c=r.ruleId;if(void 0!==t.ramp&&t.ramp!==r.ramp&&"customInterval"===(null==u?void 0:u.method)&&!t.classification){var f=d.Z.getColor(void 0,t.ramp,u.intervals).colors.split(",");return new Promise((function(e){return e(S(c,n,(function(e){return v(v(v({},e),u),{},{classification:u.classification.map((function(e,t){return v(v({},e),{},{color:f[t]})})),errorId:void 0})})))}))}var p=a.reduce((function(e,t){return v(v({},e),{},b({},t,r[t]))}),{}),y=a.reduce((function(e,t){return v(v({},e),{},b({},t,u[t]))}),{}),m=!a.find((function(e){return void 0===u[e]}))&&!o()(p,y)&&"custom"!==(null==t?void 0:t.ramp)&&"customInterval"!==(null==u?void 0:u.method),g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.errorId,o=e.msgParams;return S(c,n,(function(e){return v(v(v({},e),t),{},{errorId:r,msgParams:o})}))};if(m){var h={intervals:u.intervals,method:u.method,attribute:u.attribute,intervalsForUnique:u.intervalsForUnique};return s().get(d.Z.getStyleMetadataService(i,h,l)).then((function(e){var r=e.data;return S(c,n,(function(e){return v(v(v(v({},e),t),E(r,u)),{},{errorId:void 0})}))})).catch((function(e){return g(w(u,null==e?void 0:e.message))}))}return new Promise((function(e){return e(g())}))}function T(e){var t=e.values,r=e.properties,n=e.rules,i=e.layer,l=e.styleService,a=["intervals","continuous","method","reverse","ramp","intervalsForUnique"],u=v(v({},r),t),c=r.ruleId;if(void 0!==t.ramp&&t.ramp!==r.ramp&&"customInterval"===(null==u?void 0:u.method)&&!t.classification){var f=d.Z.getColor(void 0,t.ramp,u.intervals).colors.split(",");return new Promise((function(e){return e(S(c,n,(function(e){return v(v(v({},e),u),{},{classification:u.classification.map((function(e,t){return v(v({},e),{},{color:f[t]})})),errorId:void 0})})))}))}var p=a.reduce((function(e,t){return v(v({},e),{},b({},t,r[t]))}),{}),y=a.reduce((function(e,t){return v(v({},e),{},b({},t,u[t]))}),{}),m=!a.find((function(e){return void 0===u[e]}))&&!o()(p,y)&&"custom"!==(null==t?void 0:t.ramp)&&"customInterval"!==(null==u?void 0:u.method),g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.errorId,o=e.msgParams;return S(c,n,(function(e){return v(v(v({},e),t),{},{errorId:r,msgParams:o})}))};return m?s().get(d.Z.getStyleMetadataService(i,{intervals:u.intervals,continuous:u.continuous,method:u.method,reverse:u.reverse,intervalsForUnique:u.intervalsForUnique},l)).then((function(e){var r=e.data;return S(c,n,(function(e){return v(v(v(v({},e),t),E(r,u)),{},{errorId:void 0})}))})).catch((function(e){return g(k(u,null==e?void 0:e.data))})):new Promise((function(e){return e(g())}))}},409082:(e,t,r)=>{"use strict";r.d(t,{ZP:()=>N,bc:()=>R,Uz:()=>F});var n=r(375875),o=r.n(n),i=r(727418),l=r.n(i),a=r(227361),u=r.n(a),c=r(567523),s=r.n(c),f=r(968929),d=r.n(f);function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{};return h()((null==e?void 0:e.entry)||[]).reduce((function(e,t){return E(E({},e),{},j({},t["@key"],t.$))}),{})},x=function(e){var t=e.baseUrl,r=e.styleName,n=e.metadata,i=A(E(E({},(0,O.$N)(r)),{},{geoserverBaseUrl:t}));return o().get(i).then((function(){var e,t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).data,r=void 0===t?{}:t;return o().put(i,{style:E(E({},r.style),{},{metadata:E(E({},D(null===(e=r.style)||void 0===e?void 0:e.metadata)),n)})})}))},F=function(e){var t=e.baseUrl,r=e.code,n=e.options,i=e.format,l=void 0===i?"sld":i,a=e.styleName,u=e.languageVersion,c=e.metadata,s=(0,O.$N)(a),f=s.name,d=s.workspace,p=C({options:n,format:l,baseUrl:t,name:f,workspace:d,languageVersion:u});return o().put(p.url,r,p.options).then((function(){return c?x({baseUrl:t,styleName:a,metadata:c}).then((function(){return null})).catch((function(){return null})):null}))},R=function(e){var t=e.baseUrl,r=e.styleName,n=e.options,i=(0,O.$N)(r),l=i.name,a=i.workspace,u=A({name:l,workspace:a,geoserverBaseUrl:t});return o().get(u,n).then((function(e){return e.data&&e.data.style&&e.data.style.name?o().get(A({workspace:a,geoserverBaseUrl:t,name:e.data.style.name,format:(r=e.data.style.filename,r.split(".").pop())})).then((function(t){var r,n,o=t.data;return E(E(E({},e.data.style),(null==e||null===(r=e.data)||void 0===r||null===(n=r.style)||void 0===n?void 0:n.metadata)&&{metadata:D(e.data.style.metadata)}),{},{code:o})})):null;var r}))};const N={saveStyle:function(e,t,r,n){var i=e+"styles/"+encodeURI(t),a=l()({},n);return a.headers=l()({},a.headers,{"Content-Type":"application/vnd.ogc.sld+xml"}),o().put(i,r,a)},getStyleService:function(e){var t=e.baseUrl;return function(e){var t=e.baseUrl;return y[t]?new Promise((function(e){return e(y[t])})):o().all([o().get("".concat(t,"rest/about/version"),{"Content-Type":"application/json"}).then((function(e){var t=e.data;return u()(t,"about.resource")})).catch((function(){return null})),o().get("".concat(t,"rest/about/manifest"),{"Content-Type":"application/json"}).then((function(e){var t=e.data;return u()(t,"about.resource")})).catch((function(){return null})),o().get("".concat(t,"rest/fonts"),{"Content-Type":"application/json"}).then((function(e){var t=e.data;return u()(t,"fonts")})).catch((function(){return null}))]).then((function(e){var r,n,o=(n=3,function(e){if(Array.isArray(e))return e}(r=e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,l,a=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw o}}return a}}(r,n)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(e,t):void 0}}(r,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],l=o[1],a=o[2],u={version:i&&m(i),manifest:l&&m(l),fonts:a};return i&&l?(y[t]=u,y[t]):u}))}({baseUrl:t}).then((function(e){var r=e.version,n=e.manifest,o=e.fonts,i=void 0===o?[]:o;if(!r)return null;var l,a=(n||[]).map((function(e){var t=e.name;return b()(P.filter((function(e){var r=e.regex;return t.match(r)})).map((function(e){return e.format})))})).filter((function(e){return e})),u=b()(r.filter((function(e){var t=e.name;return"geoserver"===(void 0===t?"":t).toLowerCase()})))||{};return{baseUrl:t,version:u.version,formats:[].concat((l=a,function(e){if(Array.isArray(e))return w(e)}(l)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(l)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?w(e,t):void 0}}(l)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),["sld"]),availableUrls:[],fonts:i}}))},getStyle:function(e){var t=e.options,r=e.format,n=e.baseUrl,i=e.styleName,l=(0,O.$N)(i),a=l.name,u=l.workspace,c=C({options:t,format:r,baseUrl:n,name:a,workspace:u});return o().get(c.url,c.options)},createStyle:function(e){var t=e.baseUrl,r=e.code,n=e.options,i=e.format,l=void 0===i?"sld":i,a=e.styleName,u=e.languageVersion,c=e.metadata,s=(0,O.$N)(a),f=s.name,d=s.workspace,p=C({options:n,format:l,baseUrl:t,name:f,workspace:d,languageVersion:u},!0);return o().post(p.url,r,p.options).then((function(){return c?x({baseUrl:t,styleName:a,metadata:c}).then((function(){return null})).catch((function(){return null})):null}))},updateStyle:F,deleteStyle:function(e){var t=e.baseUrl,r=e.options,n=e.format,i=void 0===n?"sld":n,l=e.styleName,a=(0,O.$N)(l),u=a.name,c=a.workspace,s=C({options:r,format:i,baseUrl:t,name:u,workspace:c});return o().delete(s.url,s.options)},getStylesInfo:function(e){var t=e.baseUrl,r=e.styles,n=void 0===r?[]:r,i=[],a=n.length;return new Promise((function(e){n&&0!==n.length?n.forEach((function(r,u){var c=r.name,s=r.href;return o().get(s||A(E(E({},(0,O.$N)(c)),{},{geoserverBaseUrl:t}))).then((function(t){var r=t.data;i[u]=l()({},n[u],r&&r.style&&E(E(E({},r.style),r.style.metadata&&{metadata:D(r.style.metadata)}),{},{name:(0,O.U_)(r.style)})||{}),0==--a&&e(i.filter((function(e){return e})))})).catch((function(){i[u]=l()({},n[u]),0==--a&&e(i.filter((function(e){return e})))}))})):e([])}))},getStyleCodeByName:R,updateStyleMetadata:x}},135400:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(124852),o=r.n(n),i=r(379313);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.style,r=void 0===t?{}:t,n=e.mainViewStyle,l=void 0===n?{}:n,a=e.contentStyle,c=void 0===a?{}:a,s=e.imageStyle,f=void 0===s?{}:s,d=e.glyph,p=void 0===d?"info-sign":d,y=e.iconFit,m=e.title,v=e.tooltip,b=e.tooltipId,g=e.description,h=e.content;return o().createElement("div",{className:"empty-state-container",style:u({height:y?"100%":void 0},r)},o().createElement("div",{key:"main-view",className:"empty-state-main-view",style:u({height:y?"100%":void 0},l)},p?o().createElement("div",{key:"glyph",className:"empty-state-image",style:u({height:y?"100%":void 0},f)},o().createElement(i.Z,{iconFit:y,tooltip:v,tooltipId:b,glyph:p})):null,m?o().createElement("h1",{key:"title"},m):null,g?o().createElement("p",{key:"description",className:"empty-state-description"},g):null),o().createElement("div",{key:"content",className:"empty-state-content",style:c},h))}},698772:(e,t,r)=>{"use strict";r.d(t,{Z:()=>h});var n=r(893379),o=r.n(n),i=r(172704);o()(i.Z,{insert:"head",singleton:!1}),i.Z.locals;var l=r(675263),a=r.n(l),u=r(124852),c=r.n(u),s=r(480681);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function d(e,t){for(var r=0;r{"use strict";r.d(t,{Z:()=>u});var n=r(124852),o=r.n(n),i=r(480681),l=r(496259),a=(0,r(815135).Z)(i.Glyphicon);const u=function(e){var t=e.glyph,r=void 0===t?"info-sign":t,n=e.tooltip,i=e.tooltipId,u=e.iconFit,c=e.padding,s=void 0===c?0:c,f=e.margin,d=void 0===f?0:f;return o().createElement(l.Z,null,(function(e){var t=e.width,l=e.height;return o().createElement(a,{glyph:r,tooltip:n,tooltipId:i,style:{display:"inline-block",padding:s+"px",margin:d+"px",textAlign:"center",fontSize:u?Math.min(t,l)-2*s-2*d:t-2*s-2*d}})}))}},982030:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(124852),o=r.n(n),i=r(623560),l=r.n(i),a=r(867076),u=r(135400);const c=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.Z;return(0,a.branch)(e,(function(){return function(e){return o().createElement(r,t&&l()(t)?t(e):t)}}))}},173014:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(124852),o=r.n(n),i=r(867076),l=r(82110);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:u,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.Z;return(0,i.branch)(e,(function(){return function(e){var n=e.loaderProps;return o().createElement(r,a({},t,n))}}))}},697111:(e,t,r)=>{"use strict";r.d(t,{Z:()=>y});var n=r(124852),o=r.n(n),i=r(675263),l=r.n(i),a=r(23279),u=r.n(a);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r{"use strict";r.d(t,{Z:()=>l});var n=r(124852),o=r.n(n);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{}).fallback,r=void 0===t?null:t;return function(t){return(0,n.forwardRef)((function(l,a){return void 0===e||e(l)?o().createElement(n.Suspense,{fallback:r},o().createElement(t,i({ref:a},l))):null}))}}},886056:(e,t,r)=>{"use strict";r.d(t,{Z:()=>h});var n=r(675263),o=r.n(n),i=r(124852),l=r.n(i),a=r(743129),u=r(598611),c=r.n(u);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r{"use strict";r.d(t,{Z:()=>Z});var n=r(23279),o=r.n(n),i=r(666654),l=r.n(i),a=r(618446),u=r.n(a),c=r(623560),s=r.n(c),f=r(513218),d=r.n(f),p=r(747037),y=r.n(p),m=r(727418),v=r.n(m),b=r(675263),g=r.n(b),h=r(124852),O=r.n(h),S=r(805346),w=r(965539),k=r(532425),E=r(202576),j=r(298854);function P(e){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P(e)}function I(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function T(e){return function(e){if(Array.isArray(e))return C(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0){var o=e.editor&&e.editor.getWrapperElement&&e.editor.getWrapperElement()||null;e.cm.commands.autocomplete(t,null,{completeSingle:!1,container:o})}}})),R(x(e),"onUpdate",(function(){e.update.cancel(),e.update()})),R(x(e),"getInlineWidget",(function(e){var t=e.onClick,r=void 0===t?function(){}:t,n=e.token,o=void 0===n?{}:n,i=e.className,l=void 0===i?"":i,a=e.style,u=void 0===a?{}:a,c=document.createElement("div");return c.setAttribute("class","".concat(l," ms-style-editor-inline-widget")),v()(c.style,u),c.onclick=function(){return r(function(e){for(var t=1;t{"use strict";r.d(t,{Z:()=>c});var n=r(124852),o=r.n(n),i=["type"],l=["text"];function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const c=function(e){var t=e.type,r=e.patterns,n=e.paths,c=e.texts,s=e.backgroundColor,f=void 0===s?"#ffffff":s;return o().createElement("svg",{viewBox:"0 0 200 200"},o().createElement("defs",null,r&&r.filter((function(e){return e.icon})).map((function(e){return o().createElement("pattern",{id:e.id,viewBox:"0 0 1 1",width:"15%",height:"15%"},e.icon&&o().createElement("path",e.icon))})),r&&r.filter((function(e){return e.image})).map((function(e){return o().createElement("pattern",{id:e.id,width:"100%",height:"100%"},e.image&&o().createElement("image",e.image))}))),o().createElement("path",{fill:f,d:"M0 0 L200 0 L200 200 L0 200Z"}),n&&n.map((function(e){var r=e.type,n=u(e,i);return"polygon"===(r||t)&&o().createElement("path",a({},n,{d:"M20 20 L180 20 L180 180 L20 180Z"}))||"linestring"===(r||t)&&o().createElement("path",a({},n,{fill:"none",d:"M30 160 L100 40 L170 160"}))||"point"===(r||t)&&o().createElement("path",n)})),c&&c.map((function(e){var t=e.text,r=u(e,l);return o().createElement("text",a({x:"100",y:"100",textAnchor:"middle",alignmentBaseline:"middle"},r),t)})))}},40683:(e,t,r)=>{"use strict";r.d(t,{Z:()=>Hr});var n=r(124852),o=r.n(n),i=r(675263),l=r.n(i),a=r(23279),u=r.n(a),c=r(313311),s=r.n(c),f=r(406557),d=r.n(f),p=r(80717),y=r(532425),m=r(701469),v=r.n(m),b=r(480681),g=r(513218),h=r.n(g),O=r(957557),S=r.n(O),w=r(414293),k=r.n(w),E=r(807654),j=r.n(E),P=r(983717),I=r(1036),T=r(398360),C=r(886056),A=r(10208),D=r(805346),x=r(993451);const F=function(e){var t=e.children,r=e.label,n=e.tools,i=e.divider,l=e.invalid,a=e.warning,u=e.disabled;if(i)return o().createElement("div",{className:"ms-symbolizer-field-divider"});var c=a?" ms-symbolizer-value-warning":"",s=l?" ms-symbolizer-value-invalid":"",f=u?" ms-symbolizer-value-disabled":"";return o().createElement("div",{className:"ms-symbolizer-field"},o().createElement("div",{className:"ms-symbolizer-label"},o().createElement(D.Z,{msgId:r})),o().createElement("div",{className:"ms-symbolizer-value"+s+f+c,onDragStart:function(e){e.stopPropagation(),e.preventDefault()},draggable:!0},t,o().createElement("div",{className:"ms-symbolizer-tools"},n)))};var R=r(290702),N=r(283958);const L=[{value:"Circle",label:"styleeditor.circle",preview:{type:"point",paths:[{d:"M 160,100 A 60,60 0 0 1 100,160 60,60 0 0 1 40,100 60,60 0 0 1 100,40 60,60 0 0 1 160,100 Z",stroke:"#f2f2f2",fill:"#333333",strokeWidth:4}]}},{value:"Square",label:"styleeditor.square",preview:{type:"point",paths:[{d:"M40 40 L160 40 L160 160 L40 160Z",stroke:"#f2f2f2",fill:"#333333",strokeWidth:4}]}},{value:"Triangle",label:"styleeditor.triangle",preview:{type:"point",paths:[{d:"M 160,151.96151 H 40 L 99.999999,48.038488 Z",stroke:"#f2f2f2",fill:"#333333",strokeWidth:4}]}},{value:"Star",label:"styleeditor.star",preview:{type:"point",paths:[{d:"M 165.07677,84.40286 131.87672,116.49613 139.49277,162.03972 98.710865,140.38195 57.749838,161.699 65.745291,116.22048 32.813927,83.851564 78.537289,77.40206 99.145626,36.079922 119.40876,77.572419 Z",stroke:"#f2f2f2",fill:"#333333",strokeWidth:4}]}},{value:"Cross",label:"styleeditor.cross",preview:{type:"point",paths:[{d:"M 84.99987,39.999998 V 84.999868 H 39.999999 V 115.00013 H 84.99987 V 160 H 115.00013 V 115.00013 H 160 V 84.999868 H 115.00013 V 39.999998 Z",stroke:"#f2f2f2",fill:"#333333",strokeWidth:4}]}},{value:"X",label:"styleeditor.x",preview:{type:"point",paths:[{d:"M 131.81971,46.966899 100,78.786612 68.180288,46.966898 46.966899,68.180287 78.786613,100 46.9669,131.81971 68.180287,153.0331 100,121.21339 131.81971,153.0331 153.0331,131.81971 121.21339,99.999999 153.0331,68.180286 Z",stroke:"#f2f2f2",fill:"#333333",strokeWidth:4}]}},{value:"shape://vertline",label:"styleeditor.verticalLine",preview:{type:"point",paths:[{d:"M 100,40 V 160 Z",stroke:"#333333",strokeWidth:4,fill:"none"}]}},{value:"shape://horline",label:"styleeditor.horizontalLine",preview:{type:"point",paths:[{d:"M 160,100 40.000002,100 Z",stroke:"#333333",strokeWidth:4,fill:"none"}]}},{value:"shape://slash",label:"styleeditor.slash",preview:{type:"point",paths:[{d:"M 142.42641,57.573591 57.573595,142.4264 Z",stroke:"#333333",strokeWidth:4,fill:"none"}]}},{value:"shape://backslash",label:"styleeditor.backslash",preview:{type:"point",paths:[{d:"M 142.42641,142.42641 57.573595,57.573594 Z",stroke:"#333333",strokeWidth:4,fill:"none"}]}},{value:"shape://dot",label:"styleeditor.dot",preview:{type:"point",paths:[{d:"M 95,100 105,100 Z",stroke:"#333333",strokeWidth:10,fill:"none"}]}},{value:"shape://plus",label:"styleeditor.plus",preview:{type:"point",paths:[{d:"M 100,40 V 160 Z",stroke:"#333333",strokeWidth:4,fill:"none"},{d:"M 160,100 40.000002,100 Z",stroke:"#333333",strokeWidth:4,fill:"none"}]}},{value:"shape://times",label:"styleeditor.times",preview:{type:"point",paths:[{d:"M 142.42641,57.573591 57.573595,142.4264 Z",stroke:"#333333",strokeWidth:4,fill:"none"},{d:"M 142.42641,142.42641 57.573595,57.573594 Z",stroke:"#333333",strokeWidth:4,fill:"none"}]}},{value:"shape://oarrow",label:"styleeditor.openArrow",preview:{type:"point",paths:[{d:"M 40.027335,53.266123 159.77305,100 40.027335,146.73388",stroke:"#333333",strokeWidth:4,fill:"none"}]}},{value:"shape://carrow",label:"styleeditor.closedArrow",preview:{type:"point",paths:[{d:"M 40.027335,53.266123 159.77305,100 40.027335,146.73388Z",stroke:"#333333",strokeWidth:4,fill:"none"}]}}];var Z=r(815135),M=r(38560),z=(0,Z.Z)(M.Z);const W=function(e){var t=e.value,r=e.config,n=void 0===r?{}:r,i=e.onChange,l=void 0===i?function(){}:i,a=n.options,u=void 0===a?L:a,c=u.find((function(e){return e.value===t}));return o().createElement(R.Z,{content:o().createElement("div",{className:"ms-mark-list"},o().createElement("ul",null,u.map((function(e){return o().createElement("li",{key:e.value},o().createElement(z,{className:"ms-mark-preview",active:e.value===t,onClick:function(){return l(e.value)}},o().createElement(N.Z,e.preview)))}))))},o().createElement(z,{className:"ms-mark-preview"},c&&o().createElement(N.Z,c.preview)))};var U=r(743129);const V=function(e){var t=e.label,r=void 0===t?"styleeditor.band":t,n=e.value,i=e.bands,l=e.onChange,a=e.enhancementType;return o().createElement(o().Fragment,null,o().createElement(F,{label:r},o().createElement(U.ZP,{clearable:!1,options:i,value:n,onChange:function(e){return l("band",e.value)}})),o().createElement(F,{label:"styleeditor.contrastEnhancement"},o().createElement(U.ZP,{clearable:!1,options:[{label:o().createElement(D.Z,{msgId:"styleeditor.none"}),value:"none"},{label:o().createElement(D.Z,{msgId:"styleeditor.normalize"}),value:"normalize"},{label:o().createElement(D.Z,{msgId:"styleeditor.histogram"}),value:"histogram"}],value:a||"none",onChange:function(e){var t="none"===e.value?void 0:e.value;l("enhancementType",t)}})))};var $=r(697111),_=r(99009);function B(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,l,a=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return q(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?q(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,te),p=c.creatable,y=c.clearable,m=void 0!==y&&y,v=c.multi;function g(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1?arguments[1]:void 0,n=t.map((function(e){return e.value}));return(null==r?void 0:r.value)&&-1===n.indexOf(r.value)?[r].concat(function(e){if(Array.isArray(e))return le(e)}(e=t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ie(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):t}function h(e){return t?Q()(t).map((function(e){return{value:e,label:e}})).reduce(g,e):e}var O,S,w=a(d),k=(O=(0,n.useState)(h(w)),S=2,function(e){if(Array.isArray(e))return e}(O)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,l,a=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw o}}return a}}(O,S)||ie(O,S)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),E=k[0],j=k[1];(0,n.useEffect)((function(){j(h(w))}),[JSON.stringify(w)]);var P=p?ue:ae;return o().createElement(P,re({disabled:f,clearable:m,placeholder:"styleeditor.selectPlaceholder",noResultsText:"styleeditor.noResultsSelectInput"},c,{options:E.map((function(e){return oe(oe({},e),{},{label:e.labelId?o().createElement(o().Fragment,null,o().createElement(D.Z,{msgId:e.labelId}),e.glyphId&&o().createElement(b.Glyphicon,{style:{marginLeft:10},glyph:e.glyphId})):e.label})})),value:t,onChange:function(e){return v?s(e.length>0?e.map((function(e){return e.value})):void 0):(j(g(E,e)),s(e.value))}}))};function se(e){return se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},se(e)}var fe=["label","value","config","onChange","disabled"];function de(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function pe(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,fe)),p="constant"===(null==t?void 0:t.type)?"constant":"attribute";return o().createElement("div",{className:"flex-center"},"constant"===(null==t?void 0:t.type)&&o().createElement(b.FormGroup,null,o().createElement(me,{type:"number",disabled:f,value:null==t?void 0:t.value,placeholder:"styleeditor.placeholderInput",onChange:function(e){s(pe(pe({},t),{},{value:e.target.value}))}})),"constant"!==(null==t?void 0:t.type)&&o().createElement("div",{className:"flex-grow-1"},o().createElement(ye,{disabled:f,clearable:c,options:d,value:"initial"===(null==t?void 0:t.type)?i:null==t?void 0:t.name,onChange:function(e){e.value!==i?s({type:"attribute",name:e.value}):s({type:"initial"})}})),o().createElement(b.DropdownButton,{className:"square-button-md no-border flex-center",noCaret:!0,pullRight:!0,disabled:f,title:o().createElement(b.Glyphicon,{glyph:"option-vertical"})},[{labelId:"styleeditor.constantValue",value:"constant"},{labelId:"styleeditor.attributeValue",value:"attribute"}].map((function(e){return o().createElement(b.MenuItem,{key:e.value,active:p===e.value,onClick:function(){return r=e.value,void(t.type!==r&&s({type:r}));var r}},o().createElement(D.Z,{msgId:e.labelId}))}))))};var be=["label"],ge=["label","value","config","onChange"];function he(e){return he="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},he(e)}function Oe(){return Oe=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Ee(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function je(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r","like","isNull"],booleanOperators:["="],defaultOperators:["=",">","<",">=","<=","<>"],logicComboOptions:[{logic:"OR",name:"queryform.attributefilter.groupField.any"},{logic:"AND",name:"queryform.attributefilter.groupField.all"}],actions:{onAddGroupField:function(e,t){var r={id:(new Date).getTime(),logic:"OR",groupId:e,index:t+1};s({filterFields:d,groupFields:f?[].concat(Ne(f),[r]):[r]})},onAddFilterField:function(e){var t={rowId:(new Date).getTime(),groupId:e,attribute:null,operator:"",value:null,type:null,fieldOptions:{valuesCount:0,currentPage:1},exception:null};s({filterFields:d?[].concat(Ne(d),[t]):[t],groupFields:f})},onRemoveFilterField:function(e){s({filterFields:d.filter((function(t){return t.rowId!==e})),groupFields:f})},onUpdateFilterField:function(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};s({filterFields:d.map((function(i){return i.rowId===e?function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Me(Me({},t),{},(ze(e={},r.fieldName,r.fieldValue),ze(e,"type",r.fieldType),ze(e,"fieldOptions",Me(Me({},t.fieldOptions),{},{currentPage:void 0===r.fieldOptions.currentPage?1:r.fieldOptions.currentPage})),e));return"attribute"===r.fieldName?Me(Me({},n),{},{value:"string"===r.fieldType?"":null,operator:""}):"operator"===r.fieldName?Me(Me({},n),{},{value:null}):n}(i,{rowId:e,fieldName:t,fieldValue:r,fieldType:n,fieldOptions:o}):i})),groupFields:f})},onUpdateExceptionField:function(e,t){s({filterFields:d.map((function(r){return r.rowId===e?Me(Me({},r),{},{exception:t}):r})),groupFields:f})},onUpdateLogicCombo:function(e,t){s({filterFields:d,groupFields:f.map((function(r){return r.id===e?Me(Me({},r),{},{logic:t}):r}))})},onRemoveGroupField:function(e){s({filterFields:d.filter((function(t){return t.groupId!==e})),groupFields:f.filter((function(t){return t.id!==e}))})},onChangeCascadingValue:function(){}}}))};function Ve(e){var t,r=e.value,n=e.hide,i=e.attributes,l=e.format,a=e.onChange,u=e.placement,c=void 0===u?"right":u;if(n||!i||0===i.length)return null;var s=(null==r||null===(t=r.filterFields)||void 0===t?void 0:t.length)>0;return o().createElement(R.Z,{placement:c,content:o().createElement(Ue,{filterObj:r,attributes:i,format:l,onChange:function(e){return a({filter:e})}})},o().createElement(We,{className:"square-button-md no-border",active:s,tooltipId:"styleeditor.openFilterBuilder"},o().createElement(b.Glyphicon,{glyph:"filter"})))}function $e(e){return $e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$e(e)}function _e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Be(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);rt.value?-1:1})):e}var c,s,f=(0,n.useState)(function(e){var r=e.map((function(e,t){return{value:e,zoom:t}})),n=[t.min,t.max].filter((function(e){return void 0!==e}));return 0===n.length?r:n.reduce(u,r)}(l)),d=(s=2,function(e){if(Array.isArray(e))return e}(c=f)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,l,a=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw o}}return a}}(c,s)||qe(c,s)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=d[0],y=d[1];return o().createElement("div",{className:"ms-style-rule-scale"},o().createElement(Je,{label:"styleeditor.maxScaleDenominator",value:t.max,options:p.map((function(e){return{value:e.value,label:"1 : "+e.value,currentZoom:void 0!==r&&r===e.zoom,disabled:t.min&&e.value<=t.min}})),isValidNewOption:function(e){return e>=t.min},onChange:function(e){a(Be(Be({},t),{},{max:e})),y(u(p,e))}}),o().createElement(Je,{label:"styleeditor.minScaleDenominator",value:t.min,options:p.map((function(e){return{value:e.value,label:"1 : "+e.value,currentZoom:void 0!==r&&r===e.zoom,disabled:t.max&&e.value>=t.max}})),isValidNewOption:function(e){return e<=t.max},onChange:function(e){a(Be(Be({},t),{},{min:e})),y(u(p,e))}}))}function Qe(e){var t=e.value,r=void 0===t?{}:t,n=e.scales,i=void 0===n?[]:n,l=e.zoom,a=e.hide,u=e.onChange,c=e.placement,s=void 0===c?"right":c;return a?null:o().createElement(R.Z,{placement:s,content:o().createElement(Xe,{value:r,zoom:l,scales:i,onChange:function(e){return u({scaleDenominator:e})}})},o().createElement(Ke,{className:"square-button-md no-border",tooltipId:"styleeditor.openScaleDenominator",active:void 0!==r.min||void 0!==r.max},o().createElement(b.Glyphicon,{glyph:"1-ruler"})))}function et(e){return et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},et(e)}function tt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function rt(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const vt=function(e){var t=e.ruleId,r=e.glyph,i=e.params,l=e.kind,a=e.symbolizerKind,u=e.classificationType,c=void 0===u?"classificationVector":u,s=e.attributes,f=void 0===s?[]:s,d=e.onUpdate,p=e.onReplace,y=e.methods,m=e.getColors,v=void 0===m?function(){}:m,b=e.ruleBlock,g=void 0===b?{}:b,h=e.symbolizerBlock,O=void 0===h?{}:h,S=e.bands,w=e.config,k=mt(e,ft),E=k.ramp,j=k.method,P=k.classification,I=k.attribute,T=k.intervals,C=k.intervalsForUnique,A=void 0===C?(null==w?void 0:w.intervalsForUnique)||100:C,D=k.reverse,x=k.continuous,F=k.format,R=(0,n.useRef)();R.current={ruleId:t,intervals:T,intervalsForUnique:A,method:j,attribute:I,reverse:D,ramp:E,continuous:x,classification:P};var N=i.reduce((function(e,t){return ct()(t)?yt(yt({},e),t(a)):yt(yt({},e),t)}),{}),L=(O[a]||{}).glyph;return o().createElement(at,{key:"Classification",glyph:L||r,tools:o().createElement(lt,{ruleKind:l,symbolizerKind:a,ruleId:t,onSelect:p,ruleBlock:g,symbolizerBlock:O})},o().createElement(Ae,{properties:k,format:F,config:{attributes:f,methods:y,getColors:function(){var e="custom"===E&&P.length>0&&{name:"custom",colors:P.map((function(e){return e.color}))},t=v(void 0,void 0,5,e);return t?t.map((function(e){var t=e.name,r=mt(e,dt);return yt({label:t?"global.colors.".concat(t):void 0,name:t},r)})):[]},bands:S,method:j,methodEdit:null==k?void 0:k.methodEdit},params:N,onChange:function(e){return d(yt(yt({},R.current),{},{type:c,values:e}))}}))};var bt=r(618446),gt=r.n(bt),ht=r(717621),Ot=r.n(ht),St=["a"];function wt(e){return wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wt(e)}function kt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Et(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(l,St);return Et((jt(t={},r,Ot()(Et(Et({},u),{},{a:1})).toHexString()),jt(t,o,a),t),c&&jt({},i,void 0))}}},It=function(e){var t=e.key,r=void 0===t?"width":t,n=e.label,o=void 0===n?"Width":n,i=e.dasharrayKey,l=void 0===i?"dasharray":i;return{type:"slider",label:o,config:{range:{min:0,max:20},format:{from:function(e){return Math.round(e)},to:function(e){return Math.round(e)+" px"}}},setValue:function(){return parseFloat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)},getValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=e[0]&&e[0].split(" px")[0],o=parseFloat(n),i=t[l],a=t[r];return Et(jt({},r,o),i&&jt({},l,o?i.map((function(e){return Math.round(e/a*o)})):void 0))}}},Tt=function(e){var t=e.key,r=void 0===t?"dasharray":t,n=e.label;return{type:"dash",label:void 0===n?"Dash array":n,config:{options:[{value:"0"},{value:"1 4"},{value:"1 12"},{value:"8 8"},{value:"8 16"},{value:"8 8 1 8"},{value:"8 8 1 4 1 8"}]},setValue:function(e,t){var r=void 0===t.width?1:t.width;return void 0!==e?e.map((function(e){return Math.round(e/r)})):[0]},getValue:function(e,t){if(gt()(e,["0"]))return jt({},r,void 0);var n=void 0===t.width?1:t.width,o=!(e||[]).find((function(e){return j()(parseFloat(e))}));return jt({},r,void 0!==e&&o?e.map((function(e){return parseFloat(e)*n})):void 0)}}},Ct=function(e){var t=e.key,r=void 0===t?"cap":t,n=e.label;return{type:"toolbar",label:void 0===n?"Line cap":n,config:{options:[{labelId:"styleeditor.lineCapButt",value:"butt"},{labelId:"styleeditor.lineCapRound",value:"round"},{labelId:"styleeditor.lineCapSquare",value:"square"}]},getValue:function(e){return jt({},r,e)}}},At=function(e){var t=e.key,r=void 0===t?"join":t,n=e.label;return{type:"toolbar",label:void 0===n?"Line join":n,config:{options:[{labelId:"styleeditor.lineJoinBevel",value:"bevel"},{labelId:"styleeditor.lineJoinRound",value:"round"},{labelId:"styleeditor.lineJoinMiter",value:"miter"}]},getValue:function(e){return jt({},r,e)}}},Dt=function(e){var t=e.key,r=void 0===t?"colorMapType":t,n=e.label;return{type:"toolbar",label:void 0===n?"Color map type":n,config:{options:[{labelId:"styleeditor.colorMapType.ramp",value:"ramp"},{labelId:"styleeditor.colorMapType.intervals",value:"intervals"},{labelId:"styleeditor.colorMapType.values",value:"values"}]},getValue:function(e){return jt({},r,e)},isDisabled:e.isDisabled}},xt=function(e){var t=e.key,r=void 0===t?"radius":t,n=e.label;return{type:"slider",label:void 0===n?"Radius":n,config:{range:e.range||{min:1,max:100},format:{from:function(e){return Math.round(e)},to:function(e){return Math.round(e)+" px"}}},setValue:function(){return parseFloat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)},getValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e[0]&&e[0].split(" px")[0];return jt({},r,parseFloat(t))}}},Ft=function(e){var t=e.key,r=void 0===t?"opacity":t,n=e.label;return{type:"slider",label:void 0===n?"Opacity":n,config:{range:{min:0,max:1}},setValue:function(){return parseFloat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)},getValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e[0]&&e[0].split(" px")[0];return jt({},r,parseFloat(t))}}},Rt=function(e){var t=e.key,r=void 0===t?"offset":t,n=e.label,o=void 0===n?"":n,i=e.axis,l=void 0===i?"":i;return{key:r,type:"slider",label:o,config:{range:{min:-100,max:100},format:{from:function(e){return Math.round(e)},to:function(e){return Math.round(e)+" px"}}},setValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t="y"===l?parseFloat(e[1]):parseFloat(e[0]);return j()(t)?0:t},getValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=e[0]&&e[0].split(" px")[0],o=t[r]||[0,0];return jt({},r,"y"===l?[o[0],parseFloat(n)]:[parseFloat(n),o[1]])}}},Nt=function(e){var t=e.key,r=void 0===t?"rotate":t,n=e.label;return{type:"slider",label:void 0===n?"Rotation (deg)":n,config:{range:{min:0,max:360},format:{from:function(e){return Math.round(e)},to:function(e){return Math.round(e)+"°"}}},setValue:function(){return parseFloat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)},getValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e[0]&&e[0].split("°")[0];return jt({},r,parseFloat(t))}}},Lt=function(e){var t=e.key,r=void 0===t?"msClampToGround":t,n=e.label;return{type:"toolbar",label:void 0===n?"Clamp to ground":n,config:{options:[{labelId:"styleeditor.boolTrue",value:!0},{labelId:"styleeditor.boolFalse",value:!1}]},getValue:function(e){return jt({},r,e)},setValue:function(e){return!!e}}},Zt=function(e){var t=e.key,r=void 0===t?"msBringToFront":t,n=e.label;return{type:"toolbar",label:void 0===n?"Arrange":n,config:{options:[{labelId:"styleeditor.boolTrue",value:!0},{labelId:"styleeditor.boolFalse",value:!1}]},getValue:function(e){return jt({},r,e)},setValue:function(e){return!!e}}},Mt=function(e){var t=e.key,r=void 0===t?"msClassificationType":t,n=e.label;return{type:"toolbar",label:void 0===n?"PolygonType":n,config:{options:[{labelId:"styleeditor.3dTile",value:"3d"},{labelId:"styleeditor.terrain",value:"terrain"},{labelId:"styleeditor.both",value:"both"}]},getValue:function(e){return jt({},r,e)}}},zt=function(e){var t=e.key,r=void 0===t?"msHeightReference":t,n=e.label;return{type:"toolbar",label:void 0===n?"Height reference from ground":n,config:{options:[{labelId:"styleeditor.none",value:"none"},{labelId:"styleeditor.relative",value:"relative"},{labelId:"styleeditor.clamp",value:"clamp"}]},getValue:function(e){return Et(jt({},r,e),"clamp"===e&&{msHeight:void 0})}}},Wt=function(e){var t=e.label,r=e.key,n=void 0===r?"wellKnownName":r;return{type:"mark",label:t,getValue:function(){return jt({},n,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")}}},Ut=function(e){var t=e.label,r=e.key,n=void 0===r?"image":r;return{type:"image",label:t,config:{},getValue:function(){return jt({},n,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")}}},Vt=function(e){var t=e.label,r=e.key,n=void 0===r?"fontStyle":r;return{type:"toolbar",label:t,config:{options:[{labelId:"styleeditor.fontStyleNormal",value:"normal"},{labelId:"styleeditor.fontStyleItalic",value:"italic"}]},getValue:function(){return jt({},n,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")}}},$t=function(e){var t=e.label,r=e.key,n=void 0===r?"fontWeight":r;return{type:"toolbar",label:t,config:{options:[{labelId:"styleeditor.fontWeightNormal",value:"normal"},{labelId:"styleeditor.fontWeightBold",value:"bold"}]},getValue:function(){return jt({},n,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")}}},_t=function(e){var t=e.key,r=void 0===t?"label":t;return{type:"toolbar",label:e.label,config:{options:[{labelId:"styleeditor.boolTrue",value:!0},{labelId:"styleeditor.boolFalse",value:!1}]},isDisabled:e.isDisabled,getValue:function(e){return jt({},r,e)}}},Bt=function(e){var t=e.key,r=void 0===t?"intervals":t,n=e.label,o=e.isDisabled;return{type:"slider",label:n,config:{range:{min:2,max:25},format:{from:function(e){return Math.round(e)},to:function(e){return Math.round(e)}}},isDisabled:void 0===o?function(e,t){return"customInterval"===(null==t?void 0:t.method)}:o,setValue:function(){return parseFloat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:2)},getValue:function(){return jt({},r,parseFloat((arguments.length>0&&void 0!==arguments[0]?arguments[0]:[])[0]))}}},qt=function(e){var t=e.label,r=e.key,n=void 0===r?"":r,o=e.getOptions;return{type:"select",label:t,config:{getOptions:void 0===o?function(){return[]}:o,selectProps:e.selectProps,isValid:e.isValid},getValue:function(e){return jt({},n,e)},isDisabled:e.isDisabled,isVisible:e.isVisible}},Gt=function(e){var t=e.label,r=e.key,n=void 0===r?"":r,o=e.initialOptionValue,i=e.getSelectOptions;return{type:"multiInput",label:t,config:{initialOptionValue:o,getSelectOptions:void 0===i?function(){return[]}:i},setValue:function(e){return void 0===e?{type:"initial"}:h()(e)?e:{type:"constant",value:e}},getValue:function(e){return"initial"===(null==e?void 0:e.type)?jt({},n,void 0):"constant"===(null==e?void 0:e.type)?jt({},n,null!==(t=null==e?void 0:e.value)&&void 0!==t?t:0):jt({},n,e);var t},isDisabled:e.isDisabled,isVisible:e.isVisible}},Yt=function(e){var t=e.label,r=e.key,n=void 0===r?"":r,o=e.getOptions;return{type:"colorRamp",label:t,config:{getOptions:void 0===o?function(){return[]}:o},getValue:function(){return jt({},n,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")}}},Kt=function(e){var t=e.label,r=e.key,n=void 0===r?"":r;return{type:"colorMap",label:t,getValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=e.classification,o=e.type,i="customInterval"===t.method,l="interval"===o||i,a="color"===o||"custom"===t.ramp;return Et(Et(jt({},n,r),l&&{method:"customInterval",methodEdit:i?t.methodEdit:t.method}),a&&{ramp:"custom"})}}},Ht=function(e){return{type:"channel",label:e.label,setValue:function(e,t){return{channelSelection:t.channelSelection,contrastEnhancement:t.contrastEnhancement}},getValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{channelSelection:e.channelSelection,contrastEnhancement:e.contrastEnhancement}}}};var Jt=r(264721),Xt=r.n(Jt);function Qt(e){return Qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qt(e)}function er(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function tr(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{},t=e.exactMatchGeometrySymbol,r=e.enable3dStyleOptions,n={Mark:{kind:"Mark",glyph:"1-point",glyphAdd:"1-point-add",tooltipAddId:"styleeditor.addMarkRule",supportedTypes:t?["point","vector"]:["point","linestring","polygon","vector"],params:tr({wellKnownName:Wt({label:"styleeditor.shape"}),color:Pt({key:"color",opacityKey:"fillOpacity",label:"styleeditor.fill"}),strokeColor:Pt({key:"strokeColor",opacityKey:"strokeOpacity",label:"styleeditor.strokeColor",stroke:!0}),strokeWidth:It({key:"strokeWidth",label:"styleeditor.strokeWidth"}),radius:xt({key:"radius",label:"styleeditor.radius"}),rotate:Nt({label:"styleeditor.rotation"})},r?lr:{}),defaultProperties:{kind:"Mark",wellKnownName:"Circle",color:"#dddddd",fillOpacity:1,strokeColor:"#777777",strokeOpacity:1,strokeWidth:1,radius:16,rotate:0,msBringToFront:!1,msHeightReference:"none"}},Icon:{kind:"Icon",glyph:"point",glyphAdd:"point-plus",tooltipAddId:"styleeditor.addIconRule",supportedTypes:t?["point","vector"]:["point","linestring","polygon","vector"],hideMenu:!0,params:tr({image:Ut({label:"styleeditor.image",key:"image"}),format:qt({label:"styleeditor.format",key:"format",isVisible:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).image;return"css"!==(arguments.length>2?arguments[2]:void 0)&&!h()(t)&&!["png","jpg","svg","gif","jpeg"].includes(t.split(".").pop())},getOptions:function(){return _.qL}}),opacity:Ft({label:"styleeditor.opacity"}),size:xt({key:"size",label:"styleeditor.size"}),rotate:Nt({label:"styleeditor.rotation"})},r?lr:{}),defaultProperties:{kind:"Icon",image:"",opacity:1,size:32,rotate:0,msBringToFront:!1,msHeightReference:"none"}},Line:{kind:"Line",glyph:"line",glyphAdd:"line-plus",tooltipAddId:"styleeditor.addLineRule",supportedTypes:t?["linestring","vector"]:["linestring","polygon","vector"],params:tr({color:Pt({label:"styleeditor.strokeColor",stroke:!0,pattern:!0,getGroupParams:function(e){return n[e]},getGroupConfig:function(e){return"Mark"===e?{disableAlpha:!0}:"Icon"===e?{omittedKeys:["rotate","opacity"]}:{}},graphicKey:"graphicStroke"}),width:It({label:"styleeditor.strokeWidth",key:"width"}),dasharray:Tt({label:"styleeditor.lineStyle",key:"dasharray"}),cap:Ct({label:"styleeditor.lineCap",key:"cap"}),join:At({label:"styleeditor.lineJoin",key:"join"})},r?or({label:"styleeditor.clampToGround"}):{}),defaultProperties:{kind:"Line",color:"#777777",width:1,opacity:1,cap:"round",join:"round",msClampToGround:!0}},Fill:{kind:"Fill",glyph:"polygon",glyphAdd:"polygon-plus",tooltipAddId:"styleeditor.addFillRule",supportedTypes:["polygon","vector"],params:tr({color:Pt({label:"styleeditor.fill",key:"color",opacityKey:"fillOpacity",pattern:!0,graphicKey:"graphicFill",getGroupParams:function(e){return n[e]},getGroupConfig:function(e){return"Mark"===e?{}:"Icon"===e?{omittedKeys:["rotate","opacity"]}:{}}}),outlineColor:Pt({key:"outlineColor",opacityKey:"outlineOpacity",label:"styleeditor.outlineColor",stroke:!0}),outlineWidth:It({key:"outlineWidth",label:"styleeditor.outlineWidth"})},r?tr(tr({},ar),or({label:"styleeditor.clampOutlineToGround"})):{}),defaultProperties:{kind:"Fill",color:"#dddddd",fillOpacity:1,outlineColor:"#777777",outlineWidth:1,msClassificationType:"both",msClampToGround:!0}},PointCloud:{kind:"Mark",glyph:"1-point",glyphAdd:"1-point-add",tooltipAddId:"styleeditor.addMarkRule",supportedTypes:["pointcloud"],hideMenu:!0,params:{color:Pt({key:"color",opacityKey:"fillOpacity",label:"styleeditor.fill"}),radius:xt({key:"radius",label:"styleeditor.radius",range:{min:1,max:10}})},defaultProperties:{kind:"Mark",wellKnownName:"Circle",color:"#dddddd",fillOpacity:1,radius:1}},Polyhedron:{kind:"Fill",glyph:"polygon",glyphAdd:"polygon-plus",tooltipAddId:"styleeditor.addFillRule",supportedTypes:["polyhedron"],hideMenu:!0,params:{color:Pt({label:"styleeditor.fill",key:"color",opacityKey:"fillOpacity",pattern:!0,graphicKey:"graphicFill",getGroupParams:function(e){return n[e]},getGroupConfig:function(e){return"Mark"===e?{}:"Icon"===e?{omittedKeys:["rotate","opacity"]}:{}}})},defaultProperties:{kind:"Fill",color:"#dddddd",fillOpacity:1}},Text:{kind:"Text",glyph:"font",tooltipAddId:"styleeditor.addTextRule",supportedTypes:t?["point","vector"]:["point","linestring","polygon","vector"],params:{label:qt({key:"label",label:"styleeditor.label",selectProps:{creatable:!0},getOptions:function(e){var t=e.attributes;return(null==t?void 0:t.map((function(e){return{value:"{{"+e.attribute+"}}",label:e.attribute}})))||[]}}),font:qt({key:"font",label:"styleeditor.fontFamily",selectProps:{multi:!0},getOptions:function(e){var t=e.fonts;return(null==t?void 0:t.map((function(e){return{value:e,label:e}})))||[]}}),color:Pt({label:"styleeditor.fontColor",key:"color",disableAlpha:!0}),size:xt({label:"styleeditor.fontSize",key:"size"}),fontStyle:Vt({label:"styleeditor.fontStyle",key:"fontStyle"}),fontWeight:$t({label:"styleeditor.fontWeight",key:"fontWeight"}),haloColor:Pt({label:"styleeditor.haloColor",key:"haloColor",stroke:!0,disableAlpha:!0}),haloWidth:It({label:"styleeditor.haloWidth",key:"haloWidth"}),rotate:Nt({label:"styleeditor.rotation"}),offsetX:Rt({label:"styleeditor.offsetX",axis:"x"}),offsetY:Rt({label:"styleeditor.offsetY",axis:"y"})},defaultProperties:{kind:"Text",color:"#333333",size:14,fontStyle:"normal",fontWeight:"normal",haloColor:"#ffffff",haloWidth:1,allowOverlap:!0,offset:[0,0]}},Raster:{kind:"Raster",glyph:"1-raster",tooltipAddId:"styleeditor.addRasterRule",supportedTypes:["raster"],params:{channel:Ht({}),opacity:Ft({label:"styleeditor.opacity"})},defaultProperties:{kind:"Raster",opacity:1,contrastEnhancement:{}}}},o={Classification:{kind:"Classification",glyph:"list",classificationType:"classificationVector",hideInputLabel:!0,hideFilter:!0,params:[{ramp:Yt({key:"ramp",label:"styleeditor.colorRamp",getOptions:function(e){return(0,e.getColors)()}}),reverse:_t({key:"reverse",label:"styleeditor.reverse",isDisabled:function(e,t){return"custom"===(null==t?void 0:t.ramp)||"customInterval"===(null==t?void 0:t.method)}}),attribute:qt({key:"attribute",label:"styleeditor.attribute",isValid:function(e){return void 0!==e.value},getOptions:function(e){var t=e.attributes;return null==t?void 0:t.map((function(e){return{value:e.attribute,label:e.attribute,disabled:e.disabled}}))}}),method:qt({key:"method",label:"styleeditor.method",isDisabled:function(e,t,r){var n,o,i=r.attributes;return"string"===(null==i||null===(n=i.filter((function(e){return e.label===(null==t?void 0:t.attribute)})))||void 0===n||null===(o=n[0])||void 0===o?void 0:o.type)&&"customInterval"!==(null==t?void 0:t.method)},getOptions:function(e){var t=e.methods,r=e.method,n=e.methodEdit,o=(null==t?void 0:t.map((function(e){return{labelId:"styleeditor."+e,value:e}})))||[];return[].concat(rr("customInterval"===r?[{labelId:"styleeditor."+n,glyphId:"edit",value:r}]:[]),rr(o))}}),intervals:Bt({label:"styleeditor.intervals",isDisabled:function(e,t){return Xt()(["customInterval","uniqueInterval"],null==t?void 0:t.method)}})},function(e){var t,r,o,i;if(!e)return{};switch(e){case"Mark":return tr({fillOpacity:Ft({key:"fillOpacity",label:"styleeditor.opacity"})},S()(null===(t=n[e])||void 0===t?void 0:t.params,["color"]));case"Line":return tr({opacity:Ft({key:"opacity",label:"styleeditor.opacity"})},S()(null===(r=n[e])||void 0===r?void 0:r.params,["color"]));case"Fill":return tr({fillOpacity:Ft({key:"fillOpacity",label:"styleeditor.opacity"})},S()(null===(o=n[e])||void 0===o?void 0:o.params,["color"]));default:return null===(i=n[e])||void 0===i?void 0:i.params}},{classification:Kt({key:"classification",rampKey:"ramp"})}],defaultProperties:{kind:"Classification",classification:[],intervals:5,method:"equalInterval",ramp:"orrd",reverse:!1}},Raster:{kind:"Raster",glyph:"1-raster",classificationType:"classificationRaster",hideInputLabel:!1,hideFilter:!0,params:[{channel:Ht({}),opacity:Ft({label:"styleeditor.opacity"}),ramp:Yt({key:"ramp",label:"styleeditor.colorRamp",getOptions:function(e){return(0,e.getColors)()}}),reverse:_t({key:"reverse",label:"styleeditor.reverse",isDisabled:function(e,t){return"custom"===(null==t?void 0:t.ramp)||"customInterval"===(null==t?void 0:t.method)}}),continuous:_t({key:"continuous",label:"styleeditor.continuous",isDisabled:function(e,t){return"custom"===(null==t?void 0:t.ramp)||"customInterval"===(null==t?void 0:t.method)}}),colorMapType:Dt({key:"colorMapType",label:"styleeditor.colorMapType.label"}),method:qt({key:"method",label:"styleeditor.method",getOptions:function(e){var t=e.methods,r=e.method,n=e.methodEdit,o=(null==t?void 0:t.map((function(e){return{labelId:"styleeditor."+e,value:e}})))||[];return[].concat(rr("customInterval"===r?[{labelId:"styleeditor."+n,glyphId:"edit",value:r}]:[]),rr(o))}}),intervals:Bt({label:"styleeditor.intervals"})},{classification:Kt({key:"classification",rampKey:"ramp"})}],defaultProperties:{kind:"Raster",opacity:1,classification:[],intervals:5,method:"equalInterval",reverse:!1,continuous:!0,colorMapType:"ramp",symbolizerKind:"Raster"}}};return{symbolizerBlock:n,ruleBlock:o}};var cr=r(180307),sr=r(590937);function fr(e){var t=e.title,r=e.tools,i=e.errorId,l=e.msgParams,a=e.draggable,u=e.connectDragSource,c=e.connectDropTarget,s=e.isDragging,f=e.children,d=(0,n.useRef)(null);a&&(u(d.current),c(d.current));var p=s?" ms-drop-target":"";return o().createElement("li",{ref:d,className:"ms-style-rule".concat(p)},o().createElement("div",{className:"ms-style-rule-head"},a&&o().createElement("div",{className:"ms-style-rule-grab-handle"},o().createElement(b.Glyphicon,{glyph:"grab-handle"})),o().createElement("div",{className:"ms-style-rule-head-info"},t),o().createElement("div",{className:"ms-style-rule-head-tools"},r)),i&&o().createElement(b.Alert,{bsStyle:"danger"},o().createElement(D.Z,{msgId:i,msgParams:l})),o().createElement("ul",{className:"ms-style-rule-body"},f))}fr.propTypes={title:l().oneOfType([l().node,l().string]),tools:l().node,errorId:l().string,draggable:l().bool,connectDragSource:l().func,connectDropTarget:l().func,isDragging:l().bool},fr.defaultProps={connectDragSource:function(e){return e},connectDropTarget:function(e){return e}};var dr="RULE";const pr=(0,sr.GR)(dr,{hover:function(e,t,r){!function(e,t,r){if(!r)return null;var n=(0,cr.findDOMNode)(r);if(!n)return null;var o=t.getItem().index,i=e.index;if(o===i)return null;var l=n.getBoundingClientRect(),a=l.bottom,u=l.top,c=(a-u)/2,s=t.getClientOffset().y-u;oi&&s>c||(e.onSort(o,i),t.getItem().index=i)}(e,t,r)}},(function(e){return{connectDropTarget:e.dropTarget()}}))((0,sr.Ej)(dr,{beginDrag:function(e){return{id:e.id,index:e.index}}},(function(e,t){return{connectDragSource:e.dragSource(),isDragging:t.isDragging()}}))(fr));var yr=r(202576),mr=["ruleId"],vr=["kind","symbolizerId"];function br(e){return br="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},br(e)}function gr(){return gr=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Or(e){return function(e){if(Array.isArray(e))return Sr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Sr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Sr(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Sr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);rt?[r,o]:[o,r]:[o])}),[]);return S(n)}function z(e,t){var r=e.symbolizers,n=void 0===r?[]:r;return!!s()(n,(function(e){return"Text"===e.kind}))&&t>0}return R.current={rules:i},o().createElement("div",{ref:t,className:"ms-style-rules-editor"},o().createElement("div",{className:"ms-style-rules-editor-head"},o().createElement("div",{className:"ms-style-rules-editor-left"},a),o().createElement("div",{className:"ms-style-rules-editor-right"},o().createElement(p.Z,{btnDefaultProps:{className:"square-button-md no-border"},buttons:[].concat(Or(Object.keys(m).map((function(e){var t=m[e];return{glyph:t.glyphAdd||t.glyph,visible:-1!==t.supportedTypes.indexOf(w),tooltipId:t.tooltipAddId,onClick:function(){return L({name:"",ruleId:xe()(),symbolizers:[kr(kr({},m[e].defaultProperties),{},{symbolizerId:xe()()})]})}}}))),Or(Object.keys(d).filter((function(e){return d[e].add})).map((function(e){var t=d[e];return{glyph:t.glyphAdd||t.glyph,visible:-1!==t.supportedTypes.indexOf(w),tooltipId:t.tooltipAddId,onClick:function(){return L(kr({name:"",ruleId:xe()()},d[e].defaultProperties))}}}))))}))),o().createElement("ul",{className:"ms-style-rules-editor-body"},0===i.length&&o().createElement(Pr,null),i.map((function(e,t){var r,n=e.name,l=e.symbolizers,a=void 0===l?[]:l,u=e.filter,c=e.scaleDenominator,s=void 0===c?{}:c,f=e.ruleId,p=e.kind,y=e.errorId,g=e.msgParams,O=d[p]||{},L=O.params,W=O.glyph,U=O.hideInputLabel,V=O.hideFilter,$=O.hideScaleDenominator,_=O.classificationType,B=!!v()(k)&&"number"===(null===(r=k.find((function(t){return t.label===(null==e?void 0:e.attribute)}))||{})||void 0===r?void 0:r.type);return o().createElement(pr,{key:f+(i.length>1?"_draggable":""),draggable:i.length>1,id:f,index:t,errorId:y,msgParams:g,onSort:M,title:U?o().createElement(D.Z,{msgId:"styleeditor.rule".concat(p)}):o().createElement(b.FormGroup,{onDragStart:function(e){e.stopPropagation(),e.preventDefault()},draggable:!0},o().createElement(jr,{value:n,placeholder:"styleeditor.enterLegendLabelPlaceholder",onChange:function(e){return N({values:{name:e.target.value},ruleId:f},!0)}})),tools:o().createElement(o().Fragment,null,z(e,t)&&o().createElement(yr.Z,{glyph:"exclamation-mark",bsStyle:"warning",placement:"right",title:o().createElement(D.Z,{msgId:"styleeditor.warningTextOrderTitle"}),text:o().createElement(D.Z,{msgId:"styleeditor.warningTextOrder"})}),o().createElement(Ve,{hide:V,value:u,attributes:k,format:x,onChange:function(e){return N({values:e,ruleId:f},!0)}}),j&&o().createElement(Qe,{hide:$,value:s,scales:j,zoom:P,onChange:function(e){return N({values:e,ruleId:f},!0)}}),o().createElement(Er,{className:"square-button-md no-border",tooltipId:"styleeditor.removeRule",onClick:function(){return function(e){var t=R.current.rules.filter((function(t){return t.ruleId!==e}));S(t)}(f)}},o().createElement(b.Glyphicon,{glyph:"trash"})))},"Classification"===p||"Raster"===p?o().createElement(vt,gr({},e,{ruleBlock:d,symbolizerBlock:m,glyph:W,classificationType:_,config:A||{},params:L,methods:T,getColors:C,bands:E,attributes:k&&k.map((function(t){return kr(kr({},t),"customInterval"===e.method?{disabled:B?"number"!==t.type:t.label!==e.attribute}:"uniqueInterval"!==e.method&&{disabled:"number"!==t.type})})),onUpdate:h,onChange:function(e){return N({values:e,ruleId:f},!0)},onReplace:Z,format:x})):a.map((function(e){var t=e.kind,r=void 0===t?"":t,n=e.symbolizerId,i=hr(e,vr),l=function(e){var t=Object.keys(m).filter((function(e){return m[e].supportedTypes.includes(w)})).find((function(t){var r;return(null===(r=m[t])||void 0===r?void 0:r.kind)===e}));return m[t]||m[e]||{}}(r),a=l.params,u=l.glyph,c=l.hideMenu;return a&&o().createElement(at,{key:n,defaultExpanded:!0,draggable:!0,glyph:u,tools:!F&&o().createElement(lt,{hide:c,symbolizerKind:r,ruleBlock:d,symbolizerBlock:m,ruleId:f,onSelect:Z,graphic:i.graphicFill||i.graphicStroke,channelSelection:i.channelSelection})},o().createElement(Ae,{properties:i,format:x,params:a,config:{bands:E,attributes:k,fonts:I},onChange:function(e){return N({values:e,ruleId:f,symbolizerId:n})}}))})))})),l&&o().createElement("div",{className:"ms-style-rule-overlay-loader",style:{position:"absolute",width:"100%",height:"100%",zIndex:10,transition:"0.3s all"}})))})),Tr=ur(),Cr=Tr.symbolizerBlock,Ar=Tr.ruleBlock;Ir.propTypes={rules:l().array,loading:l().bool,toolbar:l().node,config:l().object,ruleBlock:l().object,symbolizerBlock:l().object,onUpdate:l().func,onChange:l().func},Ir.defaultProps={rules:[],config:{},ruleBlock:Ar,symbolizerBlock:Cr,onUpdate:function(){},onChange:function(){}};const Dr=Ir;var xr=r(166287),Fr=r(21090),Rr=["values"];function Nr(e){return Nr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nr(e)}function Lr(e){return function(e){if(Array.isArray(e))return zr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Mr(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Zr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,l,a=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw o}}return a}}(e,t)||Mr(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mr(e,t){if(e){if("string"==typeof e)return zr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?zr(e,t):void 0}}function zr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,Rr);Z(!0),function(e){var t=e.values,r=e.properties,n=e.rules,o=e.layer,i=e.styleService,l=e.styleUpdateTypes,a=void 0===l?{}:l;return new Promise((function(e){var l=r.type&&a[r.type];return e(l?l({values:t,properties:r,rules:n,layer:o,styleService:i}):n.map((function(e){return e.ruleId===r.ruleId?Ur(Ur(Ur({},e),t),{},{errorId:void 0}):e})))}))}({values:t,properties:r,layer:a,rules:V.current.style.rules,styleService:T,styleUpdateTypes:P}).then((function(e){return B(e)})).catch((function(){return B()}))}})}Kr.propTypes={code:l().string,format:l().string,layer:l().object,zoom:l().number,scales:l().array,geometryType:l().string,fonts:l().array,bands:l().array,attributes:l().array,onChange:l().func,onError:l().func,defaultStyleJSON:l().object,config:l().object,loading:l().bool,error:l().object,methods:l().array,getColors:l().func,styleUpdateTypes:l().object,debounceTime:l().number},Kr.defaultProps={onChange:function(){},onError:function(){},config:{},getColors:function(){},styleUpdateTypes:{},debounceTime:300,defaultStyleJSON:null};const Hr=Kr},471891:(e,t,r)=>{"use strict";r.d(t,{T:()=>L,Z:()=>Z});var n=r(701469),o=r.n(n),i=r(513218),l=r.n(i),a=r(124852),u=r.n(a),c=r(480681),s=r(171703),f=r(22222),d=r(396909),p=r(378795),y=r(108954),m=r(805346),v=r(965539),b=r(532425),g=r(80717),h=r(467057),O=r(40683),S=r(800827),w=r(893222),k=r(784715),E=r(99009),j=r(24198),P=r(717621),I=r.n(P);const T=[{type:"color",active:function(e){return"atom"===e.type&&I()(e.string).isValid()},style:function(e){return{backgroundColor:e.string}},Widget:function(e){var t=e.token,r=e.value,n=e.onChange,o=void 0===n?function(){}:n;return u().createElement(j.xS,{color:{hex:r||t.string},onChange:function(e){return o(e.hex)}})}}];var C=["code","error","canEdit","editorType","onUpdateMetadata","onChange","loading","header","editors"];function A(){return A=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,C),w=(t=(0,a.useState)(),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,l,a=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw o}}return a}}(t,r)||function(e,t){if(e){if("string"==typeof e)return D(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?D(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),k=w[0],E=w[1],j={position:"relative",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",textAlign:"center"};if(!n&&!o)return u().createElement("div",{style:j},u().createElement(b.Z,{size:150}));if(!i)return u().createElement("div",{style:j},u().createElement("div",null,u().createElement(c.Glyphicon,{glyph:"exclamation-mark",style:{fontSize:150}}),u().createElement("h1",null,u().createElement(m.Z,{msgId:"styleeditor.noPermission"}))));if(404===(null==o?void 0:o.status))return u().createElement("div",{style:j},u().createElement("div",null,u().createElement(c.Glyphicon,{glyph:"exclamation-mark",style:{fontSize:150}}),u().createElement("h1",null,u().createElement(m.Z,{msgId:"styleeditor.styleNotFound"}))));var P=O[s]||N[s]||N.textarea;return u().createElement(v.Z,{style:{position:"relative"},header:u().createElement("div",{className:"ms-style-editor-toolbar"},u().createElement("div",{className:"ms-style-editor-toolbar-left"},y),u().createElement(g.Z,{buttons:[{className:"no-border",bsSize:"xs",disabled:p,active:"textarea"===s,textId:"visual"===s?"styleeditor.switchToTextareaEditor":"styleeditor.switchToVisualEditor",onClick:function(){return p?null:"visual"===s?f({editorType:"textarea"}):E(!0)}}]}))},P&&u().createElement(P,A({},S,{code:n,error:o,onChange:function(e,t){d(e),l()(t)&&f({styleJSON:JSON.stringify(t)})}})),k&&u().createElement("div",{className:"ms-style-editor-alert",style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",zIndex:10,display:"flex",alignItems:"center",justifyContent:"center",padding:16,backgroundColor:"rgba(0, 0, 0, 0.6)"}},u().createElement(c.Alert,{bsStyle:"warning",style:{textAlign:"center"}},u().createElement("p",{style:{padding:8}},u().createElement(m.Z,{msgId:"styleeditor.alertForceTranslate"})),u().createElement("p",null,u().createElement(g.Z,{buttons:[{text:u().createElement(m.Z,{msgId:"styleeditor.stayInTextareaEditor"}),onClick:function(){return E(!1)},style:{marginRight:4}},{bsStyle:"primary",text:u().createElement(m.Z,{msgId:"styleeditor.useLatestValidStyle"}),onClick:function(){f({editorType:"visual"}),E(!1)}}]})))))}L.defaultProps={inlineWidgets:T};const Z=(0,s.connect)((0,k.y)(w.gB,w.p,w.z_,(function(e){var t=(0,w.WW)(e);return null==t?void 0:t.editorType}),(function(e){try{var t=(0,w.WW)(e);return JSON.parse(null==t?void 0:t.styleJSON)}catch(e){return null}}),w.aN,(function(e,t,r,n,o,i){return{code:e,error:t.edit||null,canEdit:r,editorType:n,defaultStyleJSON:o,loading:i}})),{onUpdateMetadata:d.bB,onChange:d.p2})(L)},278720:(e,t,r)=>{"use strict";r.d(t,{m2:()=>Y,tM:()=>re,lC:()=>ee});var n=r(124852),o=r.n(n),i=r(171703),l=r(867076),a=r(22222),u=r(460604),c=r(690825),s=r(580416),f=r(396909),d=r(805346),p=r(965539),y=r(982030),m=r(173014),v=r(906724),b=r(532425),g=r(480681),h=r(638064),O=r(993451),S=r(815135),w=r(698772),k=r(283958);function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function P(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r4&&void 0!==arguments[4]?arguments[4]:{}).formats;return{selectedStyle:e,add:t&&e,geometryType:r,canEdit:n,availableFormats:void 0===o?[]:o,loading:arguments.length>5?arguments[5]:void 0}})),{onSelect:f.FU,onClose:f.cu.bind(null,!1),onSave:f.wj}),H,J((function(e){return!e.geometryType})),(0,l.withState)("filterText","onFilter",""),(0,l.withState)("styleSettings","onUpdate",{}))((function(e){var t=e.selectedStyle,r=e.add,n=e.styleSettings,i=void 0===n?{}:n,l=e.geometryType,a=void 0===l?"":l,u=e.templates,c=void 0===u?[]:u,s=e.filterText,f=e.availableFormats,y=void 0===f?["sld","css"]:f,m=e.formFields,v=void 0===m?[{key:"title",placeholder:"styleeditor.titleSettingsplaceholder",title:o().createElement(d.Z,{msgId:"styleeditor.titleSettings"})},{key:"_abstract",placeholder:"styleeditor.abstractSettingsplaceholder",title:o().createElement(d.Z,{msgId:"styleeditor.abstractSettings"})}]:m,h=e.onFilter,O=void 0===h?function(){}:h,S=e.onSelect,w=void 0===S?function(){}:S,E=e.onClose,j=void 0===E?function(){}:E,P=e.onSave,I=void 0===P?function(){}:P,T=e.onUpdate,C=void 0===T?function(){}:T,A=e.loading;return o().createElement(p.Z,{header:o().createElement("div",null,o().createElement(W,{filterPlaceholder:"styleeditor.templateFilterPlaceholder",filterText:s,onFilter:O}),o().createElement("div",{className:"text-center"},o().createElement("small",null,A?o().createElement(b.Z,{size:15,style:{display:"inline-block"}}):o().createElement(d.Z,{msgId:"styleeditor.createStyleFromTemplate"}))))},o().createElement(V,{colProps:{},cardComponent:F,onItemClick:function(e){var t=e.code,r=e.styleId,n=e.format;w({code:t,templateId:r,format:n||"css"}),C(M(M({},i),{},{title:D()(c.filter((function(e){return e.styleId===r})).map((function(e){return e.title})))}))},items:c.filter((function(e){var t=e.title;return!s||s&&-1!==t.indexOf(s)})).filter((function(e){var t=e.types,r=e.format;return!t||D()(t.filter((function(e){return e===a})))&&-1!==y.indexOf(r)})).map((function(e){var r;return M(M({},e),{},{preview:null!=e&&null!==(r=e.preview)&&void 0!==r&&r.config?o().createElement(k.Z,e.preview.config):null==e?void 0:e.preview,selected:e.styleId===t,disabled:A})}))}),o().createElement(R.Z,null,o().createElement(N.Z,{show:!!r,fitContent:!0,title:o().createElement(d.Z,{msgId:"styleeditor.createStyleModalTitle"}),onClose:function(){return j()},buttons:[{text:o().createElement(d.Z,{msgId:"save"}),bsStyle:"primary",disabled:!$(i),onClick:function(){return I(i)}}]},o().createElement(g.Form,null,o().createElement(g.FormGroup,{controlId:"styleTitle",validationState:!$(i)&&"error"},v.map((function(e){var t=e.title,r=e.placeholder,n=e.key;return o().createElement("span",{key:n},o().createElement(g.ControlLabel,null,t),o().createElement(U,{type:"text",defaultValue:i[n],placeholder:r,onChange:function(e){return C(M(M({},i),{},z({},n,e.target.value)))}}))}))),!$(i)&&o().createElement(g.Alert,{style:{margin:0},bsStyle:"danger"},o().createElement(x.Z,{msgId:"styleeditor.titleRequired"}))))))})),Q=(0,l.compose)((0,i.connect)((0,a.P1)([q.ex,q.ov],(function(e,t){return{status:e,defaultStyle:t.defaultStyle,enabledStyle:t.enabledStyle,availableStyles:t.availableStyles}})),{onSelect:s.Xy}),(0,l.withState)("filterText","onFilter",""),(0,v.Z)((function(e){var t=e.status,r=e.readOnly;return"template"===t&&!r}),(function(){return o().createElement(X,null)}),{maskContainerStyle:{display:"flex",position:"relative"},maskStyle:{overflowY:"auto",left:0}}))((function(e){var t=e.showDefaultStyleIcon,r=e.enabledStyle,n=e.defaultStyle,i=e.availableStyles,l=void 0===i?[]:i,a=e.onSelect,u=e.formatColors,c=void 0===u?{sld:"#33ffaa",css:"#ffaa33"}:u,s=e.filterText,f=e.onFilter,d=void 0===f?function(){}:f;return o().createElement(p.Z,{className:"ms-style-editor-list",header:o().createElement(I,{filterPlaceholder:"styleeditor.styleListfilterPlaceholder",filterText:s,onFilter:d})},o().createElement(C,{size:"sm",onItemClick:function(e){var t=e.name;return a({style:t},!0)},items:l.filter((function(e){var t,r,n=e.name,o=void 0===n?"":n,i=e.title,l=void 0===i?"":i,a=e._abstract,u=void 0===a?"":a,c=e.metadata,f=void 0===c?{}:c;return!s||s&&(-1!==o.indexOf(s)||-1!==(null==f||null===(t=f.title)||void 0===t?void 0:t.indexOf(s))||-1!==(null==f||null===(r=f.description)||void 0===r?void 0:r.indexOf(s))||-1!==l.indexOf(s)||-1!==u.indexOf(s))})).map((function(e){var i,l,a;return P(P({},e),{},{title:(null==e||null===(i=e.metadata)||void 0===i?void 0:i.title)||e.label||e.title||e.name,description:(null==e||null===(l=e.metadata)||void 0===l?void 0:l.description)||e._abstract,selected:r===e.name,preview:e.format&&o().createElement(k.Z,{backgroundColor:"#333333",texts:[{text:(a=e.format,{sld:"SLD",css:"CSS",mbstyle:"MBS"}[a]||a||"").toUpperCase(),fill:c[e.format]||"#f2f2f2",style:{fontSize:70,fontWeight:"bold"}}]})||o().createElement(T,{glyph:"geoserver"}),tools:t&&n===e.name?o().createElement(T,{glyph:"star",tooltipId:"styleeditor.defaultStyle"}):null})}))}))})),ee=(0,l.compose)((0,l.withState)("showModal","onShowModal"),(0,i.connect)((0,a.P1)([q.ex,q.Mc,q.p,q.QW,q.gB,q.aN,q.i7,q.z_,q.ov,q.Z0,q.Ed],(function(e,t,r,n,o,i,l,a,u){var c=u.defaultStyle,s=(arguments.length>9&&void 0!==arguments[9]?arguments[9]:{}).formats,f=arguments.length>10?arguments[10]:void 0;return{status:e,templateId:t,error:r,isCodeChanged:n!==o,loading:i,layerDefaultStyleName:c,selectedStyle:c===l?"":l,editEnabled:a,disableCodeEditing:-1===(void 0===s?["sld"]:s).indexOf(f)}})),{onSelectStyle:f.Nf.bind(null,"template"),onEditStyle:f.Nf.bind(null,"edit"),onBack:f.Nf.bind(null,""),onReset:u.B1.bind(null,G.s1,[{}]),onAdd:f.cu.bind(null,!0),onUpdate:f.Lc,onDelete:f.WQ,onSetDefault:f.WB}))((function(e){var t,r=e.status,n=e.buttons,i=void 0===n?[]:n,l=e.templateId,a=e.error,u=e.isCodeChanged,c=e.showModal,s=e.onShowModal,f=e.loading,p=e.selectedStyle,y=e.layerDefaultStyleName,m=e.editEnabled,v=e.enableSetDefaultStyle,b=e.defaultStyles,h=void 0===b?["generic","point","line","polygon","raster"]:b,O=e.onBack,S=void 0===O?function(){}:O,w=e.onAdd,k=void 0===w?function(){}:w,E=e.onReset,j=void 0===E?function(){}:E,P=e.onDelete,I=void 0===P?function(){}:P,T=e.onSelectStyle,C=void 0===T?function(){}:T,A=e.onEditStyle,D=void 0===A?function(){}:A,x=e.onUpdate,F=void 0===x?function(){}:x,L=e.onSetDefault,Z=void 0===L?function(){}:L,M=e.disableCodeEditing;return o().createElement("div",null,o().createElement(_.Z,{btnDefaultProps:{className:"square-button-md",bsStyle:"primary"},buttons:[{glyph:"arrow-left",visible:!!r,tooltipId:"styleeditor.backToList",disabled:!!f,onClick:function(){"edit"===r&&u?s({title:o().createElement(d.Z,{msgId:"styleeditor.closeWithoutSaveAlertTitle"}),message:o().createElement(g.Alert,{bsStyle:"warning",style:{margin:0}},o().createElement(d.Z,{msgId:"styleeditor.closeWithoutSaveAlert"})),buttons:[{text:o().createElement(d.Z,{msgId:"close"}),bsStyle:"primary",onClick:function(){s(null),S(),j()}}]}):(S(),j())}},{glyph:"1-stilo",tooltipId:"styleeditor.createNewStyle",visible:!(r||!m),disabled:!!f,onClick:function(){return C()}},{glyph:"code",tooltipId:"styleeditor.editSelectedStyle",visible:!(r||!m),disabled:!!f||-1!==h.indexOf(p)||!p&&-1!==h.indexOf(y)||M,onClick:function(){return D()}},{glyph:"ok",tooltipId:"styleeditor.saveCurrentStyle",disabled:!!(a&&a.edit&&a.edit.status)||!!f||-1!==h.indexOf(p),visible:!("edit"!==r||!m),onClick:function(){return F()}},{glyph:"plus",tooltipId:"styleeditor.addSelectedTemplate",visible:!("template"!==r||!l||!m),disabled:!!f,onClick:function(){return k()}},{glyph:"trash",tooltipId:"styleeditor.deleteSelectedStyle",disabled:!!f||-1!==h.indexOf(p)||!p,visible:!(r||!m),onClick:function(){s({title:o().createElement(d.Z,{msgId:"styleeditor.deleteStyleAlertTitle"}),message:o().createElement(g.Alert,{bsStyle:"warning",style:{margin:0}},o().createElement(d.Z,{msgId:"styleeditor.deleteStyleAlert"})),buttons:[{text:o().createElement(d.Z,{msgId:"styleeditor.delete"}),bsStyle:"primary",onClick:function(){s(null),I(p)}}]})}},{glyph:"star",tooltipId:"styleeditor.setDefaultStyle",disabled:!!f||-1!==h.indexOf(p)||!p,visible:!(!v||r||!m),onClick:function(){return Z()}}].concat((t=r?[]:i,function(e){if(Array.isArray(e))return B(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return B(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?B(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))}),o().createElement(R.Z,null,o().createElement(N.Z,{show:c,fitContent:!0,title:c&&c.title,onClose:function(){return s(null)},buttons:c&&c.buttons},c&&c.message)))})),te=(0,l.compose)((0,i.connect)((0,a.P1)([q.Vf],(function(e){return{layer:e}})),{onInit:c.k}),(0,l.lifecycle)({UNSAFE_componentWillMount:function(){this.props.onInit&&this.props.layer&&this.props.onInit(this.props.layer)}}),J((function(e){var t=e.layer,r=void 0===t?{}:t;return r&&r.capabilitiesLoading})))((function(){return o().createElement(p.Z,{className:"ms-style-editor-container",footer:o().createElement("div",{style:{height:25}})},o().createElement(Q,{readOnly:!0}))})),re=(0,l.branch)((function(e){return e.readOnly}),(function(){return te}))(Q)},893222:(e,t,r)=>{"use strict";r.d(t,{gc:()=>v,Mc:()=>b,ex:()=>g,p:()=>h,aN:()=>O,iB:()=>S,j5:()=>w,gB:()=>k,QW:()=>E,w_:()=>j,ji:()=>P,Z0:()=>I,z_:()=>T,Vf:()=>C,lC:()=>A,m2:()=>D,i7:()=>x,Ed:()=>F,ov:()=>R,WW:()=>N});var n=r(227361),o=r.n(n),i=r(91175),l=r.n(i),a=r(545578),u=r.n(a),c=(r(313311),r(747037)),s=r.n(c),f=r(675110),d=r(99009);function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e){for(var t=1;t{"use strict";r.d(t,{I$:()=>Q,s1:()=>ee,q9:()=>ne,Vi:()=>oe,nK:()=>ie,Py:()=>le,H$:()=>ae,uW:()=>ue,YD:()=>ce,$N:()=>se,U_:()=>fe,Gg:()=>be,VM:()=>ge,ZF:()=>he,qL:()=>Oe,BG:()=>Se,co:()=>we,u9:()=>ke,g5:()=>Ee,wc:()=>je,uo:()=>Pe,Yt:()=>Ie});var n=r(91175),o=r.n(n),i=r(227361),l=r.n(i),a=r(701469),u=r.n(a),c=r(747037),s=r.n(c),f=r(385564),d=r.n(f),p=r(414293),y=r.n(p),m=r(441609),v=r.n(m),b=r(957557),g=r.n(b),h=r(114176),O=r.n(h),S=r(352353),w=r.n(S),k=r(436968),E=r.n(k),j=r(984596),P=r.n(j),I=r(513218),T=r.n(I),C=r(281763),A=r.n(C),D=r(423570),x=r.n(D),F=r(472500),R=r.n(F),N=r(811531),L=r(166287),Z=r(505055),M=r.n(Z),z=["kind"],W=["defines","meta"];function U(e){return U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},U(e)}function V(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function $(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _(e){if(Array.isArray(e))return e}function B(e){return function(e){if(Array.isArray(e))return Y(e)}(e)||G(e)||q(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function q(e,t){if(e){if("string"==typeof e)return Y(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Y(e,t):void 0}}function G(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{},t=e.localType&&e.localType.toLowerCase()||"";return-1!==t.indexOf("polygon")||-1!==t.indexOf("surface")?"polygon":-1!==t.indexOf("linestring")?"linestring":-1!==t.indexOf("point")?"point":"vector"},oe=function(){return"".concat(x()(),"_ms_").concat(Date.now().toString())},ie=function(e){var t=e.title;return"".concat((void 0===t?"":t).toLowerCase().replace(/\s/g,"_")).concat(Q).concat(x()())},le=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.describeLayer,r=void 0===t?{}:t,n=e.describeFeatureType,i=void 0===n?{}:n,a=(null==r?void 0:r.owsType)||null,u=l()(i,"featureTypes[0].properties")||null,c=u&&o()(u.filter((function(e){var t=e.type,r=e.localType;return t&&t.includes("gml")&&r}))),s=("WCS"===a?"raster":c&&"WFS"===a&&ne(c))||null;return{geometryType:s,properties:"raster"===s?r.bands:u&&u.reduce((function(e,t){var r=t.name,n=t.type,o=void 0===n?{}:n,i=t.localType;return H(H({},e),{},J({},r,{localType:i,prefix:o.replace(":".concat(i),"")}))}),{}),owsType:a}},ae=function(e){return re[e]||e},ue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(te.isSameOrigin)return te.isSameOrigin(e,t);if(!t.baseUrl||!e.url)return!1;var r=[t.baseUrl].concat(B(t.availableUrls||[])).map((function(e){var t=R().parse(e);return"".concat(t.protocol,"//").concat(t.host)})),n=R().parse(e.url),o="".concat(n.protocol,"//").concat(n.host);return-1!==r.indexOf(o)},ce=function(){if(te.getStyleTemplates){var e=te.getStyleTemplates();return[].concat(B(u()(e)?e:[]),B(N.baseTemplates))}return[].concat(B(N.customTemplates),B(N.baseTemplates))},se=function(e){var t=s()(e)&&e.split(":")||[];return{workspace:t[1]&&t[0],name:t[1]||t[0]}},fe=function(e){var t=e.name,r=e.workspace;return"".concat(r&&r.name&&"".concat(r.name,":")||"").concat(t)},de=function e(t,r){if(!(t&&t.filterFields&&t.groupFields&&r))return null;var n=t.filterFields.filter((function(e){return e.groupId===r.id})),o=t.groupFields.filter((function(e){return e.groupId===r.id})),i=[].concat(B(n),B(o)),l={OR:"||",AND:"&&",like:"*=","=":"==","<>":"!=",isNull:"=="},a=i.map((function(r){if(void 0!==r.rowId){var n=r.operator,o=r.attribute,i=r.value;return n&&o&&!y()(i)?[l[n]||n,o,"isNull"===n?null:i]:null}return e(t,r)})).filter((function(e){return e})),u=r.logic;return 0===a.length?null:[l[u]].concat(B(a))},pe=function(e){var t,r=null==e||null===(t=e.groupFields)||void 0===t?void 0:t.find((function(e){return!e.groupId}));return r&&de(e,r)},ye=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.index,o=void 0===n?0:n,i=r.groupId,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if(!t)return null;var a,c={"||":"OR","&&":"AND","*=":"like","==":"=","!=":"<>"},s=_(a=t)||G(a)||q(a)||$(),f=s[0],d=s.slice(1),p=u()(f),y=p?f[0]:f,m=p?f.filter((function(e,t){return 0!==t})):d;if("||"===y||"&&"===y){var v=x()();return l("groupField",{id:v,index:o,logic:c[y]}),e(d,{index:o+1,groupId:v},l)}return y?(l("filterField",{attribute:m[0],groupId:i,operator:c[y]||y,rowId:x()(),type:isNaN(parseFloat(m[1]))?"string":"number",value:m[1]}),e(d,{index:o,groupId:i},l)):null},me=function(e){var t=[],r=[];return ye(e,void 0,(function(e,n){"groupField"===e&&t.push(n),"filterField"===e&&r.push(n)})),{groupFields:t,filterFields:r}};function ve(e){var t=O()(e,w());return Object.keys(t).reduce((function(e,r){switch(r){case"haloColor":case"haloWidth":return"Text"===t.kind&&0===t.haloWidth?e:H(H({},e),{},J({},r,t[r]));case"outlineWidth":case"outlineColor":case"outlineOpacity":return"Fill"===t.kind&&0===t.outlineWidth?e:H(H({},e),{},J({},r,t[r]));case"strokeWidth":case"strokeColor":case"strokeOpacity":return"Mark"===t.kind&&0===t.strokeWidth?e:H(H({},e),{},J({},r,t[r]));case"graphicFill":case"graphicStroke":return H(H({},e),{},J({},r,ve(t[r])));default:return H(H({},e),{},J({},r,t[r]))}}),{})}function be(e){return e&&e.rules?H(H({},e),{},{rules:d()(e.rules.map((function(e){if("Classification"===e.kind)return(e.classification||[]).map((function(t,r){var n=r===e.classification.length-1?"<=":"<",o=!y()(t.min),i=!y()(t.max),l=!y()(t.unique),a=l?["==",e.attribute,t.unique]:[],u=o?[[">=",e.attribute,t.min]]:[],c=i?[[n,e.attribute,t.max]]:[],s=l&&t.unique,f=o&&">= "+t.min,d=i&&n+" "+t.max;return H(H({name:s||(f&&d?f+" and "+d:f||d),filter:v()(a)?v()(u[0])&&v()(c[0])?void 0:["&&"].concat(u,c):a},e.scaleDenominator&&{scaleDenominator:e.scaleDenominator}),{},{symbolizers:[ve(H(H({},g()(e,["ruleId","classification","intervals","intervalsForUnique","method","ramp","reverse","attribute","symbolizerKind"])),{},{kind:e.symbolizerKind||"Fill",color:t.color}))]})}));if("Raster"===e.kind){var t=e.classification&&e.classification.length>0&&{colorMapEntries:(e.classification||[]).map((function(e){return{label:e.label,quantity:e.quantity,color:e.color,opacity:e.opacity}})),type:e.colorMapType};return H(H({name:e.name||""},e.scaleDenominator&&{scaleDenominator:e.scaleDenominator}),{},{symbolizers:[ve(H(H({},g()(e,["ruleId","classification","intervals","method","ramp","reverse","continuous","symbolizerKind","name","colorMapType"])),{},{kind:"Raster"},t&&{colorMap:t}))]})}var r=pe(e.filter);return H(H({},e),{},{filter:r,symbolizers:((null==e?void 0:e.symbolizers)||[]).map((function(e){return ve(e)}))})})))}):e}function ge(e){return H(H({},e),{},{rules:e.rules.map((function(e){return H(H({},e),{},{ruleId:x()(),filter:e.filter&&me(e.filter),symbolizers:e.symbolizers&&e.symbolizers.map((function(e){return H(H({},e),{},{symbolizerId:x()()})}))||[]})}))})}function he(e){return new Promise((function(t,r){e||r({messageId:"imageSrcEmpty",isBase64:!1});var n=!1;if(0===e.indexOf("data:image")){var o=e.split("base64,");(n=function(e){try{return window.atob(e),!0}catch(e){return!1}}(o[o.length-1]))||r({messageId:"imageSrcInvalidBase64",isBase64:n})}var i=new Image;i.onload=function(){t({src:e,isBase64:n})},i.onerror=function(){r({messageId:n?"imageSrcInvalidBase64":"imageSrcLoadError",isBase64:n})},i.src=e}))}var Oe=[{label:"image/png",value:"image/png"},{label:"image/jpeg",value:"image/jpeg"},{label:"image/gif",value:"image/gif"},{label:"image/svg+xml",value:"image/svg+xml"}],Se=function(e,t){var r=t;"sld"===e.format&&M().parseString(t,{explicitArray:!1},(function(t,n){var o="StyledLayerDescriptor.NamedLayer.UserStyle.FeatureTypeStyle.Rule",i=P()(l()(n,o,[])),a=(i=d()(i.map((function(t,r){var n,o=function(e,t){var r,n,o,i,l=(null===(r=e[t])||void 0===r||null===(n=r.symbolizers)||void 0===n?void 0:n[0])||{},a=l.kind,u=V(l,z);switch(a){case"Icon":return{baseGraphicPath:"PointSymbolizer",imgFormat:null==u?void 0:u.format};case"Line":return{baseGraphicPath:"LineSymbolizer.Stroke.GraphicStroke",imgFormat:null==u||null===(o=u.graphicStroke)||void 0===o?void 0:o.format};case"Fill":return{baseGraphicPath:"PolygonSymbolizer.Fill.GraphicFill",imgFormat:null==u||null===(i=u.graphicFill)||void 0===i?void 0:i.format};default:return{}}}((null===(n=e.style)||void 0===n?void 0:n.rules)||[],r),i=o.baseGraphicPath,a=o.imgFormat,u="".concat(i,".Graphic.ExternalGraphic"),c=l()(t,u),s="".concat(u,".Format"),f=l()(t,s);return c&&!f&&v()(a)?null:c?f?t:E()(t,s,a):t})))).some((function(e){return null===e}));r=a?"":X.buildObject(E()(n,o,i))}));var n=!!v()(r)&&{messageId:"styleeditor.imageFormatEmpty",status:400};return{parsedCode:r,errorObj:n}};function we(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.metadata,n=void 0===t?{}:t,o=e.format,i=e.code;return r.e(2568).then(r.t.bind(r,402568,23)).then((function(e){var t,r=e.default,l=n.msStyleJSON,a=n.msMD5Hash;if(a&&i)return r(i)!==a;if(!l)return Promise.resolve(!1);try{t=be(JSON.parse(l))}catch(e){return Promise.resolve(!0)}return(0,L.getStyleParser)(o).then((function(e){return e.writeStyle(t).then((function(e){return r(i)!==r(e)}))}))}))}function ke(e){var t=["string"],r=["integer","long","double","float","bigdecimal","decimal","number","int"];return Object.keys(e).filter((function(n){return-1!==[].concat(t,r).indexOf(e[n].localType.toLowerCase())})).map((function(t){var n=e[t].localType;return{attribute:t,label:t,type:-1!==r.indexOf(n.toLowerCase())?"number":"string"}}))}function Ee(e){return null!=e&&e.properties?"3dtiles"===(null==e?void 0:e.type)?Object.keys(e.properties||{}).map((function(t){var r=e.properties[t],n=r.minimum,o=r.maximum,i=r.type,l=A()(n)||A()(o)?"number":"string";return{attribute:t,label:t,type:i||l}})):"wfs"===(null==e?void 0:e.type)?ke(e.properties):"vector"===(null==e?void 0:e.type)?Object.keys(e.properties||{}).filter((function(t){return A()(e.properties[t])||s()(e.properties[t])})).map((function(t){return{attribute:t,label:t,type:A()(e.properties[t])?"number":"string"}})):null:null}function je(e){return"3dtiles"===e.type?"pnts"===(null==e?void 0:e.format)?"pointcloud":"polyhedron":(null==e?void 0:e.geometryType)||"vector"}function Pe(e){return"3dtiles"===e.type?{format:"3dtiles",body:{},metadata:{editorType:"visual"}}:{format:"geostyler",body:{},metadata:{editorType:"visual"}}}var Ie={"3dtiles":function(e,t){var r=e.defines,n=void 0===r?{}:r,o=(e.meta,V(e,W)),i=[{key:"color",type:"string"},{key:"pointSize",type:"number"}].find((function(e){var t=e.key,r=e.type;if("string"===r&&o[t]&&!s()(o[t])&&!T()(o[t]))return!0;if("number"===r&&o[t]&&!s()(o[t])&&!A()(o[t])&&!T()(o[t]))return!0;if(T()(o[t])){var n,i;if(0===((null===(n=o[t])||void 0===n||null===(i=n.conditions)||void 0===i?void 0:i.length)||0))return!0;if(o[t].conditions.find((function(e){var t,r,n=(r=2,_(t=e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,l,a=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw o}}return a}}(t,r)||q(t,r)||$()),o=n[0];return!n[1]||!o})))return!0}return!1}));if(i)return{messageId:"styleeditor.invalidProperty",messageParams:i};var l=[].concat(B(Object.keys((null==t?void 0:t.properties)||{})),B(Object.keys(n)),["POSITION","POSITION_ABSOLUTE","COLOR","NORMAL"]).map((function(e){return"${".concat(e,"}")})),a=JSON.stringify(o).match(/\${(.*?)}/g);if(a){var u=a.find((function(e){return!l.includes(e)}));if(u)return{messageId:"styleeditor.notSupportedVariable",messageParams:{key:u}}}return!1}}},55237:(e,t,r)=>{"use strict";r.d(t,{tr:()=>S,jb:()=>w,Xu:()=>k,un:()=>E,Qn:()=>j,_q:()=>P,og:()=>I,$4:()=>T,kN:()=>C,oD:()=>A,V$:()=>D,uH:()=>x,pC:()=>F,tz:()=>R,p:()=>N});var n=r(747037),o=r.n(n),i=r(647960),l=r.n(i),a=r(227361),u=r.n(a),c=r(984596),s=r.n(c),f=r(730381),d=r.n(f),p=r(86638);function y(e){return function(e){if(Array.isArray(e))return b(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||v(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,l,a=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw o}}return a}}(e,t)||v(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){if(e){if("string"==typeof e)return b(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?b(e,t):void 0}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{},t=e.start,r=e.end,n=e.duration,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.start,l=o.end;if(!i||!l)return{count:O({start:t,end:r,duration:n}),start:t,end:r};var a=d().duration(n).asMilliseconds(),u=new Date(t).getTime(),c=new Date(r).getTime(),s=new Date(i).getTime(),f=new Date(l).getTime(),p=Math.ceil((s-u)/a),y=Math.floor((f-u)/a),m=Math.floor((c-u)/a);if(p>=0&&y<=m){var v=y-p;return{start:new Date(u+Math.max(0,p)*a),end:new Date(u+Math.min(m,y)*a),count:v}}return{count:O({start:t,end:r,duration:n}),start:t,end:r}},E=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.start,r=e.end,n=arguments.length>1?arguments[1]:void 0,o=new Date(t),i=new Date(r),l=Math.floor(i.getTime()-o.getTime())/n;return{range:{start:t,end:r},resolution:d().duration(l).toISOString().match(g)[0]}},j=function(){var e,t,r=arguments.length>1?arguments[1]:void 0,n=(e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],(t=arguments.length>2?arguments[2]:void 0)?e.map((function(e){var r=m(e.split("/"),2);return{start:r[0],end:r[1]}[t]})):e);return n[function(e,t){var r=h(t),n=1/0,o=-1;return e.forEach((function(e,t){var i=h(e),l=Math.abs(i-r);l0},I=function(e,t){var r=d()(e).diff(t);return{start:r>=0?t:e,end:r>=0?e:t}},T=function(e){return 6e4*e.getTimezoneOffset()},C=function(e){var t=e;!l()(e)&o()(e)&&(t=new Date(e));var r=t.getUTCHours();r=r<10?"0"+r:r;var n=t.getUTCMinutes();n=n<10?"0"+n:n;var i=t.getUTCSeconds();return i=i<10?"0"+i:i,"".concat(r,":").concat(n,":").concat(i)},A=function(e){var t=e;!l()(e)&o()(e)&&(t=new Date(e));var r=t.getUTCMonth()+1,n=t.getUTCDate();return r=r<10?"0"+r:r,n=n<10?"0"+n:n,"".concat(t.getUTCFullYear(),"-").concat(r,"-").concat(n)},D=function(e,t){var r=(0,p.mh)(e),n="HH:mm:SS";switch(t){case"time":return n;case"date":return r;default:return r+" "+n}},x=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).Domains,t=void 0===e?{}:e,r=arguments.length>1?arguments[1]:void 0,n=s()(t.DimensionDomain||[]).concat(),o=t["@version"]||t.version,i=u()(t,"SpaceDomain.BoundingBox");return i&&n.push({Identifier:"space",Domain:i}),n.map((function(e){var t=e.Identifier,n=e.Domain;return{source:{type:"multidim-extension",version:o,url:r},name:t,domain:n}}))},F=function(e,t,r){var n=h(t),o=h(r);return e.reduce((function(e,t){var r=h(t);return h(n)r?[].concat(y(e),[t]):y(e)}),[])},R=function(e){var t=e.reduce((function(e,t){if(-1!==t.indexOf("/")){var r=m(t.split("/"),2),n=r[0],o=r[1];return[].concat(y(e),[n,o])}return[].concat(y(e),[t])}),[]).sort();return[t[0],t[t.length-1]]},N=function(e,t,r){var n=d()(e);return("add"===r?n.add(t,"seconds"):n.subtract(t,"seconds")).toISOString()}},811531:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t\n\n\n\t\n\t\tDefault Style\n\t\t\n\t\t\t${styleTitle}\n\t\t\t${styleAbstract}\n\t\t\t\n\t\t\t\t\n\t\t\t\t\tRule Name\n\t\t\t\t\tRule Title\n\t\t\t\t\tRule Abstract\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t#0000FF\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tsquare\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t#FF0000\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t\n',preview:{config:{backgroundColor:"#333333",texts:[{text:"SLD",fill:"#33ffaa",style:{fontSize:64,fontWeight:"bold"}}]}}},{types:["raster"],title:"Base CSS",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n * {\n\traster-channels: auto;\n}",preview:{config:{backgroundColor:"#333333",texts:[{text:"CSS",fill:"#ffaa33",style:{fontSize:64,fontWeight:"bold"}}]}}},{types:["raster"],title:"Base SLD",format:"sld",code:'\n\n\n\t\n\t\tDefault Style\n\t\t\n\t\t\t${styleTitle}\n\t\t\t${styleAbstract}\n\t\t\t\n\t\t\t\t\n\t\t\t\t\tRule Name\n\t\t\t\t\tRule Title\n\t\t\t\t\tRule Abstract\n\t\t\t\t\t\n\t\t\t\t\t\t1.0\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t\n',preview:{config:{backgroundColor:"#333333",texts:[{text:"SLD",fill:"#33ffaa",style:{fontSize:64,fontWeight:"bold"}}]}}}].map((function(e){return i(i({},e),{},{styleId:l()})})),u=[{types:["linestring","vector"],title:"Line",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n\tstroke: #999999;\n}",preview:{config:{type:"linestring",paths:[{stroke:"#999999"}]}}},{types:["linestring","vector"],title:"Dashed line",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n\tstroke: #333333;\n\tstroke-width: 0.75;\n\tstroke-dasharray: 6 2;\n}",preview:{config:{type:"linestring",paths:[{stroke:"#333333",strokeWidth:4,strokeDasharray:"20 4"}]}}},{types:["linestring","vector"],title:"Section line",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n\tstroke: #330033;\n\tstroke-width: 1;\n\tstroke-dasharray: 10 4 1 4;\n}",preview:{config:{type:"linestring",paths:[{stroke:"#330033",strokeWidth:4,strokeDasharray:"20 10 4 10"}]}}},{types:["linestring","vector"],title:"Simple railway",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n stroke: symbol('shape://vertline'), #000000;\n :stroke {\n stroke: #000000;\n size: 8;\n };\n}\n",preview:{config:{type:"linestring",paths:[{stroke:"#333333",strokeWidth:2,strokeLinejoin:"round"},{stroke:"#333333",strokeWidth:16,strokeDasharray:"2 20",strokeLinejoin:"round"}]}}},{types:["linestring","vector"],title:"Railway",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n\tstroke: #777777, #ffffff;\n\tstroke-width: 4, 2;\n\tstroke-dasharray: 1 0, 10 10;\n}",preview:{config:{type:"linestring",paths:[{stroke:"#777777",strokeWidth:8,strokeLinejoin:"round"},{stroke:"#ffffff",strokeWidth:6,strokeDasharray:"20 20",strokeLinejoin:"round"}]}}},{types:["linestring","vector"],title:"Waterway",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n\tstroke: #8bbceb, #bbddff;\n\tstroke-width: 10, 8;\n\tstroke-linejoin: round;\n}",preview:{config:{type:"linestring",paths:[{stroke:"#8bbceb",strokeWidth:14,strokeLinejoin:"round"},{stroke:"#bbddff",strokeWidth:12,strokeLinejoin:"round"}]}}},{types:["linestring","vector"],title:"Red road",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n\tstroke: #ff5539, #ffffff;\n\tstroke-width: 8, 5;\n}",preview:{config:{type:"linestring",paths:[{stroke:"#ff5539",strokeWidth:14},{stroke:"#ffffff",strokeWidth:7}]}}},{code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n stroke: symbol('circle');\n stroke-dasharray: 8 20;\n :stroke {\n size: 8;\n fill: #ddd;\n stroke: #777;\n stroke-width: 0.5;\n };\n}\n",types:["linestring","vector"],title:"Stroke Pattern",format:"css",preview:{config:{type:"linestring",paths:[{type:"point",transform:"translate(-0, -55)",d:"M 100, 100 m -10, 0 a 10,10 0 1,0 20,0 a 10,10 0 1,0 -20,0",stroke:"#777",strokeWidth:2,fill:"#ddd"},{type:"point",transform:"translate(-65, 55)",d:"M 100, 100 m -10, 0 a 10,10 0 1,0 20,0 a 10,10 0 1,0 -20,0",stroke:"#777",strokeWidth:2,fill:"#ddd"},{type:"point",transform:"translate(-33, 0)",d:"M 100, 100 m -10, 0 a 10,10 0 1,0 20,0 a 10,10 0 1,0 -20,0",stroke:"#777",strokeWidth:2,fill:"#ddd"},{type:"point",transform:"translate(33, 0)",d:"M 100, 100 m -10, 0 a 10,10 0 1,0 20,0 a 10,10 0 1,0 -20,0",stroke:"#777",strokeWidth:2,fill:"#ddd"},{type:"point",transform:"translate(65, 55)",d:"M 100, 100 m -10, 0 a 10,10 0 1,0 20,0 a 10,10 0 1,0 -20,0",stroke:"#777",strokeWidth:2,fill:"#ddd"}]}}},{code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n stroke: #333;\n label: 'Label';\n label-anchor: 0.5 0.5;\n label-conflict-resolution: false;\n\n font-fill: #000;\n font-family: 'sans-serif';\n font-size: 20;\n\n halo-color: #fff;\n halo-radius: 4;\n}\n",types:["linestring","vector"],title:"Label",format:"css",preview:{config:{type:"linestring",paths:[{stroke:"#333",strokeWidth:4}],texts:[{text:"Label",transform:"translate(-40, 0)",style:{fontSize:30,fontWeight:"bold",strokeWidth:12,stroke:"#ffffff"}},{text:"Label",fill:"#000000",transform:"translate(-40, 0)",style:{fontSize:30,fontWeight:"bold",strokeWidth:1,stroke:"#000000"}}]}}},{code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n fill: #ddd;\n}\n",types:["polygon","vector"],title:"Fill",format:"css",preview:{config:{type:"polygon",paths:[{fill:"#ddd"}]}}},{code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n stroke: #333;\n stroke-width: 1;\n}\n",types:["polygon","vector"],title:"Border",format:"css",preview:{config:{type:"polygon",paths:[{fill:"transparent",stroke:"#333",strokeWidth:4}]}}},{code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n stroke: #333;\n stroke-dasharray: 10 5;\n stroke-width: 2;\n stroke-opacity: 0.5;\n}\n",types:["polygon","vector"],title:"Dashed Border",format:"css",preview:{config:{type:"polygon",paths:[{fill:"transparent",stroke:"#333",strokeWidth:4,strokeDasharray:"20 10",strokeOpacity:.5}]}}},{code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n fill: #ddd;\n stroke: #333;\n stroke-width: 1;\n}\n",types:["polygon","vector"],title:"Simple",format:"css",preview:{config:{type:"polygon",paths:[{fill:"#ddd",stroke:"#333",strokeWidth:4}]}}},{code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n fill: symbol('shape://slash');\n :fill {\n size: 8;\n stroke: #000;\n stroke-width: 1;\n stroke-linecap: round;\n };\n}\n",types:["polygon","vector"],title:"Line Pattern",format:"css",preview:{config:{type:"polygon",paths:[{fill:"url(#line)"}],patterns:[{id:"line",icon:{d:"M0.0 1.0 L1.0 0.0",stroke:"#000",strokeWidth:.05}}]}}},{code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n fill: symbol('shape://dot');\n :fill {\n size: 8;\n stroke: #000000;\n stroke-width: 4;\n };\n}\n",types:["polygon","vector"],title:"Dot Pattern",format:"css",preview:{config:{type:"polygon",paths:[{fill:"url(#poly_dot)"}],patterns:[{id:"poly_dot",icon:{d:"M0.5 0.5 L0.5 0.52Z",stroke:"#000",strokeLinecap:"round",strokeWidth:.2}}]}}},{code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n mark: symbol('circle');\n :mark {\n size: 16;\n stroke: #333;\n stroke-width: 2;\n fill: #ddd;\n };\n}\n\n* {\n stroke: #333333;\n stroke-width: 0.5;\n}\n",types:["polygon","vector"],title:"Marker",format:"css",preview:{config:{type:"polygon",paths:[{fill:"transparent",stroke:"#333"},{type:"point",d:"M 160,100 A 60,60 0 0 1 100,160 60,60 0 0 1 40,100 60,60 0 0 1 100,40 60,60 0 0 1 160,100 Z",stroke:"#333",fill:"#ddd",strokeWidth:4}]}}},{code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n fill: #ddd, symbol('cross');\n :fill {\n size: 20;\n stroke: #333;\n stroke-width: 1;\n fill: #f2f2f2;\n };\n}\n",types:["polygon","vector"],title:"Fill Pattern",format:"css",preview:{config:{type:"polygon",paths:[{fill:"#ddd"},{fill:"url(#poly_square)"}],patterns:[{id:"poly_square",icon:{d:"M0.1 0.1 L0.9 0.1 L0.9 0.9 L0.1 0.9Z",stroke:"#333",strokeLinecap:"round",strokeWidth:.05,fill:"#f2f2f2"}}]}}},{code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n label: 'Label';\n label-anchor: 0.5 0.5;\n\n font-fill: #000;\n font-family: 'sans-serif';\n font-size: 20;\n\n halo-color: #fff;\n halo-radius: 4;\n\n stroke: #474747;\n fill: symbol('shape://slash');\n :fill {\n size: 8;\n stroke: #000;\n stroke-width: 1;\n stroke-linecap: round;\n };\n}\n",types:["polygon","vector"],title:"Label and Fill",format:"css",preview:{config:{type:"polygon",paths:[{fill:"transparent",stroke:"#000",strokeWidth:2},{fill:"url(#line)"}],texts:[{text:"Label",style:{fontSize:50,fontWeight:"bold",strokeWidth:12,stroke:"#ffffff"}},{text:"Label",fill:"#000000",style:{fontSize:50,fontWeight:"bold",strokeWidth:1,stroke:"#000000"}}]}}},{types:["point","vector"],title:"Square",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n * {\n\tmark: symbol('square');\n\t:mark {\n\t\tstroke: #ff338f;\n\t\tfill: #bcedff;\n\t};\n}",preview:{config:{type:"point",paths:[{d:"M40 40 L160 40 L160 160 L40 160Z",stroke:"#ff338f",fill:"#bcedff",strokeWidth:4}]}}},{types:["point","vector"],title:"Circle",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n * {\n\tmark: symbol('circle');\n\t:mark {\n\t\tstroke: #ff338f;\n\t\tfill: #bcedff;\n\t};\n}",preview:{config:{type:"point",paths:[{d:"M 160,100 A 60,60 0 0 1 100,160 60,60 0 0 1 40,100 60,60 0 0 1 100,40 60,60 0 0 1 160,100 Z",stroke:"#ff338f",fill:"#bcedff",strokeWidth:4}]}}},{types:["point","vector"],title:"Triangle",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n * {\n\tmark: symbol('triangle');\n\t:mark {\n\t\tstroke: #ff338f;\n\t\tfill: #bcedff;\n\t};\n}",preview:{config:{type:"point",paths:[{d:"M 160,151.96151 H 40 L 99.999999,48.038488 Z",stroke:"#ff338f",fill:"#bcedff",strokeWidth:4}]}}},{types:["point","vector"],title:"Star",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n * {\n\tmark: symbol('star');\n\t:mark {\n\t\tstroke: #ff338f;\n\t\tfill: #bcedff;\n\t};\n}",preview:{config:{type:"point",paths:[{d:"M 165.07677,84.40286 131.87672,116.49613 139.49277,162.03972 98.710865,140.38195 57.749838,161.699 65.745291,116.22048 32.813927,83.851564 78.537289,77.40206 99.145626,36.079922 119.40876,77.572419 Z",stroke:"#ff338f",fill:"#bcedff",strokeWidth:4}]}}},{types:["point","vector"],title:"Cross",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n * {\n\tmark: symbol('cross');\n\t:mark {\n\t\tstroke: #ff338f;\n\t\tfill: #bcedff;\n\t};\n}",preview:{config:{type:"point",paths:[{d:"M 84.99987,39.999998 V 84.999868 H 39.999999 V 115.00013 H 84.99987 V 160 H 115.00013 V 115.00013 H 160 V 84.999868 H 115.00013 V 39.999998 Z",stroke:"#ff338f",fill:"#bcedff",strokeWidth:4}]}}},{types:["point","vector"],title:"X",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n * {\n\tmark: symbol('x');\n\t:mark {\n\t\tstroke: #ff338f;\n\t\tfill: #bcedff;\n\t};\n}",preview:{config:{type:"point",paths:[{d:"M 131.81971,46.966899 100,78.786612 68.180288,46.966898 46.966899,68.180287 78.786613,100 46.9669,131.81971 68.180287,153.0331 100,121.21339 131.81971,153.0331 153.0331,131.81971 121.21339,99.999999 153.0331,68.180286 Z",stroke:"#ff338f",fill:"#bcedff",strokeWidth:4}]}}},{types:["point","vector"],title:"Line",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n * {\n\tmark: symbol('shape://vertline');\n\t:mark { stroke: #ff338f; };\n}",preview:{config:{type:"point",paths:[{d:"M 100,40 V 160 Z",stroke:"#ff338f",strokeWidth:4,fill:"none"}]}}},{types:["point","vector"],title:"Plus",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n * {\n\tmark: symbol('shape://plus');\n\t:mark { stroke: #ff338f; };\n}",preview:{config:{type:"point",paths:[{d:"M 100,40 V 160 Z",stroke:"#ff338f",strokeWidth:4,fill:"none"},{d:"M 160,100 40.000002,100 Z",stroke:"#ff338f",strokeWidth:4,fill:"none"}]}}},{types:["point","vector"],title:"Times",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n * {\n\tmark: symbol('shape://times');\n\t:mark { stroke: #ff338f; };\n}",preview:{config:{type:"point",paths:[{d:"M 142.42641,57.573591 57.573595,142.4264 Z",stroke:"#ff338f",strokeWidth:4,fill:"none"},{d:"M 142.42641,142.42641 57.573595,57.573594 Z",stroke:"#ff338f",strokeWidth:4,fill:"none"}]}}},{types:["point","vector"],title:"Open arrow",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n * {\n\tmark: symbol('shape://oarrow');\n\t:mark { stroke: #ff338f; };\n}",preview:{config:{type:"point",paths:[{d:"M 40.027335,53.266123 159.77305,100 40.027335,146.73388",stroke:"#ff338f",strokeWidth:4,fill:"none"}]}}},{types:["point","vector"],title:"Closed arrow",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n * {\n\tmark: symbol('shape://carrow');\n\t:mark { stroke: #ff338f; };\n}",preview:{config:{type:"point",paths:[{d:"M 40.027335,53.266123 159.77305,100 40.027335,146.73388Z",stroke:"#ff338f",strokeWidth:4,fill:"none"}]}}},{code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n label: 'Label';\n label-anchor: 0.5 2;\n label-conflict-resolution: false;\n\n font-fill: #000;\n font-family: 'sans-serif';\n font-size: 20;\n\n halo-color: #fff;\n halo-radius: 4;\n\n mark: symbol('circle');\n :mark {\n size: 7;\n stroke: #0d0d0d;\n stroke-width: 0.7;\n };\n}\n",types:["polygon","point","vector"],title:"Label and Marker",format:"css",preview:{config:{type:"polygon",paths:[{type:"point",d:"M 100, 100 m -10, 0 a 10,10 0 1,0 20,0 a 10,10 0 1,0 -20,0",stroke:"#0d0d0d",fill:"transparent",strokeWidth:2}],texts:[{text:"Label",y:150,style:{fontSize:50,fontWeight:"bold",strokeWidth:12,stroke:"#ffffff"}},{text:"Label",fill:"#000000",y:150,style:{fontSize:50,fontWeight:"bold",strokeWidth:1,stroke:"#000000"}}]}}}].map((function(e){return i(i({},e),{},{styleId:l()})}));e.exports={baseTemplates:a,customTemplates:u}},172704:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(923645),o=r.n(n)()((function(e){return e[1]}));o.push([e.id,".msgapi .mapstore-filter input::-ms-clear,\n.msgapi .mapstore-filter input::-ms-reveal {\n display: none;\n}\n",""]);const i=o}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/60114.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/60114.affd309bf2aa3f38d3a0.chunk.js deleted file mode 100644 index 1d2554b289..0000000000 --- a/geonode_mapstore_client/static/mapstore/dist/js/60114.affd309bf2aa3f38d3a0.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[60114],{460604:(e,t,r)=>{"use strict";r.d(t,{hn:()=>n,yg:()=>o,vD:()=>i,jJ:()=>l,oy:()=>a,W:()=>u,B1:()=>c,fU:()=>s,cY:()=>f});var n="ADDITIONALLAYER:ADD_ADDITIONAL_LAYERS",o="ADDITIONALLAYER:REMOVE_ADDITIONAL_LAYER",i="ADDITIONALLAYER:REMOVE_ALL_ADDITIONAL_LAYERS",l="ADDITIONALLAYER:UPDATE_ADDITIONAL_LAYER",a="ADDITIONALLAYER:UPDATE_OPTIONS_BY_OWNER",u=function(e,t){return{type:l,id:e,owner:t,actionType:arguments.length>2&&void 0!==arguments[2]?arguments[2]:"override",options:arguments.length>3?arguments[3]:void 0}},c=function(e,t){return{type:a,owner:e,options:t}},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,r=e.owner;return{type:o,id:t,owner:r}},f=function(e){return{type:i,owner:e}}},396909:(e,t,r)=>{"use strict";r.d(t,{vZ:()=>n,TB:()=>o,gF:()=>i,g$:()=>l,dJ:()=>a,uz:()=>u,vA:()=>c,lX:()=>s,E2:()=>f,mF:()=>d,ch:()=>p,DX:()=>y,j1:()=>m,wL:()=>b,Nm:()=>v,rb:()=>g,dk:()=>h,Wv:()=>O,Nf:()=>S,FU:()=>w,k5:()=>k,pt:()=>E,Wm:()=>j,wj:()=>P,l1:()=>I,cu:()=>T,Fe:()=>C,Lc:()=>A,p2:()=>D,WQ:()=>x,E0:()=>F,xR:()=>R,WB:()=>N,bB:()=>L});var n="STYLEEDITOR:TOGGLE_STYLE_EDITOR",o="STYLEEDITOR:SELECT_STYLE_TEMPLATE",i="STYLEEDITOR:UPDATE_TEMPORARY_STYLE",l="STYLEEDITOR:UPDATE_STATUS",a="STYLEEDITOR:RESET_STYLE_EDITOR",u="STYLEEDITOR:ADD_STYLE",c="STYLEEDITOR:CREATE_STYLE",s="STYLEEDITOR:LOADING_STYLE",f="STYLEEDITOR:LOADED_STYLE",d="STYLEEDITOR:ERROR_STYLE",p="STYLEEDITOR:UPDATE_STYLE_CODE",y="STYLEEDITOR:EDIT_STYLE_CODE",m="STYLEEDITOR:DELETE_STYLE",b="STYLEEDITOR:INIT_STYLE_SERVICE",v="STYLEEDITOR:SET_EDIT_PERMISSION",g="STYLEEDITOR:SET_DEFAULT_STYLE",h="STYLEEDITOR:UPDATE_EDITOR_METADATA";function O(e,t){return{type:n,layer:e,enabled:t}}function S(e){return{type:l,status:e}}function w(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.code,r=e.templateId,n=e.format,i=e.languageVersion,l=e.init;return{type:o,code:t,templateId:r,format:n,init:l,languageVersion:i}}function k(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.temporaryId,r=e.templateId,n=e.code,o=e.format,l=e.languageVersion,a=e.init;return{type:i,temporaryId:t,templateId:r,code:n,format:o,init:a,languageVersion:l}}function E(e){return{type:s,status:e}}function j(){return{type:f}}function P(e){return{type:c,settings:e}}function I(){return{type:a}}function T(e){return{type:u,add:e}}function C(e,t){return{type:d,status:e,error:t}}function A(){return{type:p}}function D(e){return{type:y,code:e}}function x(e){return{type:m,styleName:e}}function F(e,t){return{type:b,service:e,canEdit:t}}function R(e){return{type:v,canEdit:e}}function N(){return{type:g}}function L(e){return{type:h,metadata:e}}},378795:(e,t,r)=>{"use strict";r.d(t,{Z:()=>M});var n=r(611847),o=r(472500),i=r.n(o),l=r(189734),a=r.n(l),u=r(91175),c=r.n(u),s=r(984596),f=r.n(s),d=r(281763),p=r.n(d),y=r(747037),m=r.n(y),b=r(944908),v=r.n(b),g=r(727418),h=r.n(g),O=r(65792),S=r.n(O),w=r(624262);function k(e){return k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k(e)}var E=["SLD","viewparams"];function j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function P(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==k(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==k(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===k(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I(e){return function(e){if(Array.isArray(e))return T(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return T(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?T(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=2)?{ramp:"custom",colors:S().scale(o.colors).colors(r).join(",")}:{ramp:t}},x=function(e,t){var r=e.thematic&&e.thematic.params||[],n=e.thematic&&e.thematic.fieldAsParam&&["field"]||[];return Object.keys(t).reduce((function(o,i){return function(e,t){return function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).filter((function(t){return t.field===e})).length>0}(e,t)}(i,[].concat(I(r),I(n)))?h()(o,function(e,t,r){return{viewparams:(e?e+";":"")+t+":"+r}}(o.viewparams,i,t[i])):"ramp"===i?h()(o,D(e,t[i],t.intervals||5)):"classification"===i?h()(o,(l=t[i])?{customClasses:l.reduce((function(e,t){return[].concat(I(e),[t.min+","+t.max+","+t.color])}),[]).join(";")}:{}):"attribute"===i?h()(o,{attribute:e.thematic&&e.thematic.fieldAsParam?t[i]:t.field}):"field"===i&&e.thematic&&!e.thematic.fieldAsParam?o:"strokeWeight"!==i||t.strokeOn?"strokeOn"===i?o:h()(o,P({},i,t[i])):h()(o,P({},i,-1));var l}),{})},F=function(e){return h()({protocol:e.protocol,hostname:e.domain},e.port?{port:e.port}:{})},R=function(e){return e.reduce((function(e,t){return p()(t)?t:e}),null)},N=function(e){return e.PolygonSymbolizer?"Polygon":e.LineSymbolizer?"LineString":e.PointSymbolizer?"Point":null},L=function(e){return e.PolygonSymbolizer?e.PolygonSymbolizer.Fill&&e.PolygonSymbolizer.Fill.CssParameter&&e.PolygonSymbolizer.Fill.CssParameter.$||"#808080":e.LineSymbolizer?e.LineSymbolizer.Stroke&&e.LineSymbolizer.Stroke.CssParameter&&e.LineSymbolizer.Stroke.CssParameter.$||"#808080":e.PointSymbolizer&&e.PointSymbolizer.Graphic&&e.PointSymbolizer.Graphic.Mark&&e.PointSymbolizer.Graphic.Mark.Fill&&e.PointSymbolizer.Graphic.Mark.Fill.CssParameter&&e.PointSymbolizer.Graphic.Mark.Fill.CssParameter.$||"#808080"},Z={getStyleService:function(e,t){var r=(0,n.ij)((0,w.Hi)(e));return i().format(h()(F(r),{pathname:r.applicationRootPath+"/rest/sldservice/"+e.name+"/classify.xml",query:h()({},x(e,t),{fullSLD:!0})}))},getCapabilitiesUrl:function(e){var t=(0,n.ij)((0,w.Hi)(e));return i().format(h()(F(t),{pathname:t.applicationRootPath+"/rest/sldservice/capabilities.json"}))},getStyleMetadataService:function(e,t,r){var o=r||{},l=o.baseUrl,a=void 0===l?"":l,u=o.isStatic,c=void 0!==u&&u,s=(0,n.ij)(c?a:(0,w.Hi)(e));return i().format(h()(F(s),{pathname:s.applicationRootPath+"/rest/sldservice/"+e.name+"/classify.json",query:t}))},getStyleParameters:function(e,t){return{SLD:Z.getStyleService(e,t),viewparams:x(e,t).viewparams}},getMetadataParameters:function(e,t){return x(e,t)},getFieldsService:function(e){var t=(0,n.ij)((0,w.Hi)(e)),r=e.thematic&&e.thematic.datatable||e.name;return i().format(h()(F(t),{pathname:t.applicationRootPath+"/rest/sldservice/"+r+"/attributes.json"}))},readFields:function(e){return a()(f()(e.Attributes.Attribute||[]).filter((function(e){return t=e.type,-1!==["Integer","Long","Double","Float","BigDecimal"].indexOf(t);var t})).map((function(e){return{name:e.name,type:(e.type,"number")}})),(function(e){return e.name}))},readClassification:function(e,t){!function(e){if(e&&e.Rule)throw new Error("toc.thematic.invalid_attribute");if(!e||!e.Rules||!e.Rules.Rule)throw new Error("toc.thematic.invalid_object");f()(e.Rules.Rule).forEach((function(e){if(!e.PolygonSymbolizer&&!e.LineSymbolizer&&!e.PointSymbolizer)throw new Error("toc.thematic.invalid_geometry")}))}(e);var r=f()(e.Rules.Rule||[]);return r.map((function(e,n){var o,i,l,a;return function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:A,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0;return(t?t.thematic.colors||[].concat(I(e),I(t.thematic.additionalColors||[])):n?[n].concat(I(e)):I(e)).map((function(e){return!m()(e.colors)&&e.colors.length>=r?e:h()({},e,{colors:S().scale(e.colors).colors(r)})}))},hasThematicStyle:function(e){return!!(e&&e.params&&e.params.SLD)},removeThematicStyle:function(e){e.SLD,e.viewparams;var t=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,E);return h()({},t,{SLD:null,viewparams:null})},defaultParams:{attribute:"",intervals:5,method:"equalInterval",ramp:"red",field:"",open:!1,strokeWeight:.2,strokeColor:"#ff0000",strokeOn:!1}};const M=Z},108954:(e,t,r)=>{"use strict";r.d(t,{eb:()=>P,IW:()=>I,DG:()=>T});var n=r(618446),o=r.n(n),i=r(227361),l=r.n(i),a=r(984596),u=r.n(a),c=r(375875),s=r.n(c),f=r(409082),d=r(378795);function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r2&&void 0!==arguments[2]?arguments[2]:function(e){return e};return t.map((function(t){return t.ruleId===e?r(t):t}))}var w=function(e,t){var r="uniqueInterval"===(null==e?void 0:e.method),n=null==e?void 0:e.intervalsForUnique;return{errorId:t&&t.includes("toc")?t:r?"styleeditor.classificationUniqueIntervalError":"styleeditor.classificationError",msgParams:r?{intervalsForUnique:n}:{}}},k=function(e,t){var r="uniqueInterval"===(null==e?void 0:e.method),n=null==e?void 0:e.intervalsForUnique;return{errorId:r?t&&t.includes("float type")?"styleeditor.classificationRasterUniqueIntervalError":"styleeditor.classificationUniqueIntervalError":"styleeditor.classificationRasterError",msgParams:r?{intervalsForUnique:n}:{}}},E=function(e,t){var r=l()(e,"Rules.Rule"),n=r&&l()(r,"RasterSymbolizer.ColorMap.ColorMapEntry"),o="classificationRaster"===t.type?n&&u()(n).length:r&&u()(r).length,i="custom"===t.ramp&&t.classification.length>0&&{name:"custom",colors:t.classification.map((function(e){return e.color}))},a=d.Z.getColor(void 0,t.ramp,o||t.intervals,i).colors,c=void 0===a?[]:a,s=null==c?void 0:c.split(",");return t.reverse&&(s=s.reverse()),{classification:d.Z["classificationRaster"===t.type?"readRasterClassification":"readClassification"](e,t.method).map((function(e,t){return b(b({},e),{},{color:s[t]})}))}},j={geoserver:{updateStyleService:function(e){var t=e.baseUrl,r=e.styleService,n=null!=r&&r.isStatic?r.baseUrl:t;if(O[n])return new Promise((function(e){return e(O[n])}));var o=d.Z.getCapabilitiesUrl({url:n});return(null!=r&&r.isStatic?new Promise((function(e){return e(r)})):f.ZP.getStyleService({baseUrl:n})).then((function(e){return s().get(o).then((function(t){var r=t.data;return[e,r]})).catch((function(){return[e,null]}))})).then((function(e){var t,r,o,i,l,a,u,c,s,f,d,p=(d=2,function(e){if(Array.isArray(e))return e}(f=e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,l,a=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw o}}return a}}(f,d)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(e,t):void 0}}(f,d)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=p[0],v=p[1],S=b(b({},m),{},{classificationMethods:v?(t=v,r=(t||{}).capabilities,o=void 0===r?{}:r,i=o.vector,l=void 0===i?{}:i,a=o.raster,u=void 0===a?{}:a,c=l.classifications||[],s=u.classifications||[],{vector:c.filter((function(e){return-1!==g.indexOf(e)})),raster:s.filter((function(e){return-1!==g.indexOf(e)}))}):{vector:h,raster:h}});return O[n]=S,S}))}}};function P(e){var t=e.baseUrl,r=e.styleService;return j.geoserver.updateStyleService({baseUrl:t,styleService:r})}function I(e){var t=e.values,r=e.properties,n=e.rules,i=e.layer,l=e.styleService,a=["intervals","method","reverse","attribute","ramp","intervalsForUnique"],u=b(b({},r),t),c=r.ruleId;if(void 0!==t.ramp&&t.ramp!==r.ramp&&"customInterval"===(null==u?void 0:u.method)&&!t.classification){var f=d.Z.getColor(void 0,t.ramp,u.intervals).colors.split(",");return new Promise((function(e){return e(S(c,n,(function(e){return b(b(b({},e),u),{},{classification:u.classification.map((function(e,t){return b(b({},e),{},{color:f[t]})})),errorId:void 0})})))}))}var p=a.reduce((function(e,t){return b(b({},e),{},v({},t,r[t]))}),{}),y=a.reduce((function(e,t){return b(b({},e),{},v({},t,u[t]))}),{}),m=!a.find((function(e){return void 0===u[e]}))&&!o()(p,y)&&"custom"!==(null==t?void 0:t.ramp)&&"customInterval"!==(null==u?void 0:u.method),g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.errorId,o=e.msgParams;return S(c,n,(function(e){return b(b(b({},e),t),{},{errorId:r,msgParams:o})}))};if(m){var h={intervals:u.intervals,method:u.method,attribute:u.attribute,intervalsForUnique:u.intervalsForUnique};return s().get(d.Z.getStyleMetadataService(i,h,l)).then((function(e){var r=e.data;return S(c,n,(function(e){return b(b(b(b({},e),t),E(r,u)),{},{errorId:void 0})}))})).catch((function(e){return g(w(u,null==e?void 0:e.message))}))}return new Promise((function(e){return e(g())}))}function T(e){var t=e.values,r=e.properties,n=e.rules,i=e.layer,l=e.styleService,a=["intervals","continuous","method","reverse","ramp","intervalsForUnique"],u=b(b({},r),t),c=r.ruleId;if(void 0!==t.ramp&&t.ramp!==r.ramp&&"customInterval"===(null==u?void 0:u.method)&&!t.classification){var f=d.Z.getColor(void 0,t.ramp,u.intervals).colors.split(",");return new Promise((function(e){return e(S(c,n,(function(e){return b(b(b({},e),u),{},{classification:u.classification.map((function(e,t){return b(b({},e),{},{color:f[t]})})),errorId:void 0})})))}))}var p=a.reduce((function(e,t){return b(b({},e),{},v({},t,r[t]))}),{}),y=a.reduce((function(e,t){return b(b({},e),{},v({},t,u[t]))}),{}),m=!a.find((function(e){return void 0===u[e]}))&&!o()(p,y)&&"custom"!==(null==t?void 0:t.ramp)&&"customInterval"!==(null==u?void 0:u.method),g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.errorId,o=e.msgParams;return S(c,n,(function(e){return b(b(b({},e),t),{},{errorId:r,msgParams:o})}))};return m?s().get(d.Z.getStyleMetadataService(i,{intervals:u.intervals,continuous:u.continuous,method:u.method,reverse:u.reverse,intervalsForUnique:u.intervalsForUnique},l)).then((function(e){var r=e.data;return S(c,n,(function(e){return b(b(b(b({},e),t),E(r,u)),{},{errorId:void 0})}))})).catch((function(e){return g(k(u,null==e?void 0:e.data))})):new Promise((function(e){return e(g())}))}},409082:(e,t,r)=>{"use strict";r.d(t,{ZP:()=>N,bc:()=>R,Uz:()=>F});var n=r(375875),o=r.n(n),i=r(727418),l=r.n(i),a=r(227361),u=r.n(a),c=r(567523),s=r.n(c),f=r(968929),d=r.n(f);function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{};return h()((null==e?void 0:e.entry)||[]).reduce((function(e,t){return E(E({},e),{},j({},t["@key"],t.$))}),{})},x=function(e){var t=e.baseUrl,r=e.styleName,n=e.metadata,i=A(E(E({},(0,O.$N)(r)),{},{geoserverBaseUrl:t}));return o().get(i).then((function(){var e,t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).data,r=void 0===t?{}:t;return o().put(i,{style:E(E({},r.style),{},{metadata:E(E({},D(null===(e=r.style)||void 0===e?void 0:e.metadata)),n)})})}))},F=function(e){var t=e.baseUrl,r=e.code,n=e.options,i=e.format,l=void 0===i?"sld":i,a=e.styleName,u=e.languageVersion,c=e.metadata,s=(0,O.$N)(a),f=s.name,d=s.workspace,p=C({options:n,format:l,baseUrl:t,name:f,workspace:d,languageVersion:u});return o().put(p.url,r,p.options).then((function(){return c?x({baseUrl:t,styleName:a,metadata:c}).then((function(){return null})).catch((function(){return null})):null}))},R=function(e){var t=e.baseUrl,r=e.styleName,n=e.options,i=(0,O.$N)(r),l=i.name,a=i.workspace,u=A({name:l,workspace:a,geoserverBaseUrl:t});return o().get(u,n).then((function(e){return e.data&&e.data.style&&e.data.style.name?o().get(A({workspace:a,geoserverBaseUrl:t,name:e.data.style.name,format:(r=e.data.style.filename,r.split(".").pop())})).then((function(t){var r,n,o=t.data;return E(E(E({},e.data.style),(null==e||null===(r=e.data)||void 0===r||null===(n=r.style)||void 0===n?void 0:n.metadata)&&{metadata:D(e.data.style.metadata)}),{},{code:o})})):null;var r}))};const N={saveStyle:function(e,t,r,n){var i=e+"styles/"+encodeURI(t),a=l()({},n);return a.headers=l()({},a.headers,{"Content-Type":"application/vnd.ogc.sld+xml"}),o().put(i,r,a)},getStyleService:function(e){var t=e.baseUrl;return function(e){var t=e.baseUrl;return y[t]?new Promise((function(e){return e(y[t])})):o().all([o().get("".concat(t,"rest/about/version"),{"Content-Type":"application/json"}).then((function(e){var t=e.data;return u()(t,"about.resource")})).catch((function(){return null})),o().get("".concat(t,"rest/about/manifest"),{"Content-Type":"application/json"}).then((function(e){var t=e.data;return u()(t,"about.resource")})).catch((function(){return null})),o().get("".concat(t,"rest/fonts"),{"Content-Type":"application/json"}).then((function(e){var t=e.data;return u()(t,"fonts")})).catch((function(){return null}))]).then((function(e){var r,n,o=(n=3,function(e){if(Array.isArray(e))return e}(r=e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,l,a=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw o}}return a}}(r,n)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(e,t):void 0}}(r,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],l=o[1],a=o[2],u={version:i&&m(i),manifest:l&&m(l),fonts:a};return i&&l?(y[t]=u,y[t]):u}))}({baseUrl:t}).then((function(e){var r=e.version,n=e.manifest,o=e.fonts,i=void 0===o?[]:o;if(!r)return null;var l,a=(n||[]).map((function(e){var t=e.name;return v()(P.filter((function(e){var r=e.regex;return t.match(r)})).map((function(e){return e.format})))})).filter((function(e){return e})),u=v()(r.filter((function(e){var t=e.name;return"geoserver"===(void 0===t?"":t).toLowerCase()})))||{};return{baseUrl:t,version:u.version,formats:[].concat((l=a,function(e){if(Array.isArray(e))return w(e)}(l)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(l)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?w(e,t):void 0}}(l)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),["sld"]),availableUrls:[],fonts:i}}))},getStyle:function(e){var t=e.options,r=e.format,n=e.baseUrl,i=e.styleName,l=(0,O.$N)(i),a=l.name,u=l.workspace,c=C({options:t,format:r,baseUrl:n,name:a,workspace:u});return o().get(c.url,c.options)},createStyle:function(e){var t=e.baseUrl,r=e.code,n=e.options,i=e.format,l=void 0===i?"sld":i,a=e.styleName,u=e.languageVersion,c=e.metadata,s=(0,O.$N)(a),f=s.name,d=s.workspace,p=C({options:n,format:l,baseUrl:t,name:f,workspace:d,languageVersion:u},!0);return o().post(p.url,r,p.options).then((function(){return c?x({baseUrl:t,styleName:a,metadata:c}).then((function(){return null})).catch((function(){return null})):null}))},updateStyle:F,deleteStyle:function(e){var t=e.baseUrl,r=e.options,n=e.format,i=void 0===n?"sld":n,l=e.styleName,a=(0,O.$N)(l),u=a.name,c=a.workspace,s=C({options:r,format:i,baseUrl:t,name:u,workspace:c});return o().delete(s.url,s.options)},getStylesInfo:function(e){var t=e.baseUrl,r=e.styles,n=void 0===r?[]:r,i=[],a=n.length;return new Promise((function(e){n&&0!==n.length?n.forEach((function(r,u){var c=r.name,s=r.href;return o().get(s||A(E(E({},(0,O.$N)(c)),{},{geoserverBaseUrl:t}))).then((function(t){var r=t.data;i[u]=l()({},n[u],r&&r.style&&E(E(E({},r.style),r.style.metadata&&{metadata:D(r.style.metadata)}),{},{name:(0,O.U_)(r.style)})||{}),0==--a&&e(i.filter((function(e){return e})))})).catch((function(){i[u]=l()({},n[u]),0==--a&&e(i.filter((function(e){return e})))}))})):e([])}))},getStyleCodeByName:R,updateStyleMetadata:x}},135400:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(124852),o=r.n(n),i=r(379313);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.style,r=void 0===t?{}:t,n=e.mainViewStyle,l=void 0===n?{}:n,a=e.contentStyle,c=void 0===a?{}:a,s=e.imageStyle,f=void 0===s?{}:s,d=e.glyph,p=void 0===d?"info-sign":d,y=e.iconFit,m=e.title,b=e.tooltip,v=e.tooltipId,g=e.description,h=e.content;return o().createElement("div",{className:"empty-state-container",style:u({height:y?"100%":void 0},r)},o().createElement("div",{key:"main-view",className:"empty-state-main-view",style:u({height:y?"100%":void 0},l)},p?o().createElement("div",{key:"glyph",className:"empty-state-image",style:u({height:y?"100%":void 0},f)},o().createElement(i.Z,{iconFit:y,tooltip:b,tooltipId:v,glyph:p})):null,m?o().createElement("h1",{key:"title"},m):null,g?o().createElement("p",{key:"description",className:"empty-state-description"},g):null),o().createElement("div",{key:"content",className:"empty-state-content",style:c},h))}},698772:(e,t,r)=>{"use strict";r.d(t,{Z:()=>h});var n=r(893379),o=r.n(n),i=r(172704);o()(i.Z,{insert:"head",singleton:!1}),i.Z.locals;var l=r(675263),a=r.n(l),u=r(124852),c=r.n(u),s=r(480681);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function d(e,t){for(var r=0;r{"use strict";r.d(t,{Z:()=>u});var n=r(124852),o=r.n(n),i=r(480681),l=r(496259),a=(0,r(815135).Z)(i.Glyphicon);const u=function(e){var t=e.glyph,r=void 0===t?"info-sign":t,n=e.tooltip,i=e.tooltipId,u=e.iconFit,c=e.padding,s=void 0===c?0:c,f=e.margin,d=void 0===f?0:f;return o().createElement(l.Z,null,(function(e){var t=e.width,l=e.height;return o().createElement(a,{glyph:r,tooltip:n,tooltipId:i,style:{display:"inline-block",padding:s+"px",margin:d+"px",textAlign:"center",fontSize:u?Math.min(t,l)-2*s-2*d:t-2*s-2*d}})}))}},982030:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(124852),o=r.n(n),i=r(623560),l=r.n(i),a=r(867076),u=r(135400);const c=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.Z;return(0,a.branch)(e,(function(){return function(e){return o().createElement(r,t&&l()(t)?t(e):t)}}))}},173014:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(124852),o=r.n(n),i=r(867076),l=r(82110);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:u,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.Z;return(0,i.branch)(e,(function(){return function(e){var n=e.loaderProps;return o().createElement(r,a({},t,n))}}))}},697111:(e,t,r)=>{"use strict";r.d(t,{Z:()=>y});var n=r(124852),o=r.n(n),i=r(675263),l=r.n(i),a=r(23279),u=r.n(a);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r{"use strict";r.d(t,{Z:()=>l});var n=r(124852),o=r.n(n);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{}).fallback,r=void 0===t?null:t;return function(t){return(0,n.forwardRef)((function(l,a){return void 0===e||e(l)?o().createElement(n.Suspense,{fallback:r},o().createElement(t,i({ref:a},l))):null}))}}},886056:(e,t,r)=>{"use strict";r.d(t,{Z:()=>h});var n=r(675263),o=r.n(n),i=r(124852),l=r.n(i),a=r(743129),u=r(598611),c=r.n(u);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r{"use strict";r.d(t,{Z:()=>Z});var n=r(23279),o=r.n(n),i=r(666654),l=r.n(i),a=r(618446),u=r.n(a),c=r(623560),s=r.n(c),f=r(513218),d=r.n(f),p=r(747037),y=r.n(p),m=r(727418),b=r.n(m),v=r(675263),g=r.n(v),h=r(124852),O=r.n(h),S=r(805346),w=r(965539),k=r(532425),E=r(202576),j=r(298854);function P(e){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P(e)}function I(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function T(e){return function(e){if(Array.isArray(e))return C(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0){var o=e.editor&&e.editor.getWrapperElement&&e.editor.getWrapperElement()||null;e.cm.commands.autocomplete(t,null,{completeSingle:!1,container:o})}}})),R(x(e),"onUpdate",(function(){e.update.cancel(),e.update()})),R(x(e),"getInlineWidget",(function(e){var t=e.onClick,r=void 0===t?function(){}:t,n=e.token,o=void 0===n?{}:n,i=e.className,l=void 0===i?"":i,a=e.style,u=void 0===a?{}:a,c=document.createElement("div");return c.setAttribute("class","".concat(l," ms-style-editor-inline-widget")),b()(c.style,u),c.onclick=function(){return r(function(e){for(var t=1;t{"use strict";r.d(t,{Z:()=>c});var n=r(124852),o=r.n(n),i=["type"],l=["text"];function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const c=function(e){var t=e.type,r=e.patterns,n=e.paths,c=e.texts,s=e.backgroundColor,f=void 0===s?"#ffffff":s;return o().createElement("svg",{viewBox:"0 0 200 200"},o().createElement("defs",null,r&&r.filter((function(e){return e.icon})).map((function(e){return o().createElement("pattern",{id:e.id,viewBox:"0 0 1 1",width:"15%",height:"15%"},e.icon&&o().createElement("path",e.icon))})),r&&r.filter((function(e){return e.image})).map((function(e){return o().createElement("pattern",{id:e.id,width:"100%",height:"100%"},e.image&&o().createElement("image",e.image))}))),o().createElement("path",{fill:f,d:"M0 0 L200 0 L200 200 L0 200Z"}),n&&n.map((function(e){var r=e.type,n=u(e,i);return"polygon"===(r||t)&&o().createElement("path",a({},n,{d:"M20 20 L180 20 L180 180 L20 180Z"}))||"linestring"===(r||t)&&o().createElement("path",a({},n,{fill:"none",d:"M30 160 L100 40 L170 160"}))||"point"===(r||t)&&o().createElement("path",n)})),c&&c.map((function(e){var t=e.text,r=u(e,l);return o().createElement("text",a({x:"100",y:"100",textAnchor:"middle",alignmentBaseline:"middle"},r),t)})))}},40683:(e,t,r)=>{"use strict";r.d(t,{Z:()=>rn});var n=r(124852),o=r.n(n),i=r(675263),l=r.n(i),a=r(23279),u=r.n(a),c=r(313311),s=r.n(c),f=r(406557),d=r.n(f),p=r(80717),y=r(532425),m=r(701469),b=r.n(m),v=r(480681),g=r(513218),h=r.n(g),O=r(957557),S=r.n(O),w=r(414293),k=r.n(w),E=r(807654),j=r.n(E),P=r(983717),I=r(1036),T=r(398360),C=r(886056),A=r(10208),D=r(805346),x=r(993451);const F=function(e){var t=e.children,r=e.label,n=e.tools,i=e.divider,l=e.invalid,a=e.warning,u=e.disabled;if(i)return o().createElement("div",{className:"ms-symbolizer-field-divider"});var c=a?" ms-symbolizer-value-warning":"",s=l?" ms-symbolizer-value-invalid":"",f=u?" ms-symbolizer-value-disabled":"";return o().createElement("div",{className:"ms-symbolizer-field"},o().createElement("div",{className:"ms-symbolizer-label"},o().createElement(D.Z,{msgId:r})),o().createElement("div",{className:"ms-symbolizer-value"+s+f+c,onDragStart:function(e){e.stopPropagation(),e.preventDefault()},draggable:!0},t,o().createElement("div",{className:"ms-symbolizer-tools"},n)))};var R=r(290702),N=r(283958);const L=[{value:"Circle",label:"styleeditor.circle",preview:{type:"point",paths:[{d:"M 160,100 A 60,60 0 0 1 100,160 60,60 0 0 1 40,100 60,60 0 0 1 100,40 60,60 0 0 1 160,100 Z",stroke:"#f2f2f2",fill:"#333333",strokeWidth:4}]}},{value:"Square",label:"styleeditor.square",preview:{type:"point",paths:[{d:"M40 40 L160 40 L160 160 L40 160Z",stroke:"#f2f2f2",fill:"#333333",strokeWidth:4}]}},{value:"Triangle",label:"styleeditor.triangle",preview:{type:"point",paths:[{d:"M 160,151.96151 H 40 L 99.999999,48.038488 Z",stroke:"#f2f2f2",fill:"#333333",strokeWidth:4}]}},{value:"Star",label:"styleeditor.star",preview:{type:"point",paths:[{d:"M 165.07677,84.40286 131.87672,116.49613 139.49277,162.03972 98.710865,140.38195 57.749838,161.699 65.745291,116.22048 32.813927,83.851564 78.537289,77.40206 99.145626,36.079922 119.40876,77.572419 Z",stroke:"#f2f2f2",fill:"#333333",strokeWidth:4}]}},{value:"Cross",label:"styleeditor.cross",preview:{type:"point",paths:[{d:"M 84.99987,39.999998 V 84.999868 H 39.999999 V 115.00013 H 84.99987 V 160 H 115.00013 V 115.00013 H 160 V 84.999868 H 115.00013 V 39.999998 Z",stroke:"#f2f2f2",fill:"#333333",strokeWidth:4}]}},{value:"X",label:"styleeditor.x",preview:{type:"point",paths:[{d:"M 131.81971,46.966899 100,78.786612 68.180288,46.966898 46.966899,68.180287 78.786613,100 46.9669,131.81971 68.180287,153.0331 100,121.21339 131.81971,153.0331 153.0331,131.81971 121.21339,99.999999 153.0331,68.180286 Z",stroke:"#f2f2f2",fill:"#333333",strokeWidth:4}]}},{value:"shape://vertline",label:"styleeditor.verticalLine",preview:{type:"point",paths:[{d:"M 100,40 V 160 Z",stroke:"#333333",strokeWidth:4,fill:"none"}]}},{value:"shape://horline",label:"styleeditor.horizontalLine",preview:{type:"point",paths:[{d:"M 160,100 40.000002,100 Z",stroke:"#333333",strokeWidth:4,fill:"none"}]}},{value:"shape://slash",label:"styleeditor.slash",preview:{type:"point",paths:[{d:"M 142.42641,57.573591 57.573595,142.4264 Z",stroke:"#333333",strokeWidth:4,fill:"none"}]}},{value:"shape://backslash",label:"styleeditor.backslash",preview:{type:"point",paths:[{d:"M 142.42641,142.42641 57.573595,57.573594 Z",stroke:"#333333",strokeWidth:4,fill:"none"}]}},{value:"shape://dot",label:"styleeditor.dot",preview:{type:"point",paths:[{d:"M 95,100 105,100 Z",stroke:"#333333",strokeWidth:10,fill:"none"}]}},{value:"shape://plus",label:"styleeditor.plus",preview:{type:"point",paths:[{d:"M 100,40 V 160 Z",stroke:"#333333",strokeWidth:4,fill:"none"},{d:"M 160,100 40.000002,100 Z",stroke:"#333333",strokeWidth:4,fill:"none"}]}},{value:"shape://times",label:"styleeditor.times",preview:{type:"point",paths:[{d:"M 142.42641,57.573591 57.573595,142.4264 Z",stroke:"#333333",strokeWidth:4,fill:"none"},{d:"M 142.42641,142.42641 57.573595,57.573594 Z",stroke:"#333333",strokeWidth:4,fill:"none"}]}},{value:"shape://oarrow",label:"styleeditor.openArrow",preview:{type:"point",paths:[{d:"M 40.027335,53.266123 159.77305,100 40.027335,146.73388",stroke:"#333333",strokeWidth:4,fill:"none"}]}},{value:"shape://carrow",label:"styleeditor.closedArrow",preview:{type:"point",paths:[{d:"M 40.027335,53.266123 159.77305,100 40.027335,146.73388Z",stroke:"#333333",strokeWidth:4,fill:"none"}]}}];var Z=r(815135),M=r(38560),z=(0,Z.Z)(M.Z);const W=function(e){var t=e.value,r=e.config,n=void 0===r?{}:r,i=e.onChange,l=void 0===i?function(){}:i,a=n.options,u=void 0===a?L:a,c=u.find((function(e){return e.value===t}));return o().createElement(R.Z,{content:o().createElement("div",{className:"ms-mark-list"},o().createElement("ul",null,u.map((function(e){return o().createElement("li",{key:e.value},o().createElement(z,{className:"ms-mark-preview",active:e.value===t,onClick:function(){return l(e.value)}},o().createElement(N.Z,e.preview)))}))))},o().createElement(z,{className:"ms-mark-preview"},c&&o().createElement(N.Z,c.preview)))};var U=r(743129);const V=function(e){var t=e.label,r=void 0===t?"styleeditor.band":t,n=e.value,i=e.bands,l=e.onChange,a=e.enhancementType;return o().createElement(o().Fragment,null,o().createElement(F,{label:r},o().createElement(U.ZP,{clearable:!1,options:i,value:n,onChange:function(e){return l("band",e.value)}})),o().createElement(F,{label:"styleeditor.contrastEnhancement"},o().createElement(U.ZP,{clearable:!1,options:[{label:o().createElement(D.Z,{msgId:"styleeditor.none"}),value:"none"},{label:o().createElement(D.Z,{msgId:"styleeditor.normalize"}),value:"normalize"},{label:o().createElement(D.Z,{msgId:"styleeditor.histogram"}),value:"histogram"}],value:a||"none",onChange:function(e){var t="none"===e.value?void 0:e.value;l("enhancementType",t)}})))};var $=r(697111),_=r(99009);function B(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,l,a=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return q(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?q(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,te),p=c.creatable,y=c.clearable,m=void 0!==y&&y,b=c.multi;function g(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1?arguments[1]:void 0,n=t.map((function(e){return e.value}));return(null==r?void 0:r.value)&&-1===n.indexOf(r.value)?[r].concat(function(e){if(Array.isArray(e))return ae(e)}(e=t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||le(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):t}function h(e){return t?Q()(t).map((function(e){return{value:e,label:e}})).reduce(g,e):e}var O,S,w=a(d),k=(O=(0,n.useState)(h(w)),S=2,function(e){if(Array.isArray(e))return e}(O)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,l,a=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw o}}return a}}(O,S)||le(O,S)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),E=k[0],j=k[1];(0,n.useEffect)((function(){j(h(w))}),[JSON.stringify(w)]);var P=p?ce:ue;return o().createElement(P,re({disabled:f,clearable:m,placeholder:"styleeditor.selectPlaceholder",noResultsText:"styleeditor.noResultsSelectInput"},c,{options:E.map((function(e){return oe(oe({},e),{},{label:e.labelId?o().createElement(o().Fragment,null,o().createElement(D.Z,{msgId:e.labelId}),e.glyphId&&o().createElement(v.Glyphicon,{style:{marginLeft:10},glyph:e.glyphId})):e.label})})),value:t,onChange:function(e){return b?s(e.length>0?e.map((function(e){return e.value})):void 0):(j(g(E,e)),s(e.value))}}))};function fe(e){return fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fe(e)}var de=["label","value","config","onChange","disabled"];function pe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ye(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,de)),p="constant"===(null==t?void 0:t.type)?"constant":"attribute";return o().createElement("div",{className:"flex-center"},"constant"===(null==t?void 0:t.type)&&o().createElement(v.FormGroup,null,o().createElement(ve,{type:"number",disabled:f,value:null==t?void 0:t.value,placeholder:"styleeditor.placeholderInput",onChange:function(e){s(ye(ye({},t),{},{value:e.target.value}))}})),"constant"!==(null==t?void 0:t.type)&&o().createElement("div",{className:"flex-grow-1"},o().createElement(be,{disabled:f,clearable:c,options:d,value:"initial"===(null==t?void 0:t.type)?i:null==t?void 0:t.name,onChange:function(e){e.value!==i?s({type:"attribute",name:e.value}):s({type:"initial"})}})),o().createElement(v.DropdownButton,{className:"square-button-md no-border flex-center",noCaret:!0,pullRight:!0,disabled:f,title:o().createElement(v.Glyphicon,{glyph:"option-vertical"})},[{labelId:"styleeditor.constantValue",value:"constant"},{labelId:"styleeditor.attributeValue",value:"attribute"}].map((function(e){return o().createElement(v.MenuItem,{key:e.value,active:p===e.value,onClick:function(){return r=e.value,void(t.type!==r&&s({type:r}));var r}},o().createElement(D.Z,{msgId:e.labelId}))}))))};var he=["label"],Oe=["label","value","config","onChange"];function Se(e){return Se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Se(e)}function we(){return we=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Pe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ie(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r","like","isNull"],booleanOperators:["="],defaultOperators:["=",">","<",">=","<=","<>"],logicComboOptions:[{logic:"OR",name:"queryform.attributefilter.groupField.any"},{logic:"AND",name:"queryform.attributefilter.groupField.all"}],actions:{onAddGroupField:function(e,t){var r={id:(new Date).getTime(),logic:"OR",groupId:e,index:t+1};s({filterFields:d,groupFields:f?[].concat(Ze(f),[r]):[r]})},onAddFilterField:function(e){var t={rowId:(new Date).getTime(),groupId:e,attribute:null,operator:"",value:null,type:null,fieldOptions:{valuesCount:0,currentPage:1},exception:null};s({filterFields:d?[].concat(Ze(d),[t]):[t],groupFields:f})},onRemoveFilterField:function(e){s({filterFields:d.filter((function(t){return t.rowId!==e})),groupFields:f})},onUpdateFilterField:function(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};s({filterFields:d.map((function(i){return i.rowId===e?function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=We(We({},t),{},(Ue(e={},r.fieldName,r.fieldValue),Ue(e,"type",r.fieldType),Ue(e,"fieldOptions",We(We({},t.fieldOptions),{},{currentPage:void 0===r.fieldOptions.currentPage?1:r.fieldOptions.currentPage})),e));return"attribute"===r.fieldName?We(We({},n),{},{value:"string"===r.fieldType?"":null,operator:""}):"operator"===r.fieldName?We(We({},n),{},{value:null}):n}(i,{rowId:e,fieldName:t,fieldValue:r,fieldType:n,fieldOptions:o}):i})),groupFields:f})},onUpdateExceptionField:function(e,t){s({filterFields:d.map((function(r){return r.rowId===e?We(We({},r),{},{exception:t}):r})),groupFields:f})},onUpdateLogicCombo:function(e,t){s({filterFields:d,groupFields:f.map((function(r){return r.id===e?We(We({},r),{},{logic:t}):r}))})},onRemoveGroupField:function(e){s({filterFields:d.filter((function(t){return t.groupId!==e})),groupFields:f.filter((function(t){return t.id!==e}))})},onChangeCascadingValue:function(){}}}))};function _e(e){var t,r=e.value,n=e.hide,i=e.attributes,l=e.format,a=e.onChange,u=e.placement,c=void 0===u?"right":u;if(n||!i||0===i.length)return null;var s=(null==r||null===(t=r.filterFields)||void 0===t?void 0:t.length)>0;return o().createElement(R.Z,{placement:c,content:o().createElement($e,{filterObj:r,attributes:i,format:l,onChange:function(e){return a({filter:e})}})},o().createElement(Ve,{className:"square-button-md no-border",active:s,tooltipId:"styleeditor.openFilterBuilder"},o().createElement(v.Glyphicon,{glyph:"filter"})))}function Be(e){return Be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Be(e)}function qe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ge(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);rt.value?-1:1})):e}var c,s,f=(0,n.useState)(function(e){var r=e.map((function(e,t){return{value:e,zoom:t}})),n=[t.min,t.max].filter((function(e){return void 0!==e}));return 0===n.length?r:n.reduce(u,r)}(l)),d=(s=2,function(e){if(Array.isArray(e))return e}(c=f)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,l,a=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw o}}return a}}(c,s)||Ke(c,s)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=d[0],y=d[1];return o().createElement("div",{className:"ms-style-rule-scale"},o().createElement(et,{label:"styleeditor.maxScaleDenominator",value:t.max,options:p.map((function(e){return{value:e.value,label:"1 : "+e.value,currentZoom:void 0!==r&&r===e.zoom,disabled:t.min&&e.value<=t.min}})),isValidNewOption:function(e){return e>=t.min},onChange:function(e){a(Ge(Ge({},t),{},{max:e})),y(u(p,e))}}),o().createElement(et,{label:"styleeditor.minScaleDenominator",value:t.min,options:p.map((function(e){return{value:e.value,label:"1 : "+e.value,currentZoom:void 0!==r&&r===e.zoom,disabled:t.max&&e.value>=t.max}})),isValidNewOption:function(e){return e<=t.max},onChange:function(e){a(Ge(Ge({},t),{},{min:e})),y(u(p,e))}}))}function rt(e){var t=e.value,r=void 0===t?{}:t,n=e.scales,i=void 0===n?[]:n,l=e.zoom,a=e.hide,u=e.onChange,c=e.placement,s=void 0===c?"right":c;return a?null:o().createElement(R.Z,{placement:s,content:o().createElement(tt,{value:r,zoom:l,scales:i,onChange:function(e){return u({scaleDenominator:e})}})},o().createElement(Xe,{className:"square-button-md no-border",tooltipId:"styleeditor.openScaleDenominator",active:void 0!==r.min||void 0!==r.max},o().createElement(v.Glyphicon,{glyph:"1-ruler"})))}function nt(e){return nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nt(e)}function ot(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function it(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const Ot=function(e){var t=e.ruleId,r=e.glyph,i=e.params,l=e.kind,a=e.symbolizerKind,u=e.classificationType,c=void 0===u?"classificationVector":u,s=e.attributes,f=void 0===s?[]:s,d=e.onUpdate,p=e.onReplace,y=e.methods,m=e.getColors,b=void 0===m?function(){}:m,v=e.ruleBlock,g=void 0===v?{}:v,h=e.symbolizerBlock,O=void 0===h?{}:h,S=e.bands,w=e.config,k=ht(e,yt),E=k.ramp,j=k.method,P=k.classification,I=k.attribute,T=k.intervals,C=k.intervalsForUnique,A=void 0===C?(null==w?void 0:w.intervalsForUnique)||100:C,D=k.reverse,x=k.continuous,F=k.format,R=(0,n.useRef)();R.current={ruleId:t,intervals:T,intervalsForUnique:A,method:j,attribute:I,reverse:D,ramp:E,continuous:x,classification:P};var N=i.reduce((function(e,t){return dt()(t)?vt(vt({},e),t(a)):vt(vt({},e),t)}),{}),L=(O[a]||{}).glyph;return o().createElement(st,{key:"Classification",glyph:L||r,tools:o().createElement(ct,{ruleKind:l,symbolizerKind:a,ruleId:t,onSelect:p,ruleBlock:g,symbolizerBlock:O})},o().createElement(xe,{properties:k,format:F,config:{attributes:f,methods:y,getColors:function(){var e="custom"===E&&P.length>0&&{name:"custom",colors:P.map((function(e){return e.color}))},t=b(void 0,void 0,5,e);return t?t.map((function(e){var t=e.name,r=ht(e,mt);return vt({label:t?"global.colors.".concat(t):void 0,name:t},r)})):[]},bands:S,method:j,methodEdit:null==k?void 0:k.methodEdit},params:N,onChange:function(e){return d(vt(vt({},R.current),{},{type:c,values:e}))}}))};var St=r(618446),wt=r.n(St),kt=r(717621),Et=r.n(kt),jt=["a"];function Pt(e){return Pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pt(e)}function It(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Tt(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(l,jt);return Tt((Ct(t={},r,Et()(Tt(Tt({},u),{},{a:1})).toHexString()),Ct(t,o,a),t),c&&Ct({},i,void 0))}}},Dt=function(e){var t=e.key,r=void 0===t?"width":t,n=e.label,o=void 0===n?"Width":n,i=e.dasharrayKey,l=void 0===i?"dasharray":i;return{type:"slider",label:o,config:{range:{min:0,max:20},format:{from:function(e){return Math.round(e)},to:function(e){return Math.round(e)+" px"}}},setValue:function(){return parseFloat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)},getValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=e[0]&&e[0].split(" px")[0],o=parseFloat(n),i=t[l],a=t[r];return Tt(Ct({},r,o),i&&Ct({},l,o?i.map((function(e){return Math.round(e/a*o)})):void 0))}}},xt=function(e){var t=e.key,r=void 0===t?"dasharray":t,n=e.label;return{type:"dash",label:void 0===n?"Dash array":n,config:{options:[{value:"0"},{value:"1 4"},{value:"1 12"},{value:"8 8"},{value:"8 16"},{value:"8 8 1 8"},{value:"8 8 1 4 1 8"}]},setValue:function(e,t){var r=void 0===t.width?1:t.width;return void 0!==e?e.map((function(e){return Math.round(e/r)})):[0]},getValue:function(e,t){if(wt()(e,["0"]))return Ct({},r,void 0);var n=void 0===t.width?1:t.width,o=!(e||[]).find((function(e){return j()(parseFloat(e))}));return Ct({},r,void 0!==e&&o?e.map((function(e){return parseFloat(e)*n})):void 0)}}},Ft=function(e){var t=e.key,r=void 0===t?"cap":t,n=e.label;return{type:"toolbar",label:void 0===n?"Line cap":n,config:{options:[{labelId:"styleeditor.lineCapButt",value:"butt"},{labelId:"styleeditor.lineCapRound",value:"round"},{labelId:"styleeditor.lineCapSquare",value:"square"}]},getValue:function(e){return Ct({},r,e)}}},Rt=function(e){var t=e.key,r=void 0===t?"join":t,n=e.label;return{type:"toolbar",label:void 0===n?"Line join":n,config:{options:[{labelId:"styleeditor.lineJoinBevel",value:"bevel"},{labelId:"styleeditor.lineJoinRound",value:"round"},{labelId:"styleeditor.lineJoinMiter",value:"miter"}]},getValue:function(e){return Ct({},r,e)}}},Nt=function(e){var t=e.key,r=void 0===t?"colorMapType":t,n=e.label;return{type:"toolbar",label:void 0===n?"Color map type":n,config:{options:[{labelId:"styleeditor.colorMapType.ramp",value:"ramp"},{labelId:"styleeditor.colorMapType.intervals",value:"intervals"},{labelId:"styleeditor.colorMapType.values",value:"values"}]},getValue:function(e){return Ct({},r,e)},isDisabled:e.isDisabled}},Lt=function(e){var t=e.key,r=void 0===t?"radius":t,n=e.label;return{type:"slider",label:void 0===n?"Radius":n,config:{range:e.range||{min:1,max:100},format:{from:function(e){return Math.round(e)},to:function(e){return Math.round(e)+" px"}}},setValue:function(){return parseFloat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)},getValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e[0]&&e[0].split(" px")[0];return Ct({},r,parseFloat(t))}}},Zt=function(e){var t=e.key,r=void 0===t?"opacity":t,n=e.label;return{type:"slider",label:void 0===n?"Opacity":n,config:{range:{min:0,max:1}},setValue:function(){return parseFloat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)},getValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e[0]&&e[0].split(" px")[0];return Ct({},r,parseFloat(t))}}},Mt=function(e){var t=e.key,r=void 0===t?"offset":t,n=e.label,o=void 0===n?"":n,i=e.axis,l=void 0===i?"":i;return{key:r,type:"slider",label:o,config:{range:{min:-100,max:100},format:{from:function(e){return Math.round(e)},to:function(e){return Math.round(e)+" px"}}},setValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t="y"===l?parseFloat(e[1]):parseFloat(e[0]);return j()(t)?0:t},getValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=e[0]&&e[0].split(" px")[0],o=t[r]||[0,0];return Ct({},r,"y"===l?[o[0],parseFloat(n)]:[parseFloat(n),o[1]])}}},zt=function(e){var t=e.key,r=void 0===t?"rotate":t,n=e.label;return{type:"slider",label:void 0===n?"Rotation (deg)":n,config:{range:{min:0,max:360},format:{from:function(e){return Math.round(e)},to:function(e){return Math.round(e)+"°"}}},setValue:function(){return parseFloat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)},getValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e[0]&&e[0].split("°")[0];return Ct({},r,parseFloat(t))}}},Wt=function(e){var t=e.key,r=void 0===t?"msClampToGround":t,n=e.label;return{type:"toolbar",label:void 0===n?"Clamp to ground":n,config:{options:[{labelId:"styleeditor.boolTrue",value:!0},{labelId:"styleeditor.boolFalse",value:!1}]},getValue:function(e){return Ct({},r,e)},setValue:function(e){return!!e}}},Ut=function(e){var t=e.key,r=void 0===t?"msBringToFront":t,n=e.label;return{type:"toolbar",label:void 0===n?"Arrange":n,config:{options:[{labelId:"styleeditor.boolTrue",value:!0},{labelId:"styleeditor.boolFalse",value:!1}]},getValue:function(e){return Ct({},r,e)},setValue:function(e){return!!e}}},Vt=function(e){var t=e.key,r=void 0===t?"msClassificationType":t,n=e.label;return{type:"toolbar",label:void 0===n?"PolygonType":n,config:{options:[{labelId:"styleeditor.3dTile",value:"3d"},{labelId:"styleeditor.terrain",value:"terrain"},{labelId:"styleeditor.both",value:"both"}]},getValue:function(e){return Ct({},r,e)}}},$t=function(e){var t=e.key,r=void 0===t?"msHeightReference":t,n=e.label;return{type:"toolbar",label:void 0===n?"Height reference from ground":n,config:{options:[{labelId:"styleeditor.none",value:"none"},{labelId:"styleeditor.relative",value:"relative"},{labelId:"styleeditor.clamp",value:"clamp"}]},getValue:function(e){return Tt(Ct({},r,e),"clamp"===e&&{msHeight:void 0})}}},_t=function(e){var t=e.label,r=e.key,n=void 0===r?"wellKnownName":r;return{type:"mark",label:t,getValue:function(){return Ct({},n,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")}}},Bt=function(e){var t=e.label,r=e.key,n=void 0===r?"image":r;return{type:"image",label:t,config:{},getValue:function(){return Ct({},n,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")}}},qt=function(e){var t=e.label,r=e.key,n=void 0===r?"fontStyle":r;return{type:"toolbar",label:t,config:{options:[{labelId:"styleeditor.fontStyleNormal",value:"normal"},{labelId:"styleeditor.fontStyleItalic",value:"italic"}]},getValue:function(){return Ct({},n,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")}}},Gt=function(e){var t=e.label,r=e.key,n=void 0===r?"fontWeight":r;return{type:"toolbar",label:t,config:{options:[{labelId:"styleeditor.fontWeightNormal",value:"normal"},{labelId:"styleeditor.fontWeightBold",value:"bold"}]},getValue:function(){return Ct({},n,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")}}},Yt=function(e){var t=e.key,r=void 0===t?"label":t;return{type:"toolbar",label:e.label,config:{options:[{labelId:"styleeditor.boolTrue",value:!0},{labelId:"styleeditor.boolFalse",value:!1}]},isDisabled:e.isDisabled,getValue:function(e){return Ct({},r,e)}}},Kt=function(e){var t=e.key,r=void 0===t?"intervals":t,n=e.label,o=e.isDisabled;return{type:"slider",label:n,config:{range:{min:2,max:25},format:{from:function(e){return Math.round(e)},to:function(e){return Math.round(e)}}},isDisabled:void 0===o?function(e,t){return"customInterval"===(null==t?void 0:t.method)}:o,setValue:function(){return parseFloat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:2)},getValue:function(){return Ct({},r,parseFloat((arguments.length>0&&void 0!==arguments[0]?arguments[0]:[])[0]))}}},Ht=function(e){var t=e.label,r=e.key,n=void 0===r?"":r,o=e.getOptions;return{type:"select",label:t,config:{getOptions:void 0===o?function(){return[]}:o,selectProps:e.selectProps,isValid:e.isValid},getValue:function(e){return Ct({},n,e)},isDisabled:e.isDisabled,isVisible:e.isVisible}},Jt=function(e){var t=e.label,r=e.key,n=void 0===r?"":r,o=e.initialOptionValue,i=e.getSelectOptions;return{type:"multiInput",label:t,config:{initialOptionValue:o,getSelectOptions:void 0===i?function(){return[]}:i},setValue:function(e){return void 0===e?{type:"initial"}:h()(e)?e:{type:"constant",value:e}},getValue:function(e){return"initial"===(null==e?void 0:e.type)?Ct({},n,void 0):"constant"===(null==e?void 0:e.type)?Ct({},n,null!==(t=null==e?void 0:e.value)&&void 0!==t?t:0):Ct({},n,e);var t},isDisabled:e.isDisabled,isVisible:e.isVisible}},Xt=function(e){var t=e.label,r=e.key,n=void 0===r?"":r,o=e.getOptions;return{type:"colorRamp",label:t,config:{getOptions:void 0===o?function(){return[]}:o},getValue:function(){return Ct({},n,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")}}},Qt=function(e){var t=e.label,r=e.key,n=void 0===r?"":r;return{type:"colorMap",label:t,getValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=e.classification,o=e.type,i="customInterval"===t.method,l="interval"===o||i,a="color"===o||"custom"===t.ramp;return Tt(Tt(Ct({},n,r),l&&{method:"customInterval",methodEdit:i?t.methodEdit:t.method}),a&&{ramp:"custom"})}}},er=function(e){return{type:"channel",label:e.label,setValue:function(e,t){return{channelSelection:t.channelSelection,contrastEnhancement:t.contrastEnhancement}},getValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{channelSelection:e.channelSelection,contrastEnhancement:e.contrastEnhancement}}}};var tr=r(264721),rr=r.n(tr);function nr(e){return nr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nr(e)}function or(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ir(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{},t=e.exactMatchGeometrySymbol,r=e.enable3dStyleOptions,n={Mark:{kind:"Mark",glyph:"1-point",glyphAdd:"1-point-add",tooltipAddId:"styleeditor.addMarkRule",supportedTypes:t?["point","vector"]:["point","linestring","polygon","vector"],params:ir({wellKnownName:_t({label:"styleeditor.shape"}),color:At({key:"color",opacityKey:"fillOpacity",label:"styleeditor.fill"}),strokeColor:At({key:"strokeColor",opacityKey:"strokeOpacity",label:"styleeditor.strokeColor",stroke:!0}),strokeWidth:Dt({key:"strokeWidth",label:"styleeditor.strokeWidth"}),radius:Lt({key:"radius",label:"styleeditor.radius"}),rotate:zt({label:"styleeditor.rotation"})},r?fr:{}),defaultProperties:{kind:"Mark",wellKnownName:"Circle",color:"#dddddd",fillOpacity:1,strokeColor:"#777777",strokeOpacity:1,strokeWidth:1,radius:16,rotate:0,msBringToFront:!1,msHeightReference:"none"}},Icon:{kind:"Icon",glyph:"point",glyphAdd:"point-plus",tooltipAddId:"styleeditor.addIconRule",supportedTypes:t?["point","vector"]:["point","linestring","polygon","vector"],hideMenu:!0,params:ir({image:Bt({label:"styleeditor.image",key:"image"}),format:Ht({label:"styleeditor.format",key:"format",isVisible:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).image;return"css"!==(arguments.length>2?arguments[2]:void 0)&&!h()(t)&&!["png","jpg","svg","gif","jpeg"].includes(t.split(".").pop())},getOptions:function(){return _.qL}}),opacity:Zt({label:"styleeditor.opacity"}),size:Lt({key:"size",label:"styleeditor.size"}),rotate:zt({label:"styleeditor.rotation"})},r?fr:{}),defaultProperties:{kind:"Icon",image:"",opacity:1,size:32,rotate:0,msBringToFront:!1,msHeightReference:"none"}},Line:{kind:"Line",glyph:"line",glyphAdd:"line-plus",tooltipAddId:"styleeditor.addLineRule",supportedTypes:t?["linestring","vector"]:["linestring","polygon","vector"],params:ir({color:At({label:"styleeditor.strokeColor",stroke:!0,pattern:!0,getGroupParams:function(e){return n[e]},getGroupConfig:function(e){return"Mark"===e?{disableAlpha:!0}:"Icon"===e?{omittedKeys:["rotate","opacity"]}:{}},graphicKey:"graphicStroke"}),width:Dt({label:"styleeditor.strokeWidth",key:"width"}),dasharray:xt({label:"styleeditor.lineStyle",key:"dasharray"}),cap:Ft({label:"styleeditor.lineCap",key:"cap"}),join:Rt({label:"styleeditor.lineJoin",key:"join"})},r?cr({label:"styleeditor.clampToGround"}):{}),defaultProperties:{kind:"Line",color:"#777777",width:1,opacity:1,cap:"round",join:"round",msClampToGround:!0}},Fill:{kind:"Fill",glyph:"polygon",glyphAdd:"polygon-plus",tooltipAddId:"styleeditor.addFillRule",supportedTypes:["polygon","vector"],params:ir({color:At({label:"styleeditor.fill",key:"color",opacityKey:"fillOpacity",pattern:!0,graphicKey:"graphicFill",getGroupParams:function(e){return n[e]},getGroupConfig:function(e){return"Mark"===e?{}:"Icon"===e?{omittedKeys:["rotate","opacity"]}:{}}}),outlineColor:At({key:"outlineColor",opacityKey:"outlineOpacity",label:"styleeditor.outlineColor",stroke:!0}),outlineWidth:Dt({key:"outlineWidth",label:"styleeditor.outlineWidth"})},r?ir(ir({},dr),cr({label:"styleeditor.clampOutlineToGround"})):{}),defaultProperties:{kind:"Fill",color:"#dddddd",fillOpacity:1,outlineColor:"#777777",outlineWidth:1,msClassificationType:"both",msClampToGround:!0}},PointCloud:{kind:"Mark",glyph:"1-point",glyphAdd:"1-point-add",tooltipAddId:"styleeditor.addMarkRule",supportedTypes:["pointcloud"],hideMenu:!0,params:{color:At({key:"color",opacityKey:"fillOpacity",label:"styleeditor.fill"}),radius:Lt({key:"radius",label:"styleeditor.radius",range:{min:1,max:10}})},defaultProperties:{kind:"Mark",wellKnownName:"Circle",color:"#dddddd",fillOpacity:1,radius:1}},Polyhedron:{kind:"Fill",glyph:"polygon",glyphAdd:"polygon-plus",tooltipAddId:"styleeditor.addFillRule",supportedTypes:["polyhedron"],hideMenu:!0,params:{color:At({label:"styleeditor.fill",key:"color",opacityKey:"fillOpacity",pattern:!0,graphicKey:"graphicFill",getGroupParams:function(e){return n[e]},getGroupConfig:function(e){return"Mark"===e?{}:"Icon"===e?{omittedKeys:["rotate","opacity"]}:{}}})},defaultProperties:{kind:"Fill",color:"#dddddd",fillOpacity:1}},Text:{kind:"Text",glyph:"font",tooltipAddId:"styleeditor.addTextRule",supportedTypes:t?["point","vector"]:["point","linestring","polygon","vector"],params:{label:Ht({key:"label",label:"styleeditor.label",selectProps:{creatable:!0},getOptions:function(e){var t=e.attributes;return(null==t?void 0:t.map((function(e){return{value:"{{"+e.attribute+"}}",label:e.attribute}})))||[]}}),font:Ht({key:"font",label:"styleeditor.fontFamily",selectProps:{multi:!0},getOptions:function(e){var t=e.fonts;return(null==t?void 0:t.map((function(e){return{value:e,label:e}})))||[]}}),color:At({label:"styleeditor.fontColor",key:"color",disableAlpha:!0}),size:Lt({label:"styleeditor.fontSize",key:"size"}),fontStyle:qt({label:"styleeditor.fontStyle",key:"fontStyle"}),fontWeight:Gt({label:"styleeditor.fontWeight",key:"fontWeight"}),haloColor:At({label:"styleeditor.haloColor",key:"haloColor",stroke:!0,disableAlpha:!0}),haloWidth:Dt({label:"styleeditor.haloWidth",key:"haloWidth"}),rotate:zt({label:"styleeditor.rotation"}),offsetX:Mt({label:"styleeditor.offsetX",axis:"x"}),offsetY:Mt({label:"styleeditor.offsetY",axis:"y"})},defaultProperties:{kind:"Text",color:"#333333",size:14,fontStyle:"normal",fontWeight:"normal",haloColor:"#ffffff",haloWidth:1,allowOverlap:!0,offset:[0,0]}},Raster:{kind:"Raster",glyph:"1-raster",tooltipAddId:"styleeditor.addRasterRule",supportedTypes:["raster"],params:{channel:er({}),opacity:Zt({label:"styleeditor.opacity"})},defaultProperties:{kind:"Raster",opacity:1,contrastEnhancement:{}}}},o={Classification:{kind:"Classification",glyph:"list",classificationType:"classificationVector",hideInputLabel:!0,hideFilter:!0,params:[{ramp:Xt({key:"ramp",label:"styleeditor.colorRamp",getOptions:function(e){return(0,e.getColors)()}}),reverse:Yt({key:"reverse",label:"styleeditor.reverse",isDisabled:function(e,t){return"custom"===(null==t?void 0:t.ramp)||"customInterval"===(null==t?void 0:t.method)}}),attribute:Ht({key:"attribute",label:"styleeditor.attribute",isValid:function(e){return void 0!==e.value},getOptions:function(e){var t=e.attributes;return null==t?void 0:t.map((function(e){return{value:e.attribute,label:e.attribute,disabled:e.disabled}}))}}),method:Ht({key:"method",label:"styleeditor.method",isDisabled:function(e,t,r){var n,o,i=r.attributes;return"string"===(null==i||null===(n=i.filter((function(e){return e.label===(null==t?void 0:t.attribute)})))||void 0===n||null===(o=n[0])||void 0===o?void 0:o.type)&&"customInterval"!==(null==t?void 0:t.method)},getOptions:function(e){var t=e.methods,r=e.method,n=e.methodEdit,o=(null==t?void 0:t.map((function(e){return{labelId:"styleeditor."+e,value:e}})))||[];return[].concat(ar("customInterval"===r?[{labelId:"styleeditor."+n,glyphId:"edit",value:r}]:[]),ar(o))}}),intervals:Kt({label:"styleeditor.intervals",isDisabled:function(e,t){return rr()(["customInterval","uniqueInterval"],null==t?void 0:t.method)}})},function(e){var t,r,o,i;if(!e)return{};switch(e){case"Mark":return ir({fillOpacity:Zt({key:"fillOpacity",label:"styleeditor.opacity"})},S()(null===(t=n[e])||void 0===t?void 0:t.params,["color"]));case"Line":return ir({opacity:Zt({key:"opacity",label:"styleeditor.opacity"})},S()(null===(r=n[e])||void 0===r?void 0:r.params,["color"]));case"Fill":return ir({fillOpacity:Zt({key:"fillOpacity",label:"styleeditor.opacity"})},S()(null===(o=n[e])||void 0===o?void 0:o.params,["color"]));default:return null===(i=n[e])||void 0===i?void 0:i.params}},{classification:Qt({key:"classification",rampKey:"ramp"})}],defaultProperties:{kind:"Classification",classification:[],intervals:5,method:"equalInterval",ramp:"orrd",reverse:!1}},Raster:{kind:"Raster",glyph:"1-raster",classificationType:"classificationRaster",hideInputLabel:!1,hideFilter:!0,params:[{channel:er({}),opacity:Zt({label:"styleeditor.opacity"}),ramp:Xt({key:"ramp",label:"styleeditor.colorRamp",getOptions:function(e){return(0,e.getColors)()}}),reverse:Yt({key:"reverse",label:"styleeditor.reverse",isDisabled:function(e,t){return"custom"===(null==t?void 0:t.ramp)||"customInterval"===(null==t?void 0:t.method)}}),continuous:Yt({key:"continuous",label:"styleeditor.continuous",isDisabled:function(e,t){return"custom"===(null==t?void 0:t.ramp)||"customInterval"===(null==t?void 0:t.method)}}),colorMapType:Nt({key:"colorMapType",label:"styleeditor.colorMapType.label"}),method:Ht({key:"method",label:"styleeditor.method",getOptions:function(e){var t=e.methods,r=e.method,n=e.methodEdit,o=(null==t?void 0:t.map((function(e){return{labelId:"styleeditor."+e,value:e}})))||[];return[].concat(ar("customInterval"===r?[{labelId:"styleeditor."+n,glyphId:"edit",value:r}]:[]),ar(o))}}),intervals:Kt({label:"styleeditor.intervals"})},{classification:Qt({key:"classification",rampKey:"ramp"})}],defaultProperties:{kind:"Raster",opacity:1,classification:[],intervals:5,method:"equalInterval",reverse:!1,continuous:!0,colorMapType:"ramp",symbolizerKind:"Raster"}}};return{symbolizerBlock:n,ruleBlock:o}};var yr=r(180307),mr=r(590937);function br(e){var t=e.title,r=e.tools,i=e.errorId,l=e.msgParams,a=e.draggable,u=e.connectDragSource,c=e.connectDropTarget,s=e.isDragging,f=e.children,d=(0,n.useRef)(null);a&&(u(d.current),c(d.current));var p=s?" ms-drop-target":"";return o().createElement("li",{ref:d,className:"ms-style-rule".concat(p)},o().createElement("div",{className:"ms-style-rule-head"},a&&o().createElement("div",{className:"ms-style-rule-grab-handle"},o().createElement(v.Glyphicon,{glyph:"grab-handle"})),o().createElement("div",{className:"ms-style-rule-head-info"},t),o().createElement("div",{className:"ms-style-rule-head-tools"},r)),i&&o().createElement(v.Alert,{bsStyle:"danger"},o().createElement(D.Z,{msgId:i,msgParams:l})),o().createElement("ul",{className:"ms-style-rule-body"},f))}br.propTypes={title:l().oneOfType([l().node,l().string]),tools:l().node,errorId:l().string,draggable:l().bool,connectDragSource:l().func,connectDropTarget:l().func,isDragging:l().bool},br.defaultProps={connectDragSource:function(e){return e},connectDropTarget:function(e){return e}};var vr="RULE";const gr=(0,mr.GR)(vr,{hover:function(e,t,r){!function(e,t,r){if(!r)return null;var n=(0,yr.findDOMNode)(r);if(!n)return null;var o=t.getItem().index,i=e.index;if(o===i)return null;var l=n.getBoundingClientRect(),a=l.bottom,u=l.top,c=(a-u)/2,s=t.getClientOffset().y-u;oi&&s>c||(e.onSort(o,i),t.getItem().index=i)}(e,t,r)}},(function(e){return{connectDropTarget:e.dropTarget()}}))((0,mr.Ej)(vr,{beginDrag:function(e){return{id:e.id,index:e.index}}},(function(e,t){return{connectDragSource:e.dragSource(),isDragging:t.isDragging()}}))(br));var hr=r(202576),Or=["ruleId"],Sr=["kind","symbolizerId"];function wr(e){return wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wr(e)}function kr(){return kr=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function jr(e){return function(e){if(Array.isArray(e))return Pr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Pr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Pr(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);rt?[r,o]:[o,r]:[o])}),[]);return S(n)}function z(e,t){var r=e.symbolizers,n=void 0===r?[]:r;return!!s()(n,(function(e){return"Text"===e.kind}))&&t>0}return R.current={rules:i},o().createElement("div",{ref:t,className:"ms-style-rules-editor"},o().createElement("div",{className:"ms-style-rules-editor-head"},o().createElement("div",{className:"ms-style-rules-editor-left"},a),o().createElement("div",{className:"ms-style-rules-editor-right"},o().createElement(p.Z,{btnDefaultProps:{className:"square-button-md no-border"},buttons:[].concat(jr(Object.keys(m).map((function(e){var t=m[e];return{glyph:t.glyphAdd||t.glyph,visible:-1!==t.supportedTypes.indexOf(w),tooltipId:t.tooltipAddId,onClick:function(){return L({name:"",ruleId:Re()(),symbolizers:[Tr(Tr({},m[e].defaultProperties),{},{symbolizerId:Re()()})]})}}}))),jr(Object.keys(d).filter((function(e){return d[e].add})).map((function(e){var t=d[e];return{glyph:t.glyphAdd||t.glyph,visible:-1!==t.supportedTypes.indexOf(w),tooltipId:t.tooltipAddId,onClick:function(){return L(Tr({name:"",ruleId:Re()()},d[e].defaultProperties))}}}))))}))),o().createElement("ul",{className:"ms-style-rules-editor-body"},0===i.length&&o().createElement(xr,null),i.map((function(e,t){var r,n=e.name,l=e.symbolizers,a=void 0===l?[]:l,u=e.filter,c=e.scaleDenominator,s=void 0===c?{}:c,f=e.ruleId,p=e.kind,y=e.errorId,g=e.msgParams,O=d[p]||{},L=O.params,W=O.glyph,U=O.hideInputLabel,V=O.hideFilter,$=O.hideScaleDenominator,_=O.classificationType,B=!!b()(k)&&"number"===(null===(r=k.find((function(t){return t.label===(null==e?void 0:e.attribute)}))||{})||void 0===r?void 0:r.type);return o().createElement(gr,{key:f+(i.length>1?"_draggable":""),draggable:i.length>1,id:f,index:t,errorId:y,msgParams:g,onSort:M,title:U?o().createElement(D.Z,{msgId:"styleeditor.rule".concat(p)}):o().createElement(v.FormGroup,{onDragStart:function(e){e.stopPropagation(),e.preventDefault()},draggable:!0},o().createElement(Dr,{value:n,placeholder:"styleeditor.enterLegendLabelPlaceholder",onChange:function(e){return N({values:{name:e.target.value},ruleId:f},!0)}})),tools:o().createElement(o().Fragment,null,z(e,t)&&o().createElement(hr.Z,{glyph:"exclamation-mark",bsStyle:"warning",placement:"right",title:o().createElement(D.Z,{msgId:"styleeditor.warningTextOrderTitle"}),text:o().createElement(D.Z,{msgId:"styleeditor.warningTextOrder"})}),o().createElement(_e,{hide:V,value:u,attributes:k,format:x,onChange:function(e){return N({values:e,ruleId:f},!0)}}),j&&o().createElement(rt,{hide:$,value:s,scales:j,zoom:P,onChange:function(e){return N({values:e,ruleId:f},!0)}}),o().createElement(Ar,{className:"square-button-md no-border",tooltipId:"styleeditor.removeRule",onClick:function(){return function(e){var t=R.current.rules.filter((function(t){return t.ruleId!==e}));S(t)}(f)}},o().createElement(v.Glyphicon,{glyph:"trash"})))},"Classification"===p||"Raster"===p?o().createElement(Ot,kr({},e,{ruleBlock:d,symbolizerBlock:m,glyph:W,classificationType:_,config:A||{},params:L,methods:T,getColors:C,bands:E,attributes:k&&k.map((function(t){return Tr(Tr({},t),"customInterval"===e.method?{disabled:B?"number"!==t.type:t.label!==e.attribute}:"uniqueInterval"!==e.method&&{disabled:"number"!==t.type})})),onUpdate:h,onChange:function(e){return N({values:e,ruleId:f},!0)},onReplace:Z,format:x})):a.map((function(e){var t=e.kind,r=void 0===t?"":t,n=e.symbolizerId,i=Er(e,Sr),l=function(e){var t=Object.keys(m).filter((function(e){return m[e].supportedTypes.includes(w)})).find((function(t){var r;return(null===(r=m[t])||void 0===r?void 0:r.kind)===e}));return m[t]||m[e]||{}}(r),a=l.params,u=l.glyph,c=l.hideMenu;return a&&o().createElement(st,{key:n,defaultExpanded:!0,draggable:!0,glyph:u,tools:!F&&o().createElement(ct,{hide:c,symbolizerKind:r,ruleBlock:d,symbolizerBlock:m,ruleId:f,onSelect:Z,graphic:i.graphicFill||i.graphicStroke,channelSelection:i.channelSelection})},o().createElement(xe,{properties:i,format:x,params:a,config:{bands:E,attributes:k,fonts:I},onChange:function(e){return N({values:e,ruleId:f,symbolizerId:n})}}))})))})),l&&o().createElement("div",{className:"ms-style-rule-overlay-loader",style:{position:"absolute",width:"100%",height:"100%",zIndex:10,transition:"0.3s all"}})))})),Rr=pr(),Nr=Rr.symbolizerBlock,Lr=Rr.ruleBlock;Fr.propTypes={rules:l().array,loading:l().bool,toolbar:l().node,config:l().object,ruleBlock:l().object,symbolizerBlock:l().object,onUpdate:l().func,onChange:l().func},Fr.defaultProps={rules:[],config:{},ruleBlock:Lr,symbolizerBlock:Nr,onUpdate:function(){},onChange:function(){}};const Zr=Fr;var Mr=r(166287),zr=r(21090),Wr=["values"];function Ur(e){return Ur="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ur(e)}function Vr(e){return function(e){if(Array.isArray(e))return Br(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||_r(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,l,a=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw o}}return a}}(e,t)||_r(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _r(e,t){if(e){if("string"==typeof e)return Br(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Br(e,t):void 0}}function Br(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,Wr);Z(!0),function(e){var t=e.values,r=e.properties,n=e.rules,o=e.layer,i=e.styleService,l=e.styleUpdateTypes,a=void 0===l?{}:l;return new Promise((function(e){var l=r.type&&a[r.type];return e(l?l({values:t,properties:r,rules:n,layer:o,styleService:i}):n.map((function(e){return e.ruleId===r.ruleId?Gr(Gr(Gr({},e),t),{},{errorId:void 0}):e})))}))}({values:t,properties:r,layer:a,rules:V.current.style.rules,styleService:T,styleUpdateTypes:P}).then((function(e){return B(e)})).catch((function(){return B()}))}})}tn.propTypes={code:l().string,format:l().string,layer:l().object,zoom:l().number,scales:l().array,geometryType:l().string,fonts:l().array,bands:l().array,attributes:l().array,onChange:l().func,onError:l().func,defaultStyleJSON:l().object,config:l().object,loading:l().bool,error:l().object,methods:l().array,getColors:l().func,styleUpdateTypes:l().object,debounceTime:l().number},tn.defaultProps={onChange:function(){},onError:function(){},config:{},getColors:function(){},styleUpdateTypes:{},debounceTime:300,defaultStyleJSON:null};const rn=tn},471891:(e,t,r)=>{"use strict";r.d(t,{T:()=>L,Z:()=>Z});var n=r(701469),o=r.n(n),i=r(513218),l=r.n(i),a=r(124852),u=r.n(a),c=r(480681),s=r(171703),f=r(22222),d=r(396909),p=r(378795),y=r(108954),m=r(805346),b=r(965539),v=r(532425),g=r(80717),h=r(467057),O=r(40683),S=r(800827),w=r(893222),k=r(784715),E=r(99009),j=r(24198),P=r(717621),I=r.n(P);const T=[{type:"color",active:function(e){return"atom"===e.type&&I()(e.string).isValid()},style:function(e){return{backgroundColor:e.string}},Widget:function(e){var t=e.token,r=e.value,n=e.onChange,o=void 0===n?function(){}:n;return u().createElement(j.xS,{color:{hex:r||t.string},onChange:function(e){return o(e.hex)}})}}];var C=["code","error","canEdit","editorType","onUpdateMetadata","onChange","loading","header","editors"];function A(){return A=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,C),w=(t=(0,a.useState)(),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,l,a=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw o}}return a}}(t,r)||function(e,t){if(e){if("string"==typeof e)return D(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?D(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),k=w[0],E=w[1],j={position:"relative",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",textAlign:"center"};if(!n&&!o)return u().createElement("div",{style:j},u().createElement(v.Z,{size:150}));if(!i)return u().createElement("div",{style:j},u().createElement("div",null,u().createElement(c.Glyphicon,{glyph:"exclamation-mark",style:{fontSize:150}}),u().createElement("h1",null,u().createElement(m.Z,{msgId:"styleeditor.noPermission"}))));if(404===(null==o?void 0:o.status))return u().createElement("div",{style:j},u().createElement("div",null,u().createElement(c.Glyphicon,{glyph:"exclamation-mark",style:{fontSize:150}}),u().createElement("h1",null,u().createElement(m.Z,{msgId:"styleeditor.styleNotFound"}))));var P=O[s]||N[s]||N.textarea;return u().createElement(b.Z,{style:{position:"relative"},header:u().createElement("div",{className:"ms-style-editor-toolbar"},u().createElement("div",{className:"ms-style-editor-toolbar-left"},y),u().createElement(g.Z,{buttons:[{className:"no-border",bsSize:"xs",disabled:p,active:"textarea"===s,textId:"visual"===s?"styleeditor.switchToTextareaEditor":"styleeditor.switchToVisualEditor",onClick:function(){return p?null:"visual"===s?f({editorType:"textarea"}):E(!0)}}]}))},P&&u().createElement(P,A({},S,{code:n,error:o,onChange:function(e,t){d(e),l()(t)&&f({styleJSON:JSON.stringify(t)})}})),k&&u().createElement("div",{className:"ms-style-editor-alert",style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",zIndex:10,display:"flex",alignItems:"center",justifyContent:"center",padding:16,backgroundColor:"rgba(0, 0, 0, 0.6)"}},u().createElement(c.Alert,{bsStyle:"warning",style:{textAlign:"center"}},u().createElement("p",{style:{padding:8}},u().createElement(m.Z,{msgId:"styleeditor.alertForceTranslate"})),u().createElement("p",null,u().createElement(g.Z,{buttons:[{text:u().createElement(m.Z,{msgId:"styleeditor.stayInTextareaEditor"}),onClick:function(){return E(!1)},style:{marginRight:4}},{bsStyle:"primary",text:u().createElement(m.Z,{msgId:"styleeditor.useLatestValidStyle"}),onClick:function(){f({editorType:"visual"}),E(!1)}}]})))))}L.defaultProps={inlineWidgets:T};const Z=(0,s.connect)((0,k.y)(w.gB,w.p,w.z_,(function(e){var t=(0,w.WW)(e);return null==t?void 0:t.editorType}),(function(e){try{var t=(0,w.WW)(e);return JSON.parse(null==t?void 0:t.styleJSON)}catch(e){return null}}),w.aN,(function(e,t,r,n,o,i){return{code:e,error:t.edit||null,canEdit:r,editorType:n,defaultStyleJSON:o,loading:i}})),{onUpdateMetadata:d.bB,onChange:d.p2})(L)},278720:(e,t,r)=>{"use strict";r.d(t,{m2:()=>K,tM:()=>ne,lC:()=>te});var n=r(124852),o=r.n(n),i=r(171703),l=r(867076),a=r(22222),u=r(460604),c=r(690825),s=r(580416),f=r(396909),d=r(805346),p=r(965539),y=r(982030),m=r(173014),b=r(906724),v=r(532425),g=r(480681),h=r(638064),O=r(993451),S=r(815135),w=r(698772),k=r(283958);function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function P(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r4&&void 0!==arguments[4]?arguments[4]:{}).formats;return{selectedStyle:e,add:t&&e,geometryType:r,canEdit:n,availableFormats:void 0===o?[]:o,loading:arguments.length>5?arguments[5]:void 0}})),{onSelect:f.FU,onClose:f.cu.bind(null,!1),onSave:f.wj}),J,X((function(e){return!e.geometryType})),(0,l.withState)("filterText","onFilter",""),(0,l.withState)("styleSettings","onUpdate",{}))((function(e){var t=e.selectedStyle,r=e.add,n=e.styleSettings,i=void 0===n?{}:n,l=e.geometryType,a=void 0===l?"":l,u=e.templates,c=void 0===u?[]:u,s=e.filterText,f=e.availableFormats,y=void 0===f?["sld","css"]:f,m=e.formFields,b=void 0===m?[{key:"title",placeholder:"styleeditor.titleSettingsplaceholder",title:o().createElement(d.Z,{msgId:"styleeditor.titleSettings"})},{key:"_abstract",placeholder:"styleeditor.abstractSettingsplaceholder",title:o().createElement(d.Z,{msgId:"styleeditor.abstractSettings"})}]:m,h=e.onFilter,O=void 0===h?function(){}:h,S=e.onSelect,w=void 0===S?function(){}:S,E=e.onClose,j=void 0===E?function(){}:E,P=e.onSave,I=void 0===P?function(){}:P,T=e.onUpdate,C=void 0===T?function(){}:T,A=e.loading;return o().createElement(p.Z,{header:o().createElement("div",null,o().createElement(U,{filterPlaceholder:"styleeditor.templateFilterPlaceholder",filterText:s,onFilter:O}),o().createElement("div",{className:"text-center"},o().createElement("small",null,A?o().createElement(v.Z,{size:15,style:{display:"inline-block"}}):o().createElement(d.Z,{msgId:"styleeditor.createStyleFromTemplate"}))))},o().createElement($,{colProps:{},cardComponent:R,onItemClick:function(e){var t=e.code,r=e.styleId,n=e.format;w({code:t,templateId:r,format:n||"css"}),C(z(z({},i),{},{title:x()(c.filter((function(e){return e.styleId===r})).map((function(e){return e.title})))}))},items:c.filter((function(e){var t=e.title;return!s||s&&-1!==t.indexOf(s)})).filter((function(e){var t=e.types,r=e.format;return!t||x()(t.filter((function(e){return e===a})))&&-1!==y.indexOf(r)})).map((function(e){var r;return z(z({},e),{},{preview:null!=e&&null!==(r=e.preview)&&void 0!==r&&r.config?o().createElement(k.Z,e.preview.config):null==e?void 0:e.preview,selected:e.styleId===t,disabled:A})}))}),o().createElement(N.Z,null,o().createElement(L.Z,{show:!!r,fitContent:!0,title:o().createElement(d.Z,{msgId:"styleeditor.createStyleModalTitle"}),onClose:function(){return j()},buttons:[{text:o().createElement(d.Z,{msgId:"save"}),bsStyle:"primary",disabled:!_(i),onClick:function(){return I(i)}}]},o().createElement(g.Form,null,o().createElement(g.FormGroup,{controlId:"styleTitle",validationState:!_(i)&&"error"},b.map((function(e){var t=e.title,r=e.placeholder,n=e.key;return o().createElement("span",{key:n},o().createElement(g.ControlLabel,null,t),o().createElement(V,{type:"text",defaultValue:i[n],placeholder:r,onChange:function(e){return C(z(z({},i),{},W({},n,e.target.value)))}}))}))),!_(i)&&o().createElement(g.Alert,{style:{margin:0},bsStyle:"danger"},o().createElement(F.Z,{msgId:"styleeditor.titleRequired"}))))))})),ee=(0,l.compose)((0,i.connect)((0,a.P1)([G.ex,G.ov],(function(e,t){return{status:e,defaultStyle:t.defaultStyle,enabledStyle:t.enabledStyle,availableStyles:t.availableStyles}})),{onSelect:s.Xy}),(0,l.withState)("filterText","onFilter",""),(0,b.Z)((function(e){var t=e.status,r=e.readOnly;return"template"===t&&!r}),(function(){return o().createElement(Q,null)}),{maskContainerStyle:{display:"flex",position:"relative"},maskStyle:{overflowY:"auto",left:0}}))((function(e){var t=e.showDefaultStyleIcon,r=e.enabledStyle,n=e.defaultStyle,i=e.availableStyles,l=void 0===i?[]:i,a=e.onSelect,u=e.formatColors,c=void 0===u?{sld:"#33ffaa",css:"#ffaa33"}:u,s=e.filterText,f=e.onFilter,d=void 0===f?function(){}:f;return o().createElement(p.Z,{className:"ms-style-editor-list",header:o().createElement(T,{filterPlaceholder:"styleeditor.styleListfilterPlaceholder",filterText:s,onFilter:d})},o().createElement(A,{size:"sm",onItemClick:function(e){var t=e.name;return a({style:t},!0)},items:l.filter((function(e){var t,r,n=e.name,o=void 0===n?"":n,i=e.title,l=void 0===i?"":i,a=e._abstract,u=void 0===a?"":a,c=e.metadata,f=void 0===c?{}:c;return!s||s&&(-1!==o.indexOf(s)||-1!==(null==f||null===(t=f.title)||void 0===t?void 0:t.indexOf(s))||-1!==(null==f||null===(r=f.description)||void 0===r?void 0:r.indexOf(s))||-1!==l.indexOf(s)||-1!==u.indexOf(s))})).map((function(e){var i,l,a;return P(P({},e),{},{title:(null==e||null===(i=e.metadata)||void 0===i?void 0:i.title)||e.label||e.title||e.name,description:(null==e||null===(l=e.metadata)||void 0===l?void 0:l.description)||e._abstract,selected:r===e.name,preview:e.format&&o().createElement(k.Z,{backgroundColor:"#333333",texts:[{text:(a=e.format,{sld:"SLD",css:"CSS",mbstyle:"MBS"}[a]||a||"").toUpperCase(),fill:c[e.format]||"#f2f2f2",style:{fontSize:70,fontWeight:"bold"}}]})||o().createElement(C,{glyph:"geoserver"}),tools:t&&n===e.name?o().createElement(C,{glyph:"star",tooltipId:"styleeditor.defaultStyle"}):null})}))}))})),te=(0,l.compose)((0,l.withState)("showModal","onShowModal"),(0,i.connect)((0,a.P1)([G.ex,G.Mc,G.p,G.QW,G.gB,G.aN,G.i7,G.z_,G.ov,G.Z0,G.Ed],(function(e,t,r,n,o,i,l,a,u){var c=u.defaultStyle,s=(arguments.length>9&&void 0!==arguments[9]?arguments[9]:{}).formats,f=arguments.length>10?arguments[10]:void 0;return{status:e,templateId:t,error:r,isCodeChanged:n!==o,loading:i,layerDefaultStyleName:c,selectedStyle:c===l?"":l,editEnabled:a,disableCodeEditing:-1===(void 0===s?["sld"]:s).indexOf(f)}})),{onSelectStyle:f.Nf.bind(null,"template"),onEditStyle:f.Nf.bind(null,"edit"),onBack:f.Nf.bind(null,""),onReset:u.B1.bind(null,Y.s1,[{}]),onAdd:f.cu.bind(null,!0),onUpdate:f.Lc,onDelete:f.WQ,onSetDefault:f.WB}))((function(e){var t,r=e.status,n=e.buttons,i=void 0===n?[]:n,l=e.templateId,a=e.error,u=e.isCodeChanged,c=e.showModal,s=e.onShowModal,f=e.loading,p=e.selectedStyle,y=e.layerDefaultStyleName,m=e.editEnabled,b=e.enableSetDefaultStyle,v=e.defaultStyles,h=void 0===v?["generic","point","line","polygon","raster"]:v,O=e.onBack,S=void 0===O?function(){}:O,w=e.onAdd,k=void 0===w?function(){}:w,E=e.onReset,j=void 0===E?function(){}:E,P=e.onDelete,I=void 0===P?function(){}:P,T=e.onSelectStyle,C=void 0===T?function(){}:T,A=e.onEditStyle,D=void 0===A?function(){}:A,x=e.onUpdate,F=void 0===x?function(){}:x,R=e.onSetDefault,Z=void 0===R?function(){}:R,M=e.disableCodeEditing;return o().createElement("div",null,o().createElement(B.Z,{btnDefaultProps:{className:"square-button-md",bsStyle:"primary"},buttons:[{glyph:"arrow-left",visible:!!r,tooltipId:"styleeditor.backToList",disabled:!!f,onClick:function(){"edit"===r&&u?s({title:o().createElement(d.Z,{msgId:"styleeditor.closeWithoutSaveAlertTitle"}),message:o().createElement(g.Alert,{bsStyle:"warning",style:{margin:0}},o().createElement(d.Z,{msgId:"styleeditor.closeWithoutSaveAlert"})),buttons:[{text:o().createElement(d.Z,{msgId:"close"}),bsStyle:"primary",onClick:function(){s(null),S(),j()}}]}):(S(),j())}},{glyph:"1-stilo",tooltipId:"styleeditor.createNewStyle",visible:!(r||!m),disabled:!!f,onClick:function(){return C()}},{glyph:"code",tooltipId:"styleeditor.editSelectedStyle",visible:!(r||!m),disabled:!!f||-1!==h.indexOf(p)||!p&&-1!==h.indexOf(y)||M,onClick:function(){return D()}},{glyph:"ok",tooltipId:"styleeditor.saveCurrentStyle",disabled:!!(a&&a.edit&&a.edit.status)||!!f||-1!==h.indexOf(p),visible:!("edit"!==r||!m),onClick:function(){return F()}},{glyph:"plus",tooltipId:"styleeditor.addSelectedTemplate",visible:!("template"!==r||!l||!m),disabled:!!f,onClick:function(){return k()}},{glyph:"trash",tooltipId:"styleeditor.deleteSelectedStyle",disabled:!!f||-1!==h.indexOf(p)||!p,visible:!(r||!m),onClick:function(){s({title:o().createElement(d.Z,{msgId:"styleeditor.deleteStyleAlertTitle"}),message:o().createElement(g.Alert,{bsStyle:"warning",style:{margin:0}},o().createElement(d.Z,{msgId:"styleeditor.deleteStyleAlert"})),buttons:[{text:o().createElement(d.Z,{msgId:"styleeditor.delete"}),bsStyle:"primary",onClick:function(){s(null),I(p)}}]})}},{glyph:"star",tooltipId:"styleeditor.setDefaultStyle",disabled:!!f||-1!==h.indexOf(p)||!p,visible:!(!b||r||!m),onClick:function(){return Z()}}].concat((t=r?[]:i,function(e){if(Array.isArray(e))return q(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return q(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?q(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))}),o().createElement(N.Z,null,o().createElement(L.Z,{show:c,fitContent:!0,title:c&&c.title,onClose:function(){return s(null)},buttons:c&&c.buttons},c&&c.message)))})),re=(0,l.compose)((0,i.connect)((0,a.P1)([G.Vf],(function(e){return{layer:e}})),{onInit:c.k}),(0,l.lifecycle)({UNSAFE_componentWillMount:function(){this.props.onInit&&this.props.layer&&this.props.onInit(this.props.layer)}}),X((function(e){var t=e.layer,r=void 0===t?{}:t;return r&&r.capabilitiesLoading})))((function(){return o().createElement(p.Z,{className:"ms-style-editor-container",footer:o().createElement("div",{style:{height:25}})},o().createElement(ee,{readOnly:!0}))})),ne=(0,l.branch)((function(e){return e.readOnly}),(function(){return re}))(ee)},893222:(e,t,r)=>{"use strict";r.d(t,{gc:()=>v,Mc:()=>g,ex:()=>h,p:()=>O,aN:()=>S,iB:()=>w,j5:()=>k,gB:()=>E,QW:()=>j,w_:()=>P,ji:()=>I,Z0:()=>T,z_:()=>C,Vf:()=>A,lC:()=>D,m2:()=>x,i7:()=>F,Ed:()=>R,ov:()=>N,WW:()=>L});var n=r(227361),o=r.n(n),i=r(91175),l=r.n(i),a=r(545578),u=r.n(a),c=(r(313311),r(747037)),s=r.n(c),f=r(675110),d=r(99009);function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e){for(var t=1;t{"use strict";r.d(t,{I$:()=>Q,s1:()=>ee,q9:()=>ne,Vi:()=>oe,nK:()=>ie,Py:()=>le,H$:()=>ae,uW:()=>ue,YD:()=>ce,$N:()=>se,U_:()=>fe,Gg:()=>ve,VM:()=>ge,ZF:()=>he,qL:()=>Oe,BG:()=>Se,co:()=>we,u9:()=>ke,g5:()=>Ee,wc:()=>je,uo:()=>Pe,Yt:()=>Ie});var n=r(91175),o=r.n(n),i=r(227361),l=r.n(i),a=r(701469),u=r.n(a),c=r(747037),s=r.n(c),f=r(385564),d=r.n(f),p=r(414293),y=r.n(p),m=r(441609),b=r.n(m),v=r(957557),g=r.n(v),h=r(114176),O=r.n(h),S=r(352353),w=r.n(S),k=r(436968),E=r.n(k),j=r(984596),P=r.n(j),I=r(513218),T=r.n(I),C=r(281763),A=r.n(C),D=r(423570),x=r.n(D),F=r(472500),R=r.n(F),N=r(811531),L=r(166287),Z=r(505055),M=r.n(Z),z=["kind"],W=["defines","meta"];function U(e){return U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},U(e)}function V(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function $(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _(e){if(Array.isArray(e))return e}function B(e){return function(e){if(Array.isArray(e))return Y(e)}(e)||G(e)||q(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function q(e,t){if(e){if("string"==typeof e)return Y(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Y(e,t):void 0}}function G(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{},t=e.localType&&e.localType.toLowerCase()||"";return-1!==t.indexOf("polygon")||-1!==t.indexOf("surface")?"polygon":-1!==t.indexOf("linestring")?"linestring":-1!==t.indexOf("point")?"point":"vector"},oe=function(){return"".concat(x()(),"_ms_").concat(Date.now().toString())},ie=function(e){var t=e.title;return"".concat((void 0===t?"":t).toLowerCase().replace(/\s/g,"_")).concat(Q).concat(x()())},le=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.describeLayer,r=void 0===t?{}:t,n=e.describeFeatureType,i=void 0===n?{}:n,a=(null==r?void 0:r.owsType)||null,u=l()(i,"featureTypes[0].properties")||null,c=u&&o()(u.filter((function(e){var t=e.type,r=e.localType;return t&&t.includes("gml")&&r}))),s=("WCS"===a?"raster":c&&"WFS"===a&&ne(c))||null;return{geometryType:s,properties:"raster"===s?r.bands:u&&u.reduce((function(e,t){var r=t.name,n=t.type,o=void 0===n?{}:n,i=t.localType;return H(H({},e),{},J({},r,{localType:i,prefix:o.replace(":".concat(i),"")}))}),{}),owsType:a}},ae=function(e){return re[e]||e},ue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(te.isSameOrigin)return te.isSameOrigin(e,t);if(!t.baseUrl||!e.url)return!1;var r=[t.baseUrl].concat(B(t.availableUrls||[])).map((function(e){var t=R().parse(e);return"".concat(t.protocol,"//").concat(t.host)})),n=R().parse(e.url),o="".concat(n.protocol,"//").concat(n.host);return-1!==r.indexOf(o)},ce=function(){if(te.getStyleTemplates){var e=te.getStyleTemplates();return[].concat(B(u()(e)?e:[]),B(N.baseTemplates))}return[].concat(B(N.customTemplates),B(N.baseTemplates))},se=function(e){var t=s()(e)&&e.split(":")||[];return{workspace:t[1]&&t[0],name:t[1]||t[0]}},fe=function(e){var t=e.name,r=e.workspace;return"".concat(r&&r.name&&"".concat(r.name,":")||"").concat(t)},de=function e(t,r){if(!(t&&t.filterFields&&t.groupFields&&r))return null;var n=t.filterFields.filter((function(e){return e.groupId===r.id})),o=t.groupFields.filter((function(e){return e.groupId===r.id})),i=[].concat(B(n),B(o)),l={OR:"||",AND:"&&",like:"*=","=":"==","<>":"!=",isNull:"=="},a=i.map((function(r){if(void 0!==r.rowId){var n=r.operator,o=r.attribute,i=r.value;return n&&o&&!y()(i)?[l[n]||n,o,"isNull"===n?null:i]:null}return e(t,r)})).filter((function(e){return e})),u=r.logic;return 0===a.length?null:[l[u]].concat(B(a))},pe=function(e){var t,r=null==e||null===(t=e.groupFields)||void 0===t?void 0:t.find((function(e){return!e.groupId}));return r&&de(e,r)},ye=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.index,o=void 0===n?0:n,i=r.groupId,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if(!t)return null;var a,c={"||":"OR","&&":"AND","*=":"like","==":"=","!=":"<>"},s=_(a=t)||G(a)||q(a)||$(),f=s[0],d=s.slice(1),p=u()(f),y=p?f[0]:f,m=p?f.filter((function(e,t){return 0!==t})):d;if("||"===y||"&&"===y){var b=x()();return l("groupField",{id:b,index:o,logic:c[y]}),e(d,{index:o+1,groupId:b},l)}return y?(l("filterField",{attribute:m[0],groupId:i,operator:c[y]||y,rowId:x()(),type:isNaN(parseFloat(m[1]))?"string":"number",value:m[1]}),e(d,{index:o,groupId:i},l)):null},me=function(e){var t=[],r=[];return ye(e,void 0,(function(e,n){"groupField"===e&&t.push(n),"filterField"===e&&r.push(n)})),{groupFields:t,filterFields:r}};function be(e){var t=O()(e,w());return Object.keys(t).reduce((function(e,r){switch(r){case"haloColor":case"haloWidth":return"Text"===t.kind&&0===t.haloWidth?e:H(H({},e),{},J({},r,t[r]));case"outlineWidth":case"outlineColor":case"outlineOpacity":return"Fill"===t.kind&&0===t.outlineWidth?e:H(H({},e),{},J({},r,t[r]));case"strokeWidth":case"strokeColor":case"strokeOpacity":return"Mark"===t.kind&&0===t.strokeWidth?e:H(H({},e),{},J({},r,t[r]));case"graphicFill":case"graphicStroke":return H(H({},e),{},J({},r,be(t[r])));default:return H(H({},e),{},J({},r,t[r]))}}),{})}function ve(e){return e&&e.rules?H(H({},e),{},{rules:d()(e.rules.map((function(e){if("Classification"===e.kind)return(e.classification||[]).map((function(t,r){var n=r===e.classification.length-1?"<=":"<",o=!y()(t.min),i=!y()(t.max),l=!y()(t.unique),a=l?["==",e.attribute,t.unique]:[],u=o?[[">=",e.attribute,t.min]]:[],c=i?[[n,e.attribute,t.max]]:[],s=l&&t.unique,f=o&&">= "+t.min,d=i&&n+" "+t.max;return H(H({name:s||(f&&d?f+" and "+d:f||d),filter:b()(a)?b()(u[0])&&b()(c[0])?void 0:["&&"].concat(u,c):a},e.scaleDenominator&&{scaleDenominator:e.scaleDenominator}),{},{symbolizers:[be(H(H({},g()(e,["ruleId","classification","intervals","intervalsForUnique","method","ramp","reverse","attribute","symbolizerKind"])),{},{kind:e.symbolizerKind||"Fill",color:t.color}))]})}));if("Raster"===e.kind){var t=e.classification&&e.classification.length>0&&{colorMapEntries:(e.classification||[]).map((function(e){return{label:e.label,quantity:e.quantity,color:e.color,opacity:e.opacity}})),type:e.colorMapType};return H(H({name:e.name||""},e.scaleDenominator&&{scaleDenominator:e.scaleDenominator}),{},{symbolizers:[be(H(H({},g()(e,["ruleId","classification","intervals","method","ramp","reverse","continuous","symbolizerKind","name","colorMapType"])),{},{kind:"Raster"},t&&{colorMap:t}))]})}var r=pe(e.filter);return H(H({},e),{},{filter:r,symbolizers:((null==e?void 0:e.symbolizers)||[]).map((function(e){return be(e)}))})})))}):e}function ge(e){return H(H({},e),{},{rules:e.rules.map((function(e){return H(H({},e),{},{ruleId:x()(),filter:e.filter&&me(e.filter),symbolizers:e.symbolizers&&e.symbolizers.map((function(e){return H(H({},e),{},{symbolizerId:x()()})}))||[]})}))})}function he(e){return new Promise((function(t,r){e||r({messageId:"imageSrcEmpty",isBase64:!1});var n=!1;if(0===e.indexOf("data:image")){var o=e.split("base64,");(n=function(e){try{return window.atob(e),!0}catch(e){return!1}}(o[o.length-1]))||r({messageId:"imageSrcInvalidBase64",isBase64:n})}var i=new Image;i.onload=function(){t({src:e,isBase64:n})},i.onerror=function(){r({messageId:n?"imageSrcInvalidBase64":"imageSrcLoadError",isBase64:n})},i.src=e}))}var Oe=[{label:"image/png",value:"image/png"},{label:"image/jpeg",value:"image/jpeg"},{label:"image/gif",value:"image/gif"},{label:"image/svg+xml",value:"image/svg+xml"}],Se=function(e,t){var r=t;"sld"===e.format&&M().parseString(t,{explicitArray:!1},(function(t,n){var o="StyledLayerDescriptor.NamedLayer.UserStyle.FeatureTypeStyle.Rule",i=P()(l()(n,o,[])),a=(i=d()(i.map((function(t,r){var n,o=function(e,t){var r,n,o,i,l=(null===(r=e[t])||void 0===r||null===(n=r.symbolizers)||void 0===n?void 0:n[0])||{},a=l.kind,u=V(l,z);switch(a){case"Icon":return{baseGraphicPath:"PointSymbolizer",imgFormat:null==u?void 0:u.format};case"Line":return{baseGraphicPath:"LineSymbolizer.Stroke.GraphicStroke",imgFormat:null==u||null===(o=u.graphicStroke)||void 0===o?void 0:o.format};case"Fill":return{baseGraphicPath:"PolygonSymbolizer.Fill.GraphicFill",imgFormat:null==u||null===(i=u.graphicFill)||void 0===i?void 0:i.format};default:return{}}}((null===(n=e.style)||void 0===n?void 0:n.rules)||[],r),i=o.baseGraphicPath,a=o.imgFormat,u="".concat(i,".Graphic.ExternalGraphic"),c=l()(t,u),s="".concat(u,".Format"),f=l()(t,s);return c&&!f&&b()(a)?null:c?f?t:E()(t,s,a):t})))).some((function(e){return null===e}));r=a?"":X.buildObject(E()(n,o,i))}));var n=!!b()(r)&&{messageId:"styleeditor.imageFormatEmpty",status:400};return{parsedCode:r,errorObj:n}};function we(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.metadata,n=void 0===t?{}:t,o=e.format,i=e.code;return r.e(2568).then(r.t.bind(r,402568,23)).then((function(e){var t,r=e.default,l=n.msStyleJSON,a=n.msMD5Hash;if(a&&i)return r(i)!==a;if(!l)return Promise.resolve(!1);try{t=ve(JSON.parse(l))}catch(e){return Promise.resolve(!0)}return(0,L.getStyleParser)(o).then((function(e){return e.writeStyle(t).then((function(e){return r(i)!==r(e)}))}))}))}function ke(e){var t=["string"],r=["integer","long","double","float","bigdecimal","decimal","number","int"];return Object.keys(e).filter((function(n){return-1!==[].concat(t,r).indexOf(e[n].localType.toLowerCase())})).map((function(t){var n=e[t].localType;return{attribute:t,label:t,type:-1!==r.indexOf(n.toLowerCase())?"number":"string"}}))}function Ee(e){return null!=e&&e.properties?"3dtiles"===(null==e?void 0:e.type)?Object.keys(e.properties||{}).map((function(t){var r=e.properties[t],n=r.minimum,o=r.maximum,i=r.type,l=A()(n)||A()(o)?"number":"string";return{attribute:t,label:t,type:i||l}})):"wfs"===(null==e?void 0:e.type)?ke(e.properties):"vector"===(null==e?void 0:e.type)?Object.keys(e.properties||{}).filter((function(t){return A()(e.properties[t])||s()(e.properties[t])})).map((function(t){return{attribute:t,label:t,type:A()(e.properties[t])?"number":"string"}})):null:null}function je(e){return"3dtiles"===e.type?"pnts"===(null==e?void 0:e.format)?"pointcloud":"polyhedron":(null==e?void 0:e.geometryType)||"vector"}function Pe(e){return"3dtiles"===e.type?{format:"3dtiles",body:{},metadata:{editorType:"visual"}}:{format:"geostyler",body:{},metadata:{editorType:"visual"}}}var Ie={"3dtiles":function(e,t){var r=e.defines,n=void 0===r?{}:r,o=(e.meta,V(e,W)),i=[{key:"color",type:"string"},{key:"pointSize",type:"number"}].find((function(e){var t=e.key,r=e.type;if("string"===r&&o[t]&&!s()(o[t])&&!T()(o[t]))return!0;if("number"===r&&o[t]&&!s()(o[t])&&!A()(o[t])&&!T()(o[t]))return!0;if(T()(o[t])){var n,i;if(0===((null===(n=o[t])||void 0===n||null===(i=n.conditions)||void 0===i?void 0:i.length)||0))return!0;if(o[t].conditions.find((function(e){var t,r,n=(r=2,_(t=e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,l,a=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw o}}return a}}(t,r)||q(t,r)||$()),o=n[0];return!n[1]||!o})))return!0}return!1}));if(i)return{messageId:"styleeditor.invalidProperty",messageParams:i};var l=[].concat(B(Object.keys((null==t?void 0:t.properties)||{})),B(Object.keys(n)),["POSITION","POSITION_ABSOLUTE","COLOR","NORMAL"]).map((function(e){return"${".concat(e,"}")})),a=JSON.stringify(o).match(/\${(.*?)}/g);if(a){var u=a.find((function(e){return!l.includes(e)}));if(u)return{messageId:"styleeditor.notSupportedVariable",messageParams:{key:u}}}return!1}}},55237:(e,t,r)=>{"use strict";r.d(t,{tr:()=>S,jb:()=>w,Xu:()=>k,un:()=>E,Qn:()=>j,_q:()=>P,og:()=>I,$4:()=>T,kN:()=>C,oD:()=>A,V$:()=>D,uH:()=>x,pC:()=>F,tz:()=>R,p:()=>N});var n=r(747037),o=r.n(n),i=r(647960),l=r.n(i),a=r(227361),u=r.n(a),c=r(984596),s=r.n(c),f=r(730381),d=r.n(f),p=r(86638);function y(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||b(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,l,a=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw o}}return a}}(e,t)||b(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){if(e){if("string"==typeof e)return v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{},t=e.start,r=e.end,n=e.duration,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.start,l=o.end;if(!i||!l)return{count:O({start:t,end:r,duration:n}),start:t,end:r};var a=d().duration(n).asMilliseconds(),u=new Date(t).getTime(),c=new Date(r).getTime(),s=new Date(i).getTime(),f=new Date(l).getTime(),p=Math.ceil((s-u)/a),y=Math.floor((f-u)/a),m=Math.floor((c-u)/a);if(p>=0&&y<=m){var b=y-p;return{start:new Date(u+Math.max(0,p)*a),end:new Date(u+Math.min(m,y)*a),count:b}}return{count:O({start:t,end:r,duration:n}),start:t,end:r}},E=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.start,r=e.end,n=arguments.length>1?arguments[1]:void 0,o=new Date(t),i=new Date(r),l=Math.floor(i.getTime()-o.getTime())/n;return{range:{start:t,end:r},resolution:d().duration(l).toISOString().match(g)[0]}},j=function(){var e,t,r=arguments.length>1?arguments[1]:void 0,n=(e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],(t=arguments.length>2?arguments[2]:void 0)?e.map((function(e){var r=m(e.split("/"),2);return{start:r[0],end:r[1]}[t]})):e);return n[function(e,t){var r=h(t),n=1/0,o=-1;return e.forEach((function(e,t){var i=h(e),l=Math.abs(i-r);l0},I=function(e,t){var r=d()(e).diff(t);return{start:r>=0?t:e,end:r>=0?e:t}},T=function(e){return 6e4*e.getTimezoneOffset()},C=function(e){var t=e;!l()(e)&o()(e)&&(t=new Date(e));var r=t.getUTCHours();r=r<10?"0"+r:r;var n=t.getUTCMinutes();n=n<10?"0"+n:n;var i=t.getUTCSeconds();return i=i<10?"0"+i:i,"".concat(r,":").concat(n,":").concat(i)},A=function(e){var t=e;!l()(e)&o()(e)&&(t=new Date(e));var r=t.getUTCMonth()+1,n=t.getUTCDate();return r=r<10?"0"+r:r,n=n<10?"0"+n:n,"".concat(t.getUTCFullYear(),"-").concat(r,"-").concat(n)},D=function(e,t){var r=(0,p.mh)(e),n="HH:mm:SS";switch(t){case"time":return n;case"date":return r;default:return r+" "+n}},x=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).Domains,t=void 0===e?{}:e,r=arguments.length>1?arguments[1]:void 0,n=s()(t.DimensionDomain||[]).concat(),o=t["@version"]||t.version,i=u()(t,"SpaceDomain.BoundingBox");return i&&n.push({Identifier:"space",Domain:i}),n.map((function(e){var t=e.Identifier,n=e.Domain;return{source:{type:"multidim-extension",version:o,url:r},name:t,domain:n}}))},F=function(e,t,r){var n=h(t),o=h(r);return e.reduce((function(e,t){var r=h(t);return h(n)r?[].concat(y(e),[t]):y(e)}),[])},R=function(e){var t=e.reduce((function(e,t){if(-1!==t.indexOf("/")){var r=m(t.split("/"),2),n=r[0],o=r[1];return[].concat(y(e),[n,o])}return[].concat(y(e),[t])}),[]).sort();return[t[0],t[t.length-1]]},N=function(e,t,r){var n=d()(e);return("add"===r?n.add(t,"seconds"):n.subtract(t,"seconds")).toISOString()}},811531:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t\n\n\n\t\n\t\tDefault Style\n\t\t\n\t\t\t${styleTitle}\n\t\t\t${styleAbstract}\n\t\t\t\n\t\t\t\t\n\t\t\t\t\tRule Name\n\t\t\t\t\tRule Title\n\t\t\t\t\tRule Abstract\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t#0000FF\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tsquare\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t#FF0000\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t\n',preview:{config:{backgroundColor:"#333333",texts:[{text:"SLD",fill:"#33ffaa",style:{fontSize:64,fontWeight:"bold"}}]}}},{types:["raster"],title:"Base CSS",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n * {\n\traster-channels: auto;\n}",preview:{config:{backgroundColor:"#333333",texts:[{text:"CSS",fill:"#ffaa33",style:{fontSize:64,fontWeight:"bold"}}]}}},{types:["raster"],title:"Base SLD",format:"sld",code:'\n\n\n\t\n\t\tDefault Style\n\t\t\n\t\t\t${styleTitle}\n\t\t\t${styleAbstract}\n\t\t\t\n\t\t\t\t\n\t\t\t\t\tRule Name\n\t\t\t\t\tRule Title\n\t\t\t\t\tRule Abstract\n\t\t\t\t\t\n\t\t\t\t\t\t1.0\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t\n',preview:{config:{backgroundColor:"#333333",texts:[{text:"SLD",fill:"#33ffaa",style:{fontSize:64,fontWeight:"bold"}}]}}}].map((function(e){return i(i({},e),{},{styleId:a()})})),c=[{types:["linestring","vector"],title:"Line",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n\tstroke: #999999;\n}",preview:{config:{type:"linestring",paths:[{stroke:"#999999"}]}}},{types:["linestring","vector"],title:"Dashed line",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n\tstroke: #333333;\n\tstroke-width: 0.75;\n\tstroke-dasharray: 6 2;\n}",preview:{config:{type:"linestring",paths:[{stroke:"#333333",strokeWidth:4,strokeDasharray:"20 4"}]}}},{types:["linestring","vector"],title:"Section line",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n\tstroke: #330033;\n\tstroke-width: 1;\n\tstroke-dasharray: 10 4 1 4;\n}",preview:{config:{type:"linestring",paths:[{stroke:"#330033",strokeWidth:4,strokeDasharray:"20 10 4 10"}]}}},{types:["linestring","vector"],title:"Simple railway",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n stroke: symbol('shape://vertline'), #000000;\n :stroke {\n stroke: #000000;\n size: 8;\n };\n}\n",preview:{config:{type:"linestring",paths:[{stroke:"#333333",strokeWidth:2,strokeLinejoin:"round"},{stroke:"#333333",strokeWidth:16,strokeDasharray:"2 20",strokeLinejoin:"round"}]}}},{types:["linestring","vector"],title:"Railway",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n\tstroke: #777777, #ffffff;\n\tstroke-width: 4, 2;\n\tstroke-dasharray: 1 0, 10 10;\n}",preview:{config:{type:"linestring",paths:[{stroke:"#777777",strokeWidth:8,strokeLinejoin:"round"},{stroke:"#ffffff",strokeWidth:6,strokeDasharray:"20 20",strokeLinejoin:"round"}]}}},{types:["linestring","vector"],title:"Waterway",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n\tstroke: #8bbceb, #bbddff;\n\tstroke-width: 10, 8;\n\tstroke-linejoin: round;\n}",preview:{config:{type:"linestring",paths:[{stroke:"#8bbceb",strokeWidth:14,strokeLinejoin:"round"},{stroke:"#bbddff",strokeWidth:12,strokeLinejoin:"round"}]}}},{types:["linestring","vector"],title:"Red road",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n\tstroke: #ff5539, #ffffff;\n\tstroke-width: 8, 5;\n}",preview:{config:{type:"linestring",paths:[{stroke:"#ff5539",strokeWidth:14},{stroke:"#ffffff",strokeWidth:7}]}}},{code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n stroke: symbol('circle');\n stroke-dasharray: 8 20;\n :stroke {\n size: 8;\n fill: #ddd;\n stroke: #777;\n stroke-width: 0.5;\n };\n}\n",types:["linestring","vector"],title:"Stroke Pattern",format:"css",preview:{config:{type:"linestring",paths:[{type:"point",transform:"translate(-0, -55)",d:"M 100, 100 m -10, 0 a 10,10 0 1,0 20,0 a 10,10 0 1,0 -20,0",stroke:"#777",strokeWidth:2,fill:"#ddd"},{type:"point",transform:"translate(-65, 55)",d:"M 100, 100 m -10, 0 a 10,10 0 1,0 20,0 a 10,10 0 1,0 -20,0",stroke:"#777",strokeWidth:2,fill:"#ddd"},{type:"point",transform:"translate(-33, 0)",d:"M 100, 100 m -10, 0 a 10,10 0 1,0 20,0 a 10,10 0 1,0 -20,0",stroke:"#777",strokeWidth:2,fill:"#ddd"},{type:"point",transform:"translate(33, 0)",d:"M 100, 100 m -10, 0 a 10,10 0 1,0 20,0 a 10,10 0 1,0 -20,0",stroke:"#777",strokeWidth:2,fill:"#ddd"},{type:"point",transform:"translate(65, 55)",d:"M 100, 100 m -10, 0 a 10,10 0 1,0 20,0 a 10,10 0 1,0 -20,0",stroke:"#777",strokeWidth:2,fill:"#ddd"}]}}},{code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n stroke: #333;\n label: 'Label';\n label-anchor: 0.5 0.5;\n label-conflict-resolution: false;\n\n font-fill: #000;\n font-family: 'sans-serif';\n font-size: 20;\n\n halo-color: #fff;\n halo-radius: 4;\n}\n",types:["linestring","vector"],title:"Label",format:"css",preview:{config:{type:"linestring",paths:[{stroke:"#333",strokeWidth:4}],texts:[{text:"Label",transform:"translate(-40, 0)",style:{fontSize:30,fontWeight:"bold",strokeWidth:12,stroke:"#ffffff"}},{text:"Label",fill:"#000000",transform:"translate(-40, 0)",style:{fontSize:30,fontWeight:"bold",strokeWidth:1,stroke:"#000000"}}]}}},{code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n fill: #ddd;\n}\n",types:["polygon","vector"],title:"Fill",format:"css",preview:{config:{type:"polygon",paths:[{fill:"#ddd"}]}}},{code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n stroke: #333;\n stroke-width: 1;\n}\n",types:["polygon","vector"],title:"Border",format:"css",preview:{config:{type:"polygon",paths:[{fill:"transparent",stroke:"#333",strokeWidth:4}]}}},{code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n stroke: #333;\n stroke-dasharray: 10 5;\n stroke-width: 2;\n stroke-opacity: 0.5;\n}\n",types:["polygon","vector"],title:"Dashed Border",format:"css",preview:{config:{type:"polygon",paths:[{fill:"transparent",stroke:"#333",strokeWidth:4,strokeDasharray:"20 10",strokeOpacity:.5}]}}},{code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n fill: #ddd;\n stroke: #333;\n stroke-width: 1;\n}\n",types:["polygon","vector"],title:"Simple",format:"css",preview:{config:{type:"polygon",paths:[{fill:"#ddd",stroke:"#333",strokeWidth:4}]}}},{code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n fill: symbol('shape://slash');\n :fill {\n size: 8;\n stroke: #000;\n stroke-width: 1;\n stroke-linecap: round;\n };\n}\n",types:["polygon","vector"],title:"Line Pattern",format:"css",preview:{config:{type:"polygon",paths:[{fill:"url(#line)"}],patterns:[{id:"line",icon:{d:"M0.0 1.0 L1.0 0.0",stroke:"#000",strokeWidth:.05}}]}}},{code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n fill: symbol('shape://dot');\n :fill {\n size: 8;\n stroke: #000000;\n stroke-width: 4;\n };\n}\n",types:["polygon","vector"],title:"Dot Pattern",format:"css",preview:{config:{type:"polygon",paths:[{fill:"url(#poly_dot)"}],patterns:[{id:"poly_dot",icon:{d:"M0.5 0.5 L0.5 0.52Z",stroke:"#000",strokeLinecap:"round",strokeWidth:.2}}]}}},{code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n mark: symbol('circle');\n :mark {\n size: 16;\n stroke: #333;\n stroke-width: 2;\n fill: #ddd;\n };\n}\n\n* {\n stroke: #333333;\n stroke-width: 0.5;\n}\n",types:["polygon","vector"],title:"Marker",format:"css",preview:{config:{type:"polygon",paths:[{fill:"transparent",stroke:"#333"},{type:"point",d:"M 160,100 A 60,60 0 0 1 100,160 60,60 0 0 1 40,100 60,60 0 0 1 100,40 60,60 0 0 1 160,100 Z",stroke:"#333",fill:"#ddd",strokeWidth:4}]}}},{code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n fill: #ddd, symbol('cross');\n :fill {\n size: 20;\n stroke: #333;\n stroke-width: 1;\n fill: #f2f2f2;\n };\n}\n",types:["polygon","vector"],title:"Fill Pattern",format:"css",preview:{config:{type:"polygon",paths:[{fill:"#ddd"},{fill:"url(#poly_square)"}],patterns:[{id:"poly_square",icon:{d:"M0.1 0.1 L0.9 0.1 L0.9 0.9 L0.1 0.9Z",stroke:"#333",strokeLinecap:"round",strokeWidth:.05,fill:"#f2f2f2"}}]}}},{code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n label: 'Label';\n label-anchor: 0.5 0.5;\n\n font-fill: #000;\n font-family: 'sans-serif';\n font-size: 20;\n\n halo-color: #fff;\n halo-radius: 4;\n\n stroke: #474747;\n fill: symbol('shape://slash');\n :fill {\n size: 8;\n stroke: #000;\n stroke-width: 1;\n stroke-linecap: round;\n };\n}\n",types:["polygon","vector"],title:"Label and Fill",format:"css",preview:{config:{type:"polygon",paths:[{fill:"transparent",stroke:"#000",strokeWidth:2},{fill:"url(#line)"}],texts:[{text:"Label",style:{fontSize:50,fontWeight:"bold",strokeWidth:12,stroke:"#ffffff"}},{text:"Label",fill:"#000000",style:{fontSize:50,fontWeight:"bold",strokeWidth:1,stroke:"#000000"}}]}}},{types:["point","vector"],title:"Square",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n * {\n\tmark: symbol('square');\n\t:mark {\n\t\tstroke: #ff338f;\n\t\tfill: #bcedff;\n\t};\n}",preview:{config:{type:"point",paths:[{d:"M40 40 L160 40 L160 160 L40 160Z",stroke:"#ff338f",fill:"#bcedff",strokeWidth:4}]}}},{types:["point","vector"],title:"Circle",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n * {\n\tmark: symbol('circle');\n\t:mark {\n\t\tstroke: #ff338f;\n\t\tfill: #bcedff;\n\t};\n}",preview:{config:{type:"point",paths:[{d:"M 160,100 A 60,60 0 0 1 100,160 60,60 0 0 1 40,100 60,60 0 0 1 100,40 60,60 0 0 1 160,100 Z",stroke:"#ff338f",fill:"#bcedff",strokeWidth:4}]}}},{types:["point","vector"],title:"Triangle",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n * {\n\tmark: symbol('triangle');\n\t:mark {\n\t\tstroke: #ff338f;\n\t\tfill: #bcedff;\n\t};\n}",preview:{config:{type:"point",paths:[{d:"M 160,151.96151 H 40 L 99.999999,48.038488 Z",stroke:"#ff338f",fill:"#bcedff",strokeWidth:4}]}}},{types:["point","vector"],title:"Star",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n * {\n\tmark: symbol('star');\n\t:mark {\n\t\tstroke: #ff338f;\n\t\tfill: #bcedff;\n\t};\n}",preview:{config:{type:"point",paths:[{d:"M 165.07677,84.40286 131.87672,116.49613 139.49277,162.03972 98.710865,140.38195 57.749838,161.699 65.745291,116.22048 32.813927,83.851564 78.537289,77.40206 99.145626,36.079922 119.40876,77.572419 Z",stroke:"#ff338f",fill:"#bcedff",strokeWidth:4}]}}},{types:["point","vector"],title:"Cross",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n * {\n\tmark: symbol('cross');\n\t:mark {\n\t\tstroke: #ff338f;\n\t\tfill: #bcedff;\n\t};\n}",preview:{config:{type:"point",paths:[{d:"M 84.99987,39.999998 V 84.999868 H 39.999999 V 115.00013 H 84.99987 V 160 H 115.00013 V 115.00013 H 160 V 84.999868 H 115.00013 V 39.999998 Z",stroke:"#ff338f",fill:"#bcedff",strokeWidth:4}]}}},{types:["point","vector"],title:"X",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n * {\n\tmark: symbol('x');\n\t:mark {\n\t\tstroke: #ff338f;\n\t\tfill: #bcedff;\n\t};\n}",preview:{config:{type:"point",paths:[{d:"M 131.81971,46.966899 100,78.786612 68.180288,46.966898 46.966899,68.180287 78.786613,100 46.9669,131.81971 68.180287,153.0331 100,121.21339 131.81971,153.0331 153.0331,131.81971 121.21339,99.999999 153.0331,68.180286 Z",stroke:"#ff338f",fill:"#bcedff",strokeWidth:4}]}}},{types:["point","vector"],title:"Line",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n * {\n\tmark: symbol('shape://vertline');\n\t:mark { stroke: #ff338f; };\n}",preview:{config:{type:"point",paths:[{d:"M 100,40 V 160 Z",stroke:"#ff338f",strokeWidth:4,fill:"none"}]}}},{types:["point","vector"],title:"Plus",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n * {\n\tmark: symbol('shape://plus');\n\t:mark { stroke: #ff338f; };\n}",preview:{config:{type:"point",paths:[{d:"M 100,40 V 160 Z",stroke:"#ff338f",strokeWidth:4,fill:"none"},{d:"M 160,100 40.000002,100 Z",stroke:"#ff338f",strokeWidth:4,fill:"none"}]}}},{types:["point","vector"],title:"Times",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n * {\n\tmark: symbol('shape://times');\n\t:mark { stroke: #ff338f; };\n}",preview:{config:{type:"point",paths:[{d:"M 142.42641,57.573591 57.573595,142.4264 Z",stroke:"#ff338f",strokeWidth:4,fill:"none"},{d:"M 142.42641,142.42641 57.573595,57.573594 Z",stroke:"#ff338f",strokeWidth:4,fill:"none"}]}}},{types:["point","vector"],title:"Open arrow",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n * {\n\tmark: symbol('shape://oarrow');\n\t:mark { stroke: #ff338f; };\n}",preview:{config:{type:"point",paths:[{d:"M 40.027335,53.266123 159.77305,100 40.027335,146.73388",stroke:"#ff338f",strokeWidth:4,fill:"none"}]}}},{types:["point","vector"],title:"Closed arrow",format:"css",code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n * {\n\tmark: symbol('shape://carrow');\n\t:mark { stroke: #ff338f; };\n}",preview:{config:{type:"point",paths:[{d:"M 40.027335,53.266123 159.77305,100 40.027335,146.73388Z",stroke:"#ff338f",strokeWidth:4,fill:"none"}]}}},{code:"@mode 'Flat';\n@styleTitle '${styleTitle}';\n@styleAbstract '${styleAbstract}';\n\n* {\n label: 'Label';\n label-anchor: 0.5 2;\n label-conflict-resolution: false;\n\n font-fill: #000;\n font-family: 'sans-serif';\n font-size: 20;\n\n halo-color: #fff;\n halo-radius: 4;\n\n mark: symbol('circle');\n :mark {\n size: 7;\n stroke: #0d0d0d;\n stroke-width: 0.7;\n };\n}\n",types:["polygon","point","vector"],title:"Label and Marker",format:"css",preview:{config:{type:"polygon",paths:[{type:"point",d:"M 100, 100 m -10, 0 a 10,10 0 1,0 20,0 a 10,10 0 1,0 -20,0",stroke:"#0d0d0d",fill:"transparent",strokeWidth:2}],texts:[{text:"Label",y:150,style:{fontSize:50,fontWeight:"bold",strokeWidth:12,stroke:"#ffffff"}},{text:"Label",fill:"#000000",y:150,style:{fontSize:50,fontWeight:"bold",strokeWidth:1,stroke:"#000000"}}]}}}].map((function(e){return i(i({},e),{},{styleId:a()})}));e.exports={baseTemplates:u,customTemplates:c}},172704:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(923645),o=r.n(n)()((function(e){return e[1]}));o.push([e.id,".msgapi .mapstore-filter input::-ms-clear,\n.msgapi .mapstore-filter input::-ms-reveal {\n display: none;\n}\n",""]);const i=o}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/60177.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/60177.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/60177.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/60177.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/6030.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/6030.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/6030.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/6030.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/60318.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/60318.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/60318.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/60318.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/60533.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/60533.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/60533.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/60533.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/60568.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/60568.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/60568.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/60568.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/60602.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/60602.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/60602.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/60602.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/60617.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/60617.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/60617.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/60617.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/60619.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/60619.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/60619.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/60619.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/60622.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/60622.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/60622.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/60622.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/60770.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/60770.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/60770.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/60770.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/60861.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/60861.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/60861.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/60861.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/60872.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/60872.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/60872.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/60872.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/61052.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/61052.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/61052.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/61052.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/61199.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/61199.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/61199.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/61199.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/61233.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/61233.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/61233.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/61233.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/61250.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/61250.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/61250.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/61250.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/61260.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/61260.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/61260.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/61260.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/61332.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/61332.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/61332.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/61332.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/61399.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/61399.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/61399.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/61399.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/61699.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/61699.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/61699.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/61699.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/61715.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/61715.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/61715.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/61715.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/61771.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/61771.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/61771.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/61771.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/61845.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/61845.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/61845.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/61845.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/61853.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/61853.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/61853.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/61853.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/61911.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/61911.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/61911.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/61911.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/61958.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/61958.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/61958.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/61958.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/61969.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/61969.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/61969.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/61969.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/62081.018dc26183efb561a8b1.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/62081.018dc26183efb561a8b1.chunk.js new file mode 100644 index 0000000000..cff8e3dbf1 --- /dev/null +++ b/geonode_mapstore_client/static/mapstore/dist/js/62081.018dc26183efb561a8b1.chunk.js @@ -0,0 +1 @@ +(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[62081],{190683:(e,t,n)=>{var r={"./de-DE.png":689834,"./de.png":294122,"./en-US.png":16885,"./en.png":11533,"./es-ES.png":355350,"./es.png":88777,"./fi-FI.png":821500,"./fi.png":352019,"./fr-FR.png":621767,"./fr.png":31287,"./hr-HR.png":766566,"./it-IT.png":923491,"./jp.png":269960,"./nl-NL.png":144349,"./nl.png":840717,"./pt-PT.png":746374,"./pt.png":64171,"./sk-SK.png":835070,"./sk.png":432147,"./sv-SE.png":974921,"./us.png":118268,"./vi-VN.png":457003,"./vi.png":678513,"./zh-ZH.png":123257};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=190683},487427:(e,t,n)=>{"use strict";n.d(t,{kZ:()=>m,bR:()=>f});var r=n(701469),o=n.n(r),i=n(623560),A=n.n(i),l=n(414293),a=n.n(l),s=n(867076);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[];o()(e)&&e.forEach((function(e){A()(e)&&e()})),a({}),i(),n({})}}}),(0,s.lifecycle)({UNSAFE_componentWillMount:function(){var e=this.props,t=e.element,n=void 0===t?{}:t,r=e.onUpdateOriginalSettings,o=void 0===r?function(){}:r,i=e.onUpdateInitialSettings,A=void 0===i?function(){}:i;o({}),A(u({},n))},componentWillReceiveProps:function(e){var t=this.props,n=t.settings,r=void 0===n?{}:n,o=t.onRetrieveLayerData,i=void 0===o?function(){}:o;!r.expanded&&e.settings&&e.settings.expanded&&a()(e.element.description)&&"wms"===e.element.type&&i(e.element)},componentWillUpdate:function(e){var t=this.props,n=t.initialActiveTab,r=void 0===n?"general":n,o=t.settings,i=void 0===o?{}:o,A=t.onUpdateOriginalSettings,l=void 0===A?function(){}:A,a=t.onUpdateInitialSettings,s=void 0===a?function(){}:a,c=t.onSetTab,p=void 0===c?function(){}:c;!i.expanded&&e.settings&&e.settings.expanded&&(l({}),s(u({},e.element)),p(r))}})),f=(0,s.compose)(g,m)},518842:(e,t,n)=>{"use strict";n.d(t,{Z:()=>L});var r=n(974691),o=n.n(r),i=n(414293),A=n.n(i),l=n(281763),a=n.n(l),s=n(675263),c=n.n(s),p=n(124852),u=n.n(p),g=n(480681),m=n(212610),f=n(794192),d=n(805346),v=n(202576),y=n(490079),h=n(710615),E=n(743129),b=n(501157);function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e){for(var t=1;t=12?n:""))})})),I(S(t),"onFormatOptionsFetch",(function(e){t.setState({formatLoading:!0}),(0,b.T6)(e).then((function(e){t.props.onChange("imageFormats",e),t.setState({formatLoading:!1})}))})),I(S(t),"getValidationState",(function(e){return t.state.legendOptions&&t.state.legendOptions[e]?parseInt(t.state.legendOptions[e],10)<12&&"error":null})),I(S(t),"updateState",(function(e){e.settings&&e.settings.options&&t.setState(P(P({},t.state),{},{opacity:A()(e.settings.options.opacity)?t.state.opacity:Math.round(100*e.settings.options.opacity),legendOptions:P(P({},t.state.legendOptions),{},{legendHeight:e.element.legendOptions&&!A()(e.element.legendOptions.legendHeight)?e.element.legendOptions.legendHeight:t.state.legendOptions.legendHeight,legendWidth:e.element.legendOptions&&!A()(e.element.legendOptions.legendWidth)?e.element.legendOptions.legendWidth:t.state.legendOptions.legendWidth}),containerWidth:t.containerRef.current&&t.containerRef.current.clientWidth}))})),I(S(t),"setOverFlow",(function(){return t.state.legendOptions.legendWidth>t.state.containerWidth})),I(S(t),"useLegendOptions",(function(){return"error"!==t.getValidationState("legendWidth")&&"error"!==t.getValidationState("legendHeight")&&a()(t.state.legendOptions.legendHeight)&&a()(t.state.legendOptions.legendWidth)})),t.containerRef=u().createRef(),t}return t=s,(n=[{key:"componentDidMount",value:function(){this.updateState(this.props)}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.props!==e&&this.updateState(e)}},{key:"render",value:function(){var e,t,n=this;return u().createElement(g.Grid,{fluid:!0,className:"fluid-container ms-display-form "+(!this.props.containerWidth&&"adjust-display")},"wms"===this.props.element.type&&u().createElement(g.Row,null,u().createElement(g.Col,{xs:12},u().createElement(g.FormGroup,null,u().createElement(g.ControlLabel,null,u().createElement(d.Z,{msgId:"layerProperties.format.title"})),u().createElement("div",{className:"ms-format-container"},u().createElement(E.ZP,{className:"format-select",key:"format-dropdown",clearable:!1,noResultsText:u().createElement(d.Z,{msgId:this.state.formatLoading?"layerProperties.format.loading":"layerProperties.format.noOption"}),isLoading:!!this.state.formatLoading,options:this.state.formatLoading?[]:(null===(e=this.props.formats)||void 0===e?void 0:e.map((function(e){return{value:e,label:e}})))||(null===(t=this.props.element)||void 0===t?void 0:t.imageFormats)||b.QQ,value:this.props.element&&this.props.element.format||"image/png",onChange:function(e){var t=e.value;n.props.onChange("format",t)}}),u().createElement(D,{tooltipId:"layerProperties.format.refresh",className:"square-button-md no-border format-refresh",onClick:function(){var e;n.onFormatOptionsFetch(null===(e=n.props.element)||void 0===e?void 0:e.url)},key:"format-refresh"},u().createElement(g.Glyphicon,{glyph:"refresh"}))))),u().createElement(g.Col,{xs:12},u().createElement(g.FormGroup,null,u().createElement(g.ControlLabel,null,u().createElement(d.Z,{msgId:"WMS Layer tile size"})),u().createElement(E.ZP,{key:"wsm-layersize-dropdown",clearable:!1,options:[{value:256,label:256},{value:512,label:512}],value:this.props.element&&this.props.element.tileSize||256,onChange:function(e){var t=e.value;n.props.onChange("tileSize",t)}})))),"3dtiles"!==this.props.element.type&&u().createElement(g.Row,null,u().createElement(g.Col,{xs:12},u().createElement(g.FormGroup,null,u().createElement(g.ControlLabel,null,this.props.opacityText," %"),u().createElement(f.Z,{type:"number",min:0,max:100,name:"opacity",value:this.state.opacity,onChange:function(e){return n.onChange("opacity",e)}})))),u().createElement(g.Row,null,u().createElement(g.Col,{xs:12},u().createElement(g.FormGroup,null,u().createElement(h.Z,{title:u().createElement(g.ControlLabel,null,u().createElement(d.Z,{msgId:"layerProperties.visibilityLimits.title"})),layer:this.props.element,onChange:this.props.onChange,projection:this.props.projection,resolutions:this.props.resolutions,zoom:this.props.zoom})))),"3dtiles"===this.props.element.type&&u().createElement(g.Row,null,u().createElement(g.Col,{xs:12},u().createElement(g.FormGroup,null,u().createElement(g.ControlLabel,null,u().createElement(d.Z,{msgId:"layerProperties.heightOffset"})),u().createElement(f.Z,{type:"number",name:"heightOffset",value:this.props.element.heightOffset||0,onChange:function(e){return n.props.onChange("heightOffset",parseFloat(e))}})))),"wms"===this.props.element.type&&u().createElement(g.Row,null,u().createElement(g.Col,{xs:12},u().createElement("hr",null),u().createElement(g.FormGroup,null,u().createElement(g.Checkbox,{key:"transparent",checked:this.props.element&&(void 0===this.props.element.transparent||this.props.element.transparent),onChange:function(e){n.props.onChange("transparent",e.target.checked)}},u().createElement(d.Z,{msgId:"layerProperties.transparent"})),u().createElement(g.Checkbox,{value:"tiled",key:"tiled",disabled:!!this.props.element.singleTile,onChange:function(e){return n.props.onChange("tiled",e.target.checked)},checked:!this.props.element||void 0===this.props.element.tiled||this.props.element.tiled},u().createElement(d.Z,{msgId:"layerProperties.cached"})),u().createElement(g.Checkbox,{key:"singleTile",value:"singleTile",checked:this.props.element&&void 0!==this.props.element.singleTile&&this.props.element.singleTile,onChange:function(e){return n.props.onChange("singleTile",e.target.checked)}},u().createElement(d.Z,{msgId:"layerProperties.singleTile"})),this.props.isLocalizedLayerStylesEnabled&&u().createElement(g.Checkbox,{key:"localizedLayerStyles",value:"localizedLayerStyles","data-qa":"display-lacalized-layer-styles-option",checked:this.props.element&&void 0!==this.props.element.localizedLayerStyles&&this.props.element.localizedLayerStyles,onChange:function(e){return n.props.onChange("localizedLayerStyles",e.target.checked)}},u().createElement(d.Z,{msgId:"layerProperties.enableLocalizedLayerStyles.label"})," ",u().createElement(v.Z,{text:u().createElement(d.Z,{msgId:"layerProperties.enableLocalizedLayerStyles.tooltip"})})),!this.props.isCesiumActive&&u().createElement(g.Checkbox,{"data-qa":"display-forceProxy-option",value:"forceProxy",key:"forceProxy",onChange:function(e){return n.props.onChange("forceProxy",e.target.checked)},checked:this.props.element.forceProxy},u().createElement(d.Z,{msgId:"layerProperties.forceProxy"})))),u().createElement("div",{className:"legend-options"},u().createElement(g.Col,{xs:12,className:"legend-label"},u().createElement("label",{key:"legend-options-title",className:"control-label"},u().createElement(d.Z,{msgId:"layerProperties.legendOptions.title"}))),u().createElement(g.Col,{xs:12,sm:6,className:"first-selectize"},u().createElement(g.FormGroup,{validationState:this.getValidationState("legendWidth")},u().createElement(g.ControlLabel,null,u().createElement(d.Z,{msgId:"layerProperties.legendOptions.legendWidth"})),u().createElement(f.Z,{value:this.state.legendOptions.legendWidth,name:"legendWidth",type:"number",min:12,max:1e3,onChange:function(e){return n.onChange("legendWidth",e)},onKeyPress:function(e){return"-"===e.key&&e.preventDefault()},onBlur:this.onBlur}))),u().createElement(g.Col,{xs:12,sm:6,className:"second-selectize"},u().createElement(g.FormGroup,{validationState:this.getValidationState("legendHeight")},u().createElement(g.ControlLabel,null,u().createElement(d.Z,{msgId:"layerProperties.legendOptions.legendHeight"})),u().createElement(f.Z,{value:this.state.legendOptions.legendHeight,name:"legendHeight",type:"number",min:12,max:1e3,onChange:function(e){return n.onChange("legendHeight",e)},onKeyPress:function(e){return"-"===e.key&&e.preventDefault()},onBlur:this.onBlur}))),u().createElement(g.Col,{xs:12,className:"legend-preview"},u().createElement(g.ControlLabel,null,u().createElement(d.Z,{msgId:"layerProperties.legendOptions.legendPreview"})),u().createElement("div",{style:this.setOverFlow()&&this.state.containerStyle||{},ref:this.containerRef},u().createElement(y.Z,{style:this.setOverFlow()&&{}||void 0,layer:this.props.element,legendHeight:this.useLegendOptions()&&this.state.legendOptions.legendHeight||void 0,legendWidth:this.useLegendOptions()&&this.state.legendOptions.legendWidth||void 0,language:this.props.isLocalizedLayerStylesEnabled?this.props.currentLocaleLanguage:void 0}))))))}}])&&C(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(u().Component);I(L,"propTypes",{opacityText:c().node,element:c().object,formats:c().array,settings:c().object,onChange:c().func,containerWidth:c().number,currentLocaleLanguage:c().string,isLocalizedLayerStylesEnabled:c().bool,isCesiumActive:c().bool,projection:c().string,resolutions:c().array,zoom:c().number}),I(L,"defaultProps",{onChange:function(){},opacityText:u().createElement(d.Z,{msgId:"opacity"})})},363209:(e,t,n)=>{"use strict";n.d(t,{Z:()=>N});var r=n(313311),o=n.n(r),i=n(264721),A=n.n(i),l=n(513218),a=n.n(l),s=n(747037),c=n.n(s),p=n(545578),u=n.n(p),g=n(727418),m=n.n(g),f=n(675263),d=n.n(f),v=n(124852),y=n.n(v),h=n(480681),E=n(743129),b=n(472986),w=n.n(b),B=n(86638),P=n(359112),C=n(805346),Q=n(867076),S=n(950966);const U=(0,Q.compose)((0,Q.withState)("enableOverlayTrigger","setEnableOverlayTrigger",!0),(0,Q.withState)("overlayTriggerDelayID","setOverlayTriggerDelayID"),(0,Q.withState)("layerName","setLayerName",""),(0,Q.withState)("editingLayerName","setEditingLayerName",!1),(0,Q.withState)("waitingForLayerLoading","setWaitingForLayerLoading",!1),(0,Q.withState)("waitingForLayerLoad","setWaitingForLayerLoad",!1),(0,Q.withState)("layerError","setLayerError"),(0,Q.withHandlers)({setEditingLayerName:function(e){var t=e.editingLayerName,n=void 0!==t&&t,r=e.overlayTriggerDelayID,o=e.setEditingLayerName,i=void 0===o?function(){}:o,A=e.setOverlayTriggerDelayID,l=void 0===A?function(){}:A,a=e.setEnableOverlayTrigger,s=void 0===a?function(){}:a;return function(e){n!==e&&(r&&clearTimeout(r),s(!1),l(setTimeout((function(){s(!0)}),250))),i(e)}}}),(0,Q.lifecycle)({componentDidMount:function(){var e;this.props.setLayerName(null===(e=this.props.element)||void 0===e?void 0:e.name)},componentDidUpdate:function(){var e=this.props,t=e.element,n=void 0===t?{}:t,r=e.waitingForLayerLoading,o=e.waitingForLayerLoad,i=e.setWaitingForLayerLoad,A=void 0===i?function(){}:i,l=e.setWaitingForLayerLoading,a=void 0===l?function(){}:l,s=e.setEditingLayerName,c=void 0===s?function(){}:s,p=e.setLayerError,u=void 0===p?function(){}:p;r&&n.loading?(a(!1),A(!0)):o&&!n.loading&&(A(!1),u(n.loadingError),c(!!n.loadingError))}}))((function(e){var t,n=e.enableOverlayTrigger,r=e.element,o=void 0===r?{}:r,i=e.enableLayerNameEditFeedback,A=void 0!==i&&i,l=e.layerName,a=void 0===l?"":l,s=e.editingLayerName,c=void 0!==s&&s,p=e.layerError,u=e.waitingForLayerLoading,g=void 0!==u&&u,m=e.waitingForLayerLoad,f=void 0!==m&&m,d=e.setLayerName,v=void 0===d?function(){}:d,E=e.setWaitingForLayerLoading,b=void 0===E?function(){}:E,B=e.setEditingLayerName,P=void 0===B?function(){}:B,Q=e.onUpdateEntry,U=void 0===Q?function(){}:Q,I=y().createElement(h.InputGroup.Addon,{className:"btn",onClick:function(){c?a!==o.name?(U("name",{target:{value:a}}),A?b(!0):P(!1)):P(!1):P(!0)}},g||f?y().createElement(w(),{noFadeIn:!0,style:{width:"18px",height:"18px"},spinnerName:"circle"}):y().createElement(h.Glyphicon,{glyph:c?"ok":"pencil"}));return y().createElement(h.FormGroup,{validationState:!p||f||g?null:"error"},y().createElement(h.ControlLabel,null,y().createElement(C.Z,{msgId:"layerProperties.name"})),y().createElement(h.InputGroup,null,y().createElement(h.FormControl,{value:a,key:"name",type:"text",disabled:!c,onChange:function(e){return v(e.target.value)}}),n?(t=I,y().createElement(S.Z,{placement:"top",overlay:y().createElement(h.Tooltip,{id:"tooltip-layer-name-edit"},y().createElement(C.Z,{msgId:"layerProperties.tooltip.".concat(c?"confirm":"edit","LayerName")}))},t)):I))}));function I(e){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I(e)}function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function D(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n{"use strict";n.d(t,{Z:()=>D});var r=n(124852),o=n.n(r),i=n(675263),A=n.n(i),l=n(480681),a=n(807654),s=n.n(a),c=n(414293),p=n.n(c),u=n(743129),g=n(993451),m=n(80717),f=n(145869),d=n(680833),v=n(805346),y=n(552259),h=["labelId"];function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,A,l=[],a=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;a=!1}else for(;!(a=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{if(!a&&null!=n.return&&(A=n.return(),Object(A)!==A))return}finally{if(s)throw o}}return l}}(e,t)||w(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){if(e){if("string"==typeof e)return B(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(e,t):void 0}}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nt[Q]?-1:1}))}function Z(e,t){return(0,y.getResolutionObject)(e,t,{projection:A,resolutions:s})}var R=b((0,r.useState)([]),2),k=R[0],T=R[1],H=b((0,r.useState)(O&&{resolution:O,scale:O*x,zoom:(0,y.getZoomFromResolution)(O,s)}),2),N=H[0],z=H[1],F=b((0,r.useState)(D&&{resolution:D,scale:D*x,zoom:(0,y.getZoomFromResolution)(D,s)}),2),W=F[0],G=F[1],M=b((0,r.useState)(!1),2),K=M[0],Y=M[1],J=b((0,r.useState)(),2),V=J[0],X=J[1],q=b((0,r.useState)(),2),_=q[0],$=q[1],ee=(0,r.useRef)();function te(){$(void 0),X(void 0)}function ne(e,t){var n,r,o=(n=e,r=t,p()(n)&&p()(r)?"layerProperties.visibilityLimits.serverValuesUpdateUndefined":p()(n)&&!p()(r)?"layerProperties.visibilityLimits.serverValuesUpdateMinScale":!p()(n)&&p()(r)?"layerProperties.visibilityLimits.serverValuesUpdateMaxScale":"layerProperties.visibilityLimits.serverValuesUpdate");X(o)}function re(e,t){e=((null==W?void 0:W[Q])||0)},options:k.map((function(e){return C(C({},e),{},{value:e[Q]+(e.delta||0),label:e[Q],showArrow:e.zoom===i,disabled:!p()(null==W?void 0:W[Q])&&e[Q]<=W[Q],limitsType:Q})})),disabled:L||K,onChange:function(e){var t=void 0===e.value?{}:p()(e.zoom)?Z(e.value,Q):{resolution:e.resolution,scale:e.scale,zoom:e.zoom};if(E({maxResolution:t.resolution}),z(t),void 0!==e.value&&p()(e.zoom)){var n=j(k,t);T(n)}te()}}),o().createElement("label",{htmlFor:"ms-visibility-limits-min"},o().createElement(v.Z,{msgId:"layerProperties.visibilityLimits.minValue"})),o().createElement(I,{id:"ms-visibility-limits-min",value:(null==W?void 0:W[Q])&&{value:W[Q],label:W[Q],zoom:W.zoom,limitsType:Q},placeholderId:"layerProperties.visibilityLimits.minValuePlaceholder",noResultsTextId:"layerProperties.visibilityLimits.valueNoResultsText",createTextId:"layerProperties.visibilityLimits.createOption",loading:K,isValidNewOption:function(e){return e<=((null==N?void 0:N[Q])||1/0)},options:k.map((function(e){return C(C({},e),{},{value:e[Q],label:e[Q],showArrow:e.zoom===i,disabled:!p()(null==N?void 0:N[Q])&&e[Q]>=N[Q],limitsType:Q})})),disabled:L||K,onChange:function(e){var t=void 0===e.value?{}:p()(e.zoom)?Z(e.value,Q):{resolution:e.resolution,scale:e.scale,zoom:e.zoom};if(E({minResolution:t.resolution}),G(t),void 0!==e.value&&p()(e.zoom)){var n=j(k,t);T(n)}te()}}),o().createElement("label",{htmlFor:"ms-visibility-limits-type"},o().createElement(v.Z,{msgId:"layerProperties.visibilityLimits.type"})),o().createElement(S,{inputProps:{id:"ms-visibility-limits-type"},value:Q,clearable:!1,options:u.map((function(e){var t=e.labelId;return C(C({},function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,h)),t&&{label:o().createElement(v.Z,{msgId:t})})})),disabled:L||K,onChange:function(e){var t=e.value;U(t),te()}}),V&&o().createElement(l.Alert,{bsStyle:"success"},o().createElement(v.Z,{msgId:V})),_&&o().createElement(l.Alert,{bsStyle:"danger"},o().createElement(v.Z,{msgId:_})))}O.propTypes={layer:A().object,zoom:A().number,onChange:A().func,resolutions:A().array,limitsTypesOptions:A().array,projection:A().string,dpi:A().number,defaultLimitsType:A().string},O.defaultProps={layer:{},onChange:function(){},limitsTypesOptions:[{value:"scale",labelId:"layerProperties.visibilityLimits.scale"},{value:"resolution",labelId:"layerProperties.visibilityLimits.resolution"}],dpi:y.DEFAULT_SCREEN_DPI};const D=O},689834:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAGzSURBVHjaYvTxcWb4+53h3z8GZpZff/79+v3n/7/fDAz/GHAAgABi+f37e3FxOZD1Dwz+/v3z9y+E/AMFv3//+Qumfv9et241QACxMDExAVWfOHkJJAEW/gUEP0EQDn78+AHE/gFOQJUAAcQiy8Ag8O+fLFj1n1+/QDp+/gQioK7fP378+vkDqOH39x9A/RJ/gE5lAAhAYhzcAACCQBDkgRXRjP034R0IaDTZTFZn0DItot37S94KLOINerEcI7aKHAHE8v/3r/9//zIA1f36/R+o4tevf1ANYNVA9P07RD9IJQMDQACxADHD3z8Ig4GMHz+AqqHagKp//fwLVA0U//v7LwMDQACx/LZiYFD7/5/53/+///79BqK/EMZ/UPACSYa/v/8DyX9A0oTxx2EGgABi+a/H8F/m339BoCoQ+g8kgRaCQvgPJJiBYmAuw39hxn+uDAABxMLwi+E/0PusRkwMvxhBGoDkH4b/v/+D2EDyz///QB1/QLb8+sP0lQEggFh+vGXYM2/SP6A2Zoaf30Ex/J+PgekHwz9gQDAz/P0FYrAyMfz7wcDAzPDtFwNAgAEAd3SIyRitX1gAAAAASUVORK5CYII="},294122:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAGzSURBVHjaYvTxcWb4+53h3z8GZpZff/79+v3n/7/fDAz/GHAAgABi+f37e3FxOZD1Dwz+/v3z9y+E/AMFv3//+Qumfv9et241QACxMDExAVWfOHkJJAEW/gUEP0EQDn78+AHE/gFOQJUAAcQiy8Ag8O+fLFj1n1+/QDp+/gQioK7fP378+vkDqOH39x9A/RJ/gE5lAAhAYhzcAACCQBDkgRXRjP034R0IaDTZTFZn0DItot37S94KLOINerEcI7aKHAHE8v/3r/9//zIA1f36/R+o4tevf1ANYNVA9P07RD9IJQMDQACxADHD3z8Ig4GMHz+AqqHagKp//fwLVA0U//v7LwMDQACx/LZiYFD7/5/53/+///79BqK/EMZ/UPACSYa/v/8DyX9A0oTxx2EGgABi+a/H8F/m339BoCoQ+g8kgRaCQvgPJJiBYmAuw39hxn+uDAABxMLwi+E/0PusRkwMvxhBGoDkH4b/v/+D2EDyz///QB1/QLb8+sP0lQEggFh+vGXYM2/SP6A2Zoaf30Ex/J+PgekHwz9gQDAz/P0FYrAyMfz7wcDAzPDtFwNAgAEAd3SIyRitX1gAAAAASUVORK5CYII="},16885:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAYAAAB24g05AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3woNChAfXTteVAAAAjRJREFUKM9VkklIlVEAhb9fHxkVDWLwQKw2URI0kQ2GmoYELcJFhFZQ+FBxHaRhIA20qKiWrzDSoAwMGsgicEIlizILi+ZNIERJhNp777/3/ve0sEV9q7M78J0TJBqGxb94D94BBhBguLK8B6V+M/njGwbwgJ23hLHSBCQahuV9pOsDTlZGHX1O1lq19TqFYUbJx07GhArDUJlMWul0SnZ0RD4KlXw0riDRMKyymq10DnoiD5EH40Sk2ZxxYpQW+PkLxbLxW7cwp7aWa13jnE++IAss8nC3SYQe7jdZIkH30RQZJ94GkGptxTXWk336FO/KqqjYfYs376fIGEOQqBtUaU0x1/o8kZ9tdhZCibeELHVPmWheSxCP/6dKgtcfvxPDp9hfItp6xIOmDJWn5tLdNEX8jGGy6jPzkx246glkDN5avDEQRcRW59P7EWIg2gcCnIPy0zl4J9ZczDB+dDGL9h3Hh5bsZyN/Fwnw3iOEBDs+TcLXr19krVUqldLMzIzS09MKW5olSX7jJtl1GzRLpImKcvVf7lY8/4r2Hr6jhSuOKCu//RLZY0/IuXCBWOcNwmSSRLhn9hJhiIwBie07Osnr7aMo+MarykHWFi1HkSXrS3U9bv02THwBoysrOPF7M7kLIiQICvMJCuNIomBVLgcP3WaosISlbW00Pm+l7kAxQX/HTX3oGqKrYBsvhwzWpXFRxMi9ah5WViHn2NXbTdHOs+Aj8BF5y5Zw7FwNAyev8gcAFF3B0hKD4gAAAABJRU5ErkJggg=="},11533:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAGCSURBVHjaYvz48SMDEvj3j+Hfty/npKX/MTAY3L7NwMf3DxUABBALUBEfHx+Q/P//P1QPJ7t6UdG/P3+EpKQY2Nj+I4Fnz54BBBALRBFcNUj4378fDx78+/3739+/QBvhqhkZGf/8+QMQQCxoqiEkUPX/X7+BShiQjAc7+B9AALE8SEmRi4//++ED0Dyg2Qx///77+fPfr1//f/9+PWMGUBVQHCT15w+LkNCF3FyAAGJ5t3q1oJLSr8eP///+8//Pb5BLgMYDyV+/3q1Z8w/MAPrn/69f7AoKzxgYAAKIhcventvIiE1e/t+/vwx/QIYBbfi4dStQKa+LC9QGoIa/f1lFRAT27QMIIMa3b9/y8/PDXQ/ywI8ft1xdgQar7tsHDyWgLNDTd+7cAQggFqA/kL0LkQQ5A4j+/mVE8jEQAEMJIIBAGuCqIaKMDAxsMjJAJzEyMQFNhYlBZQECCKTh1atXyHH56927Q1u2/GJgcLh0iUFICOSEf//+gB0CBAABBgAC4UQezUonUAAAAABJRU5ErkJggg=="},355350:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAFnSURBVHjaYvzPgAD/UNlYEUAAmuTYAAAQhAEYqF/zFbe50RZ1cMmS9TLi0pJLRjZohAMTGFUN9HdnHgEE1sDw//+Tp0ClINW/f0NIKPoFJH/9//ULyGaUlQXaABBALAx/Gf4zAt31F4i+ffj3/cN/XrFfzOx//v///f//LzACM/79ZmD8/e8TA0AAMYHdDVT958vXP38nMDB0s3x94/Tj5y+YahhiAKLfQKUAAcQEdtJfoDHMF2L+vPzDmFXLelf551tGFOOhev4A/QgQQExgHwAd8IdFT/Wz6j+GhlpmXSOW/2z///8Eq/sJ18Dw/zdQA0AAMQExxJjjdy9x2/76EfLz4MXdP/i+wsyGkkA3Aw3984cBIIAYfzIwMKel/bt3jwEaLNAwgZIQxp/fDH/+MqqovL14ESCAWICeZvr9h0FSEhSgwBgAygFDEMT+wwAhgQgc4kAEVAwQQIxfUSMSTxxDAECAAQAJWke8v4u1tAAAAABJRU5ErkJggg=="},88777:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAFnSURBVHjaYvzPgAD/UNlYEUAAmuTYAAAQhAEYqF/zFbe50RZ1cMmS9TLi0pJLRjZohAMTGFUN9HdnHgEE1sDw//+Tp0ClINW/f0NIKPoFJH/9//ULyGaUlQXaABBALAx/Gf4zAt31F4i+ffj3/cN/XrFfzOx//v///f//LzACM/79ZmD8/e8TA0AAMYHdDVT958vXP38nMDB0s3x94/Tj5y+YahhiAKLfQKUAAcQEdtJfoDHMF2L+vPzDmFXLelf551tGFOOhev4A/QgQQExgHwAd8IdFT/Wz6j+GhlpmXSOW/2z///8Eq/sJ18Dw/zdQA0AAMQExxJjjdy9x2/76EfLz4MXdP/i+wsyGkkA3Aw3984cBIIAYfzIwMKel/bt3jwEaLNAwgZIQxp/fDH/+MqqovL14ESCAWICeZvr9h0FSEhSgwBgAygFDEMT+wwAhgQgc4kAEVAwQQIxfUSMSTxxDAECAAQAJWke8v4u1tAAAAABJRU5ErkJggg=="},821500:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAYAAAB24g05AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5AIUFBUyAPfcpAAAAUpJREFUKM+FkjtLA1EQhb979242IeKrCBokiqJgp0IaS8HOVjvxB1gI4o+wtBFs7CztrCwsbCy1UBCbiBiNDzD43NzdZMciJkTJxgNT3DNw7pk5g4h8iEggIlZE7O7Bmc3NbVpGNuz61qH1bWgbvXZlgCTg0IDwG3/ff6CBqJVIeQZHKRAh5bkkPdNRwJycF0Hq33gJw0XhCb9aA9fh+r7M8dkNnusQRe2tqJml7QBwAZSC5zefh5dPgrBGpj9Nti+NVirWgSK71hQgEujyoDeFMgZ5/YI3vz5kjIaZX5hqbkprze3zO4W7MpVKyPBohrHBHoyjEYkZ4fSqFMiPg2TCYf/okp29E0rFMivLs6wu5nGNQxQjYKYnBn4R47lHko6GsMpQppv8ZPbfGN1Wwq9UqYmA1viVEN9WO8cIFIBEcxGq5YBUPZlO+AYo0JZbV1yoGgAAAABJRU5ErkJggg=="},352019:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAYAAAB24g05AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5AIUFBUyAPfcpAAAAUpJREFUKM+FkjtLA1EQhb979242IeKrCBokiqJgp0IaS8HOVjvxB1gI4o+wtBFs7CztrCwsbCy1UBCbiBiNDzD43NzdZMciJkTJxgNT3DNw7pk5g4h8iEggIlZE7O7Bmc3NbVpGNuz61qH1bWgbvXZlgCTg0IDwG3/ff6CBqJVIeQZHKRAh5bkkPdNRwJycF0Hq33gJw0XhCb9aA9fh+r7M8dkNnusQRe2tqJml7QBwAZSC5zefh5dPgrBGpj9Nti+NVirWgSK71hQgEujyoDeFMgZ5/YI3vz5kjIaZX5hqbkprze3zO4W7MpVKyPBohrHBHoyjEYkZ4fSqFMiPg2TCYf/okp29E0rFMivLs6wu5nGNQxQjYKYnBn4R47lHko6GsMpQppv8ZPbfGN1Wwq9UqYmA1viVEN9WO8cIFIBEcxGq5YBUPZlO+AYo0JZbV1yoGgAAAABJRU5ErkJggg=="},621767:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAGzSURBVHjaYiyeepkBBv79+Zfnx/f379+fP38CyT9//jAyMiq5GP77wvDnJ8MfoAIGBoAAYgGqC7STApL///3/9++/pCTv////Qdz/QO4/IMna0vf/z+9/v379//37bUUTQACBNDD8Z/j87fffvyAVX79+/Q8GQDbQeKA9fM+e/Pv18/+vnwzCIkBLAAKQOAY5AIAwCEv4/4PddNUm3ji0QJyxW3rgzE0iLfqDGr2oYuu0l54AYvnz5x9Q6d+/QPQfyAQqAin9B3EOyG1A1UDj//36zfjr1y8GBoAAFI9BDgAwCMIw+P8Ho3GDO6XQ0l4MN8b2kUwYaLszqgKM/KHcDXwBxAJUD3TJ779A8h9Q5D8SAHoARP36+Rfo41+/mcA2AAQQy49ff0Cu//MPpAeI/0FdA1QNYYNVA/3wmwEYVgwMAAHE8uPHH5BqoD1//gJJLADoJKDS378Z//wFhhJAALF8A3rizz8uTmYg788fJkj4QOKREQyYxSWBhjEC/fcXZANAALF8+/anbcHlHz9+ffvx58uPX9KckkCn/gby/wLd8uvHjx96k+cD1UGiGQgAAgwA7q17ZpsMdUQAAAAASUVORK5CYII="},31287:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAGzSURBVHjaYiyeepkBBv79+Zfnx/f379+fP38CyT9//jAyMiq5GP77wvDnJ8MfoAIGBoAAYgGqC7STApL///3/9++/pCTv////Qdz/QO4/IMna0vf/z+9/v379//37bUUTQACBNDD8Z/j87fffvyAVX79+/Q8GQDbQeKA9fM+e/Pv18/+vnwzCIkBLAAKQOAY5AIAwCEv4/4PddNUm3ji0QJyxW3rgzE0iLfqDGr2oYuu0l54AYvnz5x9Q6d+/QPQfyAQqAin9B3EOyG1A1UDj//36zfjr1y8GBoAAFI9BDgAwCMIw+P8Ho3GDO6XQ0l4MN8b2kUwYaLszqgKM/KHcDXwBxAJUD3TJ779A8h9Q5D8SAHoARP36+Rfo41+/mcA2AAQQy49ff0Cu//MPpAeI/0FdA1QNYYNVA/3wmwEYVgwMAAHE8uPHH5BqoD1//gJJLADoJKDS378Z//wFhhJAALF8A3rizz8uTmYg788fJkj4QOKREQyYxSWBhjEC/fcXZANAALF8+/anbcHlHz9+ffvx58uPX9KckkCn/gby/wLd8uvHjx96k+cD1UGiGQgAAgwA7q17ZpsMdUQAAAAASUVORK5CYII="},766566:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAYAAAB24g05AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA3WAAAN1gGQb3mcAAAAB3RJTUUH4QoHCTAQC4tfhwAAARZJREFUKM+VkqtOA0EUhr+ZWWi3XS4hEBpAkCIICYKLRBIcOAQPUEHqeAEcDkOC4wVQqGLwWCyGFswGSLglTUvbmc7BYMhuFzjy5Fz//1ONUkkYGAIosiJIbdMaly/iTUDQa4MTtDiU978P0N5xsXvIx8Mjk+Mx9aVl5l5eKfcN6+dneG1+1KvnSiXxQmtkipvWGBPSJuc69BDmw08KvU7iAiUiSQ2sJd6vUtzapP/2TrN2yczpCcPlhT9qYC3h2iq23oBgiNGdbUwUpYqo05KqkAdrQWuUAul2MSbdDbV3UEu1sTr9xErYxHvhLlfi6DYiFyT3KRaPZRACG7OKKG+4uneI/IOD79FcxwK4TJaCTMyyIQTgC/dfW5JUkrXFAAAAAElFTkSuQmCC"},923491:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAE2SURBVHjaYmSYyMDwgwEE/jEw/GF4mvT0HyqQUlX9B5aEIIAAYmH4wlDtWg1SDwT//0lKSv7/D+T9/w+nYmL+//79/88fIPll0yaAAGJhYAGJP/n69O+/v0CAUAcHt2////ULqJpRVhZoA0AAsQCtAZoMVP0HiP7+RlcNBEDVYA0Mv38DNQAEEMj8vwx//wCt/AdC/zEBkgagYoAAYgF6FGj277+///wlpAEoz8AAEEAgDX/BZv/69wuoB48GRrCTAAKICajh9//fv/6CVP/++wu7BrDxQFf/YWAACCCwk0BKf0MQdg1/gBqAPv0L9ANAALEAY+33vz+S3JIgb/z5C45CBkZGRgY4UFICKQUjoJMAAoiRoZSB4RMojkHx/YPhbNVZoM3AOISQQPUK9vaQOIYAgAADAC5Wd4RRwnKfAAAAAElFTkSuQmCC"},269960:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAE2SURBVHjaYvz69SsDEvj37x+ERGbAwZ9//wACiAUoysXFBST///8P0QOm//+HU0jgxYsXAAHEAlP0H8HYt+//4SP/f//6b2b238sLrpqRkRFoCUAAsaCrXrv2/8KF///8+f/r9//Dh/8/ffI/OQWiAeJCgABigrseJPT27f/Vq////v3/1y8oWrzk/+PHcEv+/PkDEEBMEM/B3fj/40eo0t9g8suX/w8f/odZAVQMEEAsQAzj/2cQFf3PxARWCrYEaBXQLCkpqB/+/wcqBgggJrjxQPX/hYX/+/v///kLqhpIBgf/l5ODhxiQBAggFriToDoTEv5zcf3ftQuk2s7uf0wM3MdAAPQDQAAxvn37lo+PDy4KZUDcycj4/z9CBojv3r0LEEAgG969eweLSBDEBSCWAAQYACaTbJ/kuok9AAAAAElFTkSuQmCC"},144349:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAFXSURBVHjaYvzPgAD/UNlYEUAAkuTgCAAIBgJggq5VoAs1qM0vdzmMz362vezjokxPGimkEQ5WoAQEKuK71zwCCKyB4c//J8+BShn+/vv/+w/D399AEox+//8FJH/9/wUU+cUoKw20ASCAWBhEDf/LyDOw84BU//kDtgGI/oARmAHRDJQSFwVqAAggxo8fP/Ly8oKc9P8/AxjiAoyMjA8ePAAIIJZ///5BVIM0MOBWDpRlZPzz5w9AALH8gyvCbz7QBrCJAAHEyKDYX15r/+j1199//v35++/Xn7+///77DST/wMl/f4Dk378K4jx7O2cABBALw7NP77/+ev3xB0gOpOHfr99AdX9/gTVASKCGP//+8XCyMjC8AwggFoZfIHWSwpwQk4CW/AYjsKlA8u+ff////v33998/YPgBnQQQQIzAaGNg+AVGf5AYf5BE/oCjGEIyAQQYAGvKZ4C6+xXRAAAAAElFTkSuQmCC"},840717:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAFXSURBVHjaYvzPgAD/UNlYEUAAkuTgCAAIBgJggq5VoAs1qM0vdzmMz362vezjokxPGimkEQ5WoAQEKuK71zwCCKyB4c//J8+BShn+/vv/+w/D399AEox+//8FJH/9/wUU+cUoKw20ASCAWBhEDf/LyDOw84BU//kDtgGI/oARmAHRDJQSFwVqAAggxo8fP/Ly8oKc9P8/AxjiAoyMjA8ePAAIIJZ///5BVIM0MOBWDpRlZPzz5w9AALH8gyvCbz7QBrCJAAHEyKDYX15r/+j1199//v35++/Xn7+///77DST/wMl/f4Dk378K4jx7O2cABBALw7NP77/+ev3xB0gOpOHfr99AdX9/gTVASKCGP//+8XCyMjC8AwggFoZfIHWSwpwQk4CW/AYjsKlA8u+ff////v33998/YPgBnQQQQIzAaGNg+AVGf5AYf5BE/oCjGEIyAQQYAGvKZ4C6+xXRAAAAAElFTkSuQmCC"},746374:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAG8SURBVHjaYmSIZGD4wgAF/xgYWBj+boQysSKAAGJh+MRQnVoNUgEE///9ZfzLoPiX4e8fxj9/mP/8Yfr9+/+fP/9h5JdNmwACiIWBCaj4/5P3T7mY/xoJ/9UR/v0n8O+f17/Zlv/+//73/1+////+9f/XL6BqRllZoA0AAcQCNvv/339/C03+8v/8w7bk7+/vv/+7/P4S95ur+xdY9W+IBobfv4EaAAKICeiuv////vnz58PX3xxb/7BlN3/K7Ph1WoSR/fcfhl//f4KN/wW1BGg6QAAxMfxi+PP37++/v1kYfn//+usnE+cHCbWfTKz/mH7+ZgUpQmj48wdoA0AAsQA1/P0HZP458/qXqvNfjdnVItxy3wNvApUIvwPb8BvqJEawkwACiIXhDwPQ+F9/f+2890dY6/cnrycCb++z3frNfOwX01eEagZgKAHdzcAAEEAgG4DGA/W8+fO79+Rvdt5f2+b++sP+m+kdWDVEwx+gBmBY/wX6ASCAWBi+Mfz+80eSX/L3n99AzwBDm0H2NwtQHS/QapDBIPT3LwQBnQQQQIwMxgwM7xgYfjAArQKRTAyvP2OPYwgACDAAjtdGduN8tIgAAAAASUVORK5CYII="},64171:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAG8SURBVHjaYmSIZGD4wgAF/xgYWBj+boQysSKAAGJh+MRQnVoNUgEE///9ZfzLoPiX4e8fxj9/mP/8Yfr9+/+fP/9h5JdNmwACiIWBCaj4/5P3T7mY/xoJ/9UR/v0n8O+f17/Zlv/+//73/1+////+9f/XL6BqRllZoA0AAcQCNvv/339/C03+8v/8w7bk7+/vv/+7/P4S95ur+xdY9W+IBobfv4EaAAKICeiuv////vnz58PX3xxb/7BlN3/K7Ph1WoSR/fcfhl//f4KN/wW1BGg6QAAxMfxi+PP37++/v1kYfn//+usnE+cHCbWfTKz/mH7+ZgUpQmj48wdoA0AAsQA1/P0HZP458/qXqvNfjdnVItxy3wNvApUIvwPb8BvqJEawkwACiIXhDwPQ+F9/f+2890dY6/cnrycCb++z3frNfOwX01eEagZgKAHdzcAAEEAgG4DGA/W8+fO79+Rvdt5f2+b++sP+m+kdWDVEwx+gBmBY/wX6ASCAWBi+Mfz+80eSX/L3n99AzwBDm0H2NwtQHS/QapDBIPT3LwQBnQQQQIwMxgwM7xgYfjAArQKRTAyvP2OPYwgACDAAjtdGduN8tIgAAAAASUVORK5CYII="},835070:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAHESURBVHjaYvz79TsDwz8GOPj3D8T5B6L/QTj/4OAPkAsQQCxAWSYuLiD5//9/iBYmEP2f8f9/ZrAgMvjy6g1AALFAjP8+fzHDpy/////7/+cvUISjMPc/BmBkZPzz5w9AAAAxAM7/BEJk5G1eFUfW2gvv5f97fQCnpv3V15Se5fj+A/38/v39/vz9//z8/vz9/hMQBHds1gIAMQDO/wTEyvBFQhNF+Pj/amsADw7/XV39dnrt5PHZ8AgA/Pz7/P77/f/8+/76/P4cFwYA/egCiOnvHwagQ/79/fd/xpT/Hz/9X76Uien/519Mf/79//2XAejAP7////4DYvwFBw1AAAH9wAZ0+uOI7C1bnj2d/p3hp0dppO3LA5y//4IM+f2P8fd/pj//gQHE+BMUCmwAAcS4n4FBqbyLlZ/ru71L80bWcp8/XHu3fjx4+h/INb/BCOym33/YFWT2710KEEAsVgwMzO/v/Dt7j+HdvQmWjow7z7BtXi/6+/f/X7/+A0kI489voJsYeT4IMjAABBAL0GFMQDdKSv5/8oxz+SKg3H9ZWcbfQBV/GCAkEP39C0FAxQABxPgVHBFwxIDKRZMCAoAAAwBcKj0T0E2bvQAAAABJRU5ErkJggg=="},432147:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAHESURBVHjaYvz79TsDwz8GOPj3D8T5B6L/QTj/4OAPkAsQQCxAWSYuLiD5//9/iBYmEP2f8f9/ZrAgMvjy6g1AALFAjP8+fzHDpy/////7/+cvUISjMPc/BmBkZPzz5w9AAAAxAM7/BEJk5G1eFUfW2gvv5f97fQCnpv3V15Se5fj+A/38/v39/vz9//z8/vz9/hMQBHds1gIAMQDO/wTEyvBFQhNF+Pj/amsADw7/XV39dnrt5PHZ8AgA/Pz7/P77/f/8+/76/P4cFwYA/egCiOnvHwagQ/79/fd/xpT/Hz/9X76Uien/519Mf/79//2XAejAP7////4DYvwFBw1AAAH9wAZ0+uOI7C1bnj2d/p3hp0dppO3LA5y//4IM+f2P8fd/pj//gQHE+BMUCmwAAcS4n4FBqbyLlZ/ru71L80bWcp8/XHu3fjx4+h/INb/BCOym33/YFWT2710KEEAsVgwMzO/v/Dt7j+HdvQmWjow7z7BtXi/6+/f/X7/+A0kI489voJsYeT4IMjAABBAL0GFMQDdKSv5/8oxz+SKg3H9ZWcbfQBV/GCAkEP39C0FAxQABxPgVHBFwxIDKRZMCAoAAAwBcKj0T0E2bvQAAAABJRU5ErkJggg=="},974921:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALBAMAAACEzBAKAAAABGdBTUEAALGOfPtRkwAAACBjSFJNAACHDwAAjA8AAP1SAACBQAAAfXkAAOmLAAA85QAAGcxzPIV3AAAKL2lDQ1BJQ0MgUHJvZmlsZQAASMedlndUVNcWh8+9d3qhzTACUobeu8AA0nuTXkVhmBlgKAMOMzSxIaICEUVEmiJIUMSA0VAkVkSxEBRUsAckCCgxGEVULG9G1ouurLz38vL746xv7bP3ufvsvc9aFwCSpy+XlwZLAZDKE/CDPJzpEZFRdOwAgAEeYIApAExWRrpfsHsIEMnLzYWeIXICXwQB8HpYvAJw09AzgE4H/5+kWel8geiYABGbszkZLBEXiDglS5Auts+KmBqXLGYYJWa+KEERy4k5YZENPvsssqOY2ak8tojFOaezU9li7hXxtkwhR8SIr4gLM7mcLBHfErFGijCVK+I34thUDjMDABRJbBdwWIkiNhExiR8S5CLi5QDgSAlfcdxXLOBkC8SXcklLz+FzExIFdB2WLt3U2ppB9+RkpXAEAsMAJiuZyWfTXdJS05m8HAAW7/xZMuLa0kVFtjS1trQ0NDMy/apQ/3Xzb0rc20V6Gfi5ZxCt/4vtr/zSGgBgzIlqs/OLLa4KgM4tAMjd+2LTOACApKhvHde/ug9NPC+JAkG6jbFxVlaWEZfDMhIX9A/9T4e/oa++ZyQ+7o/y0F058UxhioAurhsrLSVNyKdnpDNZHLrhn4f4Hwf+dR4GQZx4Dp/DE0WEiaaMy0sQtZvH5gq4aTw6l/efmvgPw/6kxbkWidL4EVBjjIDUdSpAfu0HKAoRINH7xV3/o2+++DAgfnnhKpOLc//vN/1nwaXiJYOb8DnOJSiEzhLyMxf3xM8SoAEBSAIqkAfKQB3oAENgBqyALXAEbsAb+IMQEAlWAxZIBKmAD7JAHtgECkEx2An2gGpQBxpBM2gFx0EnOAXOg0vgGrgBboP7YBRMgGdgFrwGCxAEYSEyRIHkIRVIE9KHzCAGZA+5Qb5QEBQJxUIJEA8SQnnQZqgYKoOqoXqoGfoeOgmdh65Ag9BdaAyahn6H3sEITIKpsBKsBRvDDNgJ9oFD4FVwArwGzoUL4B1wJdwAH4U74PPwNfg2PAo/g+cQgBARGqKKGCIMxAXxR6KQeISPrEeKkAqkAWlFupE+5CYyiswgb1EYFAVFRxmibFGeqFAUC7UGtR5VgqpGHUZ1oHpRN1FjqFnURzQZrYjWR9ugvdAR6AR0FroQXYFuQrejL6JvoyfQrzEYDA2jjbHCeGIiMUmYtZgSzD5MG+YcZhAzjpnDYrHyWH2sHdYfy8QKsIXYKuxR7FnsEHYC+wZHxKngzHDuuCgcD5ePq8AdwZ3BDeEmcQt4Kbwm3gbvj2fjc/Cl+EZ8N/46fgK/QJAmaBPsCCGEJMImQiWhlXCR8IDwkkgkqhGtiYFELnEjsZJ4jHiZOEZ8S5Ih6ZFcSNEkIWkH6RDpHOku6SWZTNYiO5KjyALyDnIz+QL5EfmNBEXCSMJLgi2xQaJGokNiSOK5JF5SU9JJcrVkrmSF5AnJ65IzUngpLSkXKabUeqkaqZNSI1Jz0hRpU2l/6VTpEukj0lekp2SwMloybjJsmQKZgzIXZMYpCEWd4kJhUTZTGikXKRNUDFWb6kVNohZTv6MOUGdlZWSXyYbJZsvWyJ6WHaUhNC2aFy2FVko7ThumvVuitMRpCWfJ9iWtS4aWzMstlXOU48gVybXJ3ZZ7J0+Xd5NPlt8l3yn/UAGloKcQqJClsF/hosLMUupS26WspUVLjy+9pwgr6ikGKa5VPKjYrzinpKzkoZSuVKV0QWlGmabsqJykXK58RnlahaJir8JVKVc5q/KULkt3oqfQK+m99FlVRVVPVaFqveqA6oKatlqoWr5am9pDdYI6Qz1evVy9R31WQ0XDTyNPo0XjniZek6GZqLlXs09zXktbK1xrq1an1pS2nLaXdq52i/YDHbKOg84anQadW7oYXYZusu4+3Rt6sJ6FXqJejd51fVjfUp+rv09/0ABtYG3AM2gwGDEkGToZZhq2GI4Z0Yx8jfKNOo2eG2sYRxnvMu4z/mhiYZJi0mhy31TG1Ns037Tb9HczPTOWWY3ZLXOyubv5BvMu8xfL9Jdxlu1fdseCYuFnsdWix+KDpZUl37LVctpKwyrWqtZqhEFlBDBKGJet0dbO1husT1m/tbG0Edgct/nN1tA22faI7dRy7eWc5Y3Lx+3U7Jh29Xaj9nT7WPsD9qMOqg5MhwaHx47qjmzHJsdJJ12nJKejTs+dTZz5zu3O8y42Lutczrkirh6uRa4DbjJuoW7Vbo/c1dwT3FvcZz0sPNZ6nPNEe/p47vIc8VLyYnk1e816W3mv8+71IfkE+1T7PPbV8+X7dvvBft5+u/0erNBcwVvR6Q/8vfx3+z8M0A5YE/BjICYwILAm8EmQaVBeUF8wJTgm+Ejw6xDnkNKQ+6E6ocLQnjDJsOiw5rD5cNfwsvDRCOOIdRHXIhUiuZFdUdiosKimqLmVbiv3rJyItogujB5epb0qe9WV1QqrU1afjpGMYcaciEXHhsceiX3P9Gc2MOfivOJq42ZZLqy9rGdsR3Y5e5pjxynjTMbbxZfFTyXYJexOmE50SKxInOG6cKu5L5I8k+qS5pP9kw8lf0oJT2lLxaXGpp7kyfCSeb1pymnZaYPp+umF6aNrbNbsWTPL9+E3ZUAZqzK6BFTRz1S/UEe4RTiWaZ9Zk/kmKyzrRLZ0Ni+7P0cvZ3vOZK577rdrUWtZa3vyVPM25Y2tc1pXvx5aH7e+Z4P6hoINExs9Nh7eRNiUvOmnfJP8svxXm8M3dxcoFWwsGN/isaWlUKKQXziy1XZr3TbUNu62ge3m26u2fyxiF10tNimuKH5fwiq5+o3pN5XffNoRv2Og1LJ0/07MTt7O4V0Ouw6XSZfllo3v9tvdUU4vLyp/tSdmz5WKZRV1ewl7hXtHK30ru6o0qnZWva9OrL5d41zTVqtYu712fh9739B+x/2tdUp1xXXvDnAP3Kn3qO9o0GqoOIg5mHnwSWNYY9+3jG+bmxSaips+HOIdGj0cdLi32aq5+YjikdIWuEXYMn00+uiN71y/62o1bK1vo7UVHwPHhMeefh/7/fBxn+M9JxgnWn/Q/KG2ndJe1AF15HTMdiZ2jnZFdg2e9D7Z023b3f6j0Y+HTqmeqjkte7r0DOFMwZlPZ3PPzp1LPzdzPuH8eE9Mz/0LERdu9Qb2Dlz0uXj5kvulC31OfWcv210+dcXmysmrjKud1yyvdfRb9Lf/ZPFT+4DlQMd1q+tdN6xvdA8uHzwz5DB0/qbrzUu3vG5du73i9uBw6PCdkeiR0TvsO1N3U+6+uJd5b+H+xgfoB0UPpR5WPFJ81PCz7s9to5ajp8dcx/ofBz++P84af/ZLxi/vJwqekJ9UTKpMNk+ZTZ2adp++8XTl04ln6c8WZgp/lf619rnO8x9+c/ytfzZiduIF/8Wn30teyr889GrZq565gLlHr1NfL8wXvZF/c/gt423fu/B3kwtZ77HvKz/ofuj+6PPxwafUT5/+BQOY8/xvJtwPAAAAElBMVEUAaqcBaqb9zAH+zACYpUOZpUOgYxiNAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAIUlEQVQY02NgYBAyYIAAnAwXl2BTFyBgMIYChAhB7QwMAImEB+mWQpXnAAAAAElFTkSuQmCC"},118268:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAHzSURBVHjaYkxOP8IAB//+Mfz7w8Dwi4HhP5CcJb/n/7evb16/APL/gRFQDiAAw3JuAgAIBEDQ/iswEERjGzBQLEru97ll0g0+3HvqMn1SpqlqGsZMsZsIe0SICA5gt5a/AGIEarCPtFh+6N/ffwxA9OvP/7//QYwff/6fZahmePeB4dNHhi+fGb59Y4zyvHHmCEAAAW3YDzQYaJJ93a+vX79aVf58//69fvEPlpIfnz59+vDhw7t37968efP3b/SXL59OnjwIEEAsDP+YgY53b2b89++/awvLn98MDi2cVxl+/vl6mituCtBghi9f/v/48e/XL86krj9XzwEEEENy8g6gu22rfn78+NGs5Ofr16+ZC58+fvyYwX8rxOxXr169fPny+fPn1//93bJlBUAAsQADZMEBxj9/GBxb2P/9+S/R8u3vzxuyaX8ZHv3j8/YGms3w8ycQARmi2eE37t4ACCDGR4/uSkrKAS35B3TT////wADOgLOBIaXIyjBlwxKAAGKRXjCB0SOEaeu+/y9fMnz4AHQxCP348R/o+l+//sMZQBNLEvif3AcIIMZbty7Ly6t9ZmXl+fXj/38GoHH/UcGfP79//BBiYHjy9+8/oUkNAAHEwt1V/vI/KBY/QSISFqM/GBg+MzB8A6PfYC5EFiDAABqgW776MP0rAAAAAElFTkSuQmCC"},457003:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAFsSURBVHjaYvzPgAD/UNlYEUAAmuTYAAAQhAEYqF/zFbe50RZ1cMmS9TLi0pJLRjZohAMTGFUN9HdnHgEE1sDw//+Tp0ClINW/f4NI9d////3+f+b3/1+////+9f/XL6A4o6ws0AaAAGIBm/0fRTVQ2v3Pf97f/4/9Aqv+DdHA8Ps3UANAALEAMSNQNdDGP3+ALvnf8vv/t9//9X/////7f+uv/4K//iciNABNBwggsJP+/IW4kuH3n//1v/8v+wVSDURmv/57//7/CeokoKFA0wECiAnkpL9/wH4CO+DNr/+VQA1A9PN/w6//j36CVIMRxEkAAQR20m+QpSBXgU0CuSTj9/93v/8v//V/xW+48UBD/zAwAAQQSAMzOMiABoBUswCd8ev/M7A669//OX7///Lr/x+gBlCoAJ0DEEAgDUy//zBISoKNAfoepJNRFmQkyJecfxj4/kDCEIiAigECiPErakTiiWMIAAgwAB4ZUlqMMhQQAAAAAElFTkSuQmCC"},678513:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAFsSURBVHjaYvzPgAD/UNlYEUAAmuTYAAAQhAEYqF/zFbe50RZ1cMmS9TLi0pJLRjZohAMTGFUN9HdnHgEE1sDw//+Tp0ClINW/f4NI9d////3+f+b3/1+////+9f/XL6A4o6ws0AaAAGIBm/0fRTVQ2v3Pf97f/4/9Aqv+DdHA8Ps3UANAALEAMSNQNdDGP3+ALvnf8vv/t9//9X/////7f+uv/4K//iciNABNBwggsJP+/IW4kuH3n//1v/8v+wVSDURmv/57//7/CeokoKFA0wECiAnkpL9/wH4CO+DNr/+VQA1A9PN/w6//j36CVIMRxEkAAQR20m+QpSBXgU0CuSTj9/93v/8v//V/xW+48UBD/zAwAAQQSAMzOMiABoBUswCd8ev/M7A669//OX7///Lr/x+gBlCoAJ0DEEAgDUy//zBISoKNAfoepJNRFmQkyJecfxj4/kDCEIiAigECiPErakTiiWMIAAgwAB4ZUlqMMhQQAAAAAElFTkSuQmCC"},123257:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAFqSURBVHjaYrzOwPAPjJgYQEDAleHVbhADIvgHLPgHiQ0QQCxAlkR9NW8sw+cV/1gV/7Gb/hV4+vfzhj8Mv/78//Pn/+/f/8AkhH1t0yaAAAJp4I37zyz2lDfu79uqv/++/WYz+cuq/vvLxt8gdb+A5K9/v34B2SyyskBLAAII5JAva/7/+/z367a/f3/8ZuT9+//Pr78vQUrB6n4CSSj6/RuoASCAWEDO/fD3ddEfhv9/OE3/sKj8/n7k9/fDQNUIs/+DVf8HawAIIJCT/v38C3Hr95N/GDh/f94AVvT7N8RUBpjxQAVADQABBNLw/y/Ifwy/f/399ufTOpDBEPf8g5sN0QBEDAwAAQTWABEChgOSA9BVA00E2wAQQCANQBbEif/AzoCqgLkbbBYwWP/+//sXqBYggFhAkfL7D7OkJFCOCSj65zfUeFjwg8z++/ffX5AGoGKAAGI8jhSRyIw/SJH9D4aAYQoQYAA6rnMw1jU2vQAAAABJRU5ErkJggg=="}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/62081.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/62081.affd309bf2aa3f38d3a0.chunk.js deleted file mode 100644 index 0baf216e5a..0000000000 --- a/geonode_mapstore_client/static/mapstore/dist/js/62081.affd309bf2aa3f38d3a0.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[62081],{190683:(e,t,n)=>{var r={"./de-DE.png":689834,"./de.png":294122,"./en-US.png":16885,"./en.png":11533,"./es-ES.png":355350,"./es.png":88777,"./fi-FI.png":821500,"./fi.png":352019,"./fr-FR.png":621767,"./fr.png":31287,"./hr-HR.png":766566,"./it-IT.png":923491,"./jp.png":269960,"./nl-NL.png":144349,"./nl.png":840717,"./pt-PT.png":746374,"./pt.png":64171,"./sk-SK.png":835070,"./sk.png":432147,"./sv-SE.png":974921,"./us.png":118268,"./vi-VN.png":457003,"./vi.png":678513,"./zh-ZH.png":123257};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=190683},487427:(e,t,n)=>{"use strict";n.d(t,{kZ:()=>f,bR:()=>d});var r=n(701469),o=n.n(r),i=n(623560),A=n.n(i),l=n(414293),a=n.n(l),s=n(867076);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[];o()(e)&&e.forEach((function(e){A()(e)&&e()})),a({}),i(),n({})}}}),(0,s.lifecycle)({UNSAFE_componentWillMount:function(){var e=this.props,t=e.element,n=void 0===t?{}:t,r=e.onUpdateOriginalSettings,o=void 0===r?function(){}:r,i=e.onUpdateInitialSettings,A=void 0===i?function(){}:i;o({}),A(u({},n))},componentWillReceiveProps:function(e){var t=this.props,n=t.settings,r=void 0===n?{}:n,o=t.onRetrieveLayerData,i=void 0===o?function(){}:o;!r.expanded&&e.settings&&e.settings.expanded&&a()(e.element.description)&&"wms"===e.element.type&&i(e.element)},componentWillUpdate:function(e){var t=this.props,n=t.initialActiveTab,r=void 0===n?"general":n,o=t.settings,i=void 0===o?{}:o,A=t.onUpdateOriginalSettings,l=void 0===A?function(){}:A,a=t.onUpdateInitialSettings,s=void 0===a?function(){}:a,c=t.onSetTab,p=void 0===c?function(){}:c;!i.expanded&&e.settings&&e.settings.expanded&&(l({}),s(u({},e.element)),p(r))}})),d=(0,s.compose)(m,f)},518842:(e,t,n)=>{"use strict";n.d(t,{Z:()=>L});var r=n(974691),o=n.n(r),i=n(414293),A=n.n(i),l=n(281763),a=n.n(l),s=n(675263),c=n.n(s),p=n(124852),u=n.n(p),g=n(480681),m=n(212610),f=n(794192),d=n(805346),v=n(202576),y=n(490079),h=n(710615),E=n(743129),b=n(501157);function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e){for(var t=1;t=12?n:""))})})),I(S(t),"onFormatOptionsFetch",(function(e){t.setState({formatLoading:!0}),(0,b.T6)(e).then((function(e){t.props.onChange("imageFormats",e),t.setState({formatLoading:!1})}))})),I(S(t),"getValidationState",(function(e){return t.state.legendOptions&&t.state.legendOptions[e]?parseInt(t.state.legendOptions[e],10)<12&&"error":null})),I(S(t),"updateState",(function(e){e.settings&&e.settings.options&&t.setState(P(P({},t.state),{},{opacity:A()(e.settings.options.opacity)?t.state.opacity:Math.round(100*e.settings.options.opacity),legendOptions:P(P({},t.state.legendOptions),{},{legendHeight:e.element.legendOptions&&!A()(e.element.legendOptions.legendHeight)?e.element.legendOptions.legendHeight:t.state.legendOptions.legendHeight,legendWidth:e.element.legendOptions&&!A()(e.element.legendOptions.legendWidth)?e.element.legendOptions.legendWidth:t.state.legendOptions.legendWidth}),containerWidth:t.containerRef.current&&t.containerRef.current.clientWidth}))})),I(S(t),"setOverFlow",(function(){return t.state.legendOptions.legendWidth>t.state.containerWidth})),I(S(t),"useLegendOptions",(function(){return"error"!==t.getValidationState("legendWidth")&&"error"!==t.getValidationState("legendHeight")&&a()(t.state.legendOptions.legendHeight)&&a()(t.state.legendOptions.legendWidth)})),t.containerRef=u().createRef(),t}return t=s,(n=[{key:"componentDidMount",value:function(){this.updateState(this.props)}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.props!==e&&this.updateState(e)}},{key:"render",value:function(){var e,t,n=this;return u().createElement(g.Grid,{fluid:!0,className:"fluid-container ms-display-form "+(!this.props.containerWidth&&"adjust-display")},"wms"===this.props.element.type&&u().createElement(g.Row,null,u().createElement(g.Col,{xs:12},u().createElement(g.FormGroup,null,u().createElement(g.ControlLabel,null,u().createElement(d.Z,{msgId:"layerProperties.format.title"})),u().createElement("div",{className:"ms-format-container"},u().createElement(E.ZP,{className:"format-select",key:"format-dropdown",clearable:!1,noResultsText:u().createElement(d.Z,{msgId:this.state.formatLoading?"layerProperties.format.loading":"layerProperties.format.noOption"}),isLoading:!!this.state.formatLoading,options:this.state.formatLoading?[]:(null===(e=this.props.formats)||void 0===e?void 0:e.map((function(e){return{value:e,label:e}})))||(null===(t=this.props.element)||void 0===t?void 0:t.imageFormats)||b.QQ,value:this.props.element&&this.props.element.format||"image/png",onChange:function(e){var t=e.value;n.props.onChange("format",t)}}),u().createElement(D,{tooltipId:"layerProperties.format.refresh",className:"square-button-md no-border format-refresh",onClick:function(){var e;n.onFormatOptionsFetch(null===(e=n.props.element)||void 0===e?void 0:e.url)},key:"format-refresh"},u().createElement(g.Glyphicon,{glyph:"refresh"}))))),u().createElement(g.Col,{xs:12},u().createElement(g.FormGroup,null,u().createElement(g.ControlLabel,null,u().createElement(d.Z,{msgId:"WMS Layer tile size"})),u().createElement(E.ZP,{key:"wsm-layersize-dropdown",clearable:!1,options:[{value:256,label:256},{value:512,label:512}],value:this.props.element&&this.props.element.tileSize||256,onChange:function(e){var t=e.value;n.props.onChange("tileSize",t)}})))),"3dtiles"!==this.props.element.type&&u().createElement(g.Row,null,u().createElement(g.Col,{xs:12},u().createElement(g.FormGroup,null,u().createElement(g.ControlLabel,null,this.props.opacityText," %"),u().createElement(f.Z,{type:"number",min:0,max:100,name:"opacity",value:this.state.opacity,onChange:function(e){return n.onChange("opacity",e)}})))),u().createElement(g.Row,null,u().createElement(g.Col,{xs:12},u().createElement(g.FormGroup,null,u().createElement(h.Z,{title:u().createElement(g.ControlLabel,null,u().createElement(d.Z,{msgId:"layerProperties.visibilityLimits.title"})),layer:this.props.element,onChange:this.props.onChange,projection:this.props.projection,resolutions:this.props.resolutions,zoom:this.props.zoom})))),"3dtiles"===this.props.element.type&&u().createElement(g.Row,null,u().createElement(g.Col,{xs:12},u().createElement(g.FormGroup,null,u().createElement(g.ControlLabel,null,u().createElement(d.Z,{msgId:"layerProperties.heightOffset"})),u().createElement(f.Z,{type:"number",name:"heightOffset",value:this.props.element.heightOffset||0,onChange:function(e){return n.props.onChange("heightOffset",parseFloat(e))}})))),"wms"===this.props.element.type&&u().createElement(g.Row,null,u().createElement(g.Col,{xs:12},u().createElement("hr",null),u().createElement(g.FormGroup,null,u().createElement(g.Checkbox,{key:"transparent",checked:this.props.element&&(void 0===this.props.element.transparent||this.props.element.transparent),onChange:function(e){n.props.onChange("transparent",e.target.checked)}},u().createElement(d.Z,{msgId:"layerProperties.transparent"})),u().createElement(g.Checkbox,{value:"tiled",key:"tiled",disabled:!!this.props.element.singleTile,onChange:function(e){return n.props.onChange("tiled",e.target.checked)},checked:!this.props.element||void 0===this.props.element.tiled||this.props.element.tiled},u().createElement(d.Z,{msgId:"layerProperties.cached"})),u().createElement(g.Checkbox,{key:"singleTile",value:"singleTile",checked:this.props.element&&void 0!==this.props.element.singleTile&&this.props.element.singleTile,onChange:function(e){return n.props.onChange("singleTile",e.target.checked)}},u().createElement(d.Z,{msgId:"layerProperties.singleTile"})),this.props.isLocalizedLayerStylesEnabled&&u().createElement(g.Checkbox,{key:"localizedLayerStyles",value:"localizedLayerStyles","data-qa":"display-lacalized-layer-styles-option",checked:this.props.element&&void 0!==this.props.element.localizedLayerStyles&&this.props.element.localizedLayerStyles,onChange:function(e){return n.props.onChange("localizedLayerStyles",e.target.checked)}},u().createElement(d.Z,{msgId:"layerProperties.enableLocalizedLayerStyles.label"})," ",u().createElement(v.Z,{text:u().createElement(d.Z,{msgId:"layerProperties.enableLocalizedLayerStyles.tooltip"})})),!this.props.isCesiumActive&&u().createElement(g.Checkbox,{"data-qa":"display-forceProxy-option",value:"forceProxy",key:"forceProxy",onChange:function(e){return n.props.onChange("forceProxy",e.target.checked)},checked:this.props.element.forceProxy},u().createElement(d.Z,{msgId:"layerProperties.forceProxy"})))),u().createElement("div",{className:"legend-options"},u().createElement(g.Col,{xs:12,className:"legend-label"},u().createElement("label",{key:"legend-options-title",className:"control-label"},u().createElement(d.Z,{msgId:"layerProperties.legendOptions.title"}))),u().createElement(g.Col,{xs:12,sm:6,className:"first-selectize"},u().createElement(g.FormGroup,{validationState:this.getValidationState("legendWidth")},u().createElement(g.ControlLabel,null,u().createElement(d.Z,{msgId:"layerProperties.legendOptions.legendWidth"})),u().createElement(f.Z,{value:this.state.legendOptions.legendWidth,name:"legendWidth",type:"number",min:12,max:1e3,onChange:function(e){return n.onChange("legendWidth",e)},onKeyPress:function(e){return"-"===e.key&&e.preventDefault()},onBlur:this.onBlur}))),u().createElement(g.Col,{xs:12,sm:6,className:"second-selectize"},u().createElement(g.FormGroup,{validationState:this.getValidationState("legendHeight")},u().createElement(g.ControlLabel,null,u().createElement(d.Z,{msgId:"layerProperties.legendOptions.legendHeight"})),u().createElement(f.Z,{value:this.state.legendOptions.legendHeight,name:"legendHeight",type:"number",min:12,max:1e3,onChange:function(e){return n.onChange("legendHeight",e)},onKeyPress:function(e){return"-"===e.key&&e.preventDefault()},onBlur:this.onBlur}))),u().createElement(g.Col,{xs:12,className:"legend-preview"},u().createElement(g.ControlLabel,null,u().createElement(d.Z,{msgId:"layerProperties.legendOptions.legendPreview"})),u().createElement("div",{style:this.setOverFlow()&&this.state.containerStyle||{},ref:this.containerRef},u().createElement(y.Z,{style:this.setOverFlow()&&{}||void 0,layer:this.props.element,legendHeight:this.useLegendOptions()&&this.state.legendOptions.legendHeight||void 0,legendWidth:this.useLegendOptions()&&this.state.legendOptions.legendWidth||void 0,language:this.props.isLocalizedLayerStylesEnabled?this.props.currentLocaleLanguage:void 0}))))))}}])&&C(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(u().Component);I(L,"propTypes",{opacityText:c().node,element:c().object,formats:c().array,settings:c().object,onChange:c().func,containerWidth:c().number,currentLocaleLanguage:c().string,isLocalizedLayerStylesEnabled:c().bool,isCesiumActive:c().bool,projection:c().string,resolutions:c().array,zoom:c().number}),I(L,"defaultProps",{onChange:function(){},opacityText:u().createElement(d.Z,{msgId:"opacity"})})},363209:(e,t,n)=>{"use strict";n.d(t,{Z:()=>N});var r=n(313311),o=n.n(r),i=n(264721),A=n.n(i),l=n(513218),a=n.n(l),s=n(747037),c=n.n(s),p=n(545578),u=n.n(p),g=n(727418),m=n.n(g),f=n(675263),d=n.n(f),v=n(124852),y=n.n(v),h=n(480681),E=n(743129),b=n(472986),w=n.n(b),B=n(86638),P=n(359112),C=n(805346),Q=n(867076),S=n(950966);const U=(0,Q.compose)((0,Q.withState)("enableOverlayTrigger","setEnableOverlayTrigger",!0),(0,Q.withState)("overlayTriggerDelayID","setOverlayTriggerDelayID"),(0,Q.withState)("layerName","setLayerName",""),(0,Q.withState)("editingLayerName","setEditingLayerName",!1),(0,Q.withState)("waitingForLayerLoading","setWaitingForLayerLoading",!1),(0,Q.withState)("waitingForLayerLoad","setWaitingForLayerLoad",!1),(0,Q.withState)("layerError","setLayerError"),(0,Q.withHandlers)({setEditingLayerName:function(e){var t=e.editingLayerName,n=void 0!==t&&t,r=e.overlayTriggerDelayID,o=e.setEditingLayerName,i=void 0===o?function(){}:o,A=e.setOverlayTriggerDelayID,l=void 0===A?function(){}:A,a=e.setEnableOverlayTrigger,s=void 0===a?function(){}:a;return function(e){n!==e&&(r&&clearTimeout(r),s(!1),l(setTimeout((function(){s(!0)}),250))),i(e)}}}),(0,Q.lifecycle)({componentDidMount:function(){var e;this.props.setLayerName(null===(e=this.props.element)||void 0===e?void 0:e.name)},componentDidUpdate:function(){var e=this.props,t=e.element,n=void 0===t?{}:t,r=e.waitingForLayerLoading,o=e.waitingForLayerLoad,i=e.setWaitingForLayerLoad,A=void 0===i?function(){}:i,l=e.setWaitingForLayerLoading,a=void 0===l?function(){}:l,s=e.setEditingLayerName,c=void 0===s?function(){}:s,p=e.setLayerError,u=void 0===p?function(){}:p;r&&n.loading?(a(!1),A(!0)):o&&!n.loading&&(A(!1),u(n.loadingError),c(!!n.loadingError))}}))((function(e){var t,n=e.enableOverlayTrigger,r=e.element,o=void 0===r?{}:r,i=e.enableLayerNameEditFeedback,A=void 0!==i&&i,l=e.layerName,a=void 0===l?"":l,s=e.editingLayerName,c=void 0!==s&&s,p=e.layerError,u=e.waitingForLayerLoading,g=void 0!==u&&u,m=e.waitingForLayerLoad,f=void 0!==m&&m,d=e.setLayerName,v=void 0===d?function(){}:d,E=e.setWaitingForLayerLoading,b=void 0===E?function(){}:E,B=e.setEditingLayerName,P=void 0===B?function(){}:B,Q=e.onUpdateEntry,U=void 0===Q?function(){}:Q,I=y().createElement(h.InputGroup.Addon,{className:"btn",onClick:function(){c?a!==o.name?(U("name",{target:{value:a}}),A?b(!0):P(!1)):P(!1):P(!0)}},g||f?y().createElement(w(),{noFadeIn:!0,style:{width:"18px",height:"18px"},spinnerName:"circle"}):y().createElement(h.Glyphicon,{glyph:c?"ok":"pencil"}));return y().createElement(h.FormGroup,{validationState:!p||f||g?null:"error"},y().createElement(h.ControlLabel,null,y().createElement(C.Z,{msgId:"layerProperties.name"})),y().createElement(h.InputGroup,null,y().createElement(h.FormControl,{value:a,key:"name",type:"text",disabled:!c,onChange:function(e){return v(e.target.value)}}),n?(t=I,y().createElement(S.Z,{placement:"top",overlay:y().createElement(h.Tooltip,{id:"tooltip-layer-name-edit"},y().createElement(C.Z,{msgId:"layerProperties.tooltip.".concat(c?"confirm":"edit","LayerName")}))},t)):I))}));function I(e){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I(e)}function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function D(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n{"use strict";n.d(t,{Z:()=>L});var r=n(124852),o=n.n(r),i=n(675263),A=n.n(i),l=n(480681),a=n(807654),s=n.n(a),c=n(414293),p=n.n(c),u=n(743129),g=n(993451),m=n(80717),f=n(145869),d=n(680833),v=n(805346),y=n(552259),h=["labelId"];function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,A,l=[],a=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;a=!1}else for(;!(a=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{if(!a&&null!=n.return&&(A=n.return(),Object(A)!==A))return}finally{if(s)throw o}}return l}}(e,t)||w(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){if(e){if("string"==typeof e)return B(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(e,t):void 0}}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nt[Q]?-1:1}))}function Z(e,t){return(0,y.getResolutionObject)(e,t,{projection:A,resolutions:s})}var R=b((0,r.useState)([]),2),k=R[0],T=R[1],H=b((0,r.useState)(I&&{resolution:I,scale:I*x,zoom:(0,y.getZoomFromResolution)(I,s)}),2),N=H[0],z=H[1],F=b((0,r.useState)(D&&{resolution:D,scale:D*x,zoom:(0,y.getZoomFromResolution)(D,s)}),2),W=F[0],G=F[1],M=b((0,r.useState)(!1),2),K=M[0],Y=M[1],J=b((0,r.useState)(),2),V=J[0],X=J[1],q=b((0,r.useState)(),2),_=q[0],$=q[1],ee=(0,r.useRef)();function te(){$(void 0),X(void 0)}function ne(e,t){var n,r,o=(n=e,r=t,p()(n)&&p()(r)?"layerProperties.visibilityLimits.serverValuesUpdateUndefined":p()(n)&&!p()(r)?"layerProperties.visibilityLimits.serverValuesUpdateMinScale":!p()(n)&&p()(r)?"layerProperties.visibilityLimits.serverValuesUpdateMaxScale":"layerProperties.visibilityLimits.serverValuesUpdate");X(o)}function re(e,t){e=((null==W?void 0:W[Q])||0)},options:k.map((function(e){return C(C({},e),{},{value:e[Q]+(e.delta||0),label:e[Q],showArrow:e.zoom===i,disabled:!p()(null==W?void 0:W[Q])&&e[Q]<=W[Q],limitsType:Q})})),disabled:L||K,onChange:function(e){var t=void 0===e.value?{}:p()(e.zoom)?Z(e.value,Q):{resolution:e.resolution,scale:e.scale,zoom:e.zoom};if(E({maxResolution:t.resolution}),z(t),void 0!==e.value&&p()(e.zoom)){var n=j(k,t);T(n)}te()}}),o().createElement("label",{htmlFor:"ms-visibility-limits-min"},o().createElement(v.Z,{msgId:"layerProperties.visibilityLimits.minValue"})),o().createElement(O,{id:"ms-visibility-limits-min",value:(null==W?void 0:W[Q])&&{value:W[Q],label:W[Q],zoom:W.zoom,limitsType:Q},placeholderId:"layerProperties.visibilityLimits.minValuePlaceholder",noResultsTextId:"layerProperties.visibilityLimits.valueNoResultsText",createTextId:"layerProperties.visibilityLimits.createOption",loading:K,isValidNewOption:function(e){return e<=((null==N?void 0:N[Q])||1/0)},options:k.map((function(e){return C(C({},e),{},{value:e[Q],label:e[Q],showArrow:e.zoom===i,disabled:!p()(null==N?void 0:N[Q])&&e[Q]>=N[Q],limitsType:Q})})),disabled:L||K,onChange:function(e){var t=void 0===e.value?{}:p()(e.zoom)?Z(e.value,Q):{resolution:e.resolution,scale:e.scale,zoom:e.zoom};if(E({minResolution:t.resolution}),G(t),void 0!==e.value&&p()(e.zoom)){var n=j(k,t);T(n)}te()}}),o().createElement("label",{htmlFor:"ms-visibility-limits-type"},o().createElement(v.Z,{msgId:"layerProperties.visibilityLimits.type"})),o().createElement(U,{inputProps:{id:"ms-visibility-limits-type"},value:Q,clearable:!1,options:u.map((function(e){var t=e.labelId;return C(C({},function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,h)),t&&{label:o().createElement(v.Z,{msgId:t})})})),disabled:L||K,onChange:function(e){var t=e.value;S(t),te()}}),V&&o().createElement(l.Alert,{bsStyle:"success"},o().createElement(v.Z,{msgId:V})),_&&o().createElement(l.Alert,{bsStyle:"danger"},o().createElement(v.Z,{msgId:_})))}D.propTypes={layer:A().object,zoom:A().number,onChange:A().func,resolutions:A().array,limitsTypesOptions:A().array,projection:A().string,dpi:A().number,defaultLimitsType:A().string},D.defaultProps={layer:{},onChange:function(){},limitsTypesOptions:[{value:"scale",labelId:"layerProperties.visibilityLimits.scale"},{value:"resolution",labelId:"layerProperties.visibilityLimits.resolution"}],dpi:y.DEFAULT_SCREEN_DPI};const L=D},689834:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAGzSURBVHjaYvTxcWb4+53h3z8GZpZff/79+v3n/7/fDAz/GHAAgABi+f37e3FxOZD1Dwz+/v3z9y+E/AMFv3//+Qumfv9et241QACxMDExAVWfOHkJJAEW/gUEP0EQDn78+AHE/gFOQJUAAcQiy8Ag8O+fLFj1n1+/QDp+/gQioK7fP378+vkDqOH39x9A/RJ/gE5lAAhAYhzcAACCQBDkgRXRjP034R0IaDTZTFZn0DItot37S94KLOINerEcI7aKHAHE8v/3r/9//zIA1f36/R+o4tevf1ANYNVA9P07RD9IJQMDQACxADHD3z8Ig4GMHz+AqqHagKp//fwLVA0U//v7LwMDQACx/LZiYFD7/5/53/+///79BqK/EMZ/UPACSYa/v/8DyX9A0oTxx2EGgABi+a/H8F/m339BoCoQ+g8kgRaCQvgPJJiBYmAuw39hxn+uDAABxMLwi+E/0PusRkwMvxhBGoDkH4b/v/+D2EDyz///QB1/QLb8+sP0lQEggFh+vGXYM2/SP6A2Zoaf30Ex/J+PgekHwz9gQDAz/P0FYrAyMfz7wcDAzPDtFwNAgAEAd3SIyRitX1gAAAAASUVORK5CYII="},294122:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAGzSURBVHjaYvTxcWb4+53h3z8GZpZff/79+v3n/7/fDAz/GHAAgABi+f37e3FxOZD1Dwz+/v3z9y+E/AMFv3//+Qumfv9et241QACxMDExAVWfOHkJJAEW/gUEP0EQDn78+AHE/gFOQJUAAcQiy8Ag8O+fLFj1n1+/QDp+/gQioK7fP378+vkDqOH39x9A/RJ/gE5lAAhAYhzcAACCQBDkgRXRjP034R0IaDTZTFZn0DItot37S94KLOINerEcI7aKHAHE8v/3r/9//zIA1f36/R+o4tevf1ANYNVA9P07RD9IJQMDQACxADHD3z8Ig4GMHz+AqqHagKp//fwLVA0U//v7LwMDQACx/LZiYFD7/5/53/+///79BqK/EMZ/UPACSYa/v/8DyX9A0oTxx2EGgABi+a/H8F/m339BoCoQ+g8kgRaCQvgPJJiBYmAuw39hxn+uDAABxMLwi+E/0PusRkwMvxhBGoDkH4b/v/+D2EDyz///QB1/QLb8+sP0lQEggFh+vGXYM2/SP6A2Zoaf30Ex/J+PgekHwz9gQDAz/P0FYrAyMfz7wcDAzPDtFwNAgAEAd3SIyRitX1gAAAAASUVORK5CYII="},16885:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAYAAAB24g05AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3woNChAfXTteVAAAAjRJREFUKM9VkklIlVEAhb9fHxkVDWLwQKw2URI0kQ2GmoYELcJFhFZQ+FBxHaRhIA20qKiWrzDSoAwMGsgicEIlizILi+ZNIERJhNp777/3/ve0sEV9q7M78J0TJBqGxb94D94BBhBguLK8B6V+M/njGwbwgJ23hLHSBCQahuV9pOsDTlZGHX1O1lq19TqFYUbJx07GhArDUJlMWul0SnZ0RD4KlXw0riDRMKyymq10DnoiD5EH40Sk2ZxxYpQW+PkLxbLxW7cwp7aWa13jnE++IAss8nC3SYQe7jdZIkH30RQZJ94GkGptxTXWk336FO/KqqjYfYs376fIGEOQqBtUaU0x1/o8kZ9tdhZCibeELHVPmWheSxCP/6dKgtcfvxPDp9hfItp6xIOmDJWn5tLdNEX8jGGy6jPzkx246glkDN5avDEQRcRW59P7EWIg2gcCnIPy0zl4J9ZczDB+dDGL9h3Hh5bsZyN/Fwnw3iOEBDs+TcLXr19krVUqldLMzIzS09MKW5olSX7jJtl1GzRLpImKcvVf7lY8/4r2Hr6jhSuOKCu//RLZY0/IuXCBWOcNwmSSRLhn9hJhiIwBie07Osnr7aMo+MarykHWFi1HkSXrS3U9bv02THwBoysrOPF7M7kLIiQICvMJCuNIomBVLgcP3WaosISlbW00Pm+l7kAxQX/HTX3oGqKrYBsvhwzWpXFRxMi9ah5WViHn2NXbTdHOs+Aj8BF5y5Zw7FwNAyev8gcAFF3B0hKD4gAAAABJRU5ErkJggg=="},11533:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAGCSURBVHjaYvz48SMDEvj3j+Hfty/npKX/MTAY3L7NwMf3DxUABBALUBEfHx+Q/P//P1QPJ7t6UdG/P3+EpKQY2Nj+I4Fnz54BBBALRBFcNUj4378fDx78+/3739+/QBvhqhkZGf/8+QMQQCxoqiEkUPX/X7+BShiQjAc7+B9AALE8SEmRi4//++ED0Dyg2Qx///77+fPfr1//f/9+PWMGUBVQHCT15w+LkNCF3FyAAGJ5t3q1oJLSr8eP///+8//Pb5BLgMYDyV+/3q1Z8w/MAPrn/69f7AoKzxgYAAKIhcventvIiE1e/t+/vwx/QIYBbfi4dStQKa+LC9QGoIa/f1lFRAT27QMIIMa3b9/y8/PDXQ/ywI8ft1xdgQar7tsHDyWgLNDTd+7cAQggFqA/kL0LkQQ5A4j+/mVE8jEQAEMJIIBAGuCqIaKMDAxsMjJAJzEyMQFNhYlBZQECCKTh1atXyHH56927Q1u2/GJgcLh0iUFICOSEf//+gB0CBAABBgAC4UQezUonUAAAAABJRU5ErkJggg=="},355350:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAFnSURBVHjaYvzPgAD/UNlYEUAAmuTYAAAQhAEYqF/zFbe50RZ1cMmS9TLi0pJLRjZohAMTGFUN9HdnHgEE1sDw//+Tp0ClINW/f0NIKPoFJH/9//ULyGaUlQXaABBALAx/Gf4zAt31F4i+ffj3/cN/XrFfzOx//v///f//LzACM/79ZmD8/e8TA0AAMYHdDVT958vXP38nMDB0s3x94/Tj5y+YahhiAKLfQKUAAcQEdtJfoDHMF2L+vPzDmFXLelf551tGFOOhev4A/QgQQExgHwAd8IdFT/Wz6j+GhlpmXSOW/2z///8Eq/sJ18Dw/zdQA0AAMQExxJjjdy9x2/76EfLz4MXdP/i+wsyGkkA3Aw3984cBIIAYfzIwMKel/bt3jwEaLNAwgZIQxp/fDH/+MqqovL14ESCAWICeZvr9h0FSEhSgwBgAygFDEMT+wwAhgQgc4kAEVAwQQIxfUSMSTxxDAECAAQAJWke8v4u1tAAAAABJRU5ErkJggg=="},88777:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAFnSURBVHjaYvzPgAD/UNlYEUAAmuTYAAAQhAEYqF/zFbe50RZ1cMmS9TLi0pJLRjZohAMTGFUN9HdnHgEE1sDw//+Tp0ClINW/f0NIKPoFJH/9//ULyGaUlQXaABBALAx/Gf4zAt31F4i+ffj3/cN/XrFfzOx//v///f//LzACM/79ZmD8/e8TA0AAMYHdDVT958vXP38nMDB0s3x94/Tj5y+YahhiAKLfQKUAAcQEdtJfoDHMF2L+vPzDmFXLelf551tGFOOhev4A/QgQQExgHwAd8IdFT/Wz6j+GhlpmXSOW/2z///8Eq/sJ18Dw/zdQA0AAMQExxJjjdy9x2/76EfLz4MXdP/i+wsyGkkA3Aw3984cBIIAYfzIwMKel/bt3jwEaLNAwgZIQxp/fDH/+MqqovL14ESCAWICeZvr9h0FSEhSgwBgAygFDEMT+wwAhgQgc4kAEVAwQQIxfUSMSTxxDAECAAQAJWke8v4u1tAAAAABJRU5ErkJggg=="},821500:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAYAAAB24g05AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5AIUFBUyAPfcpAAAAUpJREFUKM+FkjtLA1EQhb979242IeKrCBokiqJgp0IaS8HOVjvxB1gI4o+wtBFs7CztrCwsbCy1UBCbiBiNDzD43NzdZMciJkTJxgNT3DNw7pk5g4h8iEggIlZE7O7Bmc3NbVpGNuz61qH1bWgbvXZlgCTg0IDwG3/ff6CBqJVIeQZHKRAh5bkkPdNRwJycF0Hq33gJw0XhCb9aA9fh+r7M8dkNnusQRe2tqJml7QBwAZSC5zefh5dPgrBGpj9Nti+NVirWgSK71hQgEujyoDeFMgZ5/YI3vz5kjIaZX5hqbkprze3zO4W7MpVKyPBohrHBHoyjEYkZ4fSqFMiPg2TCYf/okp29E0rFMivLs6wu5nGNQxQjYKYnBn4R47lHko6GsMpQppv8ZPbfGN1Wwq9UqYmA1viVEN9WO8cIFIBEcxGq5YBUPZlO+AYo0JZbV1yoGgAAAABJRU5ErkJggg=="},352019:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAYAAAB24g05AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5AIUFBUyAPfcpAAAAUpJREFUKM+FkjtLA1EQhb979242IeKrCBokiqJgp0IaS8HOVjvxB1gI4o+wtBFs7CztrCwsbCy1UBCbiBiNDzD43NzdZMciJkTJxgNT3DNw7pk5g4h8iEggIlZE7O7Bmc3NbVpGNuz61qH1bWgbvXZlgCTg0IDwG3/ff6CBqJVIeQZHKRAh5bkkPdNRwJycF0Hq33gJw0XhCb9aA9fh+r7M8dkNnusQRe2tqJml7QBwAZSC5zefh5dPgrBGpj9Nti+NVirWgSK71hQgEujyoDeFMgZ5/YI3vz5kjIaZX5hqbkprze3zO4W7MpVKyPBohrHBHoyjEYkZ4fSqFMiPg2TCYf/okp29E0rFMivLs6wu5nGNQxQjYKYnBn4R47lHko6GsMpQppv8ZPbfGN1Wwq9UqYmA1viVEN9WO8cIFIBEcxGq5YBUPZlO+AYo0JZbV1yoGgAAAABJRU5ErkJggg=="},621767:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAGzSURBVHjaYiyeepkBBv79+Zfnx/f379+fP38CyT9//jAyMiq5GP77wvDnJ8MfoAIGBoAAYgGqC7STApL///3/9++/pCTv////Qdz/QO4/IMna0vf/z+9/v379//37bUUTQACBNDD8Z/j87fffvyAVX79+/Q8GQDbQeKA9fM+e/Pv18/+vnwzCIkBLAAKQOAY5AIAwCEv4/4PddNUm3ji0QJyxW3rgzE0iLfqDGr2oYuu0l54AYvnz5x9Q6d+/QPQfyAQqAin9B3EOyG1A1UDj//36zfjr1y8GBoAAFI9BDgAwCMIw+P8Ho3GDO6XQ0l4MN8b2kUwYaLszqgKM/KHcDXwBxAJUD3TJ779A8h9Q5D8SAHoARP36+Rfo41+/mcA2AAQQy49ff0Cu//MPpAeI/0FdA1QNYYNVA/3wmwEYVgwMAAHE8uPHH5BqoD1//gJJLADoJKDS378Z//wFhhJAALF8A3rizz8uTmYg788fJkj4QOKREQyYxSWBhjEC/fcXZANAALF8+/anbcHlHz9+ffvx58uPX9KckkCn/gby/wLd8uvHjx96k+cD1UGiGQgAAgwA7q17ZpsMdUQAAAAASUVORK5CYII="},31287:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAGzSURBVHjaYiyeepkBBv79+Zfnx/f379+fP38CyT9//jAyMiq5GP77wvDnJ8MfoAIGBoAAYgGqC7STApL///3/9++/pCTv////Qdz/QO4/IMna0vf/z+9/v379//37bUUTQACBNDD8Z/j87fffvyAVX79+/Q8GQDbQeKA9fM+e/Pv18/+vnwzCIkBLAAKQOAY5AIAwCEv4/4PddNUm3ji0QJyxW3rgzE0iLfqDGr2oYuu0l54AYvnz5x9Q6d+/QPQfyAQqAin9B3EOyG1A1UDj//36zfjr1y8GBoAAFI9BDgAwCMIw+P8Ho3GDO6XQ0l4MN8b2kUwYaLszqgKM/KHcDXwBxAJUD3TJ779A8h9Q5D8SAHoARP36+Rfo41+/mcA2AAQQy49ff0Cu//MPpAeI/0FdA1QNYYNVA/3wmwEYVgwMAAHE8uPHH5BqoD1//gJJLADoJKDS378Z//wFhhJAALF8A3rizz8uTmYg788fJkj4QOKREQyYxSWBhjEC/fcXZANAALF8+/anbcHlHz9+ffvx58uPX9KckkCn/gby/wLd8uvHjx96k+cD1UGiGQgAAgwA7q17ZpsMdUQAAAAASUVORK5CYII="},766566:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAYAAAB24g05AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA3WAAAN1gGQb3mcAAAAB3RJTUUH4QoHCTAQC4tfhwAAARZJREFUKM+VkqtOA0EUhr+ZWWi3XS4hEBpAkCIICYKLRBIcOAQPUEHqeAEcDkOC4wVQqGLwWCyGFswGSLglTUvbmc7BYMhuFzjy5Fz//1ONUkkYGAIosiJIbdMaly/iTUDQa4MTtDiU978P0N5xsXvIx8Mjk+Mx9aVl5l5eKfcN6+dneG1+1KvnSiXxQmtkipvWGBPSJuc69BDmw08KvU7iAiUiSQ2sJd6vUtzapP/2TrN2yczpCcPlhT9qYC3h2iq23oBgiNGdbUwUpYqo05KqkAdrQWuUAul2MSbdDbV3UEu1sTr9xErYxHvhLlfi6DYiFyT3KRaPZRACG7OKKG+4uneI/IOD79FcxwK4TJaCTMyyIQTgC/dfW5JUkrXFAAAAAElFTkSuQmCC"},923491:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAE2SURBVHjaYmSYyMDwgwEE/jEw/GF4mvT0HyqQUlX9B5aEIIAAYmH4wlDtWg1SDwT//0lKSv7/D+T9/w+nYmL+//79/88fIPll0yaAAGJhYAGJP/n69O+/v0CAUAcHt2////ULqJpRVhZoA0AAsQCtAZoMVP0HiP7+RlcNBEDVYA0Mv38DNQAEEMj8vwx//wCt/AdC/zEBkgagYoAAYgF6FGj277+///wlpAEoz8AAEEAgDX/BZv/69wuoB48GRrCTAAKICajh9//fv/6CVP/++wu7BrDxQFf/YWAACCCwk0BKf0MQdg1/gBqAPv0L9ANAALEAY+33vz+S3JIgb/z5C45CBkZGRgY4UFICKQUjoJMAAoiRoZSB4RMojkHx/YPhbNVZoM3AOISQQPUK9vaQOIYAgAADAC5Wd4RRwnKfAAAAAElFTkSuQmCC"},269960:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAE2SURBVHjaYvz69SsDEvj37x+ERGbAwZ9//wACiAUoysXFBST///8P0QOm//+HU0jgxYsXAAHEAlP0H8HYt+//4SP/f//6b2b238sLrpqRkRFoCUAAsaCrXrv2/8KF///8+f/r9//Dh/8/ffI/OQWiAeJCgABigrseJPT27f/Vq////v3/1y8oWrzk/+PHcEv+/PkDEEBMEM/B3fj/40eo0t9g8suX/w8f/odZAVQMEEAsQAzj/2cQFf3PxARWCrYEaBXQLCkpqB/+/wcqBgggJrjxQPX/hYX/+/v///kLqhpIBgf/l5ODhxiQBAggFriToDoTEv5zcf3ftQuk2s7uf0wM3MdAAPQDQAAxvn37lo+PDy4KZUDcycj4/z9CBojv3r0LEEAgG969eweLSBDEBSCWAAQYACaTbJ/kuok9AAAAAElFTkSuQmCC"},144349:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAFXSURBVHjaYvzPgAD/UNlYEUAAkuTgCAAIBgJggq5VoAs1qM0vdzmMz362vezjokxPGimkEQ5WoAQEKuK71zwCCKyB4c//J8+BShn+/vv/+w/D399AEox+//8FJH/9/wUU+cUoKw20ASCAWBhEDf/LyDOw84BU//kDtgGI/oARmAHRDJQSFwVqAAggxo8fP/Ly8oKc9P8/AxjiAoyMjA8ePAAIIJZ///5BVIM0MOBWDpRlZPzz5w9AALH8gyvCbz7QBrCJAAHEyKDYX15r/+j1199//v35++/Xn7+///77DST/wMl/f4Dk378K4jx7O2cABBALw7NP77/+ev3xB0gOpOHfr99AdX9/gTVASKCGP//+8XCyMjC8AwggFoZfIHWSwpwQk4CW/AYjsKlA8u+ff////v33998/YPgBnQQQQIzAaGNg+AVGf5AYf5BE/oCjGEIyAQQYAGvKZ4C6+xXRAAAAAElFTkSuQmCC"},840717:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAFXSURBVHjaYvzPgAD/UNlYEUAAkuTgCAAIBgJggq5VoAs1qM0vdzmMz362vezjokxPGimkEQ5WoAQEKuK71zwCCKyB4c//J8+BShn+/vv/+w/D399AEox+//8FJH/9/wUU+cUoKw20ASCAWBhEDf/LyDOw84BU//kDtgGI/oARmAHRDJQSFwVqAAggxo8fP/Ly8oKc9P8/AxjiAoyMjA8ePAAIIJZ///5BVIM0MOBWDpRlZPzz5w9AALH8gyvCbz7QBrCJAAHEyKDYX15r/+j1199//v35++/Xn7+///77DST/wMl/f4Dk378K4jx7O2cABBALw7NP77/+ev3xB0gOpOHfr99AdX9/gTVASKCGP//+8XCyMjC8AwggFoZfIHWSwpwQk4CW/AYjsKlA8u+ff////v33998/YPgBnQQQQIzAaGNg+AVGf5AYf5BE/oCjGEIyAQQYAGvKZ4C6+xXRAAAAAElFTkSuQmCC"},746374:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAG8SURBVHjaYmSIZGD4wgAF/xgYWBj+boQysSKAAGJh+MRQnVoNUgEE///9ZfzLoPiX4e8fxj9/mP/8Yfr9+/+fP/9h5JdNmwACiIWBCaj4/5P3T7mY/xoJ/9UR/v0n8O+f17/Zlv/+//73/1+////+9f/XL6BqRllZoA0AAcQCNvv/339/C03+8v/8w7bk7+/vv/+7/P4S95ur+xdY9W+IBobfv4EaAAKICeiuv////vnz58PX3xxb/7BlN3/K7Ph1WoSR/fcfhl//f4KN/wW1BGg6QAAxMfxi+PP37++/v1kYfn//+usnE+cHCbWfTKz/mH7+ZgUpQmj48wdoA0AAsQA1/P0HZP458/qXqvNfjdnVItxy3wNvApUIvwPb8BvqJEawkwACiIXhDwPQ+F9/f+2890dY6/cnrycCb++z3frNfOwX01eEagZgKAHdzcAAEEAgG4DGA/W8+fO79+Rvdt5f2+b++sP+m+kdWDVEwx+gBmBY/wX6ASCAWBi+Mfz+80eSX/L3n99AzwBDm0H2NwtQHS/QapDBIPT3LwQBnQQQQIwMxgwM7xgYfjAArQKRTAyvP2OPYwgACDAAjtdGduN8tIgAAAAASUVORK5CYII="},64171:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAG8SURBVHjaYmSIZGD4wgAF/xgYWBj+boQysSKAAGJh+MRQnVoNUgEE///9ZfzLoPiX4e8fxj9/mP/8Yfr9+/+fP/9h5JdNmwACiIWBCaj4/5P3T7mY/xoJ/9UR/v0n8O+f17/Zlv/+//73/1+////+9f/XL6BqRllZoA0AAcQCNvv/339/C03+8v/8w7bk7+/vv/+7/P4S95ur+xdY9W+IBobfv4EaAAKICeiuv////vnz58PX3xxb/7BlN3/K7Ph1WoSR/fcfhl//f4KN/wW1BGg6QAAxMfxi+PP37++/v1kYfn//+usnE+cHCbWfTKz/mH7+ZgUpQmj48wdoA0AAsQA1/P0HZP458/qXqvNfjdnVItxy3wNvApUIvwPb8BvqJEawkwACiIXhDwPQ+F9/f+2890dY6/cnrycCb++z3frNfOwX01eEagZgKAHdzcAAEEAgG4DGA/W8+fO79+Rvdt5f2+b++sP+m+kdWDVEwx+gBmBY/wX6ASCAWBi+Mfz+80eSX/L3n99AzwBDm0H2NwtQHS/QapDBIPT3LwQBnQQQQIwMxgwM7xgYfjAArQKRTAyvP2OPYwgACDAAjtdGduN8tIgAAAAASUVORK5CYII="},835070:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAHESURBVHjaYvz79TsDwz8GOPj3D8T5B6L/QTj/4OAPkAsQQCxAWSYuLiD5//9/iBYmEP2f8f9/ZrAgMvjy6g1AALFAjP8+fzHDpy/////7/+cvUISjMPc/BmBkZPzz5w9AAAAxAM7/BEJk5G1eFUfW2gvv5f97fQCnpv3V15Se5fj+A/38/v39/vz9//z8/vz9/hMQBHds1gIAMQDO/wTEyvBFQhNF+Pj/amsADw7/XV39dnrt5PHZ8AgA/Pz7/P77/f/8+/76/P4cFwYA/egCiOnvHwagQ/79/fd/xpT/Hz/9X76Uien/519Mf/79//2XAejAP7////4DYvwFBw1AAAH9wAZ0+uOI7C1bnj2d/p3hp0dppO3LA5y//4IM+f2P8fd/pj//gQHE+BMUCmwAAcS4n4FBqbyLlZ/ru71L80bWcp8/XHu3fjx4+h/INb/BCOym33/YFWT2710KEEAsVgwMzO/v/Dt7j+HdvQmWjow7z7BtXi/6+/f/X7/+A0kI489voJsYeT4IMjAABBAL0GFMQDdKSv5/8oxz+SKg3H9ZWcbfQBV/GCAkEP39C0FAxQABxPgVHBFwxIDKRZMCAoAAAwBcKj0T0E2bvQAAAABJRU5ErkJggg=="},432147:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAHESURBVHjaYvz79TsDwz8GOPj3D8T5B6L/QTj/4OAPkAsQQCxAWSYuLiD5//9/iBYmEP2f8f9/ZrAgMvjy6g1AALFAjP8+fzHDpy/////7/+cvUISjMPc/BmBkZPzz5w9AAAAxAM7/BEJk5G1eFUfW2gvv5f97fQCnpv3V15Se5fj+A/38/v39/vz9//z8/vz9/hMQBHds1gIAMQDO/wTEyvBFQhNF+Pj/amsADw7/XV39dnrt5PHZ8AgA/Pz7/P77/f/8+/76/P4cFwYA/egCiOnvHwagQ/79/fd/xpT/Hz/9X76Uien/519Mf/79//2XAejAP7////4DYvwFBw1AAAH9wAZ0+uOI7C1bnj2d/p3hp0dppO3LA5y//4IM+f2P8fd/pj//gQHE+BMUCmwAAcS4n4FBqbyLlZ/ru71L80bWcp8/XHu3fjx4+h/INb/BCOym33/YFWT2710KEEAsVgwMzO/v/Dt7j+HdvQmWjow7z7BtXi/6+/f/X7/+A0kI489voJsYeT4IMjAABBAL0GFMQDdKSv5/8oxz+SKg3H9ZWcbfQBV/GCAkEP39C0FAxQABxPgVHBFwxIDKRZMCAoAAAwBcKj0T0E2bvQAAAABJRU5ErkJggg=="},974921:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALBAMAAACEzBAKAAAABGdBTUEAALGOfPtRkwAAACBjSFJNAACHDwAAjA8AAP1SAACBQAAAfXkAAOmLAAA85QAAGcxzPIV3AAAKL2lDQ1BJQ0MgUHJvZmlsZQAASMedlndUVNcWh8+9d3qhzTACUobeu8AA0nuTXkVhmBlgKAMOMzSxIaICEUVEmiJIUMSA0VAkVkSxEBRUsAckCCgxGEVULG9G1ouurLz38vL746xv7bP3ufvsvc9aFwCSpy+XlwZLAZDKE/CDPJzpEZFRdOwAgAEeYIApAExWRrpfsHsIEMnLzYWeIXICXwQB8HpYvAJw09AzgE4H/5+kWel8geiYABGbszkZLBEXiDglS5Auts+KmBqXLGYYJWa+KEERy4k5YZENPvsssqOY2ak8tojFOaezU9li7hXxtkwhR8SIr4gLM7mcLBHfErFGijCVK+I34thUDjMDABRJbBdwWIkiNhExiR8S5CLi5QDgSAlfcdxXLOBkC8SXcklLz+FzExIFdB2WLt3U2ppB9+RkpXAEAsMAJiuZyWfTXdJS05m8HAAW7/xZMuLa0kVFtjS1trQ0NDMy/apQ/3Xzb0rc20V6Gfi5ZxCt/4vtr/zSGgBgzIlqs/OLLa4KgM4tAMjd+2LTOACApKhvHde/ug9NPC+JAkG6jbFxVlaWEZfDMhIX9A/9T4e/oa++ZyQ+7o/y0F058UxhioAurhsrLSVNyKdnpDNZHLrhn4f4Hwf+dR4GQZx4Dp/DE0WEiaaMy0sQtZvH5gq4aTw6l/efmvgPw/6kxbkWidL4EVBjjIDUdSpAfu0HKAoRINH7xV3/o2+++DAgfnnhKpOLc//vN/1nwaXiJYOb8DnOJSiEzhLyMxf3xM8SoAEBSAIqkAfKQB3oAENgBqyALXAEbsAb+IMQEAlWAxZIBKmAD7JAHtgECkEx2An2gGpQBxpBM2gFx0EnOAXOg0vgGrgBboP7YBRMgGdgFrwGCxAEYSEyRIHkIRVIE9KHzCAGZA+5Qb5QEBQJxUIJEA8SQnnQZqgYKoOqoXqoGfoeOgmdh65Ag9BdaAyahn6H3sEITIKpsBKsBRvDDNgJ9oFD4FVwArwGzoUL4B1wJdwAH4U74PPwNfg2PAo/g+cQgBARGqKKGCIMxAXxR6KQeISPrEeKkAqkAWlFupE+5CYyiswgb1EYFAVFRxmibFGeqFAUC7UGtR5VgqpGHUZ1oHpRN1FjqFnURzQZrYjWR9ugvdAR6AR0FroQXYFuQrejL6JvoyfQrzEYDA2jjbHCeGIiMUmYtZgSzD5MG+YcZhAzjpnDYrHyWH2sHdYfy8QKsIXYKuxR7FnsEHYC+wZHxKngzHDuuCgcD5ePq8AdwZ3BDeEmcQt4Kbwm3gbvj2fjc/Cl+EZ8N/46fgK/QJAmaBPsCCGEJMImQiWhlXCR8IDwkkgkqhGtiYFELnEjsZJ4jHiZOEZ8S5Ih6ZFcSNEkIWkH6RDpHOku6SWZTNYiO5KjyALyDnIz+QL5EfmNBEXCSMJLgi2xQaJGokNiSOK5JF5SU9JJcrVkrmSF5AnJ65IzUngpLSkXKabUeqkaqZNSI1Jz0hRpU2l/6VTpEukj0lekp2SwMloybjJsmQKZgzIXZMYpCEWd4kJhUTZTGikXKRNUDFWb6kVNohZTv6MOUGdlZWSXyYbJZsvWyJ6WHaUhNC2aFy2FVko7ThumvVuitMRpCWfJ9iWtS4aWzMstlXOU48gVybXJ3ZZ7J0+Xd5NPlt8l3yn/UAGloKcQqJClsF/hosLMUupS26WspUVLjy+9pwgr6ikGKa5VPKjYrzinpKzkoZSuVKV0QWlGmabsqJykXK58RnlahaJir8JVKVc5q/KULkt3oqfQK+m99FlVRVVPVaFqveqA6oKatlqoWr5am9pDdYI6Qz1evVy9R31WQ0XDTyNPo0XjniZek6GZqLlXs09zXktbK1xrq1an1pS2nLaXdq52i/YDHbKOg84anQadW7oYXYZusu4+3Rt6sJ6FXqJejd51fVjfUp+rv09/0ABtYG3AM2gwGDEkGToZZhq2GI4Z0Yx8jfKNOo2eG2sYRxnvMu4z/mhiYZJi0mhy31TG1Ns037Tb9HczPTOWWY3ZLXOyubv5BvMu8xfL9Jdxlu1fdseCYuFnsdWix+KDpZUl37LVctpKwyrWqtZqhEFlBDBKGJet0dbO1husT1m/tbG0Edgct/nN1tA22faI7dRy7eWc5Y3Lx+3U7Jh29Xaj9nT7WPsD9qMOqg5MhwaHx47qjmzHJsdJJ12nJKejTs+dTZz5zu3O8y42Lutczrkirh6uRa4DbjJuoW7Vbo/c1dwT3FvcZz0sPNZ6nPNEe/p47vIc8VLyYnk1e816W3mv8+71IfkE+1T7PPbV8+X7dvvBft5+u/0erNBcwVvR6Q/8vfx3+z8M0A5YE/BjICYwILAm8EmQaVBeUF8wJTgm+Ejw6xDnkNKQ+6E6ocLQnjDJsOiw5rD5cNfwsvDRCOOIdRHXIhUiuZFdUdiosKimqLmVbiv3rJyItogujB5epb0qe9WV1QqrU1afjpGMYcaciEXHhsceiX3P9Gc2MOfivOJq42ZZLqy9rGdsR3Y5e5pjxynjTMbbxZfFTyXYJexOmE50SKxInOG6cKu5L5I8k+qS5pP9kw8lf0oJT2lLxaXGpp7kyfCSeb1pymnZaYPp+umF6aNrbNbsWTPL9+E3ZUAZqzK6BFTRz1S/UEe4RTiWaZ9Zk/kmKyzrRLZ0Ni+7P0cvZ3vOZK577rdrUWtZa3vyVPM25Y2tc1pXvx5aH7e+Z4P6hoINExs9Nh7eRNiUvOmnfJP8svxXm8M3dxcoFWwsGN/isaWlUKKQXziy1XZr3TbUNu62ge3m26u2fyxiF10tNimuKH5fwiq5+o3pN5XffNoRv2Og1LJ0/07MTt7O4V0Ouw6XSZfllo3v9tvdUU4vLyp/tSdmz5WKZRV1ewl7hXtHK30ru6o0qnZWva9OrL5d41zTVqtYu712fh9739B+x/2tdUp1xXXvDnAP3Kn3qO9o0GqoOIg5mHnwSWNYY9+3jG+bmxSaips+HOIdGj0cdLi32aq5+YjikdIWuEXYMn00+uiN71y/62o1bK1vo7UVHwPHhMeefh/7/fBxn+M9JxgnWn/Q/KG2ndJe1AF15HTMdiZ2jnZFdg2e9D7Z023b3f6j0Y+HTqmeqjkte7r0DOFMwZlPZ3PPzp1LPzdzPuH8eE9Mz/0LERdu9Qb2Dlz0uXj5kvulC31OfWcv210+dcXmysmrjKud1yyvdfRb9Lf/ZPFT+4DlQMd1q+tdN6xvdA8uHzwz5DB0/qbrzUu3vG5du73i9uBw6PCdkeiR0TvsO1N3U+6+uJd5b+H+xgfoB0UPpR5WPFJ81PCz7s9to5ajp8dcx/ofBz++P84af/ZLxi/vJwqekJ9UTKpMNk+ZTZ2adp++8XTl04ln6c8WZgp/lf619rnO8x9+c/ytfzZiduIF/8Wn30teyr889GrZq565gLlHr1NfL8wXvZF/c/gt423fu/B3kwtZ77HvKz/ofuj+6PPxwafUT5/+BQOY8/xvJtwPAAAAElBMVEUAaqcBaqb9zAH+zACYpUOZpUOgYxiNAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAIUlEQVQY02NgYBAyYIAAnAwXl2BTFyBgMIYChAhB7QwMAImEB+mWQpXnAAAAAElFTkSuQmCC"},118268:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAHzSURBVHjaYkxOP8IAB//+Mfz7w8Dwi4HhP5CcJb/n/7evb16/APL/gRFQDiAAw3JuAgAIBEDQ/iswEERjGzBQLEru97ll0g0+3HvqMn1SpqlqGsZMsZsIe0SICA5gt5a/AGIEarCPtFh+6N/ffwxA9OvP/7//QYwff/6fZahmePeB4dNHhi+fGb59Y4zyvHHmCEAAAW3YDzQYaJJ93a+vX79aVf58//69fvEPlpIfnz59+vDhw7t37968efP3b/SXL59OnjwIEEAsDP+YgY53b2b89++/awvLn98MDi2cVxl+/vl6mituCtBghi9f/v/48e/XL86krj9XzwEEEENy8g6gu22rfn78+NGs5Ofr16+ZC58+fvyYwX8rxOxXr169fPny+fPn1//93bJlBUAAsQADZMEBxj9/GBxb2P/9+S/R8u3vzxuyaX8ZHv3j8/YGms3w8ycQARmi2eE37t4ACCDGR4/uSkrKAS35B3TT////wADOgLOBIaXIyjBlwxKAAGKRXjCB0SOEaeu+/y9fMnz4AHQxCP348R/o+l+//sMZQBNLEvif3AcIIMZbty7Ly6t9ZmXl+fXj/38GoHH/UcGfP79//BBiYHjy9+8/oUkNAAHEwt1V/vI/KBY/QSISFqM/GBg+MzB8A6PfYC5EFiDAABqgW776MP0rAAAAAElFTkSuQmCC"},457003:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAFsSURBVHjaYvzPgAD/UNlYEUAAmuTYAAAQhAEYqF/zFbe50RZ1cMmS9TLi0pJLRjZohAMTGFUN9HdnHgEE1sDw//+Tp0ClINW/f4NI9d////3+f+b3/1+////+9f/XL6A4o6ws0AaAAGIBm/0fRTVQ2v3Pf97f/4/9Aqv+DdHA8Ps3UANAALEAMSNQNdDGP3+ALvnf8vv/t9//9X/////7f+uv/4K//iciNABNBwggsJP+/IW4kuH3n//1v/8v+wVSDURmv/57//7/CeokoKFA0wECiAnkpL9/wH4CO+DNr/+VQA1A9PN/w6//j36CVIMRxEkAAQR20m+QpSBXgU0CuSTj9/93v/8v//V/xW+48UBD/zAwAAQQSAMzOMiABoBUswCd8ev/M7A669//OX7///Lr/x+gBlCoAJ0DEEAgDUy//zBISoKNAfoepJNRFmQkyJecfxj4/kDCEIiAigECiPErakTiiWMIAAgwAB4ZUlqMMhQQAAAAAElFTkSuQmCC"},678513:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAFsSURBVHjaYvzPgAD/UNlYEUAAmuTYAAAQhAEYqF/zFbe50RZ1cMmS9TLi0pJLRjZohAMTGFUN9HdnHgEE1sDw//+Tp0ClINW/f4NI9d////3+f+b3/1+////+9f/XL6A4o6ws0AaAAGIBm/0fRTVQ2v3Pf97f/4/9Aqv+DdHA8Ps3UANAALEAMSNQNdDGP3+ALvnf8vv/t9//9X/////7f+uv/4K//iciNABNBwggsJP+/IW4kuH3n//1v/8v+wVSDURmv/57//7/CeokoKFA0wECiAnkpL9/wH4CO+DNr/+VQA1A9PN/w6//j36CVIMRxEkAAQR20m+QpSBXgU0CuSTj9/93v/8v//V/xW+48UBD/zAwAAQQSAMzOMiABoBUswCd8ev/M7A669//OX7///Lr/x+gBlCoAJ0DEEAgDUy//zBISoKNAfoepJNRFmQkyJecfxj4/kDCEIiAigECiPErakTiiWMIAAgwAB4ZUlqMMhQQAAAAAElFTkSuQmCC"},123257:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAFqSURBVHjaYrzOwPAPjJgYQEDAleHVbhADIvgHLPgHiQ0QQCxAlkR9NW8sw+cV/1gV/7Gb/hV4+vfzhj8Mv/78//Pn/+/f/8AkhH1t0yaAAAJp4I37zyz2lDfu79uqv/++/WYz+cuq/vvLxt8gdb+A5K9/v34B2SyyskBLAAII5JAva/7/+/z367a/f3/8ZuT9+//Pr78vQUrB6n4CSSj6/RuoASCAWEDO/fD3ddEfhv9/OE3/sKj8/n7k9/fDQNUIs/+DVf8HawAIIJCT/v38C3Hr95N/GDh/f94AVvT7N8RUBpjxQAVADQABBNLw/y/Ifwy/f/399ufTOpDBEPf8g5sN0QBEDAwAAQTWABEChgOSA9BVA00E2wAQQCANQBbEif/AzoCqgLkbbBYwWP/+//sXqBYggFhAkfL7D7OkJFCOCSj65zfUeFjwg8z++/ffX5AGoGKAAGI8jhSRyIw/SJH9D4aAYQoQYAA6rnMw1jU2vQAAAABJRU5ErkJggg=="}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/62154.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/62154.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/62154.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/62154.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/62358.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/62358.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/62358.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/62358.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/62412.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/62412.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/62412.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/62412.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/62521.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/62521.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/62521.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/62521.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/62702.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/62702.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/62702.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/62702.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/62739.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/62739.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/62739.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/62739.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/62752.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/62752.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/62752.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/62752.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/62816.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/62816.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/62816.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/62816.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/62903.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/62903.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/62903.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/62903.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/63004.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/63004.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/63004.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/63004.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/63151.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/63151.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/63151.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/63151.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/63187.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/63187.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/63187.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/63187.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/63367.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/63367.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/63367.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/63367.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/63378.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/63378.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/63378.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/63378.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/63383.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/63383.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/63383.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/63383.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/63474.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/63474.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/63474.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/63474.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/63515.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/63515.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/63515.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/63515.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/63601.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/63601.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/63601.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/63601.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/63643.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/63643.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/63643.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/63643.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/63650.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/63650.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/63650.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/63650.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/6368.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/6368.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/6368.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/6368.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/63887.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/63887.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/63887.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/63887.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/63934.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/63934.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/63934.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/63934.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/63958.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/63958.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/63958.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/63958.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/63971.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/63971.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/63971.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/63971.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/64191.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/64191.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/64191.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/64191.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/64208.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/64208.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/64208.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/64208.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/6430.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/6430.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/6430.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/6430.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/64385.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/64385.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/64385.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/64385.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/64496.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/64496.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/64496.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/64496.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/64538.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/64538.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/64538.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/64538.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/64607.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/64607.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/64607.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/64607.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/6469.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/6469.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/6469.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/6469.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/64891.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/64891.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/64891.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/64891.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/64920.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/64920.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/64920.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/64920.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/64985.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/64985.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/64985.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/64985.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/65002.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/65002.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/65002.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/65002.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/65080.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/65080.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/65080.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/65080.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/65108.018dc26183efb561a8b1.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/65108.018dc26183efb561a8b1.chunk.js new file mode 100644 index 0000000000..83967d309a --- /dev/null +++ b/geonode_mapstore_client/static/mapstore/dist/js/65108.018dc26183efb561a8b1.chunk.js @@ -0,0 +1 @@ +(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[65108],{807878:(e,t,n)=>{"use strict";n.d(t,{E6:()=>a,vo:()=>l,l1:()=>c,J9:()=>s,U:()=>u,z8:()=>d,ql:()=>p,O_:()=>f,M$:()=>m,Ug:()=>y,p5:()=>g,Fz:()=>v,WZ:()=>b,bP:()=>h,On:()=>E,d_:()=>O,xM:()=>w,bl:()=>S,Wi:()=>C,PN:()=>P,_M:()=>j,Wm:()=>A,Eg:()=>x,V1:()=>T,cY:()=>I,RD:()=>Z,Hl:()=>L,co:()=>D,uY:()=>k,H8:()=>R,je:()=>N,go:()=>M,_8:()=>F,xd:()=>_,o7:()=>z,Nr:()=>U,Gf:()=>B,nh:()=>W,Rf:()=>G,Xp:()=>Y,D6:()=>V,Sm:()=>H,Ef:()=>q,jW:()=>Q,kQ:()=>$,JG:()=>K,js:()=>J,q$:()=>X,OZ:()=>ee,Nc:()=>te,NV:()=>ne,I5:()=>re,QL:()=>oe,I:()=>ie,ku:()=>ae,EU:()=>le,IV:()=>ce,HT:()=>se,lg:()=>ue,ds:()=>de,VF:()=>pe,DD:()=>fe,uo:()=>me,Ry:()=>ye,ZH:()=>ge,AQ:()=>ve,yC:()=>be,F:()=>he,mc:()=>Ee,uM:()=>we,eJ:()=>Se,uP:()=>Ce,N5:()=>Pe,bn:()=>je,Bm:()=>Ae,F2:()=>xe,jR:()=>Te,$J:()=>Ie,ln:()=>Ze});var r=n(375875),o=n.n(r);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var a="ADD_FILTER_FIELD",l="REMOVE_FILTER_FIELD",c="UPDATE_FILTER_FIELD",s="UPDATE_EXCEPTION_FIELD",u="ADD_GROUP_FIELD",d="UPDATE_LOGIC_COMBO",p="REMOVE_GROUP_FIELD",f="CHANGE_CASCADING_VALUE",m="EXPAND_ATTRIBUTE_PANEL",y="EXPAND_SPATIAL_PANEL",g="QUERYFORM:EXPAND_CROSS_LAYER",v="QUERYFORM:SET_CROSS_LAYER_PARAMETER",b="QUERYFORM:RESET_CROSS_LAYER_FILTER",h="SELECT_SPATIAL_METHOD",E="SELECT_VIEWPORT_SPATIAL_METHOD",O="UPDATE_GEOMETRY",w="SELECT_SPATIAL_OPERATION",S="CHANGE_SPATIAL_ATTRIBUTE",C="CHANGE_SPATIAL_FILTER_VALUE",P="REMOVE_SPATIAL_SELECT",j="SHOW_SPATIAL_DETAILS",A="QUERY_FORM_SEARCH",x="QUERY_FORM_RESET",T="SHOW_GENERATED_FILTER",I="CHANGE_DWITHIN_VALUE",Z="ZONE_SEARCH",L="ZONE_SEARCH_ERROR",D="ZONE_FILTER",k="ZONE_CHANGE",R="ZONES_RESET",N="SIMPLE_FILTER_FIELD_UPDATE",M="ADD_SIMPLE_FILTER_FIELD",F="REMOVE_SIMPLE_FILTER_FIELD",_="REMOVE_ALL_SIMPLE_FILTER_FIELDS",z="UPDATE_FILTER_FIELD_OPTIONS",U="LOADING_FILTER_FIELD_OPTIONS",B="QUERYFORM:ADD_CROSS_LAYER_FILTER_FIELD",W="QUERYFORM:UPDATE_CROSS_LAYER_FILTER_FIELD",G="QUERYFORM:REMOVE_CROSS_LAYER_FILTER_FIELD",Y="QUERYFORM:UPDATE_CROSS_LAYER_FILTER_FIELD_OPTIONS",V="SET_AUTOCOMPLETE_MODE",H="TOGGLE_AUTOCOMPLETE_MENU",q="QUERYFORM:LOAD_FILTER";function Q(e){return{type:a,groupId:e}}function $(e,t){return{type:u,groupId:e,index:t}}function K(e){return{type:l,rowId:e}}function J(e,t){return{type:H,rowId:e,status:t,layerFilterType:arguments.length>2&&void 0!==arguments[2]?arguments[2]:"filterField"}}function X(e,t,n,r){return{type:c,rowId:e,fieldName:t,fieldValue:n,fieldType:r,fieldOptions:arguments.length>4&&void 0!==arguments[4]?arguments[4]:{}}}function ee(e,t){return{type:s,rowId:e,exceptionMessage:t}}function te(e,t){return{type:d,groupId:e,logic:t}}function ne(e){return{type:V,status:e}}function re(e){return{type:p,groupId:e}}function oe(e){return{type:f,attributes:e}}function ie(e){return{type:m,expand:e}}function ae(e){return{type:y,expand:e}}function le(e){return{type:g,expand:e}}function ce(e,t){return{type:v,key:e,value:t}}function se(e,t){return{type:h,fieldName:t,method:e}}function ue(){return{type:E}}function de(e){return{type:O,geometry:e}}function pe(e,t){return{type:w,fieldName:t,operation:e}}function fe(e){return{type:S,attribute:e}}function me(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.feature,n=e.srsName,r=e.collectGeometries,o=e.style,i=e.options,a=e.value;return{type:C,value:a,collectGeometries:r,options:i,geometry:t&&t.geometry,feature:t,srsName:n,style:o}}function ye(){return{type:P}}function ge(e){return{type:j,show:e}}function ve(e){return{type:I,distance:e}}function be(e,t){return{type:A,searchUrl:e,filterObj:t}}function he(e){return{type:q,filter:e}}function Ee(e){return{type:x,skip:e}}function Oe(e,t){return{type:L,error:e,id:t}}function we(e,t){return{type:Z,active:e,id:t}}function Se(e,t,n){return function(r){return o().post(e,t,{timeout:1e4,headers:{Accept:"application/json","Content-Type":"text/plain"}}).then((function(o){var a=o.data;if("object"!==i(a))try{a=JSON.parse(a)}catch(o){r(Oe("Search result broken ("+e+": "+t+"): "+o.message,n))}r(function(e,t){return{type:D,data:e,id:t}}(a,n)),r(we(!1,n))})).catch((function(e){r(Oe(e,n))}))}}function Ce(e,t){return{type:k,id:e,value:t}}function Pe(e){return{type:B,rowId:(new Date).getTime(),groupId:e}}function je(e,t,n,r){return{type:W,rowId:e,fieldName:t,fieldValue:n,fieldType:r,fieldOptions:arguments.length>4&&void 0!==arguments[4]?arguments[4]:{}}}function Ae(e){return{type:G,rowId:e}}function xe(){return{type:b}}function Te(e,t){return{type:U,status:e,filterField:t,layerFilterType:arguments.length>2&&void 0!==arguments[2]?arguments[2]:"filterField"}}function Ie(e,t,n){return{type:z,filterField:e,options:t,valuesCount:n}}function Ze(e,t,n){return{type:Y,filterField:e,options:t,valuesCount:n}}},95797:(e,t,n)=>{"use strict";n.d(t,{DR:()=>r,S0:()=>o,u7:()=>i,lj:()=>a,yz:()=>l,lN:()=>c,zW:()=>s,Yx:()=>u,VN:()=>d,Hu:()=>p,VT:()=>f,RD:()=>m,Qq:()=>y,R1:()=>g,_T:()=>v,vO:()=>b,XO:()=>h,jG:()=>E,Xc:()=>O,gT:()=>w,rG:()=>S,t3:()=>C,Fs:()=>P,w_:()=>j,Lm:()=>A,rh:()=>x,rP:()=>T,IO:()=>I}),n(375875);var r="LAYER_SELECTED_FOR_SEARCH",o="FEATURE_TYPE_SELECTED",i="FEATURE_TYPE_LOADED",a="FEATURE_LOADED",l="FEATURE_LOADING",c="FEATURE_TYPE_ERROR",s="FEATURE_ERROR",u="QUERY_CREATE",d="QUERY:UPDATE_QUERY",p="QUERY_RESULT",f="QUERY_ERROR",m="RESET_QUERY",y="QUERY",g="INIT_QUERY_PANEL",v="QUERY:TOGGLE_SYNC_WMS",b="QUERY:TOGGLE_LAYER_FILTER";function h(){return{type:v}}function E(){return{type:b}}function O(){return{type:g}}function w(e,t){return{type:o,url:e,typeName:t}}function S(e,t){return{type:i,typeName:e,featureType:t}}function C(e,t){return{type:c,typeName:e,error:t}}function P(e){return{type:l,isLoading:e}}function j(e,t,n,r,o){return{type:p,searchUrl:t,filterObj:n,result:e,queryOptions:r,reason:o}}function A(e){return{type:f,error:e}}function x(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.updates,n=e.reason,r=e.useLayerFilter;return{type:d,updates:t,reason:n,useLayerFilter:r}}function T(e,t){return{type:u,searchUrl:e,filterObj:t}}function I(e,t,n,r){return{type:y,searchUrl:e,filterObj:t,queryOptions:n,reason:r}}},739221:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var r=n(124852),o=n.n(r),i=n(675263),a=n.n(i),l=n(180307),c=n.n(l);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.dataProp,n=void 0===t?"items":t,r=e.querySelector,i=e.closest,l=void 0!==i&&i,g=e.loadingProp,v=void 0===g?"loading":g,b=e.skip,h=void 0===b?0:b,E=e.pageSize,O=void 0===E?10:E,w=e.offsetSize,S=void 0===w?200:w;return function(e){var t;return t=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(w,t);var i,a,g,b,E=(g=w,b=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=m(g);if(b){var n=m(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return f(e)}(this,e)});function w(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,w);for(var t=arguments.length,o=new Array(t),i=0;i=t.scrollHeight-n}}),t}}},5993:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(675263),o=n.n(r),i=n(984596),a=n.n(i),l=n(867076),c=n(86638),s=["locale"];function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,s);return p(p({},r),a()(e).reduce(function(e,t){return function(){var n=arguments.length>1?arguments[1]:void 0;return p(p({},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),{},f({},n,e[n]&&(0,c.MZ)(t,e[n])))}}(r,n),{}))})))}},979105:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(867076);const o=function(e,t,n){return(0,r.branch)((function(){return!(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})[t]}),(0,r.withState)(e,t,n))}},327605:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(124852),o=n.n(r),i=n(480681);const a=function(e){var t=e.title,n=e.description;return o().createElement(i.Row,null,o().createElement(i.Col,{xs:12,className:"text-center"},o().createElement("div",{className:"mapstore-step-title"},t),o().createElement("div",{className:"mapstore-step-description"},n)))}},142778:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(124852),o=n.n(r),i=n(805346),a=n(982030);const l=function(e){return(0,a.Z)(e,{title:o().createElement(i.Z,{msgId:"widgets.builder.errors.noAttributesTitle"}),description:o().createElement(i.Z,{msgId:"widgets.builder.errors.noAttributesDescription"}),glyph:"warning-sign"})}},75927:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(513218),o=n.n(r),i=n(124852),a=n.n(i),l=n(480681),c=n(805346),s=n(815135);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}var d=["settings","element","tabs","activeTab","width","groups","isLocalizedLayerStylesEnabled","setActiveTab","onUpdateParams","onRetrieveLayerData","realtimeUpdate"];function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.settings,n=e.element,r=void 0===n?{}:n,i=e.tabs,s=void 0===i?[]:i,m=e.activeTab,y=e.width,g=e.groups,v=e.isLocalizedLayerStylesEnabled,b=e.setActiveTab,h=void 0===b?function(){}:b,E=e.onUpdateParams,O=void 0===E?function(){}:E,w=e.onRetrieveLayerData,S=void 0===w?function(){}:w,C=e.realtimeUpdate,P=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,d);return a().createElement(l.Row,{key:"ms-toc-settings-navbar",className:"ms-row-tab"},a().createElement(l.Col,{xs:12},a().createElement(l.Nav,{bsStyle:"tabs",activeKey:m,justified:!0},s.map((function(e){return a().createElement(f,{key:"ms-tab-settings-"+e.id,tooltip:a().createElement(c.Z,{msgId:e.tooltipId}),eventKey:e.id,onClick:function(){return h(e.id)}},a().createElement(l.Glyphicon,{glyph:e.glyph}))})))),a().createElement(l.Col,{xs:12},s.filter((function(e){return e.id&&e.id===m})).filter((function(e){return e.Component})).map((function(e){return a().createElement(e.Component,p({},P,{key:"ms-tab-settings-body-"+e.id,containerWidth:y,element:r,groups:g,nodeType:t.nodeType,settings:t,retrieveLayerData:S,isLocalizedLayerStylesEnabled:v,onChange:function(e,t){return o()(e)?O(e,C):O(function(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==u(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===u(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e,t),C)}}))}))))}},36478:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(892936),o=n(867076);const i=(0,o.compose)((0,o.withHandlers)({onMapViewChanges:function(e){var t=e.onChange,n=void 0===t?function(){}:t;return function(e){n("maps",e),n("mapStateSource",e.mapStateSource)}}}))(r.Z)},616701:(e,t,n)=>{"use strict";n.d(t,{Z:()=>E});var r=n(124852),o=n.n(r),i=n(867076),a=n(581859),l=n(905419),c=n(229423),s=n(221338),u=n(91175),d=n.n(u);function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.changeLayerPropertyByGroup,n=void 0===t?function(){}:t,r=e.changeLayerProperty,i=void 0===r?function(){}:r,u=e.changeGroupProperty,d=void 0===u?function(){}:u,p=e.onSort,f=e.onSelect,m=e.selectedNodes,y=e.nodes,g=void 0===y?[]:y;return o().createElement(s.Z,{onSort:p,selectedNodes:m,onSelect:f,nodes:g},o().createElement(c.Z,{groupElement:o().createElement(a.Z,{onSort:p,selectedNodes:m,onSelect:f,propertiesChangeHandler:function(e,t){return Object.keys(t).map((function(r){return n(e,r,t[r])}))},onToggle:function(e,t){return d(e,"expanded",!t)},groupVisibilityCheckbox:!0}),layerElement:o().createElement(l.Z,{selectedNodes:m,onSelect:f,titleTooltip:!0,propertiesChangeHandler:function(e,t){return Object.keys(t).map((function(n){return i(e,n,t[n])}))},onUpdateNode:function(e,t,n){return Object.keys(n).map((function(t){return i(e,t,n[t])}))},onToggle:function(e,t){return i(e,"expanded",!t)}})}))}))},803307:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(984596),o=n.n(r),i=n(630998),a=n.n(i),l=n(867076),c=n(624262),s=function(e){return"".concat(e.mapId?"maps[".concat(e.mapId,"]"):"map")};const u=(0,l.withHandlers)({changeLayerProperty:function(e){var t=e.onChange,n=void 0===t?function(){}:t,r=e.map,o=void 0===r?{}:r;return function(e,t,r){var i=a()(o.layers||[],{id:e});n("".concat(s(o),".layers[").concat(i,"].").concat(t),r)}},changeLayerPropertyByGroup:function(e){var t=e.onChange,n=void 0===t?function(){}:t,r=e.map,o=void 0===r?{}:r;return function(e,t,r){return o.layers.filter((0,c.CK)(e)).map((function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id;return a()(o.layers||[],{id:e})})).filter((function(e){return e>=0})).map((function(e){return n("".concat(s(o),".layers[").concat(e,"].").concat(t),r)}))}},changeGroupProperty:function(e){var t=e.onChange,n=void 0===t?function(){}:t,r=e.map,i=void 0===r?{}:r;return function(e,t,r){var l,c=i.groups?o()(i.groups):[],u=a()(c,(function(t){return e===t.id})),d=-1===u?c.length:u;"expanded"!==t||null!=c&&null!==(l=c[d])&&void 0!==l&&l.id||n("".concat(s(i),".groups[").concat(d,"].id"),e),n("".concat(s(i),".groups[").concat(d,"].").concat(t),r)}},updateMapEntries:function(e){var t=e.onChange,n=void 0===t?function(){}:t,r=e.map,o=void 0===r?{}:r;return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).map((function(t){return n("".concat(s(o),"[").concat(t,"]"),e[t])}))}}})},648860:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(630998),o=n.n(r),i=n(867076);function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{}).group;return(void 0===t?"Default":t)===e})).map((function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id}))};const s=(0,i.compose)((0,i.withStateHandlers)((function(){return{selectedLayers:[],selectedGroups:[]}}),{onNodeSelect:function(e,t){var n=e.selectedLayers,r=void 0===n?[]:n,i=e.selectedGroups,l=void 0===i?[]:i,s=t.map,u=void 0===s?{}:s;return function(e,t,n){return{selectedLayers:"group"===t?o()(l,(function(t){return t===e}))>=0?r.filter((function(t){return o()(c(e,u),(function(e){return e===t}))<0})):n?[].concat(a(r),a(c(e,u))):a(c(e,u)):o()(r,(function(t){return t===e}))>=0?r.filter((function(t){return t!==e})):n?[].concat(a(r),[e]):[e],selectedGroups:"group"===t?o()(l,(function(t){return t===e}))>=0?l.filter((function(t){return t!==e})):n?[].concat(a(l),[e]):[e]:n?l:[]}}}}),(0,i.withProps)((function(e){var t=e.selectedLayers,n=e.selectedGroups;return{selectedNodes:[].concat(a(t),a(n))}})))},117802:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(867076),o=n(624262);const i=(0,r.withProps)((function(e){var t,n,r,i=e.map;return{nodes:(t=(0,o.DN)(i),n=t.layers,r=void 0===n?{}:n,(0,o.C1)(r.flat||[],r.groups||[]).groups)}}))},651768:(e,t,n)=>{"use strict";n.d(t,{Z:()=>Q});var r=n(227361),o=n.n(r),i=n(867076),a=n(624262),l=n(979105),c=n(487427),s=n(518842),u=n(363209),d=n(630998),p=n.n(d),f=n(675263),m=n.n(f),y=n(124852),g=n.n(y),v=n(480681),b=n(743129),h=n(38560),E=n(805346);function O(e){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(e)}function w(e,t){for(var n=0;n=0||!this.props.element.style||t.push({label:this.props.element.style,value:this.props.element.style}),g().createElement(v.Grid,{fluid:!0,style:{paddingTop:15,paddingBottom:15}},g().createElement("form",{ref:"style"},g().createElement(b.ZP.Creatable,{key:"styles-dropdown",options:t,isLoading:this.props.element&&this.props.element.capabilitiesLoading,value:this.props.element.style||"",onOpen:function(){!e.props.element||e.props.element.capabilities&&e.props.element.availableStyles||e.props.retrieveLayerData(e.props.element)},promptTextCreator:function(e){return g().createElement(E.Z,{msgId:"layerProperties.styleCustom",msgParams:{value:e}})},onChange:function(t){e.updateEntry("style",{target:{value:t&&t.value||""}})}}),g().createElement("br",null),this.renderLegend(),this.renderError(),g().createElement(h.Z,{bsStyle:"primary",style:{float:"right"},onClick:function(){return e.props.retrieveLayerData(e.props.element)}},g().createElement(v.Glyphicon,{glyph:"refresh"})," ",g().createElement(E.Z,{msgId:"layerProperties.stylesRefreshList"})),g().createElement("br",null)))}}])&&w(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(g().Component);j(x,"propTypes",{retrieveLayerData:m().func,onChange:m().func,element:m().object,groups:m().array}),j(x,"defaultProps",{element:{},retrieveLayerData:function(){},onChange:function(){}});const T=x;var I=n(803307),Z=n(117802),L=n(49977),D=n.n(L),k=n(680833);function R(e){return R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},R(e)}function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function M(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id===e.id})).switchMap((function(){return n.switchMap((function(e){return(0,k.kB)(e).map((function(e){return{capabilities:e,capabilitiesLoading:null,description:e._abstract,boundingBox:e.latLonBoundingBox,availableStyles:e.style&&(Array.isArray(e.style)?e.style:[e.style])}})).startWith({capabilitiesLoading:!0})})).catch((function(e){return D().Observable.of({capabilitiesLoading:null,capabilities:{error:"error getting capabilities",details:e},description:null})}))})).startWith({}).combineLatest(e,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return M(M({},t),{},{retrieveLayerData:r,element:M(M({},t.element),e)})}))}));var _=n(666379),z=n.n(_);function U(e){return U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},U(e)}var B=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;for(var o in t)null!==t[o]&&"object"===U(t[o])&&(z()(t[o],n)&&r.apply(void 0,[t[o]]),e(t[o],n,r))};const W=(0,i.withProps)((function(e){var t=e.nodes,n=void 0===t?{}:t,r=e.editNode,o={};return r&&B(n,{id:r},(function(e){o=e})),{selectedNode:o}}));function G(e){return G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},G(e)}function Y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function V(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.map,n=void 0===t?{}:t,r=e.selectedNode,i=e.settings,l=void 0===i?{}:i;return{element:r,settings:V(V({},l),{},{nodeType:r&&r.nodes?"groups":"layers",options:{opacity:l.opacity>=0?l.opacity:r.opacity>=0?r.opacity:1}}),groups:o()((0,a.DN)(n),"layers.groups")}})),(0,i.compose)(I.Z,(0,i.withHandlers)({onUpdateNode:function(e){var t=e.changeLayerProperty,n=void 0===t?function(){}:t,r=e.changeGroupProperty,o=void 0===r?function(){}:r,i=e.editNode;return function(e,t,r){"layers"===t&&Object.keys(r).map((function(e){return n(i,e,r[e])})),"groups"===t&&Object.keys(r).map((function(e){return o(i,e,r[e])}))}}}),(0,i.withHandlers)({onUpdateParams:function(e){var t=e.settings,n=void 0===t?{}:t,r=e.onUpdateNode,o=void 0===r?function(){}:r;return function(e){(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&o(n.node,n.nodeType,V(V({},n.props),e))}}})),c.kZ,(0,l.Z)("activeTab","setActiveTab","general"),q)},472747:(e,t,n)=>{"use strict";n.d(t,{l:()=>c});var r=n(49977),o=n(375875),i=n.n(o),a=n(510284),l=n(199767),c=function(e,t){return r.Observable.defer((function(){return i().get((0,l.Jy)(e,{version:"1.0.0",REQUEST:"DescribeProcess",IDENTIFIER:t}),{timeout:5e3,headers:{Accept:"application/json","Content-Type":"application/xml"}})})).let(a.oB)}},949832:(e,t,n)=>{"use strict";n.d(t,{Z:()=>ja});var r=n(124852),o=n.n(r),i=n(171703),a=n(22222),l=n(867076),c=n(401757),s=n(965539),u=n(557579),d=n(173014),p=n(982030),f=n(273849),m=n(227361),y=n.n(m),g=n(49977),v=n.n(g),b=n(886850),h=n(472747);function E(e){return(0,h.l)(e.url,"gs:Aggregate")}var O=n(838167),w=n(378889);function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||C(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,t){if(e){if("string"==typeof e)return P(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?P(e,t):void 0}}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{}).needsWPS;return(0,l.compose)((0,l.defaultProps)({dataStreamFactory:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.onEditorChange,o=void 0===r?function(){}:r,i=n.onConfigurationError,a=void 0===i?function(){}:i;return t.distinctUntilChanged((function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).layer,t=void 0===e?{}:e,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).layer;return t.name===n.name})).switchMap((function(){var t,n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).layer;return g.Observable.forkJoin.apply(g.Observable,[(0,b.v$)({layer:n})].concat((t=e?[E(n)]:[E(n).catch((function(){return g.Observable.of(!1)}))],function(e){if(Array.isArray(e))return P(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||C(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))).do((function(e){var t=S(e,1)[0],n=y()((0,w.findGeometryProperty)(t.data||{}),"name");n&&o("geomProp",n)})).map((function(e){var t=S(e,2),n=t[0];return{hasAggregateProcess:!!t[1],loading:!1,types:"ALL",featureTypeProperties:y()(n,"data.featureTypes[0].properties")||[]}}))})).catch((function(e){return a(e),g.Observable.of({errorObj:e,loading:!1,featureTypeProperties:[]})})).startWith({loading:!0})}}),f.Z,(0,d.Z)(),(0,p.Z)((function(e){var t=e.featureTypeProperties,n=void 0===t?[]:t,r=e.types,o=void 0===r?[]:r;return 0===n.length||0===o.length}),(function(){return{title:o().createElement(O.v0,{msgId:"widgets.builder.errors.noWidgetsAvailableTitle"}),description:o().createElement(O.k9,{msgId:"widgets.builder.errors.noWidgetsAvailableDescription"})}})))},A=(0,l.withProps)((function(e){var t=e.onResetChange,n=void 0===t?function(){}:t;return{stepButtons:[{glyph:"arrow-left",tooltipId:"widgets.builder.wizard.backToWidgetTypeSelection",onClick:function(){n("options",void 0),n("widgetType",void 0)}}]}}));var x=n(352353),T=n.n(x),I=n(680833),Z=n(823208);function L(e){return L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},L(e)}function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{}).selected})).switchMap((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.selected,n=e.layerValidationStream,r=void 0===n?function(e){return e}:n,o=e.setLayer,i=void 0===o?function(){}:o,a=e.dashboardSelectedService,l=e.dashboardServices,c=e.defaultSelectedService,s=e.defaultServices;return v().Observable.of(R(t,l?l[a]:s[c])).let(r).switchMap((function(){return function(e,t){return["tms","wmts"].includes(null==t?void 0:t.type)?v().Observable.of(R(e,t)):(0,I.HI)(R(e,t))}(t,l?l[a]:s[c])})).do((function(e){return i(k(k({},e),{},{visibility:!!T()(e.visibility)||e.visibility}))})).mapTo({canProceed:!0}).catch((function(e){return v().Observable.of({error:e,canProceed:!1})}))})).startWith({canProceed:!0}).combineLatest(e,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.canProceed;return k({error:e.error,canProceed:t},arguments.length>1?arguments[1]:void 0)}))}))),M=(0,i.connect)((function(){return{}}),{onLayerChoice:function(e){return(0,u.Rz)("layer",e)},onResetChange:u.Rz}),F=(0,l.compose)((0,l.setDisplayName)("ChartLayerSelector"),M,(0,l.defaultProps)({layerValidationStream:function(e){return e.switchMap((function(e){return function(e){return g.Observable.forkJoin((0,b.v$)({layer:e}))}(e)}))}}),A,N);function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:[],n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).filter((function(e){var n,r,o=(n=u.jB.exec(e)||[],r=3,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(n,r)||function(e,t){if(e){if("string"==typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[1],a=o[2];return i&&a?t.some((function(e){return e.id===i&&e.selectedMapId===a})):e}));return r(!i.mapSync,n,{dependenciesMap:i.dependenciesMap,mappings:e,sourceWidgetType:i.widgetType})}}})};var U=function(e,t,n){return"table"===t&&0===e.filter((function(e){return Object.keys(e).filter((function(t){return e[t]&&-1!==e[t].indexOf(n.id)})).length>0})).length};const B=(0,l.compose)((0,l.withProps)((function(e){var t=e.editorData,n=void 0===t?{}:t,r=e.widgets,o=(void 0===r?[]:r).filter((function(e){var t=e.mapSync,n=e.dependenciesMap;return t&&n})).map((function(e){return e.dependenciesMap}));return{canConnect:n.geomProp&&"table"!==n.widgetType||U(o,n.widgetType,n),connected:n.mapSync}})),z({viewport:"viewport",layers:"layers",filter:"filter",quickFilters:"quickFilters",layer:"layer",options:"options",mapSync:"mapSync",dependenciesMap:"dependenciesMap"}));var W=n(906724),G=n(805346);const Y=(0,l.compose)((0,i.connect)((0,a.P1)(c.xI,(function(e){return{widgetSelectionActive:e}}))),(0,W.Z)((function(e){return e.widgetSelectionActive}),(function(){return o().createElement("div",{style:{margin:"auto"}},o().createElement(G.Z,{msgId:"widgets.builder.wizard.selectMapToConnect"}))}),{alwaysWrap:!0}));function V(e){return V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},V(e)}var H=["stepButtons","exitButton"];function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Q(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:function(e){return 0===e.step},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,l.withProps)((function(n){var r,o=n.stepButtons,i=void 0===o?[]:o,a=n.exitButton,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(n,H);return{stepButtons:[Q(Q({},a),{},{visible:e(Q({stepButtons:i,exitButton:a},l))},t)].concat((r=i,function(e){if(Array.isArray(e))return $(e)}(r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return $(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))}}))};var J=["disableMultiDependencySupport","stepButtons","toggleConnection","availableDependencies","canConnect","connected"];function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:function(){return!0};return(0,l.compose)((0,l.withProps)((function(t){var n,r=t.disableMultiDependencySupport,o=t.stepButtons,i=void 0===o?[]:o,a=t.toggleConnection,l=void 0===a?function(){}:a,c=t.availableDependencies,s=void 0===c?[]:c,u=t.canConnect,d=t.connected,p=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,J);return{stepButtons:[].concat((n=i,function(e){if(Array.isArray(e))return X(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return X(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?X(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),[{onClick:function(){return l(s,p.widgets)},disabled:r,visible:!!e(p)&&!!u&&s.length>0,bsStyle:d?"success":"primary",glyph:d?"plug":"unplug",tooltipId:d?"widgets.builder.wizard.clearConnection":1===s.length?"widgets.builder.wizard.connectToTheMap":"widgets.builder.wizard.connectToAMap"}])}})))};var te=n(296311),ne=n(675263),re=n.n(ne),oe=n(480681),ie=n(38560);function ae(e){return ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ae(e)}function le(e,t){for(var n=0;n=0?a.length:1;return e.props.hideButtons?null:(e.props.step>0&&t.push(o().createElement(ie.Z,{key:"prev",className:"ms-wizard-prev",onClick:function(){return e.props.onPrevPage()}},o().createElement(G.Z,{msgId:"wizard.prev"}))),e.props.step>=l-1?t.push(o().createElement(ie.Z,{key:"finish",className:"ms-wizard-finish",onClick:function(){return e.props.onFinish()}},o().createElement(G.Z,{msgId:"wizard.finish"}))):e.props.step1&&t.push(o().createElement(ie.Z,{key:"next",className:"ms-wizard-next",disabled:!r(e.props.step),onClick:function(){return e.props.onNextPage()}},o().createElement(G.Z,{msgId:"wizard.next"}))),t)})),e}return t=l,(n=[{key:"render",value:function(){var e=this,t=this.props.children||[],n=t.length>=0?t.length:1;return o().createElement("div",{key:"wizard-pages",className:"ms-wizard map-options"},o().Children.map(t,(function(t,r){return r===e.props.step?o().cloneElement(t,{key:"wizard-component-".concat(r),onNextPage:e.props.step===n-1?e.props.onFinish:e.props.onNextPage,onPrevPage:e.props.onPrevPage}):null})),o().createElement(oe.Row,{key:"wizard-buttons",className:"ms-wizard-buttons"},this.renderButtons()))}}])&&le(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(o().Component);de(fe,"propTypes",{step:re().number,hideButtons:re().bool,onNextPage:re().func,onPrevPage:re().func,buttonType:re().node,onFinish:re().func,isStepValid:re().func}),de(fe,"defaultProps",{step:0,isStepValid:function(){return!0},hideButtons:!1,onNextPage:function(){},onPrevPage:function(){},onFinish:function(){}});const me=fe;var ye=(0,l.compose)((0,l.withPropsOnChange)(["step"],(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.skipButtonsOnSteps,n=void 0===t?[]:t,r=e.step,o=e.hideButtons;return n&&n.indexOf(r)>=0?{hideButtons:!0}:{hideButtons:o}})),(0,l.withHandlers)({onNextPage:function(e){var t=e.step,n=e.setPage,r=void 0===n?function(){}:n;return function(){r(t+1)}},onPrevPage:function(e){var t=e.step,n=e.setPage,r=void 0===n?function(){}:n;return function(){r(Math.max(t-1,0))}}}));(0,l.compose)((0,l.withState)("step","setPage",0),ye);var ge=n(142778),ve=n(638064);const be=(0,l.defaultProps)({data:[{name:"A",variable:2,pv:2,amt:2},{name:"B",variable:.5,pv:.5,amt:.5},{name:"C",variable:3,pv:3,amt:3},{name:"D",variable:1,pv:1,amt:2}],series:[{dataKey:"variable",color:"#078aa3"}],xAxis:{dataKey:"name",show:!1}});var he=n(351990),Ee=n(327605);function Oe(e){return Oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Oe(e)}function we(){return we=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.onSelect,n=void 0===t?function(){}:t,r=e.onNextPage,i=void 0===r?function(){}:r,a=e.types,l=void 0===a?Ae:a,c=e.type;return o().createElement(oe.Row,null,o().createElement(Ee.Z,{key:"title",title:o().createElement(G.Z,{msgId:"widgets.selectChartType.title"})}),o().createElement(ve.Z,{key:"content",onItemClick:function(e){n(e.type),i()},items:l&&Ae.map((function(e){return Ce(Ce({},e),{},{selected:e.type===c,preview:o().createElement(Pe,we({},je,{type:e.type,autoColorOptions:e.type===c?{base:0,s:0,v:0}:void 0}))})}))}))}));var Te=n(993451),Ie=n(246781),Ze=n(313311),Le=n.n(Ze),De=function(e){return e.filter((function(){return 0!==(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).type.indexOf("gml:")})).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name;return{label:t,value:t,type:e.localType}})).filter((function(e){return"string"===e.type||"number"===e.type}))},ke=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=Le()(t,{name:e});return!n||"number"!==n.localType&&"int"!==n.localType?[{value:"Count",label:"widgets.operations.COUNT"}]:(0,Ie.Mt)()};const Re=(0,l.compose)((0,l.withProps)((function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.featureTypeProperties,r=void 0===n?[]:n,o=t.data,i=void 0===o?{}:o;return{options:(e=r,e.filter((function(){return 0!==(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).type.indexOf("gml:")})).map((function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).name;return{label:e,value:e}}))),typedOptions:De(r),aggregationOptions:("counter"!==(null==i?void 0:i.widgetType)?[{value:"None",label:"widgets.operations.NONE"}]:[]).concat(ke(i.options&&i.options.aggregationAttribute,r))}})),(0,Te.Z)("aggregationOptions"));var Ne=n(91175),Me=n.n(Ne),Fe=n(743129),_e=n(398360),ze=n(443143),Ue=n(843614);const Be=function(e){var t=e.title,n=void 0===t?o().createElement(G.Z,{msgId:"warning"}):t,r=e.cancelText,i=void 0===r?o().createElement(G.Z,{msgId:"no"}):r,a=e.confirmText,l=void 0===a?o().createElement(G.Z,{msgId:"yes"}):a,c=e.onClose,s=void 0===c?function(){}:c,u=e.onConfirm,d=void 0===u?function(){}:u,p=e.show,f=e.children,m=e.className,y=void 0===m?"":m,g=e.buttonSize,v=e.running,b=void 0!==v&&v,h=o().createElement("span",{role:"footer"},o().createElement("div",{style:{float:"left"}}),o().createElement(ie.Z,{disabled:b,className:y,key:"confirmButton",bsStyle:"primary",bsSize:g,onClick:function(){d()}},l),o().createElement(ie.Z,{key:"cancelButton",bsSize:g,disabled:b,onClick:s},i));return o().createElement(Ue.Z,{show:p,onHide:s},o().createElement(Ue.Z.Header,{key:"dialogHeader",closeButton:!0},o().createElement(Ue.Z.Title,null,n)),o().createElement(Ue.Z.Body,null,f),o().createElement(Ue.Z.Footer,null,h))};var We=n(145869),Ge=n(414293),Ye=n.n(Ge),Ve=n(615402),He=n(1036),qe=n(202576),Qe=n(352595);function $e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,rt),a=it(ct(n),2),l=a[0],c=a[1],s=it((0,r.useState)(l),2),u=s[0],d=s[1],p=it((0,r.useState)(c),2),f=p[0],m=p[1],y=it((0,r.useState)(n),2),g=y[0],v=y[1];return o().createElement(oe.FormGroup,{validationState:ut(u,g)},o().createElement(oe.Col,{xs:12},o().createElement(oe.ControlLabel,null,o().createElement(G.Z,{msgId:"widgets.advanced.formula"})),o().createElement(Ke,{placement:"top",title:o().createElement(G.Z,{msgId:"widgets.advanced.formula"}),text:o().createElement(Ve.Z,{msgId:"widgets.advanced.formulaExamples"})}),o().createElement(oe.FormControl,ot({placeholder:"e.g. value / 100",feedback:st(u,f)},i,{type:"text",value:g,onChange:function(e){var n=it(ct(e.target.value),2),r=n[0],o=n[1];r?(d(!0),m(void 0),t(e)):(d(!1),m(o)),v(e.target.value)}}))))}var pt=n(112346);function ft(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{};return"widgets.".concat(e,".").concat(t.type||t.widgetType||"default")},Qt=o().createElement(G.Z,{msgId:qt("placeHolder")}),$t=function(e,t){return e.map((function(e){var n,r,o;return zt(zt(zt({id:e.id||Lt().v1()},{title:null!==(n=e.title)&&void 0!==n?n:e.unique}),{},{color:e.color},"string"===t&&{value:e.unique,unique:e.unique}),"number"===t&&{max:null!==(r=e.max)&&void 0!==r?r:0,min:null!==(o=e.min)&&void 0!==o?o:0})}))};const Kt=function(e){var t,n,i,a,l,c=e.hasAggregateProcess,s=e.data,u=void 0===s?{options:{},autoColorOptions:{}}:s,d=e.onChange,p=void 0===d?function(){}:d,f=e.options,m=void 0===f?[]:f,g=e.typedOptions,v=void 0===g?[]:g,b=e.formOptions,h=void 0===b?{showGroupBy:!0,showUom:!1,showColorRampSelector:!0,showLegend:!0,advancedOptions:!0}:b,E=e.aggregationOptions,O=void 0===E?[]:E,w=e.sampleChart,S=e.layer,C=Ft((0,r.useState)(!1),2),P=C[0],j=C[1],A=Ft((0,r.useState)(!1),2),x=A[0],T=A[1],I="global.colors.custom"===(null===(t=u.autoColorOptions)||void 0===t?void 0:t.name),Z=((null==u?void 0:u.options)||{}).classificationAttribute,L=void 0===Z?void 0:Z,D=((null==u?void 0:u.options)||{}).classificationAttributeType,k=void 0===D?void 0:D,R=((null==u?void 0:u.autoColorOptions)||{}).classification,N=void 0===R?Yt:R,M=((null==u?void 0:u.autoColorOptions)||{}).rangeClassification,F=void 0===M?Vt:M,_="number"===k?F:N,z=((null==u?void 0:u.autoColorOptions)||{}).defaultClassLabel,U=void 0===z?"":z,B=(null==u||null===(n=u.autoColorOptions)||void 0===n?void 0:n.defaultCustomColor)||(0,Nt.HC)(1,Wt)[0]||"#0888A1",W=function(e,t,n,r,o){var i="number"===r?"autoColorOptions.rangeClassification":"autoColorOptions.classification",a="number"===r?Vt:Yt;e.length===n.length?(p(i,a),o===r&&(p("options.classificationAttribute",void 0),p("options.classificationAttributeType",void 0))):p(i,t||[])};return(0,r.useEffect)((function(){var e;"line"!==u.type||null!=u&&null!==(e=u.autoColorOptions)&&void 0!==e&&e.name&&!I||p("autoColorOptions",{name:"global.colors.blue",base:190,range:20})}),[u.type]),o().createElement(oe.Row,null,o().createElement(Ee.Z,{title:o().createElement(G.Z,{msgId:"widgets.chartOptionsTitle"})}),o().createElement(oe.Col,{xs:12,style:{position:"sticky",top:0,zIndex:1}},o().createElement("div",{style:{marginBottom:"30px"}},w)),o().createElement(oe.Col,{xs:12},o().createElement(oe.Form,{className:"chart-options-form",horizontal:!0},h.showGroupBy?o().createElement(oe.FormGroup,{controlId:"groupByAttributes",className:"mapstore-block-width"},o().createElement(oe.Col,{componentClass:oe.ControlLabel,sm:6},o().createElement(G.Z,{msgId:qt("groupByAttributes",u)})),o().createElement(oe.Col,{sm:6},o().createElement(Fe.ZP,{value:u.options&&u.options.groupByAttributes,options:m,placeholder:Qt,onChange:function(e){p("options.groupByAttributes",e&&e.value)}}))):null,o().createElement(oe.FormGroup,{controlId:"aggregationAttribute",className:"mapstore-block-width"},o().createElement(oe.Col,{componentClass:oe.ControlLabel,sm:6},o().createElement(G.Z,{msgId:qt("aggregationAttribute",u)})),o().createElement(oe.Col,{sm:6},o().createElement(Fe.ZP,{value:u.options&&u.options.aggregationAttribute,options:m,placeholder:Qt,onChange:function(e){p("options.aggregationAttribute",e&&e.value)}}))),c?o().createElement(oe.FormGroup,{controlId:"aggregateFunction",className:"mapstore-block-width"},o().createElement(oe.Col,{componentClass:oe.ControlLabel,sm:6},o().createElement(G.Z,{msgId:qt("aggregateFunction",u)})),o().createElement(oe.Col,{sm:6},o().createElement(Fe.ZP,{value:u.options&&u.options.aggregateFunction,options:O,placeholder:Qt,onChange:function(e){p("options.aggregateFunction",e&&e.value)}}))):null,h.showUom?o().createElement(oe.FormGroup,{controlId:"uom"},o().createElement(oe.Col,{componentClass:oe.ControlLabel,sm:6},o().createElement(G.Z,{msgId:qt("uom",u)})),o().createElement(oe.Col,{sm:6},o().createElement(oe.FormControl,{value:y()(u,"options.seriesOptions[0].uom"),type:"text",onChange:function(e){return p("options.seriesOptions.[0].uom",e.target.value)}}))):null,h.showColorRampSelector?o().createElement(oe.FormGroup,{controlId:"colorRamp",className:"mapstore-block-width"},o().createElement(oe.Col,{componentClass:oe.ControlLabel,sm:I?5:6},o().createElement(G.Z,{msgId:qt("colorRamp",u)})),o().createElement(oe.Col,{sm:I?7:6},o().createElement(oe.FormGroup,null,I&&o().createElement(oe.Col,{xs:2},o().createElement(oe.OverlayTrigger,{key:"customColors",placement:"top",overlay:o().createElement(oe.Tooltip,{id:"wizard-tooltip-customColors"},o().createElement(G.Z,{msgId:"widgets.builder.wizard.classAttributes.editCustomColors"}))},o().createElement(ie.Z,{bsSize:"sm",className:"custom-color-btn btn btn-default ".concat(u.type),onClick:function(){return j(!0)}},o().createElement(oe.Glyphicon,{glyph:"pencil"})))),o().createElement(oe.Col,{xs:I?10:12,className:Et()({"custom-color":I})},o().createElement(_e.Z,{items:Ht(u.type,_,L,B),value:Me()(Ht(u.type,_,L,B).filter((function(e){return u.autoColorOptions&&e.name===u.autoColorOptions.name}))),samples:"pie"===u.type?5:1,onChange:function(e){p("autoColorOptions",zt(zt(zt(zt({},e.options),{},{name:e.name},N?{classification:$t(N,"string")}:{}),F?{rangeClassification:$t(F,"number")}:{}),{},{defaultCustomColor:null!=B?B:"#0888A1"})),e.custom||(p("options.classificationAttribute",void 0),p("options.classificationAttributeType",void 0))}}))))):null,o().createElement(Rt,{modalClassName:"chart-color-class-modal",show:P,onClose:function(){var e=N.filter((function(e){return!e.unique||!e.value})),t=F.filter((function(e){return!e.title}));(e.length>0&&"string"===k||t.length>0&&"number"===k)&&L?T(!0):j(!1)},onSaveClassification:function(){j(!1),p("autoColorOptions.defaultCustomColor",B),p("options.classificationAttribute",L),p("options.classificationAttributeType",k),L&&p("autoColorOptions",zt(zt({},u.autoColorOptions),{},{defaultClassLabel:U||"",classification:N?$t(N,"string"):[],rangeClassification:F?$t(F,"number"):[]}))},onChangeClassAttribute:function(e,t){p("options.classificationAttribute",e),p("options.classificationAttributeType",t)},classificationAttribute:L,classificationAttributeType:k,onUpdateClasses:function(e,t){p("number"===t?"autoColorOptions.rangeClassification":"autoColorOptions.classification",$t(e,t)||[])},options:v,placeHolder:Qt,classification:N,rangeClassification:F,defaultCustomColor:B,onChangeColor:function(e){return p("autoColorOptions.defaultCustomColor",e)},defaultClassLabel:U,onChangeDefaultClassLabel:function(e){return p("autoColorOptions.defaultClassLabel",e)},layer:S,chartType:u.type}),(i=x,a=function(){T(!1)},l=function(){var e,t=Ft([(e=N).filter((function(e){return!e.unique&&!e.value})),e.filter((function(e){return e.unique&&e.value}))],2),n=t[0],r=t[1],o=function(e){return[e.filter((function(e){return!e.title.trim()})),e.filter((function(e){return e.title}))]}(F),i=Ft(o,2),a=i[0],l=i[1];W(n,r,N,"string",k),W(a,l,F,"number",k),T(!1),j(!1)},o().createElement(Be,{show:i,onClose:a,onConfirm:l},o().createElement(G.Z,{msgId:"widgets.builder.wizard.classAttributes.confirmModalMessage"}))),h.showLegend?o().createElement(oe.FormGroup,{controlId:"displayLegend"},o().createElement(oe.Col,{componentClass:oe.ControlLabel,sm:6},o().createElement(G.Z,{msgId:qt("displayLegend",u)})),o().createElement(oe.Col,{sm:6},o().createElement(We.Z,{checked:u.legend,onChange:function(e){p("legend",e)}}))):null,!h.advancedOptions||"chart"!==u.widgetType||"bar"!==u.type&&"line"!==u.type?null:o().createElement(bt,{data:u,classificationAttribute:L,onChange:p}))))},Jt=function(e){var t=e.data,n=void 0===t?{}:t,r=e.onChange,i=void 0===r?function(){}:r,a=e.sampleChart;return o().createElement(oe.Row,null,o().createElement(Ee.Z,{title:o().createElement(G.Z,{msgId:"widgets.widgetOptionsTitle"})}),o().createElement(oe.Col,{key:"sample",xs:12},o().createElement("div",{style:{marginBottom:"30px"}},a)),o().createElement(oe.Col,{key:"form",xs:12},o().createElement(oe.Form,{className:"widget-options-form",horizontal:!0},o().createElement(oe.FormGroup,{controlId:"groupByAttributes"},o().createElement(oe.Col,{componentClass:oe.ControlLabel,sm:6},o().createElement(G.Z,{msgId:"widgets.title"})),o().createElement(oe.Col,{sm:6},o().createElement(oe.FormControl,{value:n.title,type:"text",onChange:function(e){return i("title",e.target.value)}}))),o().createElement(oe.FormGroup,{controlId:"aggregationAttribute"},o().createElement(oe.Col,{componentClass:oe.ControlLabel,sm:6},o().createElement(G.Z,{msgId:"widgets.description"})),o().createElement(oe.Col,{sm:6},o().createElement(oe.FormControl,{value:n.description,type:"text",onChange:function(e){return i("description",e.target.value)}}))))))};var Xt=n(387017),en=n(873339),tn=n(630881),nn=n(908488),rn=n(639837),on=n(342415);function an(){return an=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{}).type;return 0!==(void 0===e?"":e).indexOf("gml:")})).length}))(xe),sn=Re(Kt),un=(0,l.compose)(en.Z,tn.Z,nn.Z,Xt.Z,ln,on.Z,rn.Z)(he.Z),dn=be(he.Z),pn={width:430,height:200},fn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(arguments.length>1?arguments[1]:void 0).hasAggregateProcess;return e.aggregationAttribute&&e.groupByAttributes&&(!t||t&&e.aggregateFunction)||e.classificationAttribute},mn=ye(me),yn=function(e){var t=e.data,n=void 0===t?{}:t,r=e.layer,i=e.dependencies,a=void 0===i?{}:i,l=e.setValid,c=void 0===l?function(){}:l,s=e.hasAggregateProcess;return fn(n.options,{hasAggregateProcess:s})?o().createElement(un,an({key:"preview-chart",onLoad:function(){return c(!0)},onLoadError:function(){return c(!1)},isAnimationActive:!1,dependencies:a,dependenciesMap:n.dependenciesMap},pn,{type:n.type,xAxisOpts:n.xAxisOpts,yAxisOpts:n.yAxisOpts,barChartType:n.barChartType,formula:n.formula,legend:n.legend,cartesian:n.cartesian,layer:n.layer||r,filter:n.filter,geomProp:n.geomProp,mapSync:n.mapSync,autoColorOptions:n.autoColorOptions,options:n.options,yAxis:n.yAxis,xAxisAngle:n.xAxisAngle,yAxisLabel:n.yAxisLabel})):o().createElement(dn,an({hasAggregateProcess:s,key:"sample-chart",isAnimationActive:!1},pn,{type:n.type,autoColorOptions:n.autoColorOptions,legend:n.legend,cartesian:n.cartesian,layer:n.layer||r,yAxis:n.yAxis}))};const gn=(0,l.compose)((0,l.lifecycle)({UNSAFE_componentWillReceiveProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.data,n=void 0===t?{}:t,r=e.valid,o=e.setValid,i=void 0===o?function(){}:o,a=e.hasAggregateProcess;r&&!fn(n.options,{hasAggregateProcess:a})&&i(!1)}}),(0,l.setDisplayName)("ChartWizard"))((function(e){var t=e.onChange,n=void 0===t?function(){}:t,r=e.onFinish,i=void 0===r?function(){}:r,a=e.setPage,l=void 0===a?function(){}:a,c=e.setValid,s=void 0===c?function(){}:c,u=e.data,d=void 0===u?{}:u,p=e.layer,f=void 0===p?{}:p,m=e.step,y=void 0===m?0:m,g=e.types,v=e.featureTypeProperties,b=e.dependencies,h=e.hasAggregateProcess;return o().createElement(mn,{step:y,setPage:l,onFinish:i,isStepValid:function(e){return 0===e?d.chartType:1!==e||fn(d.options,{hasAggregateProcess:h})},hideButtons:!0},o().createElement(cn,{key:"type",featureTypeProperties:v,type:d.type,onSelect:function(e){n("type",e)}}),o().createElement(sn,{hasAggregateProcess:h,dependencies:b,key:"chart-options",featureTypeProperties:v,types:g,data:d,onChange:n,layer:d.layer||f,sampleChart:yn({hasAggregateProcess:h,data:d,layer:d.layer||f,dependencies:b,setValid:function(e){return s(e&&fn(d.options,{hasAggregateProcess:h}))}})}),o().createElement(Jt,{key:"widget-options",data:d,onChange:n,layer:d.layer||f,sampleChart:yn({hasAggregateProcess:h,data:d,layer:d.layer||f,dependencies:b,setValid:function(e){return s(e&&fn(d.options,{hasAggregateProcess:h}))}})}))}));var vn=n(80717);function bn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},n=t.canProceed,r=t.selected,i=t.stepButtons,a=void 0===i?[]:i,l=t.onProceed,c=void 0===l?function(){}:l;return o().createElement(vn.Z,{btnDefaultProps:{className:"square-button-md",bsStyle:"primary",bsSize:"sm"},buttons:[].concat((e=a,function(e){if(Array.isArray(e))return bn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return bn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bn(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),[{onClick:c,disabled:!n,tooltipId:"widgets.builder.wizard.useTheSelectedLayer",visible:r,glyph:"arrow-right"}])})};var En=n(788113);const On=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onClose,n=void 0===t?function(){}:t,r=e.children;return o().createElement("div",{className:"mapstore-flex-container"},o().createElement("div",{className:"m-header bg-body widgets-builder-header"},o().createElement(oe.Row,null,o().createElement(oe.Col,{md:12,className:"text-center",style:{overflow:"hidden",lineHeight:"52px"}},o().createElement(ie.Z,{onClick:function(){return n()},className:"pull-left on-close-btn square-button no-border "},o().createElement(oe.Glyphicon,{glyph:"1-close"})),o().createElement("span",{style:{padding:"50px 0 0 0",fontSize:16}},o().createElement(G.Z,{msgId:"widgets.builder.header.title"})),o().createElement("div",{style:{display:"flex"},className:"square-button pull-right no-border"},o().createElement(oe.Glyphicon,{glyph:"stats",className:"text-primary"})))),o().createElement(oe.Row,{className:"text-center"},o().createElement("div",{className:"m-padding-md"},r))))},wn=On;var Sn=n(513218),Cn=n.n(Sn),Pn=n(441609),jn=n.n(Pn);function An(e){return An="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},An(e)}function xn(e){return function(e){if(Array.isArray(e))return Tn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Tn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Tn(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function kn(e){var t=function(e,t){if("object"!==An(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==An(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===An(t)?t:String(t)}var Rn=n(49977);var Nn=n(739221);const Mn=function(e){var t=e.loadPage,n=e.scrollSpyOptions,r=e.loadStreamOptions,o=e.loadMoreStreamOptions,i=e.hasMore,a=e.isScrolled;return(0,l.compose)(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return Rn.Observable.empty()},t=arguments.length>1?arguments[1]:void 0;return(0,l.mapPropsStream)((function(n){var r=(0,l.createEventHandler)(),o=r.handler,i=r.stream,a=(0,l.createEventHandler)(),c=a.handler,s=a.stream;return n.combineLatest(function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.dataProp,i=void 0===o?"items":o,a=r.initialStreamDebounce,l=void 0===a?0:a,c=r.throttleTime,s=void 0===c?500:c;return e.take(1).concat(e.debounceTime(l)).switchMap((function(e){return n(e,0).startWith({loading:!0}).concat(Rn.Observable.of({loading:!1})).concat(t.throttleTime(s).distinct().exhaustMap((function(t){return n(e,t).startWith({loading:!0}).concat(Rn.Observable.of({loading:!1}))}))).scan((function(e,t){var n=e[i],r=Dn(e,[i].map(kn)),o=t[i],a=Dn(t,[i].map(kn));return Zn(Zn(Ln({},i,o?[].concat(xn(n||[]),xn(o)):n||[]),r),a)})).map((function(e){return Zn({},e)}))})).catch((function(e){return Rn.Observable.of({loading:!1,error:e})}))}(s,i,e,t).startWith({}),(function(e,t){return Zn(Zn(Zn({},e),t),{},{onLoadMore:o,loadFirst:c})}))}))}(t,o),(0,l.defaultProps)({hasMore:i,isScrolled:a}),(0,Nn.Z)(n,r))};var Fn=n(979105),_n=n(379313),zn=n(975480),Un=(0,Te.Z)(["placeholder","clearValueText","noResultsText"])(n(743129).ZP);const Bn=function(e){var t=e.services,n=e.selectedService,r=e.onChangeSelectedService,i=void 0===r?function(){}:r,a=e.onChangeCatalogMode,l=void 0===a?function(){}:a,c=e.isValidServiceSelected;return o().createElement(oe.InputGroup,null,o().createElement(Un,{clearValueText:"catalog.clearValueText",noResultsText:"catalog.noResultsText",clearable:!0,options:t,value:n,onChange:function(e){return i(e&&e.value?e.value:"")},placeholder:"catalog.servicePlaceholder"}),c?o().createElement(oe.InputGroup.Addon,{className:"btn",onClick:function(){return l("edit",!1)}},o().createElement(oe.Glyphicon,{glyph:"pencil"})):null,o().createElement(oe.InputGroup.Addon,{className:"btn",onClick:function(){return l("edit",!0)}},o().createElement(oe.Glyphicon,{glyph:"plus"})))};var Wn=(0,Te.Z)("placeholder")(oe.FormControl);const Gn=function(e){var t,n=e.onSearchTextChange,r=void 0===n?function(){}:n,i=e.onChangeSelectedService,a=void 0===i?function(){}:i,l=e.searchText,c=e.title,s=void 0===c?o().createElement(G.Z,{msgId:"catalog.title"}):c,u=e.services,d=e.showCatalogSelector,p=e.selectedService,f=e.onChangeCatalogMode;return o().createElement(oe.Grid,{className:"catalog-form",fluid:!0},o().createElement(oe.Row,null,o().createElement(oe.Col,{xs:12},o().createElement("h4",{className:"text-center"},s),d?o().createElement(oe.FormGroup,null,o().createElement(Bn,{onChangeCatalogMode:f,services:u,onChangeSelectedService:a,selectedService:{label:null!==(t=null==p?void 0:p.title)&&void 0!==t?t:"",value:null!=p?p:{}},isValidServiceSelected:p})):null,o().createElement(oe.FormGroup,{controlId:"catalog-form"},o().createElement(Wn,{type:"text",placeholder:"catalog.textSearchPlaceholder",value:l,onChange:function(e){return r(e.currentTarget.value)}})))))};function Yn(e){return Yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yn(e)}function Vn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Hn(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:0,a=r.type,l={options:{service:r}},c={};return"csw"===a?c=Hn(Hn({},l),{},{filter:r.filter}):"tms"===a&&(c=l),v().Observable.fromPromise(Z.Z[a].textSearch(r.url,10*i+("csw"===a?1:0),10,t,c)).map((function(e){return{result:e,records:Z.Z[a].getCatalogRecords(e||[],{url:r&&r.url,service:r})}})).map((function(e){return function(e){var t=e.result,n=void 0===t?{}:t,r=e.catalog,i=void 0===r?{}:r;return{items:(e.records||[]).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{title:e.title&&Cn()(e.title)&&e.title.default||e.title,caption:$n(e),description:e.description,preview:i.hideThumbnail?null:e.thumbnail?o().createElement("img",{src:e.thumbnail}):qn,record:Hn(Hn({},e),{},{identifier:$n(e)})}})),total:n&&n.numberOfRecordsMatched}}({records:e.records,result:e.result,catalog:r})}))},scrollSpyOptions:{querySelector:".ms2-border-layout-body .ms2-border-layout-content",pageSize:10}}),(0,l.mapPropsStream)((function(e){return e.merge(e.take(1).switchMap((function(t){var n=t.loadFirst,r=void 0===n?function(){}:n,o=t.services;return e.debounceTime(500).startWith({searchText:""}).distinctUntilKeyChanged("searchText").do((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.searchText,n=e.selectedService;return!jn()(o[n])&&r({text:t,catalog:o[n]})})).ignoreElements()})))})),(0,l.withPropsOnChange)(["selectedService"],(function(e){var t=e.services[e.selectedService];jn()(t)||e.loadFirst({text:e.searchText||"",catalog:t})})))((function(e){var t=e.setSearchText,n=void 0===t?function(){}:t,r=e.selected,i=e.onRecordSelected,a=e.loading,l=e.searchText,c=e.items,u=void 0===c?[]:c,d=e.total,p=e.catalog,f=e.services,m=e.title,y=e.showCatalogSelector,g=void 0===y||y,v=e.error,b=e.onChangeSelectedService,h=void 0===b?function(){}:b,E=e.selectedService,O=e.onChangeCatalogMode,w=void 0===O?function(){}:O;return o().createElement(s.Z,{className:"compat-catalog",header:o().createElement(Gn,{onChangeCatalogMode:w,onChangeSelectedService:h,services:Object.keys(f).map((function(e){var t;return{label:null===(t=f[e])||void 0===t?void 0:t.title,value:Hn(Hn({},f[e]),{},{key:e})}})),selectedService:f[E],showCatalogSelector:g,title:m,searchText:l,onSearchTextChange:n}),footer:o().createElement("div",{className:"catalog-footer"},a?o().createElement(zn.Z,null):null,Ye()(d)?null:o().createElement("span",{className:"res-info"},o().createElement(G.Z,{msgId:"catalog.pageInfoInfinite",msgParams:{loaded:u.length,total:d}})))},o().createElement(Qn,{items:u.map((function(e){return e===r||r&&e&&e.record&&r.identifier===e.record.identifier?Hn(Hn({},e),{},{selected:!0}):e})),loading:a,error:v,onItemClick:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).record;return i(e,p)}}))})),Jn=(0,l.defaultProps)({title:o().createElement(G.Z,{msgId:"widgets.builder.wizard.selectALayer"})})(Kn);var Xn=(0,l.compose)((0,l.branch)((function(){return!(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).catalog}),(0,i.connect)((0,a.P1)(En.R7,(function(e){return{catalog:e}})))))(Jn);const er=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onClose,n=void 0===t?function(){}:t,r=e.setSelected,i=void 0===r?function(){}:r,a=e.onLayerChoice,l=void 0===a?function(){}:a,c=e.stepButtons,u=e.selected,d=e.error,p=e.canProceed,f=e.layer,m=e.catalog,y=e.defaultServices,g=e.onChangeSelectedService,v=e.defaultSelectedService,b=e.onChangeCatalogMode,h=e.dashboardServices,E=e.dashboardSelectedService;return o().createElement(s.Z,{className:"bg-body layer-selector",header:o().createElement(wn,{onClose:n},o().createElement(hn,{stepButtons:c,canProceed:p&&u,onProceed:function(){return l(f)}}),u&&!p&&d?o().createElement(qe.Z,{trigger:!1,glyph:"warning-sign",bsStyle:"warning",title:o().createElement(O.v0,{msgId:"widgets.builder.errors.noWidgetsAvailableTitle"}),text:o().createElement(O.k9,{msgId:"widgets.builder.errors.noWidgetsAvailableDescription"})}):null)},o().createElement(Xn,{onChangeCatalogMode:b,selectedService:""===E?E:void 0===E?v:E,onChangeSelectedService:function(e){return g(e,h||y)},services:h||y,selected:u,catalog:m,onRecordSelected:function(e){return i(e)}}))};function tr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{}).id?"widgets.builder.wizard.updateWidget":"widgets.builder.wizard.addTheWidget"},ir=n(555927),ar=n(367306),lr=n(197395),cr=n(761868),sr=n(521554),ur=n(565080);function dr(e){return dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dr(e)}var pr=["service","catalogServices","error","onAddService","isNew","dashboardServices","defaultServices","defaultSelectedService","dashboardSelectedService"];function fr(){return fr=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n${description}

",excludeShowTemplate:!0},br=(0,l.compose)((0,l.defaultProps)({id:"dashboard-catalog-selector",buttonStyle:{marginBottom:"10px",marginRight:"5px"}}),(0,i.connect)((function(e){return{mode:(0,ar.Yl)(e),dashboardServices:(0,ar.CN)(e),dashboardSelectedService:(0,ar.fd)(e),isNew:(0,ar.Ip)(e)}}),{onChangeSelectedService:ir.tH,onChangeCatalogMode:ir.ak,onDeleteService:ir.qY,onAddService:ir.kk,error:lr.vU}),(0,l.branch)((function(){return"edit"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mode}),(0,l.renderComponent)((function(e){e.service,e.catalogServices;var t,n,i=e.error,a=void 0===i?function(){}:i,l=e.onAddService,c=void 0===l?function(){}:l,s=e.isNew,u=e.dashboardServices,d=e.defaultServices,p=e.defaultSelectedService,f=e.dashboardSelectedService,m=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,pr),y=(t=(0,r.useState)(s?vr:jn()(f)?yr(yr({},d[p]),{},{old:d[p],key:p,excludeShowTemplate:!0}):yr(yr({},u[f]),{},{old:u[f],key:f,excludeShowTemplate:!0})),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return gr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gr(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),g=y[0],v=y[1],b=jn()(u)?d:u;return o().createElement("div",{style:{padding:"1rem",height:"100%"}},o().createElement(sr.Z,fr({onChangeUrl:function(e){return v(yr(yr({},g),{},{url:e}))},onChangeType:function(e){return v(yr(yr({},g),{},{type:e}))},onChangeTitle:function(e){return v(yr(yr({},g),{},{title:e}))},service:g,onChangeServiceFormat:function(e){return v(yr(yr({},g),{},{format:e}))},onToggleAdvancedSettings:function(){return v(yr(yr({},g),{},{showAdvancedSettings:!g.showAdvancedSettings}))},onAddService:function(){if("tms"===g.type||g.title&&g.url){var e=s?g.title+Lt()():g.key,t=yr(yr({},g),{},{key:e});c(t,b,s)}else a({title:"catalog.notification.errorTitle",message:"catalog.notification.warningAddCatalogService"})},onChangeServiceProperty:function(e,t){var n=g;"provider"===e&&(n.provider=t),n[e]?n[e]="boolean"==typeof t?!n[e]:t:n=(0,cr.t8)("".concat(e),t,n),v(n)},onToggleTemplate:function(){return v(yr(yr({},g),{},{showTemplate:!g.showTemplate}))},onToggleThumbnail:function(){return v(yr(yr({},g),{},{hideThumbnail:!g.hideThumbnail}))},serviceTypes:[{name:"csw",label:"CSW"},{name:"wms",label:"WMS"},{name:"wmts",label:"WMTS"},{name:"tms",label:"TMS",allowedProviders:ur.DEFAULT_ALLOWED_PROVIDERS},{name:"wfs",label:"WFS"}],onChangeMetadataTemplate:function(e){return v(yr(yr({},g),{},{metadataTemplate:e}))},services:b},m)))})))),hr=["enabled","onClose","exitButton","editorData","toggleConnection","availableDependencies","dependencies"];function Er(){return Er=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},n=t.step,r=void 0===n?0:n,i=t.editorData,a=void 0===i?{}:i,l=t.valid,c=t.setPage,s=void 0===c?function(){}:c,u=t.onFinish,d=void 0===u?function(){}:u,p=t.stepButtons,f=void 0===p?[]:p,m=t.openFilterEditor,y=void 0===m?function(){}:m;return o().createElement(vn.Z,{btnDefaultProps:{bsStyle:"primary",bsSize:"sm"},buttons:[{onClick:function(){return s(Math.max(0,r-1))},visible:r>0,glyph:"arrow-left",tooltipId:nr(r)}].concat((e=f,function(e){if(Array.isArray(e))return tr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return tr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tr(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),[{visible:r>0,onClick:y,glyph:"filter",tooltipId:"widgets.builder.setupFilter"},{onClick:function(){return s(Math.min(r+1,2))},visible:!(1!==r),disabled:1===r&&!l,glyph:"arrow-right",tooltipId:rr(r)},{onClick:function(){return d(Math.min(r+1,1))},visible:2===r,glyph:"floppy-disk",tooltipId:or(r,a)}])})}));const Sr=(0,l.compose)((0,i.connect)(te.e3),Y,br,(0,l.branch)((function(){return!(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).layer}),(0,l.renderComponent)(F(er))))((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.enabled,n=e.onClose,r=void 0===n?function(){}:n,i=e.exitButton,a=e.editorData,l=e.toggleConnection,c=e.availableDependencies,u=void 0===c?[]:c,d=e.dependencies,p=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,hr);return o().createElement("div",{className:"mapstore-chart-advance-options"},o().createElement(s.Z,{header:o().createElement(wn,{onClose:r},o().createElement(wr,{exitButton:i,editorData:a,toggleConnection:l,availableDependencies:u,onClose:r}))},t?o().createElement(Or,Er({dependencies:d},p)):null))}));function Cr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{}).id?"widgets.builder.wizard.updateWidget":"widgets.builder.wizard.addTheWidget"},jr=n(835420),Ar=(0,Te.Z)("placeholder")(oe.FormControl),xr=(0,Te.Z)("placeholder")(jr.Z);const Tr=function(e){var t=e.data,n=void 0===t?{}:t,r=e.onChange,i=void 0===r?function(){}:r;return o().createElement("div",null,o().createElement(oe.Col,{key:"form",xs:12},o().createElement(oe.Form,null,o().createElement(oe.FormGroup,{controlId:"title"},o().createElement(oe.Col,{sm:12},o().createElement(Ar,{style:{marginBottom:10},placeholder:"widgets.builder.wizard.titlePlaceholder",value:n.title,type:"text",onChange:function(e){return i("title",e.target.value)}}))))),o().createElement(xr,{modules:{toolbar:[[{size:["small",!1,"large","huge"]},"bold","italic","underline","blockquote"],[{list:"bullet"},{align:[]}],[{color:[]},{background:[]},"clean"],["image","link"]]},placeholder:"widgets.builder.wizard.textPlaceholder",value:n&&n.text||"",onChange:function(e){return i("text",e)}}))};var Ir=ye(me),Zr=(0,l.compose)((0,i.connect)(te.e3,{setPage:u.YA,insertWidget:u.Qe,onResetChange:u.Rz},te.eF),(0,l.withProps)((function(e){var t=e.onResetChange,n=void 0===t?function(){}:t;return{exitButton:{glyph:"arrow-left",tooltipId:"widgets.builder.wizard.backToWidgetTypeSelection",onClick:function(){return n("widgetType",void 0)}}}})),K())((function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.step,r=void 0===n?0:n,i=t.editorData,a=void 0===i?{}:i,l=t.stepButtons,c=void 0===l?[]:l,s=t.onFinish,u=void 0===s?function(){}:s;return o().createElement(vn.Z,{btnDefaultProps:{bsStyle:"primary",bsSize:"sm"},buttons:[].concat((e=c,function(e){if(Array.isArray(e))return Cr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Cr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Cr(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),[{onClick:function(){return u(Math.min(r+1,1))},visible:0===r,glyph:"floppy-disk",tooltipId:Pr(r,a)}])})})),Lr=(0,i.connect)(te.e3,{onChange:u.Rz},te.eF)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onChange,n=void 0===t?function(){}:t,r=e.onFinish,i=void 0===r?function(){}:r,a=e.setPage,l=void 0===a?function(){}:a,c=e.step,s=void 0===c?0:c,u=e.editorData,d=void 0===u?{}:u;return o().createElement(Ir,{step:s,setPage:l,onFinish:i,hideButtons:!0},o().createElement(Tr,{key:"widget-options",data:d,onChange:n}))})),Dr=(0,n(218291).Z)()((0,r.lazy)((function(){return Promise.all([n.e(53370),n.e(50337)]).then(n.bind(n,750337))}))),kr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.aggregateFunction&&e.aggregationAttribute&&e.groupByAttributes},Rr=ye(me);const Nr=(0,l.compose)((0,l.lifecycle)({UNSAFE_componentWillReceiveProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.data,n=void 0===t?{}:t,r=e.valid,o=e.setValid,i=void 0===o?function(){}:o;r&&!kr(n.options)&&i(!1)}}))((function(e){var t=e.onChange,n=void 0===t?function(){}:t,r=e.onFinish,i=void 0===r?function(){}:r,a=e.setPage,l=void 0===a?function(){}:a,c=e.data,s=void 0===c?{}:c,u=e.layer,d=void 0===u?{}:u,p=e.step,f=void 0===p?0:p,m=e.types,y=e.featureTypeProperties,g=e.dependencies;return o().createElement(Rr,{step:f,setPage:l,onFinish:i,isStepValid:function(e){return 1!==e||kr(s.options)},hideButtons:!0},o().createElement(Dr,{dependencies:g,key:"chart-options",featureTypeProperties:y,types:m,data:s,onChange:n,layer:s.layer||d}),o().createElement(Jt,{key:"widget-options",data:s,onChange:n,layer:s.layer||d}))}));function Mr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{}).id?"widgets.builder.wizard.updateWidget":"widgets.builder.wizard.addTheWidget"},Ur=["enabled","onClose","editorData","exitButton","toggleConnection","availableDependencies","dependencies"];function Br(){return Br=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{}).featureTypeProperties===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).featureTypeProperties})).do((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.featureTypeProperties,n=void 0===t?[]:t,r=e.onChange,o=void 0===r?function(){}:r,i=e.data,a=void 0===i?{}:i;o&&n.length>0&&!y()(a,"options.propertyName")&&o("options.propertyName",n.filter((function(e){return!(0,w.isGeometryType)(e)})).map((function(e){return{name:e.name}})))})).ignoreElements())})))(Nr)),Gr=(0,l.compose)((0,i.connect)(te.e3,{openFilterEditor:u.fy,setPage:u.YA,onChange:u.Rz,insertWidget:u.Qe},te.eF),B,K(),ee((function(e){return 0===e.step})))((function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.openFilterEditor,i=void 0===r?function(){}:r,a=n.step,l=void 0===a?0:a,c=n.stepButtons,s=void 0===c?[]:c,u=n.editorData,d=void 0===u?{}:u,p=n.setPage,f=void 0===p?function(){}:p,m=n.onFinish,y=void 0===m?function(){}:m;return o().createElement(vn.Z,{btnDefaultProps:{bsStyle:"primary",bsSize:"sm"},buttons:[{onClick:function(){return f(Math.max(0,l-1))},visible:l>0,glyph:"arrow-left",tooltipId:_r(l)}].concat((t=s,function(e){if(Array.isArray(e))return Mr(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return Mr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mr(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),[{visible:l>=0,onClick:i,disabled:!Fr(d),glyph:"filter",tooltipId:"widgets.builder.setupFilter"},{onClick:function(){return f(Math.min(l+1,2))},visible:0===l,disabled:0===l&&!Fr(d),glyph:"arrow-right",tooltipId:(e=Fr(d),e?"widgets.builder.wizard.configureWidgetOptions":"widgets.builder.errors.checkAtLeastOneAttribute")},{onClick:function(){return y(Math.min(l+1,1))},visible:1===l,glyph:"floppy-disk",tooltipId:zr(l,d)}])})}));const Yr=(0,l.compose)((0,i.connect)(te.e3),Y,br,(0,l.branch)((function(){return!(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).layer}),(0,l.renderComponent)(F(er))))((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.enabled,n=e.onClose,r=void 0===n?function(){}:n,i=e.editorData,a=void 0===i?{}:i,l=e.exitButton,c=e.toggleConnection,u=e.availableDependencies,d=void 0===u?[]:u,p=e.dependencies,f=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Ur);return o().createElement(s.Z,{header:o().createElement(wn,{onClose:r},o().createElement(Gr,{editorData:a,exitButton:l,toggleConnection:c,availableDependencies:d,onClose:r}),0===y()(a,"options.propertyName.length")?o().createElement(qe.Z,{trigger:!1,glyph:"exclamation-mark",bsStyle:"warning",text:o().createElement(G.Z,{msgId:"widgets.builder.errors.checkAtLeastOneAttribute"})}):null)},t?o().createElement(Wr,Br({editorData:a,dependencies:p},f)):null)}));var Vr=n(648860);function Hr(e){return function(e){if(Array.isArray(e))return qr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return qr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qr(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{}).id?"widgets.builder.wizard.updateWidget":"widgets.builder.wizard.addTheWidget"},$r=n(5993),Kr=n(651768),Jr=n(75927),Xr=n(616701),eo=(0,p.Z)((function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).map,t=void 0===e?{}:e;return!t.layers||0===(t.layers||[]).filter((function(e){return"background"!==e.group})).length}),(function(){return{glyph:"1-layer",title:o().createElement(G.Z,{msgId:"widgets.selectMap.TOC.noLayerTitle"}),description:o().createElement(G.Z,{msgId:"widgets.selectMap.TOC.noLayerDescription"})}}))(Xr.Z),to=(0,Kr.Z)(Jr.Z),no=(0,l.compose)(Kr.Z,(0,l.withProps)((function(e){var t=e.selectedNode;return{title:t&&t.title}})),(0,$r.Z)("title"))(Ee.Z);const ro=function(e){var t=e.preview,n=e.map,r=void 0===n?{}:n,i=e.onChange,a=void 0===i?function(){}:i,l=e.selectedNodes,c=void 0===l?[]:l,s=e.onNodeSelect,u=void 0===s?function(){}:s,d=e.editNode,p=e.closeNodeEditor,f=void 0===p?function(){}:p,m=e.isLocalizedLayerStylesEnabled;return o().createElement("div",null,o().createElement(Ee.Z,{title:o().createElement(G.Z,{msgId:"widgets.builder.wizard.configureMapOptions"})}),o().createElement("div",{key:"sample",style:{marginTop:10}},o().createElement(Ee.Z,{title:o().createElement(G.Z,{msgId:"widgets.builder.wizard.preview"})}),o().createElement("div",{style:{width:"100%",height:"200px"}},t)),d?[o().createElement(no,{map:r,editNode:d}),o().createElement(to,{closeNodeEditor:f,editNode:d,map:r,onChange:a,isLocalizedLayerStylesEnabled:m})]:[o().createElement(Ee.Z,{title:o().createElement(G.Z,{msgId:"layers"})}),o().createElement(eo,{selectedNodes:c,onSelect:u,onChange:a,map:r})])};var oo=n(36478),io=n(193190),ao=n(135400);function lo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return co(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?co(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function co(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{}).editNode}})),{setEditNode:function(e){return(0,u.t4)("editNode",e)},closeNodeEditor:function(){return(0,u.t4)("editNode",void 0)}});var fo=n(984596),mo=n.n(fo),yo=n(624262);function go(e){return go="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},go(e)}function vo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bo(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:[];return o(n.filter((function(t){return!Le()(mo()(e),(function(e){return e===t.id}))})),i)}}})),wo=(0,l.withHandlers)({onRemoveSelected:function(e){var t=e.selectedLayers,n=void 0===t?[]:t,r=e.removeLayersById,o=void 0===r?function(){}:r,i=e.onNodeSelect,a=void 0===i?function(){}:i;return function(){o(n),n.forEach((function(e){return a(e,"layer",!1)}))}}});var So=n(701469),Co=n.n(So),Po=n(66604),jo=n.n(Po),Ao=n(490173),xo=n(986267),To=n(552259);function Io(e){return Io="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Io(e)}function Zo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lo(e){for(var t=1;t0?i.reduce((function(e,t){return e.crs===t.crs?e:{crs:"differentCRS"}})):{crs:"differentCRS"},l=!!Me()(i)&&"differentCRS"!==a.crs&&a.crs;return l&&Ao.default.defs(l)}},zoomTo:function(e){var t=e.editorData,n=void 0===t?{}:t,r=e.setMap,o=void 0===r?function(){}:r;return function(e){var t,r=(null===(t=n.maps)||void 0===t?void 0:t.find((function(e){return e.mapId===n.selectedMapId})))||{},i=r.layers||[],a=e.map((function(e){return i.find((function(t){return t.id===e}))})).filter((function(e){return e})).filter((function(e){return e.bbox})).map((function(e){return e.bbox})),l=a.length>1?a.reduce((function(e,t){return{bounds:{maxx:e.bounds.maxx>t.bounds.maxx?e.bounds.maxx:t.bounds.maxx,maxy:e.bounds.maxy>t.bounds.maxy?e.bounds.maxy:t.bounds.maxy,minx:e.bounds.minx=180&&s[3]>=90)c=1;else{var p=xo.default.reprojectBbox(s,l.crs,r.projection||"EPSG:4326");c=To.default.getZoomForExtent(p,r.size,0,21,null)}var f={minx:u[0],miny:u[1],maxx:u[2],maxy:u[3]},m=Lo(Lo({},r.bbox),{},{bounds:f});o(Lo(Lo({},r),{},{center:d,zoom:c,bbox:m,mapStateSource:"tool"}))}}}}),(0,l.withProps)((function(e){var t=e.isEpsgSupported;return{epsgSupported:(void 0===t?function(){}:t)()}}))),ko=(0,l.compose)((0,l.withProps)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.availableDependencies,n=void 0===t?[]:t,r=e.editorData,o=void 0===r?{}:r;return{availableDependencies:n.filter((function(e){return!(o.id&&e.indexOf(o.id)>=0)}))}})),(0,l.withProps)((function(e){var t=e.editorData;return{canConnect:!0,connected:!!(void 0===t?{}:t).mapSync}})),z({center:"center",zoom:"zoom",filter:"filter",quickFilters:"quickFilters",layer:"layer",options:"options",mapSync:"mapSync",dependenciesMap:"dependenciesMap"})),Ro=(0,l.compose)((0,i.connect)(te.e3,{setPage:u.YA,onChange:u.Rz,insertWidget:u.Qe},te.eF),Oo,po,wo,Do,(0,l.branch)((function(e){return!!e.editNode}),(0,l.withProps)((function(e){var t=e.selectedNodes,n=void 0===t?[]:t,r=e.setEditNode,o=void 0===r?function(){}:r;return{buttons:[{visible:1===n.length,tooltipId:"close",glyph:"1-close",onClick:function(){return o(!1)}}]}})),(0,l.withProps)((function(e){var t=e.selectedNodes,n=void 0===t?[]:t,r=e.epsgSupported,o=void 0!==r&&r,i=e.onRemoveSelected,a=void 0===i?function(){}:i,l=e.setEditNode,c=void 0===l?function(){}:l,s=e.zoomTo,u=void 0===s?function(){}:s;return{tocButtons:[{visible:n.length>0,glyph:"zoom-to",tooltipId:1===n.length?"toc.toolZoomToLayerTooltip":"toc.toolZoomToLayersTooltip",disabled:!o,onClick:o?function(){return u(n)}:function(){}},{visible:1===n.length,glyph:"wrench",tooltipId:"toc.toolLayerSettingsTooltip",onClick:function(){return c(n[0])}},{onClick:function(){return a()},visible:n.length>0,glyph:"trash",tooltipId:"toc.toolTrashLayerTooltip"}]}}))),ko,K(void 0,{tooltipId:"widgets.builder.wizard.backToMapSelection"}),ee((function(e){var t,n=e.step,r=e.editorData,o=null==r||null===(t=r.maps)||void 0===t?void 0:t.some((function(e){return e.name===To.EMPTY_MAP}));return 0===n&&!o})));var No=(0,l.compose)((0,l.branch)((function(){return!(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).catalog}),(0,i.connect)((0,a.P1)(En.R7,(function(e){return{catalog:e}})))))(Jn),Mo=n(291312),Fo=["items","total"];function _o(e){return _o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_o(e)}function zo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Bo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wo(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return{id:e.id,title:e.name,description:e.description,preview:e.thumbnail?o().createElement("img",{src:decodeURIComponent(e.thumbnail)}):qo,map:e}})),total:n}},$o=function(e){var t=e.text,n=void 0===t?"*":t,r=e.options,o=void 0===r?{}:r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(0,Mo.jh)({category:"MAP",query:n,options:Wo({params:{start:10*i,limit:10}},o)}).map(Qo).catch((function(e){return v().Observable.of({error:e,items:[],total:0})}))},Ko={querySelector:".ms2-border-layout-body .ms2-border-layout-content",pageSize:10},Jo=(0,l.compose)(Mn((Vo=(Go={loadPage:$o,scrollSpyOptions:Ko,hasMore:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.total,n=e.items;return t>(void 0===n?[]:n).length}}).loadPage,Ho=Go.scrollSpyOptions,Wo(Wo({},Uo(Go,["loadPage","scrollSpyOptions"])),{},{scrollSpyOptions:Wo({skip:1},Ho),loadPage:(Yo=Vo,function(e,t){return e.disableEmptyMap||0!==t||!e||e.text?Yo(e,t):Yo(e,t).map((function(e){var t,n=e.items,r=e.total;return Wo(Wo({},Uo(e,Fo)),{},{total:r,items:[{id:To.EMPTY_MAP,title:o().createElement(G.Z,{msgId:"widgets.selectMap.emptyMap.title"}),description:o().createElement(G.Z,{msgId:"widgets.selectMap.emptyMap.description"}),preview:qo,map:{id:"configs/new.json"}}].concat((t=n,function(e){if(Array.isArray(e))return zo(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return zo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zo(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))})}))}),hasMore:function(e){var t=e.total,n=e.items;return n&&n.length>=1&&n[0].id===To.EMPTY_MAP?t>n.length-1:t>n.length}}))),(0,l.withProps)((function(e){var t=e.items;return{skip:t&&t[0]&&t[0].id===To.EMPTY_MAP?1:0}}))),Xo=(0,Fn.Z)("searchText","setSearchText",""),ei=(Mn({loadPage:$o,scrollSpyOptions:Ko,hasMore:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.total,n=e.items;return t>(void 0===n?[]:n).length}}),(0,l.mapPropsStream)((function(e){return e.merge(e.take(1).switchMap((function(t){var n=t.loadFirst,r=void 0===n?function(){}:n,o=t.disableEmptyMap;return e.debounceTime(500).startWith({searchText:""}).distinctUntilKeyChanged("searchText",(function(e,t){return e===t})).do((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.searchText,n=e.options;return r({text:t,options:n,disableEmptyMap:o})})).ignoreElements()})))})));const ti=(0,l.compose)(Xo,Jo,ei);var ni=(0,Te.Z)("placeholder")(oe.FormControl);const ri=function(e){var t=e.onSearchTextChange,n=void 0===t?function(){}:t,r=e.searchText,i=e.title,a=e.subTitle,l=void 0===a?null:a;return o().createElement(oe.Grid,{className:"catalog-form",fluid:!0},o().createElement(oe.Row,null,o().createElement(oe.Col,{xs:12},i&&o().createElement("h4",{className:"text-center"},i),l,o().createElement(oe.FormGroup,{controlId:"catalog-form"},o().createElement(ni,{type:"text",placeholder:"catalog.textSearchPlaceholder",value:r,onChange:function(e){return n(e.currentTarget.value)}})))))};function oi(e){return oi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oi(e)}function ii(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ai(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.onMapSelected,n=void 0===t?function(){}:t,r=e.selectedSource,o=void 0===r?{}:r,i=e.includeMapId,a=void 0!==i&&i;return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return di().all(mo()(e).map((function(e){return("string"==typeof e.id?di().get(e.id).then((function(e){return e.data})):(0,Mo.RX)(e.id,{baseURL:o.baseURL,includeAttributes:!1}).toPromise().then((function(e){return e.data}))).then((function(t){var n=t.version||"string"==typeof e.id?pi.ZP.normalizeConfig(t.map):pi.ZP.convertFromLegacy(t);return bi(bi(bi({mapId:yi()(),name:"string"==typeof e.id?To.EMPTY_MAP:e.name},n&&n.map||{}),a?{id:e.id}:{}),{},{groups:n&&n.groups||[],layers:(0,yo.IK)(n.layers.map((function(e){return"background"!==e.group||"ol"!==e.type&&"OpenLayers.Layer"!==e.type||(e.type="empty"),e})))})})).then((function(e){return e.layers=e.sources?e.layers.map((function(t){var n=(0,yo.gv)(e.sources,t);return bi(bi({},t),n)})):e.layers,bi(bi({},e),{},{mapInfoControl:!0})}))}))).then((function(e){return n({maps:e})}))}}}),(0,l.mapPropsStream)((function(e){return e.distinctUntilKeyChanged("selected").filter((function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).selected})).startWith({}).combineLatest(e,(function(){return bi({canProceed:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).canProceed},arguments.length>1?arguments[1]:void 0)}))})));function Ei(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?o().createElement(zn.Z,null):null,Ye()(y)?null:o().createElement("span",{className:"res-info"},o().createElement(G.Z,{msgId:"catalog.pageInfoInfinite",msgParams:{loaded:p.length-a,total:y}})))},o().createElement(ci,{loaderProps:m,items:p.map((function(e){return!jn()(r)&&e&&e.map&&r.some((function(t){return t.id===e.map.id}))?ai(ai({},e),{},{selected:!0}):e})),loading:c,onItemClick:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).map;return(arguments.length>2?arguments[2]:void 0).ctrlKey?l(jn()(r)?mo()(e):mo()(r).concat(e)):l(mo()(e))}}))}));const wi=hi((function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.onClose,r=void 0===n?function(){}:n,i=t.setSelected,a=void 0===i?function(){}:i,l=t.onMapChoice,c=void 0===l?function(){}:l,u=t.stepButtons,d=void 0===u?[]:u,p=t.selected,f=t.disableEmptyMap,m=t.mapLoading,y=t.setMapLoading,g=void 0===y?function(){}:y;return o().createElement(s.Z,{className:"bg-body layer-selector",header:o().createElement(On,{onClose:r},o().createElement(vn.Z,{btnDefaultProps:{bsStyle:"primary",bsSize:"sm"},buttons:[].concat((e=d,function(e){if(Array.isArray(e))return Ei(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Ei(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ei(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),[{tooltipId:"widgets.builder.wizard.".concat((null==p?void 0:p.length)>1?"useTheseMap":"useThisMap"),onClick:function(){c(p),g(!0)},visible:!0,disabled:!p||m,glyph:"arrow-right"}])}))},o().createElement(Oi,{title:o().createElement(G.Z,{msgId:"widgets.builder.wizard.selectAMap"}),selected:p,onSelected:function(e){a(e),g(!1)},disableEmptyMap:f}))})),Si=(0,l.compose)((0,i.connect)((function(){return{}}),{onMapSelected:function(e){var t=e.maps;return(0,u.Rz)("maps",t)},onResetChange:u.Rz}),(0,l.withProps)((function(e){var t=e.onResetChange,n=void 0===t?function(){}:t;return{stepButtons:[{glyph:"arrow-left",tooltipId:"widgets.builder.wizard.backToWidgetTypeSelection",onClick:function(){n("maps",void 0),n("selectedMapId",void 0),n("widgetType",void 0)}}]}})))(wi);var Ci=["enabled","onClose","toggleLayerSelector","editorData","editNode","setEditNode","closeNodeEditor","isLocalizedLayerStylesEnabled","env","selectedGroups","exitButton","selectedLayers","selectedNodes","onNodeSelect","availableDependencies","toggleConnection"];function Pi(){return Pi=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.step,n=void 0===t?0:t,r=e.buttons,i=e.tocButtons,a=void 0===i?[]:i,l=e.stepButtons,c=void 0===l?[]:l,s=e.dashBoardEditing,u=void 0!==s&&s,d=e.editorData,p=void 0===d?{}:d,f=e.setPage,m=void 0===f?function(){}:f,y=e.onFinish,g=void 0===y?function(){}:y,v=e.toggleLayerSelector,b=void 0===v?function(){}:v,h=e.onChange,E=void 0===h?function(){}:h,O=((null==p?void 0:p.maps)||[]).find((function(e){return e.mapId===(null==p?void 0:p.selectedMapId)}))||{},w="map"===(null==p?void 0:p.widgetType)&&jn()(O);return o().createElement(vn.Z,{btnDefaultProps:{bsStyle:"primary",bsSize:"sm"},buttons:r||[].concat(Hr(0===n?a:[]),[{onClick:function(){return m(Math.max(n-1,0))},visible:1===n,glyph:"arrow-left",tooltipId:"widgets.builder.wizard.configureMapOptions"}],Hr(c),[{onClick:function(){return E("maps[".concat(null==p?void 0:p.selectedMapId,"].mapInfoControl"),!(null!=O&&O.mapInfoControl))},visible:!w&&u&&"map"===(null==p?void 0:p.widgetType),glyph:"info-sign",bsStyle:null!=O&&O.mapInfoControl?"success":"primary",tooltipId:null!=O&&O.mapInfoControl?"widgets.builder.wizard.disableIdentifyTool":"widgets.builder.wizard.enableIdentifyTool"},{onClick:function(){return b(!0)},visible:!w&&0===n,glyph:"plus",tooltipId:"widgets.builder.wizard.addLayer"},{onClick:function(){return m(Math.min(n+1,2))},visible:!w&&0===n,glyph:"arrow-right",tooltipId:"widgets.builder.wizard.configureWidgetOptions"},{onClick:function(){return g(Math.min(n+1,1))},visible:1===n,glyph:"floppy-disk",tooltipId:Qr(n,p)}])})})),Ai=(0,l.compose)((0,i.connect)(te.e3,{onResetChange:u.Rz}),(0,l.branch)((function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).editorData;return!(void 0===e?{}:e).maps}),(0,l.renderComponent)(Si)),(0,l.withState)("layerSelectorOpen","toggleLayerSelector",!1),br,(0,l.branch)((function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).layerSelectorOpen;return void 0!==e&&e}),(0,l.renderComponent)((0,l.compose)(Oo,(0,l.withHandlers)({onLayerChoice:function(e){var t=e.toggleLayerSelector,n=void 0===t?function(){}:t,r=e.addLayer,o=void 0===r?function(){}:r;return function(e){o(e),n(!1)}}}),N)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onClose,n=void 0===t?function(){}:t,r=e.setSelected,i=void 0===r?function(){}:r,a=e.onLayerChoice,l=void 0===a?function(){}:a,c=e.toggleLayerSelector,u=void 0===c?function(){}:c,d=e.selected,p=e.canProceed,f=e.layer,m=e.catalog,y=e.onChangeSelectedService,g=e.defaultServices,v=e.defaultSelectedService,b=e.onChangeCatalogMode,h=e.dashboardServices,E=e.dashboardSelectedService;return o().createElement(s.Z,{className:"bg-body layer-selector",header:o().createElement(wn,{onClose:n},o().createElement(vn.Z,{btnDefaultProps:{className:"square-button-md",bsStyle:"primary",bsSize:"sm"},buttons:[{onClick:function(){return u(!1)},tooltipId:"close",glyph:"1-close"},{onClick:function(){return l(f)},disabled:!d||!p,tooltipId:"widgets.builder.wizard.useTheSelectedLayer",glyph:"plus"}]}),d&&!p?o().createElement(qe.Z,{glyph:"exclamation-mark",bsStyle:"warning",title:o().createElement(O.v0,{msgId:"widgets.builder.errors.noWidgetsAvailableTitle"}),text:o().createElement(O.k9,{msgId:"widgets.builder.errors.noWidgetsAvailableDescription"})}):null)},o().createElement(No,{onChangeCatalogMode:b,selectedService:""===E?E:void 0===E?v:E,onChangeSelectedService:function(e){return y(e,h||g)},services:h||g,catalog:m,selected:d,onRecordSelected:function(e){return i(e)}}))})))),(0,l.withProps)((function(e){var t=e.onResetChange,n=void 0===t?function(){}:t;return{exitButton:{glyph:"arrow-left",onClick:function(){n("maps",void 0),n("selectedMapId",void 0)}}}}))),xi=(0,i.connect)(te.e3,{onChange:u.Rz},te.eF)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onChange,n=void 0===t?function(){}:t,i=e.onFinish,a=void 0===i?function(){}:i,l=e.setPage,c=void 0===l?function(){}:l,s=e.step,u=void 0===s?0:s,d=e.selectedNodes,p=void 0===d?[]:d,f=e.onNodeSelect,m=void 0===f?function(){}:f,y=e.editorData,g=void 0===y?{}:y,v=e.editNode,b=e.setEditNode,h=void 0===b?function(){}:b,E=e.closeNodeEditor,O=void 0===E?function(){}:E,w=e.isLocalizedLayerStylesEnabled,S=e.env,C=lo((0,r.useState)({}),2),P=C[0],j=C[1],A=lo((0,r.useState)(!1),2),x=A[0],T=A[1];return o().createElement(so,{step:u,setPage:c,onFinish:a,hideButtons:!0},o().createElement("div",null,x&&o().createElement(ao.Z,{glyph:"1-map",title:o().createElement(G.Z,{msgId:"widgets.selectMap.emptyMap.title"}),description:o().createElement(G.Z,{msgId:"widgets.selectMap.emptyMap.noNameDescription"})}),o().createElement(io.Z,{editorData:g,onChange:n,value:g.selectedMapId,setSelectedMap:j,selectedMap:P,setEmptyMap:T,emptyMap:x,withContainer:!0}),!x&&o().createElement(ro,{editNode:v,setEditNode:h,closeNodeEditor:O,onNodeSelect:m,selectedNodes:p,onChange:n,isLocalizedLayerStylesEnabled:w,preview:o().createElement(oo.Z,{key:g.selectedMapId,onChange:n,layers:P&&P.layers,map:P,env:S,options:{style:{margin:10,height:"calc(100% - 20px)"}}}),map:P})),o().createElement(Jt,{key:"widget-options",data:g,onChange:n}))}));const Ti=(0,l.compose)(Ai,(0,l.withProps)((function(e){var t=e.editorData,n=void 0===t?{}:t;return{map:Le()(n.maps,(function(e){return e.mapId===n.selectedMapId}))||{}}})),uo,Vr.Z,po)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.enabled,n=e.onClose,r=void 0===n?function(){}:n,i=e.toggleLayerSelector,a=void 0===i?function(){}:i,l=e.editorData,c=void 0===l?{}:l,u=e.editNode,d=e.setEditNode,p=e.closeNodeEditor,f=e.isLocalizedLayerStylesEnabled,m=e.env,y=e.selectedGroups,g=void 0===y?[]:y,v=e.exitButton,b=e.selectedLayers,h=void 0===b?[]:b,E=e.selectedNodes,O=e.onNodeSelect,w=void 0===O?function(){}:O,S=e.availableDependencies,C=void 0===S?[]:S,P=e.toggleConnection,j=void 0===P?function(){}:P,A=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Ci);return o().createElement(s.Z,{className:"map-selector",header:o().createElement(wn,{onClose:r},o().createElement(ji,{exitButton:v,editorData:c,availableDependencies:C,toggleConnection:j,selectedNodes:E,selectedLayers:h,selectedGroups:g,onNodeSelect:w,toggleLayerSelector:a}))},t?o().createElement(xi,Pi({setEditNode:d,editNode:u,closeNodeEditor:p,onNodeSelect:w,isLocalizedLayerStylesEnabled:f,env:m,selectedNodes:E},A)):null)})),Ii=(0,l.compose)((0,l.setDisplayName)("CounterLayerSelector"),M,(0,l.defaultProps)({layerValidationStream:function(e){return e.switchMap((function(e){return function(e){return g.Observable.forkJoin((0,b.v$)({layer:e}),E(e))}(e)}))}}),A,N);var Zi=n(39589),Li=n(980844);function Di(){return Di=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=(arguments.length>1?arguments[1]:void 0).hasAggregateProcess;return e.aggregateFunction&&e.aggregationAttribute&&t},Mi=(0,l.compose)((0,l.lifecycle)({UNSAFE_componentWillReceiveProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.valid,n=e.data,r=void 0===n?[]:n,o=e.options,i=void 0===o?{}:o,a=e.setValid,l=void 0===a?function(){}:a,c=e.error,s=e.hasAggregateProcess,u=!Ye()(r[0])&&!c;!!t!=!!u&&Ni(i,{hasAggregateProcess:s})&&l(u)}})),Fi=(0,l.compose)(en.Z,tn.Z,nn.Z,Zi.Z,Mi,ki,on.Z,rn.Z),_i={style:{width:450,height:100}},zi=ye(me),Ui=Fi(Li.Z),Bi=function(e){var t=e.data,n=void 0===t?{}:t,r=e.layer,i=e.dependencies,a=void 0===i?{}:i,l=e.valid,c=e.setValid,s=void 0===c?function(){}:c,u=e.hasAggregateProcess;return Ni(n.options,{hasAggregateProcess:u})?o().createElement(Ui,Di({hasAggregateProcess:u},_i,{valid:l,dependenciesMap:n.dependenciesMap,dependencies:a,setValid:s,type:n.type,legend:n.legend,layer:n.layer||r,filter:n.filter,geomProp:n.geomProp,mapSync:n.mapSync,options:n.options})):o().createElement(Li.Z,Di({},_i,{data:[{data:42}],options:n.options,series:[{dataKey:"data"}]}))};const Wi=(0,l.compose)((0,l.lifecycle)({UNSAFE_componentWillReceiveProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.data,n=void 0===t?{}:t,r=e.valid,o=e.setValid,i=void 0===o?function(){}:o,a=e.hasAggregateProcess;r&&!Ni(n.options,{hasAggregateProcess:a})&&i(!1)}}))((function(e){var t=e.onChange,n=void 0===t?function(){}:t,r=e.onFinish,i=void 0===r?function(){}:r,a=e.setPage,l=void 0===a?function(){}:a,c=e.setValid,s=void 0===c?function(){}:c,u=e.valid,d=e.formOptions,p=e.data,f=void 0===p?{}:p,m=e.layer,y=void 0===m?{}:m,g=e.step,v=void 0===g?0:g,b=e.types,h=e.featureTypeProperties,E=e.dependencies,O=e.hasAggregateProcess;return o().createElement(zi,{step:v,setPage:l,onFinish:i,isStepValid:function(e){return 1!==e||Ni(f.options,{hasAggregateProcess:O})},hideButtons:!0},o().createElement(Ri,{hasAggregateProcess:O,dependencies:E,key:"chart-options",formOptions:d,featureTypeProperties:h,types:b,data:f,onChange:n,layer:f.layer||y,sampleChart:o().createElement(Bi,{hasAggregateProcess:O,data:f,valid:u,layer:f.layer||y,dependencies:E,setValid:function(e){return s(e&&Ni(f.options,{hasAggregateProcess:O}))}})}),o().createElement(Jt,{key:"widget-options",data:f,onChange:n,layer:f.layer||y,sampleChart:o().createElement(Bi,{hasAggregateProcess:O,data:f,valid:u,layer:f.layer||y,dependencies:E,setValid:function(e){return s(e&&Ni(f.options,{hasAggregateProcess:O}))}})}))}));function Gi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{}).id?"widgets.builder.wizard.updateWidget":"widgets.builder.wizard.addTheWidget"},qi=["enabled","onClose","exitButton","editorData","toggleConnection","availableDependencies","dependencies"];function Qi(){return Qi=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},n=t.openFilterEditor,r=void 0===n?function(){}:n,i=t.step,a=void 0===i?0:i,l=t.stepButtons,c=void 0===l?[]:l,s=t.editorData,u=void 0===s?{}:s,d=t.valid,p=t.setPage,f=void 0===p?function(){}:p,m=t.onFinish,y=void 0===m?function(){}:m;return o().createElement(vn.Z,{btnDefaultProps:{bsStyle:"primary",bsSize:"sm"},buttons:[{onClick:function(){return f(Math.max(0,a-1))},visible:a>0,glyph:"arrow-left",tooltipId:Yi(a)}].concat((e=c,function(e){if(Array.isArray(e))return Gi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Gi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Gi(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),[{visible:0===a,onClick:r,disabled:!d,glyph:"filter",tooltipId:"widgets.builder.setupFilter"},{onClick:function(){return f(Math.min(a+1,2))},visible:0===a,disabled:0===a&&!d,glyph:"arrow-right",tooltipId:Vi(a)},{onClick:function(){return y(Math.min(a+1,1))},visible:1===a,glyph:"floppy-disk",tooltipId:Hi(a,u)}])})}));const Ji=(0,l.compose)((0,i.connect)(te.e3),Y,br,(0,l.branch)((function(){return!(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).layer}),(0,l.renderComponent)(Ii(er))))((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.enabled,n=e.onClose,r=void 0===n?function(){}:n,i=e.exitButton,a=e.editorData,l=e.toggleConnection,c=e.availableDependencies,u=void 0===c?[]:c,d=e.dependencies,p=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,qi);return o().createElement(s.Z,{header:o().createElement(wn,{onClose:r},o().createElement(Ki,{exitButton:i,editorData:a,toggleConnection:l,availableDependencies:u,onClose:r}))},t?o().createElement($i,Qi({formOptions:{showColorRamp:!1,showUom:!0,showGroupBy:!1,showLegend:!1},dependencies:d},p)):null)}));function Xi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{}).id?"widgets.builder.wizard.updateWidget":"widgets.builder.wizard.addTheWidget"},ra=n(946173),oa=n(213314),ia=n(70919),aa=ye(me),la=(0,l.compose)(oa.Z,(0,p.Z)((function(e){return!e.valid}),{title:o().createElement(G.Z,{msgId:"widgets.builder.errors.noMapAvailableForLegend"}),description:o().createElement(G.Z,{msgId:"widgets.builder.errors.noMapAvailableForLegendDescription"})}),(0,ra.Z)(!1))(ia.Z),ca=n(308316);const sa=(0,l.compose)((0,l.withProps)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.availableDependencies,n=void 0===t?[]:t,r=e.editorData,o=void 0===r?{}:r;return{availableDependencies:n.filter((function(e){return!(o.id&&e.indexOf(o.id)>=0)}))}})),(0,l.withProps)((function(e){var t=e.editorData,n=void 0===t?{}:t,r=e.availableDependencies;return{canConnect:(void 0===r?[]:r).length>0,connected:!!n.mapSync}})));var ua=["enabled","onClose","editorData","exitButton","toggleConnection","availableDependencies","dependencies"];function da(){return da=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&r.mapSync}})),fa=(0,a.P1)(ca.Pz,(function(e){return{currentLocale:e}})),ma=(0,l.compose)((0,i.connect)(te.e3,{setPage:u.YA,onEditorChange:u.Rz,insertWidget:u.Qe,updateWidgetProperty:u.Ij},te.eF),(0,i.connect)(fa),pa,(0,l.renameProps)({editorData:"data",onEditorChange:"onChange",updateWidgetProperty:"updateProperty"}))((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onChange,n=void 0===t?function(){}:t,r=e.onFinish,i=void 0===r?function(){}:r,a=e.setPage,l=void 0===a?function(){}:a,c=e.step,s=void 0===c?0:c,u=e.dependencies,d=e.valid,p=e.data,f=void 0===p?{}:p,m=e.currentLocale,y=e.language,g=e.updateProperty,v=void 0===g?function(){}:g;return o().createElement(aa,{step:s,setPage:l,onFinish:i,hideButtons:!0},o().createElement(oe.Row,null,o().createElement(Ee.Z,{title:o().createElement(G.Z,{msgId:"widgets.builder.wizard.preview"})}),o().createElement(oe.Col,{xs:12},o().createElement("div",{style:{marginBottom:"30px"}},o().createElement(la,{valid:d,dependencies:u,dependenciesMap:f.dependenciesMap,key:"widget-options",currentLocale:m,language:y,updateProperty:v,disableVisibility:!0,disableOpacitySlider:!0,legendExpanded:!0})))),o().createElement(Jt,{key:"widget-options",onChange:n}))})),ya=(0,l.compose)((0,i.connect)(te.e3,{openFilterEditor:u.fy,setPage:u.YA,onChange:u.Rz,insertWidget:u.Qe},te.eF),sa,pa,(0,i.connect)((function(){return{}}),{onLayerChoice:function(e){return(0,u.Rz)("layer",e)},onResetChange:u.Rz}),(0,l.withProps)((function(e){var t=e.onResetChange,n=void 0===t?function(){}:t;return{exitButton:{glyph:"arrow-left",tooltipId:"widgets.builder.wizard.backToWidgetTypeSelection",onClick:function(){return n("widgetType",void 0)}}}})),K((function(e){return 0===e.step})),ee((function(e){return 0===e.step})))((function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.step,i=void 0===r?0:r,a=n.editorData,l=void 0===a?{}:a,c=n.valid,s=n.stepButtons,u=void 0===s?[]:s,d=n.onFinish,p=void 0===d?function(){}:d,f=n.setPage,m=void 0===f?function(){}:f;return o().createElement(vn.Z,{btnDefaultProps:{bsStyle:"primary",bsSize:"sm"},buttons:[{onClick:function(){return m(Math.max(0,i-1))},visible:i>0,glyph:"arrow-left",tooltipId:ea(i)}].concat((t=u,function(e){if(Array.isArray(e))return Xi(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return Xi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xi(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),[{onClick:function(){return m(Math.min(i+1,1))},visible:0===i,disabled:0===i&&(e=l,!e.mapSync)||!c,glyph:"arrow-right",tooltipId:ta(0,c)},{onClick:function(){return p(Math.min(i+1,1))},visible:1===i,glyph:"floppy-disk",tooltipId:na(i,l)}])})}));const ga=(0,l.compose)((0,i.connect)(te.e3),Y,sa,z({layers:"layers",zoom:"zoom",viewport:"viewport"}),(0,l.mapPropsStream)((function(e){return e.merge(e.filter((function(e){var t=e.editorData;return!(void 0===t?{}:t).mapSync})).take(1).distinctUntilChanged().do((function(e){var t=e.toggleConnection;return(void 0===t?function(){}:t)(e.availableDependencies,e.widgets)})).ignoreElements())})))((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.enabled,n=e.onClose,r=void 0===n?function(){}:n,i=e.editorData,a=void 0===i?{}:i,l=e.exitButton,c=e.toggleConnection,u=e.availableDependencies,d=void 0===u?[]:u,p=e.dependencies,f=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,ua);return o().createElement(s.Z,{header:o().createElement(wn,{onClose:r},o().createElement(ya,{editorData:a,exitButton:l,toggleConnection:c,availableDependencies:d,onClose:r}),0===y()(a,"options.propertyName.length")?o().createElement(qe.Z,{trigger:!1,glyph:"exclamation-mark",bsStyle:"warning",text:o().createElement(G.Z,{msgId:"widgets.builder.errors.checkAtLeastOneAttribute"})}):null)},t?o().createElement(ma,da({availableDependencies:d,editorData:a,dependencies:p},f)):null)}));function va(e){return va="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},va(e)}function ba(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ha(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.enabled,n=e.onClose,r=void 0===n?function(){}:n;return o().createElement(s.Z,{header:o().createElement(wn,{onClose:r},o().createElement(Zr,null))},t?o().createElement(Lr,null):null)},table:Yr,map:Ti,counter:Ji,legend:ga};const ja=(0,l.compose)((0,i.connect)(Ca),(0,l.withProps)((function(e){var t=e.typeFilter,n=void 0===t?function(){return!0}:t,r=e.availableDependencies,o=void 0===r?[]:r;return{typeFilter:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(e)&&!("legend"===e.type&&0===o.length)}}})),(0,l.branch)((function(){return!(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).widgetType}),(0,l.renderComponent)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.enabled,n=e.onClose,r=void 0===n?function(){}:n,i=e.typeFilter;return o().createElement(s.Z,{className:"bg-body",header:o().createElement(wn,{onClose:r},o().createElement(G.Z,{msgId:"widgets.selectWidgetType"}))},t?o().createElement(Oa,{typeFilter:i}):null)})),(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.widgetType,n=e.onClose,r=void 0===n?function(){}:n,i=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,wa),a=Pa[t];return o().createElement(a,Sa({},i,{onClose:r,widgetType:t}))}})))()},296311:(e,t,n)=>{"use strict";n.d(t,{eF:()=>f,e3:()=>m,Nb:()=>y,Tw:()=>g});var r=n(414293),o=n.n(r),i=n(22222),a=n(367306),l=n(308316),c=n(38842),s=n(401757);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return p(p(p(p({},n),e),t),{},{step:e&&e.settings&&e.settings.step,valid:e&&e.settings&&e.settings.valid,onFinish:function(){return t.insertWidget&&t.insertWidget(p({layer:e.layer,url:e.layer&&e.layer.url},e.editorData||{}),n.target)}})},m=(0,i.P1)(s.GW,s.YI,s.E2,s.zm,a.i$,(function(e,t,n,r,o){return{layer:t&&t.layer||e,editorData:t,settings:n,widgets:r,dashBoardEditing:o}})),y=(0,i.P1)(s.YI,a.P0,s.h9,s.zA,(function(e,t,n,r){return p({layer:e.layer,showConnections:t,dependencies:n},r)})),g=(0,i.P1)(c.Yf,l.KV,c.fY,(function(e,t,n){return{isLocalizedLayerStylesEnabled:!o()(e),language:t,env:n}}));s.GW,s.zA},666379:(e,t,n)=>{var r=n(702958),o=n(301499);e.exports=function(e,t){return e===t||r(e,t,o(t))}},807654:(e,t,n)=>{var r=n(281763);e.exports=function(e){return r(e)&&e!=+e}},264317:(e,t,n)=>{"use strict";var r=i(n(1174)),o=i(n(692381));function i(e){return e&&e.__esModule?e:{default:e}}e.exports={TransitionGroup:o.default,CSSTransitionGroup:r.default}}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/65214.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/65214.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/65214.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/65214.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/65255.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/65255.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/65255.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/65255.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/65287.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/65287.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/65287.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/65287.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/65455.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/65455.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/65455.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/65455.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/65475.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/65475.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/65475.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/65475.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/65528.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/65528.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/65528.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/65528.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/65604.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/65604.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/65604.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/65604.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/65723.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/65723.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/65723.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/65723.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/6573.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/6573.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/6573.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/6573.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/65792.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/65792.018dc26183efb561a8b1.chunk.js similarity index 99% rename from geonode_mapstore_client/static/mapstore/dist/js/65792.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/65792.018dc26183efb561a8b1.chunk.js index 9d51cb9eaa..e331d00c6e 100644 --- a/geonode_mapstore_client/static/mapstore/dist/js/65792.affd309bf2aa3f38d3a0.chunk.js +++ b/geonode_mapstore_client/static/mapstore/dist/js/65792.018dc26183efb561a8b1.chunk.js @@ -1,2 +1,2 @@ -/*! For license information please see 65792.affd309bf2aa3f38d3a0.chunk.js.LICENSE.txt */ +/*! For license information please see 65792.018dc26183efb561a8b1.chunk.js.LICENSE.txt */ (self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[65792],{65792:function(e,n,r){var t;e=r.nmd(e),function(){var r,f,a,u,c,o,l,i,s,b,d,h,p,g,m,v,y,w,k,_,N,M,x,A,O,j,q,G,L,P,B,R,Y,E,S,X,C,z,U,V,F,I,K,Z,D,$,H,J,Q,T,W,ee,ne,re,te,fe,ae,ue,ce,oe,le,ie,se,be,de,he,pe,ge,ve,ye,we,ke,_e,Ne,Me,xe,Ae,Oe,je,qe,Ge=[].slice;xe=function(){var e,n,r,t,f;for(e={},t=0,n=(f="Boolean Number String Function Array Date RegExp Undefined Null".split(" ")).length;tr&&(e=r),e},Ae=function(e){return e.length>=3?Array.prototype.slice.call(e):e[0]},N=function(e){var n,r;for(e._clipped=!1,e._unclipped=e.slice(0),n=r=0;r<3;n=++r)n<3?((e[n]<0||e[n]>255)&&(e._clipped=!0),e[n]<0&&(e[n]=0),e[n]>255&&(e[n]=255)):3===n&&(e[n]<0&&(e[n]=0),e[n]>1&&(e[n]=1));return e._clipped||delete e._unclipped,e},u=Math.PI,we=Math.round,x=Math.cos,G=Math.floor,te=Math.pow,J=Math.log,_e=Math.sin,Ne=Math.sqrt,g=Math.atan2,W=Math.max,p=Math.abs,l=2*u,c=u/3,f=u/180,o=180/u,_=function(){return arguments[0]instanceof r?arguments[0]:function(e,n,r){r.prototype=e.prototype;var t=new r,f=e.apply(t,n);return Object(f)===f?f:t}(r,arguments,(function(){}))},_.default=_,h=[],null!==e&&null!=e.exports&&(e.exports=_),void 0===(t=function(){return _}.apply(n,[]))||(e.exports=t),_.version="1.3.7",d={},s=[],b=!1,r=function(){function e(){var e,n,r,t,f,a,u,c,o;for(a=this,n=[],c=0,t=arguments.length;c1&&(u=n[n.length-1]),null!=d[u])a._rgb=N(d[u](Ae(n.slice(0,-1))));else{for(b||(s=s.sort((function(e,n){return n.p-e.p})),b=!0),o=0,f=s.length;o3?n[3]:1]},qe=function(e){return 255*(e<=.00304?12.92*e:1.055*te(e,1/2.4)-.055)},K=function(e){return e>a.t1?e*e*e:a.t2*(e-a.t0)},a={Kn:18,Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452},se=function(){var e,n,r,t,f,a,u;return r=(t=Ae(arguments))[0],n=t[1],e=t[2],a=(f=ge(r,n,e))[0],[116*(u=f[1])-16,500*(a-u),200*(u-f[2])]},ve=function(e){return(e/=255)<=.04045?e/12.92:te((e+.055)/1.055,2.4)},je=function(e){return e>a.t3?te(e,1/3):e/a.t2+a.t0},ge=function(){var e,n,r,t;return r=(t=Ae(arguments))[0],n=t[1],e=t[2],r=ve(r),n=ve(n),e=ve(e),[je((.4124564*r+.3575761*n+.1804375*e)/a.Xn),je((.2126729*r+.7151522*n+.072175*e)/a.Yn),je((.0193339*r+.119192*n+.9503041*e)/a.Zn)]},_.lab=function(){return function(e,n,r){r.prototype=e.prototype;var t=new r,f=e.apply(t,n);return Object(f)===f?f:t}(r,Ge.call(arguments).concat(["lab"]),(function(){}))},d.lab=I,r.prototype.lab=function(){return se(this._rgb)},m=function(e){var n,r,t,f,a,u,c,o,l,i,s;return 2===(e=function(){var n,r,t;for(t=[],r=0,n=e.length;r=0&&n[3]<=1?"rgb":void 0}}),d.lrgb=d.rgb,z=function(e,n,t,f){var a,u;return a=e._rgb,u=n._rgb,new r(Ne(te(a[0],2)*(1-t)+te(u[0],2)*t),Ne(te(a[1],2)*(1-t)+te(u[1],2)*t),Ne(te(a[2],2)*(1-t)+te(u[2],2)*t),f)},i=function(e){var n,t,f,a,u;for(n=1/e.length,u=[0,0,0,0],f=0,t=e.length;f=360;)r-=360;p[s]=r}else p[s]=p[s]/a[s];return _(p,n).alpha(t/b)},P=function(e){var n,r;if(e.match(/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/))return 4!==e.length&&7!==e.length||(e=e.substr(1)),3===e.length&&(e=(e=e.split(""))[0]+e[0]+e[1]+e[1]+e[2]+e[2]),[(r=parseInt(e,16))>>16,r>>8&255,255&r,1];if(e.match(/^#?([A-Fa-f0-9]{8})$/))return 9===e.length&&(e=e.substr(1)),[(r=parseInt(e,16))>>24&255,r>>16&255,r>>8&255,we((255&r)/255*100)/100];if(null!=d.css&&(n=d.css(e)))return n;throw"unknown color: "+e},ce=function(e,n){var r,t,f,a,u,c;return null==n&&(n="rgb"),u=e[0],f=e[1],t=e[2],r=e[3],u=Math.round(u),f=Math.round(f),t=Math.round(t),c=(c="000000"+(u<<16|f<<8|t).toString(16)).substr(c.length-6),a=(a="0"+we(255*r).toString(16)).substr(a.length-2),"#"+function(){switch(n.toLowerCase()){case"rgba":return c+a;case"argb":return a+c;default:return c}}()},d.hex=function(e){return P(e)},_.hex=function(){return function(e,n,r){r.prototype=e.prototype;var t=new r,f=e.apply(t,n);return Object(f)===f?f:t}(r,Ge.call(arguments).concat(["hex"]),(function(){}))},r.prototype.hex=function(e){return null==e&&(e="rgb"),ce(this._rgb,e)},s.push({p:4,test:function(e){if(1===arguments.length&&"string"===xe(e))return"hex"}}),Y=function(){var e,n,r,t,f,a,u,c,o,l,i,s,b,d;if(f=(e=Ae(arguments))[0],i=e[1],u=e[2],0===i)o=t=n=255*u;else{for(r=[0,0,0],s=2*u-(b=u<.5?u*(1+i):u+i-u*i),(d=[0,0,0])[0]=(f/=360)+1/3,d[1]=f,d[2]=f-1/3,a=c=0;c<=2;a=++c)d[a]<0&&(d[a]+=1),d[a]>1&&(d[a]-=1),6*d[a]<1?r[a]=s+6*(b-s)*d[a]:2*d[a]<1?r[a]=b:3*d[a]<2?r[a]=s+(b-s)*(2/3-d[a])*6:r[a]=s;o=(l=[we(255*r[0]),we(255*r[1]),we(255*r[2])])[0],t=l[1],n=l[2]}return e.length>3?[o,t,n,e[3]]:[o,t,n]},le=function(e,n,r){var t,f,a,u,c;return void 0!==e&&e.length>=3&&(e=(u=e)[0],n=u[1],r=u[2]),e/=255,n/=255,r/=255,a=Math.min(e,n,r),f=((W=Math.max(e,n,r))+a)/2,W===a?(c=0,t=Number.NaN):c=f<.5?(W-a)/(W+a):(W-a)/(2-W-a),e===W?t=(n-r)/(W-a):n===W?t=2+(r-e)/(W-a):r===W&&(t=4+(e-n)/(W-a)),(t*=60)<0&&(t+=360),[t,c,f]},_.hsl=function(){return function(e,n,r){r.prototype=e.prototype;var t=new r,f=e.apply(t,n);return Object(f)===f?f:t}(r,Ge.call(arguments).concat(["hsl"]),(function(){}))},d.hsl=Y,r.prototype.hsl=function(){return le(this._rgb)},E=function(){var e,n,r,t,f,a,u,c,o,l,i,s,b,d,h,p,g,m;if(f=(e=Ae(arguments))[0],p=e[1],m=e[2],m*=255,0===p)o=t=n=m;else switch(360===f&&(f=0),f>360&&(f-=360),f<0&&(f+=360),u=m*(1-p),c=m*(1-p*(r=(f/=60)-(a=G(f)))),g=m*(1-p*(1-r)),a){case 0:o=(l=[m,g,u])[0],t=l[1],n=l[2];break;case 1:o=(i=[c,m,u])[0],t=i[1],n=i[2];break;case 2:o=(s=[u,m,g])[0],t=s[1],n=s[2];break;case 3:o=(b=[u,c,m])[0],t=b[1],n=b[2];break;case 4:o=(d=[g,u,m])[0],t=d[1],n=d[2];break;case 5:o=(h=[m,u,c])[0],t=h[1],n=h[2]}return[o,t,n,e.length>3?e[3]:1]},ie=function(){var e,n,r,t,f,a,u,c,o;return a=(u=Ae(arguments))[0],r=u[1],e=u[2],f=Math.min(a,r,e),n=(W=Math.max(a,r,e))-f,o=W/255,0===W?(t=Number.NaN,c=0):(c=n/W,a===W&&(t=(r-e)/n),r===W&&(t=2+(e-a)/n),e===W&&(t=4+(a-r)/n),(t*=60)<0&&(t+=360)),[t,c,o]},_.hsv=function(){return function(e,n,r){r.prototype=e.prototype;var t=new r,f=e.apply(t,n);return Object(f)===f?f:t}(r,Ge.call(arguments).concat(["hsv"]),(function(){}))},d.hsv=E,r.prototype.hsv=function(){return ie(this._rgb)},ne=function(e){return"number"===xe(e)&&e>=0&&e<=16777215?[e>>16,e>>8&255,255&e,1]:(console.warn("unknown num color: "+e),[0,0,0,1])},he=function(){var e;return((e=Ae(arguments))[0]<<16)+(e[1]<<8)+e[2]},_.num=function(e){return new r(e,"num")},r.prototype.num=function(e){return null==e&&(e="rgb"),he(this._rgb,e)},d.num=ne,s.push({p:1,test:function(e){if(1===arguments.length&&"number"===xe(e)&&e>=0&&e<=16777215)return"num"}}),L=function(){var e,n,r,t,f,a,u,c,o,l,i,s,b,d,h,p,g,m,v,y;if(c=(r=Ae(arguments))[0],f=r[1],n=r[2],u=u/100*255,e=255*(f/=100),0===f)s=u=t=n;else switch(360===c&&(c=0),c>360&&(c-=360),c<0&&(c+=360),i=(l=n*(1-f))+e*(1-(a=(c/=60)-(o=G(c)))),v=l+e*a,y=l+e,o){case 0:s=(b=[y,v,l])[0],u=b[1],t=b[2];break;case 1:s=(d=[i,y,l])[0],u=d[1],t=d[2];break;case 2:s=(h=[l,y,v])[0],u=h[1],t=h[2];break;case 3:s=(p=[l,i,y])[0],u=p[1],t=p[2];break;case 4:s=(g=[v,l,y])[0],u=g[1],t=g[2];break;case 5:s=(m=[y,l,i])[0],u=m[1],t=m[2]}return[s,u,t,r.length>3?r[3]:1]},ue=function(){var e,n,r,t,f,a,u,c,o;return c=(o=Ae(arguments))[0],f=o[1],n=o[2],u=Math.min(c,f,n),r=100*(t=(W=Math.max(c,f,n))-u)/255,e=u/(255-t)*100,0===t?a=Number.NaN:(c===W&&(a=(f-n)/t),f===W&&(a=2+(n-c)/t),n===W&&(a=4+(c-f)/t),(a*=60)<0&&(a+=360)),[a,r,e]},_.hcg=function(){return function(e,n,r){r.prototype=e.prototype;var t=new r,f=e.apply(t,n);return Object(f)===f?f:t}(r,Ge.call(arguments).concat(["hcg"]),(function(){}))},d.hcg=L,r.prototype.hcg=function(){return ue(this._rgb)},A=function(e){var n,r,t,f,a,u,c,o;if(e=e.toLowerCase(),null!=_.colors&&_.colors[e])return P(_.colors[e]);if(a=e.match(/rgb\(\s*(\-?\d+),\s*(\-?\d+)\s*,\s*(\-?\d+)\s*\)/)){for(c=a.slice(1,4),f=u=0;u<=2;f=++u)c[f]=+c[f];c[3]=1}else if(a=e.match(/rgba\(\s*(\-?\d+),\s*(\-?\d+)\s*,\s*(\-?\d+)\s*,\s*([01]|[01]?\.\d+)\)/))for(c=a.slice(1,5),f=o=0;o<=3;f=++o)c[f]=+c[f];else if(a=e.match(/rgb\(\s*(\-?\d+(?:\.\d+)?)%,\s*(\-?\d+(?:\.\d+)?)%\s*,\s*(\-?\d+(?:\.\d+)?)%\s*\)/)){for(c=a.slice(1,4),f=n=0;n<=2;f=++n)c[f]=we(2.55*c[f]);c[3]=1}else if(a=e.match(/rgba\(\s*(\-?\d+(?:\.\d+)?)%,\s*(\-?\d+(?:\.\d+)?)%\s*,\s*(\-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)/)){for(c=a.slice(1,5),f=r=0;r<=2;f=++r)c[f]=we(2.55*c[f]);c[3]=+c[3]}else(a=e.match(/hsl\(\s*(\-?\d+(?:\.\d+)?),\s*(\-?\d+(?:\.\d+)?)%\s*,\s*(\-?\d+(?:\.\d+)?)%\s*\)/))?((t=a.slice(1,4))[1]*=.01,t[2]*=.01,(c=Y(t))[3]=1):(a=e.match(/hsla\(\s*(\-?\d+(?:\.\d+)?),\s*(\-?\d+(?:\.\d+)?)%\s*,\s*(\-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)/))&&((t=a.slice(1,4))[1]*=.01,t[2]*=.01,(c=Y(t))[3]=+a[4]);return c},ae=function(e){var n;return"rgb"==(n=e[3]<1?"rgba":"rgb")?n+"("+e.slice(0,3).map(we).join(",")+")":"rgba"===n?n+"("+e.slice(0,3).map(we).join(",")+","+e[3]+")":void 0},ye=function(e){return we(100*e)/100},R=function(e,n){var r;return r=n<1?"hsla":"hsl",e[0]=ye(e[0]||0),e[1]=ye(100*e[1])+"%",e[2]=ye(100*e[2])+"%","hsla"===r&&(e[3]=n),r+"("+e.join(",")+")"},d.css=function(e){return A(e)},_.css=function(){return function(e,n,r){r.prototype=e.prototype;var t=new r,f=e.apply(t,n);return Object(f)===f?f:t}(r,Ge.call(arguments).concat(["css"]),(function(){}))},r.prototype.css=function(e){return null==e&&(e="rgb"),"rgb"===e.slice(0,3)?ae(this._rgb):"hsl"===e.slice(0,3)?R(this.hsl(),this.alpha()):void 0},d.named=function(e){return P(Oe[e])},s.push({p:5,test:function(e){if(1===arguments.length&&null!=Oe[e])return"named"}}),r.prototype.name=function(e){var n,r;for(r in arguments.length&&(Oe[e]&&(this._rgb=P(Oe[e])),this._rgb[3]=1),n=this.hex(),Oe)if(n===Oe[r])return r;return n},Z=function(){var e,n,r,t;return r=(t=Ae(arguments))[0],e=t[1],n=t[2],[r,x(n*=f)*e,_e(n)*e]},D=function(){var e,n,r,t,f,a,u,c,o;return u=(r=Ae(arguments))[0],f=r[1],a=r[2],e=(c=Z(u,f,a))[0],n=c[1],t=c[2],[(o=I(e,n,t))[0],o[1],t=o[2],r.length>3?r[3]:1]},F=function(){var e,n,r,t,f,a;return f=(a=Ae(arguments))[0],e=a[1],n=a[2],r=Ne(e*e+n*n),t=(g(n,e)*o+360)%360,0===we(1e4*r)&&(t=Number.NaN),[f,r,t]},be=function(){var e,n,r,t,f,a,u;return f=(a=Ae(arguments))[0],r=a[1],n=a[2],t=(u=se(f,r,n))[0],e=u[1],n=u[2],F(t,e,n)},_.lch=function(){var e;return e=Ae(arguments),new r(e,"lch")},_.hcl=function(){var e;return e=Ae(arguments),new r(e,"hcl")},d.lch=D,d.hcl=function(){var e,n,r,t;return n=(t=Ae(arguments))[0],e=t[1],r=t[2],D([r,e,n])},r.prototype.lch=function(){return be(this._rgb)},r.prototype.hcl=function(){return be(this._rgb).reverse()},fe=function(e){var n,r,t,f,a,u;return null==e&&(e="rgb"),a=(u=Ae(arguments))[0],t=u[1],n=u[2],t/=255,n/=255,[(1-(a/=255)-(f=1-Math.max(a,Math.max(t,n))))*(r=f<1?1/(1-f):0),(1-t-f)*r,(1-n-f)*r,f]},M=function(){var e,n,r,t,f,a;return r=(n=Ae(arguments))[0],f=n[1],a=n[2],t=n[3],e=n.length>4?n[4]:1,1===t?[0,0,0,e]:[r>=1?0:255*(1-r)*(1-t),f>=1?0:255*(1-f)*(1-t),a>=1?0:255*(1-a)*(1-t),e]},d.cmyk=function(){return M(Ae(arguments))},_.cmyk=function(){return function(e,n,r){r.prototype=e.prototype;var t=new r,f=e.apply(t,n);return Object(f)===f?f:t}(r,Ge.call(arguments).concat(["cmyk"]),(function(){}))},r.prototype.cmyk=function(){return fe(this._rgb)},d.gl=function(){var e,n,r,t,f;for(t=function(){var e,r;for(n in r=[],e=Ae(arguments))f=e[n],r.push(f);return r}.apply(this,arguments),e=r=0;r<=2;e=++r)t[e]*=255;return t},_.gl=function(){return function(e,n,r){r.prototype=e.prototype;var t=new r,f=e.apply(t,n);return Object(f)===f?f:t}(r,Ge.call(arguments).concat(["gl"]),(function(){}))},r.prototype.gl=function(){var e;return[(e=this._rgb)[0]/255,e[1]/255,e[2]/255,e[3]]},de=function(e,n,r){var t;return e=(t=Ae(arguments))[0],n=t[1],r=t[2],.2126*(e=Q(e))+.7152*(n=Q(n))+.0722*Q(r)},Q=function(e){return(e/=255)<=.03928?e/12.92:te((e+.055)/1.055,2.4)},V=function(e,n,t,f){var a,u;return a=e._rgb,u=n._rgb,new r(a[0]+t*(u[0]-a[0]),a[1]+t*(u[1]-a[1]),a[2]+t*(u[2]-a[2]),f)},h.push(["rgb",V]),r.prototype.luminance=function(e,n){var r,t,f,a;return null==n&&(n="rgb"),arguments.length?(f=this._rgb,0===e?f=[0,0,0,this._rgb[3]]:1===e?f=[255,255,255,this[3]]:(r=de(this._rgb),t=20,a=function(r,f){var u,c;return u=(c=r.interpolate(f,.5,n)).luminance(),Math.abs(e-u)<1e-7||!t--?c:u>e?a(r,c):a(c,f)},f=r>e?a(_("black"),this).rgba():a(this,_("white")).rgba()),_(f).alpha(this.alpha())):de(this._rgb)},Me=function(e){var n,r,t,f;return(f=e/100)<66?(t=255,r=-155.25485562709179-.44596950469579133*(r=f-2)+104.49216199393888*J(r),n=f<20?0:.8274096064007395*(n=f-10)-254.76935184120902+115.67994401066147*J(n)):(t=351.97690566805693+.114206453784165*(t=f-55)-40.25366309332127*J(t),r=325.4494125711974+.07943456536662342*(r=f-50)-28.0852963507957*J(r),n=255),[t,r,n]},pe=function(){var e,n,r,t,f,a,u;for(t=(f=Ae(arguments))[0],f[1],e=f[2],r=1e3,n=4e4;n-r>.4;)(a=Me(u=.5*(n+r)))[2]/a[0]>=e/t?n=u:r=u;return we(u)},_.temperature=_.kelvin=function(){return function(e,n,r){r.prototype=e.prototype;var t=new r,f=e.apply(t,n);return Object(f)===f?f:t}(r,Ge.call(arguments).concat(["temperature"]),(function(){}))},d.temperature=d.kelvin=d.K=Me,r.prototype.temperature=function(){return pe(this._rgb)},r.prototype.kelvin=r.prototype.temperature,_.contrast=function(e,n){var t,f,a,u;return"string"!==(a=xe(e))&&"number"!==a||(e=new r(e)),"string"!==(u=xe(n))&&"number"!==u||(n=new r(n)),(t=e.luminance())>(f=n.luminance())?(t+.05)/(f+.05):(f+.05)/(t+.05)},_.distance=function(e,n,t){var f,a,u,c,o,l,i;for(a in null==t&&(t="lab"),"string"!==(o=xe(e))&&"number"!==o||(e=new r(e)),"string"!==(l=xe(n))&&"number"!==l||(n=new r(n)),u=e.get(t),c=n.get(t),i=0,u)i+=(f=(u[a]||0)-(c[a]||0))*f;return Math.sqrt(i)},_.deltaE=function(e,n,t,f){var a,c,o,l,i,s,b,d,h,m,v,y,w,k,_,N,M,A,O,j,q,G,L,P;for(null==t&&(t=1),null==f&&(f=1),"string"!==(_=xe(e))&&"number"!==_||(e=new r(e)),"string"!==(N=xe(n))&&"number"!==N||(n=new r(n)),a=(M=e.lab())[0],o=M[1],i=M[2],c=(A=n.lab())[0],l=A[1],s=A[2],b=Ne(o*o+i*i),d=Ne(l*l+s*s),j=a<16?.511:.040975*a/(1+.01765*a),O=.0638*b/(1+.0131*b)+.638,k=b<1e-6?0:180*g(i,o)/u;k<0;)k+=360;for(;k>=360;)k-=360;return q=k>=164&&k<=345?.56+p(.2*x(u*(k+168)/180)):.36+p(.4*x(u*(k+35)/180)),w=Ne((h=b*b*b*b)/(h+1900)),Ne((G=(a-c)/(t*j))*G+(L=(y=b-d)/(f*O))*L+((m=o-l)*m+(v=i-s)*v-y*y)/((P=O*(w*q+1-w))*P))},r.prototype.get=function(e){var n,r,t,f,a;return t=(f=e.split("."))[0],n=f[1],a=this[t](),n?(r=t.indexOf(n))>-1?a[r]:console.warn("unknown channel "+n+" in mode "+t):a},r.prototype.set=function(e,n){var r,t,f,a,u;if(f=(a=e.split("."))[0],r=a[1])if(u=this[f](),(t=f.indexOf(r))>-1)if("string"===xe(n))switch(n.charAt(0)){case"+":case"-":u[t]+=+n;break;case"*":u[t]*=+n.substr(1);break;case"/":u[t]/=+n.substr(1);break;default:u[t]=+n}else u[t]=n;else console.warn("unknown channel "+r+" in mode "+f);else u=n;return _(u,f).alpha(this.alpha())},r.prototype.clipped=function(){return this._rgb._clipped||!1},r.prototype.alpha=function(e){return arguments.length?_.rgb([this._rgb[0],this._rgb[1],this._rgb[2],e]):this._rgb[3]},r.prototype.darken=function(e){var n;return null==e&&(e=1),(n=this.lab())[0]-=a.Kn*e,_.lab(n).alpha(this.alpha())},r.prototype.brighten=function(e){return null==e&&(e=1),this.darken(-e)},r.prototype.darker=r.prototype.darken,r.prototype.brighter=r.prototype.brighten,r.prototype.saturate=function(e){var n;return null==e&&(e=1),(n=this.lch())[1]+=e*a.Kn,n[1]<0&&(n[1]=0),_.lch(n).alpha(this.alpha())},r.prototype.desaturate=function(e){return null==e&&(e=1),this.saturate(-e)},r.prototype.premultiply=function(){var e,n;return n=this.rgb(),e=this.alpha(),_(n[0]*e,n[1]*e,n[2]*e,e)},ee=function(e,n){return e*n/255},O=function(e,n){return e>n?n:e},$=function(e,n){return e>n?e:n},ke=function(e,n){return 255*(1-(1-e/255)*(1-n/255))},re=function(e,n){return n<128?2*e*n/255:255*(1-2*(1-e/255)*(1-n/255))},k=function(e,n){return 255*(1-(1-n/255)/(e/255))},j=function(e,n){return 255===e||(e=n/255*255/(1-e/255))>255?255:e},(v=function(e,n,r){if(!v[r])throw"unknown blend mode "+r;return v[r](e,n)}).normal=(y=function(e){return function(n,r){var t,f;return t=_(r).rgb(),f=_(n).rgb(),_(e(t,f),"rgb")}})((q=function(e){return function(n,r){var t,f,a;for(a=[],t=f=0;f<=3;t=++f)a[t]=e(n[t],r[t]);return a}})((function(e,n){return e}))),v.multiply=y(q(ee)),v.screen=y(q(ke)),v.overlay=y(q(re)),v.darken=y(q(O)),v.lighten=y(q($)),v.dodge=y(q(j)),v.burn=y(q(k)),_.blend=v,_.analyze=function(e){var n,r,t,f;for(t={min:Number.MAX_VALUE,max:-1*Number.MAX_VALUE,sum:0,values:[],count:0},r=0,n=e.length;rt.max&&(t.max=f),t.count+=1);return t.domain=[t.min,t.max],t.limits=function(e,n){return _.limits(t,e,n)},t},_.scale=function(e,n){var r,t,f,a,u,c,o,l,i,s,b,d,h,p,g,m,v,y,w,k,N;return i="rgb",s=_("#ccc"),p=0,u=[0,1],h=[],d=[0,0],r=!1,f=[],b=!1,l=0,o=1,a=!1,t={},g=!0,c=1,k=function(e){var n,r,t,a,u,c;if(null==e&&(e=["#fff","#000"]),null!=e&&"string"===xe(e)&&null!=_.brewer&&(e=_.brewer[e]||_.brewer[e.toLowerCase()]||e),"array"===xe(e)){for(n=t=0,a=(e=e.slice(0)).length-1;0<=a?t<=a:t>=a;n=0<=a?++t:--t)r=e[n],"string"===xe(r)&&(e[n]=_(r));for(h.length=0,n=c=0,u=e.length-1;0<=u?c<=u:c>=u;n=0<=u?++c:--c)h.push(n/(e.length-1))}return w(),f=e},v=function(e){var n,t;if(null!=r){for(t=r.length-1,n=0;n=r[n];)n++;return n-1}return 0},N=function(e){return e},y=function(e,n){var a,u,b,p,m,y,w;if(null==n&&(n=!1),isNaN(e))return s;if(w=n?e:r&&r.length>2?v(e)/(r.length-2):o!==l?(e-l)/(o-l):1,n||(w=N(w)),1!==c&&(w=te(w,c)),w=d[0]+w*(1-d[0]-d[1]),w=Math.min(1,Math.max(0,w)),b=Math.floor(1e4*w),g&&t[b])a=t[b];else{if("array"===xe(f))for(u=p=0,y=h.length-1;0<=y?p<=y:p>=y;u=0<=y?++p:--p){if(w<=(m=h[u])){a=f[u];break}if(w>=m&&u===h.length-1){a=f[u];break}if(w>m&&w=i;n=0<=i?++s:--s)h.push(n/(t-1));return u=[l,o],m},m.mode=function(e){return arguments.length?(i=e,w(),m):i},m.range=function(e,n){return k(e),m},m.out=function(e){return b=e,m},m.spread=function(e){return arguments.length?(p=e,m):p},m.correctLightness=function(e){return null==e&&(e=!0),a=e,w(),N=a?function(e){var n,r,t,f,a,u,c,o;for(u=(n=y(0,!0).lab()[0])>(r=y(1,!0).lab()[0]),t=y(e,!0).lab()[0]-(f=n+(r-n)*e),c=0,o=1,a=20;Math.abs(t)>.01&&a-- >0;)u&&(t*=-1),t<0?(c=e,e+=.5*(o-e)):(o=e,e+=.5*(c-e)),t=y(e,!0).lab()[0]-f;return e}:function(e){return e},m},m.padding=function(e){return null!=e?("number"===xe(e)&&(e=[e,e]),d=e,m):d},m.colors=function(n,t){var a,c,o,l,i,s,b,d;if(arguments.length<2&&(t="hex"),i=[],0===arguments.length)i=f.slice(0);else if(1===n)i=[m(.5)];else if(n>1)c=u[0],a=u[1]-c,i=function(){s=[];for(var e=0;0<=n?en;0<=n?e++:e--)s.push(e);return s}.apply(this).map((function(e){return m(c+e/(n-1)*a)}));else{if(e=[],b=[],r&&r.length>2)for(o=d=1,l=r.length;1<=l?dl;o=1<=l?++d:--d)b.push(.5*(r[o-1]+r[o]));else b=u;i=b.map((function(e){return m(e)}))}return _[t]&&(i=i.map((function(e){return e[t]()}))),i},m.cache=function(e){return null!=e?(g=e,m):g},m.gamma=function(e){return null!=e?(c=e,m):c},m},null==_.scales&&(_.scales={}),_.scales.cool=function(){return _.scale([_.hsl(180,1,.9),_.hsl(250,.7,.4)])},_.scales.hot=function(){return _.scale(["#000","#f00","#ff0","#fff"],[0,.25,.75,1]).mode("rgb")},_.analyze=function(e,n,r){var t,f,a,u,c,o;if(c={min:Number.MAX_VALUE,max:-1*Number.MAX_VALUE,sum:0,values:[],count:0},null==r&&(r=function(){return!0}),t=function(e){null==e||isNaN(e)||(c.values.push(e),c.sum+=e,ec.max&&(c.max=e),c.count+=1)},o=function(e,f){if(r(e,f))return null!=n&&"function"===xe(n)?t(n(e)):null!=n&&"string"===xe(n)||"number"===xe(n)?t(e[n]):t(e)},"array"===xe(e))for(u=0,a=e.length;u=z;M=1<=z?++E:--E)O.push(q+M/r*(W-q));O.push(W)}else if("l"===n.substr(0,1)){if(q<=0)throw"Logarithmic scales are only possible for values > 0";for(L=Math.LOG10E*J(q),j=Math.LOG10E*J(W),O.push(q),M=le=1,U=r-1;1<=U?le<=U:le>=U;M=1<=U?++le:--le)O.push(te(10,L+M/r*(j-L)));O.push(W)}else if("q"===n.substr(0,1)){for(O.push(q),M=t=1,D=r-1;1<=D?t<=D:t>=D;M=1<=D?++t:--t)S=(oe.length-1)*M/r,(X=G(S))===S?O.push(oe[X]):(C=S-X,O.push(oe[X]*(1-C)+oe[X+1]*C));O.push(W)}else if("k"===n.substr(0,1)){for(B=oe.length,m=new Array(B),k=new Array(r),fe=!0,R=0,y=null,(y=[]).push(q),M=f=1,$=r-1;1<=$?f<=$:f>=$;M=1<=$?++f:--f)y.push(q+M/r*(W-q));for(y.push(W);fe;){for(x=a=0,H=r-1;0<=H?a<=H:a>=H;x=0<=H?++a:--a)k[x]=0;for(M=u=0,Q=B-1;0<=Q?u<=Q:u>=Q;M=0<=Q?++u:--u){for(ce=oe[M],P=Number.MAX_VALUE,x=c=0,T=r-1;0<=T?c<=T:c>=T;x=0<=T?++c:--c)(N=p(y[x]-ce))=ee;x=0<=ee?++o:--o)Y[x]=null;for(M=l=0,ne=B-1;0<=ne?l<=ne:l>=ne;M=0<=ne?++l:--l)null===Y[w=m[M]]?Y[w]=oe[M]:Y[w]+=oe[M];for(x=i=0,re=r-1;0<=re?i<=re:i>=re;x=0<=re?++i:--i)Y[x]*=1/k[x];for(fe=!1,x=s=0,V=r-1;0<=V?s<=V:s>=V;x=0<=V?++s:--s)if(Y[x]!==y[M]){fe=!0;break}y=Y,++R>200&&(fe=!1)}for(A={},x=b=0,F=r-1;0<=F?b<=F:b>=F;x=0<=F?++b:--b)A[x]=[];for(M=d=0,I=B-1;0<=I?d<=I:d>=I;M=0<=I?++d:--d)A[w=m[M]].push(oe[M]);for(ae=[],x=h=0,K=r-1;0<=K?h<=K:h>=K;x=0<=K?++h:--h)ae.push(A[x][0]),ae.push(A[x][A[x].length-1]);for(ae=ae.sort((function(e,n){return e-n})),O.push(ae[0]),M=g=1,Z=ae.length-1;g<=Z;M=g+=2)ue=ae[M],isNaN(ue)||-1!==O.indexOf(ue)||O.push(ue)}return O},B=function(e,n,r){var t,f,a,u;return e=(t=Ae(arguments))[0],n=t[1],r=t[2],isNaN(e)&&(e=0),(e/=360)<1/3?a=1-((f=(1-n)/3)+(u=(1+n*x(l*e)/x(c-l*e))/3)):e<2/3?f=1-((u=(1-n)/3)+(a=(1+n*x(l*(e-=1/3))/x(c-l*e))/3)):u=1-((a=(1-n)/3)+(f=(1+n*x(l*(e-=2/3))/x(c-l*e))/3)),[255*(u=H(r*u*3)),255*(a=H(r*a*3)),255*(f=H(r*f*3)),t.length>3?t[3]:1]},oe=function(){var e,n,r,t,f,a,u;return f=(a=Ae(arguments))[0],n=a[1],e=a[2],l=2*Math.PI,f/=255,n/=255,e/=255,0==(u=1-Math.min(f,n,e)/(t=(f+n+e)/3))?r=0:(r=(f-n+(f-e))/2,r/=Math.sqrt((f-n)*(f-n)+(f-e)*(n-e)),r=Math.acos(r),e>n&&(r=l-r),r/=l),[360*r,u,t]},_.hsi=function(){return function(e,n,r){r.prototype=e.prototype;var t=new r,f=e.apply(t,n);return Object(f)===f?f:t}(r,Ge.call(arguments).concat(["hsi"]),(function(){}))},d.hsi=B,r.prototype.hsi=function(){return oe(this._rgb)},X=function(e,n,r,t){var f,a,u,c,o,l,i,s,b,d;return"hsl"===t?(b=e.hsl(),d=n.hsl()):"hsv"===t?(b=e.hsv(),d=n.hsv()):"hcg"===t?(b=e.hcg(),d=n.hcg()):"hsi"===t?(b=e.hsi(),d=n.hsi()):"lch"!==t&&"hcl"!==t||(t="hcl",b=e.hcl(),d=n.hcl()),"h"===t.substr(0,1)&&(a=b[0],i=b[1],c=b[2],u=d[0],s=d[1],o=d[2]),isNaN(a)||isNaN(u)?isNaN(a)?isNaN(u)?f=Number.NaN:(f=u,1!==c&&0!==c||"hsv"===t||(l=s)):(f=a,1!==o&&0!==o||"hsv"===t||(l=i)):f=a+r*(u>a&&u-a>180?u-(a+360):u180?u+360-a:u-a),null==l&&(l=i+r*(s-i)),_[t](f,l,c+r*(o-c))},U=function(e,n,r,t){var f,a;return f=e.num(),a=n.num(),_.num(f+(a-f)*r,"num")},(h=h.concat(function(){var e,n,r,t;for(t=[],n=0,e=(r=["hsv","hsl","hsi","hcl","lch","hcg"]).length;n{"use strict";n.d(e,{$F:()=>S,eg:()=>P,Kg:()=>w,PR:()=>T,eK:()=>R,pu:()=>M,Lu:()=>C,W5:()=>D,TQ:()=>L,KR:()=>N,sY:()=>U,vv:()=>G,jq:()=>k,Tr:()=>z,w:()=>W,CK:()=>B,u5:()=>H,z7:()=>V,FW:()=>x,GC:()=>_,yL:()=>X,_O:()=>K,JM:()=>F,bU:()=>J,mm:()=>Y,X6:()=>Z,NR:()=>$,I0:()=>Q,eB:()=>tt,HB:()=>et});var r=n(227361),o=n.n(r),i=n(313311),u=n.n(i),c=n(630998),l=n.n(c),a=n(618446),s=n.n(a),f=n(944908),d=n.n(f),y=n(264721),p=n.n(y),g=n(192579),v=n(274621),m=n(324684);function b(t){return b="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},b(t)}function h(t){return function(t){if(Array.isArray(t))return E(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return E(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0},D=function(t){return o()(t,"geostory.isSettingsEnabled",!1)},L=function(t){var e=o()(w(t),"settings",{}),n=j(t).filter((function(t){var e=t.type;return p()([g.ID.CAROUSEL,g.ID.IMMERSIVE],e)})),r=e.checked||[],i=d()(r.map((function(t){return(0,g.Un)(n,t)})).filter((function(t){return t})));return I(I({},e),{},{expanded:i})},N=function(t){return!s()(o()(w(t),"settings",{}),function(t){return o()(t,"geostory.oldSettings",{})}(t))},U=function(t){return o()(t,"geostory.selectedCard","")},G=function(t){return function(e){return S("".concat(t,".resourceId"))(e)}},k=function(t){return o()(w(t),"resources",[])},z=function(t){return function(e){return u()(k(e),{id:t})}},W=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.withImmersiveSection,n=void 0!==e&&e,r=t.includeAlways,i=void 0===r||r;return function(t){var e=j(t),r=function(t){return o()(L(t),"checked",[]).reduce((function(t,e){return I(I({},t),{},O({},e,!0))}),{})}(t);return e.reduce((function(t,e){if(e.type===g.ID.TITLE&&(i||r[e.id]))return[].concat(h(t),[e]);if(e.type===g.ID.PARAGRAPH&&(i||r[e.id]))return[].concat(h(t),[e]);if(e.type===g.ID.BANNER&&(i||r[e.id]))return[].concat(h(t),[e]);if(e.type===g.ID.CAROUSEL&&(i||r[e.id]))return[].concat(h(t),[e]);if(e.type===g.ID.IMMERSIVE){var o=e.contents&&e.contents.reduce((function(t,e){return i||r[e.id]?[].concat(h(t),[I(I({},e),{},{sectionId:t.id})]):t}),[])||[];return n?[].concat(h(t),[e],h(o)):[].concat(h(t),h(o))}return t}),[])}},B=function(t){return W({includeAlways:!0})(t).length},H=function(t){var e=function(t){var e=T(t);return l()(W({includeAlways:!0})(t),{id:e.columns&&e.columns[e.sectionId]?e.columns[e.sectionId]:e.sectionId||""})}(t);return-1!==e?e:l()(W({includeAlways:!0})(t),{id:T(t).sectionId})},V=function(t){return void 0!==o()(t,"geostory.focusedContent.target")},x=function(t){return o()(t,"geostory.focusedContent")},_=function(t){return S(o()(t,"geostory.focusedContent.path",""))(t)},X=function(t){return j(t).reduce((function(t,e){if(p()([g.ID.IMMERSIVE,g.ID.CAROUSEL],e.type)){var n=e.contents&&e.contents.map((function(t){return{label:t.title||"",value:t.id}}))||[];return[].concat(h(t),[I({label:e.title||"",value:e.id},e.type===g.ID.IMMERSIVE&&{children:n})])}return[].concat(h(t),[{label:e.title||"",value:e.id}])}),[])},q=function t(e,n){var r=n.contents,o=n.background;return n.resourceId===e||!(!o||o.resourceId!==e)||!!r&&!!u()(r,(function(n){return t(e,n)}))},K=function(t,e){return!!u()(j(t),(function(t){return q(e,t)}))},F=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,m.F)(t).includes("geostory/shared")},J=function(t){return o()(t,"geostory.updateUrlOnScroll",!1)},Y=function(t){return o()(t,"geostory.currentStory.settings.theme.fontFamilies",[])},Z=function(t){return o()(t,"geostory.mediaEditorSettings")},$=function(t){var e;return((null===(e=w(t))||void 0===e?void 0:e.sections)||[]).filter((function(t){return t.type===g.ID.CAROUSEL}))},Q=function(t){return function(e){return!!u()($(e),{id:t})}},tt=function(t){return function(e){var n=u()($(e)||[],{id:t});return(null==n?void 0:n.contents)||[]}},et=function(t){var e;return!(null==t||null===(e=t.geostory)||void 0===e||!e.drawOptions)}},274621:(t,e,n)=>{"use strict";n.d(e,{np:()=>r,L3:()=>o,jl:()=>i,y8:()=>u,qg:()=>c}),n(727418),n(227361);var r=function(t){return t&&t.security&&t.security.user},o=function(t){return r(t)&&r(t).role},i=function(t){return t&&t.security&&t.security.user},u=function(t){return t.security&&t.security.token},c=function(t){return"ADMIN"===o(t)}},192579:(t,e,n)=>{"use strict";n.d(e,{gg:()=>D,Ln:()=>L,ID:()=>N,bT:()=>U,tQ:()=>G,Tr:()=>k,nl:()=>z,ZX:()=>W,lg:()=>B,w:()=>H,cy:()=>V,lt:()=>x,M1:()=>_,kn:()=>q,oH:()=>K,Aq:()=>J,nq:()=>Y,Ll:()=>Z,ln:()=>$,Un:()=>Q,NC:()=>tt,t4:()=>et,NP:()=>nt,bm:()=>rt,_R:()=>ot,Km:()=>it,of:()=>ut,u0:()=>ct,eI:()=>lt,Yh:()=>at,c0:()=>st});var r=n(227361),o=n.n(r),i=n(630998),u=n.n(i),c=n(30084),l=n.n(c),a=n(701469),s=n.n(a),f=n(252628),d=n.n(f),y=n(763105),p=n.n(y),g=n(682492),v=n.n(g),m=n(747037),b=n.n(m),h=n(513218),E=n.n(h),A=n(264721),I=n.n(A),O=n(313880),S=n.n(O),P=n(455877),w=n.n(P);function T(t){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},T(t)}function R(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function M(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:{};return v()({},X,t)},K=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return v()({},t,e)},F=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:RegExp(e,"i");return!e||n.test(t)},J=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:RegExp(e,"i");return p()(t,(function(t){return F(t.data&&(t.data.title||t.data.name),e,n)||F(t.data&&t.data.description,e,n)}))},Y=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(t){return t};switch(e){case N.TITLE:return{id:w()(),type:N.TITLE,title:n("geostory.builder.defaults.titleTitle"),cover:!1,contents:[{id:w()(),type:U.TEXT,html:"",size:"large",align:"center",theme:"",background:{fit:"cover",size:"full",align:"center"}}]};case N.BANNER:return{id:w()(),type:N.BANNER,title:n("geostory.builder.defaults.titleBanner"),cover:!1,contents:[{id:w()(),background:{fit:"cover",size:"full",align:"center"}}]};case N.PARAGRAPH:return{id:w()(),type:N.PARAGRAPH,title:n("geostory.builder.defaults.titleParagraph"),contents:[{id:w()(),type:U.COLUMN,size:"full",align:"center",contents:[{id:w()(),type:U.TEXT,html:""}]}]};case N.IMMERSIVE:return{id:w()(),type:N.IMMERSIVE,title:n("geostory.builder.defaults.titleImmersive"),contents:[t(U.COLUMN,n("geostory.builder.defaults.titleImmersiveContent"))]};case N.CAROUSEL:return{id:w()(),type:e,title:n("geostory.builder.defaults.titleGeocarousel"),template:e,background:{fit:"cover",size:"full",align:"center"},contents:[t(U.COLUMN,n("geostory.builder.defaults.titleGeocarouselContent"))]};case G.MEDIA:return{id:w()(),type:N.PARAGRAPH,title:n("geostory.builder.defaults.titleMedia"),contents:[{id:w()(),type:U.COLUMN,contents:[{id:w()(),type:U.MEDIA,size:"large",align:"center"}]}]};case G.WEBPAGE:return{id:w()(),type:N.PARAGRAPH,title:n("geostory.builder.defaults.titleWebPageSection"),contents:[{id:w()(),type:U.COLUMN,contents:[{id:w()(),type:U.WEBPAGE,size:"h-medium,v-medium",align:"center"}]}]};case U.COLUMN:return{id:w()(),type:U.COLUMN,align:"left",size:"small",theme:"",title:n,contents:[{id:w()(),type:U.TEXT,html:""}],background:{fit:"cover",size:"full",align:"center"}};case U.TEXT:return{id:w()(),type:U.TEXT,title:n("geostory.builder.defaults.titleText"),html:""};case U.IMAGE:return{id:w()(),type:e,title:n("geostory.builder.defaults.titleMedia"),size:"full",align:"center"};case U.WEBPAGE:return{id:w()(),type:e,title:n("geostory.builder.defaults.titleWebPage"),size:"h-full,v-medium",align:"center"};case U.MEDIA:return{id:w()(),type:e,title:n("geostory.builder.defaults.titleUnknown"),size:"large",align:"center"};default:return{id:w()(),type:e,title:n("geostory.builder.defaults.titleUnknown"),size:"full",align:"center"}}},Z=function(t,e){return l()(t).reduce((function(t,n){if(n&&0===n.indexOf("{")){var r=JSON.parse(n),i=o()(e,t),c=u()(i,r);return c>=0?[].concat(j(t),[c]):t}return[].concat(j(t),[n])}),[])},$=function(t,e){return l()(t).reduce((function(t,n){var r=t.path,i=t.flatPath;if(n&&0===n.indexOf("{")){var c=JSON.parse(n),l=o()(e,r),a=u()(l,c);if(a>=0){var s=l[a],f=s.id,d=s.type;return{path:[].concat(j(r),[a]),flatPath:[].concat(j(i),[{id:f,type:r[r.length-1],contentType:d}])}}return{path:r,flatPath:i}}return{path:[].concat(j(r),[n]),flatPath:i}}),{path:[],flatPath:[]})},Q=function(t,e){return t.reduce((function(t,n){return I()(n.contents.map((function(t){return t.id})),e)?n.id:t}),null)},tt=function(t){return t.type===N.PARAGRAPH&&!1!==t.editURL&&t&&s()(t.contents)&&t.contents.length&&s()(t.contents[0].contents)&&t.contents[0].contents.length&&t.contents[0].contents[0].type===U.WEBPAGE&&!1!==t.contents[0].contents[0].editURL},et=function(t,e){if(e)switch(t){case"small":return.4*e;case"medium":return.6*e;case"large":return.8*e;default:return e}return 0},nt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;if(!e.includes(n))return null;var i=e.substring(e.indexOf(n)).split("/");return r&&n?i.length>1&&i[2]&&Number(i[0])===n?5===i.length?S()(t,"".concat(i[2],"/column/").concat(i[4]),"".concat(r)):S()(t,"".concat(i[2]),"".concat(r)):(e.includes("shared"),""!==i[1]?"".concat(t,"/section/").concat(r):"".concat(t,"section/").concat(r)):!r&&o&&b()(o)&&"EMPTY"!==o&&i.length>1?e.includes("shared")&&!i[2]?t:5===i.length?S()(t,"".concat(i[4]),"".concat(o)):"".concat(t,"/column/").concat(o):null},rt=function(t,e,n){var r={active:e,inactive:n,custom:{families:[],urls:[]}};return t.filter((function(t){return!!t.src})).forEach((function(t,e){r.custom.families[e]=t.family,r.custom.urls[e]=t.src})),r},ot=function(t){return t.map((function(t){return t.family}))},it=["inherit","Arial","Georgia","Impact","Tahoma","Times New Roman","Verdana"],ut=function(){return window.location.href.match("geostory-embedded")?"geostoryEmbedded":"geostory"},ct=function(t){var e=function(t){try{var e;return null===(e=JSON.parse(t))||void 0===e?void 0:e.id}catch(t){return null}},n=l()(t)||[];return{sectionId:e(null==n?void 0:n[1]),contentId:e(null==n?void 0:n[3]),innerContentId:e(null==n?void 0:n[5])}},lt=function(){var t=arguments.length>1?arguments[1]:void 0;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map((function(e){return t.sectionId===e.id?M(M({},e),{},{contents:(e.contents||[]).map((function(e){return M(M({},e),{},{hideContent:e.id!==t.showContentId})}))}):e}))};function at(t){var e=t.id,n=t.contents,r=t.featureStyle;return M(M({visibility:!0,handleClickOnLayer:!0},t.layerOptions),{},{id:"geostory-vector-".concat(e),name:"geostory-vector-".concat(e),type:"vector",features:n.reduce((function(t,e,n){return[].concat(j(t),j(((null==e?void 0:e.features)||[]).map((function(t){return M(M({},t),{},{contentRefId:e.id},r&&{style:r({content:e,feature:t},n)})}))||[]))}),[]).reverse()})}var st=function(t,e,n,r,o){return M(M(M({},t),{},{iconText:"".concat(u()(e,(function(t){var e=t.id;return n.id===e}))+1)},o.style),{},{highlight:r===n.id})}}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/66113.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/66113.affd309bf2aa3f38d3a0.chunk.js deleted file mode 100644 index c38b73ce77..0000000000 --- a/geonode_mapstore_client/static/mapstore/dist/js/66113.affd309bf2aa3f38d3a0.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[66113],{866113:(t,e,n)=>{"use strict";n.d(e,{$F:()=>S,eg:()=>P,Kg:()=>w,PR:()=>T,eK:()=>R,pu:()=>M,Lu:()=>C,W5:()=>D,TQ:()=>L,KR:()=>N,sY:()=>U,vv:()=>G,jq:()=>k,Tr:()=>z,w:()=>W,CK:()=>B,u5:()=>H,z7:()=>V,FW:()=>x,GC:()=>_,yL:()=>X,_O:()=>K,JM:()=>F,bU:()=>J,mm:()=>Y,X6:()=>Z,NR:()=>$,I0:()=>Q,eB:()=>tt,HB:()=>et});var r=n(227361),o=n.n(r),i=n(313311),u=n.n(i),c=n(630998),l=n.n(c),a=n(618446),s=n.n(a),f=n(944908),d=n.n(f),y=n(264721),p=n.n(y),g=n(192579),v=n(274621),m=n(324684);function b(t){return b="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},b(t)}function h(t){return function(t){if(Array.isArray(t))return E(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return E(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0},D=function(t){return o()(t,"geostory.isSettingsEnabled",!1)},L=function(t){var e=o()(w(t),"settings",{}),n=j(t).filter((function(t){var e=t.type;return p()([g.ID.CAROUSEL,g.ID.IMMERSIVE],e)})),r=e.checked||[],i=d()(r.map((function(t){return(0,g.Un)(n,t)})).filter((function(t){return t})));return I(I({},e),{},{expanded:i})},N=function(t){return!s()(o()(w(t),"settings",{}),function(t){return o()(t,"geostory.oldSettings",{})}(t))},U=function(t){return o()(t,"geostory.selectedCard","")},G=function(t){return function(e){return S("".concat(t,".resourceId"))(e)}},k=function(t){return o()(w(t),"resources",[])},z=function(t){return function(e){return u()(k(e),{id:t})}},W=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.withImmersiveSection,n=void 0!==e&&e,r=t.includeAlways,i=void 0===r||r;return function(t){var e=j(t),r=function(t){return o()(L(t),"checked",[]).reduce((function(t,e){return I(I({},t),{},O({},e,!0))}),{})}(t);return e.reduce((function(t,e){if(e.type===g.ID.TITLE&&(i||r[e.id]))return[].concat(h(t),[e]);if(e.type===g.ID.PARAGRAPH&&(i||r[e.id]))return[].concat(h(t),[e]);if(e.type===g.ID.BANNER&&(i||r[e.id]))return[].concat(h(t),[e]);if(e.type===g.ID.CAROUSEL&&(i||r[e.id]))return[].concat(h(t),[e]);if(e.type===g.ID.IMMERSIVE){var o=e.contents&&e.contents.reduce((function(t,e){return i||r[e.id]?[].concat(h(t),[I(I({},e),{},{sectionId:t.id})]):t}),[])||[];return n?[].concat(h(t),[e],h(o)):[].concat(h(t),h(o))}return t}),[])}},B=function(t){return W({includeAlways:!0})(t).length},H=function(t){var e=function(t){var e=T(t);return l()(W({includeAlways:!0})(t),{id:e.columns&&e.columns[e.sectionId]?e.columns[e.sectionId]:e.sectionId||""})}(t);return-1!==e?e:l()(W({includeAlways:!0})(t),{id:T(t).sectionId})},V=function(t){return void 0!==o()(t,"geostory.focusedContent.target")},x=function(t){return o()(t,"geostory.focusedContent")},_=function(t){return S(o()(t,"geostory.focusedContent.path",""))(t)},X=function(t){return j(t).reduce((function(t,e){if(p()([g.ID.IMMERSIVE,g.ID.CAROUSEL],e.type)){var n=e.contents&&e.contents.map((function(t){return{label:t.title||"",value:t.id}}))||[];return[].concat(h(t),[I({label:e.title||"",value:e.id},e.type===g.ID.IMMERSIVE&&{children:n})])}return[].concat(h(t),[{label:e.title||"",value:e.id}])}),[])},q=function t(e,n){var r=n.contents,o=n.background;return n.resourceId===e||!(!o||o.resourceId!==e)||!!r&&!!u()(r,(function(n){return t(e,n)}))},K=function(t,e){return!!u()(j(t),(function(t){return q(e,t)}))},F=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,m.F)(t).includes("geostory/shared")},J=function(t){return o()(t,"geostory.updateUrlOnScroll",!1)},Y=function(t){return o()(t,"geostory.currentStory.settings.theme.fontFamilies",[])},Z=function(t){return o()(t,"geostory.mediaEditorSettings")},$=function(t){var e;return((null===(e=w(t))||void 0===e?void 0:e.sections)||[]).filter((function(t){return t.type===g.ID.CAROUSEL}))},Q=function(t){return function(e){return!!u()($(e),{id:t})}},tt=function(t){return function(e){var n=u()($(e)||[],{id:t});return(null==n?void 0:n.contents)||[]}},et=function(t){var e;return!(null==t||null===(e=t.geostory)||void 0===e||!e.drawOptions)}},274621:(t,e,n)=>{"use strict";n.d(e,{np:()=>r,L3:()=>o,jl:()=>i,y8:()=>u,qg:()=>c}),n(727418),n(227361);var r=function(t){return t&&t.security&&t.security.user},o=function(t){return r(t)&&r(t).role},i=function(t){return t&&t.security&&t.security.user},u=function(t){return t.security&&t.security.token},c=function(t){return"ADMIN"===o(t)}},192579:(t,e,n)=>{"use strict";n.d(e,{gg:()=>L,Ln:()=>N,ID:()=>U,bT:()=>G,tQ:()=>k,Tr:()=>z,nl:()=>W,ZX:()=>B,lg:()=>H,w:()=>V,cy:()=>x,lt:()=>_,M1:()=>X,kn:()=>K,oH:()=>F,Aq:()=>Y,nq:()=>Z,Ll:()=>$,ln:()=>Q,Un:()=>tt,NC:()=>et,t4:()=>nt,NP:()=>rt,bm:()=>ot,_R:()=>it,Km:()=>ut,of:()=>ct,u0:()=>lt,eI:()=>at,Yh:()=>st,c0:()=>ft});var r=n(227361),o=n.n(r),i=n(630998),u=n.n(i),c=n(30084),l=n.n(c),a=n(701469),s=n.n(a),f=n(252628),d=n.n(f),y=n(763105),p=n.n(y),g=n(682492),v=n.n(g),m=n(747037),b=n.n(m),h=n(513218),E=n.n(h),A=n(264721),I=n.n(A),O=n(313880),S=n.n(O),P=n(455877),w=n.n(P);function T(t){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},T(t)}function R(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function M(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:{};return v()({},q,t)},F=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return v()({},t,e)},J=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:RegExp(e,"i");return!e||n.test(t)},Y=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:RegExp(e,"i");return p()(t,(function(t){return J(t.data&&(t.data.title||t.data.name),e,n)||J(t.data&&t.data.description,e,n)}))},Z=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(t){return t};switch(e){case U.TITLE:return{id:w()(),type:U.TITLE,title:n("geostory.builder.defaults.titleTitle"),cover:!1,contents:[{id:w()(),type:G.TEXT,html:"",size:"large",align:"center",theme:"",background:{fit:"cover",size:"full",align:"center"}}]};case U.BANNER:return{id:w()(),type:U.BANNER,title:n("geostory.builder.defaults.titleBanner"),cover:!1,contents:[{id:w()(),background:{fit:"cover",size:"full",align:"center"}}]};case U.PARAGRAPH:return{id:w()(),type:U.PARAGRAPH,title:n("geostory.builder.defaults.titleParagraph"),contents:[{id:w()(),type:G.COLUMN,size:"full",align:"center",contents:[{id:w()(),type:G.TEXT,html:""}]}]};case U.IMMERSIVE:return{id:w()(),type:U.IMMERSIVE,title:n("geostory.builder.defaults.titleImmersive"),contents:[t(G.COLUMN,n("geostory.builder.defaults.titleImmersiveContent"))]};case U.CAROUSEL:return{id:w()(),type:e,title:n("geostory.builder.defaults.titleGeocarousel"),template:e,background:{fit:"cover",size:"full",align:"center"},contents:[t(G.COLUMN,n("geostory.builder.defaults.titleGeocarouselContent"))]};case k.MEDIA:return{id:w()(),type:U.PARAGRAPH,title:n("geostory.builder.defaults.titleMedia"),contents:[{id:w()(),type:G.COLUMN,contents:[{id:w()(),type:G.MEDIA,size:"large",align:"center"}]}]};case k.WEBPAGE:return{id:w()(),type:U.PARAGRAPH,title:n("geostory.builder.defaults.titleWebPageSection"),contents:[{id:w()(),type:G.COLUMN,contents:[{id:w()(),type:G.WEBPAGE,size:"h-medium,v-medium",align:"center"}]}]};case G.COLUMN:return{id:w()(),type:G.COLUMN,align:"left",size:"small",theme:"",title:n,contents:[{id:w()(),type:G.TEXT,html:""}],background:{fit:"cover",size:"full",align:"center"}};case G.TEXT:return{id:w()(),type:G.TEXT,title:n("geostory.builder.defaults.titleText"),html:""};case G.IMAGE:return{id:w()(),type:e,title:n("geostory.builder.defaults.titleMedia"),size:"full",align:"center"};case G.WEBPAGE:return{id:w()(),type:e,title:n("geostory.builder.defaults.titleWebPage"),size:"h-full,v-medium",align:"center"};case G.MEDIA:return{id:w()(),type:e,title:n("geostory.builder.defaults.titleUnknown"),size:"large",align:"center"};default:return{id:w()(),type:e,title:n("geostory.builder.defaults.titleUnknown"),size:"full",align:"center"}}},$=function(t,e){return l()(t).reduce((function(t,n){if(n&&0===n.indexOf("{")){var r=JSON.parse(n),i=o()(e,t),c=u()(i,r);return c>=0?[].concat(C(t),[c]):t}return[].concat(C(t),[n])}),[])},Q=function(t,e){return l()(t).reduce((function(t,n){var r=t.path,i=t.flatPath;if(n&&0===n.indexOf("{")){var c=JSON.parse(n),l=o()(e,r),a=u()(l,c);if(a>=0){var s=l[a],f=s.id,d=s.type;return{path:[].concat(C(r),[a]),flatPath:[].concat(C(i),[{id:f,type:r[r.length-1],contentType:d}])}}return{path:r,flatPath:i}}return{path:[].concat(C(r),[n]),flatPath:i}}),{path:[],flatPath:[]})},tt=function(t,e){return t.reduce((function(t,n){return I()(n.contents.map((function(t){return t.id})),e)?n.id:t}),null)},et=function(t){return t.type===U.PARAGRAPH&&!1!==t.editURL&&t&&s()(t.contents)&&t.contents.length&&s()(t.contents[0].contents)&&t.contents[0].contents.length&&t.contents[0].contents[0].type===G.WEBPAGE&&!1!==t.contents[0].contents[0].editURL},nt=function(t,e){if(e)switch(t){case"small":return.4*e;case"medium":return.6*e;case"large":return.8*e;default:return e}return 0},rt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;if(!e.includes(n))return null;var i=e.substring(e.indexOf(n)).split("/");return r&&n?i.length>1&&i[2]&&Number(i[0])===n?5===i.length?S()(t,"".concat(i[2],"/column/").concat(i[4]),"".concat(r)):S()(t,"".concat(i[2]),"".concat(r)):(e.includes("shared"),""!==i[1]?"".concat(t,"/section/").concat(r):"".concat(t,"section/").concat(r)):!r&&o&&b()(o)&&"EMPTY"!==o&&i.length>1?e.includes("shared")&&!i[2]?t:5===i.length?S()(t,"".concat(i[4]),"".concat(o)):"".concat(t,"/column/").concat(o):null},ot=function(t,e,n){var r={active:e,inactive:n,custom:{families:[],urls:[]}};return t.filter((function(t){return!!t.src})).forEach((function(t,e){r.custom.families[e]=t.family,r.custom.urls[e]=t.src})),r},it=function(t){return t.map((function(t){return t.family}))},ut=["inherit","Arial","Georgia","Impact","Tahoma","Times New Roman","Verdana"],ct=function(){return window.location.href.match("geostory-embedded")?"geostoryEmbedded":"geostory"},lt=function(t){var e=function(t){try{var e;return null===(e=JSON.parse(t))||void 0===e?void 0:e.id}catch(t){return null}},n=l()(t)||[];return{sectionId:e(null==n?void 0:n[1]),contentId:e(null==n?void 0:n[3]),innerContentId:e(null==n?void 0:n[5])}},at=function(){var t=arguments.length>1?arguments[1]:void 0;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map((function(e){return t.sectionId===e.id?M(M({},e),{},{contents:(e.contents||[]).map((function(e){return M(M({},e),{},{hideContent:e.id!==t.showContentId})}))}):e}))};function st(t){var e=t.id,n=t.contents,r=t.featureStyle;return M(M({visibility:!0,handleClickOnLayer:!0},t.layerOptions),{},{id:"geostory-vector-".concat(e),name:"geostory-vector-".concat(e),type:"vector",features:n.reduce((function(t,e,n){return[].concat(C(t),C(((null==e?void 0:e.features)||[]).map((function(t){return M(M({},t),{},{contentRefId:e.id},r&&{style:r({content:e,feature:t},n)})}))||[]))}),[]).reverse()})}var ft=function(t,e,n,r,o){return M(M(M({},t),{},{iconText:"".concat(u()(e,(function(t){var e=t.id;return n.id===e}))+1)},o.style),{},{highlight:r===n.id})}}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/66372.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/66372.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/66372.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/66372.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/66551.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/66551.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/66551.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/66551.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/66621.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/66621.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/66621.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/66621.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/66673.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/66673.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/66673.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/66673.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/66784.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/66784.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/66784.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/66784.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/66791.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/66791.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/66791.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/66791.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/66806.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/66806.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/66806.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/66806.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/66920.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/66920.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/66920.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/66920.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/66991.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/66991.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/66991.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/66991.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/67063.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/67063.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/67063.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/67063.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/67092.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/67092.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/67092.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/67092.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/67114.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/67114.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/67114.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/67114.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/67259.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/67259.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/67259.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/67259.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/67260.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/67260.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/67260.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/67260.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/67305.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/67305.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/67305.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/67305.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/67414.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/67414.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/67414.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/67414.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/67435.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/67435.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/67435.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/67435.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/67489.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/67489.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/67489.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/67489.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/6756.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/6756.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/6756.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/6756.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/67587.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/67587.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/67587.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/67587.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/67721.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/67721.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/67721.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/67721.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/67823.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/67823.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/67823.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/67823.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/6795.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/6795.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/6795.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/6795.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/68030.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/68030.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/68030.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/68030.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/68228.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/68228.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/68228.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/68228.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/68296.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/68296.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/68296.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/68296.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/68370.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/68370.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/68370.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/68370.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/68482.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/68482.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/68482.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/68482.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/68750.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/68750.018dc26183efb561a8b1.chunk.js similarity index 77% rename from geonode_mapstore_client/static/mapstore/dist/js/68750.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/68750.018dc26183efb561a8b1.chunk.js index dc326cfb87..6b3326b77a 100644 --- a/geonode_mapstore_client/static/mapstore/dist/js/68750.affd309bf2aa3f38d3a0.chunk.js +++ b/geonode_mapstore_client/static/mapstore/dist/js/68750.018dc26183efb561a8b1.chunk.js @@ -1 +1 @@ -(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[68750],{93993:(e,r,t)=>{"use strict";t.d(r,{rv:()=>n,TN:()=>o,R_:()=>a,Ry:()=>i,un:()=>u,Yc:()=>l,Sp:()=>c,VT:()=>s,YT:()=>p,xz:()=>f,J6:()=>v,P1:()=>d,SF:()=>y,Rf:()=>b,Oi:()=>m,XR:()=>g,nu:()=>O,wc:()=>h,Jl:()=>S,cf:()=>E,fU:()=>P,tn:()=>w,nk:()=>j,Hg:()=>T});var n="GEONODE_SEARCH:SEARCH_RESOURCES",o="GEONODE_SEARCH:UPDATE_RESOURCES",a="GEONODE_SEARCH:LOADING_RESOURCES",i="GEONODE_SEARCH:REQUEST_RESOURCE",u="GEONODE_SEARCH:UPDATE_RESOURCES_METADATA",l="GEONODE:SET_FEATURED_RESOURCES",c="GEONODE_SEARCH:UPDATE_FEATURED_RESOURCES",s="GEONODE_REDUCE_TOTAL_COUNT",p="GEONODE_INCREASE_TOTAL_COUNT",f="GEONODE_SET_SEARCH_CONFIG",v="GEONODE:GET_FACET_ITEMS",d="GEONODE:SET_FACET_ITEMS";function y(e,r,t){return{type:n,params:e,pathname:r,reset:t}}function b(e,r){return{type:o,resources:e,reset:r}}function m(e){return{type:u,metadata:e}}function g(e){return{type:a,loading:e}}function O(e,r){return{type:i,pk:e,ctype:r}}function h(e){return{type:l,data:e}}function S(e){return{type:c,action:e,pageSize:arguments.length>1&&void 0!==arguments[1]?arguments[1]:4}}function E(){return{type:s}}function P(){return{type:p}}function w(e){return{type:f,config:e}}function j(){return{type:v}}function T(e){return{type:d,facetItems:e}}},864818:(e,r,t)=>{"use strict";t.d(r,{ZP:()=>W});var n=t(49977),o=t(618446),a=t.n(o),i=t(701469),u=t.n(i),l=t(414293),c=t.n(l),s=t(337326),p=t(93993),f=t(643892),v=t(275982),d=t(472500),y=t.n(d),b=t(227361),m=t.n(b),g=t(737275),O=t(322843),h=t(770058);function S(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);te.length)&&(r=e.length);for(var t=0,n=new Array(r);t=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function x(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function G(e){for(var r=1;r1&&void 0!==arguments[1]?arguments[1]:["d"];return Object.keys(e).filter((function(e){return!r.includes(e)})).reduce((function(r,t){return e[t]&&0!==e[t].length?G(G({},r),{},H({},t,u()(e[t])?e[t].map((function(e){return e+""})):e[t]+"")):r}),{})},L=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,n=t.defaultPage,o=void 0===n?1:n,a=t.pagination,i=t.exclude,u=y().parse(e||"",!0).query,l=(u.page,F(u,D)),c=q(G(G({},r),a?u:l),i),s=c.page;return[F(c,C),s?parseFloat(s):o]},X=function(e,r){var t,o,a=e.params,i=e.pageSize,u=e.reset,l=e.location,c=r.getState(),f=function(e){var r=(0,O.bh)(e,(0,g.u8)("monitorState")),t=(0,g.u8)("geoNodeCustomFilters"),n=function(e){return m()(r,e)},o=(0,h.BK)((function(e){return(0,O.CU)(n,{},e)}))(t||{});return Object.keys(o).reduce((function(e,r){return[].concat(function(e){if(Array.isArray(e))return S(e)}(t=e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,r){if(e){if("string"==typeof e)return S(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?S(e,r):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[{id:r,query:o[r]}]);var t}),[])}(c),v=q(G(G({},a),null==c||null===(t=c.gnsearch)||void 0===t||null===(o=t.config)||void 0===o?void 0:o.defaultQuery));return n.Observable.defer((function(){return(0,s.jh)(G(G({},v),{},{pageSize:i,customFilters:f}))})).switchMap((function(e){var r,t=e.resources,o=e.total,i=e.isNextPageAvailable,s=(0,w.np)(c),f=null==s||null===(r=s.info)||void 0===r?void 0:r.preferred_username,v=(0,P.VC)(t,f);return n.Observable.of.apply(n.Observable,N(v.map((function(e){return(0,E.tv)(e)}))).concat([(0,p.Rf)(t,u),(0,p.Oi)({isNextPageAvailable:i,params:a,locationSearch:l.search,locationPathname:l.pathname,total:o}),(0,p.XR)(!1)]))})).catch((function(){return n.Observable.of((0,p.Rf)([],!0),(0,p.Oi)({isNextPageAvailable:!1,params:a,locationSearch:l.search,locationPathname:l.pathname,total:0,error:!0}),(0,p.XR)(!1))})).startWith((0,p.XR)(!0))},V=function(e){return"/"!==e&&_.Jd.filter((function(e){return e.shouldNotRequestResources})).some((function(r){return r.path.some((function(r){var t;return null===(t=(0,R.LX)(e,r))||void 0===t?void 0:t.isExact}))}))};const W={gnsSearchResourcesEpic:function(e,r){return e.ofType(p.rv).switchMap((function(e){var t,o,i,u,l,c,s,p,f=e.pathname,d=void 0===f?"/":f,b=e.params,m=e.reset,g=r.getState(),O=!(null==g||null===(t=g.gnsearch)||void 0===t||null===(o=t.config)||void 0===o||!o.pagination),h=q(null==g||null===(i=g.gnsearch)||void 0===i?void 0:i.params,[]),S=q(b,[]),E=O?[]:["page"],P=Object.keys(S).reduce((function(e,r){return E.includes(r)?e:G(G({},e),{},H({},r,S[r]))}),{}),w=((null===(u=g.router)||void 0===u||null===(l=u.location)||void 0===l?void 0:l.pathname)||"/")===d,j=!a()(h,S),T=(null==g||null===(c=g.gnsearch)||void 0===c?void 0:c.locationSearch)||"",A=y().format({query:P});return T===A&&w?m||j?n.Observable.of((p={action:"PUSH",params:S,location:null==g||null===(s=g.router)||void 0===s?void 0:s.location},{type:z,payload:p,reset:void 0})):n.Observable.empty():n.Observable.of((0,v.VF)(G(G({},d&&!w&&{pathname:d}),{},{search:A})))}))},gnsSearchResourcesOnLocationChangeEpic:function(e,r){return e.ofType(v.nk,z).filter((function(e){var r=e.payload;return"PUSH"===r.action||"POP"===r.action})).switchMap((function(e){var t,o,i,u,l=r.getState(),c=!(null==l||null===(t=l.gnsearch)||void 0===t||null===(o=t.config)||void 0===o||!o.pagination),s=null==l||null===(i=l.gnsearch)||void 0===i||null===(u=i.config)||void 0===u?void 0:u.pageSize;if(!s)return n.Observable.empty();var p,f=e.payload||{},v=f.isFirstRendering,d=f.location,y=l.gnsearch.nextParams,b=U(L(l.gnsearch.locationSearch,l.gnsearch.params,{pagination:c}),2),m=b[0],g=b[1],O=U(L(d.search,y||{},{pagination:c}),2),h=O[0],S=O[1],E=e.payload.location.pathname;if(!y||e.reset||V(E)){var P,w=c?S:1,j=G(G({},h),{},{page:w}),T=c?a()(G(G({},m),{},{page:g}),G(G({},h),{},{page:S})):a()(m,h);return!V(E)&&(null!=l&&null!==(P=l.gnsearch)&&void 0!==P&&P.isFirstRequest||v||!T||e.reset)?X({params:j,pageSize:s,reset:!0,location:d},r):n.Observable.empty()}var A=!1;if(c){var R;p=null!=l&&null!==(R=l.gnsearch)&&void 0!==R&&R.isFirstRequest||a()(m,h)?S:1,A=!0}else{var _,D=(null===(_=l.gnsearch)||void 0===_?void 0:_.resources.length)||0,C=Math.floor(D/s),k=S===g+1&&S===C+1;p=(A=v||!a()(m,h)||!k)?1:S}var N=G(G({},h),{},{page:p});return X({params:N,pageSize:s,reset:A,location:d},r)}))},gnsSelectResourceEpic:function(e,r){return e.ofType(p.Ry).switchMap((function(e){var t,o;if(c()(e.pk))return n.Observable.of((0,f.DF)(null));var a=((null===(t=r.getState().gnsearch)||void 0===t?void 0:t.resources)||[]).find((function(r){var t=r.pk,n=r.resource_type;return t===e.pk&&e.ctype===n}));return(o=n.Observable.defer((function(){return(0,s.yi)(e.ctype,e.pk)})).switchMap((function(e){return n.Observable.of((0,f.DF)(G(G({},e),{},{"@ms-detail":!0})))})).catch((function(e){return n.Observable.of((0,f.mN)(e.data||e.message))}))).startWith.apply(o,N(a?[(0,f.DF)(G(G({},a),{},{"@ms-detail":!0}),!0)]:[(0,f.Q$)()]))}))},getFeaturedResourcesEpic:function(e,r){var t=r.getState,o=void 0===t?function(){}:t;return e.ofType(p.Sp).switchMap((function(e){var r=e.action,t=e.pageSize,a=function(e,r){var t,n,o,a,i,u;if(!e)return 1;var l=(null===(t=r.gnsearch)||void 0===t||null===(n=t.featuredResources)||void 0===n?void 0:n.page)||1,c=null===(o=r.gnsearch)||void 0===o||null===(a=o.featuredResources)||void 0===a?void 0:a.isNextPageAvailable;return"next"===e&&c?l+1:(null===(i=r.gnsearch)||void 0===i||null===(u=i.featuredResources)||void 0===u?void 0:u.isPreviousPageAvailable)?l-1:1}(r,o());return n.Observable.defer((function(){return(0,s.B5)(a,t)})).switchMap((function(e){var r;return n.Observable.of((0,p.wc)(G(G({},e),{},{isNextPageAvailable:!(null==e||null===(r=e.links)||void 0===r||!r.next),isPreviousPageAvailable:!(null==e||!e.links.previous),loading:!1})))})).catch((function(e){return n.Observable.of((0,f.mN)(e.data||e.message),(0,p.wc)({loading:!1}))})).startWith((0,p.wc)({loading:!0}))}))},gnWatchStopCopyProcessOnSearch:function(e,r){return e.ofType(E.v).filter((function(e){var r;return(null==e||null===(r=e.payload)||void 0===r?void 0:r.processType)===P.zj.COPY_RESOURCE})).flatMap((function(e){var t,o,a,i,u,l,c,f,v,d;if((null==e||null===(t=e.payload)||void 0===t?void 0:t.error)||(null==e||null===(o=e.payload)||void 0===o||null===(a=o.output)||void 0===a?void 0:a.status)===P.N5.FAILED)return n.Observable.empty();var y=null==e||null===(i=e.payload)||void 0===i||null===(u=i.output)||void 0===u||null===(l=u.output_params)||void 0===l||null===(c=l.output)||void 0===c?void 0:c.uuid;if(void 0===y)return n.Observable.empty();var b=null==e||null===(f=e.payload)||void 0===f||null===(v=f.output)||void 0===v||null===(d=v.input_params)||void 0===d?void 0:d.instance;return n.Observable.defer((function(){return(0,s.LS)(y)})).switchMap((function(e){var t,o=((null===(t=r.getState().gnsearch)||void 0===t?void 0:t.resources)||[]).reduce((function(r,t){return t.pk==="".concat(b)?[].concat(N(r),[G(G({},e),{},{"@temporary":!0,pk2:A()()}),t]):[].concat(N(r),[t])}),[]);return n.Observable.of((0,p.Rf)(o,!0))}))}))},gnsRequestResourceOnLocationChange:function(e,r){return e.ofType(v.nk).filter((function(e){var r=e.payload;return"PUSH"===r.action||"POP"===r.action})).switchMap((function(e){var t=r.getState(),o=(e.payload||{}).location,a=y().parse((null==o?void 0:o.search)||"",!0).query,i=(0,j.yK)(t)||{pk:"",resource_type:""},u=U(((null==a?void 0:a.d)||"").split(";"),2),l=u[0],c=u[1];return"".concat(null==i?void 0:i.pk)===l&&"".concat(null==i?void 0:i.resource_type)===c?n.Observable.empty():n.Observable.of((0,p.nu)(l||void 0,c))}))},gnGetFacetItems:function(e){return e.ofType(p.J6).switchMap((function(){return n.Observable.defer((function(){return(0,s.nk)()})).switchMap((function(e){return n.Observable.of((0,p.Hg)(e))}))}))}}},331869:(e,r,t)=>{"use strict";t.d(r,{ZP:()=>w});var n,o=t(49977),a=t(375875),i=t.n(a),u=t(178598),l=t(138334),c=t(12530),s=t(452992),p=t(337326),f=t(643892),v=t(93993),d=t(782904),y=t(275982),b=t(197395);function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function g(e){return function(e){if(Array.isArray(e))return O(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(e){if("string"==typeof e)return O(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?O(e,r):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t{"use strict";t.d(r,{Z:()=>d});var n=t(414293),o=t.n(n),a=t(93993),i=t(643892);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function l(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(e){if("string"==typeof e)return c(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?c(e,r):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t0&&void 0!==arguments[0]?arguments[0]:v,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case a.rv:return p(p({},e),{},{nextParams:r.params});case a.TN:return p(p({},e),{},{isFirstRequest:!1,resources:r.reset?l(r.resources):[].concat(l(e.resources),l(r.resources))});case i.Oq:var t=e.resources.map((function(e){var t;return e.pk===(null==r||null===(t=r.data)||void 0===t?void 0:t.pk)?null==r?void 0:r.data:e}));return p(p({},e),{},{isFirstRequest:!1,resources:l(t)});case a.un:return p(p(p(p({},e),{},{total:r.metadata.total,isNextPageAvailable:r.metadata.isNextPageAvailable,error:r.metadata.error},r.metadata.params&&{params:r.metadata.params,previousParams:e.params,nextParams:null}),!o()(r.metadata.locationSearch)&&{locationSearch:r.metadata.locationSearch}),!o()(r.metadata.locationPathname)&&{locationPathname:r.metadata.locationPathname});case a.R_:return p(p({},e),{},{loading:r.loading},r.loading&&{error:!1});case a.Yc:return p(p({},e),{},{featuredResources:p(p({},e.featuredResources),r.data)});case a.VT:return p(p({},e),{},{total:e.total-1});case a.YT:return p(p({},e),{},{total:e.total+1});case a.xz:return p(p({},e),{},{config:r.config});case a.P1:return p(p({},e),{},{facetItems:r.facetItems});default:return e}}},555168:(e,r,t)=>{"use strict";t.d(r,{Z:()=>f});var n=t(138334),o=t(643892);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function i(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(e){if("string"==typeof e)return u(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?u(e,r):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t0&&void 0!==arguments[0]?arguments[0]:p,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case o.Pv:return c(c({},e),{},{processes:[].concat(i(e.processes.filter((function(e){return!r.resources.find((function(t){var n;return(null==e||null===(n=e.resource)||void 0===n?void 0:n.pk)===(null==t?void 0:t.pk)&&(null==e?void 0:e.processType)===r.processType}))}))),i(r.resources.map((function(e){return{resource:e,processType:r.processType}}))))});case n.oc:return c(c({},e),{},{processes:[].concat(i(e.processes.filter((function(e){var t,n,o,a;return!((null==e||null===(t=e.resource)||void 0===t?void 0:t.pk)===(null==r||null===(n=r.payload)||void 0===n||null===(o=n.resource)||void 0===o?void 0:o.pk)&&(null==e?void 0:e.processType)===(null==r||null===(a=r.payload)||void 0===a?void 0:a.processType))}))),[r.payload])});case n.v:case n.jo:return c(c({},e),{},{processes:e.processes.map((function(e){var t,n,o,a;return(null==e||null===(t=e.resource)||void 0===t?void 0:t.pk)===(null==r||null===(n=r.payload)||void 0===n||null===(o=n.resource)||void 0===o?void 0:o.pk)&&(null==e?void 0:e.processType)===(null==r||null===(a=r.payload)||void 0===a?void 0:a.processType)?r.payload:e}))});case o.IH:return c(c({},e),{},{downloads:[].concat(i(e.downloads),[r.resource])});case o.e3:return c(c({},e),{},{downloads:i(e.downloads.filter((function(e){var t,n;return(null==e||null===(t=e.resource)||void 0===t?void 0:t.pk)===(null==r||null===(n=r.resource)||void 0===n?void 0:n.pk)})))});default:return e}}}}]); \ No newline at end of file +(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[68750],{93993:(e,r,t)=>{"use strict";t.d(r,{rv:()=>n,TN:()=>o,R_:()=>a,Ry:()=>i,un:()=>u,Yc:()=>l,Sp:()=>c,VT:()=>s,YT:()=>p,xz:()=>f,J6:()=>v,P1:()=>d,SF:()=>y,Rf:()=>b,Oi:()=>m,XR:()=>g,nu:()=>O,wc:()=>h,Jl:()=>S,cf:()=>E,fU:()=>P,tn:()=>w,nk:()=>j,Hg:()=>T});var n="GEONODE_SEARCH:SEARCH_RESOURCES",o="GEONODE_SEARCH:UPDATE_RESOURCES",a="GEONODE_SEARCH:LOADING_RESOURCES",i="GEONODE_SEARCH:REQUEST_RESOURCE",u="GEONODE_SEARCH:UPDATE_RESOURCES_METADATA",l="GEONODE:SET_FEATURED_RESOURCES",c="GEONODE_SEARCH:UPDATE_FEATURED_RESOURCES",s="GEONODE_REDUCE_TOTAL_COUNT",p="GEONODE_INCREASE_TOTAL_COUNT",f="GEONODE_SET_SEARCH_CONFIG",v="GEONODE:GET_FACET_ITEMS",d="GEONODE:SET_FACET_ITEMS";function y(e,r,t){return{type:n,params:e,pathname:r,reset:t}}function b(e,r){return{type:o,resources:e,reset:r}}function m(e){return{type:u,metadata:e}}function g(e){return{type:a,loading:e}}function O(e,r){return{type:i,pk:e,ctype:r}}function h(e){return{type:l,data:e}}function S(e){return{type:c,action:e,pageSize:arguments.length>1&&void 0!==arguments[1]?arguments[1]:4}}function E(){return{type:s}}function P(){return{type:p}}function w(e){return{type:f,config:e}}function j(){return{type:v}}function T(e){return{type:d,facetItems:e}}},864818:(e,r,t)=>{"use strict";t.d(r,{ZP:()=>W});var n=t(49977),o=t(618446),a=t.n(o),i=t(701469),u=t.n(i),l=t(414293),c=t.n(l),s=t(337326),p=t(93993),f=t(643892),v=t(275982),d=t(472500),y=t.n(d),b=t(227361),m=t.n(b),g=t(737275),O=t(322843),h=t(770058);function S(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);te.length)&&(r=e.length);for(var t=0,n=new Array(r);t=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function x(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function G(e){for(var r=1;r1&&void 0!==arguments[1]?arguments[1]:["d"];return Object.keys(e).filter((function(e){return!r.includes(e)})).reduce((function(r,t){return e[t]&&0!==e[t].length?G(G({},r),{},H({},t,u()(e[t])?e[t].map((function(e){return e+""})):e[t]+"")):r}),{})},L=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,n=t.defaultPage,o=void 0===n?1:n,a=t.pagination,i=t.exclude,u=y().parse(e||"",!0).query,l=(u.page,F(u,D)),c=q(G(G({},r),a?u:l),i),s=c.page;return[F(c,C),s?parseFloat(s):o]},X=function(e,r){var t,o,a=e.params,i=e.pageSize,u=e.reset,l=e.location,c=r.getState(),f=function(e){var r=(0,O.bh)(e,(0,g.u8)("monitorState")),t=(0,g.u8)("geoNodeCustomFilters"),n=function(e){return m()(r,e)},o=(0,h.BK)((function(e){return(0,O.CU)(n,{},e)}))(t||{});return Object.keys(o).reduce((function(e,r){return[].concat(function(e){if(Array.isArray(e))return S(e)}(t=e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,r){if(e){if("string"==typeof e)return S(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?S(e,r):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[{id:r,query:o[r]}]);var t}),[])}(c),v=q(G(G({},a),null==c||null===(t=c.gnsearch)||void 0===t||null===(o=t.config)||void 0===o?void 0:o.defaultQuery));return n.Observable.defer((function(){return(0,s.jh)(G(G({},v),{},{pageSize:i,customFilters:f}))})).switchMap((function(e){var r,t=e.resources,o=e.total,i=e.isNextPageAvailable,s=(0,w.np)(c),f=null==s||null===(r=s.info)||void 0===r?void 0:r.preferred_username,v=(0,P.VC)(t,f);return n.Observable.of.apply(n.Observable,N(v.map((function(e){return(0,E.tv)(e)}))).concat([(0,p.Rf)(t,u),(0,p.Oi)({isNextPageAvailable:i,params:a,locationSearch:l.search,locationPathname:l.pathname,total:o}),(0,p.XR)(!1)]))})).catch((function(){return n.Observable.of((0,p.Rf)([],!0),(0,p.Oi)({isNextPageAvailable:!1,params:a,locationSearch:l.search,locationPathname:l.pathname,total:0,error:!0}),(0,p.XR)(!1))})).startWith((0,p.XR)(!0))},V=function(e){return"/"!==e&&_.Jd.filter((function(e){return e.shouldNotRequestResources})).some((function(r){return r.path.some((function(r){var t;return null===(t=(0,R.LX)(e,r))||void 0===t?void 0:t.isExact}))}))};const W={gnsSearchResourcesEpic:function(e,r){return e.ofType(p.rv).switchMap((function(e){var t,o,i,u,l,c,s,p,f=e.pathname,d=void 0===f?"/":f,b=e.params,m=e.reset,g=r.getState(),O=!(null==g||null===(t=g.gnsearch)||void 0===t||null===(o=t.config)||void 0===o||!o.pagination),h=q(null==g||null===(i=g.gnsearch)||void 0===i?void 0:i.params,[]),S=q(b,[]),E=O?[]:["page"],P=Object.keys(S).reduce((function(e,r){return E.includes(r)?e:G(G({},e),{},H({},r,S[r]))}),{}),w=((null===(u=g.router)||void 0===u||null===(l=u.location)||void 0===l?void 0:l.pathname)||"/")===d,j=!a()(h,S),T=(null==g||null===(c=g.gnsearch)||void 0===c?void 0:c.locationSearch)||"",A=y().format({query:P});return T===A&&w?m||j?n.Observable.of((p={action:"PUSH",params:S,location:null==g||null===(s=g.router)||void 0===s?void 0:s.location},{type:z,payload:p,reset:void 0})):n.Observable.empty():n.Observable.of((0,v.VF)(G(G({},d&&!w&&{pathname:d}),{},{search:A})))}))},gnsSearchResourcesOnLocationChangeEpic:function(e,r){return e.ofType(v.nk,z).filter((function(e){var r=e.payload;return"PUSH"===r.action||"POP"===r.action})).switchMap((function(e){var t,o,i,u,l=r.getState(),c=!(null==l||null===(t=l.gnsearch)||void 0===t||null===(o=t.config)||void 0===o||!o.pagination),s=null==l||null===(i=l.gnsearch)||void 0===i||null===(u=i.config)||void 0===u?void 0:u.pageSize;if(!s)return n.Observable.empty();var p,f=e.payload||{},v=f.isFirstRendering,d=f.location,y=l.gnsearch.nextParams,b=U(L(l.gnsearch.locationSearch,l.gnsearch.params,{pagination:c}),2),m=b[0],g=b[1],O=U(L(d.search,y||{},{pagination:c}),2),h=O[0],S=O[1],E=e.payload.location.pathname;if(!y||e.reset||V(E)){var P,w=c?S:1,j=G(G({},h),{},{page:w}),T=c?a()(G(G({},m),{},{page:g}),G(G({},h),{},{page:S})):a()(m,h);return!V(E)&&(null!=l&&null!==(P=l.gnsearch)&&void 0!==P&&P.isFirstRequest||v||!T||e.reset)?X({params:j,pageSize:s,reset:!0,location:d},r):n.Observable.empty()}var A=!1;if(c){var R;p=null!=l&&null!==(R=l.gnsearch)&&void 0!==R&&R.isFirstRequest||a()(m,h)?S:1,A=!0}else{var _,D=(null===(_=l.gnsearch)||void 0===_?void 0:_.resources.length)||0,C=Math.floor(D/s),k=S===g+1&&S===C+1;p=(A=v||!a()(m,h)||!k)?1:S}var N=G(G({},h),{},{page:p});return X({params:N,pageSize:s,reset:A,location:d},r)}))},gnsSelectResourceEpic:function(e,r){return e.ofType(p.Ry).switchMap((function(e){var t,o;if(c()(e.pk))return n.Observable.of((0,f.DF)(null));var a=((null===(t=r.getState().gnsearch)||void 0===t?void 0:t.resources)||[]).find((function(r){var t=r.pk,n=r.resource_type;return t===e.pk&&e.ctype===n}));return(o=n.Observable.defer((function(){return(0,s.yi)(e.ctype,e.pk)})).switchMap((function(e){return n.Observable.of((0,f.DF)(G(G({},e),{},{"@ms-detail":!0})))})).catch((function(e){return n.Observable.of((0,f.mN)(e.data||e.message))}))).startWith.apply(o,N(a?[(0,f.DF)(G(G({},a),{},{"@ms-detail":!0}),!0)]:[(0,f.Q$)()]))}))},getFeaturedResourcesEpic:function(e,r){var t=r.getState,o=void 0===t?function(){}:t;return e.ofType(p.Sp).switchMap((function(e){var r=e.action,t=e.pageSize,a=function(e,r){var t,n,o,a,i,u;if(!e)return 1;var l=(null===(t=r.gnsearch)||void 0===t||null===(n=t.featuredResources)||void 0===n?void 0:n.page)||1,c=null===(o=r.gnsearch)||void 0===o||null===(a=o.featuredResources)||void 0===a?void 0:a.isNextPageAvailable;return"next"===e&&c?l+1:(null===(i=r.gnsearch)||void 0===i||null===(u=i.featuredResources)||void 0===u?void 0:u.isPreviousPageAvailable)?l-1:1}(r,o());return n.Observable.defer((function(){return(0,s.B5)(a,t)})).switchMap((function(e){var r;return n.Observable.of((0,p.wc)(G(G({},e),{},{isNextPageAvailable:!(null==e||null===(r=e.links)||void 0===r||!r.next),isPreviousPageAvailable:!(null==e||!e.links.previous),loading:!1})))})).catch((function(e){return n.Observable.of((0,f.mN)(e.data||e.message),(0,p.wc)({loading:!1}))})).startWith((0,p.wc)({loading:!0}))}))},gnWatchStopCopyProcessOnSearch:function(e,r){return e.ofType(E.v).filter((function(e){var r;return(null==e||null===(r=e.payload)||void 0===r?void 0:r.processType)===P.zj.COPY_RESOURCE})).flatMap((function(e){var t,o,a,i,u,l,c,f,v,d;if((null==e||null===(t=e.payload)||void 0===t?void 0:t.error)||(null==e||null===(o=e.payload)||void 0===o||null===(a=o.output)||void 0===a?void 0:a.status)===P.N5.FAILED)return n.Observable.empty();var y=null==e||null===(i=e.payload)||void 0===i||null===(u=i.output)||void 0===u||null===(l=u.output_params)||void 0===l||null===(c=l.output)||void 0===c?void 0:c.uuid;if(void 0===y)return n.Observable.empty();var b=null==e||null===(f=e.payload)||void 0===f||null===(v=f.output)||void 0===v||null===(d=v.input_params)||void 0===d?void 0:d.instance;return n.Observable.defer((function(){return(0,s.LS)(y)})).switchMap((function(e){var t,o=((null===(t=r.getState().gnsearch)||void 0===t?void 0:t.resources)||[]).reduce((function(r,t){return t.pk==="".concat(b)?[].concat(N(r),[G(G({},e),{},{"@temporary":!0,pk2:A()()}),t]):[].concat(N(r),[t])}),[]);return n.Observable.of((0,p.Rf)(o,!0))}))}))},gnsRequestResourceOnLocationChange:function(e,r){return e.ofType(v.nk).filter((function(e){var r=e.payload;return"PUSH"===r.action||"POP"===r.action})).switchMap((function(e){var t=r.getState(),o=(e.payload||{}).location,a=y().parse((null==o?void 0:o.search)||"",!0).query,i=(0,j.yK)(t)||{pk:"",resource_type:""},u=U(((null==a?void 0:a.d)||"").split(";"),2),l=u[0],c=u[1];return"".concat(null==i?void 0:i.pk)===l&&"".concat(null==i?void 0:i.resource_type)===c?n.Observable.empty():n.Observable.of((0,p.nu)(l||void 0,c))}))},gnGetFacetItems:function(e){return e.ofType(p.J6).switchMap((function(){return n.Observable.defer((function(){return(0,s.nk)()})).switchMap((function(e){return n.Observable.of((0,p.Hg)(e))}))}))}}},331869:(e,r,t)=>{"use strict";t.d(r,{ZP:()=>w});var n,o=t(49977),a=t(375875),i=t.n(a),u=t(178598),l=t(138334),c=t(12530),s=t(452992),p=t(337326),f=t(643892),v=t(93993),d=t(782904),y=t(275982),b=t(197395);function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function g(e){return function(e){if(Array.isArray(e))return O(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(e){if("string"==typeof e)return O(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?O(e,r):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t{"use strict";t.d(r,{Z:()=>v});var n=t(414293),o=t.n(n),a=t(93993),i=t(643892);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function l(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(e){if("string"==typeof e)return c(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?c(e,r):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t0&&void 0!==arguments[0]?arguments[0]:f,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case a.rv:return p(p({},e),{},{nextParams:r.params});case a.TN:return p(p({},e),{},{isFirstRequest:!1,resources:r.reset?l(r.resources):[].concat(l(e.resources),l(r.resources))});case i.Oq:var t=e.resources.map((function(e){var t;return e.pk===(null==r||null===(t=r.data)||void 0===t?void 0:t.pk)?null==r?void 0:r.data:e}));return p(p({},e),{},{isFirstRequest:!1,resources:l(t)});case a.un:return p(p(p(p({},e),{},{total:r.metadata.total,isNextPageAvailable:r.metadata.isNextPageAvailable,error:r.metadata.error},r.metadata.params&&{params:r.metadata.params,previousParams:e.params,nextParams:null}),!o()(r.metadata.locationSearch)&&{locationSearch:r.metadata.locationSearch}),!o()(r.metadata.locationPathname)&&{locationPathname:r.metadata.locationPathname});case a.R_:return p(p({},e),{},{loading:r.loading},r.loading&&{error:!1});case a.Yc:return p(p({},e),{},{featuredResources:p(p({},e.featuredResources),r.data)});case a.VT:return p(p({},e),{},{total:e.total-1});case a.YT:return p(p({},e),{},{total:e.total+1});case a.xz:return p(p({},e),{},{config:r.config});case a.P1:return p(p({},e),{},{facetItems:r.facetItems});default:return e}}},555168:(e,r,t)=>{"use strict";t.d(r,{Z:()=>p});var n=t(138334),o=t(643892);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function i(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(e){if("string"==typeof e)return u(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?u(e,r):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t0&&void 0!==arguments[0]?arguments[0]:s,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case o.Pv:return c(c({},e),{},{processes:[].concat(i(e.processes.filter((function(e){return!r.resources.find((function(t){var n;return(null==e||null===(n=e.resource)||void 0===n?void 0:n.pk)===(null==t?void 0:t.pk)&&(null==e?void 0:e.processType)===r.processType}))}))),i(r.resources.map((function(e){return{resource:e,processType:r.processType}}))))});case n.oc:return c(c({},e),{},{processes:[].concat(i(e.processes.filter((function(e){var t,n,o,a;return!((null==e||null===(t=e.resource)||void 0===t?void 0:t.pk)===(null==r||null===(n=r.payload)||void 0===n||null===(o=n.resource)||void 0===o?void 0:o.pk)&&(null==e?void 0:e.processType)===(null==r||null===(a=r.payload)||void 0===a?void 0:a.processType))}))),[r.payload])});case n.v:case n.jo:return c(c({},e),{},{processes:e.processes.map((function(e){var t,n,o,a;return(null==e||null===(t=e.resource)||void 0===t?void 0:t.pk)===(null==r||null===(n=r.payload)||void 0===n||null===(o=n.resource)||void 0===o?void 0:o.pk)&&(null==e?void 0:e.processType)===(null==r||null===(a=r.payload)||void 0===a?void 0:a.processType)?r.payload:e}))});case o.IH:return c(c({},e),{},{downloads:[].concat(i(e.downloads),[r.resource])});case o.e3:return c(c({},e),{},{downloads:i(e.downloads.filter((function(e){var t,n;return(null==e||null===(t=e.resource)||void 0===t?void 0:t.pk)===(null==r||null===(n=r.resource)||void 0===n?void 0:n.pk)})))});default:return e}}}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/68752.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/68752.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/68752.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/68752.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/69002.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/69002.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/69002.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/69002.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/69014.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/69014.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/69014.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/69014.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/69037.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/69037.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/69037.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/69037.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/6909.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/6909.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/6909.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/6909.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/69140.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/69140.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/69140.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/69140.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/69141.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/69141.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/69141.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/69141.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/69245.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/69245.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/69245.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/69245.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/69305.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/69305.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/69305.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/69305.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/69327.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/69327.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/69327.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/69327.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/69510.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/69510.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/69510.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/69510.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/69522.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/69522.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/69522.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/69522.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/69577.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/69577.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/69577.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/69577.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/69757.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/69757.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/69757.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/69757.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/69863.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/69863.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/69863.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/69863.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/69924.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/69924.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/69924.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/69924.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/70039.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/70039.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/70039.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/70039.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/70043.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/70043.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/70043.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/70043.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/70116.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/70116.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/70116.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/70116.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/70218.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/70218.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/70218.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/70218.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/70262.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/70262.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/70262.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/70262.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/70316.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/70316.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/70316.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/70316.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/70390.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/70390.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/70390.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/70390.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/70427.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/70427.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/70427.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/70427.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/70502.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/70502.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/70502.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/70502.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/70935.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/70935.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/70935.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/70935.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/70983.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/70983.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/70983.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/70983.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/70985.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/70985.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/70985.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/70985.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/71059.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/71059.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/71059.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/71059.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/71107.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/71107.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/71107.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/71107.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/71135.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/71135.018dc26183efb561a8b1.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/71135.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/71135.018dc26183efb561a8b1.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/71167.affd309bf2aa3f38d3a0.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/71167.018dc26183efb561a8b1.chunk.js similarity index 99% rename from geonode_mapstore_client/static/mapstore/dist/js/71167.affd309bf2aa3f38d3a0.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/71167.018dc26183efb561a8b1.chunk.js index 7f042e1bc9..3a0661de2e 100644 --- a/geonode_mapstore_client/static/mapstore/dist/js/71167.affd309bf2aa3f38d3a0.chunk.js +++ b/geonode_mapstore_client/static/mapstore/dist/js/71167.018dc26183efb561a8b1.chunk.js @@ -1,2 +1,2 @@ -/*! For license information please see 71167.affd309bf2aa3f38d3a0.chunk.js.LICENSE.txt */ +/*! For license information please see 71167.018dc26183efb561a8b1.chunk.js.LICENSE.txt */ (self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[71167],{105076:(t,e,n)=>{var r=n(989881);t.exports=function(t,e){var n;return r(t,(function(t,r,o){return!(n=e(t,r,o))})),!!n}},359704:(t,e,n)=>{var r=n(282908),o=n(267206),i=n(105076),l=n(701469),a=n(816612);t.exports=function(t,e,n){var s=l(t)?r:i;return n&&a(t,e,n)&&(e=void 0),s(t,o(e,3))}},676095:function(t,e,n){var r,o=n(348764).Buffer;"undefined"!=typeof self&&self,r=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=109)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(17),o=n(18),i=n(19),l=n(45),a=n(46),s=n(47),u=n(48),c=n(49),f=n(12),h=n(32),p=n(33),d=n(31),y=n(1),v={Scope:y.Scope,create:y.create,find:y.find,query:y.query,register:y.register,Container:r.default,Format:o.default,Leaf:i.default,Embed:u.default,Scroll:l.default,Block:s.default,Inline:a.default,Text:c.default,Attributor:{Attribute:f.default,Class:h.default,Style:p.default,Store:d.default}};e.default=v},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){function e(e){var n=this;return e="[Parchment] "+e,(n=t.call(this,e)||this).message=e,n.name=n.constructor.name,n}return o(e,t),e}(Error);e.ParchmentError=i;var l,a={},s={},u={},c={};function f(t,e){var n;if(void 0===e&&(e=l.ANY),"string"==typeof t)n=c[t]||a[t];else if(t instanceof Text||t.nodeType===Node.TEXT_NODE)n=c.text;else if("number"==typeof t)t&l.LEVEL&l.BLOCK?n=c.block:t&l.LEVEL&l.INLINE&&(n=c.inline);else if(t instanceof HTMLElement){var r=(t.getAttribute("class")||"").split(/\s+/);for(var o in r)if(n=s[r[o]])break;n=n||u[t.tagName]}return null==n?null:e&l.LEVEL&n.scope&&e&l.TYPE&n.scope?n:null}e.DATA_KEY="__blot",function(t){t[t.TYPE=3]="TYPE",t[t.LEVEL=12]="LEVEL",t[t.ATTRIBUTE=13]="ATTRIBUTE",t[t.BLOT=14]="BLOT",t[t.INLINE=7]="INLINE",t[t.BLOCK=11]="BLOCK",t[t.BLOCK_BLOT=10]="BLOCK_BLOT",t[t.INLINE_BLOT=6]="INLINE_BLOT",t[t.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",t[t.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",t[t.ANY=15]="ANY"}(l=e.Scope||(e.Scope={})),e.create=function(t,e){var n=f(t);if(null==n)throw new i("Unable to create "+t+" blot");var r=n,o=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:r.create(e);return new r(o,e)},e.find=function t(n,r){return void 0===r&&(r=!1),null==n?null:null!=n[e.DATA_KEY]?n[e.DATA_KEY].blot:r?t(n.parentNode,r):null},e.query=f,e.register=function t(){for(var e=[],n=0;n1)return e.map((function(e){return t(e)}));var r=e[0];if("string"!=typeof r.blotName&&"string"!=typeof r.attrName)throw new i("Invalid definition");if("abstract"===r.blotName)throw new i("Cannot register abstract class");return c[r.blotName||r.attrName]=r,"string"==typeof r.keyName?a[r.keyName]=r:(null!=r.className&&(s[r.className]=r),null!=r.tagName&&(Array.isArray(r.tagName)?r.tagName=r.tagName.map((function(t){return t.toUpperCase()})):r.tagName=r.tagName.toUpperCase(),(Array.isArray(r.tagName)?r.tagName:[r.tagName]).forEach((function(t){null!=u[t]&&null!=r.className||(u[t]=r)})))),r}},function(t,e,n){var r=n(51),o=n(11),i=n(3),l=n(20),a=String.fromCharCode(0),s=function(t){Array.isArray(t)?this.ops=t:null!=t&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]};s.prototype.insert=function(t,e){var n={};return 0===t.length?this:(n.insert=t,null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n))},s.prototype.delete=function(t){return t<=0?this:this.push({delete:t})},s.prototype.retain=function(t,e){if(t<=0)return this;var n={retain:t};return null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n)},s.prototype.push=function(t){var e=this.ops.length,n=this.ops[e-1];if(t=i(!0,{},t),"object"==typeof n){if("number"==typeof t.delete&&"number"==typeof n.delete)return this.ops[e-1]={delete:n.delete+t.delete},this;if("number"==typeof n.delete&&null!=t.insert&&(e-=1,"object"!=typeof(n=this.ops[e-1])))return this.ops.unshift(t),this;if(o(t.attributes,n.attributes)){if("string"==typeof t.insert&&"string"==typeof n.insert)return this.ops[e-1]={insert:n.insert+t.insert},"object"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this;if("number"==typeof t.retain&&"number"==typeof n.retain)return this.ops[e-1]={retain:n.retain+t.retain},"object"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this}}return e===this.ops.length?this.ops.push(t):this.ops.splice(e,0,t),this},s.prototype.chop=function(){var t=this.ops[this.ops.length-1];return t&&t.retain&&!t.attributes&&this.ops.pop(),this},s.prototype.filter=function(t){return this.ops.filter(t)},s.prototype.forEach=function(t){this.ops.forEach(t)},s.prototype.map=function(t){return this.ops.map(t)},s.prototype.partition=function(t){var e=[],n=[];return this.forEach((function(r){(t(r)?e:n).push(r)})),[e,n]},s.prototype.reduce=function(t,e){return this.ops.reduce(t,e)},s.prototype.changeLength=function(){return this.reduce((function(t,e){return e.insert?t+l.length(e):e.delete?t-e.delete:t}),0)},s.prototype.length=function(){return this.reduce((function(t,e){return t+l.length(e)}),0)},s.prototype.slice=function(t,e){t=t||0,"number"!=typeof e&&(e=1/0);for(var n=[],r=l.iterator(this.ops),o=0;o0&&n.next(i.retain-a)}for(var u=new s(r);e.hasNext()||n.hasNext();)if("insert"===n.peekType())u.push(n.next());else if("delete"===e.peekType())u.push(e.next());else{var c=Math.min(e.peekLength(),n.peekLength()),f=e.next(c),h=n.next(c);if("number"==typeof h.retain){var p={};"number"==typeof f.retain?p.retain=c:p.insert=f.insert;var d=l.attributes.compose(f.attributes,h.attributes,"number"==typeof f.retain);if(d&&(p.attributes=d),u.push(p),!n.hasNext()&&o(u.ops[u.ops.length-1],p)){var y=new s(e.rest());return u.concat(y).chop()}}else"number"==typeof h.delete&&"number"==typeof f.retain&&u.push(h)}return u.chop()},s.prototype.concat=function(t){var e=new s(this.ops.slice());return t.ops.length>0&&(e.push(t.ops[0]),e.ops=e.ops.concat(t.ops.slice(1))),e},s.prototype.diff=function(t,e){if(this.ops===t.ops)return new s;var n=[this,t].map((function(e){return e.map((function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:a;throw new Error("diff() called "+(e===t?"on":"with")+" non-document")})).join("")})),i=new s,u=r(n[0],n[1],e),c=l.iterator(this.ops),f=l.iterator(t.ops);return u.forEach((function(t){for(var e=t[1].length;e>0;){var n=0;switch(t[0]){case r.INSERT:n=Math.min(f.peekLength(),e),i.push(f.next(n));break;case r.DELETE:n=Math.min(e,c.peekLength()),c.next(n),i.delete(n);break;case r.EQUAL:n=Math.min(c.peekLength(),f.peekLength(),e);var a=c.next(n),s=f.next(n);o(a.insert,s.insert)?i.retain(n,l.attributes.diff(a.attributes,s.attributes)):i.push(s).delete(n)}e-=n}})),i.chop()},s.prototype.eachLine=function(t,e){e=e||"\n";for(var n=l.iterator(this.ops),r=new s,o=0;n.hasNext();){if("insert"!==n.peekType())return;var i=n.peek(),a=l.length(i)-n.peekLength(),u="string"==typeof i.insert?i.insert.indexOf(e,a)-a:-1;if(u<0)r.push(n.next());else if(u>0)r.push(n.next(u));else{if(!1===t(r,n.next(1).attributes||{},o))return;o+=1,r=new s}}r.length()>0&&t(r,{},o)},s.prototype.transform=function(t,e){if(e=!!e,"number"==typeof t)return this.transformPosition(t,e);for(var n=l.iterator(this.ops),r=l.iterator(t.ops),o=new s;n.hasNext()||r.hasNext();)if("insert"!==n.peekType()||!e&&"insert"===r.peekType())if("insert"===r.peekType())o.push(r.next());else{var i=Math.min(n.peekLength(),r.peekLength()),a=n.next(i),u=r.next(i);if(a.delete)continue;u.delete?o.push(u):o.retain(i,l.attributes.transform(a.attributes,u.attributes,e))}else o.retain(l.length(n.next()));return o.chop()},s.prototype.transformPosition=function(t,e){e=!!e;for(var n=l.iterator(this.ops),r=0;n.hasNext()&&r<=t;){var o=n.peekLength(),i=n.peekType();n.next(),"delete"!==i?("insert"===i&&(r0&&(t1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===t||t>=this.length()-1)){var r=this.clone();return 0===t?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var i=o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"split",this).call(this,t,n);return this.cache={},i}}]),e}(a.default.Block);function b(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==t?e:("function"==typeof t.formats&&(e=(0,i.default)(e,t.formats())),null==t.parent||"scroll"==t.parent.blotName||t.parent.statics.scope!==t.statics.scope?e:b(t.parent,e))}v.blotName="block",v.tagName="P",v.defaultChild="break",v.allowedChildren=[u.default,a.default.Embed,c.default],e.bubbleFormats=b,e.BlockEmbed=y,e.default=v},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.overload=e.expandConfig=void 0;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(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=_(e,r),this.container=this.options.container,null==this.container)return g.error("Invalid Quill container",e);this.options.debug&&t.debug(this.options.debug);var o=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new s.default,this.scroll=c.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new a.default(this.scroll),this.selection=new h.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(s.default.events.EDITOR_CHANGE,(function(t){t===s.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(s.default.events.SCROLL_UPDATE,(function(t,e){var r=n.selection.lastRange,o=r&&0===r.length?r.index:void 0;O.call(n,(function(){return n.editor.update(null,e,o)}),t)}));var i=this.clipboard.convert("
"+o+"


");this.setContents(i),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return i(t,null,[{key:"debug",value:function(t){!0===t&&(t="log"),d.default.level(t)}},{key:"find",value:function(t){return t.__quill||c.default.find(t)}},{key:"import",value:function(t){return null==this.imports[t]&&g.error("Cannot import "+t+". Are you sure it was registered?"),this.imports[t]}},{key:"register",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof t){var o=t.attrName||t.blotName;"string"==typeof o?this.register("formats/"+o,t,e):Object.keys(t).forEach((function(r){n.register(r,t[r],e)}))}else null==this.imports[t]||r||g.warn("Overwriting "+t+" with",e),this.imports[t]=e,(t.startsWith("blots/")||t.startsWith("formats/"))&&"abstract"!==e.blotName?c.default.register(e):t.startsWith("modules")&&"function"==typeof e.register&&e.register()}}]),i(t,[{key:"addContainer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof t){var n=t;(t=document.createElement("div")).classList.add(n)}return this.container.insertBefore(t,e),t}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(t,e,n){var r=this,i=w(t,e,n),l=o(i,4);return t=l[0],e=l[1],n=l[3],O.call(this,(function(){return r.editor.deleteText(t,e)}),n,t,-1*e)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}},{key:"focus",value:function(){var t=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=t,this.scrollIntoView()}},{key:"format",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default.sources.API;return O.call(this,(function(){var r=n.getSelection(!0),o=new l.default;if(null==r)return o;if(c.default.query(t,c.default.Scope.BLOCK))o=n.editor.formatLine(r.index,r.length,b({},t,e));else{if(0===r.length)return n.selection.format(t,e),o;o=n.editor.formatText(r.index,r.length,b({},t,e))}return n.setSelection(r,s.default.sources.SILENT),o}),r)}},{key:"formatLine",value:function(t,e,n,r,i){var l,a=this,s=w(t,e,n,r,i),u=o(s,4);return t=u[0],e=u[1],l=u[2],i=u[3],O.call(this,(function(){return a.editor.formatLine(t,e,l)}),i,t,0)}},{key:"formatText",value:function(t,e,n,r,i){var l,a=this,s=w(t,e,n,r,i),u=o(s,4);return t=u[0],e=u[1],l=u[2],i=u[3],O.call(this,(function(){return a.editor.formatText(t,e,l)}),i,t,0)}},{key:"getBounds",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e="number"==typeof t?this.selection.getBounds(t,n):this.selection.getBounds(t.index,t.length);var r=this.container.getBoundingClientRect();return{bottom:e.bottom-r.top,height:e.height,left:e.left-r.left,right:e.right-r.left,top:e.top-r.top,width:e.width}}},{key:"getContents",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=w(t,e),r=o(n,2);return t=r[0],e=r[1],this.editor.getContents(t,e)}},{key:"getFormat",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof t?this.editor.getFormat(t,e):this.editor.getFormat(t.index,t.length)}},{key:"getIndex",value:function(t){return t.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(t){return this.scroll.leaf(t)}},{key:"getLine",value:function(t){return this.scroll.line(t)}},{key:"getLines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof t?this.scroll.lines(t.index,t.length):this.scroll.lines(t,e)}},{key:"getModule",value:function(t){return this.theme.modules[t]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=w(t,e),r=o(n,2);return t=r[0],e=r[1],this.editor.getText(t,e)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(e,n,r){var o=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.sources.API;return O.call(this,(function(){return o.editor.insertEmbed(e,n,r)}),i,e)}},{key:"insertText",value:function(t,e,n,r,i){var l,a=this,s=w(t,0,n,r,i),u=o(s,4);return t=u[0],l=u[2],i=u[3],O.call(this,(function(){return a.editor.insertText(t,e,l)}),i,t,e.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(t,e,n){this.clipboard.dangerouslyPasteHTML(t,e,n)}},{key:"removeFormat",value:function(t,e,n){var r=this,i=w(t,e,n),l=o(i,4);return t=l[0],e=l[1],n=l[3],O.call(this,(function(){return r.editor.removeFormat(t,e)}),n,t)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API;return O.call(this,(function(){t=new l.default(t);var n=e.getLength(),r=e.editor.deleteText(0,n),o=e.editor.applyDelta(t),i=o.ops[o.ops.length-1];return null!=i&&"string"==typeof i.insert&&"\n"===i.insert[i.insert.length-1]&&(e.editor.deleteText(e.getLength()-1,1),o.delete(1)),r.compose(o)}),n)}},{key:"setSelection",value:function(e,n,r){if(null==e)this.selection.setRange(null,n||t.sources.API);else{var i=w(e,n,r),l=o(i,4);e=l[0],n=l[1],r=l[3],this.selection.setRange(new f.Range(e,n),r),r!==s.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API,n=(new l.default).insert(t);return this.setContents(n,e)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.default.sources.USER,e=this.scroll.update(t);return this.selection.update(t),e}},{key:"updateContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API;return O.call(this,(function(){return t=new l.default(t),e.editor.applyDelta(t,n)}),n,!0)}}]),t}();function _(t,e){if((e=(0,p.default)(!0,{container:t,modules:{clipboard:!0,keyboard:!0,history:!0}},e)).theme&&e.theme!==m.DEFAULTS.theme){if(e.theme=m.import("themes/"+e.theme),null==e.theme)throw new Error("Invalid theme "+e.theme+". Did you register it?")}else e.theme=y.default;var n=(0,p.default)(!0,{},e.theme.DEFAULTS);[n,e].forEach((function(t){t.modules=t.modules||{},Object.keys(t.modules).forEach((function(e){!0===t.modules[e]&&(t.modules[e]={})}))}));var r=Object.keys(n.modules).concat(Object.keys(e.modules)).reduce((function(t,e){var n=m.import("modules/"+e);return null==n?g.error("Cannot load "+e+" module. Are you sure you registered it?"):t[e]=n.DEFAULTS||{},t}),{});return null!=e.modules&&e.modules.toolbar&&e.modules.toolbar.constructor!==Object&&(e.modules.toolbar={container:e.modules.toolbar}),e=(0,p.default)(!0,{},m.DEFAULTS,{modules:r},n,e),["bounds","container","scrollingContainer"].forEach((function(t){"string"==typeof e[t]&&(e[t]=document.querySelector(e[t]))})),e.modules=Object.keys(e.modules).reduce((function(t,n){return e.modules[n]&&(t[n]=e.modules[n]),t}),{}),e}function O(t,e,n,r){if(this.options.strict&&!this.isEnabled()&&e===s.default.sources.USER)return new l.default;var o=null==n?null:this.getSelection(),i=this.editor.delta,a=t();if(null!=o&&(!0===n&&(n=o.index),null==r?o=x(o,a,e):0!==r&&(o=x(o,n,r,e)),this.setSelection(o,s.default.sources.SILENT)),a.length()>0){var u,c,f=[s.default.events.TEXT_CHANGE,a,i,e];(u=this.emitter).emit.apply(u,[s.default.events.EDITOR_CHANGE].concat(f)),e!==s.default.sources.SILENT&&(c=this.emitter).emit.apply(c,f)}return a}function w(t,e,n,o,i){var l={};return"number"==typeof t.index&&"number"==typeof t.length?"number"!=typeof e?(i=o,o=n,n=e,e=t.length,t=t.index):(e=t.length,t=t.index):"number"!=typeof e&&(i=o,o=n,n=e,e=0),"object"===(void 0===n?"undefined":r(n))?(l=n,i=o):"string"==typeof n&&(null!=o?l[n]=o:i=n),[t,e,l,i=i||s.default.sources.API]}function x(t,e,n,r){if(null==t)return null;var i=void 0,a=void 0;if(e instanceof l.default){var u=[t.index,t.index+t.length].map((function(t){return e.transformPosition(t,r!==s.default.sources.USER)})),c=o(u,2);i=c[0],a=c[1]}else{var h=[t.index,t.index+t.length].map((function(t){return t=0?t+n:Math.max(e,t+n)})),p=o(h,2);i=p[0],a=p[1]}return new f.Range(i,a-i)}m.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},m.events=s.default.events,m.sources=s.default.sources,m.version="1.3.7",m.imports={delta:l.default,parchment:c.default,"core/module":u.default,"core/theme":y.default},e.expandConfig=_,e.overload=w,e.default=m},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(t,n){var r=e.order.indexOf(t),o=e.order.indexOf(n);return r>=0||o>=0?r-o:t===n?0:t1?e-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.quill=e,this.options=n};r.DEFAULTS={},e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=["error","warn","log","info"],o="warn";function i(t){if(r.indexOf(t)<=r.indexOf(o)){for(var e,n=arguments.length,i=Array(n>1?n-1:0),l=1;l=0;u--)if(f[u]!=h[u])return!1;for(u=f.length-1;u>=0;u--)if(c=f[u],!l(t[c],e[c],n))return!1;return typeof t==typeof e}(t,e,n))};function a(t){return null==t}function s(t){return!(!t||"object"!=typeof t||"number"!=typeof t.length||"function"!=typeof t.copy||"function"!=typeof t.slice||t.length>0&&"number"!=typeof t[0])}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),o=function(){function t(t,e,n){void 0===n&&(n={}),this.attrName=t,this.keyName=e;var o=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|o:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return t.keys=function(t){return[].map.call(t.attributes,(function(t){return t.name}))},t.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.setAttribute(this.keyName,e),!0)},t.prototype.canAdd=function(t,e){return null!=r.query(t,r.Scope.BLOT&(this.scope|r.Scope.TYPE))&&(null==this.whitelist||("string"==typeof e?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1))},t.prototype.remove=function(t){t.removeAttribute(this.keyName)},t.prototype.value=function(t){var e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""},t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Code=void 0;var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function t(t,e){for(var n=0;n=t+n)){var l=this.newlineIndex(t,!0)+1,s=i-l+1,u=this.isolate(l,s),c=u.next;u.format(r,o),c instanceof e&&c.formatAt(0,t-l+n-s,r,o)}}}},{key:"insertAt",value:function(t,e,n){if(null==n){var o=this.descendant(c.default,t),i=r(o,2),l=i[0],a=i[1];l.insertAt(a,e)}}},{key:"length",value:function(){var t=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?t:t+1}},{key:"newlineIndex",value:function(t){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,t).lastIndexOf("\n");var e=this.domNode.textContent.slice(t).indexOf("\n");return e>-1?t+e:-1}},{key:"optimize",value:function(t){this.domNode.textContent.endsWith("\n")||this.appendChild(a.default.create("text","\n")),i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(t),n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(t){var e=a.default.find(t);null==e?t.parentNode.removeChild(t):e instanceof a.default.Embed?e.remove():e.unwrap()}))}}],[{key:"create",value:function(t){var n=i(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),e}(s.default);v.blotName="code-block",v.tagName="PRE",v.TAB=" ",e.Code=y,e.default=v},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});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(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function t(t,e){for(var n=0;n=i&&!p.endsWith("\n")&&(n=!0),e.scroll.insertAt(t,p);var d=e.scroll.line(t),y=o(d,2),b=y[0],g=y[1],m=(0,v.default)({},(0,f.bubbleFormats)(b));if(b instanceof h.default){var _=b.descendant(s.default.Leaf,g),O=o(_,1)[0];m=(0,v.default)(m,(0,f.bubbleFormats)(O))}c=a.default.attributes.diff(m,c)||{}}else if("object"===r(l.insert)){var w=Object.keys(l.insert)[0];if(null==w)return t;e.scroll.insertAt(t,w,l.insert[w])}i+=u}return Object.keys(c).forEach((function(n){e.scroll.formatAt(t,u,n,c[n])})),t+u}),0),t.reduce((function(t,n){return"number"==typeof n.delete?(e.scroll.deleteAt(t,n.delete),t):t+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(t)}},{key:"deleteText",value:function(t,e){return this.scroll.deleteAt(t,e),this.update((new l.default).retain(t).delete(e))}},{key:"formatLine",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach((function(o){if(null==n.scroll.whitelist||n.scroll.whitelist[o]){var i=n.scroll.lines(t,Math.max(e,1)),l=e;i.forEach((function(e){var i=e.length();if(e instanceof u.default){var a=t-e.offset(n.scroll),s=e.newlineIndex(a+l)-a+1;e.formatAt(a,s,o,r[o])}else e.format(o,r[o]);l-=i}))}})),this.scroll.optimize(),this.update((new l.default).retain(t).retain(e,(0,d.default)(r)))}},{key:"formatText",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach((function(o){n.scroll.formatAt(t,e,o,r[o])})),this.update((new l.default).retain(t).retain(e,(0,d.default)(r)))}},{key:"getContents",value:function(t,e){return this.delta.slice(t,t+e)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(t,e){return t.concat(e.delta())}),new l.default)}},{key:"getFormat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===e?this.scroll.path(t).forEach((function(t){var e=o(t,1)[0];e instanceof h.default?n.push(e):e instanceof s.default.Leaf&&r.push(e)})):(n=this.scroll.lines(t,e),r=this.scroll.descendants(s.default.Leaf,t,e));var i=[n,r].map((function(t){if(0===t.length)return{};for(var e=(0,f.bubbleFormats)(t.shift());Object.keys(e).length>0;){var n=t.shift();if(null==n)return e;e=_((0,f.bubbleFormats)(n),e)}return e}));return v.default.apply(v.default,i)}},{key:"getText",value:function(t,e){return this.getContents(t,e).filter((function(t){return"string"==typeof t.insert})).map((function(t){return t.insert})).join("")}},{key:"insertEmbed",value:function(t,e,n){return this.scroll.insertAt(t,e,n),this.update((new l.default).retain(t).insert(function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},e,n)))}},{key:"insertText",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e=e.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(t,e),Object.keys(r).forEach((function(o){n.scroll.formatAt(t,e.length,o,r[o])})),this.update((new l.default).retain(t).insert(e,(0,d.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var t=this.scroll.children.head;return t.statics.blotName===h.default.blotName&&!(t.children.length>1)&&t.children.head instanceof p.default}},{key:"removeFormat",value:function(t,e){var n=this.getText(t,e),r=this.scroll.line(t+e),i=o(r,2),a=i[0],s=i[1],c=0,f=new l.default;null!=a&&(c=a instanceof u.default?a.newlineIndex(s)-s+1:a.length()-s,f=a.delta().slice(s,s+c-1).insert("\n"));var h=this.getContents(t,e+c).diff((new l.default).insert(n).concat(f)),p=(new l.default).retain(t).concat(h);return this.applyDelta(p)}},{key:"update",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===e.length&&"characterData"===e[0].type&&e[0].target.data.match(g)&&s.default.find(e[0].target)){var o=s.default.find(e[0].target),i=(0,f.bubbleFormats)(o),a=o.offset(this.scroll),u=e[0].oldValue.replace(c.default.CONTENTS,""),h=(new l.default).insert(u),p=(new l.default).insert(o.value());t=(new l.default).retain(a).concat(h.diff(p,n)).reduce((function(t,e){return e.insert?t.insert(e.insert,i):t.push(e)}),new l.default),this.delta=r.compose(t)}else this.delta=this.getDelta(),t&&(0,y.default)(r.compose(t),this.delta)||(t=r.diff(this.delta,n));return t}}]),t}();function _(t,e){return Object.keys(e).reduce((function(n,r){return null==t[r]||(e[r]===t[r]?n[r]=e[r]:Array.isArray(e[r])?e[r].indexOf(t[r])<0&&(n[r]=e[r].concat([t[r]])):n[r]=[e[r],t[r]]),n}),{})}e.default=m},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Range=void 0;var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:0;f(this,t),this.index=e,this.length=n},d=function(){function t(e,n){var r=this;f(this,t),this.emitter=n,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=i.default.create("cursor",this),this.lastRange=this.savedRange=new p(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){r.mouseDown||setTimeout(r.update.bind(r,s.default.sources.USER),1)})),this.emitter.on(s.default.events.EDITOR_CHANGE,(function(t,e){t===s.default.events.TEXT_CHANGE&&e.length()>0&&r.update(s.default.sources.SILENT)})),this.emitter.on(s.default.events.SCROLL_BEFORE_UPDATE,(function(){if(r.hasFocus()){var t=r.getNativeRange();null!=t&&t.start.node!==r.cursor.textNode&&r.emitter.once(s.default.events.SCROLL_UPDATE,(function(){try{r.setNativeRange(t.start.node,t.start.offset,t.end.node,t.end.offset)}catch(t){}}))}})),this.emitter.on(s.default.events.SCROLL_OPTIMIZE,(function(t,e){if(e.range){var n=e.range,o=n.startNode,i=n.startOffset,l=n.endNode,a=n.endOffset;r.setNativeRange(o,i,l,a)}})),this.update(s.default.sources.SILENT)}return o(t,[{key:"handleComposition",value:function(){var t=this;this.root.addEventListener("compositionstart",(function(){t.composing=!0})),this.root.addEventListener("compositionend",(function(){if(t.composing=!1,t.cursor.parent){var e=t.cursor.restore();if(!e)return;setTimeout((function(){t.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var t=this;this.emitter.listenDOM("mousedown",document.body,(function(){t.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){t.mouseDown=!1,t.update(s.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(t,e){if(null==this.scroll.whitelist||this.scroll.whitelist[t]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!i.default.query(t,i.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=i.default.find(n.start.node,!1);if(null==r)return;if(r instanceof i.default.Leaf){var o=r.split(n.start.offset);r.parent.insertBefore(this.cursor,o)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(t,e),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();t=Math.min(t,n-1),e=Math.min(t+e,n-1)-t;var o=void 0,i=this.scroll.leaf(t),l=r(i,2),a=l[0],s=l[1];if(null==a)return null;var u=a.position(s,!0),c=r(u,2);o=c[0],s=c[1];var f=document.createRange();if(e>0){f.setStart(o,s);var h=this.scroll.leaf(t+e),p=r(h,2);if(a=p[0],s=p[1],null==a)return null;var d=a.position(s,!0),y=r(d,2);return o=y[0],s=y[1],f.setEnd(o,s),f.getBoundingClientRect()}var v="left",b=void 0;return o instanceof Text?(s0&&(v="right")),{bottom:b.top+b.height,height:b.height,left:b[v],right:b[v],top:b.top,width:0}}},{key:"getNativeRange",value:function(){var t=document.getSelection();if(null==t||t.rangeCount<=0)return null;var e=t.getRangeAt(0);if(null==e)return null;var n=this.normalizeNative(e);return h.info("getNativeRange",n),n}},{key:"getRange",value:function(){var t=this.getNativeRange();return null==t?[null,null]:[this.normalizedToRange(t),t]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(t){var e=this,n=[[t.start.node,t.start.offset]];t.native.collapsed||n.push([t.end.node,t.end.offset]);var o=n.map((function(t){var n=r(t,2),o=n[0],l=n[1],a=i.default.find(o,!0),s=a.offset(e.scroll);return 0===l?s:a instanceof i.default.Container?s+a.length():s+a.index(o,l)})),l=Math.min(Math.max.apply(Math,c(o)),this.scroll.length()-1),a=Math.min.apply(Math,[l].concat(c(o)));return new p(a,l-a)}},{key:"normalizeNative",value:function(t){if(!y(this.root,t.startContainer)||!t.collapsed&&!y(this.root,t.endContainer))return null;var e={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[e.start,e.end].forEach((function(t){for(var e=t.node,n=t.offset;!(e instanceof Text)&&e.childNodes.length>0;)if(e.childNodes.length>n)e=e.childNodes[n],n=0;else{if(e.childNodes.length!==n)break;n=(e=e.lastChild)instanceof Text?e.data.length:e.childNodes.length+1}t.node=e,t.offset=n})),e}},{key:"rangeToNative",value:function(t){var e=this,n=t.collapsed?[t.index]:[t.index,t.index+t.length],o=[],i=this.scroll.length();return n.forEach((function(t,n){t=Math.min(i-1,t);var l,a=e.scroll.leaf(t),s=r(a,2),u=s[0],c=s[1],f=u.position(c,0!==n),h=r(f,2);l=h[0],c=h[1],o.push(l,c)})),o.length<2&&(o=o.concat(o)),o}},{key:"scrollIntoView",value:function(t){var e=this.lastRange;if(null!=e){var n=this.getBounds(e.index,e.length);if(null!=n){var o=this.scroll.length()-1,i=this.scroll.line(Math.min(e.index,o)),l=r(i,1)[0],a=l;if(e.length>0){var s=this.scroll.line(Math.min(e.index+e.length,o));a=r(s,1)[0]}if(null!=l&&null!=a){var u=t.getBoundingClientRect();n.topu.bottom&&(t.scrollTop+=n.bottom-u.bottom)}}}}},{key:"setNativeRange",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(h.info("setNativeRange",t,e,n,r),null==t||null!=this.root.parentNode&&null!=t.parentNode&&null!=n.parentNode){var i=document.getSelection();if(null!=i)if(null!=t){this.hasFocus()||this.root.focus();var l=(this.getNativeRange()||{}).native;if(null==l||o||t!==l.startContainer||e!==l.startOffset||n!==l.endContainer||r!==l.endOffset){"BR"==t.tagName&&(e=[].indexOf.call(t.parentNode.childNodes,t),t=t.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var a=document.createRange();a.setStart(t,e),a.setEnd(n,r),i.removeAllRanges(),i.addRange(a)}}else i.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default.sources.API;if("string"==typeof e&&(n=e,e=!1),h.info("setRange",t),null!=t){var r=this.rangeToNative(t);this.setNativeRange.apply(this,c(r).concat([e]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.default.sources.USER,e=this.lastRange,n=this.getRange(),o=r(n,2),i=o[0],u=o[1];if(this.lastRange=i,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,a.default)(e,this.lastRange)){var c;!this.composing&&null!=u&&u.native.collapsed&&u.start.node!==this.cursor.textNode&&this.cursor.restore();var f,h=[s.default.events.SELECTION_CHANGE,(0,l.default)(this.lastRange),(0,l.default)(e),t];(c=this.emitter).emit.apply(c,[s.default.events.EDITOR_CHANGE].concat(h)),t!==s.default.sources.SILENT&&(f=this.emitter).emit.apply(f,h)}}}]),t}();function y(t,e){try{e.parentNode}catch(t){return!1}return e instanceof Text&&(e=e.parentNode),t.contains(e)}e.Range=p,e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;n0&&(n+=1),[this.parent.domNode,n]},e.prototype.value=function(){var t;return(t={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,t},e.scope=l.Scope.INLINE_BLOT,e}(i.default);e.default=a},function(t,e,n){var r=n(11),o=n(3),i={attributes:{compose:function(t,e,n){"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={});var r=o(!0,{},e);for(var i in n||(r=Object.keys(r).reduce((function(t,e){return null!=r[e]&&(t[e]=r[e]),t}),{})),t)void 0!==t[i]&&void 0===e[i]&&(r[i]=t[i]);return Object.keys(r).length>0?r:void 0},diff:function(t,e){"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={});var n=Object.keys(t).concat(Object.keys(e)).reduce((function(n,o){return r(t[o],e[o])||(n[o]=void 0===e[o]?null:e[o]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(t,e,n){if("object"!=typeof t)return e;if("object"==typeof e){if(!n)return e;var r=Object.keys(e).reduce((function(n,r){return void 0===t[r]&&(n[r]=e[r]),n}),{});return Object.keys(r).length>0?r:void 0}}},iterator:function(t){return new l(t)},length:function(t){return"number"==typeof t.delete?t.delete:"number"==typeof t.retain?t.retain:"string"==typeof t.insert?t.insert.length:1}};function l(t){this.ops=t,this.index=0,this.offset=0}l.prototype.hasNext=function(){return this.peekLength()<1/0},l.prototype.next=function(t){t||(t=1/0);var e=this.ops[this.index];if(e){var n=this.offset,r=i.length(e);if(t>=r-n?(t=r-n,this.index+=1,this.offset=0):this.offset+=t,"number"==typeof e.delete)return{delete:t};var o={};return e.attributes&&(o.attributes=e.attributes),"number"==typeof e.retain?o.retain=t:"string"==typeof e.insert?o.insert=e.insert.substr(n,t):o.insert=e.insert,o}return{retain:1/0}},l.prototype.peek=function(){return this.ops[this.index]},l.prototype.peekLength=function(){return this.ops[this.index]?i.length(this.ops[this.index])-this.offset:1/0},l.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},l.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var t=this.offset,e=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=t,this.index=e,[n].concat(r)}return[]},t.exports=i},function(t,e){var n=function(){"use strict";function t(t,e){return null!=e&&t instanceof e}var e,n,r;try{e=Map}catch(t){e=function(){}}try{n=Set}catch(t){n=function(){}}try{r=Promise}catch(t){r=function(){}}function i(l,s,u,c,f){"object"==typeof s&&(u=s.depth,c=s.prototype,f=s.includeNonEnumerable,s=s.circular);var h=[],p=[],d=void 0!==o;return void 0===s&&(s=!0),void 0===u&&(u=1/0),function l(u,y){if(null===u)return null;if(0===y)return u;var v,b;if("object"!=typeof u)return u;if(t(u,e))v=new e;else if(t(u,n))v=new n;else if(t(u,r))v=new r((function(t,e){u.then((function(e){t(l(e,y-1))}),(function(t){e(l(t,y-1))}))}));else if(i.__isArray(u))v=[];else if(i.__isRegExp(u))v=new RegExp(u.source,a(u)),u.lastIndex&&(v.lastIndex=u.lastIndex);else if(i.__isDate(u))v=new Date(u.getTime());else{if(d&&o.isBuffer(u))return v=o.allocUnsafe?o.allocUnsafe(u.length):new o(u.length),u.copy(v),v;t(u,Error)?v=Object.create(u):void 0===c?(b=Object.getPrototypeOf(u),v=Object.create(b)):(v=Object.create(c),b=c)}if(s){var g=h.indexOf(u);if(-1!=g)return p[g];h.push(u),p.push(v)}for(var m in t(u,e)&&u.forEach((function(t,e){var n=l(e,y-1),r=l(t,y-1);v.set(n,r)})),t(u,n)&&u.forEach((function(t){var e=l(t,y-1);v.add(e)})),u){var _;b&&(_=Object.getOwnPropertyDescriptor(b,m)),_&&null==_.set||(v[m]=l(u[m],y-1))}if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(u);for(m=0;m0){if(a instanceof s.BlockEmbed||p instanceof s.BlockEmbed)return void this.optimize();if(a instanceof f.default){var d=a.newlineIndex(a.length(),!0);if(d>-1&&(a=a.split(d+1))===p)return void this.optimize()}else if(p instanceof f.default){var y=p.newlineIndex(0);y>-1&&p.split(y+1)}var v=p.children.head instanceof c.default?null:p.children.head;a.moveChildren(p,v),a.remove()}this.optimize()}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",t)}},{key:"formatAt",value:function(t,n,r,o){(null==this.whitelist||this.whitelist[r])&&(i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,r,o),this.optimize())}},{key:"insertAt",value:function(t,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(t>=this.length())if(null==r||null==l.default.query(n,l.default.Scope.BLOCK)){var o=l.default.create(this.statics.defaultChild);this.appendChild(o),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),o.insertAt(0,n,r)}else{var a=l.default.create(n,r);this.appendChild(a)}else i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r);this.optimize()}}},{key:"insertBefore",value:function(t,n){if(t.statics.scope===l.default.Scope.INLINE_BLOT){var r=l.default.create(this.statics.defaultChild);r.appendChild(t),t=r}i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n)}},{key:"leaf",value:function(t){return this.path(t).pop()||[null,-1]}},{key:"line",value:function(t){return t===this.length()?this.line(t-1):this.descendant(d,t)}},{key:"lines",value:function(){return function t(e,n,r){var o=[],i=r;return e.children.forEachAt(n,r,(function(e,n,r){d(e)?o.push(e):e instanceof l.default.Container&&(o=o.concat(t(e,n,i))),i-=r})),o}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t,n),t.length>0&&this.emitter.emit(a.default.events.SCROLL_OPTIMIZE,t,n))}},{key:"path",value:function(t){return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t).slice(1)}},{key:"update",value:function(t){if(!0!==this.batch){var n=a.default.sources.USER;"string"==typeof t&&(n=t),Array.isArray(t)||(t=this.observer.takeRecords()),t.length>0&&this.emitter.emit(a.default.events.SCROLL_BEFORE_UPDATE,n,t),i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"update",this).call(this,t.concat([])),t.length>0&&this.emitter.emit(a.default.events.SCROLL_UPDATE,n,t)}}}]),e}(l.default.Scroll);y.blotName="scroll",y.className="ql-editor",y.tagName="DIV",y.defaultChild="block",y.allowedChildren=[u.default,s.BlockEmbed,h.default],e.default=y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SHORTKEY=e.default=void 0;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(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=A(t);if(null==r||null==r.key)return b.warn("Attempted to add invalid keyboard binding",r);"function"==typeof e&&(e={handler:e}),"function"==typeof n&&(n={handler:n}),r=(0,s.default)(r,e,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var t=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var i=n.which||n.keyCode,l=(t.bindings[i]||[]).filter((function(t){return e.match(n,t)}));if(0!==l.length){var s=t.quill.getSelection();if(null!=s&&t.quill.hasFocus()){var u=t.quill.getLine(s.index),c=o(u,2),h=c[0],p=c[1],d=t.quill.getLeaf(s.index),y=o(d,2),v=y[0],b=y[1],g=0===s.length?[v,b]:t.quill.getLeaf(s.index+s.length),m=o(g,2),_=m[0],O=m[1],w=v instanceof f.default.Text?v.value().slice(0,b):"",x=_ instanceof f.default.Text?_.value().slice(O):"",k={collapsed:0===s.length,empty:0===s.length&&h.length()<=1,format:t.quill.getFormat(s),offset:p,prefix:w,suffix:x};l.some((function(e){if(null!=e.collapsed&&e.collapsed!==k.collapsed)return!1;if(null!=e.empty&&e.empty!==k.empty)return!1;if(null!=e.offset&&e.offset!==k.offset)return!1;if(Array.isArray(e.format)){if(e.format.every((function(t){return null==k.format[t]})))return!1}else if("object"===r(e.format)&&!Object.keys(e.format).every((function(t){return!0===e.format[t]?null!=k.format[t]:!1===e.format[t]?null==k.format[t]:(0,a.default)(e.format[t],k.format[t])})))return!1;return!(null!=e.prefix&&!e.prefix.test(k.prefix)||null!=e.suffix&&!e.suffix.test(k.suffix)||!0===e.handler.call(t,s,k))}))&&n.preventDefault()}}}}))}}]),e}(d.default);function _(t,e){var n,r=t===m.keys.LEFT?"prefix":"suffix";return v(n={key:t,shiftKey:e,altKey:null},r,/^$/),v(n,"handler",(function(n){var r=n.index;t===m.keys.RIGHT&&(r+=n.length+1);var i=this.quill.getLeaf(r);return!(o(i,1)[0]instanceof f.default.Embed&&(t===m.keys.LEFT?e?this.quill.setSelection(n.index-1,n.length+1,h.default.sources.USER):this.quill.setSelection(n.index-1,h.default.sources.USER):e?this.quill.setSelection(n.index,n.length+1,h.default.sources.USER):this.quill.setSelection(n.index+n.length+1,h.default.sources.USER),1))})),n}function O(t,e){if(!(0===t.index||this.quill.getLength()<=1)){var n=this.quill.getLine(t.index),r=o(n,1)[0],i={};if(0===e.offset){var l=this.quill.getLine(t.index-1),a=o(l,1)[0];if(null!=a&&a.length()>1){var s=r.formats(),u=this.quill.getFormat(t.index-1,1);i=c.default.attributes.diff(s,u)||{}}}var f=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;this.quill.deleteText(t.index-f,f,h.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(t.index-f,f,i,h.default.sources.USER),this.quill.focus()}}function w(t,e){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(!(t.index>=this.quill.getLength()-n)){var r={},i=0,l=this.quill.getLine(t.index),a=o(l,1)[0];if(e.offset>=a.length()-1){var s=this.quill.getLine(t.index+1),u=o(s,1)[0];if(u){var f=a.formats(),p=this.quill.getFormat(t.index,1);r=c.default.attributes.diff(f,p)||{},i=u.length()}}this.quill.deleteText(t.index,n,h.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(t.index+i-1,n,r,h.default.sources.USER)}}function x(t){var e=this.quill.getLines(t),n={};if(e.length>1){var r=e[0].formats(),o=e[e.length-1].formats();n=c.default.attributes.diff(o,r)||{}}this.quill.deleteText(t,h.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(t.index,1,n,h.default.sources.USER),this.quill.setSelection(t.index,h.default.sources.SILENT),this.quill.focus()}function k(t,e){var n=this;t.length>0&&this.quill.scroll.deleteAt(t.index,t.length);var r=Object.keys(e.format).reduce((function(t,n){return f.default.query(n,f.default.Scope.BLOCK)&&!Array.isArray(e.format[n])&&(t[n]=e.format[n]),t}),{});this.quill.insertText(t.index,"\n",r,h.default.sources.USER),this.quill.setSelection(t.index+1,h.default.sources.SILENT),this.quill.focus(),Object.keys(e.format).forEach((function(t){null==r[t]&&(Array.isArray(e.format[t])||"link"!==t&&n.quill.format(t,e.format[t],h.default.sources.USER))}))}function E(t){return{key:m.keys.TAB,shiftKey:!t,format:{"code-block":!0},handler:function(e){var n=f.default.query("code-block"),r=e.index,i=e.length,l=this.quill.scroll.descendant(n,r),a=o(l,2),s=a[0],u=a[1];if(null!=s){var c=this.quill.getIndex(s),p=s.newlineIndex(u,!0)+1,d=s.newlineIndex(c+u+i),y=s.domNode.textContent.slice(p,d).split("\n");u=0,y.forEach((function(e,o){t?(s.insertAt(p+u,n.TAB),u+=n.TAB.length,0===o?r+=n.TAB.length:i+=n.TAB.length):e.startsWith(n.TAB)&&(s.deleteAt(p+u,n.TAB.length),u-=n.TAB.length,0===o?r-=n.TAB.length:i-=n.TAB.length),u+=e.length+1})),this.quill.update(h.default.sources.USER),this.quill.setSelection(r,i,h.default.sources.SILENT)}}}}function N(t){return{key:t[0].toUpperCase(),shortKey:!0,handler:function(e,n){this.quill.format(t,!n.format[t],h.default.sources.USER)}}}function A(t){if("string"==typeof t||"number"==typeof t)return A({key:t});if("object"===(void 0===t?"undefined":r(t))&&(t=(0,l.default)(t,!1)),"string"==typeof t.key)if(null!=m.keys[t.key.toUpperCase()])t.key=m.keys[t.key.toUpperCase()];else{if(1!==t.key.length)return null;t.key=t.key.toUpperCase().charCodeAt(0)}return t.shortKey&&(t[g]=t.shortKey,delete t.shortKey),t}m.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},m.DEFAULTS={bindings:{bold:N("bold"),italic:N("italic"),underline:N("underline"),indent:{key:m.keys.TAB,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","+1",h.default.sources.USER)}},outdent:{key:m.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","-1",h.default.sources.USER)}},"outdent backspace":{key:m.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(t,e){null!=e.format.indent?this.quill.format("indent","-1",h.default.sources.USER):null!=e.format.list&&this.quill.format("list",!1,h.default.sources.USER)}},"indent code-block":E(!0),"outdent code-block":E(!1),"remove tab":{key:m.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(t){this.quill.deleteText(t.index-1,1,h.default.sources.USER)}},tab:{key:m.keys.TAB,handler:function(t){this.quill.history.cutoff();var e=(new u.default).retain(t.index).delete(t.length).insert("\t");this.quill.updateContents(e,h.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index+1,h.default.sources.SILENT)}},"list empty enter":{key:m.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(t,e){this.quill.format("list",!1,h.default.sources.USER),e.format.indent&&this.quill.format("indent",!1,h.default.sources.USER)}},"checklist enter":{key:m.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(t){var e=this.quill.getLine(t.index),n=o(e,2),r=n[0],i=n[1],l=(0,s.default)({},r.formats(),{list:"checked"}),a=(new u.default).retain(t.index).insert("\n",l).retain(r.length()-i-1).retain(1,{list:"unchecked"});this.quill.updateContents(a,h.default.sources.USER),this.quill.setSelection(t.index+1,h.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:m.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(t,e){var n=this.quill.getLine(t.index),r=o(n,2),i=r[0],l=r[1],a=(new u.default).retain(t.index).insert("\n",e.format).retain(i.length()-l-1).retain(1,{header:null});this.quill.updateContents(a,h.default.sources.USER),this.quill.setSelection(t.index+1,h.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(t,e){var n=e.prefix.length,r=this.quill.getLine(t.index),i=o(r,2),l=i[0],a=i[1];if(a>n)return!0;var s=void 0;switch(e.prefix.trim()){case"[]":case"[ ]":s="unchecked";break;case"[x]":s="checked";break;case"-":case"*":s="bullet";break;default:s="ordered"}this.quill.insertText(t.index," ",h.default.sources.USER),this.quill.history.cutoff();var c=(new u.default).retain(t.index-a).delete(n+1).retain(l.length()-2-a).retain(1,{list:s});this.quill.updateContents(c,h.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-n,h.default.sources.SILENT)}},"code exit":{key:m.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(t){var e=this.quill.getLine(t.index),n=o(e,2),r=n[0],i=n[1],l=(new u.default).retain(t.index+r.length()-i-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(l,h.default.sources.USER)}},"embed left":_(m.keys.LEFT,!1),"embed left shift":_(m.keys.LEFT,!0),"embed right":_(m.keys.RIGHT,!1),"embed right shift":_(m.keys.RIGHT,!0)}},e.default=m,e.SHORTKEY=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},o=function(){function t(t,e){for(var n=0;n-1}l.blotName="link",l.tagName="A",l.SANITIZED_URL="about:blank",l.PROTOCOL_WHITELIST=["http","https","mailto","tel"],e.default=l,e.sanitize=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});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;n1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(t!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=t&&(t.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(t.parentNode.children,t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),e))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":r(Event))){var o=document.createEvent("Event");o.initEvent("change",!0,!0),this.select.dispatchEvent(o)}this.close()}}},{key:"update",value:function(){var t=void 0;if(this.select.selectedIndex>-1){var e=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(e)}else this.selectItem(null);var n=null!=t&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),t}();e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=b(n(0)),o=b(n(5)),i=n(4),l=b(i),a=b(n(16)),s=b(n(25)),u=b(n(24)),c=b(n(35)),f=b(n(6)),h=b(n(22)),p=b(n(7)),d=b(n(55)),y=b(n(42)),v=b(n(23));function b(t){return t&&t.__esModule?t:{default:t}}o.default.register({"blots/block":l.default,"blots/block/embed":i.BlockEmbed,"blots/break":a.default,"blots/container":s.default,"blots/cursor":u.default,"blots/embed":c.default,"blots/inline":f.default,"blots/scroll":h.default,"blots/text":p.default,"modules/clipboard":d.default,"modules/history":y.default,"modules/keyboard":v.default}),r.default.register(l.default,a.default,u.default,f.default,h.default,p.default),e.default=o.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),o=function(){function t(t){this.domNode=t,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(t.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),t.create=function(t){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var e;return Array.isArray(this.tagName)?("string"==typeof t&&(t=t.toUpperCase(),parseInt(t).toString()===t&&(t=parseInt(t))),e="number"==typeof t?document.createElement(this.tagName[t-1]):this.tagName.indexOf(t)>-1?document.createElement(t):document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e},t.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},t.prototype.clone=function(){var t=this.domNode.cloneNode(!1);return r.create(t)},t.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},t.prototype.deleteAt=function(t,e){this.isolate(t,e).remove()},t.prototype.formatAt=function(t,e,n,o){var i=this.isolate(t,e);if(null!=r.query(n,r.Scope.BLOT)&&o)i.wrap(n,o);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var l=r.create(this.statics.scope);i.wrap(l),l.format(n,o)}},t.prototype.insertAt=function(t,e,n){var o=null==n?r.create("text",e):r.create(e,n),i=this.split(t);this.parent.insertBefore(o,i)},t.prototype.insertInto=function(t,e){void 0===e&&(e=null),null!=this.parent&&this.parent.children.remove(this);var n=null;t.children.insertBefore(this,e),null!=e&&(n=e.domNode),this.domNode.parentNode==t.domNode&&this.domNode.nextSibling==n||t.domNode.insertBefore(this.domNode,n),this.parent=t,this.attach()},t.prototype.isolate=function(t,e){var n=this.split(t);return n.split(e),n},t.prototype.length=function(){return 1},t.prototype.offset=function(t){return void 0===t&&(t=this.parent),null==this.parent||this==t?0:this.parent.children.offset(this)+this.parent.offset(t)},t.prototype.optimize=function(t){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},t.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},t.prototype.replace=function(t){null!=t.parent&&(t.parent.insertBefore(this,t.next),t.remove())},t.prototype.replaceWith=function(t,e){var n="string"==typeof t?r.create(t,e):t;return n.replace(this),n},t.prototype.split=function(t,e){return 0===t?this:this.next},t.prototype.update=function(t,e){},t.prototype.wrap=function(t,e){var n="string"==typeof t?r.create(t,e):t;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},t.blotName="abstract",t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(12),o=n(32),i=n(33),l=n(1),a=function(){function t(t){this.attributes={},this.domNode=t,this.build()}return t.prototype.attribute=function(t,e){e?t.add(this.domNode,e)&&(null!=t.value(this.domNode)?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])},t.prototype.build=function(){var t=this;this.attributes={};var e=r.default.keys(this.domNode),n=o.default.keys(this.domNode),a=i.default.keys(this.domNode);e.concat(n).concat(a).forEach((function(e){var n=l.query(e,l.Scope.ATTRIBUTE);n instanceof r.default&&(t.attributes[n.attrName]=n)}))},t.prototype.copy=function(t){var e=this;Object.keys(this.attributes).forEach((function(n){var r=e.attributes[n].value(e.domNode);t.format(n,r)}))},t.prototype.move=function(t){var e=this;this.copy(t),Object.keys(this.attributes).forEach((function(t){e.attributes[t].remove(e.domNode)})),this.attributes={}},t.prototype.values=function(){var t=this;return Object.keys(this.attributes).reduce((function(e,n){return e[n]=t.attributes[n].value(t.domNode),e}),{})},t}();e.default=a},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function i(t,e){return(t.getAttribute("class")||"").split(/\s+/).filter((function(t){return 0===t.indexOf(e+"-")}))}Object.defineProperty(e,"__esModule",{value:!0});var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.keys=function(t){return(t.getAttribute("class")||"").split(/\s+/).map((function(t){return t.split("-").slice(0,-1).join("-")}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(this.remove(t),t.classList.add(this.keyName+"-"+e),!0)},e.prototype.remove=function(t){i(t,this.keyName).forEach((function(e){t.classList.remove(e)})),0===t.classList.length&&t.removeAttribute("class")},e.prototype.value=function(t){var e=(i(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,e)?e:""},e}(n(12).default);e.default=l},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function i(t){var e=t.split("-"),n=e.slice(1).map((function(t){return t[0].toUpperCase()+t.slice(1)})).join("");return e[0]+n}Object.defineProperty(e,"__esModule",{value:!0});var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.keys=function(t){return(t.getAttribute("style")||"").split(";").map((function(t){return t.split(":")[0].trim()}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.style[i(this.keyName)]=e,!0)},e.prototype.remove=function(t){t.style[i(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")},e.prototype.value=function(t){var e=t.style[i(this.keyName)];return this.canAdd(t,e)?e:""},e}(n(12).default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;nr&&this.stack.undo.length>0){var o=this.stack.undo.pop();n=n.compose(o.undo),t=o.redo.compose(t)}else this.lastRecorded=r;this.stack.undo.push({redo:t,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(t){this.stack.undo.forEach((function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)})),this.stack.redo.forEach((function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),e}(l(n(9)).default);function s(t){var e=t.reduce((function(t,e){return t+(e.delete||0)}),0),n=t.length()-e;return function(t){var e=t.ops[t.ops.length-1];return null!=e&&(null!=e.insert?"string"==typeof e.insert&&e.insert.endsWith("\n"):null!=e.attributes&&Object.keys(e.attributes).some((function(t){return null!=o.default.query(t,o.default.Scope.BLOCK)})))}(t)&&(n-=1),n}a.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},e.default=a,e.getLastChangeIndex=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BaseTooltip=void 0;var r=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"link",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=e?this.textbox.value=e:t!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+t)||""),this.root.setAttribute("data-mode",t)}},{key:"restoreFocus",value:function(){var t=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=t}},{key:"save",value:function(){var t,e,n=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var r=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",n,a.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",n,a.default.sources.USER)),this.quill.root.scrollTop=r;break;case"video":n=(e=(t=n).match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/))?(e[1]||"https")+"://www.youtube.com/embed/"+e[2]+"?showinfo=0":(e=t.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(e[1]||"https")+"://player.vimeo.com/video/"+e[2]+"/":t;case"formula":if(!n)break;var o=this.quill.getSelection(!0);if(null!=o){var i=o.index+o.length;this.quill.insertEmbed(i,this.root.getAttribute("data-mode"),n,a.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(i+1," ",a.default.sources.USER),this.quill.setSelection(i+2,a.default.sources.USER)}}this.textbox.value="",this.hide()}}]),e}(p.default);function E(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.forEach((function(e){var r=document.createElement("option");e===n?r.setAttribute("selected","selected"):r.setAttribute("value",e),t.appendChild(r)}))}e.BaseTooltip=k,e.default=x},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.head=this.tail=null,this.length=0}return t.prototype.append=function(){for(var t=[],e=0;e1&&this.append.apply(this,t.slice(1))},t.prototype.contains=function(t){for(var e,n=this.iterator();e=n();)if(e===t)return!0;return!1},t.prototype.insertBefore=function(t,e){t&&(t.next=e,null!=e?(t.prev=e.prev,null!=e.prev&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):null!=this.tail?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)},t.prototype.offset=function(t){for(var e=0,n=this.head;null!=n;){if(n===t)return e;e+=n.length(),n=n.next}return-1},t.prototype.remove=function(t){this.contains(t)&&(null!=t.prev&&(t.prev.next=t.next),null!=t.next&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)},t.prototype.iterator=function(t){return void 0===t&&(t=this.head),function(){var e=t;return null!=t&&(t=t.next),e}},t.prototype.find=function(t,e){void 0===e&&(e=!1);for(var n,r=this.iterator();n=r();){var o=n.length();if(tl?n(r,t-l,Math.min(e,l+s-t)):n(r,0,Math.min(s,t+e-l)),l+=s}},t.prototype.map=function(t){return this.reduce((function(e,n){return e.push(t(n)),e}),[])},t.prototype.reduce=function(t,e){for(var n,r=this.iterator();n=r();)e=t(e,n);return e},t}();e.default=r},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(17),l=n(1),a={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},s=function(t){function e(e){var n=t.call(this,e)||this;return n.scroll=n,n.observer=new MutationObserver((function(t){n.update(t)})),n.observer.observe(n.domNode,a),n.attach(),n}return o(e,t),e.prototype.detach=function(){t.prototype.detach.call(this),this.observer.disconnect()},e.prototype.deleteAt=function(e,n){this.update(),0===e&&n===this.length()?this.children.forEach((function(t){t.remove()})):t.prototype.deleteAt.call(this,e,n)},e.prototype.formatAt=function(e,n,r,o){this.update(),t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.insertAt=function(e,n,r){this.update(),t.prototype.insertAt.call(this,e,n,r)},e.prototype.optimize=function(e,n){var r=this;void 0===e&&(e=[]),void 0===n&&(n={}),t.prototype.optimize.call(this,n);for(var o=[].slice.call(this.observer.takeRecords());o.length>0;)e.push(o.pop());for(var a=function(t,e){void 0===e&&(e=!0),null!=t&&t!==r&&null!=t.domNode.parentNode&&(null==t.domNode[l.DATA_KEY].mutations&&(t.domNode[l.DATA_KEY].mutations=[]),e&&a(t.parent))},s=function(t){null!=t.domNode[l.DATA_KEY]&&null!=t.domNode[l.DATA_KEY].mutations&&(t instanceof i.default&&t.children.forEach(s),t.optimize(n))},u=e,c=0;u.length>0;c+=1){if(c>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(u.forEach((function(t){var e=l.find(t.target,!0);null!=e&&(e.domNode===t.target&&("childList"===t.type?(a(l.find(t.previousSibling,!1)),[].forEach.call(t.addedNodes,(function(t){var e=l.find(t,!1);a(e,!1),e instanceof i.default&&e.children.forEach((function(t){a(t,!1)}))}))):"attributes"===t.type&&a(e.prev)),a(e))})),this.children.forEach(s),o=(u=[].slice.call(this.observer.takeRecords())).slice();o.length>0;)e.push(o.pop())}},e.prototype.update=function(e,n){var r=this;void 0===n&&(n={}),(e=e||this.observer.takeRecords()).map((function(t){var e=l.find(t.target,!0);return null==e?null:null==e.domNode[l.DATA_KEY].mutations?(e.domNode[l.DATA_KEY].mutations=[t],e):(e.domNode[l.DATA_KEY].mutations.push(t),null)})).forEach((function(t){null!=t&&t!==r&&null!=t.domNode[l.DATA_KEY]&&t.update(t.domNode[l.DATA_KEY].mutations||[],n)})),null!=this.domNode[l.DATA_KEY].mutations&&t.prototype.update.call(this,this.domNode[l.DATA_KEY].mutations,n),this.optimize(e,n)},e.blotName="scroll",e.defaultChild="block",e.scope=l.Scope.BLOCK_BLOT,e.tagName="DIV",e}(i.default);e.default=s},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(18),l=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.formats=function(n){if(n.tagName!==e.tagName)return t.formats.call(this,n)},e.prototype.format=function(n,r){var o=this;n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):(this.children.forEach((function(t){t instanceof i.default||(t=t.wrap(e.blotName,!0)),o.attributes.copy(t)})),this.unwrap())},e.prototype.formatAt=function(e,n,r,o){null!=this.formats()[r]||l.query(r,l.Scope.ATTRIBUTE)?this.isolate(e,n).format(r,o):t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys(r).length)return this.unwrap();var o=this.next;o instanceof e&&o.prev===this&&function(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var n in t)if(t[n]!==e[n])return!1;return!0}(r,o.formats())&&(o.moveChildren(this),o.remove())},e.blotName="inline",e.scope=l.Scope.INLINE_BLOT,e.tagName="SPAN",e}(i.default);e.default=a},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(18),l=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.formats=function(n){var r=l.query(e.blotName).tagName;if(n.tagName!==r)return t.formats.call(this,n)},e.prototype.format=function(n,r){null!=l.query(n,l.Scope.BLOCK)&&(n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):this.replaceWith(e.blotName))},e.prototype.formatAt=function(e,n,r,o){null!=l.query(r,l.Scope.BLOCK)?this.format(r,o):t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.insertAt=function(e,n,r){if(null==r||null!=l.query(n,l.Scope.INLINE))t.prototype.insertAt.call(this,e,n,r);else{var o=this.split(e),i=l.create(n,r);o.parent.insertBefore(i,o)}},e.prototype.update=function(e,n){navigator.userAgent.match(/Trident/)?this.build():t.prototype.update.call(this,e,n)},e.blotName="block",e.scope=l.Scope.BLOCK_BLOT,e.tagName="P",e}(i.default);e.default=a},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.formats=function(t){},e.prototype.format=function(e,n){t.prototype.formatAt.call(this,0,this.length(),e,n)},e.prototype.formatAt=function(e,n,r,o){0===e&&n===this.length()?this.format(r,o):t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.formats=function(){return this.statics.formats(this.domNode)},e}(n(19).default);e.default=i},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(19),l=n(1),a=function(t){function e(e){var n=t.call(this,e)||this;return n.text=n.statics.value(n.domNode),n}return o(e,t),e.create=function(t){return document.createTextNode(t)},e.value=function(t){var e=t.data;return e.normalize&&(e=e.normalize()),e},e.prototype.deleteAt=function(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)},e.prototype.index=function(t,e){return this.domNode===t?e:-1},e.prototype.insertAt=function(e,n,r){null==r?(this.text=this.text.slice(0,e)+n+this.text.slice(e),this.domNode.data=this.text):t.prototype.insertAt.call(this,e,n,r)},e.prototype.length=function(){return this.text.length},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof e&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},e.prototype.position=function(t,e){return void 0===e&&(e=!1),[this.domNode,t]},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=l.create(this.domNode.splitText(t));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},e.prototype.update=function(t,e){var n=this;t.some((function(t){return"characterData"===t.type&&t.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},e.prototype.value=function(){return this.text},e.blotName="text",e.scope=l.Scope.INLINE_BLOT,e}(i.default);e.default=a},function(t,e,n){"use strict";var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return arguments.length>1&&!this.contains(t)==!e?e:o.call(this,t)}}String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return e=e||0,this.substr(e,t.length)===t}),String.prototype.endsWith||(String.prototype.endsWith=function(t,e){var n=this.toString();("number"!=typeof e||!isFinite(e)||Math.floor(e)!==e||e>n.length)&&(e=n.length),e-=t.length;var r=n.indexOf(t,e);return-1!==r&&r===e}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var e,n=Object(this),r=n.length>>>0,o=arguments[1],i=0;ie.length?t:e,f=t.length>e.length?e:t,h=c.indexOf(f);if(-1!=h)return u=[[r,c.substring(0,h)],[o,f],[r,c.substring(h+f.length)]],t.length>e.length&&(u[0][0]=u[2][0]=n),u;if(1==f.length)return[[n,t],[r,e]];var p=function(t,e){var n=t.length>e.length?t:e,r=t.length>e.length?e:t;if(n.length<4||2*r.length=t.length?[r,o,i,l,f]:null}var i,l,u,c,f,h=o(n,r,Math.ceil(n.length/4)),p=o(n,r,Math.ceil(n.length/2));return h||p?(i=p?h&&h[4].length>p[4].length?h:p:h,t.length>e.length?(l=i[0],u=i[1],c=i[2],f=i[3]):(c=i[0],f=i[1],l=i[2],u=i[3]),[l,u,c,f,i[4]]):null}(t,e);if(p){var d=p[0],y=p[1],v=p[2],b=p[3],g=p[4],m=i(d,v),_=i(y,b);return m.concat([[o,g]],_)}return function(t,e){for(var o=t.length,i=e.length,a=Math.ceil((o+i)/2),s=a,u=2*a,c=new Array(u),f=new Array(u),h=0;ho)v+=2;else if(w>i)y+=2;else if(d&&(E=s+p-_)>=0&&E=(k=o-f[E]))return l(t,e,A,w)}for(var x=-m+b;x<=m-g;x+=2){for(var k,E=s+x,N=(k=x==-m||x!=m&&f[E-1]o)g+=2;else if(N>i)b+=2;else if(!d){var A;if((O=s+p-x)>=0&&O=(k=o-k)))return l(t,e,A,w)}}}return[[n,t],[r,e]]}(t,e)}(t=t.substring(0,t.length-h),e=e.substring(0,e.length-h));return p&&y.unshift([o,p]),d&&y.push([o,d]),u(y),null!=c&&(y=function(t,e){var r=function(t,e){if(0===e)return[o,t];for(var r=0,i=0;i0&&i.splice(l+2,0,[s[0],u]),f(i,l,3)}return t}(y,c)),function(t){for(var e=!1,i=function(t){return t.charCodeAt(0)>=56320&&t.charCodeAt(0)<=57343},l=2;l=55296&&a.charCodeAt(a.length-1)<=56319)&&t[l-1][0]===n&&i(t[l-1][1])&&t[l][0]===r&&i(t[l][1])&&(e=!0,t[l-1][1]=t[l-2][1].slice(-1)+t[l-1][1],t[l][1]=t[l-2][1].slice(-1)+t[l][1],t[l-2][1]=t[l-2][1].slice(0,-1));var a;if(!e)return t;var s=[];for(l=0;l0&&s.push(t[l]);return s}(y)}function l(t,e,n,r){var o=t.substring(0,n),l=e.substring(0,r),a=t.substring(n),s=e.substring(r),u=i(o,l),c=i(a,s);return u.concat(c)}function a(t,e){if(!t||!e||t.charAt(0)!=e.charAt(0))return 0;for(var n=0,r=Math.min(t.length,e.length),o=r,i=0;n1?(0!==l&&0!==c&&(0!==(e=a(h,f))&&(i-l-c>0&&t[i-l-c-1][0]==o?t[i-l-c-1][1]+=h.substring(0,e):(t.splice(0,0,[o,h.substring(0,e)]),i++),h=h.substring(e),f=f.substring(e)),0!==(e=s(h,f))&&(t[i][1]=h.substring(h.length-e)+t[i][1],h=h.substring(0,h.length-e),f=f.substring(0,f.length-e))),0===l?t.splice(i-c,l+c,[r,h]):0===c?t.splice(i-l,l+c,[n,f]):t.splice(i-l-c,l+c,[n,f],[r,h]),i=i-l-c+(l?1:0)+(c?1:0)+1):0!==i&&t[i-1][0]==o?(t[i-1][1]+=t[i][1],t.splice(i,1)):i++,c=0,l=0,f="",h=""}""===t[t.length-1][1]&&t.pop();var p=!1;for(i=1;i=0&&r>=e-1;r--)if(r+1=700)&&(n.bold=!0),Object.keys(n).length>0&&(e=A(e,n)),parseFloat(r.textIndent||0)>0&&(e=(new a.default).insert("\t").concat(e)),e}],["li",function(t,e){var n=s.default.query(t);if(null==n||"list-item"!==n.blotName||!S(e,"\n"))return e;for(var r=-1,o=t.parentNode;!o.classList.contains("ql-clipboard");)"list"===(s.default.query(o)||{}).blotName&&(r+=1),o=o.parentNode;return r<=0?e:e.compose((new a.default).retain(e.length()-1).retain(1,{indent:r}))}],["b",C.bind(C,"bold")],["i",C.bind(C,"italic")],["style",function(){return new a.default}]],k=[h.AlignAttribute,v.DirectionAttribute].reduce((function(t,e){return t[e.keyName]=e,t}),{}),E=[h.AlignStyle,p.BackgroundStyle,y.ColorStyle,v.DirectionStyle,b.FontStyle,g.SizeStyle].reduce((function(t,e){return t[e.keyName]=e,t}),{}),N=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],x.concat(r.options.matchers).forEach((function(t){var e=o(t,2),i=e[0],l=e[1];(n.matchVisual||l!==I)&&r.addMatcher(i,l)})),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"addMatcher",value:function(t,e){this.matchers.push([t,e])}},{key:"convert",value:function(t){if("string"==typeof t)return this.container.innerHTML=t.replace(/\>\r?\n +\<"),this.convert();var e=this.quill.getFormat(this.quill.selection.savedRange.index);if(e[d.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new a.default).insert(n,_({},d.default.blotName,e[d.default.blotName]))}var r=this.prepareMatching(),i=o(r,2),l=i[0],s=i[1],u=T(this.container,l,s);return S(u,"\n")&&null==u.ops[u.ops.length-1].attributes&&(u=u.compose((new a.default).retain(u.length()-1).delete(1))),O.log("convert",this.container.innerHTML,u),this.container.innerHTML="",u}},{key:"dangerouslyPasteHTML",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.default.sources.API;if("string"==typeof t)this.quill.setContents(this.convert(t),e),this.quill.setSelection(0,u.default.sources.SILENT);else{var r=this.convert(e);this.quill.updateContents((new a.default).retain(t).concat(r),n),this.quill.setSelection(t+r.length(),u.default.sources.SILENT)}}},{key:"onPaste",value:function(t){var e=this;if(!t.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new a.default).retain(n.index),o=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(u.default.sources.SILENT),setTimeout((function(){r=r.concat(e.convert()).delete(n.length),e.quill.updateContents(r,u.default.sources.USER),e.quill.setSelection(r.length()-n.length,u.default.sources.SILENT),e.quill.scrollingContainer.scrollTop=o,e.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var t=this,e=[],n=[];return this.matchers.forEach((function(r){var i=o(r,2),l=i[0],a=i[1];switch(l){case Node.TEXT_NODE:n.push(a);break;case Node.ELEMENT_NODE:e.push(a);break;default:[].forEach.call(t.container.querySelectorAll(l),(function(t){t[w]=t[w]||[],t[w].push(a)}))}})),[e,n]}}]),e}(f.default);function A(t,e,n){return"object"===(void 0===e?"undefined":r(e))?Object.keys(e).reduce((function(t,n){return A(t,n,e[n])}),t):t.reduce((function(t,r){return r.attributes&&r.attributes[e]?t.push(r):t.insert(r.insert,(0,l.default)({},_({},e,n),r.attributes))}),new a.default)}function j(t){if(t.nodeType!==Node.ELEMENT_NODE)return{};var e="__ql-computed-style";return t[e]||(t[e]=window.getComputedStyle(t))}function S(t,e){for(var n="",r=t.ops.length-1;r>=0&&n.length-1}function T(t,e,n){return t.nodeType===t.TEXT_NODE?n.reduce((function(e,n){return n(t,e)}),new a.default):t.nodeType===t.ELEMENT_NODE?[].reduce.call(t.childNodes||[],(function(r,o){var i=T(o,e,n);return o.nodeType===t.ELEMENT_NODE&&(i=e.reduce((function(t,e){return e(o,t)}),i),i=(o[w]||[]).reduce((function(t,e){return e(o,t)}),i)),r.concat(i)}),new a.default):new a.default}function C(t,e,n){return A(n,t,!0)}function P(t,e){var n=s.default.Attributor.Attribute.keys(t),r=s.default.Attributor.Class.keys(t),o=s.default.Attributor.Style.keys(t),i={};return n.concat(r).concat(o).forEach((function(e){var n=s.default.query(e,s.default.Scope.ATTRIBUTE);null!=n&&(i[n.attrName]=n.value(t),i[n.attrName])||(null==(n=k[e])||n.attrName!==e&&n.keyName!==e||(i[n.attrName]=n.value(t)||void 0),null==(n=E[e])||n.attrName!==e&&n.keyName!==e||(n=E[e],i[n.attrName]=n.value(t)||void 0))})),Object.keys(i).length>0&&(e=A(e,i)),e}function L(t,e){var n=s.default.query(t);if(null==n)return e;if(n.prototype instanceof s.default.Embed){var r={},o=n.value(t);null!=o&&(r[n.blotName]=o,e=(new a.default).insert(r,n.formats(t)))}else"function"==typeof n.formats&&(e=A(e,n.blotName,n.formats(t)));return e}function M(t,e){return S(e,"\n")||(q(t)||e.length()>0&&t.nextSibling&&q(t.nextSibling))&&e.insert("\n"),e}function I(t,e){if(q(t)&&null!=t.nextElementSibling&&!S(e,"\n\n")){var n=t.offsetHeight+parseFloat(j(t).marginTop)+parseFloat(j(t).marginBottom);t.nextElementSibling.offsetTop>t.offsetTop+1.5*n&&e.insert("\n")}return e}function R(t,e){var n=t.data;if("O:P"===t.parentNode.tagName)return e.insert(n.trim());if(0===n.trim().length&&t.parentNode.classList.contains("ql-clipboard"))return e;if(!j(t.parentNode).whiteSpace.startsWith("pre")){var r=function(t,e){return(e=e.replace(/[^\u00a0]/g,"")).length<1&&t?" ":e};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,r.bind(r,!0)),(null==t.previousSibling&&q(t.parentNode)||null!=t.previousSibling&&q(t.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==t.nextSibling&&q(t.parentNode)||null!=t.nextSibling&&q(t.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return e.insert(n)}N.DEFAULTS={matchers:[],matchVisual:!0},e.default=N,e.matchAttributor=P,e.matchBlot=L,e.matchNewline=M,e.matchSpacing=I,e.matchText=R},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;n '},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;nr.right&&(i=r.right-o.right,this.root.style.left=e+i+"px"),o.leftr.bottom){var l=o.bottom-o.top,a=t.bottom-t.top+l;this.root.style.top=n-a+"px",this.root.classList.add("ql-flip")}return i}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},o=function(){function t(t,e){for(var n=0;n','','',''].join(""),e.default=b},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=M(n(29)),o=n(36),i=n(38),l=n(64),a=M(n(65)),s=M(n(66)),u=n(67),c=M(u),f=n(37),h=n(26),p=n(39),d=n(40),y=M(n(56)),v=M(n(68)),b=M(n(27)),g=M(n(69)),m=M(n(70)),_=M(n(71)),O=M(n(72)),w=M(n(73)),x=n(13),k=M(x),E=M(n(74)),N=M(n(75)),A=M(n(57)),j=M(n(41)),S=M(n(28)),q=M(n(59)),T=M(n(60)),C=M(n(61)),P=M(n(108)),L=M(n(62));function M(t){return t&&t.__esModule?t:{default:t}}r.default.register({"attributors/attribute/direction":i.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":f.BackgroundClass,"attributors/class/color":h.ColorClass,"attributors/class/direction":i.DirectionClass,"attributors/class/font":p.FontClass,"attributors/class/size":d.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":f.BackgroundStyle,"attributors/style/color":h.ColorStyle,"attributors/style/direction":i.DirectionStyle,"attributors/style/font":p.FontStyle,"attributors/style/size":d.SizeStyle},!0),r.default.register({"formats/align":o.AlignClass,"formats/direction":i.DirectionClass,"formats/indent":l.IndentClass,"formats/background":f.BackgroundStyle,"formats/color":h.ColorStyle,"formats/font":p.FontClass,"formats/size":d.SizeClass,"formats/blockquote":a.default,"formats/code-block":k.default,"formats/header":s.default,"formats/list":c.default,"formats/bold":y.default,"formats/code":x.Code,"formats/italic":v.default,"formats/link":b.default,"formats/script":g.default,"formats/strike":m.default,"formats/underline":_.default,"formats/image":O.default,"formats/video":w.default,"formats/list/item":u.ListItem,"modules/formula":E.default,"modules/syntax":N.default,"modules/toolbar":A.default,"themes/bubble":P.default,"themes/snow":L.default,"ui/icons":j.default,"ui/picker":S.default,"ui/icon-picker":T.default,"ui/color-picker":q.default,"ui/tooltip":C.default},!0),e.default=r.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IndentClass=void 0;var r,o=function(){function t(t,e){for(var n=0;n0&&this.children.tail.format(t,e)}},{key:"formats",value:function(){return t={},e=this.statics.blotName,n=this.statics.formats(this.domNode),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t;var t,e,n}},{key:"insertBefore",value:function(t,n){if(t instanceof h)o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n);else{var r=null==n?this.length():n.offset(this),i=this.split(r);i.parent.insertBefore(t,i)}}},{key:"optimize",value:function(t){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){if(t.statics.blotName!==this.statics.blotName){var n=i.default.create(this.statics.defaultChild);t.moveChildren(n),this.appendChild(n)}o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t)}}]),e}(a.default);p.blotName="list",p.scope=i.default.Scope.BLOCK_BLOT,p.tagName=["OL","UL"],p.defaultChild="list-item",p.allowedChildren=[h],e.ListItem=h,e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(((r=n(56))&&r.__esModule?r:{default:r}).default);o.blotName="italic",o.tagName=["EM","I"],e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;n-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=i(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"==typeof t&&n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return s.reduce((function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e}),{})}},{key:"match",value:function(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}},{key:"sanitize",value:function(t){return(0,a.sanitize)(t,["http","https","data"])?t:"//:0"}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(l.default.Embed);u.blotName="image",u.tagName="IMG",e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;n-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=i(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return s.reduce((function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e}),{})}},{key:"sanitize",value:function(t){return a.default.sanitize(t)}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(l.BlockEmbed);u.blotName="video",u.className="ql-video",u.tagName="IFRAME",e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.FormulaBlot=void 0;var r=function(){function t(t,e){for(var n=0;n0||null==this.cachedText)&&(this.domNode.innerHTML=t(e),this.domNode.normalize(),this.attach()),this.cachedText=e)}}]),e}(s(n(13)).default);h.className="ql-syntax";var p=new i.default.Attributor.Class("token","hljs",{scope:i.default.Scope.INLINE}),d=function(t){function e(t,n){u(this,e);var r=c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if("function"!=typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var o=null;return r.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(o),o=setTimeout((function(){r.highlight(),o=null}),r.options.interval)})),r.highlight(),r}return f(e,t),r(e,null,[{key:"register",value:function(){l.default.register(p,!0),l.default.register(h,!0)}}]),r(e,[{key:"highlight",value:function(){var t=this;if(!this.quill.selection.composing){this.quill.update(l.default.sources.USER);var e=this.quill.getSelection();this.quill.scroll.descendants(h).forEach((function(e){e.highlight(t.options.highlight)})),this.quill.update(l.default.sources.SILENT),null!=e&&this.quill.setSelection(e,l.default.sources.SILENT)}}}]),e}(a.default);d.DEFAULTS={highlight:null==window.hljs?null:function(t){return window.hljs.highlightAuto(t).value},interval:1e3},e.CodeBlock=h,e.CodeToken=p,e.default=d},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BubbleTooltip=void 0;var r=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},o=function(){function t(t,e){for(var n=0;n0&&o===l.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var i=r.quill.getLines(e.index,e.length);if(1===i.length)r.position(r.quill.getBounds(e));else{var a=i[i.length-1],s=r.quill.getIndex(a),c=Math.min(a.length()-1,e.index+e.length-s),f=r.quill.getBounds(new u.Range(s,c));r.position(f)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()})),r}return d(e,t),o(e,[{key:"listen",value:function(){var t=this;r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){t.root.classList.remove("ql-editing")})),this.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!t.root.classList.contains("ql-hidden")){var e=t.quill.getSelection();null!=e&&t.position(t.quill.getBounds(e))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(t){var n=r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"position",this).call(this,t),o=this.root.querySelector(".ql-tooltip-arrow");if(o.style.marginLeft="",0===n)return n;o.style.marginLeft=-1*n-o.offsetWidth/2+"px"}}]),e}(a.BaseTooltip);b.TEMPLATE=['','
','','',"
"].join(""),e.BubbleTooltip=b,e.default=v},function(t,e,n){t.exports=n(63)}]).default},t.exports=r()},872278:(t,e,n)=>{"use strict";t.exports=function(t){function e(e){var n=t.createElement.bind(null,e);return n.type=e,n}return{a:e("a"),abbr:e("abbr"),address:e("address"),area:e("area"),article:e("article"),aside:e("aside"),audio:e("audio"),b:e("b"),base:e("base"),bdi:e("bdi"),bdo:e("bdo"),big:e("big"),blockquote:e("blockquote"),body:e("body"),br:e("br"),button:e("button"),canvas:e("canvas"),caption:e("caption"),cite:e("cite"),code:e("code"),col:e("col"),colgroup:e("colgroup"),data:e("data"),datalist:e("datalist"),dd:e("dd"),del:e("del"),details:e("details"),dfn:e("dfn"),dialog:e("dialog"),div:e("div"),dl:e("dl"),dt:e("dt"),em:e("em"),embed:e("embed"),fieldset:e("fieldset"),figcaption:e("figcaption"),figure:e("figure"),footer:e("footer"),form:e("form"),h1:e("h1"),h2:e("h2"),h3:e("h3"),h4:e("h4"),h5:e("h5"),h6:e("h6"),head:e("head"),header:e("header"),hgroup:e("hgroup"),hr:e("hr"),html:e("html"),i:e("i"),iframe:e("iframe"),img:e("img"),input:e("input"),ins:e("ins"),kbd:e("kbd"),keygen:e("keygen"),label:e("label"),legend:e("legend"),li:e("li"),link:e("link"),main:e("main"),map:e("map"),mark:e("mark"),menu:e("menu"),menuitem:e("menuitem"),meta:e("meta"),meter:e("meter"),nav:e("nav"),noscript:e("noscript"),object:e("object"),ol:e("ol"),optgroup:e("optgroup"),option:e("option"),output:e("output"),p:e("p"),param:e("param"),picture:e("picture"),pre:e("pre"),progress:e("progress"),q:e("q"),rp:e("rp"),rt:e("rt"),ruby:e("ruby"),s:e("s"),samp:e("samp"),script:e("script"),section:e("section"),select:e("select"),small:e("small"),source:e("source"),span:e("span"),strong:e("strong"),style:e("style"),sub:e("sub"),summary:e("summary"),sup:e("sup"),table:e("table"),tbody:e("tbody"),td:e("td"),textarea:e("textarea"),tfoot:e("tfoot"),th:e("th"),thead:e("thead"),time:e("time"),title:e("title"),tr:e("tr"),track:e("track"),u:e("u"),ul:e("ul"),var:e("var"),video:e("video"),wbr:e("wbr"),circle:e("circle"),clipPath:e("clipPath"),defs:e("defs"),ellipse:e("ellipse"),g:e("g"),image:e("image"),line:e("line"),linearGradient:e("linearGradient"),mask:e("mask"),path:e("path"),pattern:e("pattern"),polygon:e("polygon"),polyline:e("polyline"),radialGradient:e("radialGradient"),rect:e("rect"),stop:e("stop"),svg:e("svg"),text:e("text"),tspan:e("tspan")}}(n(124852))},338698:(t,e,n)=>{"use strict";var r=n(727418),o=n(124852);function i(t){for(var e=t.message,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;rN;N++)E[N]=N+1;E[15]=0;var A=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,j=Object.prototype.hasOwnProperty,S={},q={};function T(t){return!!j.call(q,t)||!j.call(S,t)&&(A.test(t)?q[t]=!0:(S[t]=!0,!1))}function C(t,e,n,r,o,i){this.acceptsBooleans=2===e||3===e||4===e,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=i}var P={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(t){P[t]=new C(t,0,!1,t,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(t){var e=t[0];P[e]=new C(e,1,!1,t[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(t){P[t]=new C(t,2,!1,t.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(t){P[t]=new C(t,2,!1,t,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(t){P[t]=new C(t,3,!1,t.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(t){P[t]=new C(t,3,!0,t,null,!1)})),["capture","download"].forEach((function(t){P[t]=new C(t,4,!1,t,null,!1)})),["cols","rows","size","span"].forEach((function(t){P[t]=new C(t,6,!1,t,null,!1)})),["rowSpan","start"].forEach((function(t){P[t]=new C(t,5,!1,t.toLowerCase(),null,!1)}));var L=/[\-:]([a-z])/g;function M(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(t){var e=t.replace(L,M);P[e]=new C(e,1,!1,t,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(t){var e=t.replace(L,M);P[e]=new C(e,1,!1,t,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(t){var e=t.replace(L,M);P[e]=new C(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(t){P[t]=new C(t,1,!1,t.toLowerCase(),null,!1)})),P.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(t){P[t]=new C(t,1,!1,t.toLowerCase(),null,!0)}));var I=/["'&<>]/;function R(t){if("boolean"==typeof t||"number"==typeof t)return""+t;t=""+t;var e=I.exec(t);if(e){var n,r="",o=0;for(n=e.index;ne}return!1}(t,e,r)?"":null!==r?(t=r.attributeName,3===(n=r.type)||4===n&&!0===e?t+'=""':(r.sanitizeURL&&(e=""+e),t+'="'+R(e)+'"')):T(t)?t+'="'+R(e)+'"':""}var B="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},F=null,U=null,H=null,z=!1,K=!1,V=null,W=0;function Z(){if(null===F)throw i(Error(321));return F}function G(){if(0W))throw i(Error(301));if(t===F)if(K=!0,t={action:n,next:null},null===V&&(V=new Map),void 0===(n=V.get(e)))V.set(e,t);else{for(e=n;null!==e.next;)e=e.next;e.next=t}}function tt(){}var et=0,nt={readContext:function(t){var e=et;return k(t,e),t[e]},useContext:function(t){Z();var e=et;return k(t,e),t[e]},useMemo:function(t,e){if(F=Z(),e=void 0===e?null:e,null!==(H=Y())){var n=H.memoizedState;if(null!==n&&null!==e){t:{var r=n[1];if(null===r)r=!1;else{for(var o=0;o=l))throw i(Error(304));var a=new Uint16Array(l);for(a.set(r),(E=a)[0]=n+1,r=n;r=a.children.length){var s=a.footer;if(""!==s&&(this.previousWasTextNode=!1),this.stack.pop(),"select"===a.type)this.currentSelectValue=null;else if(null!=a.type&&null!=a.type.type&&a.type.type.$$typeof===f)this.popProvider(a.type);else if(a.type===y){this.suspenseDepth--;var u=r.pop();if(o){o=!1;var c=a.fallbackFrame;if(!c)throw i(Error(303));this.stack.push(c),r[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}r[this.suspenseDepth]+=u}r[this.suspenseDepth]+=s}else{var h=a.children[a.childIndex++],p="";try{p+=this.render(h,a.context,a.domNamespace)}catch(t){if(null!=t&&"function"==typeof t.then)throw i(Error(294));throw t}r.length<=this.suspenseDepth&&r.push(""),r[this.suspenseDepth]+=p}}return r[0]}finally{ht.current=n,et=e}},e.render=function(t,e,n){if("string"==typeof t||"number"==typeof t)return""==(n=""+t)?"":this.makeStaticMarkup?R(n):this.previousWasTextNode?"\x3c!-- --\x3e"+R(n):(this.previousWasTextNode=!0,R(n));if(t=(e=function(t,e,n){function l(o,l){var a=l.prototype&&l.prototype.isReactComponent,s=function(t,e,n,r){if(r&&"object"==typeof(r=t.contextType)&&null!==r)return k(r,n),r[n];if(t=t.contextTypes){for(var o in n={},t)n[o]=e[o];e=n}else e=x;return e}(l,e,n,a),u=[],c=!1,f={isMounted:function(){return!1},enqueueForceUpdate:function(){if(null===u)return null},enqueueReplaceState:function(t,e){c=!0,u=[e]},enqueueSetState:function(t,e){if(null===u)return null;u.push(e)}};if(a){if(a=new l(o.props,s,f),"function"==typeof l.getDerivedStateFromProps){var h=l.getDerivedStateFromProps.call(null,o.props,a.state);null!=h&&(a.state=r({},a.state,h))}}else if(F={},a=l(o.props,s,f),null==(a=$(l,o.props,a,s))||null==a.render)return void mt(t=a,l);if(a.props=o.props,a.context=s,a.updater=f,void 0===(f=a.state)&&(a.state=f=null),"function"==typeof a.UNSAFE_componentWillMount||"function"==typeof a.componentWillMount)if("function"==typeof a.componentWillMount&&"function"!=typeof l.getDerivedStateFromProps&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&"function"!=typeof l.getDerivedStateFromProps&&a.UNSAFE_componentWillMount(),u.length){f=u;var p=c;if(u=null,c=!1,p&&1===f.length)a.state=f[0];else{h=p?f[0]:a.state;var d=!0;for(p=p?1:0;p=u.length))throw i(Error(93));u=u[0]}s=""+u}null==s&&(s="")}a=r({},a,{value:void 0,children:""+s})}else if("select"===l)this.currentSelectValue=null!=a.value?a.value:a.defaultValue,a=r({},a,{value:void 0});else if("option"===l){u=this.currentSelectValue;var c=function(t){if(null==t)return t;var e="";return o.Children.forEach(t,(function(t){null!=t&&(e+=t)})),e}(a.children);if(null!=u){var f=null!=a.value?a.value+"":c;if(s=!1,Array.isArray(u)){for(var h=0;h":(_+=">",s="");t:{if(null!=(u=a.dangerouslySetInnerHTML)){if(null!=u.__html){u=u.__html;break t}}else if("string"==typeof(u=a.children)||"number"==typeof u){u=R(u);break t}u=null}return null!=u?(a=[],pt[l]&&"\n"===u.charAt(0)&&(_+="\n"),_+=u):a=ft(a.children),t=t.type,n=null==n||"http://www.w3.org/1999/xhtml"===n?ot(t):"http://www.w3.org/2000/svg"===n&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":n,this.stack.push({domNamespace:n,type:l,children:a,childIndex:0,context:e,footer:s}),this.previousWasTextNode=!1,_},t}(),Ot={renderToString:function(t){t=new _t(t,!1);try{return t.read(1/0)}finally{t.destroy()}},renderToStaticMarkup:function(t){t=new _t(t,!0);try{return t.read(1/0)}finally{t.destroy()}},renderToNodeStream:function(){throw i(Error(207))},renderToStaticNodeStream:function(){throw i(Error(208))},version:"16.10.1"},wt={default:Ot},xt=wt&&Ot||wt;t.exports=xt.default||xt},697762:(t,e,n)=>{"use strict";t.exports=n(338698)},55020:(t,e,n)=>{"use strict";var r=n(124852),o=n(180307),i=n(972555),l=n(851127),a=(n(313311),n(359704)),s=n(618446),u=n(675263),c=n(872278),f=i({displayName:"Quill",mixins:[l],propTypes:{id:u.string,className:u.string,theme:u.string,style:u.object,readOnly:u.bool,value:u.oneOfType([u.string,u.shape({ops:u.array})]),defaultValue:u.oneOfType([u.string,u.shape({ops:u.array})]),placeholder:u.string,tabIndex:u.number,bounds:u.oneOfType([u.string,u.element]),onChange:u.func,onChangeSelection:u.func,onFocus:u.func,onBlur:u.func,onKeyPress:u.func,onKeyDown:u.func,onKeyUp:u.func,modules:function(t){return u.object.apply(this,arguments)||(t.modules&&t.modules.toolbar&&t.modules.toolbar[0]&&t.modules.toolbar[0].type?new Error("Since v1.0.0, React Quill will not create a custom toolbar for you anymore. Create a toolbar explictly, or let Quill create one. See: https://github.com/zenoamaro/react-quill#upgrading-to-react-quill-v100"):void 0)},toolbar:function(t){if("toolbar"in t)return new Error("The `toolbar` prop has been deprecated. Use `modules.toolbar` instead. See: https://github.com/zenoamaro/react-quill#upgrading-to-react-quill-v100")},formats:function(t){if(u.arrayOf(u.string).apply(this,arguments))return new Error("You cannot specify custom `formats` anymore. Use Parchment instead. See: https://github.com/zenoamaro/react-quill#upgrading-to-react-quill-v100.")},styles:function(t){if("styles"in t)return new Error("The `styles` prop has been deprecated. Use custom stylesheets instead. See: https://github.com/zenoamaro/react-quill#upgrading-to-react-quill-v100.")},pollInterval:function(t){if("pollInterval"in t)return new Error("The `pollInterval` property does not have any effect anymore. You can safely remove it from your props.See: https://github.com/zenoamaro/react-quill#upgrading-to-react-quill-v100.")},children:function(t){return u.element.apply(this,arguments)?new Error("The Quill editing area can only be composed of a single React element."):r.Children.count(t.children)&&"textarea"===r.Children.only(t.children).type?new Error("Quill does not support editing on a