@corpsmap/corpsmap 4.1.30 → 4.1.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/corpsmap.es.js +1 -1
- package/dist/corpsmap.umd.js +1 -1
- package/package.json +1 -1
package/dist/corpsmap.es.js
CHANGED
|
@@ -12873,7 +12873,7 @@ const config$1 = {
|
|
|
12873
12873
|
path: "depricated"
|
|
12874
12874
|
}
|
|
12875
12875
|
]
|
|
12876
|
-
}, version = "4.1.
|
|
12876
|
+
}, version = "4.1.33", pkg = {
|
|
12877
12877
|
version
|
|
12878
12878
|
};
|
|
12879
12879
|
console.log("------ RUNNING CORPSMAP V." + pkg.version + " ------");
|
package/dist/corpsmap.umd.js
CHANGED
|
@@ -131,7 +131,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
131
131
|
});
|
|
132
132
|
return [pointStyle, labelStyle];
|
|
133
133
|
}
|
|
134
|
-
)`},{id:13597,parentId:null,layerOrder:2,mapId:646,mapUuid:null,teamId:39,datasetId:716,teamDatasetId:713,serviceType:"XYZ",tiled:1,displayName:"Minor Flooding",description:"Real time forecast values from NOAA. Updated hourly",url:"https://rsgis-testdev.crrel.usace.army.mil/tiles/mstile/m.e847f06e3f0982927900594d68264d61/geom/{z}/{x}/{y}.png?nocache=true",grids:null,layerList:"ahpsfcst_minor",attribution:null,geometryType:"POINT",minzoom:1,maxzoom:22,abstract:null,purpose:null,status:null,keywords:null,localTable:"NOAA.NATIONAL_FCST_VW_MIN",metadataUrl:null,minX:-177.47,maxX:-64.71000000000001,minY:13.43,maxY:72.55,opacity:1,useMapfile:1,queryTemplate:`Location "Location", waterbody "Waterbody", state "State", to_char(fcstdate,'mm/dd/yyyy hh:mi: am') "Forecast Time", forecast||' '||units "Forecast", '<a href="'||url||'" target="_blank"><img src="http://water.weather.gov/resources/hydrographs/'||lower(gaugelid)||'_hg.png" width="300px"/></a>' "Hyperlink", action "Action Level", flood "Flood Level" , moderate "Mod Flood Level", major "Major Flood Level"`,hoverTemplate:`Location "Location", waterbody "Waterbody", state "State", to_char(fcstdate,'mm/dd/yyyy hh:mi: am') "Forecast Time", forecast||' '||units "Forecast", '<a href="'||url||'" target="_blank"><img src="http://water.weather.gov/resources/hydrographs/'||lower(gaugelid)||'_hg.png" width="300px"/></a>' "Hyperlink", action "Action Level", flood "Flood Level" , moderate "Mod Flood Level", major "Major Flood Level"`,queryable:1,visible:0,collapsed:1,idCol:"objectid",shapeCol:"SHAPE",allowEdit:0,allowExport:1,createdBy:"1380992694",createDate:"2017-12-12T13:15:12.000Z",cacheTiles:0,labelDefault:0,labelEnabled:0,deep:2,path:"depricated"}]},version="4.1.30",pkg={version};console.log("------ RUNNING CORPSMAP V."+pkg.version+" ------");let Map$1=class extends React.Component{constructor(t){super(t),this.state={store:null},this.getStore=this.getStore.bind(this)}getStore(){return this.state.store}componentDidMount(){this._isMounted=!0;const{mapConfig:t={},plugins:r=[],height:n,theme:a,themeNavSize:d,basemaps:m,basemapImageIDs:g=[],limitMapExtent:y}=this.props;cache.getAll().then(b=>{if(b.config={default:Object.assign({},config$1,t)},m&&m.forEach(E=>{b.config.default.basemaps.push(E)}),console.log(m),console.log(b),b.config.default.basemapImageIDs=g,n&&(b.vLayout={height:n,hNorth:1,hSouth:0}),a){const E=a.indexOf("bg-")===-1?`bg-${a}`:a;b.theme={theme:E,iconSize:d||"default"}}y&&(b.config.default.limitMapExtent=y);const x=getStore(b);loadPlugins(x,r),window.internalStore=x,this._isMounted&&this.setState({store:x})})}componentWillUnmount(){this._isMounted=!1}render(){const{store:t}=this.state;return t?jsxRuntime.jsx(Provider,{store:t,children:jsxRuntime.jsx(Corpsmap,{...this.props})}):null}},SidebarButton$1=class extends React.Component{constructor(t){super(t),this.clickHandler=this.clickHandler.bind(this)}clickHandler(t){t.preventDefault(),this.props.onClick(t)}render(){const{active:t,iconClass:r,iconStyle:n,iconText:a,expanded:d,label:m,theme:g,title:y,styleOverride:b,onMouseDown:x,onMouseUp:E,themeIconSize:C}=this.props,S=classnames({"cm-nav-btn":!0,"cm-nav-icon":C==="default","cm-nav-icon-lg":C==="large","cm-btn-block":!0,"vertical-toolbar-button":!0,active:t}),R=classnames({"overflow-ellipsis":!0,hidden:!a}),T=classnames({"icon-inline":d,hidden:!!a}),k=classnames({hidden:!d}),L=Object.assign({textAlign:"left"},b);return jsxRuntime.jsxs("div",{className:S+" "+g,onClick:this.clickHandler,onMouseDown:x,onMouseUp:E,style:L,title:y,children:[jsxRuntime.jsx("i",{className:r+" "+T,style:n}),jsxRuntime.jsx("span",{className:R,children:a}),jsxRuntime.jsx("span",{className:k,children:m})]})}};const SidebarButton=connect("selectThemeIconSize",SidebarButton$1);let SidebarPanelOpenerButton$1=class extends React.Component{constructor(t){super(t),this.handleClick=this.handleClick.bind(this)}handleClick(){const{doPrimaryPanelOpen:t,doPrimaryPanelClose:r,title:n,panelComponent:a,panelOptions:d,primaryPanelOpenedBy:m}=this.props;m!==n?t({openedBy:n,options:d,children:[a]}):r()}render(){const{theme:t,label:r,title:n,iconClass:a,iconText:d,styleOverride:m,primaryPanelOpenedBy:g}=this.props;return jsxRuntime.jsx(SidebarButton,{active:g===n,iconClass:a,iconText:d,styleOverride:m,expanded:!1,label:r,title:n,onClick:this.handleClick,theme:t})}};const SidebarPanelOpenerButton=connect("selectTheme","selectPrimaryPanelOpenedBy","doPrimaryPanelOpen","doPrimaryPanelClose",SidebarPanelOpenerButton$1);let BasicToolbarButton$1=class extends React.Component{constructor(t){super(t),this.renderIcon=this.renderIcon.bind(this),this.toggleTool=this.toggleTool.bind(this)}toggleTool(){const{enabled:t,title:r,onActivate:n,onDeactivate:a,basicToolbarActiveTool:d,doBasicToolbarToggle:m}=this.props;t&&(m(d,r),n&&n(),a&&a())}renderIcon(){const{children:t,text:r,title:n,iconClass:a,iconStyle:d,basicToolbarActiveTool:m,dropup:g,themeIconSize:y}=this.props,b=classnames({"cm-nav-btn":!0,"cm-nav-icon":y==="default","cm-nav-icon-lg":y==="large","basic-toolbar-btn":!0,"cm-dropdown-toggle":!0,active:m===n}),x=classnames({mdi:!0,"mdi-menu-down":!g,"mdi-menu-up":g});return t?jsxRuntime.jsxs("div",{onClick:this.toggleTool,className:b,children:[jsxRuntime.jsx("i",{className:a,style:d}),r,jsxRuntime.jsx("i",{className:x})]}):jsxRuntime.jsxs("div",{onClick:this.toggleTool,className:b,style:{textAlign:"center"},children:[jsxRuntime.jsx("i",{className:a,style:d}),r]})}render(){const{theme:t,basicToolbarActiveTool:r,title:n,children:a,dropup:d,passProps:m,basicToolbarOpen:g}=this.props,y=!!(g&&r===n),b=classnames({[t]:!0,"cm-btn-group":!0,open:y}),x=classnames({"basic-toolbar-btn-active":!d,"basic-toolbar-btn-active-top":d,hidden:r!==n});return jsxRuntime.jsxs("div",{className:b,...m,title:n,children:[jsxRuntime.jsx("div",{className:x}),this.renderIcon(),a]})}};const BasicToolbarButton=connect("selectTheme","selectThemeIconSize","selectBasicToolbarActiveTool","selectBasicToolbarOpen","doBasicToolbarActivate","doBasicToolbarDeactivate","doBasicToolbarToggle",BasicToolbarButton$1);class BasicToolbarMenu extends React.Component{render(){return jsxRuntime.jsx("ul",{className:"cm-dropdown-menu",children:this.props.children})}}class BasicToolbarMenuUp extends React.Component{render(){return jsxRuntime.jsx("ul",{className:"cm-dropup-menu",children:this.props.children})}}class BasicToolbarSubmenu extends React.Component{render(){return jsxRuntime.jsx(BasicToolbarMenu,{children:this.props.children})}}class BasicToolbarMenuDivider extends React.Component{render(){return jsxRuntime.jsx("li",{className:"divider"})}}class BasicToolbarMenuItem extends React.Component{constructor(t){super(t),this.state={showSubmenu:!1},this.renderTextContent=this.renderTextContent.bind(this),this.renderSubmenu=this.renderSubmenu.bind(this),this.showSubmenu=this.showSubmenu.bind(this),this.hideSubmenu=this.hideSubmenu.bind(this)}renderTextContent(){const{liveDangerously:t,text:r}=this.props;return t?jsxRuntime.jsx("span",{dangerouslySetInnerHTML:{__html:r}}):r}renderSubmenu(){const{children:t,disableSubmenu:r}=this.props,{showSubmenu:n}=this.state;if(!t)return null;const a=classnames({"pull-right":!0,hidden:r}),d=classnames({open:n});return jsxRuntime.jsxs("div",{className:a,children:[jsxRuntime.jsx("i",{className:"mdi mdi-menu-right"}),jsxRuntime.jsx("div",{style:{position:"relative",top:-31,left:33},className:d,children:t})]})}showSubmenu(){this.setState({showSubmenu:!0})}hideSubmenu(){this.setState({showSubmenu:!1})}renderDisabled(){const{passProps:t,iconClass:r}=this.props;return jsxRuntime.jsx("li",{...t,disabled:!0,children:jsxRuntime.jsxs("span",{children:[jsxRuntime.jsx("i",{className:r}),this.renderTextContent()]})})}render(){const{active:t,passProps:r,onClick:n,iconClass:a,disabled:d,title:m}=this.props;if(d)return this.renderDisabled();const g=classnames({active:t});return jsxRuntime.jsx("li",{className:g,...r,onClick:n,title:m,children:jsxRuntime.jsxs("span",{onMouseOver:this.showSubmenu,onMouseOut:this.hideSubmenu,children:[this.renderSubmenu(),jsxRuntime.jsx("i",{className:a}),this.renderTextContent()]})})}}class SearchInput extends React.Component{constructor(t){super(t),this.updateFilterString=this.updateFilterString.bind(this),this.handleKeyUp=this.handleKeyUp.bind(this),this.setFocus=this.setFocus.bind(this)}updateFilterString(t){const{onUpdate:r}=this.props,n=t.currentTarget.value;r(n)}handleKeyUp(t){const{onKeyUp:r}=this.props;r&&r(t)}setFocus(){this.input.focus()}render(){const{filterString:t,placeholder:r,size:n,inline:a,darkTheme:d}=this.props;let m="cm-form-control";m+=n==="small"?" input-sm":"";const g=n==="small"?"17px":"22px",y=n==="small"?"20px":"30px";return jsxRuntime.jsxs("div",{className:"cm-form-group",style:a?{marginBottom:0}:{},children:[jsxRuntime.jsx("span",{style:{position:"absolute",fontSize:g,top:"10px"},children:jsxRuntime.jsx("i",{className:"mdi mdi-magnify"})}),jsxRuntime.jsx("span",{children:jsxRuntime.jsx("input",{ref:b=>{this.input=b},style:{textIndent:y,color:d?"#ffffff":"inherit"},value:t,type:"text",className:m,placeholder:r,onChange:this.updateFilterString,onKeyUp:this.handleKeyUp})})]})}}class SearchResultsListItem extends React.Component{constructor(t){super(t),this.handleClick=this.handleClick.bind(this)}handleClick(){const{item:t,onClick:r}=this.props;r&&r(t)}render(){const{item:t,selected:r}=this.props,n=classnames({"cm-list-group-item":!0,"search-result-item":!0,"overflow-ellipsis":!0,selected:r});let a=t.secondaryTxt?`${t.displayName} ${t.secondaryTxt}`:`${t.displayName}`;return a=t.prefix?`${t.prefix}: ${a}`:`${a}`,jsxRuntime.jsxs("li",{onClick:this.handleClick,className:n,title:`${a}`,children:[jsxRuntime.jsx("i",{className:t.iconClass+" icon-inline"}),t.displayName,t.secondaryTxt?jsxRuntime.jsx("div",{className:"overflow-ellipsis",style:{marginLeft:"30px"},children:t.secondaryTxt}):null]})}}class SearchResultsList extends React.Component{render(){const{items:t,onItemClick:r,selectedIdx:n}=this.props;return jsxRuntime.jsx("ul",{className:"cm-list-group thin-scrollbar",ref:a=>{this.el=a},style:{position:"absolute",maxHeight:"400px",overflow:"auto"},children:t.map((a,d)=>jsxRuntime.jsx(SearchResultsListItem,{onClick:r,item:a,selected:n===d},d))})}}let LoadingIndicator$1=class extends React.Component{render(){return jsxRuntime.jsx("li",{className:"cm-list-group-item",children:jsxRuntime.jsxs("div",{className:"loading-container",children:[jsxRuntime.jsx("div",{className:"loading-spinner"}),jsxRuntime.jsx("div",{className:"loading-text",children:this.props.text})]})})}};class TreeListFolder extends React.Component{render(){const{item:t,collapsed:r,toggleCollapsed:n}=this.props,a=classnames({mdi:!0,"mdi-folder-open":!r,"mdi-folder":r}),d=classnames({"tree-list-item-hover":!1}),m={display:"inline-block",paddingLeft:"8px"},g=t.children.length;return jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("i",{title:"Click to collapse or expand",onClick:n,className:a,style:{fontSize:"16px",cursor:"pointer"}}),jsxRuntime.jsxs("span",{children:[jsxRuntime.jsx("div",{className:d,style:m,onDoubleClick:n,children:t.displayName}),jsxRuntime.jsx("span",{children:" ("+g+")"})]})]})}}let TreeListItem$2=class extends React.Component{constructor(t){super(t),this.state={collapsed:t.item.collapsed},this.renderItemComponent=this.renderItemComponent.bind(this),this.handleClick=this.handleClick.bind(this),this.toggleCollapsed=this.toggleCollapsed.bind(this)}toggleCollapsed(){this.setState({collapsed:!this.state.collapsed})}handleClick(t){const{item:r,onSelect:n}=this.props;n({ctrl:t.ctrlKey,shift:t.shiftKey,item:r})}renderItemComponent(){const{item:t,components:r,componentMatches:n}=this.props,{collapsed:a}=this.state;if(!t.leaf)return jsxRuntime.jsx(TreeListFolder,{item:t,collapsed:a,toggleCollapsed:this.toggleCollapsed});let d=r[0];if(n.length){for(let m=0;m<n.length;m++)if(_.isMatch(t,n[m])){d=r[m];break}}return jsxRuntime.jsx(d,{item:t})}render(){const{item:t,components:r,componentMatches:n,onSelect:a}=this.props,{collapsed:d}=this.state,m=classnames({"tree-list-item":!0,hidden:!1});return jsxRuntime.jsxs("li",{className:m,onClick:this.handleClick,children:[this.renderItemComponent(),jsxRuntime.jsx(TreeList$1,{items:t.children,item:t,collapsed:d,components:r,componentMatches:n,onSelect:a})]})}},TreeList$1=class extends React.Component{render(){const{items:t,collapsed:r,components:n,componentMatches:a,styleOverride:d,onSelect:m,selected:g,selectable:y}=this.props,b=classnames({"tree-list":!0,hidden:r});return jsxRuntime.jsx("ul",{className:b,style:d,children:t.map(function(x){return jsxRuntime.jsx(TreeListItem$2,{item:x,components:n,componentMatches:a,onSelect:m,selected:g,selectable:y,time:new Date},x.uid)})})}};class TreeView extends React.Component{constructor(t){super(t),this.state={selected:null},this.handleSelect=this.handleSelect.bind(this)}handleSelect(t){this.setState({selected:t})}render(){const{data:t,components:r,componentMatches:n}=this.props,{selected:a}=this.state,d=!t.length&&t.children?t.children:t||[];return jsxRuntime.jsx("div",{children:jsxRuntime.jsx(TreeList$1,{items:d,collapsed:!1,components:r,componentMatches:n,styleOverride:{paddingLeft:0},onSelect:this.handleSelect,selected:a,selectable:!1})})}}let AddGeoJsonButton$1=class extends React.Component{constructor(t){super(t),this.handleClick=this.handleClick.bind(this),this.handleFile=this.handleFile.bind(this)}handleClick(t){this.geojsonInput.click()}handleFile(t){const{doAddDataFile:r}=this.props,n=this.geojsonInput.files[0];r(n)}render(){return jsxRuntime.jsx(BasicToolbarMenuItem,{active:!1,iconClass:"ms ms-geojson icon-inline",title:"Add Local GeoJSON File",text:"Add Local GeoJSON File",onClick:this.handleClick,passProps:{},disableSubmenu:!0,children:jsxRuntime.jsx("input",{onChange:this.handleFile,accept:".geojson,.json",className:"hidden",type:"file",ref:t=>{this.geojsonInput=t}})})}};const AddGeoJsonButton=connect("doAddDataFile",AddGeoJsonButton$1);let AddShapefileButton$1=class extends React.Component{constructor(t){super(t),this.handleClick=this.handleClick.bind(this),this.handleFile=this.handleFile.bind(this)}handleClick(t){this.shapefileInput.click()}handleFile(t){const{doAddDataFile:r}=this.props,n=this.shapefileInput.files[0];r(n)}render(){return jsxRuntime.jsx(BasicToolbarMenuItem,{active:!1,iconClass:"ms ms-shp icon-inline",title:"Add Local Shapefile",text:"Add Local Shapefile",onClick:this.handleClick,passProps:{},disableSubmenu:!0,children:jsxRuntime.jsx("input",{onChange:this.handleFile,accept:".zip",className:"hidden",type:"file",ref:t=>{this.shapefileInput=t}})})}};const AddShapefileButton=connect("doAddDataFile",AddShapefileButton$1);let AddKmlFileButton$1=class extends React.Component{constructor(t){super(t),this.handleClick=this.handleClick.bind(this),this.handleFile=this.handleFile.bind(this)}handleClick(t){this.geojsonInput.click()}handleFile(t){const{doAddDataFile:r}=this.props,n=this.geojsonInput.files[0];r(n)}render(){return jsxRuntime.jsx(BasicToolbarMenuItem,{active:!1,iconClass:"ms ms-kml icon-inline",title:"Add Local KML File",text:"Add Local KML File",onClick:this.handleClick,passProps:{},disableSubmenu:!0,children:jsxRuntime.jsx("input",{onChange:this.handleFile,accept:".kml",className:"hidden",type:"file",ref:t=>{this.geojsonInput=t}})})}};const AddKmlFileButton=connect("doAddDataFile",AddKmlFileButton$1);let AddDataButton$1=class extends React.Component{constructor(t){super(t)}render(){return jsxRuntime.jsx(BasicToolbarButton,{enabled:!0,iconClass:"mdi mdi-plus-box-multiple",title:"Add Data",onDeactivate:()=>{},children:jsxRuntime.jsxs(BasicToolbarMenu,{children:[jsxRuntime.jsx(AddGeoJsonButton,{}),jsxRuntime.jsx(AddShapefileButton,{}),jsxRuntime.jsx(AddKmlFileButton,{})]})})}};const AddDataButton=connect("doNotificationsFire",AddDataButton$1);try{let e=()=>new DecompressionStream("deflate-raw"),t=r=>new Response(r);e(),l=r=>t(t(r).body.pipeThrough(e())).arrayBuffer().then(n=>new Uint8Array(n))}catch{}var l,w$1=new TextDecoder,c=e=>{throw Error("but-unzip~"+e)};function*p(e,t=l){let r=e.length-21,n=r-65536,a=new DataView(e.buffer,e.byteOffset),d=y=>a.getUint16(y+r,1),m=y=>a.getUint32(y+r,1),g=(y,b)=>e.subarray(r+=y,r+=b);for(;r>n&&(r=e.lastIndexOf(80,r-1))+1&&(e[r+1]-75||e[r+2]-5||e[r+3]-6););for(r<0&&c(2),n=d(10),n-d(8)&&c(3),r=m(16);n--;){let y=d(10),b=d(28),x=d(30),E=d(32),C=m(20),S=m(42),R=w$1.decode(g(46,b)),T=w$1.decode(g(x,E)),k=r,L;r=S,L=g(30+d(26)+d(28),C),yield{filename:R,comment:T,read:()=>y-8?y?c(1):L:t(L)},r=k}}const regex$3=/.+\.(shp|dbf|json|prj|cpg)$/i,unzip=async e=>{const t={},r=[];for(const d of p(e))regex$3.test(d.filename)&&r.push(Promise.resolve(d.read()).then(m=>t[d.filename]=m));await Promise.all(r);const n={},a=new TextDecoder;for(const[d,m]of Object.entries(t))d.slice(-3).toLowerCase()==="shp"||d.slice(-3).toLowerCase()==="dbf"?n[d]=new DataView(m.buffer,m.byteOffset,m.byteLength):n[d]=a.decode(m);return n},URL$2=globalThis.URL,combine$2=(e,t)=>{if(!t)return e;const r=new URL$2(e);return r.pathname=`${r.pathname}.${t}`,r.href};async function binaryAjax(e,t){const r=combine$2(e,t),n=t==="prj"||t==="cpg";try{const a=await fetch(r);if(a.status>399)throw new Error(a.statusText);if(n)return a.text();const d=await a.arrayBuffer();return new DataView(d)}catch(a){if(n||t==="dbf")return!1;throw a}}function isClockWise(e){let t=0,r=1;const n=e.length;let a,d;const m=[e[0][0],e[0][1],e[0][0],e[0][1]];for(;r<n;)a=d||e[0],d=e[r],t+=(d[0]-a[0])*(d[1]+a[1]),r++,d[0]<m[0]&&(m[0]=d[0]),d[1]<m[1]&&(m[1]=d[1]),d[0]>m[2]&&(m[2]=d[0]),d[1]>m[3]&&(m[3]=d[1]);return{ring:e,clockWise:t>0,bbox:m,children:[]}}function contains(e,t){return!(e.bbox[0]>t.bbox[0]||e.bbox[1]>t.bbox[1]||e.bbox[2]<t.bbox[2]||e.bbox[3]<t.bbox[3])}function handleRings(e,t=!1){const r=[],n=[];for(const m of e){const g=isClockWise(m);g.clockWise!==t?r.push(g):n.push(g)}const a=[];for(const m of n){let g;for(const y of r)contains(y,m)&&(g?contains(g,y)&&(g=y):g=y);g?g.children.push(m.ring):a.push(m)}if(t)return{outers:r,orphens:a};if(a.length&&!t){const m=handleRings(e,!0);if(m.orphens.length===0){const g=[];for(const y of m.outers)g.push([y.ring.toReversed()].concat(y.children.map(b=>b.toReversed())));return g}}const d=[];for(const m of r)d.push([m.ring].concat(m.children));return d}ParseShp.prototype.parsePoint=function(e){return{type:"Point",coordinates:this.parseCoord(e,0)}},ParseShp.prototype.parseZPoint=function(e){const t=this.parsePoint(e);return t.coordinates.push(e.getFloat64(16,!0)),t},ParseShp.prototype.parsePointArray=function(e,t,r){const n=[];let a=0;for(;a<r;)n.push(this.parseCoord(e,t)),t+=16,a++;return n},ParseShp.prototype.parseZPointArray=function(e,t,r,n){let a=0;for(;a<r;)n[a].push(e.getFloat64(t,!0)),a++,t+=8;return n},ParseShp.prototype.parseArrayGroup=function(e,t,r,n,a){const d=[];let m=0,g,y=0,b;for(;m<n;)m++,r+=4,g=y,m===n?y=a:y=e.getInt32(r,!0),b=y-g,b&&(d.push(this.parsePointArray(e,t,b)),t+=b<<4);return d},ParseShp.prototype.parseZArrayGroup=function(e,t,r,n){let a=0;for(;a<r;)n[a]=this.parseZPointArray(e,t,n[a].length,n[a]),t+=n[a].length<<3,a++;return n},ParseShp.prototype.parseMultiPoint=function(e){const t={},r=e.getInt32(32,!0);if(!r)return null;const n=this.parseCoord(e,0),a=this.parseCoord(e,16);t.bbox=[n[0],n[1],a[0],a[1]];const d=36;return r===1?(t.type="Point",t.coordinates=this.parseCoord(e,d)):(t.type="MultiPoint",t.coordinates=this.parsePointArray(e,d,r)),t},ParseShp.prototype.parseZMultiPoint=function(e){const t=this.parseMultiPoint(e);if(!t)return null;let r;if(t.type==="Point")return t.coordinates.push(e.getFloat64(72,!0)),t;r=t.coordinates.length;const n=52+(r<<4);return t.coordinates=this.parseZPointArray(e,n,r,t.coordinates),t},ParseShp.prototype.parsePolyline=function(e){const t={},r=e.getInt32(32,!0);if(!r)return null;const n=this.parseCoord(e,0),a=this.parseCoord(e,16);t.bbox=[n[0],n[1],a[0],a[1]];const d=e.getInt32(36,!0);let m,g;return r===1?(t.type="LineString",m=44,t.coordinates=this.parsePointArray(e,m,d)):(t.type="MultiLineString",m=40+(r<<2),g=40,t.coordinates=this.parseArrayGroup(e,m,g,r,d)),t},ParseShp.prototype.parseZPolyline=function(e){const t=this.parsePolyline(e);if(!t)return null;const r=t.coordinates.length;let n;return t.type==="LineString"?(n=60+(r<<4),t.coordinates=this.parseZPointArray(e,n,r,t.coordinates),t):(n=56+(t.coordinates.reduce(function(d,m){return d+m.length},0)<<4)+(r<<2),t.coordinates=this.parseZArrayGroup(e,n,r,t.coordinates),t)},ParseShp.prototype.polyFuncs=function(e){return e&&(e.type==="LineString"?(e.type="Polygon",e.coordinates=[e.coordinates],e):(e.coordinates=handleRings(e.coordinates),e.coordinates.length===1?(e.type="Polygon",e.coordinates=e.coordinates[0],e):(e.type="MultiPolygon",e)))},ParseShp.prototype.parsePolygon=function(e){return this.polyFuncs(this.parsePolyline(e))},ParseShp.prototype.parseZPolygon=function(e){return this.polyFuncs(this.parseZPolyline(e))};const shpFuncObj={1:"parsePoint",3:"parsePolyline",5:"parsePolygon",8:"parseMultiPoint",11:"parseZPoint",13:"parseZPolyline",15:"parseZPolygon",18:"parseZMultiPoint"};function makeParseCoord(e){return e?function(t,r){const n=[t.getFloat64(r,!0),t.getFloat64(r+8,!0)];return e.inverse(n)}:function(t,r){return[t.getFloat64(r,!0),t.getFloat64(r+8,!0)]}}function ParseShp(e,t){if(!(this instanceof ParseShp))return new ParseShp(e,t);this.buffer=e,this.headers=this.parseHeader(),this.shpFuncs(t),this.rows=this.getRows()}ParseShp.prototype.shpFuncs=function(e){let t=this.headers.shpCode;if(t>20&&(t-=20),!(t in shpFuncObj))throw new Error(`I don't know shp type "${t}"`);this.parseFunc=this[shpFuncObj[t]],this.parseCoord=makeParseCoord(e)},ParseShp.prototype.getShpCode=function(){return this.parseHeader().shpCode},ParseShp.prototype.parseHeader=function(){const e=this.buffer;return{length:e.getInt32(24)<<1,version:e.getInt32(28,!0),shpCode:e.getInt32(32,!0),bbox:[e.getFloat64(36,!0),e.getFloat64(44,!0),e.getFloat64(52,!0),e.getFloat64(60,!0)]}},ParseShp.prototype.getRows=function(){let e=100;const t=this.buffer.byteLength-8,r=[];let n;for(;e<=t&&(n=this.getRow(e),!!n);)e+=8,e+=n.len,n.type?r.push(this.parseFunc(n.data)):r.push(null);return r},ParseShp.prototype.getRow=function(e){const t=this.buffer.getInt32(e),r=this.buffer.getInt32(e+4)<<1;if(r===0)return{id:t,len:r,type:0};if(!(e+r+8>this.buffer.byteLength))return{id:t,len:r,data:new DataView(this.buffer.buffer,this.buffer.byteOffset+e+12,r-4),type:this.buffer.getInt32(e+8,!0)}};function parseShp(e,t){return new ParseShp(e,t).rows}var regex$2=/^(?:ANSI\s)?(\d+)$/m;function createDecoder(e,t){if(!e)return n;try{new TextDecoder(e.trim())}catch{var r=regex$2.exec(e);return r&&!t?createDecoder("windows-"+r[1],!0):(e=void 0,n)}return n;function n(a){var d=new TextDecoder(e||void 0),m=d.decode(a,{stream:!0})+d.decode();return m.replace(/\0/g,"").trim()}}function dbfHeader(e){var t={};return t.lastUpdated=new Date(e.getUint8(1)+1900,e.getUint8(2),e.getUint8(3)),t.records=e.getUint32(4,!0),t.headerLen=e.getUint16(8,!0),t.recLen=e.getUint16(10,!0),t}function dbfRowHeader(e,t,r){for(var n=[],a=32;a<t&&(n.push({name:r(new Uint8Array(e.buffer.slice(e.byteOffset+a,e.byteOffset+a+11))),dataType:String.fromCharCode(e.getUint8(a+11)),len:e.getUint8(a+16),decimal:e.getUint8(a+17)}),e.getUint8(a+32)!==13);)a+=32;return n}function rowFuncs(e,t,r,n,a){const d=new Uint8Array(e.buffer.slice(e.byteOffset+t,e.byteOffset+t+r));var m=a(d);switch(n){case"N":case"F":case"O":return parseFloat(m,10);case"D":return new Date(m.slice(0,4),parseInt(m.slice(4,6),10)-1,m.slice(6,8));case"L":return m.toLowerCase()==="y"||m.toLowerCase()==="t";default:return m}}function parseRow(e,t,r,n){for(var a={},d=0,m=r.length,g,y;d<m;)y=r[d],g=rowFuncs(e,t,y.len,y.dataType,n),t+=y.len,typeof g<"u"&&(a[y.name]=g),d++;return a}function parseDbf(e,t){for(var r=createDecoder(t),n=dbfHeader(e),a=dbfRowHeader(e,n.headerLen-1,r),d=(a.length+1<<5)+2,m=n.recLen,g=n.records,y=[];g;)y.push(parseRow(e,d,a,r)),d+=m,g--;return y}const URL$1=globalThis.URL,toUitn8Arr=e=>{if(!e)throw new Error("forgot to pass buffer");if(isArrayBuffer(e))return new Uint8Array(e);if(isArrayBuffer(e.buffer))return e.BYTES_PER_ELEMENT===1?e:new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("invalid buffer like object")},txtDecoder=new TextDecoder,toString=e=>{if(e){if(typeof e=="string")return e;if(isArrayBuffer(e)||ArrayBuffer.isView(e)||isDataView(e))return txtDecoder.decode(e)}},toDataView=e=>{if(!e)throw new Error("forgot to pass buffer");if(isDataView(e))return e;if(isArrayBuffer(e))return new DataView(e);if(isArrayBuffer(e.buffer))return new DataView(e.buffer,e.byteOffset,e.byteLength);throw new Error("invalid buffer like object")};function isArrayBuffer(e){return e instanceof globalThis.ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]"}function isDataView(e){return e instanceof globalThis.DataView||Object.prototype.toString.call(e)==="[object DataView]"}const combine$1=function([e,t]){const r={};r.type="FeatureCollection",r.features=[];let n=0;const a=e.length;for(t||(t=[]);n<a;)r.features.push({type:"Feature",geometry:e[n],properties:t[n]||{}}),n++;return r},parseZip=async function(e,t){let r;e=toUitn8Arr(e);const n=await unzip(e),a=[];t=t||[];for(r in n)r.indexOf("__MACOSX")===-1&&(r.slice(-4).toLowerCase()===".shp"?(a.push(r.slice(0,-4)),n[r.slice(0,-3)+r.slice(-3).toLowerCase()]=n[r]):r.slice(-4).toLowerCase()===".prj"?n[r.slice(0,-3)+r.slice(-3).toLowerCase()]=proj4(n[r]):r.slice(-5).toLowerCase()===".json"||t.indexOf(r.split(".").pop())>-1?a.push(r.slice(0,-3)+r.slice(-3).toLowerCase()):(r.slice(-4).toLowerCase()===".dbf"||r.slice(-4).toLowerCase()===".cpg")&&(n[r.slice(0,-3)+r.slice(-3).toLowerCase()]=n[r]));if(!a.length)throw new Error("no layers founds");const d=a.map(function(m){let g,y;const b=m.lastIndexOf(".");return b>-1&&m.slice(b).indexOf("json")>-1?(g=JSON.parse(n[m]),g.fileName=m.slice(0,b)):t.indexOf(m.slice(b+1))>-1?(g=n[m],g.fileName=m):(n[m+".dbf"]&&(y=parseDbf(n[m+".dbf"],n[m+".cpg"])),g=combine$1([parseShp(n[m+".shp"],n[m+".prj"]),y]),g.fileName=m),g});return d.length===1?d[0]:d};async function getZip(e,t){const r=await binaryAjax(e);return parseZip(r,t)}const handleShp=async e=>{const t=await Promise.all([binaryAjax(e,"shp"),binaryAjax(e,"prj")]);let r=!1;try{t[1]&&(r=proj4(t[1]))}catch{r=!1}return parseShp(t[0],r)},handleDbf=async e=>{const[t,r]=await Promise.all([binaryAjax(e,"dbf"),binaryAjax(e,"cpg")]);if(t)return parseDbf(t,r)},checkSuffix=(e,t)=>new URL$1(e,globalThis?.document?.location).pathname.slice(-4).toLowerCase()===t,fromObject=({shp:e,dbf:t,cpg:r,prj:n})=>{const a=[_parseShp(e,n)];return t&&a.push(_parseDbf(t,r)),combine$1(a)},getShapefile=async function(e,t){if(typeof e!="string"){if(isArrayBuffer(e)||ArrayBuffer.isView(e)||isDataView(e))return parseZip(e);if(e.shp)return fromObject(e);throw new TypeError("must be a string, some sort of Buffer, or an object with at least a .shp property")}if(checkSuffix(e,".zip"))return getZip(e,t);checkSuffix(e,".shp")&&(e=e.slice(0,-4));const r=await Promise.all([handleShp(e),handleDbf(e)]);return combine$1(r)},_parseShp=function(e,t){if(e=toDataView(e),t=toString(t),typeof t=="string")try{t=proj4(t)}catch{t=!1}return parseShp(e,t)},_parseDbf=function(e,t){return e=toDataView(e),t=toString(t),parseDbf(e,t)};var togeojson={exports:{}},lib$1={},dom={},conventions={},hasRequiredConventions;function requireConventions(){if(hasRequiredConventions)return conventions;hasRequiredConventions=1;function e(y,b,x){if(x===void 0&&(x=Array.prototype),y&&typeof x.find=="function")return x.find.call(y,b);for(var E=0;E<y.length;E++)if(Object.prototype.hasOwnProperty.call(y,E)){var C=y[E];if(b.call(void 0,C,E,y))return C}}function t(y,b){return b===void 0&&(b=Object),b&&typeof b.freeze=="function"?b.freeze(y):y}function r(y,b){if(y===null||typeof y!="object")throw new TypeError("target is not an object");for(var x in b)Object.prototype.hasOwnProperty.call(b,x)&&(y[x]=b[x]);return y}var n=t({HTML:"text/html",isHTML:function(y){return y===n.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),a=t({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(y){return y===a.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"}),d=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,m=new RegExp("[\\-\\.0-9"+d.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),g=new RegExp("^"+d.source+m.source+"*(?::"+d.source+m.source+"*)?$");return conventions.assign=r,conventions.find=e,conventions.freeze=t,conventions.MIME_TYPE=n,conventions.NAMESPACE=a,conventions.nameStartChar=d,conventions.nameChar=m,conventions.tagNamePattern=g,conventions}var hasRequiredDom;function requireDom(){if(hasRequiredDom)return dom;hasRequiredDom=1;var e=requireConventions(),t=e.find,r=e.NAMESPACE,n=e.tagNamePattern;function a(F){return F!==""}function d(F){return F?F.split(/[\t\n\f\r ]+/).filter(a):[]}function m(F,U){return F.hasOwnProperty(U)||(F[U]=!0),F}function g(F){if(!F)return[];var U=d(F);return Object.keys(U.reduce(m,{}))}function y(F){return function(U){return F&&F.indexOf(U)!==-1}}function b(F,U){for(var J in F)Object.prototype.hasOwnProperty.call(F,J)&&(U[J]=F[J])}function x(F,U){var J=F.prototype;if(!(J instanceof U)){let se=function(){};se.prototype=U.prototype,se=new se,b(J,se),F.prototype=J=se}J.constructor!=F&&(typeof F!="function"&&console.error("unknown Class:"+F),J.constructor=F)}var E={},C=E.ELEMENT_NODE=1,S=E.ATTRIBUTE_NODE=2,R=E.TEXT_NODE=3,T=E.CDATA_SECTION_NODE=4,k=E.ENTITY_REFERENCE_NODE=5,L=E.ENTITY_NODE=6,q=E.PROCESSING_INSTRUCTION_NODE=7,O=E.COMMENT_NODE=8,G=E.DOCUMENT_NODE=9,V=E.DOCUMENT_TYPE_NODE=10,Y=E.DOCUMENT_FRAGMENT_NODE=11,z=E.NOTATION_NODE=12,W={},X={};W.INDEX_SIZE_ERR=(X[1]="Index size error",1),W.DOMSTRING_SIZE_ERR=(X[2]="DOMString size error",2);var ee=W.HIERARCHY_REQUEST_ERR=(X[3]="Hierarchy request error",3);W.WRONG_DOCUMENT_ERR=(X[4]="Wrong document",4);var te=W.INVALID_CHARACTER_ERR=(X[5]="Invalid character",5);W.NO_DATA_ALLOWED_ERR=(X[6]="No data allowed",6),W.NO_MODIFICATION_ALLOWED_ERR=(X[7]="No modification allowed",7);var ae=W.NOT_FOUND_ERR=(X[8]="Not found",8);W.NOT_SUPPORTED_ERR=(X[9]="Not supported",9);var ie=W.INUSE_ATTRIBUTE_ERR=(X[10]="Attribute in use",10),oe=W.INVALID_STATE_ERR=(X[11]="Invalid state",11);W.SYNTAX_ERR=(X[12]="Syntax error",12),W.INVALID_MODIFICATION_ERR=(X[13]="Invalid modification",13),W.NAMESPACE_ERR=(X[14]="Invalid namespace",14),W.INVALID_ACCESS_ERR=(X[15]="Invalid access",15);function K(F,U){if(U instanceof Error)var J=U;else J=this,Error.call(this,X[F]),this.message=X[F],Error.captureStackTrace&&Error.captureStackTrace(this,K);return J.code=F,U&&(this.message=this.message+": "+U),J}K.prototype=Error.prototype,b(W,K);function ue(){}ue.prototype={length:0,item:function(F){return F>=0&&F<this.length?this[F]:null},toString:function(F,U,J){for(var se=!!J&&!!J.requireWellFormed,me=[],Ee=0;Ee<this.length;Ee++)ur(this[Ee],me,F,U,null,se);return me.join("")},filter:function(F){return Array.prototype.filter.call(this,F)},indexOf:function(F){return Array.prototype.indexOf.call(this,F)}};function pe(F,U){this._node=F,this._refresh=U,Ie(this)}function Ie(F){var U=F._node._inc||F._node.ownerDocument._inc;if(F._inc!==U){var J=F._refresh(F._node);if(ye(F,"length",J.length),!F.$$length||J.length<F.$$length)for(var se=J.length;se in F;se++)Object.prototype.hasOwnProperty.call(F,se)&&delete F[se];b(J,F),F._inc=U}}pe.prototype.item=function(F){return Ie(this),this[F]||null},x(pe,ue);function Re(){this._nameIndex=Object.create(null)}function fe(F,U){for(var J=F.length;J--;)if(F[J]===U)return J}function je(F,U){F._nameIndex[U.nodeName]=U}function Se(F,U){F._nameIndex[U.nodeName]===U&&delete F._nameIndex[U.nodeName]}function _e(F,U,J,se){if(se?(U[fe(U,se)]=J,Se(U,se)):U[U.length++]=J,je(U,J),F){J.ownerElement=F;var me=F.ownerDocument;me&&(se&&$(me,F,se),he(me,F,J))}}function ve(F,U,J){var se=fe(U,J);if(se>=0){for(var me=U.length-1;se<me;)U[se]=U[++se];if(U.length=me,Se(U,J),F){var Ee=F.ownerDocument;Ee&&($(Ee,F,J),J.ownerElement=null)}}else throw new K(ae,new Error(F.tagName+"@"+J))}Re.prototype={length:0,item:ue.prototype.item,getNamedItem:function(F){for(var U=this.length;U--;){var J=this[U];if(J.nodeName==F)return J}},setNamedItem:function(F){var U=F.ownerElement;if(U&&U!=this._ownerElement)throw new K(ie);var J=this._nameIndex[F.nodeName];return _e(this._ownerElement,this,F,J),J},setNamedItemNS:function(F){var U=F.ownerElement,J;if(U&&U!=this._ownerElement)throw new K(ie);return J=this.getNamedItemNS(F.namespaceURI,F.localName),_e(this._ownerElement,this,F,J),J},removeNamedItem:function(F){var U=this.getNamedItem(F);return ve(this._ownerElement,this,U),U},removeNamedItemNS:function(F,U){var J=this.getNamedItemNS(F,U);return ve(this._ownerElement,this,J),J},getNamedItemNS:function(F,U){for(var J=this.length;J--;){var se=this[J];if(se.localName==U&&se.namespaceURI==F)return se}return null}};function De(){}De.prototype={hasFeature:function(F,U){return!0},createDocument:function(F,U,J){var se=new ge;if(se.implementation=this,se.childNodes=new ue,se.doctype=J||null,J&&se.appendChild(J),U){var me=se.createElementNS(F,U);se.appendChild(me)}return se},createDocumentType:function(F,U,J){var se=new Pt;return se.name=F,se.nodeName=F,se.publicId=U||"",se.systemId=J||"",se}};function be(){}be.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(F,U){return ct(this,F,U)},replaceChild:function(F,U){ct(this,F,U,Le),U&&this.removeChild(U)},removeChild:function(F){return Pe(this,F)},appendChild:function(F){return this.insertBefore(F,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(F){return Tt(this.ownerDocument||this,this,F)},normalize:function(){Me(this,null,{enter:function(F){for(var U=F.firstChild;U;){var J=U.nextSibling;if(J!==null&&J.nodeType===R&&U.nodeType===R){for(var se=[],me=J;me!==null&&me.nodeType===R;)se.push(me.data),me=me.nextSibling;for(var Ee=U.nextSibling;Ee!==me;){var de=Ee.nextSibling;Ee.parentNode=null,Ee.previousSibling=null,Ee.nextSibling=null,Ee=de}U.nextSibling=me,me!==null?me.previousSibling=U:F.lastChild=U,U.appendData(se.join("")),Ce(F.ownerDocument,F),U=me}else U=J}return!0}})},isSupported:function(F,U){return this.ownerDocument.implementation.hasFeature(F,U)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(F){for(var U=this;U;){var J=U._nsMap;if(J){for(var se in J)if(Object.prototype.hasOwnProperty.call(J,se)&&J[se]===F)return se}U=U.nodeType==S?U.ownerDocument:U.parentNode}return null},lookupNamespaceURI:function(F){for(var U=this;U;){var J=U._nsMap;if(J&&Object.prototype.hasOwnProperty.call(J,F))return J[F];U=U.nodeType==S?U.ownerDocument:U.parentNode}return null},isDefaultNamespace:function(F){var U=this.lookupPrefix(F);return U==null}};function Oe(F){return F=="<"&&"<"||F==">"&&">"||F=="&"&&"&"||F=='"'&&"""||"&#"+F.charCodeAt()+";"}b(E,be),b(E,be.prototype);function Q(F,U){return Me(F,null,{enter:function(J){return U(J)?Me.STOP:!0}})===Me.STOP}function Me(F,U,J){for(var se=[{node:F,context:U,phase:Me.ENTER}];se.length>0;){var me=se.pop();if(me.phase===Me.ENTER){var Ee=J.enter(me.node,me.context);if(Ee===Me.STOP)return Me.STOP;if(se.push({node:me.node,context:Ee,phase:Me.EXIT}),Ee==null)continue;for(var de=me.node.lastChild;de;)se.push({node:de,context:Ee,phase:Me.ENTER}),de=de.previousSibling}else J.exit&&J.exit(me.node,me.context)}}Me.STOP=Symbol("walkDOM.STOP"),Me.ENTER=0,Me.EXIT=1;function ge(){this.ownerDocument=this}function he(F,U,J){F&&F._inc++;var se=J.namespaceURI;se===r.XMLNS&&(U._nsMap[J.prefix?J.localName:""]=J.value)}function $(F,U,J,se){F&&F._inc++;var me=J.namespaceURI;me===r.XMLNS&&delete U._nsMap[J.prefix?J.localName:""]}function Ce(F,U,J){if(F&&F._inc){F._inc++;var se=U.childNodes;if(J)se[se.length++]=J;else{for(var me=U.firstChild,Ee=0;me;)se[Ee++]=me,me=me.nextSibling;se.length=Ee,delete se[se.length]}}}function Pe(F,U){var J=U.previousSibling,se=U.nextSibling;return J?J.nextSibling=se:F.firstChild=se,se?se.previousSibling=J:F.lastChild=J,U.parentNode=null,U.previousSibling=null,U.nextSibling=null,Ce(F.ownerDocument,F),U}function $e(F){return F&&(F.nodeType===be.DOCUMENT_NODE||F.nodeType===be.DOCUMENT_FRAGMENT_NODE||F.nodeType===be.ELEMENT_NODE)}function Ue(F){return F&&(Ze(F)||le(F)||Ye(F)||F.nodeType===be.DOCUMENT_FRAGMENT_NODE||F.nodeType===be.COMMENT_NODE||F.nodeType===be.PROCESSING_INSTRUCTION_NODE)}function Ye(F){return F&&F.nodeType===be.DOCUMENT_TYPE_NODE}function Ze(F){return F&&F.nodeType===be.ELEMENT_NODE}function le(F){return F&&F.nodeType===be.TEXT_NODE}function We(F,U){var J=F.childNodes||[];if(t(J,Ze)||Ye(U))return!1;var se=t(J,Ye);return!(U&&se&&J.indexOf(se)>J.indexOf(U))}function lt(F,U){var J=F.childNodes||[];function se(Ee){return Ze(Ee)&&Ee!==U}if(t(J,se))return!1;var me=t(J,Ye);return!(U&&me&&J.indexOf(me)>J.indexOf(U))}function tt(F,U,J){if(!$e(F))throw new K(ee,"Unexpected parent node type "+F.nodeType);if(J&&J.parentNode!==F)throw new K(ae,"child not in parent");if(!Ue(U)||Ye(U)&&F.nodeType!==be.DOCUMENT_NODE)throw new K(ee,"Unexpected node type "+U.nodeType+" for parent node type "+F.nodeType)}function Zt(F,U,J){var se=F.childNodes||[],me=U.childNodes||[];if(U.nodeType===be.DOCUMENT_FRAGMENT_NODE){var Ee=me.filter(Ze);if(Ee.length>1||t(me,le))throw new K(ee,"More than one element or text in fragment");if(Ee.length===1&&!We(F,J))throw new K(ee,"Element in fragment can not be inserted before doctype")}if(Ze(U)&&!We(F,J))throw new K(ee,"Only one element can be added and only after doctype");if(Ye(U)){if(t(se,Ye))throw new K(ee,"Only one doctype is allowed");var de=t(se,Ze);if(J&&se.indexOf(de)<se.indexOf(J))throw new K(ee,"Doctype can only be inserted before an element");if(!J&&de)throw new K(ee,"Doctype can not be appended since element is present")}}function Le(F,U,J){var se=F.childNodes||[],me=U.childNodes||[];if(U.nodeType===be.DOCUMENT_FRAGMENT_NODE){var Ee=me.filter(Ze);if(Ee.length>1||t(me,le))throw new K(ee,"More than one element or text in fragment");if(Ee.length===1&&!lt(F,J))throw new K(ee,"Element in fragment can not be inserted before doctype")}if(Ze(U)&&!lt(F,J))throw new K(ee,"Only one element can be added and only after doctype");if(Ye(U)){if(t(se,function(Je){return Ye(Je)&&Je!==J}))throw new K(ee,"Only one doctype is allowed");var de=t(se,Ze);if(J&&se.indexOf(de)<se.indexOf(J))throw new K(ee,"Doctype can only be inserted before an element")}}function ct(F,U,J,se){tt(F,U,J),F.nodeType===be.DOCUMENT_NODE&&(se||Zt)(F,U,J);var me=U.parentNode;if(me&&me.removeChild(U),U.nodeType===Y){var Ee=U.firstChild;if(Ee==null)return U;var de=U.lastChild}else Ee=de=U;var ze=J?J.previousSibling:F.lastChild;Ee.previousSibling=ze,de.nextSibling=J,ze?ze.nextSibling=Ee:F.firstChild=Ee,J==null?F.lastChild=de:J.previousSibling=de;do{Ee.parentNode=F;var Je=F.ownerDocument||F;dt(Ee,Je)}while(Ee!==de&&(Ee=Ee.nextSibling));return Ce(F.ownerDocument||F,F),U.nodeType==Y&&(U.firstChild=U.lastChild=null),U}function dt(F,U){if(F.ownerDocument!==U){if(F.ownerDocument=U,F.nodeType===C&&F.attributes)for(var J=0;J<F.attributes.length;J++){var se=F.attributes.item(J);se&&(se.ownerDocument=U)}for(var me=F.firstChild;me;)dt(me,U),me=me.nextSibling}}function qt(F,U){U.parentNode&&U.parentNode.removeChild(U),U.parentNode=F,U.previousSibling=F.lastChild,U.nextSibling=null,U.previousSibling?U.previousSibling.nextSibling=U:F.firstChild=U,F.lastChild=U,Ce(F.ownerDocument,F,U);var J=F.ownerDocument||F;return dt(U,J),U}ge.prototype={nodeName:"#document",nodeType:G,doctype:null,documentElement:null,_inc:1,insertBefore:function(F,U){if(F.nodeType==Y){for(var J=F.firstChild;J;){var se=J.nextSibling;this.insertBefore(J,U),J=se}return F}return ct(this,F,U),dt(F,this),this.documentElement===null&&F.nodeType===C&&(this.documentElement=F),F},removeChild:function(F){return this.documentElement==F&&(this.documentElement=null),Pe(this,F)},replaceChild:function(F,U){ct(this,F,U,Le),dt(F,this),U&&this.removeChild(U),Ze(F)&&(this.documentElement=F)},importNode:function(F,U){return pr(this,F,U)},getElementById:function(F){var U=null;return Q(this.documentElement,function(J){if(J.nodeType==C&&J.getAttribute("id")==F)return U=J,!0}),U},getElementsByClassName:function(F){var U=g(F);return new pe(this,function(J){var se=[];return U.length>0&&Q(J.documentElement,function(me){if(me!==J&&me.nodeType===C){var Ee=me.getAttribute("class");if(Ee){var de=F===Ee;if(!de){var ze=g(Ee);de=U.every(y(ze))}de&&se.push(me)}}}),se})},createElement:function(F){var U=new Te;U.ownerDocument=this,U.nodeName=F,U.tagName=F,U.localName=F,U.childNodes=new ue;var J=U.attributes=new Re;return J._ownerElement=U,U},createDocumentFragment:function(){var F=new It;return F.ownerDocument=this,F.childNodes=new ue,F},createTextNode:function(F){var U=new Ne;return U.ownerDocument=this,U.appendData(F),U},createComment:function(F){var U=new Vt;return U.ownerDocument=this,U.appendData(F),U},createCDATASection:function(F){if(F.indexOf("]]>")!==-1)throw new K(te,'data contains "]]>"');var U=new rt;return U.ownerDocument=this,U.appendData(F),U},createProcessingInstruction:function(F,U){var J=new Qe;return J.ownerDocument=this,J.tagName=J.nodeName=J.target=F,J.nodeValue=J.data=U,J},createAttribute:function(F){var U=new Dt;return U.ownerDocument=this,U.name=F,U.nodeName=F,U.localName=F,U.specified=!0,U},createEntityReference:function(F){if(!n.test(F))throw new K(te,'not a valid xml name "'+F+'"');var U=new $t;return U.ownerDocument=this,U.nodeName=F,U},createElementNS:function(F,U){var J=new Te,se=U.split(":"),me=J.attributes=new Re;return J.childNodes=new ue,J.ownerDocument=this,J.nodeName=U,J.tagName=U,J.namespaceURI=F,se.length==2?(J.prefix=se[0],J.localName=se[1]):J.localName=U,me._ownerElement=J,J},createAttributeNS:function(F,U){var J=new Dt,se=U.split(":");return J.ownerDocument=this,J.nodeName=U,J.name=U,J.namespaceURI=F,J.specified=!0,se.length==2?(J.prefix=se[0],J.localName=se[1]):J.localName=U,J}},x(ge,be);function Te(){this._nsMap={}}Te.prototype={nodeType:C,hasAttribute:function(F){return this.getAttributeNode(F)!=null},getAttribute:function(F){var U=this.getAttributeNode(F);return U&&U.value||""},getAttributeNode:function(F){return this.attributes.getNamedItem(F)},setAttribute:function(F,U){var J=this.ownerDocument.createAttribute(F);J.value=J.nodeValue=""+U,this.setAttributeNode(J)},removeAttribute:function(F){var U=this.getAttributeNode(F);U&&this.removeAttributeNode(U)},appendChild:function(F){return F.nodeType===Y?this.insertBefore(F,null):qt(this,F)},setAttributeNode:function(F){return this.attributes.setNamedItem(F)},setAttributeNodeNS:function(F){return this.attributes.setNamedItemNS(F)},removeAttributeNode:function(F){return this.attributes.removeNamedItem(F.nodeName)},removeAttributeNS:function(F,U){var J=this.getAttributeNodeNS(F,U);J&&this.removeAttributeNode(J)},hasAttributeNS:function(F,U){return this.getAttributeNodeNS(F,U)!=null},getAttributeNS:function(F,U){var J=this.getAttributeNodeNS(F,U);return J&&J.value||""},setAttributeNS:function(F,U,J){var se=this.ownerDocument.createAttributeNS(F,U);se.value=se.nodeValue=""+J,this.setAttributeNode(se)},getAttributeNodeNS:function(F,U){return this.attributes.getNamedItemNS(F,U)},getElementsByTagName:function(F){return new pe(this,function(U){var J=[];return Q(U,function(se){se!==U&&se.nodeType==C&&(F==="*"||se.tagName==F)&&J.push(se)}),J})},getElementsByTagNameNS:function(F,U){return new pe(this,function(J){var se=[];return Q(J,function(me){me!==J&&me.nodeType===C&&(F==="*"||me.namespaceURI===F)&&(U==="*"||me.localName==U)&&se.push(me)}),se})}},ge.prototype.getElementsByTagName=Te.prototype.getElementsByTagName,ge.prototype.getElementsByTagNameNS=Te.prototype.getElementsByTagNameNS,x(Te,be);function Dt(){}Dt.prototype.nodeType=S,x(Dt,be);function Fe(){}Fe.prototype={data:"",substringData:function(F,U){return this.data.substring(F,F+U)},appendData:function(F){F=this.data+F,this.nodeValue=this.data=F,this.length=F.length},insertData:function(F,U){this.replaceData(F,0,U)},appendChild:function(F){throw new Error(X[ee])},deleteData:function(F,U){this.replaceData(F,U,"")},replaceData:function(F,U,J){var se=this.data.substring(0,F),me=this.data.substring(F+U);J=se+J+me,this.nodeValue=this.data=J,this.length=J.length}},x(Fe,be);function Ne(){}Ne.prototype={nodeName:"#text",nodeType:R,splitText:function(F){var U=this.data,J=U.substring(F);U=U.substring(0,F),this.data=this.nodeValue=U,this.length=U.length;var se=this.ownerDocument.createTextNode(J);return this.parentNode&&this.parentNode.insertBefore(se,this.nextSibling),se}},x(Ne,Fe);function Vt(){}Vt.prototype={nodeName:"#comment",nodeType:O},x(Vt,Fe);function rt(){}rt.prototype={nodeName:"#cdata-section",nodeType:T},x(rt,Fe);function Pt(){}Pt.prototype.nodeType=V,x(Pt,be);function we(){}we.prototype.nodeType=z,x(we,be);function zt(){}zt.prototype.nodeType=L,x(zt,be);function $t(){}$t.prototype.nodeType=k,x($t,be);function It(){}It.prototype.nodeName="#document-fragment",It.prototype.nodeType=Y,x(It,be);function Qe(){}Qe.prototype.nodeType=q,x(Qe,be);function gt(){}gt.prototype.serializeToString=function(F,U,J,se){return nt.call(F,U,J,se)},be.prototype.toString=nt;function nt(F,U,J){var se=!!J&&!!J.requireWellFormed,me=[],Ee=this.nodeType==9&&this.documentElement||this,de=Ee.prefix,ze=Ee.namespaceURI;if(ze&&de==null){var de=Ee.lookupPrefix(ze);if(de==null)var Je=[{namespace:ze,prefix:null}]}return ur(this,me,F,U,Je,se),me.join("")}function ar(F,U,J){var se=F.prefix||"",me=F.namespaceURI;if(!me||se==="xml"&&me===r.XML||me===r.XMLNS)return!1;for(var Ee=J.length;Ee--;){var de=J[Ee];if(de.prefix===se)return de.namespace!==me}return!0}function Ft(F,U,J,se){if(se&&!n.test(U))throw new K(oe,'The attribute name "'+U+'" is not a valid XML QName');F.push(" ",U,'="',J.replace(/[<>&"\t\n\r]/g,Oe),'"')}function ur(F,U,J,se,me,Ee){me||(me=[]),Me(F,{ns:me,isHTML:J},{enter:function(de,ze){var Je=ze.ns,st=ze.isHTML;if(se)if(de=se(de),de){if(typeof de=="string")return U.push(de),null}else return null;switch(de.nodeType){case C:var yt=de.attributes,Jt=yt.length,Ke=de.tagName;st=r.isHTML(de.namespaceURI)||st;var ot=Ke;if(!st&&!de.prefix&&de.namespaceURI){for(var wt,vt=0;vt<yt.length;vt++)if(yt.item(vt).name==="xmlns"){wt=yt.item(vt).value;break}if(!wt)for(var at=Je.length-1;at>=0;at--){var Ct=Je[at];if(Ct.prefix===""&&Ct.namespace===de.namespaceURI){wt=Ct.namespace;break}}if(wt!==de.namespaceURI)for(var at=Je.length-1;at>=0;at--){var Ct=Je[at];if(Ct.namespace===de.namespaceURI){Ct.prefix&&(ot=Ct.prefix+":"+Ke);break}}}if(Ee&&!n.test(ot))throw new K(oe,'The element name "'+ot+'" is not a valid XML QName');U.push("<",ot);for(var ht=Je.slice(),ft=0;ft<Jt;ft++){var qe=yt.item(ft);qe.prefix=="xmlns"?ht.push({prefix:qe.localName,namespace:qe.value}):qe.nodeName=="xmlns"&&ht.push({prefix:"",namespace:qe.value})}for(var ft=0;ft<Jt;ft++){var qe=yt.item(ft);if(ar(qe,st,ht)){var or=qe.prefix||"",Ht=qe.namespaceURI;Ft(U,or?"xmlns:"+or:"xmlns",Ht,Ee),ht.push({prefix:or,namespace:Ht})}var kt=se?se(qe):qe;kt&&(typeof kt=="string"?U.push(kt):Ft(U,kt.name,kt.value,Ee))}if(Ke===ot&&ar(de,st,ht)){var Mt=de.prefix||"",Ht=de.namespaceURI;Ft(U,Mt?"xmlns:"+Mt:"xmlns",Ht,Ee),ht.push({prefix:Mt,namespace:Ht})}var St=de.firstChild;if(St||st&&!/^(?:meta|link|img|br|hr|input)$/i.test(Ke)){if(U.push(">"),st&&/^script$/i.test(Ke)){for(;St;)St.data?U.push(St.data):ur(St,U,st,se,ht.slice(),Ee),St=St.nextSibling;return U.push("</",Ke,">"),null}return{ns:ht,isHTML:st,tag:ot}}else return U.push("/>"),null;case G:case Y:return{ns:Je.slice(),isHTML:st,tag:null};case S:return Ft(U,de.name,de.value,Ee),null;case R:return U.push(de.data.replace(/[<&>]/g,Oe)),null;case T:if(Ee&&de.data.indexOf("]]>")!==-1)throw new K(oe,'The CDATASection data contains "]]>"');return U.push("<![CDATA[",de.data.replace(/]]>/g,"]]]]><![CDATA[>"),"]]>"),null;case O:if(Ee&&de.data.indexOf("-->")!==-1)throw new K(oe,'The comment node data contains "-->"');return U.push("<!--",de.data,"-->"),null;case V:if(Ee){if(!n.test(de.name))throw new K(oe,'The doctype name "'+de.name+'" is not a valid XML Name');if(de.publicId&&!/^("[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%']*"|'[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%'"]*')$/.test(de.publicId))throw new K(oe,"DocumentType publicId is not a valid PubidLiteral");if(de.systemId&&!/^("[^"]*"|'[^']*')$/.test(de.systemId))throw new K(oe,"DocumentType systemId is not a valid SystemLiteral");if(de.internalSubset&&de.internalSubset.indexOf("]>")!==-1)throw new K(oe,'DocumentType internalSubset contains "]>"')}var Kt=de.publicId,jt=de.systemId;if(U.push("<!DOCTYPE ",de.name),Kt)U.push(" PUBLIC ",Kt),jt&&jt!="."&&U.push(" ",jt),U.push(">");else if(jt&&jt!=".")U.push(" SYSTEM ",jt,">");else{var mr=de.internalSubset;mr&&U.push(" [",mr,"]"),U.push(">")}return null;case q:if(Ee){if(!n.test(de.target)||de.target.indexOf(":")!==-1||de.target.toLowerCase()==="xml")throw new K(oe,'The processing instruction target "'+de.target+'" is not a valid XML NCName or is reserved');if(de.data.indexOf("?>")!==-1)throw new K(oe,'The ProcessingInstruction data contains "?>"')}return U.push("<?",de.target," ",de.data,"?>"),null;case k:if(Ee&&!n.test(de.nodeName))throw new K(oe,'The entity reference name "'+de.nodeName+'" is not a valid XML Name');return U.push("&",de.nodeName,";"),null;default:return U.push("??",de.nodeName),null}},exit:function(de,ze){ze&&ze.tag&&U.push("</",ze.tag,">")}})}function pr(F,U,J){var se;return Me(U,null,{enter:function(me,Ee){var de=me.cloneNode(!1);de.ownerDocument=F,de.parentNode=null,Ee===null?se=de:Ee.appendChild(de);var ze=me.nodeType===S||J;return ze?de:null}}),se}function Tt(F,U,J){var se;return Me(U,null,{enter:function(me,Ee){var de=new me.constructor;for(var ze in me)if(Object.prototype.hasOwnProperty.call(me,ze)){var Je=me[ze];typeof Je!="object"&&Je!=de[ze]&&(de[ze]=Je)}me.childNodes&&(de.childNodes=new ue),de.ownerDocument=F;var st=J;switch(de.nodeType){case C:var yt=me.attributes,Jt=de.attributes=new Re,Ke=yt.length;Jt._ownerElement=de;for(var ot=0;ot<Ke;ot++)de.setAttributeNode(Tt(F,yt.item(ot),!0));break;case S:st=!0}return Ee!==null?Ee.appendChild(de):se=de,st?de:null}}),se}function ye(F,U,J){F[U]=J}try{Object.defineProperty&&(Object.defineProperty(pe.prototype,"length",{get:function(){return Ie(this),this.$$length}}),Object.defineProperty(be.prototype,"textContent",{get:function(){if(this.nodeType===C||this.nodeType===Y){var F=[];return Me(this,null,{enter:function(U){if(U.nodeType===C||U.nodeType===Y)return!0;if(U.nodeType===q||U.nodeType===O)return null;F.push(U.nodeValue)}}),F.join("")}return this.nodeValue},set:function(F){switch(this.nodeType){case C:case Y:for(;this.firstChild;)this.removeChild(this.firstChild);(F||String(F))&&this.appendChild(this.ownerDocument.createTextNode(F));break;default:this.data=F,this.value=F,this.nodeValue=F}}}),ye=function(F,U,J){F["$$"+U]=J})}catch{}return dom.DocumentType=Pt,dom.DOMException=K,dom.DOMImplementation=De,dom.Element=Te,dom.Node=be,dom.NodeList=ue,dom.walkDOM=Me,dom.XMLSerializer=gt,dom}var domParser={},entities={},hasRequiredEntities;function requireEntities(){return hasRequiredEntities||(hasRequiredEntities=1,(function(e){var t=requireConventions().freeze;e.XML_ENTITIES=t({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),e.HTML_ENTITIES=t({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
|
|
134
|
+
)`},{id:13597,parentId:null,layerOrder:2,mapId:646,mapUuid:null,teamId:39,datasetId:716,teamDatasetId:713,serviceType:"XYZ",tiled:1,displayName:"Minor Flooding",description:"Real time forecast values from NOAA. Updated hourly",url:"https://rsgis-testdev.crrel.usace.army.mil/tiles/mstile/m.e847f06e3f0982927900594d68264d61/geom/{z}/{x}/{y}.png?nocache=true",grids:null,layerList:"ahpsfcst_minor",attribution:null,geometryType:"POINT",minzoom:1,maxzoom:22,abstract:null,purpose:null,status:null,keywords:null,localTable:"NOAA.NATIONAL_FCST_VW_MIN",metadataUrl:null,minX:-177.47,maxX:-64.71000000000001,minY:13.43,maxY:72.55,opacity:1,useMapfile:1,queryTemplate:`Location "Location", waterbody "Waterbody", state "State", to_char(fcstdate,'mm/dd/yyyy hh:mi: am') "Forecast Time", forecast||' '||units "Forecast", '<a href="'||url||'" target="_blank"><img src="http://water.weather.gov/resources/hydrographs/'||lower(gaugelid)||'_hg.png" width="300px"/></a>' "Hyperlink", action "Action Level", flood "Flood Level" , moderate "Mod Flood Level", major "Major Flood Level"`,hoverTemplate:`Location "Location", waterbody "Waterbody", state "State", to_char(fcstdate,'mm/dd/yyyy hh:mi: am') "Forecast Time", forecast||' '||units "Forecast", '<a href="'||url||'" target="_blank"><img src="http://water.weather.gov/resources/hydrographs/'||lower(gaugelid)||'_hg.png" width="300px"/></a>' "Hyperlink", action "Action Level", flood "Flood Level" , moderate "Mod Flood Level", major "Major Flood Level"`,queryable:1,visible:0,collapsed:1,idCol:"objectid",shapeCol:"SHAPE",allowEdit:0,allowExport:1,createdBy:"1380992694",createDate:"2017-12-12T13:15:12.000Z",cacheTiles:0,labelDefault:0,labelEnabled:0,deep:2,path:"depricated"}]},version="4.1.33",pkg={version};console.log("------ RUNNING CORPSMAP V."+pkg.version+" ------");let Map$1=class extends React.Component{constructor(t){super(t),this.state={store:null},this.getStore=this.getStore.bind(this)}getStore(){return this.state.store}componentDidMount(){this._isMounted=!0;const{mapConfig:t={},plugins:r=[],height:n,theme:a,themeNavSize:d,basemaps:m,basemapImageIDs:g=[],limitMapExtent:y}=this.props;cache.getAll().then(b=>{if(b.config={default:Object.assign({},config$1,t)},m&&m.forEach(E=>{b.config.default.basemaps.push(E)}),console.log(m),console.log(b),b.config.default.basemapImageIDs=g,n&&(b.vLayout={height:n,hNorth:1,hSouth:0}),a){const E=a.indexOf("bg-")===-1?`bg-${a}`:a;b.theme={theme:E,iconSize:d||"default"}}y&&(b.config.default.limitMapExtent=y);const x=getStore(b);loadPlugins(x,r),window.internalStore=x,this._isMounted&&this.setState({store:x})})}componentWillUnmount(){this._isMounted=!1}render(){const{store:t}=this.state;return t?jsxRuntime.jsx(Provider,{store:t,children:jsxRuntime.jsx(Corpsmap,{...this.props})}):null}},SidebarButton$1=class extends React.Component{constructor(t){super(t),this.clickHandler=this.clickHandler.bind(this)}clickHandler(t){t.preventDefault(),this.props.onClick(t)}render(){const{active:t,iconClass:r,iconStyle:n,iconText:a,expanded:d,label:m,theme:g,title:y,styleOverride:b,onMouseDown:x,onMouseUp:E,themeIconSize:C}=this.props,S=classnames({"cm-nav-btn":!0,"cm-nav-icon":C==="default","cm-nav-icon-lg":C==="large","cm-btn-block":!0,"vertical-toolbar-button":!0,active:t}),R=classnames({"overflow-ellipsis":!0,hidden:!a}),T=classnames({"icon-inline":d,hidden:!!a}),k=classnames({hidden:!d}),L=Object.assign({textAlign:"left"},b);return jsxRuntime.jsxs("div",{className:S+" "+g,onClick:this.clickHandler,onMouseDown:x,onMouseUp:E,style:L,title:y,children:[jsxRuntime.jsx("i",{className:r+" "+T,style:n}),jsxRuntime.jsx("span",{className:R,children:a}),jsxRuntime.jsx("span",{className:k,children:m})]})}};const SidebarButton=connect("selectThemeIconSize",SidebarButton$1);let SidebarPanelOpenerButton$1=class extends React.Component{constructor(t){super(t),this.handleClick=this.handleClick.bind(this)}handleClick(){const{doPrimaryPanelOpen:t,doPrimaryPanelClose:r,title:n,panelComponent:a,panelOptions:d,primaryPanelOpenedBy:m}=this.props;m!==n?t({openedBy:n,options:d,children:[a]}):r()}render(){const{theme:t,label:r,title:n,iconClass:a,iconText:d,styleOverride:m,primaryPanelOpenedBy:g}=this.props;return jsxRuntime.jsx(SidebarButton,{active:g===n,iconClass:a,iconText:d,styleOverride:m,expanded:!1,label:r,title:n,onClick:this.handleClick,theme:t})}};const SidebarPanelOpenerButton=connect("selectTheme","selectPrimaryPanelOpenedBy","doPrimaryPanelOpen","doPrimaryPanelClose",SidebarPanelOpenerButton$1);let BasicToolbarButton$1=class extends React.Component{constructor(t){super(t),this.renderIcon=this.renderIcon.bind(this),this.toggleTool=this.toggleTool.bind(this)}toggleTool(){const{enabled:t,title:r,onActivate:n,onDeactivate:a,basicToolbarActiveTool:d,doBasicToolbarToggle:m}=this.props;t&&(m(d,r),n&&n(),a&&a())}renderIcon(){const{children:t,text:r,title:n,iconClass:a,iconStyle:d,basicToolbarActiveTool:m,dropup:g,themeIconSize:y}=this.props,b=classnames({"cm-nav-btn":!0,"cm-nav-icon":y==="default","cm-nav-icon-lg":y==="large","basic-toolbar-btn":!0,"cm-dropdown-toggle":!0,active:m===n}),x=classnames({mdi:!0,"mdi-menu-down":!g,"mdi-menu-up":g});return t?jsxRuntime.jsxs("div",{onClick:this.toggleTool,className:b,children:[jsxRuntime.jsx("i",{className:a,style:d}),r,jsxRuntime.jsx("i",{className:x})]}):jsxRuntime.jsxs("div",{onClick:this.toggleTool,className:b,style:{textAlign:"center"},children:[jsxRuntime.jsx("i",{className:a,style:d}),r]})}render(){const{theme:t,basicToolbarActiveTool:r,title:n,children:a,dropup:d,passProps:m,basicToolbarOpen:g}=this.props,y=!!(g&&r===n),b=classnames({[t]:!0,"cm-btn-group":!0,open:y}),x=classnames({"basic-toolbar-btn-active":!d,"basic-toolbar-btn-active-top":d,hidden:r!==n});return jsxRuntime.jsxs("div",{className:b,...m,title:n,children:[jsxRuntime.jsx("div",{className:x}),this.renderIcon(),a]})}};const BasicToolbarButton=connect("selectTheme","selectThemeIconSize","selectBasicToolbarActiveTool","selectBasicToolbarOpen","doBasicToolbarActivate","doBasicToolbarDeactivate","doBasicToolbarToggle",BasicToolbarButton$1);class BasicToolbarMenu extends React.Component{render(){return jsxRuntime.jsx("ul",{className:"cm-dropdown-menu",children:this.props.children})}}class BasicToolbarMenuUp extends React.Component{render(){return jsxRuntime.jsx("ul",{className:"cm-dropup-menu",children:this.props.children})}}class BasicToolbarSubmenu extends React.Component{render(){return jsxRuntime.jsx(BasicToolbarMenu,{children:this.props.children})}}class BasicToolbarMenuDivider extends React.Component{render(){return jsxRuntime.jsx("li",{className:"divider"})}}class BasicToolbarMenuItem extends React.Component{constructor(t){super(t),this.state={showSubmenu:!1},this.renderTextContent=this.renderTextContent.bind(this),this.renderSubmenu=this.renderSubmenu.bind(this),this.showSubmenu=this.showSubmenu.bind(this),this.hideSubmenu=this.hideSubmenu.bind(this)}renderTextContent(){const{liveDangerously:t,text:r}=this.props;return t?jsxRuntime.jsx("span",{dangerouslySetInnerHTML:{__html:r}}):r}renderSubmenu(){const{children:t,disableSubmenu:r}=this.props,{showSubmenu:n}=this.state;if(!t)return null;const a=classnames({"pull-right":!0,hidden:r}),d=classnames({open:n});return jsxRuntime.jsxs("div",{className:a,children:[jsxRuntime.jsx("i",{className:"mdi mdi-menu-right"}),jsxRuntime.jsx("div",{style:{position:"relative",top:-31,left:33},className:d,children:t})]})}showSubmenu(){this.setState({showSubmenu:!0})}hideSubmenu(){this.setState({showSubmenu:!1})}renderDisabled(){const{passProps:t,iconClass:r}=this.props;return jsxRuntime.jsx("li",{...t,disabled:!0,children:jsxRuntime.jsxs("span",{children:[jsxRuntime.jsx("i",{className:r}),this.renderTextContent()]})})}render(){const{active:t,passProps:r,onClick:n,iconClass:a,disabled:d,title:m}=this.props;if(d)return this.renderDisabled();const g=classnames({active:t});return jsxRuntime.jsx("li",{className:g,...r,onClick:n,title:m,children:jsxRuntime.jsxs("span",{onMouseOver:this.showSubmenu,onMouseOut:this.hideSubmenu,children:[this.renderSubmenu(),jsxRuntime.jsx("i",{className:a}),this.renderTextContent()]})})}}class SearchInput extends React.Component{constructor(t){super(t),this.updateFilterString=this.updateFilterString.bind(this),this.handleKeyUp=this.handleKeyUp.bind(this),this.setFocus=this.setFocus.bind(this)}updateFilterString(t){const{onUpdate:r}=this.props,n=t.currentTarget.value;r(n)}handleKeyUp(t){const{onKeyUp:r}=this.props;r&&r(t)}setFocus(){this.input.focus()}render(){const{filterString:t,placeholder:r,size:n,inline:a,darkTheme:d}=this.props;let m="cm-form-control";m+=n==="small"?" input-sm":"";const g=n==="small"?"17px":"22px",y=n==="small"?"20px":"30px";return jsxRuntime.jsxs("div",{className:"cm-form-group",style:a?{marginBottom:0}:{},children:[jsxRuntime.jsx("span",{style:{position:"absolute",fontSize:g,top:"10px"},children:jsxRuntime.jsx("i",{className:"mdi mdi-magnify"})}),jsxRuntime.jsx("span",{children:jsxRuntime.jsx("input",{ref:b=>{this.input=b},style:{textIndent:y,color:d?"#ffffff":"inherit"},value:t,type:"text",className:m,placeholder:r,onChange:this.updateFilterString,onKeyUp:this.handleKeyUp})})]})}}class SearchResultsListItem extends React.Component{constructor(t){super(t),this.handleClick=this.handleClick.bind(this)}handleClick(){const{item:t,onClick:r}=this.props;r&&r(t)}render(){const{item:t,selected:r}=this.props,n=classnames({"cm-list-group-item":!0,"search-result-item":!0,"overflow-ellipsis":!0,selected:r});let a=t.secondaryTxt?`${t.displayName} ${t.secondaryTxt}`:`${t.displayName}`;return a=t.prefix?`${t.prefix}: ${a}`:`${a}`,jsxRuntime.jsxs("li",{onClick:this.handleClick,className:n,title:`${a}`,children:[jsxRuntime.jsx("i",{className:t.iconClass+" icon-inline"}),t.displayName,t.secondaryTxt?jsxRuntime.jsx("div",{className:"overflow-ellipsis",style:{marginLeft:"30px"},children:t.secondaryTxt}):null]})}}class SearchResultsList extends React.Component{render(){const{items:t,onItemClick:r,selectedIdx:n}=this.props;return jsxRuntime.jsx("ul",{className:"cm-list-group thin-scrollbar",ref:a=>{this.el=a},style:{position:"absolute",maxHeight:"400px",overflow:"auto"},children:t.map((a,d)=>jsxRuntime.jsx(SearchResultsListItem,{onClick:r,item:a,selected:n===d},d))})}}let LoadingIndicator$1=class extends React.Component{render(){return jsxRuntime.jsx("li",{className:"cm-list-group-item",children:jsxRuntime.jsxs("div",{className:"loading-container",children:[jsxRuntime.jsx("div",{className:"loading-spinner"}),jsxRuntime.jsx("div",{className:"loading-text",children:this.props.text})]})})}};class TreeListFolder extends React.Component{render(){const{item:t,collapsed:r,toggleCollapsed:n}=this.props,a=classnames({mdi:!0,"mdi-folder-open":!r,"mdi-folder":r}),d=classnames({"tree-list-item-hover":!1}),m={display:"inline-block",paddingLeft:"8px"},g=t.children.length;return jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("i",{title:"Click to collapse or expand",onClick:n,className:a,style:{fontSize:"16px",cursor:"pointer"}}),jsxRuntime.jsxs("span",{children:[jsxRuntime.jsx("div",{className:d,style:m,onDoubleClick:n,children:t.displayName}),jsxRuntime.jsx("span",{children:" ("+g+")"})]})]})}}let TreeListItem$2=class extends React.Component{constructor(t){super(t),this.state={collapsed:t.item.collapsed},this.renderItemComponent=this.renderItemComponent.bind(this),this.handleClick=this.handleClick.bind(this),this.toggleCollapsed=this.toggleCollapsed.bind(this)}toggleCollapsed(){this.setState({collapsed:!this.state.collapsed})}handleClick(t){const{item:r,onSelect:n}=this.props;n({ctrl:t.ctrlKey,shift:t.shiftKey,item:r})}renderItemComponent(){const{item:t,components:r,componentMatches:n}=this.props,{collapsed:a}=this.state;if(!t.leaf)return jsxRuntime.jsx(TreeListFolder,{item:t,collapsed:a,toggleCollapsed:this.toggleCollapsed});let d=r[0];if(n.length){for(let m=0;m<n.length;m++)if(_.isMatch(t,n[m])){d=r[m];break}}return jsxRuntime.jsx(d,{item:t})}render(){const{item:t,components:r,componentMatches:n,onSelect:a}=this.props,{collapsed:d}=this.state,m=classnames({"tree-list-item":!0,hidden:!1});return jsxRuntime.jsxs("li",{className:m,onClick:this.handleClick,children:[this.renderItemComponent(),jsxRuntime.jsx(TreeList$1,{items:t.children,item:t,collapsed:d,components:r,componentMatches:n,onSelect:a})]})}},TreeList$1=class extends React.Component{render(){const{items:t,collapsed:r,components:n,componentMatches:a,styleOverride:d,onSelect:m,selected:g,selectable:y}=this.props,b=classnames({"tree-list":!0,hidden:r});return jsxRuntime.jsx("ul",{className:b,style:d,children:t.map(function(x){return jsxRuntime.jsx(TreeListItem$2,{item:x,components:n,componentMatches:a,onSelect:m,selected:g,selectable:y,time:new Date},x.uid)})})}};class TreeView extends React.Component{constructor(t){super(t),this.state={selected:null},this.handleSelect=this.handleSelect.bind(this)}handleSelect(t){this.setState({selected:t})}render(){const{data:t,components:r,componentMatches:n}=this.props,{selected:a}=this.state,d=!t.length&&t.children?t.children:t||[];return jsxRuntime.jsx("div",{children:jsxRuntime.jsx(TreeList$1,{items:d,collapsed:!1,components:r,componentMatches:n,styleOverride:{paddingLeft:0},onSelect:this.handleSelect,selected:a,selectable:!1})})}}let AddGeoJsonButton$1=class extends React.Component{constructor(t){super(t),this.handleClick=this.handleClick.bind(this),this.handleFile=this.handleFile.bind(this)}handleClick(t){this.geojsonInput.click()}handleFile(t){const{doAddDataFile:r}=this.props,n=this.geojsonInput.files[0];r(n)}render(){return jsxRuntime.jsx(BasicToolbarMenuItem,{active:!1,iconClass:"ms ms-geojson icon-inline",title:"Add Local GeoJSON File",text:"Add Local GeoJSON File",onClick:this.handleClick,passProps:{},disableSubmenu:!0,children:jsxRuntime.jsx("input",{onChange:this.handleFile,accept:".geojson,.json",className:"hidden",type:"file",ref:t=>{this.geojsonInput=t}})})}};const AddGeoJsonButton=connect("doAddDataFile",AddGeoJsonButton$1);let AddShapefileButton$1=class extends React.Component{constructor(t){super(t),this.handleClick=this.handleClick.bind(this),this.handleFile=this.handleFile.bind(this)}handleClick(t){this.shapefileInput.click()}handleFile(t){const{doAddDataFile:r}=this.props,n=this.shapefileInput.files[0];r(n)}render(){return jsxRuntime.jsx(BasicToolbarMenuItem,{active:!1,iconClass:"ms ms-shp icon-inline",title:"Add Local Shapefile",text:"Add Local Shapefile",onClick:this.handleClick,passProps:{},disableSubmenu:!0,children:jsxRuntime.jsx("input",{onChange:this.handleFile,accept:".zip",className:"hidden",type:"file",ref:t=>{this.shapefileInput=t}})})}};const AddShapefileButton=connect("doAddDataFile",AddShapefileButton$1);let AddKmlFileButton$1=class extends React.Component{constructor(t){super(t),this.handleClick=this.handleClick.bind(this),this.handleFile=this.handleFile.bind(this)}handleClick(t){this.geojsonInput.click()}handleFile(t){const{doAddDataFile:r}=this.props,n=this.geojsonInput.files[0];r(n)}render(){return jsxRuntime.jsx(BasicToolbarMenuItem,{active:!1,iconClass:"ms ms-kml icon-inline",title:"Add Local KML File",text:"Add Local KML File",onClick:this.handleClick,passProps:{},disableSubmenu:!0,children:jsxRuntime.jsx("input",{onChange:this.handleFile,accept:".kml",className:"hidden",type:"file",ref:t=>{this.geojsonInput=t}})})}};const AddKmlFileButton=connect("doAddDataFile",AddKmlFileButton$1);let AddDataButton$1=class extends React.Component{constructor(t){super(t)}render(){return jsxRuntime.jsx(BasicToolbarButton,{enabled:!0,iconClass:"mdi mdi-plus-box-multiple",title:"Add Data",onDeactivate:()=>{},children:jsxRuntime.jsxs(BasicToolbarMenu,{children:[jsxRuntime.jsx(AddGeoJsonButton,{}),jsxRuntime.jsx(AddShapefileButton,{}),jsxRuntime.jsx(AddKmlFileButton,{})]})})}};const AddDataButton=connect("doNotificationsFire",AddDataButton$1);try{let e=()=>new DecompressionStream("deflate-raw"),t=r=>new Response(r);e(),l=r=>t(t(r).body.pipeThrough(e())).arrayBuffer().then(n=>new Uint8Array(n))}catch{}var l,w$1=new TextDecoder,c=e=>{throw Error("but-unzip~"+e)};function*p(e,t=l){let r=e.length-21,n=r-65536,a=new DataView(e.buffer,e.byteOffset),d=y=>a.getUint16(y+r,1),m=y=>a.getUint32(y+r,1),g=(y,b)=>e.subarray(r+=y,r+=b);for(;r>n&&(r=e.lastIndexOf(80,r-1))+1&&(e[r+1]-75||e[r+2]-5||e[r+3]-6););for(r<0&&c(2),n=d(10),n-d(8)&&c(3),r=m(16);n--;){let y=d(10),b=d(28),x=d(30),E=d(32),C=m(20),S=m(42),R=w$1.decode(g(46,b)),T=w$1.decode(g(x,E)),k=r,L;r=S,L=g(30+d(26)+d(28),C),yield{filename:R,comment:T,read:()=>y-8?y?c(1):L:t(L)},r=k}}const regex$3=/.+\.(shp|dbf|json|prj|cpg)$/i,unzip=async e=>{const t={},r=[];for(const d of p(e))regex$3.test(d.filename)&&r.push(Promise.resolve(d.read()).then(m=>t[d.filename]=m));await Promise.all(r);const n={},a=new TextDecoder;for(const[d,m]of Object.entries(t))d.slice(-3).toLowerCase()==="shp"||d.slice(-3).toLowerCase()==="dbf"?n[d]=new DataView(m.buffer,m.byteOffset,m.byteLength):n[d]=a.decode(m);return n},URL$2=globalThis.URL,combine$2=(e,t)=>{if(!t)return e;const r=new URL$2(e);return r.pathname=`${r.pathname}.${t}`,r.href};async function binaryAjax(e,t){const r=combine$2(e,t),n=t==="prj"||t==="cpg";try{const a=await fetch(r);if(a.status>399)throw new Error(a.statusText);if(n)return a.text();const d=await a.arrayBuffer();return new DataView(d)}catch(a){if(n||t==="dbf")return!1;throw a}}function isClockWise(e){let t=0,r=1;const n=e.length;let a,d;const m=[e[0][0],e[0][1],e[0][0],e[0][1]];for(;r<n;)a=d||e[0],d=e[r],t+=(d[0]-a[0])*(d[1]+a[1]),r++,d[0]<m[0]&&(m[0]=d[0]),d[1]<m[1]&&(m[1]=d[1]),d[0]>m[2]&&(m[2]=d[0]),d[1]>m[3]&&(m[3]=d[1]);return{ring:e,clockWise:t>0,bbox:m,children:[]}}function contains(e,t){return!(e.bbox[0]>t.bbox[0]||e.bbox[1]>t.bbox[1]||e.bbox[2]<t.bbox[2]||e.bbox[3]<t.bbox[3])}function handleRings(e,t=!1){const r=[],n=[];for(const m of e){const g=isClockWise(m);g.clockWise!==t?r.push(g):n.push(g)}const a=[];for(const m of n){let g;for(const y of r)contains(y,m)&&(g?contains(g,y)&&(g=y):g=y);g?g.children.push(m.ring):a.push(m)}if(t)return{outers:r,orphens:a};if(a.length&&!t){const m=handleRings(e,!0);if(m.orphens.length===0){const g=[];for(const y of m.outers)g.push([y.ring.toReversed()].concat(y.children.map(b=>b.toReversed())));return g}}const d=[];for(const m of r)d.push([m.ring].concat(m.children));return d}ParseShp.prototype.parsePoint=function(e){return{type:"Point",coordinates:this.parseCoord(e,0)}},ParseShp.prototype.parseZPoint=function(e){const t=this.parsePoint(e);return t.coordinates.push(e.getFloat64(16,!0)),t},ParseShp.prototype.parsePointArray=function(e,t,r){const n=[];let a=0;for(;a<r;)n.push(this.parseCoord(e,t)),t+=16,a++;return n},ParseShp.prototype.parseZPointArray=function(e,t,r,n){let a=0;for(;a<r;)n[a].push(e.getFloat64(t,!0)),a++,t+=8;return n},ParseShp.prototype.parseArrayGroup=function(e,t,r,n,a){const d=[];let m=0,g,y=0,b;for(;m<n;)m++,r+=4,g=y,m===n?y=a:y=e.getInt32(r,!0),b=y-g,b&&(d.push(this.parsePointArray(e,t,b)),t+=b<<4);return d},ParseShp.prototype.parseZArrayGroup=function(e,t,r,n){let a=0;for(;a<r;)n[a]=this.parseZPointArray(e,t,n[a].length,n[a]),t+=n[a].length<<3,a++;return n},ParseShp.prototype.parseMultiPoint=function(e){const t={},r=e.getInt32(32,!0);if(!r)return null;const n=this.parseCoord(e,0),a=this.parseCoord(e,16);t.bbox=[n[0],n[1],a[0],a[1]];const d=36;return r===1?(t.type="Point",t.coordinates=this.parseCoord(e,d)):(t.type="MultiPoint",t.coordinates=this.parsePointArray(e,d,r)),t},ParseShp.prototype.parseZMultiPoint=function(e){const t=this.parseMultiPoint(e);if(!t)return null;let r;if(t.type==="Point")return t.coordinates.push(e.getFloat64(72,!0)),t;r=t.coordinates.length;const n=52+(r<<4);return t.coordinates=this.parseZPointArray(e,n,r,t.coordinates),t},ParseShp.prototype.parsePolyline=function(e){const t={},r=e.getInt32(32,!0);if(!r)return null;const n=this.parseCoord(e,0),a=this.parseCoord(e,16);t.bbox=[n[0],n[1],a[0],a[1]];const d=e.getInt32(36,!0);let m,g;return r===1?(t.type="LineString",m=44,t.coordinates=this.parsePointArray(e,m,d)):(t.type="MultiLineString",m=40+(r<<2),g=40,t.coordinates=this.parseArrayGroup(e,m,g,r,d)),t},ParseShp.prototype.parseZPolyline=function(e){const t=this.parsePolyline(e);if(!t)return null;const r=t.coordinates.length;let n;return t.type==="LineString"?(n=60+(r<<4),t.coordinates=this.parseZPointArray(e,n,r,t.coordinates),t):(n=56+(t.coordinates.reduce(function(d,m){return d+m.length},0)<<4)+(r<<2),t.coordinates=this.parseZArrayGroup(e,n,r,t.coordinates),t)},ParseShp.prototype.polyFuncs=function(e){return e&&(e.type==="LineString"?(e.type="Polygon",e.coordinates=[e.coordinates],e):(e.coordinates=handleRings(e.coordinates),e.coordinates.length===1?(e.type="Polygon",e.coordinates=e.coordinates[0],e):(e.type="MultiPolygon",e)))},ParseShp.prototype.parsePolygon=function(e){return this.polyFuncs(this.parsePolyline(e))},ParseShp.prototype.parseZPolygon=function(e){return this.polyFuncs(this.parseZPolyline(e))};const shpFuncObj={1:"parsePoint",3:"parsePolyline",5:"parsePolygon",8:"parseMultiPoint",11:"parseZPoint",13:"parseZPolyline",15:"parseZPolygon",18:"parseZMultiPoint"};function makeParseCoord(e){return e?function(t,r){const n=[t.getFloat64(r,!0),t.getFloat64(r+8,!0)];return e.inverse(n)}:function(t,r){return[t.getFloat64(r,!0),t.getFloat64(r+8,!0)]}}function ParseShp(e,t){if(!(this instanceof ParseShp))return new ParseShp(e,t);this.buffer=e,this.headers=this.parseHeader(),this.shpFuncs(t),this.rows=this.getRows()}ParseShp.prototype.shpFuncs=function(e){let t=this.headers.shpCode;if(t>20&&(t-=20),!(t in shpFuncObj))throw new Error(`I don't know shp type "${t}"`);this.parseFunc=this[shpFuncObj[t]],this.parseCoord=makeParseCoord(e)},ParseShp.prototype.getShpCode=function(){return this.parseHeader().shpCode},ParseShp.prototype.parseHeader=function(){const e=this.buffer;return{length:e.getInt32(24)<<1,version:e.getInt32(28,!0),shpCode:e.getInt32(32,!0),bbox:[e.getFloat64(36,!0),e.getFloat64(44,!0),e.getFloat64(52,!0),e.getFloat64(60,!0)]}},ParseShp.prototype.getRows=function(){let e=100;const t=this.buffer.byteLength-8,r=[];let n;for(;e<=t&&(n=this.getRow(e),!!n);)e+=8,e+=n.len,n.type?r.push(this.parseFunc(n.data)):r.push(null);return r},ParseShp.prototype.getRow=function(e){const t=this.buffer.getInt32(e),r=this.buffer.getInt32(e+4)<<1;if(r===0)return{id:t,len:r,type:0};if(!(e+r+8>this.buffer.byteLength))return{id:t,len:r,data:new DataView(this.buffer.buffer,this.buffer.byteOffset+e+12,r-4),type:this.buffer.getInt32(e+8,!0)}};function parseShp(e,t){return new ParseShp(e,t).rows}var regex$2=/^(?:ANSI\s)?(\d+)$/m;function createDecoder(e,t){if(!e)return n;try{new TextDecoder(e.trim())}catch{var r=regex$2.exec(e);return r&&!t?createDecoder("windows-"+r[1],!0):(e=void 0,n)}return n;function n(a){var d=new TextDecoder(e||void 0),m=d.decode(a,{stream:!0})+d.decode();return m.replace(/\0/g,"").trim()}}function dbfHeader(e){var t={};return t.lastUpdated=new Date(e.getUint8(1)+1900,e.getUint8(2),e.getUint8(3)),t.records=e.getUint32(4,!0),t.headerLen=e.getUint16(8,!0),t.recLen=e.getUint16(10,!0),t}function dbfRowHeader(e,t,r){for(var n=[],a=32;a<t&&(n.push({name:r(new Uint8Array(e.buffer.slice(e.byteOffset+a,e.byteOffset+a+11))),dataType:String.fromCharCode(e.getUint8(a+11)),len:e.getUint8(a+16),decimal:e.getUint8(a+17)}),e.getUint8(a+32)!==13);)a+=32;return n}function rowFuncs(e,t,r,n,a){const d=new Uint8Array(e.buffer.slice(e.byteOffset+t,e.byteOffset+t+r));var m=a(d);switch(n){case"N":case"F":case"O":return parseFloat(m,10);case"D":return new Date(m.slice(0,4),parseInt(m.slice(4,6),10)-1,m.slice(6,8));case"L":return m.toLowerCase()==="y"||m.toLowerCase()==="t";default:return m}}function parseRow(e,t,r,n){for(var a={},d=0,m=r.length,g,y;d<m;)y=r[d],g=rowFuncs(e,t,y.len,y.dataType,n),t+=y.len,typeof g<"u"&&(a[y.name]=g),d++;return a}function parseDbf(e,t){for(var r=createDecoder(t),n=dbfHeader(e),a=dbfRowHeader(e,n.headerLen-1,r),d=(a.length+1<<5)+2,m=n.recLen,g=n.records,y=[];g;)y.push(parseRow(e,d,a,r)),d+=m,g--;return y}const URL$1=globalThis.URL,toUitn8Arr=e=>{if(!e)throw new Error("forgot to pass buffer");if(isArrayBuffer(e))return new Uint8Array(e);if(isArrayBuffer(e.buffer))return e.BYTES_PER_ELEMENT===1?e:new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("invalid buffer like object")},txtDecoder=new TextDecoder,toString=e=>{if(e){if(typeof e=="string")return e;if(isArrayBuffer(e)||ArrayBuffer.isView(e)||isDataView(e))return txtDecoder.decode(e)}},toDataView=e=>{if(!e)throw new Error("forgot to pass buffer");if(isDataView(e))return e;if(isArrayBuffer(e))return new DataView(e);if(isArrayBuffer(e.buffer))return new DataView(e.buffer,e.byteOffset,e.byteLength);throw new Error("invalid buffer like object")};function isArrayBuffer(e){return e instanceof globalThis.ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]"}function isDataView(e){return e instanceof globalThis.DataView||Object.prototype.toString.call(e)==="[object DataView]"}const combine$1=function([e,t]){const r={};r.type="FeatureCollection",r.features=[];let n=0;const a=e.length;for(t||(t=[]);n<a;)r.features.push({type:"Feature",geometry:e[n],properties:t[n]||{}}),n++;return r},parseZip=async function(e,t){let r;e=toUitn8Arr(e);const n=await unzip(e),a=[];t=t||[];for(r in n)r.indexOf("__MACOSX")===-1&&(r.slice(-4).toLowerCase()===".shp"?(a.push(r.slice(0,-4)),n[r.slice(0,-3)+r.slice(-3).toLowerCase()]=n[r]):r.slice(-4).toLowerCase()===".prj"?n[r.slice(0,-3)+r.slice(-3).toLowerCase()]=proj4(n[r]):r.slice(-5).toLowerCase()===".json"||t.indexOf(r.split(".").pop())>-1?a.push(r.slice(0,-3)+r.slice(-3).toLowerCase()):(r.slice(-4).toLowerCase()===".dbf"||r.slice(-4).toLowerCase()===".cpg")&&(n[r.slice(0,-3)+r.slice(-3).toLowerCase()]=n[r]));if(!a.length)throw new Error("no layers founds");const d=a.map(function(m){let g,y;const b=m.lastIndexOf(".");return b>-1&&m.slice(b).indexOf("json")>-1?(g=JSON.parse(n[m]),g.fileName=m.slice(0,b)):t.indexOf(m.slice(b+1))>-1?(g=n[m],g.fileName=m):(n[m+".dbf"]&&(y=parseDbf(n[m+".dbf"],n[m+".cpg"])),g=combine$1([parseShp(n[m+".shp"],n[m+".prj"]),y]),g.fileName=m),g});return d.length===1?d[0]:d};async function getZip(e,t){const r=await binaryAjax(e);return parseZip(r,t)}const handleShp=async e=>{const t=await Promise.all([binaryAjax(e,"shp"),binaryAjax(e,"prj")]);let r=!1;try{t[1]&&(r=proj4(t[1]))}catch{r=!1}return parseShp(t[0],r)},handleDbf=async e=>{const[t,r]=await Promise.all([binaryAjax(e,"dbf"),binaryAjax(e,"cpg")]);if(t)return parseDbf(t,r)},checkSuffix=(e,t)=>new URL$1(e,globalThis?.document?.location).pathname.slice(-4).toLowerCase()===t,fromObject=({shp:e,dbf:t,cpg:r,prj:n})=>{const a=[_parseShp(e,n)];return t&&a.push(_parseDbf(t,r)),combine$1(a)},getShapefile=async function(e,t){if(typeof e!="string"){if(isArrayBuffer(e)||ArrayBuffer.isView(e)||isDataView(e))return parseZip(e);if(e.shp)return fromObject(e);throw new TypeError("must be a string, some sort of Buffer, or an object with at least a .shp property")}if(checkSuffix(e,".zip"))return getZip(e,t);checkSuffix(e,".shp")&&(e=e.slice(0,-4));const r=await Promise.all([handleShp(e),handleDbf(e)]);return combine$1(r)},_parseShp=function(e,t){if(e=toDataView(e),t=toString(t),typeof t=="string")try{t=proj4(t)}catch{t=!1}return parseShp(e,t)},_parseDbf=function(e,t){return e=toDataView(e),t=toString(t),parseDbf(e,t)};var togeojson={exports:{}},lib$1={},dom={},conventions={},hasRequiredConventions;function requireConventions(){if(hasRequiredConventions)return conventions;hasRequiredConventions=1;function e(y,b,x){if(x===void 0&&(x=Array.prototype),y&&typeof x.find=="function")return x.find.call(y,b);for(var E=0;E<y.length;E++)if(Object.prototype.hasOwnProperty.call(y,E)){var C=y[E];if(b.call(void 0,C,E,y))return C}}function t(y,b){return b===void 0&&(b=Object),b&&typeof b.freeze=="function"?b.freeze(y):y}function r(y,b){if(y===null||typeof y!="object")throw new TypeError("target is not an object");for(var x in b)Object.prototype.hasOwnProperty.call(b,x)&&(y[x]=b[x]);return y}var n=t({HTML:"text/html",isHTML:function(y){return y===n.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),a=t({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(y){return y===a.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"}),d=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,m=new RegExp("[\\-\\.0-9"+d.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),g=new RegExp("^"+d.source+m.source+"*(?::"+d.source+m.source+"*)?$");return conventions.assign=r,conventions.find=e,conventions.freeze=t,conventions.MIME_TYPE=n,conventions.NAMESPACE=a,conventions.nameStartChar=d,conventions.nameChar=m,conventions.tagNamePattern=g,conventions}var hasRequiredDom;function requireDom(){if(hasRequiredDom)return dom;hasRequiredDom=1;var e=requireConventions(),t=e.find,r=e.NAMESPACE,n=e.tagNamePattern;function a(F){return F!==""}function d(F){return F?F.split(/[\t\n\f\r ]+/).filter(a):[]}function m(F,U){return F.hasOwnProperty(U)||(F[U]=!0),F}function g(F){if(!F)return[];var U=d(F);return Object.keys(U.reduce(m,{}))}function y(F){return function(U){return F&&F.indexOf(U)!==-1}}function b(F,U){for(var J in F)Object.prototype.hasOwnProperty.call(F,J)&&(U[J]=F[J])}function x(F,U){var J=F.prototype;if(!(J instanceof U)){let se=function(){};se.prototype=U.prototype,se=new se,b(J,se),F.prototype=J=se}J.constructor!=F&&(typeof F!="function"&&console.error("unknown Class:"+F),J.constructor=F)}var E={},C=E.ELEMENT_NODE=1,S=E.ATTRIBUTE_NODE=2,R=E.TEXT_NODE=3,T=E.CDATA_SECTION_NODE=4,k=E.ENTITY_REFERENCE_NODE=5,L=E.ENTITY_NODE=6,q=E.PROCESSING_INSTRUCTION_NODE=7,O=E.COMMENT_NODE=8,G=E.DOCUMENT_NODE=9,V=E.DOCUMENT_TYPE_NODE=10,Y=E.DOCUMENT_FRAGMENT_NODE=11,z=E.NOTATION_NODE=12,W={},X={};W.INDEX_SIZE_ERR=(X[1]="Index size error",1),W.DOMSTRING_SIZE_ERR=(X[2]="DOMString size error",2);var ee=W.HIERARCHY_REQUEST_ERR=(X[3]="Hierarchy request error",3);W.WRONG_DOCUMENT_ERR=(X[4]="Wrong document",4);var te=W.INVALID_CHARACTER_ERR=(X[5]="Invalid character",5);W.NO_DATA_ALLOWED_ERR=(X[6]="No data allowed",6),W.NO_MODIFICATION_ALLOWED_ERR=(X[7]="No modification allowed",7);var ae=W.NOT_FOUND_ERR=(X[8]="Not found",8);W.NOT_SUPPORTED_ERR=(X[9]="Not supported",9);var ie=W.INUSE_ATTRIBUTE_ERR=(X[10]="Attribute in use",10),oe=W.INVALID_STATE_ERR=(X[11]="Invalid state",11);W.SYNTAX_ERR=(X[12]="Syntax error",12),W.INVALID_MODIFICATION_ERR=(X[13]="Invalid modification",13),W.NAMESPACE_ERR=(X[14]="Invalid namespace",14),W.INVALID_ACCESS_ERR=(X[15]="Invalid access",15);function K(F,U){if(U instanceof Error)var J=U;else J=this,Error.call(this,X[F]),this.message=X[F],Error.captureStackTrace&&Error.captureStackTrace(this,K);return J.code=F,U&&(this.message=this.message+": "+U),J}K.prototype=Error.prototype,b(W,K);function ue(){}ue.prototype={length:0,item:function(F){return F>=0&&F<this.length?this[F]:null},toString:function(F,U,J){for(var se=!!J&&!!J.requireWellFormed,me=[],Ee=0;Ee<this.length;Ee++)ur(this[Ee],me,F,U,null,se);return me.join("")},filter:function(F){return Array.prototype.filter.call(this,F)},indexOf:function(F){return Array.prototype.indexOf.call(this,F)}};function pe(F,U){this._node=F,this._refresh=U,Ie(this)}function Ie(F){var U=F._node._inc||F._node.ownerDocument._inc;if(F._inc!==U){var J=F._refresh(F._node);if(ye(F,"length",J.length),!F.$$length||J.length<F.$$length)for(var se=J.length;se in F;se++)Object.prototype.hasOwnProperty.call(F,se)&&delete F[se];b(J,F),F._inc=U}}pe.prototype.item=function(F){return Ie(this),this[F]||null},x(pe,ue);function Re(){this._nameIndex=Object.create(null)}function fe(F,U){for(var J=F.length;J--;)if(F[J]===U)return J}function je(F,U){F._nameIndex[U.nodeName]=U}function Se(F,U){F._nameIndex[U.nodeName]===U&&delete F._nameIndex[U.nodeName]}function _e(F,U,J,se){if(se?(U[fe(U,se)]=J,Se(U,se)):U[U.length++]=J,je(U,J),F){J.ownerElement=F;var me=F.ownerDocument;me&&(se&&$(me,F,se),he(me,F,J))}}function ve(F,U,J){var se=fe(U,J);if(se>=0){for(var me=U.length-1;se<me;)U[se]=U[++se];if(U.length=me,Se(U,J),F){var Ee=F.ownerDocument;Ee&&($(Ee,F,J),J.ownerElement=null)}}else throw new K(ae,new Error(F.tagName+"@"+J))}Re.prototype={length:0,item:ue.prototype.item,getNamedItem:function(F){for(var U=this.length;U--;){var J=this[U];if(J.nodeName==F)return J}},setNamedItem:function(F){var U=F.ownerElement;if(U&&U!=this._ownerElement)throw new K(ie);var J=this._nameIndex[F.nodeName];return _e(this._ownerElement,this,F,J),J},setNamedItemNS:function(F){var U=F.ownerElement,J;if(U&&U!=this._ownerElement)throw new K(ie);return J=this.getNamedItemNS(F.namespaceURI,F.localName),_e(this._ownerElement,this,F,J),J},removeNamedItem:function(F){var U=this.getNamedItem(F);return ve(this._ownerElement,this,U),U},removeNamedItemNS:function(F,U){var J=this.getNamedItemNS(F,U);return ve(this._ownerElement,this,J),J},getNamedItemNS:function(F,U){for(var J=this.length;J--;){var se=this[J];if(se.localName==U&&se.namespaceURI==F)return se}return null}};function De(){}De.prototype={hasFeature:function(F,U){return!0},createDocument:function(F,U,J){var se=new ge;if(se.implementation=this,se.childNodes=new ue,se.doctype=J||null,J&&se.appendChild(J),U){var me=se.createElementNS(F,U);se.appendChild(me)}return se},createDocumentType:function(F,U,J){var se=new Pt;return se.name=F,se.nodeName=F,se.publicId=U||"",se.systemId=J||"",se}};function be(){}be.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(F,U){return ct(this,F,U)},replaceChild:function(F,U){ct(this,F,U,Le),U&&this.removeChild(U)},removeChild:function(F){return Pe(this,F)},appendChild:function(F){return this.insertBefore(F,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(F){return Tt(this.ownerDocument||this,this,F)},normalize:function(){Me(this,null,{enter:function(F){for(var U=F.firstChild;U;){var J=U.nextSibling;if(J!==null&&J.nodeType===R&&U.nodeType===R){for(var se=[],me=J;me!==null&&me.nodeType===R;)se.push(me.data),me=me.nextSibling;for(var Ee=U.nextSibling;Ee!==me;){var de=Ee.nextSibling;Ee.parentNode=null,Ee.previousSibling=null,Ee.nextSibling=null,Ee=de}U.nextSibling=me,me!==null?me.previousSibling=U:F.lastChild=U,U.appendData(se.join("")),Ce(F.ownerDocument,F),U=me}else U=J}return!0}})},isSupported:function(F,U){return this.ownerDocument.implementation.hasFeature(F,U)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(F){for(var U=this;U;){var J=U._nsMap;if(J){for(var se in J)if(Object.prototype.hasOwnProperty.call(J,se)&&J[se]===F)return se}U=U.nodeType==S?U.ownerDocument:U.parentNode}return null},lookupNamespaceURI:function(F){for(var U=this;U;){var J=U._nsMap;if(J&&Object.prototype.hasOwnProperty.call(J,F))return J[F];U=U.nodeType==S?U.ownerDocument:U.parentNode}return null},isDefaultNamespace:function(F){var U=this.lookupPrefix(F);return U==null}};function Oe(F){return F=="<"&&"<"||F==">"&&">"||F=="&"&&"&"||F=='"'&&"""||"&#"+F.charCodeAt()+";"}b(E,be),b(E,be.prototype);function Q(F,U){return Me(F,null,{enter:function(J){return U(J)?Me.STOP:!0}})===Me.STOP}function Me(F,U,J){for(var se=[{node:F,context:U,phase:Me.ENTER}];se.length>0;){var me=se.pop();if(me.phase===Me.ENTER){var Ee=J.enter(me.node,me.context);if(Ee===Me.STOP)return Me.STOP;if(se.push({node:me.node,context:Ee,phase:Me.EXIT}),Ee==null)continue;for(var de=me.node.lastChild;de;)se.push({node:de,context:Ee,phase:Me.ENTER}),de=de.previousSibling}else J.exit&&J.exit(me.node,me.context)}}Me.STOP=Symbol("walkDOM.STOP"),Me.ENTER=0,Me.EXIT=1;function ge(){this.ownerDocument=this}function he(F,U,J){F&&F._inc++;var se=J.namespaceURI;se===r.XMLNS&&(U._nsMap[J.prefix?J.localName:""]=J.value)}function $(F,U,J,se){F&&F._inc++;var me=J.namespaceURI;me===r.XMLNS&&delete U._nsMap[J.prefix?J.localName:""]}function Ce(F,U,J){if(F&&F._inc){F._inc++;var se=U.childNodes;if(J)se[se.length++]=J;else{for(var me=U.firstChild,Ee=0;me;)se[Ee++]=me,me=me.nextSibling;se.length=Ee,delete se[se.length]}}}function Pe(F,U){var J=U.previousSibling,se=U.nextSibling;return J?J.nextSibling=se:F.firstChild=se,se?se.previousSibling=J:F.lastChild=J,U.parentNode=null,U.previousSibling=null,U.nextSibling=null,Ce(F.ownerDocument,F),U}function $e(F){return F&&(F.nodeType===be.DOCUMENT_NODE||F.nodeType===be.DOCUMENT_FRAGMENT_NODE||F.nodeType===be.ELEMENT_NODE)}function Ue(F){return F&&(Ze(F)||le(F)||Ye(F)||F.nodeType===be.DOCUMENT_FRAGMENT_NODE||F.nodeType===be.COMMENT_NODE||F.nodeType===be.PROCESSING_INSTRUCTION_NODE)}function Ye(F){return F&&F.nodeType===be.DOCUMENT_TYPE_NODE}function Ze(F){return F&&F.nodeType===be.ELEMENT_NODE}function le(F){return F&&F.nodeType===be.TEXT_NODE}function We(F,U){var J=F.childNodes||[];if(t(J,Ze)||Ye(U))return!1;var se=t(J,Ye);return!(U&&se&&J.indexOf(se)>J.indexOf(U))}function lt(F,U){var J=F.childNodes||[];function se(Ee){return Ze(Ee)&&Ee!==U}if(t(J,se))return!1;var me=t(J,Ye);return!(U&&me&&J.indexOf(me)>J.indexOf(U))}function tt(F,U,J){if(!$e(F))throw new K(ee,"Unexpected parent node type "+F.nodeType);if(J&&J.parentNode!==F)throw new K(ae,"child not in parent");if(!Ue(U)||Ye(U)&&F.nodeType!==be.DOCUMENT_NODE)throw new K(ee,"Unexpected node type "+U.nodeType+" for parent node type "+F.nodeType)}function Zt(F,U,J){var se=F.childNodes||[],me=U.childNodes||[];if(U.nodeType===be.DOCUMENT_FRAGMENT_NODE){var Ee=me.filter(Ze);if(Ee.length>1||t(me,le))throw new K(ee,"More than one element or text in fragment");if(Ee.length===1&&!We(F,J))throw new K(ee,"Element in fragment can not be inserted before doctype")}if(Ze(U)&&!We(F,J))throw new K(ee,"Only one element can be added and only after doctype");if(Ye(U)){if(t(se,Ye))throw new K(ee,"Only one doctype is allowed");var de=t(se,Ze);if(J&&se.indexOf(de)<se.indexOf(J))throw new K(ee,"Doctype can only be inserted before an element");if(!J&&de)throw new K(ee,"Doctype can not be appended since element is present")}}function Le(F,U,J){var se=F.childNodes||[],me=U.childNodes||[];if(U.nodeType===be.DOCUMENT_FRAGMENT_NODE){var Ee=me.filter(Ze);if(Ee.length>1||t(me,le))throw new K(ee,"More than one element or text in fragment");if(Ee.length===1&&!lt(F,J))throw new K(ee,"Element in fragment can not be inserted before doctype")}if(Ze(U)&&!lt(F,J))throw new K(ee,"Only one element can be added and only after doctype");if(Ye(U)){if(t(se,function(Je){return Ye(Je)&&Je!==J}))throw new K(ee,"Only one doctype is allowed");var de=t(se,Ze);if(J&&se.indexOf(de)<se.indexOf(J))throw new K(ee,"Doctype can only be inserted before an element")}}function ct(F,U,J,se){tt(F,U,J),F.nodeType===be.DOCUMENT_NODE&&(se||Zt)(F,U,J);var me=U.parentNode;if(me&&me.removeChild(U),U.nodeType===Y){var Ee=U.firstChild;if(Ee==null)return U;var de=U.lastChild}else Ee=de=U;var ze=J?J.previousSibling:F.lastChild;Ee.previousSibling=ze,de.nextSibling=J,ze?ze.nextSibling=Ee:F.firstChild=Ee,J==null?F.lastChild=de:J.previousSibling=de;do{Ee.parentNode=F;var Je=F.ownerDocument||F;dt(Ee,Je)}while(Ee!==de&&(Ee=Ee.nextSibling));return Ce(F.ownerDocument||F,F),U.nodeType==Y&&(U.firstChild=U.lastChild=null),U}function dt(F,U){if(F.ownerDocument!==U){if(F.ownerDocument=U,F.nodeType===C&&F.attributes)for(var J=0;J<F.attributes.length;J++){var se=F.attributes.item(J);se&&(se.ownerDocument=U)}for(var me=F.firstChild;me;)dt(me,U),me=me.nextSibling}}function qt(F,U){U.parentNode&&U.parentNode.removeChild(U),U.parentNode=F,U.previousSibling=F.lastChild,U.nextSibling=null,U.previousSibling?U.previousSibling.nextSibling=U:F.firstChild=U,F.lastChild=U,Ce(F.ownerDocument,F,U);var J=F.ownerDocument||F;return dt(U,J),U}ge.prototype={nodeName:"#document",nodeType:G,doctype:null,documentElement:null,_inc:1,insertBefore:function(F,U){if(F.nodeType==Y){for(var J=F.firstChild;J;){var se=J.nextSibling;this.insertBefore(J,U),J=se}return F}return ct(this,F,U),dt(F,this),this.documentElement===null&&F.nodeType===C&&(this.documentElement=F),F},removeChild:function(F){return this.documentElement==F&&(this.documentElement=null),Pe(this,F)},replaceChild:function(F,U){ct(this,F,U,Le),dt(F,this),U&&this.removeChild(U),Ze(F)&&(this.documentElement=F)},importNode:function(F,U){return pr(this,F,U)},getElementById:function(F){var U=null;return Q(this.documentElement,function(J){if(J.nodeType==C&&J.getAttribute("id")==F)return U=J,!0}),U},getElementsByClassName:function(F){var U=g(F);return new pe(this,function(J){var se=[];return U.length>0&&Q(J.documentElement,function(me){if(me!==J&&me.nodeType===C){var Ee=me.getAttribute("class");if(Ee){var de=F===Ee;if(!de){var ze=g(Ee);de=U.every(y(ze))}de&&se.push(me)}}}),se})},createElement:function(F){var U=new Te;U.ownerDocument=this,U.nodeName=F,U.tagName=F,U.localName=F,U.childNodes=new ue;var J=U.attributes=new Re;return J._ownerElement=U,U},createDocumentFragment:function(){var F=new It;return F.ownerDocument=this,F.childNodes=new ue,F},createTextNode:function(F){var U=new Ne;return U.ownerDocument=this,U.appendData(F),U},createComment:function(F){var U=new Vt;return U.ownerDocument=this,U.appendData(F),U},createCDATASection:function(F){if(F.indexOf("]]>")!==-1)throw new K(te,'data contains "]]>"');var U=new rt;return U.ownerDocument=this,U.appendData(F),U},createProcessingInstruction:function(F,U){var J=new Qe;return J.ownerDocument=this,J.tagName=J.nodeName=J.target=F,J.nodeValue=J.data=U,J},createAttribute:function(F){var U=new Dt;return U.ownerDocument=this,U.name=F,U.nodeName=F,U.localName=F,U.specified=!0,U},createEntityReference:function(F){if(!n.test(F))throw new K(te,'not a valid xml name "'+F+'"');var U=new $t;return U.ownerDocument=this,U.nodeName=F,U},createElementNS:function(F,U){var J=new Te,se=U.split(":"),me=J.attributes=new Re;return J.childNodes=new ue,J.ownerDocument=this,J.nodeName=U,J.tagName=U,J.namespaceURI=F,se.length==2?(J.prefix=se[0],J.localName=se[1]):J.localName=U,me._ownerElement=J,J},createAttributeNS:function(F,U){var J=new Dt,se=U.split(":");return J.ownerDocument=this,J.nodeName=U,J.name=U,J.namespaceURI=F,J.specified=!0,se.length==2?(J.prefix=se[0],J.localName=se[1]):J.localName=U,J}},x(ge,be);function Te(){this._nsMap={}}Te.prototype={nodeType:C,hasAttribute:function(F){return this.getAttributeNode(F)!=null},getAttribute:function(F){var U=this.getAttributeNode(F);return U&&U.value||""},getAttributeNode:function(F){return this.attributes.getNamedItem(F)},setAttribute:function(F,U){var J=this.ownerDocument.createAttribute(F);J.value=J.nodeValue=""+U,this.setAttributeNode(J)},removeAttribute:function(F){var U=this.getAttributeNode(F);U&&this.removeAttributeNode(U)},appendChild:function(F){return F.nodeType===Y?this.insertBefore(F,null):qt(this,F)},setAttributeNode:function(F){return this.attributes.setNamedItem(F)},setAttributeNodeNS:function(F){return this.attributes.setNamedItemNS(F)},removeAttributeNode:function(F){return this.attributes.removeNamedItem(F.nodeName)},removeAttributeNS:function(F,U){var J=this.getAttributeNodeNS(F,U);J&&this.removeAttributeNode(J)},hasAttributeNS:function(F,U){return this.getAttributeNodeNS(F,U)!=null},getAttributeNS:function(F,U){var J=this.getAttributeNodeNS(F,U);return J&&J.value||""},setAttributeNS:function(F,U,J){var se=this.ownerDocument.createAttributeNS(F,U);se.value=se.nodeValue=""+J,this.setAttributeNode(se)},getAttributeNodeNS:function(F,U){return this.attributes.getNamedItemNS(F,U)},getElementsByTagName:function(F){return new pe(this,function(U){var J=[];return Q(U,function(se){se!==U&&se.nodeType==C&&(F==="*"||se.tagName==F)&&J.push(se)}),J})},getElementsByTagNameNS:function(F,U){return new pe(this,function(J){var se=[];return Q(J,function(me){me!==J&&me.nodeType===C&&(F==="*"||me.namespaceURI===F)&&(U==="*"||me.localName==U)&&se.push(me)}),se})}},ge.prototype.getElementsByTagName=Te.prototype.getElementsByTagName,ge.prototype.getElementsByTagNameNS=Te.prototype.getElementsByTagNameNS,x(Te,be);function Dt(){}Dt.prototype.nodeType=S,x(Dt,be);function Fe(){}Fe.prototype={data:"",substringData:function(F,U){return this.data.substring(F,F+U)},appendData:function(F){F=this.data+F,this.nodeValue=this.data=F,this.length=F.length},insertData:function(F,U){this.replaceData(F,0,U)},appendChild:function(F){throw new Error(X[ee])},deleteData:function(F,U){this.replaceData(F,U,"")},replaceData:function(F,U,J){var se=this.data.substring(0,F),me=this.data.substring(F+U);J=se+J+me,this.nodeValue=this.data=J,this.length=J.length}},x(Fe,be);function Ne(){}Ne.prototype={nodeName:"#text",nodeType:R,splitText:function(F){var U=this.data,J=U.substring(F);U=U.substring(0,F),this.data=this.nodeValue=U,this.length=U.length;var se=this.ownerDocument.createTextNode(J);return this.parentNode&&this.parentNode.insertBefore(se,this.nextSibling),se}},x(Ne,Fe);function Vt(){}Vt.prototype={nodeName:"#comment",nodeType:O},x(Vt,Fe);function rt(){}rt.prototype={nodeName:"#cdata-section",nodeType:T},x(rt,Fe);function Pt(){}Pt.prototype.nodeType=V,x(Pt,be);function we(){}we.prototype.nodeType=z,x(we,be);function zt(){}zt.prototype.nodeType=L,x(zt,be);function $t(){}$t.prototype.nodeType=k,x($t,be);function It(){}It.prototype.nodeName="#document-fragment",It.prototype.nodeType=Y,x(It,be);function Qe(){}Qe.prototype.nodeType=q,x(Qe,be);function gt(){}gt.prototype.serializeToString=function(F,U,J,se){return nt.call(F,U,J,se)},be.prototype.toString=nt;function nt(F,U,J){var se=!!J&&!!J.requireWellFormed,me=[],Ee=this.nodeType==9&&this.documentElement||this,de=Ee.prefix,ze=Ee.namespaceURI;if(ze&&de==null){var de=Ee.lookupPrefix(ze);if(de==null)var Je=[{namespace:ze,prefix:null}]}return ur(this,me,F,U,Je,se),me.join("")}function ar(F,U,J){var se=F.prefix||"",me=F.namespaceURI;if(!me||se==="xml"&&me===r.XML||me===r.XMLNS)return!1;for(var Ee=J.length;Ee--;){var de=J[Ee];if(de.prefix===se)return de.namespace!==me}return!0}function Ft(F,U,J,se){if(se&&!n.test(U))throw new K(oe,'The attribute name "'+U+'" is not a valid XML QName');F.push(" ",U,'="',J.replace(/[<>&"\t\n\r]/g,Oe),'"')}function ur(F,U,J,se,me,Ee){me||(me=[]),Me(F,{ns:me,isHTML:J},{enter:function(de,ze){var Je=ze.ns,st=ze.isHTML;if(se)if(de=se(de),de){if(typeof de=="string")return U.push(de),null}else return null;switch(de.nodeType){case C:var yt=de.attributes,Jt=yt.length,Ke=de.tagName;st=r.isHTML(de.namespaceURI)||st;var ot=Ke;if(!st&&!de.prefix&&de.namespaceURI){for(var wt,vt=0;vt<yt.length;vt++)if(yt.item(vt).name==="xmlns"){wt=yt.item(vt).value;break}if(!wt)for(var at=Je.length-1;at>=0;at--){var Ct=Je[at];if(Ct.prefix===""&&Ct.namespace===de.namespaceURI){wt=Ct.namespace;break}}if(wt!==de.namespaceURI)for(var at=Je.length-1;at>=0;at--){var Ct=Je[at];if(Ct.namespace===de.namespaceURI){Ct.prefix&&(ot=Ct.prefix+":"+Ke);break}}}if(Ee&&!n.test(ot))throw new K(oe,'The element name "'+ot+'" is not a valid XML QName');U.push("<",ot);for(var ht=Je.slice(),ft=0;ft<Jt;ft++){var qe=yt.item(ft);qe.prefix=="xmlns"?ht.push({prefix:qe.localName,namespace:qe.value}):qe.nodeName=="xmlns"&&ht.push({prefix:"",namespace:qe.value})}for(var ft=0;ft<Jt;ft++){var qe=yt.item(ft);if(ar(qe,st,ht)){var or=qe.prefix||"",Ht=qe.namespaceURI;Ft(U,or?"xmlns:"+or:"xmlns",Ht,Ee),ht.push({prefix:or,namespace:Ht})}var kt=se?se(qe):qe;kt&&(typeof kt=="string"?U.push(kt):Ft(U,kt.name,kt.value,Ee))}if(Ke===ot&&ar(de,st,ht)){var Mt=de.prefix||"",Ht=de.namespaceURI;Ft(U,Mt?"xmlns:"+Mt:"xmlns",Ht,Ee),ht.push({prefix:Mt,namespace:Ht})}var St=de.firstChild;if(St||st&&!/^(?:meta|link|img|br|hr|input)$/i.test(Ke)){if(U.push(">"),st&&/^script$/i.test(Ke)){for(;St;)St.data?U.push(St.data):ur(St,U,st,se,ht.slice(),Ee),St=St.nextSibling;return U.push("</",Ke,">"),null}return{ns:ht,isHTML:st,tag:ot}}else return U.push("/>"),null;case G:case Y:return{ns:Je.slice(),isHTML:st,tag:null};case S:return Ft(U,de.name,de.value,Ee),null;case R:return U.push(de.data.replace(/[<&>]/g,Oe)),null;case T:if(Ee&&de.data.indexOf("]]>")!==-1)throw new K(oe,'The CDATASection data contains "]]>"');return U.push("<![CDATA[",de.data.replace(/]]>/g,"]]]]><![CDATA[>"),"]]>"),null;case O:if(Ee&&de.data.indexOf("-->")!==-1)throw new K(oe,'The comment node data contains "-->"');return U.push("<!--",de.data,"-->"),null;case V:if(Ee){if(!n.test(de.name))throw new K(oe,'The doctype name "'+de.name+'" is not a valid XML Name');if(de.publicId&&!/^("[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%']*"|'[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%'"]*')$/.test(de.publicId))throw new K(oe,"DocumentType publicId is not a valid PubidLiteral");if(de.systemId&&!/^("[^"]*"|'[^']*')$/.test(de.systemId))throw new K(oe,"DocumentType systemId is not a valid SystemLiteral");if(de.internalSubset&&de.internalSubset.indexOf("]>")!==-1)throw new K(oe,'DocumentType internalSubset contains "]>"')}var Kt=de.publicId,jt=de.systemId;if(U.push("<!DOCTYPE ",de.name),Kt)U.push(" PUBLIC ",Kt),jt&&jt!="."&&U.push(" ",jt),U.push(">");else if(jt&&jt!=".")U.push(" SYSTEM ",jt,">");else{var mr=de.internalSubset;mr&&U.push(" [",mr,"]"),U.push(">")}return null;case q:if(Ee){if(!n.test(de.target)||de.target.indexOf(":")!==-1||de.target.toLowerCase()==="xml")throw new K(oe,'The processing instruction target "'+de.target+'" is not a valid XML NCName or is reserved');if(de.data.indexOf("?>")!==-1)throw new K(oe,'The ProcessingInstruction data contains "?>"')}return U.push("<?",de.target," ",de.data,"?>"),null;case k:if(Ee&&!n.test(de.nodeName))throw new K(oe,'The entity reference name "'+de.nodeName+'" is not a valid XML Name');return U.push("&",de.nodeName,";"),null;default:return U.push("??",de.nodeName),null}},exit:function(de,ze){ze&&ze.tag&&U.push("</",ze.tag,">")}})}function pr(F,U,J){var se;return Me(U,null,{enter:function(me,Ee){var de=me.cloneNode(!1);de.ownerDocument=F,de.parentNode=null,Ee===null?se=de:Ee.appendChild(de);var ze=me.nodeType===S||J;return ze?de:null}}),se}function Tt(F,U,J){var se;return Me(U,null,{enter:function(me,Ee){var de=new me.constructor;for(var ze in me)if(Object.prototype.hasOwnProperty.call(me,ze)){var Je=me[ze];typeof Je!="object"&&Je!=de[ze]&&(de[ze]=Je)}me.childNodes&&(de.childNodes=new ue),de.ownerDocument=F;var st=J;switch(de.nodeType){case C:var yt=me.attributes,Jt=de.attributes=new Re,Ke=yt.length;Jt._ownerElement=de;for(var ot=0;ot<Ke;ot++)de.setAttributeNode(Tt(F,yt.item(ot),!0));break;case S:st=!0}return Ee!==null?Ee.appendChild(de):se=de,st?de:null}}),se}function ye(F,U,J){F[U]=J}try{Object.defineProperty&&(Object.defineProperty(pe.prototype,"length",{get:function(){return Ie(this),this.$$length}}),Object.defineProperty(be.prototype,"textContent",{get:function(){if(this.nodeType===C||this.nodeType===Y){var F=[];return Me(this,null,{enter:function(U){if(U.nodeType===C||U.nodeType===Y)return!0;if(U.nodeType===q||U.nodeType===O)return null;F.push(U.nodeValue)}}),F.join("")}return this.nodeValue},set:function(F){switch(this.nodeType){case C:case Y:for(;this.firstChild;)this.removeChild(this.firstChild);(F||String(F))&&this.appendChild(this.ownerDocument.createTextNode(F));break;default:this.data=F,this.value=F,this.nodeValue=F}}}),ye=function(F,U,J){F["$$"+U]=J})}catch{}return dom.DocumentType=Pt,dom.DOMException=K,dom.DOMImplementation=De,dom.Element=Te,dom.Node=be,dom.NodeList=ue,dom.walkDOM=Me,dom.XMLSerializer=gt,dom}var domParser={},entities={},hasRequiredEntities;function requireEntities(){return hasRequiredEntities||(hasRequiredEntities=1,(function(e){var t=requireConventions().freeze;e.XML_ENTITIES=t({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),e.HTML_ENTITIES=t({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
|
|
135
135
|
`,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""}),e.entityMap=e.HTML_ENTITIES})(entities)),entities}var sax={},hasRequiredSax;function requireSax(){if(hasRequiredSax)return sax;hasRequiredSax=1;var e=requireConventions().NAMESPACE,t=requireConventions().tagNamePattern,r=0,n=1,a=2,d=3,m=4,g=5,y=6,b=7;function x(z,W){this.message=z,this.locator=W,Error.captureStackTrace&&Error.captureStackTrace(this,x)}x.prototype=new Error,x.prototype.name=x.name;function E(){}E.prototype={parse:function(z,W,X){var ee=this.domBuilder;ee.startDocument(),q(W,W={}),C(z,W,X,ee,this.errorHandler),ee.endDocument()}};function C(z,W,X,ee,te){function ae(le){if(le>65535){le-=65536;var We=55296+(le>>10),lt=56320+(le&1023);return String.fromCharCode(We,lt)}else return String.fromCharCode(le)}function ie(le){var We=le.slice(1,-1);return Object.hasOwnProperty.call(X,We)?X[We]:We.charAt(0)==="#"?ae(parseInt(We.substr(1).replace("x","0x"))):(te.error("entity not found:"+le),le)}function oe(le){if(le>Se){var We=z.substring(Se,le).replace(/&#?\w+;/g,ie);Re&&K(Se),ee.characters(We,0,le-Se),Se=le}}function K(le,We){for(;le>=pe&&(We=Ie.exec(z));)ue=We.index,pe=ue+We[0].length,Re.lineNumber++;Re.columnNumber=le-ue+1}for(var ue=0,pe=0,Ie=/.*(?:\r\n?|\n)|.*$/g,Re=ee.locator,fe=[{currentNSMap:W}],je={},Se=0;;){try{var _e=z.indexOf("<",Se);if(_e<0){if(!z.substr(Se).match(/^\s*$/)){var ve=ee.doc,De=ve.createTextNode(z.substr(Se));ve.appendChild(De),ee.currentElement=De}return}switch(_e>Se&&oe(_e),z.charAt(_e+1)){case"/":var Pe=z.indexOf(">",_e+3),be=z.substring(_e+2,Pe).replace(/^([\s\S]*?[^ \t\n\r])?[ \t\n\r]*$/,"$1"),Oe=fe.pop();Pe<0?(be=z.substring(_e+2).replace(/[\s<].*/,""),te.error("end tag name: "+be+" is not complete:"+Oe.tagName),Pe=_e+1+be.length):be.match(/\s</)?(be=be.replace(/[\s<].*/,""),te.error("end tag name: "+be+" maybe not complete"),Pe=_e+1+be.length):/[ \t\n\r]/.test(be)&&t.test(be.split(/[ \t\n\r]/)[0])&&te.error('end tag name is followed by whitespace and trailing content: "'+be+'"');var Q=Oe.localNSMap,Me=Oe.tagName==be,ge=Me||Oe.tagName&&Oe.tagName.toLowerCase()==be.toLowerCase();if(ge){if(ee.endElement(Oe.uri,Oe.localName,be),Q)for(var he in Q)Object.prototype.hasOwnProperty.call(Q,he)&&ee.endPrefixMapping(he);Me||te.fatalError("end tag name: "+be+" is not match the current start tagName:"+Oe.tagName)}else fe.push(Oe);Pe++;break;case"?":Re&&K(_e),Pe=G(z,_e,ee);break;case"!":Re&&K(_e),Pe=O(z,_e,ee,te);break;default:Re&&K(_e);var $=new V,Ce=fe[fe.length-1].currentNSMap,Pe=R(z,_e,$,Ce,ie,te),$e=$.length;if(!$.closed&&L(z,Pe,$.tagName,je)&&($.closed=!0,X.nbsp||te.warning("unclosed xml attribute")),Re&&$e){for(var Ue=S(Re,{}),Ye=0;Ye<$e;Ye++){var Ze=$[Ye];K(Ze.offset),Ze.locator=S(Re,{})}ee.locator=Ue,T($,ee,Ce)&&fe.push($),ee.locator=Re}else T($,ee,Ce)&&fe.push($);e.isHTML($.uri)&&!$.closed?Pe=k(z,Pe,$.tagName,ie,ee):Pe++}}catch(le){if(le instanceof x)throw le;te.error("element parse error: "+le),Pe=-1}Pe>Se?Se=Pe:oe(Math.max(_e,Se)+1)}}function S(z,W){return W.lineNumber=z.lineNumber,W.columnNumber=z.columnNumber,W}function R(z,W,X,ee,te,ae){function ie(Re,fe,je){X.attributeNames.hasOwnProperty(Re)&&ae.fatalError("Attribute "+Re+" redefined"),X.addValue(Re,fe.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,te),je)}for(var oe,K,ue=++W,pe=r;;){var Ie=z.charAt(ue);if(pe===r&&Ie==="<")throw new Error("unexpected < in tag name: "+z.slice(W,ue));switch(Ie){case"=":if(pe===n)oe=z.slice(W,ue),pe=d;else if(pe===a)pe=d;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(pe===d||pe===n)if(pe===n&&(ae.warning('attribute value must after "="'),oe=z.slice(W,ue)),W=ue+1,ue=z.indexOf(Ie,W),ue>0)K=z.slice(W,ue),ie(oe,K,W-1),pe=g;else throw new Error("attribute value no end '"+Ie+"' match");else if(pe==m)K=z.slice(W,ue),ie(oe,K,W),ae.warning('attribute "'+oe+'" missed start quot('+Ie+")!!"),W=ue+1,pe=g;else throw new Error('attribute value must after "="');break;case"/":switch(pe){case r:X.setTagName(z.slice(W,ue));case g:case y:case b:pe=b,X.closed=!0;case m:case n:break;case a:X.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return ae.error("unexpected end of input"),pe==r&&X.setTagName(z.slice(W,ue)),ue;case">":switch(pe){case r:X.setTagName(z.slice(W,ue));case g:case y:case b:break;case m:case n:K=z.slice(W,ue),K.slice(-1)==="/"&&(X.closed=!0,K=K.slice(0,-1));case a:pe===a&&(K=oe),pe==m?(ae.warning('attribute "'+K+'" missed quot(")!'),ie(oe,K,W)):((!e.isHTML(ee[""])||!K.match(/^(?:disabled|checked|selected)$/i))&&ae.warning('attribute "'+K+'" missed value!! "'+K+'" instead!!'),ie(K,K,W));break;case d:throw new Error("attribute value missed!!")}return ue;case"":Ie=" ";default:if(Ie<=" ")switch(pe){case r:X.setTagName(z.slice(W,ue)),pe=y;break;case n:oe=z.slice(W,ue),pe=a;break;case m:var K=z.slice(W,ue);ae.warning('attribute "'+K+'" missed quot(")!!'),ie(oe,K,W);case g:pe=y;break}else switch(pe){case a:X.tagName,(!e.isHTML(ee[""])||!oe.match(/^(?:disabled|checked|selected)$/i))&&ae.warning('attribute "'+oe+'" missed value!! "'+oe+'" instead2!!'),ie(oe,oe,W),W=ue,pe=n;break;case g:ae.warning('attribute space is required"'+oe+'"!!');case y:pe=n,W=ue;break;case d:pe=m,W=ue;break;case b:throw new Error("elements closed character '/' and '>' must be connected to")}}ue++}}function T(z,W,X){for(var ee=z.tagName,te=null,Ie=z.length;Ie--;){var ae=z[Ie],ie=ae.qName,oe=ae.value,Re=ie.indexOf(":");if(Re>0)var K=ae.prefix=ie.slice(0,Re),ue=ie.slice(Re+1),pe=K==="xmlns"&&ue;else ue=ie,K=null,pe=ie==="xmlns"&&"";ae.localName=ue,pe!==!1&&(te==null&&(te={},X=Object.create(X)),X[pe]=te[pe]=oe,ae.uri=e.XMLNS,W.startPrefixMapping(pe,oe))}for(var Ie=z.length;Ie--;){ae=z[Ie];var K=ae.prefix;K&&(K==="xml"&&(ae.uri=e.XML),K!=="xmlns"&&(ae.uri=X[K||""]))}var Re=ee.indexOf(":");Re>0?(K=z.prefix=ee.slice(0,Re),ue=z.localName=ee.slice(Re+1)):(K=null,ue=z.localName=ee);var fe=z.uri=X[K||""];if(W.startElement(fe,ue,ee,z),z.closed){if(W.endElement(fe,ue,ee),te)for(K in te)Object.prototype.hasOwnProperty.call(te,K)&&W.endPrefixMapping(K)}else return z.currentNSMap=X,z.localNSMap=te,!0}function k(z,W,X,ee,te){if(/^(?:script|textarea)$/i.test(X)){var ae=z.indexOf("</"+X+">",W),ie=z.substring(W+1,ae);if(/[&<]/.test(ie))return/^script$/i.test(X)?(te.characters(ie,0,ie.length),ae):(ie=ie.replace(/&#?\w+;/g,ee),te.characters(ie,0,ie.length),ae)}return W+1}function L(z,W,X,ee){var te=ee[X];return te==null&&(te=z.lastIndexOf("</"+X+">"),te<W&&(te=z.lastIndexOf("</"+X)),ee[X]=te),te<W}function q(z,W){for(var X in z)Object.prototype.hasOwnProperty.call(z,X)&&(W[X]=z[X])}function O(z,W,X,ee){var te=z.charAt(W+2);switch(te){case"-":if(z.charAt(W+3)==="-"){var ae=z.indexOf("-->",W+4);return ae>W?(X.comment(z,W+4,ae-W-4),ae+3):(ee.error("Unclosed comment"),-1)}else return-1;default:if(z.substr(W+3,6)=="CDATA["){var ae=z.indexOf("]]>",W+9);return X.startCDATA(),X.characters(z,W+9,ae-W-9),X.endCDATA(),ae+3}var ie=Y(z,W),oe=ie.length;if(oe>1&&/!doctype/i.test(ie[0][0])){var K=ie[1][0],ue=!1,pe=!1;oe>3&&(/^public$/i.test(ie[2][0])?(ue=ie[3][0],pe=oe>4&&ie[4][0]):/^system$/i.test(ie[2][0])&&(pe=ie[3][0]));var Ie=ie[oe-1];return X.startDTD(K,ue,pe),X.endDTD(),Ie.index+Ie[0].length}}return-1}function G(z,W,X){var ee=z.indexOf("?>",W);if(ee){var te=z.substring(W,ee).match(/^<\?(\S*)\s*([\s\S]*?)$/);return te?(te[0].length,X.processingInstruction(te[1],te[2]),ee+2):-1}return-1}function V(){this.attributeNames={}}V.prototype={setTagName:function(z){if(!t.test(z))throw new Error("invalid tagName:"+z);this.tagName=z},addValue:function(z,W,X){if(!t.test(z))throw new Error("invalid attribute:"+z);this.attributeNames[z]=this.length,this[this.length++]={qName:z,value:W,offset:X}},length:0,getLocalName:function(z){return this[z].localName},getLocator:function(z){return this[z].locator},getQName:function(z){return this[z].qName},getURI:function(z){return this[z].uri},getValue:function(z){return this[z].value}};function Y(z,W){var X,ee=[],te=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(te.lastIndex=W,te.exec(z);X=te.exec(z);)if(ee.push(X),X[1])return ee}return sax.XMLReader=E,sax.ParseError=x,sax}var hasRequiredDomParser;function requireDomParser(){if(hasRequiredDomParser)return domParser;hasRequiredDomParser=1;var e=requireConventions(),t=requireDom(),r=requireEntities(),n=requireSax(),a=t.DOMImplementation,d=e.NAMESPACE,m=n.ParseError,g=n.XMLReader;function y(k){return k.replace(/\r[\n\u0085]/g,`
|
|
136
136
|
`).replace(/[\r\u0085\u2028]/g,`
|
|
137
137
|
`)}function b(k){this.options=k||{locator:{}}}b.prototype.parseFromString=function(k,L){var q=this.options,O=new g,G=q.domBuilder||new E,V=q.errorHandler,Y=q.locator,z=q.xmlns||{},W=/\/x?html?$/.test(L),X=W?r.HTML_ENTITIES:r.XML_ENTITIES;Y&&G.setDocumentLocator(Y),O.errorHandler=x(V,G,Y),O.domBuilder=q.domBuilder||G,W&&(z[""]=d.HTML),z.xml=z.xml||d.XML;var ee=q.normalizeLineEndings||y;return k&&typeof k=="string"?O.parse(ee(k),z,X):O.errorHandler.error("invalid doc source"),G.doc};function x(k,L,q){if(!k){if(L instanceof E)return L;k=L}var O={},G=k instanceof Function;q=q||{};function V(Y){var z=k[Y];!z&&G&&(z=k.length==2?function(W){k(Y,W)}:k),O[Y]=z&&function(W){z("[xmldom "+Y+"] "+W+S(q))}||function(){}}return V("warning"),V("error"),V("fatalError"),O}function E(){this.cdata=!1}function C(k,L){L.lineNumber=k.lineNumber,L.columnNumber=k.columnNumber}E.prototype={startDocument:function(){this.doc=new a().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(k,L,q,O){var G=this.doc,V=G.createElementNS(k,q||L),Y=O.length;T(this,V),this.currentElement=V,this.locator&&C(this.locator,V);for(var z=0;z<Y;z++){var k=O.getURI(z),W=O.getValue(z),q=O.getQName(z),X=G.createAttributeNS(k,q);this.locator&&C(O.getLocator(z),X),X.value=X.nodeValue=W,V.setAttributeNode(X)}},endElement:function(k,L,q){var O=this.currentElement;O.tagName,this.currentElement=O.parentNode},startPrefixMapping:function(k,L){},endPrefixMapping:function(k){},processingInstruction:function(k,L){var q=this.doc.createProcessingInstruction(k,L);this.locator&&C(this.locator,q),T(this,q)},ignorableWhitespace:function(k,L,q){},characters:function(k,L,q){if(k=R.apply(this,arguments),k){if(this.cdata)var O=this.doc.createCDATASection(k);else var O=this.doc.createTextNode(k);this.currentElement?this.currentElement.appendChild(O):/^\s*$/.test(k)&&this.doc.appendChild(O),this.locator&&C(this.locator,O)}},skippedEntity:function(k){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(k){(this.locator=k)&&(k.lineNumber=0)},comment:function(k,L,q){k=R.apply(this,arguments);var O=this.doc.createComment(k);this.locator&&C(this.locator,O),T(this,O)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(k,L,q){var O=this.doc.implementation;if(O&&O.createDocumentType){var G=O.createDocumentType(k,L,q);this.locator&&C(this.locator,G),T(this,G),this.doc.doctype=G}},warning:function(k){console.warn("[xmldom warning] "+k,S(this.locator))},error:function(k){console.error("[xmldom error] "+k,S(this.locator))},fatalError:function(k){throw new m(k,this.locator)}};function S(k){if(k)return`
|