landxml/bundles/landxml.native.js

3 lines
322 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*! For license information please see landxml.native.js.LICENSE.txt */
module.exports=(()=>{var t={8899:(t,e,r)=>{"use strict";var n=r(5266),i=6378137;function s(t){var e=0;if(t&&t.length>0){e+=Math.abs(o(t[0]));for(var r=1;r<t.length;r++)e-=Math.abs(o(t[r]))}return e}function o(t){var e,r,n,s,o,h,u=0,c=t.length;if(c>2){for(h=0;h<c;h++)h===c-2?(n=c-2,s=c-1,o=0):h===c-1?(n=c-1,s=0,o=1):(n=h,s=h+1,o=h+2),e=t[n],r=t[s],u+=(a(t[o][0])-a(e[0]))*Math.sin(a(r[1]));u=u*i*i/2}return u}function a(t){return t*Math.PI/180}e.Z=function(t){return n.geomReduce(t,(function(t,e){return t+function(t){var e,r=0;switch(t.type){case"Polygon":return s(t.coordinates);case"MultiPolygon":for(e=0;e<t.coordinates.length;e++)r+=s(t.coordinates[e]);return r;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0}return 0}(e)}),0)}},3470:(t,e)=>{"use strict";function r(t){var e={type:"Feature"};return Object.keys(t).forEach((function(r){switch(r){case"type":case"properties":case"geometry":return;default:e[r]=t[r]}})),e.properties=n(t.properties),e.geometry=i(t.geometry),e}function n(t){var e={};return t?(Object.keys(t).forEach((function(r){var i=t[r];"object"==typeof i?null===i?e[r]=null:Array.isArray(i)?e[r]=i.map((function(t){return t})):e[r]=n(i):e[r]=i})),e):e}function i(t){var e={type:t.type};return t.bbox&&(e.bbox=t.bbox),"GeometryCollection"===t.type?(e.geometries=t.geometries.map((function(t){return i(t)})),e):(e.coordinates=s(t.coordinates),e)}function s(t){var e=t;return"object"!=typeof e[0]?e.slice():e.map((function(t){return s(t)}))}e.Z=function(t){if(!t)throw new Error("geojson is required");switch(t.type){case"Feature":return r(t);case"FeatureCollection":return function(t){var e={type:"FeatureCollection"};return Object.keys(t).forEach((function(r){switch(r){case"type":case"features":return;default:e[r]=t[r]}})),e.features=t.features.map((function(t){return r(t)})),e}(t);case"Point":case"LineString":case"Polygon":case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":return i(t);default:throw new Error("unknown GeoJSON type")}}},1257:(t,e)=>{"use strict";function r(t,e,r){void 0===r&&(r={});var n={type:"Feature"};return(0===r.id||r.id)&&(n.id=r.id),r.bbox&&(n.bbox=r.bbox),n.properties=e||{},n.geometry=t,n}function n(t,e,n){return void 0===n&&(n={}),r({type:"Point",coordinates:t},e,n)}function i(t,e,n){void 0===n&&(n={});for(var i=0,s=t;i<s.length;i++){var o=s[i];if(o.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var a=0;a<o[o.length-1].length;a++)if(o[o.length-1][a]!==o[0][a])throw new Error("First and last Position are not equivalent.")}return r({type:"Polygon",coordinates:t},e,n)}function s(t,e,n){if(void 0===n&&(n={}),t.length<2)throw new Error("coordinates must be an array of two or more positions");return r({type:"LineString",coordinates:t},e,n)}function o(t,e){void 0===e&&(e={});var r={type:"FeatureCollection"};return e.id&&(r.id=e.id),e.bbox&&(r.bbox=e.bbox),r.features=t,r}function a(t,e,n){return void 0===n&&(n={}),r({type:"MultiLineString",coordinates:t},e,n)}function h(t,e,n){return void 0===n&&(n={}),r({type:"MultiPoint",coordinates:t},e,n)}function u(t,e,n){return void 0===n&&(n={}),r({type:"MultiPolygon",coordinates:t},e,n)}function c(t,r){void 0===r&&(r="kilometers");var n=e.factors[r];if(!n)throw new Error(r+" units is invalid");return t*n}function l(t,r){void 0===r&&(r="kilometers");var n=e.factors[r];if(!n)throw new Error(r+" units is invalid");return t/n}function f(t){return t%(2*Math.PI)*180/Math.PI}function p(t){return!isNaN(t)&&null!==t&&!Array.isArray(t)&&!/^\s*$/.test(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.earthRadius=6371008.8,e.factors={centimeters:100*e.earthRadius,centimetres:100*e.earthRadius,degrees:e.earthRadius/111325,feet:3.28084*e.earthRadius,inches:39.37*e.earthRadius,kilometers:e.earthRadius/1e3,kilometres:e.earthRadius/1e3,meters:e.earthRadius,metres:e.earthRadius,miles:e.earthRadius/1609.344,millimeters:1e3*e.earthRadius,millimetres:1e3*e.earthRadius,nauticalmiles:e.earthRadius/1852,radians:1,yards:e.earthRadius/1.0936},e.unitsFactors={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/e.earthRadius,yards:1/1.0936},e.areaFactors={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046},e.feature=r,e.geometry=function(t,e,r){switch(void 0===r&&(r={}),t){case"Point":return n(e).geometry;case"LineString":return s(e).geometry;case"Polygon":return i(e).geometry;case"MultiPoint":return h(e).geometry;case"MultiLineString":return a(e).geometry;case"MultiPolygon":return u(e).geometry;default:throw new Error(t+" is invalid")}},e.point=n,e.points=function(t,e,r){return void 0===r&&(r={}),o(t.map((function(t){return n(t,e)})),r)},e.polygon=i,e.polygons=function(t,e,r){return void 0===r&&(r={}),o(t.map((function(t){return i(t,e)})),r)},e.lineString=s,e.lineStrings=function(t,e,r){return void 0===r&&(r={}),o(t.map((function(t){return s(t,e)})),r)},e.featureCollection=o,e.multiLineString=a,e.multiPoint=h,e.multiPolygon=u,e.geometryCollection=function(t,e,n){return void 0===n&&(n={}),r({type:"GeometryCollection",geometries:t},e,n)},e.round=function(t,e){if(void 0===e&&(e=0),e&&!(e>=0))throw new Error("precision must be a positive number");var r=Math.pow(10,e||0);return Math.round(t*r)/r},e.radiansToLength=c,e.lengthToRadians=l,e.lengthToDegrees=function(t,e){return f(l(t,e))},e.bearingToAzimuth=function(t){var e=t%360;return e<0&&(e+=360),e},e.radiansToDegrees=f,e.degreesToRadians=function(t){return t%360*Math.PI/180},e.convertLength=function(t,e,r){if(void 0===e&&(e="kilometers"),void 0===r&&(r="kilometers"),!(t>=0))throw new Error("length must be a positive number");return c(l(t,e),r)},e.convertArea=function(t,r,n){if(void 0===r&&(r="meters"),void 0===n&&(n="kilometers"),!(t>=0))throw new Error("area must be a positive number");var i=e.areaFactors[r];if(!i)throw new Error("invalid original units");var s=e.areaFactors[n];if(!s)throw new Error("invalid final units");return t/i*s},e.isNumber=p,e.isObject=function(t){return!!t&&t.constructor===Object},e.validateBBox=function(t){if(!t)throw new Error("bbox is required");if(!Array.isArray(t))throw new Error("bbox must be an Array");if(4!==t.length&&6!==t.length)throw new Error("bbox must be an Array of 4 or 6 numbers");t.forEach((function(t){if(!p(t))throw new Error("bbox must only contain numbers")}))},e.validateId=function(t){if(!t)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof t))throw new Error("id must be a number or a string")},e.radians2degrees=function(){throw new Error("method has been renamed to `radiansToDegrees`")},e.degrees2radians=function(){throw new Error("method has been renamed to `degreesToRadians`")},e.distanceToDegrees=function(){throw new Error("method has been renamed to `lengthToDegrees`")},e.distanceToRadians=function(){throw new Error("method has been renamed to `lengthToRadians`")},e.radiansToDistance=function(){throw new Error("method has been renamed to `radiansToLength`")},e.bearingToAngle=function(){throw new Error("method has been renamed to `bearingToAzimuth`")},e.convertDistance=function(){throw new Error("method has been renamed to `convertLength`")}},5266:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1257);function i(t,e,r){if(null!==t)for(var n,s,o,a,h,u,c,l,f=0,p=0,d=t.type,y="FeatureCollection"===d,v="Feature"===d,g=y?t.features.length:1,m=0;m<g;m++){h=(l=!!(c=y?t.features[m].geometry:v?t.geometry:t)&&"GeometryCollection"===c.type)?c.geometries.length:1;for(var w=0;w<h;w++){var M=0,b=0;if(null!==(a=l?c.geometries[w]:c)){u=a.coordinates;var _=a.type;switch(f=!r||"Polygon"!==_&&"MultiPolygon"!==_?0:1,_){case null:break;case"Point":if(!1===e(u,p,m,M,b))return!1;p++,M++;break;case"LineString":case"MultiPoint":for(n=0;n<u.length;n++){if(!1===e(u[n],p,m,M,b))return!1;p++,"MultiPoint"===_&&M++}"LineString"===_&&M++;break;case"Polygon":case"MultiLineString":for(n=0;n<u.length;n++){for(s=0;s<u[n].length-f;s++){if(!1===e(u[n][s],p,m,M,b))return!1;p++}"MultiLineString"===_&&M++,"Polygon"===_&&b++}"Polygon"===_&&M++;break;case"MultiPolygon":for(n=0;n<u.length;n++){for(b=0,s=0;s<u[n].length;s++){for(o=0;o<u[n][s].length-f;o++){if(!1===e(u[n][s][o],p,m,M,b))return!1;p++}b++}M++}break;case"GeometryCollection":for(n=0;n<a.geometries.length;n++)if(!1===i(a.geometries[n],e,r))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function s(t,e){var r;switch(t.type){case"FeatureCollection":for(r=0;r<t.features.length&&!1!==e(t.features[r].properties,r);r++);break;case"Feature":e(t.properties,0)}}function o(t,e){if("Feature"===t.type)e(t,0);else if("FeatureCollection"===t.type)for(var r=0;r<t.features.length&&!1!==e(t.features[r],r);r++);}function a(t,e){var r,n,i,s,o,a,h,u,c,l,f=0,p="FeatureCollection"===t.type,d="Feature"===t.type,y=p?t.features.length:1;for(r=0;r<y;r++){for(a=p?t.features[r].geometry:d?t.geometry:t,u=p?t.features[r].properties:d?t.properties:{},c=p?t.features[r].bbox:d?t.bbox:void 0,l=p?t.features[r].id:d?t.id:void 0,o=(h=!!a&&"GeometryCollection"===a.type)?a.geometries.length:1,i=0;i<o;i++)if(null!==(s=h?a.geometries[i]:a))switch(s.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if(!1===e(s,f,u,c,l))return!1;break;case"GeometryCollection":for(n=0;n<s.geometries.length;n++)if(!1===e(s.geometries[n],f,u,c,l))return!1;break;default:throw new Error("Unknown Geometry Type")}else if(!1===e(null,f,u,c,l))return!1;f++}}function h(t,e){a(t,(function(t,r,i,s,o){var a,h=null===t?null:t.type;switch(h){case null:case"Point":case"LineString":case"Polygon":return!1!==e(n.feature(t,i,{bbox:s,id:o}),r,0)&&void 0}switch(h){case"MultiPoint":a="Point";break;case"MultiLineString":a="LineString";break;case"MultiPolygon":a="Polygon"}for(var u=0;u<t.coordinates.length;u++){var c={type:a,coordinates:t.coordinates[u]};if(!1===e(n.feature(c,i),r,u))return!1}}))}function u(t,e){h(t,(function(t,r,s){var o=0;if(t.geometry){var a=t.geometry.type;if("Point"!==a&&"MultiPoint"!==a){var h,u=0,c=0,l=0;return!1!==i(t,(function(i,a,f,p,d){if(void 0===h||r>u||p>c||d>l)return h=i,u=r,c=p,l=d,void(o=0);var y=n.lineString([h,i],t.properties);if(!1===e(y,r,s,d,o))return!1;o++,h=i}))&&void 0}}}))}function c(t,e){if(!t)throw new Error("geojson is required");h(t,(function(t,r,i){if(null!==t.geometry){var s=t.geometry.type,o=t.geometry.coordinates;switch(s){case"LineString":if(!1===e(t,r,i,0,0))return!1;break;case"Polygon":for(var a=0;a<o.length;a++)if(!1===e(n.lineString(o[a],t.properties),r,i,a))return!1}}}))}e.coordEach=i,e.coordReduce=function(t,e,r,n){var s=r;return i(t,(function(t,n,i,o,a){s=0===n&&void 0===r?t:e(s,t,n,i,o,a)}),n),s},e.propEach=s,e.propReduce=function(t,e,r){var n=r;return s(t,(function(t,i){n=0===i&&void 0===r?t:e(n,t,i)})),n},e.featureEach=o,e.featureReduce=function(t,e,r){var n=r;return o(t,(function(t,i){n=0===i&&void 0===r?t:e(n,t,i)})),n},e.coordAll=function(t){var e=[];return i(t,(function(t){e.push(t)})),e},e.geomEach=a,e.geomReduce=function(t,e,r){var n=r;return a(t,(function(t,i,s,o,a){n=0===i&&void 0===r?t:e(n,t,i,s,o,a)})),n},e.flattenEach=h,e.flattenReduce=function(t,e,r){var n=r;return h(t,(function(t,i,s){n=0===i&&0===s&&void 0===r?t:e(n,t,i,s)})),n},e.segmentEach=u,e.segmentReduce=function(t,e,r){var n=r,i=!1;return u(t,(function(t,s,o,a,h){n=!1===i&&void 0===r?t:e(n,t,s,o,a,h),i=!0})),n},e.lineEach=c,e.lineReduce=function(t,e,r){var n=r;return c(t,(function(t,i,s,o){n=0===i&&void 0===r?t:e(n,t,i,s,o)})),n},e.findSegment=function(t,e){if(e=e||{},!n.isObject(e))throw new Error("options is invalid");var r,i=e.featureIndex||0,s=e.multiFeatureIndex||0,o=e.geometryIndex||0,a=e.segmentIndex||0,h=e.properties;switch(t.type){case"FeatureCollection":i<0&&(i=t.features.length+i),h=h||t.features[i].properties,r=t.features[i].geometry;break;case"Feature":h=h||t.properties,r=t.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":r=t;break;default:throw new Error("geojson is invalid")}if(null===r)return null;var u=r.coordinates;switch(r.type){case"Point":case"MultiPoint":return null;case"LineString":return a<0&&(a=u.length+a-1),n.lineString([u[a],u[a+1]],h,e);case"Polygon":return o<0&&(o=u.length+o),a<0&&(a=u[o].length+a-1),n.lineString([u[o][a],u[o][a+1]],h,e);case"MultiLineString":return s<0&&(s=u.length+s),a<0&&(a=u[s].length+a-1),n.lineString([u[s][a],u[s][a+1]],h,e);case"MultiPolygon":return s<0&&(s=u.length+s),o<0&&(o=u[s].length+o),a<0&&(a=u[s][o].length-a-1),n.lineString([u[s][o][a],u[s][o][a+1]],h,e)}throw new Error("geojson is invalid")},e.findPoint=function(t,e){if(e=e||{},!n.isObject(e))throw new Error("options is invalid");var r,i=e.featureIndex||0,s=e.multiFeatureIndex||0,o=e.geometryIndex||0,a=e.coordIndex||0,h=e.properties;switch(t.type){case"FeatureCollection":i<0&&(i=t.features.length+i),h=h||t.features[i].properties,r=t.features[i].geometry;break;case"Feature":h=h||t.properties,r=t.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":r=t;break;default:throw new Error("geojson is invalid")}if(null===r)return null;var u=r.coordinates;switch(r.type){case"Point":return n.point(u,h,e);case"MultiPoint":return s<0&&(s=u.length+s),n.point(u[s],h,e);case"LineString":return a<0&&(a=u.length+a),n.point(u[a],h,e);case"Polygon":return o<0&&(o=u.length+o),a<0&&(a=u[o].length+a),n.point(u[o][a],h,e);case"MultiLineString":return s<0&&(s=u.length+s),a<0&&(a=u[s].length+a),n.point(u[s][a],h,e);case"MultiPolygon":return s<0&&(s=u.length+s),o<0&&(o=u[s].length+o),a<0&&(a=u[s][o].length-a),n.point(u[s][o][a],h,e)}throw new Error("geojson is invalid")}},4650:(t,e,r)=>{"use strict";var n=r(9209),i=r(99),s=r(1257);e.Z=function(t,e,r){void 0===r&&(r={});var o=i.getGeom(t).coordinates,a=i.getGeom(e).coordinates,h=n.union(o,a);return 0===h.length?null:1===h.length?s.polygon(h[0],r.properties):s.multiPolygon(h,r.properties)}},99:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1257);e.getCoord=function(t){if(!t)throw new Error("coord is required");if(!Array.isArray(t)){if("Feature"===t.type&&null!==t.geometry&&"Point"===t.geometry.type)return t.geometry.coordinates;if("Point"===t.type)return t.coordinates}if(Array.isArray(t)&&t.length>=2&&!Array.isArray(t[0])&&!Array.isArray(t[1]))return t;throw new Error("coord must be GeoJSON Point or an Array of numbers")},e.getCoords=function(t){if(Array.isArray(t))return t;if("Feature"===t.type){if(null!==t.geometry)return t.geometry.coordinates}else if(t.coordinates)return t.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")},e.containsNumber=function t(e){if(e.length>1&&n.isNumber(e[0])&&n.isNumber(e[1]))return!0;if(Array.isArray(e[0])&&e[0].length)return t(e[0]);throw new Error("coordinates must only contain numbers")},e.geojsonType=function(t,e,r){if(!e||!r)throw new Error("type and name required");if(!t||t.type!==e)throw new Error("Invalid input to "+r+": must be a "+e+", given "+t.type)},e.featureOf=function(t,e,r){if(!t)throw new Error("No feature passed");if(!r)throw new Error(".featureOf() requires a name");if(!t||"Feature"!==t.type||!t.geometry)throw new Error("Invalid input to "+r+", Feature with geometry required");if(!t.geometry||t.geometry.type!==e)throw new Error("Invalid input to "+r+": must be a "+e+", given "+t.geometry.type)},e.collectionOf=function(t,e,r){if(!t)throw new Error("No featureCollection passed");if(!r)throw new Error(".collectionOf() requires a name");if(!t||"FeatureCollection"!==t.type)throw new Error("Invalid input to "+r+", FeatureCollection required");for(var n=0,i=t.features;n<i.length;n++){var s=i[n];if(!s||"Feature"!==s.type||!s.geometry)throw new Error("Invalid input to "+r+", Feature with geometry required");if(!s.geometry||s.geometry.type!==e)throw new Error("Invalid input to "+r+": must be a "+e+", given "+s.geometry.type)}},e.getGeom=function(t){return"Feature"===t.type?t.geometry:t},e.getType=function(t,e){return"FeatureCollection"===t.type?"FeatureCollection":"GeometryCollection"===t.type?"GeometryCollection":"Feature"===t.type&&null!==t.geometry?t.geometry.type:t.type}},6124:(t,e,r)=>{"use strict";if(r(1934),r(5654),r(7694),r.g._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");function n(t,e,r){t[e]||Object.defineProperty(t,e,{writable:!0,configurable:!0,value:r})}r.g._babelPolyfill=!0,n(String.prototype,"padLeft","".padStart),n(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach((function(t){[][t]&&n(Array,t,Function.call.bind([][t]))}))},5654:function(t,e,r){!function(e){"use strict";var r,n=Object.prototype,i=n.hasOwnProperty,s="function"==typeof Symbol?Symbol:{},o=s.iterator||"@@iterator",a=s.asyncIterator||"@@asyncIterator",h=s.toStringTag||"@@toStringTag",u=e.regeneratorRuntime;if(u)t.exports=u;else{(u=e.regeneratorRuntime=t.exports).wrap=w;var c="suspendedStart",l="suspendedYield",f="executing",p="completed",d={},y={};y[o]=function(){return this};var v=Object.getPrototypeOf,g=v&&v(v(T([])));g&&g!==n&&i.call(g,o)&&(y=g);var m=x.prototype=b.prototype=Object.create(y);_.prototype=m.constructor=x,x.constructor=_,x[h]=_.displayName="GeneratorFunction",u.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===_||"GeneratorFunction"===(e.displayName||e.name))},u.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,h in t||(t[h]="GeneratorFunction")),t.prototype=Object.create(m),t},u.awrap=function(t){return{__await:t}},E(S.prototype),S.prototype[a]=function(){return this},u.AsyncIterator=S,u.async=function(t,e,r,n){var i=new S(w(t,e,r,n));return u.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(m),m[h]="Generator",m[o]=function(){return this},m.toString=function(){return"[object Generator]"},u.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},u.values=T,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(P),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=r)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,i){return a.type="throw",a.arg=t,e.next=n,i&&(e.method="next",e.arg=r),!!i}for(var s=this.tryEntries.length-1;s>=0;--s){var o=this.tryEntries[s],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var h=i.call(o,"catchLoc"),u=i.call(o,"finallyLoc");if(h&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(h){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var s=n;break}}s&&("break"===t||"continue"===t)&&s.tryLoc<=e&&e<=s.finallyLoc&&(s=null);var o=s?s.completion:{};return o.type=t,o.arg=e,s?(this.method="next",this.next=s.finallyLoc,d):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:T(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),d}}}function w(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,s=Object.create(i.prototype),o=new N(n||[]);return s._invoke=function(t,e,r){var n=c;return function(i,s){if(n===f)throw new Error("Generator is already running");if(n===p){if("throw"===i)throw s;return O()}for(r.method=i,r.arg=s;;){var o=r.delegate;if(o){var a=A(o,r);if(a){if(a===d)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===c)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=f;var h=M(t,e,r);if("normal"===h.type){if(n=r.done?p:l,h.arg===d)continue;return{value:h.arg,done:r.done}}"throw"===h.type&&(n=p,r.method="throw",r.arg=h.arg)}}}(t,r,o),s}function M(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}function b(){}function _(){}function x(){}function E(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function S(t){function r(e,n,s,o){var a=M(t[e],t,n);if("throw"!==a.type){var h=a.arg,u=h.value;return u&&"object"==typeof u&&i.call(u,"__await")?Promise.resolve(u.__await).then((function(t){r("next",t,s,o)}),(function(t){r("throw",t,s,o)})):Promise.resolve(u).then((function(t){h.value=t,s(h)}),o)}o(a.arg)}var n;"object"==typeof e.process&&e.process.domain&&(r=e.process.domain.bind(r)),this._invoke=function(t,e){function i(){return new Promise((function(n,i){r(t,e,n,i)}))}return n=n?n.then(i,i):i()}}function A(t,e){var n=t.iterator[e.method];if(n===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=r,A(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var i=M(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,d;var s=i.arg;return s?s.done?(e[t.resultName]=s.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,d):s:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(I,this),this.reset(!0)}function T(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,s=function e(){for(;++n<t.length;)if(i.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=r,e.done=!0,e};return s.next=s}}return{next:O}}function O(){return{value:r,done:!0}}}("object"==typeof r.g?r.g:"object"==typeof window?window:"object"==typeof self?self:this)},9742:(t,e)=>{"use strict";e.byteLength=function(t){var e=h(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,s=h(t),o=s[0],a=s[1],u=new i(function(t,e,r){return 3*(e+r)/4-r}(0,o,a)),c=0,l=a>0?o-4:o;for(r=0;r<l;r+=4)e=n[t.charCodeAt(r)]<<18|n[t.charCodeAt(r+1)]<<12|n[t.charCodeAt(r+2)]<<6|n[t.charCodeAt(r+3)],u[c++]=e>>16&255,u[c++]=e>>8&255,u[c++]=255&e;return 2===a&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,u[c++]=255&e),1===a&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,u[c++]=e>>8&255,u[c++]=255&e),u},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,s=[],o=16383,a=0,h=n-i;a<h;a+=o)s.push(u(t,a,a+o>h?h:a+o));return 1===i?(e=t[n-1],s.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],s.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),s.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,a=s.length;o<a;++o)r[o]=s[o],n[s.charCodeAt(o)]=o;function h(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function u(t,e,n){for(var i,s,o=[],a=e;a<n;a+=3)i=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),o.push(r[(s=i)>>18&63]+r[s>>12&63]+r[s>>6&63]+r[63&s]);return o.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},8764:(t,e,r)=>{"use strict";var n=r(9742),i=r(645);e.Buffer=a,e.SlowBuffer=function(t){return+t!=t&&(t=0),a.alloc(+t)},e.INSPECT_MAX_BYTES=50;var s=2147483647;function o(t){if(t>s)throw new RangeError("Invalid typed array length");var e=new Uint8Array(t);return e.__proto__=a.prototype,e}function a(t,e,r){if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return c(t)}return h(t,e,r)}function h(t,e,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return B(t)?function(t,e,r){if(e<0||t.byteLength<e)throw new RangeError("'offset' is out of bounds");if(t.byteLength<e+(r||0))throw new RangeError("'length' is out of bounds");var n;return(n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r)).__proto__=a.prototype,n}(t,e,r):"string"==typeof t?function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!a.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');var r=0|p(t,e),n=o(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}(t,e):function(t){if(a.isBuffer(t)){var e=0|f(t.length),r=o(e);return 0===r.length||t.copy(r,0,0,e),r}if(t){if(U(t)||"length"in t)return"number"!=typeof t.length||q(t.length)?o(0):l(t);if("Buffer"===t.type&&Array.isArray(t.data))return l(t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t)}function u(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function c(t){return u(t),o(t<0?0:0|f(t))}function l(t){for(var e=t.length<0?0:0|f(t.length),r=o(e),n=0;n<e;n+=1)r[n]=255&t[n];return r}function f(t){if(t>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|t}function p(t,e){if(a.isBuffer(t))return t.length;if(U(t)||B(t))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return j(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return F(t).length;default:if(n)return j(t).length;e=(""+e).toLowerCase(),n=!0}}function d(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return N(this,e,r);case"utf8":case"utf-8":return S(this,e,r);case"ascii":return I(this,e,r);case"latin1":case"binary":return P(this,e,r);case"base64":return E(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function y(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function v(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),q(r=+r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=a.from(e,n)),a.isBuffer(e))return 0===e.length?-1:g(t,e,r,n,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):g(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function g(t,e,r,n,i){var s,o=1,a=t.length,h=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;o=2,a/=2,h/=2,r/=2}function u(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){var c=-1;for(s=r;s<a;s++)if(u(t,s)===u(e,-1===c?0:s-c)){if(-1===c&&(c=s),s-c+1===h)return c*o}else-1!==c&&(s-=s-c),c=-1}else for(r+h>a&&(r=a-h),s=r;s>=0;s--){for(var l=!0,f=0;f<h;f++)if(u(t,s+f)!==u(e,f)){l=!1;break}if(l)return s}return-1}function m(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var s=e.length;if(s%2!=0)throw new TypeError("Invalid hex string");n>s/2&&(n=s/2);for(var o=0;o<n;++o){var a=parseInt(e.substr(2*o,2),16);if(q(a))return o;t[r+o]=a}return o}function w(t,e,r,n){return G(j(e,t.length-r),t,r,n)}function M(t,e,r,n){return G(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function b(t,e,r,n){return M(t,e,r,n)}function _(t,e,r,n){return G(F(e),t,r,n)}function x(t,e,r,n){return G(function(t,e){for(var r,n,i,s=[],o=0;o<t.length&&!((e-=2)<0);++o)n=(r=t.charCodeAt(o))>>8,i=r%256,s.push(i),s.push(n);return s}(e,t.length-r),t,r,n)}function E(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function S(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var s,o,a,h,u=t[i],c=null,l=u>239?4:u>223?3:u>191?2:1;if(i+l<=r)switch(l){case 1:u<128&&(c=u);break;case 2:128==(192&(s=t[i+1]))&&(h=(31&u)<<6|63&s)>127&&(c=h);break;case 3:s=t[i+1],o=t[i+2],128==(192&s)&&128==(192&o)&&(h=(15&u)<<12|(63&s)<<6|63&o)>2047&&(h<55296||h>57343)&&(c=h);break;case 4:s=t[i+1],o=t[i+2],a=t[i+3],128==(192&s)&&128==(192&o)&&128==(192&a)&&(h=(15&u)<<18|(63&s)<<12|(63&o)<<6|63&a)>65535&&h<1114112&&(c=h)}null===c?(c=65533,l=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=l}return function(t){var e=t.length;if(e<=A)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=A));return r}(n)}e.kMaxLength=s,a.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()}catch(t){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),"undefined"!=typeof Symbol&&Symbol.species&&a[Symbol.species]===a&&Object.defineProperty(a,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),a.poolSize=8192,a.from=function(t,e,r){return h(t,e,r)},a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,a.alloc=function(t,e,r){return function(t,e,r){return u(t),t<=0?o(t):void 0!==e?"string"==typeof r?o(t).fill(e,r):o(t).fill(e):o(t)}(t,e,r)},a.allocUnsafe=function(t){return c(t)},a.allocUnsafeSlow=function(t){return c(t)},a.isBuffer=function(t){return null!=t&&!0===t._isBuffer},a.compare=function(t,e){if(!a.isBuffer(t)||!a.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,i=0,s=Math.min(r,n);i<s;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},a.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return a.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=a.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var s=t[r];if(!a.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(n,i),i+=s.length}return n},a.byteLength=p,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)y(this,e,e+1);return this},a.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)y(this,e,e+3),y(this,e+1,e+2);return this},a.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)y(this,e,e+7),y(this,e+1,e+6),y(this,e+2,e+5),y(this,e+3,e+4);return this},a.prototype.toString=function(){var t=this.length;return 0===t?"":0===arguments.length?S(this,0,t):d.apply(this,arguments)},a.prototype.equals=function(t){if(!a.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===a.compare(this,t)},a.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},a.prototype.compare=function(t,e,r,n,i){if(!a.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var s=(i>>>=0)-(n>>>=0),o=(r>>>=0)-(e>>>=0),h=Math.min(s,o),u=this.slice(n,i),c=t.slice(e,r),l=0;l<h;++l)if(u[l]!==c[l]){s=u[l],o=c[l];break}return s<o?-1:o<s?1:0},a.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},a.prototype.indexOf=function(t,e,r){return v(this,t,e,r,!0)},a.prototype.lastIndexOf=function(t,e,r){return v(this,t,e,r,!1)},a.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var s=!1;;)switch(n){case"hex":return m(this,t,e,r);case"utf8":case"utf-8":return w(this,t,e,r);case"ascii":return M(this,t,e,r);case"latin1":case"binary":return b(this,t,e,r);case"base64":return _(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,e,r);default:if(s)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),s=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function I(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function P(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function N(t,e,r){var n,i=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>i)&&(r=i);for(var s="",o=e;o<r;++o)s+=(n=t[o])<16?"0"+n.toString(16):n.toString(16);return s}function T(t,e,r){for(var n=t.slice(e,r),i="",s=0;s<n.length;s+=2)i+=String.fromCharCode(n[s]+256*n[s+1]);return i}function O(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function C(t,e,r,n,i,s){if(!a.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<s)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function k(t,e,r,n,i,s){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function L(t,e,r,n,s){return e=+e,r>>>=0,s||k(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function D(t,e,r,n,s){return e=+e,r>>>=0,s||k(t,0,r,8),i.write(t,e,r,n,52,8),r+8}a.prototype.slice=function(t,e){var r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);var n=this.subarray(t,e);return n.__proto__=a.prototype,n},a.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||O(t,e,this.length);for(var n=this[t],i=1,s=0;++s<e&&(i*=256);)n+=this[t+s]*i;return n},a.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||O(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},a.prototype.readUInt8=function(t,e){return t>>>=0,e||O(t,1,this.length),this[t]},a.prototype.readUInt16LE=function(t,e){return t>>>=0,e||O(t,2,this.length),this[t]|this[t+1]<<8},a.prototype.readUInt16BE=function(t,e){return t>>>=0,e||O(t,2,this.length),this[t]<<8|this[t+1]},a.prototype.readUInt32LE=function(t,e){return t>>>=0,e||O(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},a.prototype.readUInt32BE=function(t,e){return t>>>=0,e||O(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},a.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||O(t,e,this.length);for(var n=this[t],i=1,s=0;++s<e&&(i*=256);)n+=this[t+s]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},a.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||O(t,e,this.length);for(var n=e,i=1,s=this[t+--n];n>0&&(i*=256);)s+=this[t+--n]*i;return s>=(i*=128)&&(s-=Math.pow(2,8*e)),s},a.prototype.readInt8=function(t,e){return t>>>=0,e||O(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},a.prototype.readInt16LE=function(t,e){t>>>=0,e||O(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt16BE=function(t,e){t>>>=0,e||O(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt32LE=function(t,e){return t>>>=0,e||O(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},a.prototype.readInt32BE=function(t,e){return t>>>=0,e||O(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},a.prototype.readFloatLE=function(t,e){return t>>>=0,e||O(t,4,this.length),i.read(this,t,!0,23,4)},a.prototype.readFloatBE=function(t,e){return t>>>=0,e||O(t,4,this.length),i.read(this,t,!1,23,4)},a.prototype.readDoubleLE=function(t,e){return t>>>=0,e||O(t,8,this.length),i.read(this,t,!0,52,8)},a.prototype.readDoubleBE=function(t,e){return t>>>=0,e||O(t,8,this.length),i.read(this,t,!1,52,8)},a.prototype.writeUIntLE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||C(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,s=0;for(this[e]=255&t;++s<r&&(i*=256);)this[e+s]=t/i&255;return e+r},a.prototype.writeUIntBE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||C(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,s=1;for(this[e+i]=255&t;--i>=0&&(s*=256);)this[e+i]=t/s&255;return e+r},a.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||C(this,t,e,1,255,0),this[e]=255&t,e+1},a.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||C(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||C(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||C(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},a.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||C(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);C(this,t,e,r,i-1,-i)}var s=0,o=1,a=0;for(this[e]=255&t;++s<r&&(o*=256);)t<0&&0===a&&0!==this[e+s-1]&&(a=1),this[e+s]=(t/o>>0)-a&255;return e+r},a.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);C(this,t,e,r,i-1,-i)}var s=r-1,o=1,a=0;for(this[e+s]=255&t;--s>=0&&(o*=256);)t<0&&0===a&&0!==this[e+s+1]&&(a=1),this[e+s]=(t/o>>0)-a&255;return e+r},a.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||C(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},a.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||C(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||C(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||C(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},a.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||C(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeFloatLE=function(t,e,r){return L(this,t,e,!0,r)},a.prototype.writeFloatBE=function(t,e,r){return L(this,t,e,!1,r)},a.prototype.writeDoubleLE=function(t,e,r){return D(this,t,e,!0,r)},a.prototype.writeDoubleBE=function(t,e,r){return D(this,t,e,!1,r)},a.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i,s=n-r;if(this===t&&r<e&&e<n)for(i=s-1;i>=0;--i)t[i+e]=this[i+r];else if(s<1e3)for(i=0;i<s;++i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+s),e);return s},a.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!a.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var s;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(s=e;s<r;++s)this[s]=t;else{var o=a.isBuffer(t)?t:new a(t,n),h=o.length;for(s=0;s<r-e;++s)this[s+e]=o[s%h]}return this};var R=/[^+/0-9A-Za-z-_]/g;function j(t,e){var r;e=e||1/0;for(var n=t.length,i=null,s=[],o=0;o<n;++o){if((r=t.charCodeAt(o))>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&s.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&s.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&s.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&s.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;s.push(r)}else if(r<2048){if((e-=2)<0)break;s.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;s.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return s}function F(t){return n.toByteArray(function(t){if((t=t.trim().replace(R,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function G(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function B(t){return t instanceof ArrayBuffer||null!=t&&null!=t.constructor&&"ArrayBuffer"===t.constructor.name&&"number"==typeof t.byteLength}function U(t){return"function"==typeof ArrayBuffer.isView&&ArrayBuffer.isView(t)}function q(t){return t!=t}},7694:(t,e,r)=>{r(1761),t.exports=r(5645).RegExp.escape},4963:t=>{t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},3365:(t,e,r)=>{var n=r(2032);t.exports=function(t,e){if("number"!=typeof t&&"Number"!=n(t))throw TypeError(e);return+t}},7722:(t,e,r)=>{var n=r(6314)("unscopables"),i=Array.prototype;null==i[n]&&r(7728)(i,n,{}),t.exports=function(t){i[n][t]=!0}},6793:(t,e,r)=>{"use strict";var n=r(4496)(!0);t.exports=function(t,e,r){return e+(r?n(t,e).length:1)}},3328:t=>{t.exports=function(t,e,r,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(r+": incorrect invocation!");return t}},7007:(t,e,r)=>{var n=r(5286);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},5216:(t,e,r)=>{"use strict";var n=r(508),i=r(2337),s=r(875);t.exports=[].copyWithin||function(t,e){var r=n(this),o=s(r.length),a=i(t,o),h=i(e,o),u=arguments.length>2?arguments[2]:void 0,c=Math.min((void 0===u?o:i(u,o))-h,o-a),l=1;for(h<a&&a<h+c&&(l=-1,h+=c-1,a+=c-1);c-- >0;)h in r?r[a]=r[h]:delete r[a],a+=l,h+=l;return r}},6852:(t,e,r)=>{"use strict";var n=r(508),i=r(2337),s=r(875);t.exports=function(t){for(var e=n(this),r=s(e.length),o=arguments.length,a=i(o>1?arguments[1]:void 0,r),h=o>2?arguments[2]:void 0,u=void 0===h?r:i(h,r);u>a;)e[a++]=t;return e}},9490:(t,e,r)=>{var n=r(3531);t.exports=function(t,e){var r=[];return n(t,!1,r.push,r,e),r}},9315:(t,e,r)=>{var n=r(2110),i=r(875),s=r(2337);t.exports=function(t){return function(e,r,o){var a,h=n(e),u=i(h.length),c=s(o,u);if(t&&r!=r){for(;u>c;)if((a=h[c++])!=a)return!0}else for(;u>c;c++)if((t||c in h)&&h[c]===r)return t||c||0;return!t&&-1}}},50:(t,e,r)=>{var n=r(741),i=r(9797),s=r(508),o=r(875),a=r(6886);t.exports=function(t,e){var r=1==t,h=2==t,u=3==t,c=4==t,l=6==t,f=5==t||l,p=e||a;return function(e,a,d){for(var y,v,g=s(e),m=i(g),w=n(a,d,3),M=o(m.length),b=0,_=r?p(e,M):h?p(e,0):void 0;M>b;b++)if((f||b in m)&&(v=w(y=m[b],b,g),t))if(r)_[b]=v;else if(v)switch(t){case 3:return!0;case 5:return y;case 6:return b;case 2:_.push(y)}else if(c)return!1;return l?-1:u||c?c:_}}},7628:(t,e,r)=>{var n=r(4963),i=r(508),s=r(9797),o=r(875);t.exports=function(t,e,r,a,h){n(e);var u=i(t),c=s(u),l=o(u.length),f=h?l-1:0,p=h?-1:1;if(r<2)for(;;){if(f in c){a=c[f],f+=p;break}if(f+=p,h?f<0:l<=f)throw TypeError("Reduce of empty array with no initial value")}for(;h?f>=0:l>f;f+=p)f in c&&(a=e(a,c[f],f,u));return a}},2736:(t,e,r)=>{var n=r(5286),i=r(4302),s=r(6314)("species");t.exports=function(t){var e;return i(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!i(e.prototype)||(e=void 0),n(e)&&null===(e=e[s])&&(e=void 0)),void 0===e?Array:e}},6886:(t,e,r)=>{var n=r(2736);t.exports=function(t,e){return new(n(t))(e)}},4398:(t,e,r)=>{"use strict";var n=r(4963),i=r(5286),s=r(7242),o=[].slice,a={},h=function(t,e,r){if(!(e in a)){for(var n=[],i=0;i<e;i++)n[i]="a["+i+"]";a[e]=Function("F,a","return new F("+n.join(",")+")")}return a[e](t,r)};t.exports=Function.bind||function(t){var e=n(this),r=o.call(arguments,1),a=function(){var n=r.concat(o.call(arguments));return this instanceof a?h(e,n.length,n):s(e,n,t)};return i(e.prototype)&&(a.prototype=e.prototype),a}},1488:(t,e,r)=>{var n=r(2032),i=r(6314)("toStringTag"),s="Arguments"==n(function(){return arguments}());t.exports=function(t){var e,r,o;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?r:s?n(e):"Object"==(o=n(e))&&"function"==typeof e.callee?"Arguments":o}},2032:t=>{var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},9824:(t,e,r)=>{"use strict";var n=r(9275).f,i=r(2503),s=r(4408),o=r(741),a=r(3328),h=r(3531),u=r(2923),c=r(5436),l=r(2974),f=r(7057),p=r(4728).fastKey,d=r(1616),y=f?"_s":"size",v=function(t,e){var r,n=p(e);if("F"!==n)return t._i[n];for(r=t._f;r;r=r.n)if(r.k==e)return r};t.exports={getConstructor:function(t,e,r,u){var c=t((function(t,n){a(t,c,e,"_i"),t._t=e,t._i=i(null),t._f=void 0,t._l=void 0,t[y]=0,null!=n&&h(n,r,t[u],t)}));return s(c.prototype,{clear:function(){for(var t=d(this,e),r=t._i,n=t._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete r[n.i];t._f=t._l=void 0,t[y]=0},delete:function(t){var r=d(this,e),n=v(r,t);if(n){var i=n.n,s=n.p;delete r._i[n.i],n.r=!0,s&&(s.n=i),i&&(i.p=s),r._f==n&&(r._f=i),r._l==n&&(r._l=s),r[y]--}return!!n},forEach:function(t){d(this,e);for(var r,n=o(t,arguments.length>1?arguments[1]:void 0,3);r=r?r.n:this._f;)for(n(r.v,r.k,this);r&&r.r;)r=r.p},has:function(t){return!!v(d(this,e),t)}}),f&&n(c.prototype,"size",{get:function(){return d(this,e)[y]}}),c},def:function(t,e,r){var n,i,s=v(t,e);return s?s.v=r:(t._l=s={i:i=p(e,!0),k:e,v:r,p:n=t._l,n:void 0,r:!1},t._f||(t._f=s),n&&(n.n=s),t[y]++,"F"!==i&&(t._i[i]=s)),t},getEntry:v,setStrong:function(t,e,r){u(t,e,(function(t,r){this._t=d(t,e),this._k=r,this._l=void 0}),(function(){for(var t=this,e=t._k,r=t._l;r&&r.r;)r=r.p;return t._t&&(t._l=r=r?r.n:t._t._f)?c(0,"keys"==e?r.k:"values"==e?r.v:[r.k,r.v]):(t._t=void 0,c(1))}),r?"entries":"values",!r,!0),l(e)}}},6132:(t,e,r)=>{var n=r(1488),i=r(9490);t.exports=function(t){return function(){if(n(this)!=t)throw TypeError(t+"#toJSON isn't generic");return i(this)}}},3657:(t,e,r)=>{"use strict";var n=r(4408),i=r(4728).getWeak,s=r(7007),o=r(5286),a=r(3328),h=r(3531),u=r(50),c=r(9181),l=r(1616),f=u(5),p=u(6),d=0,y=function(t){return t._l||(t._l=new v)},v=function(){this.a=[]},g=function(t,e){return f(t.a,(function(t){return t[0]===e}))};v.prototype={get:function(t){var e=g(this,t);if(e)return e[1]},has:function(t){return!!g(this,t)},set:function(t,e){var r=g(this,t);r?r[1]=e:this.a.push([t,e])},delete:function(t){var e=p(this.a,(function(e){return e[0]===t}));return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,r,s){var u=t((function(t,n){a(t,u,e,"_i"),t._t=e,t._i=d++,t._l=void 0,null!=n&&h(n,r,t[s],t)}));return n(u.prototype,{delete:function(t){if(!o(t))return!1;var r=i(t);return!0===r?y(l(this,e)).delete(t):r&&c(r,this._i)&&delete r[this._i]},has:function(t){if(!o(t))return!1;var r=i(t);return!0===r?y(l(this,e)).has(t):r&&c(r,this._i)}}),u},def:function(t,e,r){var n=i(s(e),!0);return!0===n?y(t).set(e,r):n[t._i]=r,t},ufstore:y}},5795:(t,e,r)=>{"use strict";var n=r(3816),i=r(2985),s=r(7234),o=r(4408),a=r(4728),h=r(3531),u=r(3328),c=r(5286),l=r(4253),f=r(7462),p=r(2943),d=r(266);t.exports=function(t,e,r,y,v,g){var m=n[t],w=m,M=v?"set":"add",b=w&&w.prototype,_={},x=function(t){var e=b[t];s(b,t,"delete"==t||"has"==t?function(t){return!(g&&!c(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return g&&!c(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,r){return e.call(this,0===t?0:t,r),this})};if("function"==typeof w&&(g||b.forEach&&!l((function(){(new w).entries().next()})))){var E=new w,S=E[M](g?{}:-0,1)!=E,A=l((function(){E.has(1)})),I=f((function(t){new w(t)})),P=!g&&l((function(){for(var t=new w,e=5;e--;)t[M](e,e);return!t.has(-0)}));I||((w=e((function(e,r){u(e,w,t);var n=d(new m,e,w);return null!=r&&h(r,v,n[M],n),n}))).prototype=b,b.constructor=w),(A||P)&&(x("delete"),x("has"),v&&x("get")),(P||S)&&x(M),g&&b.clear&&delete b.clear}else w=y.getConstructor(e,t,v,M),o(w.prototype,r),a.NEED=!0;return p(w,t),_[t]=w,i(i.G+i.W+i.F*(w!=m),_),g||y.setStrong(w,t,v),w}},5645:t=>{var e=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=e)},2811:(t,e,r)=>{"use strict";var n=r(9275),i=r(681);t.exports=function(t,e,r){e in t?n.f(t,e,i(0,r)):t[e]=r}},741:(t,e,r)=>{var n=r(4963);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)}}return function(){return t.apply(e,arguments)}}},3537:(t,e,r)=>{"use strict";var n=r(4253),i=Date.prototype.getTime,s=Date.prototype.toISOString,o=function(t){return t>9?t:"0"+t};t.exports=n((function(){return"0385-07-25T07:06:39.999Z"!=s.call(new Date(-50000000000001))}))||!n((function(){s.call(new Date(NaN))}))?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),r=t.getUTCMilliseconds(),n=e<0?"-":e>9999?"+":"";return n+("00000"+Math.abs(e)).slice(n?-6:-4)+"-"+o(t.getUTCMonth()+1)+"-"+o(t.getUTCDate())+"T"+o(t.getUTCHours())+":"+o(t.getUTCMinutes())+":"+o(t.getUTCSeconds())+"."+(r>99?r:"0"+o(r))+"Z"}:s},870:(t,e,r)=>{"use strict";var n=r(7007),i=r(1689),s="number";t.exports=function(t){if("string"!==t&&t!==s&&"default"!==t)throw TypeError("Incorrect hint");return i(n(this),t!=s)}},1355:t=>{t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},7057:(t,e,r)=>{t.exports=!r(4253)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},2457:(t,e,r)=>{var n=r(5286),i=r(3816).document,s=n(i)&&n(i.createElement);t.exports=function(t){return s?i.createElement(t):{}}},4430:t=>{t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},5541:(t,e,r)=>{var n=r(7184),i=r(4548),s=r(4682);t.exports=function(t){var e=n(t),r=i.f;if(r)for(var o,a=r(t),h=s.f,u=0;a.length>u;)h.call(t,o=a[u++])&&e.push(o);return e}},2985:(t,e,r)=>{var n=r(3816),i=r(5645),s=r(7728),o=r(7234),a=r(741),h=function(t,e,r){var u,c,l,f,p=t&h.F,d=t&h.G,y=t&h.S,v=t&h.P,g=t&h.B,m=d?n:y?n[e]||(n[e]={}):(n[e]||{}).prototype,w=d?i:i[e]||(i[e]={}),M=w.prototype||(w.prototype={});for(u in d&&(r=e),r)l=((c=!p&&m&&void 0!==m[u])?m:r)[u],f=g&&c?a(l,n):v&&"function"==typeof l?a(Function.call,l):l,m&&o(m,u,l,t&h.U),w[u]!=l&&s(w,u,f),v&&M[u]!=l&&(M[u]=l)};n.core=i,h.F=1,h.G=2,h.S=4,h.P=8,h.B=16,h.W=32,h.U=64,h.R=128,t.exports=h},8852:(t,e,r)=>{var n=r(6314)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[n]=!1,!"/./"[t](e)}catch(t){}}return!0}},4253:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},8082:(t,e,r)=>{"use strict";r(8269);var n=r(7234),i=r(7728),s=r(4253),o=r(1355),a=r(6314),h=r(1165),u=a("species"),c=!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),l=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2===r.length&&"a"===r[0]&&"b"===r[1]}();t.exports=function(t,e,r){var f=a(t),p=!s((function(){var e={};return e[f]=function(){return 7},7!=""[t](e)})),d=p?!s((function(){var e=!1,r=/a/;return r.exec=function(){return e=!0,null},"split"===t&&(r.constructor={},r.constructor[u]=function(){return r}),r[f](""),!e})):void 0;if(!p||!d||"replace"===t&&!c||"split"===t&&!l){var y=/./[f],v=r(o,f,""[t],(function(t,e,r,n,i){return e.exec===h?p&&!i?{done:!0,value:y.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}})),g=v[0],m=v[1];n(String.prototype,t,g),i(RegExp.prototype,f,2==e?function(t,e){return m.call(t,this,e)}:function(t){return m.call(t,this)})}}},3218:(t,e,r)=>{"use strict";var n=r(7007);t.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},3325:(t,e,r)=>{"use strict";var n=r(4302),i=r(5286),s=r(875),o=r(741),a=r(6314)("isConcatSpreadable");t.exports=function t(e,r,h,u,c,l,f,p){for(var d,y,v=c,g=0,m=!!f&&o(f,p,3);g<u;){if(g in h){if(d=m?m(h[g],g,r):h[g],y=!1,i(d)&&(y=void 0!==(y=d[a])?!!y:n(d)),y&&l>0)v=t(e,r,d,s(d.length),v,l-1)-1;else{if(v>=9007199254740991)throw TypeError();e[v]=d}v++}g++}return v}},3531:(t,e,r)=>{var n=r(741),i=r(8851),s=r(6555),o=r(7007),a=r(875),h=r(9002),u={},c={},l=t.exports=function(t,e,r,l,f){var p,d,y,v,g=f?function(){return t}:h(t),m=n(r,l,e?2:1),w=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(s(g)){for(p=a(t.length);p>w;w++)if((v=e?m(o(d=t[w])[0],d[1]):m(t[w]))===u||v===c)return v}else for(y=g.call(t);!(d=y.next()).done;)if((v=i(y,m,d.value,e))===u||v===c)return v};l.BREAK=u,l.RETURN=c},18:(t,e,r)=>{t.exports=r(3825)("native-function-to-string",Function.toString)},3816:t=>{var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},9181:t=>{var e={}.hasOwnProperty;t.exports=function(t,r){return e.call(t,r)}},7728:(t,e,r)=>{var n=r(9275),i=r(681);t.exports=r(7057)?function(t,e,r){return n.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},639:(t,e,r)=>{var n=r(3816).document;t.exports=n&&n.documentElement},1734:(t,e,r)=>{t.exports=!r(7057)&&!r(4253)((function(){return 7!=Object.defineProperty(r(2457)("div"),"a",{get:function(){return 7}}).a}))},266:(t,e,r)=>{var n=r(5286),i=r(7375).set;t.exports=function(t,e,r){var s,o=e.constructor;return o!==r&&"function"==typeof o&&(s=o.prototype)!==r.prototype&&n(s)&&i&&i(t,s),t}},7242:t=>{t.exports=function(t,e,r){var n=void 0===r;switch(e.length){case 0:return n?t():t.call(r);case 1:return n?t(e[0]):t.call(r,e[0]);case 2:return n?t(e[0],e[1]):t.call(r,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(r,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(r,e[0],e[1],e[2],e[3])}return t.apply(r,e)}},9797:(t,e,r)=>{var n=r(2032);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},6555:(t,e,r)=>{var n=r(2803),i=r(6314)("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||s[i]===t)}},4302:(t,e,r)=>{var n=r(2032);t.exports=Array.isArray||function(t){return"Array"==n(t)}},8367:(t,e,r)=>{var n=r(5286),i=Math.floor;t.exports=function(t){return!n(t)&&isFinite(t)&&i(t)===t}},5286:t=>{t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},5364:(t,e,r)=>{var n=r(5286),i=r(2032),s=r(6314)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[s])?!!e:"RegExp"==i(t))}},8851:(t,e,r)=>{var n=r(7007);t.exports=function(t,e,r,i){try{return i?e(n(r)[0],r[1]):e(r)}catch(e){var s=t.return;throw void 0!==s&&n(s.call(t)),e}}},9988:(t,e,r)=>{"use strict";var n=r(2503),i=r(681),s=r(2943),o={};r(7728)(o,r(6314)("iterator"),(function(){return this})),t.exports=function(t,e,r){t.prototype=n(o,{next:i(1,r)}),s(t,e+" Iterator")}},2923:(t,e,r)=>{"use strict";var n=r(4461),i=r(2985),s=r(7234),o=r(7728),a=r(2803),h=r(9988),u=r(2943),c=r(468),l=r(6314)("iterator"),f=!([].keys&&"next"in[].keys()),p="keys",d="values",y=function(){return this};t.exports=function(t,e,r,v,g,m,w){h(r,e,v);var M,b,_,x=function(t){if(!f&&t in I)return I[t];switch(t){case p:case d:return function(){return new r(this,t)}}return function(){return new r(this,t)}},E=e+" Iterator",S=g==d,A=!1,I=t.prototype,P=I[l]||I["@@iterator"]||g&&I[g],N=P||x(g),T=g?S?x("entries"):N:void 0,O="Array"==e&&I.entries||P;if(O&&(_=c(O.call(new t)))!==Object.prototype&&_.next&&(u(_,E,!0),n||"function"==typeof _[l]||o(_,l,y)),S&&P&&P.name!==d&&(A=!0,N=function(){return P.call(this)}),n&&!w||!f&&!A&&I[l]||o(I,l,N),a[e]=N,a[E]=y,g)if(M={values:S?N:x(d),keys:m?N:x(p),entries:T},w)for(b in M)b in I||s(I,b,M[b]);else i(i.P+i.F*(f||A),e,M);return M}},7462:(t,e,r)=>{var n=r(6314)("iterator"),i=!1;try{var s=[7][n]();s.return=function(){i=!0},Array.from(s,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var r=!1;try{var s=[7],o=s[n]();o.next=function(){return{done:r=!0}},s[n]=function(){return o},t(s)}catch(t){}return r}},5436:t=>{t.exports=function(t,e){return{value:e,done:!!t}}},2803:t=>{t.exports={}},4461:t=>{t.exports=!1},3086:t=>{var e=Math.expm1;t.exports=!e||e(10)>22025.465794806718||e(10)<22025.465794806718||-2e-17!=e(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:e},4934:(t,e,r)=>{var n=r(1801),i=Math.pow,s=i(2,-52),o=i(2,-23),a=i(2,127)*(2-o),h=i(2,-126);t.exports=Math.fround||function(t){var e,r,i=Math.abs(t),u=n(t);return i<h?u*(i/h/o+1/s-1/s)*h*o:(r=(e=(1+o/s)*i)-(e-i))>a||r!=r?u*(1/0):u*r}},6206:t=>{t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},8757:t=>{t.exports=Math.scale||function(t,e,r,n,i){return 0===arguments.length||t!=t||e!=e||r!=r||n!=n||i!=i?NaN:t===1/0||t===-1/0?t:(t-e)*(i-n)/(r-e)+n}},1801:t=>{t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},4728:(t,e,r)=>{var n=r(3953)("meta"),i=r(5286),s=r(9181),o=r(9275).f,a=0,h=Object.isExtensible||function(){return!0},u=!r(4253)((function(){return h(Object.preventExtensions({}))})),c=function(t){o(t,n,{value:{i:"O"+ ++a,w:{}}})},l=t.exports={KEY:n,NEED:!1,fastKey:function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!s(t,n)){if(!h(t))return"F";if(!e)return"E";c(t)}return t[n].i},getWeak:function(t,e){if(!s(t,n)){if(!h(t))return!0;if(!e)return!1;c(t)}return t[n].w},onFreeze:function(t){return u&&l.NEED&&h(t)&&!s(t,n)&&c(t),t}}},133:(t,e,r)=>{var n=r(8416),i=r(2985),s=r(3825)("metadata"),o=s.store||(s.store=new(r(147))),a=function(t,e,r){var i=o.get(t);if(!i){if(!r)return;o.set(t,i=new n)}var s=i.get(e);if(!s){if(!r)return;i.set(e,s=new n)}return s};t.exports={store:o,map:a,has:function(t,e,r){var n=a(e,r,!1);return void 0!==n&&n.has(t)},get:function(t,e,r){var n=a(e,r,!1);return void 0===n?void 0:n.get(t)},set:function(t,e,r,n){a(r,n,!0).set(t,e)},keys:function(t,e){var r=a(t,e,!1),n=[];return r&&r.forEach((function(t,e){n.push(e)})),n},key:function(t){return void 0===t||"symbol"==typeof t?t:String(t)},exp:function(t){i(i.S,"Reflect",t)}}},4351:(t,e,r)=>{var n=r(3816),i=r(4193).set,s=n.MutationObserver||n.WebKitMutationObserver,o=n.process,a=n.Promise,h="process"==r(2032)(o);t.exports=function(){var t,e,r,u=function(){var n,i;for(h&&(n=o.domain)&&n.exit();t;){i=t.fn,t=t.next;try{i()}catch(n){throw t?r():e=void 0,n}}e=void 0,n&&n.enter()};if(h)r=function(){o.nextTick(u)};else if(!s||n.navigator&&n.navigator.standalone)if(a&&a.resolve){var c=a.resolve(void 0);r=function(){c.then(u)}}else r=function(){i.call(n,u)};else{var l=!0,f=document.createTextNode("");new s(u).observe(f,{characterData:!0}),r=function(){f.data=l=!l}}return function(n){var i={fn:n,next:void 0};e&&(e.next=i),t||(t=i,r()),e=i}}},3499:(t,e,r)=>{"use strict";var n=r(4963);function i(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n})),this.resolve=n(e),this.reject=n(r)}t.exports.f=function(t){return new i(t)}},5345:(t,e,r)=>{"use strict";var n=r(7057),i=r(7184),s=r(4548),o=r(4682),a=r(508),h=r(9797),u=Object.assign;t.exports=!u||r(4253)((function(){var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!=u({},t)[r]||Object.keys(u({},e)).join("")!=n}))?function(t,e){for(var r=a(t),u=arguments.length,c=1,l=s.f,f=o.f;u>c;)for(var p,d=h(arguments[c++]),y=l?i(d).concat(l(d)):i(d),v=y.length,g=0;v>g;)p=y[g++],n&&!f.call(d,p)||(r[p]=d[p]);return r}:u},2503:(t,e,r)=>{var n=r(7007),i=r(5588),s=r(4430),o=r(9335)("IE_PROTO"),a=function(){},h=function(){var t,e=r(2457)("iframe"),n=s.length;for(e.style.display="none",r(639).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),h=t.F;n--;)delete h.prototype[s[n]];return h()};t.exports=Object.create||function(t,e){var r;return null!==t?(a.prototype=n(t),r=new a,a.prototype=null,r[o]=t):r=h(),void 0===e?r:i(r,e)}},9275:(t,e,r)=>{var n=r(7007),i=r(1734),s=r(1689),o=Object.defineProperty;e.f=r(7057)?Object.defineProperty:function(t,e,r){if(n(t),e=s(e,!0),n(r),i)try{return o(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},5588:(t,e,r)=>{var n=r(9275),i=r(7007),s=r(7184);t.exports=r(7057)?Object.defineProperties:function(t,e){i(t);for(var r,o=s(e),a=o.length,h=0;a>h;)n.f(t,r=o[h++],e[r]);return t}},1670:(t,e,r)=>{"use strict";t.exports=r(4461)||!r(4253)((function(){var t=Math.random();__defineSetter__.call(null,t,(function(){})),delete r(3816)[t]}))},8693:(t,e,r)=>{var n=r(4682),i=r(681),s=r(2110),o=r(1689),a=r(9181),h=r(1734),u=Object.getOwnPropertyDescriptor;e.f=r(7057)?u:function(t,e){if(t=s(t),e=o(e,!0),h)try{return u(t,e)}catch(t){}if(a(t,e))return i(!n.f.call(t,e),t[e])}},9327:(t,e,r)=>{var n=r(2110),i=r(616).f,s={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return o&&"[object Window]"==s.call(t)?function(t){try{return i(t)}catch(t){return o.slice()}}(t):i(n(t))}},616:(t,e,r)=>{var n=r(189),i=r(4430).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},4548:(t,e)=>{e.f=Object.getOwnPropertySymbols},468:(t,e,r)=>{var n=r(9181),i=r(508),s=r(9335)("IE_PROTO"),o=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),n(t,s)?t[s]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?o:null}},189:(t,e,r)=>{var n=r(9181),i=r(2110),s=r(9315)(!1),o=r(9335)("IE_PROTO");t.exports=function(t,e){var r,a=i(t),h=0,u=[];for(r in a)r!=o&&n(a,r)&&u.push(r);for(;e.length>h;)n(a,r=e[h++])&&(~s(u,r)||u.push(r));return u}},7184:(t,e,r)=>{var n=r(189),i=r(4430);t.exports=Object.keys||function(t){return n(t,i)}},4682:(t,e)=>{e.f={}.propertyIsEnumerable},3160:(t,e,r)=>{var n=r(2985),i=r(5645),s=r(4253);t.exports=function(t,e){var r=(i.Object||{})[t]||Object[t],o={};o[t]=e(r),n(n.S+n.F*s((function(){r(1)})),"Object",o)}},1131:(t,e,r)=>{var n=r(7057),i=r(7184),s=r(2110),o=r(4682).f;t.exports=function(t){return function(e){for(var r,a=s(e),h=i(a),u=h.length,c=0,l=[];u>c;)r=h[c++],n&&!o.call(a,r)||l.push(t?[r,a[r]]:a[r]);return l}}},7643:(t,e,r)=>{var n=r(616),i=r(4548),s=r(7007),o=r(3816).Reflect;t.exports=o&&o.ownKeys||function(t){var e=n.f(s(t)),r=i.f;return r?e.concat(r(t)):e}},7743:(t,e,r)=>{var n=r(3816).parseFloat,i=r(9599).trim;t.exports=1/n(r(4644)+"-0")!=-1/0?function(t){var e=i(String(t),3),r=n(e);return 0===r&&"-"==e.charAt(0)?-0:r}:n},5960:(t,e,r)=>{var n=r(3816).parseInt,i=r(9599).trim,s=r(4644),o=/^[-+]?0[xX]/;t.exports=8!==n(s+"08")||22!==n(s+"0x16")?function(t,e){var r=i(String(t),3);return n(r,e>>>0||(o.test(r)?16:10))}:n},188:t=>{t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},94:(t,e,r)=>{var n=r(7007),i=r(5286),s=r(3499);t.exports=function(t,e){if(n(t),i(e)&&e.constructor===t)return e;var r=s.f(t);return(0,r.resolve)(e),r.promise}},681:t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},4408:(t,e,r)=>{var n=r(7234);t.exports=function(t,e,r){for(var i in e)n(t,i,e[i],r);return t}},7234:(t,e,r)=>{var n=r(3816),i=r(7728),s=r(9181),o=r(3953)("src"),a=r(18),h="toString",u=(""+a).split(h);r(5645).inspectSource=function(t){return a.call(t)},(t.exports=function(t,e,r,a){var h="function"==typeof r;h&&(s(r,"name")||i(r,"name",e)),t[e]!==r&&(h&&(s(r,o)||i(r,o,t[e]?""+t[e]:u.join(String(e)))),t===n?t[e]=r:a?t[e]?t[e]=r:i(t,e,r):(delete t[e],i(t,e,r)))})(Function.prototype,h,(function(){return"function"==typeof this&&this[o]||a.call(this)}))},7787:(t,e,r)=>{"use strict";var n=r(1488),i=RegExp.prototype.exec;t.exports=function(t,e){var r=t.exec;if("function"==typeof r){var s=r.call(t,e);if("object"!=typeof s)throw new TypeError("RegExp exec method returned something other than an Object or null");return s}if("RegExp"!==n(t))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(t,e)}},1165:(t,e,r)=>{"use strict";var n,i,s=r(3218),o=RegExp.prototype.exec,a=String.prototype.replace,h=o,u=(n=/a/,i=/b*/g,o.call(n,"a"),o.call(i,"a"),0!==n.lastIndex||0!==i.lastIndex),c=void 0!==/()??/.exec("")[1];(u||c)&&(h=function(t){var e,r,n,i,h=this;return c&&(r=new RegExp("^"+h.source+"$(?!\\s)",s.call(h))),u&&(e=h.lastIndex),n=o.call(h,t),u&&n&&(h.lastIndex=h.global?n.index+n[0].length:e),c&&n&&n.length>1&&a.call(n[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(n[i]=void 0)})),n}),t.exports=h},5496:t=>{t.exports=function(t,e){var r=e===Object(e)?function(t){return e[t]}:e;return function(e){return String(e).replace(t,r)}}},7195:t=>{t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},1024:(t,e,r)=>{"use strict";var n=r(2985),i=r(4963),s=r(741),o=r(3531);t.exports=function(t){n(n.S,t,{from:function(t){var e,r,n,a,h=arguments[1];return i(this),(e=void 0!==h)&&i(h),null==t?new this:(r=[],e?(n=0,a=s(h,arguments[2],2),o(t,!1,(function(t){r.push(a(t,n++))}))):o(t,!1,r.push,r),new this(r))}})}},4881:(t,e,r)=>{"use strict";var n=r(2985);t.exports=function(t){n(n.S,t,{of:function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}})}},7375:(t,e,r)=>{var n=r(5286),i=r(7007),s=function(t,e){if(i(t),!n(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,n){try{(n=r(741)(Function.call,r(8693).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,r){return s(t,r),e?t.__proto__=r:n(t,r),t}}({},!1):void 0),check:s}},2974:(t,e,r)=>{"use strict";var n=r(3816),i=r(9275),s=r(7057),o=r(6314)("species");t.exports=function(t){var e=n[t];s&&e&&!e[o]&&i.f(e,o,{configurable:!0,get:function(){return this}})}},2943:(t,e,r)=>{var n=r(9275).f,i=r(9181),s=r(6314)("toStringTag");t.exports=function(t,e,r){t&&!i(t=r?t:t.prototype,s)&&n(t,s,{configurable:!0,value:e})}},9335:(t,e,r)=>{var n=r(3825)("keys"),i=r(3953);t.exports=function(t){return n[t]||(n[t]=i(t))}},3825:(t,e,r)=>{var n=r(5645),i=r(3816),s="__core-js_shared__",o=i[s]||(i[s]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:r(4461)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},8364:(t,e,r)=>{var n=r(7007),i=r(4963),s=r(6314)("species");t.exports=function(t,e){var r,o=n(t).constructor;return void 0===o||null==(r=n(o)[s])?e:i(r)}},7717:(t,e,r)=>{"use strict";var n=r(4253);t.exports=function(t,e){return!!t&&n((function(){e?t.call(null,(function(){}),1):t.call(null)}))}},4496:(t,e,r)=>{var n=r(1467),i=r(1355);t.exports=function(t){return function(e,r){var s,o,a=String(i(e)),h=n(r),u=a.length;return h<0||h>=u?t?"":void 0:(s=a.charCodeAt(h))<55296||s>56319||h+1===u||(o=a.charCodeAt(h+1))<56320||o>57343?t?a.charAt(h):s:t?a.slice(h,h+2):o-56320+(s-55296<<10)+65536}}},2094:(t,e,r)=>{var n=r(5364),i=r(1355);t.exports=function(t,e,r){if(n(e))throw TypeError("String#"+r+" doesn't accept regex!");return String(i(t))}},9395:(t,e,r)=>{var n=r(2985),i=r(4253),s=r(1355),o=/"/g,a=function(t,e,r,n){var i=String(s(t)),a="<"+e;return""!==r&&(a+=" "+r+'="'+String(n).replace(o,"&quot;")+'"'),a+">"+i+"</"+e+">"};t.exports=function(t,e){var r={};r[t]=e(a),n(n.P+n.F*i((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})),"String",r)}},5442:(t,e,r)=>{var n=r(875),i=r(8595),s=r(1355);t.exports=function(t,e,r,o){var a=String(s(t)),h=a.length,u=void 0===r?" ":String(r),c=n(e);if(c<=h||""==u)return a;var l=c-h,f=i.call(u,Math.ceil(l/u.length));return f.length>l&&(f=f.slice(0,l)),o?f+a:a+f}},8595:(t,e,r)=>{"use strict";var n=r(1467),i=r(1355);t.exports=function(t){var e=String(i(this)),r="",s=n(t);if(s<0||s==1/0)throw RangeError("Count can't be negative");for(;s>0;(s>>>=1)&&(e+=e))1&s&&(r+=e);return r}},9599:(t,e,r)=>{var n=r(2985),i=r(1355),s=r(4253),o=r(4644),a="["+o+"]",h=RegExp("^"+a+a+"*"),u=RegExp(a+a+"*$"),c=function(t,e,r){var i={},a=s((function(){return!!o[t]()||"…"!="…"[t]()})),h=i[t]=a?e(l):o[t];r&&(i[r]=h),n(n.P+n.F*a,"String",i)},l=c.trim=function(t,e){return t=String(i(t)),1&e&&(t=t.replace(h,"")),2&e&&(t=t.replace(u,"")),t};t.exports=c},4644:t=>{t.exports="\t\n\v\f\r    \u2028\u2029\ufeff"},4193:(t,e,r)=>{var n,i,s,o=r(741),a=r(7242),h=r(639),u=r(2457),c=r(3816),l=c.process,f=c.setImmediate,p=c.clearImmediate,d=c.MessageChannel,y=c.Dispatch,v=0,g={},m=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},w=function(t){m.call(t.data)};f&&p||(f=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return g[++v]=function(){a("function"==typeof t?t:Function(t),e)},n(v),v},p=function(t){delete g[t]},"process"==r(2032)(l)?n=function(t){l.nextTick(o(m,t,1))}:y&&y.now?n=function(t){y.now(o(m,t,1))}:d?(s=(i=new d).port2,i.port1.onmessage=w,n=o(s.postMessage,s,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(n=function(t){c.postMessage(t+"","*")},c.addEventListener("message",w,!1)):n="onreadystatechange"in u("script")?function(t){h.appendChild(u("script")).onreadystatechange=function(){h.removeChild(this),m.call(t)}}:function(t){setTimeout(o(m,t,1),0)}),t.exports={set:f,clear:p}},2337:(t,e,r)=>{var n=r(1467),i=Math.max,s=Math.min;t.exports=function(t,e){return(t=n(t))<0?i(t+e,0):s(t,e)}},4843:(t,e,r)=>{var n=r(1467),i=r(875);t.exports=function(t){if(void 0===t)return 0;var e=n(t),r=i(e);if(e!==r)throw RangeError("Wrong length!");return r}},1467:t=>{var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},2110:(t,e,r)=>{var n=r(9797),i=r(1355);t.exports=function(t){return n(i(t))}},875:(t,e,r)=>{var n=r(1467),i=Math.min;t.exports=function(t){return t>0?i(n(t),9007199254740991):0}},508:(t,e,r)=>{var n=r(1355);t.exports=function(t){return Object(n(t))}},1689:(t,e,r)=>{var n=r(5286);t.exports=function(t,e){if(!n(t))return t;var r,i;if(e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!n(i=r.call(t)))return i;if(!e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},8440:(t,e,r)=>{"use strict";if(r(7057)){var n=r(4461),i=r(3816),s=r(4253),o=r(2985),a=r(9383),h=r(1125),u=r(741),c=r(3328),l=r(681),f=r(7728),p=r(4408),d=r(1467),y=r(875),v=r(4843),g=r(2337),m=r(1689),w=r(9181),M=r(1488),b=r(5286),_=r(508),x=r(6555),E=r(2503),S=r(468),A=r(616).f,I=r(9002),P=r(3953),N=r(6314),T=r(50),O=r(9315),C=r(8364),k=r(6997),L=r(2803),D=r(7462),R=r(2974),j=r(6852),F=r(5216),G=r(9275),B=r(8693),U=G.f,q=B.f,z=i.RangeError,V=i.TypeError,W=i.Uint8Array,X="ArrayBuffer",$="SharedArrayBuffer",Y="BYTES_PER_ELEMENT",Q=Array.prototype,K=h.ArrayBuffer,H=h.DataView,J=T(0),Z=T(2),tt=T(3),et=T(4),rt=T(5),nt=T(6),it=O(!0),st=O(!1),ot=k.values,at=k.keys,ht=k.entries,ut=Q.lastIndexOf,ct=Q.reduce,lt=Q.reduceRight,ft=Q.join,pt=Q.sort,dt=Q.slice,yt=Q.toString,vt=Q.toLocaleString,gt=N("iterator"),mt=N("toStringTag"),wt=P("typed_constructor"),Mt=P("def_constructor"),bt=a.CONSTR,_t=a.TYPED,xt=a.VIEW,Et="Wrong length!",St=T(1,(function(t,e){return Tt(C(t,t[Mt]),e)})),At=s((function(){return 1===new W(new Uint16Array([1]).buffer)[0]})),It=!!W&&!!W.prototype.set&&s((function(){new W(1).set({})})),Pt=function(t,e){var r=d(t);if(r<0||r%e)throw z("Wrong offset!");return r},Nt=function(t){if(b(t)&&_t in t)return t;throw V(t+" is not a typed array!")},Tt=function(t,e){if(!b(t)||!(wt in t))throw V("It is not a typed array constructor!");return new t(e)},Ot=function(t,e){return Ct(C(t,t[Mt]),e)},Ct=function(t,e){for(var r=0,n=e.length,i=Tt(t,n);n>r;)i[r]=e[r++];return i},kt=function(t,e,r){U(t,e,{get:function(){return this._d[r]}})},Lt=function(t){var e,r,n,i,s,o,a=_(t),h=arguments.length,c=h>1?arguments[1]:void 0,l=void 0!==c,f=I(a);if(null!=f&&!x(f)){for(o=f.call(a),n=[],e=0;!(s=o.next()).done;e++)n.push(s.value);a=n}for(l&&h>2&&(c=u(c,arguments[2],2)),e=0,r=y(a.length),i=Tt(this,r);r>e;e++)i[e]=l?c(a[e],e):a[e];return i},Dt=function(){for(var t=0,e=arguments.length,r=Tt(this,e);e>t;)r[t]=arguments[t++];return r},Rt=!!W&&s((function(){vt.call(new W(1))})),jt=function(){return vt.apply(Rt?dt.call(Nt(this)):Nt(this),arguments)},Ft={copyWithin:function(t,e){return F.call(Nt(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return et(Nt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return j.apply(Nt(this),arguments)},filter:function(t){return Ot(this,Z(Nt(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return rt(Nt(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return nt(Nt(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){J(Nt(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return st(Nt(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return it(Nt(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ft.apply(Nt(this),arguments)},lastIndexOf:function(t){return ut.apply(Nt(this),arguments)},map:function(t){return St(Nt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return ct.apply(Nt(this),arguments)},reduceRight:function(t){return lt.apply(Nt(this),arguments)},reverse:function(){for(var t,e=this,r=Nt(e).length,n=Math.floor(r/2),i=0;i<n;)t=e[i],e[i++]=e[--r],e[r]=t;return e},some:function(t){return tt(Nt(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return pt.call(Nt(this),t)},subarray:function(t,e){var r=Nt(this),n=r.length,i=g(t,n);return new(C(r,r[Mt]))(r.buffer,r.byteOffset+i*r.BYTES_PER_ELEMENT,y((void 0===e?n:g(e,n))-i))}},Gt=function(t,e){return Ot(this,dt.call(Nt(this),t,e))},Bt=function(t){Nt(this);var e=Pt(arguments[1],1),r=this.length,n=_(t),i=y(n.length),s=0;if(i+e>r)throw z(Et);for(;s<i;)this[e+s]=n[s++]},Ut={entries:function(){return ht.call(Nt(this))},keys:function(){return at.call(Nt(this))},values:function(){return ot.call(Nt(this))}},qt=function(t,e){return b(t)&&t[_t]&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},zt=function(t,e){return qt(t,e=m(e,!0))?l(2,t[e]):q(t,e)},Vt=function(t,e,r){return!(qt(t,e=m(e,!0))&&b(r)&&w(r,"value"))||w(r,"get")||w(r,"set")||r.configurable||w(r,"writable")&&!r.writable||w(r,"enumerable")&&!r.enumerable?U(t,e,r):(t[e]=r.value,t)};bt||(B.f=zt,G.f=Vt),o(o.S+o.F*!bt,"Object",{getOwnPropertyDescriptor:zt,defineProperty:Vt}),s((function(){yt.call({})}))&&(yt=vt=function(){return ft.call(this)});var Wt=p({},Ft);p(Wt,Ut),f(Wt,gt,Ut.values),p(Wt,{slice:Gt,set:Bt,constructor:function(){},toString:yt,toLocaleString:jt}),kt(Wt,"buffer","b"),kt(Wt,"byteOffset","o"),kt(Wt,"byteLength","l"),kt(Wt,"length","e"),U(Wt,mt,{get:function(){return this[_t]}}),t.exports=function(t,e,r,h){var u=t+((h=!!h)?"Clamped":"")+"Array",l="get"+t,p="set"+t,d=i[u],g=d||{},m=d&&S(d),w=!d||!a.ABV,_={},x=d&&d.prototype,I=function(t,r){U(t,r,{get:function(){return function(t,r){var n=t._d;return n.v[l](r*e+n.o,At)}(this,r)},set:function(t){return function(t,r,n){var i=t._d;h&&(n=(n=Math.round(n))<0?0:n>255?255:255&n),i.v[p](r*e+i.o,n,At)}(this,r,t)},enumerable:!0})};w?(d=r((function(t,r,n,i){c(t,d,u,"_d");var s,o,a,h,l=0,p=0;if(b(r)){if(!(r instanceof K||(h=M(r))==X||h==$))return _t in r?Ct(d,r):Lt.call(d,r);s=r,p=Pt(n,e);var g=r.byteLength;if(void 0===i){if(g%e)throw z(Et);if((o=g-p)<0)throw z(Et)}else if((o=y(i)*e)+p>g)throw z(Et);a=o/e}else a=v(r),s=new K(o=a*e);for(f(t,"_d",{b:s,o:p,l:o,e:a,v:new H(s)});l<a;)I(t,l++)})),x=d.prototype=E(Wt),f(x,"constructor",d)):s((function(){d(1)}))&&s((function(){new d(-1)}))&&D((function(t){new d,new d(null),new d(1.5),new d(t)}),!0)||(d=r((function(t,r,n,i){var s;return c(t,d,u),b(r)?r instanceof K||(s=M(r))==X||s==$?void 0!==i?new g(r,Pt(n,e),i):void 0!==n?new g(r,Pt(n,e)):new g(r):_t in r?Ct(d,r):Lt.call(d,r):new g(v(r))})),J(m!==Function.prototype?A(g).concat(A(m)):A(g),(function(t){t in d||f(d,t,g[t])})),d.prototype=x,n||(x.constructor=d));var P=x[gt],N=!!P&&("values"==P.name||null==P.name),T=Ut.values;f(d,wt,!0),f(x,_t,u),f(x,xt,!0),f(x,Mt,d),(h?new d(1)[mt]==u:mt in x)||U(x,mt,{get:function(){return u}}),_[u]=d,o(o.G+o.W+o.F*(d!=g),_),o(o.S,u,{BYTES_PER_ELEMENT:e}),o(o.S+o.F*s((function(){g.of.call(d,1)})),u,{from:Lt,of:Dt}),Y in x||f(x,Y,e),o(o.P,u,Ft),R(u),o(o.P+o.F*It,u,{set:Bt}),o(o.P+o.F*!N,u,Ut),n||x.toString==yt||(x.toString=yt),o(o.P+o.F*s((function(){new d(1).slice()})),u,{slice:Gt}),o(o.P+o.F*(s((function(){return[1,2].toLocaleString()!=new d([1,2]).toLocaleString()}))||!s((function(){x.toLocaleString.call([1,2])}))),u,{toLocaleString:jt}),L[u]=N?P:T,n||N||f(x,gt,T)}}else t.exports=function(){}},1125:(t,e,r)=>{"use strict";var n=r(3816),i=r(7057),s=r(4461),o=r(9383),a=r(7728),h=r(4408),u=r(4253),c=r(3328),l=r(1467),f=r(875),p=r(4843),d=r(616).f,y=r(9275).f,v=r(6852),g=r(2943),m="ArrayBuffer",w="DataView",M="Wrong index!",b=n.ArrayBuffer,_=n.DataView,x=n.Math,E=n.RangeError,S=n.Infinity,A=b,I=x.abs,P=x.pow,N=x.floor,T=x.log,O=x.LN2,C="buffer",k="byteLength",L="byteOffset",D=i?"_b":C,R=i?"_l":k,j=i?"_o":L;function F(t,e,r){var n,i,s,o=new Array(r),a=8*r-e-1,h=(1<<a)-1,u=h>>1,c=23===e?P(2,-24)-P(2,-77):0,l=0,f=t<0||0===t&&1/t<0?1:0;for((t=I(t))!=t||t===S?(i=t!=t?1:0,n=h):(n=N(T(t)/O),t*(s=P(2,-n))<1&&(n--,s*=2),(t+=n+u>=1?c/s:c*P(2,1-u))*s>=2&&(n++,s/=2),n+u>=h?(i=0,n=h):n+u>=1?(i=(t*s-1)*P(2,e),n+=u):(i=t*P(2,u-1)*P(2,e),n=0));e>=8;o[l++]=255&i,i/=256,e-=8);for(n=n<<e|i,a+=e;a>0;o[l++]=255&n,n/=256,a-=8);return o[--l]|=128*f,o}function G(t,e,r){var n,i=8*r-e-1,s=(1<<i)-1,o=s>>1,a=i-7,h=r-1,u=t[h--],c=127&u;for(u>>=7;a>0;c=256*c+t[h],h--,a-=8);for(n=c&(1<<-a)-1,c>>=-a,a+=e;a>0;n=256*n+t[h],h--,a-=8);if(0===c)c=1-o;else{if(c===s)return n?NaN:u?-S:S;n+=P(2,e),c-=o}return(u?-1:1)*n*P(2,c-e)}function B(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function U(t){return[255&t]}function q(t){return[255&t,t>>8&255]}function z(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function V(t){return F(t,52,8)}function W(t){return F(t,23,4)}function X(t,e,r){y(t.prototype,e,{get:function(){return this[r]}})}function $(t,e,r,n){var i=p(+r);if(i+e>t[R])throw E(M);var s=t[D]._b,o=i+t[j],a=s.slice(o,o+e);return n?a:a.reverse()}function Y(t,e,r,n,i,s){var o=p(+r);if(o+e>t[R])throw E(M);for(var a=t[D]._b,h=o+t[j],u=n(+i),c=0;c<e;c++)a[h+c]=u[s?c:e-c-1]}if(o.ABV){if(!u((function(){b(1)}))||!u((function(){new b(-1)}))||u((function(){return new b,new b(1.5),new b(NaN),b.name!=m}))){for(var Q,K=(b=function(t){return c(this,b),new A(p(t))}).prototype=A.prototype,H=d(A),J=0;H.length>J;)(Q=H[J++])in b||a(b,Q,A[Q]);s||(K.constructor=b)}var Z=new _(new b(2)),tt=_.prototype.setInt8;Z.setInt8(0,2147483648),Z.setInt8(1,2147483649),!Z.getInt8(0)&&Z.getInt8(1)||h(_.prototype,{setInt8:function(t,e){tt.call(this,t,e<<24>>24)},setUint8:function(t,e){tt.call(this,t,e<<24>>24)}},!0)}else b=function(t){c(this,b,m);var e=p(t);this._b=v.call(new Array(e),0),this[R]=e},_=function(t,e,r){c(this,_,w),c(t,b,w);var n=t[R],i=l(e);if(i<0||i>n)throw E("Wrong offset!");if(i+(r=void 0===r?n-i:f(r))>n)throw E("Wrong length!");this[D]=t,this[j]=i,this[R]=r},i&&(X(b,k,"_l"),X(_,C,"_b"),X(_,k,"_l"),X(_,L,"_o")),h(_.prototype,{getInt8:function(t){return $(this,1,t)[0]<<24>>24},getUint8:function(t){return $(this,1,t)[0]},getInt16:function(t){var e=$(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=$(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return B($(this,4,t,arguments[1]))},getUint32:function(t){return B($(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return G($(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return G($(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){Y(this,1,t,U,e)},setUint8:function(t,e){Y(this,1,t,U,e)},setInt16:function(t,e){Y(this,2,t,q,e,arguments[2])},setUint16:function(t,e){Y(this,2,t,q,e,arguments[2])},setInt32:function(t,e){Y(this,4,t,z,e,arguments[2])},setUint32:function(t,e){Y(this,4,t,z,e,arguments[2])},setFloat32:function(t,e){Y(this,4,t,W,e,arguments[2])},setFloat64:function(t,e){Y(this,8,t,V,e,arguments[2])}});g(b,m),g(_,w),a(_.prototype,o.VIEW,!0),e.ArrayBuffer=b,e.DataView=_},9383:(t,e,r)=>{for(var n,i=r(3816),s=r(7728),o=r(3953),a=o("typed_array"),h=o("view"),u=!(!i.ArrayBuffer||!i.DataView),c=u,l=0,f="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");l<9;)(n=i[f[l++]])?(s(n.prototype,a,!0),s(n.prototype,h,!0)):c=!1;t.exports={ABV:u,CONSTR:c,TYPED:a,VIEW:h}},3953:t=>{var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},575:(t,e,r)=>{var n=r(3816).navigator;t.exports=n&&n.userAgent||""},1616:(t,e,r)=>{var n=r(5286);t.exports=function(t,e){if(!n(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},6074:(t,e,r)=>{var n=r(3816),i=r(5645),s=r(4461),o=r(8787),a=r(9275).f;t.exports=function(t){var e=i.Symbol||(i.Symbol=s?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:o.f(t)})}},8787:(t,e,r)=>{e.f=r(6314)},6314:(t,e,r)=>{var n=r(3825)("wks"),i=r(3953),s=r(3816).Symbol,o="function"==typeof s;(t.exports=function(t){return n[t]||(n[t]=o&&s[t]||(o?s:i)("Symbol."+t))}).store=n},9002:(t,e,r)=>{var n=r(1488),i=r(6314)("iterator"),s=r(2803);t.exports=r(5645).getIteratorMethod=function(t){if(null!=t)return t[i]||t["@@iterator"]||s[n(t)]}},1761:(t,e,r)=>{var n=r(2985),i=r(5496)(/[\\^$*+?.()|[\]{}]/g,"\\$&");n(n.S,"RegExp",{escape:function(t){return i(t)}})},2e3:(t,e,r)=>{var n=r(2985);n(n.P,"Array",{copyWithin:r(5216)}),r(7722)("copyWithin")},5745:(t,e,r)=>{"use strict";var n=r(2985),i=r(50)(4);n(n.P+n.F*!r(7717)([].every,!0),"Array",{every:function(t){return i(this,t,arguments[1])}})},8977:(t,e,r)=>{var n=r(2985);n(n.P,"Array",{fill:r(6852)}),r(7722)("fill")},8837:(t,e,r)=>{"use strict";var n=r(2985),i=r(50)(2);n(n.P+n.F*!r(7717)([].filter,!0),"Array",{filter:function(t){return i(this,t,arguments[1])}})},4899:(t,e,r)=>{"use strict";var n=r(2985),i=r(50)(6),s="findIndex",o=!0;s in[]&&Array(1)[s]((function(){o=!1})),n(n.P+n.F*o,"Array",{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r(7722)(s)},2310:(t,e,r)=>{"use strict";var n=r(2985),i=r(50)(5),s="find",o=!0;s in[]&&Array(1).find((function(){o=!1})),n(n.P+n.F*o,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r(7722)(s)},4336:(t,e,r)=>{"use strict";var n=r(2985),i=r(50)(0),s=r(7717)([].forEach,!0);n(n.P+n.F*!s,"Array",{forEach:function(t){return i(this,t,arguments[1])}})},522:(t,e,r)=>{"use strict";var n=r(741),i=r(2985),s=r(508),o=r(8851),a=r(6555),h=r(875),u=r(2811),c=r(9002);i(i.S+i.F*!r(7462)((function(t){Array.from(t)})),"Array",{from:function(t){var e,r,i,l,f=s(t),p="function"==typeof this?this:Array,d=arguments.length,y=d>1?arguments[1]:void 0,v=void 0!==y,g=0,m=c(f);if(v&&(y=n(y,d>2?arguments[2]:void 0,2)),null==m||p==Array&&a(m))for(r=new p(e=h(f.length));e>g;g++)u(r,g,v?y(f[g],g):f[g]);else for(l=m.call(f),r=new p;!(i=l.next()).done;g++)u(r,g,v?o(l,y,[i.value,g],!0):i.value);return r.length=g,r}})},3369:(t,e,r)=>{"use strict";var n=r(2985),i=r(9315)(!1),s=[].indexOf,o=!!s&&1/[1].indexOf(1,-0)<0;n(n.P+n.F*(o||!r(7717)(s)),"Array",{indexOf:function(t){return o?s.apply(this,arguments)||0:i(this,t,arguments[1])}})},774:(t,e,r)=>{var n=r(2985);n(n.S,"Array",{isArray:r(4302)})},6997:(t,e,r)=>{"use strict";var n=r(7722),i=r(5436),s=r(2803),o=r(2110);t.exports=r(2923)(Array,"Array",(function(t,e){this._t=o(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?r:"values"==e?t[r]:[r,t[r]])}),"values"),s.Arguments=s.Array,n("keys"),n("values"),n("entries")},7842:(t,e,r)=>{"use strict";var n=r(2985),i=r(2110),s=[].join;n(n.P+n.F*(r(9797)!=Object||!r(7717)(s)),"Array",{join:function(t){return s.call(i(this),void 0===t?",":t)}})},9564:(t,e,r)=>{"use strict";var n=r(2985),i=r(2110),s=r(1467),o=r(875),a=[].lastIndexOf,h=!!a&&1/[1].lastIndexOf(1,-0)<0;n(n.P+n.F*(h||!r(7717)(a)),"Array",{lastIndexOf:function(t){if(h)return a.apply(this,arguments)||0;var e=i(this),r=o(e.length),n=r-1;for(arguments.length>1&&(n=Math.min(n,s(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in e&&e[n]===t)return n||0;return-1}})},1802:(t,e,r)=>{"use strict";var n=r(2985),i=r(50)(1);n(n.P+n.F*!r(7717)([].map,!0),"Array",{map:function(t){return i(this,t,arguments[1])}})},8295:(t,e,r)=>{"use strict";var n=r(2985),i=r(2811);n(n.S+n.F*r(4253)((function(){function t(){}return!(Array.of.call(t)instanceof t)})),"Array",{of:function(){for(var t=0,e=arguments.length,r=new("function"==typeof this?this:Array)(e);e>t;)i(r,t,arguments[t++]);return r.length=e,r}})},3750:(t,e,r)=>{"use strict";var n=r(2985),i=r(7628);n(n.P+n.F*!r(7717)([].reduceRight,!0),"Array",{reduceRight:function(t){return i(this,t,arguments.length,arguments[1],!0)}})},3057:(t,e,r)=>{"use strict";var n=r(2985),i=r(7628);n(n.P+n.F*!r(7717)([].reduce,!0),"Array",{reduce:function(t){return i(this,t,arguments.length,arguments[1],!1)}})},110:(t,e,r)=>{"use strict";var n=r(2985),i=r(639),s=r(2032),o=r(2337),a=r(875),h=[].slice;n(n.P+n.F*r(4253)((function(){i&&h.call(i)})),"Array",{slice:function(t,e){var r=a(this.length),n=s(this);if(e=void 0===e?r:e,"Array"==n)return h.call(this,t,e);for(var i=o(t,r),u=o(e,r),c=a(u-i),l=new Array(c),f=0;f<c;f++)l[f]="String"==n?this.charAt(i+f):this[i+f];return l}})},6773:(t,e,r)=>{"use strict";var n=r(2985),i=r(50)(3);n(n.P+n.F*!r(7717)([].some,!0),"Array",{some:function(t){return i(this,t,arguments[1])}})},75:(t,e,r)=>{"use strict";var n=r(2985),i=r(4963),s=r(508),o=r(4253),a=[].sort,h=[1,2,3];n(n.P+n.F*(o((function(){h.sort(void 0)}))||!o((function(){h.sort(null)}))||!r(7717)(a)),"Array",{sort:function(t){return void 0===t?a.call(s(this)):a.call(s(this),i(t))}})},1842:(t,e,r)=>{r(2974)("Array")},1822:(t,e,r)=>{var n=r(2985);n(n.S,"Date",{now:function(){return(new Date).getTime()}})},1031:(t,e,r)=>{var n=r(2985),i=r(3537);n(n.P+n.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},9977:(t,e,r)=>{"use strict";var n=r(2985),i=r(508),s=r(1689);n(n.P+n.F*r(4253)((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(t){var e=i(this),r=s(e);return"number"!=typeof r||isFinite(r)?e.toISOString():null}})},1560:(t,e,r)=>{var n=r(6314)("toPrimitive"),i=Date.prototype;n in i||r(7728)(i,n,r(870))},6331:(t,e,r)=>{var n=Date.prototype,i="Invalid Date",s=n.toString,o=n.getTime;new Date(NaN)+""!=i&&r(7234)(n,"toString",(function(){var t=o.call(this);return t==t?s.call(this):i}))},9730:(t,e,r)=>{var n=r(2985);n(n.P,"Function",{bind:r(4398)})},8377:(t,e,r)=>{"use strict";var n=r(5286),i=r(468),s=r(6314)("hasInstance"),o=Function.prototype;s in o||r(9275).f(o,s,{value:function(t){if("function"!=typeof this||!n(t))return!1;if(!n(this.prototype))return t instanceof this;for(;t=i(t);)if(this.prototype===t)return!0;return!1}})},6059:(t,e,r)=>{var n=r(9275).f,i=Function.prototype,s=/^\s*function ([^ (]*)/,o="name";o in i||r(7057)&&n(i,o,{configurable:!0,get:function(){try{return(""+this).match(s)[1]}catch(t){return""}}})},8416:(t,e,r)=>{"use strict";var n=r(9824),i=r(1616),s="Map";t.exports=r(5795)(s,(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(t){var e=n.getEntry(i(this,s),t);return e&&e.v},set:function(t,e){return n.def(i(this,s),0===t?0:t,e)}},n,!0)},6503:(t,e,r)=>{var n=r(2985),i=r(6206),s=Math.sqrt,o=Math.acosh;n(n.S+n.F*!(o&&710==Math.floor(o(Number.MAX_VALUE))&&o(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:i(t-1+s(t-1)*s(t+1))}})},6786:(t,e,r)=>{var n=r(2985),i=Math.asinh;n(n.S+n.F*!(i&&1/i(0)>0),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}})},932:(t,e,r)=>{var n=r(2985),i=Math.atanh;n(n.S+n.F*!(i&&1/i(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},7526:(t,e,r)=>{var n=r(2985),i=r(1801);n(n.S,"Math",{cbrt:function(t){return i(t=+t)*Math.pow(Math.abs(t),1/3)}})},1591:(t,e,r)=>{var n=r(2985);n(n.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},9073:(t,e,r)=>{var n=r(2985),i=Math.exp;n(n.S,"Math",{cosh:function(t){return(i(t=+t)+i(-t))/2}})},347:(t,e,r)=>{var n=r(2985),i=r(3086);n(n.S+n.F*(i!=Math.expm1),"Math",{expm1:i})},579:(t,e,r)=>{var n=r(2985);n(n.S,"Math",{fround:r(4934)})},4669:(t,e,r)=>{var n=r(2985),i=Math.abs;n(n.S,"Math",{hypot:function(t,e){for(var r,n,s=0,o=0,a=arguments.length,h=0;o<a;)h<(r=i(arguments[o++]))?(s=s*(n=h/r)*n+1,h=r):s+=r>0?(n=r/h)*n:r;return h===1/0?1/0:h*Math.sqrt(s)}})},7710:(t,e,r)=>{var n=r(2985),i=Math.imul;n(n.S+n.F*r(4253)((function(){return-5!=i(4294967295,5)||2!=i.length})),"Math",{imul:function(t,e){var r=65535,n=+t,i=+e,s=r&n,o=r&i;return 0|s*o+((r&n>>>16)*o+s*(r&i>>>16)<<16>>>0)}})},5789:(t,e,r)=>{var n=r(2985);n(n.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},3514:(t,e,r)=>{var n=r(2985);n(n.S,"Math",{log1p:r(6206)})},9978:(t,e,r)=>{var n=r(2985);n(n.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},8472:(t,e,r)=>{var n=r(2985);n(n.S,"Math",{sign:r(1801)})},6946:(t,e,r)=>{var n=r(2985),i=r(3086),s=Math.exp;n(n.S+n.F*r(4253)((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(i(t)-i(-t))/2:(s(t-1)-s(-t-1))*(Math.E/2)}})},5068:(t,e,r)=>{var n=r(2985),i=r(3086),s=Math.exp;n(n.S,"Math",{tanh:function(t){var e=i(t=+t),r=i(-t);return e==1/0?1:r==1/0?-1:(e-r)/(s(t)+s(-t))}})},413:(t,e,r)=>{var n=r(2985);n(n.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},1246:(t,e,r)=>{"use strict";var n=r(3816),i=r(9181),s=r(2032),o=r(266),a=r(1689),h=r(4253),u=r(616).f,c=r(8693).f,l=r(9275).f,f=r(9599).trim,p="Number",d=n.Number,y=d,v=d.prototype,g=s(r(2503)(v))==p,m="trim"in String.prototype,w=function(t){var e=a(t,!1);if("string"==typeof e&&e.length>2){var r,n,i,s=(e=m?e.trim():f(e,3)).charCodeAt(0);if(43===s||45===s){if(88===(r=e.charCodeAt(2))||120===r)return NaN}else if(48===s){switch(e.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+e}for(var o,h=e.slice(2),u=0,c=h.length;u<c;u++)if((o=h.charCodeAt(u))<48||o>i)return NaN;return parseInt(h,n)}}return+e};if(!d(" 0o1")||!d("0b1")||d("+0x1")){d=function(t){var e=arguments.length<1?0:t,r=this;return r instanceof d&&(g?h((function(){v.valueOf.call(r)})):s(r)!=p)?o(new y(w(e)),r,d):w(e)};for(var M,b=r(7057)?u(y):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),_=0;b.length>_;_++)i(y,M=b[_])&&!i(d,M)&&l(d,M,c(y,M));d.prototype=v,v.constructor=d,r(7234)(n,p,d)}},5972:(t,e,r)=>{var n=r(2985);n(n.S,"Number",{EPSILON:Math.pow(2,-52)})},3403:(t,e,r)=>{var n=r(2985),i=r(3816).isFinite;n(n.S,"Number",{isFinite:function(t){return"number"==typeof t&&i(t)}})},2516:(t,e,r)=>{var n=r(2985);n(n.S,"Number",{isInteger:r(8367)})},9371:(t,e,r)=>{var n=r(2985);n(n.S,"Number",{isNaN:function(t){return t!=t}})},6479:(t,e,r)=>{var n=r(2985),i=r(8367),s=Math.abs;n(n.S,"Number",{isSafeInteger:function(t){return i(t)&&s(t)<=9007199254740991}})},1736:(t,e,r)=>{var n=r(2985);n(n.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},1889:(t,e,r)=>{var n=r(2985);n(n.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},5177:(t,e,r)=>{var n=r(2985),i=r(7743);n(n.S+n.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},6943:(t,e,r)=>{var n=r(2985),i=r(5960);n(n.S+n.F*(Number.parseInt!=i),"Number",{parseInt:i})},726:(t,e,r)=>{"use strict";var n=r(2985),i=r(1467),s=r(3365),o=r(8595),a=1..toFixed,h=Math.floor,u=[0,0,0,0,0,0],c="Number.toFixed: incorrect invocation!",l="0",f=function(t,e){for(var r=-1,n=e;++r<6;)n+=t*u[r],u[r]=n%1e7,n=h(n/1e7)},p=function(t){for(var e=6,r=0;--e>=0;)r+=u[e],u[e]=h(r/t),r=r%t*1e7},d=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==u[t]){var r=String(u[t]);e=""===e?r:e+o.call(l,7-r.length)+r}return e},y=function(t,e,r){return 0===e?r:e%2==1?y(t,e-1,r*t):y(t*t,e/2,r)};n(n.P+n.F*(!!a&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!r(4253)((function(){a.call({})}))),"Number",{toFixed:function(t){var e,r,n,a,h=s(this,c),u=i(t),v="",g=l;if(u<0||u>20)throw RangeError(c);if(h!=h)return"NaN";if(h<=-1e21||h>=1e21)return String(h);if(h<0&&(v="-",h=-h),h>1e-21)if(r=(e=function(t){for(var e=0,r=t;r>=4096;)e+=12,r/=4096;for(;r>=2;)e+=1,r/=2;return e}(h*y(2,69,1))-69)<0?h*y(2,-e,1):h/y(2,e,1),r*=4503599627370496,(e=52-e)>0){for(f(0,r),n=u;n>=7;)f(1e7,0),n-=7;for(f(y(10,n,1),0),n=e-1;n>=23;)p(1<<23),n-=23;p(1<<n),f(1,1),p(2),g=d()}else f(0,r),f(1<<-e,0),g=d()+o.call(l,u);return u>0?v+((a=g.length)<=u?"0."+o.call(l,u-a)+g:g.slice(0,a-u)+"."+g.slice(a-u)):v+g}})},1901:(t,e,r)=>{"use strict";var n=r(2985),i=r(4253),s=r(3365),o=1..toPrecision;n(n.P+n.F*(i((function(){return"1"!==o.call(1,void 0)}))||!i((function(){o.call({})}))),"Number",{toPrecision:function(t){var e=s(this,"Number#toPrecision: incorrect invocation!");return void 0===t?o.call(e):o.call(e,t)}})},5115:(t,e,r)=>{var n=r(2985);n(n.S+n.F,"Object",{assign:r(5345)})},8132:(t,e,r)=>{var n=r(2985);n(n.S,"Object",{create:r(2503)})},7470:(t,e,r)=>{var n=r(2985);n(n.S+n.F*!r(7057),"Object",{defineProperties:r(5588)})},8388:(t,e,r)=>{var n=r(2985);n(n.S+n.F*!r(7057),"Object",{defineProperty:r(9275).f})},9375:(t,e,r)=>{var n=r(5286),i=r(4728).onFreeze;r(3160)("freeze",(function(t){return function(e){return t&&n(e)?t(i(e)):e}}))},4882:(t,e,r)=>{var n=r(2110),i=r(8693).f;r(3160)("getOwnPropertyDescriptor",(function(){return function(t,e){return i(n(t),e)}}))},9622:(t,e,r)=>{r(3160)("getOwnPropertyNames",(function(){return r(9327).f}))},1520:(t,e,r)=>{var n=r(508),i=r(468);r(3160)("getPrototypeOf",(function(){return function(t){return i(n(t))}}))},9892:(t,e,r)=>{var n=r(5286);r(3160)("isExtensible",(function(t){return function(e){return!!n(e)&&(!t||t(e))}}))},4157:(t,e,r)=>{var n=r(5286);r(3160)("isFrozen",(function(t){return function(e){return!n(e)||!!t&&t(e)}}))},5095:(t,e,r)=>{var n=r(5286);r(3160)("isSealed",(function(t){return function(e){return!n(e)||!!t&&t(e)}}))},9176:(t,e,r)=>{var n=r(2985);n(n.S,"Object",{is:r(7195)})},7476:(t,e,r)=>{var n=r(508),i=r(7184);r(3160)("keys",(function(){return function(t){return i(n(t))}}))},4672:(t,e,r)=>{var n=r(5286),i=r(4728).onFreeze;r(3160)("preventExtensions",(function(t){return function(e){return t&&n(e)?t(i(e)):e}}))},3533:(t,e,r)=>{var n=r(5286),i=r(4728).onFreeze;r(3160)("seal",(function(t){return function(e){return t&&n(e)?t(i(e)):e}}))},8838:(t,e,r)=>{var n=r(2985);n(n.S,"Object",{setPrototypeOf:r(7375).set})},6253:(t,e,r)=>{"use strict";var n=r(1488),i={};i[r(6314)("toStringTag")]="z",i+""!="[object z]"&&r(7234)(Object.prototype,"toString",(function(){return"[object "+n(this)+"]"}),!0)},4299:(t,e,r)=>{var n=r(2985),i=r(7743);n(n.G+n.F*(parseFloat!=i),{parseFloat:i})},1084:(t,e,r)=>{var n=r(2985),i=r(5960);n(n.G+n.F*(parseInt!=i),{parseInt:i})},851:(t,e,r)=>{"use strict";var n,i,s,o,a=r(4461),h=r(3816),u=r(741),c=r(1488),l=r(2985),f=r(5286),p=r(4963),d=r(3328),y=r(3531),v=r(8364),g=r(4193).set,m=r(4351)(),w=r(3499),M=r(188),b=r(575),_=r(94),x="Promise",E=h.TypeError,S=h.process,A=S&&S.versions,I=A&&A.v8||"",P=h.Promise,N="process"==c(S),T=function(){},O=i=w.f,C=!!function(){try{var t=P.resolve(1),e=(t.constructor={})[r(6314)("species")]=function(t){t(T,T)};return(N||"function"==typeof PromiseRejectionEvent)&&t.then(T)instanceof e&&0!==I.indexOf("6.6")&&-1===b.indexOf("Chrome/66")}catch(t){}}(),k=function(t){var e;return!(!f(t)||"function"!=typeof(e=t.then))&&e},L=function(t,e){if(!t._n){t._n=!0;var r=t._c;m((function(){for(var n=t._v,i=1==t._s,s=0,o=function(e){var r,s,o,a=i?e.ok:e.fail,h=e.resolve,u=e.reject,c=e.domain;try{a?(i||(2==t._h&&j(t),t._h=1),!0===a?r=n:(c&&c.enter(),r=a(n),c&&(c.exit(),o=!0)),r===e.promise?u(E("Promise-chain cycle")):(s=k(r))?s.call(r,h,u):h(r)):u(n)}catch(t){c&&!o&&c.exit(),u(t)}};r.length>s;)o(r[s++]);t._c=[],t._n=!1,e&&!t._h&&D(t)}))}},D=function(t){g.call(h,(function(){var e,r,n,i=t._v,s=R(t);if(s&&(e=M((function(){N?S.emit("unhandledRejection",i,t):(r=h.onunhandledrejection)?r({promise:t,reason:i}):(n=h.console)&&n.error&&n.error("Unhandled promise rejection",i)})),t._h=N||R(t)?2:1),t._a=void 0,s&&e.e)throw e.v}))},R=function(t){return 1!==t._h&&0===(t._a||t._c).length},j=function(t){g.call(h,(function(){var e;N?S.emit("rejectionHandled",t):(e=h.onrejectionhandled)&&e({promise:t,reason:t._v})}))},F=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),L(e,!0))},G=function(t){var e,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw E("Promise can't be resolved itself");(e=k(t))?m((function(){var n={_w:r,_d:!1};try{e.call(t,u(G,n,1),u(F,n,1))}catch(t){F.call(n,t)}})):(r._v=t,r._s=1,L(r,!1))}catch(t){F.call({_w:r,_d:!1},t)}}};C||(P=function(t){d(this,P,x,"_h"),p(t),n.call(this);try{t(u(G,this,1),u(F,this,1))}catch(t){F.call(this,t)}},(n=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r(4408)(P.prototype,{then:function(t,e){var r=O(v(this,P));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=N?S.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&L(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),s=function(){var t=new n;this.promise=t,this.resolve=u(G,t,1),this.reject=u(F,t,1)},w.f=O=function(t){return t===P||t===o?new s(t):i(t)}),l(l.G+l.W+l.F*!C,{Promise:P}),r(2943)(P,x),r(2974)(x),o=r(5645).Promise,l(l.S+l.F*!C,x,{reject:function(t){var e=O(this);return(0,e.reject)(t),e.promise}}),l(l.S+l.F*(a||!C),x,{resolve:function(t){return _(a&&this===o?P:this,t)}}),l(l.S+l.F*!(C&&r(7462)((function(t){P.all(t).catch(T)}))),x,{all:function(t){var e=this,r=O(e),n=r.resolve,i=r.reject,s=M((function(){var r=[],s=0,o=1;y(t,!1,(function(t){var a=s++,h=!1;r.push(void 0),o++,e.resolve(t).then((function(t){h||(h=!0,r[a]=t,--o||n(r))}),i)})),--o||n(r)}));return s.e&&i(s.v),r.promise},race:function(t){var e=this,r=O(e),n=r.reject,i=M((function(){y(t,!1,(function(t){e.resolve(t).then(r.resolve,n)}))}));return i.e&&n(i.v),r.promise}})},1572:(t,e,r)=>{var n=r(2985),i=r(4963),s=r(7007),o=(r(3816).Reflect||{}).apply,a=Function.apply;n(n.S+n.F*!r(4253)((function(){o((function(){}))})),"Reflect",{apply:function(t,e,r){var n=i(t),h=s(r);return o?o(n,e,h):a.call(n,e,h)}})},2139:(t,e,r)=>{var n=r(2985),i=r(2503),s=r(4963),o=r(7007),a=r(5286),h=r(4253),u=r(4398),c=(r(3816).Reflect||{}).construct,l=h((function(){function t(){}return!(c((function(){}),[],t)instanceof t)})),f=!h((function(){c((function(){}))}));n(n.S+n.F*(l||f),"Reflect",{construct:function(t,e){s(t),o(e);var r=arguments.length<3?t:s(arguments[2]);if(f&&!l)return c(t,e,r);if(t==r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(u.apply(t,n))}var h=r.prototype,p=i(a(h)?h:Object.prototype),d=Function.apply.call(t,p,e);return a(d)?d:p}})},685:(t,e,r)=>{var n=r(9275),i=r(2985),s=r(7007),o=r(1689);i(i.S+i.F*r(4253)((function(){Reflect.defineProperty(n.f({},1,{value:1}),1,{value:2})})),"Reflect",{defineProperty:function(t,e,r){s(t),e=o(e,!0),s(r);try{return n.f(t,e,r),!0}catch(t){return!1}}})},5535:(t,e,r)=>{var n=r(2985),i=r(8693).f,s=r(7007);n(n.S,"Reflect",{deleteProperty:function(t,e){var r=i(s(t),e);return!(r&&!r.configurable)&&delete t[e]}})},7347:(t,e,r)=>{"use strict";var n=r(2985),i=r(7007),s=function(t){this._t=i(t),this._i=0;var e,r=this._k=[];for(e in t)r.push(e)};r(9988)(s,"Object",(function(){var t,e=this,r=e._k;do{if(e._i>=r.length)return{value:void 0,done:!0}}while(!((t=r[e._i++])in e._t));return{value:t,done:!1}})),n(n.S,"Reflect",{enumerate:function(t){return new s(t)}})},6633:(t,e,r)=>{var n=r(8693),i=r(2985),s=r(7007);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return n.f(s(t),e)}})},8989:(t,e,r)=>{var n=r(2985),i=r(468),s=r(7007);n(n.S,"Reflect",{getPrototypeOf:function(t){return i(s(t))}})},3049:(t,e,r)=>{var n=r(8693),i=r(468),s=r(9181),o=r(2985),a=r(5286),h=r(7007);o(o.S,"Reflect",{get:function t(e,r){var o,u,c=arguments.length<3?e:arguments[2];return h(e)===c?e[r]:(o=n.f(e,r))?s(o,"value")?o.value:void 0!==o.get?o.get.call(c):void 0:a(u=i(e))?t(u,r,c):void 0}})},8270:(t,e,r)=>{var n=r(2985);n(n.S,"Reflect",{has:function(t,e){return e in t}})},4510:(t,e,r)=>{var n=r(2985),i=r(7007),s=Object.isExtensible;n(n.S,"Reflect",{isExtensible:function(t){return i(t),!s||s(t)}})},3984:(t,e,r)=>{var n=r(2985);n(n.S,"Reflect",{ownKeys:r(7643)})},5769:(t,e,r)=>{var n=r(2985),i=r(7007),s=Object.preventExtensions;n(n.S,"Reflect",{preventExtensions:function(t){i(t);try{return s&&s(t),!0}catch(t){return!1}}})},6014:(t,e,r)=>{var n=r(2985),i=r(7375);i&&n(n.S,"Reflect",{setPrototypeOf:function(t,e){i.check(t,e);try{return i.set(t,e),!0}catch(t){return!1}}})},55:(t,e,r)=>{var n=r(9275),i=r(8693),s=r(468),o=r(9181),a=r(2985),h=r(681),u=r(7007),c=r(5286);a(a.S,"Reflect",{set:function t(e,r,a){var l,f,p=arguments.length<4?e:arguments[3],d=i.f(u(e),r);if(!d){if(c(f=s(e)))return t(f,r,a,p);d=h(0)}if(o(d,"value")){if(!1===d.writable||!c(p))return!1;if(l=i.f(p,r)){if(l.get||l.set||!1===l.writable)return!1;l.value=a,n.f(p,r,l)}else n.f(p,r,h(0,a));return!0}return void 0!==d.set&&(d.set.call(p,a),!0)}})},3946:(t,e,r)=>{var n=r(3816),i=r(266),s=r(9275).f,o=r(616).f,a=r(5364),h=r(3218),u=n.RegExp,c=u,l=u.prototype,f=/a/g,p=/a/g,d=new u(f)!==f;if(r(7057)&&(!d||r(4253)((function(){return p[r(6314)("match")]=!1,u(f)!=f||u(p)==p||"/a/i"!=u(f,"i")})))){u=function(t,e){var r=this instanceof u,n=a(t),s=void 0===e;return!r&&n&&t.constructor===u&&s?t:i(d?new c(n&&!s?t.source:t,e):c((n=t instanceof u)?t.source:t,n&&s?h.call(t):e),r?this:l,u)};for(var y=function(t){t in u||s(u,t,{configurable:!0,get:function(){return c[t]},set:function(e){c[t]=e}})},v=o(c),g=0;v.length>g;)y(v[g++]);l.constructor=u,u.prototype=l,r(7234)(n,"RegExp",u)}r(2974)("RegExp")},8269:(t,e,r)=>{"use strict";var n=r(1165);r(2985)({target:"RegExp",proto:!0,forced:n!==/./.exec},{exec:n})},6774:(t,e,r)=>{r(7057)&&"g"!=/./g.flags&&r(9275).f(RegExp.prototype,"flags",{configurable:!0,get:r(3218)})},1466:(t,e,r)=>{"use strict";var n=r(7007),i=r(875),s=r(6793),o=r(7787);r(8082)("match",1,(function(t,e,r,a){return[function(r){var n=t(this),i=null==r?void 0:r[e];return void 0!==i?i.call(r,n):new RegExp(r)[e](String(n))},function(t){var e=a(r,t,this);if(e.done)return e.value;var h=n(t),u=String(this);if(!h.global)return o(h,u);var c=h.unicode;h.lastIndex=0;for(var l,f=[],p=0;null!==(l=o(h,u));){var d=String(l[0]);f[p]=d,""===d&&(h.lastIndex=s(u,i(h.lastIndex),c)),p++}return 0===p?null:f}]}))},9357:(t,e,r)=>{"use strict";var n=r(7007),i=r(508),s=r(875),o=r(1467),a=r(6793),h=r(7787),u=Math.max,c=Math.min,l=Math.floor,f=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;r(8082)("replace",2,(function(t,e,r,d){return[function(n,i){var s=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,s,i):r.call(String(s),n,i)},function(t,e){var i=d(r,t,this,e);if(i.done)return i.value;var l=n(t),f=String(this),p="function"==typeof e;p||(e=String(e));var v=l.global;if(v){var g=l.unicode;l.lastIndex=0}for(var m=[];;){var w=h(l,f);if(null===w)break;if(m.push(w),!v)break;""===String(w[0])&&(l.lastIndex=a(f,s(l.lastIndex),g))}for(var M,b="",_=0,x=0;x<m.length;x++){w=m[x];for(var E=String(w[0]),S=u(c(o(w.index),f.length),0),A=[],I=1;I<w.length;I++)A.push(void 0===(M=w[I])?M:String(M));var P=w.groups;if(p){var N=[E].concat(A,S,f);void 0!==P&&N.push(P);var T=String(e.apply(void 0,N))}else T=y(E,f,S,A,P,e);S>=_&&(b+=f.slice(_,S)+T,_=S+E.length)}return b+f.slice(_)}];function y(t,e,n,s,o,a){var h=n+t.length,u=s.length,c=p;return void 0!==o&&(o=i(o),c=f),r.call(a,c,(function(r,i){var a;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(h);case"<":a=o[i.slice(1,-1)];break;default:var c=+i;if(0===c)return r;if(c>u){var f=l(c/10);return 0===f?r:f<=u?void 0===s[f-1]?i.charAt(1):s[f-1]+i.charAt(1):r}a=s[c-1]}return void 0===a?"":a}))}}))},6142:(t,e,r)=>{"use strict";var n=r(7007),i=r(7195),s=r(7787);r(8082)("search",1,(function(t,e,r,o){return[function(r){var n=t(this),i=null==r?void 0:r[e];return void 0!==i?i.call(r,n):new RegExp(r)[e](String(n))},function(t){var e=o(r,t,this);if(e.done)return e.value;var a=n(t),h=String(this),u=a.lastIndex;i(u,0)||(a.lastIndex=0);var c=s(a,h);return i(a.lastIndex,u)||(a.lastIndex=u),null===c?-1:c.index}]}))},1876:(t,e,r)=>{"use strict";var n=r(5364),i=r(7007),s=r(8364),o=r(6793),a=r(875),h=r(7787),u=r(1165),c=r(4253),l=Math.min,f=[].push,p=4294967295,d=!c((function(){RegExp(p,"y")}));r(8082)("split",2,(function(t,e,r,c){var y;return y="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,e){var i=String(this);if(void 0===t&&0===e)return[];if(!n(t))return r.call(i,t,e);for(var s,o,a,h=[],c=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),l=0,d=void 0===e?p:e>>>0,y=new RegExp(t.source,c+"g");(s=u.call(y,i))&&!((o=y.lastIndex)>l&&(h.push(i.slice(l,s.index)),s.length>1&&s.index<i.length&&f.apply(h,s.slice(1)),a=s[0].length,l=o,h.length>=d));)y.lastIndex===s.index&&y.lastIndex++;return l===i.length?!a&&y.test("")||h.push(""):h.push(i.slice(l)),h.length>d?h.slice(0,d):h}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:r.call(this,t,e)}:r,[function(r,n){var i=t(this),s=null==r?void 0:r[e];return void 0!==s?s.call(r,i,n):y.call(String(i),r,n)},function(t,e){var n=c(y,t,this,e,y!==r);if(n.done)return n.value;var u=i(t),f=String(this),v=s(u,RegExp),g=u.unicode,m=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(d?"y":"g"),w=new v(d?u:"^(?:"+u.source+")",m),M=void 0===e?p:e>>>0;if(0===M)return[];if(0===f.length)return null===h(w,f)?[f]:[];for(var b=0,_=0,x=[];_<f.length;){w.lastIndex=d?_:0;var E,S=h(w,d?f:f.slice(_));if(null===S||(E=l(a(w.lastIndex+(d?0:_)),f.length))===b)_=o(f,_,g);else{if(x.push(f.slice(b,_)),x.length===M)return x;for(var A=1;A<=S.length-1;A++)if(x.push(S[A]),x.length===M)return x;_=b=E}}return x.push(f.slice(b)),x}]}))},6108:(t,e,r)=>{"use strict";r(6774);var n=r(7007),i=r(3218),s=r(7057),o="toString",a=/./.toString,h=function(t){r(7234)(RegExp.prototype,o,t,!0)};r(4253)((function(){return"/a/b"!=a.call({source:"a",flags:"b"})}))?h((function(){var t=n(this);return"/".concat(t.source,"/","flags"in t?t.flags:!s&&t instanceof RegExp?i.call(t):void 0)})):a.name!=o&&h((function(){return a.call(this)}))},8184:(t,e,r)=>{"use strict";var n=r(9824),i=r(1616);t.exports=r(5795)("Set",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return n.def(i(this,"Set"),t=0===t?0:t,t)}},n)},856:(t,e,r)=>{"use strict";r(9395)("anchor",(function(t){return function(e){return t(this,"a","name",e)}}))},703:(t,e,r)=>{"use strict";r(9395)("big",(function(t){return function(){return t(this,"big","","")}}))},1539:(t,e,r)=>{"use strict";r(9395)("blink",(function(t){return function(){return t(this,"blink","","")}}))},5292:(t,e,r)=>{"use strict";r(9395)("bold",(function(t){return function(){return t(this,"b","","")}}))},9539:(t,e,r)=>{"use strict";var n=r(2985),i=r(4496)(!1);n(n.P,"String",{codePointAt:function(t){return i(this,t)}})},6620:(t,e,r)=>{"use strict";var n=r(2985),i=r(875),s=r(2094),o="endsWith",a="".endsWith;n(n.P+n.F*r(8852)(o),"String",{endsWith:function(t){var e=s(this,t,o),r=arguments.length>1?arguments[1]:void 0,n=i(e.length),h=void 0===r?n:Math.min(i(r),n),u=String(t);return a?a.call(e,u,h):e.slice(h-u.length,h)===u}})},6629:(t,e,r)=>{"use strict";r(9395)("fixed",(function(t){return function(){return t(this,"tt","","")}}))},3694:(t,e,r)=>{"use strict";r(9395)("fontcolor",(function(t){return function(e){return t(this,"font","color",e)}}))},7648:(t,e,r)=>{"use strict";r(9395)("fontsize",(function(t){return function(e){return t(this,"font","size",e)}}))},191:(t,e,r)=>{var n=r(2985),i=r(2337),s=String.fromCharCode,o=String.fromCodePoint;n(n.S+n.F*(!!o&&1!=o.length),"String",{fromCodePoint:function(t){for(var e,r=[],n=arguments.length,o=0;n>o;){if(e=+arguments[o++],i(e,1114111)!==e)throw RangeError(e+" is not a valid code point");r.push(e<65536?s(e):s(55296+((e-=65536)>>10),e%1024+56320))}return r.join("")}})},2850:(t,e,r)=>{"use strict";var n=r(2985),i=r(2094),s="includes";n(n.P+n.F*r(8852)(s),"String",{includes:function(t){return!!~i(this,t,s).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},7795:(t,e,r)=>{"use strict";r(9395)("italics",(function(t){return function(){return t(this,"i","","")}}))},9115:(t,e,r)=>{"use strict";var n=r(4496)(!0);r(2923)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,r=this._i;return r>=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})}))},4531:(t,e,r)=>{"use strict";r(9395)("link",(function(t){return function(e){return t(this,"a","href",e)}}))},8306:(t,e,r)=>{var n=r(2985),i=r(2110),s=r(875);n(n.S,"String",{raw:function(t){for(var e=i(t.raw),r=s(e.length),n=arguments.length,o=[],a=0;r>a;)o.push(String(e[a++])),a<n&&o.push(String(arguments[a]));return o.join("")}})},823:(t,e,r)=>{var n=r(2985);n(n.P,"String",{repeat:r(8595)})},3605:(t,e,r)=>{"use strict";r(9395)("small",(function(t){return function(){return t(this,"small","","")}}))},7732:(t,e,r)=>{"use strict";var n=r(2985),i=r(875),s=r(2094),o="startsWith",a="".startsWith;n(n.P+n.F*r(8852)(o),"String",{startsWith:function(t){var e=s(this,t,o),r=i(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),n=String(t);return a?a.call(e,n,r):e.slice(r,r+n.length)===n}})},6780:(t,e,r)=>{"use strict";r(9395)("strike",(function(t){return function(){return t(this,"strike","","")}}))},9937:(t,e,r)=>{"use strict";r(9395)("sub",(function(t){return function(){return t(this,"sub","","")}}))},511:(t,e,r)=>{"use strict";r(9395)("sup",(function(t){return function(){return t(this,"sup","","")}}))},4564:(t,e,r)=>{"use strict";r(9599)("trim",(function(t){return function(){return t(this,3)}}))},5767:(t,e,r)=>{"use strict";var n=r(3816),i=r(9181),s=r(7057),o=r(2985),a=r(7234),h=r(4728).KEY,u=r(4253),c=r(3825),l=r(2943),f=r(3953),p=r(6314),d=r(8787),y=r(6074),v=r(5541),g=r(4302),m=r(7007),w=r(5286),M=r(508),b=r(2110),_=r(1689),x=r(681),E=r(2503),S=r(9327),A=r(8693),I=r(4548),P=r(9275),N=r(7184),T=A.f,O=P.f,C=S.f,k=n.Symbol,L=n.JSON,D=L&&L.stringify,R=p("_hidden"),j=p("toPrimitive"),F={}.propertyIsEnumerable,G=c("symbol-registry"),B=c("symbols"),U=c("op-symbols"),q=Object.prototype,z="function"==typeof k&&!!I.f,V=n.QObject,W=!V||!V.prototype||!V.prototype.findChild,X=s&&u((function(){return 7!=E(O({},"a",{get:function(){return O(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=T(q,e);n&&delete q[e],O(t,e,r),n&&t!==q&&O(q,e,n)}:O,$=function(t){var e=B[t]=E(k.prototype);return e._k=t,e},Y=z&&"symbol"==typeof k.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof k},Q=function(t,e,r){return t===q&&Q(U,e,r),m(t),e=_(e,!0),m(r),i(B,e)?(r.enumerable?(i(t,R)&&t[R][e]&&(t[R][e]=!1),r=E(r,{enumerable:x(0,!1)})):(i(t,R)||O(t,R,x(1,{})),t[R][e]=!0),X(t,e,r)):O(t,e,r)},K=function(t,e){m(t);for(var r,n=v(e=b(e)),i=0,s=n.length;s>i;)Q(t,r=n[i++],e[r]);return t},H=function(t){var e=F.call(this,t=_(t,!0));return!(this===q&&i(B,t)&&!i(U,t))&&(!(e||!i(this,t)||!i(B,t)||i(this,R)&&this[R][t])||e)},J=function(t,e){if(t=b(t),e=_(e,!0),t!==q||!i(B,e)||i(U,e)){var r=T(t,e);return!r||!i(B,e)||i(t,R)&&t[R][e]||(r.enumerable=!0),r}},Z=function(t){for(var e,r=C(b(t)),n=[],s=0;r.length>s;)i(B,e=r[s++])||e==R||e==h||n.push(e);return n},tt=function(t){for(var e,r=t===q,n=C(r?U:b(t)),s=[],o=0;n.length>o;)!i(B,e=n[o++])||r&&!i(q,e)||s.push(B[e]);return s};z||(a((k=function(){if(this instanceof k)throw TypeError("Symbol is not a constructor!");var t=f(arguments.length>0?arguments[0]:void 0),e=function(r){this===q&&e.call(U,r),i(this,R)&&i(this[R],t)&&(this[R][t]=!1),X(this,t,x(1,r))};return s&&W&&X(q,t,{configurable:!0,set:e}),$(t)}).prototype,"toString",(function(){return this._k})),A.f=J,P.f=Q,r(616).f=S.f=Z,r(4682).f=H,I.f=tt,s&&!r(4461)&&a(q,"propertyIsEnumerable",H,!0),d.f=function(t){return $(p(t))}),o(o.G+o.W+o.F*!z,{Symbol:k});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;et.length>rt;)p(et[rt++]);for(var nt=N(p.store),it=0;nt.length>it;)y(nt[it++]);o(o.S+o.F*!z,"Symbol",{for:function(t){return i(G,t+="")?G[t]:G[t]=k(t)},keyFor:function(t){if(!Y(t))throw TypeError(t+" is not a symbol!");for(var e in G)if(G[e]===t)return e},useSetter:function(){W=!0},useSimple:function(){W=!1}}),o(o.S+o.F*!z,"Object",{create:function(t,e){return void 0===e?E(t):K(E(t),e)},defineProperty:Q,defineProperties:K,getOwnPropertyDescriptor:J,getOwnPropertyNames:Z,getOwnPropertySymbols:tt});var st=u((function(){I.f(1)}));o(o.S+o.F*st,"Object",{getOwnPropertySymbols:function(t){return I.f(M(t))}}),L&&o(o.S+o.F*(!z||u((function(){var t=k();return"[null]"!=D([t])||"{}"!=D({a:t})||"{}"!=D(Object(t))}))),"JSON",{stringify:function(t){for(var e,r,n=[t],i=1;arguments.length>i;)n.push(arguments[i++]);if(r=e=n[1],(w(e)||void 0!==t)&&!Y(t))return g(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!Y(e))return e}),n[1]=e,D.apply(L,n)}}),k.prototype[j]||r(7728)(k.prototype,j,k.prototype.valueOf),l(k,"Symbol"),l(Math,"Math",!0),l(n.JSON,"JSON",!0)},142:(t,e,r)=>{"use strict";var n=r(2985),i=r(9383),s=r(1125),o=r(7007),a=r(2337),h=r(875),u=r(5286),c=r(3816).ArrayBuffer,l=r(8364),f=s.ArrayBuffer,p=s.DataView,d=i.ABV&&c.isView,y=f.prototype.slice,v=i.VIEW,g="ArrayBuffer";n(n.G+n.W+n.F*(c!==f),{ArrayBuffer:f}),n(n.S+n.F*!i.CONSTR,g,{isView:function(t){return d&&d(t)||u(t)&&v in t}}),n(n.P+n.U+n.F*r(4253)((function(){return!new f(2).slice(1,void 0).byteLength})),g,{slice:function(t,e){if(void 0!==y&&void 0===e)return y.call(o(this),t);for(var r=o(this).byteLength,n=a(t,r),i=a(void 0===e?r:e,r),s=new(l(this,f))(h(i-n)),u=new p(this),c=new p(s),d=0;n<i;)c.setUint8(d++,u.getUint8(n++));return s}}),r(2974)(g)},1786:(t,e,r)=>{var n=r(2985);n(n.G+n.W+n.F*!r(9383).ABV,{DataView:r(1125).DataView})},162:(t,e,r)=>{r(8440)("Float32",4,(function(t){return function(e,r,n){return t(this,e,r,n)}}))},3834:(t,e,r)=>{r(8440)("Float64",8,(function(t){return function(e,r,n){return t(this,e,r,n)}}))},4821:(t,e,r)=>{r(8440)("Int16",2,(function(t){return function(e,r,n){return t(this,e,r,n)}}))},1303:(t,e,r)=>{r(8440)("Int32",4,(function(t){return function(e,r,n){return t(this,e,r,n)}}))},5368:(t,e,r)=>{r(8440)("Int8",1,(function(t){return function(e,r,n){return t(this,e,r,n)}}))},9103:(t,e,r)=>{r(8440)("Uint16",2,(function(t){return function(e,r,n){return t(this,e,r,n)}}))},3318:(t,e,r)=>{r(8440)("Uint32",4,(function(t){return function(e,r,n){return t(this,e,r,n)}}))},6964:(t,e,r)=>{r(8440)("Uint8",1,(function(t){return function(e,r,n){return t(this,e,r,n)}}))},2152:(t,e,r)=>{r(8440)("Uint8",1,(function(t){return function(e,r,n){return t(this,e,r,n)}}),!0)},147:(t,e,r)=>{"use strict";var n,i=r(3816),s=r(50)(0),o=r(7234),a=r(4728),h=r(5345),u=r(3657),c=r(5286),l=r(1616),f=r(1616),p=!i.ActiveXObject&&"ActiveXObject"in i,d="WeakMap",y=a.getWeak,v=Object.isExtensible,g=u.ufstore,m=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},w={get:function(t){if(c(t)){var e=y(t);return!0===e?g(l(this,d)).get(t):e?e[this._i]:void 0}},set:function(t,e){return u.def(l(this,d),t,e)}},M=t.exports=r(5795)(d,m,w,u,!0,!0);f&&p&&(h((n=u.getConstructor(m,d)).prototype,w),a.NEED=!0,s(["delete","has","get","set"],(function(t){var e=M.prototype,r=e[t];o(e,t,(function(e,i){if(c(e)&&!v(e)){this._f||(this._f=new n);var s=this._f[t](e,i);return"set"==t?this:s}return r.call(this,e,i)}))})))},9192:(t,e,r)=>{"use strict";var n=r(3657),i=r(1616),s="WeakSet";r(5795)(s,(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return n.def(i(this,s),t,!0)}},n,!1,!0)},1268:(t,e,r)=>{"use strict";var n=r(2985),i=r(3325),s=r(508),o=r(875),a=r(4963),h=r(6886);n(n.P,"Array",{flatMap:function(t){var e,r,n=s(this);return a(t),e=o(n.length),r=h(n,0),i(r,n,n,e,0,1,t,arguments[1]),r}}),r(7722)("flatMap")},4692:(t,e,r)=>{"use strict";var n=r(2985),i=r(3325),s=r(508),o=r(875),a=r(1467),h=r(6886);n(n.P,"Array",{flatten:function(){var t=arguments[0],e=s(this),r=o(e.length),n=h(e,0);return i(n,e,e,r,0,void 0===t?1:a(t)),n}}),r(7722)("flatten")},2773:(t,e,r)=>{"use strict";var n=r(2985),i=r(9315)(!0);n(n.P,"Array",{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r(7722)("includes")},8267:(t,e,r)=>{var n=r(2985),i=r(4351)(),s=r(3816).process,o="process"==r(2032)(s);n(n.G,{asap:function(t){var e=o&&s.domain;i(e?e.bind(t):t)}})},2559:(t,e,r)=>{var n=r(2985),i=r(2032);n(n.S,"Error",{isError:function(t){return"Error"===i(t)}})},5575:(t,e,r)=>{var n=r(2985);n(n.G,{global:r(3816)})},525:(t,e,r)=>{r(1024)("Map")},8211:(t,e,r)=>{r(4881)("Map")},7698:(t,e,r)=>{var n=r(2985);n(n.P+n.R,"Map",{toJSON:r(6132)("Map")})},8865:(t,e,r)=>{var n=r(2985);n(n.S,"Math",{clamp:function(t,e,r){return Math.min(r,Math.max(e,t))}})},368:(t,e,r)=>{var n=r(2985);n(n.S,"Math",{DEG_PER_RAD:Math.PI/180})},6427:(t,e,r)=>{var n=r(2985),i=180/Math.PI;n(n.S,"Math",{degrees:function(t){return t*i}})},286:(t,e,r)=>{var n=r(2985),i=r(8757),s=r(4934);n(n.S,"Math",{fscale:function(t,e,r,n,o){return s(i(t,e,r,n,o))}})},2816:(t,e,r)=>{var n=r(2985);n(n.S,"Math",{iaddh:function(t,e,r,n){var i=t>>>0,s=r>>>0;return(e>>>0)+(n>>>0)+((i&s|(i|s)&~(i+s>>>0))>>>31)|0}})},2082:(t,e,r)=>{var n=r(2985);n(n.S,"Math",{imulh:function(t,e){var r=65535,n=+t,i=+e,s=n&r,o=i&r,a=n>>16,h=i>>16,u=(a*o>>>0)+(s*o>>>16);return a*h+(u>>16)+((s*h>>>0)+(u&r)>>16)}})},5986:(t,e,r)=>{var n=r(2985);n(n.S,"Math",{isubh:function(t,e,r,n){var i=t>>>0,s=r>>>0;return(e>>>0)-(n>>>0)-((~i&s|~(i^s)&i-s>>>0)>>>31)|0}})},6308:(t,e,r)=>{var n=r(2985);n(n.S,"Math",{RAD_PER_DEG:180/Math.PI})},9221:(t,e,r)=>{var n=r(2985),i=Math.PI/180;n(n.S,"Math",{radians:function(t){return t*i}})},3570:(t,e,r)=>{var n=r(2985);n(n.S,"Math",{scale:r(8757)})},3776:(t,e,r)=>{var n=r(2985);n(n.S,"Math",{signbit:function(t){return(t=+t)!=t?t:0==t?1/t==1/0:t>0}})},6754:(t,e,r)=>{var n=r(2985);n(n.S,"Math",{umulh:function(t,e){var r=65535,n=+t,i=+e,s=n&r,o=i&r,a=n>>>16,h=i>>>16,u=(a*o>>>0)+(s*o>>>16);return a*h+(u>>>16)+((s*h>>>0)+(u&r)>>>16)}})},8646:(t,e,r)=>{"use strict";var n=r(2985),i=r(508),s=r(4963),o=r(9275);r(7057)&&n(n.P+r(1670),"Object",{__defineGetter__:function(t,e){o.f(i(this),t,{get:s(e),enumerable:!0,configurable:!0})}})},2658:(t,e,r)=>{"use strict";var n=r(2985),i=r(508),s=r(4963),o=r(9275);r(7057)&&n(n.P+r(1670),"Object",{__defineSetter__:function(t,e){o.f(i(this),t,{set:s(e),enumerable:!0,configurable:!0})}})},3276:(t,e,r)=>{var n=r(2985),i=r(1131)(!0);n(n.S,"Object",{entries:function(t){return i(t)}})},8351:(t,e,r)=>{var n=r(2985),i=r(7643),s=r(2110),o=r(8693),a=r(2811);n(n.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,r,n=s(t),h=o.f,u=i(n),c={},l=0;u.length>l;)void 0!==(r=h(n,e=u[l++]))&&a(c,e,r);return c}})},6917:(t,e,r)=>{"use strict";var n=r(2985),i=r(508),s=r(1689),o=r(468),a=r(8693).f;r(7057)&&n(n.P+r(1670),"Object",{__lookupGetter__:function(t){var e,r=i(this),n=s(t,!0);do{if(e=a(r,n))return e.get}while(r=o(r))}})},372:(t,e,r)=>{"use strict";var n=r(2985),i=r(508),s=r(1689),o=r(468),a=r(8693).f;r(7057)&&n(n.P+r(1670),"Object",{__lookupSetter__:function(t){var e,r=i(this),n=s(t,!0);do{if(e=a(r,n))return e.set}while(r=o(r))}})},6409:(t,e,r)=>{var n=r(2985),i=r(1131)(!1);n(n.S,"Object",{values:function(t){return i(t)}})},6534:(t,e,r)=>{"use strict";var n=r(2985),i=r(3816),s=r(5645),o=r(4351)(),a=r(6314)("observable"),h=r(4963),u=r(7007),c=r(3328),l=r(4408),f=r(7728),p=r(3531),d=p.RETURN,y=function(t){return null==t?void 0:h(t)},v=function(t){var e=t._c;e&&(t._c=void 0,e())},g=function(t){return void 0===t._o},m=function(t){g(t)||(t._o=void 0,v(t))},w=function(t,e){u(t),this._c=void 0,this._o=t,t=new M(this);try{var r=e(t),n=r;null!=r&&("function"==typeof r.unsubscribe?r=function(){n.unsubscribe()}:h(r),this._c=r)}catch(e){return void t.error(e)}g(this)&&v(this)};w.prototype=l({},{unsubscribe:function(){m(this)}});var M=function(t){this._s=t};M.prototype=l({},{next:function(t){var e=this._s;if(!g(e)){var r=e._o;try{var n=y(r.next);if(n)return n.call(r,t)}catch(t){try{m(e)}finally{throw t}}}},error:function(t){var e=this._s;if(g(e))throw t;var r=e._o;e._o=void 0;try{var n=y(r.error);if(!n)throw t;t=n.call(r,t)}catch(t){try{v(e)}finally{throw t}}return v(e),t},complete:function(t){var e=this._s;if(!g(e)){var r=e._o;e._o=void 0;try{var n=y(r.complete);t=n?n.call(r,t):void 0}catch(t){try{v(e)}finally{throw t}}return v(e),t}}});var b=function(t){c(this,b,"Observable","_f")._f=h(t)};l(b.prototype,{subscribe:function(t){return new w(t,this._f)},forEach:function(t){var e=this;return new(s.Promise||i.Promise)((function(r,n){h(t);var i=e.subscribe({next:function(e){try{return t(e)}catch(t){n(t),i.unsubscribe()}},error:n,complete:r})}))}}),l(b,{from:function(t){var e="function"==typeof this?this:b,r=y(u(t)[a]);if(r){var n=u(r.call(t));return n.constructor===e?n:new e((function(t){return n.subscribe(t)}))}return new e((function(e){var r=!1;return o((function(){if(!r){try{if(p(t,!1,(function(t){if(e.next(t),r)return d}))===d)return}catch(t){if(r)throw t;return void e.error(t)}e.complete()}})),function(){r=!0}}))},of:function(){for(var t=0,e=arguments.length,r=new Array(e);t<e;)r[t]=arguments[t++];return new("function"==typeof this?this:b)((function(t){var e=!1;return o((function(){if(!e){for(var n=0;n<r.length;++n)if(t.next(r[n]),e)return;t.complete()}})),function(){e=!0}}))}}),f(b.prototype,a,(function(){return this})),n(n.G,{Observable:b}),r(2974)("Observable")},9865:(t,e,r)=>{"use strict";var n=r(2985),i=r(5645),s=r(3816),o=r(8364),a=r(94);n(n.P+n.R,"Promise",{finally:function(t){var e=o(this,i.Promise||s.Promise),r="function"==typeof t;return this.then(r?function(r){return a(e,t()).then((function(){return r}))}:t,r?function(r){return a(e,t()).then((function(){throw r}))}:t)}})},1898:(t,e,r)=>{"use strict";var n=r(2985),i=r(3499),s=r(188);n(n.S,"Promise",{try:function(t){var e=i.f(this),r=s(t);return(r.e?e.reject:e.resolve)(r.v),e.promise}})},3364:(t,e,r)=>{var n=r(133),i=r(7007),s=n.key,o=n.set;n.exp({defineMetadata:function(t,e,r,n){o(t,e,i(r),s(n))}})},1432:(t,e,r)=>{var n=r(133),i=r(7007),s=n.key,o=n.map,a=n.store;n.exp({deleteMetadata:function(t,e){var r=arguments.length<3?void 0:s(arguments[2]),n=o(i(e),r,!1);if(void 0===n||!n.delete(t))return!1;if(n.size)return!0;var h=a.get(e);return h.delete(r),!!h.size||a.delete(e)}})},4416:(t,e,r)=>{var n=r(8184),i=r(9490),s=r(133),o=r(7007),a=r(468),h=s.keys,u=s.key,c=function(t,e){var r=h(t,e),s=a(t);if(null===s)return r;var o=c(s,e);return o.length?r.length?i(new n(r.concat(o))):o:r};s.exp({getMetadataKeys:function(t){return c(o(t),arguments.length<2?void 0:u(arguments[1]))}})},6562:(t,e,r)=>{var n=r(133),i=r(7007),s=r(468),o=n.has,a=n.get,h=n.key,u=function(t,e,r){if(o(t,e,r))return a(t,e,r);var n=s(e);return null!==n?u(t,n,r):void 0};n.exp({getMetadata:function(t,e){return u(t,i(e),arguments.length<3?void 0:h(arguments[2]))}})},2213:(t,e,r)=>{var n=r(133),i=r(7007),s=n.keys,o=n.key;n.exp({getOwnMetadataKeys:function(t){return s(i(t),arguments.length<2?void 0:o(arguments[1]))}})},8681:(t,e,r)=>{var n=r(133),i=r(7007),s=n.get,o=n.key;n.exp({getOwnMetadata:function(t,e){return s(t,i(e),arguments.length<3?void 0:o(arguments[2]))}})},3471:(t,e,r)=>{var n=r(133),i=r(7007),s=r(468),o=n.has,a=n.key,h=function(t,e,r){if(o(t,e,r))return!0;var n=s(e);return null!==n&&h(t,n,r)};n.exp({hasMetadata:function(t,e){return h(t,i(e),arguments.length<3?void 0:a(arguments[2]))}})},4329:(t,e,r)=>{var n=r(133),i=r(7007),s=n.has,o=n.key;n.exp({hasOwnMetadata:function(t,e){return s(t,i(e),arguments.length<3?void 0:o(arguments[2]))}})},5159:(t,e,r)=>{var n=r(133),i=r(7007),s=r(4963),o=n.key,a=n.set;n.exp({metadata:function(t,e){return function(r,n){a(t,e,(void 0!==n?i:s)(r),o(n))}}})},9467:(t,e,r)=>{r(1024)("Set")},4837:(t,e,r)=>{r(4881)("Set")},8739:(t,e,r)=>{var n=r(2985);n(n.P+n.R,"Set",{toJSON:r(6132)("Set")})},7220:(t,e,r)=>{"use strict";var n=r(2985),i=r(4496)(!0),s=r(4253)((function(){return"𠮷"!=="𠮷".at(0)}));n(n.P+n.F*s,"String",{at:function(t){return i(this,t)}})},4208:(t,e,r)=>{"use strict";var n=r(2985),i=r(1355),s=r(875),o=r(5364),a=r(3218),h=RegExp.prototype,u=function(t,e){this._r=t,this._s=e};r(9988)(u,"RegExp String",(function(){var t=this._r.exec(this._s);return{value:t,done:null===t}})),n(n.P,"String",{matchAll:function(t){if(i(this),!o(t))throw TypeError(t+" is not a regexp!");var e=String(this),r="flags"in h?String(t.flags):a.call(t),n=new RegExp(t.source,~r.indexOf("g")?r:"g"+r);return n.lastIndex=s(t.lastIndex),new u(n,e)}})},2770:(t,e,r)=>{"use strict";var n=r(2985),i=r(5442),s=r(575),o=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(s);n(n.P+n.F*o,"String",{padEnd:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},1784:(t,e,r)=>{"use strict";var n=r(2985),i=r(5442),s=r(575),o=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(s);n(n.P+n.F*o,"String",{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},5869:(t,e,r)=>{"use strict";r(9599)("trimLeft",(function(t){return function(){return t(this,1)}}),"trimStart")},4325:(t,e,r)=>{"use strict";r(9599)("trimRight",(function(t){return function(){return t(this,2)}}),"trimEnd")},9665:(t,e,r)=>{r(6074)("asyncIterator")},9593:(t,e,r)=>{r(6074)("observable")},8967:(t,e,r)=>{var n=r(2985);n(n.S,"System",{global:r(3816)})},4188:(t,e,r)=>{r(1024)("WeakMap")},7594:(t,e,r)=>{r(4881)("WeakMap")},3495:(t,e,r)=>{r(1024)("WeakSet")},9550:(t,e,r)=>{r(4881)("WeakSet")},1181:(t,e,r)=>{for(var n=r(6997),i=r(7184),s=r(7234),o=r(3816),a=r(7728),h=r(2803),u=r(6314),c=u("iterator"),l=u("toStringTag"),f=h.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},d=i(p),y=0;y<d.length;y++){var v,g=d[y],m=p[g],w=o[g],M=w&&w.prototype;if(M&&(M[c]||a(M,c,f),M[l]||a(M,l,g),h[g]=f,m))for(v in n)M[v]||s(M,v,n[v],!0)}},4633:(t,e,r)=>{var n=r(2985),i=r(4193);n(n.G+n.B,{setImmediate:i.set,clearImmediate:i.clear})},2564:(t,e,r)=>{var n=r(3816),i=r(2985),s=r(575),o=[].slice,a=/MSIE .\./.test(s),h=function(t){return function(e,r){var n=arguments.length>2,i=!!n&&o.call(arguments,2);return t(n?function(){("function"==typeof e?e:Function(e)).apply(this,i)}:e,r)}};i(i.G+i.B+i.F*a,{setTimeout:h(n.setTimeout),setInterval:h(n.setInterval)})},1934:(t,e,r)=>{r(5767),r(8132),r(8388),r(7470),r(4882),r(1520),r(7476),r(9622),r(9375),r(3533),r(4672),r(4157),r(5095),r(9892),r(5115),r(9176),r(8838),r(6253),r(9730),r(6059),r(8377),r(1084),r(4299),r(1246),r(726),r(1901),r(5972),r(3403),r(2516),r(9371),r(6479),r(1736),r(1889),r(5177),r(6943),r(6503),r(6786),r(932),r(7526),r(1591),r(9073),r(347),r(579),r(4669),r(7710),r(5789),r(3514),r(9978),r(8472),r(6946),r(5068),r(413),r(191),r(8306),r(4564),r(9115),r(9539),r(6620),r(2850),r(823),r(7732),r(856),r(703),r(1539),r(5292),r(6629),r(3694),r(7648),r(7795),r(4531),r(3605),r(6780),r(9937),r(511),r(1822),r(9977),r(1031),r(6331),r(1560),r(774),r(522),r(8295),r(7842),r(110),r(75),r(4336),r(1802),r(8837),r(6773),r(5745),r(3057),r(3750),r(3369),r(9564),r(2e3),r(8977),r(2310),r(4899),r(1842),r(6997),r(3946),r(8269),r(6108),r(6774),r(1466),r(9357),r(6142),r(1876),r(851),r(8416),r(8184),r(147),r(9192),r(142),r(1786),r(5368),r(6964),r(2152),r(4821),r(9103),r(1303),r(3318),r(162),r(3834),r(1572),r(2139),r(685),r(5535),r(7347),r(3049),r(6633),r(8989),r(8270),r(4510),r(3984),r(5769),r(55),r(6014),r(2773),r(1268),r(4692),r(7220),r(1784),r(2770),r(5869),r(4325),r(4208),r(9665),r(9593),r(8351),r(6409),r(3276),r(8646),r(2658),r(6917),r(372),r(7698),r(8739),r(8211),r(4837),r(7594),r(9550),r(525),r(9467),r(4188),r(3495),r(5575),r(8967),r(2559),r(8865),r(368),r(6427),r(286),r(2816),r(5986),r(2082),r(6308),r(9221),r(3570),r(6754),r(3776),r(9865),r(1898),r(3364),r(1432),r(6562),r(4416),r(8681),r(2213),r(3471),r(4329),r(5159),r(8267),r(6534),r(2564),r(4633),r(1181),t.exports=r(5645)},624:t=>{function e(t){if(t)return function(t){for(var r in e.prototype)t[r]=e.prototype[r];return t}(t)}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks[t]=this._callbacks[t]||[]).push(e),this},e.prototype.once=function(t,e){var r=this;function n(){r.off(t,n),e.apply(this,arguments)}return this._callbacks=this._callbacks||{},n.fn=e,this.on(t,n),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks[t];if(!n)return this;if(1==arguments.length)return delete this._callbacks[t],this;for(var i=0;i<n.length;i++)if((r=n[i])===e||r.fn===e){n.splice(i,1);break}return this},e.prototype.emit=function(t){this._callbacks=this._callbacks||{};var e=[].slice.call(arguments,1),r=this._callbacks[t];if(r)for(var n=0,i=(r=r.slice(0)).length;n<i;++n)r[n].apply(this,e);return this},e.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks[t]||[]},e.prototype.hasListeners=function(t){return!!this.listeners(t).length}},7187:t=>{function e(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(t){return"function"==typeof t}function n(t){return"object"==typeof t&&null!==t}function i(t){return void 0===t}t.exports=e,e.EventEmitter=e,e.prototype._events=void 0,e.prototype._maxListeners=void 0,e.defaultMaxListeners=10,e.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},e.prototype.emit=function(t){var e,s,o,a,h,u;if(this._events||(this._events={}),"error"===t&&(!this._events.error||n(this._events.error)&&!this._events.error.length)){if((e=arguments[1])instanceof Error)throw e;var c=new Error('Uncaught, unspecified "error" event. ('+e+")");throw c.context=e,c}if(i(s=this._events[t]))return!1;if(r(s))switch(arguments.length){case 1:s.call(this);break;case 2:s.call(this,arguments[1]);break;case 3:s.call(this,arguments[1],arguments[2]);break;default:a=Array.prototype.slice.call(arguments,1),s.apply(this,a)}else if(n(s))for(a=Array.prototype.slice.call(arguments,1),o=(u=s.slice()).length,h=0;h<o;h++)u[h].apply(this,a);return!0},e.prototype.addListener=function(t,s){var o;if(!r(s))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,r(s.listener)?s.listener:s),this._events[t]?n(this._events[t])?this._events[t].push(s):this._events[t]=[this._events[t],s]:this._events[t]=s,n(this._events[t])&&!this._events[t].warned&&(o=i(this._maxListeners)?e.defaultMaxListeners:this._maxListeners)&&o>0&&this._events[t].length>o&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace()),this},e.prototype.on=e.prototype.addListener,e.prototype.once=function(t,e){if(!r(e))throw TypeError("listener must be a function");var n=!1;function i(){this.removeListener(t,i),n||(n=!0,e.apply(this,arguments))}return i.listener=e,this.on(t,i),this},e.prototype.removeListener=function(t,e){var i,s,o,a;if(!r(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(o=(i=this._events[t]).length,s=-1,i===e||r(i.listener)&&i.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(n(i)){for(a=o;a-- >0;)if(i[a]===e||i[a].listener&&i[a].listener===e){s=a;break}if(s<0)return this;1===i.length?(i.length=0,delete this._events[t]):i.splice(s,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},e.prototype.removeAllListeners=function(t){var e,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[t]))this.removeListener(t,n);else if(n)for(;n.length;)this.removeListener(t,n[n.length-1]);return delete this._events[t],this},e.prototype.listeners=function(t){return this._events&&this._events[t]?r(this._events[t])?[this._events[t]]:this._events[t].slice():[]},e.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(r(e))return 1;if(e)return e.length}return 0},e.listenerCount=function(t,e){return t.listenerCount(e)}},645:(t,e)=>{e.read=function(t,e,r,n,i){var s,o,a=8*i-n-1,h=(1<<a)-1,u=h>>1,c=-7,l=r?i-1:0,f=r?-1:1,p=t[e+l];for(l+=f,s=p&(1<<-c)-1,p>>=-c,c+=a;c>0;s=256*s+t[e+l],l+=f,c-=8);for(o=s&(1<<-c)-1,s>>=-c,c+=n;c>0;o=256*o+t[e+l],l+=f,c-=8);if(0===s)s=1-u;else{if(s===h)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),s-=u}return(p?-1:1)*o*Math.pow(2,s-n)},e.write=function(t,e,r,n,i,s){var o,a,h,u=8*s-i-1,c=(1<<u)-1,l=c>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:s-1,d=n?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,o=c):(o=Math.floor(Math.log(e)/Math.LN2),e*(h=Math.pow(2,-o))<1&&(o--,h*=2),(e+=o+l>=1?f/h:f*Math.pow(2,1-l))*h>=2&&(o++,h/=2),o+l>=c?(a=0,o=c):o+l>=1?(a=(e*h-1)*Math.pow(2,i),o+=l):(a=e*Math.pow(2,l-1)*Math.pow(2,i),o=0));i>=8;t[r+p]=255&a,p+=d,a/=256,i-=8);for(o=o<<i|a,u+=i;u>0;t[r+p]=255&o,p+=d,o/=256,u-=8);t[r+p-d]|=128*y}},9209:function(t,e){!function(t){"use strict";function e(t,e){return t>e?1:t<e?-1:0}var r=function(t,r){void 0===t&&(t=e),void 0===r&&(r=!1),this._compare=t,this._root=null,this._size=0,this._noDuplicates=!!r},n={size:{configurable:!0}};function i(t,e,r,n,s){var o=s-n;if(o>0){var a=n+Math.floor(o/2),h={key:e[a],data:r[a],parent:t};return h.left=i(h,e,r,n,a),h.right=i(h,e,r,a+1,s),h}return null}function s(t,e,r,n,i){if(!(r>=n)){for(var o=t[r+n>>1],a=r-1,h=n+1;;){do{a++}while(i(t[a],o)<0);do{h--}while(i(t[h],o)>0);if(a>=h)break;var u=t[a];t[a]=t[h],t[h]=u,u=e[a],e[a]=e[h],e[h]=u}s(t,e,r,h,i),s(t,e,h+1,n,i)}}r.prototype.rotateLeft=function(t){var e=t.right;e&&(t.right=e.left,e.left&&(e.left.parent=t),e.parent=t.parent),t.parent?t===t.parent.left?t.parent.left=e:t.parent.right=e:this._root=e,e&&(e.left=t),t.parent=e},r.prototype.rotateRight=function(t){var e=t.left;e&&(t.left=e.right,e.right&&(e.right.parent=t),e.parent=t.parent),t.parent?t===t.parent.left?t.parent.left=e:t.parent.right=e:this._root=e,e&&(e.right=t),t.parent=e},r.prototype._splay=function(t){for(var e=this;t.parent;){var r=t.parent;r.parent?r.left===t&&r.parent.left===r?(e.rotateRight(r.parent),e.rotateRight(r)):r.right===t&&r.parent.right===r?(e.rotateLeft(r.parent),e.rotateLeft(r)):r.left===t&&r.parent.right===r?(e.rotateRight(r),e.rotateLeft(r)):(e.rotateLeft(r),e.rotateRight(r)):r.left===t?e.rotateRight(r):e.rotateLeft(r)}},r.prototype.splay=function(t){for(var e,r,n,i,s;t.parent;)(r=(e=t.parent).parent)&&r.parent?((n=r.parent).left===r?n.left=t:n.right=t,t.parent=n):(t.parent=null,this._root=t),i=t.left,s=t.right,t===e.left?(r&&(r.left===e?(e.right?(r.left=e.right,r.left.parent=r):r.left=null,e.right=r,r.parent=e):(i?(r.right=i,i.parent=r):r.right=null,t.left=r,r.parent=t)),s?(e.left=s,s.parent=e):e.left=null,t.right=e,e.parent=t):(r&&(r.right===e?(e.left?(r.right=e.left,r.right.parent=r):r.right=null,e.left=r,r.parent=e):(s?(r.left=s,s.parent=r):r.left=null,t.right=r,r.parent=t)),i?(e.right=i,i.parent=e):e.right=null,t.left=e,e.parent=t)},r.prototype.replace=function(t,e){t.parent?t===t.parent.left?t.parent.left=e:t.parent.right=e:this._root=e,e&&(e.parent=t.parent)},r.prototype.minNode=function(t){if(void 0===t&&(t=this._root),t)for(;t.left;)t=t.left;return t},r.prototype.maxNode=function(t){if(void 0===t&&(t=this._root),t)for(;t.right;)t=t.right;return t},r.prototype.insert=function(t,e){var r=this._root,n=null,i=this._compare;if(this._noDuplicates)for(;r;){if(n=r,0===i(r.key,t))return;r=i(r.key,t)<0?r.right:r.left}else for(;r;)n=r,r=i(r.key,t)<0?r.right:r.left;return r={key:t,data:e,left:null,right:null,parent:n},n?i(n.key,r.key)<0?n.right=r:n.left=r:this._root=r,this.splay(r),this._size++,r},r.prototype.find=function(t){for(var e=this._root,r=this._compare;e;){var n=r(e.key,t);if(n<0)e=e.right;else{if(!(n>0))return e;e=e.left}}return null},r.prototype.contains=function(t){for(var e=this._root,r=this._compare;e;){var n=r(t,e.key);if(0===n)return!0;e=n<0?e.left:e.right}return!1},r.prototype.remove=function(t){var e=this.find(t);if(!e)return!1;if(this.splay(e),e.left)if(e.right){var r=this.minNode(e.right);r.parent!==e&&(this.replace(r,r.right),r.right=e.right,r.right.parent=r),this.replace(e,r),r.left=e.left,r.left.parent=r}else this.replace(e,e.left);else this.replace(e,e.right);return this._size--,!0},r.prototype.removeNode=function(t){if(!t)return!1;if(this.splay(t),t.left)if(t.right){var e=this.minNode(t.right);e.parent!==t&&(this.replace(e,e.right),e.right=t.right,e.right.parent=e),this.replace(t,e),e.left=t.left,e.left.parent=e}else this.replace(t,t.left);else this.replace(t,t.right);return this._size--,!0},r.prototype.erase=function(t){var e=this.find(t);if(e){this.splay(e);var r=e.left,n=e.right,i=null;r&&(r.parent=null,i=this.maxNode(r),this.splay(i),this._root=i),n&&(r?i.right=n:this._root=n,n.parent=i),this._size--}},r.prototype.pop=function(){var t=this._root,e=null;if(t){for(;t.left;)t=t.left;e={key:t.key,data:t.data},this.remove(t.key)}return e},r.prototype.next=function(t){var e=t;if(e)if(e.right)for(e=e.right;e&&e.left;)e=e.left;else for(e=t.parent;e&&e.right===t;)t=e,e=e.parent;return e},r.prototype.prev=function(t){var e=t;if(e)if(e.left)for(e=e.left;e&&e.right;)e=e.right;else for(e=t.parent;e&&e.left===t;)t=e,e=e.parent;return e},r.prototype.forEach=function(t){for(var e=this._root,r=[],n=!1,i=0;!n;)e?(r.push(e),e=e.left):r.length>0?(t(e=r.pop(),i++),e=e.right):n=!0;return this},r.prototype.range=function(t,e,r,n){for(var i=[],s=this._compare,o=this._root;0!==i.length||o;)if(o)i.push(o),o=o.left;else{if(s((o=i.pop()).key,e)>0)break;if(s(o.key,t)>=0&&r.call(n,o))return this;o=o.right}return this},r.prototype.keys=function(){for(var t=this._root,e=[],r=[],n=!1;!n;)t?(e.push(t),t=t.left):e.length>0?(t=e.pop(),r.push(t.key),t=t.right):n=!0;return r},r.prototype.values=function(){for(var t=this._root,e=[],r=[],n=!1;!n;)t?(e.push(t),t=t.left):e.length>0?(t=e.pop(),r.push(t.data),t=t.right):n=!0;return r},r.prototype.at=function(t){for(var e=this._root,r=[],n=!1,i=0;!n;)if(e)r.push(e),e=e.left;else if(r.length>0){if(e=r.pop(),i===t)return e;i++,e=e.right}else n=!0;return null},r.prototype.load=function(t,e,r){if(void 0===t&&(t=[]),void 0===e&&(e=[]),void 0===r&&(r=!1),0!==this._size)throw new Error("bulk-load: tree is not empty");var n=t.length;return r&&s(t,e,0,n-1,this._compare),this._root=i(null,t,e,0,n),this._size=n,this},r.prototype.min=function(){var t=this.minNode(this._root);return t?t.key:null},r.prototype.max=function(){var t=this.maxNode(this._root);return t?t.key:null},r.prototype.isEmpty=function(){return null===this._root},n.size.get=function(){return this._size},r.createTree=function(t,e,n,i,s){return new r(n,s).load(t,e,i)},Object.defineProperties(r.prototype,n);function o(t,e,r){null===e?(t.inOut=!1,t.otherInOut=!0):(t.isSubject===e.isSubject?(t.inOut=!e.inOut,t.otherInOut=e.otherInOut):(t.inOut=!e.otherInOut,t.otherInOut=e.isVertical()?!e.inOut:e.inOut),e&&(t.prevInResult=!a(e,r)||e.isVertical()?e.prevInResult:e)),t.inResult=a(t,r)}function a(t,e){switch(t.type){case 0:switch(e){case 0:return!t.otherInOut;case 1:return t.otherInOut;case 2:return t.isSubject&&t.otherInOut||!t.isSubject&&!t.otherInOut;case 3:return!0}break;case 2:return 0===e||1===e;case 3:return 2===e;case 1:return!1}return!1}var h=function(t,e,r,n,i){this.left=e,this.point=t,this.otherEvent=r,this.isSubject=n,this.type=i||0,this.inOut=!1,this.otherInOut=!1,this.prevInResult=null,this.inResult=!1,this.resultInOut=!1,this.isExteriorRing=!0};function u(t,e){return t[0]===e[0]&&t[1]===e[1]}function c(t,e,r){return(t[0]-r[0])*(e[1]-r[1])-(e[0]-r[0])*(t[1]-r[1])}function l(t,e){var r=t.point,n=e.point;return r[0]>n[0]?1:r[0]<n[0]?-1:r[1]!==n[1]?r[1]>n[1]?1:-1:function(t,e,r,n){return t.left!==e.left?t.left?1:-1:0!==c(r,t.otherEvent.point,e.otherEvent.point)?t.isBelow(e.otherEvent.point)?-1:1:!t.isSubject&&e.isSubject?1:-1}(t,e,r)}function f(t,e,r){var n=new h(e,!1,t,t.isSubject),i=new h(e,!0,t.otherEvent,t.isSubject);return u(t.point,t.otherEvent.point)&&console.warn("what is that, a collapsed segment?",t),n.contourId=i.contourId=t.contourId,l(i,t.otherEvent)>0&&(t.otherEvent.left=!0,i.left=!1),t.otherEvent.otherEvent=i,t.otherEvent=n,r.push(i),r.push(n),r}function p(t,e){return t[0]*e[1]-t[1]*e[0]}function d(t,e){return t[0]*e[0]+t[1]*e[1]}function y(t,e,r){var n=function(t,e,r,n,i){var s=[e[0]-t[0],e[1]-t[1]],o=[n[0]-r[0],n[1]-r[1]];function a(t,e,r){return[t[0]+e*r[0],t[1]+e*r[1]]}var h=[r[0]-t[0],r[1]-t[1]],u=p(s,o),c=u*u,l=d(s,s);if(c>0){var f=p(h,o)/u;if(f<0||f>1)return null;var y=p(h,s)/u;return y<0||y>1?null:0===f||1===f?i?null:[a(t,f,s)]:0===y||1===y?i?null:[a(r,y,o)]:[a(t,f,s)]}if((c=(u=p(h,s))*u)>0)return null;var v=d(s,h)/l,g=v+d(s,o)/l,m=Math.min(v,g),w=Math.max(v,g);return m<=1&&w>=0?1===m?i?null:[a(t,m>0?m:0,s)]:0===w?i?null:[a(t,w<1?w:1,s)]:i&&0===m&&1===w?null:[a(t,m>0?m:0,s),a(t,w<1?w:1,s)]:null}(t.point,t.otherEvent.point,e.point,e.otherEvent.point),i=n?n.length:0;if(0===i)return 0;if(1===i&&(u(t.point,e.point)||u(t.otherEvent.point,e.otherEvent.point)))return 0;if(2===i&&t.isSubject===e.isSubject)return 0;if(1===i)return u(t.point,n[0])||u(t.otherEvent.point,n[0])||f(t,n[0],r),u(e.point,n[0])||u(e.otherEvent.point,n[0])||f(e,n[0],r),1;var s=[],o=!1,a=!1;return u(t.point,e.point)?o=!0:1===l(t,e)?s.push(e,t):s.push(t,e),u(t.otherEvent.point,e.otherEvent.point)?a=!0:1===l(t.otherEvent,e.otherEvent)?s.push(e.otherEvent,t.otherEvent):s.push(t.otherEvent,e.otherEvent),o&&a||o?(e.type=1,t.type=e.inOut===t.inOut?2:3,o&&!a&&f(s[1].otherEvent,s[0].point,r),2):a?(f(s[0],s[1].point,r),3):s[0]!==s[3].otherEvent?(f(s[0],s[1].point,r),f(s[1],s[2].point,r),3):(f(s[0],s[1].point,r),f(s[3].otherEvent,s[2].point,r),3)}function v(t,e){if(t===e)return 0;if(0!==c(t.point,t.otherEvent.point,e.point)||0!==c(t.point,t.otherEvent.point,e.otherEvent.point))return u(t.point,e.point)?t.isBelow(e.otherEvent.point)?-1:1:t.point[0]===e.point[0]?t.point[1]<e.point[1]?-1:1:1===l(t,e)?e.isAbove(t.point)?-1:1:t.isBelow(e.point)?-1:1;if(t.isSubject!==e.isSubject)return t.isSubject?-1:1;var r=t.point,n=e.point;return r[0]===n[0]&&r[1]===n[1]?(r=t.otherEvent.point,n=e.otherEvent.point,r[0]===n[0]&&r[1]===n[1]?0:t.contourId>e.contourId?1:-1):1===l(t,e)?1:-1}function g(t,e,r,n){var i=t+1,s=e.length;if(i>s-1)return t-1;for(var o=e[t].point,a=e[i].point;i<s&&a[0]===o[0]&&a[1]===o[1];){if(!r[i])return i;a=e[++i].point}for(i=t-1;r[i]&&i>=n;)i--;return i}function m(t,e){var r,n,i,s=function(t){var e,r,n,i,s=[];for(r=0,n=t.length;r<n;r++)((e=t[r]).left&&e.inResult||!e.left&&e.otherEvent.inResult)&&s.push(e);for(var o=!1;!o;)for(o=!0,r=0,n=s.length;r<n;r++)r+1<n&&1===l(s[r],s[r+1])&&(i=s[r],s[r]=s[r+1],s[r+1]=i,o=!1);for(r=0,n=s.length;r<n;r++)(e=s[r]).pos=r;for(r=0,n=s.length;r<n;r++)(e=s[r]).left||(i=e.pos,e.pos=e.otherEvent.pos,e.otherEvent.pos=i);return s}(t),o={},a=[];for(r=0,n=s.length;r<n;r++)if(!o[r]){var h=[[]];s[r].isExteriorRing?2===e&&!s[r].isSubject&&a.length>1?a[a.length-1].push(h[0]):a.push(h):2!==e||s[r].isSubject||0!==a.length?0===a.length?a.push([[h]]):a[a.length-1].push(h[0]):a.push(h);var u=a.length-1,c=r,f=s[r].point;for(h[0].push(f);c>=r;)i=s[c],o[c]=!0,i.left?(i.resultInOut=!1,i.contourId=u):(i.otherEvent.resultInOut=!0,i.otherEvent.contourId=u),o[c=i.pos]=!0,h[0].push(s[c].point),c=g(c,s,o,r);i=s[c=-1===c?r:c],o[c]=o[i.pos]=!0,i.otherEvent.resultInOut=!0,i.otherEvent.contourId=u}return a}h.prototype.isBelow=function(t){var e=this.point,r=this.otherEvent.point;return this.left?(e[0]-t[0])*(r[1]-t[1])-(r[0]-t[0])*(e[1]-t[1])>0:(r[0]-t[0])*(e[1]-t[1])-(e[0]-t[0])*(r[1]-t[1])>0},h.prototype.isAbove=function(t){return!this.isBelow(t)},h.prototype.isVertical=function(){return this.point[0]===this.otherEvent.point[0]},h.prototype.clone=function(){var t=new h(this.point,this.left,this.otherEvent,this.isSubject,this.type);return t.inResult=this.inResult,t.prevInResult=this.prevInResult,t.isExteriorRing=this.isExteriorRing,t.inOut=this.inOut,t.otherInOut=this.otherInOut,t};var w=b,M=b;function b(t,e){if(!(this instanceof b))return new b(t,e);if(this.data=t||[],this.length=this.data.length,this.compare=e||_,this.length>0)for(var r=(this.length>>1)-1;r>=0;r--)this._down(r)}function _(t,e){return t<e?-1:t>e?1:0}b.prototype={push:function(t){this.data.push(t),this.length++,this._up(this.length-1)},pop:function(){if(0!==this.length){var t=this.data[0];return this.length--,this.length>0&&(this.data[0]=this.data[this.length],this._down(0)),this.data.pop(),t}},peek:function(){return this.data[0]},_up:function(t){for(var e=this.data,r=this.compare,n=e[t];t>0;){var i=t-1>>1,s=e[i];if(r(n,s)>=0)break;e[t]=s,t=i}e[t]=n},_down:function(t){for(var e=this.data,r=this.compare,n=this.length>>1,i=e[t];t<n;){var s=1+(t<<1),o=s+1,a=e[s];if(o<this.length&&r(e[o],a)<0&&(s=o,a=e[o]),r(a,i)>=0)break;e[t]=a,t=s}e[t]=i}},w.default=M;var x=Math.max,E=Math.min,S=0;function A(t,e,r,n,i,s){var o,a,u,c,f,p;for(o=0,a=t.length-1;o<a;o++)if(u=t[o],c=t[o+1],f=new h(u,!1,void 0,e),p=new h(c,!1,f,e),f.otherEvent=p,u[0]!==c[0]||u[1]!==c[1]){f.contourId=p.contourId=r,s||(f.isExteriorRing=!1,p.isExteriorRing=!1),l(f,p)>0?p.left=!0:f.left=!0;var d=u[0],y=u[1];i[0]=E(i[0],d),i[1]=E(i[1],y),i[2]=x(i[2],d),i[3]=x(i[3],y),n.push(f),n.push(p)}}var I=[];function P(t,e,n){"number"==typeof t[0][0][0]&&(t=[t]),"number"==typeof e[0][0][0]&&(e=[e]);var i=function(t,e,r){var n=null;return t.length*e.length==0&&(0===r?n=I:2===r?n=t:1!==r&&3!==r||(n=0===t.length?e:t)),n}(t,e,n);if(i)return i===I?null:i;var s=[1/0,1/0,-1/0,-1/0],a=[1/0,1/0,-1/0,-1/0],h=function(t,e,r,n,i){var s,o,a,h,u,c,f=new w(null,l);for(a=0,h=t.length;a<h;a++)for(u=0,c=(s=t[a]).length;u<c;u++)(o=0===u)&&S++,A(s[u],!0,S,f,r,o);for(a=0,h=e.length;a<h;a++)for(u=0,c=(s=e[a]).length;u<c;u++)o=0===u,2===i&&(o=!1),o&&S++,A(s[u],!1,S,f,n,o);return f}(t,e,s,a,n);return(i=function(t,e,r,n,i){var s=null;return(r[0]>n[2]||n[0]>r[2]||r[1]>n[3]||n[1]>r[3])&&(0===i?s=I:2===i?s=t:1!==i&&3!==i||(s=t.concat(e))),s}(t,e,s,a,n))?i===I?null:i:m(function(t,e,n,i,s,a){for(var h,u,c,l=new r(v),f=[],p=Math.min(i[2],s[2]);0!==t.length;){var d=t.pop();if(f.push(d),0===a&&d.point[0]>p||2===a&&d.point[0]>i[2])break;if(d.left){u=h=l.insert(d),h=h!==(c=l.minNode())?l.prev(h):null,u=l.next(u);var g=h?h.key:null;if(o(d,g,a),u&&2===y(d,u.key,t)&&(o(d,g,a),o(d,u.key,a)),h&&2===y(h.key,d,t)){var m=h;o(g,(m=m!==c?l.prev(m):null)?m.key:null,a),o(d,g,a)}}else d=d.otherEvent,u=h=l.find(d),h&&u&&(h=h!==c?l.prev(h):null,u=l.next(u),l.remove(d),u&&h&&y(h.key,u.key,t))}return f}(h,0,0,s,a,n),n)}var N={UNION:1,DIFFERENCE:2,INTERSECTION:0,XOR:3};t.union=function(t,e){return P(t,e,1)},t.diff=function(t,e){return P(t,e,2)},t.xor=function(t,e){return P(t,e,3)},t.intersection=function(t,e){return P(t,e,0)},t.operations=N,Object.defineProperty(t,"__esModule",{value:!0})}(e)},2023:function(t,e,r){var n;t=r.nmd(t),n=function(){var t=null,e={};u("monochrome",null,[[0,0],[100,0]]),u("red",[-26,18],[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]),u("orange",[18,46],[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]),u("yellow",[46,62],[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]),u("green",[62,178],[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]),u("blue",[178,257],[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]),u("purple",[257,282],[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]),u("pink",[282,334],[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]]);var r=[],n=function(e){if(void 0!==(e=e||{}).seed&&null!==e.seed&&e.seed===parseInt(e.seed,10))t=e.seed;else if("string"==typeof e.seed)t=function(t){for(var e=0,r=0;r!==t.length&&!(e>=Number.MAX_SAFE_INTEGER);r++)e+=t.charCodeAt(r);return e}(e.seed);else{if(void 0!==e.seed&&null!==e.seed)throw new TypeError("The seed value must be an integer or string");t=null}var a,h;if(null!==e.count&&void 0!==e.count){for(var u=e.count,l=[],p=0;p<e.count;p++)r.push(!1);for(e.count=null;u>l.length;){var d=n(e);null!==t&&(e.seed=t),l.push(d)}return e.count=u,l}return function(t,e){switch(e.format){case"hsvArray":return t;case"hslArray":return f(t);case"hsl":var r=f(t);return"hsl("+r[0]+", "+r[1]+"%, "+r[2]+"%)";case"hsla":var n=f(t),i=e.alpha||Math.random();return"hsla("+n[0]+", "+n[1]+"%, "+n[2]+"%, "+i+")";case"rgbArray":return c(t);case"rgb":return"rgb("+c(t).join(", ")+")";case"rgba":var s=c(t);return i=e.alpha||Math.random(),"rgba("+s.join(", ")+", "+i+")";default:return function(t){var e=c(t);function r(t){var e=t.toString(16);return 1==e.length?"0"+e:e}return"#"+r(e[0])+r(e[1])+r(e[2])}(t)}}([a=i(e),h=s(a,e),o(a,h,e)],e)};function i(t){if(r.length>0){var n=h(o=function(t){if(isNaN(t)){if("string"==typeof t)if(e[t]){var r=e[t];if(r.hueRange)return r.hueRange}else if(t.match(/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i))return a(l(t)[0]).hueRange}else{var n=parseInt(t);if(n<360&&n>0)return a(t).hueRange}return[0,360]}(t.hue)),i=(o[1]-o[0])/r.length,s=parseInt((n-o[0])/i);return!0===r[s]?s=(s+2)%r.length:r[s]=!0,(n=h(o=[(o[0]+s*i)%359,(o[0]+(s+1)*i)%359]))<0&&(n=360+n),n}var o;return(n=h(o=function(t){if("number"==typeof parseInt(t)){var r=parseInt(t);if(r<360&&r>0)return[r,r]}if("string"==typeof t)if(e[t]){var n=e[t];if(n.hueRange)return n.hueRange}else if(t.match(/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i)){var i=l(t)[0];return[i,i]}return[0,360]}(t.hue)))<0&&(n=360+n),n}function s(t,e){if("monochrome"===e.hue)return 0;if("random"===e.luminosity)return h([0,100]);var r=function(t){return a(t).saturationRange}(t),n=r[0],i=r[1];switch(e.luminosity){case"bright":n=55;break;case"dark":n=i-10;break;case"light":i=55}return h([n,i])}function o(t,e,r){var n=function(t,e){for(var r=a(t).lowerBounds,n=0;n<r.length-1;n++){var i=r[n][0],s=r[n][1],o=r[n+1][0],h=r[n+1][1];if(e>=i&&e<=o){var u=(h-s)/(o-i);return u*e+(s-u*i)}}return 0}(t,e),i=100;switch(r.luminosity){case"dark":i=n+20;break;case"light":n=(i+n)/2;break;case"random":n=0,i=100}return h([n,i])}function a(t){for(var r in t>=334&&t<=360&&(t-=360),e){var n=e[r];if(n.hueRange&&t>=n.hueRange[0]&&t<=n.hueRange[1])return e[r]}return"Color not found"}function h(e){if(null===t){var r=Math.random();return r+=.618033988749895,r%=1,Math.floor(e[0]+r*(e[1]+1-e[0]))}var n=e[1]||1,i=e[0]||0,s=(t=(9301*t+49297)%233280)/233280;return Math.floor(i+s*(n-i))}function u(t,r,n){var i=n[0][0],s=n[n.length-1][0],o=n[n.length-1][1],a=n[0][1];e[t]={hueRange:r,lowerBounds:n,saturationRange:[i,s],brightnessRange:[o,a]}}function c(t){var e=t[0];0===e&&(e=1),360===e&&(e=359),e/=360;var r=t[1]/100,n=t[2]/100,i=Math.floor(6*e),s=6*e-i,o=n*(1-r),a=n*(1-s*r),h=n*(1-(1-s)*r),u=256,c=256,l=256;switch(i){case 0:u=n,c=h,l=o;break;case 1:u=a,c=n,l=o;break;case 2:u=o,c=n,l=h;break;case 3:u=o,c=a,l=n;break;case 4:u=h,c=o,l=n;break;case 5:u=n,c=o,l=a}return[Math.floor(255*u),Math.floor(255*c),Math.floor(255*l)]}function l(t){t=3===(t=t.replace(/^#/,"")).length?t.replace(/(.)/g,"$1$1"):t;var e=parseInt(t.substr(0,2),16)/255,r=parseInt(t.substr(2,2),16)/255,n=parseInt(t.substr(4,2),16)/255,i=Math.max(e,r,n),s=i-Math.min(e,r,n),o=i?s/i:0;switch(i){case e:return[(r-n)/s%6*60||0,o,i];case r:return[60*((n-e)/s+2)||0,o,i];case n:return[60*((e-r)/s+4)||0,o,i]}}function f(t){var e=t[0],r=t[1]/100,n=t[2]/100,i=(2-r)*n;return[e,Math.round(r*n/(i<1?i:2-i)*1e4)/100,i/2*100]}return n}(),t&&t.exports&&(e=t.exports=n),e.randomColor=n},5003:function(t,e){(function(){"use strict";e.stripBOM=function(t){return"\ufeff"===t[0]?t.substring(1):t}}).call(this)},5821:function(t,e,r){(function(){"use strict";var t,n,i,s,o,a={}.hasOwnProperty;t=r(5532),n=r(9355).defaults,s=function(t){return"string"==typeof t&&(t.indexOf("&")>=0||t.indexOf(">")>=0||t.indexOf("<")>=0)},o=function(t){return"<![CDATA["+i(t)+"]]>"},i=function(t){return t.replace("]]>","]]]]><![CDATA[>")},e.Builder=function(){function e(t){var e,r,i;for(e in this.options={},r=n[.2])a.call(r,e)&&(i=r[e],this.options[e]=i);for(e in t)a.call(t,e)&&(i=t[e],this.options[e]=i)}return e.prototype.buildObject=function(e){var r,i,h,u,c,l;return r=this.options.attrkey,i=this.options.charkey,1===Object.keys(e).length&&this.options.rootName===n[.2].rootName?e=e[c=Object.keys(e)[0]]:c=this.options.rootName,l=this,h=function(t,e){var n,u,c,f,p,d;if("object"!=typeof e)l.options.cdata&&s(e)?t.raw(o(e)):t.txt(e);else for(p in e)if(a.call(e,p))if(u=e[p],p===r){if("object"==typeof u)for(n in u)d=u[n],t=t.att(n,d)}else if(p===i)t=l.options.cdata&&s(u)?t.raw(o(u)):t.txt(u);else if(Array.isArray(u))for(f in u)a.call(u,f)&&(t="string"==typeof(c=u[f])?l.options.cdata&&s(c)?t.ele(p).raw(o(c)).up():t.ele(p,c).up():h(t.ele(p),c).up());else"object"==typeof u?t=h(t.ele(p),u).up():"string"==typeof u&&l.options.cdata&&s(u)?t=t.ele(p).raw(o(u)).up():(null==u&&(u=""),t=t.ele(p,u.toString()).up());return t},u=t.create(c,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),h(u,e).end(this.options.renderOpts)},e}()}).call(this)},9355:function(t,e){(function(){e.defaults={.1:{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:"\n"},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(this)},510:function(t,e,r){(function(){"use strict";var t,n,i,s,o,a,h,u,c=function(t,e){return function(){return t.apply(e,arguments)}},l={}.hasOwnProperty;h=r(6099),i=r(7187),t=r(5003),a=r(598),u=r(5663).setImmediate,n=r(9355).defaults,s=function(t){return"object"==typeof t&&null!=t&&0===Object.keys(t).length},o=function(t,e){var r,n;for(r=0,n=t.length;r<n;r++)e=(0,t[r])(e);return e},e.Parser=function(r){function i(t){var r,i,s;if(this.parseString=c(this.parseString,this),this.reset=c(this.reset,this),this.assignOrPush=c(this.assignOrPush,this),this.processAsync=c(this.processAsync,this),!(this instanceof e.Parser))return new e.Parser(t);for(r in this.options={},i=n[.2])l.call(i,r)&&(s=i[r],this.options[r]=s);for(r in t)l.call(t,r)&&(s=t[r],this.options[r]=s);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(a.normalize)),this.reset()}return function(t,e){for(var r in e)l.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(i,r),i.prototype.processAsync=function(){var t,e;try{return this.remaining.length<=this.options.chunkSize?(t=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(t),this.saxParser.close()):(t=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(t),u(this.processAsync))}catch(t){if(e=t,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(e)}},i.prototype.assignOrPush=function(t,e,r){return e in t?(t[e]instanceof Array||(t[e]=[t[e]]),t[e].push(r)):this.options.explicitArray?t[e]=[r]:t[e]=r},i.prototype.reset=function(){var t,e,r,n,i;return this.removeAllListeners(),this.saxParser=h.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=(i=this,function(t){if(i.saxParser.resume(),!i.saxParser.errThrown)return i.saxParser.errThrown=!0,i.emit("error",t)}),this.saxParser.onend=function(t){return function(){if(!t.saxParser.ended)return t.saxParser.ended=!0,t.emit("end",t.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,n=[],t=this.options.attrkey,e=this.options.charkey,this.saxParser.onopentag=function(r){return function(i){var s,a,h,u,c;if((h={})[e]="",!r.options.ignoreAttrs)for(s in c=i.attributes)l.call(c,s)&&(t in h||r.options.mergeAttrs||(h[t]={}),a=r.options.attrValueProcessors?o(r.options.attrValueProcessors,i.attributes[s]):i.attributes[s],u=r.options.attrNameProcessors?o(r.options.attrNameProcessors,s):s,r.options.mergeAttrs?r.assignOrPush(h,u,a):h[t][u]=a);return h["#name"]=r.options.tagNameProcessors?o(r.options.tagNameProcessors,i.name):i.name,r.options.xmlns&&(h[r.options.xmlnskey]={uri:i.uri,local:i.local}),n.push(h)}}(this),this.saxParser.onclosetag=function(t){return function(){var r,i,a,h,u,c,f,p,d,y,v;if(c=(f=n.pop())["#name"],t.options.explicitChildren&&t.options.preserveChildrenOrder||delete f["#name"],!0===f.cdata&&(r=f.cdata,delete f.cdata),y=n[n.length-1],f[e].match(/^\s*$/)&&!r?(i=f[e],delete f[e]):(t.options.trim&&(f[e]=f[e].trim()),t.options.normalize&&(f[e]=f[e].replace(/\s{2,}/g," ").trim()),f[e]=t.options.valueProcessors?o(t.options.valueProcessors,f[e]):f[e],1===Object.keys(f).length&&e in f&&!t.EXPLICIT_CHARKEY&&(f=f[e])),s(f)&&(f=""!==t.options.emptyTag?t.options.emptyTag:i),null!=t.options.validator){v="/"+function(){var t,e,r;for(r=[],t=0,e=n.length;t<e;t++)u=n[t],r.push(u["#name"]);return r}().concat(c).join("/");try{f=t.options.validator(v,y&&y[c],f)}catch(e){a=e,t.emit("error",a)}}if(t.options.explicitChildren&&!t.options.mergeAttrs&&"object"==typeof f)if(t.options.preserveChildrenOrder){if(y){for(h in y[t.options.childkey]=y[t.options.childkey]||[],p={},f)l.call(f,h)&&(p[h]=f[h]);y[t.options.childkey].push(p),delete f["#name"],1===Object.keys(f).length&&e in f&&!t.EXPLICIT_CHARKEY&&(f=f[e])}}else u={},t.options.attrkey in f&&(u[t.options.attrkey]=f[t.options.attrkey],delete f[t.options.attrkey]),!t.options.charsAsChildren&&t.options.charkey in f&&(u[t.options.charkey]=f[t.options.charkey],delete f[t.options.charkey]),Object.getOwnPropertyNames(f).length>0&&(u[t.options.childkey]=f),f=u;return n.length>0?t.assignOrPush(y,c,f):(t.options.explicitRoot&&(d=f,(f={})[c]=d),t.resultObject=f,t.saxParser.ended=!0,t.emit("end",t.resultObject))}}(this),r=function(t){return function(r){var i,s;if(s=n[n.length-1])return s[e]+=r,t.options.explicitChildren&&t.options.preserveChildrenOrder&&t.options.charsAsChildren&&(t.options.includeWhiteChars||""!==r.replace(/\\n/g,"").trim())&&(s[t.options.childkey]=s[t.options.childkey]||[],(i={"#name":"__text__"})[e]=r,t.options.normalize&&(i[e]=i[e].replace(/\s{2,}/g," ").trim()),s[t.options.childkey].push(i)),s}}(this),this.saxParser.ontext=r,this.saxParser.oncdata=function(t){var e;if(e=r(t))return e.cdata=!0}},i.prototype.parseString=function(e,r){var n;null!=r&&"function"==typeof r&&(this.on("end",(function(t){return this.reset(),r(null,t)})),this.on("error",(function(t){return this.reset(),r(t)})));try{return""===(e=e.toString()).trim()?(this.emit("end",null),!0):(e=t.stripBOM(e),this.options.async?(this.remaining=e,u(this.processAsync),this.saxParser):this.saxParser.write(e).close())}catch(t){if(n=t,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",n),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw n}},i}(i.EventEmitter),e.parseString=function(t,r,n){var i,s;return null!=n?("function"==typeof n&&(i=n),"object"==typeof r&&(s=r)):("function"==typeof r&&(i=r),s={}),new e.Parser(s).parseString(t,i)}}).call(this)},598:function(t,e){(function(){"use strict";var t;t=new RegExp(/(?!xmlns)^.*:/),e.normalize=function(t){return t.toLowerCase()},e.firstCharLowerCase=function(t){return t.charAt(0).toLowerCase()+t.slice(1)},e.stripPrefix=function(e){return e.replace(t,"")},e.parseNumbers=function(t){return isNaN(t)||(t=t%1==0?parseInt(t,10):parseFloat(t)),t},e.parseBooleans=function(t){return/^(?:true|false)$/i.test(t)&&(t="true"===t.toLowerCase()),t}}).call(this)},8175:function(t,e,r){(function(){"use strict";var t,n,i,s,o={}.hasOwnProperty;n=r(9355),t=r(5821),i=r(510),s=r(598),e.defaults=n.defaults,e.processors=s,e.ValidationError=function(t){function e(t){this.message=t}return function(t,e){for(var r in e)o.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(e,Error),e}(),e.Builder=t.Builder,e.Parser=i.Parser,e.parseString=i.parseString}).call(this)},6099:(t,e,r)=>{!function(t){t.parser=function(t,e){return new n(t,e)},t.SAXParser=n,t.SAXStream=o,t.createStream=function(t,e){return new o(t,e)},t.MAX_BUFFER_LENGTH=65536;var e=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function n(r,i){if(!(this instanceof n))return new n(r,i);var s=this;!function(t){for(var r=0,n=e.length;r<n;r++)t[e[r]]=""}(s),s.q=s.c="",s.bufferCheckPosition=t.MAX_BUFFER_LENGTH,s.opt=i||{},s.opt.lowercase=s.opt.lowercase||s.opt.lowercasetags,s.looseCase=s.opt.lowercase?"toLowerCase":"toUpperCase",s.tags=[],s.closed=s.closedRoot=s.sawRoot=!1,s.tag=s.error=null,s.strict=!!r,s.noscript=!(!r&&!s.opt.noscript),s.state=E.BEGIN,s.ENTITIES=Object.create(t.ENTITIES),s.attribList=[],s.opt.xmlns&&(s.ns=Object.create(y)),s.trackPosition=!1!==s.opt.position,s.trackPosition&&(s.position=s.line=s.column=0),S(s,"onready")}t.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(t){function e(){this.__proto__=t}return e.prototype=t,new e}),Object.getPrototypeOf||(Object.getPrototypeOf=function(t){return t.__proto__}),Object.keys||(Object.keys=function(t){var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}),n.prototype={end:function(){T(this)},write:function(r){var n=this;if(this.error)throw this.error;if(n.closed)return N(n,"Cannot write after close. Assign an onready handler.");if(null===r)return T(n);for(var i=0,s="";n.c=s=r.charAt(i++);)switch(n.trackPosition&&(n.position++,"\n"===s?(n.line++,n.column=0):n.column++),n.state){case E.BEGIN:"<"===s?(n.state=E.OPEN_WAKA,n.startTagPosition=n.position):M(a,s)&&(O(n,"Non-whitespace before first tag."),n.textNode=s,n.state=E.TEXT);continue;case E.TEXT:if(n.sawRoot&&!n.closedRoot){for(var o=i-1;s&&"<"!==s&&"&"!==s;)(s=r.charAt(i++))&&n.trackPosition&&(n.position++,"\n"===s?(n.line++,n.column=0):n.column++);n.textNode+=r.substring(o,i-1)}"<"===s?(n.state=E.OPEN_WAKA,n.startTagPosition=n.position):(!M(a,s)||n.sawRoot&&!n.closedRoot||O(n,"Text data outside of root node."),"&"===s?n.state=E.TEXT_ENTITY:n.textNode+=s);continue;case E.SCRIPT:"<"===s?n.state=E.SCRIPT_ENDING:n.script+=s;continue;case E.SCRIPT_ENDING:"/"===s?n.state=E.CLOSE_TAG:(n.script+="<"+s,n.state=E.SCRIPT);continue;case E.OPEN_WAKA:if("!"===s)n.state=E.SGML_DECL,n.sgmlDecl="";else if(w(a,s));else if(w(v,s))n.state=E.OPEN_TAG,n.tagName=s;else if("/"===s)n.state=E.CLOSE_TAG,n.tagName="";else if("?"===s)n.state=E.PROC_INST,n.procInstName=n.procInstBody="";else{if(O(n,"Unencoded <"),n.startTagPosition+1<n.position){var h=n.position-n.startTagPosition;s=new Array(h).join(" ")+s}n.textNode+="<"+s,n.state=E.TEXT}continue;case E.SGML_DECL:"[CDATA["===(n.sgmlDecl+s).toUpperCase()?(A(n,"onopencdata"),n.state=E.CDATA,n.sgmlDecl="",n.cdata=""):n.sgmlDecl+s==="--"?(n.state=E.COMMENT,n.comment="",n.sgmlDecl=""):"DOCTYPE"===(n.sgmlDecl+s).toUpperCase()?(n.state=E.DOCTYPE,(n.doctype||n.sawRoot)&&O(n,"Inappropriately located doctype declaration"),n.doctype="",n.sgmlDecl=""):">"===s?(A(n,"onsgmldeclaration",n.sgmlDecl),n.sgmlDecl="",n.state=E.TEXT):w(c,s)?(n.state=E.SGML_DECL_QUOTED,n.sgmlDecl+=s):n.sgmlDecl+=s;continue;case E.SGML_DECL_QUOTED:s===n.q&&(n.state=E.SGML_DECL,n.q=""),n.sgmlDecl+=s;continue;case E.DOCTYPE:">"===s?(n.state=E.TEXT,A(n,"ondoctype",n.doctype),n.doctype=!0):(n.doctype+=s,"["===s?n.state=E.DOCTYPE_DTD:w(c,s)&&(n.state=E.DOCTYPE_QUOTED,n.q=s));continue;case E.DOCTYPE_QUOTED:n.doctype+=s,s===n.q&&(n.q="",n.state=E.DOCTYPE);continue;case E.DOCTYPE_DTD:n.doctype+=s,"]"===s?n.state=E.DOCTYPE:w(c,s)&&(n.state=E.DOCTYPE_DTD_QUOTED,n.q=s);continue;case E.DOCTYPE_DTD_QUOTED:n.doctype+=s,s===n.q&&(n.state=E.DOCTYPE_DTD,n.q="");continue;case E.COMMENT:"-"===s?n.state=E.COMMENT_ENDING:n.comment+=s;continue;case E.COMMENT_ENDING:"-"===s?(n.state=E.COMMENT_ENDED,n.comment=P(n.opt,n.comment),n.comment&&A(n,"oncomment",n.comment),n.comment=""):(n.comment+="-"+s,n.state=E.COMMENT);continue;case E.COMMENT_ENDED:">"!==s?(O(n,"Malformed comment"),n.comment+="--"+s,n.state=E.COMMENT):n.state=E.TEXT;continue;case E.CDATA:"]"===s?n.state=E.CDATA_ENDING:n.cdata+=s;continue;case E.CDATA_ENDING:"]"===s?n.state=E.CDATA_ENDING_2:(n.cdata+="]"+s,n.state=E.CDATA);continue;case E.CDATA_ENDING_2:">"===s?(n.cdata&&A(n,"oncdata",n.cdata),A(n,"onclosecdata"),n.cdata="",n.state=E.TEXT):"]"===s?n.cdata+="]":(n.cdata+="]]"+s,n.state=E.CDATA);continue;case E.PROC_INST:"?"===s?n.state=E.PROC_INST_ENDING:w(a,s)?n.state=E.PROC_INST_BODY:n.procInstName+=s;continue;case E.PROC_INST_BODY:if(!n.procInstBody&&w(a,s))continue;"?"===s?n.state=E.PROC_INST_ENDING:n.procInstBody+=s;continue;case E.PROC_INST_ENDING:">"===s?(A(n,"onprocessinginstruction",{name:n.procInstName,body:n.procInstBody}),n.procInstName=n.procInstBody="",n.state=E.TEXT):(n.procInstBody+="?"+s,n.state=E.PROC_INST_BODY);continue;case E.OPEN_TAG:w(g,s)?n.tagName+=s:(C(n),">"===s?D(n):"/"===s?n.state=E.OPEN_TAG_SLASH:(M(a,s)&&O(n,"Invalid character in tag name"),n.state=E.ATTRIB));continue;case E.OPEN_TAG_SLASH:">"===s?(D(n,!0),R(n)):(O(n,"Forward-slash in opening tag not followed by >"),n.state=E.ATTRIB);continue;case E.ATTRIB:if(w(a,s))continue;">"===s?D(n):"/"===s?n.state=E.OPEN_TAG_SLASH:w(v,s)?(n.attribName=s,n.attribValue="",n.state=E.ATTRIB_NAME):O(n,"Invalid attribute name");continue;case E.ATTRIB_NAME:"="===s?n.state=E.ATTRIB_VALUE:">"===s?(O(n,"Attribute without value"),n.attribValue=n.attribName,L(n),D(n)):w(a,s)?n.state=E.ATTRIB_NAME_SAW_WHITE:w(g,s)?n.attribName+=s:O(n,"Invalid attribute name");continue;case E.ATTRIB_NAME_SAW_WHITE:if("="===s)n.state=E.ATTRIB_VALUE;else{if(w(a,s))continue;O(n,"Attribute without value"),n.tag.attributes[n.attribName]="",n.attribValue="",A(n,"onattribute",{name:n.attribName,value:""}),n.attribName="",">"===s?D(n):w(v,s)?(n.attribName=s,n.state=E.ATTRIB_NAME):(O(n,"Invalid attribute name"),n.state=E.ATTRIB)}continue;case E.ATTRIB_VALUE:if(w(a,s))continue;w(c,s)?(n.q=s,n.state=E.ATTRIB_VALUE_QUOTED):(O(n,"Unquoted attribute value"),n.state=E.ATTRIB_VALUE_UNQUOTED,n.attribValue=s);continue;case E.ATTRIB_VALUE_QUOTED:if(s!==n.q){"&"===s?n.state=E.ATTRIB_VALUE_ENTITY_Q:n.attribValue+=s;continue}L(n),n.q="",n.state=E.ATTRIB_VALUE_CLOSED;continue;case E.ATTRIB_VALUE_CLOSED:w(a,s)?n.state=E.ATTRIB:">"===s?D(n):"/"===s?n.state=E.OPEN_TAG_SLASH:w(v,s)?(O(n,"No whitespace between attributes"),n.attribName=s,n.attribValue="",n.state=E.ATTRIB_NAME):O(n,"Invalid attribute name");continue;case E.ATTRIB_VALUE_UNQUOTED:if(M(f,s)){"&"===s?n.state=E.ATTRIB_VALUE_ENTITY_U:n.attribValue+=s;continue}L(n),">"===s?D(n):n.state=E.ATTRIB;continue;case E.CLOSE_TAG:if(n.tagName)">"===s?R(n):w(g,s)?n.tagName+=s:n.script?(n.script+="</"+n.tagName,n.tagName="",n.state=E.SCRIPT):(M(a,s)&&O(n,"Invalid tagname in closing tag"),n.state=E.CLOSE_TAG_SAW_WHITE);else{if(w(a,s))continue;M(v,s)?n.script?(n.script+="</"+s,n.state=E.SCRIPT):O(n,"Invalid tagname in closing tag."):n.tagName=s}continue;case E.CLOSE_TAG_SAW_WHITE:if(w(a,s))continue;">"===s?R(n):O(n,"Invalid characters in closing tag");continue;case E.TEXT_ENTITY:case E.ATTRIB_VALUE_ENTITY_Q:case E.ATTRIB_VALUE_ENTITY_U:switch(n.state){case E.TEXT_ENTITY:var u=E.TEXT,p="textNode";break;case E.ATTRIB_VALUE_ENTITY_Q:u=E.ATTRIB_VALUE_QUOTED,p="attribValue";break;case E.ATTRIB_VALUE_ENTITY_U:u=E.ATTRIB_VALUE_UNQUOTED,p="attribValue"}";"===s?(n[p]+=j(n),n.entity="",n.state=u):w(l,s)?n.entity+=s:(O(n,"Invalid character entity"),n[p]+="&"+n.entity+s,n.entity="",n.state=u);continue;default:throw new Error(n,"Unknown state: "+n.state)}return n.position>=n.bufferCheckPosition&&function(r){for(var n=Math.max(t.MAX_BUFFER_LENGTH,10),i=0,s=0,o=e.length;s<o;s++){var a=r[e[s]].length;if(a>n)switch(e[s]){case"textNode":I(r);break;case"cdata":A(r,"oncdata",r.cdata),r.cdata="";break;case"script":A(r,"onscript",r.script),r.script="";break;default:N(r,"Max buffer length exceeded: "+e[s])}i=Math.max(i,a)}r.bufferCheckPosition=t.MAX_BUFFER_LENGTH-i+r.position}(n),n},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){var t;I(t=this),""!==t.cdata&&(A(t,"oncdata",t.cdata),t.cdata=""),""!==t.script&&(A(t,"onscript",t.script),t.script="")}};try{var i=r(7923).Stream}catch(t){i=function(){}}var s=t.EVENTS.filter((function(t){return"error"!==t&&"end"!==t}));function o(t,e){if(!(this instanceof o))return new o(t,e);i.apply(this),this._parser=new n(t,e),this.writable=!0,this.readable=!0;var r=this;this._parser.onend=function(){r.emit("end")},this._parser.onerror=function(t){r.emit("error",t),r._parser.error=null},this._decoder=null,s.forEach((function(t){Object.defineProperty(r,"on"+t,{get:function(){return r._parser["on"+t]},set:function(e){if(!e)return r.removeAllListeners(t),r._parser["on"+t]=e;r.on(t,e)},enumerable:!0,configurable:!1})}))}o.prototype=Object.create(i.prototype,{constructor:{value:o}}),o.prototype.write=function(t){if("function"==typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(t)){if(!this._decoder){var e=r(2553).s;this._decoder=new e("utf8")}t=this._decoder.write(t)}return this._parser.write(t.toString()),this.emit("data",t),!0},o.prototype.end=function(t){return t&&t.length&&this.write(t),this._parser.end(),!0},o.prototype.on=function(t,e){var r=this;return r._parser["on"+t]||-1===s.indexOf(t)||(r._parser["on"+t]=function(){var e=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);e.splice(0,0,t),r.emit.apply(r,e)}),i.prototype.on.call(r,t,e)};var a="\r\n\t ",h="0124356789",u="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",c="'\"",l=h+u+"#",f=a+">",p="http://www.w3.org/XML/1998/namespace",d="http://www.w3.org/2000/xmlns/",y={xml:p,xmlns:d};a=m(a),h=m(h),u=m(u);var v=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,g=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040\.\d-]/;function m(t){return t.split("").reduce((function(t,e){return t[e]=!0,t}),{})}function w(t,e){return function(t){return"[object RegExp]"===Object.prototype.toString.call(t)}(t)?!!e.match(t):t[e]}function M(t,e){return!w(t,e)}c=m(c),l=m(l),f=m(f);var b,_,x,E=0;for(var E in t.STATE={BEGIN:E++,TEXT:E++,TEXT_ENTITY:E++,OPEN_WAKA:E++,SGML_DECL:E++,SGML_DECL_QUOTED:E++,DOCTYPE:E++,DOCTYPE_QUOTED:E++,DOCTYPE_DTD:E++,DOCTYPE_DTD_QUOTED:E++,COMMENT_STARTING:E++,COMMENT:E++,COMMENT_ENDING:E++,COMMENT_ENDED:E++,CDATA:E++,CDATA_ENDING:E++,CDATA_ENDING_2:E++,PROC_INST:E++,PROC_INST_BODY:E++,PROC_INST_ENDING:E++,OPEN_TAG:E++,OPEN_TAG_SLASH:E++,ATTRIB:E++,ATTRIB_NAME:E++,ATTRIB_NAME_SAW_WHITE:E++,ATTRIB_VALUE:E++,ATTRIB_VALUE_QUOTED:E++,ATTRIB_VALUE_CLOSED:E++,ATTRIB_VALUE_UNQUOTED:E++,ATTRIB_VALUE_ENTITY_Q:E++,ATTRIB_VALUE_ENTITY_U:E++,CLOSE_TAG:E++,CLOSE_TAG_SAW_WHITE:E++,SCRIPT:E++,SCRIPT_ENDING:E++},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach((function(e){var r=t.ENTITIES[e],n="number"==typeof r?String.fromCharCode(r):r;t.ENTITIES[e]=n})),t.STATE)t.STATE[t.STATE[E]]=E;function S(t,e,r){t[e]&&t[e](r)}function A(t,e,r){t.textNode&&I(t),S(t,e,r)}function I(t){t.textNode=P(t.opt,t.textNode),t.textNode&&S(t,"ontext",t.textNode),t.textNode=""}function P(t,e){return t.trim&&(e=e.trim()),t.normalize&&(e=e.replace(/\s+/g," ")),e}function N(t,e){return I(t),t.trackPosition&&(e+="\nLine: "+t.line+"\nColumn: "+t.column+"\nChar: "+t.c),e=new Error(e),t.error=e,S(t,"onerror",e),t}function T(t){return t.closedRoot||O(t,"Unclosed root tag"),t.state!==E.BEGIN&&t.state!==E.TEXT&&N(t,"Unexpected end"),I(t),t.c="",t.closed=!0,S(t,"onend"),n.call(t,t.strict,t.opt),t}function O(t,e){if("object"!=typeof t||!(t instanceof n))throw new Error("bad call to strictFail");t.strict&&N(t,e)}function C(t){t.strict||(t.tagName=t.tagName[t.looseCase]());var e=t.tags[t.tags.length-1]||t,r=t.tag={name:t.tagName,attributes:{}};t.opt.xmlns&&(r.ns=e.ns),t.attribList.length=0}function k(t,e){var r=t.indexOf(":")<0?["",t]:t.split(":"),n=r[0],i=r[1];return e&&"xmlns"===t&&(n="xmlns",i=""),{prefix:n,local:i}}function L(t){if(t.strict||(t.attribName=t.attribName[t.looseCase]()),-1!==t.attribList.indexOf(t.attribName)||t.tag.attributes.hasOwnProperty(t.attribName))return t.attribName=t.attribValue="";if(t.opt.xmlns){var e=k(t.attribName,!0),r=e.prefix,n=e.local;if("xmlns"===r)if("xml"===n&&t.attribValue!==p)O(t,"xml: prefix must be bound to "+p+"\nActual: "+t.attribValue);else if("xmlns"===n&&t.attribValue!==d)O(t,"xmlns: prefix must be bound to "+d+"\nActual: "+t.attribValue);else{var i=t.tag,s=t.tags[t.tags.length-1]||t;i.ns===s.ns&&(i.ns=Object.create(s.ns)),i.ns[n]=t.attribValue}t.attribList.push([t.attribName,t.attribValue])}else t.tag.attributes[t.attribName]=t.attribValue,A(t,"onattribute",{name:t.attribName,value:t.attribValue});t.attribName=t.attribValue=""}function D(t,e){if(t.opt.xmlns){var r=t.tag,n=k(t.tagName);r.prefix=n.prefix,r.local=n.local,r.uri=r.ns[n.prefix]||"",r.prefix&&!r.uri&&(O(t,"Unbound namespace prefix: "+JSON.stringify(t.tagName)),r.uri=n.prefix);var i=t.tags[t.tags.length-1]||t;r.ns&&i.ns!==r.ns&&Object.keys(r.ns).forEach((function(e){A(t,"onopennamespace",{prefix:e,uri:r.ns[e]})}));for(var s=0,o=t.attribList.length;s<o;s++){var a=t.attribList[s],h=a[0],u=a[1],c=k(h,!0),l=c.prefix,f=c.local,p=""==l?"":r.ns[l]||"",d={name:h,value:u,prefix:l,local:f,uri:p};l&&"xmlns"!=l&&!p&&(O(t,"Unbound namespace prefix: "+JSON.stringify(l)),d.uri=l),t.tag.attributes[h]=d,A(t,"onattribute",d)}t.attribList.length=0}t.tag.isSelfClosing=!!e,t.sawRoot=!0,t.tags.push(t.tag),A(t,"onopentag",t.tag),e||(t.noscript||"script"!==t.tagName.toLowerCase()?t.state=E.TEXT:t.state=E.SCRIPT,t.tag=null,t.tagName=""),t.attribName=t.attribValue="",t.attribList.length=0}function R(t){if(!t.tagName)return O(t,"Weird empty close tag."),t.textNode+="</>",void(t.state=E.TEXT);if(t.script){if("script"!==t.tagName)return t.script+="</"+t.tagName+">",t.tagName="",void(t.state=E.SCRIPT);A(t,"onscript",t.script),t.script=""}var e=t.tags.length,r=t.tagName;t.strict||(r=r[t.looseCase]());for(var n=r;e--&&t.tags[e].name!==n;)O(t,"Unexpected close tag");if(e<0)return O(t,"Unmatched closing tag: "+t.tagName),t.textNode+="</"+t.tagName+">",void(t.state=E.TEXT);t.tagName=r;for(var i=t.tags.length;i-- >e;){var s=t.tag=t.tags.pop();t.tagName=t.tag.name,A(t,"onclosetag",t.tagName);var o={};for(var a in s.ns)o[a]=s.ns[a];var h=t.tags[t.tags.length-1]||t;t.opt.xmlns&&s.ns!==h.ns&&Object.keys(s.ns).forEach((function(e){var r=s.ns[e];A(t,"onclosenamespace",{prefix:e,uri:r})}))}0===e&&(t.closedRoot=!0),t.tagName=t.attribValue=t.attribName="",t.attribList.length=0,t.state=E.TEXT}function j(t){var e,r=t.entity,n=r.toLowerCase(),i="";return t.ENTITIES[r]?t.ENTITIES[r]:t.ENTITIES[n]?t.ENTITIES[n]:("#"===(r=n).charAt(0)&&("x"===r.charAt(1)?(r=r.slice(2),i=(e=parseInt(r,16)).toString(16)):(r=r.slice(1),i=(e=parseInt(r,10)).toString(10))),r=r.replace(/^0+/,""),i.toLowerCase()!==r?(O(t,"Invalid character entity"),"&"+t.entity+";"):String.fromCodePoint(e))}E=t.STATE,String.fromCodePoint||(b=String.fromCharCode,_=Math.floor,x=function(){var t,e,r=16384,n=[],i=-1,s=arguments.length;if(!s)return"";for(var o="";++i<s;){var a=Number(arguments[i]);if(!isFinite(a)||a<0||a>1114111||_(a)!=a)throw RangeError("Invalid code point: "+a);a<=65535?n.push(a):(t=55296+((a-=65536)>>10),e=a%1024+56320,n.push(t,e)),(i+1==s||n.length>r)&&(o+=b.apply(null,n),n.length=0)}return o},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:x,configurable:!0,writable:!0}):String.fromCodePoint=x)}(e)},7923:(t,e,r)=>{var n=r(624);function i(){n.call(this)}i.prototype=new n,t.exports=i,i.Stream=i,i.prototype.pipe=function(t,e){var r=this;function n(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",n),t.on("drain",i),t._isStdio||e&&!1===e.end||(r.on("end",o),r.on("close",a));var s=!1;function o(){s||(s=!0,t.end())}function a(){s||(s=!0,"function"==typeof t.destroy&&t.destroy())}function h(t){if(u(),!this.hasListeners("error"))throw t}function u(){r.off("data",n),t.off("drain",i),r.off("end",o),r.off("close",a),r.off("error",h),t.off("error",h),r.off("end",u),r.off("close",u),t.off("end",u),t.off("close",u)}return r.on("error",h),t.on("error",h),r.on("end",u),r.on("close",u),t.on("end",u),t.on("close",u),t.emit("pipe",r),t}},2553:(t,e,r)=>{"use strict";var n=r(396).Buffer,i=n.isEncoding||function(t){switch((t=""+t)&&t.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 s(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){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 t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(n.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=h,this.end=u,e=4;break;case"utf8":this.fillLast=a,e=4;break;case"base64":this.text=c,this.end=l,e=3;break;default:return this.write=f,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function o(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function a(t){var e=this.lastTotal-this.lastNeed,r=function(t,e,r){if(128!=(192&e[0]))return t.lastNeed=0,"<22>";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"<22>";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"<22>"}}(this,t);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function h(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function u(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function c(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function l(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function f(t){return t.toString(this.encoding)}function p(t){return t&&t.length?this.write(t):""}e.s=s,s.prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""},s.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"<22>":e},s.prototype.text=function(t,e){var r=function(t,e,r){var n=e.length-1;if(n<r)return 0;var i=o(e[n]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--n<r||-2===i?0:(i=o(e[n]))>=0?(i>0&&(t.lastNeed=i-2),i):--n<r||-2===i?0:(i=o(e[n]))>=0?(i>0&&(2===i?i=0:t.lastNeed=i-3),i):0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)},s.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},396:(t,e,r)=>{var n=r(8764),i=n.Buffer;function s(t,e){for(var r in t)e[r]=t[r]}function o(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(s(n,e),e.Buffer=o),s(i,o),o.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},o.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},o.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},o.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},5663:(t,e)=>{var r={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5};for(var n in r)"millisecond"===n?r.ms=r[n]:r[n.charAt(0)]=r[n],r[n+"s"]=r[n];function i(t){this.count=0;var e=function(t){var e=t.match(s);return e&&r[e[2]]?e.slice(1):null}(t);e&&(this.time=Number(e[0])*r[e[1]],this.type=e[1])}i.prototype.do=function(t){this.time&&(this.interval=setInterval((function(){e.count++,t.call(e)}),this.time));var e=this;return this},i.prototype.stop=function(){return this.interval&&(clearInterval(this.interval),delete this.interval),this};var s=/^\s*(\d+(?:\.\d+)?)\s*([a-z]+)\s*$/},300:(t,e,r)=>{"use strict";r.r(e),r.d(e,{Converter:()=>hr});var n=r(8175),i=r.n(n),s=r(1257),o=r(8899),a=484813681109536e-20,h=Math.PI/2,u=1e-10,c=.017453292519943295,l=57.29577951308232,f=Math.PI/4,p=2*Math.PI,d=3.14159265359,y={greenwich:0,lisbon:-9.131906111111,paris:2.337229166667,bogota:-74.080916666667,madrid:-3.687938888889,rome:12.452333333333,bern:7.439583333333,jakarta:106.807719444444,ferro:-17.666666666667,brussels:4.367975,stockholm:18.058277777778,athens:23.7163375,oslo:10.722916666667};const v={ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937}};var g=/[\s_\-\/\(\)]/g;function m(t,e){if(t[e])return t[e];for(var r,n=Object.keys(t),i=e.toLowerCase().replace(g,""),s=-1;++s<n.length;)if((r=n[s]).toLowerCase().replace(g,"")===i)return t[r]}function w(t){var e,r,n,i={},s=t.split("+").map((function(t){return t.trim()})).filter((function(t){return t})).reduce((function(t,e){var r=e.split("=");return r.push(!0),t[r[0].toLowerCase()]=r[1],t}),{}),o={proj:"projName",datum:"datumCode",rf:function(t){i.rf=parseFloat(t)},lat_0:function(t){i.lat0=t*c},lat_1:function(t){i.lat1=t*c},lat_2:function(t){i.lat2=t*c},lat_ts:function(t){i.lat_ts=t*c},lon_0:function(t){i.long0=t*c},lon_1:function(t){i.long1=t*c},lon_2:function(t){i.long2=t*c},alpha:function(t){i.alpha=parseFloat(t)*c},lonc:function(t){i.longc=t*c},x_0:function(t){i.x0=parseFloat(t)},y_0:function(t){i.y0=parseFloat(t)},k_0:function(t){i.k0=parseFloat(t)},k:function(t){i.k0=parseFloat(t)},a:function(t){i.a=parseFloat(t)},b:function(t){i.b=parseFloat(t)},r_a:function(){i.R_A=!0},zone:function(t){i.zone=parseInt(t,10)},south:function(){i.utmSouth=!0},towgs84:function(t){i.datum_params=t.split(",").map((function(t){return parseFloat(t)}))},to_meter:function(t){i.to_meter=parseFloat(t)},units:function(t){i.units=t;var e=m(v,t);e&&(i.to_meter=e.to_meter)},from_greenwich:function(t){i.from_greenwich=t*c},pm:function(t){var e=m(y,t);i.from_greenwich=(e||parseFloat(t))*c},nadgrids:function(t){"@null"===t?i.datumCode="none":i.nadgrids=t},axis:function(t){var e="ewnsud";3===t.length&&-1!==e.indexOf(t.substr(0,1))&&-1!==e.indexOf(t.substr(1,1))&&-1!==e.indexOf(t.substr(2,1))&&(i.axis=t)}};for(e in s)r=s[e],e in o?"function"==typeof(n=o[e])?n(r):i[n]=r:i[e]=r;return"string"==typeof i.datumCode&&"WGS84"!==i.datumCode&&(i.datumCode=i.datumCode.toLowerCase()),i}var M=/\s/,b=/[A-Za-z]/,_=/[A-Za-z84]/,x=/[,\]]/,E=/[\d\.E\-\+]/;function S(t){if("string"!=typeof t)throw new Error("not a string");this.text=t.trim(),this.level=0,this.place=0,this.root=null,this.stack=[],this.currentObject=null,this.state=1}function A(t,e,r){Array.isArray(e)&&(r.unshift(e),e=null);var n=e?{}:t,i=r.reduce((function(t,e){return I(e,t),t}),n);e&&(t[e]=i)}function I(t,e){if(Array.isArray(t)){var r=t.shift();if("PARAMETER"===r&&(r=t.shift()),1===t.length)return Array.isArray(t[0])?(e[r]={},void I(t[0],e[r])):void(e[r]=t[0]);if(t.length)if("TOWGS84"!==r){if("AXIS"===r)return r in e||(e[r]=[]),void e[r].push(t);var n;switch(Array.isArray(r)||(e[r]={}),r){case"UNIT":case"PRIMEM":case"VERT_DATUM":return e[r]={name:t[0].toLowerCase(),convert:t[1]},void(3===t.length&&I(t[2],e[r]));case"SPHEROID":case"ELLIPSOID":return e[r]={name:t[0],a:t[1],rf:t[2]},void(4===t.length&&I(t[3],e[r]));case"PROJECTEDCRS":case"PROJCRS":case"GEOGCS":case"GEOCCS":case"PROJCS":case"LOCAL_CS":case"GEODCRS":case"GEODETICCRS":case"GEODETICDATUM":case"EDATUM":case"ENGINEERINGDATUM":case"VERT_CS":case"VERTCRS":case"VERTICALCRS":case"COMPD_CS":case"COMPOUNDCRS":case"ENGINEERINGCRS":case"ENGCRS":case"FITTED_CS":case"LOCAL_DATUM":case"DATUM":return t[0]=["name",t[0]],void A(e,r,t);default:for(n=-1;++n<t.length;)if(!Array.isArray(t[n]))return I(t,e[r]);return A(e,r,t)}}else e[r]=t;else e[r]=!0}else e[t]=!0}function P(t){return.017453292519943295*t}function N(t){var e=new S(t).output(),r=e.shift(),n=e.shift();e.unshift(["name",n]),e.unshift(["type",r]);var i={};return I(e,i),function(t){if("GEOGCS"===t.type?t.projName="longlat":"LOCAL_CS"===t.type?(t.projName="identity",t.local=!0):"object"==typeof t.PROJECTION?t.projName=Object.keys(t.PROJECTION)[0]:t.projName=t.PROJECTION,t.AXIS){for(var e="",r=0,n=t.AXIS.length;r<n;++r){var i=t.AXIS[r][0].toLowerCase();-1!==i.indexOf("north")?e+="n":-1!==i.indexOf("south")?e+="s":-1!==i.indexOf("east")?e+="e":-1!==i.indexOf("west")&&(e+="w")}2===e.length&&(e+="u"),3===e.length&&(t.axis=e)}t.UNIT&&(t.units=t.UNIT.name.toLowerCase(),"metre"===t.units&&(t.units="meter"),t.UNIT.convert&&("GEOGCS"===t.type?t.DATUM&&t.DATUM.SPHEROID&&(t.to_meter=t.UNIT.convert*t.DATUM.SPHEROID.a):t.to_meter=t.UNIT.convert));var s=t.GEOGCS;function o(e){return e*(t.to_meter||1)}"GEOGCS"===t.type&&(s=t),s&&(s.DATUM?t.datumCode=s.DATUM.name.toLowerCase():t.datumCode=s.name.toLowerCase(),"d_"===t.datumCode.slice(0,2)&&(t.datumCode=t.datumCode.slice(2)),"new_zealand_geodetic_datum_1949"!==t.datumCode&&"new_zealand_1949"!==t.datumCode||(t.datumCode="nzgd49"),"wgs_1984"!==t.datumCode&&"world_geodetic_system_1984"!==t.datumCode||("Mercator_Auxiliary_Sphere"===t.PROJECTION&&(t.sphere=!0),t.datumCode="wgs84"),"_ferro"===t.datumCode.slice(-6)&&(t.datumCode=t.datumCode.slice(0,-6)),"_jakarta"===t.datumCode.slice(-8)&&(t.datumCode=t.datumCode.slice(0,-8)),~t.datumCode.indexOf("belge")&&(t.datumCode="rnb72"),s.DATUM&&s.DATUM.SPHEROID&&(t.ellps=s.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),"international"===t.ellps.toLowerCase().slice(0,13)&&(t.ellps="intl"),t.a=s.DATUM.SPHEROID.a,t.rf=parseFloat(s.DATUM.SPHEROID.rf,10)),s.DATUM&&s.DATUM.TOWGS84&&(t.datum_params=s.DATUM.TOWGS84),~t.datumCode.indexOf("osgb_1936")&&(t.datumCode="osgb36"),~t.datumCode.indexOf("osni_1952")&&(t.datumCode="osni52"),(~t.datumCode.indexOf("tm65")||~t.datumCode.indexOf("geodetic_datum_of_1965"))&&(t.datumCode="ire65"),"ch1903+"===t.datumCode&&(t.datumCode="ch1903"),~t.datumCode.indexOf("israel")&&(t.datumCode="isr93")),t.b&&!isFinite(t.b)&&(t.b=t.a),[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_2","Standard_Parallel_2"],["false_easting","False_Easting"],["false_northing","False_Northing"],["central_meridian","Central_Meridian"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_Of_Center"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",P],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",P],["x0","false_easting",o],["y0","false_northing",o],["long0","central_meridian",P],["lat0","latitude_of_origin",P],["lat0","standard_parallel_1",P],["lat1","standard_parallel_1",P],["lat2","standard_parallel_2",P],["azimuth","Azimuth"],["alpha","azimuth",P],["srsCode","name"]].forEach((function(e){return function(t,e){var r=e[0],n=e[1];!(r in t)&&n in t&&(t[r]=t[n],3===e.length&&(t[r]=e[2](t[r])))}(t,e)})),t.long0||!t.longc||"Albers_Conic_Equal_Area"!==t.projName&&"Lambert_Azimuthal_Equal_Area"!==t.projName||(t.long0=t.longc),t.lat_ts||!t.lat1||"Stereographic_South_Pole"!==t.projName&&"Polar Stereographic (variant B)"!==t.projName||(t.lat0=P(t.lat1>0?90:-90),t.lat_ts=t.lat1)}(i),i}function T(t){var e=this;if(2===arguments.length){var r=arguments[1];"string"==typeof r?"+"===r.charAt(0)?T[t]=w(arguments[1]):T[t]=N(arguments[1]):T[t]=r}else if(1===arguments.length){if(Array.isArray(t))return t.map((function(t){Array.isArray(t)?T.apply(e,t):T(t)}));if("string"==typeof t){if(t in T)return T[t]}else"EPSG"in t?T["EPSG:"+t.EPSG]=t:"ESRI"in t?T["ESRI:"+t.ESRI]=t:"IAU2000"in t?T["IAU2000:"+t.IAU2000]=t:console.log(t);return}}S.prototype.readCharicter=function(){var t=this.text[this.place++];if(4!==this.state)for(;M.test(t);){if(this.place>=this.text.length)return;t=this.text[this.place++]}switch(this.state){case 1:return this.neutral(t);case 2:return this.keyword(t);case 4:return this.quoted(t);case 5:return this.afterquote(t);case 3:return this.number(t);case-1:return}},S.prototype.afterquote=function(t){if('"'===t)return this.word+='"',void(this.state=4);if(x.test(t))return this.word=this.word.trim(),void this.afterItem(t);throw new Error("havn't handled \""+t+'" in afterquote yet, index '+this.place)},S.prototype.afterItem=function(t){return","===t?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=1)):"]"===t?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=1,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},S.prototype.number=function(t){if(!E.test(t)){if(x.test(t))return this.word=parseFloat(this.word),void this.afterItem(t);throw new Error("havn't handled \""+t+'" in number yet, index '+this.place)}this.word+=t},S.prototype.quoted=function(t){'"'!==t?this.word+=t:this.state=5},S.prototype.keyword=function(t){if(_.test(t))this.word+=t;else{if("["===t){var e=[];return e.push(this.word),this.level++,null===this.root?this.root=e:this.currentObject.push(e),this.stack.push(this.currentObject),this.currentObject=e,void(this.state=1)}if(!x.test(t))throw new Error("havn't handled \""+t+'" in keyword yet, index '+this.place);this.afterItem(t)}},S.prototype.neutral=function(t){if(b.test(t))return this.word=t,void(this.state=2);if('"'===t)return this.word="",void(this.state=4);if(E.test(t))return this.word=t,void(this.state=3);if(!x.test(t))throw new Error("havn't handled \""+t+'" in neutral yet, index '+this.place);this.afterItem(t)},S.prototype.output=function(){for(;this.place<this.text.length;)this.readCharicter();if(-1===this.state)return this.root;throw new Error('unable to parse string "'+this.text+'". State is '+this.state)},function(t){t("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),t("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),t("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"),t.WGS84=t["EPSG:4326"],t["EPSG:3785"]=t["EPSG:3857"],t.GOOGLE=t["EPSG:3857"],t["EPSG:900913"]=t["EPSG:3857"],t["EPSG:102113"]=t["EPSG:3857"]}(T);const O=T;var C=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"],k=["3857","900913","3785","102113"];function L(t,e){var r,n;if(t=t||{},!e)return t;for(n in e)void 0!==(r=e[n])&&(t[n]=r);return t}function D(t,e,r){var n=t*e;return r/Math.sqrt(1-n*n)}function R(t){return t<0?-1:1}function j(t){return Math.abs(t)<=d?t:t-R(t)*p}function F(t,e,r){var n=t*r,i=.5*t;return n=Math.pow((1-n)/(1+n),i),Math.tan(.5*(h-e))/n}function G(t,e){for(var r,n,i=.5*t,s=h-2*Math.atan(e),o=0;o<=15;o++)if(r=t*Math.sin(s),s+=n=h-2*Math.atan(e*Math.pow((1-r)/(1+r),i))-s,Math.abs(n)<=1e-10)return s;return-9999}function B(t){return t}var U=[{init:function(){var t=this.b/this.a;this.es=1-t*t,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=D(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)},forward:function(t){var e,r,n=t.x,i=t.y;if(i*l>90&&i*l<-90&&n*l>180&&n*l<-180)return null;if(Math.abs(Math.abs(i)-h)<=u)return null;if(this.sphere)e=this.x0+this.a*this.k0*j(n-this.long0),r=this.y0+this.a*this.k0*Math.log(Math.tan(f+.5*i));else{var s=Math.sin(i),o=F(this.e,i,s);e=this.x0+this.a*this.k0*j(n-this.long0),r=this.y0-this.a*this.k0*Math.log(o)}return t.x=e,t.y=r,t},inverse:function(t){var e,r,n=t.x-this.x0,i=t.y-this.y0;if(this.sphere)r=h-2*Math.atan(Math.exp(-i/(this.a*this.k0)));else{var s=Math.exp(-i/(this.a*this.k0));if(-9999===(r=G(this.e,s)))return null}return e=j(this.long0+n/(this.a*this.k0)),t.x=e,t.y=r,t},names:["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"]},{init:function(){},forward:B,inverse:B,names:["longlat","identity"]}],q={},z=[];function V(t,e){var r=z.length;return t.names?(z[r]=t,t.names.forEach((function(t){q[t.toLowerCase()]=r})),this):(console.log(e),!0)}const W={start:function(){U.forEach(V)},add:V,get:function(t){if(!t)return!1;var e=t.toLowerCase();return void 0!==q[e]&&z[q[e]]?z[q[e]]:void 0}};var X={MERIT:{a:6378137,rf:298.257,ellipseName:"MERIT 1983"},SGS85:{a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},GRS80:{a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},IAU76:{a:6378140,rf:298.257,ellipseName:"IAU 1976"},airy:{a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},APL4:{a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},NWL9D:{a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},mod_airy:{a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},andrae:{a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},aust_SA:{a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},GRS67:{a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},bessel:{a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},bess_nam:{a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},clrk66:{a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},clrk80:{a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},clrk58:{a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},CPM:{a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},delmbr:{a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},engelis:{a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},evrst30:{a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},evrst48:{a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},evrst56:{a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},evrst69:{a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},evrstSS:{a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},fschr60:{a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},fschr60m:{a:6378155,rf:298.3,ellipseName:"Fischer 1960"},fschr68:{a:6378150,rf:298.3,ellipseName:"Fischer 1968"},helmert:{a:6378200,rf:298.3,ellipseName:"Helmert 1906"},hough:{a:6378270,rf:297,ellipseName:"Hough"},intl:{a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},kaula:{a:6378163,rf:298.24,ellipseName:"Kaula 1961"},lerch:{a:6378139,rf:298.257,ellipseName:"Lerch 1979"},mprts:{a:6397300,rf:191,ellipseName:"Maupertius 1738"},new_intl:{a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},plessis:{a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},krass:{a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},SEasia:{a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},walbeck:{a:6376896,b:6355834.8467,ellipseName:"Walbeck"},WGS60:{a:6378165,rf:298.3,ellipseName:"WGS 60"},WGS66:{a:6378145,rf:298.25,ellipseName:"WGS 66"},WGS7:{a:6378135,rf:298.26,ellipseName:"WGS 72"}},$=X.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};X.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};var Y={wgs84:{towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},ch1903:{towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},ggrs87:{towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},nad83:{towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},nad27:{nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},potsdam:{towgs84:"606.0,23.0,413.0",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},carthage:{towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},hermannskogel:{towgs84:"653.0,-212.0,449.0",ellipse:"bessel",datumName:"Hermannskogel"},osni52:{towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},ire65:{towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},rassadiran:{towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},nzgd49:{towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},osgb36:{towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Airy 1830"},s_jtsk:{towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},beduaram:{towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},gunung_segara:{towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},rnb72:{towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"}};function Q(t,e){if(!(this instanceof Q))return new Q(t);e=e||function(t){if(t)throw t};var r=function(t){if(!function(t){return"string"==typeof t}(t))return t;if(function(t){return t in O}(t))return O[t];if(function(t){return C.some((function(e){return t.indexOf(e)>-1}))}(t)){var e=N(t);if(function(t){var e=m(t,"authority");if(e){var r=m(e,"epsg");return r&&k.indexOf(r)>-1}}(e))return O["EPSG:3857"];var r=function(t){var e=m(t,"extension");if(e)return m(e,"proj4")}(e);return r?w(r):e}return function(t){return"+"===t[0]}(t)?w(t):void 0}(t);if("object"==typeof r){var n=Q.projections.get(r.projName);if(n){if(r.datumCode&&"none"!==r.datumCode){var i=m(Y,r.datumCode);i&&(r.datum_params=i.towgs84?i.towgs84.split(","):null,r.ellps=i.ellipse,r.datumName=i.datumName?i.datumName:r.datumCode)}r.k0=r.k0||1,r.axis=r.axis||"enu",r.ellps=r.ellps||"wgs84";var s,o,h,c,l,f,p=function(t,e,r,n,i){if(!t){var s=m(X,n);s||(s=$),t=s.a,e=s.b,r=s.rf}return r&&!e&&(e=(1-1/r)*t),(0===r||Math.abs(t-e)<u)&&(i=!0,e=t),{a:t,b:e,rf:r,sphere:i}}(r.a,r.b,r.rf,r.ellps,r.sphere),d=(s=p.a,o=p.b,p.rf,l=((h=s*s)-(c=o*o))/h,f=0,r.R_A?(h=(s*=1-l*(.16666666666666666+l*(.04722222222222222+.022156084656084655*l)))*s,l=0):f=Math.sqrt(l),{es:l,e:f,ep2:(h-c)/c}),y=r.datum||function(t,e,r,n,i,s){var o={};return o.datum_type=void 0===t||"none"===t?5:4,e&&(o.datum_params=e.map(parseFloat),0===o.datum_params[0]&&0===o.datum_params[1]&&0===o.datum_params[2]||(o.datum_type=1),o.datum_params.length>3&&(0===o.datum_params[3]&&0===o.datum_params[4]&&0===o.datum_params[5]&&0===o.datum_params[6]||(o.datum_type=2,o.datum_params[3]*=a,o.datum_params[4]*=a,o.datum_params[5]*=a,o.datum_params[6]=o.datum_params[6]/1e6+1))),o.a=r,o.b=n,o.es=i,o.ep2=s,o}(r.datumCode,r.datum_params,p.a,p.b,d.es,d.ep2);L(this,r),L(this,n),this.a=p.a,this.b=p.b,this.rf=p.rf,this.sphere=p.sphere,this.es=d.es,this.e=d.e,this.ep2=d.ep2,this.datum=y,this.init(),e(null,this)}else e(t)}else e(t)}Q.projections=W,Q.projections.start();const K=Q;function H(t,e,r){var n,i,s,o,a=t.x,u=t.y,c=t.z?t.z:0;if(u<-h&&u>-1.001*h)u=-h;else if(u>h&&u<1.001*h)u=h;else{if(u<-h)return{x:-1/0,y:-1/0,z:t.z};if(u>h)return{x:1/0,y:1/0,z:t.z}}return a>Math.PI&&(a-=2*Math.PI),i=Math.sin(u),o=Math.cos(u),s=i*i,{x:((n=r/Math.sqrt(1-e*s))+c)*o*Math.cos(a),y:(n+c)*o*Math.sin(a),z:(n*(1-e)+c)*i}}function J(t,e,r,n){var i,s,o,a,h,u,c,l,f,p,d,y,v,g,m,w=t.x,M=t.y,b=t.z?t.z:0;if(i=Math.sqrt(w*w+M*M),s=Math.sqrt(w*w+M*M+b*b),i/r<1e-12){if(g=0,s/r<1e-12)return m=-n,{x:t.x,y:t.y,z:t.z}}else g=Math.atan2(M,w);o=b/s,l=(a=i/s)*(1-e)*(h=1/Math.sqrt(1-e*(2-e)*a*a)),f=o*h,v=0;do{v++,u=e*(c=r/Math.sqrt(1-e*f*f))/(c+(m=i*l+b*f-c*(1-e*f*f))),y=(d=o*(h=1/Math.sqrt(1-u*(2-u)*a*a)))*l-(p=a*(1-u)*h)*f,l=p,f=d}while(y*y>1e-24&&v<30);return{x:g,y:Math.atan(d/Math.abs(p)),z:m}}function Z(t){return 1===t||2===t}function tt(t,e,r){var n,i,s,o=r.x,a=r.y,h=r.z||0,u={};for(s=0;s<3;s++)if(!e||2!==s||void 0!==r.z)switch(0===s?(n=o,i=-1!=="ew".indexOf(t.axis[s])?"x":"y"):1===s?(n=a,i=-1!=="ns".indexOf(t.axis[s])?"y":"x"):(n=h,i="z"),t.axis[s]){case"e":u[i]=n;break;case"w":u[i]=-n;break;case"n":u[i]=n;break;case"s":u[i]=-n;break;case"u":void 0!==r[i]&&(u.z=n);break;case"d":void 0!==r[i]&&(u.z=-n);break;default:return null}return u}function et(t){var e={x:t[0],y:t[1]};return t.length>2&&(e.z=t[2]),t.length>3&&(e.m=t[3]),e}function rt(t){if("function"==typeof Number.isFinite){if(Number.isFinite(t))return;throw new TypeError("coordinates must be finite numbers")}if("number"!=typeof t||t!=t||!isFinite(t))throw new TypeError("coordinates must be finite numbers")}function nt(t,e,r){var n;if(Array.isArray(r)&&(r=et(r)),function(t){rt(t.x),rt(t.y)}(r),t.datum&&e.datum&&function(t,e){return(1===t.datum.datum_type||2===t.datum.datum_type)&&"WGS84"!==e.datumCode||(1===e.datum.datum_type||2===e.datum.datum_type)&&"WGS84"!==t.datumCode}(t,e)&&(r=nt(t,n=new K("WGS84"),r),t=n),"enu"!==t.axis&&(r=tt(t,!1,r)),"longlat"===t.projName)r={x:r.x*c,y:r.y*c,z:r.z||0};else if(t.to_meter&&(r={x:r.x*t.to_meter,y:r.y*t.to_meter,z:r.z||0}),!(r=t.inverse(r)))return;return t.from_greenwich&&(r.x+=t.from_greenwich),r=function(t,e,r){return function(t,e){return t.datum_type===e.datum_type&&!(t.a!==e.a||Math.abs(t.es-e.es)>5e-11)&&(1===t.datum_type?t.datum_params[0]===e.datum_params[0]&&t.datum_params[1]===e.datum_params[1]&&t.datum_params[2]===e.datum_params[2]:2!==t.datum_type||t.datum_params[0]===e.datum_params[0]&&t.datum_params[1]===e.datum_params[1]&&t.datum_params[2]===e.datum_params[2]&&t.datum_params[3]===e.datum_params[3]&&t.datum_params[4]===e.datum_params[4]&&t.datum_params[5]===e.datum_params[5]&&t.datum_params[6]===e.datum_params[6])}(t,e)||5===t.datum_type||5===e.datum_type?r:t.es!==e.es||t.a!==e.a||Z(t.datum_type)||Z(e.datum_type)?(r=H(r,t.es,t.a),Z(t.datum_type)&&(r=function(t,e,r){if(1===e)return{x:t.x+r[0],y:t.y+r[1],z:t.z+r[2]};if(2===e){var n=r[0],i=r[1],s=r[2],o=r[3],a=r[4],h=r[5],u=r[6];return{x:u*(t.x-h*t.y+a*t.z)+n,y:u*(h*t.x+t.y-o*t.z)+i,z:u*(-a*t.x+o*t.y+t.z)+s}}}(r,t.datum_type,t.datum_params)),Z(e.datum_type)&&(r=function(t,e,r){if(1===e)return{x:t.x-r[0],y:t.y-r[1],z:t.z-r[2]};if(2===e){var n=r[0],i=r[1],s=r[2],o=r[3],a=r[4],h=r[5],u=r[6],c=(t.x-n)/u,l=(t.y-i)/u,f=(t.z-s)/u;return{x:c+h*l-a*f,y:-h*c+l+o*f,z:a*c-o*l+f}}}(r,e.datum_type,e.datum_params)),J(r,e.es,e.a,e.b)):r}(t.datum,e.datum,r),e.from_greenwich&&(r={x:r.x-e.from_greenwich,y:r.y,z:r.z||0}),"longlat"===e.projName?r={x:r.x*l,y:r.y*l,z:r.z||0}:(r=e.forward(r),e.to_meter&&(r={x:r.x/e.to_meter,y:r.y/e.to_meter,z:r.z||0})),"enu"!==e.axis?tt(e,!0,r):r}var it=K("WGS84");function st(t,e,r){var n,i,s;return Array.isArray(r)?(n=nt(t,e,r)||{x:NaN,y:NaN},r.length>2?void 0!==t.name&&"geocent"===t.name||void 0!==e.name&&"geocent"===e.name?"number"==typeof n.z?[n.x,n.y,n.z].concat(r.splice(3)):[n.x,n.y,r[2]].concat(r.splice(3)):[n.x,n.y].concat(r.splice(2)):[n.x,n.y]):(i=nt(t,e,r),2===(s=Object.keys(r)).length||s.forEach((function(n){if(void 0!==t.name&&"geocent"===t.name||void 0!==e.name&&"geocent"===e.name){if("x"===n||"y"===n||"z"===n)return}else if("x"===n||"y"===n)return;i[n]=r[n]})),i)}function ot(t){return t instanceof K?t:t.oProj?t.oProj:K(t)}const at=function(t,e,r){t=ot(t);var n,i=!1;return void 0===e?(e=t,t=it,i=!0):(void 0!==e.x||Array.isArray(e))&&(r=e,e=t,t=it,i=!0),e=ot(e),r?st(t,e,r):(n={forward:function(r){return st(t,e,r)},inverse:function(r){return st(e,t,r)}},i&&(n.oProj=e),n)};var ht="AJSAJS",ut="AFAFAF",ct=65,lt=73,ft=79;const pt={forward:dt,inverse:function(t){var e=mt(Mt(t.toUpperCase()));return e.lat&&e.lon?[e.lon,e.lat,e.lon,e.lat]:[e.left,e.bottom,e.right,e.top]},toPoint:yt};function dt(t,e){return e=e||5,function(t,e){var r,n,i,s,o,a,h,u,c,l,f,p="00000"+t.easting,d="00000"+t.northing;return t.zoneNumber+t.zoneLetter+(c=t.easting,l=t.northing,f=wt(t.zoneNumber),r=Math.floor(c/1e5),n=Math.floor(l/1e5)%20,s=ht.charCodeAt(i=f-1),o=ut.charCodeAt(i),u=!1,(a=s+r-1)>90&&(a=a-90+ct-1,u=!0),(a===lt||s<lt&&a>lt||(a>lt||s<lt)&&u)&&a++,(a===ft||s<ft&&a>ft||(a>ft||s<ft)&&u)&&++a===lt&&a++,a>90&&(a=a-90+ct-1),(h=o+n)>86?(h=h-86+ct-1,u=!0):u=!1,(h===lt||o<lt&&h>lt||(h>lt||o<lt)&&u)&&h++,(h===ft||o<ft&&h>ft||(h>ft||o<ft)&&u)&&++h===lt&&h++,h>86&&(h=h-86+ct-1),String.fromCharCode(a)+String.fromCharCode(h))+p.substr(p.length-5,e)+d.substr(d.length-5,e)}(function(t){var e,r,n,i,s,o,a,h=t.lat,u=t.lon,c=6378137,l=.00669438,f=.9996,p=vt(h),d=vt(u);a=Math.floor((u+180)/6)+1,180===u&&(a=60),h>=56&&h<64&&u>=3&&u<12&&(a=32),h>=72&&h<84&&(u>=0&&u<9?a=31:u>=9&&u<21?a=33:u>=21&&u<33?a=35:u>=33&&u<42&&(a=37)),o=vt(6*(a-1)-180+3),e=.006739496752268451,r=c/Math.sqrt(1-l*Math.sin(p)*Math.sin(p)),n=Math.tan(p)*Math.tan(p),i=e*Math.cos(p)*Math.cos(p);var y,v,g=f*r*((s=Math.cos(p)*(d-o))+(1-n+i)*s*s*s/6+(5-18*n+n*n+72*i-58*e)*s*s*s*s*s/120)+5e5,m=f*(c*(.9983242984503243*p-.002514607064228144*Math.sin(2*p)+2639046602129982e-21*Math.sin(4*p)-3.418046101696858e-9*Math.sin(6*p))+r*Math.tan(p)*(s*s/2+(5-n+9*i+4*i*i)*s*s*s*s/24+(61-58*n+n*n+600*i-2.2240339282485886)*s*s*s*s*s*s/720));return h<0&&(m+=1e7),{northing:Math.round(m),easting:Math.round(g),zoneNumber:a,zoneLetter:(y=h,v="Z",84>=y&&y>=72?v="X":72>y&&y>=64?v="W":64>y&&y>=56?v="V":56>y&&y>=48?v="U":48>y&&y>=40?v="T":40>y&&y>=32?v="S":32>y&&y>=24?v="R":24>y&&y>=16?v="Q":16>y&&y>=8?v="P":8>y&&y>=0?v="N":0>y&&y>=-8?v="M":-8>y&&y>=-16?v="L":-16>y&&y>=-24?v="K":-24>y&&y>=-32?v="J":-32>y&&y>=-40?v="H":-40>y&&y>=-48?v="G":-48>y&&y>=-56?v="F":-56>y&&y>=-64?v="E":-64>y&&y>=-72?v="D":-72>y&&y>=-80&&(v="C"),v)}}({lat:t[1],lon:t[0]}),e)}function yt(t){var e=mt(Mt(t.toUpperCase()));return e.lat&&e.lon?[e.lon,e.lat]:[(e.left+e.right)/2,(e.top+e.bottom)/2]}function vt(t){return t*(Math.PI/180)}function gt(t){return t/Math.PI*180}function mt(t){var e=t.northing,r=t.easting,n=t.zoneLetter,i=t.zoneNumber;if(i<0||i>60)return null;var s,o,a,h,u,c,l,f,p,d=.9996,y=6378137,v=.00669438,g=(1-Math.sqrt(.99330562))/(1+Math.sqrt(.99330562)),m=r-5e5,w=e;n<"N"&&(w-=1e7),l=6*(i-1)-180+3,s=.006739496752268451,p=(f=w/d/6367449.145945056)+(3*g/2-27*g*g*g/32)*Math.sin(2*f)+(21*g*g/16-55*g*g*g*g/32)*Math.sin(4*f)+151*g*g*g/96*Math.sin(6*f),o=y/Math.sqrt(1-v*Math.sin(p)*Math.sin(p)),a=Math.tan(p)*Math.tan(p),h=s*Math.cos(p)*Math.cos(p),u=.99330562*y/Math.pow(1-v*Math.sin(p)*Math.sin(p),1.5),c=m/(o*d);var M=p-o*Math.tan(p)/u*(c*c/2-(5+3*a+10*h-4*h*h-9*s)*c*c*c*c/24+(61+90*a+298*h+45*a*a-1.6983531815716497-3*h*h)*c*c*c*c*c*c/720);M=gt(M);var b,_=(c-(1+2*a+h)*c*c*c/6+(5-2*h+28*a-3*h*h+8*s+24*a*a)*c*c*c*c*c/120)/Math.cos(p);if(_=l+gt(_),t.accuracy){var x=mt({northing:t.northing+t.accuracy,easting:t.easting+t.accuracy,zoneLetter:t.zoneLetter,zoneNumber:t.zoneNumber});b={top:x.lat,right:x.lon,bottom:M,left:_}}else b={lat:M,lon:_};return b}function wt(t){var e=t%6;return 0===e&&(e=6),e}function Mt(t){if(t&&0===t.length)throw"MGRSPoint coverting from nothing";for(var e,r=t.length,n=null,i="",s=0;!/[A-Z]/.test(e=t.charAt(s));){if(s>=2)throw"MGRSPoint bad conversion from: "+t;i+=e,s++}var o=parseInt(i,10);if(0===s||s+3>r)throw"MGRSPoint bad conversion from: "+t;var a=t.charAt(s++);if(a<="A"||"B"===a||"Y"===a||a>="Z"||"I"===a||"O"===a)throw"MGRSPoint zone letter "+a+" not handled: "+t;n=t.substring(s,s+=2);for(var h=wt(o),u=function(t,e){for(var r=ht.charCodeAt(e-1),n=1e5,i=!1;r!==t.charCodeAt(0);){if(++r===lt&&r++,r===ft&&r++,r>90){if(i)throw"Bad character: "+t;r=ct,i=!0}n+=1e5}return n}(n.charAt(0),h),c=function(t,e){if(t>"V")throw"MGRSPoint given invalid Northing "+t;for(var r=ut.charCodeAt(e-1),n=0,i=!1;r!==t.charCodeAt(0);){if(++r===lt&&r++,r===ft&&r++,r>86){if(i)throw"Bad character: "+t;r=ct,i=!0}n+=1e5}return n}(n.charAt(1),h);c<bt(a);)c+=2e6;var l=r-s;if(l%2!=0)throw"MGRSPoint has to have an even number \nof digits after the zone letter and two 100km letters - front \nhalf for easting meters, second half for \nnorthing meters"+t;var f,p,d,y=l/2,v=0,g=0;return y>0&&(f=1e5/Math.pow(10,y),p=t.substring(s,s+y),v=parseFloat(p)*f,d=t.substring(s+y),g=parseFloat(d)*f),{easting:v+u,northing:g+c,zoneLetter:a,zoneNumber:o,accuracy:f}}function bt(t){var e;switch(t){case"C":e=11e5;break;case"D":e=2e6;break;case"E":e=28e5;break;case"F":e=37e5;break;case"G":e=46e5;break;case"H":e=55e5;break;case"J":e=64e5;break;case"K":e=73e5;break;case"L":e=82e5;break;case"M":e=91e5;break;case"N":e=0;break;case"P":e=8e5;break;case"Q":e=17e5;break;case"R":e=26e5;break;case"S":e=35e5;break;case"T":e=44e5;break;case"U":e=53e5;break;case"V":e=62e5;break;case"W":e=7e6;break;case"X":e=79e5;break;default:e=-1}if(e>=0)return e;throw"Invalid zone letter: "+t}function _t(t,e,r){if(!(this instanceof _t))return new _t(t,e,r);if(Array.isArray(t))this.x=t[0],this.y=t[1],this.z=t[2]||0;else if("object"==typeof t)this.x=t.x,this.y=t.y,this.z=t.z||0;else if("string"==typeof t&&void 0===e){var n=t.split(",");this.x=parseFloat(n[0],10),this.y=parseFloat(n[1],10),this.z=parseFloat(n[2],10)||0}else this.x=t,this.y=e,this.z=r||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}_t.fromMGRS=function(t){return new _t(yt(t))},_t.prototype.toMGRS=function(t){return dt([this.x,this.y],t)};const xt=_t;var Et=.046875,St=.01953125,At=.01068115234375;function It(t){var e=[];e[0]=1-t*(.25+t*(Et+t*(St+t*At))),e[1]=t*(.75-t*(Et+t*(St+t*At)));var r=t*t;return e[2]=r*(.46875-t*(.013020833333333334+.007120768229166667*t)),r*=t,e[3]=r*(.3645833333333333-.005696614583333333*t),e[4]=r*t*.3076171875,e}function Pt(t,e,r,n){return r*=e,e*=e,n[0]*t-r*(n[1]+e*(n[2]+e*(n[3]+e*n[4])))}function Nt(t,e,r){for(var n=1/(1-e),i=t,s=20;s;--s){var o=Math.sin(i),a=1-e*o*o;if(i-=a=(Pt(i,o,Math.cos(i),r)-t)*(a*Math.sqrt(a))*n,Math.abs(a)<u)return i}return i}const Tt={init:function(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.es&&(this.en=It(this.es),this.ml0=Pt(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))},forward:function(t){var e,r,n,i=t.x,s=t.y,o=j(i-this.long0),a=Math.sin(s),h=Math.cos(s);if(this.es){var c=h*o,l=Math.pow(c,2),f=this.ep2*Math.pow(h,2),p=Math.pow(f,2),d=Math.abs(h)>u?Math.tan(s):0,y=Math.pow(d,2),v=Math.pow(y,2);e=1-this.es*Math.pow(a,2),c/=Math.sqrt(e);var g=Pt(s,a,h,this.en);r=this.a*(this.k0*c*(1+l/6*(1-y+f+l/20*(5-18*y+v+14*f-58*y*f+l/42*(61+179*v-v*y-479*y)))))+this.x0,n=this.a*(this.k0*(g-this.ml0+a*o*c/2*(1+l/12*(5-y+9*f+4*p+l/30*(61+v-58*y+270*f-330*y*f+l/56*(1385+543*v-v*y-3111*y))))))+this.y0}else{var m=h*Math.sin(o);if(Math.abs(Math.abs(m)-1)<u)return 93;if(r=.5*this.a*this.k0*Math.log((1+m)/(1-m))+this.x0,n=h*Math.cos(o)/Math.sqrt(1-Math.pow(m,2)),(m=Math.abs(n))>=1){if(m-1>u)return 93;n=0}else n=Math.acos(n);s<0&&(n=-n),n=this.a*this.k0*(n-this.lat0)+this.y0}return t.x=r,t.y=n,t},inverse:function(t){var e,r,n,i,s=(t.x-this.x0)*(1/this.a),o=(t.y-this.y0)*(1/this.a);if(this.es)if(r=Nt(e=this.ml0+o/this.k0,this.es,this.en),Math.abs(r)<h){var a=Math.sin(r),c=Math.cos(r),l=Math.abs(c)>u?Math.tan(r):0,f=this.ep2*Math.pow(c,2),p=Math.pow(f,2),d=Math.pow(l,2),y=Math.pow(d,2);e=1-this.es*Math.pow(a,2);var v=s*Math.sqrt(e)/this.k0,g=Math.pow(v,2);n=r-(e*=l)*g/(1-this.es)*.5*(1-g/12*(5+3*d-9*f*d+f-4*p-g/30*(61+90*d-252*f*d+45*y+46*f-g/56*(1385+3633*d+4095*y+1574*y*d)))),i=j(this.long0+v*(1-g/6*(1+2*d+f-g/20*(5+28*d+24*y+8*f*d+6*f-g/42*(61+662*d+1320*y+720*y*d))))/c)}else n=h*R(o),i=0;else{var m=Math.exp(s/this.k0),w=.5*(m-1/m),M=this.lat0+o/this.k0,b=Math.cos(M);e=Math.sqrt((1-Math.pow(b,2))/(1+Math.pow(w,2))),n=Math.asin(e),o<0&&(n=-n),i=0===w&&0===b?0:j(Math.atan2(w,b)+this.long0)}return t.x=i,t.y=n,t},names:["Transverse_Mercator","Transverse Mercator","tmerc"]};function Ot(t){var e=Math.exp(t);return(e-1/e)/2}function Ct(t,e){t=Math.abs(t),e=Math.abs(e);var r=Math.max(t,e),n=Math.min(t,e)/(r||1);return r*Math.sqrt(1+Math.pow(n,2))}function kt(t,e){for(var r,n=2*Math.cos(2*e),i=t.length-1,s=t[i],o=0;--i>=0;)r=n*s-o+t[i],o=s,s=r;return e+r*Math.sin(2*e)}function Lt(t,e,r){for(var n,i,s=Math.sin(e),o=Math.cos(e),a=Ot(r),h=function(t){var e=Math.exp(t);return(e+1/e)/2}(r),u=2*o*h,c=-2*s*a,l=t.length-1,f=t[l],p=0,d=0,y=0;--l>=0;)n=d,i=p,f=u*(d=f)-n-c*(p=y)+t[l],y=c*d-i+u*p;return[(u=s*h)*f-(c=o*a)*y,u*y+c*f]}const Dt={init:function(){if(void 0===this.es||this.es<=0)throw new Error("incorrect elliptical usage");this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var t=this.es/(1+Math.sqrt(1-this.es)),e=t/(2-t),r=e;this.cgb[0]=e*(2+e*(-2/3+e*(e*(116/45+e*(26/45+e*(-2854/675)))-2))),this.cbg[0]=e*(e*(2/3+e*(4/3+e*(-82/45+e*(32/45+e*(4642/4725)))))-2),r*=e,this.cgb[1]=r*(7/3+e*(e*(-227/45+e*(2704/315+e*(2323/945)))-1.6)),this.cbg[1]=r*(5/3+e*(-16/15+e*(-13/9+e*(904/315+e*(-1522/945))))),r*=e,this.cgb[2]=r*(56/15+e*(-136/35+e*(-1262/105+e*(73814/2835)))),this.cbg[2]=r*(-26/15+e*(34/21+e*(1.6+e*(-12686/2835)))),r*=e,this.cgb[3]=r*(4279/630+e*(-332/35+e*(-399572/14175))),this.cbg[3]=r*(1237/630+e*(e*(-24832/14175)-2.4)),r*=e,this.cgb[4]=r*(4174/315+e*(-144838/6237)),this.cbg[4]=r*(-734/315+e*(109598/31185)),r*=e,this.cgb[5]=r*(601676/22275),this.cbg[5]=r*(444337/155925),r=Math.pow(e,2),this.Qn=this.k0/(1+e)*(1+r*(1/4+r*(1/64+r/256))),this.utg[0]=e*(e*(2/3+e*(-37/96+e*(1/360+e*(81/512+e*(-96199/604800)))))-.5),this.gtu[0]=e*(.5+e*(-2/3+e*(5/16+e*(41/180+e*(-127/288+e*(7891/37800)))))),this.utg[1]=r*(-1/48+e*(-1/15+e*(437/1440+e*(-46/105+e*(1118711/3870720))))),this.gtu[1]=r*(13/48+e*(e*(557/1440+e*(281/630+e*(-1983433/1935360)))-.6)),r*=e,this.utg[2]=r*(-17/480+e*(37/840+e*(209/4480+e*(-5569/90720)))),this.gtu[2]=r*(61/240+e*(-103/140+e*(15061/26880+e*(167603/181440)))),r*=e,this.utg[3]=r*(-4397/161280+e*(11/504+e*(830251/7257600))),this.gtu[3]=r*(49561/161280+e*(-179/168+e*(6601661/7257600))),r*=e,this.utg[4]=r*(-4583/161280+e*(108847/3991680)),this.gtu[4]=r*(34729/80640+e*(-3418889/1995840)),r*=e,this.utg[5]=r*(-20648693/638668800),this.gtu[5]=.6650675310896665*r;var n=kt(this.cbg,this.lat0);this.Zb=-this.Qn*(n+function(t,e){for(var r,n=2*Math.cos(e),i=t.length-1,s=t[i],o=0;--i>=0;)r=n*s-o+t[i],o=s,s=r;return Math.sin(e)*r}(this.gtu,2*n))},forward:function(t){var e=j(t.x-this.long0),r=t.y;r=kt(this.cbg,r);var n=Math.sin(r),i=Math.cos(r),s=Math.sin(e),o=Math.cos(e);r=Math.atan2(n,o*i),e=Math.atan2(s*i,Ct(n,i*o)),e=function(t){var e=Math.abs(t);return e=function(t){var e=1+t,r=e-1;return 0===r?t:t*Math.log(e)/r}(e*(1+e/(Ct(1,e)+1))),t<0?-e:e}(Math.tan(e));var a,h,u=Lt(this.gtu,2*r,2*e);return r+=u[0],e+=u[1],Math.abs(e)<=2.623395162778?(a=this.a*(this.Qn*e)+this.x0,h=this.a*(this.Qn*r+this.Zb)+this.y0):(a=1/0,h=1/0),t.x=a,t.y=h,t},inverse:function(t){var e,r,n=(t.x-this.x0)*(1/this.a),i=(t.y-this.y0)*(1/this.a);if(i=(i-this.Zb)/this.Qn,n/=this.Qn,Math.abs(n)<=2.623395162778){var s=Lt(this.utg,2*i,2*n);i+=s[0],n+=s[1],n=Math.atan(Ot(n));var o=Math.sin(i),a=Math.cos(i),h=Math.sin(n),u=Math.cos(n);i=Math.atan2(o*u,Ct(h,u*a)),e=j((n=Math.atan2(h,u*a))+this.long0),r=kt(this.cgb,i)}else e=1/0,r=1/0;return t.x=e,t.y=r,t},names:["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc"]},Rt={init:function(){var t=function(t,e){if(void 0===t){if((t=Math.floor(30*(j(e)+Math.PI)/Math.PI)+1)<0)return 0;if(t>60)return 60}return t}(this.zone,this.long0);if(void 0===t)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(t)-183)*c,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,Dt.init.apply(this),this.forward=Dt.forward,this.inverse=Dt.inverse},names:["Universal Transverse Mercator System","utm"],dependsOn:"etmerc"};function jt(t,e){return Math.pow((1-t)/(1+t),e)}const Ft={init:function(){var t=Math.sin(this.lat0),e=Math.cos(this.lat0);e*=e,this.rc=Math.sqrt(1-this.es)/(1-this.es*t*t),this.C=Math.sqrt(1+this.es*e*e/(1-this.es)),this.phic0=Math.asin(t/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+f)/(Math.pow(Math.tan(.5*this.lat0+f),this.C)*jt(this.e*t,this.ratexp))},forward:function(t){var e=t.x,r=t.y;return t.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*r+f),this.C)*jt(this.e*Math.sin(r),this.ratexp))-h,t.x=this.C*e,t},inverse:function(t){for(var e=t.x/this.C,r=t.y,n=Math.pow(Math.tan(.5*r+f)/this.K,1/this.C),i=20;i>0&&(r=2*Math.atan(n*jt(this.e*Math.sin(t.y),-.5*this.e))-h,!(Math.abs(r-t.y)<1e-14));--i)t.y=r;return i?(t.x=e,t.y=r,t):null},names:["gauss"]},Gt={init:function(){Ft.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))},forward:function(t){var e,r,n,i;return t.x=j(t.x-this.long0),Ft.forward.apply(this,[t]),e=Math.sin(t.y),r=Math.cos(t.y),n=Math.cos(t.x),i=this.k0*this.R2/(1+this.sinc0*e+this.cosc0*r*n),t.x=i*r*Math.sin(t.x),t.y=i*(this.cosc0*e-this.sinc0*r*n),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t},inverse:function(t){var e,r,n,i,s;if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,s=Math.sqrt(t.x*t.x+t.y*t.y)){var o=2*Math.atan2(s,this.R2);e=Math.sin(o),r=Math.cos(o),i=Math.asin(r*this.sinc0+t.y*e*this.cosc0/s),n=Math.atan2(t.x*e,s*this.cosc0*r-t.y*this.sinc0*e)}else i=this.phic0,n=0;return t.x=n,t.y=i,Ft.inverse.apply(this,[t]),t.x=j(t.x+this.long0),t},names:["Stereographic_North_Pole","Oblique_Stereographic","Polar_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"]},Bt={init:function(){this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=u&&(this.k0=.5*(1+R(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=u&&(this.lat0>0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=u&&(this.k0=.5*this.cons*D(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/F(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=D(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-h,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))},forward:function(t){var e,r,n,i,s,o,a=t.x,c=t.y,l=Math.sin(c),f=Math.cos(c),p=j(a-this.long0);return Math.abs(Math.abs(a-this.long0)-Math.PI)<=u&&Math.abs(c+this.lat0)<=u?(t.x=NaN,t.y=NaN,t):this.sphere?(e=2*this.k0/(1+this.sinlat0*l+this.coslat0*f*Math.cos(p)),t.x=this.a*e*f*Math.sin(p)+this.x0,t.y=this.a*e*(this.coslat0*l-this.sinlat0*f*Math.cos(p))+this.y0,t):(r=2*Math.atan(this.ssfn_(c,l,this.e))-h,i=Math.cos(r),n=Math.sin(r),Math.abs(this.coslat0)<=u?(s=F(this.e,c*this.con,this.con*l),o=2*this.a*this.k0*s/this.cons,t.x=this.x0+o*Math.sin(a-this.long0),t.y=this.y0-this.con*o*Math.cos(a-this.long0),t):(Math.abs(this.sinlat0)<u?(e=2*this.a*this.k0/(1+i*Math.cos(p)),t.y=e*n):(e=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*n+this.cosX0*i*Math.cos(p))),t.y=e*(this.cosX0*n-this.sinX0*i*Math.cos(p))+this.y0),t.x=e*i*Math.sin(p)+this.x0,t))},inverse:function(t){var e,r,n,i,s;t.x-=this.x0,t.y-=this.y0;var o=Math.sqrt(t.x*t.x+t.y*t.y);if(this.sphere){var a=2*Math.atan(o/(2*this.a*this.k0));return e=this.long0,r=this.lat0,o<=u?(t.x=e,t.y=r,t):(r=Math.asin(Math.cos(a)*this.sinlat0+t.y*Math.sin(a)*this.coslat0/o),e=Math.abs(this.coslat0)<u?this.lat0>0?j(this.long0+Math.atan2(t.x,-1*t.y)):j(this.long0+Math.atan2(t.x,t.y)):j(this.long0+Math.atan2(t.x*Math.sin(a),o*this.coslat0*Math.cos(a)-t.y*this.sinlat0*Math.sin(a))),t.x=e,t.y=r,t)}if(Math.abs(this.coslat0)<=u){if(o<=u)return r=this.lat0,e=this.long0,t.x=e,t.y=r,t;t.x*=this.con,t.y*=this.con,n=o*this.cons/(2*this.a*this.k0),r=this.con*G(this.e,n),e=this.con*j(this.con*this.long0+Math.atan2(t.x,-1*t.y))}else i=2*Math.atan(o*this.cosX0/(2*this.a*this.k0*this.ms1)),e=this.long0,o<=u?s=this.X0:(s=Math.asin(Math.cos(i)*this.sinX0+t.y*Math.sin(i)*this.cosX0/o),e=j(this.long0+Math.atan2(t.x*Math.sin(i),o*this.cosX0*Math.cos(i)-t.y*this.sinX0*Math.sin(i)))),r=-1*G(this.e,Math.tan(.5*(h+s)));return t.x=e,t.y=r,t},names:["stere","Stereographic_South_Pole","Polar Stereographic (variant B)"],ssfn_:function(t,e,r){return e*=r,Math.tan(.5*(h+t))*Math.pow((1-e)/(1+e),.5*r)}},Ut={init:function(){var t=this.lat0;this.lambda0=this.long0;var e=Math.sin(t),r=this.a,n=1/this.rf,i=2*n-Math.pow(n,2),s=this.e=Math.sqrt(i);this.R=this.k0*r*Math.sqrt(1-i)/(1-i*Math.pow(e,2)),this.alpha=Math.sqrt(1+i/(1-i)*Math.pow(Math.cos(t),4)),this.b0=Math.asin(e/this.alpha);var o=Math.log(Math.tan(Math.PI/4+this.b0/2)),a=Math.log(Math.tan(Math.PI/4+t/2)),h=Math.log((1+s*e)/(1-s*e));this.K=o-this.alpha*a+this.alpha*s/2*h},forward:function(t){var e=Math.log(Math.tan(Math.PI/4-t.y/2)),r=this.e/2*Math.log((1+this.e*Math.sin(t.y))/(1-this.e*Math.sin(t.y))),n=-this.alpha*(e+r)+this.K,i=2*(Math.atan(Math.exp(n))-Math.PI/4),s=this.alpha*(t.x-this.lambda0),o=Math.atan(Math.sin(s)/(Math.sin(this.b0)*Math.tan(i)+Math.cos(this.b0)*Math.cos(s))),a=Math.asin(Math.cos(this.b0)*Math.sin(i)-Math.sin(this.b0)*Math.cos(i)*Math.cos(s));return t.y=this.R/2*Math.log((1+Math.sin(a))/(1-Math.sin(a)))+this.y0,t.x=this.R*o+this.x0,t},inverse:function(t){for(var e=t.x-this.x0,r=t.y-this.y0,n=e/this.R,i=2*(Math.atan(Math.exp(r/this.R))-Math.PI/4),s=Math.asin(Math.cos(this.b0)*Math.sin(i)+Math.sin(this.b0)*Math.cos(i)*Math.cos(n)),o=Math.atan(Math.sin(n)/(Math.cos(this.b0)*Math.cos(n)-Math.sin(this.b0)*Math.tan(i))),a=this.lambda0+o/this.alpha,h=0,u=s,c=-1e3,l=0;Math.abs(u-c)>1e-7;){if(++l>20)return;h=1/this.alpha*(Math.log(Math.tan(Math.PI/4+s/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(u))/2)),c=u,u=2*Math.atan(Math.exp(h))-Math.PI/2}return t.x=a,t.y=u,t},names:["somerc"]},qt={init:function(){this.no_off=this.no_off||!1,this.no_rot=this.no_rot||!1,isNaN(this.k0)&&(this.k0=1);var t=Math.sin(this.lat0),e=Math.cos(this.lat0),r=this.e*t;this.bl=Math.sqrt(1+this.es/(1-this.es)*Math.pow(e,4)),this.al=this.a*this.bl*this.k0*Math.sqrt(1-this.es)/(1-r*r);var n,i,s=F(this.e,this.lat0,t),o=this.bl/e*Math.sqrt((1-this.es)/(1-r*r));if(o*o<1&&(o=1),isNaN(this.longc)){var a=F(this.e,this.lat1,Math.sin(this.lat1)),h=F(this.e,this.lat2,Math.sin(this.lat2));this.lat0>=0?this.el=(o+Math.sqrt(o*o-1))*Math.pow(s,this.bl):this.el=(o-Math.sqrt(o*o-1))*Math.pow(s,this.bl);var u=Math.pow(a,this.bl),c=Math.pow(h,this.bl);i=.5*((n=this.el/u)-1/n);var l=(this.el*this.el-c*u)/(this.el*this.el+c*u),f=(c-u)/(c+u),p=j(this.long1-this.long2);this.long0=.5*(this.long1+this.long2)-Math.atan(l*Math.tan(.5*this.bl*p)/f)/this.bl,this.long0=j(this.long0);var d=j(this.long1-this.long0);this.gamma0=Math.atan(Math.sin(this.bl*d)/i),this.alpha=Math.asin(o*Math.sin(this.gamma0))}else n=this.lat0>=0?o+Math.sqrt(o*o-1):o-Math.sqrt(o*o-1),this.el=n*Math.pow(s,this.bl),i=.5*(n-1/n),this.gamma0=Math.asin(Math.sin(this.alpha)/o),this.long0=this.longc-Math.asin(i*Math.tan(this.gamma0))/this.bl;this.no_off?this.uc=0:this.lat0>=0?this.uc=this.al/this.bl*Math.atan2(Math.sqrt(o*o-1),Math.cos(this.alpha)):this.uc=-1*this.al/this.bl*Math.atan2(Math.sqrt(o*o-1),Math.cos(this.alpha))},forward:function(t){var e,r,n,i=t.x,s=t.y,o=j(i-this.long0);if(Math.abs(Math.abs(s)-h)<=u)n=s>0?-1:1,r=this.al/this.bl*Math.log(Math.tan(f+n*this.gamma0*.5)),e=-1*n*h*this.al/this.bl;else{var a=F(this.e,s,Math.sin(s)),c=this.el/Math.pow(a,this.bl),l=.5*(c-1/c),p=.5*(c+1/c),d=Math.sin(this.bl*o),y=(l*Math.sin(this.gamma0)-d*Math.cos(this.gamma0))/p;r=Math.abs(Math.abs(y)-1)<=u?Number.POSITIVE_INFINITY:.5*this.al*Math.log((1-y)/(1+y))/this.bl,e=Math.abs(Math.cos(this.bl*o))<=u?this.al*this.bl*o:this.al*Math.atan2(l*Math.cos(this.gamma0)+d*Math.sin(this.gamma0),Math.cos(this.bl*o))/this.bl}return this.no_rot?(t.x=this.x0+e,t.y=this.y0+r):(e-=this.uc,t.x=this.x0+r*Math.cos(this.alpha)+e*Math.sin(this.alpha),t.y=this.y0+e*Math.cos(this.alpha)-r*Math.sin(this.alpha)),t},inverse:function(t){var e,r;this.no_rot?(r=t.y-this.y0,e=t.x-this.x0):(r=(t.x-this.x0)*Math.cos(this.alpha)-(t.y-this.y0)*Math.sin(this.alpha),e=(t.y-this.y0)*Math.cos(this.alpha)+(t.x-this.x0)*Math.sin(this.alpha),e+=this.uc);var n=Math.exp(-1*this.bl*r/this.al),i=.5*(n-1/n),s=.5*(n+1/n),o=Math.sin(this.bl*e/this.al),a=(o*Math.cos(this.gamma0)+i*Math.sin(this.gamma0))/s,c=Math.pow(this.el/Math.sqrt((1+a)/(1-a)),1/this.bl);return Math.abs(a-1)<u?(t.x=this.long0,t.y=h):Math.abs(a+1)<u?(t.x=this.long0,t.y=-1*h):(t.y=G(this.e,c),t.x=j(this.long0-Math.atan2(i*Math.cos(this.gamma0)-o*Math.sin(this.gamma0),Math.cos(this.bl*e/this.al))/this.bl)),t},names:["Hotine_Oblique_Mercator","Hotine Oblique Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","omerc"]},zt={init:function(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(Math.abs(this.lat1+this.lat2)<u)){var t=this.b/this.a;this.e=Math.sqrt(1-t*t);var e=Math.sin(this.lat1),r=Math.cos(this.lat1),n=D(this.e,e,r),i=F(this.e,this.lat1,e),s=Math.sin(this.lat2),o=Math.cos(this.lat2),a=D(this.e,s,o),h=F(this.e,this.lat2,s),c=F(this.e,this.lat0,Math.sin(this.lat0));Math.abs(this.lat1-this.lat2)>u?this.ns=Math.log(n/a)/Math.log(i/h):this.ns=e,isNaN(this.ns)&&(this.ns=e),this.f0=n/(this.ns*Math.pow(i,this.ns)),this.rh=this.a*this.f0*Math.pow(c,this.ns),this.title||(this.title="Lambert Conformal Conic")}},forward:function(t){var e=t.x,r=t.y;Math.abs(2*Math.abs(r)-Math.PI)<=u&&(r=R(r)*(h-2e-10));var n,i,s=Math.abs(Math.abs(r)-h);if(s>u)n=F(this.e,r,Math.sin(r)),i=this.a*this.f0*Math.pow(n,this.ns);else{if((s=r*this.ns)<=0)return null;i=0}var o=this.ns*j(e-this.long0);return t.x=this.k0*(i*Math.sin(o))+this.x0,t.y=this.k0*(this.rh-i*Math.cos(o))+this.y0,t},inverse:function(t){var e,r,n,i,s,o=(t.x-this.x0)/this.k0,a=this.rh-(t.y-this.y0)/this.k0;this.ns>0?(e=Math.sqrt(o*o+a*a),r=1):(e=-Math.sqrt(o*o+a*a),r=-1);var u=0;if(0!==e&&(u=Math.atan2(r*o,r*a)),0!==e||this.ns>0){if(r=1/this.ns,n=Math.pow(e/(this.a*this.f0),r),-9999===(i=G(this.e,n)))return null}else i=-h;return s=j(u/this.ns+this.long0),t.x=s,t.y=i,t},names:["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_2SP","lcc"]},Vt={init:function(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq},forward:function(t){var e,r,n,i,s,o,a,h=t.x,u=t.y,c=j(h-this.long0);return e=Math.pow((1+this.e*Math.sin(u))/(1-this.e*Math.sin(u)),this.alfa*this.e/2),r=2*(Math.atan(this.k*Math.pow(Math.tan(u/2+this.s45),this.alfa)/e)-this.s45),n=-c*this.alfa,i=Math.asin(Math.cos(this.ad)*Math.sin(r)+Math.sin(this.ad)*Math.cos(r)*Math.cos(n)),s=Math.asin(Math.cos(r)*Math.sin(n)/Math.cos(i)),o=this.n*s,a=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(i/2+this.s45),this.n),t.y=a*Math.cos(o)/1,t.x=a*Math.sin(o)/1,this.czech||(t.y*=-1,t.x*=-1),t},inverse:function(t){var e,r,n,i,s,o,a,h=t.x;t.x=t.y,t.y=h,this.czech||(t.y*=-1,t.x*=-1),s=Math.sqrt(t.x*t.x+t.y*t.y),i=Math.atan2(t.y,t.x)/Math.sin(this.s0),n=2*(Math.atan(Math.pow(this.ro0/s,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),e=Math.asin(Math.cos(this.ad)*Math.sin(n)-Math.sin(this.ad)*Math.cos(n)*Math.cos(i)),r=Math.asin(Math.cos(n)*Math.sin(i)/Math.cos(e)),t.x=this.long0-r/this.alfa,o=e,a=0;var u=0;do{t.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(e/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(o))/(1-this.e*Math.sin(o)),this.e/2))-this.s45),Math.abs(o-t.y)<1e-10&&(a=1),o=t.y,u+=1}while(0===a&&u<15);return u>=15?null:t},names:["Krovak","krovak"]};function Wt(t,e,r,n,i){return t*i-e*Math.sin(2*i)+r*Math.sin(4*i)-n*Math.sin(6*i)}function Xt(t){return 1-.25*t*(1+t/16*(3+1.25*t))}function $t(t){return.375*t*(1+.25*t*(1+.46875*t))}function Yt(t){return.05859375*t*t*(1+.75*t)}function Qt(t){return t*t*t*(35/3072)}function Kt(t,e,r){var n=e*r;return t/Math.sqrt(1-n*n)}function Ht(t){return Math.abs(t)<h?t:t-R(t)*Math.PI}function Jt(t,e,r,n,i){var s,o;s=t/e;for(var a=0;a<15;a++)if(s+=o=(t-(e*s-r*Math.sin(2*s)+n*Math.sin(4*s)-i*Math.sin(6*s)))/(e-2*r*Math.cos(2*s)+4*n*Math.cos(4*s)-6*i*Math.cos(6*s)),Math.abs(o)<=1e-10)return s;return NaN}const Zt={init:function(){this.sphere||(this.e0=Xt(this.es),this.e1=$t(this.es),this.e2=Yt(this.es),this.e3=Qt(this.es),this.ml0=this.a*Wt(this.e0,this.e1,this.e2,this.e3,this.lat0))},forward:function(t){var e,r,n=t.x,i=t.y;if(n=j(n-this.long0),this.sphere)e=this.a*Math.asin(Math.cos(i)*Math.sin(n)),r=this.a*(Math.atan2(Math.tan(i),Math.cos(n))-this.lat0);else{var s=Math.sin(i),o=Math.cos(i),a=Kt(this.a,this.e,s),h=Math.tan(i)*Math.tan(i),u=n*Math.cos(i),c=u*u,l=this.es*o*o/(1-this.es);e=a*u*(1-c*h*(1/6-(8-h+8*l)*c/120)),r=this.a*Wt(this.e0,this.e1,this.e2,this.e3,i)-this.ml0+a*s/o*c*(.5+(5-h+6*l)*c/24)}return t.x=e+this.x0,t.y=r+this.y0,t},inverse:function(t){t.x-=this.x0,t.y-=this.y0;var e,r,n=t.x/this.a,i=t.y/this.a;if(this.sphere){var s=i+this.lat0;e=Math.asin(Math.sin(s)*Math.cos(n)),r=Math.atan2(Math.tan(n),Math.cos(s))}else{var o=Jt(this.ml0/this.a+i,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(o)-h)<=u)return t.x=this.long0,t.y=h,i<0&&(t.y*=-1),t;var a=Kt(this.a,this.e,Math.sin(o)),c=a*a*a/this.a/this.a*(1-this.es),l=Math.pow(Math.tan(o),2),f=n*this.a/a,p=f*f;e=o-a*Math.tan(o)/c*f*f*(.5-(1+3*l)*f*f/24),r=f*(1-p*(l/3+(1+3*l)*l*p/15))/Math.cos(o)}return t.x=j(r+this.long0),t.y=Ht(e),t},names:["Cassini","Cassini_Soldner","cass"]};function te(t,e){var r;return t>1e-7?(1-t*t)*(e/(1-(r=t*e)*r)-.5/t*Math.log((1-r)/(1+r))):2*e}const ee={init:function(){var t,e=Math.abs(this.lat0);if(Math.abs(e-h)<u?this.mode=this.lat0<0?this.S_POLE:this.N_POLE:Math.abs(e)<u?this.mode=this.EQUIT:this.mode=this.OBLIQ,this.es>0)switch(this.qp=te(this.e,1),this.mmf=.5/(1-this.es),this.apa=function(t){var e,r=[];return r[0]=.3333333333333333*t,e=t*t,r[0]+=.17222222222222222*e,r[1]=.06388888888888888*e,e*=t,r[0]+=.10257936507936508*e,r[1]+=.0664021164021164*e,r[2]=.016415012942191543*e,r}(this.es),this.mode){case this.N_POLE:case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),t=Math.sin(this.lat0),this.sinb1=te(this.e,t)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*t*t)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))},forward:function(t){var e,r,n,i,s,o,a,c,l,p,d=t.x,y=t.y;if(d=j(d-this.long0),this.sphere){if(s=Math.sin(y),p=Math.cos(y),n=Math.cos(d),this.mode===this.OBLIQ||this.mode===this.EQUIT){if((r=this.mode===this.EQUIT?1+p*n:1+this.sinph0*s+this.cosph0*p*n)<=u)return null;e=(r=Math.sqrt(2/r))*p*Math.sin(d),r*=this.mode===this.EQUIT?s:this.cosph0*s-this.sinph0*p*n}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(n=-n),Math.abs(y+this.lat0)<u)return null;r=f-.5*y,e=(r=2*(this.mode===this.S_POLE?Math.cos(r):Math.sin(r)))*Math.sin(d),r*=n}}else{switch(a=0,c=0,l=0,n=Math.cos(d),i=Math.sin(d),s=Math.sin(y),o=te(this.e,s),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(a=o/this.qp,c=Math.sqrt(1-a*a)),this.mode){case this.OBLIQ:l=1+this.sinb1*a+this.cosb1*c*n;break;case this.EQUIT:l=1+c*n;break;case this.N_POLE:l=h+y,o=this.qp-o;break;case this.S_POLE:l=y-h,o=this.qp+o}if(Math.abs(l)<u)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:l=Math.sqrt(2/l),r=this.mode===this.OBLIQ?this.ymf*l*(this.cosb1*a-this.sinb1*c*n):(l=Math.sqrt(2/(1+c*n)))*a*this.ymf,e=this.xmf*l*c*i;break;case this.N_POLE:case this.S_POLE:o>=0?(e=(l=Math.sqrt(o))*i,r=n*(this.mode===this.S_POLE?l:-l)):e=r=0}}return t.x=this.a*e+this.x0,t.y=this.a*r+this.y0,t},inverse:function(t){t.x-=this.x0,t.y-=this.y0;var e,r,n,i,s,o,a,c,l,f,p=t.x/this.a,d=t.y/this.a;if(this.sphere){var y,v=0,g=0;if((r=.5*(y=Math.sqrt(p*p+d*d)))>1)return null;switch(r=2*Math.asin(r),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(g=Math.sin(r),v=Math.cos(r)),this.mode){case this.EQUIT:r=Math.abs(y)<=u?0:Math.asin(d*g/y),p*=g,d=v*y;break;case this.OBLIQ:r=Math.abs(y)<=u?this.lat0:Math.asin(v*this.sinph0+d*g*this.cosph0/y),p*=g*this.cosph0,d=(v-Math.sin(r)*this.sinph0)*y;break;case this.N_POLE:d=-d,r=h-r;break;case this.S_POLE:r-=h}e=0!==d||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(p,d):0}else{if(a=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(p/=this.dd,d*=this.dd,(o=Math.sqrt(p*p+d*d))<u)return t.x=this.long0,t.y=this.lat0,t;i=2*Math.asin(.5*o/this.rq),n=Math.cos(i),p*=i=Math.sin(i),this.mode===this.OBLIQ?(a=n*this.sinb1+d*i*this.cosb1/o,s=this.qp*a,d=o*this.cosb1*n-d*this.sinb1*i):(a=d*i/o,s=this.qp*a,d=o*n)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(d=-d),!(s=p*p+d*d))return t.x=this.long0,t.y=this.lat0,t;a=1-s/this.qp,this.mode===this.S_POLE&&(a=-a)}e=Math.atan2(p,d),f=(c=Math.asin(a))+c,r=c+(l=this.apa)[0]*Math.sin(f)+l[1]*Math.sin(f+f)+l[2]*Math.sin(f+f+f)}return t.x=j(this.long0+e),t.y=r,t},names:["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"],S_POLE:1,N_POLE:2,EQUIT:3,OBLIQ:4};function re(t){return Math.abs(t)>1&&(t=t>1?1:-1),Math.asin(t)}const ne={init:function(){Math.abs(this.lat1+this.lat2)<u||(this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e3=Math.sqrt(this.es),this.sin_po=Math.sin(this.lat1),this.cos_po=Math.cos(this.lat1),this.t1=this.sin_po,this.con=this.sin_po,this.ms1=D(this.e3,this.sin_po,this.cos_po),this.qs1=te(this.e3,this.sin_po,this.cos_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=D(this.e3,this.sin_po,this.cos_po),this.qs2=te(this.e3,this.sin_po,this.cos_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=te(this.e3,this.sin_po,this.cos_po),Math.abs(this.lat1-this.lat2)>u?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)},forward:function(t){var e=t.x,r=t.y;this.sin_phi=Math.sin(r),this.cos_phi=Math.cos(r);var n=te(this.e3,this.sin_phi,this.cos_phi),i=this.a*Math.sqrt(this.c-this.ns0*n)/this.ns0,s=this.ns0*j(e-this.long0),o=i*Math.sin(s)+this.x0,a=this.rh-i*Math.cos(s)+this.y0;return t.x=o,t.y=a,t},inverse:function(t){var e,r,n,i,s,o;return t.x-=this.x0,t.y=this.rh-t.y+this.y0,this.ns0>=0?(e=Math.sqrt(t.x*t.x+t.y*t.y),n=1):(e=-Math.sqrt(t.x*t.x+t.y*t.y),n=-1),i=0,0!==e&&(i=Math.atan2(n*t.x,n*t.y)),n=e*this.ns0/this.a,this.sphere?o=Math.asin((this.c-n*n)/(2*this.ns0)):(r=(this.c-n*n)/this.ns0,o=this.phi1z(this.e3,r)),s=j(i/this.ns0+this.long0),t.x=s,t.y=o,t},names:["Albers_Conic_Equal_Area","Albers","aea"],phi1z:function(t,e){var r,n,i,s,o=re(.5*e);if(t<u)return o;for(var a=t*t,h=1;h<=25;h++)if(o+=s=.5*(i=1-(n=t*(r=Math.sin(o)))*n)*i/Math.cos(o)*(e/(1-a)-r/i+.5/t*Math.log((1-n)/(1+n))),Math.abs(s)<=1e-7)return o;return null}},ie={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1},forward:function(t){var e,r,n,i,s,o,a,h=t.x,c=t.y;return n=j(h-this.long0),e=Math.sin(c),r=Math.cos(c),i=Math.cos(n),(s=this.sin_p14*e+this.cos_p14*r*i)>0||Math.abs(s)<=u?(o=this.x0+1*this.a*r*Math.sin(n)/s,a=this.y0+1*this.a*(this.cos_p14*e-this.sin_p14*r*i)/s):(o=this.x0+this.infinity_dist*r*Math.sin(n),a=this.y0+this.infinity_dist*(this.cos_p14*e-this.sin_p14*r*i)),t.x=o,t.y=a,t},inverse:function(t){var e,r,n,i,s,o;return t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,(e=Math.sqrt(t.x*t.x+t.y*t.y))?(i=Math.atan2(e,this.rc),r=Math.sin(i),o=re((n=Math.cos(i))*this.sin_p14+t.y*r*this.cos_p14/e),s=Math.atan2(t.x*r,e*this.cos_p14*n-t.y*this.sin_p14*r),s=j(this.long0+s)):(o=this.phic0,s=0),t.x=s,t.y=o,t},names:["gnom"]},se={init:function(){this.sphere||(this.k0=D(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))},forward:function(t){var e,r,n=t.x,i=t.y,s=j(n-this.long0);if(this.sphere)e=this.x0+this.a*s*Math.cos(this.lat_ts),r=this.y0+this.a*Math.sin(i)/Math.cos(this.lat_ts);else{var o=te(this.e,Math.sin(i));e=this.x0+this.a*this.k0*s,r=this.y0+this.a*o*.5/this.k0}return t.x=e,t.y=r,t},inverse:function(t){var e,r;return t.x-=this.x0,t.y-=this.y0,this.sphere?(e=j(this.long0+t.x/this.a/Math.cos(this.lat_ts)),r=Math.asin(t.y/this.a*Math.cos(this.lat_ts))):(r=function(t,e){var r=1-(1-t*t)/(2*t)*Math.log((1-t)/(1+t));if(Math.abs(Math.abs(e)-r)<1e-6)return e<0?-1*h:h;for(var n,i,s,o,a=Math.asin(.5*e),u=0;u<30;u++)if(i=Math.sin(a),s=Math.cos(a),o=t*i,a+=n=Math.pow(1-o*o,2)/(2*s)*(e/(1-t*t)-i/(1-o*o)+.5/t*Math.log((1-o)/(1+o))),Math.abs(n)<=1e-10)return a;return NaN}(this.e,2*t.y*this.k0/this.a),e=j(this.long0+t.x/(this.a*this.k0))),t.x=e,t.y=r,t},names:["cea"]},oe={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)},forward:function(t){var e=t.x,r=t.y,n=j(e-this.long0),i=Ht(r-this.lat0);return t.x=this.x0+this.a*n*this.rc,t.y=this.y0+this.a*i,t},inverse:function(t){var e=t.x,r=t.y;return t.x=j(this.long0+(e-this.x0)/(this.a*this.rc)),t.y=Ht(this.lat0+(r-this.y0)/this.a),t},names:["Equirectangular","Equidistant_Cylindrical","eqc"]},ae={init:function(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=Xt(this.es),this.e1=$t(this.es),this.e2=Yt(this.es),this.e3=Qt(this.es),this.ml0=this.a*Wt(this.e0,this.e1,this.e2,this.e3,this.lat0)},forward:function(t){var e,r,n,i=t.x,s=t.y,o=j(i-this.long0);if(n=o*Math.sin(s),this.sphere)Math.abs(s)<=u?(e=this.a*o,r=-1*this.a*this.lat0):(e=this.a*Math.sin(n)/Math.tan(s),r=this.a*(Ht(s-this.lat0)+(1-Math.cos(n))/Math.tan(s)));else if(Math.abs(s)<=u)e=this.a*o,r=-1*this.ml0;else{var a=Kt(this.a,this.e,Math.sin(s))/Math.tan(s);e=a*Math.sin(n),r=this.a*Wt(this.e0,this.e1,this.e2,this.e3,s)-this.ml0+a*(1-Math.cos(n))}return t.x=e+this.x0,t.y=r+this.y0,t},inverse:function(t){var e,r,n,i,s,o,a,h,c;if(n=t.x-this.x0,i=t.y-this.y0,this.sphere)if(Math.abs(i+this.a*this.lat0)<=u)e=j(n/this.a+this.long0),r=0;else{var l;for(o=this.lat0+i/this.a,a=n*n/this.a/this.a+o*o,h=o,s=20;s;--s)if(h+=c=-1*(o*(h*(l=Math.tan(h))+1)-h-.5*(h*h+a)*l)/((h-o)/l-1),Math.abs(c)<=u){r=h;break}e=j(this.long0+Math.asin(n*Math.tan(h)/this.a)/Math.sin(r))}else if(Math.abs(i+this.ml0)<=u)r=0,e=j(this.long0+n/this.a);else{var f,p,d,y,v;for(o=(this.ml0+i)/this.a,a=n*n/this.a/this.a+o*o,h=o,s=20;s;--s)if(v=this.e*Math.sin(h),f=Math.sqrt(1-v*v)*Math.tan(h),p=this.a*Wt(this.e0,this.e1,this.e2,this.e3,h),d=this.e0-2*this.e1*Math.cos(2*h)+4*this.e2*Math.cos(4*h)-6*this.e3*Math.cos(6*h),h-=c=(o*(f*(y=p/this.a)+1)-y-.5*f*(y*y+a))/(this.es*Math.sin(2*h)*(y*y+a-2*o*y)/(4*f)+(o-y)*(f*d-2/Math.sin(2*h))-d),Math.abs(c)<=u){r=h;break}f=Math.sqrt(1-this.es*Math.pow(Math.sin(r),2))*Math.tan(r),e=j(this.long0+Math.asin(n*f/this.a)/Math.sin(r))}return t.x=e,t.y=r,t},names:["Polyconic","poly"]},he={init:function(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013},forward:function(t){var e,r=t.x,n=t.y-this.lat0,i=r-this.long0,s=n/a*1e-5,o=i,h=1,u=0;for(e=1;e<=10;e++)h*=s,u+=this.A[e]*h;var c,l=u,f=o,p=1,d=0,y=0,v=0;for(e=1;e<=6;e++)c=d*l+p*f,p=p*l-d*f,d=c,y=y+this.B_re[e]*p-this.B_im[e]*d,v=v+this.B_im[e]*p+this.B_re[e]*d;return t.x=v*this.a+this.x0,t.y=y*this.a+this.y0,t},inverse:function(t){var e,r,n=t.x,i=t.y,s=n-this.x0,o=(i-this.y0)/this.a,h=s/this.a,u=1,c=0,l=0,f=0;for(e=1;e<=6;e++)r=c*o+u*h,u=u*o-c*h,c=r,l=l+this.C_re[e]*u-this.C_im[e]*c,f=f+this.C_im[e]*u+this.C_re[e]*c;for(var p=0;p<this.iterations;p++){var d,y=l,v=f,g=o,m=h;for(e=2;e<=6;e++)d=v*l+y*f,y=y*l-v*f,v=d,g+=(e-1)*(this.B_re[e]*y-this.B_im[e]*v),m+=(e-1)*(this.B_im[e]*y+this.B_re[e]*v);y=1,v=0;var w=this.B_re[1],M=this.B_im[1];for(e=2;e<=6;e++)d=v*l+y*f,y=y*l-v*f,v=d,w+=e*(this.B_re[e]*y-this.B_im[e]*v),M+=e*(this.B_im[e]*y+this.B_re[e]*v);var b=w*w+M*M;l=(g*w+m*M)/b,f=(m*w-g*M)/b}var _=l,x=f,E=1,S=0;for(e=1;e<=9;e++)E*=_,S+=this.D[e]*E;var A=this.lat0+S*a*1e5,I=this.long0+x;return t.x=I,t.y=A,t},names:["New_Zealand_Map_Grid","nzmg"]},ue={init:function(){},forward:function(t){var e=t.x,r=t.y,n=j(e-this.long0),i=this.x0+this.a*n,s=this.y0+this.a*Math.log(Math.tan(Math.PI/4+r/2.5))*1.25;return t.x=i,t.y=s,t},inverse:function(t){t.x-=this.x0,t.y-=this.y0;var e=j(this.long0+t.x/this.a),r=2.5*(Math.atan(Math.exp(.8*t.y/this.a))-Math.PI/4);return t.x=e,t.y=r,t},names:["Miller_Cylindrical","mill"]},ce={init:function(){this.sphere?(this.n=1,this.m=0,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)):this.en=It(this.es)},forward:function(t){var e,r,n=t.x,i=t.y;if(n=j(n-this.long0),this.sphere){if(this.m)for(var s=this.n*Math.sin(i),o=20;o;--o){var a=(this.m*i+Math.sin(i)-s)/(this.m+Math.cos(i));if(i-=a,Math.abs(a)<u)break}else i=1!==this.n?Math.asin(this.n*Math.sin(i)):i;e=this.a*this.C_x*n*(this.m+Math.cos(i)),r=this.a*this.C_y*i}else{var h=Math.sin(i),c=Math.cos(i);r=this.a*Pt(i,h,c,this.en),e=this.a*n*c/Math.sqrt(1-this.es*h*h)}return t.x=e,t.y=r,t},inverse:function(t){var e,r,n;return t.x-=this.x0,r=t.x/this.a,t.y-=this.y0,e=t.y/this.a,this.sphere?(e/=this.C_y,r/=this.C_x*(this.m+Math.cos(e)),this.m?e=re((this.m*e+Math.sin(e))/this.n):1!==this.n&&(e=re(Math.sin(e)/this.n)),r=j(r+this.long0),e=Ht(e)):(e=Nt(t.y/this.a,this.es,this.en),(n=Math.abs(e))<h?(n=Math.sin(e),r=j(this.long0+t.x*Math.sqrt(1-this.es*n*n)/(this.a*Math.cos(e)))):n-u<h&&(r=this.long0)),t.x=r,t.y=e,t},names:["Sinusoidal","sinu"]},le={init:function(){},forward:function(t){for(var e=t.x,r=t.y,n=j(e-this.long0),i=r,s=Math.PI*Math.sin(r);;){var o=-(i+Math.sin(i)-s)/(1+Math.cos(i));if(i+=o,Math.abs(o)<u)break}i/=2,Math.PI/2-Math.abs(r)<u&&(n=0);var a=.900316316158*this.a*n*Math.cos(i)+this.x0,h=1.4142135623731*this.a*Math.sin(i)+this.y0;return t.x=a,t.y=h,t},inverse:function(t){var e,r;t.x-=this.x0,t.y-=this.y0,r=t.y/(1.4142135623731*this.a),Math.abs(r)>.999999999999&&(r=.999999999999),e=Math.asin(r);var n=j(this.long0+t.x/(.900316316158*this.a*Math.cos(e)));n<-Math.PI&&(n=-Math.PI),n>Math.PI&&(n=Math.PI),r=(2*e+Math.sin(2*e))/Math.PI,Math.abs(r)>1&&(r=1);var i=Math.asin(r);return t.x=n,t.y=i,t},names:["Mollweide","moll"]},fe={init:function(){Math.abs(this.lat1+this.lat2)<u||(this.lat2=this.lat2||this.lat1,this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=Xt(this.es),this.e1=$t(this.es),this.e2=Yt(this.es),this.e3=Qt(this.es),this.sinphi=Math.sin(this.lat1),this.cosphi=Math.cos(this.lat1),this.ms1=D(this.e,this.sinphi,this.cosphi),this.ml1=Wt(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<u?this.ns=this.sinphi:(this.sinphi=Math.sin(this.lat2),this.cosphi=Math.cos(this.lat2),this.ms2=D(this.e,this.sinphi,this.cosphi),this.ml2=Wt(this.e0,this.e1,this.e2,this.e3,this.lat2),this.ns=(this.ms1-this.ms2)/(this.ml2-this.ml1)),this.g=this.ml1+this.ms1/this.ns,this.ml0=Wt(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))},forward:function(t){var e,r=t.x,n=t.y;if(this.sphere)e=this.a*(this.g-n);else{var i=Wt(this.e0,this.e1,this.e2,this.e3,n);e=this.a*(this.g-i)}var s=this.ns*j(r-this.long0),o=this.x0+e*Math.sin(s),a=this.y0+this.rh-e*Math.cos(s);return t.x=o,t.y=a,t},inverse:function(t){var e,r,n,i;t.x-=this.x0,t.y=this.rh-t.y+this.y0,this.ns>=0?(r=Math.sqrt(t.x*t.x+t.y*t.y),e=1):(r=-Math.sqrt(t.x*t.x+t.y*t.y),e=-1);var s=0;return 0!==r&&(s=Math.atan2(e*t.x,e*t.y)),this.sphere?(i=j(this.long0+s/this.ns),n=Ht(this.g-r/this.a),t.x=i,t.y=n,t):(n=Jt(this.g-r/this.a,this.e0,this.e1,this.e2,this.e3),i=j(this.long0+s/this.ns),t.x=i,t.y=n,t)},names:["Equidistant_Conic","eqdc"]},pe={init:function(){this.R=this.a},forward:function(t){var e,r,n=t.x,i=t.y,s=j(n-this.long0);Math.abs(i)<=u&&(e=this.x0+this.R*s,r=this.y0);var o=re(2*Math.abs(i/Math.PI));(Math.abs(s)<=u||Math.abs(Math.abs(i)-h)<=u)&&(e=this.x0,r=i>=0?this.y0+Math.PI*this.R*Math.tan(.5*o):this.y0+Math.PI*this.R*-Math.tan(.5*o));var a=.5*Math.abs(Math.PI/s-s/Math.PI),c=a*a,l=Math.sin(o),f=Math.cos(o),p=f/(l+f-1),d=p*p,y=p*(2/l-1),v=y*y,g=Math.PI*this.R*(a*(p-v)+Math.sqrt(c*(p-v)*(p-v)-(v+c)*(d-v)))/(v+c);s<0&&(g=-g),e=this.x0+g;var m=c+p;return g=Math.PI*this.R*(y*m-a*Math.sqrt((v+c)*(c+1)-m*m))/(v+c),r=i>=0?this.y0+g:this.y0-g,t.x=e,t.y=r,t},inverse:function(t){var e,r,n,i,s,o,a,h,c,l,f,p;return t.x-=this.x0,t.y-=this.y0,f=Math.PI*this.R,s=(n=t.x/f)*n+(i=t.y/f)*i,f=3*(i*i/(h=-2*(o=-Math.abs(i)*(1+s))+1+2*i*i+s*s)+(2*(a=o-2*i*i+n*n)*a*a/h/h/h-9*o*a/h/h)/27)/(c=(o-a*a/3/h)/h)/(l=2*Math.sqrt(-c/3)),Math.abs(f)>1&&(f=f>=0?1:-1),p=Math.acos(f)/3,r=t.y>=0?(-l*Math.cos(p+Math.PI/3)-a/3/h)*Math.PI:-(-l*Math.cos(p+Math.PI/3)-a/3/h)*Math.PI,e=Math.abs(n)<u?this.long0:j(this.long0+Math.PI*(s-1+Math.sqrt(1+2*(n*n-i*i)+s*s))/2/n),t.x=e,t.y=r,t},names:["Van_der_Grinten_I","VanDerGrinten","vandg"]},de={init:function(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0)},forward:function(t){var e,r,n,i,s,o,a,c,l,f,p,d,y,v,g,m,w,M,b,_,x,E,S=t.x,A=t.y,I=Math.sin(t.y),P=Math.cos(t.y),N=j(S-this.long0);return this.sphere?Math.abs(this.sin_p12-1)<=u?(t.x=this.x0+this.a*(h-A)*Math.sin(N),t.y=this.y0-this.a*(h-A)*Math.cos(N),t):Math.abs(this.sin_p12+1)<=u?(t.x=this.x0+this.a*(h+A)*Math.sin(N),t.y=this.y0+this.a*(h+A)*Math.cos(N),t):(M=this.sin_p12*I+this.cos_p12*P*Math.cos(N),w=(m=Math.acos(M))?m/Math.sin(m):1,t.x=this.x0+this.a*w*P*Math.sin(N),t.y=this.y0+this.a*w*(this.cos_p12*I-this.sin_p12*P*Math.cos(N)),t):(e=Xt(this.es),r=$t(this.es),n=Yt(this.es),i=Qt(this.es),Math.abs(this.sin_p12-1)<=u?(s=this.a*Wt(e,r,n,i,h),o=this.a*Wt(e,r,n,i,A),t.x=this.x0+(s-o)*Math.sin(N),t.y=this.y0-(s-o)*Math.cos(N),t):Math.abs(this.sin_p12+1)<=u?(s=this.a*Wt(e,r,n,i,h),o=this.a*Wt(e,r,n,i,A),t.x=this.x0+(s+o)*Math.sin(N),t.y=this.y0+(s+o)*Math.cos(N),t):(a=I/P,c=Kt(this.a,this.e,this.sin_p12),l=Kt(this.a,this.e,I),f=Math.atan((1-this.es)*a+this.es*c*this.sin_p12/(l*P)),b=0===(p=Math.atan2(Math.sin(N),this.cos_p12*Math.tan(f)-this.sin_p12*Math.cos(N)))?Math.asin(this.cos_p12*Math.sin(f)-this.sin_p12*Math.cos(f)):Math.abs(Math.abs(p)-Math.PI)<=u?-Math.asin(this.cos_p12*Math.sin(f)-this.sin_p12*Math.cos(f)):Math.asin(Math.sin(N)*Math.cos(f)/Math.sin(p)),d=this.e*this.sin_p12/Math.sqrt(1-this.es),m=c*b*(1-(_=b*b)*(g=(y=this.e*this.cos_p12*Math.cos(p)/Math.sqrt(1-this.es))*y)*(1-g)/6+(x=_*b)/8*(v=d*y)*(1-2*g)+(E=x*b)/120*(g*(4-7*g)-3*d*d*(1-7*g))-E*b/48*v),t.x=this.x0+m*Math.sin(p),t.y=this.y0+m*Math.cos(p),t))},inverse:function(t){var e,r,n,i,s,o,a,c,l,f,p,d,y,v,g,m,w,M,b,_,x,E,S;if(t.x-=this.x0,t.y-=this.y0,this.sphere){if((e=Math.sqrt(t.x*t.x+t.y*t.y))>2*h*this.a)return;return r=e/this.a,n=Math.sin(r),i=Math.cos(r),s=this.long0,Math.abs(e)<=u?o=this.lat0:(o=re(i*this.sin_p12+t.y*n*this.cos_p12/e),a=Math.abs(this.lat0)-h,s=Math.abs(a)<=u?this.lat0>=0?j(this.long0+Math.atan2(t.x,-t.y)):j(this.long0-Math.atan2(-t.x,t.y)):j(this.long0+Math.atan2(t.x*n,e*this.cos_p12*i-t.y*this.sin_p12*n))),t.x=s,t.y=o,t}return c=Xt(this.es),l=$t(this.es),f=Yt(this.es),p=Qt(this.es),Math.abs(this.sin_p12-1)<=u?(o=Jt(((d=this.a*Wt(c,l,f,p,h))-(e=Math.sqrt(t.x*t.x+t.y*t.y)))/this.a,c,l,f,p),s=j(this.long0+Math.atan2(t.x,-1*t.y)),t.x=s,t.y=o,t):Math.abs(this.sin_p12+1)<=u?(d=this.a*Wt(c,l,f,p,h),o=Jt(((e=Math.sqrt(t.x*t.x+t.y*t.y))-d)/this.a,c,l,f,p),s=j(this.long0+Math.atan2(t.x,t.y)),t.x=s,t.y=o,t):(e=Math.sqrt(t.x*t.x+t.y*t.y),g=Math.atan2(t.x,t.y),y=Kt(this.a,this.e,this.sin_p12),m=Math.cos(g),M=-(w=this.e*this.cos_p12*m)*w/(1-this.es),b=3*this.es*(1-M)*this.sin_p12*this.cos_p12*m/(1-this.es),E=1-M*(x=(_=e/y)-M*(1+M)*Math.pow(_,3)/6-b*(1+3*M)*Math.pow(_,4)/24)*x/2-_*x*x*x/6,v=Math.asin(this.sin_p12*Math.cos(x)+this.cos_p12*Math.sin(x)*m),s=j(this.long0+Math.asin(Math.sin(g)*Math.sin(x)/Math.cos(v))),S=Math.sin(v),o=Math.atan2((S-this.es*E*this.sin_p12)*Math.tan(v),S*(1-this.es)),t.x=s,t.y=o,t)},names:["Azimuthal_Equidistant","aeqd"]},ye={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)},forward:function(t){var e,r,n,i,s,o,a,h=t.x,c=t.y;return n=j(h-this.long0),e=Math.sin(c),r=Math.cos(c),i=Math.cos(n),((s=this.sin_p14*e+this.cos_p14*r*i)>0||Math.abs(s)<=u)&&(o=1*this.a*r*Math.sin(n),a=this.y0+1*this.a*(this.cos_p14*e-this.sin_p14*r*i)),t.x=o,t.y=a,t},inverse:function(t){var e,r,n,i,s,o,a;return t.x-=this.x0,t.y-=this.y0,r=re((e=Math.sqrt(t.x*t.x+t.y*t.y))/this.a),n=Math.sin(r),i=Math.cos(r),o=this.long0,Math.abs(e)<=u?(a=this.lat0,t.x=o,t.y=a,t):(a=re(i*this.sin_p14+t.y*n*this.cos_p14/e),s=Math.abs(this.lat0)-h,Math.abs(s)<=u?(o=this.lat0>=0?j(this.long0+Math.atan2(t.x,-t.y)):j(this.long0-Math.atan2(-t.x,t.y)),t.x=o,t.y=a,t):(o=j(this.long0+Math.atan2(t.x*n,e*this.cos_p14*i-t.y*this.sin_p14*n)),t.x=o,t.y=a,t))},names:["ortho"]};function ve(t,e,r,n){var i;return t<u?(n.value=1,i=0):(i=Math.atan2(e,r),Math.abs(i)<=f?n.value=1:i>f&&i<=h+f?(n.value=2,i-=h):i>h+f||i<=-(h+f)?(n.value=3,i=i>=0?i-d:i+d):(n.value=4,i+=h)),i}function ge(t,e){var r=t+e;return r<-d?r+=p:r>+d&&(r-=p),r}const me={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=h-f/2?this.face=5:this.lat0<=-(h-f/2)?this.face=6:Math.abs(this.long0)<=f?this.face=1:Math.abs(this.long0)<=h+f?this.face=this.long0>0?2:4:this.face=3,0!==this.es&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)},forward:function(t){var e,r,n,i,s,o,a={x:0,y:0},u={value:0};if(t.x-=this.long0,e=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(t.y)):t.y,r=t.x,5===this.face)i=h-e,r>=f&&r<=h+f?(u.value=1,n=r-h):r>h+f||r<=-(h+f)?(u.value=2,n=r>0?r-d:r+d):r>-(h+f)&&r<=-f?(u.value=3,n=r+h):(u.value=4,n=r);else if(6===this.face)i=h+e,r>=f&&r<=h+f?(u.value=1,n=-r+h):r<f&&r>=-f?(u.value=2,n=-r):r<-f&&r>=-(h+f)?(u.value=3,n=-r-h):(u.value=4,n=r>0?-r+d:-r-d);else{var c,l,p,y,v,g;2===this.face?r=ge(r,+h):3===this.face?r=ge(r,+d):4===this.face&&(r=ge(r,-h)),y=Math.sin(e),v=Math.cos(e),g=Math.sin(r),c=v*Math.cos(r),l=v*g,p=y,1===this.face?n=ve(i=Math.acos(c),p,l,u):2===this.face?n=ve(i=Math.acos(l),p,-c,u):3===this.face?n=ve(i=Math.acos(-c),p,-l,u):4===this.face?n=ve(i=Math.acos(-l),p,c,u):(i=n=0,u.value=1)}return o=Math.atan(12/d*(n+Math.acos(Math.sin(n)*Math.cos(f))-h)),s=Math.sqrt((1-Math.cos(i))/(Math.cos(o)*Math.cos(o))/(1-Math.cos(Math.atan(1/Math.cos(n))))),2===u.value?o+=h:3===u.value?o+=d:4===u.value&&(o+=1.5*d),a.x=s*Math.cos(o),a.y=s*Math.sin(o),a.x=a.x*this.a+this.x0,a.y=a.y*this.a+this.y0,t.x=a.x,t.y=a.y,t},inverse:function(t){var e,r,n,i,s,o,a,u,c,l,f,p,y={lam:0,phi:0},v={value:0};if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,r=Math.atan(Math.sqrt(t.x*t.x+t.y*t.y)),e=Math.atan2(t.y,t.x),t.x>=0&&t.x>=Math.abs(t.y)?v.value=1:t.y>=0&&t.y>=Math.abs(t.x)?(v.value=2,e-=h):t.x<0&&-t.x>=Math.abs(t.y)?(v.value=3,e=e<0?e+d:e-d):(v.value=4,e+=h),c=d/12*Math.tan(e),s=Math.sin(c)/(Math.cos(c)-1/Math.sqrt(2)),o=Math.atan(s),(a=1-(n=Math.cos(e))*n*(i=Math.tan(r))*i*(1-Math.cos(Math.atan(1/Math.cos(o)))))<-1?a=-1:a>1&&(a=1),5===this.face)u=Math.acos(a),y.phi=h-u,1===v.value?y.lam=o+h:2===v.value?y.lam=o<0?o+d:o-d:3===v.value?y.lam=o-h:y.lam=o;else if(6===this.face)u=Math.acos(a),y.phi=u-h,1===v.value?y.lam=-o+h:2===v.value?y.lam=-o:3===v.value?y.lam=-o-h:y.lam=o<0?-o-d:-o+d;else{var g,m,w;c=(g=a)*g,m=(c+=(w=c>=1?0:Math.sqrt(1-c)*Math.sin(o))*w)>=1?0:Math.sqrt(1-c),2===v.value?(c=m,m=-w,w=c):3===v.value?(m=-m,w=-w):4===v.value&&(c=m,m=w,w=-c),2===this.face?(c=g,g=-m,m=c):3===this.face?(g=-g,m=-m):4===this.face&&(c=g,g=m,m=-c),y.phi=Math.acos(-w)-h,y.lam=Math.atan2(m,g),2===this.face?y.lam=ge(y.lam,-h):3===this.face?y.lam=ge(y.lam,-d):4===this.face&&(y.lam=ge(y.lam,+h))}return 0!==this.es&&(l=y.phi<0?1:0,f=Math.tan(y.phi),p=this.b/Math.sqrt(f*f+this.one_minus_f_squared),y.phi=Math.atan(Math.sqrt(this.a*this.a-p*p)/(this.one_minus_f*p)),l&&(y.phi=-y.phi)),y.lam+=this.long0,t.x=y.lam,t.y=y.phi,t},names:["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"]};var we=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-9.86701e-7],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,1.8736e-8],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,9.34959e-7],[.7986,-.00755338,-500009e-10,9.35324e-7],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],Me=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-1.26793e-9,4.22642e-10],[.124,.0124,5.07171e-9,-1.60604e-9],[.186,.0123999,-1.90189e-8,6.00152e-9],[.248,.0124002,7.10039e-8,-2.24e-8],[.31,.0123992,-2.64997e-7,8.35986e-8],[.372,.0124029,9.88983e-7,-3.11994e-7],[.434,.0123893,-369093e-11,-4.35621e-7],[.4958,.0123198,-102252e-10,-3.45523e-7],[.5571,.0121916,-154081e-10,-5.82288e-7],[.6176,.0119938,-241424e-10,-5.25327e-7],[.6769,.011713,-320223e-10,-5.16405e-7],[.7346,.0113541,-397684e-10,-6.09052e-7],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-1.40374e-9],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],be=.8487,_e=1.3523,xe=function(t,e){return t[0]+e*(t[1]+e*(t[2]+e*t[3]))};const Ee={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"},forward:function(t){var e=j(t.x-this.long0),r=Math.abs(t.y),n=Math.floor(11.459155902616464*r);n<0?n=0:n>=18&&(n=17);var i={x:xe(we[n],r=l*(r-.08726646259971647*n))*e,y:xe(Me[n],r)};return t.y<0&&(i.y=-i.y),i.x=i.x*this.a*be+this.x0,i.y=i.y*this.a*_e+this.y0,i},inverse:function(t){var e={x:(t.x-this.x0)/(this.a*be),y:Math.abs(t.y-this.y0)/(this.a*_e)};if(e.y>=1)e.x/=we[18][0],e.y=t.y<0?-h:h;else{var r=Math.floor(18*e.y);for(r<0?r=0:r>=18&&(r=17);;)if(Me[r][0]>e.y)--r;else{if(!(Me[r+1][0]<=e.y))break;++r}var n=Me[r],i=5*(e.y-n[0])/(Me[r+1][0]-n[0]);i=function(t,e,r,n){for(var i=e;n;--n){var s=t(i);if(i-=s,Math.abs(s)<1e-10)break}return i}((function(t){return(xe(n,t)-e.y)/function(t,e){return t[1]+e*(2*t[2]+3*e*t[3])}(n,t)}),i,0,100),e.x/=xe(we[r],i),e.y=(5*r+i)*c,t.y<0&&(e.y=-e.y)}return e.x=j(e.x+this.long0),e},names:["Robinson","robin"]},Se={init:function(){this.name="geocent"},forward:function(t){return H(t,this.es,this.a)},inverse:function(t){return J(t,this.es,this.a,this.b)},names:["Geocentric","geocentric","geocent","Geocent"]};var Ae={h:{def:1e5,num:!0},azi:{def:0,num:!0,degrees:!0},tilt:{def:0,num:!0,degrees:!0},long0:{def:0,num:!0},lat0:{def:0,num:!0}};const Ie={init:function(){if(Object.keys(Ae).forEach(function(t){if(void 0===this[t])this[t]=Ae[t].def;else{if(Ae[t].num&&isNaN(this[t]))throw new Error("Invalid parameter value, must be numeric "+t+" = "+this[t]);Ae[t].num&&(this[t]=parseFloat(this[t]))}Ae[t].degrees&&(this[t]=this[t]*c)}.bind(this)),Math.abs(Math.abs(this.lat0)-h)<u?this.mode=this.lat0<0?1:0:Math.abs(this.lat0)<u?this.mode=2:(this.mode=3,this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0)),this.pn1=this.h/this.a,this.pn1<=0||this.pn1>1e10)throw new Error("Invalid height");this.p=1+this.pn1,this.rp=1/this.p,this.h1=1/this.pn1,this.pfact=(this.p+1)*this.h1,this.es=0;var t=this.tilt,e=this.azi;this.cg=Math.cos(e),this.sg=Math.sin(e),this.cw=Math.cos(t),this.sw=Math.sin(t)},forward:function(t){t.x-=this.long0;var e,r,n,i,s=Math.sin(t.y),o=Math.cos(t.y),a=Math.cos(t.x);switch(this.mode){case 3:r=this.sinph0*s+this.cosph0*o*a;break;case 2:r=o*a;break;case 1:r=-s;break;case 0:r=s}switch(e=(r=this.pn1/(this.p-r))*o*Math.sin(t.x),this.mode){case 3:r*=this.cosph0*s-this.sinph0*o*a;break;case 2:r*=s;break;case 0:r*=-o*a;break;case 1:r*=o*a}return i=1/((n=r*this.cg+e*this.sg)*this.sw*this.h1+this.cw),e=(e*this.cg-r*this.sg)*this.cw*i,r=n*i,t.x=e*this.a,t.y=r*this.a,t},inverse:function(t){t.x/=this.a,t.y/=this.a;var e,r,n,i={x:t.x,y:t.y};n=1/(this.pn1-t.y*this.sw),e=this.pn1*t.x*n,r=this.pn1*t.y*this.cw*n,t.x=e*this.cg+r*this.sg,t.y=r*this.cg-e*this.sg;var s=Ct(t.x,t.y);if(Math.abs(s)<u)i.x=0,i.y=t.y;else{var o,a;switch(a=1-s*s*this.pfact,a=(this.p-Math.sqrt(a))/(this.pn1/s+s/this.pn1),o=Math.sqrt(1-a*a),this.mode){case 3:i.y=Math.asin(o*this.sinph0+t.y*a*this.cosph0/s),t.y=(o-this.sinph0*Math.sin(i.y))*s,t.x*=a*this.cosph0;break;case 2:i.y=Math.asin(t.y*a/s),t.y=o*s,t.x*=a;break;case 0:i.y=Math.asin(o),t.y=-t.y;break;case 1:i.y=-Math.asin(o)}i.x=Math.atan2(t.x,t.y)}return t.x=i.x+this.long0,t.y=i.y,t},names:["Tilted_Perspective","tpers"]};var Pe;at.defaultDatum="WGS84",at.Proj=K,at.WGS84=new at.Proj("WGS84"),at.Point=xt,at.toPoint=et,at.defs=O,at.transform=nt,at.mgrs=pt,at.version="__VERSION__",(Pe=at).Proj.projections.add(Tt),Pe.Proj.projections.add(Dt),Pe.Proj.projections.add(Rt),Pe.Proj.projections.add(Gt),Pe.Proj.projections.add(Bt),Pe.Proj.projections.add(Ut),Pe.Proj.projections.add(qt),Pe.Proj.projections.add(zt),Pe.Proj.projections.add(Vt),Pe.Proj.projections.add(Zt),Pe.Proj.projections.add(ee),Pe.Proj.projections.add(ne),Pe.Proj.projections.add(ie),Pe.Proj.projections.add(se),Pe.Proj.projections.add(oe),Pe.Proj.projections.add(ae),Pe.Proj.projections.add(he),Pe.Proj.projections.add(ue),Pe.Proj.projections.add(ce),Pe.Proj.projections.add(le),Pe.Proj.projections.add(fe),Pe.Proj.projections.add(pe),Pe.Proj.projections.add(de),Pe.Proj.projections.add(ye),Pe.Proj.projections.add(me),Pe.Proj.projections.add(Ee),Pe.Proj.projections.add(Se),Pe.Proj.projections.add(Ie);const Ne=at,Te=[{title:"RGF93 (Lambert-93)",url:"http://spatialreference.org/ref/epsg/rgf93-lambert-93/",code:"EPSG:2154",proj4:"+proj=lcc +lat_1=49 +lat_2=44 +lat_0=46.5 +lon_0=3 +x_0=700000 +y_0=6600000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs"},{title:"RGF93 (CC50)",code:"EPSG:3950",url:"http://spatialreference.org/ref/epsg/3950/",proj4:"+proj=lcc +lat_1=49.25 +lat_2=50.75 +lat_0=50 +lon_0=3 +x_0=1700000 +y_0=9200000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs"},{title:"RGF93 (CC49)",code:"EPSG:3949",url:"http://spatialreference.org/ref/epsg/3949/",proj4:"+proj=lcc +lat_1=48.25 +lat_2=49.75 +lat_0=49 +lon_0=3 +x_0=1700000 +y_0=8200000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs"},{title:"RGF93 (CC48)",code:"EPSG:3948",url:"http://spatialreference.org/ref/epsg/3948/",proj4:"+proj=lcc +lat_1=47.25 +lat_2=48.75 +lat_0=48 +lon_0=3 +x_0=1700000 +y_0=7200000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs"},{title:"RGF93 (CC47)",code:"EPSG:3947",url:"http://spatialreference.org/ref/epsg/3947/",proj4:"+proj=lcc +lat_1=46.25 +lat_2=47.75 +lat_0=47 +lon_0=3 +x_0=1700000 +y_0=6200000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs"},{title:"RGF93 (CC46)",code:"EPSG:3946",url:"http://spatialreference.org/ref/epsg/3946/",proj4:"+proj=lcc +lat_1=45.25 +lat_2=46.75 +lat_0=46 +lon_0=3 +x_0=1700000 +y_0=5200000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs"},{title:"RGF93 (CC45)",code:"EPSG:3945",url:"http://spatialreference.org/ref/epsg/3945/",proj4:"+proj=lcc +lat_1=44.25 +lat_2=45.75 +lat_0=45 +lon_0=3 +x_0=1700000 +y_0=4200000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs"},{title:"RGF93 (CC44)",code:"EPSG:3944",url:"http://spatialreference.org/ref/epsg/3944/",proj4:"+proj=lcc +lat_1=43.25 +lat_2=44.75 +lat_0=44 +lon_0=3 +x_0=1700000 +y_0=3200000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs"},{title:"RGF93 (CC43)",code:"EPSG:3943",url:"http://spatialreference.org/ref/epsg/3943/",proj4:"+proj=lcc +lat_1=42.25 +lat_2=43.75 +lat_0=43 +lon_0=3 +x_0=1700000 +y_0=2200000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs"},{title:"RGF93 (CC42)",code:"EPSG:3942",url:"http://spatialreference.org/ref/epsg/3942/",proj4:"+proj=lcc +lat_1=41.25 +lat_2=42.75 +lat_0=42 +lon_0=3 +x_0=1700000 +y_0=1200000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs"},{title:"NTF (Lambert II)",code:"EPSG:27572",url:"http://spatialreference.org/ref/epsg/27572/",proj4:"+proj=lcc +lat_1=46.8 +lat_0=46.8 +lon_0=0 +k_0=0.99987742 +x_0=600000 +y_0=2200000 +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +no_defs"},{title:"NTF (Lambert III)",code:"EPSG:27573",url:"http://spatialreference.org/ref/epsg/27573/",proj4:"+proj=lcc +lat_1=44.10000000000001 +lat_0=44.10000000000001 +lon_0=0 +k_0=0.999877499 +x_0=600000 +y_0=3200000 +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +no_defs"},{title:"NTF",code:"EPSG:4275",url:"http://spatialreference.org/ref/epsg/4275/",proj4:"+proj=longlat +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0 +no_defs"},{title:"WGS84",code:"EPSG:4326",url:"https://epsg.io/4326",proj4:"+proj=longlat +datum=WGS84 +no_defs"}].map((t=>[t.code,t.proj4]));Ne.defs(Te),function(t,e){const r=6356752.314245179,n=t*t,i=r*r;Math.sqrt((n-i)/n),Math.sqrt((n-i)/i)}(6378137);var Oe=r(2023),Ce=r.n(Oe);function ke(t,...e){if(0===e.length)throw new Error("You must at least provide one property.");const r=e.shift(),n=t.hasOwnProperty(r);return 0===e.length?n?t[r]:void 0:void 0!==t[r]?ke(t[r],...e):void 0}function Le(t){return t.replace(/\r?\n?\t?/g,"").split(" ")}const De={};function Re(t,e){if(t in De)return De[t];const r=Ce()(e);return De[t]=r,r}function je(t){return t*Math.PI/180}function Fe(t){return 180*t/Math.PI}function Ge(t,e,r){const n=je(t[1]),i=je(t[0]),s=e/6378137,o=Math.asin(Math.sin(n)*Math.cos(s)+Math.cos(n)*Math.sin(s)*Math.cos(r));return[Fe(i+Math.atan2(Math.sin(r)*Math.sin(s)*Math.cos(n),Math.cos(s)-Math.sin(n)*Math.sin(o))),Fe(o)]}var Be=r(4650);function Ue(t,e,r){if(null!==t)for(var n,i,s,o,a,h,u,c,l=0,f=0,p=t.type,d="FeatureCollection"===p,y="Feature"===p,v=d?t.features.length:1,g=0;g<v;g++){a=(c=!!(u=d?t.features[g].geometry:y?t.geometry:t)&&"GeometryCollection"===u.type)?u.geometries.length:1;for(var m=0;m<a;m++){var w=0,M=0;if(null!==(o=c?u.geometries[m]:u)){h=o.coordinates;var b=o.type;switch(l=!r||"Polygon"!==b&&"MultiPolygon"!==b?0:1,b){case null:break;case"Point":if(!1===e(h,f,g,w,M))return!1;f++,w++;break;case"LineString":case"MultiPoint":for(n=0;n<h.length;n++){if(!1===e(h[n],f,g,w,M))return!1;f++,"MultiPoint"===b&&w++}"LineString"===b&&w++;break;case"Polygon":case"MultiLineString":for(n=0;n<h.length;n++){for(i=0;i<h[n].length-l;i++){if(!1===e(h[n][i],f,g,w,M))return!1;f++}"MultiLineString"===b&&w++,"Polygon"===b&&M++}"Polygon"===b&&w++;break;case"MultiPolygon":for(n=0;n<h.length;n++){for("MultiPolygon"===b&&(M=0),i=0;i<h[n].length;i++){for(s=0;s<h[n][i].length-l;s++){if(!1===e(h[n][i][s],f,g,w,M))return!1;f++}M++}w++}break;case"GeometryCollection":for(n=0;n<o.geometries.length;n++)if(!1===Ue(o.geometries[n],e,r))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function qe(t){var e={type:"Feature"};return Object.keys(t).forEach((function(r){switch(r){case"type":case"properties":case"geometry":return;default:e[r]=t[r]}})),e.properties=ze(t.properties),e.geometry=Ve(t.geometry),e}function ze(t){var e={};return t?(Object.keys(t).forEach((function(r){var n=t[r];"object"==typeof n?null===n?e[r]=null:n.length?e[r]=n.map((function(t){return t})):e[r]=ze(n):e[r]=n})),e):e}function Ve(t){var e={type:t.type};return t.bbox&&(e.bbox=t.bbox),"GeometryCollection"===t.type?(e.geometries=t.geometries.map((function(t){return Ve(t)})),e):(e.coordinates=We(t.coordinates),e)}function We(t){return"object"!=typeof t[0]?t.slice():t.map((function(t){return We(t)}))}var Xe=6371008.8,$e={meters:Xe,metres:Xe,millimeters:6371008800,millimetres:6371008800,centimeters:637100880,centimetres:637100880,kilometers:6371.0088,kilometres:6371.0088,miles:3958.761333810546,nauticalmiles:3440.069546436285,inches:250826616.45599997,yards:5825721.287490856,feet:20902260.511392,radians:1,degrees:57.22891354143274};function Ye(t,e,r){if(!Je(r=r||{}))throw new Error("options is invalid");var n=r.bbox,i=r.id;if(void 0===t)throw new Error("geometry is required");if(e&&e.constructor!==Object)throw new Error("properties must be an Object");n&&function(t){if(!t)throw new Error("bbox is required");if(!Array.isArray(t))throw new Error("bbox must be an Array");if(4!==t.length&&6!==t.length)throw new Error("bbox must be an Array of 4 or 6 numbers");t.forEach((function(t){if(!He(t))throw new Error("bbox must only contain numbers")}))}(n),i&&function(t){if(!t)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof t))throw new Error("id must be a number or a string")}(i);var s={type:"Feature"};return i&&(s.id=i),n&&(s.bbox=n),s.properties=e||{},s.geometry=t,s}function Qe(t){if(null==t)throw new Error("degrees is required");return t%360*Math.PI/180}function Ke(t,e,r){if(null==t)throw new Error("length is required");if(!(t>=0))throw new Error("length must be a positive number");return function(t,e){if(null==t)throw new Error("radians is required");if(e&&"string"!=typeof e)throw new Error("units must be a string");var r=$e[e||"kilometers"];if(!r)throw new Error(e+" units is invalid");return t*r}(function(t,e){if(null==t)throw new Error("distance is required");if(e&&"string"!=typeof e)throw new Error("units must be a string");var r=$e[e||"kilometers"];if(!r)throw new Error(e+" units is invalid");return t/r}(t,e),r||"kilometers")}function He(t){return!isNaN(t)&&null!==t&&!Array.isArray(t)}function Je(t){return!!t&&t.constructor===Object}const Ze=function(t,e,r,n){if(!Je(n=n||{}))throw new Error("options is invalid");var i=n.units,s=n.properties;if(!t)throw new Error("origin is required");if(null==e)throw new Error("distance is required");if(null==r)throw new Error("bearing is required");if(!(e>=0))throw new Error("distance must be greater than 0");var o=Ke(e,i,"meters"),a=function(t){if(!t)throw new Error("coord is required");if("Feature"===t.type&&null!==t.geometry&&"Point"===t.geometry.type)return t.geometry.coordinates;if("Point"===t.type)return t.coordinates;if(Array.isArray(t)&&t.length>=2&&void 0===t[0].length&&void 0===t[1].length)return t;throw new Error("coord must be GeoJSON Point or an Array of numbers")}(t),h=function(t,e,r,n){var i=e/(n=void 0===n?Xe:Number(n)),s=t[0]*Math.PI/180,o=Qe(t[1]),a=Qe(r),h=i*Math.cos(a),u=o+h;Math.abs(u)>Math.PI/2&&(u=u>0?Math.PI-u:-Math.PI-u);var c=Math.log(Math.tan(u/2+Math.PI/4)/Math.tan(o/2+Math.PI/4)),l=Math.abs(c)>1e-11?h/c:Math.cos(o);return[(180*(s+i*Math.sin(a)/l)/Math.PI+540)%360-180,180*u/Math.PI]}(a,o,r);return h[0]+=h[0]-a[0]>180?-360:a[0]-h[0]>180?360:0,function(t,e,r){if(!t)throw new Error("coordinates is required");if(!Array.isArray(t))throw new Error("coordinates must be an Array");if(t.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!He(t[0])||!He(t[1]))throw new Error("coordinates must contain numbers");return Ye({type:"Point",coordinates:t},e,r)}(h,s)},tr=function(t,e,r,n){if(!(i=n=n||{})||i.constructor!==Object)throw new Error("options is invalid");var i,s=n.units,o=n.zTranslation,a=n.mutate;if(!t)throw new Error("geojson is required");if(null==e||isNaN(e))throw new Error("distance is required");if(o&&"number"!=typeof o&&isNaN(o))throw new Error("zTranslation is not a number");if(o=void 0!==o?o:0,0===e&&0===o)return t;if(null==r||isNaN(r))throw new Error("direction is required");return e<0&&(e=-e,r=-r),!1!==a&&void 0!==a||(t=function(t){if(!t)throw new Error("geojson is required");switch(t.type){case"Feature":return qe(t);case"FeatureCollection":return function(t){var e={type:"FeatureCollection"};return Object.keys(t).forEach((function(r){switch(r){case"type":case"features":return;default:e[r]=t[r]}})),e.features=t.features.map((function(t){return qe(t)})),e}(t);case"Point":case"LineString":case"Polygon":case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":return Ve(t);default:throw new Error("unknown GeoJSON type")}}(t)),Ue(t,(function(t){var n=function(t){if(!t)throw new Error("coords is required");if("Feature"===t.type&&null!==t.geometry)return t.geometry.coordinates;if(t.coordinates)return t.coordinates;if(Array.isArray(t))return t;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}(Ze(t,e,r,{units:s}));t[0]=n[0],t[1]=n[1],o&&3===t.length&&(t[2]+=o)})),t};var er=r(3470);const rr="auto_detect",nr="surfaces",ir="parcels",sr="pipe_networks",or="cg_points",ar={[ir]:function(t,e,r){const n=ke(t,"LandXML","CgPoints",0,"CgPoint"),i=ke(t,"LandXML","Parcels",0,"Parcel"),o={},a=[];for(let t in n){const r=n[t],i=r.$.name.replace(/ /g,"");let s=Le(r._).map((t=>parseFloat(t)));s=[s[1],s[0],s[2]],s=Ne(e,"WGS84",s),o[i]=s}for(let t in i){var h=i[t];if(void 0!==h.CoordGeom){let t=[];var u=null,c=h.CoordGeom[0].Line;for(let e in c){var l=c[e].Start[0].$.pntRef;c[e].End[0].$.pntRef,o[l]&&(t.push(o[l]),u||(u=o[l]))}if(t.length>2){t.push(u),t=[t];var f={name:h.$.name,landxmlClass:h.$.class,landxmlState:h.$.state,landxmlParcelType:h.$.parcelType,landxmlType:"parcel",landxmlColor:Re(`parcel-${name}`,r.colorOpts)};a.push((0,s.polygon)(t,f))}}}return a},[nr]:function(t,e,r){const n=[],i=ke(t,"LandXML","Surfaces");return i?(i.forEach((t=>{const i=t.$||{},o=i.name||"",a=i.desc,h=ke(t,"Surface");Array.isArray(h)&&h.forEach((t=>{const i=o?o+" - "+t.$.name:t.$.name,h={name:i,description:a?a+" - "+t.$.desc:t.$.desc,landxmlType:"surface",landxmlColor:Re(`surface-${i}`,r.colorOpts)};let u=function(t,e,r,n){const i=ke(t,"SourceData",0,"Boundaries",0,"Boundary");if(!i)return[];const o=[];return i.forEach((t=>{const n=Le(ke(t,"PntList3D",0)).map((t=>parseFloat(t))),i=[];for(let t=0;t<n.length;t+=3){let r=[n[t+1],n[t]];r=Ne(e,"WGS84",r),i.push(r)}i.push(i[0]),o.push((0,s.polygon)([i],r))})),o}(t,e,h);if(0!==u.length)n.push(...u);else{u=function(t,e,r,n){const i=ke(t,"Definition",0,"Pnts",0,"P"),o=ke(t,"Definition",0,"Faces",0,"F"),a={};i.forEach((t=>{let r=Le(t._).map((t=>parseFloat(t)));r=[r[1],r[0],r[2]],r=Ne(e,"WGS84",r);const n=t.$.id;a[n]={name:t.$.name,coords:r}}));const h=[];return o.forEach((t=>{const e=Le(t),n=[];e.forEach((t=>{const e=a[t];n.push(e.coords)})),n.push(a[e[0]].coords),h.push((0,s.polygon)([n],r))})),[...h]}(t,e,h);let r=u[0];console.error("Applying union to %s faces (%d faces to merge)",r.properties.name,u.length);for(let t=1;t<u.length-1;t++){const e=u[t+1];if(!e)return;try{r=(0,Be.Z)(r,e)}catch(r){console.error("--\x3e Could not apply union to %s (#%d)",e.properties.name,t+1)}}r.properties=h,n.push(r)}}))})),n):n},[sr]:function(t,e,r){const n=[],i=ke(t,"LandXML","PipeNetworks");return i?(i.forEach((t=>{const i=ke(t,"PipeNetwork");if(!Array.isArray(i))return;let o={};i.forEach((t=>{const i={name:t.$.name,description:t.$.desc},a=function(t,e,r,n){const i={},o=ke(t,"Structs",0,"Struct");if(Array.isArray(o))return o.forEach((t=>{const o=ke(t,"Center",0),a=ke(t,"RectStruct",0),h=ke(t,"CircStruct",0),u=ke(t,"InletStruct",0),c=ke(t,"OutletStruct",0),l=ke(t,"Connection",0),f=void 0!==a?"rect":void 0!==h?"circ":void 0!==u?"inlet":void 0!==c?"outlet":void 0!==l?"connection":null,p=r.name?r.name+" - "+t.$.name:t.$.name,d=Object.assign({},r,{name:p,description:r.description?r.description+" - "+t.$.desc:t.$.desc,landxmlType:"pipe_network_struct",landxmlStruct:f,landxmlElevRim:"elevRim"in t.$?parseFloat(t.$.elevRim):void 0,landxmlElevSump:"elevSump"in t.$?parseFloat(t.$.elevSump):void 0,landxmlColor:Re(`pipe-network-struct-${p}`,n.colorOpts)});if(void 0!==h){const t=h.$;"diameter"in t&&(d.landxmlDiameter=parseFloat(t.diameter)),"thickness"in t&&(d.landxmlThickness=parseFloat(t.thickness))}if(void 0!==a){const t=a.$;"thickness"in t&&(d.landxmlThickness=parseFloat(t.thickness)),"length"in t&&(d.landxmlLength=parseFloat(t.length)),"width"in t&&(d.landxmlWidth=parseFloat(t.width))}const y=Le(o).map((t=>parseFloat(t)));let v,g=[y[1],y[0],y[2]];if(g=Ne(e,"WGS84",g),d.landxmlCenterLongitude=g[0],d.landxmlCenterLatitude=g[1],d.landxmlCenterAltitude=g[2],v=a?function(t,e,r,n,i){const o=(0,s.point)(t),a=(0,er.Z)(o);tr(a,r/2,270,{units:n,mutate:!0}),tr(a,e/2,0,{units:n,mutate:!0});const h=(0,er.Z)(o);tr(h,r/2,90,{units:n,mutate:!0}),tr(h,e/2,0,{units:n,mutate:!0});const u=(0,er.Z)(o);tr(u,r/2,90,{units:n,mutate:!0}),tr(u,e/2,180,{units:n,mutate:!0});const c=(0,er.Z)(o);tr(c,r/2,270,{units:n,mutate:!0}),tr(c,e/2,180,{units:n,mutate:!0});const l=[a.geometry.coordinates,h.geometry.coordinates,u.geometry.coordinates,c.geometry.coordinates,a.geometry.coordinates];return(0,s.polygon)([l],i)}(g,d.length?d.length:1,d.width?d.width:1,"meters",d):function(t,e,r,n){const i=[],o=[];for(var a=0;a<128;++a)i.push(...Ge(t,e,2*Math.PI*a/128));i.push(i[0],i[1]);for(let t=0,e=0;e<i.length;e+=2)o[t++]=i.slice(e,e+2);return(0,s.polygon)([o.reverse()],n)}(g,(d.landxmlDiameter?d.landxmlDiameter:1)/2,0,d),!v)throw new Error("Unsupported struct type");i[t.$.name]={geometry:v,center:g}})),i}(t,e,i,r);n.push(...Object.values(a).map((t=>t.geometry))),Object.assign(o,a)})),i.forEach((t=>{const e={name:t.$.name,description:t.$.desc,landxmlType:"pipe_network_pipe"},i=function(t,e,r,n,i){const o=[],a=ke(t,"Pipes",0,"Pipe");if(Array.isArray(a))return a.forEach((t=>{const r=ke(t,"CircPipe",0),a=n.name?n.name+" - "+t.$.name:t.$.name,h=Object.assign({},n,{name:a,description:n.description?n.description+" - "+t.$.desc:t.$.desc,landxmlColor:Re(`pipe-network-pipe-${a}`,i.colorOpts)});if(void 0!==r){const t=r.$;"diameter"in t&&(h.landxmlDiameter=parseFloat(t.diameter)),"thickness"in t&&(h.landxmlThickness=parseFloat(t.thickness)),"material"in t&&(h.landxmlMaterial=t.material)}const u=e[t.$.refStart],c=e[t.$.refEnd];if(!u)throw new Error(`Cannot find pipe "${h.name}" refStart "${t.$.refStart}" !`);if(!c)throw new Error(`Cannot find pipe "${h.name}" refEnd "${t.$.refEnd}" !`);const l=(0,s.lineString)([u.center,c.center],h);o.push(l)})),o}(t,o,0,e,r);n.push(...i)}))})),n):n},[or]:function(t,e,r){const n=[],i=ke(t,"LandXML","CgPoints");return i?(i.forEach((t=>{const i=t.$||{},s=i.name||"",o=i.description||"",a=ke(t,"CgPoint");Array.isArray(a)&&a.forEach((t=>{const i=s?s+" - "+t.$.name:t.$.name,a={name:i,description:o?o+" - "+t.$.desc:t.$.desc,landxmlType:"cg_point",landxmlColor:Re(`point-${i}`,r.colorOpts)},h=function(t,e,r){let n=Le(t._).map((t=>parseFloat(t)));return n=[n[1],n[0],n[2]],n=Ne(e,"WGS84",n),{type:"Feature",geometry:{type:"Point",coordinates:[...n]},properties:{...r,landxmlAltitude:n[2]}}}(t,e,a);n.push(h)}))})),n):n}};class hr{constructor(){this.defaultOptions={projection:rr,enabledConverters:[nr,ir,sr,or],parser:{normalize:!0},proj4Defs:[["EPSG:28355","+proj=utm +zone=55 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs"],...Te],featureMapper:(t,e)=>t,colorOpts:{hue:"blue",luminosity:"dark",seed:1}}}toGeoJSON(t,e={}){const r=Object.assign({},this.defaultOptions.parser,e.parser),n=new(i().Parser)(r);return this.configureProj4(e.proj4Defs),new Promise(((r,i)=>{n.parseString(t,((t,n)=>{if(t)return i(t);let s;try{s=this.convertToGeoJSON(n,e)}catch(t){return i(t)}return r(s)}))}))}convertToGeoJSON(t,e={}){const r=Object.assign({},this.defaultOptions,e),n=this.getLandXMLProjection(t,r.projection||this.defaultOptions.projection);if(!n)throw new Error("Source projection can not be found !");const i=Array.isArray(e.enabledConverters)?e.enabledConverters:this.defaultOptions.enabledConverters;let a=[];return i.forEach((e=>{if(!(e in ar))return;console.log("Executing convert '%s'...",e);const i=ar[e](t,n,r);a.push(...i)})),"function"==typeof r.featureMapper&&(a=a.map((t=>r.featureMapper(t,r)))),a.sort(((t,e)=>(0,o.Z)(t)>(0,o.Z)(e)?-1:(0,o.Z)(t)<(0,o.Z)(e)?1:0)),(0,s.featureCollection)(a)}configureProj4(t){const e=this.defaultOptions.proj4Defs.slice(0);Array.isArray(t)&&e.push(...t),Ne.defs(e)}getLandXMLProjection(t,e){if(e!==rr)return e;let r=null;return r||(r=this.findUTMProjection(t)),r}findUTMProjection(t){const e=ke(t,"LandXML","CoordinateSystem",0,"$","datum"),r=ke(t,"LandXML","CgPoints",0,"$","zoneNumber");let n=null;return e&&r&&(n=`+proj=utm +zone=${r} +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs `),n}}},8369:function(t){(function(){var e,r,n,i,s,o,a,h,u,c,l,f,p=[].slice,d={}.hasOwnProperty;e=function(){var t,e,r,n,i,s;if(s=arguments[0],i=2<=arguments.length?p.call(arguments,1):[],o(Object.assign))Object.assign.apply(null,arguments);else for(t=0,r=i.length;t<r;t++)if(null!=(n=i[t]))for(e in n)d.call(n,e)&&(s[e]=n[e]);return s},o=function(t){return!!t&&"[object Function]"===Object.prototype.toString.call(t)},a=function(t){var e;return!!t&&("function"==(e=typeof t)||"object"===e)},i=function(t){return o(Array.isArray)?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)},s=function(t){var e;if(i(t))return!t.length;for(e in t)if(d.call(t,e))return!1;return!0},h=function(t){var e,r;return a(t)&&(r=Object.getPrototypeOf(t))&&(e=r.constructor)&&"function"==typeof e&&e instanceof e&&Function.prototype.toString.call(e)===Function.prototype.toString.call(Object)},f=function(t){return(t.split(/[-_\s]+|(?=[A-Z][a-z])/)||[]).filter((function(t){return!!t}))},r=function(t){var e,r,i,s,o,a;for(s="",r=e=0,i=(o=f(t)).length;e<i;r=++e)a=o[r],s+=r?n(a.toLowerCase()):a.toLowerCase();return s},l=function(t){var e,r,i,s,o,a;for(s="",r=e=0,i=(o=f(t)).length;e<i;r=++e)a=o[r],s+=n(a.toLowerCase());return s},u=function(t){var e,r,n,i,s;for(i="",r=e=0,n=(s=f(t)).length;e<n;r=++e)i+=(r?"-":"")+s[r].toLowerCase();return i},c=function(t){var e,r,n,i,s;for(i="",r=e=0,n=(s=f(t)).length;e<n;r=++e)i+=(r?"_":"")+s[r].toLowerCase();return i},n=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},t.exports.assign=e,t.exports.isFunction=o,t.exports.isObject=a,t.exports.isArray=i,t.exports.isEmpty=s,t.exports.isPlainObject=h,t.exports.camelCase=r,t.exports.titleCase=l,t.exports.kebabCase=u,t.exports.snakeCase=c,t.exports.capitalize=n,t.exports.words=f}).call(this)},2750:function(t){(function(){t.exports=function(){function t(t,e,r){if(this.options=t.options,this.stringify=t.stringify,null==e)throw new Error("Missing attribute name of element "+t.name);if(null==r)throw new Error("Missing attribute value for attribute "+e+" of element "+t.name);this.name=this.stringify.attName(e),this.value=this.stringify.attValue(r)}return t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(t){return this.options.writer.set(t).attribute(this)},t}()}).call(this)},6170:function(t,e,r){(function(){var e,n={}.hasOwnProperty;e=r(2026),t.exports=function(t){function e(t,r){if(e.__super__.constructor.call(this,t),null==r)throw new Error("Missing CDATA text");this.text=this.stringify.cdata(r)}return function(t,e){for(var r in e)n.call(e,r)&&(t[r]=e[r]);function i(){this.constructor=t}i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype}(e,t),e.prototype.clone=function(){return Object.create(this)},e.prototype.toString=function(t){return this.options.writer.set(t).cdata(this)},e}(e)}).call(this)},2096:function(t,e,r){(function(){var e,n={}.hasOwnProperty;e=r(2026),t.exports=function(t){function e(t,r){if(e.__super__.constructor.call(this,t),null==r)throw new Error("Missing comment text");this.text=this.stringify.comment(r)}return function(t,e){for(var r in e)n.call(e,r)&&(t[r]=e[r]);function i(){this.constructor=t}i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype}(e,t),e.prototype.clone=function(){return Object.create(this)},e.prototype.toString=function(t){return this.options.writer.set(t).comment(this)},e}(e)}).call(this)},1179:function(t,e,r){(function(){var e,n={}.hasOwnProperty;e=r(2026),t.exports=function(t){function e(t,r,n,i,s,o){if(e.__super__.constructor.call(this,t),null==r)throw new Error("Missing DTD element name");if(null==n)throw new Error("Missing DTD attribute name");if(!i)throw new Error("Missing DTD attribute type");if(!s)throw new Error("Missing DTD attribute default");if(0!==s.indexOf("#")&&(s="#"+s),!s.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT");if(o&&!s.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT");this.elementName=this.stringify.eleName(r),this.attributeName=this.stringify.attName(n),this.attributeType=this.stringify.dtdAttType(i),this.defaultValue=this.stringify.dtdAttDefault(o),this.defaultValueType=s}return function(t,e){for(var r in e)n.call(e,r)&&(t[r]=e[r]);function i(){this.constructor=t}i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype}(e,t),e.prototype.toString=function(t){return this.options.writer.set(t).dtdAttList(this)},e}(e)}).call(this)},6347:function(t,e,r){(function(){var e,n={}.hasOwnProperty;e=r(2026),t.exports=function(t){function e(t,r,n){if(e.__super__.constructor.call(this,t),null==r)throw new Error("Missing DTD element name");n||(n="(#PCDATA)"),Array.isArray(n)&&(n="("+n.join(",")+")"),this.name=this.stringify.eleName(r),this.value=this.stringify.dtdElementValue(n)}return function(t,e){for(var r in e)n.call(e,r)&&(t[r]=e[r]);function i(){this.constructor=t}i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype}(e,t),e.prototype.toString=function(t){return this.options.writer.set(t).dtdElement(this)},e}(e)}).call(this)},9078:function(t,e,r){(function(){var e,n,i={}.hasOwnProperty;n=r(8369).isObject,e=r(2026),t.exports=function(t){function e(t,r,i,s){if(e.__super__.constructor.call(this,t),null==i)throw new Error("Missing entity name");if(null==s)throw new Error("Missing entity value");if(this.pe=!!r,this.name=this.stringify.eleName(i),n(s)){if(!s.pubID&&!s.sysID)throw new Error("Public and/or system identifiers are required for an external entity");if(s.pubID&&!s.sysID)throw new Error("System identifier is required for a public external entity");if(null!=s.pubID&&(this.pubID=this.stringify.dtdPubID(s.pubID)),null!=s.sysID&&(this.sysID=this.stringify.dtdSysID(s.sysID)),null!=s.nData&&(this.nData=this.stringify.dtdNData(s.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity")}else this.value=this.stringify.dtdEntityValue(s)}return function(t,e){for(var r in e)i.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(e,t),e.prototype.toString=function(t){return this.options.writer.set(t).dtdEntity(this)},e}(e)}).call(this)},4777:function(t,e,r){(function(){var e,n={}.hasOwnProperty;e=r(2026),t.exports=function(t){function e(t,r,n){if(e.__super__.constructor.call(this,t),null==r)throw new Error("Missing notation name");if(!n.pubID&&!n.sysID)throw new Error("Public or system identifiers are required for an external entity");this.name=this.stringify.eleName(r),null!=n.pubID&&(this.pubID=this.stringify.dtdPubID(n.pubID)),null!=n.sysID&&(this.sysID=this.stringify.dtdSysID(n.sysID))}return function(t,e){for(var r in e)n.call(e,r)&&(t[r]=e[r]);function i(){this.constructor=t}i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype}(e,t),e.prototype.toString=function(t){return this.options.writer.set(t).dtdNotation(this)},e}(e)}).call(this)},9077:function(t,e,r){(function(){var e,n,i={}.hasOwnProperty;n=r(8369).isObject,e=r(2026),t.exports=function(t){function e(t,r,i,s){var o;e.__super__.constructor.call(this,t),n(r)&&(r=(o=r).version,i=o.encoding,s=o.standalone),r||(r="1.0"),this.version=this.stringify.xmlVersion(r),null!=i&&(this.encoding=this.stringify.xmlEncoding(i)),null!=s&&(this.standalone=this.stringify.xmlStandalone(s))}return function(t,e){for(var r in e)i.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(e,t),e.prototype.toString=function(t){return this.options.writer.set(t).declaration(this)},e}(e)}).call(this)},6544:function(t,e,r){(function(){var e,n,i,s,o,a,h={}.hasOwnProperty;a=r(8369).isObject,o=r(2026),e=r(1179),i=r(9078),n=r(6347),s=r(4777),t.exports=function(t){function r(t,e,n){var i,s;r.__super__.constructor.call(this,t),this.documentObject=t,a(e)&&(e=(i=e).pubID,n=i.sysID),null==n&&(n=(s=[e,n])[0],e=s[1]),null!=e&&(this.pubID=this.stringify.dtdPubID(e)),null!=n&&(this.sysID=this.stringify.dtdSysID(n))}return function(t,e){for(var r in e)h.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(r,t),r.prototype.element=function(t,e){var r;return r=new n(this,t,e),this.children.push(r),this},r.prototype.attList=function(t,r,n,i,s){var o;return o=new e(this,t,r,n,i,s),this.children.push(o),this},r.prototype.entity=function(t,e){var r;return r=new i(this,!1,t,e),this.children.push(r),this},r.prototype.pEntity=function(t,e){var r;return r=new i(this,!0,t,e),this.children.push(r),this},r.prototype.notation=function(t,e){var r;return r=new s(this,t,e),this.children.push(r),this},r.prototype.toString=function(t){return this.options.writer.set(t).docType(this)},r.prototype.ele=function(t,e){return this.element(t,e)},r.prototype.att=function(t,e,r,n,i){return this.attList(t,e,r,n,i)},r.prototype.ent=function(t,e){return this.entity(t,e)},r.prototype.pent=function(t,e){return this.pEntity(t,e)},r.prototype.not=function(t,e){return this.notation(t,e)},r.prototype.up=function(){return this.root()||this.documentObject},r}(o)}).call(this)},6934:function(t,e,r){(function(){var e,n,i,s,o={}.hasOwnProperty;s=r(8369).isPlainObject,e=r(2026),i=r(5549),n=r(6434),t.exports=function(t){function e(t){e.__super__.constructor.call(this,null),t||(t={}),t.writer||(t.writer=new n),this.options=t,this.stringify=new i(t),this.isDocument=!0}return function(t,e){for(var r in e)o.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(e,t),e.prototype.end=function(t){var e;return t?s(t)&&(e=t,t=this.options.writer.set(e)):t=this.options.writer,t.document(this)},e.prototype.toString=function(t){return this.options.writer.set(t).document(this)},e}(e)}).call(this)},9227:function(t,e,r){(function(){var e,n,i,s,o,a,h,u,c,l,f,p,d,y,v,g,m,w,M,b={}.hasOwnProperty;M=r(8369),m=M.isObject,g=M.isFunction,w=M.isPlainObject,l=r(2161),n=r(6170),i=r(2096),p=r(9406),v=r(3595),f=r(4981),u=r(9077),c=r(6544),s=r(1179),a=r(9078),o=r(6347),h=r(4777),e=r(2750),y=r(5549),d=r(6434),t.exports=function(){function t(t,e,r){var n;t||(t={}),t.writer?w(t.writer)&&(n=t.writer,t.writer=new d(n)):t.writer=new d(t),this.options=t,this.writer=t.writer,this.stringify=new y(t),this.onDataCallback=e||function(){},this.onEndCallback=r||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return t.prototype.node=function(t,e,r){var n;if(null==t)throw new Error("Missing node name");if(this.root&&-1===this.currentLevel)throw new Error("Document can only have one root node");return this.openCurrent(),t=t.valueOf(),null==e&&(e={}),e=e.valueOf(),m(e)||(r=(n=[e,r])[0],e=n[1]),this.currentNode=new l(this,t,e),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,null!=r&&this.text(r),this},t.prototype.element=function(t,e,r){return this.currentNode&&this.currentNode instanceof c?this.dtdElement.apply(this,arguments):this.node(t,e,r)},t.prototype.attribute=function(t,r){var n,i;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode");if(null!=t&&(t=t.valueOf()),m(t))for(n in t)b.call(t,n)&&(i=t[n],this.attribute(n,i));else g(r)&&(r=r.apply()),this.options.skipNullAttributes&&null==r||(this.currentNode.attributes[t]=new e(this,t,r));return this},t.prototype.text=function(t){var e;return this.openCurrent(),e=new v(this,t),this.onData(this.writer.text(e,this.currentLevel+1)),this},t.prototype.cdata=function(t){var e;return this.openCurrent(),e=new n(this,t),this.onData(this.writer.cdata(e,this.currentLevel+1)),this},t.prototype.comment=function(t){var e;return this.openCurrent(),e=new i(this,t),this.onData(this.writer.comment(e,this.currentLevel+1)),this},t.prototype.raw=function(t){var e;return this.openCurrent(),e=new p(this,t),this.onData(this.writer.raw(e,this.currentLevel+1)),this},t.prototype.instruction=function(t,e){var r,n,i,s,o;if(this.openCurrent(),null!=t&&(t=t.valueOf()),null!=e&&(e=e.valueOf()),Array.isArray(t))for(r=0,s=t.length;r<s;r++)n=t[r],this.instruction(n);else if(m(t))for(n in t)b.call(t,n)&&(i=t[n],this.instruction(n,i));else g(e)&&(e=e.apply()),o=new f(this,t,e),this.onData(this.writer.processingInstruction(o,this.currentLevel+1));return this},t.prototype.declaration=function(t,e,r){var n;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node");return n=new u(this,t,e,r),this.onData(this.writer.declaration(n,this.currentLevel+1)),this},t.prototype.doctype=function(t,e,r){if(this.openCurrent(),null==t)throw new Error("Missing root node name");if(this.root)throw new Error("dtd() must come before the root node");return this.currentNode=new c(this,e,r),this.currentNode.rootNodeName=t,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},t.prototype.dtdElement=function(t,e){var r;return this.openCurrent(),r=new o(this,t,e),this.onData(this.writer.dtdElement(r,this.currentLevel+1)),this},t.prototype.attList=function(t,e,r,n,i){var o;return this.openCurrent(),o=new s(this,t,e,r,n,i),this.onData(this.writer.dtdAttList(o,this.currentLevel+1)),this},t.prototype.entity=function(t,e){var r;return this.openCurrent(),r=new a(this,!1,t,e),this.onData(this.writer.dtdEntity(r,this.currentLevel+1)),this},t.prototype.pEntity=function(t,e){var r;return this.openCurrent(),r=new a(this,!0,t,e),this.onData(this.writer.dtdEntity(r,this.currentLevel+1)),this},t.prototype.notation=function(t,e){var r;return this.openCurrent(),r=new h(this,t,e),this.onData(this.writer.dtdNotation(r,this.currentLevel+1)),this},t.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},t.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},t.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},t.prototype.openNode=function(t){if(!t.isOpen)return!this.root&&0===this.currentLevel&&t instanceof l&&(this.root=t),this.onData(this.writer.openNode(t,this.currentLevel)),t.isOpen=!0},t.prototype.closeNode=function(t){if(!t.isClosed)return this.onData(this.writer.closeNode(t,this.currentLevel)),t.isClosed=!0},t.prototype.onData=function(t){return this.documentStarted=!0,this.onDataCallback(t)},t.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},t.prototype.ele=function(){return this.element.apply(this,arguments)},t.prototype.nod=function(t,e,r){return this.node(t,e,r)},t.prototype.txt=function(t){return this.text(t)},t.prototype.dat=function(t){return this.cdata(t)},t.prototype.com=function(t){return this.comment(t)},t.prototype.ins=function(t,e){return this.instruction(t,e)},t.prototype.dec=function(t,e,r){return this.declaration(t,e,r)},t.prototype.dtd=function(t,e,r){return this.doctype(t,e,r)},t.prototype.e=function(t,e,r){return this.element(t,e,r)},t.prototype.n=function(t,e,r){return this.node(t,e,r)},t.prototype.t=function(t){return this.text(t)},t.prototype.d=function(t){return this.cdata(t)},t.prototype.c=function(t){return this.comment(t)},t.prototype.r=function(t){return this.raw(t)},t.prototype.i=function(t,e){return this.instruction(t,e)},t.prototype.att=function(){return this.currentNode&&this.currentNode instanceof c?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},t.prototype.a=function(){return this.currentNode&&this.currentNode instanceof c?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},t.prototype.ent=function(t,e){return this.entity(t,e)},t.prototype.pent=function(t,e){return this.pEntity(t,e)},t.prototype.not=function(t,e){return this.notation(t,e)},t}()}).call(this)},2161:function(t,e,r){(function(){var e,n,i,s,o,a={}.hasOwnProperty;o=r(8369),s=o.isObject,i=o.isFunction,n=r(2026),e=r(2750),t.exports=function(t){function r(t,e,n){if(r.__super__.constructor.call(this,t),null==e)throw new Error("Missing element name");this.name=this.stringify.eleName(e),this.attributes={},null!=n&&this.attribute(n),t.isDocument&&(this.isRoot=!0,this.documentObject=t,t.rootObject=this)}return function(t,e){for(var r in e)a.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(r,t),r.prototype.clone=function(){var t,e,r,n;for(e in(r=Object.create(this)).isRoot&&(r.documentObject=null),r.attributes={},n=this.attributes)a.call(n,e)&&(t=n[e],r.attributes[e]=t.clone());return r.children=[],this.children.forEach((function(t){var e;return(e=t.clone()).parent=r,r.children.push(e)})),r},r.prototype.attribute=function(t,r){var n,o;if(null!=t&&(t=t.valueOf()),s(t))for(n in t)a.call(t,n)&&(o=t[n],this.attribute(n,o));else i(r)&&(r=r.apply()),this.options.skipNullAttributes&&null==r||(this.attributes[t]=new e(this,t,r));return this},r.prototype.removeAttribute=function(t){var e,r,n;if(null==t)throw new Error("Missing attribute name");if(t=t.valueOf(),Array.isArray(t))for(r=0,n=t.length;r<n;r++)e=t[r],delete this.attributes[e];else delete this.attributes[t];return this},r.prototype.toString=function(t){return this.options.writer.set(t).element(this)},r.prototype.att=function(t,e){return this.attribute(t,e)},r.prototype.a=function(t,e){return this.attribute(t,e)},r}(n)}).call(this)},2026:function(t,e,r){(function(){var e,n,i,s,o,a,h,u,c,l,f,p,d={}.hasOwnProperty;p=r(8369),f=p.isObject,l=p.isFunction,c=p.isEmpty,o=null,e=null,n=null,i=null,s=null,h=null,u=null,a=null,t.exports=function(){function t(t){this.parent=t,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.children=[],o||(o=r(2161),e=r(6170),n=r(2096),i=r(9077),s=r(6544),h=r(9406),u=r(3595),a=r(4981))}return t.prototype.element=function(t,e,r){var n,i,s,o,a,h,u,p,y,v;if(h=null,null==e&&(e={}),e=e.valueOf(),f(e)||(r=(y=[e,r])[0],e=y[1]),null!=t&&(t=t.valueOf()),Array.isArray(t))for(s=0,u=t.length;s<u;s++)i=t[s],h=this.element(i);else if(l(t))h=this.element(t.apply());else if(f(t)){for(a in t)if(d.call(t,a))if(v=t[a],l(v)&&(v=v.apply()),f(v)&&c(v)&&(v=null),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&0===a.indexOf(this.stringify.convertAttKey))h=this.attribute(a.substr(this.stringify.convertAttKey.length),v);else if(!this.options.separateArrayItems&&Array.isArray(v))for(o=0,p=v.length;o<p;o++)i=v[o],(n={})[a]=i,h=this.element(n);else f(v)?(h=this.element(a)).element(v):h=this.element(a,v)}else h=!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===t.indexOf(this.stringify.convertTextKey)?this.text(r):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&0===t.indexOf(this.stringify.convertCDataKey)?this.cdata(r):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&0===t.indexOf(this.stringify.convertCommentKey)?this.comment(r):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&0===t.indexOf(this.stringify.convertRawKey)?this.raw(r):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&0===t.indexOf(this.stringify.convertPIKey)?this.instruction(t.substr(this.stringify.convertPIKey.length),r):this.node(t,e,r);if(null==h)throw new Error("Could not create any elements with: "+t);return h},t.prototype.insertBefore=function(t,e,r){var n,i,s;if(this.isRoot)throw new Error("Cannot insert elements at root level");return i=this.parent.children.indexOf(this),s=this.parent.children.splice(i),n=this.parent.element(t,e,r),Array.prototype.push.apply(this.parent.children,s),n},t.prototype.insertAfter=function(t,e,r){var n,i,s;if(this.isRoot)throw new Error("Cannot insert elements at root level");return i=this.parent.children.indexOf(this),s=this.parent.children.splice(i+1),n=this.parent.element(t,e,r),Array.prototype.push.apply(this.parent.children,s),n},t.prototype.remove=function(){var t;if(this.isRoot)throw new Error("Cannot remove the root element");return t=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[t,t-t+1].concat([])),this.parent},t.prototype.node=function(t,e,r){var n,i;return null!=t&&(t=t.valueOf()),e||(e={}),e=e.valueOf(),f(e)||(r=(i=[e,r])[0],e=i[1]),n=new o(this,t,e),null!=r&&n.text(r),this.children.push(n),n},t.prototype.text=function(t){var e;return e=new u(this,t),this.children.push(e),this},t.prototype.cdata=function(t){var r;return r=new e(this,t),this.children.push(r),this},t.prototype.comment=function(t){var e;return e=new n(this,t),this.children.push(e),this},t.prototype.commentBefore=function(t){var e,r;return e=this.parent.children.indexOf(this),r=this.parent.children.splice(e),this.parent.comment(t),Array.prototype.push.apply(this.parent.children,r),this},t.prototype.commentAfter=function(t){var e,r;return e=this.parent.children.indexOf(this),r=this.parent.children.splice(e+1),this.parent.comment(t),Array.prototype.push.apply(this.parent.children,r),this},t.prototype.raw=function(t){var e;return e=new h(this,t),this.children.push(e),this},t.prototype.instruction=function(t,e){var r,n,i,s,o;if(null!=t&&(t=t.valueOf()),null!=e&&(e=e.valueOf()),Array.isArray(t))for(s=0,o=t.length;s<o;s++)r=t[s],this.instruction(r);else if(f(t))for(r in t)d.call(t,r)&&(n=t[r],this.instruction(r,n));else l(e)&&(e=e.apply()),i=new a(this,t,e),this.children.push(i);return this},t.prototype.instructionBefore=function(t,e){var r,n;return r=this.parent.children.indexOf(this),n=this.parent.children.splice(r),this.parent.instruction(t,e),Array.prototype.push.apply(this.parent.children,n),this},t.prototype.instructionAfter=function(t,e){var r,n;return r=this.parent.children.indexOf(this),n=this.parent.children.splice(r+1),this.parent.instruction(t,e),Array.prototype.push.apply(this.parent.children,n),this},t.prototype.declaration=function(t,e,r){var n,s;return n=this.document(),s=new i(n,t,e,r),n.children[0]instanceof i?n.children[0]=s:n.children.unshift(s),n.root()||n},t.prototype.doctype=function(t,e){var r,n,i,o,a,h,u,c,l;for(r=this.document(),n=new s(r,t,e),i=o=0,h=(c=r.children).length;o<h;i=++o)if(c[i]instanceof s)return r.children[i]=n,n;for(i=a=0,u=(l=r.children).length;a<u;i=++a)if(l[i].isRoot)return r.children.splice(i,0,n),n;return r.children.push(n),n},t.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},t.prototype.root=function(){var t;for(t=this;t;){if(t.isDocument)return t.rootObject;if(t.isRoot)return t;t=t.parent}},t.prototype.document=function(){var t;for(t=this;t;){if(t.isDocument)return t;t=t.parent}},t.prototype.end=function(t){return this.document().end(t)},t.prototype.prev=function(){var t;if((t=this.parent.children.indexOf(this))<1)throw new Error("Already at the first node");return this.parent.children[t-1]},t.prototype.next=function(){var t;if(-1===(t=this.parent.children.indexOf(this))||t===this.parent.children.length-1)throw new Error("Already at the last node");return this.parent.children[t+1]},t.prototype.importDocument=function(t){var e;return(e=t.root().clone()).parent=this,e.isRoot=!1,this.children.push(e),this},t.prototype.ele=function(t,e,r){return this.element(t,e,r)},t.prototype.nod=function(t,e,r){return this.node(t,e,r)},t.prototype.txt=function(t){return this.text(t)},t.prototype.dat=function(t){return this.cdata(t)},t.prototype.com=function(t){return this.comment(t)},t.prototype.ins=function(t,e){return this.instruction(t,e)},t.prototype.doc=function(){return this.document()},t.prototype.dec=function(t,e,r){return this.declaration(t,e,r)},t.prototype.dtd=function(t,e){return this.doctype(t,e)},t.prototype.e=function(t,e,r){return this.element(t,e,r)},t.prototype.n=function(t,e,r){return this.node(t,e,r)},t.prototype.t=function(t){return this.text(t)},t.prototype.d=function(t){return this.cdata(t)},t.prototype.c=function(t){return this.comment(t)},t.prototype.r=function(t){return this.raw(t)},t.prototype.i=function(t,e){return this.instruction(t,e)},t.prototype.u=function(){return this.up()},t.prototype.importXMLBuilder=function(t){return this.importDocument(t)},t}()}).call(this)},4981:function(t,e,r){(function(){var e,n={}.hasOwnProperty;e=r(2026),t.exports=function(t){function e(t,r,n){if(e.__super__.constructor.call(this,t),null==r)throw new Error("Missing instruction target");this.target=this.stringify.insTarget(r),n&&(this.value=this.stringify.insValue(n))}return function(t,e){for(var r in e)n.call(e,r)&&(t[r]=e[r]);function i(){this.constructor=t}i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype}(e,t),e.prototype.clone=function(){return Object.create(this)},e.prototype.toString=function(t){return this.options.writer.set(t).processingInstruction(this)},e}(e)}).call(this)},9406:function(t,e,r){(function(){var e,n={}.hasOwnProperty;e=r(2026),t.exports=function(t){function e(t,r){if(e.__super__.constructor.call(this,t),null==r)throw new Error("Missing raw text");this.value=this.stringify.raw(r)}return function(t,e){for(var r in e)n.call(e,r)&&(t[r]=e[r]);function i(){this.constructor=t}i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype}(e,t),e.prototype.clone=function(){return Object.create(this)},e.prototype.toString=function(t){return this.options.writer.set(t).raw(this)},e}(e)}).call(this)},1996:function(t,e,r){(function(){var e,n,i,s,o,a,h,u,c,l,f,p,d,y={}.hasOwnProperty;h=r(9077),u=r(6544),e=r(6170),n=r(2096),c=r(2161),f=r(9406),p=r(3595),l=r(4981),i=r(1179),s=r(6347),o=r(9078),a=r(4777),d=r(751),t.exports=function(t){function r(t,e){this.stream=t,r.__super__.constructor.call(this,e)}return function(t,e){for(var r in e)y.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(r,t),r.prototype.document=function(t){var e,r,i,s,o,a,c,f;for(r=0,s=(a=t.children).length;r<s;r++)(e=a[r]).isLastRootNode=!1;for(t.children[t.children.length-1].isLastRootNode=!0,f=[],i=0,o=(c=t.children).length;i<o;i++)switch(e=c[i],!1){case!(e instanceof h):f.push(this.declaration(e));break;case!(e instanceof u):f.push(this.docType(e));break;case!(e instanceof n):f.push(this.comment(e));break;case!(e instanceof l):f.push(this.processingInstruction(e));break;default:f.push(this.element(e))}return f},r.prototype.attribute=function(t){return this.stream.write(" "+t.name+'="'+t.value+'"')},r.prototype.cdata=function(t,e){return this.stream.write(this.space(e)+"<![CDATA["+t.text+"]]>"+this.endline(t))},r.prototype.comment=function(t,e){return this.stream.write(this.space(e)+"\x3c!-- "+t.text+" --\x3e"+this.endline(t))},r.prototype.declaration=function(t,e){return this.stream.write(this.space(e)),this.stream.write('<?xml version="'+t.version+'"'),null!=t.encoding&&this.stream.write(' encoding="'+t.encoding+'"'),null!=t.standalone&&this.stream.write(' standalone="'+t.standalone+'"'),this.stream.write("?>"),this.stream.write(this.endline(t))},r.prototype.docType=function(t,r){var h,u,c,f;if(r||(r=0),this.stream.write(this.space(r)),this.stream.write("<!DOCTYPE "+t.root().name),t.pubID&&t.sysID?this.stream.write(' PUBLIC "'+t.pubID+'" "'+t.sysID+'"'):t.sysID&&this.stream.write(' SYSTEM "'+t.sysID+'"'),t.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(t)),u=0,c=(f=t.children).length;u<c;u++)switch(h=f[u],!1){case!(h instanceof i):this.dtdAttList(h,r+1);break;case!(h instanceof s):this.dtdElement(h,r+1);break;case!(h instanceof o):this.dtdEntity(h,r+1);break;case!(h instanceof a):this.dtdNotation(h,r+1);break;case!(h instanceof e):this.cdata(h,r+1);break;case!(h instanceof n):this.comment(h,r+1);break;case!(h instanceof l):this.processingInstruction(h,r+1);break;default:throw new Error("Unknown DTD node type: "+h.constructor.name)}this.stream.write("]")}return this.stream.write(">"),this.stream.write(this.endline(t))},r.prototype.element=function(t,r){var i,s,o,a,h,u,d,v;for(h in r||(r=0),v=this.space(r),this.stream.write(v+"<"+t.name),u=t.attributes)y.call(u,h)&&(i=u[h],this.attribute(i));if(0===t.children.length||t.children.every((function(t){return""===t.value})))this.allowEmpty?this.stream.write("></"+t.name+">"):this.stream.write("/>");else if(this.pretty&&1===t.children.length&&null!=t.children[0].value)this.stream.write(">"),this.stream.write(t.children[0].value),this.stream.write("</"+t.name+">");else{for(this.stream.write(">"+this.newline),o=0,a=(d=t.children).length;o<a;o++)switch(s=d[o],!1){case!(s instanceof e):this.cdata(s,r+1);break;case!(s instanceof n):this.comment(s,r+1);break;case!(s instanceof c):this.element(s,r+1);break;case!(s instanceof f):this.raw(s,r+1);break;case!(s instanceof p):this.text(s,r+1);break;case!(s instanceof l):this.processingInstruction(s,r+1);break;default:throw new Error("Unknown XML node type: "+s.constructor.name)}this.stream.write(v+"</"+t.name+">")}return this.stream.write(this.endline(t))},r.prototype.processingInstruction=function(t,e){return this.stream.write(this.space(e)+"<?"+t.target),t.value&&this.stream.write(" "+t.value),this.stream.write("?>"+this.endline(t))},r.prototype.raw=function(t,e){return this.stream.write(this.space(e)+t.value+this.endline(t))},r.prototype.text=function(t,e){return this.stream.write(this.space(e)+t.value+this.endline(t))},r.prototype.dtdAttList=function(t,e){return this.stream.write(this.space(e)+"<!ATTLIST "+t.elementName+" "+t.attributeName+" "+t.attributeType),"#DEFAULT"!==t.defaultValueType&&this.stream.write(" "+t.defaultValueType),t.defaultValue&&this.stream.write(' "'+t.defaultValue+'"'),this.stream.write(">"+this.endline(t))},r.prototype.dtdElement=function(t,e){return this.stream.write(this.space(e)+"<!ELEMENT "+t.name+" "+t.value+">"+this.endline(t))},r.prototype.dtdEntity=function(t,e){return this.stream.write(this.space(e)+"<!ENTITY"),t.pe&&this.stream.write(" %"),this.stream.write(" "+t.name),t.value?this.stream.write(' "'+t.value+'"'):(t.pubID&&t.sysID?this.stream.write(' PUBLIC "'+t.pubID+'" "'+t.sysID+'"'):t.sysID&&this.stream.write(' SYSTEM "'+t.sysID+'"'),t.nData&&this.stream.write(" NDATA "+t.nData)),this.stream.write(">"+this.endline(t))},r.prototype.dtdNotation=function(t,e){return this.stream.write(this.space(e)+"<!NOTATION "+t.name),t.pubID&&t.sysID?this.stream.write(' PUBLIC "'+t.pubID+'" "'+t.sysID+'"'):t.pubID?this.stream.write(' PUBLIC "'+t.pubID+'"'):t.sysID&&this.stream.write(' SYSTEM "'+t.sysID+'"'),this.stream.write(">"+this.endline(t))},r.prototype.endline=function(t){return t.isLastRootNode?"":this.newline},r}(d)}).call(this)},6434:function(t,e,r){(function(){var e,n,i,s,o,a,h,u,c,l,f,p,d,y={}.hasOwnProperty;h=r(9077),u=r(6544),e=r(6170),n=r(2096),c=r(2161),f=r(9406),p=r(3595),l=r(4981),i=r(1179),s=r(6347),o=r(9078),a=r(4777),d=r(751),t.exports=function(t){function r(t){r.__super__.constructor.call(this,t)}return function(t,e){for(var r in e)y.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(r,t),r.prototype.document=function(t){var e,r,i,s,o;for(s="",r=0,i=(o=t.children).length;r<i;r++)e=o[r],s+=function(){switch(!1){case!(e instanceof h):return this.declaration(e);case!(e instanceof u):return this.docType(e);case!(e instanceof n):return this.comment(e);case!(e instanceof l):return this.processingInstruction(e);default:return this.element(e,0)}}.call(this);return this.pretty&&s.slice(-this.newline.length)===this.newline&&(s=s.slice(0,-this.newline.length)),s},r.prototype.attribute=function(t){return" "+t.name+'="'+t.value+'"'},r.prototype.cdata=function(t,e){return this.space(e)+"<![CDATA["+t.text+"]]>"+this.newline},r.prototype.comment=function(t,e){return this.space(e)+"\x3c!-- "+t.text+" --\x3e"+this.newline},r.prototype.declaration=function(t,e){var r;return r=this.space(e),r+='<?xml version="'+t.version+'"',null!=t.encoding&&(r+=' encoding="'+t.encoding+'"'),null!=t.standalone&&(r+=' standalone="'+t.standalone+'"'),(r+="?>")+this.newline},r.prototype.docType=function(t,r){var h,u,c,f,p;if(r||(r=0),f=this.space(r),f+="<!DOCTYPE "+t.root().name,t.pubID&&t.sysID?f+=' PUBLIC "'+t.pubID+'" "'+t.sysID+'"':t.sysID&&(f+=' SYSTEM "'+t.sysID+'"'),t.children.length>0){for(f+=" [",f+=this.newline,u=0,c=(p=t.children).length;u<c;u++)h=p[u],f+=function(){switch(!1){case!(h instanceof i):return this.dtdAttList(h,r+1);case!(h instanceof s):return this.dtdElement(h,r+1);case!(h instanceof o):return this.dtdEntity(h,r+1);case!(h instanceof a):return this.dtdNotation(h,r+1);case!(h instanceof e):return this.cdata(h,r+1);case!(h instanceof n):return this.comment(h,r+1);case!(h instanceof l):return this.processingInstruction(h,r+1);default:throw new Error("Unknown DTD node type: "+h.constructor.name)}}.call(this);f+="]"}return(f+=">")+this.newline},r.prototype.element=function(t,r){var i,s,o,a,h,u,d,v,g;for(h in r||(r=0),u="",u+=(g=this.space(r))+"<"+t.name,d=t.attributes)y.call(d,h)&&(i=d[h],u+=this.attribute(i));if(0===t.children.length||t.children.every((function(t){return""===t.value})))this.allowEmpty?u+="></"+t.name+">"+this.newline:u+="/>"+this.newline;else if(this.pretty&&1===t.children.length&&null!=t.children[0].value)u+=">",u+=t.children[0].value,u+="</"+t.name+">"+this.newline;else{for(u+=">"+this.newline,o=0,a=(v=t.children).length;o<a;o++)s=v[o],u+=function(){switch(!1){case!(s instanceof e):return this.cdata(s,r+1);case!(s instanceof n):return this.comment(s,r+1);case!(s instanceof c):return this.element(s,r+1);case!(s instanceof f):return this.raw(s,r+1);case!(s instanceof p):return this.text(s,r+1);case!(s instanceof l):return this.processingInstruction(s,r+1);default:throw new Error("Unknown XML node type: "+s.constructor.name)}}.call(this);u+=g+"</"+t.name+">"+this.newline}return u},r.prototype.processingInstruction=function(t,e){var r;return r=this.space(e)+"<?"+t.target,t.value&&(r+=" "+t.value),r+"?>"+this.newline},r.prototype.raw=function(t,e){return this.space(e)+t.value+this.newline},r.prototype.text=function(t,e){return this.space(e)+t.value+this.newline},r.prototype.dtdAttList=function(t,e){var r;return r=this.space(e)+"<!ATTLIST "+t.elementName+" "+t.attributeName+" "+t.attributeType,"#DEFAULT"!==t.defaultValueType&&(r+=" "+t.defaultValueType),t.defaultValue&&(r+=' "'+t.defaultValue+'"'),r+">"+this.newline},r.prototype.dtdElement=function(t,e){return this.space(e)+"<!ELEMENT "+t.name+" "+t.value+">"+this.newline},r.prototype.dtdEntity=function(t,e){var r;return r=this.space(e)+"<!ENTITY",t.pe&&(r+=" %"),r+=" "+t.name,t.value?r+=' "'+t.value+'"':(t.pubID&&t.sysID?r+=' PUBLIC "'+t.pubID+'" "'+t.sysID+'"':t.sysID&&(r+=' SYSTEM "'+t.sysID+'"'),t.nData&&(r+=" NDATA "+t.nData)),r+">"+this.newline},r.prototype.dtdNotation=function(t,e){var r;return r=this.space(e)+"<!NOTATION "+t.name,t.pubID&&t.sysID?r+=' PUBLIC "'+t.pubID+'" "'+t.sysID+'"':t.pubID?r+=' PUBLIC "'+t.pubID+'"':t.sysID&&(r+=' SYSTEM "'+t.sysID+'"'),r+">"+this.newline},r.prototype.openNode=function(t,e){var r,n,i,s;if(e||(e=0),t instanceof c){for(n in i=this.space(e)+"<"+t.name,s=t.attributes)y.call(s,n)&&(r=s[n],i+=this.attribute(r));return i+(t.children?">":"/>")+this.newline}return i=this.space(e)+"<!DOCTYPE "+t.rootNodeName,t.pubID&&t.sysID?i+=' PUBLIC "'+t.pubID+'" "'+t.sysID+'"':t.sysID&&(i+=' SYSTEM "'+t.sysID+'"'),i+(t.children?" [":">")+this.newline},r.prototype.closeNode=function(t,e){switch(e||(e=0),!1){case!(t instanceof c):return this.space(e)+"</"+t.name+">"+this.newline;case!(t instanceof u):return this.space(e)+"]>"+this.newline}},r}(d)}).call(this)},5549:function(t,e,r){(function(){var e,n,i,s,o,a={}.hasOwnProperty;i=r(8369),e=i.camelCase,o=i.titleCase,n=i.kebabCase,s=i.snakeCase,t.exports=function(){function t(t){var e,r,n,i,s;for(n in this.assertLegalChar=(e=this.assertLegalChar,r=this,function(){return e.apply(r,arguments)}),t||(t={}),this.allowSurrogateChars=t.allowSurrogateChars,this.noDoubleEncoding=t.noDoubleEncoding,this.textCase=t.textCase,i=t.stringify||{})a.call(i,n)&&(s=i[n],this[n]=s)}return t.prototype.eleName=function(t){return t=""+t||"",t=this.applyCase(t),this.assertLegalChar(t)},t.prototype.eleText=function(t){return t=""+t||"",this.assertLegalChar(this.elEscape(t))},t.prototype.cdata=function(t){return t=(t=""+t||"").replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(t)},t.prototype.comment=function(t){if((t=""+t||"").match(/--/))throw new Error("Comment text cannot contain double-hypen: "+t);return this.assertLegalChar(t)},t.prototype.raw=function(t){return""+t||""},t.prototype.attName=function(t){return t=""+t||"",this.applyCase(t)},t.prototype.attValue=function(t){return t=""+t||"",this.attEscape(t)},t.prototype.insTarget=function(t){return""+t||""},t.prototype.insValue=function(t){if((t=""+t||"").match(/\?>/))throw new Error("Invalid processing instruction value: "+t);return t},t.prototype.xmlVersion=function(t){if(!(t=""+t||"").match(/1\.[0-9]+/))throw new Error("Invalid version number: "+t);return t},t.prototype.xmlEncoding=function(t){if(!(t=""+t||"").match(/^[A-Za-z](?:[A-Za-z0-9._-]|-)*$/))throw new Error("Invalid encoding: "+t);return t},t.prototype.xmlStandalone=function(t){return t?"yes":"no"},t.prototype.dtdPubID=function(t){return""+t||""},t.prototype.dtdSysID=function(t){return""+t||""},t.prototype.dtdElementValue=function(t){return""+t||""},t.prototype.dtdAttType=function(t){return""+t||""},t.prototype.dtdAttDefault=function(t){return null!=t?""+t||"":t},t.prototype.dtdEntityValue=function(t){return""+t||""},t.prototype.dtdNData=function(t){return""+t||""},t.prototype.convertAttKey="@",t.prototype.convertPIKey="?",t.prototype.convertTextKey="#text",t.prototype.convertCDataKey="#cdata",t.prototype.convertCommentKey="#comment",t.prototype.convertRawKey="#raw",t.prototype.assertLegalChar=function(t){var e,r;if(e=this.allowSurrogateChars?/[\u0000-\u0008\u000B-\u000C\u000E-\u001F\uFFFE-\uFFFF]/:/[\u0000-\u0008\u000B-\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE-\uFFFF]/,r=t.match(e))throw new Error("Invalid character ("+r+") in string: "+t+" at index "+r.index);return t},t.prototype.applyCase=function(t){switch(this.textCase){case"camel":return e(t);case"title":return o(t);case"kebab":case"lower":return n(t);case"snake":return s(t);case"upper":return n(t).toUpperCase();default:return t}},t.prototype.elEscape=function(t){var e;return e=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,t.replace(e,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;")},t.prototype.attEscape=function(t){var e;return e=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,t.replace(e,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;")},t}()}).call(this)},3595:function(t,e,r){(function(){var e,n={}.hasOwnProperty;e=r(2026),t.exports=function(t){function e(t,r){if(e.__super__.constructor.call(this,t),null==r)throw new Error("Missing element text");this.value=this.stringify.eleText(r)}return function(t,e){for(var r in e)n.call(e,r)&&(t[r]=e[r]);function i(){this.constructor=t}i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype}(e,t),e.prototype.clone=function(){return Object.create(this)},e.prototype.toString=function(t){return this.options.writer.set(t).text(this)},e}(e)}).call(this)},751:function(t){(function(){var e={}.hasOwnProperty;t.exports=function(){function t(t){var r,n,i,s,o,a,h;for(r in t||(t={}),this.pretty=t.pretty||!1,this.allowEmpty=null!=(n=t.allowEmpty)&&n,this.pretty?(this.indent=null!=(i=t.indent)?i:" ",this.newline=null!=(s=t.newline)?s:"\n",this.offset=null!=(o=t.offset)?o:0):(this.indent="",this.newline="",this.offset=0),a=t.writer||{})e.call(a,r)&&(h=a[r],this[r]=h)}return t.prototype.set=function(t){var r,n,i;for(r in t||(t={}),"pretty"in t&&(this.pretty=t.pretty),"allowEmpty"in t&&(this.allowEmpty=t.allowEmpty),this.pretty?(this.indent="indent"in t?t.indent:" ",this.newline="newline"in t?t.newline:"\n",this.offset="offset"in t?t.offset:0):(this.indent="",this.newline="",this.offset=0),n=t.writer||{})e.call(n,r)&&(i=n[r],this[r]=i);return this},t.prototype.space=function(t){return this.pretty?new Array((t||0)+this.offset+1).join(this.indent):""},t}()}).call(this)},5532:function(t,e,r){(function(){var e,n,i,s,o,a,h;h=r(8369),o=h.assign,a=h.isFunction,e=r(6934),n=r(9227),s=r(6434),i=r(1996),t.exports.create=function(t,r,n,i){var s,a;if(null==t)throw new Error("Root element needs a name");return i=o({},r,n,i),a=(s=new e(i)).element(t),i.headless||(s.declaration(i),null==i.pubID&&null==i.sysID||s.doctype(i)),a},t.exports.begin=function(t,r,i){var s;return a(t)&&(r=(s=[t,r])[0],i=s[1],t={}),r?new n(t,r,i):new e(t)},t.exports.stringWriter=function(t){return new s(t)},t.exports.streamWriter=function(t,e){return new i(t,e)}}).call(this)}},e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={id:n,loaded:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}return r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),r(6124),r(300)})();
//# sourceMappingURL=landxml.native.js.map