PageSourceSearch

https://app.atlas.co/_next/static/chunks/18k5c_vudrqno.js

js atlas.co collected 2026-09-24 10:10:15 UTC 321,997 bytes, 4 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="c92a40b8-746f-4e5d-8d34-b8a46a122c58")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,479201,t=>{t.v({borderBottom:"LegendItem-module-scss-module__qJjdDG__borderBottom",dragOverlay:"LegendItem-module-scss-module__qJjdDG__dragOverlay",draggable:"LegendItem-module-scss-module__qJjdDG__draggable",draggingOver:"LegendItem-module-scss-module__qJjdDG__draggingOver",emptyGroup:"LegendItem-module-scss-module__qJjdDG__emptyGroup",emptyMessage:"LegendItem-module-scss-module__qJjdDG__emptyMessage",expandable:"LegendItem-module-scss-module__qJjdDG__expandable",expandedLegend:"LegendItem-module-scss-module__qJjdDG__expandedLegend",folderChildCount:"LegendItem-module-scss-module__qJjdDG__folderChildCount",ghost:"LegendItem-module-scss-module__qJjdDG__ghost",hidden:"LegendItem-module-scss-module__qJjdDG__hidden",hiddenIndicator:"LegendItem-module-scss-module__qJjdDG__hiddenIndicator",inlineLegend:"LegendItem-module-scss-module__qJjdDG__inlineLegend",itemInfo:"LegendItem-module-scss-module__qJjdDG__itemInfo",itemMessage:"LegendItem-module-scss-module__qJjdDG__itemMessage",itemName:"LegendItem-module-scss-module__qJjdDG__itemName",itemsActions:"LegendItem-module-scss-module__qJjdDG__itemsActions",layerColor:"LegendItem-module-scss-module__qJjdDG__layerColor",layerDetails:"LegendItem-module-scss-module__qJjdDG__layerDetails",layerIconImage:"LegendItem-module-scss-module__qJjdDG__layerIconImage",layerIndicator:"LegendItem-module-scss-module__qJjdDG__layerIndicator",layerName:"LegendItem-module-scss-module__qJjdDG__layerName",layerNameEditing:"LegendItem-module-scss-module__qJjdDG__layerNameEditing",legendCaption:"LegendItem-module-scss-module__qJjdDG__legendCaption",legendItem:"LegendItem-module-scss-module__qJjdDG__legendItem",legendItemBackgroun
2d:"LegendItem-module-scss-module__qJjdDG__legendItemBackground",legendToggle:"LegendItem-module-scss-module__qJjdDG__legendToggle",lineString:"LegendItem-module-scss-module__qJjdDG__lineString",loader:"LegendItem-module-scss-module__qJjdDG__loader",markerLegendIcon:"LegendItem-module-scss-module__qJjdDG__markerLegendIcon",menuButton:"LegendItem-module-scss-module__qJjdDG__menuButton",menuDropdown:"LegendItem-module-scss-module__qJjdDG__menuDropdown",nameContainer:"LegendItem-module-scss-module__qJjdDG__nameContainer",notPhone:"LegendItem-module-scss-module__qJjdDG__notPhone",ogcLegendIcon:"LegendItem-module-scss-module__qJjdDG__ogcLegendIcon",ogcLegendIconHidden:"LegendItem-module-scss-module__qJjdDG__ogcLegendIconHidden",pendingLayer:"LegendItem-module-scss-module__qJjdDG__pendingLayer",phone:"LegendItem-module-scss-module__qJjdDG__phone",point:"LegendItem-module-scss-module__qJjdDG__point",preview:"LegendItem-module-scss-module__qJjdDG__preview",reservedActionSlot:"LegendItem-module-scss-module__qJjdDG__reservedActionSlot",selected:"LegendItem-module-scss-module__qJjdDG__selected",tooltip:"LegendItem-module-scss-module__qJjdDG__tooltip",wrapper:"LegendItem-module-scss-module__qJjdDG__wrapper"})},621642,410567,838056,t=>{"use strict";var e=t.i(94601),i=t.i(136960),r=t.i(467453);t.i(790320);var s=t.i(277257),n=t.i(307078),a=t.i(48410);t.i(390026);var o=t.i(832714),l=t.i(588331);function h(t){let e=t?.item_id??"",r=l.default.useVectorStyle(e),s=l.default.useLegend(e),n=t?.type==="vector"&&t?.catalog!=="enernite",{list:h}=(0,o.useGetColumnHeaders)(t?.id,n);return(0,i.useMemo)(()=>{if(t)return"vector"!==t.type?"raster"===t.type&&s?.content&&!Array.isArray(s.content)?{...s,content:(0,a.applyOverrides)(s.content,s.overrides)}:s:(0,a.buildDerivedLegend)(s,t.id,r,"geometry_types"in t?t.geometry_types:void 0,h)},[t,r,s,h])}t.s(["useDerivedLegend",0,h],410567);let u={outlineColor:"transparent",outlineStyle:"Solid",outlineOpacity:1,fillOpacity:.5,isHeatmap:!1,isMarker:!1,isHatchFill:!1,isOnlyLineStrings:!1,multipleElements:!1,firstColor:"transparent",layerIconGeometryType:"polygonOrMany",iconImage:void 0},c=t=>{let e=s.ActiveDataState.useDataset(t,t=>t.catalog),n=s.ActiveDataState.useDataset(t,t=>t),o=s.ActiveDataState.useDataset(t,t=>t.item_id),c=l.default.useVectorView(o),d=c?.style,f=h(n);return(0,i.useMemo)(()=>{if(!f)return u;let t=(0,a.getLayerIconGeometryType)(n),i="content"in f?f.content:void 0,s=!!(i&&(0,a.isLegendContent)(i))&&Object.values(i).some(t=>!!t&&Object.values(t).some(Array.isArray)),o=i?(0,a.getFirstColor)(i):null,l=!!(i&&(0,a.isLegendContent)(i))&&Object.values(i).every(t=>!t||Object.values(t).every(t=>Array.isArray(t)&&t[0]?.type==="LineString"));if("project"===e||"workspace"===e||"public"===e){let e,n=d?.["outline-visible"]!==!1,h=d?.["fill-visible"]!==!1,u=n&&i&&(0,a.isLegendContent)(i)?i?.line?.null?.[0]?.color?.[0]:void 0,c=n&&i&&(0,a.isLegendContent)(i)&&i?.line?.null?.[0]?.style||"Solid",f=n&&i&&(0,a.isLegendContent)(i)?i?.line?.null?.[0]?.opacity??1:0,p=h?function(t){if("number"==typeof t)return t;if(t&&"object"==typeof t&&"stops"in t&&Array.isArray(t.stops)){let e=t.stops[0];if(e&&"number"==typeof e[1])return e[1]}return .5}(i&&(0,a.isLegendContent)(i)?i?.fill?.null?.[0]?.opacity:void 0):0,g=d?.["layer-type"]==="Heatmap",y=d?.["layer-type"]==="Marker",m=d?.["hatch-pattern"]??void 0,_=d?.["icon-image"],b=d?.["icon-visible"]!==!1;if(b&&"string"==typeof _)e=_;else if(b&&_&&"object"==typeof _&&"stops"in _&&_.stops){let t=_.stops[0];b&&t&&t[1]&&(e=t[1])}return{outlineColor:(0,r.resolveColorValue)(u),outlineStyle:c,outlineOpacity:f,fillOpacity:p,isHeatmap:g,isMarker:y,isHatchFill:!!m,hatchPattern:m,multipleElements:s,firstColor:o||"transparent",isOnlyLineStrings:l,layerIconGeometryType:t,iconImage:e}}return{...u,firstColor:o||"transparent",isOnlyLineStrings:l,multipleElements:s,layerIconGeometryType:t}},[f,e,d,n])};t.s(["useEditItemName",0,t=>{let e=s.ActiveDataState.useState(e=>e.activeData[t]?.name),[r,a]=(0,i.useState)(e??""),[o,l]=(0,i.useState)(!1),h=(0,i.useRef)(null);(0,i.useEffect)(()=>{o||a(e??"")},[e,o]),(0,i.useEffect)(()=>{o&&h.current&&(h.current.scrollIntoView({block:"nearest"}),h.current.focus(),h.current.select())}
2,[o]);let u=n.default.useIsRenameRequested(t);(0,i.useEffect)(()=>{u&&(n.default.clearRenameRequest(t),l(!0))},[u,t]);let c=()=>{a(e??""),l(!1)};return{name:r,isEditing:o,startEditing:()=>{a(e??""),l(!0)},cancelEditing:c,save:()=>(l(!1),s.ActiveDataState.renameItem(t,r)),onChange:a,inputRef:h,handleKeyDown:t=>{o&&("Enter"===t.key?t.target.blur():"Escape"===t.key&&c())}}},"useLegendStyle",0,c],838056);let d=(0,i.createContext)({id:"",style:{}});t.s(["DatasetItemContext",0,d,"default",0,({id:t,children:r})=>{let s=c(t),n=(0,i.useMemo)(()=>({id:t,style:s}),[t,s]);return(0,e.jsx)(d.Provider,{value:n,children:r})}],621642)},48410,342921,t=>{"use strict";var e=t.i(239775),i=t.i(181630);t.i(273284);var r=t.i(52443);t.i(755911);var s=t.i(152137);let n=(t,e=1)=>{if(Array.isArray(t)){let[i]=t;return"string"==typeof i?n(i,e):`rgba(0, 0, 0, ${e})`}if("object"==typeof t&&null!==t){let i=t.color;return"string"==typeof i?n(i,e):`rgba(0, 0, 0, ${e})`}if("string"!=typeof t)return"rgba(0, 0, 0, 0)";if(!/^#([0-9A-F]{3}){1,2}$/i.test(t))return t;let[i,r,s]=4===t.length?[parseInt(t.charAt(1)+t.charAt(1),16),parseInt(t.charAt(2)+t.charAt(2),16),parseInt(t.charAt(3)+t.charAt(3),16)]:7===t.length?[parseInt(t.slice(1,3),16),parseInt(t.slice(3,5),16),parseInt(t.slice(5,7),16)]:[0,0,0];return`rgba(${i}, ${r}, ${s}, ${e})`};t.s(["paintValueToRGBA",0,n],342921);var a=t.i(496443),o=t.i(239101);function l(t,e,i,r){let s=Object.keys(e),n=parseInt(s[0]??""),a="line"===t?"outline-visible":`${t}-visible`;if(i&&!1===((t,e)=>{switch(e){case"fill-visible":case"outline-visible":case"circle-visible":case"line-visible":case"text-visible":case"icon-visible":case"label-visible":return t[e];default:return}})(i,a))return[];if(isNaN(n))if(isNaN(n)&&Object.keys(e).includes("null"))return Array.isArray(e.null)?e.null:[];else return[];{let t=e[String(Math.min(...s.map(t=>parseInt(t)).filter(t=>!isNaN(t))))];for(let i in e)parseInt(i)<=r&&(t=e[i]);return t??[]}}function h(t){if(!t||"object"!=typeof t||!("type"in t))return!1;let e=t.type;return"Polygon"===e||"LineString"===e||"Point"===e||"raster"===e}function u(t){return null==t?"__NULL__":String(t).toLowerCase().trim()}function c(t){let e=t.color;return"string"==typeof e?e:Array.isArray(e)&&e.length>0&&"string"==typeof e[0]?e.filter(t=>"string"==typeof t):void 0}function d(t,e){let i=t?.[e];if(i&&"object"==typeof i&&"value"in i){let t=i.value;return null!=t?String(t):void 0}}function f(t){let e=d(t,"fill-field"),i=d(t,"outline-field");return!!e&&!!i&&e===i}function p(t,e){if("line"===t){let t=d(e,"outline-field");return t?`Outline - ${t}`:"Outline"}if("circle"===t){let t=function(t){if(t?.["icon-visible"]===!1)return;let e=t?.["icon-image"];if((0,s.isStyleFunction)(e)&&e.stops?.length)return"string"==typeof e.property?e.property:void 0}(e);if(t)return`Icon - ${t}`;let i=d(e,"circle-radius-field");return i?`Size - ${i}`:"Size"}let i=d(e,"fill-field");return i&&f(e)&&e?.["outline-visible"]!==!1?`Fill & Outline - ${i}`:i?`Fill - ${i}`:"Fill"}let g=t=>void 0!==t&&!Array.isArray(t)&&("fill"in t||"line"in t||"circle"in t);function y(t){if(!t)return null;for(let e in t){let i=t[e];if(Array.isArray(i)&&i.length>0){let t=i[0];if("gradient"===t.type&&Array.isArray(t.color))return t.color[0];if(t.color){if(Array.isArray(t.color)&&t.color.length>0)return t.color[0];return t.color}}}return null}function m(t){if(!t)return null;if(Array.isArray(t))return t.length>0&&"object"==typeof t[0]&&"color"in t[0]?t[0].color:null;let e=["fill","circle","line"];for(let i of e)if(i in t){let e=y(t[i]);if(e)return e}for(let i in t)if(!e.includes(i)){let e=y(t[i]);if(e)return e}return null}let _="var(--color-icon-subtle)",b="fontSize:12;fontAntiAliasing:true;fontColor:0x374b5e";function v(t){if(!t)return"#000000";if(Array.isArray(t)){let e=t[0];return e&&"object"==typeof e&&"stops"in e?String(e.stops[0]?.[1]??"#000000"):e||"#000000"}return t}let w=["fill","line","circle"];function M(t,e){if("size-range"===t.type||"gradient"===t.type)return`__atlas_range_${e??"null"}_${t.id}__`;let i=t.rawValue;return null===i?`__atlas_null_${t.id}__`:void 0===i?`__atlas_id_${t.id}__`:String(i)}function S(t,e){if(!e)return t;let i={...t};for(let r of w){let s=t[r],n=e[r];s&&n&&(i[r]=function(t,e){let i={};for(let[r,s]of Object.entries(t)){if(!Array.isArray(s))continue;let t=s.map(t=>({item:t,override:e[M(t,r)]})).filter(({override:t})=>!t?.hidden).map(({item:t,override:e})=>e?function(t,e){let i={...t};return void 0!==e.name&&(i.name=e.name,i.isEdited=!0),"size-range"===t.type?("number"==typeof e.minValue&&(i.minValue=e.minValue),"number"==typeof e.avgValue&&(i.avgValue=e.avgValue),"number"==typeof e.maxValue&&(i.maxValue=e.maxValue)):"gradient"===t.type&&(void 0!==e.minValue&&(i.minValue=String(e.minValue)),void 0!==e.maxValue&&(i.maxValue=String(e.maxValue))),i}(t,e):t);s.some(t=>e[M(t,r)]?.order!==void 0)&&t.sort((t,i)=>(e[M(t,r)]?.order??Number.MAX_SAFE_INTEGER)-(e[M(i,r)]?.order??Number.MAX_SAFE_INTEGER)),i[r]=t}return i}(s,n))}return i}function E(t){let e=[];for(let[i,r]of Object.entries(t))if(Array.isArray(r))for(let t of r)e.push({bucket:i,item:t});return e}let x=new WeakMap;t.s(["LEGEND_LIGHT_COLOR_SHADOW",0,"rgba(0, 0, 0, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.15) 0px 0px 0px 1px","applyOverrides",0,S,"buildDerivedLegend",0,function(t,e,
2i,r,s,n){if(t&&Array.isArray(t.content))return t;let a=!n&&null!=i&&"object"==typeof i;if(a){let e=x.get(i);if(e&&e.persisted===t&&e.columnHeaders===s)return e.result}let l=i?{fill:(0,o.formatLegend)(e,i,"fill-color",r,s,n),circle:(0,o.formatLegend)(e,i,"circle-color",r,s,n),line:(0,o.formatLegend)(e,i,"outline-color",r,s,n)}:{},h=t?.overrides??(t?.content?function(t,e){let i={};for(let r of w){let s=t[r];if(!s)continue;let n=e[r],a=E(s),o=n?E(n):[],l=a.map(({bucket:t,item:e})=>M(e,t)),h=o.map(({bucket:t,item:e})=>M(e,t)),u=new Set(l),c=new Set(h),d={},f=(t,e)=>{d[t]={...d[t],...e}};for(let{bucket:t,item:e}of a){if(!0!==e.isEdited)continue;let i=M(e,t);if("size-range"===e.type||"gradient"===e.type){let t={};void 0!==e.minValue&&(t.minValue=e.minValue),"avgValue"in e&&void 0!==e.avgValue&&(t.avgValue=e.avgValue),void 0!==e.maxValue&&(t.maxValue=e.maxValue),f(i,t)}else null!==e.name&&void 0!==e.name&&f(i,{name:String(e.name)})}if(l.every(t=>c.has(t))&&o.length>0){for(let t of h)u.has(t)||f(t,{hidden:!0});let t=l.filter(t=>c.has(t)),e=h.filter(t=>u.has(t));t.some((t,i)=>t!==e[i])&&l.forEach((t,e)=>f(t,{order:e}))}Object.keys(d).length>0&&(i[r]=d)}return Object.keys(i).length>0?i:void 0}(t.content,l):void 0),u={caption:t?.caption,hide_legend:t?.hide_legend,overrides:h,sectionTitles:t?.sectionTitles,content:S(l,h)};return a&&x.set(i,{persisted:t,columnHeaders:s,result:u}),u},"computeBorderColor",0,(t,e,i,r,s=_)=>i?r?"transparent":"string"==typeof t?n(t||s,e):Array.isArray(t)?n(t[0]||s,e):n(s,e):s,"flattenColor",0,v,"getDerivedSectionHeader",0,function(t,e){return p(t,e)},"getFillOpacity",0,function(t){return g(t)?t?.fill?.null?.[0]?.opacity??.5:1},"getFirstColor",0,m,"getLayerColor",0,(t,e,i,r)=>e?"enernite"===t&&i?.content?m(i.content)||r:m(i?.content)||r:"var(--color-icon-subtle)","getLayerIconGeometryType",0,t=>{if(!t||!(0,r.isVectorDatasetItem)(t))return"polygonOrMany";let e=t.geometry_types;if(!e||0===e.length)return"polygonOrMany";if(1===e.length){let t=e[0];if("LineString"===t||"MultiLineString"===t)return"onlyLineString";if("Point"===t||"MultiPoint"===t)return"onlyPoint"}else{if(e.every(t=>"LineString"===t||"MultiLineString"===t))return"onlyLineString";if(e.every(t=>"Point"===t||"MultiPoint"===t))return"onlyPoint"}return"polygonOrMany"},"getOutlineColor",0,function(t){if(g(t))return t?.line?.null?.[0]?.color},"getOutlineOpacity",0,function(t){return g(t)?t?.line?.null?.[0]?.opacity??1:1},"getOutlineStyle",0,function(t){return g(t)?t?.line?.null?.[0]?.style:"solid"},"getValidLegendRows",0,(t,e,i,r)=>{if(!t?.content||!r)return[];let s="layer-type"in r&&"Heatmap"===r["layer-type"],n=Object.entries(t.content).filter(([,t])=>"object"==typeof t&&!Array.isArray(t)).filter(([t])=>!s||"circle"===t).flatMap(([t,e])=>{let s=function(t,e){if(!t)return;let i=Object.keys(t),r=i.filter(t=>!Number.isNaN(parseInt(t,10)));if(r.length>0){let t=r[0];for(let i of r)parseInt(i,10)<=e&&(t=i);return t}return i.includes("null")?"null":i[0]}(e,i),n=l(t,e,r,i).map(e=>({layer:e,type:t,zoomBucket:s})).filter(({layer:t})=>(function(t){if(t&&"object"==typeof t){let e=null!==t.name&&void 0!==t.name,i=void 0!==t.minValue&&void 0!==t.maxValue&&void 0!==t.avgValue,r="gradient"===t.type&&void 0!==t.minValue&&void 0!==t.maxValue&&Array.isArray(t.color);return e||i||r}return!1})(t));if(1===n.length){let t=n[0].layer;if(h(t)&&null===t.rawValue&&!t.iconImage)return[]}return n}),a="geometry_types"in e?e.geometry_types:void 0,o=a?.includes("Polygon")||a?.includes("MultiPolygon")||!1,d=a?.includes("Point")||a?.includes("MultiPoint")||!1,p=o?"Polygon":d?"Point":null;return p&&0===r["fill-opacity"]&&(n=n.filter(t=>"fill"!==t.type)),p&&(n=function(t,e){if(!e||!1===e["outline-visible"])return t;let i=e["outline-color"],r=null!=i&&"object"==typeof i&&"stops"in i;if(null==i||r)return t;let s=v(i),n="number"==typeof e["outline-opacity"]?e["outline-opacity"]:1;return t.map(t=>"fill"===t.type&&h(t.layer)&&null==t.layer.outlineColor?{...t,layer:{...t.layer,outlineColor:s,outlineOpacity:n,outlineStyle:"solid"}}:t)}(n=function(t,e,i){var r,s,n,a,o;let l,d=t.filter(t=>"fill"===t.type),f=t.filter(t=>"line"===t.type),p=d.filter(t=>h(t.layer)),g=f.filter(t=>h(t.layer)),y=p[0],m=1===p.length&&g.length>1&&y&&h(y.layer),_=t;
2for(let p of(m?_=function(t,e,i,r){let s=e.layer;if(!h(s))return t;let n=s.color,a=s.opacity??.5;return i.forEach(t=>{let e=t.layer;h(e)&&(t.layer={...e,color:n,opacity:a,outlineColor:c(e),outlineOpacity:e.opacity??1,outlineStyle:e.style,type:r},t.type="fill")}),t.filter(t=>"fill"!==t.type||t!==e)}(t,y,g,i):e&&d.length>0&&f.length>0&&(r=t,s=d,n=f,l=new Set,s.forEach(t=>{let e=t.layer;if(!h(e))return;let i=function(t,e){if(void 0!==t.rawValue){let i=e.find(e=>{let i=e.layer;return!!h(i)&&void 0!==i.rawValue&&i.rawValue===t.rawValue});if(i)return i}let i=u(t.name),r=e.find(t=>{let e=t.layer;return!!h(e)&&u(e.name)===i});if(r)return r}(e,n);if(i&&h(i.layer)){let r=i.layer;l.add(r.id),t.layer={...e,outlineColor:c(r),outlineOpacity:r.opacity,outlineStyle:r.style}}}),_=r.filter(t=>"line"!==t.type||!h(t.layer)||!l.has(t.layer.id))),_)){h(p.layer)&&("fill"===p.type?p.layer.type!==i&&(p.layer={...p.layer,type:i}):"line"===p.type&&(a=p.layer,o=i,p.layer={...a,outlineColor:c(a),outlineOpacity:a.opacity,outlineStyle:a.style,color:["transparent"],type:o}))}return _}(n,f(r),p),r)),n},"getWMSLegend",0,(t,e,r)=>{let s=t.url.split("?")[0],n=e.includes(",")?e.split(",")[0]:e,o=`SERVICE=WMS&REQUEST=GetLegendGraphic&VERSION=1.1.1&FORMAT=image%2Fpng&LAYER=${n}`,l="style"in t?t.style:void 0;l&&(o+=`&STYLE=${encodeURIComponent(l)}`);let h="string"==typeof r?r:Array.isArray(r)?r.flat().join(","):"";return(h?o+=`&bbox=${h}&srs=EPSG:3857&srcwidth=800&srcheight=600&legend_options=countMatched:true;hideEmptyRules:true;${b}`:o+=`&legend_options=${b}`,s?.includes(a.api_root))?`${s}/token?${o}&token_param=${i.Auth.token}`:`${s}?${o}`},"groupLegendRows",0,function(t,e,i){let r=[],s=new Map;for(let e of t){let t=s.get(e.type);t||(t=[],s.set(e.type,t),r.push(e.type)),t.push(e)}let n=t=>i?.[t],a=r.length>1||r.some(t=>n(t));return r.map(t=>({type:t,rows:s.get(t),header:a?n(t)??p(t,e):void 0}))},"isLegendContent",0,g,"isNoContent",0,(t,i,r,s)=>t!==e.datasetCatalog.enernite?((t,e,i)=>{if(!t||e&&"url_styles"in e&&"False"===e.url_styles)return!0;let r=Array.isArray(t),s=r?[]:Object.keys(t).map(r=>{let s=t[r];return s?s.null&&s.null[0]&&("gradient"===s.null[0].type||"size-range"===s.null[0].type)?["1","2"]:l(r,s,e,i).filter(t=>t.color||"type"in t&&"gradient"===t.type):[]});return r?0===t.length:!!s.every(t=>t.length<=1)})(i,s,r):Array.isArray(i)&&1===i.length,"isOverrideSection",0,t=>"fill"===t||"line"===t||"circle"===t,"legendHasZoomBuckets",0,function(t){let e=t?.content;return!(!e||Array.isArray(e))&&Object.values(e).some(t=>!!t&&"object"==typeof t&&Object.keys(t).length>1)},"legendKey",0,M,"mergeOverride",0,function(t,e,i,r){let s={...t},n={...s[e]};return n[i]={...n[i],...r},s[e]=n,s},"resolveRampColor",0,function(t,e,i){let r;if("string"==typeof t)return t;let s=t?.stops;if(!s?.length)return i;let n=String(s[0]?.[1]??i);if(null==e||""===e){let t=s.find(t=>null===t[0]);return t?String(t[1]):n}let a="number"==typeof e?e:Number(e);if(Number.isNaN(a)){let t=s.find(t=>t[0]===e);return t?String(t[1]):n}for(let t of s)"number"==typeof t[0]&&t[0]<=a&&(r=t);return r?String(r[1]):n}],48410)},562864,t=>{t.v({chip:"DrawerSelect-module-scss-module__sCGO-a__chip",chipLabel:"DrawerSelect-module-scss-module__sCGO-a__chipLabel",chipRemove:"DrawerSelect-module-scss-module__sCGO-a__chipRemove",container:"DrawerSelect-module-scss-module__sCGO-a__container",disabled:"DrawerSelect-module-scss-module__sCGO-a__disabled",doneButton:"DrawerSelect-module-scss-module__sCGO-a__doneButton",drawerContent:"DrawerSelect-module-scss-module__sCGO-a__drawerContent",drawerFooter:"DrawerSelect-module-scss-module__sCGO-a__drawerFooter",drawerHandle:"DrawerSelect-module-scss-module__sCGO-a__drawerHandle",drawerHeader:"DrawerSelect-module-scss-module__sCGO-a__drawerHeader",drawerTitle:"DrawerSelect-module-scss-module__sCGO-a__drawerTitle",flexGrow:"DrawerSelect-module-scss-module__sCGO-a__flexGrow",fullscreen:"DrawerSelect-module-scss-module__sCGO-a__fullscreen",mobileFrame:"DrawerSelect-module-scss-module__sCGO-a__mobileFrame",noResults:"DrawerSelect-module-scss-module__sCGO-a__noResults",optionCheck:"DrawerSelect-module-scss-module__sCGO-a__optionCheck",optionItem:"DrawerSelect-module-scss-module__sCGO-a__optionItem",optionLabel:"DrawerSelect-module-scss-module__sCGO-a__optionLabel",optionsContainer:"DrawerSelect-module-scss-module__sCGO-a__optionsContainer",optionsList:"DrawerSelect-module-scss-module__sCGO-a__optionsList",overlay:"DrawerSelect-module-scss-module__sCGO-a__overlay",placeholder:"DrawerSelect-module-scss-module__sCGO-a__placeholder",searchContainer:"DrawerSelect-module-scss-module__sCGO-a__searchContainer",searchInput:"DrawerSelect-module-scss-module__sCGO-a__searchInput",selectTrigger:"DrawerSelect-module-scss-module__sCGO-a__selectTrigger",selected:"DrawerSelect-module-scss-module__sCGO-a__selected",selectedChips:"DrawerSelect-module-scss-module__sCGO-a__selectedChips"})},246821,t=>{t.v({container:"DropdownSelect-module-scss-module__OQcSSa__container",dropdownWidthFitContent:"DropdownSelect-module-scss-module__OQcSSa__dropdownWidthFitContent",error:"DropdownSelect-module-scss-module__OQcSSa__error",errorContainer:"DropdownSelect-module-scss-module__OQcSSa__errorContainer",flexGrow:"DropdownSelect-module-scss-module__OQcSSa__flexGrow",hasError:"DropdownSelect-module-scss-module__OQcSSa__hasError",minimal:"DropdownSelect-module-scss-module__OQcSSa__minimal",pill:"DropdownSelect-module-scss-module__OQcSSa__pill",pillXl:"DropdownSelect-module-scss-module__OQcSSa__pillXl",pillsList:"DropdownSelect-module-scss-module__OQcSSa__pillsList",selectDropdown:"DropdownSelect-module-scss-module__OQcSSa__selectDropdown",selectInput:"DropdownSelect-module-scss-module__OQcSSa__selectInput",selectItem:"DropdownSelect-module-scss-module__OQcSSa__selectItem",selectSection:"DropdownSelect-module-scss-module__OQcSSa__selectSection",xl:"DropdownSelect-module-scss-module__OQcSSa__xl",xs:"DropdownSelect-module-scss-module__OQcSSa__xs"})},69575,t=>{t.v({description:"SelectOption-module-scss-module__FNoOoq__description",disabled:"SelectOption-module-scss-module__FNoOoq__disabled",marginLeft:"SelectOption-module-scss-module__FNoOoq__marginLeft",option:"SelectOption-module-scss-module__FNoOoq__option",value:"SelectOption-module-scss-module__FNoOoq__value"})},906502,842200,662554,239424,836671,816361,862799,t=>{"use strict";var e=t.i(226974),i=t.i(94601),r=t.i(565975),s=t.i(938814),n=t.i(773872),a=t.i(629331),o=t.i(935429),l=t.i(256089),h=t.i(49493);function u(t){return t.reduce((t,e)=>"group"in e?{...t,...u(e.items)}:(t[`${e.value}`]=e,t),{})}t.s(["getOptionsLockup",0,u],842200);var c=t.i(733556),d=t.i(974845),f=t.i(1260),p=t.i(426940),g=t.i(299355),y=t.i(351262),m=t.i(295415),_=t.i(197649);function b({data:t,withCheckIcon:e,withAlignedLabels:r,value:s,checkIconPosition:n,unstyled:a,renderOption:o}
2){if(!(0,m.isOptionsGroup)(t)){var l;let h=(l=t.value,Array.isArray(s)?s.includes(l):s===l),u=e&&(h?(0,i.jsx)(y.CheckIcon,{className:p.default.optionsDropdownCheckIcon}):r?(0,i.jsx)("div",{className:p.default.optionsDropdownCheckPlaceholder}):null),c=(0,i.jsxs)(i.Fragment,{children:["left"===n&&u,(0,i.jsx)("span",{children:t.label}),"right"===n&&u]});return(0,i.jsx)(d.Combobox.Option,{value:t.value,disabled:t.disabled,className:(0,_.default)({[p.default.optionsDropdownOption]:!a}),"data-reverse":"right"===n||void 0,"data-checked":h||void 0,"aria-selected":h,active:h,children:"function"==typeof o?o({option:t,checked:h}):c})}let h=t.items.map(t=>(0,i.jsx)(b,{data:t,value:s,unstyled:a,withCheckIcon:e,withAlignedLabels:r,checkIconPosition:n,renderOption:o},`${t.value}`));return(0,i.jsx)(d.Combobox.Group,{label:t.group,children:h})}function v({data:t,hidden:e,hiddenWhenEmpty:r,filter:s,search:n,limit:a,maxDropdownHeight:o,floatingHeight:l,withScrollArea:h=!0,filterOptions:u=!0,withCheckIcon:c=!1,withAlignedLabels:p=!1,value:y,checkIconPosition:_,nothingFoundMessage:w,unstyled:M,labelId:S,renderOption:E,scrollAreaProps:x,"aria-label":P}){let A=(0,g.useComboboxContext)();!function t(e,i=new Set){if(Array.isArray(e))for(let r of e)if((0,m.isOptionsGroup)(r))t(r.items,i);else{if(void 0===r.value)throw Error("[@mantine/core] Each option must have value property");if(i.has(r.value))throw Error(`[@mantine/core] Duplicate options are not supported. Option with value "${r.value}" was provided more than once`);i.add(r.value)}}(t);let C="string"==typeof n?(s||function t({options:e,search:i,limit:r}){let s=i.trim().toLowerCase(),n=[];for(let a=0;a<e.length;a+=1){let o=e[a];if(n.length===r)break;(0,m.isOptionsGroup)(o)&&n.push({group:o.group,items:t({options:o.items,search:i,limit:r-n.length})}),!(0,m.isOptionsGroup)(o)&&o.label.toLowerCase().includes(s)&&n.push(o)}return n})({options:t,search:u?n:"",limit:a??1/0}):t,N=function(t){if(0===t.length)return!0;for(let e of t)if(!("group"in e)||e.items.length>0)return!1;return!0}(C),G=C.map((t,e)=>(0,i.jsx)(b,{data:t,withCheckIcon:c,withAlignedLabels:p,value:y,checkIconPosition:_,unstyled:M,renderOption:E},(0,m.isOptionsGroup)(t)?`group-${"string"==typeof t.group?t.group:e}`:`${t.value}`));return(0,i.jsx)(d.Combobox.Dropdown,{hidden:e||r&&N,"data-composed":!0,children:(0,i.jsxs)(d.Combobox.Options,{labelledBy:S,"aria-label":P,children:[h?(0,i.jsx)(f.ScrollArea.Autosize,{mah:(l??A.floatingHeight)==="viewport"?"var(--combobox-floating-options-max-height)":o??220,type:"scroll",scrollbarSize:"var(--combobox-padding)",offsetScrollbars:"y",...x,children:G}):G,N&&w&&(0,i.jsx)(d.Combobox.Empty,{children:w})]})})}function w(t,e,i,r){if(e===i||"before"===r&&i===e+1||"after"===r&&i===e-1)return t;let s=t.slice(),[n]=s.splice(e,1),a=e<i?i-1:i;return"after"===r&&(a+=1),s.splice(a,0,n),s}t.s(["OptionsDropdown",0,v],662554);var M=t.i(136960),S=t.i(191071),E=t.i(88270);function x(t){return"string"==typeof t?t.trim().toLowerCase():t}var P=t.i(725752),A=t.i(362917);let C={xs:41,sm:50,md:60,lg:72,xl:89},N={maxValues:1/0,withCheckIcon:!0,checkIconPosition:"left",hiddenInputValuesDivider:",",clearSearchOnChange:!0,openOnFocus:!0,size:"sm"},G=(0,o.genericFactory)(t=>{let e=(0,r.useProps)(["Input","InputWrapper","MultiSelect"],N,t),{classNames:o,className:l,style:f,styles:p,unstyled:g,vars:y,size:_,value:b,defaultValue:G,onChange:I,onKeyDown:O,variant:T,data:j,dropdownOpened:D,defaultDropdownOpened:R,onDropdownOpen:L,onDropdownClose:k,selectFirstOptionOnChange:F,selectFirstOptionOnDropdownOpen:q,onOptionSubmit:B,comboboxProps:U,filter:V,limit:W,withScrollArea:z,maxDropdownHeight:K,floatingHeight:H,searchValue:$,defaultSearchValue:J,onSearchChange:Q,readOnly:X,disabled:Y,onFocus:Z,onBlur:tt,radius:te,rightSection:ti,rightSectionWidth:tr,rightSectionPointerEvents:ts,rightSectionProps:tn,leftSection:ta,leftSectionWidth:to,leftSectionPointerEvents:tl,leftSectionProps:th,inputContainer:tu,inputWrapperOrder:tc,withAsterisk:td,labelProps:tf,descriptionProps:tp,errorProps:tg,successProps:ty,wrapperProps:tm,description:t_,label:tb,error:tv,success:tw,maxValues:tM,searchable:tS,nothingFoundMessage:tE,withCheckIcon:tx,withAlignedLabels:tP,checkIconPosition:tA,hidePickedOptions:tC,withErrorStyles:tN,withSuccessStyles:tG,name:tI,form:tO,id:tT,clearable:tj,clearSectionMode:tD,clearButtonProps:tR,hiddenInputProps:tL,placeholder:tk,hiddenInputValuesDivider:tF,required:tq,mod:tB,renderOption:tU,renderPill:tV,onRemove:tW,onClear:tz,onMaxValues:tK,scrollAreaProps:tH,chevronColor:t$,attributes:tJ,clearSearchOnChange:tQ,openOnFocus:tX,loading:tY,loadingPosition:tZ,withPillsReorder:t0,...t1}=e,t2=(0,P.useId)(tT),t4=(0,h.getParsedComboboxData)(j),t8=u(t4),t3=(0,M.useRef)({}),t6=(0,c.useCombobox)({opened:D,defaultOpened:R,onDropdownOpen:()=>{L?.(),q&&t6.selectFirstOption()},onDropdownClose:()=>{k?.(),t6.resetSelectedOption()}}),{styleProps:t5,rest:{type:t9,autoComplete:t7,...et}}=(0,a.extractStyleProps)(t1),[ee,ei]=(0,A.useUncontrolled)({value:b,defaultValue:G,finalValue:[],onChange:I}),{getPillProps:er,getListProps:es,handleInputKeyDown:en}=function({value:t,onChange:e,enabled:i}){let r=(0,M.useRef)({draggedIndex:null,currentDropTarget:null}),s=(0,M.useRef)(null),n=(0,M.useRef)(null),a=(0,M.useRef)(t);a.current=t,(0,M.useEffect)(()=>{let t=s.current;!t||(s.current=null,((t,e)=>{if(t===e)return!0;
2if(t.length!==e.length)return!1;for(let i=0;i<t.length;i+=1)if(t[i]!==e[i])return!1;return!0})(a.current,t.expectedValue)&&t.container?.querySelector(`[data-mantine-pill-index="${t.index}"]`)?.focus())});let o=(0,M.useCallback)(t=>{n.current=t},[]);return{getPillProps:t=>{if(i)return{draggable:!0,tabIndex:-1,"data-mantine-pill-index":t,"aria-keyshortcuts":"Alt+ArrowLeft Alt+ArrowRight",onMouseDown:t=>{0===t.button&&t.stopPropagation()},onDragStart:e=>{e.stopPropagation(),e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("text/plain",String(t)),r.current.draggedIndex=t;let i=e.currentTarget,s=i.getBoundingClientRect(),n=i.cloneNode(!0);n.removeAttribute("data-dragging"),n.removeAttribute("data-drag-over"),n.style.position="fixed",n.style.top="-9999px",n.style.left="-9999px",n.style.width=`${s.width}px`,n.style.height=`${s.height}px`,n.style.pointerEvents="none",document.body.appendChild(n),e.dataTransfer.setDragImage(n,e.clientX-s.left,e.clientY-s.top),setTimeout(()=>n.parentNode?.removeChild(n),0),requestAnimationFrame(()=>{i.setAttribute("data-dragging","true")})},onDragOver:e=>{let{draggedIndex:i}=r.current;if(null===i||i===t)return;let s=e.currentTarget,n=s.getBoundingClientRect(),a=e.clientX-n.left,o=("rtl"===getComputedStyle(s).direction?a>n.width/2:a<n.width/2)?"before":"after";e.preventDefault(),e.stopPropagation(),e.dataTransfer.dropEffect="move";let l=r.current.currentDropTarget;l&&l!==s&&l.removeAttribute("data-drag-over"),s.setAttribute("data-drag-over",o),r.current.currentDropTarget=s},onDragLeave:t=>{let e=t.currentTarget,i=t.relatedTarget;i&&e.contains(i)||(e.removeAttribute("data-drag-over"),r.current.currentDropTarget===e&&(r.current.currentDropTarget=null))},onDrop:i=>{i.preventDefault(),i.stopPropagation();let s=i.currentTarget,n=s.getAttribute("data-drag-over");s.removeAttribute("data-drag-over");let{draggedIndex:o}=r.current;if(null!==o&&n&&o!==t){let i=w(a.current,o,t,n);i!==a.current&&e(i)}r.current.draggedIndex=null,r.current.currentDropTarget=null},onDragEnd:t=>{t.currentTarget.removeAttribute("data-dragging");let e=r.current.currentDropTarget;e&&e.removeAttribute("data-drag-over"),r.current.draggedIndex=null,r.current.currentDropTarget=null},onKeyDown:i=>{if("ArrowLeft"!==i.key&&"ArrowRight"!==i.key)return;let r=i.currentTarget,n="rtl"===getComputedStyle(r).direction?"ArrowLeft"===i.key:"ArrowRight"===i.key,o=n?t+1:t-1;if(i.altKey){if(o<0||o>=a.current.length)return;i.preventDefault(),i.stopPropagation();let l=w(a.current,t,o,n?"after":"before");if(l===a.current)return;s.current={container:r.parentElement,index:o,expectedValue:l},e(l);return}if(o<0)return;let l=r.parentElement;if(l){if(i.preventDefault(),i.stopPropagation(),o>=a.current.length){let t;return void(!(t=l.lastElementChild)?null:t instanceof HTMLInputElement?t:t.querySelector("input"))?.focus()}l.querySelector(`[data-mantine-pill-index="${o}"]`)?.focus()}}}},getListProps:()=>i?{ref:o}:{},handleInputKeyDown:t=>{if(!i||"ArrowLeft"!==t.key)return;let e=t.currentTarget;if(0!==e.value.length&&(0!==e.selectionStart||0!==e.selectionEnd))return;let r=n.current;if(!r)return;let s=r.querySelectorAll("[data-mantine-pill-index]");0!==s.length&&(t.preventDefault(),s[s.length-1].focus())}}}({value:ee,onChange:ei,enabled:t0&&!Y&&!X}),[ea,eo]=(0,A.useUncontrolled)({value:$,defaultValue:J,finalValue:"",onChange:Q}),el=t=>{eo(t),t6.resetSelectedOption()}
2,eh=(0,n.useStyles)({name:"MultiSelect",classes:{},props:e,classNames:o,styles:p,unstyled:g,attributes:tJ}),{resolvedClassNames:eu,resolvedStyles:ec}=(0,s.useResolvedStylesApi)({props:e,styles:p,classNames:o}),ed=ee.map((t,e)=>{let r=t8[`${t}`]||t3.current[`${t}`],s=er(e);return tV?(0,i.jsx)(M.Fragment,{children:tV({option:r,value:t,onRemove:()=>{ei(ee.filter(e=>t!==e)),tW?.(t)},disabled:Y,reorderProps:s})},`${t}-${e}`):(0,i.jsx)(S.Pill,{withRemoveButton:!X&&!t8[`${t}`]?.disabled,onRemove:()=>{ei(ee.filter(e=>t!==e)),tW?.(t)},unstyled:g,disabled:Y,...eh("pill"),...s,children:r?.label||t},`${t}-${e}`)});(0,M.useEffect)(()=>{F&&t6.selectFirstOption()},[F,ea]),(0,M.useEffect)(()=>{ee.forEach(t=>{`${t}`in t8&&(t3.current[`${t}`]=t8[`${t}`])})},[t8,ee]);let ef=(0,i.jsx)(d.Combobox.ClearButton,{...tR,onClear:()=>{tz?.(),ei([]),el("")}}),ep=function({data:t,value:e}){let i=e.map(x);return t.reduce((t,e)=>((0,m.isOptionsGroup)(e)?t.push({group:e.group,items:e.items.filter(t=>-1===i.indexOf(x(t.value)))}):-1===i.indexOf(x(e.value))&&t.push(e),t),[])}({data:t4,value:ee}),eg=tj&&ee.length>0&&!Y&&!X,ey=eg?{paddingInlineEnd:C[_]??C.sm}:void 0;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(d.Combobox,{store:t6,classNames:eu,styles:ec,unstyled:g,size:_,readOnly:X,__staticSelector:"MultiSelect",attributes:tJ,floatingHeight:H,onOptionSubmit:t=>{B?.(t),tQ&&el(""),t6.updateSelectedOptionIndex("selected"),ee.includes(t8[`${t}`].value)?(ei(ee.filter(e=>e!==t8[`${t}`].value)),tW?.(t8[`${t}`].value)):ee.length<tM?ei([...ee,t8[`${t}`].value]):tK?.()},...U,children:[(0,i.jsx)(d.Combobox.DropdownTarget,{children:(0,i.jsx)(E.PillsInput,{...t5,__staticSelector:"MultiSelect",classNames:eu,styles:ec,unstyled:g,size:_,className:l,style:f,variant:T,disabled:Y,radius:te,__defaultRightSection:(0,i.jsx)(d.Combobox.Chevron,{size:_,error:tv,unstyled:g,color:t$}),__clearSection:ef,__clearable:eg,__clearSectionMode:tD,rightSection:ti,rightSectionPointerEvents:ts||"none",rightSectionWidth:tr,rightSectionProps:tn,leftSection:ta,leftSectionWidth:to,leftSectionPointerEvents:tl,leftSectionProps:th,loading:tY,loadingPosition:tZ,inputContainer:tu,inputWrapperOrder:tc,withAsterisk:td,labelProps:tf,descriptionProps:tp,errorProps:tg,successProps:ty,wrapperProps:tm,description:t_,label:tb,error:tv,success:tw,withErrorStyles:tN,withSuccessStyles:tG,__stylesApiProps:{...e,rightSectionPointerEvents:ts||"none",multiline:!0},pointer:!tS,onClick:()=>tS?t6.openDropdown():t6.toggleDropdown(),"data-expanded":t6.dropdownOpened||void 0,id:t2,required:tq,mod:tB,attributes:tJ,children:(0,i.jsxs)(S.Pill.Group,{attributes:tJ,disabled:Y,unstyled:g,...eh("pillsList",{style:ey}),...es(),children:[ed,(0,i.jsx)(d.Combobox.EventsTarget,{autoComplete:t7,withExpandedAttribute:!0,children:(0,i.jsx)(E.PillsInput.Field,{...et,id:t2,placeholder:tk,type:tS||tk?"visible":"hidden",...eh("inputField"),unstyled:g,onFocus:t=>{Z?.(t),tX&&tS&&t6.openDropdown()},onBlur:t=>{tt?.(t),t6.closeDropdown(),el("")},onKeyDown:t=>{O?.(t),t.defaultPrevented||(" "!==t.key||tS||(t.preventDefault(),t6.toggleDropdown()),"Backspace"===t.key&&0===ea.length&&ee.length>0&&(tW?.(ee[ee.length-1]),ei(ee.slice(0,ee.length-1))),en(t))},value:ea,onChange:t=>{el(t.currentTarget.value),tS&&t6.openDropdown(),F&&t6.selectFirstOption()},disabled:Y,readOnly:X||!tS,pointer:!tS})})]})})}),(0,i.jsx)(v,{data:tC?ep:t4,hidden:X||Y,filter:V,search:ea,limit:W,hiddenWhenEmpty:!tE,withScrollArea:z,maxDropdownHeight:K,filterOptions:tS,value:ee,checkIconPosition:tA,withCheckIcon:tx,withAlignedLabels:tP,nothingFoundMessage:tE,unstyled:g,labelId:tb?`${t2}-label`:void 0,"aria-label":tb?void 0:t1["aria-label"],renderOption:tU,scrollAreaProps:tH})]}),(0,i.jsx)(d.Combobox.HiddenInput,{name:tI,valuesDivider:tF,value:ee,form:tO,disabled:Y,...tL})]})});function I(t){let e=(0,M.useRef)(void 0);return(0,M.useEffect)(()=>{e.current=t},[t]),e.current}G.classes={...l.InputBase.classes,...d.Combobox.classes},G.displayName="@mantine/core/MultiSelect",t.s(["usePrevious",0,I],239424);let O={size:"sm",withCheckIcon:!0,allowDeselect:!0,checkIconPosition:"left",openOnFocus:!0},T=(0,o.genericFactory)(t=>
2{let e=(0,r.useProps)(["Input","InputWrapper","Select"],O,t),{classNames:n,styles:a,unstyled:o,vars:f,dropdownOpened:p,defaultDropdownOpened:g,onDropdownClose:y,onDropdownOpen:m,onFocus:_,onBlur:b,onClick:w,onChange:S,data:E,value:x,defaultValue:C,selectFirstOptionOnChange:N,selectFirstOptionOnDropdownOpen:G,onOptionSubmit:T,comboboxProps:j,readOnly:D,disabled:R,filter:L,limit:k,withScrollArea:F,maxDropdownHeight:q,floatingHeight:B,size:U,searchable:V,rightSection:W,checkIconPosition:z,withCheckIcon:K,withAlignedLabels:H,nothingFoundMessage:$,name:J,form:Q,searchValue:X,defaultSearchValue:Y,onSearchChange:Z,allowDeselect:tt,error:te,rightSectionPointerEvents:ti,id:tr,clearable:ts,clearSectionMode:tn,clearButtonProps:ta,hiddenInputProps:to,renderOption:tl,onClear:th,autoComplete:tu,scrollAreaProps:tc,__defaultRightSection:td,__clearSection:tf,__clearable:tp,chevronColor:tg,autoSelectOnBlur:ty,openOnFocus:tm,attributes:t_,...tb}=e,tv=(0,M.useMemo)(()=>(0,h.getParsedComboboxData)(E),[E]),tw=(0,M.useRef)({}),tM=(0,M.useMemo)(()=>u(tv),[tv]),tS=(0,P.useId)(tr),[tE,tx,tP]=(0,A.useUncontrolled)({value:x,defaultValue:C,finalValue:null,onChange:S}),tA=null!=tE?`${tE}`in tM?tM[`${tE}`]:tw.current[`${tE}`]:void 0,tC=I(tA),[tN,tG,tI]=(0,A.useUncontrolled)({value:X,defaultValue:Y,finalValue:tA?tA.label:"",onChange:Z}),tO=(0,c.useCombobox)({opened:p,defaultOpened:g,onDropdownOpen:()=>{m?.(),G?tO.selectFirstOption():tO.updateSelectedOptionIndex("active",{scrollIntoView:!0})},onDropdownClose:()=>{y?.(),setTimeout(tO.resetSelectedOption,0)}}),tT=t=>{tG(t),tO.resetSelectedOption()},{resolvedClassNames:tj,resolvedStyles:tD}=(0,s.useResolvedStylesApi)({props:e,styles:a,classNames:n});(0,M.useEffect)(()=>{N&&tO.selectFirstOption()},[N,tN]),(0,M.useEffect)(()=>{null===x&&tT(""),null!=x&&tA&&(tC?.value!==tA.value||tC?.label!==tA.label)&&tT(tA.label)},[x,tA]),(0,M.useEffect)(()=>{tP||tI||tT(null!=tE?`${tE}`in tM?tM[`${tE}`]?.label:tw.current[`${tE}`]?.label||"":"")},[tM,tE]),(0,M.useEffect)(()=>{tE&&`${tE}`in tM&&(tw.current[`${tE}`]=tM[`${tE}`])},[tM,tE]);let tR=(0,i.jsx)(d.Combobox.ClearButton,{...ta,onClear:()=>{tx(null,null),tT(""),th?.()}}),tL=ts&&null!=tE&&!R&&!D;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(d.Combobox,{store:tO,__staticSelector:"Select",classNames:tj,styles:tD,unstyled:o,readOnly:D,size:U,attributes:t_,floatingHeight:B,keepMounted:ty,onOptionSubmit:t=>{T?.(t);let e=tt&&`${tM[t].value}`==`${tE}`?null:tM[t],i=e?e.value:null;i!==tE&&tx(i,e),tP||tT(null!=i&&e?.label||""),tO.closeDropdown()},...j,children:[(0,i.jsx)(d.Combobox.Target,{targetType:V?"input":"button",autoComplete:tu,withExpandedAttribute:!0,children:(0,i.jsx)(l.InputBase,{id:tS,__defaultRightSection:(0,i.jsx)(d.Combobox.Chevron,{size:U,error:te,unstyled:o,color:tg}),__clearSection:tR,__clearable:tL,__clearSectionMode:tn,rightSection:W,rightSectionPointerEvents:ti||"none",...tb,size:U,__staticSelector:"Select",disabled:R,readOnly:D||!V,value:tN,onChange:t=>{tT(t.currentTarget.value),tO.openDropdown(),N&&tO.selectFirstOption()},onFocus:t=>{tm&&V&&tO.openDropdown(),_?.(t)},onBlur:t=>{ty&&tO.clickSelectedOption(),V&&tO.closeDropdown();let e=null!=tE&&(`${tE}`in tM?tM[`${tE}`]:tw.current[`${tE}`]);tT(e&&e.label||""),b?.(t)},onClick:t=>{V?tO.openDropdown():tO.toggleDropdown(),w?.(t)},classNames:tj,styles:tD,unstyled:o,pointer:!V,error:te,attributes:t_})}),(0,i.jsx)(v,{data:tv,hidden:D||R,filter:L,search:tN,limit:k,hiddenWhenEmpty:!$,withScrollArea:F,maxDropdownHeight:q,filterOptions:!!V&&tA?.label!==tN,value:tE,checkIconPosition:z,withCheckIcon:K,withAlignedLabels:H,nothingFoundMessage:$,unstyled:o,labelId:tb.label?`${tS}-label`:void 0,"aria-label":tb.label?void 0:tb["aria-label"],renderOption:tl,scrollAreaProps:tc})]}),(0,i.jsx)(d.Combobox.HiddenInput,{value:tE,name:J,form:Q,disabled:R,...to})]})});T.classes={...l.InputBase.classes,...d.Combobox.classes},T.displayName="@mantine/core/Select";var j=t.i(707785),D=t.i(246821),R=t.i(836421),L=t.i(759465);t.i(640669);var k=t.i(965622);t.i(842676);var F=t.i(680455);let q=t=>"object"==typeof t&&null!==t&&"group"in t&&"items"in t,B=({option:t})=>(0,i.jsx)(L.SelectOption,{...t});t.s([],906502),t.s(["DrawerSelect",()=>e.default],836671),t.s(["DropdownSelect",0,t=>{let e=(0,M.useRef)(null),[r,s]=(0,M.useState)(0),{data:n,label:a,description:o,itemComponent:l,variant:h,info:u,leftSection:c,rightSection:d,radius:f,size:p,preventFlexGrow:g=!1,loading:y,dropdownWidthFitContent:m=!1,withinPortal:b=!1,classNames:v,value:w,error:S,disabled:E,required:x,hideRightSection:P=!1,controlRef:A,ref:C,...N}=t,I=P?(0,i.jsx)(i.Fragment,{}):d,O=P?{rightSectionWidth:0,rightSectionPointerEvents:"none"}:{};(0,M.useEffect)(()=>{S&&e.current&&s(e.current.scrollHeight)},[S]);let L=({option:t,checked:e})=>
2{if(!l)return B({option:t,checked:e});if("function"==typeof l||"object"==typeof l){let i={...t,checked:e};return M.default.createElement(l,i)}return B({option:t,checked:e})},U=(0,M.useMemo)(()=>{if(y)return[{value:"__loading__",label:"Loading...",disabled:!0}];if(!n||n&&0===n.length)return[{value:"__no_available_options__",label:"No available options",disabled:!0}];if(!n||0===n.length)return[];let t=new Set;return n.map(e=>{if(q(e)){let i=e.items.filter(e=>{let i="string"==typeof e?e:e?.value;return!t.has(i)&&(t.add(i),!0)});return{...e,items:i}}let i="string"==typeof e?e:e?.value;return t.has(i)?null:(t.add(i),e)}).filter(t=>null!==t)},[n,y]),V=(0,M.useMemo)(()=>{if(!w||y)return null;let t=Array.isArray(w)?w[0]:w;if(!t)return null;let e=U.flatMap(t=>q(t)?t.items:[t]).find(e=>"string"==typeof e?e===t:e.value===t);return e?.icon||null},[w,U,y]),W=(0,M.useMemo)(()=>t.multiselect?w?Array.isArray(w)?w:[w]:[]:w??void 0,[w,t.multiselect]),z={type:"auto",overscrollBehavior:"contain"};return(0,i.jsxs)("span",{ref:C,className:(0,_.default)(D.default.container,{[D.default.flexGrow]:!g}),children:[N.multiselect?(0,i.jsx)(G,{ref:A,label:a?(0,i.jsx)(F.Label,{tooltip:u,required:x,children:a}):void 0,description:o?(0,i.jsx)(k.Caption,{children:o}):void 0,filter:R.filterSelectOptions,value:y?["__loading__"]:W,data:U,renderOption:L,rightSection:I,...O,scrollAreaProps:z,classNames:{input:(0,_.default)(D.default.selectInput,{[D.default.minimal]:"minimal"==h,[D.default.xs]:"xs"==p,[D.default.xl]:"xl"==p}),section:D.default.selectSection,dropdown:(0,_.default)(D.default.selectDropdown,{[D.default.dropdownWidthFitContent]:m}),option:D.default.selectItem,pillsList:D.default.pillsList,pill:(0,_.default)(D.default.pill,{[D.default.pillXl]:"xl"==p})},comboboxProps:{withinPortal:b},radius:f||"md",disabled:y||E,error:!!S,...(0,j.omit)(N,["multiselect"]),onChange:y?void 0:N.onChange}):(0,i.jsx)(T,{ref:A,radius:f||"md",label:a?(0,i.jsx)(F.Label,{tooltip:u,required:x,children:a}):void 0,description:o?(0,i.jsx)(k.Caption,{children:o}):void 0,scrollAreaProps:z,classNames:{input:(0,_.default)(D.default.selectInput,{[D.default.minimal]:"minimal"==h,[D.default.xs]:"xs"==p,[D.default.xl]:"xl"==p},v?.input),section:D.default.selectSection,dropdown:(0,_.default)(D.default.selectDropdown,{[D.default.dropdownWidthFitContent]:m},v?.dropdown),option:(0,_.default)(D.default.selectItem,v?.option),...Object.fromEntries(Object.entries(v||{}).filter(([t])=>"input"!==t&&"dropdown"!==t&&"option"!==t))},filter:R.filterSelectOptions,renderOption:L,data:U,value:y?"__loading__":w,rightSection:I,...O,leftSection:c??V,comboboxProps:{withinPortal:b},disabled:y||E,error:!!S,...(0,j.omit)(N,["multiselect"]),onChange:y?void 0:N.onChange}),(0,i.jsx)("div",{className:(0,_.default)(D.default.errorContainer,{[D.default.hasError]:!!S}),style:{height:S?r:0},children:(0,i.jsx)("p",{ref:e,className:(0,_.default)(D.default.error,{[D.default.xl]:"xl"===p}),children:S})})]})}],816361),t.s(["isSelectOptionGroup",0,t=>"object"==typeof t&&"group"in t],862799)},264585,t=>{"use strict";t.s(["MOBILE_DEVICE_SCREEN_ID",0,"mobile-device-screen"])},561992,t=>{t.v({selectItemCheck:"ColumnOptionSelect-module-scss-module__xHbJRG__selectItemCheck",selectItemLabel:"ColumnOptionSelect-module-scss-module__xHbJRG__selectItemLabel"})},392476,295415,836421,759465,226974,t=>{"use strict";var e=t.i(94601),i=t.i(38356),r=t.i(974845),s=t.i(256089),n=t.i(191071),a=t.i(1260),o=t.i(733556),l=t.i(136960),h=t.i(561992),u=t.i(246821),c=t.i(90817),d=t.i(435592);t.s(["ColumnOptionSelect",0,t=>{let{columnMetadata:f,placeholder:p=t.multiselect?"Select values...":"Select value..."}=t,[g,y]=(0,l.useState)(""),m=(0,o.useCombobox)({onDropdownClose:()=>{m.resetSelectedOption(),y("")},onDropdownOpen:()=>m.focusSearchInput()}),_=f?.showColors??!0,b=(0,l.useMemo)(()=>f?.options??[],[f?.options]),v=(0,l.useMemo)(()=>new Map(b.map(t=>[t.value,t])),[b]),w=(0,l.useMemo)(()=>{if(!g)return b;let t=g.toLowerCase();return b.filter(e=>e.value.toLowerCase().includes(t))},[b,g]),M=t.multiselect?t.value:t.value?[t.value]:[],S=M.filter(t=>v.has(t)),E=t.multiselect&&S.length>1?S.length-1:0,x=(E>0?S.slice(0,1):S).map(i=>{let r=v.get(i);if(!r)return null;let s=_?r.color:void 0;return t.multiselect?(0,e.jsx)(n.Pill,{withRemoveButton:!0,onRemove:()=>{t.multiselect&&t.onChange(t.value.filter(t=>t!==i))},className:u.default.pill,style:s?{backgroundColor:s,color:(0,c.getContrastColor)(s)}:void 0,children:r.value},i):(0,e.jsx)(d.SelectBadge,{value:r.value,showColors:_,color:r.color},i)});E>0&&x.push((0,e.jsxs)(n.Pill,{className:u.default.pill,children:["+",E]},"__overflow__"));let P=w.map(t=>{let s=M.includes(t.value);return(0,e.jsxs)(r.Combobox.Option,{value:t.value,active:s,className:u.default.selectItem,children:[(0,e.jsx)("span",{className:h.default.selectItemLabel,children:(0,e.jsx)(d.SelectBadge,{value:t.value,showColors:_,color:t.color})}
2),s&&(0,e.jsx)("span",{className:h.default.selectItemCheck,children:(0,e.jsx)(i.CheckIcon,{size:14})})]},t.id)});return(0,e.jsxs)(r.Combobox,{store:m,withinPortal:!1,onOptionSubmit:e=>{t.multiselect?t.value.includes(e)?t.onChange(t.value.filter(t=>t!==e)):t.onChange([...t.value,e]):(t.onChange(e),m.closeDropdown())},disabled:!1,children:[(0,e.jsx)(r.Combobox.DropdownTarget,{children:(0,e.jsx)(s.InputBase,{component:"button",type:"button",pointer:!0,rightSection:(0,e.jsx)(r.Combobox.Chevron,{}),rightSectionPointerEvents:"none",onClick:()=>m.toggleDropdown(),disabled:!1,multiline:!0,classNames:{input:u.default.selectInput},children:x.length>0?(0,e.jsx)(n.Pill.Group,{gap:4,style:{flexWrap:"nowrap"},children:x}):(0,e.jsx)("span",{style:{color:"var(--mantine-color-placeholder)"},children:p})})}),(0,e.jsxs)(r.Combobox.Dropdown,{className:u.default.selectDropdown,children:[(0,e.jsx)(r.Combobox.Search,{value:g,onChange:t=>y(t.currentTarget.value),placeholder:"Search..."}),(0,e.jsx)(r.Combobox.Options,{children:(0,e.jsx)(a.ScrollArea.Autosize,{mah:200,type:"scroll",children:P.length>0?P:(0,e.jsx)(r.Combobox.Empty,{children:"No matching values found"})})})]})]})}],392476);var f=t.i(197649),p=t.i(440866),g=t.i(562864);function y(t){return"group"in t}t.s(["isOptionsGroup",0,y],295415);let m=t=>t.trim().toLowerCase(),_=(t,e)=>t.label.toLowerCase().includes(e)||(t.keywords??[]).some(t=>t.toLowerCase().includes(e));t.s(["filterSelectOptions",0,({options:t,search:e})=>{let i=m(e);return i?t.flatMap(t=>{if(!y(t))return _(t,i)?[t]:[];if("string"==typeof t.group&&t.group.toLowerCase().includes(i))return[t];let e=t.items.filter(t=>_(t,i));return e.length>0?[{...t,items:e}]:[]}):t},"matchesSelectOption",0,_,"normalizeSearch",0,m],836421);var b=t.i(244948),v=t.i(431954),w=t.i(69575);t.i(640669);var M=t.i(965622);t.i(805732);var S=t.i(797570);let E=({icon:t,value:i,label:r,disabled:s,description:n,disabledTooltip:a,badge:o,className:l})=>(0,e.jsx)(S.Tooltip,{disabled:!s||!a,label:a,openDelay:200,withinPortal:!0,children:(0,e.jsxs)("div",{className:(0,f.default)(w.default.option,{[w.default.disabled]:s},l),children:[(0,e.jsxs)(b.Flex,{align:"center",gap:"0.5rem",justify:"space-between",children:[(0,e.jsxs)(v.Group,{gap:"xs",wrap:"nowrap",children:[t,(0,e.jsx)("span",{className:w.default.value,children:r||i})]}),o]}),n&&(0,e.jsx)(M.Caption,{className:(0,f.default)(w.default.description,{[w.default.marginLeft]:!!t}),children:n})]})});t.s(["SelectOption",0,E],759465),t.i(465198);var x=t.i(413975);t.i(83595);var P=t.i(197540);t.i(549852);var A=t.i(458923);t.s(["default",0,({ref:t,controlRef:r,data:s,placeholder:n,value:a,onChange:o,searchable:h=!1,searchValue:u,onSearchChange:c,label:d,className:y,preventFlexGrow:b=!1,multiselect:v=!1,container:w}
2)=>{let[M,S]=(0,l.useState)(!1),[C,N]=(0,l.useState)(""),G=u??C,I=(0,l.useCallback)(t=>{N(t),c?.(t)},[c]),[O,T]=(0,l.useState)(!1),j=(0,l.useRef)(null),D=(0,l.useRef)(0);(0,l.useEffect)(()=>{if(!M||!h)return;D.current=window.innerHeight;let t=()=>{O&&(j.current&&j.current.blur(),T(!1))},e=()=>{"hidden"===document.visibilityState&&O&&t()},i=()=>{let e=window.innerHeight;e>D.current&&O&&t(),D.current=e},r=window.visualViewport;if(r){let i=()=>{r.height>D.current&&O&&t(),D.current=r.height};return r.addEventListener("resize",i),r.addEventListener("scroll",i),document.addEventListener("visibilitychange",e),()=>{r.removeEventListener("resize",i),r.removeEventListener("scroll",i),document.removeEventListener("visibilitychange",e)}}return window.addEventListener("resize",i),document.addEventListener("visibilitychange",e),()=>{window.removeEventListener("resize",i),document.removeEventListener("visibilitychange",e)}},[M,h,O]),((t=!0)=>{(0,l.useLayoutEffect)(()=>{if(!t)return;let e=t=>{t.stopImmediatePropagation()};return document.addEventListener("focusin",e),document.addEventListener("focusout",e),window.requestAnimationFrame(()=>{document.querySelectorAll("[data-aria-hidden]").forEach(t=>{t instanceof HTMLElement&&(t.removeAttribute("data-aria-hidden"),t.removeAttribute("aria-hidden"))})}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",e)}},[t])})(M);let R=(0,l.useMemo)(()=>v?Array.isArray(a)?a:[]:"string"==typeof a?a:null,[a,v]),L=(0,l.useCallback)(t=>{if(v){let e=Array.isArray(a)?a:[],i=e.includes(t)?e.filter(e=>e!==t):[...e,t];o?.(i)}else o?.(t),S(!1)},[o,a,v]),k=(0,l.useMemo)(()=>s.map(t=>"string"==typeof t?{value:t,label:t}:t),[s]),F=(0,l.useMemo)(()=>{if(v){let t=Array.isArray(R)?R:[];return 0===t.length?n:t.length>4?`${t.length} items selected`:t.map(t=>{let e=k.find(e=>e.value===t);return e?e.label:t}).join(", ")}{let t=k.find(t=>t.value===R);return t?t.label:R||n}},[R,k,n,v]),q=(0,l.useMemo)(()=>{if(!h||!G)return k;let t=m(G);return k.filter(e=>_(e,t)||e.value.toLowerCase().includes(t))},[k,h,G]),B=(0,l.useCallback)(()=>{T(!0),D.current=window.visualViewport?.height||window.innerHeight},[]),U=(0,l.useCallback)(()=>{"visible"===document.visibilityState&&setTimeout(()=>{document.activeElement!==j.current&&T(!1)},100)},[]);return(0,e.jsx)("div",{className:(0,f.default)(g.default.container,{[g.default.flexGrow]:!b},y),ref:t,children:(0,e.jsxs)(p.Drawer.Root,{open:M,onOpenChange:S,modal:!0,container:w??null,children:[(0,e.jsx)(p.Drawer.Trigger,{asChild:!0,children:(0,e.jsx)(x.Button,{buttonRef:r,variant:"ghost",className:g.default.selectTrigger,rightSection:(0,e.jsx)(i.ExpandAllIcon,{size:18,color:"var(--color-icon-subtle)"}),fullWidth:!0,children:(0,e.jsx)("div",{children:(0,e.jsx)("span",{className:(0,f.default)(g.default.selectedText,{[g.default.placeholder]:v?!R?.length:!R}),children:F})})})}),(0,e.jsxs)(p.Drawer.Portal,{children:[(0,e.jsx)(p.Drawer.Overlay,{className:(0,f.default)(g.default.overlay,{[g.default.mobileFrame]:!!w}),onClick:()=>S(!1)}),(0,e.jsxs)(p.Drawer.Content,{className:(0,f.default)(g.default.drawerContent,{[g.default.mobileFrame]:!!w,[g.default.fullscreen]:O}),"aria-describedby":void 0,children:[!O&&(0,e.jsx)("div",{className:g.default.drawerHandle}),(0,e.jsxs)("div",{className:g.default.drawerHeader,children:[(0,e.jsx)(p.Drawer.Title,{children:!O&&(0,e.jsx)(P.Subheader,{as:"span",className:g.default.drawerTitle,children:d||(v?"Select options":"Select an option")})}),(0,e.jsxs)("div",{className:g.default.searchContainer,children:[h&&(0,e.jsx)(A.TextInput,{placeholder:"Search...",value:G,leftSection:(0,e.jsx)(i.SearchIcon,{}),onChange:t=>I(t.target.value),className:g.default.searchInput,onFocus:B,onBlur:U,ref:j}),v&&Array.isArray(R)&&R.length>0&&(0,e.jsx)("div",{className:g.default.selectedChips,children:R.map(t=>{let i=k.find(e=>e.value===t);return(0,e.jsxs)("div",{className:g.default.chip,children:[(0,e.jsx)("span",{className:g.default.chipLabel,children:i?i.label:t}),(0,e.jsx)("button",{className:g.default.chipRemove,onClick:e=>{e.stopPropagation(),L(t)},type:"button",children:"×"})]},t)})})]})]}),(0,e.jsx)("div",{className:g.default.optionsContainer,children:(0,e.jsxs)("div",{className:g.default.optionsList,children:[q.map(t=>{let r=v?Array.isArray(R)&&R.includes(t.value):R===t.value;return(0,e.jsxs)("button",{className:(0,f.default)(g.default.optionItem,{[g.default.selected]:r,[g.default.disabled]:t.disabled}),onClick:()=>{t.disabled||L(t.value)},disabled:t.disabled,type:"button",children:[(0,e.jsx)(E,{...t,className:g.default.optionLabel}),r&&(0,e.jsx)("div",{className:g.default.optionCheck,children:(0,e.jsx)(i.CheckIcon,{size:18})}),!r&&v&&(0,e.jsx)("div",{className:g.default.optionCheck})]},t.value)}),0===q.length&&(0,e.jsx)("div",{className:g.default.noResults,children:"No options foun
2d"})]})}),v&&(0,e.jsx)("div",{className:g.default.drawerFooter,children:(0,e.jsx)(x.Button,{onClick:()=>S(!1),className:g.default.doneButton,fullWidth:!0,children:"Done"})})]})]})]})})}],226974)},213583,894509,467453,t=>{"use strict";var e=t.i(94601),i=t.i(38356),r=t.i(136960);t.i(906502);var s=t.i(836671),n=t.i(816361),a=t.i(862799);t.i(388048);var o=t.i(264585),l=t.i(215677);let h=t=>{let i=(0,l.usePhoneStyling)(),h=(t=>{let[e,i]=(0,r.useState)(null);return(0,r.useEffect)(()=>{i(t?document.getElementById(o.MOBILE_DEVICE_SCREEN_ID):null)},[t]),e})(i);if(i){let{data:i,label:r,info:n,placeholder:o,preventFlexGrow:l,className:u,searchValue:c,onSearchChange:d}=t;return(0,e.jsx)(s.DrawerSelect,{ref:t.ref,controlRef:t.controlRef,data:(i??[]).flatMap(t=>(0,a.isSelectOptionGroup)(t)?t.items.map(e=>"string"==typeof e?{value:e,label:e,keywords:[t.group]}:{...e,keywords:[...e.keywords??[],t.group]}):[t]),placeholder:o,value:t.value??null,onChange:t.onChange,searchable:t.searchable,searchValue:c,onSearchChange:d,label:"string"==typeof r?r:void 0,className:u,preventFlexGrow:l,info:n,multiselect:t.multiselect,container:h})}return(0,e.jsx)(n.DropdownSelect,{...t})};t.s(["ConditionalSelect",0,({multiselect:t,value:i,onChange:r,allowDeselect:s,...n})=>t?(0,e.jsx)(h,{...{...n,multiselect:!0,value:i,onChange:r}}):(0,e.jsx)(h,{...{...n,multiselect:!1,allowDeselect:s,value:i,onChange:r}}),"Select",0,h],894509),t.i(390026);var u=t.i(34273);t.s(["ColumnSelect",0,({columns:t,value:s,onChange:n,clearable:a=!0,placeholder:o="Select field",keyBy:l,...c})=>{let[d,f]=(0,r.useState)(""),[p,g]=(0,r.useState)(!1),y=(0,r.useMemo)(()=>t.map(t=>({value:"id"===l&&t.id?t.id:t.name,label:t.label||t.name,icon:(0,u.getColumnIcon)(t.type),type:t.type,description:t.description,disabled:t.disabled,disabledTooltip:t.disabledTooltip})),[t,l]),m=(0,r.useCallback)(()=>{g(!0),f("")},[]),_=(0,r.useCallback)(()=>{g(!1),f("")},[]),b=(0,r.useCallback)(t=>{n(t),f("")},[n]),v=(0,r.useMemo)(()=>p?(0,e.jsx)(i.SearchIcon,{size:16,color:"var(--color-text-subtle)"}):null,[p]);return(0,e.jsx)(h,{...c,placeholder:o,searchable:!0,clearable:a,data:y,value:s,onChange:b,searchValue:d,onSearchChange:f,onDropdownOpen:m,onDropdownClose:_,leftSection:v})}],213583),t.s(["resolveColorValue",0,function(t){if(void 0===t)return"transparent";if("string"==typeof t)return t;let e=t.stops[0]?.[1];return"string"==typeof e?e:"transparent"}],467453)},224281,344595,187990,912700,590400,397069,654757,43045,773622,85761,426408,t=>{"use strict";t.i(392476),t.i(213583);var e=t.i(94601),i=t.i(894509),r=t.i(621642),s=t.i(38356),n=t.i(244948),a=t.i(197649),o=t.i(140597),l=t.i(136960),h=t.i(479201);t.i(805732);var u=t.i(797570);t.i(790320);var c=t.i(277257);t.i(42883);var d=t.i(520268);t.i(821990);var f=t.i(253658),p=t.i(375949);t.i(755911);var g=t.i(342921),y=t.i(18632);let m=({src:t,iconColor:i,size:r=16,hidden:s=!1})=>{let n=(0,y.extractBaseIconUrl)(t);return i&&!s?(0,e.jsx)("div",{style:{width:r,height:r,backgroundColor:i,maskImage:`url(${n})`,WebkitMaskImage:`url(${n})`,maskSize:"contain",WebkitMaskSize:"contain",maskRepeat:"no-repeat",WebkitMaskRepeat:"no-repeat",maskPosition:"center",WebkitMaskPosition:"center"}}):(0,e.jsx)("img",{src:n,alt:"",style:{width:r,height:r,objectFit:"contain",opacity:s?.5:1,filter:s?"grayscale(100%)":"none"}})};t.s(["LayerIcon",0,m],344595);var _=t.i(900152);t.s(["default",()=>e0,"getDefaultInfoFormat",()=>eV,"getWMSLayers",()=>eH,"isPopupEnabled",()=>ez,"isWmsOrDatahubRasterDataset",()=>eW,"queryWMSFeaturesAt",()=>eQ],590400);var b=t.i(192877),v=Math.PI/2,w=Math.PI/4,M=2*Math.PI,S={};S.greenwich=0,S.lisbon=-9.131906111111,S.paris=2.337229166667,S.bogota=-74.080916666667,S.madrid=-3.687938888889,S.rome=12.452333333333,S.bern=7.439583333333,S.jakarta=106.807719444444,S.ferro=-17.666666666667,S.brussels=4.367975,S.stockholm=18.058277777778,S.athens=23.7163375,S.oslo=10.722916666667;let E={mm:{to_meter:.001},cm:{to_meter:.01},ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937},fath:{to_meter:1.8288},kmi:{to_meter:1852},"us-ch":{to_meter:20.1168402336805},"us-mi":{to_meter:1609.34721869444},km:{to_meter:1e3},"ind-ft":{to_meter:.30479841},"ind-yd":{to_meter:.91439523},mi:{to_meter:1609.344},yd:{to_meter:.9144},ch:{to_meter:20.1168},link:{to_meter:.201168},dm:{to_meter:.1},in:{to_meter:.0254},"ind-ch":{to_meter:20.11669506},"us-in":{to_meter:.025400050800101},"us-yd":{to_meter:.914401828803658}};var x=/[\s_\-\/\(\)]/g;function P(t,e){if(t[e])return t[e];for(var i,r=Object.keys(t),s=e.toLowerCase().replace(x,""),n=-1;++n<r.length;)if((i=r[n]).toLowerCase().replace(x,"")===s)return t[i]}function A(t){var e,i,r,s={},n=t.split("+").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,e){var i=e.split("=");return i.push(!0),t[i[0].toLowerCase()]=i[1],t},{}
2),a={proj:"projName",datum:"datumCode",rf:function(t){s.rf=parseFloat(t)},lat_0:function(t){s.lat0=.017453292519943295*t},lat_1:function(t){s.lat1=.017453292519943295*t},lat_2:function(t){s.lat2=.017453292519943295*t},lat_ts:function(t){s.lat_ts=.017453292519943295*t},lon_0:function(t){s.long0=.017453292519943295*t},lon_wrap:function(t){s.long_wrap=.017453292519943295*parseFloat(t)},lon_1:function(t){s.long1=.017453292519943295*t},lon_2:function(t){s.long2=.017453292519943295*t},alpha:function(t){s.alpha=.017453292519943295*parseFloat(t)},gamma:function(t){s.rectified_grid_angle=.017453292519943295*parseFloat(t)},lonc:function(t){s.longc=.017453292519943295*t},x_0:function(t){s.x0=parseFloat(t)},y_0:function(t){s.y0=parseFloat(t)},k_0:function(t){s.k0=parseFloat(t)},k:function(t){s.k0=parseFloat(t)},a:function(t){s.a=parseFloat(t)},b:function(t){s.b=parseFloat(t)},r:function(t){s.a=s.b=parseFloat(t)},r_a:function(){s.R_A=!0},zone:function(t){s.zone=parseInt(t,10)},south:function(){s.utmSouth=!0},towgs84:function(t){s.datum_params=t.split(",").map(function(t){return parseFloat(t)})},to_meter:function(t){s.to_meter=parseFloat(t)},units:function(t){s.units=t;var e=P(E,t);e&&(s.to_meter=e.to_meter)},from_greenwich:function(t){s.from_greenwich=.017453292519943295*t},pm:function(t){s.from_greenwich=.017453292519943295*(P(S,t)||parseFloat(t))},nadgrids:function(t){"@null"===t?s.datumCode="none":s.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))&&(s.axis=t)},approx:function(){s.approx=!0},over:function(){s.over=!0}};for(e in n)i=n[e],e in a?"function"==typeof(r=a[e])?r(i):s[r]=i:s[e]=i;return"string"==typeof s.datumCode&&"WGS84"!==s.datumCode&&(s.datumCode=s.datumCode.toLowerCase()),s.projStr=t,s}let C=class{static getId(t){let e=t.find(t=>Array.isArray(t)&&"ID"===t[0]);return e&&e.length>=3?{authority:e[1],code:parseInt(e[2],10)}:null}static convertUnit(t,e="unit"){if(!t||t.length<3)return{type:e,name:"unknown",conversion_factor:null};let i=t[1],r=parseFloat(t[2])||null,s=t.find(t=>Array.isArray(t)&&"ID"===t[0]);return{type:e,name:i,conversion_factor:r,id:s?{authority:s[1],code:parseInt(s[2],10)}:null}}static convertAxis(t){let e,i=t[1]||"Unknown",r=i.match(/^\((.)\)$/);if(r){let i=r[1].toUpperCase();if("E"===i)e="east";else if("N"===i)e="north";else if("U"===i)e="up";else if(t[2])e=t[2];else throw Error(`Unknown axis abbreviation: ${i}`)}else e=t[2]||"unknown";let s=t.find(t=>Array.isArray(t)&&"ORDER"===t[0]),n=s?parseInt(s[1],10):null,a=t.find(t=>Array.isArray(t)&&("LENGTHUNIT"===t[0]||"ANGLEUNIT"===t[0]||"SCALEUNIT"===t[0]));return{name:i,direction:e,unit:this.convertUnit(a),order:n}}static extractAxes(t){return t.filter(t=>Array.isArray(t)&&"AXIS"===t[0]).map(t=>this.convertAxis(t)).sort((t,e)=>(t.order||0)-(e.order||0))}static convert(t,e={}){switch(t[0]){case"PROJCRS":e.type="ProjectedCRS",e.name=t[1],e.base_crs=t.find(t=>Array.isArray(t)&&"BASEGEOGCRS"===t[0])?this.convert(t.find(t=>Array.isArray(t)&&"BASEGEOGCRS"===t[0])):null,e.conversion=t.find(t=>Array.isArray(t)&&"CONVERSION"===t[0])?this.convert(t.find(t=>Array.isArray(t)&&"CONVERSION"===t[0])):null;let i=t.find(t=>Array.isArray(t)&&"CS"===t[0]);i&&(e.coordinate_system={subtype:i[1],axis:this.extractAxes(t)});let r=t.find(t=>Array.isArray(t)&&"LENGTHUNIT"===t[0]);if(r){let t=this.convertUnit(r);e.coordinate_system.unit=t}e.id=this.getId(t);break;case"BASEGEOGCRS":case"GEOGCRS":case"GEODCRS":e.type="GEODCRS"===t[0]?"GeodeticCRS":"GeographicCRS",e.name=t[1];let s=t.find(t=>Array.isArray(t)&&("DATUM"===t[0]||"ENSEMBLE"===t[0]));if(s){let i=this.convert(s);"ENSEMBLE"===s[0]?e.datum_ensemble=i:e.datum=i;let r=t.find(t=>Array.isArray(t)&&"PRIMEM"===t[0]);r&&"Greenwich"!==r[1]&&(i.prime_meridian={name:r[1],longitude:parseFloat(r[2])})}let n=t.find(t=>Array.isArray(t)&&"CS"===t[0]);e.coordinate_system={subtype:n?n[1]:"ellipsoidal",axis:this.extractAxes(t)},e.id=this.getId(t);break;case"DATUM":e.type="GeodeticReferenceFrame",e.name=t[1],e.ellipsoid=t.find(t=>Array.isArray(t)&&"ELLIPSOID"===t[0])?this.convert(t.find(t=>Array.isArray(t)&&"ELLIPSOID"===t[0])):null;break;case"ENSEMBLE":e.type="DatumEnsemble",e.name=t[1],e.members=t.filter(t=>Array.isArray(t)&&"MEMBER"===t[0]).map(t=>({type:"DatumEnsembleMember",name:t[1],id:this.getId(t)}));let a=t.find(t=>Array.isArray(t)&&"ENSEMBLEACCURACY"===t[0]);a&&(e.accuracy=parseFloat(a[1]));let o=t.find(t=>Array.isArray(t)&&"ELLIPSOID"===t[0]);o&&(e.ellipsoid=this.convert(o)),e.id=this.getId(t);break;case"ELLIPSOID":e.type="Ellipsoid",e.name=t[1],e.semi_major_axis=parseFloat(t[2]),e.inverse_flattening=parseFloat(t[3]),t.find(t=>Array.isArray(t)&&"LENGTHUNIT"===t[0])&&this.convert(t.find(t=>Array.isArray(t)&&"LENGTHUNIT"===t[0]),e);break;case"CONVERSION":e.type="Conversion",e.name=t[1],e.method=t.find(t=>Array.isArray(t)&&"METHOD"===t[0])?this.convert(t.find(t=>Array.isArray(t)&&"METHOD"===t[0])):null,e.parameters=t.filter(t=>Array.isArray(t)&&"PARAMETER"===t[0]).map(t=>this.convert(t));break;case"METHOD":e.type="Method",e.name=t[1],e.id=this.getId(t);break;case"PARAMETER":e.type="Parameter",e.name=t[1],e.value=parseFloat(t[2]),e.unit=this.convertUnit(t.find(t=>Array.isArray(t)&&("LENGTHUNIT"===t[0]||"ANGLEUNIT"===t[0]||"SCALEUNIT"===t[0]))),e.id=this.getId(t);break;case"BOUNDCRS":e.type="BoundCRS";let l=t.find(t=>Array.isArray(t)&&"SOURCECRS"===t[0]);if(l){let t=l.find(t=>Array.isArray(t));e.source_crs=t?this.convert(t):null}let h=t.find(t=>Array.isArray(t)&&"TARGETCRS"===t[0]);if(h){let t=h.find(t=>Array.isArray(t));e.target_crs=t?this.convert(t):null}let u=t.find(t=>Array.isArray(t)&&"ABRIDGEDTRANSFORMATION"===t[0]);u?e.transformation=this.convert(u):e.transformation=null;break;case"ABRIDGEDTRANSFORMATION":if(e.type="Transformation",e.name=t[1],e.method=t.find(t=>Array.isArray(t)&&"METHOD"===t[0])?this.convert(t.find(t=>Array.isArray(t)&&"METHOD"===t[0])):null,e.parameters=t.filter(t=>Array.isArray(t)&&("PARAMETER"===t[0]||"PARAMETERFILE"===t[0])).map(t=>"PARAMETER"===t[0]?this.convert(t):"PARAMETERFILE"===t[0]?{name:t[1],value:t[2],id:{authority:"EPSG",code:8656}}:void 0),7===e.parameters.length){let t=e.parameters[6];"Scale difference"===t.name&&(t.value=Math.round((t.value-1)*1e12)/1e6)}e.id=this.getId(t);break;case"AXIS":e.coordinate_system||(e.coordinate_system={type:"unspecified",axis:[]}),e.coordinate_system.axis.push(this.convertAxis(t));break;case"LENGTHUNIT":let c=this.convertUnit(t,"LinearUnit");e.coordinate_system&&e.coordinate_system.axis&&e.coordinate_system.axis.forEach(t=>{t.unit||(t.unit=c)}),c.conversion_factor&&1!==c.conversion_factor&&e.semi_major_axis&&(e.semi_major_axis={value:e.semi_major_axis,unit:c});break;default:e.keyword=t[0]}return e}};
2var N=/\s/,G=/[A-Za-z]/,I=/[A-Za-z84_]/,O=/[,\]]/,T=/[\d\.E\-\+]/;function j(t){if("string"!=typeof t)throw 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 D(t,e,i){Array.isArray(e)&&(i.unshift(e),e=null);var r=e?{}:t,s=i.reduce(function(t,e){return R(e,t),t},r);e&&(t[e]=s)}function R(t,e){if(!Array.isArray(t)){e[t]=!0;return}var i,r=t.shift();if("PARAMETER"===r&&(r=t.shift()),1===t.length){if(Array.isArray(t[0])){e[r]={},R(t[0],e[r]);return}e[r]=t[0];return}if(!t.length){e[r]=!0;return}if("TOWGS84"===r){e[r]=t;return}if("AXIS"===r){r in e||(e[r]=[]),e[r].push(t);return}switch(!Array.isArray(r)&&(e[r]={}),r){case"UNIT":case"PRIMEM":case"VERT_DATUM":e[r]={name:t[0].toLowerCase(),convert:t[1]},3===t.length&&R(t[2],e[r]);return;case"SPHEROID":case"ELLIPSOID":e[r]={name:t[0],a:t[1],rf:t[2]},4===t.length&&R(t[3],e[r]);return;case"EDATUM":case"ENGINEERINGDATUM":case"LOCAL_DATUM":case"DATUM":case"VERT_CS":case"VERTCRS":case"VERTICALCRS":t[0]=["name",t[0]],D(e,r,t);return;case"COMPD_CS":case"COMPOUNDCRS":case"FITTED_CS":case"PROJECTEDCRS":case"PROJCRS":case"GEOGCS":case"GEOCCS":case"PROJCS":case"LOCAL_CS":case"GEODCRS":case"GEODETICCRS":case"GEODETICDATUM":case"ENGCRS":case"ENGINEERINGCRS":t[0]=["name",t[0]],D(e,r,t),e[r].type=r;return;default:for(i=-1;++i<t.length;)if(!Array.isArray(t[i]))return R(t,e[r]);return D(e,r,t)}}function L(t){return .017453292519943295*t}function k(t){let e=(t.projName||"").toLowerCase().replace(/_/g," ");void 0===t.long0&&void 0!==t.longc&&(t.long0=t.longc),!t.lat_ts&&t.lat1&&("stereographic south pole"===e||"polar stereographic (variant b)"===e)?(t.lat0=L(t.lat1>0?90:-90),t.lat_ts=t.lat1,delete t.lat1):!t.lat_ts&&t.lat0&&("polar stereographic"===e||"polar stereographic (variant a)"===e)&&(t.lat_ts=t.lat0,t.lat0=L(t.lat0>0?90:-90),delete t.lat1)}function F(t){let e={units:null,to_meter:void 0};return"string"==typeof t?(e.units=t.toLowerCase(),"metre"===e.units&&(e.units="meter"),"meter"===e.units&&(e.to_meter=1)):t&&t.name&&(e.units=t.name.toLowerCase(),"metre"===e.units&&(e.units="meter"),e.to_meter=t.conversion_factor),e}function q(t){return"object"==typeof t?t.value*t.unit.conversion_factor:t}function B(t,e){t.ellipsoid.radius?(e.a=t.ellipsoid.radius,e.rf=0):(e.a=q(t.ellipsoid.semi_major_axis),void 0!==t.ellipsoid.inverse_flattening?e.rf=t.ellipsoid.inverse_flattening:void 0!==t.ellipsoid.semi_major_axis&&void 0!==t.ellipsoid.semi_minor_axis&&(e.rf=e.a/(e.a-q(t.ellipsoid.semi_minor_axis))))}function U(t,e={}){return t&&"object"==typeof t?("BoundCRS"===t.type?(U(t.source_crs,e),t.transformation&&(t.transformation.method&&"NTv2"===t.transformation.method.name?e.nadgrids=t.transformation.parameters[0].value:e.datum_params=t.transformation.parameters.map(t=>t.value))):(Object.keys(t).forEach(i=>{let r=t[i];if(null!==r)switch(i){case"name":if(e.srsCode)break;e.name=r,e.srsCode=r;break;case"type":"GeographicCRS"===r?e.projName="longlat":"GeodeticCRS"===r?t.coordinate_system&&"Cartesian"===t.coordinate_system.subtype?e.projName="geocent":e.projName="longlat":"ProjectedCRS"===r&&t.conversion&&t.conversion.method&&(e.projName=t.conversion.method.name);break;case"datum":case"datum_ensemble":r.ellipsoid&&(e.ellps=r.ellipsoid.name,B(r,e)),r.prime_meridian&&(e.from_greenwich=r.prime_meridian.longitude*Math.PI/180);break;case"ellipsoid":e.ellps=r.name,B(r,e);break;case"prime_meridian":e.long0=(r.longitude||0)*Math.PI/180;break;case"coordinate_system":if(r.axis){let t={east:"e",north:"n",west:"w",south:"s",up:"u",down:"d",geocentricx:"e",geocentricy:"n",geocentricz:"u"},i=r.axis.map(e=>t[e.direction.toLowerCase()]);if(i.every(Boolean)&&(e.axis=i.join(""),2===e.axis.length&&(e.axis+="u")),r.unit){let{units:t,to_meter:i}=F(r.unit);e.units=t,e.to_meter=i}else if(r.axis[0]&&r.axis[0].unit){let{units:t,to_meter:i}=F(r.axis[0].unit);e.units=t,e.to_meter=i}}break;case"id":r.authority&&r.code&&(e.title=r.authority+":"+r.code);break;case"conversion":r.method&&r.method.name&&(e.projName=r.method.name),r.parameters&&r.parameters.forEac
2h(t=>{let i=t.name.toLowerCase().replace(/\s+/g,"_"),r=t.value;t.unit&&t.unit.conversion_factor?e[i]=r*t.unit.conversion_factor:"degree"===t.unit?e[i]=r*Math.PI/180:e[i]=r});break;case"unit":r.name&&(e.units=r.name.toLowerCase(),"metre"===e.units&&(e.units="meter")),r.conversion_factor&&(e.to_meter=r.conversion_factor);break;case"base_crs":U(r,e),e.datumCode=r.id?r.id.authority+"_"+r.id.code:r.name}}),void 0!==e.latitude_of_false_origin&&(e.lat0=e.latitude_of_false_origin),void 0!==e.longitude_of_false_origin&&(e.long0=e.longitude_of_false_origin),void 0!==e.latitude_of_standard_parallel&&(e.lat0=e.latitude_of_standard_parallel,e.lat1=e.latitude_of_standard_parallel),void 0!==e.latitude_of_1st_standard_parallel&&(e.lat1=e.latitude_of_1st_standard_parallel),void 0!==e.latitude_of_2nd_standard_parallel&&(e.lat2=e.latitude_of_2nd_standard_parallel),void 0!==e.latitude_of_projection_centre&&(e.lat0=e.latitude_of_projection_centre),void 0!==e.longitude_of_projection_centre&&(e.longc=e.longitude_of_projection_centre),void 0!==e.easting_at_false_origin&&(e.x0=e.easting_at_false_origin),void 0!==e.northing_at_false_origin&&(e.y0=e.northing_at_false_origin),void 0!==e.latitude_of_natural_origin&&(e.lat0=e.latitude_of_natural_origin),void 0!==e.longitude_of_natural_origin&&(e.long0=e.longitude_of_natural_origin),void 0!==e.longitude_of_origin&&(e.long0=e.longitude_of_origin),void 0!==e.false_easting&&(e.x0=e.false_easting),e.easting_at_projection_centre&&(e.x0=e.easting_at_projection_centre),void 0!==e.false_northing&&(e.y0=e.false_northing),e.northing_at_projection_centre&&(e.y0=e.northing_at_projection_centre),void 0!==e.standard_parallel_1&&(e.lat1=e.standard_parallel_1),void 0!==e.standard_parallel_2&&(e.lat2=e.standard_parallel_2),void 0!==e.scale_factor_at_natural_origin&&(e.k0=e.scale_factor_at_natural_origin),void 0!==e.scale_factor_at_projection_centre&&(e.k0=e.scale_factor_at_projection_centre),void 0!==e.scale_factor_on_pseudo_standard_parallel&&(e.k0=e.scale_factor_on_pseudo_standard_parallel),void 0!==e.azimuth&&(e.alpha=e.azimuth),void 0!==e.azimuth_at_projection_centre&&(e.alpha=e.azimuth_at_projection_centre),e.angle_from_rectified_to_skew_grid&&(e.rectified_grid_angle=e.angle_from_rectified_to_skew_grid),k(e)),e):t}j.prototype.readCharicter=function(){var t=this.text[this.place++];if(4!==this.state)for(;N.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}},j.prototype.afterquote=function(t){if('"'===t){this.word+='"',this.state=4;return}if(O.test(t)){this.word=this.word.trim(),this.afterItem(t);return}throw Error("havn't handled \""+t+'" in afterquote yet, index '+this.place)},j.prototype.afterItem=function(t){if(","===t){null!==this.word&&this.currentObject.push(this.word),this.word=null,this.state=1;return}if("]"===t){this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=1,this.currentObject=this.stack.pop(),this.currentObject||(this.state=-1);return}},j.prototype.number=function(t){if(T.test(t)){this.word+=t;return}if(O.test(t)){this.word=parseFloat(this.word),this.afterItem(t);return}throw Error("havn't handled \""+t+'" in number yet, index '+this.place)},j.prototype.quoted=function(t){if('"'===t){this.state=5;return}this.word+=t},j.prototype.keyword=function(t){if(I.test(t)){this.word+=t;return}if("["===t){var e=[];e.push(this.word),this.level++,null===this.root?this.root=e:this.currentObject.push(e),this.stack.push(this.currentObject),this.currentObject=e,this.state=1;return}if(O.test(t))return void this.afterItem(t);throw Error("havn't handled \""+t+'" in keyword yet, index '+this.place)},j.prototype.neutral=function(t){if(G.test(t)){this.word=t,this.state=2;return}if('"'===t){this.word="",this.state=4;return}if(T.test(t)){this.word=t,this.state=3;return}if(O.test(t))return void this.afterItem(t);throw Error("havn't handled \""+t+'" in neutral yet, index '+this.place)},j.prototype.output=function(){for(;this.place<this.text.length;)this.readCharicter();if(-1===this.state)return this.root;throw Error('unable to parse string "'+this.text+'". State is '+this.state)};
2var V=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function W(t){let e;if("object"==typeof t)return U(t);let i=(e=t.toUpperCase()).includes("PROJCRS")||e.includes("GEOGCRS")||e.includes("BOUNDCRS")||e.includes("VERTCRS")||e.includes("LENGTHUNIT")||e.includes("ANGLEUNIT")||e.includes("SCALEUNIT")?"WKT2":(e.includes("PROJCS")||e.includes("GEOGCS")||e.includes("LOCAL_CS")||e.includes("VERT_CS")||e.includes("UNIT"),"WKT1");var r=new j(t).output();if("WKT2"===i)return U(C.convert(r));var s=r[0],n={};return R(r,n),!function t(e){for(var i=Object.keys(e),r=0,s=i.length;r<s;++r){var n=i[r];-1!==V.indexOf(n)&&function(t){if(t.AUTHORITY){var e=Object.keys(t.AUTHORITY)[0];e&&e in t.AUTHORITY&&(t.title=e+":"+t.AUTHORITY[e])}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 i="",r=0,s=t.AXIS.length;r<s;++r){var n=[t.AXIS[r][0].toLowerCase(),t.AXIS[r][1].toLowerCase()];-1!==n[0].indexOf("north")||("y"===n[0]||"lat"===n[0])&&"north"===n[1]?i+="n":-1!==n[0].indexOf("south")||("y"===n[0]||"lat"===n[0])&&"south"===n[1]?i+="s":-1!==n[0].indexOf("east")||("x"===n[0]||"lon"===n[0])&&"east"===n[1]?i+="e":(-1!==n[0].indexOf("west")||("x"===n[0]||"lon"===n[0])&&"west"===n[1])&&(i+="w")}2===i.length&&(i+="u"),3===i.length&&(t.axis=i)}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 a=t.GEOGCS;function o(e){return e*(t.to_meter||1)}"GEOGCS"===t.type&&(a=t),a&&(a.PRIMEM&&a.PRIMEM.convert&&(t.from_greenwich=L(a.PRIMEM.convert)),a.DATUM?t.datumCode=a.DATUM.name.toLowerCase():t.datumCode=a.name.toLowerCase(),"d_"===t.datumCode.slice(0,2)&&(t.datumCode=t.datumCode.slice(2)),"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"),"belge_1972"===t.datumCode&&(t.datumCode="rnb72"),a.DATUM&&a.DATUM.SPHEROID&&(t.ellps=a.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),"international"===t.ellps.toLowerCase().slice(0,13)&&(t.ellps="intl"),t.a=a.DATUM.SPHEROID.a,t.rf=parseFloat(a.DATUM.SPHEROID.rf)),a.DATUM&&a.DATUM.TOWGS84&&(t.datum_params=a.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),t.rectified_grid_angle&&(t.rectified_grid_angle=L(t.rectified_grid_angle)),[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_1","Latitude of 1st standard parallel"],["standard_parallel_2","Standard_Parallel_2"],["standard_parallel_2","Latitude of 2nd standard parallel"],["false_easting","False_Easting"],["false_easting","False easting"],["false-easting","Easting at false origin"],["false_northing","False_Northing"],["false_northing","False northing"],["false_northing","Northing at false origin"],["central_meridian","Central_Meridian"],["central_meridian","Longitude of natural origin"],["central_meridian","Longitude of false origin"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["latitude_of_origin","Latitude of natural origin"],["latitude_of_origin","Latitude of false origin"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_Of_Center"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",L],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",L],["x0","false_easting",o],["y0","false_northing",o],["long0","central_meridian",L],["lat0","latitude_of_origin",L],["lat0","standard_parallel_1",L],["lat1","standard_parallel_1",L],["lat2","standard_parallel_2",L],["azimuth","Azimuth"],["alpha","azimuth",L],["srsCode","name"]].forEac
2h(function(e){var i,r;return i=e[0],r=e[1],void(!(i in t)&&r in t&&(t[i]=t[r],3===e.length&&(t[i]=e[2](t[i]))))}),k(t)}(e[n]),"object"==typeof e[n]&&t(e[n])}}(n),n[s]}function z(t){var e=this;if(2==arguments.length){var i=arguments[1];"string"==typeof i?"+"===i.charAt(0)?z[t]=A(arguments[1]):z[t]=W(arguments[1]):!i||"object"!=typeof i||"projName"in i?(z[t]=i,i||delete z[t]):z[t]=W(arguments[1])}else if(1==arguments.length){if(Array.isArray(t))return t.map(function(t){return Array.isArray(t)?z.apply(e,t):z(t)});if("string"==typeof t){if(t in z)return z[t]}else"EPSG"in t?z["EPSG:"+t.EPSG]=t:"ESRI"in t?z["ESRI:"+t.ESRI]=t:"IAU2000"in t?z["IAU2000:"+t.IAU2000]=t:console.log(t);return}}z("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),z("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),z("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");for(var K=1;K<=60;++K)z("EPSG:"+(32600+K),"+proj=utm +zone="+K+" +datum=WGS84 +units=m"),z("EPSG:"+(32700+K),"+proj=utm +zone="+K+" +south +datum=WGS84 +units=m");z("EPSG:5041","+title=WGS 84 / UPS North (E,N) +proj=stere +lat_0=90 +lon_0=0 +k=0.994 +x_0=2000000 +y_0=2000000 +datum=WGS84 +units=m"),z("EPSG:5042","+title=WGS 84 / UPS South (E,N) +proj=stere +lat_0=-90 +lon_0=0 +k=0.994 +x_0=2000000 +y_0=2000000 +datum=WGS84 +units=m"),z.WGS84=z["EPSG:4326"],z["EPSG:3785"]=z["EPSG:3857"],z.GOOGLE=z["EPSG:3857"],z["EPSG:900913"]=z["EPSG:3857"],z["EPSG:102113"]=z["EPSG:3857"];var H=["3857","900913","3785","102113"];let $=function(t){let e;if("string"==typeof t)if(t in z)e=z[t];else if((0===t.indexOf("+")||-1===t.indexOf("["))&&("object"!=typeof t||"srsCode"in t))"+"===t[0]&&(e=A(t));else{var i=function(t){var e=P(t,"extension");if(e)return P(e,"proj4")}(e=W(t));i&&(e=A(i))}else e="projName"in t?t:W(t);return e&&function(t){if(t.title)return 0===t.title.toLowerCase().indexOf("epsg:")&&H.indexOf(t.title.substr(5))>-1;var e=P(t,"authority");if(e){var i=P(e,"epsg");return i&&H.indexOf(i)>-1}}(e)?z["EPSG:3857"]:e};function J(t,e){var i,r;if(t=t||{},!e)return t;for(r in e)void 0!==(i=e[r])&&(t[r]=i);return t}function Q(t,e,i){var r=t*e;return i/Math.sqrt(1-r*r)}function X(t){return t<0?-1:1}function Y(t,e){return e||3.14159265359>=Math.abs(t)?t:t-X(t)*M}function Z(t,e,i){var r=t*i;return Math.tan(.5*(v-e))/(r=Math.pow((1-r)/(1+r),.5*t))}function tt(t,e){for(var i,r,s=.5*t,n=v-2*Math.atan(e),a=0;a<=15;a++)if(r=v-2*Math.atan(e*Math.pow((1-(i=t*Math.sin(n)))/(1+i),s))-n,n+=r,1e-10>=Math.abs(r))return n;return -9999}function te(t){return t}var ti=["longlat","identity"],tr=[{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.long0=this.long0||0,this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=Q(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,i,r=t.x,s=t.y;if(57.29577951308232*s>90&&57.29577951308232*s<-90&&57.29577951308232*r>180&&57.29577951308232*r<-180||1e-10>=Math.abs(Math.abs(s)-v))return null;if(this.sphere)e=this.x0+this.a*this.k0*Y(r-this.long0,this.over),i=this.y0+this.a*this.k0*Math.log(Math.tan(w+.5*s));else{var n=Math.sin(s),a=Z(this.e,s,n);e=this.x0+this.a*this.k0*Y(r-this.long0,this.over),i=this.y0-this.a*this.k0*Math.log(a)}return t.x=e,t.y=i,t},inverse:function(t){var e,i=t.x-this.x0,r=t.y-this.y0;if(this.sphere)e=v-2*Math.atan(Math.exp(-r/(this.a*this.k0)));else{var s=Math.exp(-r/(this.a*this.k0));if(-9999===(e=tt(this.e,s)))return null}return t.x=Y(this.long0+i/(this.a*this.k0),this.over),t.y=e,t},names:["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","Mercator_Variant_A","merc"]},{init:function(){},forward:te,inverse:te,names:ti}],ts={},tn=[];function ta(t,e){var i=tn.length;return t.names?(tn[i]=t,t.names.forEach(function(t){ts[t.toLowerCase()]=i}),this):(console.log(e),!0)}function to(t){return t.replace(/[-\(\)\s]+/g," ").trim().replace(/ /g,"_")}let tl={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)"}
2,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."},clrk80ign:{a:6378249.2,b:6356515,rf:293.4660213,ellipseName:"Clarke 1880 (IGN)"},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,b: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"},WGS84:{a:6378137,rf:298.257223563,ellipseName:"WGS 84"},sphere:{a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"}},th=tl.WGS84;var tu={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:"598.1,73.7,418.2,0.202,0.045,-2.455,6.7",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},carthage:{towgs84:"-263.0,6.0,431.0",ellipse:"clrk80ign",datumName:"Carthage 1934 Tunisia"},hermannskogel:{towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Hermannskogel"},mgi:{towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Militar-Geographische Institut"},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:"Ordnance Survey of Great Britain 1936"},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"},EPSG_5451:{towgs84:"6.41,-49.05,-11.28,1.5657,0.5242,6.9718,-5.7649"},IGNF_LURESG:{towgs84:"-192.986,13.673,-39.309,-0.4099,-2.9332,2.6881,0.43"},EPSG_4614:{towgs84:"-119.4248,-303.65872,-11.00061,1.164298,0.174458,1.096259,3.657065"},EPSG_4615:{towgs84:"-494.088,-312.129,279.877,-1.423,-1.013,1.59,-0.748"},ESRI_37241:{towgs84:"-76.822,257.457,-12.817,2.136,-0.033,-2.392,-0.031"},ESRI_37249:{towgs84:"-440.296,58.548,296.265,1.128,10.202,4.559,-0.438"},ESRI_37245:{towgs84:"-511.151,-181.269,139.609,1.05,2.703,1.798,3.071"},EPSG_4178:{towgs84:"24.9,-126.4,-93.2,-0.063,-0.247,-0.041,1.01"},EPSG_4622:{towgs84:"-472.29,-5.63,-304.12,0.4362,-0.8374,0.2563,1.8984"},EPSG_4625:{towgs84:"126.93,547.94,130.41,-2.7867,5.1612,-0.8584,13.8227"},EPSG_5252:{towgs84:"0.023,0.036,-0.068,0.00176,0.00912,-0.01136,0.00439"},EPSG_4314:{towgs84:"597.1,71.4,412.1,0.894,0.068,-1.563,7.58"},EPSG_4282:{towgs84:"-178.3,-316.7,-131.5,5.278,6.077,10.979,19.166"}
2,EPSG_4231:{towgs84:"-83.11,-97.38,-117.22,0.005693,-0.044698,0.044285,0.1218"},EPSG_4274:{towgs84:"-230.994,102.591,25.199,0.633,-0.239,0.9,1.95"},EPSG_4134:{towgs84:"-180.624,-225.516,173.919,-0.81,-1.898,8.336,16.71006"},EPSG_4254:{towgs84:"18.38,192.45,96.82,0.056,-0.142,-0.2,-0.0013"},EPSG_4159:{towgs84:"-194.513,-63.978,-25.759,-3.4027,3.756,-3.352,-0.9175"},EPSG_4687:{towgs84:"0.072,-0.507,-0.245,0.0183,-0.0003,0.007,-0.0093"},EPSG_4227:{towgs84:"-83.58,-397.54,458.78,-17.595,-2.847,4.256,3.225"},EPSG_4746:{towgs84:"599.4,72.4,419.2,-0.062,-0.022,-2.723,6.46"},EPSG_4745:{towgs84:"612.4,77,440.2,-0.054,0.057,-2.797,2.55"},EPSG_6311:{towgs84:"8.846,-4.394,-1.122,-0.00237,-0.146528,0.130428,0.783926"},EPSG_4289:{towgs84:"565.7381,50.4018,465.2904,-0.395026,0.330772,-1.876073,4.07244"},EPSG_4230:{towgs84:"-68.863,-134.888,-111.49,-0.53,-0.14,0.57,-3.4"},EPSG_4154:{towgs84:"-123.02,-158.95,-168.47"},EPSG_4156:{towgs84:"570.8,85.7,462.8,4.998,1.587,5.261,3.56"},EPSG_4299:{towgs84:"482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15"},EPSG_4179:{towgs84:"33.4,-146.6,-76.3,-0.359,-0.053,0.844,-0.84"},EPSG_4313:{towgs84:"-106.8686,52.2978,-103.7239,0.3366,-0.457,1.8422,-1.2747"},EPSG_4194:{towgs84:"163.511,127.533,-159.789"},EPSG_4195:{towgs84:"105,326,-102.5"},EPSG_4196:{towgs84:"-45,417,-3.5"},EPSG_4611:{towgs84:"-162.619,-276.959,-161.764,0.067753,-2.243648,-1.158828,-1.094246"},EPSG_4633:{towgs84:"137.092,131.66,91.475,-1.9436,-11.5993,-4.3321,-7.4824"},EPSG_4641:{towgs84:"-408.809,366.856,-412.987,1.8842,-0.5308,2.1655,-121.0993"},EPSG_4643:{towgs84:"-480.26,-438.32,-643.429,16.3119,20.1721,-4.0349,-111.7002"},EPSG_4300:{towgs84:"482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15"},EPSG_4188:{towgs84:"482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15"},EPSG_4660:{towgs84:"982.6087,552.753,-540.873,6.681627,-31.611492,-19.848161,16.805"},EPSG_4662:{towgs84:"97.295,-263.247,310.882,-1.5999,0.8386,3.1409,13.3259"},EPSG_3906:{towgs84:"577.88891,165.22205,391.18289,4.9145,-0.94729,-13.05098,7.78664"},EPSG_4307:{towgs84:"-209.3622,-87.8162,404.6198,0.0046,3.4784,0.5805,-1.4547"},EPSG_6892:{towgs84:"-76.269,-16.683,68.562,-6.275,10.536,-4.286,-13.686"},EPSG_4690:{towgs84:"221.597,152.441,176.523,2.403,1.3893,0.884,11.4648"},EPSG_4691:{towgs84:"218.769,150.75,176.75,3.5231,2.0037,1.288,10.9817"},EPSG_4629:{towgs84:"72.51,345.411,79.241,-1.5862,-0.8826,-0.5495,1.3653"},EPSG_4630:{towgs84:"165.804,216.213,180.26,-0.6251,-0.4515,-0.0721,7.4111"},EPSG_4692:{towgs84:"217.109,86.452,23.711,0.0183,-0.0003,0.007,-0.0093"},EPSG_9333:{towgs84:"0,0,0,-0.008393,0.000749,-0.010276,0"},EPSG_9059:{towgs84:"0,0,0"},EPSG_4312:{towgs84:"601.705,84.263,485.227,4.7354,1.3145,5.393,-2.3887"},EPSG_4123:{towgs84:"-96.062,-82.428,-121.753,4.801,0.345,-1.376,1.496"},EPSG_4309:{towgs84:"-124.45,183.74,44.64,-0.4384,0.5446,-0.9706,-2.1365"},ESRI_104106:{towgs84:"-283.088,-70.693,117.445,-1.157,0.059,-0.652,-4.058"}
2,EPSG_4281:{towgs84:"-219.247,-73.802,269.529"},EPSG_4322:{towgs84:"0,0,4.5"},EPSG_4324:{towgs84:"0,0,1.9"},EPSG_4284:{towgs84:"43.822,-108.842,-119.585,1.455,-0.761,0.737,0.549"},EPSG_4277:{towgs84:"446.448,-125.157,542.06,0.15,0.247,0.842,-20.489"},EPSG_4207:{towgs84:"-282.1,-72.2,120,-1.529,0.145,-0.89,-4.46"},EPSG_4688:{towgs84:"347.175,1077.618,2623.677,33.9058,-70.6776,9.4013,186.0647"},EPSG_4689:{towgs84:"410.793,54.542,80.501,-2.5596,-2.3517,-0.6594,17.3218"},EPSG_4720:{towgs84:"0,0,4.5"},EPSG_4273:{towgs84:"278.3,93,474.5,7.889,0.05,-6.61,6.21"},EPSG_4240:{towgs84:"204.64,834.74,293.8"},EPSG_4817:{towgs84:"278.3,93,474.5,7.889,0.05,-6.61,6.21"},ESRI_104131:{towgs84:"426.62,142.62,460.09,4.98,4.49,-12.42,-17.1"},EPSG_4265:{towgs84:"-104.1,-49.1,-9.9,0.971,-2.917,0.714,-11.68"},EPSG_4263:{towgs84:"-111.92,-87.85,114.5,1.875,0.202,0.219,0.032"},EPSG_4298:{towgs84:"-689.5937,623.84046,-65.93566,-0.02331,1.17094,-0.80054,5.88536"},EPSG_4270:{towgs84:"-253.4392,-148.452,386.5267,0.15605,0.43,-0.1013,-0.0424"},EPSG_4229:{towgs84:"-121.8,98.1,-10.7"},EPSG_4220:{towgs84:"-55.5,-348,-229.2"},EPSG_4214:{towgs84:"12.646,-155.176,-80.863"},EPSG_4232:{towgs84:"-345,3,223"},EPSG_4238:{towgs84:"-1.977,-13.06,-9.993,0.364,0.254,0.689,-1.037"},EPSG_4168:{towgs84:"-170,33,326"},EPSG_4131:{towgs84:"199,931,318.9"},EPSG_4152:{towgs84:"-0.9102,2.0141,0.5602,0.029039,0.010065,0.010101,0"},EPSG_5228:{towgs84:"572.213,85.334,461.94,4.9732,1.529,5.2484,3.5378"},EPSG_8351:{towgs84:"485.021,169.465,483.839,7.786342,4.397554,4.102655,0"},EPSG_4683:{towgs84:"-127.62,-67.24,-47.04,-3.068,4.903,1.578,-1.06"},EPSG_4133:{towgs84:"0,0,0"},EPSG_7373:{towgs84:"0.819,-0.5762,-1.6446,-0.00378,-0.03317,0.00318,0.0693"},EPSG_9075:{towgs84:"-0.9102,2.0141,0.5602,0.029039,0.010065,0.010101,0"},EPSG_9072:{towgs84:"-0.9102,2.0141,0.5602,0.029039,0.010065,0.010101,0"},EPSG_9294:{towgs84:"1.16835,-1.42001,-2.24431,-0.00822,-0.05508,0.01818,0.23388"},EPSG_4212:{towgs84:"-267.434,173.496,181.814,-13.4704,8.7154,7.3926,14.7492"},EPSG_4191:{towgs84:"-44.183,-0.58,-38.489,2.3867,2.7072,-3.5196,-8.2703"},EPSG_4237:{towgs84:"52.684,-71.194,-13.975,-0.312,-0.1063,-0.3729,1.0191"},EPSG_4740:{towgs84:"-1.08,-0.27,-0.9"},EPSG_4124:{towgs84:"419.3836,99.3335,591.3451,0.850389,1.817277,-7.862238,-0.99496"},EPSG_5681:{towgs84:"584.9636,107.7175,413.8067,1.1155,0.2824,-3.1384,7.9922"},EPSG_4141:{towgs84:"23.772,17.49,17.859,-0.3132,-1.85274,1.67299,-5.4262"},EPSG_4204:{towgs84:"-85.645,-273.077,-79.708,2.289,-1.421,2.532,3.194"},EPSG_4319:{towgs84:"226.702,-193.337,-35.371,-2.229,-4.391,9.238,0.9798"},EPSG_4200:{towgs84:"24.82,-131.21,-82.66"},EPSG_4130:{towgs84:"0,0,0"},EPSG_4127:{towgs84:"-82.875,-57.097,-156.768,-2.158,1.524,-0.982,-0.359"},EPSG_4149:{towgs84:"674.374,15.056,405.346"},EPSG_4617:{towgs84:"-0.991,1.9072,0.5129,0.02579,0.00965,0.01166,0"},EPSG_4663:{towgs84:"-210.502,-66.902,-48.476,2.094,-15.067,-5.817,0.485"},EPSG_4664:{towgs84:"-211.939,137.626,58.3,-0.089,0.251,0.079,0.384"},EPSG_4665:{towgs84:"-105.854,165.589,-38.312,-0.003,-0.026,0.024,-0.048"},EPSG_4666:{towgs84:"631.392,-66.551,481.442,1.09,-4.445,-4.487,-4.43"},EPSG_4756:{towgs84:"-192.873,-39.382,-111.202,-0.00205,-0.0005,0.00335,0.0188"},EPSG_4723:{towgs84:"-179.483,-69.379,-27.584,-7.862,8.163,6.042,-13.925"},EPSG_4726:{towgs84:"8.853,-52.644,180.304,-0.393,-2.323,2.96,-24.081"},EPSG_4267:{towgs84:"-8.0,160.0,176.0"},EPSG_5365:{towgs84:"-0.16959,0.35312,0.51846,0.03385,-0.16325,0.03446,0.03693"},EPSG_4218:{towgs84:"304.5,306.5,-318.1"},EPSG_4242:{towgs84:"-33.722,153.789,94.959,-8.581,-4.478,4.54,8.95"},EPSG_4216:{towgs84:"-292.295,248.758,429.447,4.9971,2.99,6.6906,1.0289"},ESRI_104105:{towgs84:"631.392,-66.551,481.442,1.09,-4.445,-4.487,-4.43"},ESRI_104129:{towgs84:"0,0,0"},EPSG_4673:{towgs84:"174.05,-25.49,112.57"},EPSG_4202:{towgs84:"-124,-60,154"},EPSG_4203:{towgs84:"-117.763,-51.51,139.061,0.292,0.443,0.277,-0.191"},EPSG_3819:{towgs84:"595.48,121.69,515.35,4.115,-2.9383,0.853,-3.408"},EPSG_8694:{towgs84:"-93.799,-132.737,-219.073,-1.844,0.648,-6.37,-0.169"},EPSG_4145:{towgs84:"275.57,676.78,229.6"},EPSG_4283:{towgs84:"0.06155,-0.01087,-0.04019,0.039492,0.032722,0.032898,-0.009994"},EPSG_4317:{towgs84:"2.3287,-147.0425,-92.0802,-0.309248,0.324822,0.497299,5.689063"},EPSG_4272:{towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993"},EPSG_4248:{towgs84:"-307.7,265.3,-363.5"},EPSG_5561:{towgs84:"24,-121,-76"},EPSG_5233:{towgs84:"-0.293,766.95,87.713,0.195704,1.695068,3.473016,-0.039338"},ESRI_104130:{towgs84:"-86,-98,-119"}
2,ESRI_104102:{towgs84:"682,-203,480"},ESRI_37207:{towgs84:"7,-10,-26"},EPSG_4675:{towgs84:"59.935,118.4,-10.871"},ESRI_104109:{towgs84:"-89.121,-348.182,260.871"},ESRI_104112:{towgs84:"-185.583,-230.096,281.361"},ESRI_104113:{towgs84:"25.1,-275.6,222.6"},IGNF_WGS72G:{towgs84:"0,12,6"},IGNF_NTFG:{towgs84:"-168,-60,320"},IGNF_EFATE57G:{towgs84:"-127,-769,472"},IGNF_PGP50G:{towgs84:"324.8,153.6,172.1"},IGNF_REUN47G:{towgs84:"94,-948,-1262"},IGNF_CSG67G:{towgs84:"-186,230,110"},IGNF_GUAD48G:{towgs84:"-467,-16,-300"},IGNF_TAHI51G:{towgs84:"162,117,154"},IGNF_TAHAAG:{towgs84:"65,342,77"},IGNF_NUKU72G:{towgs84:"84,274,65"},IGNF_PETRELS72G:{towgs84:"365,194,166"},IGNF_WALL78G:{towgs84:"253,-133,-127"},IGNF_MAYO50G:{towgs84:"-382,-59,-262"},IGNF_TANNAG:{towgs84:"-139,-967,436"},IGNF_IGN72G:{towgs84:"-13,-348,292"},IGNF_ATIGG:{towgs84:"1118,23,66"},IGNF_FANGA84G:{towgs84:"150.57,158.33,118.32"},IGNF_RUSAT84G:{towgs84:"202.13,174.6,-15.74"},IGNF_KAUE70G:{towgs84:"126.74,300.1,-75.49"},IGNF_MOP90G:{towgs84:"-10.8,-1.8,12.77"},IGNF_MHPF67G:{towgs84:"338.08,212.58,-296.17"},IGNF_TAHI79G:{towgs84:"160.61,116.05,153.69"},IGNF_ANAA92G:{towgs84:"1.5,3.84,4.81"},IGNF_MARQUI72G:{towgs84:"330.91,-13.92,58.56"},IGNF_APAT86G:{towgs84:"143.6,197.82,74.05"},IGNF_TUBU69G:{towgs84:"237.17,171.61,-77.84"},IGNF_STPM50G:{towgs84:"11.363,424.148,373.13"},EPSG_4150:{towgs84:"674.374,15.056,405.346"},EPSG_4754:{towgs84:"-208.4058,-109.8777,-2.5764"},ESRI_104101:{towgs84:"372.87,149.23,585.29"},EPSG_4693:{towgs84:"0,-0.15,0.68"},EPSG_6207:{towgs84:"293.17,726.18,245.36"},EPSG_4153:{towgs84:"-133.63,-157.5,-158.62"},EPSG_4132:{towgs84:"-241.54,-163.64,396.06"},EPSG_4221:{towgs84:"-154.5,150.7,100.4"},EPSG_4266:{towgs84:"-80.7,-132.5,41.1"},EPSG_4193:{towgs84:"-70.9,-151.8,-41.4"},EPSG_5340:{towgs84:"-0.41,0.46,-0.35"},EPSG_4246:{towgs84:"-294.7,-200.1,525.5"},EPSG_4318:{towgs84:"-3.2,-5.7,2.8"},EPSG_4121:{towgs84:"-199.87,74.79,246.62"},EPSG_4223:{towgs84:"-260.1,5.5,432.2"},EPSG_4158:{towgs84:"-0.465,372.095,171.736"},EPSG_4285:{towgs84:"-128.16,-282.42,21.93"},EPSG_4613:{towgs84:"-404.78,685.68,45.47"},EPSG_4607:{towgs84:"195.671,332.517,274.607"},EPSG_4475:{towgs84:"-381.788,-57.501,-256.673"},EPSG_4208:{towgs84:"-157.84,308.54,-146.6"},EPSG_4743:{towgs84:"70.995,-335.916,262.898"},EPSG_4710:{towgs84:"-323.65,551.39,-491.22"},EPSG_7881:{towgs84:"-0.077,0.079,0.086"},EPSG_4682:{towgs84:"283.729,735.942,261.143"},EPSG_4739:{towgs84:"-156,-271,-189"},EPSG_4679:{towgs84:"-80.01,253.26,291.19"},EPSG_4750:{towgs84:"-56.263,16.136,-22.856"},EPSG_4644:{towgs84:"-10.18,-350.43,291.37"},EPSG_4695:{towgs84:"-103.746,-9.614,-255.95"},EPSG_4292:{towgs84:"-355,21,72"},EPSG_4302:{towgs84:"-61.702,284.488,472.052"},EPSG_4143:{towgs84:"-124.76,53,466.79"},EPSG_4606:{towgs84:"-153,153,307"},EPSG_4699:{towgs84:"-770.1,158.4,-498.2"},EPSG_4247:{towgs84:"-273.5,110.6,-357.9"},EPSG_4160:{towgs84:"8.88,184.86,106.69"},EPSG_4161:{towgs84:"-233.43,6.65,173.64"},EPSG_9251:{towgs84:"-9.5,122.9,138.2"},EPSG_9253:{towgs84:"-78.1,101.6,133.3"},EPSG_4297:{towgs84:"-198.383,-240.517,-107.909"},EPSG_4269:{towgs84:"0,0,0"},EPSG_4301:{towgs84:"-147,506,687"},EPSG_4618:{towgs84:"-59,-11,-52"},EPSG_4612:{towgs84:"0,0,0"},EPSG_4678:{towgs84:"44.585,-131.212,-39.544"},EPSG_4250:{towgs84:"-130,29,364"},EPSG_4144:{towgs84:"214,804,268"},EPSG_4147:{towgs84:"-17.51,-108.32,-62.39"},EPSG_4259:{towgs84:"-254.1,-5.36,-100.29"},EPSG_4164:{towgs84:"-76,-138,67"},EPSG_4211:{towgs84:"-378.873,676.002,-46.255"},EPSG_4182:{towgs84:"-422.651,-172.995,84.02"},EPSG_4224:{towgs84:"-143.87,243.37,-33.52"},EPSG_4225:{towgs84:"-205.57,168.77,-4.12"},EPSG_5527:{towgs84:"-67.35,3.88,-38.22"},EPSG_4752:{towgs84:"98,390,-22"},EPSG_4310:{towgs84:"-30,190,89"},EPSG_9248:{towgs84:"-192.26,65.72,132.08"},EPSG_4680:{towgs84:"124.5,-63.5,-281"},EPSG_4701:{towgs84:"-79.9,-158,-168.9"},EPSG_4706:{towgs84:"-146.21,112.63,4.05"},EPSG_4805:{towgs84:"682,-203,480"},EPSG_4201:{towgs84:"-165,-11,206"},EPSG_4210:{towgs84:"-157,-2,-299"},EPSG_4183:{towgs84:"-104,167,-38"},EPSG_4139:{towgs84:"11,72,-101"},EPSG_4668:{towgs84:"-86,-98,-119"},EPSG_4717:{towgs84:"-2,151,181"},EPSG_4732:{towgs84:"102,52,-38"},EPSG_4280:{towgs84:"-377,681,-50"},EPSG_4209:{towgs84:"-138,-105,-289"},EPSG_4261:{towgs84:"31,146,47"},EPSG_4658:{towgs84:"-73,46,-86"},EPSG_4721:{towgs84:"265.025,384.929,-194.046"},EPSG_4222:{towgs84:"-136,-108,-292"},EPSG_4601:{towgs84:"-255,-15,71"},EPSG_4602:{towgs84:"725,685,536"},EPSG_4603:{towgs84:"72,213.7,93"},EPSG_4605:{towgs84:"9,183,236"},EPSG_4621:{towgs84:"137,248,-430"},EPSG_4657:{towgs84:"-28,199,5"},EPSG_4316:{towgs84:"103.25,-100.4,-307.19"}
2,EPSG_4642:{towgs84:"-13,-348,292"},EPSG_4698:{towgs84:"145,-187,103"},EPSG_4192:{towgs84:"-206.1,-174.7,-87.7"},EPSG_4311:{towgs84:"-265,120,-358"},EPSG_4135:{towgs84:"58,-283,-182"},ESRI_104138:{towgs84:"198,-226,-347"},EPSG_4245:{towgs84:"-11,851,5"},EPSG_4142:{towgs84:"-125,53,467"},EPSG_4213:{towgs84:"-106,-87,188"},EPSG_4253:{towgs84:"-133,-77,-51"},EPSG_4129:{towgs84:"-132,-110,-335"},EPSG_4713:{towgs84:"-77,-128,142"},EPSG_4239:{towgs84:"217,823,299"},EPSG_4146:{towgs84:"295,736,257"},EPSG_4155:{towgs84:"-83,37,124"},EPSG_4165:{towgs84:"-173,253,27"},EPSG_4672:{towgs84:"175,-38,113"},EPSG_4236:{towgs84:"-637,-549,-203"},EPSG_4251:{towgs84:"-90,40,88"},EPSG_4271:{towgs84:"-2,374,172"},EPSG_4175:{towgs84:"-88,4,101"},EPSG_4716:{towgs84:"298,-304,-375"},EPSG_4315:{towgs84:"-23,259,-9"},EPSG_4744:{towgs84:"-242.2,-144.9,370.3"},EPSG_4244:{towgs84:"-97,787,86"},EPSG_4293:{towgs84:"616,97,-251"},EPSG_4714:{towgs84:"-127,-769,472"},EPSG_4736:{towgs84:"260,12,-147"},EPSG_6883:{towgs84:"-235,-110,393"},EPSG_6894:{towgs84:"-63,176,185"},EPSG_4205:{towgs84:"-43,-163,45"},EPSG_4256:{towgs84:"41,-220,-134"},EPSG_4262:{towgs84:"639,405,60"},EPSG_4604:{towgs84:"174,359,365"},EPSG_4169:{towgs84:"-115,118,426"},EPSG_4620:{towgs84:"-106,-129,165"},EPSG_4184:{towgs84:"-203,141,53"},EPSG_4616:{towgs84:"-289,-124,60"},EPSG_9403:{towgs84:"-307,-92,127"},EPSG_4684:{towgs84:"-133,-321,50"},EPSG_4708:{towgs84:"-491,-22,435"},EPSG_4707:{towgs84:"114,-116,-333"},EPSG_4709:{towgs84:"145,75,-272"},EPSG_4712:{towgs84:"-205,107,53"},EPSG_4711:{towgs84:"124,-234,-25"},EPSG_4718:{towgs84:"230,-199,-752"},EPSG_4719:{towgs84:"211,147,111"},EPSG_4724:{towgs84:"208,-435,-229"},EPSG_4725:{towgs84:"189,-79,-202"},EPSG_4735:{towgs84:"647,1777,-1124"},EPSG_4722:{towgs84:"-794,119,-298"},EPSG_4728:{towgs84:"-307,-92,127"},EPSG_4734:{towgs84:"-632,438,-609"},EPSG_4727:{towgs84:"912,-58,1227"},EPSG_4729:{towgs84:"185,165,42"},EPSG_4730:{towgs84:"170,42,84"},EPSG_4733:{towgs84:"276,-57,149"},ESRI_37218:{towgs84:"230,-199,-752"},ESRI_37240:{towgs84:"-7,215,225"},ESRI_37221:{towgs84:"252,-209,-751"},ESRI_4305:{towgs84:"-123,-206,219"},ESRI_104139:{towgs84:"-73,-247,227"},EPSG_4748:{towgs84:"51,391,-36"},EPSG_4219:{towgs84:"-384,664,-48"},EPSG_4255:{towgs84:"-333,-222,114"},EPSG_4257:{towgs84:"-587.8,519.75,145.76"},EPSG_4646:{towgs84:"-963,510,-359"},EPSG_6881:{towgs84:"-24,-203,268"},EPSG_6882:{towgs84:"-183,-15,273"},EPSG_4715:{towgs84:"-104,-129,239"},IGNF_RGF93GDD:{towgs84:"0,0,0"},IGNF_RGM04GDD:{towgs84:"0,0,0"},IGNF_RGSPM06GDD:{towgs84:"0,0,0"},IGNF_RGTAAF07GDD:{towgs84:"0,0,0"},IGNF_RGFG95GDD:{towgs84:"0,0,0"},IGNF_RGNCG:{towgs84:"0,0,0"},IGNF_RGPFGDD:{towgs84:"0,0,0"},IGNF_ETRS89G:{towgs84:"0,0,0"},IGNF_RGR92GDD:{towgs84:"0,0,0"},EPSG_4173:{towgs84:"0,0,0"},EPSG_4180:{towgs84:"0,0,0"},EPSG_4619:{towgs84:"0,0,0"},EPSG_4667:{towgs84:"0,0,0"},EPSG_4075:{towgs84:"0,0,0"},EPSG_6706:{towgs84:"0,0,0"},EPSG_7798:{towgs84:"0,0,0"},EPSG_4661:{towgs84:"0,0,0"},EPSG_4669:{towgs84:"0,0,0"},EPSG_8685:{towgs84:"0,0,0"},EPSG_4151:{towgs84:"0,0,0"},EPSG_9702:{towgs84:"0,0,0"},EPSG_4758:{towgs84:"0,0,0"},EPSG_4761:{towgs84:"0,0,0"},EPSG_4765:{towgs84:"0,0,0"},EPSG_8997:{towgs84:"0,0,0"},EPSG_4023:{towgs84:"0,0,0"},EPSG_4670:{towgs84:"0,0,0"},EPSG_4694:{towgs84:"0,0,0"},EPSG_4148:{towgs84:"0,0,0"},EPSG_4163:{towgs84:"0,0,0"},EPSG_4167:{towgs84:"0,0,0"},EPSG_4189:{towgs84:"0,0,0"},EPSG_4190:{towgs84:"0,0,0"},EPSG_4176:{towgs84:"0,0,0"},EPSG_4659:{towgs84:"0,0,0"},EPSG_3824:{towgs84:"0,0,0"},EPSG_3889:{towgs84:"0,0,0"},EPSG_4046:{towgs84:"0,0,0"},EPSG_4081:{towgs84:"0,0,0"},EPSG_4558:{towgs84:"0,0,0"},EPSG_4483:{towgs84:"0,0,0"},EPSG_5013:{towgs84:"0,0,0"},EPSG_5264:{towgs84:"0,0,0"},EPSG_5324:{towgs84:"0,0,0"},EPSG_5354:{towgs84:"0,0,0"},EPSG_5371:{towgs84:"0,0,0"},EPSG_5373:{towgs84:"0,0,0"},EPSG_5381:{towgs84:"0,0,0"},EPSG_5393:{towgs84:"0,0,0"},EPSG_5489:{towgs84:"0,0,0"},EPSG_5593:{towgs84:"0,0,0"},EPSG_6135:{towgs84:"0,0,0"},EPSG_6365:{towgs84:"0,0,0"},EPSG_5246:{towgs84:"0,0,0"},EPSG_7886:{towgs84:"0,0,0"},EPSG_8431:{towgs84:"0,0,0"},EPSG_8427:{towgs84:"0,0,0"},EPSG_8699:{towgs84:"0,0,0"},EPSG_8818:{towgs84:"0,0,0"},EPSG_4757:{towgs84:"0,0,0"},EPSG_9140:{towgs84:"0,0,0"},EPSG_8086:{towgs84:"0,0,0"},EPSG_4686:{towgs84:"0,0,0"},EPSG_4737:{towgs84:"0,0,0"},EPSG_4702:{towgs84:"0,0,0"},EPSG_4747:{towgs84:"0,0,0"},EPSG_4749:{towgs84:"0,0,0"},EPSG_4674:{towgs84:"0,0,0"},EPSG_4755:{towgs84:"0,0,0"},EPSG_4759:{towgs84:"0,0,0"},EPSG_4762:{towgs84:"0,0,0"},EPSG_4763:{towgs84:"0,0,0"},EPSG_4764:{towgs84:"0,0,0"},EPSG_4166:{towgs84:"0,0,0"},EPSG_4170:{towgs84:"0,0,0"},EPSG_5546:{towgs84:"0,0,0"},EPSG_7844:{towgs84:"0,0,0"},EPSG_4818:{towgs84:"589,76,480"},EPSG_10328:{towgs84:"0,0,0"},EPSG_9782:{towgs84:"0,0,0"},EPSG_9777:{towgs84:"0,0,0"},EPSG_10690:{towgs84:"0,0,0"},EPSG_10639:{towgs84:"0,0,0"},EPSG_10739:{towgs84:"0,0,0"},EPSG_7686:{towgs84:"0,0,0"},EPSG_8900:{towgs84:"0,0,0"},EPSG_5886:{towgs84:"0,0,0"},EPSG_7683:{towgs84:"0,0,0"},EPSG_6668:{towgs84:"0,0,0"},EPSG_20046:{towgs84:"0,0,0"},EPSG_10299:{towgs84:"0,0,0"},EPSG_10310:{towgs84:"0,0,0"},EPSG_10475:{towgs84:"0,0,0"},EPSG_4742:{towgs84:"0,0,0"},EPSG_10671:{towgs84:"0,0,0"},EPSG_10762:{towgs84:"0,0,0"},EPSG_10725:{towgs84:"0,0,0"},EPSG_10791:{towgs84:"0,0,0"},EPSG_10800:{towgs84:"0,0,0"},EPSG_10305:{towgs84:"0,0,0"},EPSG_10941:{towgs84:"0,0,0"},EPSG_10968:{towgs84:"0,0,0"},EPSG_10875:{towgs84:"0,0,0"},EPSG_6318:{towgs84:"0,0,0"},EPSG_10910:{towgs84:"0,0,0"}};for(var tc in tu){var td=tu[tc];td.datumName&&(tu[td.datumName]=td)}
2let tf=function(t,e,i,r,s,n,a){var o={};return o.datum_type=5,e&&(o.datum_type=4,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]*=484813681109536e-20,o.datum_params[4]*=484813681109536e-20,o.datum_params[5]*=484813681109536e-20,o.datum_params[6]=o.datum_params[6]/1e6+1)),a&&(o.datum_type=3,o.grids=a),o.a=i,o.b=r,o.es=s,o.ep2=n,o};var tp={};async function tg(t,e){for(var i=[],r=await e.getImageCount(),s=r-1;s>=0;s--){var n=await e.getImage(s),a=await n.readRasters(),o=[n.getWidth(),n.getHeight()],l=n.getBoundingBox().map(tm),h="function"==typeof n.fileDirectory.getValue?n.fileDirectory.getValue("ModelPixelScale"):n.fileDirectory.ModelPixelScale,u=[h[0],h[1]].map(tm),c=l[0]+(o[0]-1)*u[0],d=l[3]-(o[1]-1)*u[1],f=a[0],p=a[1],g=[];for(let t=o[1]-1;t>=0;t--)for(let e=o[0]-1;e>=0;e--){var y=t*o[0]+e;g.push([-t_(p[y]),t_(f[y])])}i.push({del:u,lim:o,ll:[-c,d],cvs:g})}var m={header:{nSubgrids:r},subgrids:i};return tp[t]=m,m}function ty(t){if(0===t.length)return null;var e="@"===t[0];return(e&&(t=t.slice(1)),"null"===t)?{name:"null",mandatory:!e,grid:null,isNull:!0}:{name:t,mandatory:!e,grid:tp[t]||null,isNull:!1}}function tm(t){return t*Math.PI/180}function t_(t){return t/3600*Math.PI/180}function tb(t,e,i){return String.fromCharCode.apply(null,new Uint8Array(t.buffer.slice(e,i)))}function tv(t,e){if(!(this instanceof tv))return new tv(t);this.forward=null,this.inverse=null,this.init=null,this.name,this.axis,this.names=null,this.title,e=e||function(t){if(t)throw t};var i,r,s,n,a,o,l,h,u=$(t);if("object"!=typeof u)return void e("Could not parse to valid json: "+t);var c=tv.projections.get(u.projName);if(!c)return void e("Could not get projection name from: "+t);if(u.datumCode&&"none"!==u.datumCode){var d=P(tu,u.datumCode);d&&(u.datum_params=u.datum_params||(d.towgs84?d.towgs84.split(","):null),u.ellps=d.ellipse,u.datumName=d.datumName?d.datumName:u.datumCode)}u.axis=u.axis||"enu",u.ellps=u.ellps||"wgs84",u.lat1=u.lat1||u.lat0;var f=function(t,e,i,r,s){if(!t){var n=P(tl,r);n||(n=th),t=n.a,e=n.b,i=n.rf}return i&&!e&&(e=(1-1/i)*t),(0===i||1e-10>Math.abs(t-e))&&(s=!0,e=t),{a:t,b:e,rf:i,sphere:s}}(u.a,u.b,u.rf,u.ellps,u.sphere),p=(i=f.a,r=f.b,f.rf,s=u.R_A,o=((n=i*i)-(a=r*r))/n,l=0,s?(i*=1-o*(.16666666666666666+o*(.04722222222222222+.022156084656084655*o)),n=i*i,o=0):l=Math.sqrt(o),{es:o,e:l,ep2:(n-a)/a}),g=void 0===(h=u.nadgrids)?null:h.split(",").map(ty),y=u.datum||tf(u.datumCode,u.datum_params,f.a,f.b,p.es,p.ep2,g);J(this,u),J(this,c),this.a=f.a,this.b=f.b,this.rf=f.rf,this.sphere=f.sphere,this.es=p.es,this.e=p.e,this.ep2=p.ep2,this.datum=y,"init"in this&&"function"==typeof this.init&&this.init(),this.k0||(this.k0=1),e(null,this)}function tw(t,e,i){var r,s,n,a=t.x,o=t.y,l=t.z?t.z:0;if(o<-v&&o>-1.001*v)o=-v;else if(o>v&&o<1.001*v)o=v;else if(o<-v)return{x:-1/0,y:-1/0,z:t.z};else if(o>v)return{x:1/0,y:1/0,z:t.z};return a>Math.PI&&(a-=2*Math.PI),s=Math.sin(o),n=Math.cos(o),{x:((r=i/Math.sqrt(1-s*s*e))+l)*n*Math.cos(a),y:(r+l)*n*Math.sin(a),z:(r*(1-e)+l)*s}}function tM(t,e,i,r){var s,n,a,o,l,h,u,c,d,f,p,g,y,m,_,b=1e-12*1e-12,v=t.x,w=t.y,M=t.z?t.z:0;if(s=Math.sqrt(v*v+w*w),n=Math.sqrt(v*v+w*w+M*M),s/i<1e-12){if(m=0,n/i<1e-12)return _=-r,{x:t.x,y:t.y,z:t.z}}else m=Math.atan2(w,v);a=M/n,l=1/Math.sqrt(1-e*(2-e)*(o=s/n)*o),c=o*(1-e)*l,d=a*l,y=0;do y++,u=i/Math.sqrt(1-e*d*d),_=s*c+M*d-u*(1-e*d*d),l=1/Math.sqrt(1-(h=e*u/(u+_))*(2-h)*o*o),f=o*(1-h)*l,g=(p=a*l)*c-f*d,c=f,d=p;while(g*g>b&&y<30)return{x:m,y:Math.atan(p/Math.abs(f)),z:_}}function tS(t){return 1===t||2===t}function tE(t,e,i){if(null===t.grids||0===t.grids.length)return console.log("Grid shift grids not found"),-1;var r={x:-i.x,y:i.y},s={x:NaN,y:NaN},n=[];t:for(var a=0;a<t.grids.length;a++){var o=t.grids[a];if(n.push(o.name),o.isNull){s=r;break}if(null===o.grid){if(o.mandatory)return console.log("Unable to find mandatory grid '"+o.name+"'"),-1;continue}for(var l=o.grid.subgrids,h=0,u=l.length;h<u;h++){var c=l[h],d=(Math.abs(c.del[1])+Math.abs(c.del[0]))/1e4,f=c.ll[0]-d,p=c.ll[1]-d,g=c.ll[0]+(c.lim[0]-1)*c.del[0]+d,y=c.ll[1]+(c.lim[1]-1)*c.del[1]+d;if(!(p>r.y)&&!(f>
2r.x)&&!(y<r.y)&&!(g<r.x)&&!isNaN((s=function(t,e,i){var r={x:NaN,y:NaN};if(isNaN(t.x))return r;var s={x:t.x,y:t.y};s.x-=i.ll[0],s.y-=i.ll[1],s.x=Y(s.x-Math.PI)+Math.PI;var n=tx(s,i);if(e){if(isNaN(n.x))return r;n.x=s.x-n.x,n.y=s.y-n.y;var a,o,l=9;do{if(isNaN((o=tx(n,i)).x)){console.log("Inverse grid shift iteration failed, presumably at grid edge.  Using first approximation.");break}a={x:s.x-(o.x+n.x),y:s.y-(o.y+n.y)},n.x+=a.x,n.y+=a.y}while(l--&&Math.abs(a.x)>1e-12&&Math.abs(a.y)>1e-12)if(l<0)return console.log("Inverse grid shift iterator failed to converge."),r;r.x=Y(n.x+i.ll[0]),r.y=n.y+i.ll[1]}else isNaN(n.x)||(r.x=t.x+n.x,r.y=t.y+n.y);return r}(r,e,c)).x))break t}}return isNaN(s.x)?(console.log("Failed to find a grid shift table for location '"+-(57.29577951308232*r.x)+" "+57.29577951308232*r.y+" tried: '"+n+"'"),-1):(i.x=-s.x,i.y=s.y,0)}function tx(t,e){var i,r={x:t.x/e.del[0],y:t.y/e.del[1]},s={x:Math.floor(r.x),y:Math.floor(r.y)},n={x:r.x-s.x,y:r.y-s.y},a={x:NaN,y:NaN};if(s.x<0||s.x>=e.lim[0]||s.y<0||s.y>=e.lim[1])return a;i=s.y*e.lim[0]+s.x;var o={x:e.cvs[i][0],y:e.cvs[i][1]};i++;var l={x:e.cvs[i][0],y:e.cvs[i][1]};i+=e.lim[0];var h={x:e.cvs[i][0],y:e.cvs[i][1]};i--;var u={x:e.cvs[i][0],y:e.cvs[i][1]},c=n.x*n.y,d=n.x*(1-n.y),f=(1-n.x)*(1-n.y),p=(1-n.x)*n.y;return a.x=f*o.x+d*l.x+p*u.x+c*h.x,a.y=f*o.y+d*l.y+p*u.y+c*h.y,a}tv.projections={start:function(){tr.forEach(ta)},add:ta,get:function(t){if(!t)return!1;var e=t.toLowerCase();if(void 0!==ts[e]&&tn[ts[e]]||(e=to(e))in ts&&tn[ts[e]])return tn[ts[e]]}},tv.projections.start();var tP=["x","y","z"];function tA(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 tC(t){if("function"==typeof Number.isFinite){if(Number.isFinite(t))return;throw TypeError("coordinates must be finite numbers")}if("number"!=typeof t||t!=t||!isFinite(t))throw TypeError("coordinates must be finite numbers")}function tN(t,e,i,r){var s,n,a,o=void 0!==i.z;if(tC((s=i).x),tC(s.y),t.datum&&e.datum&&((1===(n=t).datum.datum_type||2===n.datum.datum_type||3===n.datum.datum_type)&&"WGS84"!==e.datumCode||(1===e.datum.datum_type||2===e.datum.datum_type||3===e.datum.datum_type)&&"WGS84"!==n.datumCode)&&(i=tN(t,a=new tv("WGS84"),i,r),t=a),r&&"enu"!==t.axis&&(i=function(t,e){let i={};for(let r=0,s=t.axis.length;r<s;r++){if(2===r&&void 0===e.z)continue;let s=e[tP[r]];switch(t.axis[r]){case"e":i.x=s;break;case"w":i.x=-s;break;case"n":i.y=s;break;case"s":i.y=-s;break;case"u":i.z=s;break;case"d":i.z=-s;break;default:return null}}return i}(t,i)),"longlat"===t.projName)i={x:.017453292519943295*i.x,y:.017453292519943295*i.y,z:i.z||0};else if(t.to_meter&&(i={x:i.x*t.to_meter,y:i.y*t.to_meter,z:i.z||0}),!(i=t.inverse(i)))return;if(t.from_greenwich&&(i.x+=t.from_greenwich),i=function(t,e,i){if(r=t,s=e,!(r.datum_type!==s.datum_type||r.a!==s.a||Math.abs(r.es-s.es)>5e-11)&&(1===r.datum_type?r.datum_params[0]===s.datum_params[0]&&r.datum_params[1]===s.datum_params[1]&&r.datum_params[2]===s.datum_params[2]:2!==r.datum_type||r.datum_params[0]===s.datum_params[0]&&r.datum_params[1]===s.datum_params[1]&&r.datum_params[2]===s.datum_params[2]&&r.datum_params[3]===s.datum_params[3]&&r.datum_params[4]===s.datum_params[4]&&r.datum_params[5]===s.datum_params[5]&&r.datum_params[6]===s.datum_params[6])||5===t.datum_type||5===e.datum_type)return i;var r,s,n=t.a,a=t.es;if(3===t.datum_type){if(0!==tE(t,!1,i))return;n=6378137,a=.0066943799901413165}var o=e.a,l=e.b,h=e.es;if(3===e.datum_type&&(o=6378137,l=6356752.314,h=.0066943799901413165),a===h&&n===o&&!tS(t.datum_type)&&!tS(e.datum_type)||(i=tw(i,a,n),tS(t.datum_type)&&(i=function(t,e,i){if(1===e)return{x:t.x+i[0],y:t.y+i[1],z:t.z+i[2]};if(2===e){var r=i[0],s=i[1],n=i[2],a=i[3],o=i[4],l=i[5],h=i[6];return{x:h*(t.x-l*t.y+o*t.z)+r,y:h*(l*t.x+t.y-a*t.z)+s,z:h*(-o*t.x+a*t.y+t.z)+n}}}(i,t.datum_type,t.datum_params)),tS(e.datum_type)&&(i=function(t,e,i){if(1===e)return{x:t.x-i[0],y:t.y-i[1],z:t.z-i[2]};if(2===e){var r=i[0],s=i[1],n=i[2],a=i[3],o=i[4],l=i[5],h=i[6],u=(t.x-r)/h,c=(t.y-s)/h,d=(t.z-n)/h;return{x:u+l*c-o*d,y:-l*u+c+a*d,z:o*u-a*c+d}}}(i,e.datum_type,e.datum_params)),i=tM(i,h,o,l),3!==e.datum_type||0===tE(e,!0,i)))return i}(t.datum,e.datum,i)){if(e.from_greenwich&&(i={x:i.x-e.from_greenwich,y:i.y,z:i.z||0}),"longlat"===e.projName?(void 0!==e.long_wrap&&(i.x=e.long_wrap+Y(i.x-e.long_wrap)),i={x:57.29577951308232*i.x,y:57.29577951308232*i.y,z:i.z||0}):(i=e.forward(i),e.to_meter&&(i={x:i.x/e.to_meter,y:i.y/e.to_meter,z:i.z||0})),r&&"enu"!==e.axis){var l=i;let t={};for(let i=0,r=e.axis.length;i<r;i++)if(2!==i||void 0!==l.z)switch(e.axis[i]){case"e":t[tP[i]]=l.x;break;case"w":t[tP[i]]=-l.x;break;case"n":t[tP[i]]=l.y;break;case"s":t[tP[i]]=-l.y;break;case"u":t[tP[i]]=l.z;break;case"d":t[tP[i]]=-l.z;break;default:return null}return t}return i&&!o&&"geocent"!==e.projName&&delete i.z,i}}var tG=tv("WGS84");function tI(t,e,i,r){var s,n,a;if(Array.isArray(i)){if(s=tN(t,e,tA(i),r)||{x:NaN,y:NaN},i.length>2)return(n=void 0!==t.name&&"geocent"===t.name||void 0!==e.name&&"geocent"===e.name)?"number"==typeof s.z?[s.x,s.y,s.z].concat(i.slice(3)):[s.x,s.y,i[2]].concat(i.slice(3)):r&&"number"==typeof s.z?[s.x,s.y,s.z].concat(i.slice(3)):[s.x,s.y].concat(i.slice(2));return[s.x,s.y]}return s=tN(t,e,{x:i.x,y:i.y,z:i.z,m:i.m},r)||{x:NaN,y:NaN},2===(a=Object.keys(i)).length||(n=void 0!==t.name&&"geocent"===t.name||void 0!==e.name&&"geocent"===e.name,a.forEach(function(t){"x"===t||"y"===t||"z"===t&&(n||r)||(s[t]=i[t])})),s}function tO(t){return t instanceof tv?t:"object"==typeof t&&"oProj"in t?t.oProj:tv(t)}var tT="AJSAJS",tj="AFAFAF";function tD(t,e){var i,r,s,n,a,o,l,h,u,c,d,f,p,g,y;return e=e||5,i=function(t){var e,i,r,s,n,a,o,l,h=t.lat,u=t.lon,c=tL(h),d=tL(u);l=Math.floor((u+180)/6)+1,180===u&&(l=60),h>=56&&h<64&&u>=3&&u<12&&(l=32),h>=72&&h<84&&(u>=0&&u<9?l=31:u>=9&&u<21?l=33:u>=21&&u<33?l=35:u>=33&&u<42&&(l=37)),o=tL((l-1)*6-180+3),r=6378137/Math.sqrt(1-.00669438*Math.sin(c)*Math.sin(c)),s=Math.tan(c)
2*Math.tan(c),n=.006739496752268451*Math.cos(c)*Math.cos(c);var f=.9996*r*((a=Math.cos(c)*(d-o))+(1-s+n)*a*a*a/6+(5-18*s+s*s+72*n-.39089081163157013)*a*a*a*a*a/120)+5e5,p=.9996*(6378137*(.9983242984503243*c-.002514607064228144*Math.sin(2*c)+2639046602129982e-21*Math.sin(4*c)-3418046101696858e-24*Math.sin(6*c))+r*Math.tan(c)*(a*a/2+(5-s+9*n+4*n*n)*a*a*a*a/24+(61-58*s+s*s+600*n-2.2240339282485886)*a*a*a*a*a*a/720));return h<0&&(p+=1e7),{northing:Math.round(p),easting:Math.round(f),zoneNumber:l,zoneLetter:(i="Z",84>=(e=h)&&e>=72?i="X":72>e&&e>=64?i="W":64>e&&e>=56?i="V":56>e&&e>=48?i="U":48>e&&e>=40?i="T":40>e&&e>=32?i="S":32>e&&e>=24?i="R":24>e&&e>=16?i="Q":16>e&&e>=8?i="P":8>e&&e>=0?i="N":0>e&&e>=-8?i="M":-8>e&&e>=-16?i="L":-16>e&&e>=-24?i="K":-24>e&&e>=-32?i="J":-32>e&&e>=-40?i="H":-40>e&&e>=-48?i="G":-48>e&&e>=-56?i="F":-56>e&&e>=-64?i="E":-64>e&&e>=-72?i="D":-72>e&&e>=-80&&(i="C"),i)}}({lat:t[1],lon:t[0]}),r=e,s="00000"+i.easting,n="00000"+i.northing,i.zoneNumber+i.zoneLetter+(a=i.easting,o=i.northing,l=i.zoneNumber,h=Math.floor(a/1e5),u=Math.floor(o/1e5)%20,c=tq(l)-1,d=tT.charCodeAt(c),f=tj.charCodeAt(c),p=d+h-1,g=f+u,y=!1,p>90&&(p=p-90+65-1,y=!0),(73===p||d<73&&p>73||(p>73||d<73)&&y)&&p++,(79===p||d<79&&p>79||(p>79||d<79)&&y)&&73==++p&&p++,p>90&&(p=p-90+65-1),g>86?(g=g-86+65-1,y=!0):y=!1,(73===g||f<73&&g>73||(g>73||f<73)&&y)&&g++,(79===g||f<79&&g>79||(g>79||f<79)&&y)&&73==++g&&g++,g>86&&(g=g-86+65-1),String.fromCharCode(p)+String.fromCharCode(g))+s.substr(s.length-5,r)+n.substr(n.length-5,r)}function tR(t){var e=tF(tB(t.toUpperCase()));return e.lat&&e.lon?[e.lon,e.lat]:[(e.left+e.right)/2,(e.top+e.bottom)/2]}function tL(t){return Math.PI/180*t}function tk(t){return t/Math.PI*180}function tF(t){var e,i,r,s,n,a,o,l,h=t.northing,u=t.easting,c=t.zoneLetter,d=t.zoneNumber;if(d<0||d>60)return null;var f=(1-Math.sqrt(.99330562))/(1+Math.sqrt(.99330562)),p=h;c<"N"&&(p-=1e7),e=6378137/Math.sqrt(1-.00669438*Math.sin(o=(a=p/.9996/6367449.145945056)+(3*f/2-27*f*f*f/32)*Math.sin(2*a)+(21*f*f/16-55*f*f*f*f/32)*Math.sin(4*a)+151*f*f*f/96*Math.sin(6*a))*Math.sin(o)),i=Math.tan(o)*Math.tan(o),r=.006739496752268451*Math.cos(o)*Math.cos(o),s=6335439.32722994/Math.pow(1-.00669438*Math.sin(o)*Math.sin(o),1.5),n=(u-5e5)/(.9996*e);var g=o-e*Math.tan(o)/s*(n*n/2-(5+3*i+10*r-4*r*r-.06065547077041606)*n*n*n*n/24+(61+90*i+298*r+45*i*i-1.6983531815716497-3*r*r)*n*n*n*n*n*n/720);g=tk(g);var y=(n-(1+2*i+r)*n*n*n/6+(5-2*r+28*i-3*r*r+.05391597401814761+24*i*i)*n*n*n*n*n/120)/Math.cos(o);if(y=(d-1)*6-180+3+tk(y),t.accuracy){var m=tF({northing:t.northing+t.accuracy,easting:t.easting+t.accuracy,zoneLetter:t.zoneLetter,zoneNumber:t.zoneNumber});
2l={top:m.lat,right:m.lon,bottom:g,left:y}}else l={lat:g,lon:y};return l}function tq(t){var e=t%6;return 0===e&&(e=6),e}function tB(t){if(t&&0===t.length)throw"MGRSPoint coverting from nothing";for(var e,i,r=t.length,s=null,n="",a=0;!/[A-Z]/.test(e=t.charAt(a));){if(a>=2)throw"MGRSPoint bad conversion from: "+t;n+=e,a++}var o=parseInt(n,10);if(0===a||a+3>r)throw"MGRSPoint bad conversion from: "+t;var l=t.charAt(a++);if(l<="A"||"B"===l||"Y"===l||l>="Z"||"I"===l||"O"===l)throw"MGRSPoint zone letter "+l+" not handled: "+t;s=t.substring(a,a+=2);for(var h=tq(o),u=function(t,e){for(var i=tT.charCodeAt(e-1),r=1e5,s=!1;i!==t.charCodeAt(0);){if(73==++i&&i++,79===i&&i++,i>90){if(s)throw"Bad character: "+t;i=65,s=!0}r+=1e5}return r}(s.charAt(0),h),c=function(t,e){if(t>"V")throw"MGRSPoint given invalid Northing "+t;for(var i=tj.charCodeAt(e-1),r=0,s=!1;i!==t.charCodeAt(0);){if(73==++i&&i++,79===i&&i++,i>86){if(s)throw"Bad character: "+t;i=65,s=!0}r+=1e5}return r}(s.charAt(1),h);c<function(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}(l);)c+=2e6;var d=r-a;if(d%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=d/2,p=0,g=0;return f>0&&(i=1e5/Math.pow(10,f),p=parseFloat(t.substring(a,a+f))*i,g=parseFloat(t.substring(a+f))*i),{easting:p+u,northing:g+c,zoneLetter:l,zoneNumber:o,accuracy:i}}function tU(t,e,i){if(!(this instanceof tU))return new tU(t,e,i);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 r=t.split(",");this.x=parseFloat(r[0]),this.y=parseFloat(r[1]),this.z=parseFloat(r[2])||0}else this.x=t,this.y=e,this.z=i||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}function tV(t){var e=[];e[0]=1-t*(.25+t*(.046875+t*(.01953125+.01068115234375*t))),e[1]=t*(.75-t*(.046875+t*(.01953125+.01068115234375*t)));var i=t*t;return e[2]=i*(.46875-t*(.013020833333333334+.007120768229166667*t)),i*=t,e[3]=i*(.3645833333333333-.005696614583333333*t),e[4]=i*t*.3076171875,e}function tW(t,e,i,r){return i*=e,e*=e,r[0]*t-i*(r[1]+e*(r[2]+e*(r[3]+e*r[4])))}function tz(t,e,i){for(var r=1/(1-e),s=t,n=20;n;--n){var a=Math.sin(s),o=1-e*a*a;if(o=(tW(s,a,Math.cos(s),i)-t)*(o*Math.sqrt(o))*r,s-=o,1e-10>Math.abs(o))break}return s}tU.fromMGRS=function(t){return new tU(tR(t))},tU.prototype.toMGRS=function(t){return tD([this.x,this.y],t)};let tK={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=tV(this.es),this.ml0=tW(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))},forward:function(t){var e,i,r=t.x,s=t.y,n=Y(r-this.long0,this.over),a=Math.sin(s),o=Math.cos(s);if(this.es){var l=o*n,h=Math.pow(l,2),u=this.ep2*Math.pow(o,2),c=Math.pow(u,2),d=Math.pow(Math.abs(o)>1e-10?Math.tan(s):0,2),f=Math.pow(d,2);l/=Math.sqrt(1-this.es*Math.pow(a,2));var p=tW(s,a,o,this.en);e=this.a*(this.k0*l*(1+h/6*(1-d+u+h/20*(5-18*d+f+14*u-58*d*u+h/42*(61+179*f-f*d-479*d)))))+this.x0,i=this.a*(this.k0*(p-this.ml0+a*n*l/2*(1+h/12*(5-d+9*u+4*c+h/30*(61+f-58*d+270*u-330*d*u+h/56*(1385+543*f-f*d-3111*d))))))+this.y0}else{var g=o*Math.sin(n);if(1e-10>Math.abs(Math.abs(g)-1))return 93;if(e=.5*this.a*this.k0*Math.log((1+g)/(1-g))+this.x0,(g=Math.abs(i=o*Math.cos(n)/Math.sqrt(1-Math.pow(g,2))))>=1)if(g-1>1e-10)return 93;else i=0;else i=Math.acos(i);s<0&&(i=-i),i=this.a*this.k0*(i-this.lat0)+this.y0}return t.x=e,t.y=i,t},inverse:function(t){var e,i,r,s,n=(t.x-this.x0)*(1/this.a),a=(t.y-this.y0)*(1/this.a);if(this.es)if(Math.abs(i=tz(e=this.ml0+a/this.k0,this.es,this.en))<v){var o=Math.sin(i),l=Math.cos(i),h=Math.abs(l)>1e-10?Math.tan(i):0,u=this.ep2*Math.pow(l,2),c=Math.pow(u,2),d=Math.pow(h,2),f=Math.pow(d,2),p=n*Math.sqrt(e=1-this.es*Math.pow(o,2))/this.k0,g=Math.pow(p,2);e*=h,r=i-e*g/(1-this.es)*.5*(1-g/12*(5+3*d-9*u*d+u-4*c-g/30*(61+90*d-252*u*d+45*f+46*u-g/56*(1385+3633*d+4095*f+1574*f*d)))),s=Y(this.long0+p*(1-g/6*(1+2*d+u-g/20*(5+28*d+24*f+8*u*d+6*u-g/42*(61+662*d+1320*f+720*f*d))))/l,this.over)}else r=v*X(a),s=0;else{var y=Math.exp(n/this.k0),m=.5*(y-1/y),_=Math.cos(this.lat0+a/this.k0);r=Math.asin(e=Math.sqrt((1-Math.pow(_,2))/(1+Math.pow(m,2)))),a<0&&(r=-r),s=0===m&&0===_?0:Y(Math.atan2(m,_)+this.long0,this.over)}return t.x=s,t.y=r,t},names:["Fast_Transverse_Mercator","Fast Transverse Mercator"]};function tH(t){var e=Math.exp(t);return(e-1/e)/2}function t$(t,e){var i=Math.max(t=Math.abs(t),e=Math.abs(e)),r=Math.min(t,e)/(i||1);return i*Math.sqrt(1+Math.pow(r,2))}function tJ(t,e){for(var i,r=2*Math.cos(2*e),s=t.length-1,n=t[s],a=0;--s>=0;)i=-a+r*n+t[s],a=n,n=i;return e+i*Math.sin(2*e)}function tQ(t,e,i){for(var r,s,n,a=Math.sin(e),o=Math.cos(e),l=tH(i),h=r=((r=Math.exp(i))+1/r)/2,u=2*o*h,c=-2*a*l,d=t.length-1,f=t[d],p=0,g=0,y=0;--d>=0;)s=g,n=p,f=-s+u*(g=f)-c*(p=y)+t[d],y=-n+c*g+u*p;return[(u=a*h)*f-(c=o*l)*y,u*y+c*f]}let tX={init:function(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&(tK.init.apply(this),this.forward=tK.forward,this.inverse=tK.inverse),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.k0=void 0!==this.k0?this.k0:1,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var t=this.es/(1+Math.sqrt(1-this.es)),e=t/(2-t),i=e;this.cgb[0]=e*(2+e*(-2/3+e*(-2+e*(116/45+e*(26/45+-2854/675*e))))),this.cbg[0]=e*(-2+e*(2/3+e*(4/3+e*(-82/45+e*(32/45+4642/4725*e))))),i*=e,this.cgb[1]=i*(7/3+e*(-1.6+e*(-227/45+e*(2704/315+2323/945*e)))),this.cbg[1]=i*(5/3+e*(-16/15+e*(-13/9+e*(904/315+-1522/945*e)))),i*=e,this.cgb[2]=i*(56/15+e*(-136/35+e*(-1262/105+73814/2835*e))),this.cbg[2]=i*(-26/15+e*(34/21+e*(1.6+-12686/2835*e))),i*=e,this.cgb[3]=i*(4279/630+e*(-332/35+-399572/14175*e)),this.cbg[3]=i*(1237/630+e*(-2.4+-24832/14175*e)),i*=e,this.cgb[4]=i*(4174/315+-144838/6237*e),this.cbg[4]=i*(-734/315+109598/31185*e),i*=e,this.cgb[5]=601676/22275*i,this.cbg[5]=444337/155925*i,i=Math.pow(e,2),this.Qn=this.k0/(1+e)*(1+i*(1/4+i*(1/64+i/256))),this.utg[0]=e*(-.5+e*(2/3+e*(-37/96+e*(1/360+e*(81/512+-96199/604800*e))))),this.gtu[0]=e*(.5+e*(-2/3+e*(5
2/16+e*(41/180+e*(-127/288+7891/37800*e))))),this.utg[1]=i*(-1/48+e*(-1/15+e*(437/1440+e*(-46/105+1118711/3870720*e)))),this.gtu[1]=i*(13/48+e*(-.6+e*(557/1440+e*(281/630+-1983433/1935360*e)))),i*=e,this.utg[2]=i*(-17/480+e*(37/840+e*(209/4480+-5569/90720*e))),this.gtu[2]=i*(61/240+e*(-103/140+e*(15061/26880+167603/181440*e))),i*=e,this.utg[3]=i*(-4397/161280+e*(11/504+830251/7257600*e)),this.gtu[3]=i*(49561/161280+e*(-179/168+6601661/7257600*e)),i*=e,this.utg[4]=i*(-4583/161280+108847/3991680*e),this.gtu[4]=i*(34729/80640+-3418889/1995840*e),i*=e,this.utg[5]=-0x13b12f5/0x26115000*i,this.gtu[5]=.6650675310896665*i;var r=tJ(this.cbg,this.lat0);this.Zb=-this.Qn*(r+function(t,e){for(var i,r=2*Math.cos(e),s=t.length-1,n=t[s],a=0;--s>=0;)i=-a+r*n+t[s],a=n,n=i;return Math.sin(e)*i}(this.gtu,2*r))},forward:function(t){var e,i,r,s,n,a,o,l=Y(t.x-this.long0,this.over),h=t.y,u=Math.sin(h=tJ(this.cbg,h)),c=Math.cos(h),d=Math.sin(l),f=Math.cos(l);h=Math.atan2(u,f*c),i=0==(n=(s=1+(r=(i=Math.abs(e=Math.tan(l=Math.atan2(d*c,t$(u,c*f)))))*(1+i/(t$(1,i)+1))))-1)?r:r*Math.log(s)/n,l=e<0?-i:i;var p=tQ(this.gtu,2*h,2*l);return h+=p[0],2.623395162778>=Math.abs(l+=p[1])?(a=this.a*(this.Qn*l)+this.x0,o=this.a*(this.Qn*h+this.Zb)+this.y0):(a=1/0,o=1/0),t.x=a,t.y=o,t},inverse:function(t){var e,i,r=(t.x-this.x0)*(1/this.a),s=(t.y-this.y0)*(1/this.a);if(s=(s-this.Zb)/this.Qn,2.623395162778>=Math.abs(r/=this.Qn)){var n=tQ(this.utg,2*s,2*r);
2s+=n[0],r+=n[1],r=Math.atan(tH(r));var a=Math.sin(s),o=Math.cos(s),l=Math.sin(r),h=Math.cos(r);s=Math.atan2(a*h,t$(l,h*o)),e=Y((r=Math.atan2(l,h*o))+this.long0,this.over),i=tJ(this.cgb,s)}else e=1/0,i=1/0;return t.x=e,t.y=i,t},names:["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","Gauss Kruger","Gauss_Kruger","tmerc"]};function tY(t,e){return Math.pow((1-t)/(1+t),e)}let tZ={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+w)/(Math.pow(Math.tan(.5*this.lat0+w),this.C)*tY(this.e*t,this.ratexp))},forward:function(t){var e=t.x,i=t.y;return t.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*i+w),this.C)*tY(this.e*Math.sin(i),this.ratexp))-v,t.x=this.C*e,t},inverse:function(t){for(var e=t.x/this.C,i=t.y,r=Math.pow(Math.tan(.5*i+w)/this.K,1/this.C),s=20;s>0&&!(1e-14>Math.abs((i=2*Math.atan(r*tY(this.e*Math.sin(t.y),-.5*this.e))-v)-t.y));--s)t.y=i;return s?(t.x=e,t.y=i,t):null},names:["gauss"]};function t0(t,e,i){return Math.tan(.5*(v+t))*Math.pow((1-(e*=i))/(1+e),.5*i)}function t1(t,e,i,r,s){return t*s-e*Math.sin(2*s)+i*Math.sin(4*s)-r*Math.sin(6*s)}function t2(t){return 1-.25*t*(1+t/16*(3+1.25*t))}function t4(t){return .375*t*(1+.25*t*(1+.46875*t))}function t8(t){return .05859375*t*t*(1+.75*t)}function t3(t){return t*t*t*(35/3072)}function t6(t,e,i){var r=e*i;return t/Math.sqrt(1-r*r)}function t5(t){return Math.abs(t)<v?t:t-X(t)*Math.PI}function t9(t,e,i,r,s){n=t/e;for(var n,a,o=0;o<15;o++)if(a=(t-(e*n-i*Math.sin(2*n)+r*Math.sin(4*n)-s*Math.sin(6*n)))/(e-2*i*Math.cos(2*n)+4*r*Math.cos(4*n)-6*s*Math.cos(6*n)),n+=a,1e-10>=Math.abs(a))return n;return NaN}function t7(t,e){var i;return t>1e-7?(i=t*e,(1-t*t)*(e/(1-i*i)-.5/t*Math.log((1-i)/(1+i)))):2*e}function et(t){var e,i=[];return i[0]=.3333333333333333*t,e=t*t,i[0]+=.17222222222222222*e,i[1]=.06388888888888888*e,e*=t,i[0]+=.10257936507936508*e,i[1]+=.0664021164021164*e,i[2]=.016415012942191543*e,i}function ee(t,e){var i=t+t;return t+e[0]*Math.sin(i)+e[1]*Math.sin(i+i)+e[2]*Math.sin(i+i+i)}function ei(t){return Math.abs(t)>1&&(t=t>1?1:-1),Math.asin(t)}function er(t){var e,i,r=t.x,s=t.y;if(r=Y(r-this.long0,this.over),this.sphere){if(this.m)for(var n=this.n*Math.sin(s),a=20;a;--a){var o=(this.m*s+Math.sin(s)-n)/(this.m+Math.cos(s));if(s-=o,1e-10>Math.abs(o))break}else s=1!==this.n?Math.asin(this.n*Math.sin(s)):s;e=this.a*this.C_x*r*(this.m+Math.cos(s)),i=this.a*this.C_y*s}else{var l=Math.sin(s),h=Math.cos(s);i=this.a*tW(s,l,h,this.en),e=this.a*r*h/Math.sqrt(1-this.es*l*l)}return t.x=e,t.y=i,t}function es(t){var e,i,r;return t.x-=this.x0,i=t.x/this.a,t.y-=this.y0,e=t.y/this.a,this.sphere?(e/=this.C_y,i/=this.C_x*(this.m+Math.cos(e)),this.m?e=ei((this.m*e+Math.sin(e))/this.n):1!==this.n&&(e=ei(Math.sin(e)/this.n)),i=Y(i+this.long0,this.over),e=t5(e)):(r=Math.abs(e=tz(t.y/this.a,this.es,this.en)))<v?(r=Math.sin(e),i=Y(this.long0+t.x*Math.sqrt(1-this.es*r*r)/(this.a*Math.cos(e)),this.over)):r-1e-10<v&&(i=this.long0),t.x=i,t.y=e,t}function en(t,e,i,r){var s;return t<1e-10?(r.value=1,s=0):Math.abs(s=Math.atan2(e,i))<=w?r.value=1:s>w&&s<=v+w?(r.value=2,s-=v):s>v+w||s<=-(v+w)?(r.value=3,s=s>=0?s-3.14159265359:s+3.14159265359):(r.value=4,s+=v),s}function ea(t,e){var i=t+e;return i<-3.14159265359?i+=M:i>3.14159265359&&(i-=M),i}var eo=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-986701e-12],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,18736e-12],[.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,934959e-12],[.7986,-.00755338,-500009e-10,935324e-12],[.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]],el=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-126793e-14,422642e-15],[.124,.0124,5071
271e-14,-160604e-14],[.186,.0123999,-190189e-13,600152e-14],[.248,.0124002,710039e-13,-224e-10],[.31,.0123992,-264997e-12,835986e-13],[.372,.0124029,988983e-12,-311994e-12],[.434,.0123893,-369093e-11,-435621e-12],[.4958,.0123198,-102252e-10,-345523e-12],[.5571,.0121916,-154081e-10,-582288e-12],[.6176,.0119938,-241424e-10,-525327e-12],[.6769,.011713,-320223e-10,-516405e-12],[.7346,.0113541,-397684e-10,-609052e-12],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-140374e-14],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],eh=function(t,e){return t[0]+e*(t[1]+e*(t[2]+e*t[3]))},eu={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}},ec=Math.sqrt(3)/2;function ed(t){var e,i,r,s=Y(t.x-(this.long0||0),this.over),n=t.y;return e=this.am1+this.m1-tW(n,i=Math.sin(n),r=Math.cos(n),this.en),i=r*s/(e*Math.sqrt(1-this.es*i*i)),t.x=e*Math.sin(i),t.y=this.am1-e*Math.cos(i),t.x=this.a*t.x+(this.x0||0),t.y=this.a*t.y+(this.y0||0),t}function ef(t){var e,i,r,s;if(t.x=(t.x-(this.x0||0))/this.a,t.y=(t.y-(this.y0||0))/this.a,i=t$(t.x,t.y=this.am1-t.y),(e=Math.abs(s=tz(this.am1+this.m1-i,this.es,this.en)))<v)e=Math.sin(s),r=i*Math.atan2(t.x,t.y)*Math.sqrt(1-this.es*e*e)/Math.cos(s);else if(1e-10>=Math.abs(e-v))r=0;else throw Error();return t.x=Y(r+(this.long0||0),this.over),t.y=t5(s),t}function ep(t){var e,i,r=Y(t.x-(this.long0||0),this.over),s=t.y;return Math.abs(i=this.cphi1+this.phi1-s)>1e-10?(t.x=i*Math.sin(e=r*Math.cos(s)/i),t.y=this.cphi1-i*Math.cos(e)):t.x=t.y=0,t.x=this.a*t.x+(this.x0||0),t.y=this.a*t.y+(this.y0||0),t}function eg(t){t.x=(t.x-(this.x0||0))/this.a,t.y=(t.y-(this.y0||0))/this.a;var e,i,r=t$(t.x,t.y=this.cphi1-t.y);if(Math.abs(i=this.cphi1+this.phi1-r)>v)throw Error();return e=1e-10>=Math.abs(Math.abs(i)-v)?0:r*Math.atan2(t.x,t.y)/Math.cos(i),t.x=Y(e+(this.long0||0),this.over),t.y=t5(i),t}let ey={forward:function(t,e){let{x:i,y:r}=e,s=Math.cos(i=Y(i-t.long0,t.over)),n=Math.sin(r),a=Math.cos(r);e.x=Y(Math.atan2(a*Math.sin(i),t.sphip*a*s+t.cphip*n)+t.lamp),e.y=Math.asin(t.sphip*n-t.cphip*a*s);let o=t.obliqueProjection.forward(e);return t.isIdentity&&(o.x*=57.29577951308232,o.y*=57.29577951308232),o},inverse:function(t,e){t.isIdentity&&(e.x*=.017453292519943295,e.y*=.017453292519943295);let{x:i,y:r}=t.obliqueProjection.inverse(e);if(i<Number.MAX_VALUE){let s=Math.cos(i-=t.lamp),n=Math.sin(r),a=Math.cos(r);e.x=Math.atan2(a*Math.sin(i),t.sphip*a*s-t.cphip*n),e.y=Math.asin(t.sphip*n+t.cphip*a*s)}return e.x=Y(e.x+t.long0),e}},em={forward:function(t,e){let{x:i,y:r}=e;i=Y(i-t.long0,t.over);let s=Math.cos(r),n=Math.cos(i);e.x=Y(Math.atan2(s*Math.sin(i),Math.sin(r))+t.lamp),e.y=Math.asin(-1*s*n);let a=t.obliqueProjection.forward(e);return t.isIdentity&&(a.x*=57.29577951308232,a.y*=57.29577951308232),a},inverse:function(t,e){t.isIdentity&&(e.x*=.017453292519943295,e.y*=.017453292519943295);let{x:i,y:r}=t.obliqueProjection.inverse(e);if(i<Number.MAX_VALUE){let s=Math.cos(r);e.x=Math.atan2(s*Math.sin(i-=t.lamp),-1*Math.sin(r)),e.y=Math.asin(s*Math.cos(i))}return e.x=Y(e.x+t.long0),e}},e_={ROTATE:{o_alpha:"oAlpha",o_lon_c:"oLongC",o_lat_c:"oLatC"},NEW_POLE:{o_lat_p:"oLatP",o_lon_p:"oLongP"},NEW_EQUATOR:{o_lon_1:"oLong1",o_lat_1:"oLat1",o_lon_2:"oLong2",o_lat_2:"oLat2"}},eb=Object.assign(function(t,e,i){var r,s,n,a=!1;return(void 0===e?(s=tO(t),r=tG,a=!0):(void 0!==e.x||Array.isArray(e))&&(i=e,s=tO(t),r=tG,a=!0),r||(r=tO(t)),s||(s=tO(e)),i)?tI(r,s,i):(n={forward:function(t,e){return tI(r,s,t,e)},inverse:function(t,e){return tI(s,r,t,e)}},a&&(n.oProj=s),n)},{defaultDatum:"WGS84",Proj:tv,WGS84:new tv("WGS84"),Point:tU,toPoint:tA,defs:z,nadgrid:function(t,e,i){var r,s,n,a,o,l,h,u,c,d,f,p,g;return e instanceof ArrayBuffer?(r=t,s=e,a=!0,void 0!==(n=i)&&!1===n.includeErrorFields&&(a=!1),d=11!==(l=(o=c=new DataView(s)).getInt32(8,!1))&&(11!==(l=o.getInt32(8,!0))&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian"),!0),f=(h=c,u=d,{nFields:h.getInt32(8,u),nSubgridFields:h.getInt32(24,u),nSubgrids:h.getInt32(40,u),shiftType:tb(h,56,64).trim(),fromSemiMajorAxis:h.getFloat64(120,u),fromSemiMinorAxis:h.getFloat64(136,u),toSemiMajorAxis:h.getFloat64(152,u),toSemiMinorAxis:h.getFloat64(168,u)}
2),p=function(t,e,i,r){for(var s=176,n=[],a=0;a<e.nSubgrids;a++){var o,l,h,u=(o=t,l=s,h=i,{name:tb(o,l+8,l+16).trim(),parent:tb(o,l+24,l+24+8).trim(),lowerLatitude:o.getFloat64(l+72,h),upperLatitude:o.getFloat64(l+88,h),lowerLongitude:o.getFloat64(l+104,h),upperLongitude:o.getFloat64(l+120,h),latitudeInterval:o.getFloat64(l+136,h),longitudeInterval:o.getFloat64(l+152,h),gridNodeCount:o.getInt32(l+168,h)}),c=function(t,e,i,r,s){var n=e+176,a=16;!1===s&&(a=8);for(var o=[],l=0;l<i.gridNodeCount;l++){var h={latitudeShift:t.getFloat32(n+l*a,r),longitudeShift:t.getFloat32(n+l*a+4,r)};!1!==s&&(h.latitudeAccuracy=t.getFloat32(n+l*a+8,r),h.longitudeAccuracy=t.getFloat32(n+l*a+12,r)),o.push(h)}return o}(t,s,u,i,r),d=Math.round(1+(u.upperLongitude-u.lowerLongitude)/u.longitudeInterval),f=Math.round(1+(u.upperLatitude-u.lowerLatitude)/u.latitudeInterval);n.push({ll:[t_(u.lowerLongitude),t_(u.lowerLatitude)],del:[t_(u.longitudeInterval),t_(u.latitudeInterval)],lim:[d,f],count:u.gridNodeCount,cvs:c.map(function(t){return[t_(t.longitudeShift),t_(t.latitudeShift)]})});var p=16;!1===r&&(p=8),s+=176+u.gridNodeCount*p}return n}(c,f,d,a),g={header:f,subgrids:p},tp[r]=g,g):{ready:tg(t,e)}},transform:function(t,e,i,r){return tN(t,e,Array.isArray(i)?tA(i):{x:i.x,y:i.y,z:i.z,m:i.m},r)},mgrs:{forward:tD,inverse:function(t){var e=tF(tB(t.toUpperCase()));return e.lat&&e.lon?[e.lon,e.lat,e.lon,e.lat]:[e.left,e.bottom,e.right,e.top]},toPoint:tR},version:"__VERSION__"});eb.Proj.projections.add(tK),eb.Proj.projections.add(tX),eb.Proj.projections.add({init:function(){var t=function(t,e){if(void 0===t){if((t=Math.floor((Y(e)+Math.PI)*30/Math.PI)+1)<0)return 0;if(t>60)return 60}return t}(this.zone,this.long0);if(void 0===t)throw Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(t)-183)*.017453292519943295,this.x0=5e5,this.y0=1e7*!!this.utmSouth,this.k0=.9996,tX.init.apply(this),this.forward=tX.forward,this.inverse=tX.inverse},names:["Universal Transverse Mercator System","utm"],dependsOn:"etmerc"}),eb.Proj.projections.add({init:function(){tZ.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,i,r,s;return t.x=Y(t.x-this.long0,this.over),tZ.forward.apply(this,[t]),e=Math.sin(t.y),i=Math.cos(t.y),r=Math.cos(t.x),t.x=(s=this.k0*this.R2/(1+this.sinc0*e+this.cosc0*i*r))*i*Math.sin(t.x),t.y=s*(this.cosc0*e-this.sinc0*i*r),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t},inverse:function(t){var e,i,r,s,n;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,n=t$(t.x,t.y)){var a=2*Math.atan2(n,this.R2);e=Math.sin(a),s=Math.asin((i=Math.cos(a))*this.sinc0+t.y*e*this.cosc0/n),r=Math.atan2(t.x*e,n*this.cosc0*i-t.y*this.sinc0*e)}else s=this.phic0,r=0;return t.x=r,t.y=s,tZ.inverse.apply(this,[t]),t.x=Y(t.x+this.long0,this.over),t},names:["Stereographic_North_Pole","Oblique_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"]}),eb.Proj.projections.add({init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?!isNaN(this.lat_ts)&&1e-10>=Math.abs(this.coslat0)&&(this.k0=.5*(1+X(this.lat0)*Math.sin(this.lat_ts))):(1e-10>=Math.abs(this.coslat0)&&(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)),!isNaN(this.lat_ts)&&1e-10>=Math.abs(this.coslat0)&&Math.abs(Math.cos(this.lat_ts))>1e-10&&(this.k0=.5*this.cons*Q(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/Z(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=Q(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(t0(this.lat0,this.sinlat0,this.e))-v,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))},forward:function(t){var e,i,r,s,n,a,o=t.x,l=t.y,h=Math.sin(l),u=Math.cos(l),c=Y(o-this.long0,this.over);if(1e-10>=Math.abs(Math.abs(o-this.long0)-Math.PI)&&1e-10>=Math.abs(l+this.lat0))return t.x=NaN,t.y=NaN,t;if(this.sphere)e=2*this.k0/(1+this.sinlat0*h+this.coslat0*u*Math.cos(c)),t.x=this.a*e*u*Math.sin(c)+this.x0,t.y=this.a*e*(this.coslat0*h-this.sinlat0*u*Math.cos(c))+this.y0;else{if(s=Math.cos(i=2*Math.atan(t0(l,h,this.e))-v),r=Math.sin(i),1e-10>=Math.abs(this.coslat0))return n=Z(this.e,l*this.con,this.con*h),a=2*this.a*this.k0*n/this.cons,t.x=this.x0+a*Math.sin(o-this.long0),t.y=this.y0-this.con*a*Math.cos(o-this.long0),t;1e-10>Math.abs(this.sinlat0)?t.y=(e=2*this.a*this.k0/(1+s*Math.cos(c)))*r:t.y=(e=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*r+this.cosX0*s*Math.cos(c))))*(this.cosX0*r-this.sinX0*s*Math.cos(c))+this.y0,t.x=e*s*Math.sin(c)+this.x0}return t},inverse:function(t){t.x-=this.x0,t.y-=this.y0;var e,i,r,s,n,a=Math.sqrt(t.x*t.x+t.y*t.y);if(this.sphere){var o=2*Math.atan(a/(2*this.a*this.k0));return e=this.long0,i=this.lat0,a<=1e-10||(i=Math.asin(Math.cos(o)*this.sinlat0+t.y*Math.sin(o)*this.coslat0/a),e=1e-10>Math.abs(this.coslat0)?this.lat0>0?Y(this.long0+Math.atan2(t.x,-1*t.y),this.over):Y(this.long0+Math.atan2(t.x,t.y),this.over):Y(this.long0+Math.atan2(t.x*Math.sin(o),a*this.coslat0*Math.cos(o)-t.y*this.sinlat0*Math.sin(o)),this.over)),t.x=e,t.y=i,t}if(1e-10>=Math.abs(this.coslat0)){if(a<=1e-10)return i=this.lat0,t.x=e=this.long0,t.y=i,t;t.x*=this.con,t.y*=this.con,r=a*this.cons/(2*this.a*this.k0),i=this.con*tt(this.e,r),e=this.con*Y(this.con*this.long0+Math.atan2(t.x,-1*t.y),this.over)}else s=2*Math.atan(a*this.cosX0/(2*this.a*this.k0*this.ms1)),e=this.long0,a<=1e-10?n=this.X0:(n=Math.asin(Math.cos(s)*this.sinX0+t.y*Math.sin(s)*this.cosX0/a),e=Y(this.long0+Math.atan2(t.x*Math.sin(s),a*this.cosX0*Math.cos(s)-t.y*this.sinX0*Math.sin(s)),this.over)),i=-1*tt(this.e,Math.tan(.5*(v+n)));return t.x=e,t.y=i,t},names:["stere","Stereographic_South_Pole","Polar_Stereographic_variant_A","Polar_Stereographic_variant_B","Polar_Stereographic"],ssfn_:t0}),eb.Proj.projections.add({init:function(){this.k0||(this.k0=1);var t=this.lat0;this.lambda0=this.long0;var e=Math.sin(t),i=this.a,r=1/this.rf,s=2*r-Math.pow(r,2),n=this.e=Math.sqrt(s);this.R=this.k0*i*Math.sqrt(1-s)/(1-s*Math.pow(e,2)),this.alpha=Math.sqrt(1+s/(1-s)*Math.pow(Math.cos(t),4)),this.b0=Math.asin(e/this.alpha);var a=Math.log(Math.tan(Math.PI/4+this.b0/2)),o=Math.log(Math.tan(Math.PI/4+t/2)),l=Math.log((1+n*e)/(1-n*e));this.K=a-this.alpha*o+this.alpha*n/2*l},forward:function(t){var e=Math.log(Math.tan(Math.PI/4-t.y/2)),i=this.e/2*Math.log((1+this.e*Math.sin(t.y))/(1-this.e*Math.sin(t.y))),r=2*(Math.atan(Math.exp(-this.alpha*(e+i)+this.K))-Math.PI/4),s=this.alpha*(t.x-this.lambda0),n=Math.atan(Math.sin(s)/(Math.sin(this.b0)*Math.tan(r)+Math.cos(this.b0)*Math.cos(s))),a=Math.asin(Math.cos(this.b0)*Math.sin(r)-Math.sin(this.b0)*Math.cos(r)*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*n+this.x0,t},inverse:function(t){for(var e=t.x-this.x0,i=t.y-this.y0,r=e/this.R,s=2*(Math.atan(Math.exp(i/this.R))-Math.PI/4),n=Math.asin(Math.cos(this.b0)*Math.sin(s)+Math.sin(this.b0)*Math.cos(s)*Math.cos(r)),a=Math.atan(Math.sin(r)/(Math.cos(this.b0)*Math.cos(r)-Math.sin(this.b0)*Math.tan(s))),o=this.lambda0+a/this.alpha,l=0,h=n,u=-1e3,c=0;Math.abs(h-u)>1e-7;){if(++c>20)return;l=1/this.alpha*(Math.log(Math.tan(Math.PI/4+n/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(h))/2)),u=h,h=2*Math.atan(Math.exp(l))-Math.PI/2}return t.x=o,t.y=h,t},names:["somerc"]}),eb.Proj.projections.add({init:function(){var t,e,i,r,s,n,a,o,l,h,u,c,d=0,f=0,p=0,g=0,y=0,m=0,_=0;this.k0||(this.k0=1),this.no_off=(t=["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_variant_A","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"],e="object"==typeof this.projName?Object.keys(this.projName)[0]:this.projName,"no_uoff"in this||"no_off"in this||-1!==t.indexOf(e)||-1!==t.indexOf(to(e))),this.no_rot="no_rot"in this;var b=!1;"alpha"in this&&(b=!0);var S=!1;if("rectified_grid_angle"in this&&(S=!0),b&&(_=this.alpha),S&&(d=this.rectified_grid_angle,b||(_=0,b=!0)),b||S)f=this.longc;else if(p=this.long1,y=this.lat1,g=this.long2,1e-7>=Math.abs(y-(m=this.lat2))||(i=Math.abs(y))<=1e-7||1e-7>=Math.abs(i-v)||1e-7>=Math.abs(Math.abs(this.lat0)-v)||1e-7>=Math.abs(Math.abs(m)-v))throw Error();var E=1-this.es;(r=Math.sqrt(E),Math.abs(this.lat0)>1e-10?(h=Math.sin(this.lat0),s=Math.cos(this.lat0),i=1-this.es*h*h,this.B=s*s,this.B=Math.sqrt(1+this.es*this.B*this.B/E),this.A=this.B*this.k0*r/i,(a=(n=this.B*r/(s*Math.sqrt(i)))*n-1)<=0?a=0:(a=Math.sqrt(a),this.lat0<0&&(a=-a)),this.E=a+=n,this.E*=Math.pow(Z(this.e,this.lat0,h),this.B)):(this.B=1/r,this.A=this.k0,this.E=n=a=1),b||S)?(b?(c=Math.asin(Math.sin(_)/n),S||(d=_)):_=Math.asin(n*Math.sin(c=d)),this.lam0=f-Math.asin(.5*(a-1/a)*Math.tan(c))/this.B):(o=Math.pow(Z(this.e,y,Math.sin(y)),this.B),l=Math.pow(Z(this.e,m,Math.sin(m)),this.B),a=this.E/o,u=((u=this.E*this.E)-l*o)/(u+l*o),(i=p-g)<-Math.PI?g-=M:i>Math.PI&&(g+=M),this.lam0=Y(.5*(p+g)-Math.atan(u*Math.tan(.5*this.B*(p-g))/((l-o)/(l+o)))/this.B,this.over),d=_=Math.asin(n*Math.sin(c=Math.atan(2*Math.sin(this.B*Y(p-this.lam0,this.over))/(a-1/a))))),this.singam=M
2ath.sin(c),this.cosgam=Math.cos(c),this.sinrot=Math.sin(d),this.cosrot=Math.cos(d),this.rB=1/this.B,this.ArB=this.A*this.rB,this.BrA=1/this.ArB,this.no_off?this.u_0=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math.sqrt(n*n-1)/Math.cos(_))),this.lat0<0&&(this.u_0=-this.u_0)),a=.5*c,this.v_pole_n=this.ArB*Math.log(Math.tan(w-a)),this.v_pole_s=this.ArB*Math.log(Math.tan(w+a))},forward:function(t){var e,i,r,s,n,a,o,l,h={};if(t.x=t.x-this.lam0,Math.abs(Math.abs(t.y)-v)>1e-10){if(a=1/(n=this.E/Math.pow(Z(this.e,t.y,Math.sin(t.y)),this.B)),e=.5*(n-a),i=.5*(n+a),s=Math.sin(this.B*t.x),1e-10>Math.abs(Math.abs(r=(e*this.singam-s*this.cosgam)/i)-1))throw Error();l=.5*this.ArB*Math.log((1-r)/(1+r)),o=1e-7>Math.abs(a=Math.cos(this.B*t.x))?this.A*t.x:this.ArB*Math.atan2(e*this.cosgam+s*this.singam,a)}else l=t.y>0?this.v_pole_n:this.v_pole_s,o=this.ArB*t.y;return this.no_rot?(h.x=o,h.y=l):(o-=this.u_0,h.x=l*this.cosrot+o*this.sinrot,h.y=o*this.cosrot-l*this.sinrot),h.x=this.a*h.x+this.x0,h.y=this.a*h.y+this.y0,h},inverse:function(t){var e,i,r,s,n,a,o={};if(t.x=(t.x-this.x0)*(1/this.a),t.y=(t.y-this.y0)*(1/this.a),this.no_rot?(i=t.y,e=t.x):(i=t.x*this.cosrot-t.y*this.sinrot,e=t.y*this.cosrot+t.x*this.sinrot+this.u_0),s=.5*((r=Math.exp(-this.BrA*i))-1/r),1e-10>Math.abs(Math.abs(a=((n=Math.sin(this.BrA*e))*this.cosgam+s*this.singam)/(.5*(r+1/r)))-1))o.x=0,o.y=a<0?-v:v;else{if(o.y=this.E/Math.sqrt((1+a)/(1-a)),o.y=tt(this.e,Math.pow(o.y,1/this.B)),o.y===1/0)throw Error();o.x=-this.rB*Math.atan2(s*this.cosgam-n*this.singam,Math.cos(this.BrA*e))}return o.x+=this.lam0,o},names:["Hotine_Oblique_Mercator","Hotine Oblique Mercator","Hotine_Oblique_Mercator_variant_A","Hotine_Oblique_Mercator_Variant_B","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Two_Point_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","Oblique_Mercator","omerc"]}),eb.Proj.projections.add({init:function(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,!(1e-10>Math.abs(this.lat1+this.lat2))){var t=this.b/this.a;this.e=Math.sqrt(1-t*t);var e=Math.sin(this.lat1),i=Math.cos(this.lat1),r=Q(this.e,e,i),s=Z(this.e,this.lat1,e),n=Math.sin(this.lat2),a=Math.cos(this.lat2),o=Q(this.e,n,a),l=Z(this.e,this.lat2,n),h=Z(this.e,this.lat0,Math.sin(this.lat0));Math.abs(this.lat1-this.lat2)>1e-10?this.ns=Math.log(r/o)/Math.log(s/l):this.ns=e,isNaN(this.ns)&&(this.ns=e),this.f0=r/(this.ns*Math.pow(s,this.ns)),this.rh=1e-10>Math.abs(Math.abs(this.lat0)-v)?0:this.a*this.f0*Math.pow(h,this.ns),this.title||(this.title="Lambert Conformal Conic")}},forward:function(t){var e,i,r=t.x,s=t.y;1e-10>=Math.abs(2*Math.abs(s)-Math.PI)&&(s=X(s)*(v-2e-10));var n=Math.abs(Math.abs(s)-v);if(n>1e-10)e=Z(this.e,s,Math.sin(s)),i=this.a*this.f0*Math.pow(e,this.ns);else{if((n=s*this.ns)<=0)return null;i=0}var a=this.ns*Y(r-this.long0,this.over);return t.x=this.k0*(i*Math.sin(a))+this.x0,t.y=this.k0*(this.rh-i*Math.cos(a))+this.y0,t},inverse:function(t){var e,i,r,s,n=(t.x-this.x0)/this.k0,a=this.rh-(t.y-this.y0)/this.k0;this.ns>0?(e=Math.sqrt(n*n+a*a),i=1):(e=-Math.sqrt(n*n+a*a),i=-1);var o=0;if(0!==e&&(o=Math.atan2(i*n,i*a)),0!==e||this.ns>0){if(i=1/this.ns,r=Math.pow(e/(this.a*this.f0),i),-9999===(s=tt(this.e,r)))return null}else s=-v;return t.x=Y(o/this.ns+this.long0,this.over),t.y=s,t},names:["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_1SP","Lambert_Conformal_Conic_2SP","lcc","Lambert Conic Conformal (1SP)","Lambert Conic Conformal (2SP)"]}),eb.Proj.projections.add({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,i,r,s,n,a,o,l=t.x,h=t.y,u=Y(l-this.long0,this.over);return e=Math.pow((1+this.e*Math.sin(h))/(1-this.e*Math.sin(h)),this.alfa*this.e/2),i=2*(Math.atan(this.k*Math.pow(Math.tan(h/2+this.s45),this.alfa)/e)-this.s45),r=-u*this.alfa,s=Math.asin(Math.cos(this.ad)*Math.sin(i)+Math.sin(this.ad)*Math.cos(i)*Math.cos(r)),n=Math.asin(Math.cos(i)*Math.sin(r)/Math.cos(s)),a=this.n*n,t.y=(o=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(s/2+this.s45),this.n))*Math.cos(a)/1,t.x=o*Math.sin(a)/1,this.czech||(t.y*=-1,t.x*=-1),t},inverse:function(t){var e,i,r,s,n,a,o,l=t.x;t.x=t.y,t.y=l,this.czech||(t.y*=-1,t.x*=-1),n=Math.sqrt(t.x*t.x+t.y*t.y),s=Math.atan2(t.y,t.x)/Math.sin(this.s0),r=2*(Math.atan(Math.pow(this.ro0/n,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),e=Math.asin(Math.cos(this.ad)*Math.sin(r)-Math.sin(this.ad)*Math.cos(r)*Math.cos(s)),i=Math.asin(Math.cos(r)*Math.sin(s)/Math.cos(e)),t.x=this.long0-i/this.alfa,a=e,o=0;var h=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(a))/(1-this.e*Math.sin(a)),this.e/2))-this.s45),1e-10>Math.abs(a-t.y)&&(o=1),a=t.y,h+=1;while(0===o&&h<15)return h>=15?null:t},names:["Krovak","Krovak Modified","Krovak (North Orientated)","Krovak Modified (North Orientated)","krovak"]}),eb.Proj.projections.add({init:function(){this.sphere||(this.e0=t2(this.es),this.e1=t4(this.es),this.e2=t8(this.es),this.e3=t3(this.es),this.ml0=this.a*t1(this.e0,this.e1,this.e2,this.e3,this.lat0))},forward:function(t){var e,i,r=t.x,s=t.y;if(r=Y(r-this.long0,this.over),this.sphere)e=this.a*Math.asin(Math.cos(s)*Math.sin(r)),i=this.a*(Math.atan2(Math.tan(s),Math.cos(r))-this.lat0);else{var n=Math.sin(s),a=Math.cos(s),o=t6(this.a,this.e,n),l=Math.tan(s)*Math.tan(s),h=r*Math.cos(s),u=h*h,c=this.es*a*a/(1-this.es),d=this.a*t1(this.e0,this.e1,this.e2,this.e3,s);e=o*h*(1-u*l*(1/6-(8-l+8*c)*u/120)),i=d-this.ml0+o*n/a*u*(.5+(5-l+6*c)*u/24)}return t.x=e+this.x0,t.y=i+this.y0,t},inverse:function(t){t.x-=this.x0,t.y-=this.y0;var e,i,r=t.x/this.a,s=t.y/this.a;if(this.sphere){var n=s+this.lat0;e=Math.asin(Math.sin(n)*Math.cos(r)),i=Math.atan2(Math.tan(r),Math.cos(n))}else{var a=t9(this.ml0/this.a+s,this.e0,this.e1,this.e2,this.e3);if(1e-10>=Math.abs(Math.abs(a)-v))return t.x=this.long0,t.y=v,s<0&&(t.y*=-1),t;var o=t6(this.a,this.e,Math.sin(a)),l=o*o*o/this.a/this.a*(1-this.es),h=Math.pow(Math.tan(a),2),u=r*this.a/o,c=u*u;e=a-o*Math.tan(a)/l*u*u*(.5-(1+3*h)*u*u/24),i=u*(1-c*(h/3+(1+3*h)*h*c/15))/M
2ath.cos(a)}return t.x=Y(i+this.long0,this.over),t.y=t5(e),t},names:["Cassini","Cassini_Soldner","cass"]}),eb.Proj.projections.add({init:function(){var t,e=Math.abs(this.lat0);if(1e-10>Math.abs(e-v)?this.mode=this.lat0<0?1:2:1e-10>Math.abs(e)?this.mode=3:this.mode=4,this.es>0)switch(this.qp=t7(this.e,1),this.mmf=.5/(1-this.es),this.apa=et(this.es),this.mode){case 2:case 1:this.dd=1;break;case 3:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case 4:this.rq=Math.sqrt(.5*this.qp),t=Math.sin(this.lat0),this.sinb1=t7(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 4===this.mode&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))},forward:function(t){var e,i,r,s,n,a,o,l,h,u,c=t.x,d=t.y;if(c=Y(c-this.long0,this.over),this.sphere){if(n=Math.sin(d),u=Math.cos(d),r=Math.cos(c),this.mode===this.OBLIQ||this.mode===this.EQUIT){if((i=this.mode===this.EQUIT?1+u*r:1+this.sinph0*n+this.cosph0*u*r)<=1e-10)return null;e=(i=Math.sqrt(2/i))*u*Math.sin(c),i*=this.mode===this.EQUIT?n:this.cosph0*n-this.sinph0*u*r}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(r=-r),1e-10>Math.abs(d+this.lat0))return null;i=w-.5*d,e=(i=2*(this.mode===this.S_POLE?Math.cos(i):Math.sin(i)))*Math.sin(c),i*=r}}else{switch(o=0,l=0,h=0,r=Math.cos(c),s=Math.sin(c),n=Math.sin(d),a=t7(this.e,n),(this.mode===this.OBLIQ||this.mode===this.EQUIT)&&(l=Math.sqrt(1-(o=a/this.qp)*o)),this.mode){case this.OBLIQ:h=1+this.sinb1*o+this.cosb1*l*r;break;case this.EQUIT:h=1+l*r;break;case this.N_POLE:h=v+d,a=this.qp-a;break;case this.S_POLE:h=d-v,a=this.qp+a}if(1e-10>Math.abs(h))return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:h=Math.sqrt(2/h),i=this.mode===this.OBLIQ?this.ymf*h*(this.cosb1*o-this.sinb1*l*r):(h=Math.sqrt(2/(1+l*r)))*o*this.ymf,e=this.xmf*h*l*s;break;case this.N_POLE:case this.S_POLE:a>=0?(e=(h=Math.sqrt(a))*s,i=r*(this.mode===this.S_POLE?h:-h)):e=i=0}}return t.x=this.a*e+this.x0,t.y=this.a*i+this.y0,t},inverse:function(t){t.x-=this.x0,t.y-=this.y0;var e=t.x/this.a,i=t.y/this.a;if(this.sphere){var r,s,n,a,o,l,h,u,c=0,d=0;if((s=.5*(u=Math.sqrt(e*e+i*i)))>1)return null;switch(s=2*Math.asin(s),(this.mode===this.OBLIQ||this.mode===this.EQUIT)&&(d=Math.sin(s),c=Math.cos(s)),this.mode){case this.EQUIT:s=1e-10>=Math.abs(u)?0:Math.asin(i*d/u),e*=d,i=c*u;break;case this.OBLIQ:s=1e-10>=Math.abs(u)?this.lat0:Math.asin(c*this.sinph0+i*d*this.cosph0/u),e*=d*this.cosph0,i=(c-Math.sin(s)*this.sinph0)*u;break;case this.N_POLE:i=-i,s=v-s;break;case this.S_POLE:s-=v}r=0===i&&(this.mode===this.EQUIT||this.mode===this.OBLIQ)?0:Math.atan2(e,i)}else{if(h=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(e/=this.dd,i*=this.dd,(l=Math.sqrt(e*e+i*i))<1e-10)return t.x=this.long0,t.y=this.lat0,t;n=Math.cos(a=2*Math.asin(.5*l/this.rq)),e*=a=Math.sin(a),this.mode===this.OBLIQ?(h=n*this.sinb1+i*a*this.cosb1/l,o=this.qp*h,i=l*this.cosb1*n-i*this.sinb1*a):(h=i*a/l,o=this.qp*h,i=l*n)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(i=-i),!(o=e*e+i*i))return t.x=this.long0,t.y=this.lat0,t;h=1-o/this.qp,this.mode===this.S_POLE&&(h=-h)}r=Math.atan2(e,i),s=ee(Math.asin(h),this.apa)}return t.x=Y(this.long0+r,this.over),t.y=s,t},names:["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"],S_POLE:1,N_POLE:2,EQUIT:3,OBLIQ:4}),eb.Proj.projections.add({init:function(){1e-10>Math.abs(this.lat1+this.lat2)||(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=Q(this.e3,this.sin_po,this.cos_po),this.qs1=t7(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=Q(this.e3,this.sin_po,this.cos_po),this.qs2=t7(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=t7(this.e3,this.sin_po),Math.abs(this.lat1-this.lat2)>1e-10?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,i=t.y;this.sin_phi=Math.sin(i),this.cos_phi=Math.cos(i);var r=t7(this.e3,this.sin_phi),s=this.a*Math.sqrt(this.c-this.ns0*r)/this.ns0,n=this.ns0*Y(e-this.long0,this.over),a=s*Math.sin(n)+this.x0,o=this.rh-s*Math.cos(n)+this.y0;return t.x=a,t.y=o,t},inverse:function(t){var e,i,r,s,n;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),r=1):(e=-Math.sqrt(t.x*t.x+t.y*t.y),r=-1),s=0,0!==e&&(s=Math.atan2(r*t.x,r*t.y)),r=e*this.ns0/this.a,this.sphere?n=Math.asin((this.c-r*r)/(2*this.ns0)):(i=(this.c-r*r)/this.ns0,n=this.phi1z(this.e3,i)),t.x=Y(s/this.ns0+this.long0,this.over),t.y=n,t},names:["Albers_Conic_Equal_Area","Albers_Equal_Area","Albers","aea"],phi1z:function(t,e){var i,r,s,n,a,o=ei(.5*e);if(t<1e-10)return o;for(var l=t*t,h=1;h<=25;h++)if(i=Math.sin(o),r=Math.cos(o),o+=a=.5*(n=1-(s=t*i)*s)*n/r*(e/(1-l)-i/n+.5/t*Math.log((1-s)/(1+s))),1e-7>
2=Math.abs(a))return o;return null}}),eb.Proj.projections.add({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,i,r,s,n,a,o,l=t.x,h=t.y;return r=Y(l-this.long0,this.over),e=Math.sin(h),i=Math.cos(h),s=Math.cos(r),(n=this.sin_p14*e+this.cos_p14*i*s)>0||1e-10>=Math.abs(n)?(a=this.x0+this.a*i*Math.sin(r)/n,o=this.y0+this.a*(this.cos_p14*e-this.sin_p14*i*s)/n):(a=this.x0+this.infinity_dist*i*Math.sin(r),o=this.y0+this.infinity_dist*(this.cos_p14*e-this.sin_p14*i*s)),t.x=a,t.y=o,t},inverse:function(t){var e,i,r,s,n,a;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.sin(s=Math.atan2(e,this.rc)),a=ei((r=Math.cos(s))*this.sin_p14+t.y*i*this.cos_p14/e),n=Math.atan2(t.x*i,e*this.cos_p14*r-t.y*this.sin_p14*i),n=Y(this.long0+n,this.over)):(a=this.phic0,n=0),t.x=n,t.y=a,t},names:["gnom"]}),eb.Proj.projections.add({init:function(){this.sphere||(this.k0=Q(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))},forward:function(t){var e,i,r=t.x,s=t.y,n=Y(r-this.long0,this.over);if(this.sphere)e=this.x0+this.a*n*Math.cos(this.lat_ts),i=this.y0+this.a*Math.sin(s)/Math.cos(this.lat_ts);else{var a=t7(this.e,Math.sin(s));e=this.x0+this.a*this.k0*n,i=this.y0+this.a*a*.5/this.k0}return t.x=e,t.y=i,t},inverse:function(t){var e,i;return t.x-=this.x0,t.y-=this.y0,this.sphere?(e=Y(this.long0+t.x/this.a/Math.cos(this.lat_ts),this.over),i=Math.asin(t.y/this.a*Math.cos(this.lat_ts))):(i=function(t,e){if(1e-6>Math.abs(Math.abs(e)-(1-(1-t*t)/(2*t)*Math.log((1-t)/(1+t)))))if(e<0)return -1*v;else return v;for(var i,r,s,n,a=Math.asin(.5*e),o=0;o<30;o++)if(r=Math.sin(a),s=Math.cos(a),a+=i=Math.pow(1-(n=t*r)*n,2)/(2*s)*(e/(1-t*t)-r/(1-n*n)+.5/t*Math.log((1-n)/(1+n))),1e-10>=Math.abs(i))return a;return NaN}(this.e,2*t.y*this.k0/this.a),e=Y(this.long0+t.x/(this.a*this.k0),this.over)),t.x=e,t.y=i,t},names:["cea"]}),eb.Proj.projections.add({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,i=t.y,r=Y(e-this.long0,this.over),s=t5(i-this.lat0);return t.x=this.x0+this.a*r*this.rc,t.y=this.y0+this.a*s,t},inverse:function(t){var e=t.x,i=t.y;return t.x=Y(this.long0+(e-this.x0)/(this.a*this.rc),this.over),t.y=t5(this.lat0+(i-this.y0)/this.a),t},names:["Equirectangular","Equidistant_Cylindrical","Equidistant_Cylindrical_Spherical","eqc"]}),eb.Proj.projections.add({init:function(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=t2(this.es),this.e1=t4(this.es),this.e2=t8(this.es),this.e3=t3(this.es),this.ml0=this.a*t1(this.e0,this.e1,this.e2,this.e3,this.lat0)},forward:function(t){var e,i,r,s=t.x,n=t.y,a=Y(s-this.long0,this.over);if(r=a*Math.sin(n),this.sphere)1e-10>=Math.abs(n)?(e=this.a*a,i=-1*this.a*this.lat0):(e=this.a*Math.sin(r)/Math.tan(n),i=this.a*(t5(n-this.lat0)+(1-Math.cos(r))/Math.tan(n)));else if(1e-10>=Math.abs(n))e=this.a*a,i=-1*this.ml0;else{var o=t6(this.a,this.e,Math.sin(n))/Math.tan(n);e=o*Math.sin(r),i=this.a*t1(this.e0,this.e1,this.e2,this.e3,n)-this.ml0+o*(1-Math.cos(r))}return t.x=e+this.x0,t.y=i+this.y0,t},inverse:function(t){var e,i,r,s,n,a,o,l,h,u,c,d,f,p,g;if(r=t.x-this.x0,s=t.y-this.y0,this.sphere)if(1e-10>=Math.abs(s+this.a*this.lat0))e=Y(r/this.a+this.long0,this.over),i=0;else{for(a=this.lat0+s/this.a,o=r*r/this.a/this.a+a*a,l=a,n=20;n;--n)if(u=Math.tan(l),h=-1*(a*(l*u+1)-l-.5*(l*l+o)*u)/((l-a)/u-1),l+=h,1e-10>=Math.abs(h)){i=l;break}e=Y(this.long0+Math.asin(r*Math.tan(l)/this.a)/Math.sin(i),this.over)}else if(1e-10>=Math.abs(s+this.ml0))i=0,e=Y(this.long0+r/this.a,this.over);else{for(a=(this.ml0+s)/this.a,o=r*r/this.a/this.a+a*a,l=a,n=20;n;--n)if(c=Math.sqrt(1-(g=this.e*Math.sin(l))*g)*Math.tan(l),d=this.a*t1(this.e0,this.e1,this.e2,this.e3,l),f=this.e0-2*this.e1*Math.cos(2*l)+4*this.e2*Math.cos(4*l)-6*this.e3*Math.cos(6*l),h=(a*(c*(p=d/this.a)+1)-p-.5*c*(p*p+o))/(this.es*Math.sin(2*l)*(p*p+o-2*a*p)/(4*c)+(a-p)*(c*f-2/Math.sin(2*l))-f),l-=h,1e-10>=Math.abs(h)){i=l;break}c=Math.sqrt(1-this.es*Math.pow(Math.sin(i),2))*Math.tan(i),e=Y(this.long0+Math.asin(r*c/this.a)/Math.sin(i),this.over)}return t.x=e,t.y=i,t},names:["Polyconic","American_Polyconic","poly"]}),eb.Proj.projections.add({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,i,r,s=t.x,n=t.y-this.lat0,a=s-this.long0,o=n/484813681109536e-20*1e-5,l=1,h=0;for(e=1;e<=10;e++)l*=o,h+=this.A[e]*l;var u=h,c=1,d=0,f=0,p=0;for(e=1;e<=6;e++)i=c*u-d*a,r=d*u+c*a,c=i,d=r,f=f+this.B_re[e]*c-this.B_im[e]*d,p=p+this.B_im[e]*c+this.B_re[e]*d;return t.x=p*this.a+this.x0,t.y=f*this.a+this.y0,t},inverse:function(t){var e=t.x,i=t.y,r=e-this.x0,s=(i-this.y0)/this.a,n=r/this.a,a=1,o=0,l=0,h=0;for(c=1;c<=6;c++)d=a*s-o*n,f=o*s+a*n,a=d,o=f,l=l+this.C_re[c]*a-this.C_im[c]*o,h=
2h+this.C_im[c]*a+this.C_re[c]*o;for(var u=0;u<this.iterations;u++){var c,d,f,p,g,y=l,m=h,_=s,b=n;for(c=2;c<=6;c++)p=y*l-m*h,g=m*l+y*h,y=p,m=g,_+=(c-1)*(this.B_re[c]*y-this.B_im[c]*m),b+=(c-1)*(this.B_im[c]*y+this.B_re[c]*m);y=1,m=0;var v=this.B_re[1],w=this.B_im[1];for(c=2;c<=6;c++)p=y*l-m*h,g=m*l+y*h,y=p,m=g,v+=c*(this.B_re[c]*y-this.B_im[c]*m),w+=c*(this.B_im[c]*y+this.B_re[c]*m);var M=v*v+w*w;l=(_*v+b*w)/M,h=(b*v-_*w)/M}var S=l,E=h,x=1,P=0;for(c=1;c<=9;c++)x*=S,P+=this.D[c]*x;var A=this.lat0+484813681109536e-20*P*1e5;return t.x=this.long0+E,t.y=A,t},names:["New_Zealand_Map_Grid","nzmg"],iterations:1}),eb.Proj.projections.add({init:function(){},forward:function(t){var e=t.x,i=t.y,r=Y(e-this.long0,this.over),s=this.x0+this.a*r,n=this.y0+this.a*Math.log(Math.tan(Math.PI/4+i/2.5))*1.25;return t.x=s,t.y=n,t},inverse:function(t){t.x-=this.x0,t.y-=this.y0;var e=Y(this.long0+t.x/this.a,this.over),i=2.5*(Math.atan(Math.exp(.8*t.y/this.a))-Math.PI/4);return t.x=e,t.y=i,t},names:["Miller_Cylindrical","mill"]}),eb.Proj.projections.add({init:function(){this.long0=this.long0||0,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=tV(this.es)},forward:er,inverse:es,names:["Sinusoidal","sinu"]}),eb.Proj.projections.add({init:function(){this.sphere=!0,this.b=this.a,this.m=1,this.n=2.5707963267948966,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)},forward:er,inverse:es,names:["Eckert_VI","eck6"]}),eb.Proj.projections.add({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},forward:function(t){for(var e=t.x,i=t.y,r=Y(e-this.long0,this.over),s=i,n=Math.PI*Math.sin(i);;){var a=-(s+Math.sin(s)-n)/(1+Math.cos(s));if(s+=a,1e-10>Math.abs(a))break}s/=2,Math.PI/2-Math.abs(i)<1e-10&&(r=0);var o=.900316316158*this.a*r*Math.cos(s)+this.x0,l=1.4142135623731*this.a*Math.sin(s)+this.y0;return t.x=o,t.y=l,t},inverse:function(t){t.x-=this.x0,t.y-=this.y0,Math.abs(e=t.y/(1.4142135623731*this.a))>.999999999999&&(e=.999999999999);var e,i=Math.asin(e),r=Y(this.long0+t.x/(.900316316158*this.a*Math.cos(i)),this.over);r<-Math.PI&&(r=-Math.PI),r>Math.PI&&(r=Math.PI),Math.abs(e=(2*i+Math.sin(2*i))/Math.PI)>1&&(e=1);var s=Math.asin(e);return t.x=r,t.y=s,t},names:["Mollweide","moll"]}),eb.Proj.projections.add({init:function(){1e-10>Math.abs(this.lat1+this.lat2)||(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=t2(this.es),this.e1=t4(this.es),this.e2=t8(this.es),this.e3=t3(this.es),this.sin_phi=Math.sin(this.lat1),this.cos_phi=Math.cos(this.lat1),this.ms1=Q(this.e,this.sin_phi,this.cos_phi),this.ml1=t1(this.e0,this.e1,this.e2,this.e3,this.lat1),1e-10>Math.abs(this.lat1-this.lat2)?this.ns=this.sin_phi:(this.sin_phi=Math.sin(this.lat2),this.cos_phi=Math.cos(this.lat2),this.ms2=Q(this.e,this.sin_phi,this.cos_phi),this.ml2=t1(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=t1(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))},forward:function(t){var e,i=t.x,r=t.y;if(this.sphere)e=this.a*(this.g-r);else{var s=t1(this.e0,this.e1,this.e2,this.e3,r);e=this.a*(this.g-s)}var n=this.ns*Y(i-this.long0,this.over),a=this.x0+e*Math.sin(n),o=this.y0+this.rh-e*Math.cos(n);return t.x=a,t.y=o,t},inverse:function(t){t.x-=this.x0,t.y=this.rh-t.y+this.y0,this.ns>=0?(i=Math.sqrt(t.x*t.x+t.y*t.y),e=1):(i=-Math.sqrt(t.x*t.x+t.y*t.y),e=-1);var e,i,r,s,n=0;return(0!==i&&(n=Math.atan2(e*t.x,e*t.y)),this.sphere)?(s=Y(this.long0+n/this.ns,this.over),r=t5(this.g-i/this.a),t.x=s):(r=t9(this.g-i/this.a,this.e0,this.e1,this.e2,this.e3),t.x=s=Y(this.long0+n/this.ns,this.over)),t.y=r,t},names:["Equidistant_Conic","eqdc"]}),eb.Proj.projections.add({init:function(){this.R=this.a},forward:function(t){var e,i,r=t.x,s=t.y,n=Y(r-this.long0,this.over);if(1e-10>=Math.abs(s))return e=this.x0+this.R*n,i=this.y0,t.x=e,t.y=i,t;var a=ei(2*Math.abs(s/Math.PI));if(1e-10>=Math.abs(n)||1e-10>=Math.abs(Math.abs(s)-v))return e=this.x0,i=s>=0?this.y0+Math.PI*this.R*Math.tan(.5*a):this.y0+-(Math.PI*this.R*Math.tan(.5*a)),t.x=e,t.y=i,t;var o=.5*Math.abs(Math.PI/n-n/Math.PI),l=o*o,h=Math.sin(a),u=Math.cos(a),c=u/(h+u-1),d=c*(2/h-1),f=d*d,p=Math.PI*this.R*(o*(c-f)+Math.sqrt(l*(c-f)*(c-f)-(f+l)*(c*c-f)))/(f+l);n<0&&(p=-p),e=this.x0+p;var g=l+c;return p=Math.PI*this.R*(d*g-o*Math.sqrt((f+l)*(l+1)-g*g))/(f+l),i=s>=0?this.y0+p:this.y0-p,t.x=e,t.y=i,t},inverse:function(t){var e,i,r,s,n,a,o,l,h,u,c,d;return t.x-=this.x0,t.y-=this.y0,u=Math.PI*this.R,s=(i=t.x/u)*i+(r=t.y/u)*r,a=(n=-Math.abs(r)*(1+s))-2*r*r+i*i,o=-2*n+1+2*r*r+s*s,d=r*r/o+(2*a*a*a/o/o/o-9*n*a/o/o)/27,h=2*Math.sqrt(-(l=(n-a*a/3/o)/o)/3),Math.abs(u=3*d/l/h)>1&&(u=u>=0?1:-1),c=Math.acos(u)/3,e=t.y>=0?(-h*Math.cos(c+Math.PI/3)-a/3/o)*Math.PI:-(-h*Math.cos(c+Math.PI/3)-a/3/o)*Math.PI,t.x=1e-10>Math.abs(i)?this.long0:Y(this.long0+Math.PI*(s-1+Math.sqrt(1+2*(i*i-r*r)+s*s))/2/i,this.over),t.y=e,t},names:["Van_der_Grinten_I","VanDerGrinten","Van_der_Grinten","vandg"]}),eb.Proj.projections.add({init:function(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0),this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.f=this.es/(1+Math.sqrt(1-this.es))},forward:function(t){var e,i,r,s,n,a,o,l,h,u,c=t.x,d=t.y,f=Math.sin(t.y),p=Math.cos(t.y),g=Y(c-this.long0,this.over);if(this.sphere)if(1e-10>=Math.abs(this.sin_p12-1))return t.x=this.x0+this.a*(v-d)*Math.sin(g),t.y=this.y0-this.a*(v-d)*Math.cos(g),t;else if(1e-10>=Math.abs(this.sin_p12+1))return t.x=this.x0+this.a*(v+d)*Math.sin(g),t.y=this.y0+this.a*(v+d)*Math.cos(g),t;else return l=(o=Math.acos(this.sin_p12*f+this.cos_p12*p*Math.cos(g)))?o/Math.sin(o):1,t.x=this.x0+this.a*l*p*Math.sin(g),t.y=this.y0+this.a*l*(this.cos_p12*f-this.sin_p12*p*Math.cos(g)),t;return(e=t2(this.es),i=t4(this.es),r=t8(this.es),s=t3(this.es),1e-10>=Math.abs(this.sin_p12-1))?(n=this.a*t1(e,i,r,s,v),a=this.a*t1(e,i,r,s,d),t.x=this.x0+(n-a)*Math.sin(g),t.y=this.y0-(n-a)*Math.cos(g),t):1e-10>=Math.abs(this.sin_p12+1)?(n=this.a*t1(e,i,r,s,v),a=this.a*t1(e,i,r,s,d),t.x=this.x0+(n+a)*Math.sin(g),t.y=this.y0+(n+a)*Math.cos(g),t):(1e-10>Math.abs(c)&&1e-10>Math.abs(d-this.lat0)?(t.x=this.x0,t.y=this.y0):(u=(h=function(t,e,
2i,r,s,n){let a,o,l,h,u,c,d,f,p,g,y,m,_=r-e,b=Math.atan((1-n)*Math.tan(t)),v=Math.atan((1-n)*Math.tan(i)),w=Math.sin(b),M=Math.cos(b),S=Math.sin(v),E=Math.cos(v),x=_,P,A=100;do{if(0===(l=Math.sqrt(E*(a=Math.sin(x))*(E*a)+(M*S-w*E*(o=Math.cos(x)))*(M*S-w*E*o))))return{azi1:0,s12:0};u=Math.atan2(l,h=w*S+M*E*o),f=0!=(d=1-(c=M*E*a/l)*c)?h-2*w*S/d:0,p=n/16*d*(4+n*(4-3*d)),P=x,x=_+(1-p)*n*c*(u+p*l*(f+p*h*(-1+2*f*f)))}while(Math.abs(x-P)>1e-12&&--A>0)return 0===A?{azi1:NaN,s12:NaN}:(y=1+(g=d*(s*s-s*(1-n)*(s*(1-n)))/(s*(1-n)*(s*(1-n))))/16384*(4096+g*(-768+g*(320-175*g))),{azi1:Math.atan2(E*a,M*S-w*E*o),s12:s*(1-n)*y*(u-(m=g/1024*(256+g*(-128+g*(74-47*g))))*l*(f+m/4*(h*(-1+2*f*f)-m/6*f*(-3+4*l*l)*(-3+4*f*f))))})}(this.lat0,this.long0,d,c,this.a,this.f)).azi1,t.x=this.x0+h.s12*Math.sin(u),t.y=this.y0+h.s12*Math.cos(u)),t)},inverse:function(t){var e,i,r,s,n,a,o,l,h,u,c,d,f,p;if(t.x-=this.x0,t.y-=this.y0,this.sphere){if((e=Math.sqrt(t.x*t.x+t.y*t.y))>2*v*this.a)return;return r=Math.sin(i=e/this.a),s=Math.cos(i),n=this.long0,1e-10>=Math.abs(e)?a=this.lat0:(a=ei(s*this.sin_p12+t.y*r*this.cos_p12/e),n=1e-10>=Math.abs(Math.abs(this.lat0)-v)?this.lat0>=0?Y(this.long0+Math.atan2(t.x,-t.y),this.over):Y(this.long0-Math.atan2(-t.x,t.y),this.over):Y(this.long0+Math.atan2(t.x*r,e*this.cos_p12*s-t.y*this.sin_p12*r),this.over)),t.x=n,t.y=a,t}return(o=t2(this.es),l=t4(this.es),h=t8(this.es),u=t3(this.es),1e-10>=Math.abs(this.sin_p12-1))?(a=t9(((c=this.a*t1(o,l,h,u,v))-(e=Math.sqrt(t.x*t.x+t.y*t.y)))/this.a,o,l,h,u),n=Y(this.long0+Math.atan2(t.x,-1*t.y),this.over),t.x=n,t.y=a):1e-10>=Math.abs(this.sin_p12+1)?(c=this.a*t1(o,l,h,u,v),a=t9(((e=Math.sqrt(t.x*t.x+t.y*t.y))-c)/this.a,o,l,h,u),n=Y(this.long0+Math.atan2(t.x,t.y),this.over),t.x=n,t.y=a):(d=Math.atan2(t.x,t.y),f=Math.sqrt(t.x*t.x+t.y*t.y),t.x=(p=function(t,e,i,r,s,n){let a,o,l,h,u=Math.atan((1-n)*Math.tan(t)),c=Math.sin(u),d=Math.cos(u),f=Math.sin(i),p=Math.cos(i),g=Math.atan2(c,d*p),y=d*f,m=1-y*y,_=m*(s*s-s*(1-n)*(s*(1-n)))/(s*(1-n)*(s*(1-n))),b=1+_/16384*(4096+_*(-768+_*(320-175*_))),v=_/1024*(256+_*(-128+_*(74-47*_))),w=r/(s*(1-n)*b),M,S=100;do a=Math.cos(2*g+w),h=v*(o=Math.sin(w))*(a+v/4*((l=Math.cos(w))*(-1+2*a*a)-v/6*a*(-3+4*o*o)*(-3+4*a*a))),M=w,w=r/(s*(1-n)*b)+h;while(Math.abs(w-M)>1e-12&&--S>0)if(0===S)return{lat2:NaN,lon2:NaN};let E=c*o-d*l*p,x=Math.atan2(c*l+d*o*p,(1-n)*Math.sqrt(y*y+E*E)),P=n/16*m*(4+n*(4-3*m));return{lat2:x,lon2:e+(Math.atan2(o*f,d*l-c*o*p)-(1-P)*n*y*(w+P*o*(a+P*l*(-1+2*a*a))))}}(this.lat0,this.long0,d,f,this.a,this.f)).lon2,t.y=p.lat2),t},names:["Azimuthal_Equidistant","aeqd"]}),eb.Proj.projections.add({init:function(){this.sin_p14=Math.sin(this.lat0||0),this.cos_p14=Math.cos(this.lat0||0)},forward:function(t){var e,i,r,s,n,a,o,l=t.x,h=t.y;return r=Y(l-(this.long0||0),this.over),e=Math.sin(h),i=Math.cos(h),s=Math.cos(r),((n=this.sin_p14*e+this.cos_p14*i*s)>0||1e-10>=Math.abs(n))&&(a=this.a*i*Math.sin(r),o=(this.y0||0)+this.a*(this.cos_p14*e-this.sin_p14*i*s)),t.x=a,t.y=o,t},inverse:function(t){var e,i,r,s,n,a,o,l;return(t.x-=this.x0||0,t.y-=this.y0||0,r=Math.sin(i=ei((e=Math.sqrt(t.x*t.x+t.y*t.y))/this.a)),s=Math.cos(i),o=this.long0||0,l=this.lat0||0,n=o,1e-10>=Math.abs(e))?a=l:(a=ei(s*this.sin_p14+t.y*r*this.cos_p14/e),1e-10>=Math.abs(Math.abs(l)-v))?n=l>=0?Y(o+Math.atan2(t.x,-t.y),this.over):Y(o-Math.atan2(-t.x,t.y),this.over):n=Y(o+Math.atan2(t.x*r,e*this.cos_p14*s-t.y*this.sin_p14*r),this.over),t.x=n,t.y=a,t},names:["ortho"]}),eb.Proj.projections.add({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>=v-w/2?this.face=5:this.lat0<=-(v-w/2)?this.face=6:Math.abs(this.long0)<=w?this.face=1:Math.abs(this.long0)<=v+w?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,i,r,s,n,a,o,l,h,u,c,d={x:0,y:0},f={value:0};return(t.x-=this.long0,e=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(t.y)):t.y,i=t.x,5===this.face)?(s=v-e,i>=w&&i<=v+w?(f.value=1,r=i-v):i>v+w||i<=-(v+w)?(f.value=2,r=i>0?i-3.14159265359:i+3.14159265359):i>-(v+w)&&i<=-w?(f.value=3,r=i+v):(f.value=4,r=i)):6===this.face?(s=v+e,i>=w&&i<=v+w?(f.value=1,r=-i+v):i<w&&i>=-w?(f.value=2,r=-i):i<-w&&i>=-(v+w)?(f.value=3,r=-i-v):(f.value=4,r=i>0?-i+3.14159265359:-i-3.14159265359)):(2===this.face?i=ea(i,+v):3===this.face?i=ea(i,3.14159265359):4===this.face&&(i=ea(i,-v)),h=Math.sin(e),u=Math.cos(e),c=Math.sin(i),o=u*Math.cos(i),l=u*c,1===this.face?r=en(s=Math.acos(o),h,l,f):2===this.face?r=en(s=Math.acos(l),h,-o,f):3===this.face?r=en(s=Math.acos(-o),h,-l,f):4===this.face?r=en(s=Math.acos(-l),h,o,f):(s=r=0,f.value=1)),n=Math.sqrt((1-Math.cos(s))/(Math.cos(a=Math.atan(3.8197186342052367*(r+Math.acos(Math.sin(r)*Math.cos(w))-v)))*Math.cos(a))/(1-Math.cos(Math.atan(1/Math.cos(r))))),2===f.value?a+=v:3===f.value?a+=3.14159265359:4===f.value&&(
2a+=4.7123889803850005),d.x=n*Math.cos(a),d.y=n*Math.sin(a),d.x=d.x*this.a+this.x0,d.y=d.y*this.a+this.y0,t.x=d.x,t.y=d.y,t},inverse:function(t){var e,i,r,s,n,a,o,l,h,u,c,d,f,p={lam:0,phi:0},g={value:0};return t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,i=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)?g.value=1:t.y>=0&&t.y>=Math.abs(t.x)?(g.value=2,e-=v):t.x<0&&-t.x>=Math.abs(t.y)?(g.value=3,e=e<0?e+3.14159265359:e-3.14159265359):(g.value=4,e+=v),n=Math.atan(Math.sin(o=3.14159265359/12*Math.tan(e))/(Math.cos(o)-1/Math.sqrt(2))),(a=1-(r=Math.cos(e))*r*(s=Math.tan(i))*s*(1-Math.cos(Math.atan(1/Math.cos(n)))))<-1?a=-1:a>1&&(a=1),5===this.face?(p.phi=v-Math.acos(a),1===g.value?p.lam=n+v:2===g.value?p.lam=n<0?n+3.14159265359:n-3.14159265359:3===g.value?p.lam=n-v:p.lam=n):6===this.face?(p.phi=Math.acos(a)-v,1===g.value?p.lam=-n+v:2===g.value?p.lam=-n:3===g.value?p.lam=-n-v:p.lam=n<0?-n-3.14159265359:-n+3.14159265359):(u=(o=(l=a)*l)>=1?0:Math.sqrt(1-o)*Math.sin(n),o+=u*u,h=o>=1?0:Math.sqrt(1-o),2===g.value?(o=h,h=-u,u=o):3===g.value?(h=-h,u=-u):4===g.value&&(o=h,h=u,u=-o),2===this.face?(o=l,l=-h,h=o):3===this.face?(l=-l,h=-h):4===this.face&&(o=l,l=h,h=-o),p.phi=Math.acos(-u)-v,p.lam=Math.atan2(h,l),2===this.face?p.lam=ea(p.lam,-v):3===this.face?p.lam=ea(p.lam,-3.14159265359):4===this.face&&(p.lam=ea(p.lam,+v))),0!==this.es&&(c=+(p.p
2hi<0),d=Math.tan(p.phi),f=this.b/Math.sqrt(d*d+this.one_minus_f_squared),p.phi=Math.atan(Math.sqrt(this.a*this.a-f*f)/(this.one_minus_f*f)),c&&(p.phi=-p.phi)),p.lam+=this.long0,t.x=p.lam,t.y=p.phi,t},names:["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"]}),eb.Proj.projections.add({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=Y(t.x-this.long0,this.over),i=Math.abs(t.y),r=Math.floor(11.459155902616464*i);r<0?r=0:r>=18&&(r=17),i=57.29577951308232*(i-.08726646259971647*r);var s={x:eh(eo[r],i)*e,y:eh(el[r],i)};return t.y<0&&(s.y=-s.y),s.x=s.x*this.a*.8487+this.x0,s.y=s.y*this.a*1.3523+this.y0,s},inverse:function(t){var e={x:(t.x-this.x0)/(.8487*this.a),y:Math.abs(t.y-this.y0)/(1.3523*this.a)};if(e.y>=1)e.x/=eo[18][0],e.y=t.y<0?-v:v;else{var i=Math.floor(18*e.y);for(i<0?i=0:i>=18&&(i=17);;)if(el[i][0]>e.y)--i;else if(el[i+1][0]<=e.y)++i;else break;var r=el[i],s=5*(e.y-r[0])/(el[i+1][0]-r[0]);s=function(t,e,i){for(var r=e;i;--i){var s=t(r);if(r-=s,1e-10>Math.abs(s))break}return r}(function(t){return(eh(r,t)-e.y)/(r[1]+t*(2*r[2]+3*t*r[3]))},s,100),e.x/=eh(eo[i],s),e.y=(5*i+s)*.017453292519943295,t.y<0&&(e.y=-e.y)}return e.x=Y(e.x+this.long0,this.over),e},names:["Robinson","robin"]}),eb.Proj.projections.add({init:function(){this.name="geocent"},forward:function(t){return tw(t,this.es,this.a)},inverse:function(t){return tM(t,this.es,this.a,this.b)},names:["Geocentric","geocentric","geocent","Geocent"]}),eb.Proj.projections.add({init:function(){if(Object.keys(eu).forEach((function(t){if(void 0===this[t])this[t]=eu[t].def;else if(eu[t].num&&isNaN(this[t]))throw Error("Invalid parameter value, must be numeric "+t+" = "+this[t]);else eu[t].num&&(this[t]=parseFloat(this[t]));eu[t].degrees&&(this[t]=.017453292519943295*this[t])}).bind(this)),1e-10>Math.abs(Math.abs(this.lat0)-v)?this.mode=1*!!(this.lat0<0):1e-10>Math.abs(this.lat0)?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 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,i,r,s,n=Math.sin(t.y),a=Math.cos(t.y),o=Math.cos(t.x);switch(this.mode){case 3:i=this.sinph0*n+this.cosph0*a*o;break;case 2:i=a*o;break;case 1:i=-n;break;case 0:i=n}switch(e=(i=this.pn1/(this.p-i))*a*Math.sin(t.x),this.mode){case 3:i*=this.cosph0*n-this.sinph0*a*o;break;case 2:i*=n;break;case 0:i*=-(a*o);break;case 1:i*=a*o}return s=1/((r=i*this.cg+e*this.sg)*this.sw*this.h1+this.cw),e=(e*this.cg-i*this.sg)*this.cw*s,i=r*s,t.x=e*this.a,t.y=i*this.a,t},inverse:function(t){t.x/=this.a,t.y/=this.a;var e,i,r,s,n,a={x:t.x,y:t.y};r=1/(this.pn1-t.y*this.sw),e=this.pn1*t.x*r,i=this.pn1*t.y*this.cw*r,t.x=e*this.cg+i*this.sg,t.y=i*this.cg-e*this.sg;var o=t$(t.x,t.y);if(1e-10>Math.abs(o))a.x=0,a.y=t.y;else{switch(n=1-o*o*this.pfact,s=Math.sqrt(1-(n=(this.p-Math.sqrt(n))/(this.pn1/o+o/this.pn1))*n),this.mode){case 3:a.y=Math.asin(s*this.sinph0+t.y*n*this.cosph0/o),t.y=(s-this.sinph0*Math.sin(a.y))*o,t.x*=n*this.cosph0;break;case 2:a.y=Math.asin(t.y*n/o),t.y=s*o,t.x*=n;break;case 0:a.y=Math.asin(s),t.y=-t.y;break;case 1:a.y=-Math.asin(s)}a.x=Math.atan2(t.x,t.y)}return t.x=a.x+this.long0,t.y=a.y,t},names:["Tilted_Perspective","tpers"]}),eb.Proj.projections.add({init:function(){if(this.flip_axis=+("x"===this.sweep),this.h=Number(this.h),this.radius_g_1=this.h/this.a,this.radius_g_1<=0||this.radius_g_1>1e10)throw Error();if(this.radius_g=1+this.radius_g_1,this.C=this.radius_g*this.radius_g-1,0!==this.es){var t=1-this.es;this.radius_p=Math.sqrt(t),this.radius_p2=t,this.radius_p_inv2=1/t,this.shape="ellipse"}else this.radius_p=1,this.radius_p2=1,this.radius_p_inv2=1,this.shape="sphere";this.title||(this.title="Geostationary Satellite View")},forward:function(t){var e,i,r,s,n=t.x,a=t.y;if(n-=this.long0,"ellipse"===this.shape){a=Math.atan(this.radius_p2*Math.tan(a));var o=this.radius_p/t$(this.radius_p*Math.cos(a),Math.sin(a));if(i=o*Math.cos(n)*Math.cos(a),r=o*Math.sin(n)*Math.cos(a),s=o*Math.sin(a),(this.radius_g-i)*i-r*r-s*s*this.radius_p_inv2<0)return t.x=NaN,t.y=NaN,t;e=this.radius_g-i,this.flip_axis?(t.x=this.radius_g_1*Math.atan(r/t$(s,e)),t.y=this.radius_g_1*Math.atan(s/e)):(t.x=this.radius_g_1*Math.atan(r/e),t.y=this.radius_g_1*Math.atan(s/t$(r,e)))}else"sphere"===this.shape&&(i=Math.cos(n)*(e=Math.cos(a)),r=Math.sin(n)*e,s=Math.sin(a),e=this.radius_g-i,this.flip_axis?(t.x=this.radius_g_1*Math.atan(r/t$(s,e)),t.y=this.radius_g_1*Math.atan(s/e)):(t.x=this.radius_g_1*Math.atan(r/e),t.y=this.radius_g_1*Math.atan(s/t$(r,e))));return t.x=t.x*this.a,t.y=t.y*this.a,t},inverse:function(t){var e,i,r,s,n=-1,a=0,o=0;if(t.x=t.x/this.a,t.y=t.y/this.a,"ellipse"===this.shape){this.flip_axis?(o=Math.tan(t.y/this.radius_g_1),a=Math.tan(t.x/this.radius_g_1)*t$(1,o)):(a=Math.tan(t.x/this.radius_g_1),o=Math.tan(t.y/this.radius_g_1)*t$(1,a));var l=o/this.radius_p;if(e=a*a+l*l+n*n,(r=(i=2*this.radius_g*n)*i-4*e*this.C)<0)return t.x=NaN,t.y=NaN,t;s=(-i-Math.sqrt(r))/(2*e),n=this.radius_g+s*n,a*=s,o*=s,t.x=Math.atan2(a,n),t.y=Math.atan(o*Math.cos(t.x)/n),t.y=Math.atan(this.radius_p_inv2*Math.tan(t.y))}else if("sphere"===this.shape){if(this.flip_axis?(o=Math.tan(t.y/this.radius_g_1),a=Math.tan(t.x/this.radius_g_1)*Math.sqrt(1+o*o)):(a=Math.tan(t.x/this.radius_g_1),o=Math.tan(t.y/this.radius_g_1)*Math.sqrt(1+a*a)),e=a*a+o*o+n*n,(r=(i=2*this.radius_g*n)*i-4*e*this.C)<0)return t.x=NaN,t.y=NaN,t;s=(-i-Math.sqrt(r))/(2*e),n=this.radius_g+s*n,a*=s,o*=s,t.x=Math.atan2(a,n),t.y=Math.atan(o*Math.cos(t.x)/n)}return t.x=t.x+this.long0,t},names:["Geostationary Satellite View","Geostationary_Satellite","geos"]}),eb.Proj.projections.add({init:function(){this.long0=void 0!==this.long0?this.long0:0,this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,0!==this.es&&(this.apa=et(this.es),this.qp=t7(this.e,1),this.rqda=Math.sqrt(.5*this.qp))},forward:function(t){var e=Y(t.x-this.long0,this.over),i=Math.sin(t.y);0!==this.es&&(i=t7(this.e,i)/this.qp);var r=Math.asin(ec*i),s=r*r,n=s*s*s;return t.x=e*Math.cos(r)/(ec*(1.340264+-.24331799999999998*s+n*(.0062510000000000005+.034164*s))),t.y=r*(1.340264+-.081106*s+n*(893e-6+.003796
2*s)),0!==this.es&&(t.x*=this.rqda,t.y*=this.rqda),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t},inverse:function(t){t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,0!==this.es&&(t.x/=this.rqda,t.y/=this.rqda);var e,i,r,s,n,a=t.y;for(n=0;n<12&&(i=(e=a*a)*e*e,r=a*(1.340264+-.081106*e+i*(893e-6+.003796*e))-t.y,a-=s=r/(1.340264+-.24331799999999998*e+i*(.0062510000000000005+.034164*e)),!(1e-9>Math.abs(s)));++n);return i=(e=a*a)*e*e,t.x=ec*t.x*(1.340264+-.24331799999999998*e+i*(.0062510000000000005+.034164*e))/Math.cos(a),t.y=Math.asin(Math.sin(a)/ec),0!==this.es&&(t.y=ee(t.y,this.apa)),t.x=Y(t.x+this.long0,this.over),t},names:["eqearth","Equal Earth","Equal_Earth"]}),eb.Proj.projections.add({init:function(){var t;if(this.phi1=this.lat1,1e-10>Math.abs(this.phi1))throw Error();this.es?(this.en=tV(this.es),this.m1=tW(this.phi1,this.am1=Math.sin(this.phi1),t=Math.cos(this.phi1),this.en),this.am1=t/(Math.sqrt(1-this.es*this.am1*this.am1)*this.am1),this.inverse=ef,this.forward=ed):(Math.abs(this.phi1)+1e-10>=v?this.cphi1=0:this.cphi1=1/Math.tan(this.phi1),this.inverse=eg,this.forward=ep)},names:["bonne","Bonne (Werner lat_1=90)"]}),eb.Proj.projections.add({init:function(){let t;if(this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.title=this.title||"General Oblique Transformation",this.isIdentity=ti.includes(this.o_proj),!this.o_proj)throw Error("Missing parameter: o_proj");if("ob_tran"===this.o_proj)throw Error("Invalid value for o_proj: "+this.o_proj);let e=tv(this.projStr.replace("+proj=ob_tran","").replace("+o_proj=","+proj=").trim());if(!e)throw Error("Invalid parameter: o_proj. Unknown projection "+this.o_proj);e.long0=0,this.obliqueProjection=e;let i=Object.keys(e_),r=t=>{if(void 0===this[t])return;let e=.017453292519943295*parseFloat(this[t]);if(isNaN(e))throw Error("Invalid value for "+t+": "+this[t]);return e};for(let e=0;e<i.length;e++){let s=e_[i[e]],n=Object.entries(s);if(n.some(([t])=>void 0!==this[t])){t=s;for(let t=0;t<n.length;t++){let[e,i]=n[t],s=r(e);if(void 0===s)throw Error("Missing parameter: "+e+".");this[i]=s}break}}if(!t)throw Error("No valid parameters provided for ob_tran projection.");let{lamp:s,phip:n}=function(t,e){let i,r;if(e===e_.ROTATE){let e=t.oLongC,s=t.oLatC,n=t.oAlpha;if(1e-10>=Math.abs(Math.abs(s)-v))throw Error("Invalid value for o_lat_c: "+t.o_lat_c+" should be < 90°");r=e+Math.atan2(-1*Math.cos(n),-1*Math.sin(n)*Math.sin(s)),i=Math.asin(Math.cos(s)*Math.sin(n))}else if(e===e_.NEW_POLE)r=t.oLongP,i=t.oLatP;else{let e=t.oLong1,s=t.oLat1,n=t.oLong2,a=t.oLat2,o=Math.abs(s);if(Math.abs(s)>v-1e-10)throw Error("Invalid value for o_lat_1: "+t.o_lat_1+" should be < 90°");if(Math.abs(a)>v-1e-10)throw Error("Invalid value for o_lat_2: "+t.o_lat_2+" should be < 90°");if(1e-10>Math.abs(s-a))throw Error("Invalid value for o_lat_1 and o_lat_2: o_lat_1 should be different from o_lat_2");if(o<1e-10)throw Error("Invalid value for o_lat_1: o_lat_1 should be different from zero");i=Math.atan(-1*Math.cos((r=Math.atan2(Math.cos(s)*Math.sin(a)*Math.cos(e)-Math.sin(s)*Math.cos(a)*Math.cos(n),Math.sin(s)*Math.cos(a)*Math.sin(n)-Math.cos(s)*Math.sin(a)*Math.sin(e)))-e)/Math.tan(s))}return{lamp:r,phip:i}}(this,t);this.lamp=s,Math.abs(n)>1e-10?(this.cphip=Math.cos(n),this.sphip=Math.sin(n),this.projectionType=ey):this.projectionType=em},forward:function(t){return this.projectionType.forward(this,t)},inverse:function(t){return this.projectionType.inverse(this,t)},names:["General Oblique Transformation","General_Oblique_Transformation","ob_tran"]});var ev=t.i(198341),ew=t.i(239775),eM=t.i(181630);t.i(301020);var eS=t.i(194284);let eE=[{type:"Feature",properties:{},geometry:null}];function ex(t,e,i){let{properties:r,...s}=t;return r?.hasOwnProperty("code")&&"LayerNotDefined"===r.code?null:{...s,id:t.properties?.id?t.properties.id:null,sourceId:e.id,sourceName:e.name,layerName:e.name,catalog:ew.datasetCatalog.enernite,type:"raster",properties:r,coordinates:i}}var eP=t.i(681779),eA=t.i(840592),eC=t.i(252477);let eN={Mode:10,Hover:20,Override:30,Drag:40};class eG{requests=new Map;unsubscribeMap=null;unsubscribeToolMode=null;lastToolMode=null;start=()=>{this.unsubscribeToolMode||(this.syncModeCursor(),this.unsubscribeMap=eC.default.subscribe((t,e)=>{t.map!==e.map&&this.writeCanvas()}),this.lastToolMode=eA.toolModeState.get(),this.unsubscribeToolMode=eA.toolModeState.subscribe(t=>{t.toolMode!==this.lastToolMode&&(this.lastToolMode=t.toolMode,this.syncModeCursor())}))};stop=()=>{this.unsubscribeMap?.(),this.unsubscribeToolMode?.(),this.unsubscribeMap=null,this.unsubscribeToolMode=null,this.lastToolMode=null,this.requests.clear()};set=(t,e,i)=>{let r=this.requests.get(t);
2r&&r.layer===e&&r.cursor===i||(this.requests.delete(t),this.requests.set(t,{layer:e,cursor:i}),this.writeCanvas())};clear=t=>{this.requests.delete(t)&&this.writeCanvas()};getActiveCursor=()=>this.resolve();syncModeCursor=()=>{this.set("mode",eN.Mode,(t=>{switch(t){case"create_thread":case"measure_distance":case"google_direction":case"direct_select":return"crosshair";case"add_note":case"add_text":case"add_link":case"add_video":return"text";case"simple_select":case"search":case"marker":case"highlighter":case"bookmarks":case"draw_freehand":return"default";default:return eP.default.lib.getCursorForMode(t)}})(eA.toolModeState.get()))};resolve=()=>{let t=-1,e="";for(let i of this.requests.values())i.layer>=t&&(t=i.layer,e=i.cursor);return e};writeCanvas=()=>{let t=eC.default.map;t&&(t.getCanvas().style.cursor=this.resolve())}}let eI=new eG;t.s(["CursorLayer",0,eN,"default",0,eI],187990);var eO=t.i(991633),eT=t.i(990434);function ej(t){let{client:e=eT.client,...i}=t;return e({method:"GET",url:"/datasets/raster/value/{dataset_id}/{latitude}/{longitude}",security:[{type:"oauth2"}],...i})}t.s(["getRasterValue",0,ej],912700),t.i(273284);var eD=t.i(314620),eR=t.i(52443),eL=t.i(551352),ek=t.i(746481),eF=t.i(284539),eq=t.i(588331);let eB="raster-click/hover",eU=(t,e)=>t.length===e.length&&t.every((t,i)=>t===e[i]),eV=t=>t.info_format?t.info_format:null,eW=t=>(0,eR.isDatahubRasterDatasetItem)(t)||(0,eR.isWmsDatasetItem)(t),ez=t=>{let e=(0,eR.isDatahubRasterDatasetItem)(t)?t.local_style:eq.default.getRasterStyle(t.item_id);return e?.["popup-enabled"]!==!1},eK=t=>!!t.properties&&Object.keys(t.properties).length>0,eH=t=>(0,eR.isDatahubRasterDatasetItem)(t)?t.layers?.[0]?.toString():(0,eR.isWmsDatasetItem)(t)?t.layer:null,e$=t=>Number(t.toFixed(3)),eJ=t=>{let[e,i]=eb("EPSG:4326","EPSG:3857",[t.lng,t.lat]);return[e-50,i-50,e+50,i+50].map(e$).join(",")},eQ=async(t,e)=>{if(!ez(t))return null;let i=eH(t);if(!i)return null;let r=eV(t);if(!r)return null;let s=((t,e,i)=>{let r=t.url.split("?")[0],s=eV(t);if(!s)return"";let n="style"in t?t.style??"":"";return`${r}?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetFeatureInfo&BBOX=${encodeURIComponent(i)}&CRS=EPSG:3857&WIDTH=256&HEIGHT=256&LAYERS=${encodeURIComponent(e)}&STYLES=${encodeURIComponent(n)}&FORMAT=image/png&QUERY_LAYERS=${encodeURIComponent(e)}&INFO_FORMAT=${s}&I=${128}&J=${128}`})(t,i,eJ(e));try{let i=await new Promise((t,e)=>{let i=new XMLHttpRequest;i.open("GET",s,!0),eM.Auth.token&&i.setRequestHeader("Authorization",`Bearer ${eM.Auth.token}`),"application/json"===r||"application/geojson"===r?i.responseType="json":i.responseType="text",i.addEventListener("load",function(){200===i.status?t(i.response):e(Error(`WMS request failed with status ${i.status}`))}),i.addEventListener("error",function(){e(Error("WMS request failed"))}),i.addEventListener("timeout",function(){e(Error("WMS request timed out"))}),i.send()}),n=((t,e,i,r)=>{switch(e){case"application/json":case"application/geojson":var s;return t?.features?(s=t.features,s?s.map(t=>ex(t,i,r)).filter(t=>null!==t):null):null;case"text/xml":try{let e=JSON.parse((0,ev.xml2json)(t));if(e?.elements&&Array.isArray(e.elements)&&e.elements.length>0&&e.elements[0]&&"object"==typeof e.elements[0]&&e.elements[0].hasOwnProperty("elements"))return eE[0].properties=e.elements[0].elements[0].attributes,eE.map(t=>ex(t,i,r)).filter(t=>null!==t)}catch(t){(0,eS.captureException)(t,"Error parsing XML to JSON")}return null;case"application/vnd.ogc.gml":return function(t,e,i){let r,s=new DOMParser().parseFromString(t,"text/xml"),n=(r=s.childNodes,function t(e){let i={},r=function(t){let e={};for(let i=0;i<t.length;i++){let r=t[i];if(3==r.nodeType)continue;let s=r.nodeName;e[s]=e.hasOwnProperty(s)?e[s]+1:1}return e}(e);for(let s=0;s<e.length;s++){let n=e[s];if(3==n.nodeType)continue;let a="";n.childNodes.length>1?a=t(n.childNodes):1==n.childNodes.length&&(a=n.childNodes[0].nodeValue?n.childNodes[0].nodeValue.trim():t(n.childNodes));let o=n.nodeName.substring(n.nodeName.indexOf(":")+1);r[n.nodeName]>1?i[o]?i[o].push(a):i[o]=[a]:i[o]=a}return i}(r));if(0===Array.from(s.documentElement.childNodes).filter(t=>"gml:boundedBy"!==t.nodeName).length)return(0,eS.captureMessage)("The response is empty"),null;let a=Object.keys(n)[0];if(void 0===a)return null;let o=n[a];if(void 0===o||"string"==typeof o||Array.isArray(o))return null;let l=Object.keys(o)[0];if(void 0===l)return null;let h=o[l];if("object"!=typeof h||Array.isArray(h))return null;let u=h[l.substring(0,l.indexOf("layer"))+"feature"];if("object"!=typeof u||Array.isArray(u))return null;for(let t in u)u.hasOwnProperty(t)&&"string"!=typeof u[t]&&delete u[t];return eE[0].properties=u,eE.map(t=>ex(t,e,i)).filter(t=>null!==t)}(t,i,r);default:return null}})(i,r,t,e);return Array.isArray(n)?n.filter(eK):[]}catch(t){return(0,eS.captureException)(t,"Error fetching WMS data"),[]}},eX=t=>{if(0===t.length||eL.FeatureSelectionState.getExternalFeatures().some(t=>"Feature"===t.type))return;eL.FeatureSelectionState.batchAdd(t),ek.PopupFeatureState.batchAdd(t),ek.PopupFeatureState.sortFeatures();let e=ek.PopupFeatureState.getFeatures()[0];e&&c.ActiveDataState.setSelectedLayerId(e.sourceId)},eY=(t,e)=>{if((0,eF.isDatasetHiddenInCurrentMode)(t.id))return!1;let i=t.bbox;if(!i)return!1;let{lng:r,lat:s}=e;return r>i[0]&&r<i[2]&&s>i[1]&&s<i[3]},eZ=t=>t.layerType.capabilities.includes(eD.Capabilities.Clickable)&&(eW(t)||(0,eR.isRasterDatasetItem)(t)),e0=(t,e)=>{let i=(0,l.useRef)(0),r=c.ActiveDataState.useStateWithEqualityFn(t=>[...t.indices.rasterDatasets,...t.indices.wmsDatasets,...t.indices.datahubRasterDatasets],eU),s=eA.toolModeState.useToolMode(),n=eO.default.useState(t=>!!t.editingId||t.editing),a="simple_select"===s&&!n,o=async(t,e,r,s)=>{let n=eq.default.getRasterStyle(t.item_id);
2if(!(!n||n.hasOwnProperty("popup-enabled")&&!1===n["popup-enabled"])){try{let{data:n}=await ej({path:{dataset_id:t.id,latitude:e.coordinates.lat,longitude:e.coordinates.lng}});if(s!==i.current)return;if(n){!eL.FeatureSelectionState.getInternalFeatures().length&&r&&(ek.PopupFeatureState.setCenter(r),ek.PopupFeatureState.setShowMarker(!0));let i={};n.forEach((t,e)=>{i[`band_${e+1}`]=t});let s=t.id.split("").reduce((t,e)=>(t<<5)-t+e.charCodeAt(0)|0,0),a={id:Math.abs(s),sourceId:t.id,layerName:t.name,catalog:ew.datasetCatalog.enernite,properties:i,geometry:null,coordinates:e.coordinates,type:"raster",sourceName:t.name};eX([a])}}catch(t){(0,eS.captureException)(t,"Error fetching raster values")}s===i.current&&ek.PopupFeatureState.setHidePopup(!1)}},h=async(t,e,r,s,n,a)=>{let o=e?.coordinates?e?.coordinates:r.getCenter(),l=await eQ(t,o);a!==i.current||l&&(l.length>0&&(!eL.FeatureSelectionState.getInternalFeatures().length&&n&&(ek.PopupFeatureState.setCenter(n),ek.PopupFeatureState.setShowMarker(!0)),s(l)),ek.PopupFeatureState.setHidePopup(!1))},u=async(e,i,r)=>{let s=c.ActiveDataState.getDatasets();if(s&&e?.bbox&&!eO.default.editingId){let n=[];for(let a of s)eZ(a)&&eY(a,e.coordinates)&&(ek.PopupFeatureState.isTopClickedLayer(a.id)&&!ek.PopupFeatureState.getHidePopup()&&ek.PopupFeatureState.setHidePopup(!0),eW(a)?n.push(h(a,e,t.current,eX,i,r)):(0,eR.isRasterDatasetItem)(a)&&n.push(o(a,e,i,r)));await Promise.all(n)}},d=(0,l.useRef)(u);d.current=u;let f=(0,l.useCallback)(t=>{let r=++i.current;if("simple_select"===e.current&&!eO.default.editingId&&!eO.default.editing&&!t.defaultPrevented){let e=eJ(t.lngLat);d.current({bbox:e,coordinates:t.lngLat},t.lngLat,r)}},[e]),p=(0,l.useMemo)(()=>(0,b.throttle)(t=>{a&&r.some(e=>{let i=c.ActiveDataState.getDataset(e);return!!i&&eZ(i)&&eY(i,t.lngLat)})?eI.set(eB,eN.Hover,"pointer"):eI.clear(eB)},16),[a,r]),g=(0,l.useCallback)(()=>{p.cancel(),eI.clear(eB)},[p]);return(0,l.useEffect)(()=>{a||g()},[a,g]),{clearHoverCursorRasters:g,clickListenerRasters:f,mouseMoveListenerRasters:p}};var e1=t.i(48410);function e2(t){return Array.isArray(t)&&2===t.length&&Array.isArray(t[0])&&2===t[0].length&&Array.isArray(t[1])&&2===t[1].length}function e4(t){if(!e2(t))return null;let[e,i]=t,[r,s]=eb("EPSG:4326","EPSG:3857",[e[0],e[1]]),[n,a]=eb("EPSG:4326","EPSG:3857",[i[0],i[1]]);return`${r},${s},${n},${a}`}function e8(t){if(!e2(t))return null;let[[e,i],[r,s]]=t;return[e,i,r,s]}t.s(["useWmsCoverage",0,function(t,e,i){let r=t.map(t=>t.id),s=e8(e);return(0,_.useQuery)({queryKey:["wms-coverage",r.toSorted(),e8(e)],queryFn:async({signal:t})=>{let{data:e}=await function(t){let{client:e=eT.client,...i}=t;return e({method:"POST",url:"/datasets/raster/probe-wms-coverage",security:[{type:"oauth2"}],...i})}({body:{dataset_ids:r,bbox_wgs84:s},signal:t}),i={};for(let t of r){let r=e.results[t];i[t]={hasData:!r||r.has_data}}return i},enabled:i&&r.length>0&&null!==s,staleTime:3e5,gcTime:3e5,retry:!1,refetchOnWindowFocus:!1})},"wgs84BoundsToMercatorBboxString",0,e4],397069);let e3=(t,e)=>void 0!==t&&void 0!==e&&t<=36&&e<=36;function e6(){return Date.now()+15e3}function e5(t,e,i,r=e6()){let s,n=r-Date.now();if(i?.aborted||n<=0)return Promise.resolve(null);let{promise:a,resolve:o}=Promise.withResolvers(),l=new Image;e&&(l.crossOrigin=e);let h=t=>{clearTimeout(s),i?.removeEventListener("abort",c),o(t)},u=()=>{l.src="",h(null)},c=()=>u();return s=setTimeout(u,n),l.addEventListener("load",()=>{h(l.width<=5||l.height<=5?null:{url:t,width:l.width,height:l.height})}),l.addEventListener("error",()=>h(null)),i?.addEventListener("abort",c,{once:!0}),l.src=t,a}async function e9(t,e,i){let r=await e5(t,"anonymous",e,i);return r||e?.aborted?r:e5(t,null,e,i)}async function e7(t,e,i){let r=eH(t);if(!r)return null;let s=e?e4(e):null,n=[s?(0,e1.getWMSLegend)(t,r,s):void 0,(0,e1.getWMSLegend)(t,r)].filter(t=>!!t),a=e6();for(let t of n){if(i?.aborted)break;let e=await e9(t,i,a);if(e)return e}return null}async function it(t,e){let i=e6(),r=AbortSignal.timeout(15e3);try{let{data:s}=await (0,eT.client)({method:"GET",url:`/datasets/raster/wmts/${t}/legend`,responseType:"blob",signal:e?AbortSignal.any([e,r]):r});return e5(await new Promise((t,e)=>{let i=new FileReader;i.addEventListener("load",()=>t(i.result)),i.addEventListener("error",()=>e(i.error)),i.readAsDataURL(s)}),null,e,i)}catch{return null}}function ie(t){let e=!!t&&(eW(t)||(0,eR.isWmtsDatasetItem)(t)),i=(0,_.useQuery)({queryKey:["ogc-legend-graphic",t?.id??""],queryFn:({signal:e})=>t&&eW(t)?e7(t,void 0,e):t&&(0,eR.isWmtsDatasetItem)(t)?it(t.id,e):null,enabled:e,staleTime:3e5,gcTime:3e5,retry:!1,refetchOnWindowFocus:!1}),r=i.data??null,s=null!=r&&e3(r.width,r.height);return{isLoading:i.isLoading,graphic:r,isInline:s}}t.s(["LEGEND_GRAPHIC_STALE_TIME_MS",0,3e5,"fetchLegendGraphic",0,e7,"isInlineLegendSwatch",0,e3,"useOgcLegendGraphic",0,ie],654757);var ii=t.i(634081),ir=t.i(410567);let is="var(--color-icon-subtle)",ia=()=>{let{id:t}=(0,l.useContext)(r.DatasetItemContext);return"enernite"===c.ActiveDataState.useDataset(t,t=>t.catalog)},io=({label:t,color:i,hidden:s})=>{let{style:n}=(0,l.useContext)(r.DatasetItemContext),o=(0,d.useAppMode)(),c=ia(),{outlineColor:f,outlineOpacity:p,outlineStyle:y,fillOpacity:m,layerIconGeometryType:_}=n,b=!s,v="onlyLineString"===_?"transparent":c?i:(0,g.paintValueToRGBA)(i,m),w=(0,e1.computeBorderColor)(f,p,b,c);return(0,e.jsx)(u.Tooltip,{label:t,disabled:!b||"preview"===o,openDelay:300,children:(0,e.jsx)("span",{className:(0,a.default)(h.default.layerColor,"onlyLineString"===_&&h.default.lineString,"onlyPoint"===_&&h.default.point),style:{backgroundColor:v,borderColor:w,borderStyle:(y||"solid").toLowerCase()}})})},il=({label:t,color:i,hidden:s,hatchPattern:n="diagonal"})=>{let{style:a}=(0,l.useContext)(r.DatasetItemContext),o=(0,d.useAppMode)(),c=ia(),{outlineColor:f,outlineOpacity:p,outlineStyle:g}=a,y=!s,m=(0,e1.computeBorderColor)(f,p,y,c),_=y?(0,ii.getHatchCSSBackgroun
2d)(n,i):{background:is};return(0,e.jsx)(u.Tooltip,{label:t,disabled:!y||"preview"===o,children:(0,e.jsx)("span",{className:h.default.layerColor,style:{..._,borderColor:m,borderStyle:(g||"solid").toLowerCase()}})})},ih=({gradient:t,isPreview:i,visible:r})=>(0,e.jsx)(u.Tooltip,{label:"Heatmap",disabled:!r||i,children:(0,e.jsx)("span",{className:h.default.layerColor,style:{background:r?`linear-gradient(to right, ${t})`:is,border:"none"}})}),iu=({gradient:t,label:i,isPreview:r,visible:s,borderColorValue:n,outlineStyle:a,outlineVisible:o,fillOpacity:l=1})=>{let c;return c=s&&t?0===l?"transparent":`linear-gradient(90deg, ${t})`:is,(0,e.jsx)(u.Tooltip,{label:i,disabled:!s||r,children:(0,e.jsx)("span",{className:h.default.layerColor,style:{background:c,borderColor:n,borderStyle:(a||"solid").toLowerCase(),borderWidth:o?"2px":"0px"}})})},ic=({hidden:t})=>(0,e.jsx)(s.ImageIcon,{size:16,color:t?"var(--color-icon-subtle)":"var(--color-icon-default)"}),id=({graphic:t,hidden:i})=>(0,e.jsx)("img",{className:(0,a.default)(h.default.ogcLegendIcon,i&&h.default.ogcLegendIconHidden),src:t.url,alt:""}),ip=({hidden:t})=>(0,e.jsx)(s.TableIcon,{size:16,color:t?"var(--color-icon-subtle)":"var(--color-icon-default)"}),ig=({hidden:t,isPreview:i})=>(0,e.jsx)(u.Tooltip,{label:"Marker",disabled:t||i,openDelay:300,children:(0,e.jsxs)("svg",{width:16,height:16,viewBox:"0 0 18 18",className:h.default.markerLegendIcon,"aria-hidden":!0,children:[(0,e.jsx)("circle",{cx:9,cy:9,r:7,fill:"#fff"}),(0,e.jsx)("circle",{cx:9,cy:9,r:4,fill:t?is:"#000"})]})}),iy=({iconImage:t,isPreview:i,hidden:r,iconColor:s})=>(0,e.jsx)(u.Tooltip,{label:"Icon",disabled:r||i,children:(0,e.jsx)("span",{className:h.default.layerIconImage,children:(0,e.jsx)(m,{src:t,iconColor:s,size:16,hidden:r})})}),im=t=>t.map(t=>{let e=t.color;return Array.isArray(e)?"string"==typeof e[0]?e[0]:void 0:"string"==typeof e?e:void 0}).filter(t=>!!t),i_=t=>t.length<=1?null:t.map((t,e,i)=>{let r=e/(i.length-1)*100;return`${t} ${r}%`}).join(", "),ib=t=>(0,e.jsx)(p.WithLayerScope,{children:(0,e.jsx)(iv,{...t})}),iv=({isPreview:t,forceVisible:i=!1})=>{let a,{id:h,style:u}=(0,l.useContext)(r.DatasetItemContext),d=c.ActiveDataState.useDataset(h,t=>t.type),p=c.ActiveDataState.useDataset(h,t=>t.catalog),g=(0,f.useScopedItemHidden)(h),y=!i&&g,m=c.ActiveDataState.useDataset(h,t=>"protocol"in t?t.protocol:void 0),_=c.ActiveDataState.useDataset(h,t=>t?.item_id),b=c.ActiveDataState.useTreeItem(h,t=>t.expanded)??!1,v=eq.default.useVectorView(_??""),w=c.ActiveDataState.useDataset(h,t=>t),M=(0,ir.useDerivedLegend)(w),S=v?.style,E=!S||!("outline-visible"in S)||S["outline-visible"],x=M&&"content"in M?M.content:void 0,{heatmapGradient:P,regularGradient:A,hasMultipleColors:C}=(a=(0,l.useMemo)(()=>x&&(0,e1.isLegendContent)(x)&&x.circle?.null?.[0]&&Array.isArray(x.circle.null[0].color)&&x.circle.null[0].color.length>0?i_(x.circle.null[0].color.filter(t=>"string"==typeof t)):null,[x]),{heatmapGradient:a,regularGradient:(0,l.useMemo)(()=>{if(!x||!(0,e1.isLegendContent)(x))return null;for(let t of["fill"]){let e=x[t]?.null;if(Array.isArray(e)){let t=i_(im(e));if(t)return t}}return null},[x]),hasMultipleColors:(0,l.useMemo)(()=>!!x&&!!(0,e1.isLegendContent)(x)&&["fill","line","circle"].some(t=>{let e=x[t]?.null;return Array.isArray(e)&&e.length>1}),[x])}),N=!y,{borderColorValue:G,outlineStyle:I,outlineVisible:O}=((t,e,i)=>{let{outlineColor:r,outlineOpacity:s,outlineStyle:n}=t;return{borderColorValue:(0,l.useMemo)(()=>(0,e1.computeBorderColor)(r,s,i&&e,!1,"transparent"),[i,e,r,s]),outlineStyle:n||"solid",outlineVisible:e}})(u,E,N),T=ie(w),j=(0,l.useMemo)(()=>!p||!M||!("content"in M)||!w||(0,e1.isNoContent)(p,M.content,0,S),[p,M,w,S]);if(t&&!j){let t;return t=async t=>{t.stopPropagation(),await c.ActiveDataState.setDatasetLegendExpanded(h,!b)},(0,e.jsx)(n.Flex,{align:"center",justify:"center",onClick:async e=>await t(e),style:{transition:"transform 0.2s var(--ease-in-out)",transform:b?"rotate(0deg)":"rotate(-90deg)",cursor:"pointer"},children:(0,e.jsx)(s.ChevronDownSolidIcon,{size:18,color:N?"var(--color-icon-default)":"var(--color-icon-subtle)"})})}let D=(({datasetType:t,protocol:e,style:i,hasMultipleColors:r,legendContent:s})=>{if(i.isHeatmap)return{type:"heatmap"};if(i.isHatchFill)return{type:"hatchFill"};if("raster"===t)return{type:"raster"};if("tabular"===t)return{type:"tabular"};if("foreign"===t&&e&&"WFS"!==e)return{type:"foreignRaster"};if(i.isMarker)return{type:"marker"};if(i.iconImage)return{type:"iconImage",iconImage:i.iconImage};let n="onlyPoint"!==i.layerIconGeometryType&&"onlyLineString"!==i.layerIconGeometryType;return r&&n&&s&&(0,e1.isLegendContent)(s)?{type:"gradient"}:{type:"layerColor"}})({datasetType:d,protocol:m,style:u,hasMultipleColors:C,legendContent:x});switch(D.type){case"heatmap":return(0,e.jsx)(ih,{gradient:P,isPreview:t,visible:N});case"hatchFill":{let t=(0,e1.getLayerColor)(p??null,N,M??void 0,u.firstColor);return(0,e.jsx)(il,{label:(0,o.startCase)(d||"vector"),color:t,hidden:y,hatchPattern:u.hatchPattern})}case"raster":case"foreignRaster":if(T.graphic&&T.isInline)return(0,e.jsx)(id,{graphic:T.graphic,hidden:y});return(0,e.jsx)(ic,{hidden:y});case"tabular":return(0,e.jsx)(ip,{hidden:y});case"marker":return(0,e.jsx)(ig,{hidden:y,isPreview:t});case"iconImage":return(0,e.jsx)(iy,{iconImage:D.iconImage,isPreview:t,hidden:y,iconColor:S?.["icon-enable-color"]?S?.["icon-color"]:void 0});case"gradient":return(0,e.jsx)(iu,{gradient:A,label:(0,o.startCase)(d||"vector"),isPreview:t,visible:N,borderColor
2Value:G,outlineStyle:I,outlineVisible:O,fillOpacity:u.fillOpacity});case"layerColor":{let t=(0,e1.getLayerColor)(p??null,N,M??void 0,u.firstColor);return(0,e.jsx)(io,{label:(0,o.startCase)(d||"vector"),color:t,hidden:y})}}};t.s(["DatasetItemIconsFactory",0,ib],43045);let iw=({datasetId:t})=>(0,e.jsx)(r.default,{id:t,children:(0,e.jsx)(ib,{isPreview:!1,forceVisible:!0})});t.s(["DatasetIcon",0,iw],773622),t.s([],85761);let iM="__dataset_select_create_new__",iS=t=>{let e="enernite"===t.catalog,i=t.capabilities?.can_refetch_remote===!0;return e||i},iE=t=>{let e=t.capabilities?.can_refetch_remote===!0,i="enernite"===t.catalog;return e?"Synced datasets cannot be selected":i?"Datasets from Data Hub cannot be selected":void 0};t.s(["DatasetSelect",0,({datasets:t,label:r,placeholder:s="Select dataset",searchable:n=!0,clearable:a=!1,required:o,error:l,isDisabled:h=iS,getDisabledTooltip:u=iE,createNew:c,multiselect:d,value:f,onChange:p,withinPortal:g})=>{let y=t.map(t=>({value:t.id,label:t.name,disabled:h(t),disabledTooltip:u(t),icon:(0,e.jsx)(iw,{datasetId:t.id})})),m=c?[{group:"Actions",items:[{value:iM,label:`+ ${c.label}`}]},{group:"Available datasets",items:y}]:y;return(0,e.jsx)(i.ConditionalSelect,{label:r,placeholder:s,searchable:n,clearable:a,required:o,error:l,data:m,multiselect:d,value:f,onChange:t=>{if(c){if("string"==typeof t&&t===iM)return void c.onSelect();if(Array.isArray(t)&&t.includes(iM)){c.onSelect(),p(t.filter(t=>t!==iM));return}}p(t)},withinPortal:g})},"getUnselectableDatasetTooltip",0,iE,"isUnselectableDataset",0,iS],426408),t.s([],224281)},49493,t=>{"use strict";t.s(["getParsedComboboxData",0,function(t){return t?t.map(t=>(function t(e){return"string"==typeof e?{value:e,label:e}:"object"==typeof e&&"value"in e&&!("label"in e)?{value:e.value,label:`${e.value}`,disabled:e.disabled}:"object"==typeof e&&"group"in e?{group:e.group,items:e.items.map(e=>t(e))}:"number"==typeof e||"bigint"==typeof e||"boolean"==typeof e?{value:e,label:`${e}`}:e})(t)):[]}])},140597,714915,t=>{"use strict";let e=/\p{Lu}?\p{Ll}+|[0-9]+|\p{Lu}+(?!\p{Ll})|\p{Emoji_Presentation}|\p{Extended_Pictographic}|\p{L}+/gu;function i(t){return Array.from(t.match(e)??[])}t.s(["words",0,i],714915),t.s(["startCase",0,function(t){let e=i(t.trim()),r="";for(let t=0;t<e.length;t++){let i=e[t];r&&(r+=" "),r+=i[0].toUpperCase()+i.slice(1).toLowerCase()}return r}],140597)},379666,(t,e,i)=>{"use strict";var r,s="object"==typeof Reflect?Reflect:null,n=s&&"function"==typeof s.apply?s.apply:function(t,e,i){return Function.prototype.apply.call(t,e,i)};r=s&&"function"==typeof s.ownKeys?s.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var a=Number.isNaN||function(t){return t!=t};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(t,e){return new Promise(function(i,r){var s,n,a;function o(i){t.removeListener(e,l),r(i)}function l(){"function"==typeof t.removeListener&&t.removeListener("error",o),i([].slice.call(arguments))}m(t,e,l,{once:!0}),"error"!==e&&(s=t,n=o,a={once:!0},"function"==typeof s.on&&m(s,"error",n,a))})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var l=10;function h(t){if("function"!=typeof t)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function u(t){return void 0===t._maxListeners?o.defaultMaxListeners:t._maxListeners}function c(t,e,i,r){if(h(i),void 0===(n=t._events)?(n=t._events=Object.create(null),t._eventsCount=0):(void 0!==n.newListener&&(t.emit("newListener",e,i.listener?i.listener:i),n=t._events),a=n[e]),void 0===a)a=n[e]=i,++t._eventsCount;else if("function"==typeof a?a=n[e]=r?[i,a]:[a,i]:r?a.unshift(i):a.push(i),(s=u(t))>0&&a.length>s&&!a.warned){a.warned=!0;var s,n,a,o=Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");o.name="MaxListenersExceededWarning",o.emitter=t,o.type=e,o.count=a.length,console&&console.warn&&console.warn(o)}return t}function d(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(t,e,i){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:i},s=d.bind(r);return s.listener=i,r.wrapFn=s,s}
2function p(t,e,i){var r=t._events;if(void 0===r)return[];var s=r[e];return void 0===s?[]:"function"==typeof s?i?[s.listener||s]:[s]:i?function(t){for(var e=Array(t.length),i=0;i<e.length;++i)e[i]=t[i].listener||t[i];return e}(s):y(s,s.length)}function g(t){var e=this._events;if(void 0!==e){var i=e[t];if("function"==typeof i)return 1;if(void 0!==i)return i.length}return 0}function y(t,e){for(var i=Array(e),r=0;r<e;++r)i[r]=t[r];return i}function m(t,e,i,r){if("function"==typeof t.on)r.once?t.once(e,i):t.on(e,i);else if("function"==typeof t.addEventListener)t.addEventListener(e,function s(n){r.once&&t.removeEventListener(e,s),i(n)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t)}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(t){if("number"!=typeof t||t<0||a(t))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");l=t}}),o.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||a(t))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(t){for(var e=[],i=1;i<arguments.length;i++)e.push(arguments[i]);var r="error"===t,s=this._events;if(void 0!==s)r=r&&void 0===s.error;else if(!r)return!1;if(r){if(e.length>0&&(a=e[0]),a instanceof Error)throw a;var a,o=Error("Unhandled error."+(a?" ("+a.message+")":""));throw o.context=a,o}var l=s[t];if(void 0===l)return!1;if("function"==typeof l)n(l,this,e);else for(var h=l.length,u=y(l,h),i=0;i<h;++i)n(u[i],this,e);return!0},o.prototype.addListener=function(t,e){return c(this,t,e,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(t,e){return c(this,t,e,!0)},o.prototype.once=function(t,e){return h(e),this.on(t,f(this,t,e)),this},o.prototype.prependOnceListener=function(t,e){return h(e),this.prependListener(t,f(this,t,e)),this},o.prototype.removeListener=function(t,e){var i,r,s,n,a;if(h(e),void 0===(r=this._events)||void 0===(i=r[t]))return this;if(i===e||i.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,i.listener||e));else if("function"!=typeof i){for(s=-1,n=i.length-1;n>=0;n--)if(i[n]===e||i[n].listener===e){a=i[n].listener,s=n;break}if(s<0)return this;0===s?i.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(i,s),1===i.length&&(r[t]=i[0]),void 0!==r.removeListener&&this.emit("removeListener",t,a||e)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(t){var e,i,r;if(void 0===(i=this._events))return this;if(void 0===i.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==i[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete i[t]),this;if(0==arguments.length){var s,n=Object.keys(i);for(r=0;r<n.length;++r)"removeListener"!==(s=n[r])&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=i[t]))this.removeListener(t,e);else if(void 0!==e)for(r=e.length-1;r>=0;r--)this.removeListener(t,e[r]);return this},o.prototype.listeners=function(t){return p(this,t,!0)},o.prototype.rawListeners=function(t){return p(this,t,!1)},o.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):g.call(t,e)},o.prototype.listenerCount=g,o.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},966718,(t,e,i)=>{var r=t.i(416218),s=t.i(321831),n={7492:function(t){t.exports=function(t,i,r){if(t.filter)return t.filter(i,r);if(null==t||"function"!=typeof i)throw TypeError();for(var s=[],n=0;n<t.length;n++)if(e.call(t,n)){var a=t[n];i.call(r,a,n,t)&&s.push(a)}return s};var e=Object.prototype.hasOwnProperty}
2,1648:function(t,e,i){"use strict";var r=i(7797),s=i(4834),n=i(8772);t.exports=i(9095)||r.call(n,s)},4757:function(t,e,i){"use strict";var r=i(7797),s=i(4834),n=i(1648);t.exports=function(){return n(r,s,arguments)}},4834:function(t){"use strict";t.exports=Function.prototype.apply},8772:function(t){"use strict";t.exports=Function.prototype.call},2462:function(t,e,i){"use strict";var r=i(7797),s=i(4785),n=i(8772),a=i(1648);t.exports=function(t){if(t.length<1||"function"!=typeof t[0])throw new s("a function is required");return a(r,n,t)}},9095:function(t){"use strict";t.exports="u">typeof Reflect&&Reflect&&Reflect.apply},2982:function(t,e,i){"use strict";var r=i(1893),s=i(5494),n=s(r("String.prototype.indexOf"));t.exports=function(t,e){var i=r(t,!!e);return"function"==typeof i&&n(t,".prototype.")>-1?s(i):i}},5494:function(t,e,i){"use strict";var r=i(3798),s=i(871),n=i(2462),a=i(4757);t.exports=function(t){var e=n(arguments),i=t.length-(arguments.length-1);return r(e,1+(i>0?i:0),!0)},s?s(t.exports,"apply",{value:a}):t.exports.apply=a},2071:function(t,e,i){"use strict";var r=i(871),s=i(9546),n=i(4785),a=i(8322);t.exports=function(t,e,i){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new n("`obj` must be an object or a function`");if("string"!=typeof e&&"symbol"!=typeof e)throw new n("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new n("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new n("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new n("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new n("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,h=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],c=!!a&&a(t,e);if(r)r(t,e,{configurable:null===h&&c?c.configurable:!h,enumerable:null===o&&c?c.enumerable:!o,value:i,writable:null===l&&c?c.writable:!l});else if(!u&&(o||l||h))throw new s("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");else t[e]=i}},3859:function(t,e,i){"use strict";var r,s=i(2462),n=i(8322);try{r=[].__proto__===Array.prototype}catch(t){if(!t||"object"!=typeof t||!("code"in t)||"ERR_PROTO_ACCESS"!==t.code)throw t}var a=!!r&&n&&n(Object.prototype,"__proto__"),o=Object,l=o.getPrototypeOf;t.exports=a&&"function"==typeof a.get?s([a.get]):"function"==typeof l&&function(t){return l(null==t?t:o(t))}},871:function(t){"use strict";var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch(t){e=!1}t.exports=e},1247:function(t){"use strict";t.exports=EvalError},6621:function(t){"use strict";t.exports=Error},6136:function(t){"use strict";t.exports=RangeError},252:function(t){"use strict";t.exports=ReferenceError},9546:function(t){"use strict";t.exports=SyntaxError},4785:function(t){"use strict";t.exports=TypeError},1223:function(t){"use strict";t.exports=URIError},8300:function(t){"use strict";t.exports=Object},4680:function(t){var e=Object.prototype.hasOwnProperty,i=Object.prototype.toString;t.exports=function(t,r,s){if("[object Function]"!==i.call(r))throw TypeError("iterator must be a function");var n=t.length;if(n===+n)for(var a=0;a<n;a++)r.call(s,t[a],a,t);else for(var o in t)e.call(t,o)&&r.call(s,t[o],o,t)}},6555:function(t){"use strict";var e=Object.prototype.toString,i=Math.max,r=function(t,e){for(var i=[],r=0;r<t.length;r+=1)i[r]=t[r];for(var s=0;s<e.length;s+=1)i[s+t.length]=e[s];return i},s=function(t,e){for(var i=[],r=e||0,s=0;r<t.length;r+=1,s+=1)i[s]=t[r];return i},n=function(t,e){for(var i="",r=0;r<t.length;r+=1)i+=t[r],r+1<t.length&&(i+=e);return i};t.exports=function(t){var a,o=this;if("function"!=typeof o||"[object Function]"!==e.apply(o))throw TypeError("Function.prototype.bind called on incompatible "+o);
2for(var l=s(arguments,1),h=i(0,o.length-l.length),u=[],c=0;c<h;c++)u[c]="$"+c;if(a=Function("binder","return function ("+n(u,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof a){var e=o.apply(this,r(l,arguments));return Object(e)===e?e:this}return o.apply(t,r(l,arguments))}),o.prototype){var d=function(){};d.prototype=o.prototype,a.prototype=new d,d.prototype=null}return a}},7797:function(t,e,i){"use strict";var r=i(6555);t.exports=Function.prototype.bind||r},1893:function(t,e,i){"use strict";var r,s=i(8300),n=i(6621),a=i(1247),o=i(6136),l=i(252),h=i(9546),u=i(4785),c=i(1223),d=i(4197),f=i(4455),p=i(1295),g=i(6949),y=i(2943),m=i(1721),_=i(3536),b=Function,v=function(t){try{return b('"use strict"; return ('+t+").constructor;")()}catch(t){}},w=i(8322),M=i(871),S=function(){throw new u},E=w?function(){try{return arguments.callee,S}catch(t){try{return w(arguments,"callee").get}catch(t){return S}}}():S,x=i(9131)(),P=i(9717),A=i(45),C=i(7767),N=i(4834),G=i(8772),I={},O="u">typeof Uint8Array&&P?P(Uint8Array):r,T={__proto__:null,"%AggregateError%":"u"<typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"u"<typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":x&&P?P([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%Atomics%":"u"<typeof Atomics?r:Atomics,"%BigInt%":"u"<typeof BigInt?r:BigInt,"%BigInt64Array%":"u"<typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"u"<typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"u"<typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"u"<typeof Float16Array?r:Float16Array,"%Float32Array%":"u"<typeof Float32Array?r:Float32Array,"%Float64Array%":"u"<typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"u"<typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":b,"%GeneratorFunction%":I,"%Int8Array%":"u"<typeof Int8Array?r:Int8Array,"%Int16Array%":"u"<typeof Int16Array?r:Int16Array,"%Int32Array%":"u"<typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
2IteratorPrototype%":x&&P?P(P([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"u"<typeof Map?r:Map,"%MapIteratorPrototype%":"u">typeof Map&&x&&P?P((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":s,"%Object.getOwnPropertyDescriptor%":w,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"u"<typeof Promise?r:Promise,"%Proxy%":"u"<typeof Proxy?r:Proxy,"%RangeError%":o,"%ReferenceError%":l,"%Reflect%":"u"<typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"u"<typeof Set?r:Set,"%SetIteratorPrototype%":"u">typeof Set&&x&&P?P((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"u"<typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":x&&P?P(""[Symbol.iterator]()):r,"%Symbol%":x?Symbol:r,"%SyntaxError%":h,"%ThrowTypeError%":E,"%TypedArray%":O,"%TypeError%":u,"%Uint8Array%":"u"<typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"u"<typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"u"<typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"u"<typeof Uint32Array?r:Uint32Array,"%URIError%":c,"%WeakMap%":"u"<typeof WeakMap?r:WeakMap,"%WeakRef%":"u"<typeof WeakRef?r:WeakRef,"%WeakSet%":"u"<typeof WeakSet?r:WeakSet,"%Function.prototype.call%":G,"%Function.prototype.apply%":N,"%Object.defineProperty%":M,"%Object.getPrototypeOf%":A,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":g,"%Math.pow%":y,"%Math.round%":m,"%Math.sign%":_,"%Reflect.getPrototypeOf%":C};if(P)try{null.error}catch(t){var j=P(P(t));T["%Error.prototype%"]=j}var D=function t(e){var i;if("%AsyncFunction%"===e)i=v("async function () {}");else if("%GeneratorFunction%"===e)i=v("function* () {}");else if("%AsyncGeneratorFunction%"===e)i=v("async function* () {}");else if("%AsyncGenerator%"===e){var r=t("%AsyncGeneratorFunction%");r&&(i=r.prototype)}else if("%AsyncIteratorPrototype%"===e){var s=t("%AsyncGenerator%");s&&P&&(i=P(s.prototype))}return T[e]=i,i},R={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},L=i(7797),k=i(3383),F=L.call(G,Array.prototype.concat),q=L.call(N,Array.prototype.splice),B=L.call(G,String.prototype.replace),U=L.call(G,String.prototype.slice),V=L.call(G,RegExp.prototype.exec),W=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,z=/\\(\\)?/g,K=function(t){var e=U(t,0,1),i=U(t,-1);if("%"===e&&"%"!==i)throw new h("invalid intrinsic syntax, expected closing `%`");if("%"===i&&"%"!==e)throw new h("invalid intrinsic syntax, expected opening `%`");var r=[];
2return B(t,W,function(t,e,i,s){r[r.length]=i?B(s,z,"$1"):e||t}),r},H=function(t,e){var i,r=t;if(k(R,r)&&(r="%"+(i=R[r])[0]+"%"),k(T,r)){var s=T[r];if(s===I&&(s=D(r)),void 0===s&&!e)throw new u("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:r,value:s}}throw new h("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new u('"allowMissing" argument must be a boolean');if(null===V(/^%?[^%]*%?$/,t))throw new h("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=K(t),r=i.length>0?i[0]:"",s=H("%"+r+"%",e),n=s.name,a=s.value,o=!1,l=s.alias;l&&(r=l[0],q(i,F([0,1],l)));for(var c=1,d=!0;c<i.length;c+=1){var f=i[c],p=U(f,0,1),g=U(f,-1);if(('"'===p||"'"===p||"`"===p||'"'===g||"'"===g||"`"===g)&&p!==g)throw new h("property names with quotes must have matching quotes");if("constructor"!==f&&d||(o=!0),r+="."+f,k(T,n="%"+r+"%"))a=T[n];else if(null!=a){if(!(f in a)){if(!e)throw new u("base intrinsic for "+t+" exists, but the property is not available.");return}if(w&&c+1>=i.length){var y=w(a,f);a=(d=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:a[f]}else d=k(a,f),a=a[f];d&&!o&&(T[n]=a)}}return a}},45:function(t,e,i){"use strict";t.exports=i(8300).getPrototypeOf||null},7767:function(t){"use strict";t.exports="u">typeof Reflect&&Reflect.getPrototypeOf||null},9717:function(t,e,i){"use strict";var r=i(7767),s=i(45),n=i(3859);t.exports=r?function(t){return r(t)}:s?function(t){if(!t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("getProto: not an object");return s(t)}:n?function(t){return n(t)}:null},8422:function(t){"use strict";t.exports=Object.getOwnPropertyDescriptor},8322:function(t,e,i){"use strict";var r=i(8422);if(r)try{r([],"length")}catch(t){r=null}t.exports=r},8122:function(t,e,i){"use strict";var r=i(871),s=function(){return!!r};s.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(t){return!0}},t.exports=s},8564:function(t,e,i){"use strict";var r="u">typeof Symbol&&Symbol,s=i(9094);t.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&s()}},9094:function(t){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),i=Object(e);if("string"==typeof e||"[object Symbol]"!==Object.prototype.toString.call(e)||"[object Symbol]"!==Object.prototype.toString.call(i))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var r=Object.getOwnPropertySymbols(t);if(1!==r.length||r[0]!==e||!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var s=Object.getOwnPropertyDescriptor(t,e);if(42!==s.value||!0!==s.enumerable)return!1}return!0}},9131:function(t,e,i){"use strict";var r="u">typeof Symbol&&Symbol,s=i(6313);t.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&s()}},6313:function(t){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),i=Object(e);if("string"==typeof e||"[object Symbol]"!==Object.prototype.toString.call(e)||"[object Symbol]"!==Object.prototype.toString.call(i))return!1;for(var r in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var s=Object.getOwnPropertySymbols(t);if(1!==s.length||s[0]!==e||!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var n=Object.getOwnPropertyDescriptor(t,e);if(42!==n.value||!0!==n.enumerable)return!1}return!0}}
2,3383:function(t,e,i){"use strict";var r=Function.prototype.call,s=Object.prototype.hasOwnProperty;t.exports=i(7797).call(r,s)},1638:function(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}}},6960:function(t){"use strict";var e="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,i=Object.prototype.toString,r=function(t){return(!e||!t||"object"!=typeof t||!(Symbol.toStringTag in t))&&"[object Arguments]"===i.call(t)},s=function(t){return!!r(t)||null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==i.call(t)&&"[object Function]"===i.call(t.callee)},n=function(){return r(arguments)}();r.isLegacyArguments=s,t.exports=n?r:s},8979:function(t){"use strict";var e=Object.prototype.toString,i=Function.prototype.toString,r=/^\s*(?:function)?\*/,s="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,n=Object.getPrototypeOf,a=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(t){}}(),o=a?n(a):{};t.exports=function(t){return"function"==typeof t&&(!!r.test(i.call(t))||(s?n(t)===o:"[object GeneratorFunction]"===e.call(t)))}},9572:function(e,i,r){"use strict";var s=r(4680),n=r(3147),a=r(2982),o=a("Object.prototype.toString"),l=r(8564)()&&"symbol"==typeof Symbol.toStringTag,h=n(),u=a("Array.prototype.indexOf",!0)||function(t,e){for(var i=0;i<t.length;i+=1)if(t[i]===e)return i;return -1},c=a("String.prototype.slice"),d={},f=r(9745),p=Object.getPrototypeOf;l&&f&&p&&s(h,function(e){var i=new t.g[e];if(!(Symbol.toStringTag in i))throw EvalError("this engine has support for Symbol.toStringTag, but "+e+" does not have the property! Please report this.");var r=p(i),s=f(r,Symbol.toStringTag);s||(s=f(p(r),Symbol.toStringTag)),d[e]=s.get});var g=function(t){var e=!1;return s(d,function(i,r){if(!e)try{e=i.call(t)===r}catch(t){}}),e};e.exports=function(t){return!!t&&"object"==typeof t&&(l?!!f&&g(t):u(h,c(o(t),8,-1))>-1)}},4197:function(t){"use strict";t.exports=Math.abs},4455:function(t){"use strict";t.exports=Math.floor},6128:function(t){"use strict";t.exports=Number.isNaN||function(t){return t!=t}},1295:function(t){"use strict";t.exports=Math.max},6949:function(t){"use strict";t.exports=Math.min},2943:function(t){"use strict";t.exports=Math.pow},1721:function(t){"use strict";t.exports=Math.round},3536:function(t,e,i){"use strict";var r=i(6128);t.exports=function(t){return r(t)||0===t?t:t<0?-1:1}},3798:function(t,e,i){"use strict";var r=i(1893),s=i(2071),n=i(8122)(),a=i(8322),o=i(4785),l=r("%Math.floor%");t.exports=function(t,e){if("function"!=typeof t)throw new o("`fn` is not a function");if("number"!=typeof e||e<0||e>0xffffffff||l(e)!==e)throw new o("`length` must be a positive 32-bit integer");var i=arguments.length>2&&!!arguments[2],r=!0,h=!0;if("length"in t&&a){var u=a(t,"length");u&&!u.configurable&&(r=!1),u&&!u.writable&&(h=!1)}return(r||h||!i)&&(n?s(t,"length",e,!0,!0):s(t,"length",e)),t}},3614:function(t){t.exports=function(t){return t instanceof r.Buffer}},7551:function(t,e,i){"use strict";var r=i(6960),s=i(8979),n=i(3051),a=i(9572);function o(t){return t.call.bind(t)}var l="u">typeof BigInt,h="u">typeof Symbol,u=o(Object.prototype.toString),c=o(Number.prototype.valueOf),d=o(String.prototype.valueOf),f=o(Boolean.prototype.valueOf);if(l)var p=o(BigInt.prototype.valueOf);if(h)var g=o(Symbol.prototype.valueOf);function y(t,e){if("object"!=typeof t)return!1;try{return e(t),!0}catch(t){return!1}}function m(t){return"[object Map]"===u(t)}function _(t){return"[object Set]"===u(t)}function b(t){return"[object WeakMap]"===u(t)}function v(t){return"[object WeakSet]"===u(t)}function w(t){return"[object ArrayBuffer]"===u(t)}function M(t){return!("u"<typeof ArrayBuffer)&&(w.working?w(t):t instanceof ArrayBuffer)}function S(t){return"[object DataView]"===u(t)}function E(t){return!("u"<typeof DataView)&&(S.working?S(t):t instanceof DataView)}e.isArgumentsObject=r,e.isGeneratorFunction=s,e.isTypedArray=a,e.isPromise=function(t){return"u">typeof Promise&&t instanceof Promise||null!==t&&"object"==typeof t&&"function"==typeof t.then&&"function"==typeof t.catch},e.isArrayBufferView=function(t){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):a(t)||E(t)},e.isUint8Array=function(t){return"Uint8Array"===n(t)},e.isUint8ClampedArray=function(t){return"Uint8ClampedArray"===n(t)},e.isUint16Array=function(t){return"Uint16Array"===n(t)},e.isUint32Array=function(t){return"Uint32Array"===n(t)},e.isInt8Array=function(t){return"Int8Array"===n(t)},e.isInt16Array=function(t){return"Int16Array"===n(t)},e.isInt32Array=function(t){return"Int32Array"===n(t)},e.isFloat32Array=function(t){return"Float32Array"===n(t)},e.isFloat64Array=function(t){return"Float64Array"===n(t)},e.isBigInt64Array=function(t){return"BigInt64Array"===n(t)},e.isBigUint64Array=function(t){return"BigUint64Array"===n(t)},m.working="u">
2typeof Map&&m(new Map),e.isMap=function(t){return!("u"<typeof Map)&&(m.working?m(t):t instanceof Map)},_.working="u">typeof Set&&_(new Set),e.isSet=function(t){return!("u"<typeof Set)&&(_.working?_(t):t instanceof Set)},b.working="u">typeof WeakMap&&b(new WeakMap),e.isWeakMap=function(t){return!("u"<typeof WeakMap)&&(b.working?b(t):t instanceof WeakMap)},v.working="u">typeof WeakSet&&v(new WeakSet),e.isWeakSet=function(t){return v(t)},w.working="u">typeof ArrayBuffer&&w(new ArrayBuffer),e.isArrayBuffer=M,S.working="u">typeof ArrayBuffer&&"u">typeof DataView&&S(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=E;var x="u">typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function P(t){return"[object SharedArrayBuffer]"===u(t)}function A(t){return void 0!==x&&(void 0===P.working&&(P.working=P(new x)),P.working?P(t):t instanceof x)}function C(t){return y(t,c)}function N(t){return y(t,d)}function G(t){return y(t,f)}function I(t){return l&&y(t,p)}function O(t){return h&&y(t,g)}e.isSharedArrayBuffer=A,e.isAsyncFunction=function(t){return"[object AsyncFunction]"===u(t)},e.isMapIterator=function(t){return"[object Map Iterator]"===u(t)},e.isSetIterator=function(t){return"[object Set Iterator]"===u(t)},e.isGeneratorObject=function(t){return"[object Generator]"===u(t)},e.isWebAssemblyCompiledModule=function(t){return"[object WebAssembly.Module]"===u(t)},e.isNumberObject=C,e.isStringObject=N,e.isBooleanObject=G,e.isBigIntObject=I,e.isSymbolObject=O,e.isBoxedPrimitive=function(t){return C(t)||N(t)||G(t)||I(t)||O(t)},e.isAnyArrayBuffer=function(t){return"u">typeof Uint8Array&&(M(t)||A(t))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(t){Object.defineProperty(e,t,{enumerable:!1,value:function(){throw Error(t+" is not supported in userland")}})})},4268:function(t,e,i){var r=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),i={},r=0;r<e.length;r++)i[e[r]]=Object.getOwnPropertyDescriptor(t,e[r]);return i},n=/%[sdj%]/g;e.format=function(t){if(!b(t)){for(var e=[],i=0;i<arguments.length;i++)e.push(h(arguments[i]));return e.join(" ")}for(var i=1,r=arguments,s=r.length,a=String(t).replace(n,function(t){if("%%"===t)return"%";if(i>=s)return t;switch(t){case"%s":return String(r[i++]);case"%d":return Number(r[i++]);case"%j":try{return JSON.stringify(r[i++])}catch(t){return"[Circular]"}default:return t}}),o=r[i];i<s;o=r[++i])m(o)||!M(o)?a+=" "+o:a+=" "+h(o);return a},e.deprecate=function(t,i){if(void 0!==s.default&&!0===s.default.noDeprecation)return t;if(void 0===s.default)return function(){return e.deprecate(t,i).apply(this,arguments)};var r=!1;return function(){if(!r){if(s.default.throwDeprecation)throw Error(i);s.default.traceDeprecation?console.trace(i):console.error(i),r=!0}return t.apply(this,arguments)}};var a={},o=/^$/;if(s.default.env.NODE_DEBUG){var l=s.default.env.NODE_DEBUG;o=RegExp("^"+(l=l.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase())+"$","i")}function h(t,i){var r={seen:[],stylize:c};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),y(i)?r.showHidden=i:i&&e._extend(r,i),v(r.showHidden)&&(r.showHidden=!1),v(r.depth)&&(r.depth=2),v(r.colors)&&(r.colors=!1),v(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),d(r,t,r.depth)}function u(t,e){var i=h.styles[e];return i?"\x1b["+h.colors[i][0]+"m"+t+"\x1b["+h.colors[i][1]+"m":t}function c(t,e){return t}function d(t,i,r){if(t.customInspect&&i&&x(i.inspect)&&i.inspect!==e.inspect&&!(i.constructor&&i.constructor.prototype===i)){var s,n,a,o,l,h,u=i.inspect(r,t);return b(u)||(u=d(t,u,r)),u}var c=function(t,e){if(v(e))return t.stylize("undefined","undefined");if(b(e)){var i="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(i,"string")}return _(e)?t.stylize(""+e,"number"):y(e)?t.stylize(""+e,"boolean"):m(e)?t.stylize("null","null"):void 0}(t,i);if(c)return c;var M=Object.keys(i),P=(l={},M.forEach(function(t,e){l[t]=!0}),l);
2if(t.showHidden&&(M=Object.getOwnPropertyNames(i)),E(i)&&(M.indexOf("message")>=0||M.indexOf("description")>=0))return f(i);if(0===M.length){if(x(i)){var A=i.name?": "+i.name:"";return t.stylize("[Function"+A+"]","special")}if(w(i))return t.stylize(RegExp.prototype.toString.call(i),"regexp");if(S(i))return t.stylize(Date.prototype.toString.call(i),"date");if(E(i))return f(i)}var C="",G=!1,I=["{","}"];if(g(i)&&(G=!0,I=["[","]"]),x(i)&&(C=" [Function"+(i.name?": "+i.name:"")+"]"),w(i)&&(C=" "+RegExp.prototype.toString.call(i)),S(i)&&(C=" "+Date.prototype.toUTCString.call(i)),E(i)&&(C=" "+f(i)),0===M.length&&(!G||0==i.length))return I[0]+C+I[1];if(r<0)if(w(i))return t.stylize(RegExp.prototype.toString.call(i),"regexp");else return t.stylize("[Object]","special");return t.seen.push(i),h=G?function(t,e,i,r,s){for(var n=[],a=0,o=e.length;a<o;++a)N(e,String(a))?n.push(p(t,e,i,r,String(a),!0)):n.push("");return s.forEach(function(s){s.match(/^\d+$/)||n.push(p(t,e,i,r,s,!0))}),n}(t,i,r,P,M):M.map(function(e){return p(t,i,r,P,e,G)}),t.seen.pop(),s=h,n=C,a=I,o=0,s.reduce(function(t,e){return o++,e.indexOf("\n")>=0&&o++,t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?a[0]+(""===n?"":n+"\n ")+" "+s.join(",\n  ")+" "+a[1]:a[0]+n+" "+s.join(", ")+" "+a[1]}function f(t){return"["+Error.prototype.toString.call(t)+"]"}function p(t,e,i,r,s,n){var a,o,l;if((l=Object.getOwnPropertyDescriptor(e,s)||{value:e[s]}).get?o=l.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):l.set&&(o=t.stylize("[Setter]","special")),N(r,s)||(a="["+s+"]"),!o&&(0>t.seen.indexOf(l.value)?(o=m(i)?d(t,l.value,null):d(t,l.value,i-1)).indexOf("\n")>-1&&(o=n?o.split("\n").map(function(t){return"  "+t}).join("\n").substr(2):"\n"+o.split("\n").map(function(t){return"   "+t}).join("\n")):o=t.stylize("[Circular]","special")),v(a)){if(n&&s.match(/^\d+$/))return o;(a=JSON.stringify(""+s)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+o}function g(t){return Array.isArray(t)}function y(t){return"boolean"==typeof t}function m(t){return null===t}function _(t){return"number"==typeof t}function b(t){return"string"==typeof t}function v(t){return void 0===t}function w(t){return M(t)&&"[object RegExp]"===P(t)}function M(t){return"object"==typeof t&&null!==t}function S(t){return M(t)&&"[object Date]"===P(t)}function E(t){return M(t)&&("[object Error]"===P(t)||t instanceof Error)}function x(t){return"function"==typeof t}function P(t){return Object.prototype.toString.call(t)}function A(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(!a[t=t.toUpperCase()])if(o.test(t)){var i=s.default.pid;a[t]=function(){var r=e.format.apply(e,arguments);console.error("%s %d: %s",t,i,r)}}else a[t]=function(){};return a[t]},e.inspect=h,h.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},h.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=i(7551),e.isArray=g,e.isBoolean=y,e.isNull=m,e.isNullOrUndefined=function(t){return null==t},e.isNumber=_,e.isString=b,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=v,e.isRegExp=w,e.types.isRegExp=w,e.isObject=M,e.isDate=S,e.types.isDate=S,e.isError=E,e.types.isNativeError=E,e.isFunction=x,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=i(3614);var C=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function N(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){var t,i;console.log("%s - %s",(i=[A((t=new Date).getHours()),A(t.getMinutes()),A(t.getSeconds())].join(":"),[t.getDate(),C[t.getMonth()],i].join(" ")),e.format.apply(e,arguments))},e.inherits=i(1638),e._extend=function(t,e){if(!e||!M(e))return t;for(var i=Object.keys(e),r=i.length;r--;)t[i[r]]=e[i[r]];return t};var G="u">typeof Symbol?Symbol("util.promisify.custom"):void 0;function I(t,e){if(!t){var i=Error("Promise was rejected with a falsy value");i.reason=t,t=i}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw TypeError('The "original" argument must be of type Function');if(G&&t[G]){var e=t[G];if("function"!=typeof e)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,G,{value:e,enumerable:!1,writable:!1,
2configurable:!0}),e}function e(){for(var e,i,r=new Promise(function(t,r){e=t,i=r}),s=[],n=0;n<arguments.length;n++)s.push(arguments[n]);s.push(function(t,r){t?i(t):e(r)});try{t.apply(this,s)}catch(t){i(t)}return r}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),G&&Object.defineProperty(e,G,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,r(t))},e.promisify.custom=G,e.callbackify=function(t){if("function"!=typeof t)throw TypeError('The "original" argument must be of type Function');function e(){for(var e=[],i=0;i<arguments.length;i++)e.push(arguments[i]);var r=e.pop();if("function"!=typeof r)throw TypeError("The last argument must be of type Function");var n=this,a=function(){return r.apply(n,arguments)};t.apply(this,e).then(function(t){s.default.nextTick(a.bind(null,null,t))},function(t){s.default.nextTick(I.bind(null,t,a))})}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),Object.defineProperties(e,r(t)),e}},3051:function(e,i,r){"use strict";var s=r(4680),n=r(3147),a=r(2982),o=a("Object.prototype.toString"),l=r(8564)()&&"symbol"==typeof Symbol.toStringTag,h=n(),u=a("String.prototype.slice"),c={},d=r(9745),f=Object.getPrototypeOf;l&&d&&f&&s(h,function(e){if("function"==typeof t.g[e]){var i=new t.g[e];if(!(Symbol.toStringTag in i))throw EvalError("this engine has support for Symbol.toStringTag, but "+e+" does not have the property! Please report this.");var r=f(i),s=d(r,Symbol.toStringTag);s||(s=d(f(r),Symbol.toStringTag)),c[e]=s.get}});var p=function(t){var e=!1;return s(c,function(i,r){if(!e)try{var s=i.call(t);s===r&&(e=s)}catch(t){}}),e},g=r(9572);e.exports=function(t){return!!g(t)&&(l?p(t):u(o(t),8,-1))}},3147:function(e,i,r){"use strict";var s=r(7492);e.exports=function(){return s(["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],function(e){return"function"==typeof t.g[e]})}},9745:function(t,e,i){"use strict";t.exports=i(8322)}},a={};function o(t){var e=a[t];if(void 0!==e)return e.exports;var i=a[t]={exports:{}},r=!0;try{n[t](i,i.exports,o),r=!1}finally{r&&delete a[t]}return i.exports}o.ab="/ROOT/node_modules/.pnpm/[email protected]_@[email protected][email protected]__@[email protected]_@playwrig_51401557ab8004f4e8b52e5b07aeebe0/node_modules/next/dist/compiled/util/",e.exports=o(4268)},342290,(t,e,i)=>{var r=t.i(321831),s={638:function(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}}},329:function(t){"use strict";let e={};function i(t,i,r){r||(r=Error);class s extends r{constructor(t,e,r){super(function(t,e,r){return"string"==typeof i?i:i(t,e,r)}(t,e,r))}}s.prototype.name=r.name,s.prototype.code=t,e[t]=s}function r(t,e){if(!Array.isArray(t))return`of ${e} ${String(t)}`;{let i=t.length;return(t=t.map(t=>String(t)),i>2)?`one of ${e} ${t.slice(0,i-1).join(", ")}, or `+t[i-1]:2===i?`one of ${e} ${t[0]} or ${t[1]}`:`of ${e} ${t[0]}`}}i("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError),i("ERR_INVALID_ARG_TYPE",function(t,e,i){var s,n,a,o;let l,h;if("string"==typeof e&&(s="not ",e.substr(0,s.length)===s)?(l="must not be",e=e.replace(/^not /,"")):l="must be",n=" argument",(void 0===a||a>t.length)&&(a=t.length),t.substring(a-n.length,a)===n)h=`The ${t} ${l} ${r(e,"type")}`;else{let i=("number"!=typeof o&&(o=0),o+1>t.length||-1===t.indexOf(".",o))?"argument":"property";h=`The "${t}" ${i} ${l} ${r(e,"type")}`}return h+`. Received type ${typeof i}`},TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"}),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"}),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_
2UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.F=e},686:function(t,e,i){"use strict";var s=Object.keys||function(t){var e=[];for(var i in t)e.push(i);return e};t.exports=u;var n=i(276),a=i(732);i(638)(u,n);for(var o=s(a.prototype),l=0;l<o.length;l++){var h=o[l];u.prototype[h]||(u.prototype[h]=a.prototype[h])}function u(t){if(!(this instanceof u))return new u(t);n.call(this,t),a.call(this,t),this.allowHalfOpen=!0,t&&(!1===t.readable&&(this.readable=!1),!1===t.writable&&(this.writable=!1),!1===t.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",c)))}function c(){this._writableState.ended||r.default.nextTick(d,this)}function d(t){t.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}})},512:function(t,e,i){"use strict";t.exports=s;var r=i(586);function s(t){if(!(this instanceof s))return new s(t);r.call(this,t)}i(638)(s,r),s.prototype._transform=function(t,e,i){i(null,t)}},276:function(e,i,s){"use strict";e.exports=P,P.ReadableState=x,s(434).EventEmitter;var n,a,o,l,h,u=function(t,e){return t.listeners(e).length},c=s(120),d=s(181).Buffer,f=t.g.Uint8Array||function(){},p=s(23);a=p&&p.debuglog?p.debuglog("stream"):function(){};var g=s(137),y=s(528),m=s(771).getHighWaterMark,_=s(329).F,b=_.ERR_INVALID_ARG_TYPE,v=_.ERR_STREAM_PUSH_AFTER_EOF,w=_.ERR_METHOD_NOT_IMPLEMENTED,M=_.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;s(638)(P,c);var S=y.errorOrDestroy,E=["error","close","destroy","pause","resume"];function x(t,e,i){n=n||s(686),t=t||{},"boolean"!=typeof i&&(i=e instanceof n),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=m(this,t,"readableHighWaterMark",i),this.buffer=new g,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(o||(o=s(319).I),this.decoder=new o(t.encoding),this.encoding=t.encoding)}function P(t){if(n=n||s(686),!(this instanceof P))return new P(t);var e=this instanceof n;this._readableState=new x(t,this,e),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),c.call(this)}function A(t,e,i,r,s){a("readableAddChunk",e);var n,o,l=t._readableState;if(null===e)l.reading=!1,function(t,e){if(a("onEofChunk"),!e.ended){if(e.decoder){var i=e.decoder.end();i&&i.length&&(e.buffer.push(i),e.length+=e.objectMode?1:i.length)}e.ended=!0,e.sync?G(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,I(t)))}}(t,l);else if(s||(o=function(t,e){var i;return d.isBuffer(e)||e instanceof f||"string"==typeof e||void 0===e||t.objectMode||(i=new b("chunk",["string","Buffer","Uint8Array"],e)),i}(l,e)),o)S(t,o);else if(l.objectMode||e&&e.length>0)if("string"==typeof e||l.objectMode||Object.getPrototypeOf(e)===d.prototype||(n=e,e=d.from(n)),r)l.endEmitted?S(t,new M):C(t,l,e,!0);else if(l.ended)S(t,new v);else{if(l.destroyed)return!1;l.reading=!1,l.decoder&&!i?(e=l.decoder.write(e),l.objectMode||0!==e.length?C(t,l,e,!1):O(t,l)):C(t,l,e,!1)}else r||(l.reading=!1,O(t,l));return!l.ended&&(l.length<l.highWaterMark||0===l.length)}function C(t,e,i,r){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",i)):(e.length+=e.objectMode?1:i.length,r?e.buffer.unshift(i):e.buffer.push(i),e.needReadable&&G(t)),O(t,e)}function N(t,e){var i;if(t<=0||0===e.length&&e.ended)return 0;if(e.objectMode)return 1;if(t!=t)if(e.flowing&&e.length)return e.buffer.head.data.length;else return e.length;return(t>e.highWaterMark&&((i=t)>=0x40000000?i=0x40000000:(i--,i|=i>>>1,i|=i>>>2,i|=i>>>4,i|=i>>>8,i|=i>>>16,i++),e.highWaterMark=i),t<=e.length)?t:e.ended?e.length:(e.needReadable=!0,0)}function G(t){var e=t._readableState;a("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(a("emitReadable",e.flowing),e.emittedReadable=!0,r.default.nextTick(I,t))}function I(t){var e=t._readableState;
2a("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,L(t)}function O(t,e){e.readingMore||(e.readingMore=!0,r.default.nextTick(T,t,e))}function T(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){var i=e.length;if(a("maybeReadMore read 0"),t.read(0),i===e.length)break}e.readingMore=!1}function j(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function D(t){a("readable nexttick read 0"),t.read(0)}function R(t,e){a("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),L(t),e.flowing&&!e.reading&&t.read(0)}function L(t){var e=t._readableState;for(a("flow",e.flowing);e.flowing&&null!==t.read(););}function k(t,e){var i;return 0===e.length?null:(e.objectMode?i=e.buffer.shift():!t||t>=e.length?(i=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):i=e.buffer.consume(t,e.decoder),i)}function F(t){var e=t._readableState;a("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,r.default.nextTick(q,e,t))}function q(t,e){if(a("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var i=e._writableState;(!i||i.autoDestroy&&i.finished)&&e.destroy()}}function B(t,e){for(var i=0,r=t.length;i<r;i++)if(t[i]===e)return i;return -1}Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),P.prototype.destroy=y.destroy,P.prototype._undestroy=y.undestroy,P.prototype._destroy=function(t,e){e(t)},P.prototype.push=function(t,e){var i,r=this._readableState;return r.objectMode?i=!0:"string"==typeof t&&((e=e||r.defaultEncoding)!==r.encoding&&(t=d.from(t,e),e=""),i=!0),A(this,t,e,!1,i)},P.prototype.unshift=function(t){return A(this,t,null,!0,!1)},P.prototype.isPaused=function(){return!1===this._readableState.flowing},P.prototype.setEncoding=function(t){o||(o=s(319).I);var e=new o(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var i=this._readableState.buffer.head,r="";null!==i;)r+=e.write(i.data),i=i.next;return this._readableState.buffer.clear(),""!==r&&this._readableState.buffer.push(r),this._readableState.length=r.length,this},P.prototype.read=function(t){a("read",t),t=parseInt(t,10);var e,i=this._readableState,r=t;if(0!==t&&(i.emittedReadable=!1),0===t&&i.needReadable&&((0!==i.highWaterMark?i.length>=i.highWaterMark:i.length>0)||i.ended))return a("read: emitReadable",i.length,i.ended),0===i.length&&i.ended?F(this):G(this),null;if(0===(t=N(t,i))&&i.ended)return 0===i.length&&F(this),null;var s=i.needReadable;return a("need readable",s),(0===i.length||i.length-t<i.highWaterMark)&&a("length less than watermark",s=!0),i.ended||i.reading?a("reading or ended",s=!1):s&&(a("do read"),i.reading=!0,i.sync=!0,0===i.length&&(i.needReadable=!0),this._read(i.highWaterMark),i.sync=!1,i.reading||(t=N(r,i))),null===(e=t>0?k(t,i):null)?(i.needReadable=i.length<=i.highWaterMark,t=0):(i.length-=t,i.awaitDrain=0),0===i.length&&(i.ended||(i.needReadable=!0),r!==t&&i.ended&&F(this)),null!==e&&this.emit("data",e),e},P.prototype._read=function(t){S(this,new w("_read()"))},P.prototype.pipe=function(t,e){var i,s=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t)}n.pipesCount+=1,a("pipe count=%d opts=%j",n.pipesCount,e);var o=e&&!1===e.end||t===r.default.stdout||t===r.default.stderr?y:l;function l(){a("onend"),t.end()}n.endEmitted?r.default.nextTick(o):s.once("end",o),t.on("unpipe",function e(i,r){a("onunpipe"),i===s&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,a("cleanup"),t.removeListener("close",p),t.removeListener("finish",g),t.removeListener("drain",h),t.removeListener("error",f),t.removeListener("unpipe",e),s.removeListener("end",l),s.removeListener("end",y),s.removeListener("data",d),c=!0,n.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&h())});var h=(i=s,function(){var t=i._readableState;a("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&u(i,"data")&&(t.flowing=!0,L(i))});t.on("drain",h);var c=!1;function d(e){a("ondata");var i=t.write(e);a("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===t||n.pipesCount>1&&-1!==B(n.pipes,t))&&!c&&(a("false write response, pause",n.awaitDrain),n.awaitDrain++),s.pause())}function f(e){a("onerror",e),y(),t.removeListener("error",f),0===u(t,"error")&&S(t,e)}function p(){t.removeListener("finish",g),y()}function g(){a("onfinish"),t.removeListener("close",p),y()}function y(){a("unpipe"),s.unpipe(t)}
2return s.on("data",d),!function(t,e,i){if("function"==typeof t.prependListener)return t.prependListener(e,i);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(i):t._events[e]=[i,t._events[e]]:t.on(e,i)}(t,"error",f),t.once("close",p),t.once("finish",g),t.emit("pipe",s),n.flowing||(a("pipe resume"),s.resume()),t},P.prototype.unpipe=function(t){var e=this._readableState,i={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,i)),this;if(!t){var r=e.pipes,s=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var n=0;n<s;n++)r[n].emit("unpipe",this,{hasUnpiped:!1});return this}var a=B(e.pipes,t);return -1===a||(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,i)),this},P.prototype.on=function(t,e){var i=c.prototype.on.call(this,t,e),s=this._readableState;return"data"===t?(s.readableListening=this.listenerCount("readable")>0,!1!==s.flowing&&this.resume()):"readable"!==t||s.endEmitted||s.readableListening||(s.readableListening=s.needReadable=!0,s.flowing=!1,s.emittedReadable=!1,a("on readable",s.length,s.reading),s.length?G(this):s.reading||r.default.nextTick(D,this)),i},P.prototype.addListener=P.prototype.on,P.prototype.removeListener=function(t,e){var i=c.prototype.removeListener.call(this,t,e);return"readable"===t&&r.default.nextTick(j,this),i},P.prototype.removeAllListeners=function(t){var e=c.prototype.removeAllListeners.apply(this,arguments);return("readable"===t||void 0===t)&&r.default.nextTick(j,this),e},P.prototype.resume=function(){var t,e,i=this._readableState;return i.flowing||(a("resume"),i.flowing=!i.readableListening,t=this,(e=i).resumeScheduled||(e.resumeScheduled=!0,r.default.nextTick(R,t,e))),i.paused=!1,this},P.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},P.prototype.wrap=function(t){var e=this,i=this._readableState,r=!1;for(var s in t.on("end",function(){if(a("wrapped end"),i.decoder&&!i.ended){var t=i.decoder.end();t&&t.length&&e.push(t)}e.push(null)}),t.on("data",function(s){a("wrapped data"),i.decoder&&(s=i.decoder.write(s)),i.objectMode&&null==s||(i.objectMode||s&&s.length)&&(e.push(s)||(r=!0,t.pause()))}),t)void 0===this[s]&&"function"==typeof t[s]&&(this[s]=function(e){return function(){return t[e].apply(t,arguments)}}(s));for(var n=0;n<E.length;n++)t.on(E[n],this.emit.bind(this,E[n]));return this._read=function(e){a("wrapped _read",e),r&&(r=!1,t.resume())},this},"function"==typeof Symbol&&(P.prototype[Symbol.asyncIterator]=function(){return void 0===l&&(l=s(531)),l(this)}),Object.defineProperty(P.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(P.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(P.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),P._fromList=k,Object.defineProperty(P.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(P.from=function(t,e){return void 0===h&&(h=s(812)),h(P,t,e)})},586:function(t,e,i){"use strict";t.exports=u;var r=i(329).F,s=r.ERR_METHOD_NOT_IMPLEMENTED,n=r.ERR_MULTIPLE_CALLBACK,a=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=r.ERR_TRANSFORM_WITH_LENGTH_0,l=i(686);function h(t,e){var i=this._transformState;i.transforming=!1;var r=i.writecb;if(null===r)return this.emit("error",new n);i.writechunk=null,i.writecb=null,null!=e&&this.push(e),r(t);var s=this._readableState;s.reading=!1,(s.needReadable||s.length<s.highWaterMark)&&this._read(s.highWaterMark)}function u(t){if(!(this instanceof u))return new u(t);l.call(this,t),this._transformState={afterTransform:h.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",c)}function c(){var t=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush(function(e,i){d(t,e,i)})}function d(t,e,i){if(e)return t.emit("error",e);if(null!=i&&t.push(i),t._writableState.length)throw new o;
2if(t._transformState.transforming)throw new a;return t.push(null)}i(638)(u,l),u.prototype.push=function(t,e){return this._transformState.needTransform=!1,l.prototype.push.call(this,t,e)},u.prototype._transform=function(t,e,i){i(new s("_transform()"))},u.prototype._write=function(t,e,i){var r=this._transformState;if(r.writecb=i,r.writechunk=t,r.writeencoding=e,!r.transforming){var s=this._readableState;(r.needTransform||s.needReadable||s.length<s.highWaterMark)&&this._read(s.highWaterMark)}},u.prototype._read=function(t){var e=this._transformState;null===e.writechunk||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))},u.prototype._destroy=function(t,e){l.prototype._destroy.call(this,t,function(t){e(t)})}},732:function(e,i,s){"use strict";function n(t){var e=this;this.next=null,this.entry=null,this.finish=function(){var i=e,r=t,s=i.entry;for(i.entry=null;s;){var n=s.callback;r.pendingcb--,n(void 0),s=s.next}r.corkedRequestsFree.next=i}}e.exports=P,P.WritableState=x;var a,o,l={deprecate:s(774)},h=s(120),u=s(181).Buffer,c=t.g.Uint8Array||function(){},d=s(528),f=s(771).getHighWaterMark,p=s(329).F,g=p.ERR_INVALID_ARG_TYPE,y=p.ERR_METHOD_NOT_IMPLEMENTED,m=p.ERR_MULTIPLE_CALLBACK,_=p.ERR_STREAM_CANNOT_PIPE,b=p.ERR_STREAM_DESTROYED,v=p.ERR_STREAM_NULL_VALUES,w=p.ERR_STREAM_WRITE_AFTER_END,M=p.ERR_UNKNOWN_ENCODING,S=d.errorOrDestroy;function E(){}function x(t,e,i){a=a||s(686),t=t||{},"boolean"!=typeof i&&(i=e instanceof a),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=f(this,t,"writableHighWaterMark",i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=!1===t.decodeStrings;this.decodeStrings=!o,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var i=t._writableState,s=i.sync,n=i.writecb;if("function"!=typeof n)throw new m;if(i.writing=!1,i.writecb=null,i.length-=i.writelen,i.writelen=0,e)--i.pendingcb,s?(r.default.nextTick(n,e),r.default.nextTick(O,t,i),t._writableState.errorEmitted=!0,S(t,e)):(n(e),t._writableState.errorEmitted=!0,S(t,e),O(t,i));else{var a=G(i)||t.destroyed;a||i.corked||i.bufferProcessing||!i.bufferedRequest||N(t,i),s?r.default.nextTick(C,t,i,a,n):C(t,i,a,n)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}s(638)(P,h),x.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e};try{Object.defineProperty(x.prototype,"buffer",{get:l.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}function P(t){var e=this instanceof(a=a||s(686));if(!e&&!o.call(P,this))return new P(t);this._writableState=new x(t,this,e),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),h.call(this)}function A(t,e,i,r,s,n,a){e.writelen=r,e.writecb=a,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new b("write")):i?t._writev(s,e.onwrite):t._write(s,n,e.onwrite),e.sync=!1}function C(t,e,i,r){var s,n;i||(s=t,0===(n=e).length&&n.needDrain&&(n.needDrain=!1,s.emit("drain"))),e.pendingcb--,r(),O(t,e)}function N(t,e){e.bufferProcessing=!0;var i=e.bufferedRequest;if(t._writev&&i&&i.next){var r=Array(e.bufferedRequestCount),s=e.corkedRequestsFree;s.entry=i;for(var a=0,o=!0;i;)r[a]=i,i.isBuf||(o=!1),i=i.next,a+=1;r.allBuffers=o,A(t,e,!0,e.length,r,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new n(e),e.bufferedRequestCount=0}else{for(;i;){var l=i.chunk,h=i.encoding,u=i.callback,c=e.objectMode?1:l.length;if(A(t,e,!1,c,l,h,u),i=i.next,e.bufferedRequestCount--,e.writing)break}null===i&&(e.lastBufferedRequest=null)}e.bufferedRequest=i,e.bufferProcessing=!1}function G(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function I(t,e){t._final(function(i){e.pendingcb--,i&&S(t,i),e.prefinished=!0,t.emit("prefinish"),O(t,e)})}function O(t,e){var i=G(e);if(i&&(e.prefinished||e.finalCalled||("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,r.default.nextTick(I,t,e))),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var s=t._readableState;(!s||s.autoDestroy&&s.endEmitted)&&t.destroy()}return i}"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(o=Function.prototype[Symbol.hasInstance],Object.defineProperty(P,Symbol.hasInstance,{value:function(t){return!!o.call(this,t)||this===P&&t&&t._writableState instanceof x}})):o=function(t){return t instanceof this},P.prototype.pipe=function(){S(this,new _)}
2,P.prototype.write=function(t,e,i){var s,n,a,o,l,h,d,f=this._writableState,p=!1,y=!f.objectMode&&(s=t,u.isBuffer(s)||s instanceof c);return(y&&!u.isBuffer(t)&&(n=t,t=u.from(n)),"function"==typeof e&&(i=e,e=null),y?e="buffer":e||(e=f.defaultEncoding),"function"!=typeof i&&(i=E),f.ending)?(a=i,S(this,o=new w),r.default.nextTick(a,o)):(y||(l=t,h=i,null===l?d=new v:"string"==typeof l||f.objectMode||(d=new g("chunk",["string","Buffer"],l)),!d||(S(this,d),r.default.nextTick(h,d),0)))&&(f.pendingcb++,p=function(t,e,i,r,s,n){if(!i){var a,o,l=(a=r,o=s,e.objectMode||!1===e.decodeStrings||"string"!=typeof a||(a=u.from(a,o)),a);r!==l&&(i=!0,s="buffer",r=l)}var h=e.objectMode?1:r.length;e.length+=h;var c=e.length<e.highWaterMark;if(c||(e.needDrain=!0),e.writing||e.corked){var d=e.lastBufferedRequest;e.lastBufferedRequest={chunk:r,encoding:s,isBuf:i,callback:n,next:null},d?d.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else A(t,e,!1,h,r,s,n);return c}(this,f,y,t,e,i)),p},P.prototype.cork=function(){this._writableState.corked++},P.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||N(this,t))},P.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new M(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(P.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(P.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),P.prototype._write=function(t,e,i){i(new y("_write()"))},P.prototype._writev=null,P.prototype.end=function(t,e,i){var s,n,a,o=this._writableState;return"function"==typeof t?(i=t,t=null,e=null):"function"==typeof e&&(i=e,e=null),null!=t&&this.write(t,e),o.corked&&(o.corked=1,this.uncork()),o.ending||(s=this,n=o,a=i,n.ending=!0,O(s,n),a&&(n.finished?r.default.nextTick(a):s.once("finish",a)),n.ended=!0,s.writable=!1),this},Object.defineProperty(P.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),P.prototype.destroy=d.destroy,P.prototype._undestroy=d.undestroy,P.prototype._destroy=function(t,e){e(t)}},531:function(t,e,i){"use strict";function s(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var n,a=i(134),o=Symbol("lastResolve"),l=Symbol("lastReject"),h=Symbol("error"),u=Symbol("ended"),c=Symbol("lastPromise"),d=Symbol("handlePromise"),f=Symbol("stream");function p(t,e){return{value:t,done:e}}function g(t){var e=t[o];if(null!==e){var i=t[f].read();null!==i&&(t[c]=null,t[o]=null,t[l]=null,e(p(i,!1)))}}function y(t){r.default.nextTick(g,t)}var m=Object.getPrototypeOf(function(){}),_=Object.setPrototypeOf((s(n={get stream(){return this[f]},next:function(){var t,e,i=this,s=this[h];if(null!==s)return Promise.reject(s);if(this[u])return Promise.resolve(p(void 0,!0));if(this[f].destroyed)return new Promise(function(t,e){r.default.nextTick(function(){i[h]?e(i[h]):t(p(void 0,!0))})});var n=this[c];if(n)e=new Promise((t=this,function(e,i){n.then(function(){t[u]?e(p(void 0,!0)):t[d](e,i)},i)}));else{var a=this[f].read();if(null!==a)return Promise.resolve(p(a,!1));e=new Promise(this[d])}return this[c]=e,e}},Symbol.asyncIterator,function(){return this}),s(n,"return",function(){var t=this;return new Promise(function(e,i){t[f].destroy(null,function(t){t?i(t):e(p(void 0,!0))})})}),n),m);t.exports=function(t){var e,i=Object.create(_,(s(e={},f,{value:t,writable:!0}),s(e,o,{value:null,writable:!0}),s(e,l,{value:null,writable:!0}),s(e,h,{value:null,writable:!0}),s(e,u,{value:t._readableState.endEmitted,writable:!0}),s(e,d,{value:function(t,e){var r=i[f].read();r?(i[c]=null,i[o]=null,i[l]=null,t(p(r,!1))):(i[o]=t,i[l]=e)},writable:!0}),e));return i[c]=null,a(t,function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=i[l];null!==e&&(i[c]=null,i[o]=null,i[l]=null,e(t)),i[h]=t;return}var r=i[o];null!==r&&(i[c]=null,i[o]=null,i[l]=null,r(p(void 0,!0))),i[u]=!0}),t.on("readable",y.bind(null,i)),i}}
2,137:function(t,e,i){"use strict";function r(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,r)}return i}var s=i(181).Buffer,n=i(23).inspect,a=n&&n.custom||"inspect";t.exports=function(){var t;function e(){if(!(this instanceof e))throw TypeError("Cannot call a class as a function");this.head=null,this.tail=null,this.length=0}return t=[{key:"push",value:function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,i=""+e.data;e=e.next;)i+=t+e.data;return i}},{key:"concat",value:function(t){if(0===this.length)return s.alloc(0);for(var e,i,r=s.allocUnsafe(t>>>0),n=this.head,a=0;n;)e=n.data,i=a,s.prototype.copy.call(e,r,i),a+=n.data.length,n=n.next;return r}},{key:"consume",value:function(t,e){var i;return t<this.head.data.length?(i=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):i=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var e=this.head,i=1,r=e.data;for(t-=r.length;e=e.next;){var s=e.data,n=t>s.length?s.length:t;if(n===s.length?r+=s:r+=s.slice(0,t),0==(t-=n)){n===s.length?(++i,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=s.slice(n));break}++i}return this.length-=i,r}},{key:"_getBuffer",value:function(t){var e=s.allocUnsafe(t),i=this.head,r=1;for(i.data.copy(e),t-=i.data.length;i=i.next;){var n=i.data,a=t>n.length?n.length:t;if(n.copy(e,e.length-t,0,a),0==(t-=a)){a===n.length?(++r,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=n.slice(a));break}++r}return this.length-=r,e}},{key:a,value:function(t,e){return n(this,function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?r(Object(i),!0).forEach(function(e){var r,s,n;r=t,s=e,n=i[e],s in r?Object.defineProperty(r,s,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[s]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}({},e,{depth:0,customInspect:!1}))}}],function(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(e.prototype,t),e}()},528:function(t){"use strict";function e(t,e){s(t,e),i(t)}function i(t){t._writableState&&!t._writableState.emitClose||(!t._readableState||t._readableState.emitClose)&&t.emit("close")}function s(t,e){t.emit("error",e)}t.exports={destroy:function(t,n){var a=this,o=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return o||l?n?n(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.default.nextTick(s,this,t)):r.default.nextTick(s,this,t)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!n&&t?a._writableState?a._writableState.errorEmitted?r.default.nextTick(i,a):(a._writableState.errorEmitted=!0,r.default.nextTick(e,a,t)):r.default.nextTick(e,a,t):n?(r.default.nextTick(i,a),n(t)):r.default.nextTick(i,a)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(t,e){var i=t._readableState,r=t._writableState;i&&i.autoDestroy||r&&r.autoDestroy?t.destroy(e):t.emit("error",e)}}}
2,134:function(t,e,i){"use strict";var r=i(329).F.ERR_STREAM_PREMATURE_CLOSE;function s(){}t.exports=function t(e,i,n){if("function"==typeof i)return t(e,null,i);i||(i={}),a=n||s,o=!1,n=function(){if(!o){o=!0;for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];a.apply(this,e)}};var a,o,l=i.readable||!1!==i.readable&&e.readable,h=i.writable||!1!==i.writable&&e.writable,u=function(){e.writable||d()},c=e._writableState&&e._writableState.finished,d=function(){h=!1,c=!0,l||n.call(e)},f=e._readableState&&e._readableState.endEmitted,p=function(){l=!1,f=!0,h||n.call(e)},g=function(t){n.call(e,t)},y=function(){var t;return l&&!f?(e._readableState&&e._readableState.ended||(t=new r),n.call(e,t)):h&&!c?(e._writableState&&e._writableState.ended||(t=new r),n.call(e,t)):void 0},m=function(){e.req.on("finish",d)};return e.setHeader&&"function"==typeof e.abort?(e.on("complete",d),e.on("abort",y),e.req?m():e.on("request",m)):h&&!e._writableState&&(e.on("end",u),e.on("close",u)),e.on("end",p),e.on("finish",d),!1!==i.error&&e.on("error",g),e.on("close",y),function(){e.removeListener("complete",d),e.removeListener("abort",y),e.removeListener("request",m),e.req&&e.req.removeListener("finish",d),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",d),e.removeListener("end",p),e.removeListener("error",g),e.removeListener("close",y)}}},812:function(t,e,i){"use strict";function r(t,e,i,r,s,n,a){try{var o=t[n](a),l=o.value}catch(t){i(t);return}o.done?e(l):Promise.resolve(l).then(r,s)}function s(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,r)}return i}var n=i(329).F.ERR_INVALID_ARG_TYPE;t.exports=function(t,e,i){if(e&&"function"==typeof e.next)a=e;else if(e&&e[Symbol.asyncIterator])a=e[Symbol.asyncIterator]();else if(e&&e[Symbol.iterator])a=e[Symbol.iterator]();else throw new n("iterable",["Iterable"],e);var a,o=new t(function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?s(Object(i),!0).forEach(function(e){var r,s,n;r=t,s=e,n=i[e],s in r?Object.defineProperty(r,s,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[s]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):s(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}({objectMode:!0},i)),l=!1;function h(){return u.apply(this,arguments)}function u(){var t;return t=function*(){try{var t=yield a.next(),e=t.value;t.done?o.push(null):o.push((yield e))?h():l=!1}catch(t){o.destroy(t)}},(u=function(){var e=this,i=arguments;return new Promise(function(s,n){var a=t.apply(e,i);function o(t){r(a,s,n,o,l,"next",t)}function l(t){r(a,s,n,o,l,"throw",t)}o(void 0)})}).apply(this,arguments)}return o._read=function(){l||(l=!0,h())},o}},694:function(t,e,i){"use strict";var r,s=i(329).F,n=s.ERR_MISSING_ARGS,a=s.ERR_STREAM_DESTROYED;function o(t){if(t)throw t}function l(t){t()}function h(t,e){return t.pipe(e)}t.exports=function(){for(var t,e,s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];var d=(t=u).length&&"function"==typeof t[t.length-1]?t.pop():o;if(Array.isArray(u[0])&&(u=u[0]),u.length<2)throw new n("streams");var f=u.map(function(t,s){var n,o,h,c,p,g,y=s<u.length-1;return n=s>0,h=o=function(t){e||(e=t),t&&f.forEach(l),y||(f.forEach(l),d(e))},c=!1,o=function(){c||(c=!0,h.apply(void 0,arguments))},p=!1,t.on("close",function(){p=!0}),void 0===r&&(r=i(134)),r(t,{readable:y,writable:n},function(t){if(t)return o(t);p=!0,o()}),g=!1,function(e){if(!p&&!g){if(g=!0,t.setHeader&&"function"==typeof t.abort)return t.abort();if("function"==typeof t.destroy)return t.destroy();o(e||new a("pipe"))}}});return u.reduce(h)}},771:function(t,e,i){"use strict";var r=i(329).F.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,i,s){var n=null!=e.highWaterMark?e.highWaterMark:s?e[i]:null;if(null!=n){if(!(isFinite(n)&&Math.floor(n)===n)||n<0)throw new r(s?i:"highWaterMark",n);return Math.floor(n)}return t.objectMode?16:16384}}}
2,120:function(t,e,i){t.exports=i(203)},56:function(t,e,i){var r=i(181),s=r.Buffer;function n(t,e){for(var i in t)e[i]=t[i]}function a(t,e,i){return s(t,e,i)}s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?t.exports=r:(n(r,e),e.Buffer=a),a.prototype=Object.create(s.prototype),n(s,a),a.from=function(t,e,i){if("number"==typeof t)throw TypeError("Argument must not be a number");return s(t,e,i)},a.alloc=function(t,e,i){if("number"!=typeof t)throw TypeError("Argument must be a number");var r=s(t);return void 0!==e?"string"==typeof i?r.fill(e,i):r.fill(e):r.fill(0),r},a.allocUnsafe=function(t){if("number"!=typeof t)throw TypeError("Argument must be a number");return s(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw TypeError("Argument must be a number");return r.SlowBuffer(t)}},854:function(t,e,i){t.exports=s;var r=i(434).EventEmitter;function s(){r.call(this)}i(638)(s,r),s.Readable=i(276),s.Writable=i(732),s.Duplex=i(686),s.Transform=i(586),s.PassThrough=i(512),s.finished=i(134),s.pipeline=i(694),s.Stream=s,s.prototype.pipe=function(t,e){var i=this;function s(e){t.writable&&!1===t.write(e)&&i.pause&&i.pause()}function n(){i.readable&&i.resume&&i.resume()}i.on("data",s),t.on("drain",n),t._isStdio||e&&!1===e.end||(i.on("end",o),i.on("close",l));var a=!1;function o(){a||(a=!0,t.end())}function l(){a||(a=!0,"function"==typeof t.destroy&&t.destroy())}function h(t){if(u(),0===r.listenerCount(this,"error"))throw t}function u(){i.removeListener("data",s),t.removeListener("drain",n),i.removeListener("end",o),i.removeListener("close",l),i.removeListener("error",h),t.removeListener("error",h),i.removeListener("end",u),i.removeListener("close",u),t.removeListener("close",u)}return i.on("error",h),t.on("error",h),i.on("end",u),i.on("close",u),t.on("close",u),t.emit("pipe",i),t}},319:function(t,e,i){"use strict";var r=i(56).Buffer,s=r.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 n(t){var e;switch(this.encoding=function(t){var e=function(t){var e;if(!t)return"utf8";for(;;)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&&(r.isEncoding===s||!s(t)))throw Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=l,this.end=h,e=4;break;case"utf8":this.fillLast=o,e=4;break;case"base64":this.text=u,this.end=c,e=3;break;default:this.write=d,this.end=f;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(e)}function a(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function o(t){var e=this.lastTotal-this.lastNeed,i=function(t,e){if((192&e[0])!=128)return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if((192&e[1])!=128)return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&(192&e[2])!=128)return t.lastNeed=2,"�"}}(this,t);return void 0!==i?i:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length)}function l(t,e){if((t.length-e)%2==0){var i=t.toString("utf16le",e);if(i){var r=i.charCodeAt(i.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],i.slice(0,-1)}return i}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function h(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var i=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,i)}return e}function u(t,e){var i=(t.length-e)%3;return 0===i?t.toString("base64",e):(this.lastNeed=3-i,this.lastTotal=3,1===i?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-i))}function c(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function d(t){return t.toString(this.encoding)}function f(t){return t&&t.length?this.write(t):""}e.I=n,n.prototype.write=function(t){var e,i;if(0===t.length)return"";if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";i=this.lastNeed,this.lastNeed=0}else i=0;return i<t.length?e?e+this.text(t,i):this.text(t,i):e||""},n.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e}
2,n.prototype.text=function(t,e){var i=function(t,e,i){var r=e.length-1;if(r<i)return 0;var s=a(e[r]);return s>=0?(s>0&&(t.lastNeed=s-1),s):--r<i||-2===s?0:(s=a(e[r]))>=0?(s>0&&(t.lastNeed=s-2),s):--r<i||-2===s?0:(s=a(e[r]))>=0?(s>0&&(2===s?s=0:t.lastNeed=s-3),s):0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=i;var r=t.length-(i-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",e,r)},n.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}},774:function(e){e.exports=function(t,e){if(i("noDeprecation"))return t;var r=!1;return function(){if(!r){if(i("throwDeprecation"))throw Error(e);i("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}};function i(e){try{if(!t.g.localStorage)return!1}catch(t){return!1}var i=t.g.localStorage[e];return null!=i&&"true"===String(i).toLowerCase()}},181:function(e){"use strict";e.exports=t.r(416218)},434:function(e){"use strict";e.exports=t.r(379666)},203:function(e){"use strict";e.exports=t.r(379666).EventEmitter},23:function(e){"use strict";e.exports=t.r(966718)}},n={};function a(t){var e=n[t];if(void 0!==e)return e.exports;var i=n[t]={exports:{}},r=!0;try{s[t](i,i.exports,a),r=!1}finally{r&&delete n[t]}return i.exports}a.ab="/ROOT/node_modules/.pnpm/[email protected]_@[email protected][email protected]__@[email protected]_@playwrig_51401557ab8004f4e8b52e5b07aeebe0/node_modules/next/dist/compiled/stream-browserify/",e.exports=a(854)},599863,(t,e,i)=>{var r=t.r(416218),s=r.Buffer;function n(t,e){for(var i in t)e[i]=t[i]}function a(t,e,i){return s(t,e,i)}s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?e.exports=r:(n(r,i),i.Buffer=a),n(s,a),a.from=function(t,e,i){if("number"==typeof t)throw TypeError("Argument must not be a number");return s(t,e,i)},a.alloc=function(t,e,i){if("number"!=typeof t)throw TypeError("Argument must be a number");var r=s(t);return void 0!==e?"string"==typeof i?r.fill(e,i):r.fill(e):r.fill(0),r},a.allocUnsafe=function(t){if("number"!=typeof t)throw TypeError("Argument must be a number");return s(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw TypeError("Argument must be a number");return r.SlowBuffer(t)}},768637,(t,e,i)=>{"use strict";var r=t.r(599863).Buffer,s=r.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 n(t){var e;switch(this.encoding=function(t){var e=function(t){var e;if(!t)return"utf8";for(;;)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&&(r.isEncoding===s||!s(t)))throw Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=l,this.end=h,e=4;break;case"utf8":this.fillLast=o,e=4;break;case"base64":this.text=u,this.end=c,e=3;break;default:this.write=d,this.end=f;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(e)}function a(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function o(t){var e=this.lastTotal-this.lastNeed,i=function(t,e){if((192&e[0])!=128)return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if((192&e[1])!=128)return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&(192&e[2])!=128)return t.lastNeed=2,"�"}}(this,t);return void 0!==i?i:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length)}function l(t,e){if((t.length-e)%2==0){var i=t.toString("utf16le",e);if(i){var r=i.charCodeAt(i.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],i.slice(0,-1)}return i}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function h(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var i=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,i)}return e}function u(t,e){var i=(t.length-e)%3;return 0===i?t.toString("base64",e):(this.lastNeed=3-i,this.lastTotal=3,1===i?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-i))}function c(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function d(t){return t.toString(this.encoding)}function f(t){return t&&t.length?this.write(t):""}i.StringDecoder=n,n.prototype.write=function(t){var e,i;if(0===t.length)return"";if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";i=this.lastNeed,this.lastNeed=0}else i=0;return i<t.length?e?e+this.text(t,i):this.text(t,i):e||""},n.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e}
2,n.prototype.text=function(t,e){var i=function(t,e,i){var r=e.length-1;if(r<i)return 0;var s=a(e[r]);return s>=0?(s>0&&(t.lastNeed=s-1),s):--r<i||-2===s?0:(s=a(e[r]))>=0?(s>0&&(t.lastNeed=s-2),s):--r<i||-2===s?0:(s=a(e[r]))>=0?(s>0&&(2===s?s=0:t.lastNeed=s-3),s):0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=i;var r=t.length-(i-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",e,r)},n.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}},135210,(t,e,i)=>{var r=t.i(416218);!function(e){e.parser=function(t,e){return new l(t,e)},e.SAXParser=l,e.SAXStream=u,e.createStream=function(t,e){return new u(t,e)},e.MAX_BUFFER_LENGTH=65536;var i,s,n,a,o=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function l(t,i){if(!(this instanceof l))return new l(t,i);(function(t){for(var e=0,i=o.length;e<i;e++)t[o[e]]=""})(this),this.q=this.c="",this.bufferCheckPosition=e.MAX_BUFFER_LENGTH,this.opt=i||{},this.opt.lowercase=this.opt.lowercase||this.opt.lowercasetags,this.looseCase=this.opt.lowercase?"toLowerCase":"toUpperCase",this.tags=[],this.closed=this.closedRoot=this.sawRoot=!1,this.tag=this.error=null,this.strict=!!t,this.noscript=!!(t||this.opt.noscript),this.state=w.BEGIN,this.strictEntities=this.opt.strictEntities,this.ENTITIES=this.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),this.attribList=[],this.opt.xmlns&&(this.ns=Object.create(f)),void 0===this.opt.unquotedAttributeValues&&(this.opt.unquotedAttributeValues=!t),this.trackPosition=!1!==this.opt.position,this.trackPosition&&(this.position=this.line=this.column=0),S(this,"onready")}e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(t){function e(){}return e.prototype=t,new e}),Object.keys||(Object.keys=function(t){var e=[];for(var i in t)t.hasOwnProperty(i)&&e.push(i);return e}),l.prototype={end:function(){C(this)},write:function(t){if(this.error)throw this.error;if(this.closed)return A(this,"Cannot write after close. Assign an onready handler.");if(null===t)return C(this);"object"==typeof t&&(t=t.toString());for(var i=0,r="";r=D(t,i++),this.c=r,r;)switch(this.trackPosition&&(this.position++,"\n"===r?(this.line++,this.column=0):this.column++),this.state){case w.BEGIN:if(this.state=w.BEGIN_WHITESPACE,"\uFEFF"===r)continue;j(this,r);continue;case w.BEGIN_WHITESPACE:j(this,r);continue;case w.TEXT:if(this.sawRoot&&!this.closedRoot){for(var s=i-1;r&&"<"!==r&&"&"!==r;)(r=D(t,i++))&&this.trackPosition&&(this.position++,"\n"===r?(this.line++,this.column=0):this.column++);this.textNode+=t.substring(s,i-1)}"<"!==r||this.sawRoot&&this.closedRoot&&!this.strict?(_(r)||this.sawRoot&&!this.closedRoot||N(this,"Text data outside of root node."),"&"===r?this.state=w.TEXT_ENTITY:this.textNode+=r):(this.state=w.OPEN_WAKA,this.startTagPosition=this.position);continue;case w.SCRIPT:"<"===r?this.state=w.SCRIPT_ENDING:this.script+=r;continue;case w.SCRIPT_ENDING:"/"===r?this.state=w.CLOSE_TAG:(this.script+="<"+r,this.state=w.SCRIPT);continue;case w.OPEN_WAKA:"!"===r?(this.state=w.SGML_DECL,this.sgmlDecl=""):_(r)||(v(p,r)?(this.state=w.OPEN_TAG,this.tagName=r):"/"===r?(this.state=w.CLOSE_TAG,this.tagName=""):"?"===r?(this.state=w.PROC_INST,this.procInstName=this.procInstBody=""):(N(this,"Unencoded <"),this.startTagPosition+1<this.position&&(r=Array(this.position-this.startTagPosition).join(" ")+r),this.textNode+="<"+r,this.state=w.TEXT));continue;case w.SGML_DECL:if(this.sgmlDecl+r==="--"){this.state=w.COMMENT,this.comment="",this.sgmlDecl="";continue}this.doctype&&!0!==this.doctype&&this.sgmlDecl?(this.state=w.DOCTYPE_DTD,this.doctype+="<!"+this.sgmlDecl+r,this.sgmlDecl=""):"[CDATA["===(this.sgmlDecl+r).toUpperCase()?(E(this,"onopencdata"),this.state=w.CDATA,this.sgmlDecl="",this.cdata=""):"DOCTYPE"===(this.sgmlDecl+r).toUpperCase()?(this.state=w.DOCTYPE,(this.doctype||this.sawRoot)&&N(this,"Inappropriately located doctype declaration"),this.doctype="",this.sgmlDecl=""):">"===r?(E(this,"onsgmldeclaration",this.sgmlDecl),this.sgmlDecl="",this.state=w.TEXT):(b(r)&&(this.state=w.SGML_DECL_QUOTED),this.sgmlDecl+=r);continue;case w.SGML_DECL_QUOTED:r===this.q&&(this.state=w.SGML_DECL,this.q=""),this.sgmlDecl+=r;continue;case w.DOCTYPE:">"===r?(this.state=w.TEXT,E(this,"ondoctype",this.doctype),this.doctype=!0):(this.doctype+=r,"["===r?this.state=w.DOCTYPE_DTD:b(r)&&(this.state=w.DOCTYPE_QUOTED,this.q=r));continue;case w.DOCTYPE_QUOTED:this.doctype+=r,r===this.q&&(this.q="",this.state=w.DOCTYPE);continue;case w.DOCTYPE_DTD:"]"===r?(this.doctype+=r,this.state=w.DOCTYPE):"<"===r?(this.state=w.OPEN_WAKA,this.startTagPosition=this.position):b(r)?(this.doctype+=r,this.state=w.DOCTYPE_DTD_QUOTED,this.q=r):this.doctype+=r;continue;case w.DOCTYPE_DTD_QUOTED:this.doctype+=r,r===this.q&&(this.state=w.DOCTYPE_DTD,this.q="");continue;case w.COMMENT:"-"===r?this.state=w.COMMENT_ENDING:this.comment+=r;continue;case w.COMMENT_ENDING:"-"===r?(this.state=w.COMMENT_ENDED,this.comment=P(this.opt,this.comment),this.comment&&E(this,"oncomment",this.comment),this.comment=""):(this.comment+="-"+r,this.state=w.COMMENT);continue;case w.COMMENT_ENDED:">"!==r?(N(this,"Malformed comment"),this.comment+="--"+r,this.state=w.COMMENT):this.doctype&&!0!==this.doctype?this.state=w.DOCTYPE_DTD:this.state=w.TEXT;continue;case w.CDATA:"]"===r?this.state=w.CDATA_ENDING:this.cdata+=r;continue;case w.CDATA_ENDING:"]"===r?this.state=w.CDATA_ENDING_2:(this.cdata+="]"
2+r,this.state=w.CDATA);continue;case w.CDATA_ENDING_2:">"===r?(this.cdata&&E(this,"oncdata",this.cdata),E(this,"onclosecdata"),this.cdata="",this.state=w.TEXT):"]"===r?this.cdata+="]":(this.cdata+="]]"+r,this.state=w.CDATA);continue;case w.PROC_INST:"?"===r?this.state=w.PROC_INST_ENDING:_(r)?this.state=w.PROC_INST_BODY:this.procInstName+=r;continue;case w.PROC_INST_BODY:!this.procInstBody&&_(r)||("?"===r?this.state=w.PROC_INST_ENDING:this.procInstBody+=r);continue;case w.PROC_INST_ENDING:">"===r?(E(this,"onprocessinginstruction",{name:this.procInstName,body:this.procInstBody}),this.procInstName=this.procInstBody="",this.state=w.TEXT):(this.procInstBody+="?"+r,this.state=w.PROC_INST_BODY);continue;case w.OPEN_TAG:v(g,r)?this.tagName+=r:(!function(t){t.strict||(t.tagName=t.tagName[t.looseCase]());var e=t.tags[t.tags.length-1]||t,i=t.tag={name:t.tagName,attributes:{}};t.opt.xmlns&&(i.ns=e.ns),t.attribList.length=0,E(t,"onopentagstart",i)}(this),">"===r?O(this):"/"===r?this.state=w.OPEN_TAG_SLASH:(_(r)||N(this,"Invalid character in tag name"),this.state=w.ATTRIB));continue;case w.OPEN_TAG_SLASH:">"===r?(O(this,!0),T(this)):(N(this,"Forward-slash in opening tag not followed by >"),this.state=w.ATTRIB);continue;case w.ATTRIB:_(r)||(">"===r?O(this):"/"===r?this.state=w.OPEN_TAG_SLASH:v(p,r)?(this.attribName=r,this.attribValue="",this.state=w.ATTRIB_NAME):N(this,"Invalid attribute name"));continue;case w.ATTRIB_NAME:"="===r?this.state=w.ATTRIB_VALUE:">"===r?(N(this,"Attribute without value"),this.attribValue=this.attribName,I(this),O(this)):_(r)?this.state=w.ATTRIB_NAME_SAW_WHITE:v(g,r)?this.attribName+=r:N(this,"Invalid attribute name");continue;case w.ATTRIB_NAME_SAW_WHITE:if("="===r)this.state=w.ATTRIB_VALUE;else{if(_(r))continue;N(this,"Attribute without value"),this.tag.attributes[this.attribName]="",this.attribValue="",E(this,"onattribute",{name:this.attribName,value:""}),this.attribName="",">"===r?O(this):v(p,r)?(this.attribName=r,this.state=w.ATTRIB_NAME):(N(this,"Invalid attribute name"),this.state=w.ATTRIB)}continue;case w.ATTRIB_VALUE:_(r)||(b(r)?(this.q=r,this.state=w.ATTRIB_VALUE_QUOTED):(this.opt.unquotedAttributeValues||A(this,"Unquoted attribute value"),this.state=w.ATTRIB_VALUE_UNQUOTED,this.attribValue=r));continue;case w.ATTRIB_VALUE_QUOTED:if(r!==this.q){"&"===r?this.state=w.ATTRIB_VALUE_ENTITY_Q:this.attribValue+=r;continue}I(this),this.q="",this.state=w.ATTRIB_VALUE_CLOSED;continue;case w.ATTRIB_VALUE_CLOSED:_(r)?this.state=w.ATTRIB:">"===r?O(this):"/"===r?this.state=w.OPEN_TAG_SLASH:v(p,r)?(N(this,"No whitespace between attributes"),this.attribName=r,this.attribValue="",this.state=w.ATTRIB_NAME):N(this,"Invalid attribute name");continue;case w.ATTRIB_VALUE_UNQUOTED:if(!(">"===(n=r)||_(n))){"&"===r?this.state=w.ATTRIB_VALUE_ENTITY_U:this.attribValue+=r;continue}I(this),">"===r?O(this):this.state=w.ATTRIB;continue;case w.CLOSE_TAG:this.tagName?">"===r?T(this):v(g,r)?this.tagName+=r:this.script?(this.script+="</"+this.tagName,this.tagName="",this.state=w.SCRIPT):(_(r)||N(this,"Invalid tagname in closing tag"),this.state=w.CLOSE_TAG_SAW_WHITE):_(r)||(v(p,r)?this.tagName=r:this.script?(this.script+="</"+r,this.state=w.SCRIPT):N(this,"Invalid tagname in closing tag."));continue;case w.CLOSE_TAG_SAW_WHITE:if(_(r))continue;">"===r?T(this):N(this,"Invalid characters in closing tag");continue;case w.TEXT_ENTITY:case w.ATTRIB_VALUE_ENTITY_Q:case w.ATTRIB_VALUE_ENTITY_U:switch(this.state){case w.TEXT_ENTITY:a=w.TEXT,l="textNode";break;case w.ATTRIB_VALUE_ENTITY_Q:a=w.ATTRIB_VALUE_QUOTED,l="attribValue";break;case w.ATTRIB_VALUE_ENTITY_U:a=w.ATTRIB_VALUE_UNQUOTED,l="attribValue"}if(";"===r){var n,a,l,h=function(t){var e,i=t.entity,r=i.toLowerCase(),s="";return t.ENTITIES[i]?t.ENTITIES[i]:t.ENTITIES[r]?t.ENTITIES[r]:("#"===(i=r).charAt(0)&&(s="x"===i.charAt(1)?(e=parseInt(i=i.slice(2),16)).toString(16):(e=parseInt(i=i.slice(1),10)).toString(10)),i=i.replace(/^0+/,""),isNaN(e)||s.toLowerCase()!==i)?(N(t,"Invalid character entity"),"&"+t.entity+";"):String.fromCodePoint(e)}(this);this.opt.unparsedEntities&&!Object.values(e.XML_ENTITIES).includes(h)?(this.entity="",this.state=a,this.write(h)):(this[l]+=h,this.entity="",this.state=a)}else v(this.entity.length?m:y,r)?this.entity+=r:(N(this,"Invalid character in entity name"),this[l]+="&"+this.entity+r,this.entity="",this.state=a);continue;default:throw Error(this,"Unknown state: "+this.state)}return this.position>=this.bufferCheckPosition&&function(t){for(var i=Math.max(e.MAX_BUFFER_LENGTH,10),r=0,s=0,n=o.length;s<n;s++){var a=t[o[s]].length;if(a>i)switch(o[s]){case"textNode":x(t);break;case"cdata":E(t,"oncdata",t.cdata),t.cdata="";break;case"script":E(t,"onscript",t.script),t.script="";break;default:A(t,"Max buffer length exceeded: "+o[s])}r=Math.max(r,a)}t.bufferCheckPosition=e.MAX_BUFFER_LENGTH-r+t.position}(this),this},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){x(this),""!==this.cdata&&(E(this,"oncdata",this.cdata),this.cdata=""),""!==this.script&&(E(this,"onscript",this.script),this.script="")}};try{a=t.r(342290).Stream}catch(t){a=function(){}}a||(a=function(){});var h=e.EVENTS.filter(function(t){return"error"!==t&&"end"!==t});function u(t,e){if(!(this instanceof u))return new u(t,e);a.apply(this),this._parser=new l(t,e),this.writable=!0,this.readable=!0;var i=this;this._parser.onend=function(){i.emit("end")},this._parser.onerror=function(t){i.emit("error",t),i._parser.error=null},this._decoder=null,h.forEach(function(t){Object.defineProperty(i,"on"
2+t,{get:function(){return i._parser["on"+t]},set:function(e){if(!e)return i.removeAllListeners(t),i._parser["on"+t]=e,e;i.on(t,e)},enumerable:!0,configurable:!1})})}u.prototype=Object.create(a.prototype,{constructor:{value:u}}),u.prototype.write=function(e){if("function"==typeof r.Buffer&&"function"==typeof r.Buffer.isBuffer&&r.Buffer.isBuffer(e)){if(!this._decoder){var i=t.r(768637).StringDecoder;this._decoder=new i("utf8")}e=this._decoder.write(e)}return this._parser.write(e.toString()),this.emit("data",e),!0},u.prototype.end=function(t){return t&&t.length&&this.write(t),this._parser.end(),!0},u.prototype.on=function(t,e){var i=this;return i._parser["on"+t]||-1===h.indexOf(t)||(i._parser["on"+t]=function(){var e=1==arguments.length?[arguments[0]]:Array.apply(null,arguments);e.splice(0,0,t),i.emit.apply(i,e)}),a.prototype.on.call(i,t,e)};var c="http://www.w3.org/XML/1998/namespace",d="http://www.w3.org/2000/xmlns/",f={xml:c,xmlns:d},p=/[:_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-]/,y=/[#:_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]/,m=/[#:_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 _(t){return" "===t||"\n"===t||"\r"===t||"	"===t}function b(t){return'"'===t||"'"===t}function v(t,e){return t.test(e)}var w=0;for(var M in e.STATE={BEGIN:w++,BEGIN_WHITESPACE:w++,TEXT:w++,TEXT_ENTITY:w++,OPEN_WAKA:w++,SGML_DECL:w++,SGML_DECL_QUOTED:w++,DOCTYPE:w++,DOCTYPE_QUOTED:w++,DOCTYPE_DTD:w++,DOCTYPE_DTD_QUOTED:w++,COMMENT_STARTING:w++,COMMENT:w++,COMMENT_ENDING:w++,COMMENT_ENDED:w++,CDATA:w++,CDATA_ENDING:w++,CDATA_ENDING_2:w++,PROC_INST:w++,PROC_INST_BODY:w++,PROC_INST_ENDING:w++,OPEN_TAG:w++,OPEN_TAG_SLASH:w++,ATTRIB:w++,ATTRIB_NAME:w++,ATTRIB_NAME_SAW_WHITE:w++,ATTRIB_VALUE:w++,ATTRIB_VALUE_QUOTED:w++,ATTRIB_VALUE_CLOSED:w++,ATTRIB_VALUE_UNQUOTED:w++,ATTRIB_VALUE_ENTITY_Q:w++,ATTRIB_VALUE_ENTITY_U:w++,CLOSE_TAG:w++,CLOSE_TAG_SAW_WHITE:w++,SCRIPT:w++,SCRIPT_ENDING:w++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.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:1
274,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(e.ENTITIES).forEach(function(t){var i=e.ENTITIES[t],r="number"==typeof i?String.fromCharCode(i):i;e.ENTITIES[t]=r}),e.STATE)e.STATE[e.STATE[M]]=M;function S(t,e,i){t[e]&&t[e](i)}function E(t,e,i){t.textNode&&x(t),S(t,e,i)}function x(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 A(t,e){return x(t),t.trackPosition&&(e+="\nLine: "+t.line+"\nColumn: "+t.column+"\nChar: "+t.c),t.error=e=Error(e),S(t,"onerror",e),t}function C(t){return t.sawRoot&&!t.closedRoot&&N(t,"Unclosed root tag"),t.state!==w.BEGIN&&t.state!==w.BEGIN_WHITESPACE&&t.state!==w.TEXT&&A(t,"Unexpected end"),x(t),t.c="",t.closed=!0,S(t,"onend"),l.call(t,t.strict,t.opt),t}function N(t,e){if("object"!=typeof t||!(t instanceof l))throw Error("bad call to strictFail");t.strict&&A(t,e)}function G(t,e){var i=0>t.indexOf(":")?["",t]:t.split(":"),r=i[0],s=i[1];return e&&"xmlns"===t&&(r="xmlns",s=""),{prefix:r,local:s}}function I(t){if(t.strict||(t.attribName=t.attribName[t.looseCase]()),-1!==t.attribList.indexOf(t.attribName)||t.tag.attributes.hasOwnProperty(t.attribName)){t.attribName=t.attribValue="";return}if(t.opt.xmlns){var e=G(t.attribName,!0),i=e.prefix,r=e.local;if("xmlns"===i)if("xml"===r&&t.attribValue!==c)N(t,"xml: prefix must be bound to "+c+"\nActual: "+t.attribValue);else if("xmlns"===r&&t.attribValue!==d)N(t,"xmlns: prefix must be bound to "+d+"\nActual: "+t.attribValue);else{var s=t.tag,n=t.tags[t.tags.length-1]||t;s.ns===n.ns&&(s.ns=Object.create(n.ns)),s.ns[r]=t.attribValue}t.attribList.push([t.attribName,t.attribValue])}else t.tag.attributes[t.attribName]=t.attribValue,E(t,"onattribute",{name:t.attribName,value:t.attribValue});t.attribName=t.attribValue=""}function O(t,e){if(t.opt.xmlns){var i=t.tag,r=G(t.tagName);i.prefix=r.prefix,i.local=r.local,i.uri=i.ns[r.prefix]||"",i.prefix&&!i.uri&&(N(t,"Unbound namespace prefix: "+JSON.stringify(t.tagName)),i.uri=r.prefix);var s=t.tags[t.tags.length-1]||t;i.ns&&s.ns!==i.ns&&Object.keys(i.ns).forEach(function(e){E(t,"onopennamespace",{prefix:e,uri:i.ns[e]})});for(var n=0,a=t.attribList.length;n<a;n++){var o=t.attribList[n],l=o[0],h=o[1],u=G(l,!0),c=u.prefix,d=u.local,f=""===c?"":i.ns[c]||"",p={name:l,value:h,prefix:c,local:d,uri:f};c&&"xmlns"!==c&&!f&&(N(t,"Unbound namespace prefix: "+JSON.stringify(c)),p.uri=c),t.tag.attributes[l]=
2p,E(t,"onattribute",p)}t.attribList.length=0}t.tag.isSelfClosing=!!e,t.sawRoot=!0,t.tags.push(t.tag),E(t,"onopentag",t.tag),e||(t.noscript||"script"!==t.tagName.toLowerCase()?t.state=w.TEXT:t.state=w.SCRIPT,t.tag=null,t.tagName=""),t.attribName=t.attribValue="",t.attribList.length=0}function T(t){if(!t.tagName){N(t,"Weird empty close tag."),t.textNode+="</>",t.state=w.TEXT;return}if(t.script){if("script"!==t.tagName){t.script+="</"+t.tagName+">",t.tagName="",t.state=w.SCRIPT;return}E(t,"onscript",t.script),t.script=""}var e=t.tags.length,i=t.tagName;t.strict||(i=i[t.looseCase]());for(var r=i;e--;)if(t.tags[e].name!==r)N(t,"Unexpected close tag");else break;if(e<0){N(t,"Unmatched closing tag: "+t.tagName),t.textNode+="</"+t.tagName+">",t.state=w.TEXT;return}t.tagName=i;for(var s=t.tags.length;s-- >e;){var n=t.tag=t.tags.pop();t.tagName=t.tag.name,E(t,"onclosetag",t.tagName);var a={};for(var o in n.ns)a[o]=n.ns[o];var l=t.tags[t.tags.length-1]||t;t.opt.xmlns&&n.ns!==l.ns&&Object.keys(n.ns).forEach(function(e){var i=n.ns[e];E(t,"onclosenamespace",{prefix:e,uri:i})})}0===e&&(t.closedRoot=!0),t.tagName=t.attribValue=t.attribName="",t.attribList.length=0,t.state=w.TEXT}function j(t,e){"<"===e?(t.state=w.OPEN_WAKA,t.startTagPosition=t.position):_(e)||(N(t,"Non-whitespace before first tag."),t.textNode=e,t.state=w.TEXT)}function D(t,e){var i="";return e<t.length&&(i=t.charAt(e)),i}w=e.STATE,String.fromCodePoint||(i=String.fromCharCode,s=Math.floor,n=function(){var t,e,r=[],n=-1,a=arguments.length;if(!a)return"";for(var o="";++n<a;){var l=Number(arguments[n]);if(!isFinite(l)||l<0||l>1114111||s(l)!==l)throw RangeError("Invalid code point: "+l);l<=65535?r.push(l):(l-=65536,t=(l>>10)+55296,e=l%1024+56320,r.push(t,e)),(n+1===a||r.length>16384)&&(o+=i.apply(null,r),r.length=0)}return o},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:n,configurable:!0,writable:!0}):String.fromCodePoint=n)}(i)},881104,(t,e,i)=>{e.exports={isArray:function(t){return Array.isArray?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)}}},835316,(t,e,i)=>{var r=t.r(881104).isArray;e.exports={copyOptions:function(t){var e,i={};for(e in t)t.hasOwnProperty(e)&&(i[e]=t[e]);return i},ensureFlagExists:function(t,e){t in e&&"boolean"==typeof e[t]||(e[t]=!1)},ensureSpacesExists:function(t){"spaces"in t&&("number"==typeof t.spaces||"string"==typeof t.spaces)||(t.spaces=0)},ensureAlwaysArrayExists:function(t){"alwaysArray"in t&&("boolean"==typeof t.alwaysArray||r(t.alwaysArray))||(t.alwaysArray=!1)},ensureKeyExists:function(t,e){t+"Key"in e&&"string"==typeof e[t+"Key"]||(e[t+"Key"]=e.compact?"_"+t:t)},checkFnExists:function(t,e){return t+"Fn"in e}}},256944,(t,e,i)=>{var r,s,n=t.r(135210),a=t.r(835316),o=t.r(881104).isArray;function l(t){var e=Number(t);if(!isNaN(e))return e;var i=t.toLowerCase();return"true"===i||"false"!==i&&t}function h(t,e){var i;if(r.compact){if(!s[r[t+"Key"]]&&(o(r.alwaysArray)?-1!==r.alwaysArray.indexOf(r[t+"Key"]):r.alwaysArray)&&(s[r[t+"Key"]]=[]),s[r[t+"Key"]]&&!o(s[r[t+"Key"]])&&(s[r[t+"Key"]]=[s[r[t+"Key"]]]),t+"Fn"in r&&"string"==typeof e&&(e=r[t+"Fn"](e,s)),"instruction"===t&&("instructionFn"in r||"instructionNameFn"in r)){for(i in e)if(e.hasOwnProperty(i))if("instructionFn"in r)e[i]=r.instructionFn(e[i],i,s);else{var n=e[i];delete e[i],e[r.instructionNameFn(i,n,s)]=n}}o(s[r[t+"Key"]])?s[r[t+"Key"]].push(e):s[r[t+"Key"]]=e}else{s[r.elementsKey]||(s[r.elementsKey]=[]);var a={};if(a[r.typeKey]=t,"instruction"===t){for(i in e)if(e.hasOwnProperty(i))break;a[r.nameKey]="instructionNameFn"in r?r.instructionNameFn(i,e,s):i,r.instructionHasAttributes?(a[r.attributesKey]=e[i][r.attributesKey],"instructionFn"in r&&(a[r.attributesKey]=r.instructionFn(a[r.attributesKey],i,s))):("instructionFn"in r&&(e[i]=r.instructionFn(e[i],i,s)),a[r.instructionKey]=e[i])}else t+"Fn"in r&&(e=r[t+"Fn"](e,s)),a[r[t+"Key"]]=e;r.addParent&&(a[r.parentKey]=s),s[r.elementsKey].push(a)}}function u(t){if("attributesFn"in r&&t&&(t=r.attributesFn(t,s)),(r.trim||"attributeValueFn"in r||"attributeNameFn"in r||r.nativeTypeAttributes)&&t){var e;
2for(e in t)if(t.hasOwnProperty(e)&&(r.trim&&(t[e]=t[e].trim()),r.nativeTypeAttributes&&(t[e]=l(t[e])),"attributeValueFn"in r&&(t[e]=r.attributeValueFn(t[e],e,s)),"attributeNameFn"in r)){var i=t[e];delete t[e],t[r.attributeNameFn(e,t[e],s)]=i}}return t}function c(t){var e={};if(t.body&&("xml"===t.name.toLowerCase()||r.instructionHasAttributes)){for(var i,n=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g;null!==(i=n.exec(t.body));)e[i[1]]=i[2]||i[3]||i[4];e=u(e)}if("xml"===t.name.toLowerCase()){if(r.ignoreDeclaration)return;s[r.declarationKey]={},Object.keys(e).length&&(s[r.declarationKey][r.attributesKey]=e),r.addParent&&(s[r.declarationKey][r.parentKey]=s)}else{if(r.ignoreInstruction)return;r.trim&&(t.body=t.body.trim());var a={};r.instructionHasAttributes&&Object.keys(e).length?(a[t.name]={},a[t.name][r.attributesKey]=e):a[t.name]=t.body,h("instruction",a)}}function d(t,e){var i,n;if("object"==typeof t&&(e=t.attributes,t=t.name),e=u(e),"elementNameFn"in r&&(t=r.elementNameFn(t,s)),r.compact){if(i={},!r.ignoreAttributes&&e&&Object.keys(e).length)for(n in i[r.attributesKey]={},e)e.hasOwnProperty(n)&&(i[r.attributesKey][n]=e[n]);t in s||(o(r.alwaysArray)?-1===r.alwaysArray.indexOf(t):!r.alwaysArray)||(s[t]=[]),s[t]&&!o(s[t])&&(s[t]=[s[t]]),o(s[t])?s[t].push(i):s[t]=i}else s[r.elementsKey]||(s[r.elementsKey]=[]),(i={})[r.typeKey]="element",i[r.nameKey]=t,!r.ignoreAttributes&&e&&Object.keys(e).length&&(i[r.attributesKey]=e),r.alwaysChildren&&(i[r.elementsKey]=[]),s[r.elementsKey].push(i);i[r.parentKey]=s,s=i}function f(t){r.ignoreText||(t.trim()||r.captureSpacesBetweenElements)&&(r.trim&&(t=t.trim()),r.nativeType&&(t=l(t)),r.sanitize&&(t=t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")),h("text",t))}function p(t){r.ignoreComment||(r.trim&&(t=t.trim()),h("comment",t))}function g(t){var e=s[r.parentKey];r.addParent||delete s[r.parentKey],s=e}function y(t){r.ignoreCdata||(r.trim&&(t=t.trim()),h("cdata",t))}function m(t){r.ignoreDoctype||(t=t.replace(/^ /,""),r.trim&&(t=t.trim()),h("doctype",t))}function _(t){t.note=t}e.exports=function(t,e){var i=n.parser(!0,{}),o={};if(s=o,r=a.copyOptions(e),a.ensureFlagExists("ignoreDeclaration",r),a.ensureFlagExists("ignoreInstruction",r),a.ensureFlagExists("ignoreAttributes",r),a.ensureFlagExists("ignoreText",r),a.ensureFlagExists("ignoreComment",r),a.ensureFlagExists("ignoreCdata",r),a.ensureFlagExists("ignoreDoctype",r),a.ensureFlagExists("compact",r),a.ensureFlagExists("alwaysChildren",r),a.ensureFlagExists("addParent",r),a.ensureFlagExists("trim",r),a.ensureFlagExists("nativeType",r),a.ensureFlagExists("nativeTypeAttributes",r),a.ensureFlagExists("sanitize",r),a.ensureFlagExists("instructionHasAttributes",r),a.ensureFlagExists("captureSpacesBetweenElements",r),a.ensureAlwaysArrayExists(r),a.ensureKeyExists("declaration",r),a.ensureKeyExists("instruction",r),a.ensureKeyExists("attributes",r),a.ensureKeyExists("text",r),a.ensureKeyExists("comment",r),a.ensureKeyExists("cdata",r),a.ensureKeyExists("doctype",r),a.ensureKeyExists("type",r),a.ensureKeyExists("name",r),a.ensureKeyExists("elements",r),a.ensureKeyExists("parent",r),a.checkFnExists("doctype",r),a.checkFnExists("instruction",r),a.checkFnExists("cdata",r),a.checkFnExists("comment",r),a.checkFnExists("text",r),a.checkFnExists("instructionName",r),a.checkFnExists("elementName",r),a.checkFnExists("attributeName",r),a.checkFnExists("attributeValue",r),a.checkFnExists("attributes",r),i.opt={strictEntities:!0},i.onopentag=d,i.ontext=f,i.oncomment=p,i.onclosetag=g,i.onerror=_,i.oncdata=y,i.ondoctype=m,i.onprocessinginstruction=c,i.write(t).close(),o[r.elementsKey]){var l=o[r.elementsKey];delete o[r.elementsKey],o[r.elementsKey]=l,delete o.text}return o}},685130,(t,e,i)=>{var r=t.r(835316),s=t.r(256944);e.exports=function(t,e){var i,n,a;return a=r.copyOptions(e),r.ensureSpacesExists(a),i=s(t,a),n="compact"in a&&a.compact?"_parent":"parent",("addParent"in a&&a.addParent?JSON.stringify(i,function(t,e){return t===n?"_":e},a.spaces):JSON.stringify(i,null,a.spaces)).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}},149085,(t,e,i)=>{var r,s,n=t.r(835316),a=t.r(881104).isArray;function o(t,e,i){return(!i&&t.spaces?"\n":"")+Array(e+1).join(t.spaces)}function l(t,e,i){if(e.ignoreAttributes)return"";"attributesFn"in e&&(t=e.attributesFn(t,s,r));var n,a,l,h,u=[];for(n in t)t.hasOwnProperty(n)&&null!==t[n]&&void 0!==t[n]&&(h=e.noQuotesForNativeAttributes&&"string"!=typeof t[n]?"":'"',a=(a=""+t[n]).replace(/"/g,"&quot;"),l="attributeNameFn"in e?e.attributeNameFn(n,a,s,r):n,u.push(e.spaces&&e.indentAttributes?o(e,i+1,!1):" "),u.push(l+"="+h+("attributeValueFn"in e?e.attributeValueFn(a,n,s,r):a)+h));return t&&Object.keys(t).length&&e.spaces&&e.indentAttributes&&u.push(o(e,i,!1)),u.join("")}
2function h(t,e,i){return r=t,s="xml",e.ignoreDeclaration?"":"<?xml"+l(t[e.attributesKey],e,i)+"?>"}function u(t,e,i){if(e.ignoreInstruction)return"";for(n in t)if(t.hasOwnProperty(n))break;var n,a="instructionNameFn"in e?e.instructionNameFn(n,t[n],s,r):n;if("object"==typeof t[n])return r=t,s=a,"<?"+a+l(t[n][e.attributesKey],e,i)+"?>";var o=t[n]?t[n]:"";return"instructionFn"in e&&(o=e.instructionFn(o,n,s,r)),"<?"+a+(o?" "+o:"")+"?>"}function c(t,e){return e.ignoreComment?"":"<!--"+("commentFn"in e?e.commentFn(t,s,r):t)+"-->"}function d(t,e){return e.ignoreCdata?"":"<![CDATA["+("cdataFn"in e?e.cdataFn(t,s,r):t.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function f(t,e){return e.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in e?e.doctypeFn(t,s,r):t)+">"}function p(t,e){return e.ignoreText?"":(t=(t=(t=""+t).replace(/&amp;/g,"&")).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),"textFn"in e?e.textFn(t,s,r):t)}function g(t,e,i){var r;for(r in t)if(t.hasOwnProperty(r))switch(r){case e.parentKey:case e.attributesKey:break;case e.textKey:if(e.indentText||i)return!0;break;case e.cdataKey:if(e.indentCdata||i)return!0;break;case e.instructionKey:if(e.indentInstruction||i)return!0;break;case e.doctypeKey:case e.commentKey:default:return!0}return!1}e.exports=function(t,e){i=e,y=n.copyOptions(i),n.ensureFlagExists("ignoreDeclaration",y),n.ensureFlagExists("ignoreInstruction",y),n.ensureFlagExists("ignoreAttributes",y),n.ensureFlagExists("ignoreText",y),n.ensureFlagExists("ignoreComment",y),n.ensureFlagExists("ignoreCdata",y),n.ensureFlagExists("ignoreDoctype",y),n.ensureFlagExists("compact",y),n.ensureFlagExists("indentText",y),n.ensureFlagExists("indentCdata",y),n.ensureFlagExists("indentAttributes",y),n.ensureFlagExists("indentInstruction",y),n.ensureFlagExists("fullTagEmptyElement",y),n.ensureFlagExists("noQuotesForNativeAttributes",y),n.ensureSpacesExists(y),"number"==typeof y.spaces&&(y.spaces=Array(y.spaces+1).join(" ")),n.ensureKeyExists("declaration",y),n.ensureKeyExists("instruction",y),n.ensureKeyExists("attributes",y),n.ensureKeyExists("text",y),n.ensureKeyExists("comment",y),n.ensureKeyExists("cdata",y),n.ensureKeyExists("doctype",y),n.ensureKeyExists("type",y),n.ensureKeyExists("name",y),n.ensureKeyExists("elements",y),n.checkFnExists("doctype",y),n.checkFnExists("instruction",y),n.checkFnExists("cdata",y),n.checkFnExists("comment",y),n.checkFnExists("text",y),n.checkFnExists("instructionName",y),n.checkFnExists("elementName",y),n.checkFnExists("attributeName",y),n.checkFnExists("attributeValue",y),n.checkFnExists("attributes",y),n.checkFnExists("fullTagEmptyElement",y),e=y;var i,y,m=[];return r=t,s="_root_",e.compact?m.push(function t(e,i,n,y){var m,_,b,v=[];for(_ in e)if(e.hasOwnProperty(_))for(b=a(e[_])?e[_]:[e[_]],m=0;m<b.length;++m){switch(_){case i.declarationKey:v.push(h(b[m],i,n));break;case i.instructionKey:v.push((i.indentInstruction?o(i,n,y):"")+u(b[m],i,n));break;case i.attributesKey:case i.parentKey:break;case i.textKey:v.push((i.indentText?o(i,n,y):"")+p(b[m],i));break;case i.cdataKey:v.push((i.indentCdata?o(i,n,y):"")+d(b[m],i));break;case i.doctypeKey:v.push(o(i,n,y)+f(b[m],i));break;case i.commentKey:v.push(o(i,n,y)+c(b[m],i));break;default:v.push(o(i,n,y)+function(e,i,n,a,h){r=e,s=i;var u="elementNameFn"in n?n.elementNameFn(i,e):i;if(null==e||""===e)return"fullTagEmptyElementFn"in n&&n.fullTagEmptyElementFn(i,e)||n.fullTagEmptyElement?"<"+u+"></"+u+">":"<"+u+"/>";var c=[];if(i){if(c.push("<"+u),"object"!=typeof e)return c.push(">"+p(e,n)+"</"+u+">"),c.join("");e[n.attributesKey]&&c.push(l(e[n.attributesKey],n,a));var d=g(e,n,!0)||e[n.attributesKey]&&"preserve"===e[n.attributesKey]["xml:space"];if(d||(d="fullTagEmptyElementFn"in n?n.fullTagEmptyElementFn(i,e):n.fullTagEmptyElement),!d)return c.push("/>"),c.join("");c.push(">")}return c.push(t(e,n,a+1,!1)),r=e,s=i,i&&c.push((h?o(n,a,!1):"")+"</"+u+">"),c.join("")}(b[m],_,i,n,g(b[m],i)))}y=y&&!v.length}return v.join("")}(t,e,0,!0)):(t[e.declarationKey]&&m.push(h(t[e.declarationKey],e,0)),t[e.elementsKey]&&t[e.elementsKey].length&&m.push(function t(e,i,n,a){return e.reduce(function(e,h){var g,y,m,_=o(i,n,a&&!e);switch(h.type){case"element":return e+_+(r=h,s=h.name,g=[],y="elementNameFn"in i?i.elementNameFn(h.name,h):h.name,g.push("<"+y),h[i.attributesKey]&&g.push(l(h[i.attributesKey],i,n)),(m=h[i.elementsKey]&&h[i.elementsKey].length||h[i.attributesKey]&&"preserve"===h[i.attributesKey]["xml:space"])||(m="fullTagEmptyElementFn"in i?i.fullTagEmptyElementFn(h.name,h):i.fullTagEmptyElement),m?(g.push(">"),h[i.elementsKey]&&h[i.elementsKey].length&&(g.push(t(h[i.elementsKey],i,n+1)),r=h,s=h.name),g.push(i.spaces&&function(t,e){var i;if(t.elements&&t.elements.length)for(i=0;i<t.elements.length;++i)switch(t.elements[i][e.typeKey]){case"text":if(e.indentText)return!0;break;case"cdata":if(e.indentCdata)return!0;break;case"instruction":if(e.indentInstruction)return!0;break;default:return!0}return!1}(h,i)?"\n"+Array(n+1).join(i.spaces):""),g.push("</"+y+">")):g.push("/>"),g.join(""));case"comment":return e+_+c(h[i.commentKey],i);case"doctype":return e+_+f(h[i.doctypeKey],i);case"cdata":return e+(i.indentCdata?_:"")+d(h[i.cdataKey],i);case"text":return e+(i.indentText?_:"")+p(h[i.textKey],i);case"instruction":var b={};return b[h[i.nameKey]]=h[i.attributesKey]?h:h[i.instructionKey],e+(i.indentInstruction?_:"")+u(b,i,n)}},"")}(t[e.elementsKey],e,0,!m.length))),m.join("")}},194535,(t,e,i)=>{var r=t.i(416218),s=t.r(149085);e.exports=function(t,e){t instanceof r.Buffer&&(t=t.toString());var i=null;if("string"==typeof t)try{i=JSON.parse(t)}
2catch(t){throw Error("The JSON structure is invalid")}else i=t;return s(i,e)}},198341,(t,e,i)=>{e.exports={xml2js:t.r(256944),xml2json:t.r(685130),js2xml:t.r(149085),json2xml:t.r(194535)}}]);
3
4//# debugId=c92a40b8-746f-4e5d-8d34-b8a46a122c58

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