
    (function () {
      try {
        let process = { env: { NODE_ENV: 'production' } };
        
        const randomComponentId = 'osc-component-66-465470-' + Math.floor(Math.random() * 1000000);
        const renderedWidgets = {};
        
        const currentScript = document.currentScript;
          currentScript.insertAdjacentHTML('afterend', `<div class="openstad" id="${randomComponentId}"></div>`);

          const redirectUri = new URL(encodeURI(window.location.href));
          redirectUri.searchParams.delete('openstadlogout');
          redirectUri.searchParams.delete('openstadlogintoken');
          
          const config = JSON.parse(`{"api":{"url":"https://api.doemee1stroom.nl"},"login":{"url":"https://api.doemee1stroom.nl/auth/project/6/login?useAuth=default&forceNewLogin=1&redirectUri=[[REDIRECT_URI]]","anonymous":{"url":"https://api.doemee1stroom.nl/auth/project/6/login?useAuth=anonymous&forceNewLogin=1&redirectUri=[[REDIRECT_URI]]"}},"logout":{"url":"https://api.doemee1stroom.nl/auth/project/6/logout?useAuth=default&redirectUri=[[REDIRECT_URI]]"},"projectId":"6","imageUrl":"https://api.doemee1stroom.nl/api/project/6/upload","zipCodeApiUrl":"https://openstad-cdn.nl/api/postcode.php?postcode=","zipCodeAutofillApiUrl":"https://openstad-cdn.nl/api/autofill.php?query=","map":{"areaId":"6","maxZoom":"19","minZoom":"12","customUrl":"https://service.pdok.nl/hwh/luchtfotorgb/wmts/v1_0/Actueel_ortho25/EPSG:3857/{z}/{x}/{y}.jpeg","tilesVariant":"custom","autoZoomAndCenter":"markers"},"auth":{"default":"openstad","provider":{"openstad":{"adapter":"openstad","clientId":"27826b01b2b2df7b525f83efaf08f05e"},"anonymous":{"adapter":"openstad","clientId":"aa8bc2a833419b816944530db057bb22"}}},"polls":{"canAddPolls":false,"requiredUserRole":"anonymous"},"users":{"canCreateNewUsers":true,"allowUseOfNicknames":false},"votes":{"isActive":true,"voteType":"likes","maxBudget":0,"minBudget":0,"isViewable":true,"voteValues":{"0":{"label":"voor","value":"yes"},"1":{"label":"tegen","value":"no"}},"mustConfirm":false,"maxResources":100,"minResources":1,"withExisting":"error","requiredUserRole":"anonymous"},"project":{"cssUrl":{"0":"https://openstad-cdn.nl/css/1stroom/variables.css","1":"https://openstad-cdn.nl/css/1stroom/custom.css"},"endDate":"2025-09-29T22:00:00.000Z","cssCustom":".resource-detail-comments-container .banner > button,\\n.openstad .banner > button { display: none; }\\n.openstad .banner { display: none !important;}\\n\\n@container resourceOverviewWithMapContainer (min-width: 800px) {\\n    .flexible-section .openstad .resourceOverviewWithMap-container .detail-container {\\n        grid-row: 1;\\nmin-height: 70vh;\\n    }\\nhtml    .openstad .resourceOverviewWithMap-container {\\n        grid-template-columns: 1fr 2fr;\\n    }\\n}\\n\\nhtml .openstad .map-container--buttons  .osc-map-legend.legend .legend-info {\\n    display: flex;\\n    align-items: center;\\n    margin-left: 0;\\n    height: 20px;\\n}\\n\\nhtml .openstad .osc-map-legend.legend .legend-label span { font-size: 15px; }\\n\\nhtml .openstad .osc-map-legend.legend .legend-icon {\\n    width: 30px;\\n    height: 40px;\\n    margin-right: 5px;\\n    display: block;\\n    position: relative;\\n    left: 0;\\n    top: -13px;\\n}\\n.openstad .map-wrapper {\\n    min-height: 70vh;\\n}\\n@container resourceOverviewWithMapContainer (max-width: 1000px) {\\n    .openstad .resourceOverviewWithMap-container {\\n        height: 100%;\\ngrid-template-rows: 70vh;\\n    }\\n}\\n\\n.openstad .osc .resource-card--link .osc-resource-overview-content-item-footer .icon>p {\\n    margin: 0;\\npadding: 0;\\n}\\n.openstad .button-group {\\n    margin: 0;\\njustify-content: flex-start;\\n}\\n\\n.openstad .button-group > button{\\n\\t\\twidth: fit-content;\\n}\\n\\n.flexible-section img[src=\\"https://img.doemee1stroom.nl/image/0df3799f8ebabad792bf7357907f1255\\"],\\n.flexible-section img[src=\\"https://img.doemee1stroom.nl/image/9c24315f8759792ebc01f2fe4e7144de\\"] {\\ncontent: url(\\"https://img.doemee1stroom.nl/image/dd48e7ee2954d3017ef53f0ce11f0dca\\");\\n}\\n\\n\\n\\n.osc-resource-form-item-content label.utrecht-form-label.utrecht-form-label--radio.--label-grid {\\n    display: flex;\\n    flex-direction: row-reverse;\\n    justify-content: flex-end;\\n}\\n\\n\\nbody .openstad .resourceOverviewWithMap-container .osc-carousel {\\n\\tdisplay: none; \\n}\\n\\nbody .openstad .resourceOverviewWithMap-container .resource-card--link {\\n    display: flex;\\n    flex-direction: column;\\n}\\n\\n.openstad .osc .osc-resource-form-item-content .form-container > .question:first-child{\\n\\tdisplay: none;\\n}\\n\\n\\n.openstad .osc .icon>i.big {\\n    font-size: 16px;\\n    font-weight: 400;\\n}\\n\\n.openstad .osc .resource-card--link .osc-resource-overview-content-item-footer .icon>p {\\n    margin: 0;\\n    font-weight: 400;\\n}\\n\\nbody .openstad .resourceOverviewWithMap-container .resource-card--link {\\n    gap: 1rem;\\n}\\n\\n.openstad .detail-container > .osc > .map-container--buttons { display: none; }\\n\\n\\n.openstad .osc-paginator {\\n    flex-wrap: wrap;\\n}\\n\\n.openstad .osc-resource-overview-content-item-footer .icon:nth-child(n + 2) {\\ndisplay: none;\\n}\\n\\n.openstad .osc-enquete-item-content { max-width: 768px; }\\n\\nhtml .openstad .map-container.osc-map {\\n    aspect-ratio: unset;\\n}\\n\\n.openstad .question-type-map .utrecht-form-field__label {\\n    order: 0;\\n}\\n\\nhtml .openstad .leaflet-container .leaflet-marker-pane [src=\\"https://img.doemee1stroom.nl/image/410a427c595ccf062408115eedf9e216\\"] {\\n    pointer-events: none;\\n}\\n.openstad .banner {  max-width: 768px; }\\n.openstad .banner > h6 { font-size: 0; }\\n.openstad .banner > h6:after {\\ncontent:'Weet u een betere plek voor deze laadpaal? Klik op aanmelden en geef uw suggestie door.';\\nfont-size: 18px;\\n    line-height: 1.3;\\n}\\n\\n.openstad .reaction-name { display: none; }\\n\\nhtml .openstad .comment-item {\\n    padding: 20px;\\n}\\nhtml .openstad .comment-item .comment-item-header .edit-delete-button-group {\\n    position: absolute;\\n    right: 0;\\n    top: 0;\\n}\\n\\n.banner + div + div {\\nopacity: 0.5;\\n}\\n\\n.osc-resources-filter osc-flex-columned > .form-element > label {\\n\\tmargin-bottom: 6px;\\n    display: block;\\n}","projectToggle":true,"projectHasEnded":false,"endDateNotificationSent":true},"widgets":{"beta":false,"deprecated":false},"comments":{"canLike":true,"canReply":false,"adminLabel":"Beheerder","canComment":false,"closedText":"De reactiemogelijkheid is gesloten, u kunt niet meer reageren","requiredUserRole":"member","maxCharactersError":"Tekst moet maximaal {maxCharacters} karakters bevatten","minCharactersError":"Tekst moet minimaal {minCharacters} karakters bevatten","descriptionMaxLength":500,"descriptionMinLength":30,"maxCharactersWarning":"Je hebt nog {maxCharacters} tekens over","minCharactersWarning":"Nog minimaal {minCharacters} tekens"},"resources":{"displayTheme":false,"modbreakTitle":"1Stroom","titleMaxLength":30000,"titleMinLength":5,"displayLocation":false,"displayModbreak":false,"minimumYesVotes":100,"showVoteButtons":true,"summaryMaxLength":30000,"summaryMinLength":5,"canAddNewResources":true,"descriptionMaxLength":30000,"descriptionMinLength":5,"displayNeighbourhood":false,"canEditAfterFirstLikeOrComment":false},"sorting":[{"label":"Titel","value":"title"}],"itemLink":"https://www.samen1nergie.nl/denk-mee-over-laadpalen?openstadResourceId=[id]","rawInput":"","applyText":"Toepassen","resetText":"Reset","tagGroups":[{"type":"Plaats","label":"Plaats","multiple":false,"projectId":""}],"bannerText":"Concept plankaart Duiven ","displayMap":true,"displayTags":true,"displayType":"cardrow","displayVote":true,"displayTitle":true,"itemsPerPage":30,"resourceType":"resource","displayBanner":false,"displayBudget":true,"documentsDesc":"","clickableImage":false,"defaultSorting":"title","displaySorting":false,"displaySummary":true,"displayVariant":"default","documentsTitle":"","filterBehavior":"or","showActiveTags":true,"titleMaxLength":50,"displayArguments":true,"displayDocuments":false,"summaryMaxLength":140,"displayLikeButton":false,"displayPagination":true,"displayTagFilters":true,"onlyIncludeTagIds":",33","displayDescription":false,"displayStatusLabel":false,"displayTagGroupName":false,"descriptionMaxLength":20,"onlyIncludeStatusIds":"","displayLocationFilter":true,"includeOrExcludeTagIds":"exclude","includeOrExcludeStatusIds":"include","resourceOverviewMapWidget":{"width":"","height":"","customUrl":"https://service.pdok.nl/hwh/luchtfotorgb/wmts/v1_0/Actueel_ortho25/EPSG:3857/{z}/{x}/{y}.jpeg","datalayer":[{"id":12,"name":"Andere laadpalen laag Westervoort"},{"id":15,"name":"Bestaande Laadpalen Duiven"},{"id":21,"name":"Bestaande laadpalen"},{"id":24,"name":"Mogelijke nieuwe laadpalen"},{"id":27,"name":"Nieuwe locaties participatie"}],"categorize":{},"clustering":{},"markerHref":"https://www.samen1nergie.nl/denk-mee-over-laadpalen?openstadResourceId=[id]","tilesVariant":"custom","customPolygon":[],"customPolygonUrl":[null,null,null,null],"autoZoomAndCenter":"markers","enableOnOffSwitching":false},"widgetId":"66"}`.replaceAll("[[REDIRECT_URI]]", redirectUri.toString()));
          
          function insertCssLinks(urls) {
            const head = document.querySelector('head');
            const body = document.querySelector('body');
            const firstScript = body ? body.querySelector('script') : null;
  
            urls.forEach(urlObj => {
              const url = urlObj?.url;
              const loadFirst = urlObj?.loadFirst;
              
              const existingLinks = Array.from(document.querySelectorAll('link[rel="stylesheet"]')).map(link => link.href);
              if (!existingLinks.includes(url)) {
                const link = document.createElement('link');
                link.rel = 'stylesheet';
                link.href = url;
                
                if (loadFirst === true && head) {
                  head.insertBefore(link, head.firstChild);
                } else if (head) {
                  head.appendChild(link);
                } else if (firstScript) {
                  firstScript.parentNode.insertBefore(link, firstScript);
                } else if (body) {
                  body.appendChild(link);
                }
              }
            });
          }
  
          function normalizeCssUrls(cssUrls) {
            if (!cssUrls) return [];
          
            if (typeof cssUrls === 'string') {
              return [{ 'url': cssUrls, 'loadFirst': false }];
            }
          
            if (Array.isArray(cssUrls)) {
              return cssUrls.map(url => ({
                'url': url,
                'loadFirst': false
              }));
            }
          
            if (typeof cssUrls === 'object') {
              return Object.values(cssUrls).map(url => ({
                'url': url,
                'loadFirst': false
              }));
            }
          
            return [];
          }
          
          let customCssUrls = normalizeCssUrls(config.project?.cssUrl);
  
          let customCss = '';
          if (config.project?.cssCustom) {
            const customCssUrl = 'https://api.doemee1stroom.nl/api/project/' + config.projectId + '/css/' + randomComponentId;
            customCssUrls.push({url: customCssUrl, loadFirst: false});
          }
  
          customCssUrls.push({url: "https://api.doemee1stroom.nl/api/project/" + config.projectId + "/widget-css/resourcewithmap", loadFirst: true});
  
          insertCssLinks(customCssUrls);
          
          function renderWidget () {
            
            // Check if widget has already been rendered
            if (renderedWidgets[randomComponentId]) {
              return;
            }
            
            renderedWidgets[randomComponentId] = true;
            
            var OpenstadHeadlessResourceOverviewWithMap=(function(_l,N,eu){"use strict";function lf(r){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const o in r)if(o!=="default"){const s=Object.getOwnPropertyDescriptor(r,o);Object.defineProperty(a,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}return a.default=r,Object.freeze(a)}const at=lf(N),Rv=lf(eu);var nu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ru(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function iu(r){if(Object.prototype.hasOwnProperty.call(r,"__esModule"))return r;var a=r.default;if(typeof a=="function"){var o=function s(){return this instanceof s?Reflect.construct(a,arguments,this.constructor):a.apply(this,arguments)};o.prototype=a.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(r).forEach(function(s){var c=Object.getOwnPropertyDescriptor(r,s);Object.defineProperty(o,s,c.get?c:{enumerable:!0,get:function(){return r[s]}})}),o}var yo={},cf;function jv(){if(cf)return yo;cf=1;var r=eu;if(process.env.NODE_ENV==="production")yo.createRoot=r.createRoot,yo.hydrateRoot=r.hydrateRoot;else{var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;yo.createRoot=function(o,s){a.usingClientEntryPoint=!0;try{return r.createRoot(o,s)}finally{a.usingClientEntryPoint=!1}},yo.hydrateRoot=function(o,s,c){a.usingClientEntryPoint=!0;try{return r.hydrateRoot(o,s,c)}finally{a.usingClientEntryPoint=!1}}}return yo}var kv=jv();function ra(r,a){const o=this,s=document.getElementById(r);s&&kv.createRoot(s).render(N.createElement(o,{...a}))}function ia(r){"@babel/helpers - typeof";return ia=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},ia(r)}function Fv(r,a){if(ia(r)!="object"||!r)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var s=o.call(r,a);if(ia(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(r)}function Bv(r){var a=Fv(r,"string");return ia(a)=="symbol"?a:a+""}function At(r,a,o){return(a=Bv(a))in r?Object.defineProperty(r,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[a]=o,r}function zv(r,a){if(r==null)return{};var o={};for(var s in r)if({}.hasOwnProperty.call(r,s)){if(a.indexOf(s)!==-1)continue;o[s]=r[s]}return o}function It(r,a){if(r==null)return{};var o,s,c=zv(r,a);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(r);for(s=0;s<f.length;s++)o=f[s],a.indexOf(o)===-1&&{}.propertyIsEnumerable.call(r,o)&&(c[o]=r[o])}return c}var su={exports:{}},sa={};/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var hf;function Gv(){if(hf)return sa;hf=1;var r=N,a=Symbol.for("react.element"),o=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,c=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f={key:!0,ref:!0,__self:!0,__source:!0};function g(m,y,C){var _,b={},w=null,S=null;C!==void 0&&(w=""+C),y.key!==void 0&&(w=""+y.key),y.ref!==void 0&&(S=y.ref);for(_ in y)s.call(y,_)&&!f.hasOwnProperty(_)&&(b[_]=y[_]);if(m&&m.defaultProps)for(_ in y=m.defaultProps,y)b[_]===void 0&&(b[_]=y[_]);return{$$typeof:a,type:m,key:w,ref:S,props:b,_owner:c.current}}return sa.Fragment=o,sa.jsx=g,sa.jsxs=g,sa}var oa={};/**
 * @license React
 * react-jsx-runtime.development.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var ff;function qv(){return ff||(ff=1,process.env.NODE_ENV!=="production"&&(function(){var r=N,a=Symbol.for("react.element"),o=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),m=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),P=Symbol.iterator,O="@@iterator";function q(Z){if(Z===null||typeof Z!="object")return null;var pt=P&&Z[P]||Z[O];return typeof pt=="function"?pt:null}var G=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function k(Z){{for(var pt=arguments.length,Tt=new Array(pt>1?pt-1:0),jt=1;jt<pt;jt++)Tt[jt-1]=arguments[jt];A("error",Z,Tt)}}function A(Z,pt,Tt){{var jt=G.ReactDebugCurrentFrame,fe=jt.getStackAddendum();fe!==""&&(pt+="%s",Tt=Tt.concat([fe]));var be=Tt.map(function(ye){return String(ye)});be.unshift("Warning: "+pt),Function.prototype.apply.call(console[Z],console,be)}}var R=!1,j=!1,W=!1,F=!1,H=!1,U;U=Symbol.for("react.module.reference");function it(Z){return!!(typeof Z=="string"||typeof Z=="function"||Z===s||Z===f||H||Z===c||Z===C||Z===_||F||Z===S||R||j||W||typeof Z=="object"&&Z!==null&&(Z.$$typeof===w||Z.$$typeof===b||Z.$$typeof===g||Z.$$typeof===m||Z.$$typeof===y||Z.$$typeof===U||Z.getModuleId!==void 0))}function Y(Z,pt,Tt){var jt=Z.displayName;if(jt)return jt;var fe=pt.displayName||pt.name||"";return fe!==""?Tt+"("+fe+")":Tt}function M(Z){return Z.displayName||"Context"}function ot(Z){if(Z==null)return null;if(typeof Z.tag=="number"&&k("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof Z=="function")return Z.displayName||Z.name||null;if(typeof Z=="string")return Z;switch(Z){case s:return"Fragment";case o:return"Portal";case f:return"Profiler";case c:return"StrictMode";case C:return"Suspense";case _:return"SuspenseList"}if(typeof Z=="object")switch(Z.$$typeof){case m:var pt=Z;return M(pt)+".Consumer";case g:var Tt=Z;return M(Tt._context)+".Provider";case y:return Y(Z,Z.render,"ForwardRef");case b:var jt=Z.displayName||null;return jt!==null?jt:ot(Z.type)||"Memo";case w:{var fe=Z,be=fe._payload,ye=fe._init;try{return ot(ye(be))}catch{return null}}}return null}var ct=Object.assign,Ct=0,V,$,D,rt,J,et,st;function ut(){}ut.__reactDisabledLog=!0;function bt(){{if(Ct===0){V=console.log,$=console.info,D=console.warn,rt=console.error,J=console.group,et=console.groupCollapsed,st=console.groupEnd;var Z={configurable:!0,enumerable:!0,value:ut,writable:!0};Object.defineProperties(console,{info:Z,log:Z,warn:Z,error:Z,group:Z,groupCollapsed:Z,groupEnd:Z})}Ct++}}function nt(){{if(Ct--,Ct===0){var Z={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ct({},Z,{value:V}),info:ct({},Z,{value:$}),warn:ct({},Z,{value:D}),error:ct({},Z,{value:rt}),group:ct({},Z,{value:J}),groupCollapsed:ct({},Z,{value:et}),groupEnd:ct({},Z,{value:st})})}Ct<0&&k("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Nt=G.ReactCurrentDispatcher,xt;function Mt(Z,pt,Tt){{if(xt===void 0)try{throw Error()}catch(fe){var jt=fe.stack.trim().match(/\n( *(at )?)/);xt=jt&&jt[1]||""}return`
`+xt+Z}}var ce=!1,ee;{var We=typeof WeakMap=="function"?WeakMap:Map;ee=new We}function kt(Z,pt){if(!Z||ce)return"";{var Tt=ee.get(Z);if(Tt!==void 0)return Tt}var jt;ce=!0;var fe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var be;be=Nt.current,Nt.current=null,bt();try{if(pt){var ye=function(){throw Error()};if(Object.defineProperty(ye.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ye,[])}catch(ve){jt=ve}Reflect.construct(Z,[],ye)}else{try{ye.call()}catch(ve){jt=ve}Z.call(ye.prototype)}}else{try{throw Error()}catch(ve){jt=ve}Z()}}catch(ve){if(ve&&jt&&typeof ve.stack=="string"){for(var pe=ve.stack.split(`
`),pn=jt.stack.split(`
`),yt=pe.length-1,Q=pn.length-1;yt>=1&&Q>=0&&pe[yt]!==pn[Q];)Q--;for(;yt>=1&&Q>=0;yt--,Q--)if(pe[yt]!==pn[Q]){if(yt!==1||Q!==1)do if(yt--,Q--,Q<0||pe[yt]!==pn[Q]){var _t=`
`+pe[yt].replace(" at new "," at ");return Z.displayName&&_t.includes("<anonymous>")&&(_t=_t.replace("<anonymous>",Z.displayName)),typeof Z=="function"&&ee.set(Z,_t),_t}while(yt>=1&&Q>=0);break}}}finally{ce=!1,Nt.current=be,nt(),Error.prepareStackTrace=fe}var Dt=Z?Z.displayName||Z.name:"",$t=Dt?Mt(Dt):"";return typeof Z=="function"&&ee.set(Z,$t),$t}function Ue(Z,pt,Tt){return kt(Z,!1)}function ze(Z){var pt=Z.prototype;return!!(pt&&pt.isReactComponent)}function Kt(Z,pt,Tt){if(Z==null)return"";if(typeof Z=="function")return kt(Z,ze(Z));if(typeof Z=="string")return Mt(Z);switch(Z){case C:return Mt("Suspense");case _:return Mt("SuspenseList")}if(typeof Z=="object")switch(Z.$$typeof){case y:return Ue(Z.render);case b:return Kt(Z.type,pt,Tt);case w:{var jt=Z,fe=jt._payload,be=jt._init;try{return Kt(be(fe),pt,Tt)}catch{}}}return""}var Ft=Object.prototype.hasOwnProperty,vt={},gt=G.ReactDebugCurrentFrame;function Rt(Z){if(Z){var pt=Z._owner,Tt=Kt(Z.type,Z._source,pt?pt.type:null);gt.setExtraStackFrame(Tt)}else gt.setExtraStackFrame(null)}function Pt(Z,pt,Tt,jt,fe){{var be=Function.call.bind(Ft);for(var ye in Z)if(be(Z,ye)){var pe=void 0;try{if(typeof Z[ye]!="function"){var pn=Error((jt||"React class")+": "+Tt+" type `"+ye+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof Z[ye]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw pn.name="Invariant Violation",pn}pe=Z[ye](pt,ye,jt,Tt,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(yt){pe=yt}pe&&!(pe instanceof Error)&&(Rt(fe),k("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",jt||"React class",Tt,ye,typeof pe),Rt(null)),pe instanceof Error&&!(pe.message in vt)&&(vt[pe.message]=!0,Rt(fe),k("Failed %s type: %s",Tt,pe.message),Rt(null))}}}var Zt=Array.isArray;function Vt(Z){return Zt(Z)}function Qt(Z){{var pt=typeof Symbol=="function"&&Symbol.toStringTag,Tt=pt&&Z[Symbol.toStringTag]||Z.constructor.name||"Object";return Tt}}function Bt(Z){try{return de(Z),!1}catch{return!0}}function de(Z){return""+Z}function Jt(Z){if(Bt(Z))return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Qt(Z)),de(Z)}var Wt=G.ReactCurrentOwner,he={key:!0,ref:!0,__self:!0,__source:!0},mt,De;function en(Z){if(Ft.call(Z,"ref")){var pt=Object.getOwnPropertyDescriptor(Z,"ref").get;if(pt&&pt.isReactWarning)return!1}return Z.ref!==void 0}function Gt(Z){if(Ft.call(Z,"key")){var pt=Object.getOwnPropertyDescriptor(Z,"key").get;if(pt&&pt.isReactWarning)return!1}return Z.key!==void 0}function He(Z,pt){typeof Z.ref=="string"&&Wt.current}function Fe(Z,pt){{var Tt=function(){mt||(mt=!0,k("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",pt))};Tt.isReactWarning=!0,Object.defineProperty(Z,"key",{get:Tt,configurable:!0})}}function ln(Z,pt){{var Tt=function(){De||(De=!0,k("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",pt))};Tt.isReactWarning=!0,Object.defineProperty(Z,"ref",{get:Tt,configurable:!0})}}var sn=function(Z,pt,Tt,jt,fe,be,ye){var pe={$$typeof:a,type:Z,key:pt,ref:Tt,props:ye,_owner:be};return pe._store={},Object.defineProperty(pe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(pe,"_self",{configurable:!1,enumerable:!1,writable:!1,value:jt}),Object.defineProperty(pe,"_source",{configurable:!1,enumerable:!1,writable:!1,value:fe}),Object.freeze&&(Object.freeze(pe.props),Object.freeze(pe)),pe};function On(Z,pt,Tt,jt,fe){{var be,ye={},pe=null,pn=null;Tt!==void 0&&(Jt(Tt),pe=""+Tt),Gt(pt)&&(Jt(pt.key),pe=""+pt.key),en(pt)&&(pn=pt.ref,He(pt,fe));for(be in pt)Ft.call(pt,be)&&!he.hasOwnProperty(be)&&(ye[be]=pt[be]);if(Z&&Z.defaultProps){var yt=Z.defaultProps;for(be in yt)ye[be]===void 0&&(ye[be]=yt[be])}if(pe||pn){var Q=typeof Z=="function"?Z.displayName||Z.name||"Unknown":Z;pe&&Fe(ye,Q),pn&&ln(ye,Q)}return sn(Z,pe,pn,fe,jt,Wt.current,ye)}}var In=G.ReactCurrentOwner,rr=G.ReactDebugCurrentFrame;function Ne(Z){if(Z){var pt=Z._owner,Tt=Kt(Z.type,Z._source,pt?pt.type:null);rr.setExtraStackFrame(Tt)}else rr.setExtraStackFrame(null)}var Zn;Zn=!1;function Ge(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===a}function ae(){{if(In.current){var Z=ot(In.current.type);if(Z)return`

Check the render method of \``+Z+"`."}return""}}function Yt(Z){return""}var jn={};function ne(Z){{var pt=ae();if(!pt){var Tt=typeof Z=="string"?Z:Z.displayName||Z.name;Tt&&(pt=`

Check the top-level render call using <`+Tt+">.")}return pt}}function Ke(Z,pt){{if(!Z._store||Z._store.validated||Z.key!=null)return;Z._store.validated=!0;var Tt=ne(pt);if(jn[Tt])return;jn[Tt]=!0;var jt="";Z&&Z._owner&&Z._owner!==In.current&&(jt=" It was passed a child from "+ot(Z._owner.type)+"."),Ne(Z),k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Tt,jt),Ne(null)}}function _e(Z,pt){{if(typeof Z!="object")return;if(Vt(Z))for(var Tt=0;Tt<Z.length;Tt++){var jt=Z[Tt];Ge(jt)&&Ke(jt,pt)}else if(Ge(Z))Z._store&&(Z._store.validated=!0);else if(Z){var fe=q(Z);if(typeof fe=="function"&&fe!==Z.entries)for(var be=fe.call(Z),ye;!(ye=be.next()).done;)Ge(ye.value)&&Ke(ye.value,pt)}}}function cn(Z){{var pt=Z.type;if(pt==null||typeof pt=="string")return;var Tt;if(typeof pt=="function")Tt=pt.propTypes;else if(typeof pt=="object"&&(pt.$$typeof===y||pt.$$typeof===b))Tt=pt.propTypes;else return;if(Tt){var jt=ot(pt);Pt(Tt,Z.props,"prop",jt,Z)}else if(pt.PropTypes!==void 0&&!Zn){Zn=!0;var fe=ot(pt);k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",fe||"Unknown")}typeof pt.getDefaultProps=="function"&&!pt.getDefaultProps.isReactClassApproved&&k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ke(Z){{for(var pt=Object.keys(Z.props),Tt=0;Tt<pt.length;Tt++){var jt=pt[Tt];if(jt!=="children"&&jt!=="key"){Ne(Z),k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",jt),Ne(null);break}}Z.ref!==null&&(Ne(Z),k("Invalid attribute `ref` supplied to `React.Fragment`."),Ne(null))}}var Je={};function bn(Z,pt,Tt,jt,fe,be){{var ye=it(Z);if(!ye){var pe="";(Z===void 0||typeof Z=="object"&&Z!==null&&Object.keys(Z).length===0)&&(pe+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var pn=Yt();pn?pe+=pn:pe+=ae();var yt;Z===null?yt="null":Vt(Z)?yt="array":Z!==void 0&&Z.$$typeof===a?(yt="<"+(ot(Z.type)||"Unknown")+" />",pe=" Did you accidentally export a JSX literal instead of a component?"):yt=typeof Z,k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",yt,pe)}var Q=On(Z,pt,Tt,fe,be);if(Q==null)return Q;if(ye){var _t=pt.children;if(_t!==void 0)if(jt)if(Vt(_t)){for(var Dt=0;Dt<_t.length;Dt++)_e(_t[Dt],Z);Object.freeze&&Object.freeze(_t)}else k("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else _e(_t,Z)}if(Ft.call(pt,"key")){var $t=ot(Z),ve=Object.keys(pt).filter(function(on){return on!=="key"}),Re=ve.length>0?"{key: someKey, "+ve.join(": ..., ")+": ...}":"{key: someKey}";if(!Je[$t+Re]){var hn=ve.length>0?"{"+ve.join(": ..., ")+": ...}":"{}";k(`A props object containing a "key" prop is being spread into JSX:
  let props = %s;
  <%s {...props} />
React keys must be passed directly to JSX without using spread:
  let props = %s;
  <%s key={someKey} {...props} />`,Re,$t,hn,$t),Je[$t+Re]=!0}}return Z===s?ke(Q):cn(Q),Q}}function Tr(Z,pt,Tt){return bn(Z,pt,Tt,!0)}function $e(Z,pt,Tt){return bn(Z,pt,Tt,!1)}var Ut=$e,vr=Tr;oa.Fragment=s,oa.jsx=Ut,oa.jsxs=vr})()),oa}var df;function Vv(){return df||(df=1,process.env.NODE_ENV==="production"?su.exports=Gv():su.exports=qv()),su.exports}var K=Vv();function gf(r){var a,o,s="";if(typeof r=="string"||typeof r=="number")s+=r;else if(typeof r=="object")if(Array.isArray(r)){var c=r.length;for(a=0;a<c;a++)r[a]&&(o=gf(r[a]))&&(s&&(s+=" "),s+=o)}else for(o in r)r[o]&&(s&&(s+=" "),s+=o);return s}function wt(){for(var r,a,o=0,s="",c=arguments.length;o<c;o++)(r=arguments[o])&&(a=gf(r))&&(s&&(s+=" "),s+=a);return s}function Uv(r){if(r==null)throw new TypeError("Cannot destructure "+r)}function bl(){return bl=Object.assign?Object.assign.bind():function(r){for(var a=1;a<arguments.length;a++){var o=arguments[a];for(var s in o)({}).hasOwnProperty.call(o,s)&&(r[s]=o[s])}return r},bl.apply(null,arguments)}var Hv=["appearance","busy","disabled","children","className","hint","pressed","type"];function mf(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function pf(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?mf(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):mf(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var tr=N.forwardRef(function(r,a){var o=r.appearance,s=r.busy,c=r.disabled,f=r.children,g=r.className,m=r.hint,y=r.pressed,C=r.type,_=It(r,Hv);return K.jsx("button",pf(pf({ref:a,className:wt("utrecht-button",s&&"utrecht-button--busy",c&&"utrecht-button--disabled",C==="submit"&&"utrecht-button--submit",o==="primary-action-button"&&"utrecht-button--primary-action",o==="secondary-action-button"&&"utrecht-button--secondary-action",o==="subtle-button"&&"utrecht-button--subtle",m==="danger"&&"utrecht-button--danger",m==="warning"&&"utrecht-button--warning",m==="ready"&&"utrecht-button--ready",y===!0&&"utrecht-button--pressed",g),"aria-busy":s||void 0,"aria-pressed":typeof y=="boolean"?y:void 0,disabled:c,type:C||"button"},_),{},{children:f}))});tr.displayName="Button";var Zv=["appearance","className","level"];function vf(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function yf(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?vf(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):vf(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var ds=N.forwardRef(function(r,a){var o=r.appearance,s=r.className,c=r.level,f=It(r,Zv),g=["utrecht-heading-1","utrecht-heading-2","utrecht-heading-3","utrecht-heading-4","utrecht-heading-5","utrecht-heading-6"],m=c===2?"h2":c===3?"h3":c===4?"h4":c===5?"h5":c===6?"h6":"h1",y=o&&g.indexOf(o)!==-1?o:g[c-1]||"utrecht-heading-1";return K.jsx(m,yf(yf({className:wt(y,s)},f),{},{ref:a}))});ds.displayName="Heading";var Wv=["id","label","className","headingLevel","expanded","disabled","section","children","buttonRef","onActivate","onButtonBlur","onButtonFocus","icon","appearance"],Yv=["children","group","headingLevel","heading"];function Cf(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function gs(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?Cf(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):Cf(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var Xv=function(){return K.jsxs("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",width:"14",height:"8",viewBox:"0 0 14 8",children:[K.jsx("defs",{children:K.jsx("clipPath",{id:"clippath",children:K.jsx("rect",{width:"14",height:"8",style:{fill:"none",strokeWidth:"0px"}})})}),K.jsx("g",{style:{clipPath:"url(#clippath)"},children:K.jsx("path",{d:"m7,8c-.26,0-.51-.1-.71-.29L.29,1.71C-.1,1.32-.1.68.29.29S1.32-.1,1.71.29l5.29,5.29L12.29.29c.39-.39,1.02-.39,1.41,0s.39,1.02,0,1.41l-6,6c-.2.2-.45.29-.71.29Z",style:{strokeWidth:"0px;"}})})]})},Kv=N.forwardRef(function(r,a){var o=r.id,s=r.label,c=r.className,f=r.headingLevel,g=f===void 0?1:f,m=r.expanded,y=m===void 0?!1:m,C=r.disabled,_=r.section,b=r.children,w=r.buttonRef,S=r.onActivate,P=r.onButtonBlur,O=r.onButtonFocus,q=r.icon,G=r.appearance,k=It(r,Wv),A={className:wt("utrecht-accordion__panel",{"utrecht-accordion__panel--expanded":y}),hidden:!y,"aria-hidden":!y},R=q||(q===null?null:K.jsx(Xv,{}));G==="utrecht"&&(R=null);var j="utrecht-accordion",W=o||N.useId(),F="".concat(j).concat(W,"-button"),H="".concat(j).concat(W,"-panel");return K.jsxs("div",gs(gs({className:wt("utrecht-accordion__section",c),id:o,ref:a},k),{},{children:[K.jsx(ds,{level:g,className:wt("utrecht-accordion__header"),children:K.jsxs(tr,{className:wt("utrecht-accordion__button",At({},"utrecht-accordion__button--utrecht",G==="utrecht")),appearance:"subtle-button","aria-expanded":y===!0,"aria-controls":H,disabled:C,id:F,onClick:function(){return typeof S=="function"&&S(a)},onFocus:function(){return typeof O=="function"&&O(a)},onBlur:function(){return typeof P=="function"&&P(a)},ref:w,children:[R&&K.jsx("span",{className:"utrecht-accordion__button-icon",children:R}),K.jsx("span",{className:"utrecht-accordion__button-label",children:s})]})}),_?K.jsx("section",gs(gs({id:H,"aria-labelledby":F},A),{},{children:b})):K.jsx("div",gs(gs({id:H},A),{},{children:b}))]}))});Kv.displayName="AccordionSection";var Jv=N.forwardRef(function(r,a){var o=r.children,s=r.group,c=r.headingLevel,f=r.heading,g=It(r,Yv),m=N.useId();return K.jsxs(K.Fragment,{children:[!!f&&typeof c=="number"&&K.jsx(ds,{level:c,children:f}),K.jsx("div",gs(gs({className:wt("utrecht-accordion"),role:s?"group":void 0,"aria-labelledby":s?m:void 0},g),{},{ref:a,children:o}))]})});Jv.displayName="Accordion";var Qv=["children","className","icon","type"];function _f(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function bf(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?_f(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):_f(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var $v=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=r.icon,f=r.type,g=It(r,Qv);return K.jsxs("div",bf(bf({},g),{},{ref:a,className:wt("utrecht-alert",{"utrecht-alert--error":f==="error","utrecht-alert--info":f==="info","utrecht-alert--ok":f==="ok","utrecht-alert--warning":f==="warning"},s),children:[c&&K.jsx("div",{className:"utrecht-alert__icon",children:c}),K.jsx("div",{className:"utrecht-alert__message",children:o})]}))});$v.displayName="Alert";var t6=["children","className","icon","type"];function xf(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function Ef(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?xf(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):xf(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var e6=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=r.icon,f=r.type,g=It(r,t6);return K.jsxs("dialog",Ef(Ef({},g),{},{ref:a,className:wt("utrecht-alert-dialog",{"utrecht-alert-dialog--error":f==="error","utrecht-alert-dialog--info":f==="info","utrecht-alert-dialog--warning":f==="warning",className:s}),children:[c&&K.jsx("div",{className:"utrecht-alert-dialog__icon",children:c}),K.jsx("div",{className:"utrecht-alert-dialog__message",children:o})]}))});e6.displayName="AlertDialog";var n6=["children","className"];function wf(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function Of(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?wf(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):wf(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var r6=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=It(r,n6);return K.jsx("article",Of(Of({},c),{},{ref:a,className:wt("utrecht-article",s),children:o}))});r6.displayName="Article";var i6=["children","className"];function Nf(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function Sf(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?Nf(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):Nf(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var s6=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=It(r,i6);return K.jsx("div",Sf(Sf({},c),{},{ref:a,className:wt("utrecht-backdrop",s),children:o}))});s6.displayName="Backdrop";var o6=["children","className","value"];function Lf(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function aa(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?Lf(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):Lf(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var a6=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=r.value,f=It(r,o6),g=aa({children:o,className:wt("utrecht-badge-counter",s)},f);return typeof c<"u"?K.jsx("data",aa(aa({},g),{},{value:c,ref:a})):K.jsx("span",aa(aa({},g),{},{ref:a}))});a6.displayName="BadgeCounter";var u6=["children","className"];function If(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function Pf(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?If(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):If(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var l6=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=It(r,u6);return K.jsx("div",Pf(Pf({},c),{},{ref:a,className:wt("utrecht-badge-list",s),children:o}))});l6.displayName="BadgeList";var c6=["children","className","attribution"];function Tf(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function Mf(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?Tf(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):Tf(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var h6=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=r.attribution,f=It(r,c6);return K.jsxs("blockquote",Mf(Mf({},f),{},{ref:a,className:wt("utrecht-blockquote",s),children:[o,c&&K.jsx("div",{className:"utrecht-blockquote__attribution",children:c})]}))});h6.displayName="Blockquote";var f6=["boxContent","children","className","external","href","placeholder","role"];function Af(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function Df(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?Af(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):Af(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var xl=N.forwardRef(function(r,a){var o=r.boxContent,s=r.children,c=r.className,f=r.external,g=r.href,m=r.placeholder,y=r.role,C=It(r,f6);return K.jsx("a",Df(Df({href:m?void 0:g,ref:a,role:y||(m?"link":void 0),className:wt("utrecht-link","utrecht-link--html-a",{"utrecht-link--box-content":o,"utrecht-link--external":f,"utrecht-link--placeholder":m},c),"aria-disabled":m?"true":void 0,rel:f?"external noopener noreferrer":void 0},C),{},{children:s}))});xl.displayName="Link";var d6=["appearance","children","className","headingLevel","label"],g6=["className","children"],m6=["className","children"],p6=["children","disabled","current","href","index","rel","role","Link","className"];function Rf(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function er(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?Rf(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):Rf(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var jf=function(a){var o=a.prop,s=a.type;return{itemScope:!0,itemType:s,itemProp:o}},El=function(a){return{itemProp:a}},v6=N.forwardRef(function(r,a){var o=r.appearance,s=r.children,c=r.className,f=r.headingLevel,g=f===void 0?2:f,m=r.label,y=It(r,d6),C=m?N.useId():void 0;return K.jsxs("nav",er(er({},y),{},{ref:a,className:wt("utrecht-breadcrumb-nav","utrecht-breadcrumb-nav--html-ol",{"utrecht-breadcrumb-nav--arrows":o==="arrows"},c),"aria-labelledby":C,children:[m&&K.jsx(ds,{id:C,className:"utrecht-breadcrumb-nav__heading",level:g,"aria-hidden":"true",children:m}),K.jsx("ol",er(er({className:"utrecht-breadcrumb-nav__list utrecht-breadcrumb-nav__list--html-ol"},jf({type:"https://schema.org/BreadcrumbList"})),{},{children:s}))]}))});v6.displayName="BreadcrumbNav";var kf=N.forwardRef(function(r,a){var o=r.className,s=r.children,c=It(r,g6);return K.jsx("li",er(er(er({className:wt("utrecht-breadcrumb-nav__item",o)},jf({type:"https://schema.org/ListItem",prop:"itemListElement"})),{},{ref:a},c),{},{children:s}))});kf.displayName="BreadcrumbNavItem";var y6=N.forwardRef(function(r,a){var o=r.className,s=r.children,c=It(r,m6);return K.jsx("li",er(er({"aria-hidden":"true",hidden:!0,style:{display:"var(--_utrecht-breadcrumb-nav-separator-display, block)"},className:wt("utrecht-breadcrumb-nav__separator","utrecht-breadcrumb-nav__separator--html-li",o),ref:a},c),{},{children:s}))});y6.displayName="BreadcrumbNavSeparator";var C6=N.forwardRef(function(r,a){var o=r.children,s=r.disabled,c=r.current,f=r.href,g=r.index,m=r.rel,y=r.role,C=r.Link,_=C===void 0?xl:C,b=r.className,w=It(r,p6),S=_,P=_||S;return K.jsx(kf,{children:K.jsxs(P,er(er(er({className:wt("utrecht-breadcrumb-nav__link",b,{"utrecht-breadcrumb-nav__link--current":c,"utrecht-breadcrumb-nav__link--disabled":s}),href:s?void 0:f,rel:m,role:y||(s?"link":void 0),"aria-current":c&&"page","aria-disabled":s?"true":void 0},El("item")),w),{},{ref:a,children:[K.jsx("span",er(er({className:"utrecht-breadcrumb-nav__text"},El("name")),{},{children:o})),typeof g=="number"?K.jsx("meta",er(er({},El("position")),{},{content:String(g+1)})):null]}))})});C6.displayName="BreadcrumbNavLink";var _6=["children","className","direction"];function Ff(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function Bf(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?Ff(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):Ff(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var b6=function(a){return Array.isArray(a)&&a.reduce(function(o,s){return N.isValidElement(s)?o+1:o},0)>=2},zf=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=r.direction,f=It(r,_6);return K.jsx("p",Bf(Bf({role:b6(o)?"group":void 0},f),{},{ref:a,className:wt("utrecht-button-group",{"utrecht-button-group--column":c==="column","utrecht-button-group--row":c==="row"},s),children:o}))});zf.displayName="ButtonGroup";var x6=["appearance","children","className","external","href","placeholder","role"];function Gf(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function ou(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?Gf(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):Gf(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var E6=function(a){var o;a.key===" "&&typeof((o=a.target)===null||o===void 0?void 0:o.click)=="function"&&(a.preventDefault(),a.target.click())},au=N.forwardRef(function(r,a){var o=r.appearance,s=r.children,c=r.className,f=r.external,g=r.href,m=r.placeholder,y=r.role,C=It(r,x6),_=C;return y==="button"&&(_=ou(ou({},C),{},{onKeyDown:E6})),K.jsx("a",ou(ou({href:m?void 0:g,ref:a,role:y||(m?"link":void 0),className:wt("utrecht-button-link","utrecht-button-link--html-a",{"utrecht-button-link--external":f,"utrecht-button-link--primary-action":o==="primary-action-button","utrecht-button-link--secondary-action":o==="secondary-action-button","utrecht-button-link--subtle":o==="subtle-button","utrecht-button-link--placeholder":m},c),rel:f?"external noopener noreferrer":void 0,"aria-disabled":m?"true":void 0},_),{},{children:s}))});au.displayName="ButtonLink";var w6=["appearance","disabled","indeterminate","invalid","required","className"];function qf(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function Vf(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?qf(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):qf(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var Uf=N.forwardRef(function(r,a){var o=r.appearance,s=o===void 0?"custom":o,c=r.disabled,f=r.indeterminate,g=f===void 0?!1:f,m=r.invalid,y=r.required,C=r.className,_=It(r,w6),b=N.useRef(null);return N.useImperativeHandle(a,function(){return b.current}),N.useEffect(function(){b.current&&(b.current.indeterminate=g)},[g]),K.jsx("input",Vf(Vf({},_),{},{ref:b,type:"checkbox",className:wt("utrecht-checkbox","utrecht-checkbox--html-input",{"utrecht-checkbox--disabled":c,"utrecht-checkbox--custom":s==="custom","utrecht-checkbox--invalid":m,"utrecht-checkbox--indeterminate":g,"utrecht-checkbox--required":y},C),"aria-checked":g?"mixed":void 0,"aria-invalid":m||void 0,disabled:c,required:y}))});Uf.displayName="Checkbox";var O6=["children","className"];function Hf(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function Zf(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?Hf(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):Hf(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var N6=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=It(r,O6);return K.jsx("code",Zf(Zf({ref:a,className:wt("utrecht-code",s)},c),{},{children:o}))});N6.displayName="Code";var S6=["children","className"];function Wf(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function Yf(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?Wf(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):Wf(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var L6=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=It(r,S6);return K.jsx("pre",Yf(Yf({ref:a,className:wt("utrecht-code-block",s)},c),{},{children:K.jsx("code",{className:"utrecht-code-block__content",children:o})}))});L6.displayName="CodeBlock";var I6=["children","className","color","style"];function Xf(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function uu(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?Xf(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):Xf(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var P6=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=r.color,f=r.style,g=It(r,I6);return K.jsx("data",uu(uu({ref:a,className:wt("utrecht-color-sample",s),style:uu(uu({},f),{},{color:c}),value:c},g),{},{children:o}))});P6.displayName="ColorSample";var T6=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=r.rule;return K.jsx("div",{className:wt("utrecht-column-layout",{"utrecht-column-layout--rule":c},s),ref:a,children:o})});T6.displayName="ColumnLayout";var M6=["className"],A6=["className","position"];function Kf(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function lu(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?Kf(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):Kf(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var D6=N.forwardRef(function(r,a){var o=r.className,s=It(r,M6);return K.jsx("div",lu(lu({className:wt("utrecht-combobox",o)},s),{},{ref:a}))});D6.displayName="Combobox";var R6=N.forwardRef(function(r,a){var o=r.className,s=r.position,c=It(r,A6);return K.jsx("div",lu(lu({className:wt("utrecht-combobox__popover",{"utrecht-search-bar__popover--block-end":!s||s==="block-end"},o)},c),{},{ref:a}))});R6.displayName="ComboboxPopover";var j6=["children","currency","amount","locale","className"];function Jf(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function Qf(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?Jf(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):Jf(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var k6=function(a,o,s){return new Intl.NumberFormat(a,{style:"currency",currency:o,minimumFractionDigits:Number.isInteger(s)?0:void 0,useGrouping:!1}).format(s).replace(/[\s]+/g,"").replace("-","−")},F6=function(a,o,s){var c=new Intl.NumberFormat(a,{style:"currency",currency:o}).format(s);return c=c.replace(/-/,"−"),(a==="nl"||a==="nl-NL")&&/\u2212/.test(c)&&(c=c.replace(/(.+)\u2212(.+)/,"− $1$2")),c=c.replace(/ /g," "),c},B6=N.forwardRef(function(r,a){var o=r.children,s=r.currency,c=s===void 0?"EUR":s,f=r.amount,g=r.locale,m=g===void 0?"nl-NL":g,y=r.className,C=It(r,j6),_=typeof f=="string"?parseFloat(f):f,b=k6(m,c,_),w=F6(m,c,_);return K.jsx("data",Qf(Qf({},C),{},{ref:a,value:"".concat(c," ").concat(f),className:wt("utrecht-currency-data",_<0&&"utrecht-currency-data--negative",_>0&&"utrecht-currency-data--positive",y),"aria-label":b,children:o||w}))});B6.displayName="CurrencyData";var z6=["children","className","dateTime","value"];function $f(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function Vs(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?$f(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):$f(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var G6=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=r.dateTime,f=r.value,g=It(r,z6),m=Vs({children:o,className:wt("utrecht-badge-data",s)},g);return typeof c<"u"?K.jsx("time",Vs(Vs({},m),{},{dateTime:c,ref:a})):typeof f<"u"?K.jsx("data",Vs(Vs({},m),{},{value:f,ref:a})):K.jsx("span",Vs(Vs({},m),{},{ref:a}))});G6.displayName="DataBadge";var q6=["children","className"];function td(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function ed(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?td(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):td(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var V6=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=It(r,q6);return K.jsx("div",ed(ed({},c),{},{ref:a,className:wt("utrecht-document",s),children:o}))});V6.displayName="Document";var U6=["appearance","children","className"],H6=["children","className"],Z6=["children","className"],W6=["children","className"];function nd(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function ms(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?nd(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):nd(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var Y6=N.forwardRef(function(r,a){var o=r.appearance,s=r.children,c=r.className,f=It(r,U6);return K.jsx("dl",ms(ms({},f),{},{className:wt("utrecht-data-list","utrecht-data-list--html-dl",o==="rows"&&"utrecht-data-list--rows",c),ref:a,children:s}))});Y6.displayName="DataList";var X6=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=It(r,H6);return K.jsx("div",ms(ms({},c),{},{className:wt("utrecht-data-list__item",s),ref:a,children:o}))});X6.displayName="DataListItem";var K6=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=It(r,Z6);return K.jsx("dt",ms(ms({},c),{},{className:wt("utrecht-data-list__item-key",s),ref:a,children:o}))});K6.displayName="DataListKey";var J6=N.forwardRef(function(r,a){var o=r.value,s=r.children,c=r.className,f=r.emptyDescription,g=r.multiline,m=r.notranslate,y=o===""||o===null;return K.jsx("dd",{className:wt("utrecht-data-list__item-value","utrecht-data-list__item-value--html-dd",c,g&&"utrecht-data-list__item-value--multiline"),translate:typeof m=="boolean"?m?"no":"yes":void 0,ref:a,children:y?K.jsx("span",{"aria-label":f,children:"-"}):s})});J6.displayName="DataListValue";var Q6=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=It(r,W6);return K.jsx("dd",ms(ms({},c),{},{className:wt("utrecht-data-list__actions","utrecht-data-list__actions--html-dd",s),ref:a,children:o}))});Q6.displayName="DataListActions";var $6=["align","children","className","modal"];function rd(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function id(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?rd(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):rd(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var t2=N.forwardRef(function(r,a){var o=r.align,s=r.children,c=r.className,f=r.modal,g=It(r,$6),m=N.useRef(null);return N.useImperativeHandle(a,function(){return m.current}),N.useEffect(function(){f&&g.open&&m!==null&&m!==void 0&&m.current&&(m.current.close(),m.current.showModal())}),K.jsx("dialog",id(id({},g),{},{ref:m,className:wt("utrecht-drawer",{"utrecht-drawer--block-end":o==="block-end","utrecht-drawer--block-start":o==="block-start","utrecht-drawer--inline-end":o==="inline-end","utrecht-drawer--inline-start":o==="inline-start"||!o},c),children:s}))});t2.displayName="Drawer";var e2=["children","className"];function sd(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function od(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?sd(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):sd(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var n2=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=It(r,e2);return K.jsx("em",od(od({ref:a,className:wt("utrecht-emphasis","utrecht-emphasis--stressed",s)},c),{},{children:o}))});n2.displayName="Emphasis";var r2=["aria-describedby","aria-label","aria-labelledby","className","children","disabled","form","invalid","name","role"],i2=["className","children","disabled","invalid"];function ad(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function cu(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?ad(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):ad(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var s2=N.forwardRef(function(r,a){var o=r["aria-describedby"],s=r["aria-label"],c=r["aria-labelledby"],f=r.className,g=r.children,m=r.disabled,y=r.form,C=r.invalid,_=r.name,b=r.role,w=It(r,r2);return K.jsx("div",cu(cu({},w),{},{ref:a,className:wt("utrecht-form-fieldset",m&&"utrecht-form-fieldset--disabled",C&&"utrecht-form-fieldset--invalid",f),children:K.jsx("fieldset",{"aria-describedby":o,"aria-label":s,"aria-labelledby":c,"aria-invalid":C||void 0,disabled:m,form:y,name:_,role:b,className:wt("utrecht-form-fieldset__fieldset","utrecht-form-fieldset--html-fieldset"),children:g})}))});s2.displayName="Fieldset";var o2=N.forwardRef(function(r,a){var o=r.className,s=r.children,c=r.disabled,f=r.invalid,g=It(r,i2);return K.jsx("fieldset",cu(cu({},g),{},{ref:a,"aria-invalid":f||void 0,disabled:c,className:wt("utrecht-form-fieldset","utrecht-form-fieldset--html-fieldset",c&&"utrecht-form-fieldset--disabled",f&&"utrecht-form-fieldset--invalid",o),children:s}))});o2.displayName="Fieldset";var a2=["className","children"];function ud(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function ld(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?ud(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):ud(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var u2=N.forwardRef(function(r,a){var o=r.className,s=r.children,c=It(r,a2);return K.jsx("legend",ld(ld({},c),{},{ref:a,className:wt("utrecht-form-fieldset__legend","utrecht-form-fieldset__legend--html-legend",o),children:s}))});u2.displayName="FieldsetLegend";var l2=["className","children"];function cd(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function hd(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?cd(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):cd(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var c2=N.forwardRef(function(r,a){var o=r.className,s=r.children,c=It(r,l2);return K.jsx("figure",hd(hd({},c),{},{ref:a,className:wt("utrecht-figure",o),children:s}))});c2.displayName="Figure";var h2=["className","children"];function fd(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function dd(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?fd(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):fd(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var f2=N.forwardRef(function(r,a){var o=r.className,s=r.children,c=It(r,h2);return K.jsx("figcaption",dd(dd({},c),{},{ref:a,className:wt("utrecht-figure__caption",o),children:s}))});f2.displayName="FigureCaption";var d2=["className","children","description","input","invalid","label","type"];function gd(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function md(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?gd(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):gd(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var hu=N.forwardRef(function(r,a){var o=r.className,s=r.children,c=r.description,f=r.input,g=r.invalid,m=r.label,y=r.type,C=It(r,d2);return K.jsxs("div",md(md({},C),{},{ref:a,className:wt("utrecht-form-field",{"utrecht-form-field--invalid":g,"utrecht-form-field--checkbox":y==="checkbox","utrecht-form-field--radio":y==="radio","utrecht-form-field--text":!y||y==="text"},o),children:[m&&K.jsx("div",{className:"utrecht-form-field__label",children:m}),f&&K.jsx("div",{className:"utrecht-form-field__input",children:f}),c&&K.jsx("div",{className:"utrecht-form-field__description",children:c}),s]}))});hu.displayName="FormField";var g2=["invalid","valid","warning","className","children"];function pd(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function vd(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?pd(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):pd(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var fu=N.forwardRef(function(r,a){var o=r.invalid,s=r.valid,c=r.warning,f=r.className,g=r.children,m=It(r,g2);return K.jsx("div",vd(vd({},m),{},{ref:a,className:wt("utrecht-form-field-description",o&&"utrecht-form-field-description--invalid",s&&"utrecht-form-field-description--valid",c&&"utrecht-form-field-description--warning",f),children:g}))});fu.displayName="FormFieldDescription";var m2=["className","children"];function yd(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function Cd(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?yd(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):yd(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var _d=N.forwardRef(function(r,a){var o=r.className,s=r.children,c=It(r,m2);return K.jsx("div",Cd(Cd({},c),{},{ref:a,className:wt("utrecht-form-field-error-message",o),children:s}))});_d.displayName="FormFieldErrorMessage";var p2=["children","className","type","disabled","checked"];function bd(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function xd(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?bd(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):bd(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var wi=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=r.type,f=r.disabled,g=r.checked,m=It(r,p2);return K.jsx("label",xd(xd({},m),{},{ref:a,className:wt("utrecht-form-label",c&&"utrecht-form-label--".concat(c),f&&"utrecht-form-label--disabled",g&&"utrecht-form-label--checked",s),children:o}))});wi.displayName="FormLabel";var v2=["dir","disabled","invalid","readOnly","required","inputRequired","className","type","inputMode"];function Ed(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function wd(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?Ed(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):Ed(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var wl=N.forwardRef(function(r,a){var o=r.dir,s=r.disabled,c=r.invalid,f=r.readOnly,g=r.required,m=r.inputRequired,y=r.className,C=r.type,_=C===void 0?"text":C,b=r.inputMode,w=It(r,v2);return K.jsx("input",wd(wd({},w),{},{ref:a,type:_,className:wt("utrecht-textbox","utrecht-textbox--html-input",s&&"utrecht-textbox--disabled",c&&"utrecht-textbox--invalid",f&&"utrecht-textbox--readonly",(g||m)&&"utrecht-textbox--required",y),dir:o??"auto",disabled:s,readOnly:f,"aria-required":g||void 0,required:m,"aria-invalid":c||void 0,inputMode:b||(_==="number"?"numeric":void 0)}))});wl.displayName="Textbox";var y2=["name","invalid","disabled","label","errorMessage","description","readOnly","status","autoComplete","list","min","max","minLength","maxLength","step","placeholder","pattern","required","inputRequired","inputDir","type","value","onChange","onInput","onFocus","onBlur","defaultValue","size","children","inputRef"];function Od(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function Nd(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?Od(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):Od(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var C2=N.forwardRef(function(r,a){var o=r.name,s=r.invalid,c=r.disabled,f=r.label,g=r.errorMessage,m=r.description,y=r.readOnly,C=r.status,_=r.autoComplete,b=r.list,w=r.min,S=r.max,P=r.minLength,O=r.maxLength,q=r.step,G=r.placeholder,k=r.pattern,A=r.required,R=r.inputRequired,j=r.inputDir,W=r.type,F=r.value,H=r.onChange,U=r.onInput,it=r.onFocus,Y=r.onBlur,M=r.defaultValue,ot=r.size,ct=r.children,Ct=r.inputRef,V=It(r,y2),$=N.useId(),D=N.useId(),rt=N.useId(),J=N.useId();return K.jsxs(hu,Nd(Nd({invalid:s,ref:a},V),{},{children:[K.jsx("div",{className:"utrecht-form-field__label",children:K.jsx(wi,{htmlFor:$,children:f})}),m&&K.jsx(fu,{className:"utrecht-form-field__description",id:D,children:m}),s&&g&&K.jsx(_d,{className:"utrecht-form-field__error-message",id:J,children:g}),K.jsx("div",{className:"utrecht-form-field__input",children:K.jsx(wl,{ref:Ct,id:$,name:o,type:W||"text",autoComplete:_,"aria-describedby":wt(At(At(At({},D,m),J,s),rt,C))||void 0,invalid:s,dir:j||"auto",disabled:c,min:w,max:S,minLength:P,maxLength:O,pattern:k,placeholder:G,readOnly:y,required:A,inputRequired:R,value:F,onFocus:it,onBlur:Y,onInput:U,onChange:H,defaultValue:M,list:b,size:ot,step:q})}),C&&K.jsx("div",{className:"utrecht-form-field__status",id:rt,children:C}),ct]}))});C2.displayName="FormFieldTextbox";var _2=["checked","disabled","invalid","id","hidden","required","role","tabIndex","className"];function Sd(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function b2(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?Sd(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):Sd(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var x2=N.forwardRef(function(r,a){var o=r.checked,s=r.disabled,c=r.invalid,f=r.id,g=r.hidden,m=r.required,y=r.role,C=r.tabIndex,_=r.className,b=It(r,_2);return K.jsxs("div",{className:wt("utrecht-form-toggle","utrecht-form-toggle--html-checkbox",{"utrecht-form-toggle--disabled":s,"utrecht-form-toggle--invalid":c,"utrecht-form-toggle--required":m},_),hidden:g,children:[K.jsx("input",b2({id:f,"aria-invalid":c||void 0,type:"checkbox",className:"utrecht-form-toggle__checkbox",defaultChecked:o||void 0,disabled:s||void 0,required:m,ref:a,role:y,tabIndex:C},b)),K.jsx("label",{htmlFor:f,className:wt("utrecht-form-toggle__track","utrecht-form-toggle__track--html-label"),children:K.jsx("div",{className:"utrecht-form-toggle__thumb"})})]})});x2.displayName="FormToggle";var E2=["children","className"];function Ld(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function Id(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?Ld(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):Ld(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var w2=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=It(r,E2);return K.jsx("div",Id(Id({},c),{},{ref:a,className:wt("utrecht-html",s),children:o}))});w2.displayName="HTMLContent";var O2=["children","className"];function Pd(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function Td(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?Pd(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):Pd(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var Md=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=It(r,O2);return K.jsx("h1",Td(Td({},c),{},{ref:a,className:wt("utrecht-heading-1",s),children:o}))});Md.displayName="Heading1";var N2=["children","className"];function Ad(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function Dd(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?Ad(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):Ad(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var S2=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=It(r,N2);return K.jsx("h2",Dd(Dd({},c),{},{ref:a,className:wt("utrecht-heading-2",s),children:o}))});S2.displayName="Heading2";var L2=["children","className"];function Rd(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function jd(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?Rd(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):Rd(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var I2=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=It(r,L2);return K.jsx("h3",jd(jd({},c),{},{ref:a,className:wt("utrecht-heading-3",s),children:o}))});I2.displayName="Heading3";var P2=["children","className"];function kd(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function Fd(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?kd(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):kd(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var ua=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=It(r,P2);return K.jsx("h4",Fd(Fd({},c),{},{ref:a,className:wt("utrecht-heading-4",s),children:o}))});ua.displayName="Heading4";var T2=["children","className"];function Bd(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function zd(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?Bd(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):Bd(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var M2=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=It(r,T2);return K.jsx("h5",zd(zd({},c),{},{ref:a,className:wt("utrecht-heading-5",s),children:o}))});M2.displayName="Heading5";var A2=["children","className"];function Gd(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function qd(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?Gd(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):Gd(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var Ol=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=It(r,A2);return K.jsx("h6",qd(qd({},c),{},{ref:a,className:wt("utrecht-heading-6",s),children:o}))});Ol.displayName="Heading6";var D2=["children","className"];function Vd(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function Ud(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?Vd(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):Vd(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var R2=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=It(r,D2);return K.jsx("hgroup",Ud(Ud({},c),{},{ref:a,className:wt("utrecht-heading-group",s),children:o}))});R2.displayName="HeadingGroup";var j2=["children","value","className"];function Hd(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function Zd(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?Hd(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):Hd(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var k2=function(a){return a.replace(/[\s+\W]+/g,"").toUpperCase()},F2=function(a){return a.replace(/(.{4})(?!$)/g,"$1 ")},B2=N.forwardRef(function(r,a){var o=r.children,s=r.value,c=r.className,f=It(r,j2),g=k2(s),m=F2(g);return K.jsx("data",Zd(Zd({},f),{},{ref:a,value:g,className:wt("utrecht-iban-data",c),translate:"no",children:o||m}))});B2.displayName="IBANData";var z2=["children","className"];function Wd(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function Yd(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?Wd(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):Wd(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var G2=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=It(r,z2);return K.jsx("span",Yd(Yd({"aria-hidden":"true",ref:a,className:wt("utrecht-icon",s)},c),{},{children:o}))});G2.displayName="Icon";var q2=["component","currentChar","characters","onLinkClick","Link"];function Xd(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function du(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?Xd(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):Xd(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var V2=N.forwardRef(function(r,a){var o=r.component,s=r.currentChar,c=r.characters,f=r.onLinkClick,g=r.Link,m=It(r,q2),y=g||au,C=[];return o==="button"?C=c.map(function(_){var b=_.char,w=_.disabled,S=s===b;return N.createElement(tr,du(du({},m),{},{className:wt({"utrecht-index-char-nav__link--current":S}),ref:a,key:b,appearance:S?"primary-action-button":"secondary-action-button",disabled:w,onClick:function(){return typeof f=="function"&&f(b)},pressed:S}),b)}):C=c.map(function(_){var b=_.char,w=_.disabled,S=_.href,P=s===b,O=wt("utrecht-button-link","utrecht-button-link--html-a","utrecht-index-char-nav__link",{"utrecht-index-char-nav__link--current":P,"utrecht-button-link--primary-action":P,"utrecht-button-link--secondary-action":!P,"utrecht-index-char-nav__link--disabled":w,"utrecht-button-link--placeholder":w});return K.jsx(y,du(du({ref:a,appearance:g?void 0:P?"primary-action-button":"secondary-action-button",href:S,className:wt(g&&O,"utrecht-index-char-nav__link",{"utrecht-index-char-nav__link--disabled":w,"utrecht-index-char-nav__link--current":P}),"aria-current":P?"page":void 0,"aria-disabled":w,placeholder:g?void 0:w,onClick:function(){return typeof f=="function"&&f(b)}},m),{},{children:b}),b)}),K.jsx("div",{className:"utrecht-index-char-nav",role:"group",children:C})});V2.displayName="IndexCharNav";var U2=["className","photo"];function Kd(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function Jd(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?Kd(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):Kd(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var H2=N.forwardRef(function(r,a){var o=r.className,s=r.photo,c=It(r,U2);return K.jsx("img",Jd(Jd({},c),{},{ref:a,className:wt("utrecht-img",{"utrecht-img--photo":s},o)}))});H2.displayName="Image";var Z2=["children","disabled","inline","className","pressed","type"];function Qd(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function $d(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?Qd(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):Qd(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var W2=N.forwardRef(function(r,a){var o=r.children,s=r.disabled,c=r.inline,f=r.className,g=r.pressed,m=r.type,y=It(r,Z2);return K.jsx("button",$d($d({ref:a,"aria-pressed":typeof g=="boolean"?g:void 0,className:wt("utrecht-link-button","utrecht-link-button--html-button",{"utrecht-link-button--disabled":s,"utrecht-link-button--inline":c,"utrecht-link-button--pressed":g},f),disabled:s,type:m||"button"},y),{},{children:o}))});W2.displayName="LinkButton";var Y2=["children","className","external"];function tg(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function eg(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?tg(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):tg(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var X2=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=r.external,f=It(r,Y2);return K.jsx("a",eg(eg({},f),{},{ref:a,className:wt("utrecht-link-social",s),rel:c!==!1?"external noopener noreferrer":void 0,children:o}))});X2.displayName="LinkSocial";var K2=["className","icon","children"],J2=["children","icon","links","className"];function ng(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function la(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?ng(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):ng(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var rg=N.forwardRef(function(r,a){var o=r.className,s=r.icon,c=r.children,f=It(r,K2);return K.jsx("li",{className:wt("utrecht-link-list__item",o),children:K.jsxs(xl,la(la({className:"utrecht-link-list__link"},f),{},{ref:a,children:[s,K.jsx("span",{className:"utrecht-link-list__link-text",children:c})]}))})});rg.displayName="LinkListLink";var Q2=N.forwardRef(function(r,a){var o=r.children,s=r.icon,c=r.links,f=r.className,g=It(r,J2);return K.jsxs("ul",la(la({role:"list",ref:a,className:wt("utrecht-link-list","utrecht-link-list--html-ul",f)},g),{},{children:[o,Array.isArray(c)&&c.map(function(m,y){return K.jsx(rg,la({icon:typeof s=="function"?s():void 0},m),y)})]}))});Q2.displayName="LinkList";var $2=["children","className","disabled","invalid","multiple","readOnly","required"],t3=["children","label"],e3=["active","className","disabled","selected"];function ig(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function Co(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?ig(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):ig(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var n3=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=r.disabled,f=r.invalid,g=r.multiple,m=r.readOnly,y=r.required,C=It(r,$2);return K.jsx("div",Co(Co({className:wt("utrecht-listbox","utrecht-listbox--html-div",{"utrecht-listbox--disabled":c,"utrecht-listbox--invalid":f,"utrecht-listbox--read-only":m},s),role:"listbox","aria-disabled":c||void 0,"aria-invalid":f||void 0,"aria-multiselectable":g||void 0,"aria-readonly":m||void 0,"aria-required":y||void 0,tabIndex:0},C),{},{ref:a,children:K.jsx("ul",{className:"utrecht-listbox__list",children:o})}))});n3.displayName="Listbox";var r3=N.forwardRef(function(r,a){var o=r.children,s=r.label,c=It(r,t3),f=N.useId();return K.jsxs("li",Co(Co({className:"utrecht-listbox__group",role:"group","aria-labelledby":f},c),{},{ref:a,children:[s&&K.jsx("div",{id:f,className:"utrecht-listbox__group-label",children:s}),K.jsx("ul",{children:o})]}))});r3.displayName="ListboxOptionGroup";var i3=N.forwardRef(function(r,a){var o=r.active,s=r.className,c=r.disabled,f=r.selected,g=It(r,e3);return K.jsx("li",Co(Co({className:wt("utrecht-listbox__option","utrecht-listbox__option--html-li",{"utrecht-listbox__option--active":o,"utrecht-listbox__option--disabled":c,"utrecht-listbox__option--selected":f},s),"aria-disabled":c||void 0,"aria-selected":f?"true":"false",tabIndex:c?void 0:-1,role:"option"},g),{},{ref:a}))});i3.displayName="ListboxOption";var s3=["children","className"];function sg(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function og(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?sg(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):sg(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var o3=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=It(r,s3);return K.jsx("div",og(og({ref:a,className:wt("utrecht-logo",s)},c),{},{children:o}))});o3.displayName="Logo";function ag(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function ug(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?ag(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):ag(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var a3=N.forwardRef(function(r,a){var o=bl({},(Uv(r),r));return K.jsxs("svg",ug(ug({width:"192",height:"100",viewBox:"0 0 192 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:a},o),{},{children:[K.jsxs("g",{clipPath:"url(#clip0_908_6292)",children:[K.jsx("path",{d:"M124.75 61.3114C126.41 60.4985 127.932 59.5127 129.264 58.3712C129.558 57.9561 129.887 57.6448 130.267 57.4373C132.844 54.8084 134.453 51.4013 134.453 47.2331C134.453 47.2331 134.453 44.2583 134.453 43.5147C134.349 43.5492 134.245 43.5665 134.124 43.5665C134.003 43.5665 133.882 43.5492 133.761 43.5147L133.484 45.0885C130.924 44.6043 131.201 42.0619 132.931 41.1971C133.917 40.6955 134.228 40.3323 133.934 39.9519C133.847 39.8481 133.744 39.7962 133.623 39.7962C133.259 39.7962 132.723 40.194 132.204 40.5745C131.979 40.7474 131.685 40.8339 131.374 40.8339C130.7 40.8339 129.973 40.4015 129.662 39.3811L128.763 39.8827C128.607 37.9629 129.8 37.0117 131.011 37.0117C131.582 37.0117 132.17 37.2192 132.619 37.6343C132.792 37.79 132.965 37.8591 133.138 37.8591C133.692 37.8591 134.072 37.1673 133.329 36.7695C132.619 36.389 131.945 35.213 132.602 34.4693L131.53 33.4662C132.014 33.1721 132.533 33.0338 133.017 33.0338C133.536 33.0338 134.038 33.2067 134.453 33.5526V19.9932C134.124 19.924 133.744 19.5954 133.744 19.1285C133.744 18.6096 134.055 18.2983 134.453 18.1426V17.0184C133.64 17.1914 133.034 17.693 132.792 18.3848L131.651 18.4021C131.599 17.5373 132.014 16.759 132.896 16.465V15.3408C132.152 15.4965 131.668 15.8597 131.374 16.1883C131.288 16.2748 131.219 16.3785 131.132 16.4823L130.267 16.4996C130.233 15.6694 130.648 14.9257 131.426 14.6663V14.1474H128.261H92.2871H89.122V14.6663C89.9176 14.9257 90.3327 15.6694 90.2808 16.4996L89.4161 16.4823C89.3469 16.3785 89.2604 16.292 89.1739 16.1883C88.8799 15.877 88.3783 15.5138 87.652 15.3408V16.465C88.5167 16.759 88.9318 17.5373 88.8972 18.4021L87.7557 18.3848C87.5136 17.693 86.9083 17.2087 86.0954 17.0184V18.1426C86.4932 18.2983 86.7872 18.6096 86.7872 19.1285C86.7872 19.5781 86.424 19.924 86.0954 19.9932V33.5353C86.5105 33.1894 86.9947 33.0338 87.5136 33.0338C88.0151 33.0338 88.534 33.1894 89.001 33.4662L87.9287 34.4693C88.5686 35.2303 87.8941 36.389 87.2023 36.7695C86.4586 37.1673 86.8564 37.8591 87.3925 37.8591C87.5655 37.8591 87.7384 37.79 87.9114 37.6343C88.3611 37.2192 88.9491 37.0117 89.5198 37.0117C90.7305 37.0117 91.9239 37.9456 91.7682 39.8827L90.8343 39.3638C90.523 40.3842 89.7966 40.8166 89.122 40.8166C88.8107 40.8166 88.5167 40.7301 88.2919 40.5572C87.773 40.1767 87.2369 39.7789 86.8737 39.7789C86.7526 39.7789 86.6315 39.8308 86.5624 39.9346C86.2856 40.315 86.5797 40.6955 87.5655 41.1798C89.3123 42.0446 89.589 44.587 87.012 45.0712L86.7353 43.4974C86.6142 43.532 86.4932 43.5492 86.3721 43.5492C86.2683 43.5492 86.1646 43.532 86.0608 43.5147V47.2331C86.0608 51.4186 87.6865 54.8257 90.2808 57.4546C90.6094 57.6448 90.9207 57.9388 91.1975 58.3193C92.5292 59.4954 94.0858 60.4812 95.7634 61.3114C95.7634 61.3114 124.75 61.3114 124.75 61.3114Z",fill:"white"}),K.jsx("path",{d:"M135.162 2.40404C135.162 2.21379 135.145 2.04084 135.127 1.85059H132.516C132.498 3.33798 132.118 4.77348 131.461 5.89766C131.011 6.65865 130.475 7.22939 129.87 7.5753H130.06C132.879 7.59259 135.162 5.27504 135.162 2.40404ZM132.516 12.3142C132.308 12.2796 132.118 12.2623 131.91 12.2623C131.755 12.2623 131.599 12.2796 131.443 12.2969C130.959 12.3488 130.475 12.5044 130.094 12.7811C129.662 13.0925 129.351 13.6113 129.333 14.1648H130.146C130.509 13.8707 130.942 13.6632 131.409 13.5594V14.6836C130.613 14.943 130.198 15.6867 130.25 16.5169L131.115 16.4996C131.184 16.3958 131.27 16.3094 131.357 16.2056C131.651 15.8943 132.152 15.5311 132.879 15.3581V16.4823C132.014 16.7763 131.599 17.5546 131.634 18.4194L132.775 18.4021C133.035 17.6757 133.674 17.1741 134.539 17.0185V18.1254C134.09 18.2637 133.726 18.575 133.726 19.1458C133.726 19.6473 134.176 20.0105 134.539 20.0105L134.505 20.9618C134.505 20.9618 134.505 20.9618 134.522 20.9618C134.764 20.9618 134.972 20.8926 135.196 20.7888C135.906 20.4083 136.182 19.5781 136.165 18.8172L137.203 18.3156C137.203 18.3502 137.22 18.3848 137.22 18.4367C137.306 19.0766 137.22 19.6992 137.012 20.2354L138.967 22.0859C139.347 21.152 139.849 20.27 140.454 19.4571C140.679 19.1804 140.904 18.9036 141.146 18.6615C140.299 18.0216 139.261 17.226 138.915 16.9666C137.825 16.1537 136.822 15.2544 135.784 14.3723C135.145 13.8361 134.487 13.3 133.796 12.833C133.398 12.5736 132.965 12.4007 132.516 12.3142ZM150.658 46.6451C150.814 46.7316 150.97 46.7662 151.125 46.7662C151.506 46.7662 151.869 46.5586 152.077 46.23C152.042 46.0398 151.973 45.8322 151.921 45.642C151.748 45.1231 151.488 44.6216 151.125 44.1373C150.658 43.5147 150.036 42.9439 149.206 42.477C149.084 42.4078 148.946 42.3213 148.79 42.2348C149.344 42.9093 149.673 43.3936 149.88 43.8087C150.105 44.2238 150.209 44.5524 150.364 44.8637C150.312 44.9156 150.278 44.9675 150.243 45.0194C149.863 45.5901 150.088 46.3511 150.658 46.6451ZM70.6335 43.7914C70.8411 43.3936 71.1697 42.892 71.7231 42.2175C71.5848 42.304 71.4291 42.3905 71.308 42.4597C70.4779 42.9266 69.8552 43.4974 69.3883 44.12C69.0251 44.6043 68.7829 45.1231 68.5927 45.6247C68.5235 45.8149 68.4716 46.0225 68.437 46.2127C68.6446 46.5413 69.0078 46.7489 69.3883 46.7489C69.5439 46.7489 69.6996 46.7143 69.8552 46.6278C70.426 46.3338 70.6508 45.5728 70.253 44.9848C70.2184 44.9329 70.1839 44.881 70.132 44.8291C70.3049 44.5351 70.4087 44.2065 70.6335 43.7914ZM142.287 13.1098C142.495 13.1098 142.72 13.0925 142.945 13.0752C142.27 12.833 141.734 12.4352 141.388 11.8818C140.904 11.1381 140.835 10.3425 141.025 9.63342C140.99 9.63342 140.956 9.65072 140.921 9.65072C140.108 9.82367 139.693 10.4463 139.849 11.2765C140.074 12.5217 140.852 13.1098 142.287 13.1098ZM152.163 48.0633C152.18 47.8904 152.198 47.7174 152.198 47.5272C151.869 47.7174 151.488 47.8212 151.108 47.8212C150.762 47.8212 150.451 47.7347 150.139 47.579C149.534 47.2677 149.119 46.697 148.998 46.0225C148.912 45.5901 148.963 45.1404 149.136 44.7426C149.136 44.7426 149.136 44.7253 149.119 44.7253C148.652 44.6389 148.133 44.5697 147.562 44.5005C146.611 44.3967 145.746 44.3448 144.951 44.3448C137.514 44.3448 136.909 48.4265 136.909 48.4265C135.75 52.7676 139.226 54.7219 139.226 54.7219C139.226 54.7219 140.022 58.6825 138.258 60.1872L136.424 59.5646L135.508 59.2533L134.989 59.0803C134.159 57.9043 132.81 57.0741 131.53 57.0741C130.285 57.0741 129.091 57.8697 128.503 59.9278L129.8 59.6511C129.8 60.9828 130.233 61.3287 130.907 61.3287C131.046 61.3287 131.201 61.3114 131.357 61.2941C131.547 61.2595 131.737 61.2249 131.945 61.1903C132.585 61.0693 133.052 60.9309 133.38 60.9309C133.692 60.9309 133.899 61.052 134.02 61.3806C134.193 61.8822 133.709 62.1935 133.086 62.3491C131.564 62.695 130.7 63.7673 130.976 65.2028C131.046 65.5314 131.149 65.86 131.34 66.2232C131.409 66.3789 131.495 66.5173 131.599 66.6729C131.599 66.6729 131.616 66.6729 131.616 66.6902L133.121 65.7736C133.346 65.9984 133.605 66.0849 133.865 66.0849C134.435 66.0849 134.989 65.6698 135.196 65.3066C135.214 65.272 135.231 65.2374 135.248 65.2028C135.421 64.8569 135.439 64.4591 135.439 64.0959C135.439 63.8884 135.421 63.6809 135.421 63.4906C135.421 63.2658 135.421 63.0755 135.473 62.9372C135.56 62.6604 135.784 62.4702 136.027 62.3664C136.113 62.3318 136.217 62.3145 136.303 62.3145C136.459 62.3145 136.615 62.3664 136.753 62.4702C137.116 62.7296 137.116 63.1274 137.064 63.5252C137.012 63.9403 136.943 64.3208 137.168 64.6667C137.185 64.7013 137.203 64.7186 137.22 64.7532C137.306 64.8569 137.41 64.9607 137.514 65.0472C137.583 65.0991 137.894 65.3239 137.894 65.4104L137.739 67.2437C138.707 67.1745 139.78 66.9669 140.299 66.0849C140.402 65.9119 140.489 65.6871 140.541 65.4623C140.731 64.7877 140.817 63.9576 140.921 62.7988C141.354 62.6258 141.734 62.401 142.063 62.107C142.478 61.7438 142.806 61.2941 142.997 60.7234C143.515 59.1668 143.965 56.0537 143.273 52.7676C143.273 52.7676 150.243 51.9028 151.748 51.1418C151.886 50.0868 152.025 49.0318 152.163 48.0633ZM146.023 7.93849C146.023 7.93849 145.072 8.50924 145.262 9.40858C145.574 10.0658 145.971 10.7403 146.473 11.3283L147.441 10.3598C148.583 9.30481 149.586 8.92432 150.416 8.92432C151.506 8.92432 152.267 9.61613 152.578 10.4117C153.062 11.6224 153.01 12.5909 152.838 13.2135C152.699 13.6805 152.319 14.061 151.454 14.1302C151.298 14.1475 151.125 14.1475 150.952 14.1475C149.171 14.1475 146.836 13.5075 146.836 13.5075C146.473 15.4446 146.248 15.8251 149.015 15.8251C149.655 15.8251 150.451 15.8078 151.437 15.7732L148.669 17.0358C148.358 17.0185 148.064 17.0012 147.77 17.0012C145.729 17.0012 144.103 17.6065 142.824 18.5923C142.53 18.8172 142.253 19.0593 141.993 19.3187C141.008 20.3218 140.299 21.5671 139.797 22.8815C139.659 23.262 139.538 23.6425 139.434 24.023C138.898 26.0293 138.828 28.122 139.105 29.7996C139.313 29.5402 139.52 29.298 139.762 29.0559L139.883 28.9348C140.714 28.122 142.115 26.7211 143.792 25.8563C144.415 25.3029 145.003 24.7494 145.574 24.1441C146.801 22.8469 147.891 21.4114 148.704 19.7857C148.202 21.5325 147.355 23.2101 146.352 24.7494C145.954 25.3547 145.539 25.9428 145.107 26.5135C144.726 26.6692 144.38 26.8421 144.034 27.0497C142.564 27.8798 141.319 29.1597 140.593 29.8861C140.16 30.3012 139.814 30.7681 139.486 31.2524C139.226 31.6329 139.001 32.0134 138.759 32.4112C138.586 32.7052 138.396 33.0165 138.223 33.3105C137.445 34.5731 136.407 35.8183 135.819 35.8183C135.612 35.8183 135.456 35.6627 135.387 35.3168C135.075 33.7429 134.09 33.0511 133.017 33.0511C132.516 33.0511 131.997 33.2067 131.53 33.4835L132.602 34.4866C131.962 35.2476 132.637 36.4064 133.329 36.7869C134.072 37.1846 133.674 37.8764 133.138 37.8764C132.965 37.8764 132.792 37.8073 132.619 37.6516C132.17 37.2365 131.582 37.029 131.011 37.029C129.8 37.029 128.607 37.9629 128.763 39.9L129.697 39.3811C130.008 40.4015 130.734 40.8339 131.409 40.8339C131.72 40.8339 132.014 40.7474 132.239 40.5745C132.758 40.194 133.294 39.7962 133.657 39.7962C133.778 39.7962 133.899 39.8481 133.968 39.9519C134.245 40.3324 133.951 40.7129 132.965 41.1971C131.219 42.0619 130.942 44.6043 133.519 45.0885L133.796 43.5147C133.917 43.5493 134.038 43.5666 134.159 43.5666C134.902 43.5666 135.421 42.9093 135.508 42.4251C135.629 41.716 135.594 41.2836 135.629 40.8339C135.646 40.4361 135.906 40.2632 136.165 40.2632C136.476 40.2632 136.788 40.488 136.822 40.8858C136.874 41.6295 136.857 42.598 138.171 42.8229L138.586 44.1546C139.832 43.7222 141.077 42.2867 138.811 39.8654C138.777 38.6374 140.074 37.9283 141.89 36.9079C142.201 36.735 142.53 36.5447 142.858 36.3545C143.031 36.2507 143.204 36.1469 143.377 36.0432C143.74 35.8183 145.141 34.7979 146.369 33.7429L147.441 34.3136C147.217 34.5039 146.974 34.7114 146.698 34.9536C145.591 35.8702 144.397 36.7696 143.948 37.029C143.861 37.0809 143.775 37.1328 143.688 37.1846C144.864 38.2742 146.127 39.2255 147.268 39.9865C147.735 40.2978 148.185 40.5918 148.6 40.8512C149.015 41.1106 149.413 41.3355 149.742 41.5257C150.658 42.0446 151.385 42.6845 151.938 43.4109C152.301 43.8779 152.578 44.3794 152.786 44.881C152.993 45.3653 153.132 45.8668 153.201 46.3684C153.235 46.5413 153.253 46.697 153.27 46.8699C153.304 47.3369 153.287 47.7866 153.235 48.219C153.166 48.6859 153.114 49.1529 153.045 49.6199C152.959 50.329 152.889 51.0208 152.838 51.7299C152.768 52.5601 152.734 53.3729 152.734 54.1858C152.734 56.6763 153.114 58.4577 154.844 60.1526C156.089 61.3806 157.836 61.6746 159.531 61.7957C160.413 61.8476 162.886 62.2108 164.564 62.4702C165.532 62.6086 166.259 63.4214 166.31 64.4072C166.38 65.739 166.362 67.4858 165.895 68.0738L163.612 67.7625C163.076 66.9669 161.796 66.3443 160.551 66.3443C159.583 66.3443 158.631 66.7248 158.095 67.7279C157.94 68.0219 157.801 68.3678 157.732 68.7829C157.715 68.904 157.697 69.0251 157.68 69.1634L158.407 68.8694L158.822 68.6965C158.839 68.8002 158.856 68.8867 158.874 68.9732C159.116 69.9763 159.635 70.3395 160.257 70.3395C160.551 70.3395 160.862 70.253 161.191 70.132C161.226 70.1147 161.26 70.0974 161.312 70.0801C161.9 69.8379 162.315 69.6477 162.627 69.6477C162.834 69.6477 162.99 69.7342 163.128 69.9763C163.318 70.3049 163.128 70.5816 162.8 70.8065C162.696 70.8756 162.557 70.9448 162.436 70.9967C160.69 71.7231 160.188 73.418 161.796 75.1821L163.007 74.1098C163.197 74.2309 163.388 74.2828 163.561 74.2828C164.149 74.2828 164.685 73.7466 164.823 73.3489C165.048 72.7435 164.806 72.0517 164.719 71.5502C164.702 71.4118 164.685 71.2734 164.702 71.1697C164.737 70.8929 164.927 70.6681 165.152 70.547C165.255 70.4952 165.359 70.4606 165.48 70.4606C165.584 70.4606 165.688 70.4779 165.792 70.5297C165.895 70.5816 165.982 70.6508 166.051 70.7373C166.207 70.9275 166.241 71.187 166.241 71.4464C166.241 71.5847 166.241 71.7404 166.259 71.8788C166.293 72.1209 166.362 72.3457 166.57 72.536C166.674 72.6225 166.777 72.6916 166.881 72.7608C166.95 72.7954 167.279 72.9511 167.296 73.0202L167.452 74.7152C168.663 74.4212 169.994 73.8331 169.666 71.9479C169.614 71.6366 169.51 71.2734 169.337 70.8756C169.285 70.7373 169.216 70.5816 169.13 70.426C170.185 69.9071 170.876 68.9213 171.049 67.7625C171.205 66.7075 171.032 62.9545 170.911 60.8098C170.859 59.9451 170.202 59.236 169.354 59.1149C168.386 58.9766 167.141 58.7863 166.224 58.5961C164.771 58.2848 163.37 57.6448 163.042 56.6071C162.765 55.7078 162.921 55.604 163.007 54.6874C163.076 53.9783 163.163 53.2519 163.215 52.5428C163.215 52.439 163.232 52.3179 163.232 52.2142C163.249 51.7991 163.232 51.3667 163.18 50.9516C163.267 51.0035 163.353 51.0554 163.439 51.1073C163.716 51.2629 164.01 51.3667 164.304 51.4532C164.633 51.5396 164.961 51.5742 165.307 51.5742C166.034 51.5742 166.743 51.384 167.383 50.9862C168.542 50.2771 169.216 49.0491 169.181 47.7001C169.13 45.2961 167.763 43.6012 166.449 41.9581C165.826 41.1798 165.169 40.367 164.685 39.5022C163.145 36.735 162.782 33.7256 163.612 30.5606C163.976 29.177 164.806 27.9317 165.688 26.6C166.016 26.0984 166.328 25.6315 166.639 25.1126C166.639 25.1126 167.331 25.4239 167.781 25.3201C167.902 25.2856 168.023 25.2337 168.161 25.1472C169.216 24.49 170.34 21.8092 170.288 18.5923C170.254 16.0326 169.648 13.9053 168.455 12.1585C168.715 12.8849 168.939 13.6459 169.078 14.4069C169.233 15.2371 169.285 16.1018 169.233 16.932C169.181 17.7795 169.008 18.5923 168.732 19.3533C168.853 18.5404 168.853 17.7276 168.749 16.932C168.645 16.1364 168.438 15.3754 168.144 14.649C167.884 14.0091 167.573 13.3865 167.21 12.7984C167.452 14.2858 167.452 15.7905 167.054 17.6584C166.812 18.8172 166.31 19.9241 165.878 20.8926C165.48 21.7746 165.186 22.4837 165.065 23.0718C164.927 23.7117 165.013 24.196 165.446 24.5938C165.377 24.7148 165.29 24.8359 165.221 24.9569C165.031 25.251 164.823 25.5623 164.616 25.8736C163.716 27.2399 162.782 28.6408 162.367 30.232C161.468 33.691 161.883 37.1155 163.561 40.1421C164.097 41.1106 164.788 41.9581 165.446 42.7883C166.674 44.3275 167.85 45.7803 167.902 47.752C167.919 48.6513 167.487 49.4296 166.726 49.8966C165.93 50.3809 164.979 50.4155 164.166 50.0177C164.149 50.0004 164.114 50.0004 164.097 49.9831C163.474 49.6545 162.921 49.0318 162.592 48.3054C162.575 48.2708 162.575 48.2363 162.557 48.2017C162.16 47.0429 161.675 45.9014 161.122 44.8118C159.496 41.5603 157.473 38.5164 156.193 35.0919C155.086 32.1517 155.587 28.5716 155.587 28.5716C156.712 29.0213 158.355 29.0732 158.355 29.0732C158.303 25.4066 166.172 16.8974 161.381 6.52029C161.053 7.05644 160.62 7.60989 160.015 8.18063L159.583 8.59571V7.09103C162.09 4.49675 160.932 2.02354 159.998 1.19337C159.289 1.4528 158.476 2.23109 157.87 3.18232L156.815 2.83642C157.075 2.40404 157.369 1.98895 157.697 1.60846C157.594 1.53928 157.49 1.48739 157.369 1.4701C157.317 1.4701 157.248 1.4528 157.161 1.4528C155.587 1.4528 149.672 2.81912 149.084 3.13043L148.617 4.72159C147.009 5.15397 145.522 6.01873 144.467 6.58947C144.553 7.03914 145.037 8.05956 146.023 7.93849ZM157.767 18.0908C158.199 16.8974 158.545 15.6694 158.822 14.4242C158.683 15.704 158.493 16.9666 158.199 18.2291C157.905 19.4917 157.507 20.7196 157.04 21.9303C156.573 23.141 156.037 24.317 155.484 25.4758C155.034 26.3924 154.567 27.2918 154.1 28.1911C153.668 28.0528 153.149 27.8279 152.578 27.4993C153.91 25.5796 155.19 23.6252 156.262 21.5671C156.833 20.4429 157.352 19.2841 157.767 18.0908ZM153.218 19.9759C152.941 20.8061 152.665 21.6536 152.319 22.4837C151.973 23.3139 151.54 24.1268 151.091 24.8878C150.814 25.3547 150.537 25.8217 150.261 26.2887C149.672 26.0811 149.084 25.9601 148.514 25.9255C149.015 25.3374 149.534 24.7321 150.018 24.1441C150.572 23.4696 151.073 22.7951 151.54 22.0859C151.99 21.3596 152.405 20.5986 152.803 19.8203C153.201 19.042 153.581 18.2464 153.979 17.4681C153.737 18.2983 153.477 19.1458 153.218 19.9759ZM152.872 5.01561C151.661 6.20898 151.264 6.93537 151.264 6.93537C149.655 7.00455 149.309 5.98414 149.309 4.98102C150.883 5.4134 152.872 5.01561 152.872 5.01561ZM131.426 8.68219H89.1567V11.2073C89.7274 11.2592 90.4538 11.4494 91.0937 11.8991C91.8201 12.4352 92.2698 13.2654 92.2871 14.1129V14.1475H128.244V14.1129C128.261 13.2654 128.711 12.4352 129.437 11.8991C130.094 11.4148 130.855 11.2419 131.426 11.19V8.68219ZM98.0118 13.2308L94.5355 11.5013L98.0118 9.77178L101.488 11.5013L98.0118 13.2308ZM110.274 13.0406C108.579 13.0406 107.196 12.3488 107.196 11.5013C107.196 10.6538 108.579 9.96203 110.274 9.96203C111.969 9.96203 113.353 10.6538 113.353 11.5013C113.353 12.3488 111.969 13.0406 110.274 13.0406ZM122.536 13.2308L119.06 11.5013L122.536 9.77178L126.013 11.5013L122.536 13.2308ZM86.4413 61.3806C86.5624 61.052 86.7699 60.9309 87.0812 60.9309C87.4099 60.9309 87.8768 61.052 88.5167 61.1903C88.7243 61.2249 88.9145 61.2595 89.1048 61.2941C89.2604 61.3114 89.4161 61.3287 89.5545 61.3287C90.229 61.3287 90.6613 61.0001 90.6613 59.6511L91.9585 59.9278C91.3704 57.8697 90.1771 57.0741 88.9318 57.0741C87.652 57.0741 86.303 57.9216 85.4728 59.0803L84.9539 59.2533L84.0719 59.5992L82.2386 60.2218C80.4572 58.7171 81.2701 54.7565 81.2701 54.7565C81.2701 54.7565 84.7464 52.8022 83.5876 48.4611C83.5876 48.4611 82.9823 44.3794 75.5454 44.3794C74.7498 44.3794 73.885 44.4313 72.9338 44.5351C72.363 44.6043 71.8442 44.6735 71.3772 44.7599C71.3772 44.7599 71.3772 44.7772 71.3599 44.7772C71.5329 45.175 71.5848 45.6247 71.4983 46.0571C71.3772 46.7316 70.9621 47.3023 70.3568 47.6136C70.0628 47.7693 69.7342 47.8558 69.3883 47.8558C69.0078 47.8558 68.6446 47.752 68.2987 47.5617C68.2987 47.752 68.316 47.9249 68.3333 48.0979C68.4716 49.0664 68.61 50.1041 68.6965 51.1937C70.2012 51.9547 77.1711 52.8195 77.1711 52.8195C76.4966 56.1056 76.929 59.2187 77.4478 60.7753C77.6381 61.346 77.9667 61.7957 78.3818 62.1589C78.7104 62.4529 79.0909 62.6777 79.5233 62.8507C79.6097 63.9922 79.6962 64.8396 79.9037 65.5141C79.9556 65.7563 80.0421 65.9638 80.1459 66.1368C80.6647 67.0188 81.737 67.2264 82.7056 67.2955L82.5499 65.4623C82.5499 65.3758 82.8785 65.1509 82.9304 65.0991C83.0342 65.0126 83.1379 64.9088 83.2244 64.805C83.2417 64.7704 83.259 64.7532 83.2763 64.7186C83.5011 64.3554 83.432 63.9749 83.3801 63.5771C83.3282 63.1793 83.3282 62.7815 83.6914 62.5221C83.8298 62.4183 83.9854 62.3664 84.1411 62.3664C84.2448 62.3664 84.3313 62.3837 84.4178 62.4183C84.6599 62.5048 84.8848 62.7123 84.9712 62.989C85.0231 63.1274 85.0231 63.3177 85.0231 63.5425C85.0231 63.7327 85.0058 63.9403 85.0058 64.1478C85.0058 64.511 85.0404 64.9088 85.1961 65.2547C85.2134 65.2893 85.2307 65.3239 85.248 65.3585C85.4555 65.7044 86.0089 66.1368 86.5797 66.1368C86.8391 66.1368 87.0985 66.0503 87.3234 65.8255L88.8281 66.7421C88.8281 66.7421 88.8454 66.7421 88.8454 66.7248C88.9491 66.5691 89.0183 66.4135 89.1048 66.2751C89.2777 65.9119 89.3988 65.5833 89.468 65.2547C89.7447 63.8019 88.8799 62.7469 87.358 62.401C86.7699 62.2108 86.2684 61.8994 86.4413 61.3806ZM143.066 69.3883C142.651 68.7483 142.149 68.2987 141.682 67.9528C141.509 67.849 141.336 67.7625 141.146 67.6587L140.662 67.4166C139.832 68.1257 138.707 68.2987 137.877 68.3505L136.615 68.437L136.718 67.1745L136.822 65.86C136.684 65.739 136.545 65.6006 136.407 65.4277C136.407 65.4104 136.39 65.4104 136.39 65.3931C136.338 65.5487 136.269 65.7044 136.182 65.8428C135.802 66.5 134.902 67.1572 133.917 67.1572C133.657 67.1572 133.415 67.1053 133.173 67.0188L132.602 67.3647C132.637 67.3993 132.689 67.4339 132.723 67.4685C134.574 69.1807 135.957 69.371 138.31 69.9071C139.901 70.2703 141.388 71.187 141.89 72.83C142.184 73.7812 142.132 74.8189 142.08 75.8048C142.08 75.8048 145.331 73.9542 143.602 70.3049C143.464 70.0455 143.273 69.7169 143.066 69.3883ZM120.876 68.1257C119.856 67.088 118.766 66.206 117.676 65.6871C116.777 65.2547 115.878 64.9607 115.03 64.7704C114.477 64.6494 113.941 64.5629 113.439 64.511C113.145 64.4764 112.868 64.4591 112.592 64.4418C111.865 64.4764 111.087 64.4937 110.274 64.4937C109.461 64.4937 108.683 64.4764 107.957 64.4418C107.68 64.4591 107.403 64.4764 107.092 64.511C106.59 64.5629 106.054 64.6494 105.501 64.7704C104.653 64.9607 103.754 65.2547 102.854 65.6871C101.765 66.2232 100.675 67.088 99.6548 68.1257C99.5857 68.1949 99.5338 68.2468 99.4819 68.316C97.2681 70.72 97.8561 73.0721 97.8561 73.0721C97.8561 73.0721 100.693 69.3018 104.93 69.3018C106.953 69.3018 108.7 69.9763 109.6 70.426L110.257 70.7719L110.914 70.426C111.813 69.9936 113.56 69.3018 115.584 69.3018C119.821 69.3018 122.657 73.0721 122.657 73.0721C122.657 73.0721 123.263 70.72 121.032 68.316C120.997 68.2641 120.945 68.1949 120.876 68.1257ZM98.8766 67.3647C100.554 65.6698 102.405 64.5975 104.082 64.0268C102.56 63.7846 101.263 63.4733 100.105 63.1101C99.9835 63.1101 99.8624 63.0928 99.7413 63.0928C99.3781 63.0928 99.0149 63.1101 98.6863 63.1447C97.7178 63.2658 96.8011 63.4387 95.9191 63.4387C93.6188 63.4387 91.5953 63.0928 89.9522 62.6431C90.1252 62.868 90.2809 63.1101 90.3846 63.3868C90.644 64.0268 90.6959 64.7532 90.5403 65.4968C90.6095 65.5141 90.6613 65.5314 90.7305 65.5487C91.0418 65.6179 91.3359 65.6871 91.578 65.7217C92.045 65.8082 92.3217 65.8255 92.3217 65.8255C92.3217 65.8255 91.9066 66.0503 91.3186 66.4481C90.6095 66.9323 89.6582 67.6587 88.8454 68.5408C85.0231 72.7435 89.2431 75.9258 89.2431 75.9258C89.2431 75.9258 88.3092 71.7923 90.2981 70.4779C93.4805 68.4024 95.1754 70.1838 98.7382 67.4685C98.7901 67.4685 98.8247 67.4166 98.8766 67.3647ZM87.9287 67.3993L87.358 67.0534C87.1331 67.1399 86.8737 67.1918 86.6143 67.1918C85.6112 67.1918 84.7118 66.5346 84.3486 65.8773C84.2621 65.7217 84.193 65.5833 84.1411 65.4277C84.1411 65.445 84.1238 65.445 84.1238 65.4623C83.9854 65.6352 83.847 65.7736 83.7087 65.8946L83.8125 67.2091L83.9162 68.4716L82.6537 68.3851C81.8235 68.3333 80.7166 68.1603 79.8692 67.4512L79.3849 67.6933C79.1946 67.7971 79.0217 67.8836 78.8487 67.9874C78.3645 68.3333 77.8802 68.7829 77.4651 69.4229C77.2403 69.7515 77.0673 70.0628 76.929 70.3741C75.1995 74.0234 78.451 75.874 78.451 75.874C78.3991 74.8881 78.3645 73.8504 78.6412 72.8992C79.1428 71.2561 80.6301 70.3568 82.2213 69.9763C84.5907 69.4229 85.9571 69.2499 87.8076 67.5377C87.8595 67.4685 87.8941 67.4339 87.9287 67.3993ZM129.212 66.4827C128.624 66.0849 128.209 65.86 128.209 65.86C128.209 65.86 128.503 65.8255 128.953 65.7563C129.195 65.7217 129.489 65.6525 129.8 65.5833C129.852 65.566 129.921 65.5487 129.991 65.5314C129.835 64.7877 129.887 64.0613 130.146 63.4214C130.25 63.162 130.406 62.9026 130.579 62.6777C128.936 63.1274 126.912 63.4733 124.612 63.4733C123.73 63.4733 122.813 63.2831 121.845 63.1793C121.516 63.1447 121.153 63.1274 120.79 63.1274C120.668 63.1274 120.565 63.1274 120.444 63.1274C119.285 63.4906 117.97 63.8019 116.466 64.0441C118.143 64.6148 119.994 65.6698 121.672 67.382C121.723 67.4339 121.758 67.4685 121.793 67.5204C125.355 70.2357 127.05 68.4543 130.233 70.5297C132.222 71.8269 131.288 75.9777 131.288 75.9777C131.288 75.9777 135.49 72.7954 131.686 68.5927C130.873 67.6933 129.904 66.9496 129.212 66.4827ZM170.738 71.8615C170.859 72.6052 170.79 73.2624 170.513 73.8504C169.925 75.0957 168.628 75.5453 167.711 75.7875L166.483 76.0988L166.362 74.8362L166.241 73.6602C166.138 73.591 166.016 73.5045 165.913 73.418C165.895 73.5218 165.861 73.6256 165.826 73.7293C165.532 74.5422 164.598 75.3724 163.543 75.3724C163.439 75.3724 163.336 75.3724 163.232 75.3551L162.488 76.0123L161.693 76.7214L160.966 75.9258C159.946 74.8189 159.531 73.5737 159.79 72.4322C159.877 72.069 160.015 71.7231 160.223 71.4118C159.583 71.4118 159.012 71.1697 158.58 70.72C158.424 70.547 158.268 70.3568 158.164 70.132L158.095 70.1492L156.418 70.8411L156.608 69.0424C156.608 68.9732 156.625 68.9213 156.625 68.8521C155.881 68.9732 154.982 69.2499 153.841 69.6823C153.685 69.7688 153.512 69.8379 153.356 69.8898C153.27 69.9244 153.201 69.959 153.114 69.9763C153.477 70.1838 153.841 70.3914 154.169 70.5989C155.812 71.6539 156.936 72.7954 157.525 73.9888C157.888 74.3693 158.286 74.7844 158.718 75.2513C160.499 77.1538 162.903 78.0359 165.377 78.0359C169.614 78.0359 173.99 75.4243 175.529 70.8238C175.512 70.8411 173.419 71.5502 170.738 71.8615ZM153.495 71.481C151.298 70.0974 148.877 69.3191 148.877 69.3191C149.309 69.3537 149.707 69.371 150.088 69.371C151.039 69.371 151.817 69.2499 152.457 69.0597C152.82 68.9559 153.149 68.8175 153.426 68.6792C155.449 67.6414 155.518 65.7909 155.518 65.7909C153.91 66.8805 152.492 67.261 151.177 67.261C149.482 67.261 147.943 66.6556 146.369 66.2059C145.902 66.0676 145.435 66.0157 144.986 66.0157C143.688 66.0157 142.564 66.5 141.924 66.8459C142.737 67.3474 143.429 67.9874 143.965 68.8002C144.173 69.1288 144.363 69.4574 144.519 69.7688C145.037 70.4779 145.366 71.1005 145.885 71.5156C147.078 72.5187 148.739 72.7262 150.243 72.83C154.809 73.1759 156.677 77.2922 156.677 77.2922C157.058 76.3409 156.988 75.4416 156.625 74.6287C156.054 73.3834 154.826 72.3284 153.495 71.481ZM78.5893 66.8459C77.9494 66.5 76.8425 66.0157 75.5281 66.0157C75.0784 66.0157 74.6287 66.0676 74.1444 66.2059C72.5533 66.6556 71.0313 67.261 69.3364 67.261C68.022 67.261 66.6038 66.8978 64.9953 65.7909C64.9953 65.7909 65.0818 67.6414 67.088 68.6792C67.3647 68.8175 67.6933 68.9559 68.0565 69.0597C68.6965 69.2499 69.4921 69.371 70.426 69.371C70.8065 69.371 71.2043 69.3537 71.6366 69.3191C71.6366 69.3191 69.2153 70.0974 67.0188 71.481C65.6871 72.3284 64.4592 73.3834 63.9057 74.6287C63.5425 75.4416 63.4733 76.3236 63.8538 77.2922C63.8538 77.2922 65.7044 73.1759 70.2876 72.83C71.7923 72.7089 73.4353 72.5014 74.646 71.5156C75.1649 71.0832 75.4935 70.4606 76.0123 69.7688C76.168 69.4401 76.3582 69.1288 76.5658 68.8002C77.0846 67.9874 77.7764 67.3301 78.5893 66.8459ZM51.4013 70.4433C51.3321 70.5989 51.2629 70.7546 51.1937 70.8929C51.0381 71.2907 50.917 71.6366 50.8651 71.9652C50.5192 73.8504 51.8683 74.4385 53.0789 74.7325L53.2346 73.0375C53.2519 72.9684 53.5805 72.8127 53.6497 72.7781C53.7534 72.7089 53.8745 72.6398 53.961 72.5533C54.1685 72.363 54.2377 72.1382 54.2723 71.8961C54.2896 71.7577 54.2896 71.6193 54.2896 71.4637C54.3069 71.2043 54.3415 70.9448 54.4798 70.7546C54.549 70.6681 54.6182 70.5989 54.7393 70.547C54.843 70.4952 54.9468 70.4779 55.0506 70.4779C55.1716 70.4779 55.2754 70.5124 55.3792 70.5643C55.604 70.6854 55.7943 70.9102 55.8289 71.187C55.8461 71.2907 55.8289 71.4291 55.8116 71.5675C55.7251 72.069 55.483 72.7608 55.7078 73.3662C55.8462 73.7639 56.3823 74.3001 56.9703 74.3001C57.1606 74.3001 57.3335 74.2482 57.5238 74.1271L58.7344 75.1994C60.3429 73.4353 59.8413 71.7404 58.0945 71.014C57.9562 70.9621 57.8351 70.8929 57.7313 70.8238C57.4027 70.5989 57.2125 70.3049 57.4027 69.9936C57.5411 69.7515 57.6967 69.665 57.9043 69.665C58.2156 69.665 58.6134 69.8552 59.2187 70.0974C59.2533 70.1147 59.2879 70.132 59.3398 70.1492C59.6684 70.2703 59.9797 70.3568 60.2737 70.3568C60.8963 70.3568 61.3979 69.9936 61.6573 68.9905C61.6746 68.904 61.6919 68.8002 61.7092 68.7138L62.1243 68.8867L62.8507 69.1807C62.8334 69.0596 62.8161 68.9213 62.7988 68.8002C62.7296 68.3851 62.5913 68.0392 62.4356 67.7452C61.8995 66.7594 60.9482 66.3616 59.9797 66.3616C58.7344 66.3616 57.4546 66.9842 56.9185 67.7798L54.6355 68.0911C54.1685 67.5031 54.1512 65.7736 54.2204 64.4245C54.2723 63.4387 54.9987 62.6431 55.9672 62.4875C57.6276 62.2454 60.1181 61.8822 61.0001 61.813C62.6777 61.6919 64.4246 61.3979 65.6871 60.1699C67.4166 58.4577 67.7971 56.6763 67.7971 54.2031C67.7971 53.3902 67.7625 52.5773 67.6933 51.7472C67.6415 51.0381 67.555 50.329 67.4858 49.6372C67.4339 49.1702 67.3647 48.7032 67.2956 48.2363C67.2264 47.8039 67.2264 47.3369 67.261 46.8872C67.2783 46.7143 67.2956 46.5586 67.3302 46.3857C67.4166 45.8841 67.555 45.3998 67.7452 44.8983C67.9528 44.3794 68.2468 43.8952 68.5927 43.4282C69.1461 42.7018 69.8725 42.0619 70.7892 41.543C71.1178 41.3528 71.5156 41.1279 71.9307 40.8685C72.3458 40.6091 72.7954 40.3324 73.2624 40.0038C74.4039 39.2428 75.6664 38.2915 76.8425 37.2019C76.756 37.15 76.6695 37.0982 76.5831 37.0463C76.1507 36.7869 74.9573 35.9048 73.8331 34.9709C73.5564 34.746 73.3143 34.5385 73.0894 34.3309L74.1617 33.7602C75.407 34.8152 76.7906 35.8529 77.1538 36.0605C77.3268 36.1642 77.4997 36.268 77.6727 36.3718C78.0013 36.562 78.3299 36.7523 78.6412 36.9252C80.4572 37.9629 81.7543 38.672 81.7197 39.8827C79.4714 42.304 80.6993 43.7395 81.9446 44.1719L82.3597 42.8402C83.6741 42.6153 83.6568 41.6468 83.7087 40.9031C83.7433 40.5053 84.0546 40.2805 84.3659 40.2805C84.6253 40.2805 84.8848 40.4534 84.9021 40.8512C84.9366 41.2836 84.9021 41.7333 85.0231 42.4424C85.1096 42.9266 85.6284 43.5839 86.3721 43.5839C86.4932 43.5839 86.6143 43.5666 86.7353 43.532L87.0121 45.1058C89.5718 44.6216 89.295 42.0792 87.5655 41.2144C86.5797 40.7129 86.2684 40.3497 86.5624 39.9692C86.6489 39.8481 86.7526 39.8135 86.8737 39.8135C87.2369 39.8135 87.7731 40.2113 88.2919 40.5918C88.5167 40.7647 88.8108 40.8512 89.1221 40.8512C89.7966 40.8512 90.523 40.4188 90.8343 39.3984L91.7682 39.9173C91.9239 37.9975 90.7305 37.0463 89.5199 37.0463C88.9491 37.0463 88.3611 37.2538 87.9114 37.6689C87.7385 37.8246 87.5655 37.8937 87.3926 37.8937C86.8391 37.8937 86.4586 37.2019 87.2023 36.8041C87.9114 36.4237 88.5859 35.2476 87.9287 34.5039L89.001 33.5008C88.5167 33.2067 87.9979 33.0684 87.5136 33.0684C86.4413 33.0684 85.4555 33.7602 85.1442 35.3341C85.075 35.6973 84.9193 35.8356 84.7118 35.8356C84.1238 35.8356 83.0861 34.5731 82.3078 33.3278C82.1175 33.0338 81.9446 32.7225 81.7716 32.4285C81.5468 32.0307 81.3047 31.6502 81.0452 31.2697C80.7166 30.7854 80.3707 30.3185 79.9383 29.9034C79.2119 29.177 77.9494 27.9144 76.4966 27.067C76.1507 26.8767 75.7875 26.6865 75.4243 26.5308C74.9919 25.9601 74.5595 25.372 74.179 24.7667C73.1586 23.2101 72.3112 21.5498 71.8269 19.803C72.6225 21.446 73.7294 22.8815 74.9573 24.1614C75.5281 24.7667 76.1161 25.3201 76.7387 25.8736C78.4164 26.7384 79.8173 28.1393 80.6474 28.9521L80.7685 29.0732C81.0106 29.3153 81.2355 29.5575 81.4257 29.8169C81.7024 28.122 81.6333 26.0293 81.0971 24.0403C80.9933 23.6598 80.8723 23.262 80.7339 22.8988C80.2324 21.5671 79.5233 20.3218 78.5374 19.336C78.278 19.0766 78.0013 18.8345 77.7073 18.6096C76.4274 17.6238 74.8017 17.0185 72.7608 17.0185C72.4668 17.0185 72.1728 17.0358 71.8615 17.0531L69.0943 15.7905C70.0801 15.8078 70.8757 15.8424 71.5156 15.8424C74.2828 15.8424 74.058 15.4619 73.6948 13.5248C73.6948 13.5248 71.3599 14.1648 69.5785 14.1648C69.4056 14.1648 69.2326 14.1648 69.077 14.1475C68.2122 14.0783 67.8317 13.6978 67.6933 13.2308C67.5204 12.6082 67.4685 11.6397 67.9528 10.429C68.2641 9.63342 69.0251 8.94161 70.1147 8.94161C70.9448 8.94161 71.948 9.3394 73.0894 10.3771L74.058 11.3456C74.5595 10.7576 74.9573 10.0831 75.2686 9.42588C75.4762 8.52653 74.5077 7.95579 74.5077 7.95579C75.4935 8.07686 75.9777 7.05644 76.1334 6.58947C75.0784 6.01873 73.5737 5.15397 71.9826 4.72159L71.5156 3.13043C70.9103 2.81912 64.9953 1.4528 63.4387 1.4528C63.3523 1.4528 63.3004 1.4528 63.2312 1.4701C63.1101 1.48739 62.9891 1.53928 62.9026 1.60846C63.2312 1.97166 63.5252 2.38674 63.7846 2.83642L62.7296 3.18232C62.1416 2.23109 61.3287 1.43551 60.6023 1.19337C59.6511 2.02354 58.5096 4.49675 61.0174 7.09103V8.59571L60.585 8.18063C59.9797 7.60989 59.5473 7.05644 59.2187 6.52029C54.428 16.8974 62.2973 25.4066 62.2454 29.0732C62.2454 29.0732 63.8884 29.0213 65.0126 28.5716C65.0126 28.5716 65.5142 32.1517 64.4073 35.0919C63.1274 38.5164 61.1039 41.5603 59.4781 44.8118C58.9247 45.9187 58.4404 47.0429 58.0426 48.2017C58.0253 48.2363 58.0253 48.2708 58.0081 48.3054C57.6794 49.0145 57.126 49.6372 56.5034 49.9831C56.4861 50.0004 56.4515 50.0004 56.4342 50.0177C55.6213 50.4327 54.6701 50.3809 53.8745 49.8966C53.0962 49.4296 52.6811 48.634 52.6984 47.752C52.7503 45.7803 53.9091 44.3275 55.1543 42.7883C55.8116 41.9581 56.5034 41.1106 57.0395 40.1421C58.7172 37.1155 59.1322 33.691 58.2329 30.232C57.8178 28.6408 56.8839 27.2399 55.9845 25.8736C55.777 25.5623 55.5867 25.2683 55.3792 24.9569C55.2927 24.8359 55.2235 24.7148 55.1543 24.5938C55.5867 24.196 55.6732 23.7117 55.5348 23.0718C55.4138 22.4837 55.1025 21.7746 54.722 20.8926C54.2896 19.9241 53.788 18.8172 53.5459 17.6584C53.1481 15.7905 53.1481 14.2858 53.3902 12.7984C53.027 13.3865 52.7157 14.0091 52.4563 14.649C52.1623 15.3754 51.9547 16.1364 51.851 16.932C51.7472 17.7276 51.7472 18.5404 51.8683 19.3533C51.5915 18.5923 51.4186 17.7622 51.3667 16.932C51.3148 16.0845 51.3667 15.2371 51.5224 14.4069C51.6607 13.6459 51.8683 12.8849 52.145 12.1585C50.9516 13.9053 50.3463 16.0326 50.3117 18.5923C50.2771 21.8092 51.384 24.5073 52.439 25.1472C52.5774 25.2337 52.6984 25.2856 52.8195 25.3201C53.2692 25.4239 53.961 25.1126 53.961 25.1126C54.2723 25.6315 54.5836 26.0984 54.9122 26.6C55.7943 27.9317 56.6244 29.1943 56.9876 30.5606C57.8005 33.7256 57.4546 36.735 55.9153 39.5022C55.4311 40.367 54.7911 41.1798 54.1512 41.9581C52.8368 43.6012 51.4705 45.2961 51.4186 47.7001C51.384 49.0491 52.0585 50.2771 53.2173 50.9862C53.8399 51.3667 54.5663 51.5742 55.2927 51.5742C55.6213 51.5742 55.9672 51.5223 56.2958 51.4532C56.5898 51.3667 56.8839 51.2629 57.1606 51.1073C57.2471 51.0554 57.3335 51.0035 57.42 50.9516C57.3681 51.3667 57.3508 51.7991 57.3681 52.2142C57.3681 52.3179 57.3854 52.439 57.3854 52.5428C57.4373 53.2519 57.5411 53.9783 57.593 54.6874C57.6794 55.604 57.8351 55.7078 57.5584 56.6071C57.2298 57.6448 55.8289 58.2675 54.3761 58.5961C53.4594 58.8036 52.2142 58.9939 51.2456 59.1149C50.3809 59.236 49.741 59.9451 49.6891 60.8098C49.568 62.9372 49.395 66.7075 49.5507 67.7625C49.6545 68.9386 50.3463 69.9244 51.4013 70.4433ZM71.2216 4.98102C71.2216 5.96684 70.8584 7.00455 69.2672 6.93537C69.2672 6.93537 68.8521 6.20898 67.6588 5.01561C67.6415 5.01561 69.6304 5.4134 71.2216 4.98102ZM67.7106 19.8203C68.1084 20.5986 68.5235 21.3596 68.9732 22.0859C69.4402 22.8123 69.9417 23.4869 70.4952 24.1441C70.9794 24.7321 71.4983 25.3374 71.9999 25.9255C71.4291 25.9601 70.8584 26.0811 70.253 26.2887C69.9763 25.8217 69.6996 25.3547 69.4229 24.8878C68.9732 24.1268 68.5581 23.3139 68.1949 22.4837C67.849 21.6536 67.555 20.8234 67.2956 19.9759C67.0188 19.1458 66.7767 18.2983 66.5346 17.4508C66.9324 18.2464 67.3129 19.042 67.7106 19.8203ZM65.0472 25.4758C64.4764 24.317 63.9403 23.141 63.4906 21.9303C63.0236 20.7196 62.6432 19.4744 62.3318 18.2291C62.0378 16.9666 61.8303 15.704 61.7092 14.4242C61.9859 15.6694 62.3318 16.8974 62.7642 18.0908C63.1966 19.2841 63.7155 20.4429 64.2862 21.5671C65.3585 23.6252 66.6383 25.5796 67.9701 27.4993C67.3993 27.8279 66.8805 28.0528 66.4481 28.1911C65.9638 27.2918 65.4969 26.3924 65.0472 25.4758ZM97.7524 5.11938H98.9457C99.2571 6.1225 99.7586 6.96996 100.381 7.59259H102.803C102.197 7.24669 101.644 6.67595 101.211 5.91496C100.554 4.79077 100.174 3.35527 100.156 1.86789H96.732C96.7147 3.35527 96.3342 4.79077 95.6769 5.91496C95.2273 6.67595 94.6911 7.24669 94.0858 7.59259H96.3515C96.9395 6.96996 97.4411 6.1225 97.7524 5.11938ZM90.7651 7.59259H91.0245C90.4192 7.24669 89.8658 6.67595 89.4334 5.91496C88.7762 4.79077 88.3957 3.35527 88.3784 1.86789H85.6976C85.6803 2.02354 85.6803 2.1792 85.6803 2.35215C85.6457 5.18856 87.9979 7.59259 90.7651 7.59259ZM109.686 5.11938H110.879C111.191 6.1225 111.692 6.96996 112.315 7.59259H114.892C114.287 7.24669 113.75 6.67595 113.301 5.91496C112.644 4.79077 112.263 3.35527 112.246 1.86789H108.51C108.493 3.35527 108.112 4.79077 107.455 5.91496C107.005 6.67595 106.469 7.24669 105.864 7.59259H108.285C108.873 6.96996 109.375 6.1225 109.686 5.11938ZM66.3616 70.6162C66.6902 70.4087 67.0361 70.2011 67.4166 69.9936C67.3302 69.959 67.261 69.9244 67.1745 69.9071C67.0015 69.8379 66.8459 69.7688 66.6902 69.6996C65.5487 69.2499 64.6494 68.9905 63.9057 68.8694C63.9057 68.9386 63.923 68.9905 63.923 69.0597L64.1132 70.8584L62.4356 70.1665L62.3664 70.1492C62.2454 70.3741 62.107 70.5643 61.9513 70.7373C61.519 71.187 60.9482 71.4291 60.3083 71.4291C60.5158 71.7404 60.6542 72.0863 60.7407 72.4495C61.0001 73.591 60.5677 74.8362 59.5646 75.9431L58.8382 76.7387L58.0426 76.0296L57.2989 75.3724C57.1952 75.3897 57.0914 75.3897 56.9876 75.3897C55.9326 75.3897 54.9987 74.5595 54.7047 73.7466C54.6701 73.6429 54.6355 73.5391 54.6182 73.4353C54.5144 73.5218 54.3934 73.6083 54.2896 73.6775L54.1685 74.8535L54.0475 76.1161L52.8195 75.8048C51.9029 75.5799 50.6057 75.113 50.0177 73.8677C49.741 73.2797 49.6718 72.6225 49.7928 71.8788C47.1121 71.5675 45.0021 70.8584 45.0021 70.8584C46.5413 75.4762 50.917 78.0704 55.1543 78.0704C57.6276 78.0704 60.0489 77.1884 61.813 75.2859C62.2454 74.8362 62.6259 74.4039 63.0064 74.0234C63.5944 72.8127 64.7186 71.6712 66.3616 70.6162ZM121.81 5.11938H123.003C123.315 6.1225 123.816 6.96996 124.439 7.59259H126.808C126.203 7.24669 125.649 6.67595 125.217 5.91496C124.56 4.79077 124.179 3.35527 124.162 1.86789H120.617C120.599 3.35527 120.219 4.79077 119.562 5.91496C119.112 6.67595 118.576 7.22939 117.97 7.59259H120.392C120.997 6.96996 121.499 6.1225 121.81 5.11938ZM80.0767 19.4398C80.682 20.2354 81.1836 21.1347 81.5641 22.0687L83.5184 20.2008C83.3109 19.6646 83.2417 19.042 83.3109 18.4021C83.3109 18.3675 83.3282 18.3329 83.3282 18.281L84.3659 18.7826C84.3313 19.5609 84.6253 20.3737 85.3344 20.7542C85.5593 20.8753 85.7495 20.9272 86.0089 20.9272C86.0089 20.9272 86.0089 20.9272 86.0262 20.9272L85.9917 19.9759C86.3376 19.9759 86.8045 19.6127 86.8045 19.1112C86.8045 18.5404 86.4413 18.2291 85.9917 18.0908V16.9839C86.8564 17.1395 87.4963 17.6584 87.7558 18.3675L88.8972 18.3848C88.9491 17.52 88.534 16.7417 87.652 16.4477V15.3235C88.3957 15.4792 88.8799 15.8424 89.174 16.171C89.2604 16.2575 89.3296 16.3612 89.4161 16.465L90.2809 16.4823C90.3154 15.6521 89.9004 14.9085 89.1221 14.649V13.5248C89.6063 13.6286 90.0214 13.8189 90.3846 14.1302H91.1975C91.1802 13.594 90.8689 13.0752 90.4365 12.7466C90.0733 12.4871 89.6063 12.3315 89.1394 12.2623C88.9664 12.245 88.7762 12.2277 88.6032 12.2277C88.413 12.2277 88.24 12.245 88.0498 12.2796C87.5828 12.3488 87.1158 12.539 86.718 12.7984C86.0262 13.2654 85.369 13.8016 84.7291 14.3377C83.6914 15.2025 82.6883 16.1191 81.5987 16.932C81.2528 17.1914 80.1978 17.987 79.3676 18.6269C79.627 18.9036 79.8519 19.1631 80.0767 19.4398ZM80.682 11.2765C80.8377 10.4463 80.4226 9.84096 79.6097 9.65072C79.5751 9.65072 79.5405 9.63342 79.506 9.63342C79.6962 10.3425 79.6097 11.1208 79.1428 11.8818C78.7969 12.4179 78.2607 12.833 77.5862 13.0752C77.811 13.1098 78.0359 13.1098 78.2434 13.1098C79.6789 13.1098 80.4572 12.5217 80.682 11.2765Z",fill:"white"}),K.jsx("path",{d:"M66.5691 89.1393C65.2201 89.1393 64.217 89.6582 63.5598 90.6959C62.9544 89.6582 62.0205 89.1393 60.7753 89.1393C59.53 89.1393 58.5961 89.6236 57.9734 90.5748V89.3988H55.8461V99.2051H57.9734V93.7053C57.9734 92.8578 58.181 92.2179 58.5788 91.7682C58.9766 91.3358 59.5127 91.111 60.1526 91.111C60.7407 91.111 61.1903 91.3012 61.5189 91.6644C61.8476 92.0449 62.0032 92.5638 62.0032 93.2383V99.1878H64.1305V93.688C64.1305 92.8232 64.3208 92.1833 64.7013 91.7509C65.0818 91.3185 65.6006 91.111 66.2578 91.111C66.8459 91.111 67.3128 91.3012 67.6587 91.6644C68.0046 92.0449 68.1776 92.5638 68.1776 93.2383V99.1878H70.3049V93.0999C70.3049 91.8893 69.959 90.9207 69.2845 90.1943C68.5754 89.5025 67.676 89.1393 66.5691 89.1393Z",fill:"#CC0000"}),K.jsx("path",{d:"M180.06 89.1393C178.676 89.1393 177.656 89.6409 177.016 90.644V85.4555H174.889V99.1878H177.016V93.9301C177.016 92.9789 177.241 92.2698 177.708 91.8028C178.158 91.3358 178.763 91.111 179.507 91.111C180.181 91.111 180.717 91.3012 181.115 91.699C181.513 92.0968 181.703 92.6502 181.703 93.3939V99.2051H183.83V93.1864C183.83 91.9238 183.484 90.938 182.793 90.2289C182.084 89.5025 181.184 89.1393 180.06 89.1393Z",fill:"#CC0000"}),K.jsx("path",{d:"M36.1988 94.1203H40.7993C40.5918 95.0716 40.1075 95.8326 39.3292 96.4033C38.5683 96.9741 37.5651 97.2508 36.3545 97.2508C34.8325 97.2508 33.6045 96.7838 32.6706 95.8499C31.7367 94.9159 31.2697 93.7572 31.2697 92.3389C31.2697 90.9207 31.7367 89.7447 32.6706 88.8107C33.6045 87.8768 34.7806 87.3925 36.2161 87.3925C37.0982 87.3925 37.911 87.6001 38.6374 87.9979C39.3638 88.3956 39.9 88.9318 40.2632 89.5717L41.8198 87.8941C41.2663 87.1677 40.5745 86.5451 39.727 86.0781C38.672 85.4901 37.496 85.196 36.2161 85.196C34.1753 85.196 32.4631 85.8878 31.0794 87.2715C29.6958 88.6551 29.004 90.3327 29.004 92.3216C29.004 94.3279 29.6958 96.0055 31.0794 97.3891C32.4631 98.7555 34.2099 99.4473 36.3372 99.4473C38.3434 99.4473 39.9692 98.8419 41.1971 97.6486C42.4424 96.4552 43.065 94.9159 43.065 93.0307V92.1141H36.1988V94.1203Z",fill:"#CC0000"}),K.jsx("path",{d:"M191.233 91.4396V89.3988H188.794V86.6488H186.667V89.3988H184.868V91.4396H186.667V96.1439C186.667 97.4237 187.013 98.3058 187.722 98.79C188.431 99.2743 189.59 99.4127 191.215 99.2051V97.3027C190.679 97.3373 190.23 97.3372 189.866 97.32C189.503 97.3027 189.226 97.1989 189.054 97.0259C188.863 96.853 188.777 96.559 188.777 96.1439V91.4396C188.777 91.4396 191.233 91.4396 191.233 91.4396Z",fill:"#CC0000"}),K.jsx("path",{d:"M49.4642 89.1393C47.9422 89.1393 46.697 89.6409 45.7285 90.6267C44.7772 91.6126 44.293 92.8405 44.293 94.3106C44.293 95.798 44.7772 97.0432 45.7631 98.0118C46.7489 98.9803 48.0287 99.4819 49.6372 99.4819C51.3321 99.4819 52.6638 98.8938 53.6151 97.7523L52.1796 96.3168C51.6088 97.1297 50.7787 97.5275 49.6545 97.5275C48.8416 97.5275 48.1498 97.32 47.5963 96.9222C47.0256 96.5244 46.6797 95.9536 46.524 95.21H54.3415C54.3933 94.8468 54.4279 94.5527 54.4279 94.3279C54.4279 92.8924 53.961 91.6644 53.0443 90.6613C52.0931 89.6409 50.8997 89.1393 49.4642 89.1393ZM46.4895 93.4804C46.6278 92.7367 46.9737 92.1487 47.4926 91.7163C48.0114 91.2839 48.6686 91.0764 49.4469 91.0764C50.1387 91.0764 50.7441 91.2839 51.2629 91.6817C51.7818 92.0795 52.1104 92.6849 52.2487 93.4804H46.4895Z",fill:"#CC0000"}),K.jsx("path",{d:"M76.9117 89.1393C75.3897 89.1393 74.1445 89.6409 73.1759 90.6267C72.2074 91.6126 71.7231 92.8405 71.7231 94.3106C71.7231 95.798 72.2074 97.0432 73.1932 98.0118C74.1791 98.9803 75.4589 99.4819 77.0674 99.4819C78.7623 99.4819 80.094 98.8938 81.0452 97.7523L79.6097 96.3168C79.039 97.1297 78.2088 97.5275 77.0846 97.5275C76.2718 97.5275 75.58 97.32 75.0265 96.9222C74.4558 96.5244 74.1099 95.9536 73.9542 95.21H81.7716C81.8235 94.8468 81.8581 94.5527 81.8581 94.3279C81.8581 92.8924 81.3911 91.6644 80.4745 90.6613C79.5233 89.6409 78.3472 89.1393 76.9117 89.1393ZM73.9196 93.4804C74.058 92.7367 74.4039 92.1487 74.9227 91.7163C75.4416 91.2839 76.0988 91.0764 76.8771 91.0764C77.5689 91.0764 78.1742 91.2839 78.6931 91.6817C79.212 92.0795 79.5406 92.6849 79.6789 93.4804H73.9196Z",fill:"#CC0000"}),K.jsx("path",{d:"M87.9806 89.1393C86.4586 89.1393 85.2133 89.6409 84.2448 90.6267C83.2763 91.6126 82.792 92.8405 82.792 94.3106C82.792 95.798 83.2763 97.0432 84.2621 98.0118C85.2479 98.9803 86.5278 99.4819 88.1362 99.4819C89.8311 99.4819 91.1629 98.8938 92.1141 97.7523L90.6786 96.3168C90.1079 97.1297 89.2777 97.5275 88.1535 97.5275C87.3406 97.5275 86.6488 97.32 86.0954 96.9222C85.5246 96.5244 85.1787 95.9536 85.0231 95.21H92.8405C92.8924 94.8468 92.927 94.5527 92.927 94.3279C92.927 92.8924 92.46 91.6644 91.5434 90.6613C90.6094 89.6409 89.4333 89.1393 87.9806 89.1393ZM85.0058 93.4804C85.1441 92.7367 85.49 92.1487 86.0089 91.7163C86.5278 91.2839 87.185 91.0764 87.9633 91.0764C88.6551 91.0764 89.2604 91.2839 89.7793 91.6817C90.2981 92.0795 90.6267 92.6849 90.7651 93.4804H85.0058Z",fill:"#CC0000"}),K.jsx("path",{d:"M116.777 89.1393C115.255 89.1393 114.01 89.6409 113.041 90.6267C112.073 91.6126 111.589 92.8405 111.589 94.3106C111.589 95.798 112.073 97.0432 113.059 98.0118C114.044 98.9803 115.324 99.4819 116.933 99.4819C118.628 99.4819 119.959 98.8938 120.911 97.7523L119.475 96.3168C118.904 97.1297 118.074 97.5275 116.95 97.5275C116.137 97.5275 115.445 97.32 114.892 96.9222C114.321 96.5244 113.975 95.9536 113.82 95.21H121.637C121.689 94.8468 121.723 94.5527 121.723 94.3279C121.723 92.8924 121.257 91.6644 120.34 90.6613C119.406 89.6409 118.213 89.1393 116.777 89.1393ZM113.802 93.4804C113.941 92.7367 114.287 92.1487 114.805 91.7163C115.324 91.2839 115.981 91.0764 116.76 91.0764C117.452 91.0764 118.057 91.2839 118.576 91.6817C119.095 92.0795 119.423 92.6849 119.562 93.4804H113.802Z",fill:"#CC0000"}),K.jsx("path",{d:"M158.199 89.1393C156.677 89.1393 155.432 89.6409 154.463 90.6267C153.495 91.6126 153.01 92.8405 153.01 94.3106C153.01 95.798 153.495 97.0432 154.481 98.0118C155.466 98.9803 156.746 99.4819 158.355 99.4819C160.05 99.4819 161.381 98.8938 162.333 97.7523L160.897 96.3168C160.326 97.1297 159.496 97.5275 158.372 97.5275C157.559 97.5275 156.867 97.32 156.314 96.9222C155.743 96.5244 155.397 95.9536 155.242 95.21H163.059C163.111 94.8468 163.145 94.5527 163.145 94.3279C163.145 92.8924 162.678 91.6644 161.762 90.6613C160.828 89.6409 159.652 89.1393 158.199 89.1393ZM155.224 93.4804C155.363 92.7367 155.708 92.1487 156.227 91.7163C156.746 91.2839 157.403 91.0764 158.182 91.0764C158.873 91.0764 159.479 91.2839 159.998 91.6817C160.517 92.0795 160.845 92.6849 160.984 93.4804H155.224Z",fill:"#CC0000"}),K.jsx("path",{d:"M108.337 86.6488H106.21V89.3988H104.411V91.4396H106.21V96.1439C106.21 97.4237 106.556 98.3058 107.265 98.79C107.974 99.2743 109.133 99.4127 110.758 99.2051V97.3027C110.222 97.3373 109.772 97.3372 109.409 97.32C109.046 97.3027 108.769 97.1989 108.596 97.0259C108.406 96.853 108.32 96.559 108.32 96.1439V91.4396H110.758V89.3988H108.32L108.337 86.6488C108.337 86.6488 108.32 86.6488 108.337 86.6488Z",fill:"#CC0000"}),K.jsx("path",{d:"M135.819 94.5181C135.819 95.3483 135.577 96.0228 135.075 96.5244C134.591 97.0259 133.847 97.2681 132.862 97.2681C131.876 97.2681 131.149 97.0259 130.648 96.5244C130.164 96.0228 129.904 95.3656 129.904 94.5181V85.4728H127.638V94.6565C127.638 96.1266 128.123 97.2854 129.091 98.1674C130.06 99.0322 131.305 99.4646 132.844 99.4646C134.384 99.4646 135.629 99.0322 136.597 98.1674C137.566 97.3027 138.05 96.1266 138.05 94.6565V85.4728H135.785V94.5181H135.819Z",fill:"#CC0000"}),K.jsx("path",{d:"M143.36 86.6488H141.232V89.3988H139.434V91.4396H141.232V96.1439C141.232 97.4237 141.578 98.3058 142.287 98.79C142.996 99.2743 144.155 99.4127 145.781 99.2051V97.3027C145.245 97.3373 144.795 97.3372 144.432 97.32C144.069 97.3027 143.792 97.1989 143.619 97.0259C143.429 96.853 143.342 96.559 143.342 96.1439V91.4396H145.781V89.3988H143.342V86.6488H143.36Z",fill:"#CC0000"}),K.jsx("path",{d:"M99.6029 89.1393C98.2193 89.1393 97.1989 89.6409 96.559 90.644V89.3815H94.4316V99.1878H96.559V93.9301C96.559 92.9789 96.7838 92.2698 97.2508 91.8028C97.7004 91.3358 98.3058 91.111 99.0495 91.111C99.724 91.111 100.26 91.3012 100.658 91.699C101.056 92.0968 101.246 92.6503 101.246 93.394V99.2051H103.373V93.1864C103.373 91.9239 103.027 90.938 102.336 90.2289C101.626 89.5025 100.727 89.1393 99.6029 89.1393Z",fill:"#CC0000"}),K.jsx("path",{d:"M149.655 91.0418V89.3987H147.528V99.2051H149.655V94.2587C149.655 93.2556 149.949 92.5292 150.555 92.0968C151.16 91.6644 151.869 91.4742 152.682 91.5261V89.2258C151.195 89.2258 150.191 89.8311 149.655 91.0418Z",fill:"#CC0000"}),K.jsx("path",{d:"M172.122 95.798C171.672 96.7319 170.807 97.3546 169.752 97.5102C169.735 97.5102 169.718 97.5102 169.7 97.5102C169.562 97.5275 169.406 97.5448 169.251 97.5448C167.521 97.5448 166.189 96.2131 166.189 94.3106C166.189 92.4081 167.521 91.0764 169.251 91.0764C169.406 91.0764 169.545 91.0937 169.683 91.111C169.7 91.111 169.718 91.111 169.735 91.111C170.79 91.2494 171.637 91.872 172.104 92.7713L173.522 91.3531C172.589 90.0041 171.032 89.1566 169.251 89.1566C166.38 89.1566 164.097 91.405 164.097 94.3279C164.097 97.2335 166.38 99.4819 169.251 99.4819C171.049 99.4819 172.606 98.5998 173.54 97.2508L172.122 95.798Z",fill:"#CC0000"}),K.jsx("path",{d:"M110.274 13.0405C111.974 13.0405 113.353 12.3514 113.353 11.5013C113.353 10.6512 111.974 9.96201 110.274 9.96201C108.574 9.96201 107.196 10.6512 107.196 11.5013C107.196 12.3514 108.574 13.0405 110.274 13.0405Z",fill:"#CC0000"}),K.jsx("path",{d:"M101.471 11.5013L98.0118 9.75447L94.5355 11.5013L98.0118 13.2308L101.471 11.5013Z",fill:"#CC0000"}),K.jsx("path",{d:"M126.013 11.5013L122.536 9.75447L119.077 11.5013L122.536 13.2308L126.013 11.5013Z",fill:"#CC0000"}),K.jsx("path",{d:"M175.183 69.8206C175.148 69.8379 173.125 70.4951 170.565 70.7892C171.395 70.0801 171.949 69.0769 172.122 67.9355C172.243 67.0707 172.208 64.6494 171.983 60.7753C171.914 59.3916 170.859 58.2502 169.493 58.0772C168.213 57.9043 167.158 57.7313 166.449 57.5756C164.979 57.247 164.183 56.7109 164.079 56.3304C163.941 55.9153 163.958 55.8634 164.01 55.4829C164.028 55.31 164.062 55.1024 164.097 54.8257C164.131 54.5144 164.149 54.2204 164.2 53.8918C164.252 53.494 164.287 53.0789 164.322 52.6638C164.322 52.6465 164.322 52.6119 164.322 52.5946C164.65 52.6638 164.996 52.6984 165.325 52.6984C166.241 52.6984 167.158 52.4563 167.954 51.9547C169.441 51.0381 170.306 49.4642 170.271 47.7174C170.202 44.9502 168.663 43.0131 167.296 41.3182C166.674 40.5399 166.068 39.7962 165.636 39.0179C164.235 36.4928 163.906 33.7602 164.667 30.8719C164.979 29.6785 165.757 28.4852 166.587 27.2399C166.76 26.9805 166.933 26.7038 167.106 26.4443C167.227 26.4616 167.348 26.4789 167.469 26.4789C167.988 26.4789 168.42 26.306 168.732 26.1157C170.721 24.8878 171.413 20.8753 171.378 18.6269C171.326 13.9226 169.475 10.5328 165.757 8.26709L164.477 7.48881L164.961 8.90702C166.086 12.1758 166.691 14.1993 165.982 17.4854C165.757 18.5404 165.307 19.5436 164.875 20.5121C164.2 22.0341 163.543 23.5041 164.114 24.6975C163.976 24.9051 163.837 25.1299 163.699 25.3374C162.748 26.7729 161.762 28.2603 161.312 30.0244C160.344 33.7602 160.793 37.4614 162.609 40.7301C163.18 41.7679 163.906 42.6672 164.598 43.532C165.757 44.9848 166.777 46.23 166.812 47.8385C166.829 48.513 166.397 48.8762 166.155 49.0318C165.671 49.3258 165.1 49.3431 164.598 49.0837C164.2 48.8762 163.82 48.4611 163.578 47.9768C163.197 46.8526 162.713 45.6766 162.056 44.3794C161.468 43.2034 160.828 42.0446 160.205 40.9204C159.064 38.845 157.974 36.8906 157.179 34.7633C156.573 33.1203 156.504 31.2351 156.539 30.0244C157.403 30.1801 158.164 30.2147 158.303 30.2147L159.427 30.2493L159.41 29.1251C159.392 28.2776 160.067 26.8075 160.828 25.0953C162.921 20.4602 166.086 13.4729 162.021 5.46528C161.987 5.41339 161.969 5.34421 161.935 5.29232C162.108 4.73888 162.16 4.23732 162.142 3.82223C162.125 2.28296 161.364 1.0723 160.672 0.449675L160.188 0.0172952L159.583 0.224837C159.185 0.363199 158.804 0.605331 158.424 0.899349C158.164 0.657217 157.836 0.484265 157.455 0.432379C157.352 0.415084 157.248 0.415084 157.109 0.415084C155.432 0.415084 149.327 1.7987 148.531 2.21378L148.116 2.42132L147.978 2.871L147.684 3.89142C146.335 4.34109 145.107 5.0156 144.19 5.51716C144.069 5.58634 143.948 5.65552 143.827 5.70741L143.135 6.0879L143.291 6.86619C143.308 6.98725 143.913 10.0312 145.677 12.0893L145.764 12.1758C145.331 12.2104 144.951 12.245 144.605 12.245C143.55 12.245 142.72 11.9337 142.322 11.311C141.699 10.3425 142.149 9.30481 142.876 8.76865C142.478 8.5957 142.097 8.49193 141.63 8.49193C141.354 8.49193 141.042 8.52652 140.696 8.613C139.313 8.92431 138.534 10.0831 138.794 11.484C139.088 13.1616 140.264 14.1993 142.305 14.1993C142.72 14.1993 143.152 14.1647 143.636 14.0783C144.328 13.9572 145.037 13.7497 145.746 13.5248C145.746 13.5594 145.729 13.5767 145.729 13.6113C145.556 14.5798 145.401 15.41 145.937 16.0845C144.449 16.3612 143.1 16.9839 141.959 17.9178C141.025 17.2087 139.762 16.2575 139.572 16.1018C138.828 15.5484 138.137 14.943 137.393 14.3204C137.099 14.061 136.788 13.8016 136.476 13.5421C135.836 13.006 135.145 12.4525 134.401 11.9337C133.847 11.5532 133.208 11.311 132.516 11.2246V8.16332C134.712 7.19479 136.251 4.96372 136.251 2.42132C136.251 1.85058 136.182 1.31443 136.027 0.795578H131.374C131.409 1.10689 131.426 1.4182 131.426 1.74681C131.426 4.51404 130.042 6.95266 128.33 6.95266C126.618 6.95266 125.234 4.51404 125.234 1.74681C125.234 1.4182 125.252 1.10689 125.286 0.795578H119.458C119.492 1.10689 119.51 1.4182 119.51 1.74681C119.51 4.51404 118.126 6.95266 116.414 6.95266C114.702 6.95266 113.318 4.51404 113.318 1.74681C113.318 1.4182 113.335 1.10689 113.37 0.795578H107.351C107.386 1.10689 107.403 1.4182 107.403 1.74681C107.403 4.51404 106.019 6.95266 104.307 6.95266C102.595 6.95266 101.211 4.51404 101.211 1.74681C101.211 1.4182 101.229 1.10689 101.263 0.795578H95.5732C95.6078 1.10689 95.6251 1.4182 95.6251 1.74681C95.6251 4.51404 94.2415 6.95266 92.5292 6.95266C90.817 6.95266 89.4334 4.51404 89.4334 1.74681C89.4334 1.4182 89.4507 1.10689 89.4853 0.795578H84.7637C84.6253 1.29714 84.5562 1.81599 84.5562 2.35214C84.5562 4.80806 85.9917 7.00455 88.0498 8.04226V11.2246C87.358 11.311 86.6835 11.5532 86.1127 11.951C85.369 12.4525 84.6772 13.0233 84.0373 13.5594C83.726 13.8188 83.432 14.0783 83.1207 14.3377C82.377 14.9603 81.6852 15.5657 80.9415 16.1191C80.7512 16.2575 79.4887 17.2087 78.5547 17.9351C77.4132 17.0012 76.0815 16.3785 74.5768 16.1018C75.113 15.41 74.9573 14.5798 74.7844 13.6286C74.7844 13.6113 74.7671 13.5767 74.7671 13.5421C75.4762 13.7843 76.1853 13.9745 76.8771 14.0956C77.3614 14.182 77.7937 14.2166 78.2088 14.2166C80.2497 14.2166 81.4257 13.1789 81.7197 11.5013C81.9792 10.1004 81.2009 8.94161 79.8173 8.63029C79.4714 8.56111 79.1601 8.50923 78.8833 8.50923C78.4164 8.50923 78.0359 8.613 77.6381 8.78595C78.3645 9.3221 78.8142 10.3598 78.1915 11.3283C77.7937 11.9683 76.9463 12.2623 75.9086 12.2623C75.5454 12.2623 75.1649 12.2277 74.7844 12.1585L74.8709 12.072C76.635 10.0139 77.2403 6.98725 77.2576 6.84889L77.4132 6.07061L76.7214 5.69011C76.6004 5.62093 76.4793 5.56905 76.3582 5.49987C75.4243 4.99831 74.2136 4.32379 72.8646 3.87412L72.5706 2.8537L72.4322 2.40403L72.0171 2.19649C71.2216 1.7814 65.1164 0.397789 63.4387 0.397789C63.3177 0.397789 63.1966 0.397789 63.0928 0.415084C62.7123 0.46697 62.3837 0.639922 62.1243 0.882054C61.7438 0.570741 61.346 0.345904 60.9655 0.207542L60.3602 0L59.8586 0.397789C59.1668 1.02042 58.4058 2.23108 58.3885 3.77035C58.3885 4.18543 58.4404 4.68699 58.5961 5.24044C58.5615 5.30962 58.5269 5.36151 58.5096 5.41339C54.4452 13.4211 57.6103 20.4083 59.703 25.0434C60.464 26.7383 61.1385 28.2084 61.1212 29.0732L61.1039 30.1974L62.2281 30.1628C62.3491 30.1628 63.1101 30.1282 63.9922 29.9725C64.0268 31.1832 63.9749 33.0857 63.3523 34.7114C62.5567 36.8387 61.4671 38.7931 60.3256 40.8685C59.703 41.9927 59.0631 43.1515 58.475 44.3275C57.8351 45.6247 57.3335 46.8008 56.953 47.9249C56.7109 48.4092 56.3477 48.8243 55.9326 49.0318C55.4311 49.2913 54.8603 49.274 54.3761 48.9799C54.1166 48.8243 53.7016 48.4611 53.7188 47.7866C53.7534 46.1954 54.7566 44.9329 55.9326 43.4801C56.6244 42.6153 57.3335 41.7333 57.9216 40.6783C59.7376 37.4095 60.1872 33.7083 59.2187 29.9725C58.769 28.2084 57.7832 26.7211 56.832 25.2856C56.6936 25.078 56.5553 24.8532 56.4169 24.6456C56.9876 23.4523 56.3477 21.9822 55.6559 20.4602C55.2235 19.4917 54.7739 18.4885 54.549 17.4335C53.8399 14.1302 54.4452 12.1239 55.5694 8.85513L56.0537 7.43693L54.7739 8.21521C51.0554 10.4809 49.2048 13.8707 49.1529 18.575C49.1183 20.8234 49.8274 24.8532 51.7991 26.0638C52.1104 26.2541 52.5255 26.427 53.0616 26.427C53.1827 26.427 53.2865 26.4097 53.4248 26.3924C53.5978 26.6519 53.7707 26.9286 53.9437 27.188C54.7739 28.4333 55.5521 29.6266 55.8634 30.82C56.6071 33.7083 56.2785 36.4582 54.8949 38.966C54.4625 39.7443 53.8745 40.488 53.2346 41.2663C51.8683 42.9612 50.329 44.881 50.2598 47.6655C50.2252 49.395 51.09 50.9862 52.5774 51.9028C53.3729 52.4044 54.2896 52.6465 55.2062 52.6465C55.5521 52.6465 55.8807 52.6119 56.2094 52.5427C56.2094 52.56 56.2094 52.5946 56.2094 52.6119C56.2439 53.027 56.2785 53.4421 56.3304 53.8399C56.365 54.1685 56.3996 54.4625 56.4342 54.7738C56.4515 55.0506 56.4861 55.2581 56.5207 55.4311C56.5726 55.7943 56.5898 55.8634 56.4515 56.2785C56.3304 56.659 55.5521 57.1952 54.082 57.5238C53.3729 57.6794 52.3179 57.8524 51.0381 58.0253C49.6718 58.2156 48.6168 59.3571 48.5476 60.7234C48.34 64.5975 48.2882 67.0188 48.4092 67.8836C48.5822 69.0251 49.1356 70.0282 49.9658 70.7373C47.4061 70.4433 45.3653 69.7687 45.348 69.7687L43.2899 69.0769L43.9817 71.1351C44.7945 73.5564 46.3338 75.5972 48.4611 77.0327C50.4328 78.3645 52.8022 79.0909 55.1543 79.0909C58.0253 79.0909 60.6369 78.0186 62.5221 76.0642C62.5394 76.6003 62.6432 77.1192 62.8507 77.6554L63.8019 80.0248L64.8569 77.7072C64.9261 77.5689 66.5346 74.179 70.3741 73.885C72.0171 73.7639 73.885 73.5218 75.3378 72.3111C75.3378 72.3111 75.3378 72.3111 75.3551 72.3111C75.3551 72.7089 75.3897 73.0894 75.4935 73.4699C76.0123 75.6145 77.8629 76.7041 77.9321 76.7387L79.6443 77.7245L79.5406 75.7529C79.506 74.9054 79.4541 73.9369 79.6962 73.1413C80.1286 71.7058 81.6333 71.1697 82.4807 70.9621C82.6883 70.9102 82.8958 70.8583 83.0861 70.8238C84.487 70.5124 85.6285 70.253 86.8045 69.5612C86.303 70.547 86.0954 71.5502 86.1992 72.5706C86.4413 75.113 88.5167 76.7041 88.6032 76.7733L90.9727 78.5547L90.3154 75.6664C90.0733 74.5595 89.8831 72.0344 90.9035 71.3772C92.166 70.547 93.1173 70.4433 94.2242 70.3222C95.1408 70.2184 96.1266 70.0974 97.2854 69.5958C96.3861 71.5847 96.7666 73.2105 96.8011 73.297L97.3546 75.4935L98.7209 73.6775C98.7382 73.6429 101.298 70.3395 104.93 70.3395C107.559 70.3395 109.686 71.6366 109.703 71.6539L110.274 71.9998L110.845 71.6539C110.862 71.6366 112.989 70.3395 115.618 70.3395C119.25 70.3395 121.81 73.6602 121.827 73.6775L123.194 75.4935L123.747 73.297C123.764 73.2105 124.162 71.5847 123.263 69.5958C124.422 70.0974 125.407 70.2184 126.324 70.3222C127.431 70.4433 128.399 70.5643 129.645 71.3772C130.665 72.0517 130.492 74.5595 130.233 75.6664L129.576 78.5547L131.945 76.7733C132.031 76.7041 134.107 75.113 134.349 72.5706C134.453 71.5502 134.245 70.547 133.744 69.5612C134.92 70.2357 136.061 70.4951 137.462 70.8238C137.652 70.8756 137.86 70.9102 138.067 70.9621C138.915 71.1524 140.42 71.7058 140.852 73.1413C141.094 73.9369 141.042 74.9054 141.008 75.7529L140.904 77.7245L142.616 76.7387C142.703 76.6868 144.553 75.6145 145.055 73.4699C145.141 73.0894 145.193 72.6916 145.193 72.3111C145.193 72.3111 145.193 72.3111 145.21 72.3111C146.663 73.5218 148.531 73.7466 150.174 73.885C154.014 74.179 155.622 77.5689 155.691 77.7072L156.746 80.0248L157.697 77.6554C157.905 77.1192 158.026 76.5831 158.026 76.0642C159.911 78.0186 162.523 79.0909 165.394 79.0909C167.746 79.0909 170.115 78.3645 172.087 77.0327C174.214 75.5972 175.771 73.5564 176.567 71.1351L177.258 69.0769L175.183 69.8206ZM142.287 13.1097C140.835 13.1097 140.074 12.5217 139.849 11.2765C139.693 10.4463 140.108 9.84096 140.921 9.65071C140.956 9.65071 140.99 9.63341 141.025 9.63341C140.835 10.3425 140.921 11.1208 141.388 11.8818C141.734 12.4179 142.27 12.833 142.945 13.0752C142.72 13.0924 142.495 13.1097 142.287 13.1097ZM79.1255 11.8818C79.6097 11.1381 79.6789 10.3425 79.4887 9.63341C79.5233 9.63341 79.5578 9.65071 79.5924 9.65071C80.4053 9.82366 80.8204 10.4463 80.6647 11.2765C80.4399 12.5217 79.6616 13.1097 78.2261 13.1097C78.0186 13.1097 77.7937 13.0924 77.5689 13.0752C78.2434 12.833 78.7796 12.4352 79.1255 11.8818ZM142.011 19.3014C142.27 19.042 142.547 18.7999 142.841 18.575C144.121 17.5892 145.746 16.9839 147.787 16.9839C148.081 16.9839 148.375 17.0012 148.687 17.0185L151.454 15.7559C150.468 15.7732 149.673 15.8078 149.033 15.8078C146.265 15.8078 146.49 15.4273 146.853 13.4902C146.853 13.4902 149.188 14.1302 150.97 14.1302C151.143 14.1302 151.316 14.1302 151.471 14.1129C152.336 14.0437 152.716 13.6632 152.855 13.1962C153.028 12.5736 153.08 11.6051 152.595 10.3944C152.284 9.59882 151.523 8.90702 150.434 8.90702C149.603 8.90702 148.6 9.30481 147.459 10.3425L146.49 11.311C145.989 10.723 145.591 10.0485 145.28 9.39128C145.072 8.49193 146.041 7.92119 146.041 7.92119C145.055 8.04226 144.57 7.02184 144.415 6.55487C145.47 5.98413 146.974 5.11937 148.566 4.68699L149.033 3.09584C149.638 2.78452 155.553 1.4182 157.109 1.4182C157.196 1.4182 157.248 1.4182 157.317 1.4355C157.438 1.45279 157.559 1.50468 157.646 1.57386C157.317 1.93706 157.023 2.35214 156.764 2.80182L157.819 3.14772C158.407 2.19649 159.219 1.40091 159.946 1.15878C160.897 1.98895 162.039 4.46216 159.531 7.05643V8.56111L159.963 8.14603C160.568 7.57529 161.001 7.02184 161.329 6.48569C166.12 16.8628 158.251 25.372 158.303 29.0386C158.303 29.0386 156.66 28.9867 155.536 28.537C155.536 28.537 155.034 32.1171 156.141 35.0573C157.421 38.4818 159.444 41.5257 161.07 44.7772C161.623 45.8841 162.108 47.0083 162.506 48.1671C162.523 48.2017 162.523 48.2363 162.54 48.2708C162.869 48.9799 163.422 49.6026 164.045 49.9485C164.062 49.9658 164.097 49.9658 164.114 49.9831C164.927 50.3981 165.878 50.3463 166.674 49.862C167.452 49.395 167.867 48.5995 167.85 47.7174C167.798 45.7457 166.639 44.293 165.394 42.7537C164.737 41.9235 164.045 41.076 163.509 40.1075C161.831 37.0809 161.416 33.6564 162.315 30.1974C162.73 28.6062 163.664 27.2053 164.564 25.839C164.771 25.5277 164.961 25.2337 165.169 24.9224C165.255 24.8013 165.325 24.6802 165.394 24.5592C164.961 24.1614 164.875 23.6771 165.013 23.0372C165.134 22.4491 165.446 21.74 165.826 20.858C166.259 19.8895 166.76 18.7826 167.002 17.6238C167.4 15.7559 167.4 14.2512 167.158 12.7638C167.521 13.3519 167.832 13.9745 168.092 14.6144C168.386 15.3408 168.593 16.1018 168.697 16.8974C168.801 17.693 168.801 18.5058 168.68 19.3187C168.957 18.5577 169.13 17.7276 169.181 16.8974C169.233 16.0499 169.181 15.2025 169.026 14.3723C168.887 13.6113 168.68 12.8503 168.403 12.1239C169.597 13.8707 170.202 15.998 170.236 18.5577C170.271 21.7746 169.164 24.4727 168.109 25.1126C167.971 25.1991 167.85 25.251 167.729 25.2856C167.279 25.3893 166.587 25.078 166.587 25.078C166.276 25.5969 165.965 26.0638 165.636 26.5654C164.754 27.8971 163.924 29.1597 163.561 30.526C162.748 33.691 163.094 36.7004 164.633 39.4676C165.117 40.3324 165.757 41.1452 166.397 41.9235C167.711 43.5666 169.078 45.2615 169.13 47.6655C169.164 49.0145 168.49 50.2425 167.331 50.9516C166.708 51.3321 165.982 51.5396 165.255 51.5396C164.927 51.5396 164.581 51.4877 164.252 51.4186C163.958 51.3321 163.664 51.2283 163.388 51.0727C163.301 51.0208 163.215 50.9689 163.128 50.917C163.18 51.3321 163.197 51.7645 163.18 52.1796C163.18 52.2833 163.163 52.4044 163.163 52.5082C163.111 53.2173 163.007 53.9437 162.955 54.6528C162.869 55.5694 162.713 55.6732 162.99 56.5725C163.318 57.6102 164.719 58.2329 166.172 58.5615C167.089 58.769 168.334 58.9593 169.303 59.0803C170.167 59.2014 170.807 59.9105 170.859 60.7753C170.98 62.9026 171.153 66.6729 170.997 67.7279C170.825 68.8867 170.15 69.8725 169.078 70.3914C169.147 70.547 169.216 70.7027 169.285 70.8411C169.441 71.2388 169.562 71.5847 169.614 71.9134C169.96 73.7985 168.611 74.3866 167.4 74.6806L167.244 72.9857C167.227 72.9165 166.899 72.7608 166.829 72.7262C166.726 72.657 166.604 72.5879 166.518 72.5014C166.31 72.3111 166.241 72.0863 166.207 71.8442C166.189 71.7058 166.189 71.5674 166.189 71.4118C166.172 71.1524 166.138 70.8929 165.999 70.7027C165.93 70.6162 165.861 70.547 165.74 70.4951C165.636 70.4433 165.532 70.426 165.428 70.426C165.307 70.426 165.204 70.4606 165.1 70.5124C164.875 70.6335 164.685 70.8583 164.65 71.1351C164.633 71.2388 164.65 71.3772 164.667 71.5156C164.754 72.0171 164.996 72.7089 164.771 73.3143C164.633 73.7121 164.097 74.2482 163.509 74.2482C163.318 74.2482 163.145 74.1963 162.955 74.0753L161.745 75.1476C160.136 73.3834 160.638 71.6885 162.384 70.9621C162.523 70.9102 162.644 70.8411 162.748 70.7719C163.076 70.547 163.267 70.253 163.076 69.9417C162.938 69.6996 162.782 69.6131 162.575 69.6131C162.263 69.6131 161.866 69.8033 161.26 70.0455C161.226 70.0628 161.191 70.0801 161.139 70.0974C160.811 70.2184 160.499 70.3049 160.205 70.3049C159.583 70.3049 159.081 69.9417 158.822 68.9386C158.804 68.8521 158.787 68.7483 158.77 68.6619L158.355 68.8348L157.628 69.1288C157.646 69.0078 157.663 68.8694 157.68 68.7483C157.749 68.3332 157.888 67.9874 158.043 67.6933C158.58 66.7075 159.531 66.3097 160.499 66.3097C161.745 66.3097 163.024 66.9323 163.561 67.7279L165.843 68.0392C166.31 67.4512 166.328 65.7217 166.259 64.3727C166.207 63.3868 165.48 62.5913 164.512 62.4356C162.851 62.1935 160.361 61.8303 159.479 61.7611C157.801 61.64 156.054 61.346 154.792 60.118C153.062 58.4058 152.682 56.6244 152.682 54.1512C152.682 53.3383 152.716 52.5255 152.786 51.6953C152.838 50.9862 152.924 50.2771 152.993 49.5853C153.045 49.1183 153.114 48.6513 153.183 48.1844C153.253 47.752 153.253 47.285 153.218 46.8353C153.201 46.6624 153.183 46.5067 153.149 46.3338C153.062 45.8322 152.924 45.348 152.734 44.8464C152.526 44.3275 152.232 43.8433 151.886 43.3763C151.333 42.6499 150.606 42.01 149.69 41.4911C149.361 41.3009 148.963 41.076 148.548 40.8166C148.133 40.5572 147.684 40.2805 147.217 39.9519C146.075 39.1909 144.813 38.2396 143.636 37.15C143.723 37.0982 143.809 37.0463 143.896 36.9944C144.328 36.735 145.522 35.8529 146.646 34.919C146.923 34.6941 147.165 34.4866 147.39 34.279L146.317 33.7083C145.072 34.7633 143.688 35.801 143.325 36.0086C143.152 36.1123 142.979 36.2161 142.806 36.3199C142.478 36.5101 142.149 36.7004 141.838 36.8733C140.022 37.911 138.725 38.6201 138.759 39.8308C141.008 42.2521 139.78 43.6876 138.534 44.12L138.119 42.7883C136.805 42.5634 136.822 41.5949 136.77 40.8512C136.736 40.4534 136.424 40.2286 136.113 40.2286C135.854 40.2286 135.594 40.4015 135.577 40.7993C135.542 41.2317 135.577 41.6814 135.456 42.3905C135.369 42.8747 134.851 43.532 134.107 43.532C133.986 43.532 133.865 43.5147 133.744 43.4801L133.467 45.0539C130.907 44.5697 131.184 42.0273 132.913 41.1625C133.899 40.661 134.211 40.2978 133.917 39.9173C133.83 39.8135 133.726 39.7616 133.605 39.7616C133.242 39.7616 132.706 40.1594 132.187 40.5399C131.962 40.7129 131.668 40.7993 131.357 40.7993C130.682 40.7993 129.956 40.3669 129.645 39.3465L128.763 39.8827C128.607 37.9629 129.8 37.0117 131.011 37.0117C131.582 37.0117 132.17 37.2192 132.619 37.6343C132.792 37.79 132.965 37.8591 133.138 37.8591C133.692 37.8591 134.072 37.1673 133.329 36.7695C132.619 36.3891 131.945 35.213 132.602 34.4693L131.53 33.4662C132.014 33.1722 132.533 33.0338 133.017 33.0338C134.09 33.0338 135.075 33.7256 135.387 35.2995C135.456 35.6627 135.612 35.801 135.819 35.801C136.407 35.801 137.445 34.5385 138.223 33.2932C138.413 32.9992 138.586 32.6879 138.759 32.3939C138.984 31.9961 139.226 31.6156 139.486 31.2351C139.814 30.7508 140.16 30.2839 140.593 29.8688C141.319 29.1424 142.581 27.8798 144.034 27.0324C144.38 26.8421 144.743 26.6519 145.107 26.4962C145.539 25.9255 145.971 25.3374 146.352 24.7321C147.372 23.1755 148.22 21.5152 148.704 19.7684C147.908 21.4114 146.802 22.8469 145.574 24.1268C145.003 24.7321 144.415 25.2855 143.792 25.839C142.115 26.7038 140.714 28.1047 139.883 28.9175L139.762 29.0386C139.52 29.2807 139.295 29.5229 139.105 29.7823C138.828 28.0874 138.898 25.9947 139.434 24.0057C139.538 23.6252 139.659 23.2274 139.797 22.8642C140.299 21.5498 141.025 20.3045 142.011 19.3014ZM148.479 12.4352C149.136 12.2104 149.794 12.0374 150.416 12.0374C150.935 12.0374 151.419 12.1585 151.869 12.4179C151.852 12.6255 151.817 12.7984 151.8 12.8849C151.8 12.9022 151.8 12.9022 151.8 12.9022C151.8 12.9022 151.713 12.9887 151.367 13.0233C151.246 13.0406 151.108 13.0406 150.952 13.0406C150.278 13.0406 149.517 12.9368 148.842 12.8157C148.168 12.712 147.147 12.4871 147.147 12.4871C147.044 11.9337 147.13 11.3456 147.338 11.3629C147.58 11.4148 147.753 12.0029 148.479 12.4352ZM147.77 11.5705L148.185 11.1381C149.223 10.2042 149.967 9.99661 150.399 9.99661C151.177 9.99661 151.488 10.6019 151.558 10.7922C151.627 10.9651 151.679 11.1381 151.731 11.2938C151.316 11.1035 150.866 11.0343 150.399 11.0343C149.569 11.0343 148.687 11.2938 147.77 11.5705ZM154.93 64.8915C153.65 65.7563 152.457 66.1714 151.194 66.1714C150.018 66.1714 148.877 65.8254 147.666 65.445C147.338 65.3412 147.009 65.2374 146.663 65.1509C146.127 64.9953 145.556 64.9261 144.986 64.9261C143.602 64.9261 142.409 65.3758 141.63 65.7736C141.717 65.4795 141.993 64.3727 141.993 63.5252C143.014 62.9545 143.723 62.1416 144.069 61.0866C144.588 59.5127 145.003 56.7282 144.588 53.7188C145.401 53.6151 146.559 53.4421 147.718 53.2519C148.981 53.0443 150.018 52.8368 150.779 52.6465C151.143 52.56 151.437 52.4736 151.696 52.3871C151.661 52.9924 151.644 53.5978 151.644 54.2031C151.644 55.7078 151.783 56.832 152.094 57.8178C152.474 58.9939 153.114 60.0143 154.065 60.9482C155.587 62.4529 157.628 62.7815 159.427 62.9026C160.067 62.9545 161.831 63.1793 164.373 63.5598C164.823 63.629 165.186 64.0095 165.204 64.4764C165.273 65.7217 165.221 66.4654 165.152 66.8805L164.149 66.7421C163.318 65.8427 161.9 65.2547 160.517 65.2547C158.77 65.2547 157.455 66.1714 156.867 67.7279C156.556 67.7625 156.21 67.8144 155.864 67.9009C156.521 66.8978 156.573 65.9638 156.591 65.8427L156.677 63.6809L154.93 64.8915ZM137.549 65.0818C137.445 64.9953 137.341 64.8915 137.255 64.7877C137.237 64.7532 137.22 64.7359 137.203 64.7013C136.978 64.3381 137.047 63.9576 137.099 63.5598C137.151 63.162 137.151 62.7642 136.788 62.5048C136.649 62.401 136.494 62.3491 136.338 62.3491C136.234 62.3491 136.148 62.3664 136.061 62.401C135.819 62.4875 135.594 62.695 135.508 62.9717C135.456 63.1101 135.456 63.3004 135.456 63.5252C135.456 63.7154 135.473 63.923 135.473 64.1305C135.473 64.4937 135.439 64.8915 135.283 65.2374C135.266 65.272 135.248 65.3066 135.231 65.3412C135.023 65.6871 134.47 66.1195 133.899 66.1195C133.64 66.1195 133.38 66.033 133.156 65.8082L131.651 66.7248C131.651 66.7248 131.634 66.7248 131.634 66.7075C131.53 66.5519 131.461 66.3962 131.374 66.2578C131.201 65.8946 131.08 65.566 131.011 65.2374C130.734 63.7846 131.599 62.7296 133.121 62.3837C133.744 62.2454 134.245 61.9167 134.055 61.4152C133.934 61.0866 133.726 60.9655 133.415 60.9655C133.086 60.9655 132.619 61.0866 131.98 61.2249C131.772 61.2595 131.582 61.2941 131.392 61.3287C131.236 61.346 131.08 61.3633 130.942 61.3633C130.267 61.3633 129.835 61.0347 129.835 59.6857L128.538 59.9624C129.126 57.9043 130.319 57.1087 131.564 57.1087C132.844 57.1087 134.193 57.9561 135.023 59.1149L135.542 59.2879L136.459 59.5992L138.292 60.2218C140.074 58.7171 139.261 54.7565 139.261 54.7565C139.261 54.7565 135.784 52.8022 136.943 48.4611C136.943 48.4611 137.549 44.3794 144.986 44.3794C145.781 44.3794 146.646 44.4313 147.597 44.5351C148.168 44.6043 148.687 44.6734 149.154 44.7599C149.154 44.7599 149.154 44.7772 149.171 44.7772C148.998 45.175 148.946 45.6247 149.033 46.0571C149.154 46.7316 149.569 47.3023 150.174 47.6136C150.468 47.7693 150.797 47.8558 151.143 47.8558C151.523 47.8558 151.886 47.752 152.232 47.5617C152.232 47.752 152.215 47.9249 152.198 48.0979C152.059 49.0664 151.921 50.1041 151.834 51.1937C150.33 51.9547 143.36 52.8195 143.36 52.8195C144.034 56.1056 143.602 59.2187 143.083 60.7753C142.893 61.346 142.564 61.7957 142.149 62.1589C141.82 62.4529 141.44 62.6777 141.008 62.8507C140.921 63.9922 140.835 64.8396 140.627 65.5141C140.575 65.7563 140.489 65.9638 140.385 66.1368C139.866 67.0188 138.794 67.2264 137.825 67.2955L137.981 65.4623C137.929 65.3585 137.618 65.1336 137.549 65.0818ZM140.022 39.5541C140.316 39.0871 141.302 38.551 142.322 37.9629C142.443 37.8937 142.581 37.8246 142.72 37.7381C142.91 37.911 143.1 38.084 143.291 38.2569C143.758 38.672 144.242 39.0698 144.726 39.4503L144.743 39.4676L147.13 41.9581C147.753 42.6153 148.185 43.1169 148.479 43.532L145.003 43.2898C143.291 43.2898 141.907 43.4974 140.783 43.826C140.938 43.5838 141.06 43.3071 141.129 43.0304C141.405 41.716 140.765 40.488 140.022 39.5541ZM149.897 43.7914C149.69 43.3936 149.361 42.892 148.808 42.2175C148.946 42.304 149.102 42.3905 149.223 42.4597C150.053 42.9266 150.676 43.4974 151.143 44.12C151.506 44.6043 151.748 45.1231 151.938 45.6247C152.007 45.8149 152.059 46.0225 152.094 46.2127C151.886 46.5413 151.523 46.7489 151.143 46.7489C150.987 46.7489 150.831 46.7143 150.676 46.6278C150.105 46.3338 149.88 45.5728 150.278 44.9848C150.312 44.9329 150.347 44.881 150.399 44.8291C150.226 44.5351 150.105 44.2065 149.897 43.7914ZM133.778 12.833C134.47 13.3 135.127 13.8361 135.767 14.3723C136.805 15.2371 137.808 16.1537 138.898 16.9666C139.244 17.226 140.299 18.0216 141.129 18.6615C140.887 18.9209 140.662 19.1804 140.437 19.4571C139.832 20.2527 139.33 21.152 138.949 22.0859L136.995 20.2354C137.203 19.6992 137.272 19.0766 137.203 18.4367C137.203 18.4021 137.185 18.3675 137.185 18.3156L136.148 18.8172C136.182 19.5954 135.888 20.4083 135.179 20.7888C134.954 20.9099 134.764 20.9618 134.505 20.9618C134.505 20.9618 134.505 20.9618 134.487 20.9618L134.522 20.0105C134.176 20.0105 133.709 19.6473 133.709 19.1458C133.709 18.575 134.072 18.2637 134.522 18.1253V17.0185C133.657 17.1741 133.017 17.693 132.758 18.4021L131.616 18.4194C131.564 17.5546 131.98 16.7763 132.862 16.4823V15.3581C132.118 15.5138 131.634 15.877 131.34 16.2056C131.253 16.2921 131.184 16.3958 131.097 16.4996L130.233 16.5169C130.198 15.6867 130.613 14.943 131.392 14.6836V13.5594C130.907 13.6632 130.492 13.8534 130.129 14.1648H129.316C129.333 13.6286 129.645 13.1097 130.077 12.7811C130.458 12.5044 130.942 12.3488 131.426 12.2969C131.582 12.2796 131.737 12.2623 131.893 12.2623C132.101 12.2623 132.308 12.2796 132.498 12.3142C132.965 12.4006 133.398 12.5736 133.778 12.833ZM131.461 5.91495C132.118 4.79076 132.498 3.35526 132.516 1.86788H135.127C135.145 2.05813 135.162 2.23108 135.162 2.42132C135.162 5.27503 132.879 7.59258 130.06 7.59258H129.87C130.475 7.22938 131.011 6.67594 131.461 5.91495ZM119.544 5.91495C120.202 4.79076 120.582 3.35526 120.599 1.86788H124.145C124.162 3.35526 124.543 4.79076 125.2 5.91495C125.65 6.67594 126.186 7.24668 126.791 7.59258H124.422C123.816 6.96996 123.315 6.12249 122.986 5.11937H121.793C121.481 6.12249 120.98 6.96996 120.357 7.59258H117.936C118.558 7.22938 119.112 6.67594 119.544 5.91495ZM107.455 5.91495C108.112 4.79076 108.493 3.35526 108.51 1.86788H112.246C112.263 3.35526 112.644 4.79076 113.301 5.91495C113.75 6.67594 114.287 7.22938 114.892 7.59258H112.315C111.71 6.96996 111.208 6.12249 110.879 5.11937H109.686C109.375 6.12249 108.873 6.96996 108.251 7.59258H105.829C106.452 7.22938 107.005 6.67594 107.455 5.91495ZM95.6597 5.91495C96.3169 4.79076 96.6974 3.35526 96.7147 1.86788H100.139C100.156 3.35526 100.537 4.79076 101.194 5.91495C101.644 6.67594 102.18 7.24668 102.785 7.59258H100.364C99.7586 6.96996 99.2571 6.12249 98.9284 5.11937H97.7351C97.4238 6.12249 96.9222 6.96996 96.2996 7.59258H94.0339C94.6738 7.22938 95.2273 6.67594 95.6597 5.91495ZM85.6457 2.33485C85.6457 2.17919 85.6457 2.02354 85.663 1.85058H88.3438C88.3611 3.33797 88.7416 4.77347 89.3988 5.89766C89.8485 6.65864 90.3846 7.22938 90.99 7.57529H90.7305C87.9979 7.59258 85.6457 5.18855 85.6457 2.33485ZM81.616 16.9493C82.7056 16.1364 83.7087 15.2371 84.7464 14.355C85.3863 13.8188 86.0435 13.2827 86.7353 12.8157C87.1331 12.539 87.5828 12.3661 88.0671 12.2969C88.24 12.2623 88.4303 12.245 88.6205 12.245C88.7935 12.245 88.9664 12.2623 89.1567 12.2796C89.6236 12.3488 90.0906 12.4871 90.4538 12.7638C90.8862 13.0752 91.1975 13.594 91.2148 14.1475H90.4019C90.0387 13.8534 89.6063 13.6459 89.1394 13.5421V14.6663C89.935 14.9257 90.35 15.6694 90.2982 16.4996L89.4334 16.4823C89.3642 16.3785 89.2777 16.2921 89.1913 16.1883C88.8972 15.877 88.3957 15.5138 87.6693 15.3408V16.465C88.534 16.759 88.9491 17.5373 88.9145 18.4021L87.7731 18.3848C87.5136 17.6584 86.8737 17.1568 86.0089 17.0012V18.1081C86.4586 18.2464 86.8218 18.5577 86.8218 19.1285C86.8218 19.63 86.3721 19.9932 86.0089 19.9932L86.0435 20.9445C86.0435 20.9445 86.0435 20.9445 86.0262 20.9445C85.7841 20.9445 85.5766 20.8753 85.3517 20.7715C84.6426 20.391 84.3659 19.5608 84.3832 18.7999L83.3455 18.2983C83.3455 18.3329 83.3282 18.3675 83.3282 18.4194C83.2417 19.0593 83.3282 19.6819 83.5357 20.2181L81.5814 22.0859C81.2009 21.152 80.6993 20.2699 80.094 19.4571C79.8692 19.1804 79.6443 18.9036 79.4022 18.6615C80.2151 18.0043 81.2701 17.2087 81.616 16.9493ZM49.4815 67.7798C49.3259 66.7248 49.4988 62.9717 49.6199 60.8271C49.6718 59.9624 50.329 59.2533 51.1765 59.1322C52.145 58.9939 53.3902 58.8036 54.3069 58.6134C55.7597 58.3021 57.1606 57.6621 57.4892 56.6244C57.7659 55.7251 57.6103 55.6213 57.5238 54.7046C57.4546 53.9955 57.3681 53.2691 57.3162 52.56C57.3162 52.4563 57.299 52.3352 57.299 52.2314C57.2817 51.8164 57.2989 51.384 57.3508 50.9689C57.2644 51.0208 57.1779 51.0727 57.0914 51.1245C56.8147 51.2802 56.5207 51.384 56.2266 51.4705C55.898 51.5569 55.5694 51.5915 55.2235 51.5915C54.4971 51.5915 53.788 51.4013 53.1481 51.0035C51.9893 50.2944 51.3148 49.0664 51.3494 47.7174C51.4013 45.3134 52.7676 43.6184 54.082 41.9754C54.7047 41.1971 55.3619 40.3842 55.8462 39.5195C57.3854 36.7523 57.7486 33.7429 56.9185 30.5779C56.5553 29.1943 55.7251 27.949 54.843 26.6173C54.5144 26.1157 54.2031 25.6487 53.8918 25.1299C53.8918 25.1299 53.2 25.4412 52.7503 25.3374C52.6293 25.3028 52.5082 25.251 52.3698 25.1645C51.3148 24.5073 50.1906 21.8265 50.2425 18.6096C50.2771 16.0499 50.8824 13.9226 52.0758 12.1758C51.8164 12.9022 51.5915 13.6632 51.4532 14.4242C51.2975 15.2543 51.2456 16.1191 51.2975 16.9493C51.3494 17.7967 51.5224 18.6096 51.7991 19.3706C51.678 18.5577 51.678 17.7449 51.7818 16.9493C51.8856 16.1537 52.0931 15.3927 52.3871 14.6663C52.6465 14.0264 52.9579 13.4038 53.3211 12.8157C53.0789 14.3031 53.0789 15.8078 53.4767 17.6757C53.7188 18.8344 54.2204 19.9413 54.6528 20.9099C55.0506 21.7919 55.3446 22.501 55.4657 23.0891C55.604 23.729 55.5175 24.2132 55.0852 24.611C55.1543 24.7321 55.2408 24.8532 55.31 24.9742C55.5003 25.2683 55.7078 25.5796 55.9153 25.8909C56.8147 27.2572 57.7486 28.6581 58.1637 30.2493C59.0631 33.7083 58.648 37.1327 56.9703 40.1594C56.4342 41.1279 55.7424 41.9754 55.0852 42.8056C53.8572 44.3448 52.6811 45.7976 52.6293 47.7693C52.612 48.6686 53.0443 49.4469 53.8053 49.9139C54.6009 50.3982 55.5521 50.4327 56.365 50.035C56.3823 50.0177 56.4169 50.0177 56.4342 50.0004C57.0568 49.6718 57.6103 49.0491 57.9389 48.3227C57.9562 48.2881 57.9562 48.2535 57.9735 48.219C58.3713 47.0602 58.8555 45.9187 59.409 44.8291C61.0347 41.5776 63.0582 38.5337 64.3381 35.1092C65.445 32.169 64.9434 28.5889 64.9434 28.5889C63.8192 29.0386 62.1762 29.0905 62.1762 29.0905C62.2281 25.4239 54.3588 16.9147 59.1495 6.53758C59.4781 7.07373 59.9105 7.62717 60.5159 8.19791L60.9482 8.613V7.10832C58.4404 4.51404 59.5992 2.04083 60.5331 1.21066C61.2423 1.47009 62.0551 2.24837 62.6605 3.19961L63.7155 2.8537C63.456 2.42132 63.162 2.00624 62.8334 1.62575C62.9372 1.55657 63.041 1.50468 63.162 1.48739C63.2139 1.48739 63.2831 1.47009 63.3696 1.47009C64.9434 1.47009 70.8584 2.83641 71.4464 3.14772L71.9653 4.72158C73.5737 5.15396 75.0611 6.01872 76.1161 6.58946C75.9432 7.03914 75.4589 8.05955 74.4904 7.95578C74.4904 7.95578 75.4416 8.52652 75.2513 9.42587C74.94 10.0831 74.5422 10.7576 74.0407 11.3456L73.0722 10.3771C71.9307 9.3221 70.9275 8.94161 70.0974 8.94161C69.0078 8.94161 68.2468 9.63341 67.9355 10.429C67.4512 11.6397 67.5031 12.6082 67.6761 13.2308C67.8144 13.6978 68.1949 14.0783 69.0597 14.1475C69.2153 14.1647 69.3883 14.1648 69.5612 14.1648C71.3426 14.1648 73.6775 13.5248 73.6775 13.5248C74.0407 15.4619 74.2655 15.8424 71.4983 15.8424C70.8584 15.8424 70.0628 15.8251 69.077 15.7905L71.8442 17.053C72.1555 17.0357 72.4495 17.0185 72.7435 17.0185C74.7844 17.0185 76.4101 17.6238 77.69 18.6096C77.984 18.8344 78.2607 19.0766 78.5201 19.336C79.506 20.3391 80.2151 21.5844 80.7166 22.8988C80.855 23.2793 80.9761 23.6598 81.0798 24.0403C81.616 26.0465 81.6852 28.1393 81.4084 29.8169C81.2009 29.5575 80.9933 29.3153 80.7512 29.0732L80.6301 28.9521C79.8 28.1393 78.3991 26.7383 76.7214 25.8736C76.0988 25.3201 75.5108 24.7667 74.94 24.1614C73.7121 22.8642 72.6225 21.4287 71.8096 19.803C72.3112 21.5498 73.1586 23.2274 74.1618 24.7667C74.5595 25.372 74.9746 25.9601 75.407 26.5308C75.7875 26.6865 76.1334 26.8594 76.4793 27.067C77.9494 27.8971 79.1946 29.177 79.921 29.9034C80.3534 30.3184 80.6993 30.7854 81.0279 31.2697C81.2874 31.6502 81.5122 32.0307 81.7543 32.4285C81.9273 32.7225 82.1175 33.0338 82.2905 33.3278C83.0688 34.5904 84.1065 35.8356 84.6945 35.8356C84.9021 35.8356 85.0577 35.68 85.1269 35.334C85.4382 33.7602 86.424 33.0684 87.4963 33.0684C87.9979 33.0684 88.5168 33.224 88.9837 33.5008L87.9114 34.5039C88.5513 35.2649 87.8768 36.4236 87.185 36.8041C86.4413 37.2019 86.8391 37.8937 87.3753 37.8937C87.5482 37.8937 87.7212 37.8246 87.8941 37.6689C88.3438 37.2538 88.9318 37.0463 89.5026 37.0463C90.7132 37.0463 91.9066 37.9802 91.7509 39.9173L90.817 39.3984C90.5057 40.4188 89.7793 40.8512 89.1048 40.8512C88.7935 40.8512 88.4995 40.7647 88.2746 40.5918C87.7558 40.2113 87.2196 39.8135 86.8564 39.8135C86.7353 39.8135 86.6143 39.8654 86.5451 39.9692C86.2684 40.3497 86.5624 40.7301 87.5482 41.2144C89.295 42.0792 89.5718 44.6216 86.9948 45.1058L86.718 43.532C86.597 43.5666 86.4759 43.5838 86.3549 43.5838C85.6112 43.5838 85.0923 42.9266 85.0058 42.4424C84.8848 41.7333 84.9194 41.3009 84.8848 40.8512C84.8675 40.4534 84.608 40.2805 84.3486 40.2805C84.0373 40.2805 83.726 40.5053 83.6914 40.9031C83.6395 41.6468 83.6568 42.6153 82.3424 42.8402L81.9273 44.1719C80.682 43.7395 79.4368 42.304 81.7025 39.8827C81.737 38.6547 80.4399 37.9456 78.6239 36.9252C78.3126 36.7523 77.984 36.562 77.6554 36.3718C77.4824 36.268 77.3095 36.1642 77.1365 36.0604C76.7733 35.8356 75.3724 34.8152 74.1445 33.7602L73.0722 34.3309C73.297 34.5212 73.5391 34.7287 73.8158 34.9708C74.9227 35.8875 76.1161 36.7868 76.5658 37.0463C76.6523 37.0982 76.7387 37.15 76.8252 37.2019C75.6491 38.2915 74.3866 39.2428 73.2451 40.0037C72.7781 40.3151 72.3285 40.6091 71.9134 40.8685C71.4983 41.1279 71.1005 41.3528 70.7719 41.543C69.8552 42.0619 69.1289 42.7018 68.5754 43.4282C68.2122 43.8952 67.9355 44.3967 67.7279 44.8983C67.5204 45.3825 67.382 45.8841 67.3129 46.3857C67.2783 46.5586 67.261 46.7143 67.2437 46.8872C67.2091 47.3542 67.2264 47.8039 67.2783 48.2363C67.3475 48.7032 67.3993 49.1702 67.4685 49.6372C67.555 50.3463 67.6242 51.0381 67.6761 51.7472C67.7452 52.5773 67.7798 53.3902 67.7798 54.2031C67.7798 56.6936 67.3993 58.475 65.6698 60.1699C64.4246 61.3979 62.6777 61.6919 60.9828 61.813C60.1008 61.8649 57.6276 62.2281 55.9499 62.4875C54.9814 62.6258 54.255 63.4387 54.2031 64.4245C54.1339 65.7563 54.1512 67.5031 54.6182 68.0911L56.9012 67.7798C57.4373 66.9842 58.7172 66.3616 59.9624 66.3616C60.9309 66.3616 61.8822 66.7421 62.4183 67.7452C62.574 68.0392 62.7123 68.3851 62.7815 68.8002C62.7988 68.9213 62.8161 69.0424 62.8334 69.1807L62.107 68.8867L61.6919 68.7137C61.6746 68.8175 61.6573 68.904 61.64 68.9905C61.3979 69.9936 60.8791 70.3568 60.2564 70.3568C59.9624 70.3568 59.6511 70.2703 59.3225 70.1492C59.2879 70.1319 59.2533 70.1147 59.2014 70.0974C58.6134 69.8552 58.1983 69.665 57.887 69.665C57.6794 69.665 57.5238 69.7515 57.3854 69.9936C57.1952 70.3222 57.3854 70.5989 57.714 70.8238C57.8178 70.8929 57.9562 70.9621 58.0772 71.014C59.824 71.7404 60.3256 73.4353 58.7172 75.1994L57.5065 74.1271C57.3162 74.2482 57.126 74.3001 56.953 74.3001C56.365 74.3001 55.8289 73.7639 55.6905 73.3661C55.4657 72.7608 55.7078 72.069 55.7943 71.5674C55.8116 71.4291 55.8289 71.2907 55.8116 71.187C55.777 70.9102 55.5867 70.6854 55.3619 70.5643C55.2581 70.5124 55.1543 70.4779 55.0333 70.4779C54.9295 70.4779 54.8257 70.4951 54.722 70.547C54.6182 70.5989 54.5317 70.6681 54.4625 70.7546C54.3069 70.9448 54.2723 71.2043 54.2723 71.4637C54.2723 71.602 54.2723 71.7577 54.255 71.8961C54.2204 72.1382 54.1512 72.363 53.9437 72.5533C53.8399 72.6397 53.7361 72.7089 53.6324 72.7781C53.5632 72.8127 53.2346 72.9684 53.2173 73.0375L53.0616 74.7325C51.851 74.4385 50.5192 73.8504 50.8478 71.9652C50.8997 71.6539 51.0035 71.2907 51.1765 70.8929C51.2283 70.7546 51.2975 70.5989 51.384 70.4433C50.3463 69.9244 49.6545 68.9386 49.4815 67.7798ZM70.1147 12.0374C70.7373 12.0374 71.3772 12.1931 72.0517 12.4352C72.7781 11.9856 72.9338 11.4148 73.2105 11.3802C73.4181 11.3629 73.5045 11.951 73.4008 12.5044C73.4008 12.5044 72.3803 12.7293 71.7058 12.833C71.0313 12.9541 70.2703 13.0579 69.5958 13.0579C69.4402 13.0579 69.3018 13.0579 69.1807 13.0406C68.8521 13.006 68.7484 12.9368 68.7484 12.9195C68.7484 12.9195 68.7484 12.9195 68.7484 12.9022C68.7138 12.7984 68.6792 12.6428 68.6792 12.4352C69.1116 12.1585 69.5958 12.0374 70.1147 12.0374ZM68.7829 11.2938C68.8175 11.1381 68.8867 10.9651 68.9559 10.7922C69.0251 10.6019 69.3364 9.99661 70.1147 9.99661C70.5644 9.99661 71.308 10.1869 72.3285 11.1381L72.7435 11.5705C71.8269 11.2765 70.9275 11.0343 70.0974 11.0343C69.6477 11.0343 69.2153 11.1208 68.7829 11.2938ZM82.2213 60.2218L84.0719 59.5992L84.9885 59.2879L85.5074 59.1149C86.3376 57.9388 87.6866 57.1087 88.9664 57.1087C90.2117 57.1087 91.405 57.9043 91.9931 59.9624L90.6959 59.6857C90.6959 61.0174 90.2636 61.3633 89.589 61.3633C89.4507 61.3633 89.295 61.346 89.1394 61.3287C88.9491 61.2941 88.7589 61.2595 88.5513 61.2249C87.9114 61.1039 87.4444 60.9655 87.1158 60.9655C86.8045 60.9655 86.597 61.0866 86.4759 61.4152C86.303 61.9167 86.7872 62.2281 87.4099 62.3837C88.9318 62.7296 89.7966 63.8019 89.5199 65.2374C89.4507 65.566 89.3469 65.8946 89.1567 66.2578C89.0875 66.4135 89.001 66.5519 88.8972 66.7075C88.8972 66.7075 88.8799 66.7075 88.8799 66.7248L87.3753 65.8082C87.1504 66.033 86.891 66.1195 86.6316 66.1195C86.0608 66.1195 85.5074 65.7044 85.2998 65.3412C85.2825 65.3066 85.2653 65.272 85.248 65.2374C85.075 64.8915 85.0577 64.4937 85.0577 64.1305C85.0577 63.923 85.075 63.7154 85.075 63.5252C85.075 63.3004 85.075 63.1101 85.0231 62.9717C84.9366 62.695 84.7118 62.5048 84.4697 62.401C84.3832 62.3664 84.2794 62.3491 84.193 62.3491C84.0373 62.3491 83.8816 62.401 83.7433 62.5048C83.3801 62.7642 83.3801 63.162 83.432 63.5598C83.4839 63.9749 83.553 64.3554 83.3282 64.7013C83.3109 64.7359 83.2936 64.7532 83.2763 64.7877C83.1898 64.8915 83.0861 64.9953 82.9823 65.0818C82.9131 65.1336 82.6018 65.3585 82.6018 65.445L82.7575 67.2782C81.7889 67.2091 80.7166 67.0015 80.1978 66.1195C80.094 65.9465 80.0075 65.7217 79.9556 65.4968C79.7654 64.8223 79.6789 63.9922 79.5751 62.8334C79.1428 62.6604 78.7623 62.4356 78.4337 62.1416C78.0186 61.7784 77.69 61.3287 77.4997 60.758C76.9809 59.2014 76.5312 56.0883 77.223 52.8022C77.223 52.8022 70.253 51.9374 68.7484 51.1764C68.6446 50.0868 68.5235 49.0318 68.3852 48.0806C68.3679 47.9076 68.3506 47.7347 68.3506 47.5444C68.6792 47.7347 69.0597 47.8385 69.4402 47.8385C69.7861 47.8385 70.0974 47.752 70.4087 47.5963C71.014 47.285 71.4291 46.7143 71.5502 46.0398C71.6367 45.6074 71.5848 45.1577 71.4118 44.7599C71.4118 44.7599 71.4118 44.7426 71.4291 44.7426C71.8961 44.6561 72.4149 44.587 72.9857 44.5178C73.9369 44.414 74.8017 44.3621 75.5972 44.3621C83.0342 44.3621 83.6395 48.4438 83.6395 48.4438C84.7983 52.7849 81.322 54.7392 81.322 54.7392C81.322 54.7392 80.4572 58.7171 82.2213 60.2218ZM63.9057 65.8427C63.9057 65.9638 63.9749 66.8978 64.6321 67.9009C64.2689 67.8144 63.9403 67.7625 63.629 67.7279C63.041 66.1714 61.7265 65.2547 59.9797 65.2547C58.5961 65.2547 57.1779 65.8427 56.3477 66.7421L55.3446 66.8805C55.2754 66.4481 55.2235 65.7044 55.2927 64.4764C55.31 64.0095 55.6732 63.629 56.1229 63.5598C58.6653 63.1793 60.4294 62.9372 61.0693 62.9026C62.868 62.7815 64.9088 62.4529 66.4308 60.9482C67.382 60.0143 68.0393 58.9766 68.4025 57.8178C68.7138 56.832 68.8521 55.7251 68.8521 54.2031C68.8521 53.5978 68.8348 52.9924 68.8002 52.3871C69.0597 52.4736 69.371 52.56 69.7169 52.6465C70.4779 52.8368 71.5156 53.0443 72.7781 53.2519C73.9369 53.4421 75.0957 53.6151 75.9086 53.7188C75.4935 56.7455 75.8913 59.5127 76.4274 61.0866C76.7733 62.1243 77.4824 62.9545 78.5028 63.5252C78.5028 64.6321 78.8487 65.739 78.8487 65.7736C78.0705 65.3758 76.8771 64.9261 75.4935 64.9261C74.9227 64.9261 74.352 65.0126 73.8158 65.1509C73.4699 65.2547 73.1413 65.3585 72.8127 65.445C71.6021 65.8082 70.4779 66.1714 69.2845 66.1714C68.022 66.1714 66.8286 65.7736 65.5488 64.8915L63.7673 63.6809L63.9057 65.8427ZM70.2703 45.0021C70.6508 45.5901 70.4433 46.3511 69.8725 46.6451C69.7169 46.7316 69.5612 46.7662 69.4056 46.7662C69.0251 46.7662 68.6619 46.5586 68.4543 46.23C68.4889 46.0398 68.5581 45.8322 68.61 45.642C68.7829 45.1231 69.0424 44.6216 69.4056 44.1373C69.8725 43.5147 70.4952 42.9439 71.3253 42.477C71.4464 42.4078 71.5848 42.3213 71.7404 42.2348C71.187 42.9093 70.8584 43.3936 70.6508 43.8087C70.426 44.2238 70.3222 44.5524 70.1666 44.8637C70.1839 44.8983 70.2357 44.9502 70.2703 45.0021ZM77.2403 38.2742C77.4305 38.1013 77.6208 37.9283 77.811 37.7554C77.9494 37.8246 78.0705 37.911 78.2088 37.9802C79.2292 38.551 80.1978 39.1044 80.5091 39.5714C79.7654 40.488 79.1082 41.7333 79.4368 43.0304C79.506 43.3071 79.627 43.5838 79.7827 43.826C78.6585 43.4974 77.2749 43.2898 75.5627 43.2898L72.0863 43.532C72.3803 43.1169 72.7954 42.6153 73.4354 41.9581L75.8221 39.4676L75.8394 39.4503C76.2891 39.0871 76.7733 38.6893 77.2403 38.2742ZM61.813 75.2686C60.0316 77.1711 57.6276 78.0531 55.1543 78.0531C50.917 78.0531 46.5413 75.4416 45.0021 70.8411C45.0021 70.8411 47.0948 71.5502 49.7928 71.8615C49.6718 72.6052 49.741 73.2624 50.0177 73.8504C50.6057 75.0957 51.9029 75.5453 52.8195 75.7875L54.0475 76.0988L54.1685 74.8362L54.2896 73.6602C54.3934 73.591 54.5144 73.5045 54.6182 73.418C54.6355 73.5218 54.6701 73.6256 54.7047 73.7293C54.9987 74.5422 55.9326 75.3724 56.9876 75.3724C57.0914 75.3724 57.1952 75.3724 57.299 75.3551L58.0426 76.0123L58.8382 76.7214L59.5646 75.9258C60.585 74.8189 61.0001 73.5737 60.7407 72.4322C60.6542 72.069 60.5159 71.7231 60.3083 71.4118C60.9482 71.4118 61.519 71.1697 61.9514 70.72C62.107 70.547 62.2627 70.3568 62.3664 70.132L62.4356 70.1492L64.1133 70.8411L63.923 69.0424C63.923 68.9732 63.9057 68.9213 63.9057 68.8521C64.6494 68.9732 65.5488 69.2499 66.6902 69.6823C66.8459 69.7688 67.0188 69.8379 67.1745 69.8898C67.261 69.9244 67.3302 69.959 67.4166 69.9763C67.0534 70.1838 66.6902 70.3914 66.3616 70.5989C64.7186 71.6539 63.5944 72.7954 63.0064 73.9888C62.6432 74.4039 62.2454 74.8189 61.813 75.2686ZM74.6287 71.5156C73.4354 72.5187 71.775 72.7262 70.2703 72.83C65.7044 73.1759 63.8365 77.2922 63.8365 77.2922C63.456 76.3409 63.5252 75.4416 63.8884 74.6287C64.4419 73.3834 65.6871 72.3111 67.0015 71.481C69.198 70.0974 71.6194 69.3191 71.6194 69.3191C71.187 69.3537 70.7892 69.371 70.4087 69.371C69.4575 69.371 68.6792 69.2499 68.0393 69.0596C67.6761 68.9559 67.3474 68.8175 67.0707 68.6792C65.0472 67.6414 64.978 65.7909 64.978 65.7909C66.5865 66.8805 68.0047 67.261 69.3191 67.261C71.014 67.261 72.5533 66.6556 74.1272 66.2059C74.5941 66.0676 75.0611 66.0157 75.5108 66.0157C76.8079 66.0157 77.9321 66.5 78.572 66.8459C77.7591 67.3474 77.0673 67.9873 76.5312 68.8002C76.3236 69.1288 76.1334 69.4574 75.9777 69.7687C75.4762 70.4779 75.1476 71.1005 74.6287 71.5156ZM82.2213 69.9417C80.6301 70.3049 79.1428 71.2215 78.6412 72.8646C78.3472 73.8158 78.3991 74.8535 78.451 75.8394C78.451 75.8394 75.1995 73.9888 76.929 70.3395C77.0673 70.0455 77.2576 69.7169 77.4651 69.3883C77.8802 68.7483 78.3818 68.2987 78.8487 67.9528C79.0217 67.849 79.1946 67.7625 79.3849 67.6587L79.8692 67.4166C80.6993 68.1257 81.8235 68.2987 82.6537 68.3505L83.9162 68.437L83.8125 67.1745L83.7087 65.86C83.8471 65.739 83.9854 65.6006 84.1238 65.4277C84.1238 65.4104 84.1411 65.4104 84.1411 65.3931C84.193 65.5487 84.2621 65.7044 84.3486 65.8427C84.7291 66.5 85.6285 67.1572 86.6143 67.1572C86.8737 67.1572 87.1158 67.1053 87.358 67.0188L87.9287 67.3647C87.8941 67.3993 87.8422 67.4339 87.8076 67.4685C85.9571 69.2153 84.5907 69.4056 82.2213 69.9417ZM131.288 75.9604C131.288 75.9604 132.222 71.8269 130.233 70.5124C127.05 68.437 125.355 70.2184 121.793 67.5031C121.758 67.4512 121.706 67.4166 121.672 67.3647C119.994 65.6698 118.143 64.5975 116.466 64.0268C115.307 64.217 114.027 64.3554 112.609 64.4245C112.886 64.4418 113.162 64.4591 113.456 64.4937C113.958 64.5456 114.494 64.6321 115.048 64.7532C115.895 64.9434 116.794 65.2374 117.694 65.6698C118.783 66.2059 119.873 67.0707 120.893 68.1084C120.963 68.1776 121.014 68.2295 121.066 68.2987C123.28 70.7027 122.692 73.0548 122.692 73.0548C122.692 73.0548 119.856 69.2845 115.618 69.2845C113.595 69.2845 111.848 69.959 110.949 70.4087L110.291 70.7546L109.634 70.4087C108.735 69.9763 106.988 69.2845 104.964 69.2845C100.727 69.2845 97.8907 73.0548 97.8907 73.0548C97.8907 73.0548 97.2854 70.7027 99.5165 68.2987C99.5684 68.2295 99.6376 68.1776 99.6894 68.1084C100.71 67.0707 101.799 66.1886 102.889 65.6698C103.788 65.2374 104.688 64.9434 105.535 64.7532C106.089 64.6321 106.625 64.5456 107.126 64.4937C107.42 64.4591 107.714 64.4418 107.991 64.4245C106.573 64.3554 105.293 64.217 104.117 64.0268C102.439 64.5975 100.589 65.6525 98.9111 67.3647C98.8593 67.4166 98.8247 67.4512 98.7901 67.5031C95.2273 70.2184 93.5324 68.437 90.35 70.5124C88.3611 71.8096 89.295 75.9604 89.295 75.9604C89.295 75.9604 85.0923 72.7781 88.8972 68.5754C89.6928 67.6933 90.6614 66.9669 91.3705 66.4827C91.9585 66.0849 92.3736 65.86 92.3736 65.86C92.3736 65.86 92.0277 65.8255 91.578 65.739C91.3359 65.7044 91.0418 65.6352 90.7305 65.566C90.6786 65.5487 90.6095 65.5314 90.5403 65.5141C90.6959 64.7704 90.6441 64.044 90.3846 63.4041C90.2809 63.1447 90.1252 62.8853 89.9522 62.6604C91.5953 63.1101 93.6188 63.456 95.9191 63.456C96.8011 63.456 97.7178 63.2658 98.6863 63.162C99.0149 63.1274 99.3781 63.1101 99.7413 63.1101C99.8624 63.1101 99.9835 63.1101 100.105 63.1274C99.2052 62.8507 98.4096 62.5394 97.6832 62.2281C97.0952 62.3145 96.5071 62.401 95.9191 62.401C94.1031 62.401 92.4773 62.1762 91.0764 61.8476C91.3359 61.5881 91.4915 61.2941 91.5953 60.9655L91.7509 61.0001L93.5151 61.3806L93.0135 59.6338C92.0796 56.3477 89.8658 56.0018 88.9491 56.0018C87.479 56.0018 85.8879 56.8493 84.8329 58.181L82.5845 58.942C82.0829 58.0253 82.1175 56.3996 82.2559 55.3792C82.6537 55.0851 83.2244 54.5836 83.7433 53.8399C84.5389 52.7157 85.3344 50.8305 84.6426 48.2017C84.5734 47.8558 84.2102 46.524 82.792 45.348L83.0515 44.5005L83.2763 43.7568C83.6222 43.6184 83.8989 43.4109 84.1065 43.1861C84.4178 43.826 85.0231 44.414 85.7841 44.6043L85.9052 45.2615L86.0954 46.403L87.2196 46.1954C88.7762 45.9014 89.8139 44.9329 90.0041 43.6184C90.0906 43.0304 89.9868 42.4251 89.7274 41.8716C90.3154 41.7333 90.8516 41.4047 91.2494 40.9031L92.7195 41.7333L92.8578 39.9692C92.9789 38.4299 92.4255 37.4614 91.9412 36.9425C91.3186 36.268 90.4192 35.8875 89.4853 35.8875C89.3815 35.8875 89.295 35.8875 89.1913 35.9048C89.2086 35.8183 89.2431 35.7318 89.2604 35.6454C89.3123 35.3513 89.3123 35.0573 89.2604 34.7633L89.762 34.2963L90.8689 33.2586L89.5718 32.4803C88.9145 32.0826 88.2054 31.875 87.4963 31.875C86.3203 31.875 84.9712 32.4803 84.2967 34.1061C84.02 33.7775 83.6568 33.3105 83.259 32.6706C83.1034 32.4112 82.9477 32.1517 82.792 31.8923C82.6191 31.5983 82.4288 31.287 82.2386 30.993V30.9757C82.8093 28.8311 82.792 25.8909 81.9446 23.1582L84.0719 21.1347C84.2794 21.3768 84.5389 21.5671 84.8156 21.7054C85.2134 21.913 85.5766 22.0168 85.9917 22.0168H86.0089L87.1331 21.9995V20.6159C87.1677 20.5813 87.2196 20.5467 87.2542 20.5121C87.5655 20.2181 87.7558 19.8549 87.8249 19.4398L88.8627 19.4571L89.9004 19.4744L89.9522 18.4367C89.9695 18.1253 89.935 17.8313 89.8831 17.5373H90.2636L91.3013 17.5546L91.3532 16.5169C91.3705 16.0499 91.3013 15.6003 91.1456 15.2025H91.1802H92.2871L92.2525 14.0956C92.2352 13.2308 91.7855 12.4006 91.0591 11.8818C90.4192 11.4148 89.6928 11.2419 89.1221 11.19V8.66488H131.392V11.1727C130.821 11.2246 130.06 11.3975 129.403 11.8818C128.676 12.4179 128.226 13.2481 128.209 14.0956L128.175 15.2025H129.281H129.316C129.16 15.6003 129.074 16.0499 129.109 16.5169L129.16 17.5546L130.198 17.5373H130.579C130.509 17.814 130.492 18.1253 130.509 18.4367L130.561 19.4744L131.599 19.4571L132.637 19.4398C132.706 19.8376 132.896 20.2181 133.207 20.5121C133.242 20.5467 133.294 20.5813 133.329 20.6159V21.9995L134.453 22.0168H134.47C134.885 22.0168 135.248 21.913 135.646 21.7054C135.923 21.5498 136.182 21.3595 136.39 21.1347L138.517 23.1582C137.67 25.8909 137.635 28.8311 138.223 30.9757V30.993C138.033 31.287 137.843 31.5983 137.67 31.8923C137.514 32.1517 137.358 32.4112 137.203 32.6706C136.822 33.2932 136.442 33.7948 136.165 34.1234C135.49 32.4976 134.141 31.8923 132.965 31.8923C132.256 31.8923 131.547 32.0998 130.89 32.4976L129.593 33.2759L130.7 34.3136L131.201 34.7806C131.149 35.0573 131.149 35.3513 131.201 35.6627C131.219 35.7491 131.236 35.8356 131.27 35.9221C131.167 35.9221 131.08 35.9048 130.976 35.9048C130.025 35.9048 129.126 36.2853 128.52 36.9598C128.036 37.4959 127.483 38.4472 127.604 39.9865L127.742 41.7506L129.212 40.9204C129.61 41.4047 130.146 41.7333 130.734 41.8889C130.475 42.4424 130.371 43.0304 130.458 43.6357C130.648 44.9675 131.686 45.936 133.242 46.2127L134.366 46.4203L134.557 45.2788L134.678 44.6216C135.456 44.414 136.061 43.8433 136.355 43.2034C136.563 43.4282 136.839 43.6184 137.185 43.7741L137.376 44.3967L137.41 44.5178L137.67 45.3653C136.251 46.5586 135.888 47.8731 135.819 48.219C135.127 50.8478 135.923 52.733 136.718 53.8572C137.237 54.6009 137.808 55.1024 138.206 55.3965C138.344 56.4169 138.379 58.0426 137.877 58.9593L135.629 58.1983C134.557 56.8665 132.983 56.0191 131.513 56.0191C130.596 56.0191 128.382 56.365 127.448 59.6511L126.947 61.3979L128.711 61.0174L128.866 60.9828C128.97 61.2941 129.126 61.6054 129.385 61.8649C127.984 62.1762 126.359 62.4183 124.543 62.4183C123.955 62.4183 123.367 62.3318 122.778 62.2453C122.052 62.5567 121.257 62.868 120.357 63.1447C120.478 63.1447 120.582 63.1447 120.703 63.1447C121.066 63.1447 121.429 63.162 121.758 63.1966C122.727 63.3176 123.643 63.4906 124.525 63.4906C126.826 63.4906 128.849 63.1447 130.492 62.695C130.319 62.9199 130.164 63.162 130.06 63.4387C129.8 64.0786 129.748 64.805 129.904 65.5487C129.835 65.566 129.783 65.5833 129.714 65.6006C129.403 65.6698 129.109 65.739 128.866 65.7736C128.399 65.86 128.123 65.8773 128.123 65.8773C128.123 65.8773 128.538 66.1022 129.126 66.5C129.835 66.9842 130.786 67.7106 131.599 68.5927C135.49 72.7781 131.288 75.9604 131.288 75.9604ZM142.08 75.8394C142.132 74.8535 142.166 73.8158 141.89 72.8646C141.388 71.2215 139.901 70.3222 138.31 69.9417C135.94 69.3883 134.574 69.2153 132.723 67.5031C132.689 67.4685 132.637 67.4339 132.602 67.3993L133.173 67.0534C133.398 67.1399 133.657 67.1918 133.917 67.1918C134.92 67.1918 135.819 66.5346 136.182 65.8773C136.269 65.7217 136.338 65.5833 136.39 65.4277C136.39 65.445 136.407 65.445 136.407 65.4623C136.545 65.6352 136.684 65.7736 136.822 65.8946L136.718 67.2091L136.615 68.4716L137.877 68.3851C138.707 68.3333 139.814 68.1603 140.662 67.4512L141.146 67.6933C141.336 67.7971 141.509 67.8836 141.682 67.9873C142.166 68.3333 142.651 68.7829 143.066 69.4229C143.291 69.7515 143.464 70.0628 143.602 70.3741C145.331 73.9888 142.08 75.8394 142.08 75.8394ZM156.66 77.3094C156.66 77.3094 154.809 73.1932 150.226 72.8473C148.721 72.7262 147.078 72.5187 145.868 71.5329C145.349 71.1005 145.02 70.4779 144.501 69.786C144.346 69.4574 144.155 69.1461 143.948 68.8175C143.412 68.0046 142.737 67.3474 141.907 66.8632C142.547 66.5173 143.654 66.033 144.968 66.033C145.418 66.033 145.868 66.0849 146.352 66.2232C147.943 66.6729 149.465 67.2782 151.16 67.2782C152.474 67.2782 153.893 66.915 155.501 65.8082C155.501 65.8082 155.415 67.6587 153.408 68.6964C153.132 68.8348 152.803 68.9732 152.44 69.0769C151.8 69.2672 151.004 69.3883 150.07 69.3883C149.69 69.3883 149.292 69.371 148.86 69.3364C148.86 69.3364 151.281 70.1147 153.477 71.4983C154.809 72.3457 156.037 73.4007 156.591 74.646C156.971 75.4589 157.058 76.3409 156.66 77.3094ZM165.377 78.0531C162.903 78.0531 160.482 77.1711 158.718 75.2686C158.285 74.8189 157.905 74.3866 157.525 74.0061C156.936 72.7954 155.812 71.6712 154.169 70.6162C153.841 70.4087 153.495 70.2011 153.114 69.9936C153.201 69.959 153.27 69.9244 153.356 69.9071C153.529 69.8379 153.685 69.7688 153.841 69.6996C154.982 69.2499 155.881 68.9905 156.625 68.8694C156.625 68.9386 156.608 68.9905 156.608 69.0596L156.418 70.8583L158.095 70.1665L158.164 70.1492C158.286 70.3741 158.424 70.5643 158.58 70.7373C159.012 71.187 159.583 71.4291 160.223 71.4291C160.015 71.7404 159.877 72.0863 159.79 72.4495C159.531 73.591 159.963 74.8362 160.966 75.9431L161.693 76.7387L162.488 76.0296L163.232 75.3724C163.336 75.3897 163.439 75.3897 163.543 75.3897C164.598 75.3897 165.532 74.5595 165.826 73.7466C165.861 73.6429 165.895 73.5391 165.913 73.4353C166.034 73.5218 166.138 73.6083 166.241 73.6775L166.362 74.8535L166.483 76.1161L167.711 75.8048C168.628 75.5799 169.925 75.113 170.513 73.8677C170.79 73.2797 170.859 72.6225 170.738 71.8788C173.419 71.5674 175.529 70.8583 175.529 70.8583C173.972 75.4589 169.597 78.0531 165.377 78.0531ZM71.2216 4.98101C69.6477 5.41339 67.6588 4.99831 67.6588 4.99831C68.8694 6.19167 69.2672 6.91807 69.2672 6.91807C70.8584 7.00455 71.2216 5.96684 71.2216 4.98101ZM149.309 4.98101C149.309 5.96684 149.673 7.00455 151.264 6.93537C151.264 6.93537 151.679 6.20897 152.872 5.0156C152.872 5.0156 150.883 5.41339 149.309 4.98101ZM150.261 26.2887C150.537 25.8217 150.814 25.3547 151.091 24.8878C151.54 24.1268 151.955 23.3139 152.319 22.4837C152.665 21.6536 152.959 20.8234 153.218 19.9759C153.495 19.1458 153.737 18.2983 153.979 17.4508C153.599 18.2464 153.218 19.0247 152.803 19.803C152.405 20.5813 151.99 21.3423 151.54 22.0686C151.073 22.795 150.572 23.4696 150.018 24.1268C149.534 24.7148 149.015 25.3201 148.514 25.9082C149.084 25.9774 149.673 26.0811 150.261 26.2887ZM68.2122 22.4837C68.5581 23.3139 68.9905 24.1268 69.4402 24.8878C69.7169 25.3547 69.9936 25.8217 70.2703 26.2887C70.8584 26.0811 71.4464 25.9601 72.0171 25.9255C71.5156 25.3374 70.9967 24.7321 70.5125 24.1441C69.959 23.4696 69.4575 22.795 68.9905 22.0859C68.5408 21.3595 68.1257 20.5986 67.7279 19.8203C67.3302 19.042 66.9497 18.2464 66.5519 17.4681C66.794 18.3156 67.0534 19.1458 67.3129 19.9932C67.5723 20.8234 67.8663 21.6536 68.2122 22.4837ZM67.9528 27.4993C66.6211 25.5796 65.3412 23.6252 64.2689 21.5671C63.6809 20.4429 63.162 19.2841 62.7469 18.0908C62.3145 16.8974 61.9686 15.6694 61.6919 14.4242C61.8303 15.704 62.0205 16.9666 62.3145 18.2291C62.6086 19.4917 63.0064 20.7196 63.4733 21.9303C63.9403 23.1409 64.4764 24.317 65.0299 25.4758C65.4796 26.3924 65.9465 27.2918 66.4135 28.1911C66.8632 28.0528 67.382 27.8279 67.9528 27.4993ZM154.083 28.1911C154.567 27.2918 155.034 26.3924 155.466 25.4758C156.037 24.317 156.573 23.1409 157.023 21.9303C157.49 20.7196 157.87 19.4744 158.182 18.2291C158.476 16.9666 158.683 15.704 158.804 14.4242C158.528 15.6694 158.182 16.8974 157.749 18.0908C157.317 19.2841 156.798 20.4429 156.227 21.5671C155.155 23.6252 153.875 25.5796 152.544 27.4993C153.149 27.8279 153.65 28.0528 154.083 28.1911Z",fill:"#CC0000"}),K.jsx("path",{d:"M128.469 14.1474H128.244H92.2871H92.1314L91.6298 15.2025H128.745L128.469 14.1474ZM133.38 20.5467V33.0511C133.761 33.1203 134.124 33.2759 134.435 33.5353V20.7542L133.38 20.5467ZM133.761 43.5147L133.484 45.0885C133.45 45.0885 133.415 45.0712 133.38 45.0712V47.2504C133.38 50.1733 132.516 52.8368 130.838 55.137C130.423 55.6905 129.973 56.2266 129.472 56.7455L88.3265 15.5657C88.1362 15.4792 87.9114 15.3927 87.652 15.3408V16.465C88.5167 16.759 88.9318 17.5373 88.8972 18.4021L87.7557 18.3848C87.5136 17.693 86.9083 17.2087 86.0954 17.0184V18.1426C86.4932 18.2983 86.7872 18.6096 86.7872 19.1285C86.7872 19.5781 86.424 19.924 86.0954 19.9932V33.4489C86.5105 33.103 87.012 32.9819 87.5309 32.9819C88.0324 32.9819 88.534 33.1721 89.001 33.4489L87.9287 34.452C88.5686 35.213 87.8941 36.3717 87.2023 36.7522C86.4586 37.15 86.8564 37.8418 87.3925 37.8418C87.5655 37.8418 87.7384 37.7727 87.9114 37.617C88.3611 37.2019 88.9491 36.9944 89.5198 36.9944C90.7305 36.9944 91.9239 37.9283 91.7682 39.8654L90.8343 39.3465C90.523 40.3669 89.7965 40.7993 89.122 40.7993C88.8107 40.7993 88.5167 40.7128 88.2919 40.5399C87.773 40.1594 87.2369 39.7616 86.8737 39.7616C86.7526 39.7616 86.6315 39.8135 86.5624 39.9173C86.2856 40.2978 86.5797 40.6782 87.5655 41.1625C89.2258 41.9927 89.5544 44.3794 87.3752 45.0193L87.012 45.0539L86.7353 43.4801C86.6142 43.5147 86.4932 43.532 86.3721 43.532C86.2683 43.532 86.1646 43.5147 86.0608 43.4974V47.2158C86.0608 50.8997 87.3233 53.9782 89.3815 56.4515C89.3988 56.4687 89.4161 56.486 89.4161 56.5033C89.4852 56.5898 89.5717 56.6763 89.6409 56.7628C89.6582 56.7801 89.6755 56.7974 89.6928 56.8146C89.7793 56.9184 89.8657 57.0049 89.9522 57.1087C89.9522 57.1087 89.9522 57.126 89.9695 57.126C90.056 57.2297 90.1598 57.3162 90.2462 57.42L90.2635 57.4373C90.3846 57.5065 90.4884 57.5929 90.5921 57.6794C90.7997 57.8524 91.0072 58.0599 91.1802 58.302C92.5119 59.4781 94.0685 60.4639 95.7461 61.2941C95.9363 61.3979 96.1266 61.5016 96.3341 61.5881C99.1014 62.9717 103.148 64.4764 110.222 64.4764C117.296 64.4764 121.343 62.9717 124.11 61.5881C124.318 61.4843 124.508 61.3806 124.698 61.2941C126.359 60.4812 127.881 59.4954 129.212 58.3539C129.247 58.302 129.281 58.2501 129.316 58.1983C129.333 58.181 129.351 58.1637 129.368 58.1291C129.385 58.1118 129.403 58.0772 129.437 58.0599C129.454 58.0253 129.489 58.008 129.506 57.9734C129.524 57.9561 129.524 57.9388 129.541 57.9388C129.575 57.9042 129.61 57.8697 129.645 57.8351L129.662 57.8178C129.697 57.7832 129.731 57.7486 129.766 57.714C129.766 57.714 129.766 57.714 129.783 57.6967C129.818 57.6621 129.869 57.6275 129.904 57.5929C129.991 57.5238 130.077 57.4719 130.163 57.42C130.181 57.4027 130.198 57.4027 130.215 57.3854C132.792 54.7565 134.401 51.3494 134.401 47.1812V43.5147C134.297 43.5492 134.193 43.5665 134.072 43.5665C134.003 43.5665 133.882 43.5492 133.761 43.5147Z",fill:"#CC0000"}),K.jsx("path",{d:"M11.9378 1H0V99.487H11.9378V1Z",fill:"#FFCC00"})]}),K.jsx("defs",{children:K.jsx("clipPath",{id:"clip0_908_6292",children:K.jsx("rect",{width:"192",height:"100",fill:"white"})})})]}))});a3.displayName="LogoImage";var u3=["children","className"];function lg(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function cg(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?lg(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):lg(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var l3=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=It(r,u3);return K.jsx("mark",cg(cg({ref:a,className:wt("utrecht-mark",s)},c),{},{children:o}))});l3.displayName="Mark";var c3=["children","className"];function hg(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function fg(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?hg(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):hg(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var h3=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=It(r,c3);return K.jsx("pre",fg(fg({ref:a,className:wt("utrecht-multiline-data","utrecht-multiline-data--html-pre",s)},c),{},{children:o}))});h3.displayName="MultilineData";var f3=["children","className","value"];function dg(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function gg(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?dg(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):dg(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var d3=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=r.value,f=It(r,f3);return K.jsx("data",gg(gg({value:typeof c=="string"||typeof c=="number"?String(c):void 0},f),{},{ref:a,className:wt("utrecht-number-data",s),children:o}))});d3.displayName="NumberData";var g3=["children","className"];function mg(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function pg(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?mg(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):mg(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var m3=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=It(r,g3);return K.jsx("ol",pg(pg({},c),{},{ref:a,className:wt("utrecht-ordered-list",s),children:o}))});m3.displayName="OrderedList";var p3=["children","className"];function vg(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function yg(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?vg(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):vg(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var v3=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=It(r,p3);return K.jsx("li",yg(yg({},c),{},{ref:a,className:wt("utrecht-ordered-list__item",s),children:o}))});v3.displayName="OrderedListItem";var y3=["children","className"];function Cg(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function _g(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?Cg(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):Cg(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var C3=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=It(r,y3);return K.jsx("div",_g(_g({},c),{},{ref:a,className:wt("utrecht-page",s),children:o}))});C3.displayName="Page";var _3=["children","className"],b3=["children","className"];function bg(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function gu(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?bg(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):bg(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var x3=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=It(r,_3);return K.jsx("div",gu(gu({},c),{},{ref:a,className:wt("utrecht-page-content",s),children:o}))});x3.displayName="PageContent";var E3=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=It(r,b3);return K.jsx("main",gu(gu({},c),{},{ref:a,className:wt("utrecht-page-content__main",s),children:o}))});E3.displayName="PageContentMain";var w3=["children","className"];function xg(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function Eg(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?xg(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):xg(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var O3=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=It(r,w3);return K.jsx("footer",Eg(Eg({},c),{},{ref:a,className:wt("utrecht-page-footer",s),children:o}))});O3.displayName="PageFooter";var N3=["children","className"];function wg(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function Og(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?wg(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):wg(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var S3=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=It(r,N3);return K.jsx("header",Og(Og({},c),{},{ref:a,className:wt("utrecht-page-header",s),children:o}))});S3.displayName="PageHeader";var L3=["children","className","lead","small"];function Ng(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function Sg(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?Ng(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):Ng(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var wn=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=r.lead,f=r.small,g=It(r,L3);return K.jsx("p",Sg(Sg({},g),{},{ref:a,className:wt("utrecht-paragraph",c&&"utrecht-paragraph--lead",f&&"utrecht-paragraph--small",s),children:c?K.jsx("b",{className:"utrecht-paragraph__b",children:o}):f?K.jsx("small",{className:"utrecht-paragraph__small",children:o}):o}))});wn.displayName="Paragraph";var I3=["loading","className"];function Lg(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function P3(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?Lg(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):Lg(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var T3=N.forwardRef(function(r,a){var o=r.loading,s=r.className,c=It(r,I3);return K.jsx("span",P3({ref:a,className:wt("utrecht-data-placeholder",{"utrecht-data-placeholder--loading":o},s)},c))});T3.displayName="DataPlaceholder";var M3=["children","className"];function Ig(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function Pg(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?Ig(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):Ig(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var A3=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=It(r,M3);return K.jsx("p",Pg(Pg({},c),{},{ref:a,className:wt("utrecht-pre-heading",s),children:o}))});A3.displayName="PreHeading";var D3=["children","className","dateTime","value"];function Tg(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function Us(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?Tg(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):Tg(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var R3=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=r.dateTime,f=r.value,g=It(r,D3),m=Us({children:K.jsx("bdi",{translate:"no",children:o}),className:wt("utrecht-preserve-data",s)},g);return typeof c<"u"?K.jsx("time",Us(Us({},m),{},{dateTime:c,ref:a})):typeof f<"u"?K.jsx("data",Us(Us({},m),{},{value:f,ref:a})):K.jsx("bdi",Us(Us({translate:"no",ref:a},m),{},{children:o}))});R3.displayName="PreserveData";var j3=["disabled","required","className","invalid"];function Mg(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function k3(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?Mg(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):Mg(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var F3=N.forwardRef(function(r,a){var o=r.disabled,s=r.required,c=r.className,f=r.invalid,g=It(r,j3);return K.jsx("input",k3({type:"radio","aria-invalid":f||void 0,disabled:o,required:s,ref:a,className:wt("utrecht-radio-button","utrecht-radio-button--html-input",o&&"utrecht-radio-button--disabled",f&&"utrecht-radio-button--invalid",c)},g))});F3.displayName="RadioButton";var B3=["className","children"];function Ag(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function Dg(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?Ag(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):Ag(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var z3=N.forwardRef(function(r,a){var o=r.className,s=r.children,c=It(r,B3);return K.jsx("div",Dg(Dg({},c),{},{ref:a,className:wt("utrecht-rich-text",o),children:s}))});z3.displayName="RichText";var G3=["busy","invalid","required","className","noscript","children"],q3=["disabled","invalid","value","children","className"];function Rg(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function mu(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?Rg(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):Rg(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var jg=N.forwardRef(function(r,a){var o=r.busy,s=r.invalid,c=r.required,f=r.className,g=r.noscript,m=r.children,y=It(r,G3);return K.jsx("select",mu(mu({"aria-busy":o||void 0,"aria-invalid":s||void 0,required:g?c:!1,"aria-required":g?void 0:c||void 0,className:wt("utrecht-select","utrecht-select--html-select",o&&"utrecht-select--busy",s&&"utrecht-select--invalid",c&&"utrecht-select--required",f),ref:a},y),{},{children:m}))});jg.displayName="Select";var Nl=N.forwardRef(function(r,a){var o=r.disabled,s=r.invalid,c=r.value,f=r.children,g=r.className,m=It(r,q3);return K.jsx("option",mu(mu({},m),{},{ref:a,disabled:o,value:c,className:wt("utrecht-select__option",o&&"utrecht-select__option--disabled",s&&"utrecht-select__option--invalid",g),children:f}))});Nl.displayName="SelectOption";var V3=["className","children"];function kg(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function Fg(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?kg(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):kg(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var U3=N.forwardRef(function(r,a){var o=r.className;r.children;var s=It(r,V3);return K.jsx("hr",Fg(Fg({},s),{},{ref:a,className:wt("utrecht-separator",o)}))});U3.displayName="Separator";var H3=["children","className"];function Bg(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function zg(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?Bg(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):Bg(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var Z3=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=It(r,H3);return K.jsx("p",{children:K.jsx("a",zg(zg({ref:a},c),{},{className:wt("utrecht-skip-link","utrecht-skip-link--visible-on-focus",s),children:o}))})});Z3.displayName="SkipLink";var W3=["aside","children","className","type"];function Gg(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function _o(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?Gg(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):Gg(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var Y3=N.forwardRef(function(r,a){var o=r.aside,s=r.children,c=r.className,f=r.type,g=It(r,W3),m=_o(_o({},g),{},{ref:a,className:wt("utrecht-spotlight-section",{"utrecht-spotlight-section--info":f==="info","utrecht-spotlight-section--warning":f==="warning"},c)});return o?K.jsx("aside",_o(_o({},m),{},{children:s})):K.jsx("section",_o(_o({},m),{},{children:s}))});Y3.displayName="SpotlightSection";var X3=["className","status"];function qg(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function Vg(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?qg(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):qg(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var K3=N.forwardRef(function(r,a){var o=r.className,s=r.status,c=It(r,X3);return K.jsx("span",Vg(Vg({className:wt("utrecht-badge-status","utrecht-badge-status--".concat(s||"neutral"),o)},c),{},{ref:a}))});K3.displayName="StatusBadge";var J3=["children","className"];function Ug(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function Hg(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?Ug(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):Ug(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var Q3=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=It(r,J3);return K.jsx("strong",Hg(Hg({ref:a,className:wt("utrecht-emphasis","utrecht-emphasis--strong",s)},c),{},{children:o}))});Q3.displayName="Strong";var $3=["children","className"];function Zg(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function Wg(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?Zg(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):Zg(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var t5=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=It(r,$3);return K.jsx("div",Wg(Wg({},c),{},{ref:a,className:wt("utrecht-surface",s),children:o}))});t5.displayName="Surface";var e5=["overflowInline","children","className"];function Yg(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function Xg(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?Yg(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):Yg(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var n5=N.forwardRef(function(r,a){var o=r.overflowInline,s=r.children,c=r.className,f=It(r,e5);return K.jsx("div",Xg(Xg({ref:a,className:wt("utrecht-table-container",{"utrecht-table-container--overflow-inline":o},c)},f),{},{children:s}))});n5.displayName="TableContainer";var r5=["busy","children","className"];function Kg(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function Jg(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?Kg(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):Kg(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var i5=N.forwardRef(function(r,a){var o=r.busy,s=r.children,c=r.className,f=It(r,r5);return K.jsx("table",Jg(Jg({"aria-busy":o},f),{},{ref:a,className:wt("utrecht-table",{"utrecht-table--busy":o},c),children:s}))});i5.displayName="Table";var s5=["children","className"];function Qg(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function $g(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?Qg(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):Qg(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var o5=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=It(r,s5);return K.jsx("tbody",$g($g({},c),{},{ref:a,className:wt("utrecht-table__body",s),children:o}))});o5.displayName="TableBody";var a5=["children","className"];function t1(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function e1(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?t1(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):t1(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var u5=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=It(r,a5);return K.jsx("caption",e1(e1({},c),{},{ref:a,className:wt("utrecht-table__caption",s),children:o}))});u5.displayName="TableCaption";var l5=["children","className","numericColumn","selected"];function n1(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function r1(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?n1(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):n1(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var c5=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=r.numericColumn,f=r.selected,g=It(r,l5);return K.jsx("td",r1(r1({"aria-selected":f?!0:void 0},g),{},{ref:a,className:wt("utrecht-table__cell",{"utrecht-table__cell--selected":f,"utrecht-table__cell--numeric-column":c},s),children:o}))});c5.displayName="TableCell";var h5=["children","className","sticky"];function i1(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function s1(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?i1(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):i1(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var f5=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=r.sticky,f=It(r,h5);return K.jsx("tfoot",s1(s1({},f),{},{ref:a,className:wt("utrecht-table__footer",{"utrecht-table__footer--sticky":c},s),children:o}))});f5.displayName="TableFooter";var d5=["children","className","sticky"];function o1(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function a1(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?o1(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):o1(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var g5=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=r.sticky,f=It(r,d5);return K.jsx("thead",a1(a1({},f),{},{ref:a,className:wt("utrecht-table__header",{"utrecht-table__header--sticky":c},s),children:o}))});g5.displayName="TableHeader";var m5=["children","className","numericColumn","selected","sticky","scope"];function u1(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function l1(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?u1(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):u1(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var p5=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=r.numericColumn,f=r.selected,g=r.sticky,m=r.scope,y=It(r,m5);return K.jsx("th",l1(l1({"aria-selected":f?!0:void 0,scope:m},y),{},{ref:a,className:wt("utrecht-table__header-cell",{"utrecht-table__header-cell--numeric-column":c,"utrecht-table__header-cell--selected":f,"utrecht-table__header-cell--sticky-inline":g&&m==="row","utrecht-table__header-cell--sticky-block":g&&m==="col"},s),children:o}))});p5.displayName="TableHeaderCell";var v5=["children","className","selected"];function c1(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function h1(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?c1(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):c1(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var y5=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=r.selected,f=It(r,v5);return K.jsx("tr",h1(h1({"aria-selected":c?!0:void 0},f),{},{ref:a,className:wt("utrecht-table__row",{"utrecht-table__row--selected":c},s),children:o}))});y5.displayName="TableRow";var C5=["dir","disabled","invalid","readOnly","required","className"];function f1(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function d1(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?f1(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):f1(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var _5=N.forwardRef(function(r,a){var o=r.dir,s=r.disabled,c=r.invalid,f=r.readOnly,g=r.required,m=r.className,y=It(r,C5);return K.jsx("textarea",d1(d1({},y),{},{ref:a,className:wt("utrecht-textarea","utrecht-textarea--html-textarea",s&&"utrecht-textarea--disabled",c&&"utrecht-textarea--invalid",f&&"utrecht-textarea--readonly",g&&"utrecht-textarea--required",m),dir:o??"auto",disabled:s,readOnly:f,required:g,"aria-invalid":c||void 0}))});_5.displayName="Textarea";var b5=["children","className"];function g1(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function m1(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?g1(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):g1(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var x5=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=It(r,b5);return K.jsx("bdi",m1(m1({translate:"no"},c),{},{ref:a,className:wt("utrecht-url-data",s),children:o}))});x5.displayName="URLData";var E5=["children","className"];function p1(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function v1(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?p1(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):p1(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var w5=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=It(r,E5);return K.jsx("ul",v1(v1({role:"list"},c),{},{ref:a,className:wt("utrecht-unordered-list",s),children:o}))});w5.displayName="UnorderedList";var O5=["children","className"];function y1(r,a){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),o.push.apply(o,s)}return o}function C1(r){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?y1(Object(o),!0).forEach(function(s){At(r,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):y1(Object(o)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(o,s))})}return r}var N5=N.forwardRef(function(r,a){var o=r.children,s=r.className,c=It(r,O5);return K.jsx("li",C1(C1({},c),{},{ref:a,className:wt("utrecht-unordered-list__item",s),children:o}))});N5.displayName="UnorderedListItem",N.forwardRef((r,a)=>N.createElement(tr,{ref:a,...r,appearance:"primary-action-button",className:`${r.className}`},r.icon&&!r.iconBack?N.createElement("i",{className:r.icon}):null,r.children,r.icon&&r.iconBack?N.createElement("i",{className:r.icon}):null)),N.forwardRef((r,a)=>N.createElement(tr,{ref:a,...r,appearance:"secondary-action-button",className:`${r.className}`})),N.forwardRef((r,a)=>N.createElement(tr,{ref:a,...r,appearance:"subtle-button",className:`${r.className}`})),N.forwardRef((r,a)=>N.createElement(tr,{ref:a,...r,appearance:"primary-action-button",className:`${r.className}`}));function ur({text:r,description:a,icon:o,variant:s="regular",iconOnly:c=!1}){return N.createElement("div",{className:`icon ${r===void 0||c===!0?"no-label":""}`,"aria-hidden":c?"true":"false"},N.createElement("i",{className:`${o} ${s}`}),N.createElement("p",null,a?N.createElement("span",{className:"sr-only"},a):null,r))}const Hs=N.forwardRef((r,a)=>N.createElement(tr,{appearance:r.className,ref:a,...r,className:"osc-icon-button"},r.icon?N.createElement(ur,{icon:r.icon,text:r.text,iconOnly:r.iconOnly}):null,r.children));function Kn(r,a,{checkForDefaultPrevented:o=!0}={}){return function(c){if(r==null||r(c),o===!1||!c.defaultPrevented)return a==null?void 0:a(c)}}function _1(r,a){if(typeof r=="function")return r(a);r!=null&&(r.current=a)}function ca(...r){return a=>{let o=!1;const s=r.map(c=>{const f=_1(c,a);return!o&&typeof f=="function"&&(o=!0),f});if(o)return()=>{for(let c=0;c<s.length;c++){const f=s[c];typeof f=="function"?f():_1(r[c],null)}}}}function Oi(...r){return at.useCallback(ca(...r),r)}function S5(r,a){const o=at.createContext(a),s=f=>{const{children:g,...m}=f,y=at.useMemo(()=>m,Object.values(m));return K.jsx(o.Provider,{value:y,children:g})};s.displayName=r+"Provider";function c(f){const g=at.useContext(o);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${r}\``)}return[s,c]}function pu(r,a=[]){let o=[];function s(f,g){const m=at.createContext(g),y=o.length;o=[...o,g];const C=b=>{var G;const{scope:w,children:S,...P}=b,O=((G=w==null?void 0:w[r])==null?void 0:G[y])||m,q=at.useMemo(()=>P,Object.values(P));return K.jsx(O.Provider,{value:q,children:S})};C.displayName=f+"Provider";function _(b,w){var O;const S=((O=w==null?void 0:w[r])==null?void 0:O[y])||m,P=at.useContext(S);if(P)return P;if(g!==void 0)return g;throw new Error(`\`${b}\` must be used within \`${f}\``)}return[C,_]}const c=()=>{const f=o.map(g=>at.createContext(g));return function(m){const y=(m==null?void 0:m[r])||f;return at.useMemo(()=>({[`__scope${r}`]:{...m,[r]:y}}),[m,y])}};return c.scopeName=r,[s,L5(c,...a)]}function L5(...r){const a=r[0];if(r.length===1)return a;const o=()=>{const s=r.map(c=>({useScope:c(),scopeName:c.scopeName}));return function(f){const g=s.reduce((m,{useScope:y,scopeName:C})=>{const b=y(f)[`__scope${C}`];return{...m,...b}},{});return at.useMemo(()=>({[`__scope${a.scopeName}`]:g}),[g])}};return o.scopeName=a.scopeName,o}var ha=globalThis!=null&&globalThis.document?at.useLayoutEffect:()=>{},I5=at[" useInsertionEffect ".trim().toString()]||ha;function Sl({prop:r,defaultProp:a,onChange:o=()=>{},caller:s}){const[c,f,g]=P5({defaultProp:a,onChange:o}),m=r!==void 0,y=m?r:c;{const _=at.useRef(r!==void 0);at.useEffect(()=>{const b=_.current;b!==m&&console.warn(`${s} is changing from ${b?"controlled":"uncontrolled"} to ${m?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),_.current=m},[m,s])}const C=at.useCallback(_=>{var b;if(m){const w=T5(_)?_(r):_;w!==r&&((b=g.current)==null||b.call(g,w))}else f(_)},[m,r,f,g]);return[y,C]}function P5({defaultProp:r,onChange:a}){const[o,s]=at.useState(r),c=at.useRef(o),f=at.useRef(a);return I5(()=>{f.current=a},[a]),at.useEffect(()=>{var g;c.current!==o&&((g=f.current)==null||g.call(f,o),c.current=o)},[o,c]),[o,s,f]}function T5(r){return typeof r=="function"}function M5(r){const a=A5(r),o=at.forwardRef((s,c)=>{const{children:f,...g}=s,m=at.Children.toArray(f),y=m.find(R5);if(y){const C=y.props.children,_=m.map(b=>b===y?at.Children.count(C)>1?at.Children.only(null):at.isValidElement(C)?C.props.children:null:b);return K.jsx(a,{...g,ref:c,children:at.isValidElement(C)?at.cloneElement(C,void 0,_):null})}return K.jsx(a,{...g,ref:c,children:f})});return o.displayName=`${r}.Slot`,o}function A5(r){const a=at.forwardRef((o,s)=>{const{children:c,...f}=o;if(at.isValidElement(c)){const g=k5(c),m=j5(f,c.props);return c.type!==at.Fragment&&(m.ref=s?ca(s,g):g),at.cloneElement(c,m)}return at.Children.count(c)>1?at.Children.only(null):null});return a.displayName=`${r}.SlotClone`,a}var D5=Symbol("radix.slottable");function R5(r){return at.isValidElement(r)&&typeof r.type=="function"&&"__radixId"in r.type&&r.type.__radixId===D5}function j5(r,a){const o={...a};for(const s in a){const c=r[s],f=a[s];/^on[A-Z]/.test(s)?c&&f?o[s]=(...m)=>{const y=f(...m);return c(...m),y}:c&&(o[s]=c):s==="style"?o[s]={...c,...f}:s==="className"&&(o[s]=[c,f].filter(Boolean).join(" "))}return{...r,...o}}function k5(r){var s,c;let a=(s=Object.getOwnPropertyDescriptor(r.props,"ref"))==null?void 0:s.get,o=a&&"isReactWarning"in a&&a.isReactWarning;return o?r.ref:(a=(c=Object.getOwnPropertyDescriptor(r,"ref"))==null?void 0:c.get,o=a&&"isReactWarning"in a&&a.isReactWarning,o?r.props.ref:r.props.ref||r.ref)}var F5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],lr=F5.reduce((r,a)=>{const o=M5(`Primitive.${a}`),s=at.forwardRef((c,f)=>{const{asChild:g,...m}=c,y=g?o:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),K.jsx(y,{...m,ref:f})});return s.displayName=`Primitive.${a}`,{...r,[a]:s}},{});function B5(r,a){r&&Rv.flushSync(()=>r.dispatchEvent(a))}function b1(r){const a=z5(r),o=at.forwardRef((s,c)=>{const{children:f,...g}=s,m=at.Children.toArray(f),y=m.find(q5);if(y){const C=y.props.children,_=m.map(b=>b===y?at.Children.count(C)>1?at.Children.only(null):at.isValidElement(C)?C.props.children:null:b);return K.jsx(a,{...g,ref:c,children:at.isValidElement(C)?at.cloneElement(C,void 0,_):null})}return K.jsx(a,{...g,ref:c,children:f})});return o.displayName=`${r}.Slot`,o}function z5(r){const a=at.forwardRef((o,s)=>{const{children:c,...f}=o;if(at.isValidElement(c)){const g=U5(c),m=V5(f,c.props);return c.type!==at.Fragment&&(m.ref=s?ca(s,g):g),at.cloneElement(c,m)}return at.Children.count(c)>1?at.Children.only(null):null});return a.displayName=`${r}.SlotClone`,a}var G5=Symbol("radix.slottable");function q5(r){return at.isValidElement(r)&&typeof r.type=="function"&&"__radixId"in r.type&&r.type.__radixId===G5}function V5(r,a){const o={...a};for(const s in a){const c=r[s],f=a[s];/^on[A-Z]/.test(s)?c&&f?o[s]=(...m)=>{const y=f(...m);return c(...m),y}:c&&(o[s]=c):s==="style"?o[s]={...c,...f}:s==="className"&&(o[s]=[c,f].filter(Boolean).join(" "))}return{...r,...o}}function U5(r){var s,c;let a=(s=Object.getOwnPropertyDescriptor(r.props,"ref"))==null?void 0:s.get,o=a&&"isReactWarning"in a&&a.isReactWarning;return o?r.ref:(a=(c=Object.getOwnPropertyDescriptor(r,"ref"))==null?void 0:c.get,o=a&&"isReactWarning"in a&&a.isReactWarning,o?r.props.ref:r.props.ref||r.ref)}function H5(r){const a=r+"CollectionProvider",[o,s]=pu(a),[c,f]=o(a,{collectionRef:{current:null},itemMap:new Map}),g=O=>{const{scope:q,children:G}=O,k=N.useRef(null),A=N.useRef(new Map).current;return K.jsx(c,{scope:q,itemMap:A,collectionRef:k,children:G})};g.displayName=a;const m=r+"CollectionSlot",y=b1(m),C=N.forwardRef((O,q)=>{const{scope:G,children:k}=O,A=f(m,G),R=Oi(q,A.collectionRef);return K.jsx(y,{ref:R,children:k})});C.displayName=m;const _=r+"CollectionItemSlot",b="data-radix-collection-item",w=b1(_),S=N.forwardRef((O,q)=>{const{scope:G,children:k,...A}=O,R=N.useRef(null),j=Oi(q,R),W=f(_,G);return N.useEffect(()=>(W.itemMap.set(R,{ref:R,...A}),()=>void W.itemMap.delete(R))),K.jsx(w,{[b]:"",ref:j,children:k})});S.displayName=_;function P(O){const q=f(r+"CollectionConsumer",O);return N.useCallback(()=>{const k=q.collectionRef.current;if(!k)return[];const A=Array.from(k.querySelectorAll(`[${b}]`));return Array.from(q.itemMap.values()).sort((W,F)=>A.indexOf(W.ref.current)-A.indexOf(F.ref.current))},[q.collectionRef,q.itemMap])}return[{Provider:g,Slot:C,ItemSlot:S},P,s]}var Z5=at.createContext(void 0);function x1(r){const a=at.useContext(Z5);return r||a||"ltr"}function bo(r){const a=at.useRef(r);return at.useEffect(()=>{a.current=r}),at.useMemo(()=>(...o)=>{var s;return(s=a.current)==null?void 0:s.call(a,...o)},[])}function W5(r,a=globalThis==null?void 0:globalThis.document){const o=bo(r);at.useEffect(()=>{const s=c=>{c.key==="Escape"&&o(c)};return a.addEventListener("keydown",s,{capture:!0}),()=>a.removeEventListener("keydown",s,{capture:!0})},[o,a])}var Y5="DismissableLayer",Ll="dismissableLayer.update",X5="dismissableLayer.pointerDownOutside",K5="dismissableLayer.focusOutside",E1,w1=at.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),O1=at.forwardRef((r,a)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:g,onDismiss:m,...y}=r,C=at.useContext(w1),[_,b]=at.useState(null),w=(_==null?void 0:_.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,S]=at.useState({}),P=Oi(a,F=>b(F)),O=Array.from(C.layers),[q]=[...C.layersWithOutsidePointerEventsDisabled].slice(-1),G=O.indexOf(q),k=_?O.indexOf(_):-1,A=C.layersWithOutsidePointerEventsDisabled.size>0,R=k>=G,j=$5(F=>{const H=F.target,U=[...C.branches].some(it=>it.contains(H));!R||U||(c==null||c(F),g==null||g(F),F.defaultPrevented||m==null||m())},w),W=ty(F=>{const H=F.target;[...C.branches].some(it=>it.contains(H))||(f==null||f(F),g==null||g(F),F.defaultPrevented||m==null||m())},w);return W5(F=>{k===C.layers.size-1&&(s==null||s(F),!F.defaultPrevented&&m&&(F.preventDefault(),m()))},w),at.useEffect(()=>{if(_)return o&&(C.layersWithOutsidePointerEventsDisabled.size===0&&(E1=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),C.layersWithOutsidePointerEventsDisabled.add(_)),C.layers.add(_),N1(),()=>{o&&C.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=E1)}},[_,w,o,C]),at.useEffect(()=>()=>{_&&(C.layers.delete(_),C.layersWithOutsidePointerEventsDisabled.delete(_),N1())},[_,C]),at.useEffect(()=>{const F=()=>S({});return document.addEventListener(Ll,F),()=>document.removeEventListener(Ll,F)},[]),K.jsx(lr.div,{...y,ref:P,style:{pointerEvents:A?R?"auto":"none":void 0,...r.style},onFocusCapture:Kn(r.onFocusCapture,W.onFocusCapture),onBlurCapture:Kn(r.onBlurCapture,W.onBlurCapture),onPointerDownCapture:Kn(r.onPointerDownCapture,j.onPointerDownCapture)})});O1.displayName=Y5;var J5="DismissableLayerBranch",Q5=at.forwardRef((r,a)=>{const o=at.useContext(w1),s=at.useRef(null),c=Oi(a,s);return at.useEffect(()=>{const f=s.current;if(f)return o.branches.add(f),()=>{o.branches.delete(f)}},[o.branches]),K.jsx(lr.div,{...r,ref:c})});Q5.displayName=J5;function $5(r,a=globalThis==null?void 0:globalThis.document){const o=bo(r),s=at.useRef(!1),c=at.useRef(()=>{});return at.useEffect(()=>{const f=m=>{if(m.target&&!s.current){let y=function(){S1(X5,o,C,{discrete:!0})};const C={originalEvent:m};m.pointerType==="touch"?(a.removeEventListener("click",c.current),c.current=y,a.addEventListener("click",c.current,{once:!0})):y()}else a.removeEventListener("click",c.current);s.current=!1},g=window.setTimeout(()=>{a.addEventListener("pointerdown",f)},0);return()=>{window.clearTimeout(g),a.removeEventListener("pointerdown",f),a.removeEventListener("click",c.current)}},[a,o]),{onPointerDownCapture:()=>s.current=!0}}function ty(r,a=globalThis==null?void 0:globalThis.document){const o=bo(r),s=at.useRef(!1);return at.useEffect(()=>{const c=f=>{f.target&&!s.current&&S1(K5,o,{originalEvent:f},{discrete:!1})};return a.addEventListener("focusin",c),()=>a.removeEventListener("focusin",c)},[a,o]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function N1(){const r=new CustomEvent(Ll);document.dispatchEvent(r)}function S1(r,a,o,{discrete:s}){const c=o.originalEvent.target,f=new CustomEvent(r,{bubbles:!1,cancelable:!0,detail:o});a&&c.addEventListener(r,a,{once:!0}),s?B5(c,f):c.dispatchEvent(f)}var Il=0;function ey(){at.useEffect(()=>{const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",r[0]??L1()),document.body.insertAdjacentElement("beforeend",r[1]??L1()),Il++,()=>{Il===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(a=>a.remove()),Il--}},[])}function L1(){const r=document.createElement("span");return r.setAttribute("data-radix-focus-guard",""),r.tabIndex=0,r.style.outline="none",r.style.opacity="0",r.style.position="fixed",r.style.pointerEvents="none",r}var Pl="focusScope.autoFocusOnMount",Tl="focusScope.autoFocusOnUnmount",I1={bubbles:!1,cancelable:!0},ny="FocusScope",P1=at.forwardRef((r,a)=>{const{loop:o=!1,trapped:s=!1,onMountAutoFocus:c,onUnmountAutoFocus:f,...g}=r,[m,y]=at.useState(null),C=bo(c),_=bo(f),b=at.useRef(null),w=Oi(a,O=>y(O)),S=at.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;at.useEffect(()=>{if(s){let O=function(A){if(S.paused||!m)return;const R=A.target;m.contains(R)?b.current=R:ps(b.current,{select:!0})},q=function(A){if(S.paused||!m)return;const R=A.relatedTarget;R!==null&&(m.contains(R)||ps(b.current,{select:!0}))},G=function(A){if(document.activeElement===document.body)for(const j of A)j.removedNodes.length>0&&ps(m)};document.addEventListener("focusin",O),document.addEventListener("focusout",q);const k=new MutationObserver(G);return m&&k.observe(m,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",O),document.removeEventListener("focusout",q),k.disconnect()}}},[s,m,S.paused]),at.useEffect(()=>{if(m){A1.add(S);const O=document.activeElement;if(!m.contains(O)){const G=new CustomEvent(Pl,I1);m.addEventListener(Pl,C),m.dispatchEvent(G),G.defaultPrevented||(ry(uy(T1(m)),{select:!0}),document.activeElement===O&&ps(m))}return()=>{m.removeEventListener(Pl,C),setTimeout(()=>{const G=new CustomEvent(Tl,I1);m.addEventListener(Tl,_),m.dispatchEvent(G),G.defaultPrevented||ps(O??document.body,{select:!0}),m.removeEventListener(Tl,_),A1.remove(S)},0)}}},[m,C,_,S]);const P=at.useCallback(O=>{if(!o&&!s||S.paused)return;const q=O.key==="Tab"&&!O.altKey&&!O.ctrlKey&&!O.metaKey,G=document.activeElement;if(q&&G){const k=O.currentTarget,[A,R]=iy(k);A&&R?!O.shiftKey&&G===R?(O.preventDefault(),o&&ps(A,{select:!0})):O.shiftKey&&G===A&&(O.preventDefault(),o&&ps(R,{select:!0})):G===k&&O.preventDefault()}},[o,s,S.paused]);return K.jsx(lr.div,{tabIndex:-1,...g,ref:w,onKeyDown:P})});P1.displayName=ny;function ry(r,{select:a=!1}={}){const o=document.activeElement;for(const s of r)if(ps(s,{select:a}),document.activeElement!==o)return}function iy(r){const a=T1(r),o=M1(a,r),s=M1(a.reverse(),r);return[o,s]}function T1(r){const a=[],o=document.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const c=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||c?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)a.push(o.currentNode);return a}function M1(r,a){for(const o of r)if(!sy(o,{upTo:a}))return o}function sy(r,{upTo:a}){if(getComputedStyle(r).visibility==="hidden")return!0;for(;r;){if(a!==void 0&&r===a)return!1;if(getComputedStyle(r).display==="none")return!0;r=r.parentElement}return!1}function oy(r){return r instanceof HTMLInputElement&&"select"in r}function ps(r,{select:a=!1}={}){if(r&&r.focus){const o=document.activeElement;r.focus({preventScroll:!0}),r!==o&&oy(r)&&a&&r.select()}}var A1=ay();function ay(){let r=[];return{add(a){const o=r[0];a!==o&&(o==null||o.pause()),r=D1(r,a),r.unshift(a)},remove(a){var o;r=D1(r,a),(o=r[0])==null||o.resume()}}}function D1(r,a){const o=[...r],s=o.indexOf(a);return s!==-1&&o.splice(s,1),o}function uy(r){return r.filter(a=>a.tagName!=="A")}var ly=at[" useId ".trim().toString()]||(()=>{}),cy=0;function fa(r){const[a,o]=at.useState(ly());return ha(()=>{o(s=>s??String(cy++))},[r]),a?`radix-${a}`:""}var hy="Portal",R1=at.forwardRef((r,a)=>{var m;const{container:o,...s}=r,[c,f]=at.useState(!1);ha(()=>f(!0),[]);const g=o||c&&((m=globalThis==null?void 0:globalThis.document)==null?void 0:m.body);return g?eu.createPortal(K.jsx(lr.div,{...s,ref:a}),g):null});R1.displayName=hy;function fy(r,a){return at.useReducer((o,s)=>a[o][s]??o,r)}var da=r=>{const{present:a,children:o}=r,s=dy(a),c=typeof o=="function"?o({present:s.isPresent}):at.Children.only(o),f=Oi(s.ref,gy(c));return typeof o=="function"||s.isPresent?at.cloneElement(c,{ref:f}):null};da.displayName="Presence";function dy(r){const[a,o]=at.useState(),s=at.useRef(null),c=at.useRef(r),f=at.useRef("none"),g=r?"mounted":"unmounted",[m,y]=fy(g,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return at.useEffect(()=>{const C=vu(s.current);f.current=m==="mounted"?C:"none"},[m]),ha(()=>{const C=s.current,_=c.current;if(_!==r){const w=f.current,S=vu(C);r?y("MOUNT"):S==="none"||(C==null?void 0:C.display)==="none"?y("UNMOUNT"):y(_&&w!==S?"ANIMATION_OUT":"UNMOUNT"),c.current=r}},[r,y]),ha(()=>{if(a){let C;const _=a.ownerDocument.defaultView??window,b=S=>{const O=vu(s.current).includes(CSS.escape(S.animationName));if(S.target===a&&O&&(y("ANIMATION_END"),!c.current)){const q=a.style.animationFillMode;a.style.animationFillMode="forwards",C=_.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=q)})}},w=S=>{S.target===a&&(f.current=vu(s.current))};return a.addEventListener("animationstart",w),a.addEventListener("animationcancel",b),a.addEventListener("animationend",b),()=>{_.clearTimeout(C),a.removeEventListener("animationstart",w),a.removeEventListener("animationcancel",b),a.removeEventListener("animationend",b)}}else y("ANIMATION_END")},[a,y]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:at.useCallback(C=>{s.current=C?getComputedStyle(C):null,o(C)},[])}}function vu(r){return(r==null?void 0:r.animationName)||"none"}function gy(r){var s,c;let a=(s=Object.getOwnPropertyDescriptor(r.props,"ref"))==null?void 0:s.get,o=a&&"isReactWarning"in a&&a.isReactWarning;return o?r.ref:(a=(c=Object.getOwnPropertyDescriptor(r,"ref"))==null?void 0:c.get,o=a&&"isReactWarning"in a&&a.isReactWarning,o?r.props.ref:r.props.ref||r.ref)}var Ml="rovingFocusGroup.onEntryFocus",my={bubbles:!1,cancelable:!0},ga="RovingFocusGroup",[Al,j1,py]=H5(ga),[vy,k1]=pu(ga,[py]),[yy,Cy]=vy(ga),F1=at.forwardRef((r,a)=>K.jsx(Al.Provider,{scope:r.__scopeRovingFocusGroup,children:K.jsx(Al.Slot,{scope:r.__scopeRovingFocusGroup,children:K.jsx(_y,{...r,ref:a})})}));F1.displayName=ga;var _y=at.forwardRef((r,a)=>{const{__scopeRovingFocusGroup:o,orientation:s,loop:c=!1,dir:f,currentTabStopId:g,defaultCurrentTabStopId:m,onCurrentTabStopIdChange:y,onEntryFocus:C,preventScrollOnEntryFocus:_=!1,...b}=r,w=at.useRef(null),S=Oi(a,w),P=x1(f),[O,q]=Sl({prop:g,defaultProp:m??null,onChange:y,caller:ga}),[G,k]=at.useState(!1),A=bo(C),R=j1(o),j=at.useRef(!1),[W,F]=at.useState(0);return at.useEffect(()=>{const H=w.current;if(H)return H.addEventListener(Ml,A),()=>H.removeEventListener(Ml,A)},[A]),K.jsx(yy,{scope:o,orientation:s,dir:P,loop:c,currentTabStopId:O,onItemFocus:at.useCallback(H=>q(H),[q]),onItemShiftTab:at.useCallback(()=>k(!0),[]),onFocusableItemAdd:at.useCallback(()=>F(H=>H+1),[]),onFocusableItemRemove:at.useCallback(()=>F(H=>H-1),[]),children:K.jsx(lr.div,{tabIndex:G||W===0?-1:0,"data-orientation":s,...b,ref:S,style:{outline:"none",...r.style},onMouseDown:Kn(r.onMouseDown,()=>{j.current=!0}),onFocus:Kn(r.onFocus,H=>{const U=!j.current;if(H.target===H.currentTarget&&U&&!G){const it=new CustomEvent(Ml,my);if(H.currentTarget.dispatchEvent(it),!it.defaultPrevented){const Y=R().filter(V=>V.focusable),M=Y.find(V=>V.active),ot=Y.find(V=>V.id===O),Ct=[M,ot,...Y].filter(Boolean).map(V=>V.ref.current);G1(Ct,_)}}j.current=!1}),onBlur:Kn(r.onBlur,()=>k(!1))})})}),B1="RovingFocusGroupItem",z1=at.forwardRef((r,a)=>{const{__scopeRovingFocusGroup:o,focusable:s=!0,active:c=!1,tabStopId:f,children:g,...m}=r,y=fa(),C=f||y,_=Cy(B1,o),b=_.currentTabStopId===C,w=j1(o),{onFocusableItemAdd:S,onFocusableItemRemove:P,currentTabStopId:O}=_;return at.useEffect(()=>{if(s)return S(),()=>P()},[s,S,P]),K.jsx(Al.ItemSlot,{scope:o,id:C,focusable:s,active:c,children:K.jsx(lr.span,{tabIndex:b?0:-1,"data-orientation":_.orientation,...m,ref:a,onMouseDown:Kn(r.onMouseDown,q=>{s?_.onItemFocus(C):q.preventDefault()}),onFocus:Kn(r.onFocus,()=>_.onItemFocus(C)),onKeyDown:Kn(r.onKeyDown,q=>{if(q.key==="Tab"&&q.shiftKey){_.onItemShiftTab();return}if(q.target!==q.currentTarget)return;const G=Ey(q,_.orientation,_.dir);if(G!==void 0){if(q.metaKey||q.ctrlKey||q.altKey||q.shiftKey)return;q.preventDefault();let A=w().filter(R=>R.focusable).map(R=>R.ref.current);if(G==="last")A.reverse();else if(G==="prev"||G==="next"){G==="prev"&&A.reverse();const R=A.indexOf(q.currentTarget);A=_.loop?wy(A,R+1):A.slice(R+1)}setTimeout(()=>G1(A))}}),children:typeof g=="function"?g({isCurrentTabStop:b,hasTabStop:O!=null}):g})})});z1.displayName=B1;var by={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function xy(r,a){return a!=="rtl"?r:r==="ArrowLeft"?"ArrowRight":r==="ArrowRight"?"ArrowLeft":r}function Ey(r,a,o){const s=xy(r.key,o);if(!(a==="vertical"&&["ArrowLeft","ArrowRight"].includes(s))&&!(a==="horizontal"&&["ArrowUp","ArrowDown"].includes(s)))return by[s]}function G1(r,a=!1){const o=document.activeElement;for(const s of r)if(s===o||(s.focus({preventScroll:a}),document.activeElement!==o))return}function wy(r,a){return r.map((o,s)=>r[(a+s)%r.length])}var Oy=F1,Ny=z1,Sy=function(r){if(typeof document>"u")return null;var a=Array.isArray(r)?r[0]:r;return a.ownerDocument.body},xo=new WeakMap,yu=new WeakMap,Cu={},Dl=0,q1=function(r){return r&&(r.host||q1(r.parentNode))},Ly=function(r,a){return a.map(function(o){if(r.contains(o))return o;var s=q1(o);return s&&r.contains(s)?s:(console.error("aria-hidden",o,"in not contained inside",r,". Doing nothing"),null)}).filter(function(o){return!!o})},Iy=function(r,a,o,s){var c=Ly(a,Array.isArray(r)?r:[r]);Cu[o]||(Cu[o]=new WeakMap);var f=Cu[o],g=[],m=new Set,y=new Set(c),C=function(b){!b||m.has(b)||(m.add(b),C(b.parentNode))};c.forEach(C);var _=function(b){!b||y.has(b)||Array.prototype.forEach.call(b.children,function(w){if(m.has(w))_(w);else try{var S=w.getAttribute(s),P=S!==null&&S!=="false",O=(xo.get(w)||0)+1,q=(f.get(w)||0)+1;xo.set(w,O),f.set(w,q),g.push(w),O===1&&P&&yu.set(w,!0),q===1&&w.setAttribute(o,"true"),P||w.setAttribute(s,"true")}catch(G){console.error("aria-hidden: cannot operate on ",w,G)}})};return _(a),m.clear(),Dl++,function(){g.forEach(function(b){var w=xo.get(b)-1,S=f.get(b)-1;xo.set(b,w),f.set(b,S),w||(yu.has(b)||b.removeAttribute(s),yu.delete(b)),S||b.removeAttribute(o)}),Dl--,Dl||(xo=new WeakMap,xo=new WeakMap,yu=new WeakMap,Cu={})}},Py=function(r,a,o){o===void 0&&(o="data-aria-hidden");var s=Array.from(Array.isArray(r)?r:[r]),c=Sy(r);return c?(s.push.apply(s,Array.from(c.querySelectorAll("[aria-live], script"))),Iy(s,c,o,"aria-hidden")):function(){return null}},Ni=function(){return Ni=Object.assign||function(a){for(var o,s=1,c=arguments.length;s<c;s++){o=arguments[s];for(var f in o)Object.prototype.hasOwnProperty.call(o,f)&&(a[f]=o[f])}return a},Ni.apply(this,arguments)};function V1(r,a){var o={};for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&a.indexOf(s)<0&&(o[s]=r[s]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,s=Object.getOwnPropertySymbols(r);c<s.length;c++)a.indexOf(s[c])<0&&Object.prototype.propertyIsEnumerable.call(r,s[c])&&(o[s[c]]=r[s[c]]);return o}function Ty(r,a,o){if(o||arguments.length===2)for(var s=0,c=a.length,f;s<c;s++)(f||!(s in a))&&(f||(f=Array.prototype.slice.call(a,0,s)),f[s]=a[s]);return r.concat(f||Array.prototype.slice.call(a))}typeof SuppressedError=="function"&&SuppressedError;var _u="right-scroll-bar-position",bu="width-before-scroll-bar",My="with-scroll-bars-hidden",Ay="--removed-body-scroll-bar-size";function Rl(r,a){return typeof r=="function"?r(a):r&&(r.current=a),r}function Dy(r,a){var o=N.useState(function(){return{value:r,callback:a,facade:{get current(){return o.value},set current(s){var c=o.value;c!==s&&(o.value=s,o.callback(s,c))}}}})[0];return o.callback=a,o.facade}var Ry=typeof window<"u"?at.useLayoutEffect:at.useEffect,U1=new WeakMap;function jy(r,a){var o=Dy(null,function(s){return r.forEach(function(c){return Rl(c,s)})});return Ry(function(){var s=U1.get(o);if(s){var c=new Set(s),f=new Set(r),g=o.current;c.forEach(function(m){f.has(m)||Rl(m,null)}),f.forEach(function(m){c.has(m)||Rl(m,g)})}U1.set(o,r)},[r]),o}function ky(r){return r}function Fy(r,a){a===void 0&&(a=ky);var o=[],s=!1,c={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:r},useMedium:function(f){var g=a(f,s);return o.push(g),function(){o=o.filter(function(m){return m!==g})}},assignSyncMedium:function(f){for(s=!0;o.length;){var g=o;o=[],g.forEach(f)}o={push:function(m){return f(m)},filter:function(){return o}}},assignMedium:function(f){s=!0;var g=[];if(o.length){var m=o;o=[],m.forEach(f),g=o}var y=function(){var _=g;g=[],_.forEach(f)},C=function(){return Promise.resolve().then(y)};C(),o={push:function(_){g.push(_),C()},filter:function(_){return g=g.filter(_),o}}}};return c}function By(r){r===void 0&&(r={});var a=Fy(null);return a.options=Ni({async:!0,ssr:!1},r),a}var H1=function(r){var a=r.sideCar,o=V1(r,["sideCar"]);if(!a)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=a.read();if(!s)throw new Error("Sidecar medium not found");return at.createElement(s,Ni({},o))};H1.isSideCarExport=!0;function zy(r,a){return r.useMedium(a),H1}var Z1=By(),jl=function(){},xu=at.forwardRef(function(r,a){var o=at.useRef(null),s=at.useState({onScrollCapture:jl,onWheelCapture:jl,onTouchMoveCapture:jl}),c=s[0],f=s[1],g=r.forwardProps,m=r.children,y=r.className,C=r.removeScrollBar,_=r.enabled,b=r.shards,w=r.sideCar,S=r.noRelative,P=r.noIsolation,O=r.inert,q=r.allowPinchZoom,G=r.as,k=G===void 0?"div":G,A=r.gapMode,R=V1(r,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=w,W=jy([o,a]),F=Ni(Ni({},R),c);return at.createElement(at.Fragment,null,_&&at.createElement(j,{sideCar:Z1,removeScrollBar:C,shards:b,noRelative:S,noIsolation:P,inert:O,setCallbacks:f,allowPinchZoom:!!q,lockRef:o,gapMode:A}),g?at.cloneElement(at.Children.only(m),Ni(Ni({},F),{ref:W})):at.createElement(k,Ni({},F,{className:y,ref:W}),m))});xu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},xu.classNames={fullWidth:bu,zeroRight:_u};var Gy=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function qy(){if(!document)return null;var r=document.createElement("style");r.type="text/css";var a=Gy();return a&&r.setAttribute("nonce",a),r}function Vy(r,a){r.styleSheet?r.styleSheet.cssText=a:r.appendChild(document.createTextNode(a))}function Uy(r){var a=document.head||document.getElementsByTagName("head")[0];a.appendChild(r)}var Hy=function(){var r=0,a=null;return{add:function(o){r==0&&(a=qy())&&(Vy(a,o),Uy(a)),r++},remove:function(){r--,!r&&a&&(a.parentNode&&a.parentNode.removeChild(a),a=null)}}},Zy=function(){var r=Hy();return function(a,o){at.useEffect(function(){return r.add(a),function(){r.remove()}},[a&&o])}},W1=function(){var r=Zy(),a=function(o){var s=o.styles,c=o.dynamic;return r(s,c),null};return a},Wy={left:0,top:0,right:0,gap:0},kl=function(r){return parseInt(r||"",10)||0},Yy=function(r){var a=window.getComputedStyle(document.body),o=a[r==="padding"?"paddingLeft":"marginLeft"],s=a[r==="padding"?"paddingTop":"marginTop"],c=a[r==="padding"?"paddingRight":"marginRight"];return[kl(o),kl(s),kl(c)]},Xy=function(r){if(r===void 0&&(r="margin"),typeof window>"u")return Wy;var a=Yy(r),o=document.documentElement.clientWidth,s=window.innerWidth;return{left:a[0],top:a[1],right:a[2],gap:Math.max(0,s-o+a[2]-a[0])}},Ky=W1(),Eo="data-scroll-locked",Jy=function(r,a,o,s){var c=r.left,f=r.top,g=r.right,m=r.gap;return o===void 0&&(o="margin"),`
  .`.concat(My,` {
   overflow: hidden `).concat(s,`;
   padding-right: `).concat(m,"px ").concat(s,`;
  }
  body[`).concat(Eo,`] {
    overflow: hidden `).concat(s,`;
    overscroll-behavior: contain;
    `).concat([a&&"position: relative ".concat(s,";"),o==="margin"&&`
    padding-left: `.concat(c,`px;
    padding-top: `).concat(f,`px;
    padding-right: `).concat(g,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(m,"px ").concat(s,`;
    `),o==="padding"&&"padding-right: ".concat(m,"px ").concat(s,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(_u,` {
    right: `).concat(m,"px ").concat(s,`;
  }
  
  .`).concat(bu,` {
    margin-right: `).concat(m,"px ").concat(s,`;
  }
  
  .`).concat(_u," .").concat(_u,` {
    right: 0 `).concat(s,`;
  }
  
  .`).concat(bu," .").concat(bu,` {
    margin-right: 0 `).concat(s,`;
  }
  
  body[`).concat(Eo,`] {
    `).concat(Ay,": ").concat(m,`px;
  }
`)},Y1=function(){var r=parseInt(document.body.getAttribute(Eo)||"0",10);return isFinite(r)?r:0},Qy=function(){at.useEffect(function(){return document.body.setAttribute(Eo,(Y1()+1).toString()),function(){var r=Y1()-1;r<=0?document.body.removeAttribute(Eo):document.body.setAttribute(Eo,r.toString())}},[])},$y=function(r){var a=r.noRelative,o=r.noImportant,s=r.gapMode,c=s===void 0?"margin":s;Qy();var f=at.useMemo(function(){return Xy(c)},[c]);return at.createElement(Ky,{styles:Jy(f,!a,c,o?"":"!important")})},Fl=!1;if(typeof window<"u")try{var Eu=Object.defineProperty({},"passive",{get:function(){return Fl=!0,!0}});window.addEventListener("test",Eu,Eu),window.removeEventListener("test",Eu,Eu)}catch{Fl=!1}var wo=Fl?{passive:!1}:!1,t7=function(r){return r.tagName==="TEXTAREA"},X1=function(r,a){if(!(r instanceof Element))return!1;var o=window.getComputedStyle(r);return o[a]!=="hidden"&&!(o.overflowY===o.overflowX&&!t7(r)&&o[a]==="visible")},e7=function(r){return X1(r,"overflowY")},n7=function(r){return X1(r,"overflowX")},K1=function(r,a){var o=a.ownerDocument,s=a;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var c=J1(r,s);if(c){var f=Q1(r,s),g=f[1],m=f[2];if(g>m)return!0}s=s.parentNode}while(s&&s!==o.body);return!1},r7=function(r){var a=r.scrollTop,o=r.scrollHeight,s=r.clientHeight;return[a,o,s]},i7=function(r){var a=r.scrollLeft,o=r.scrollWidth,s=r.clientWidth;return[a,o,s]},J1=function(r,a){return r==="v"?e7(a):n7(a)},Q1=function(r,a){return r==="v"?r7(a):i7(a)},s7=function(r,a){return r==="h"&&a==="rtl"?-1:1},o7=function(r,a,o,s,c){var f=s7(r,window.getComputedStyle(a).direction),g=f*s,m=o.target,y=a.contains(m),C=!1,_=g>0,b=0,w=0;do{if(!m)break;var S=Q1(r,m),P=S[0],O=S[1],q=S[2],G=O-q-f*P;(P||G)&&J1(r,m)&&(b+=G,w+=P);var k=m.parentNode;m=k&&k.nodeType===Node.DOCUMENT_FRAGMENT_NODE?k.host:k}while(!y&&m!==document.body||y&&(a.contains(m)||a===m));return(_&&Math.abs(b)<1||!_&&Math.abs(w)<1)&&(C=!0),C},wu=function(r){return"changedTouches"in r?[r.changedTouches[0].clientX,r.changedTouches[0].clientY]:[0,0]},$1=function(r){return[r.deltaX,r.deltaY]},tm=function(r){return r&&"current"in r?r.current:r},a7=function(r,a){return r[0]===a[0]&&r[1]===a[1]},u7=function(r){return`
  .block-interactivity-`.concat(r,` {pointer-events: none;}
  .allow-interactivity-`).concat(r,` {pointer-events: all;}
`)},l7=0,Oo=[];function c7(r){var a=at.useRef([]),o=at.useRef([0,0]),s=at.useRef(),c=at.useState(l7++)[0],f=at.useState(W1)[0],g=at.useRef(r);at.useEffect(function(){g.current=r},[r]),at.useEffect(function(){if(r.inert){document.body.classList.add("block-interactivity-".concat(c));var O=Ty([r.lockRef.current],(r.shards||[]).map(tm),!0).filter(Boolean);return O.forEach(function(q){return q.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),O.forEach(function(q){return q.classList.remove("allow-interactivity-".concat(c))})}}},[r.inert,r.lockRef.current,r.shards]);var m=at.useCallback(function(O,q){if("touches"in O&&O.touches.length===2||O.type==="wheel"&&O.ctrlKey)return!g.current.allowPinchZoom;var G=wu(O),k=o.current,A="deltaX"in O?O.deltaX:k[0]-G[0],R="deltaY"in O?O.deltaY:k[1]-G[1],j,W=O.target,F=Math.abs(A)>Math.abs(R)?"h":"v";if("touches"in O&&F==="h"&&W.type==="range")return!1;var H=window.getSelection(),U=H&&H.anchorNode,it=U?U===W||U.contains(W):!1;if(it)return!1;var Y=K1(F,W);if(!Y)return!0;if(Y?j=F:(j=F==="v"?"h":"v",Y=K1(F,W)),!Y)return!1;if(!s.current&&"changedTouches"in O&&(A||R)&&(s.current=j),!j)return!0;var M=s.current||j;return o7(M,q,O,M==="h"?A:R)},[]),y=at.useCallback(function(O){var q=O;if(!(!Oo.length||Oo[Oo.length-1]!==f)){var G="deltaY"in q?$1(q):wu(q),k=a.current.filter(function(j){return j.name===q.type&&(j.target===q.target||q.target===j.shadowParent)&&a7(j.delta,G)})[0];if(k&&k.should){q.cancelable&&q.preventDefault();return}if(!k){var A=(g.current.shards||[]).map(tm).filter(Boolean).filter(function(j){return j.contains(q.target)}),R=A.length>0?m(q,A[0]):!g.current.noIsolation;R&&q.cancelable&&q.preventDefault()}}},[]),C=at.useCallback(function(O,q,G,k){var A={name:O,delta:q,target:G,should:k,shadowParent:h7(G)};a.current.push(A),setTimeout(function(){a.current=a.current.filter(function(R){return R!==A})},1)},[]),_=at.useCallback(function(O){o.current=wu(O),s.current=void 0},[]),b=at.useCallback(function(O){C(O.type,$1(O),O.target,m(O,r.lockRef.current))},[]),w=at.useCallback(function(O){C(O.type,wu(O),O.target,m(O,r.lockRef.current))},[]);at.useEffect(function(){return Oo.push(f),r.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:w}),document.addEventListener("wheel",y,wo),document.addEventListener("touchmove",y,wo),document.addEventListener("touchstart",_,wo),function(){Oo=Oo.filter(function(O){return O!==f}),document.removeEventListener("wheel",y,wo),document.removeEventListener("touchmove",y,wo),document.removeEventListener("touchstart",_,wo)}},[]);var S=r.removeScrollBar,P=r.inert;return at.createElement(at.Fragment,null,P?at.createElement(f,{styles:u7(c)}):null,S?at.createElement($y,{noRelative:r.noRelative,gapMode:r.gapMode}):null)}function h7(r){for(var a=null;r!==null;)r instanceof ShadowRoot&&(a=r.host,r=r.host),r=r.parentNode;return a}const f7=zy(Z1,c7);var em=at.forwardRef(function(r,a){return at.createElement(xu,Ni({},r,{ref:a,sideCar:f7}))});em.classNames=xu.classNames;function No({imageFooter:r,imageHeader:a,...o}){return N.createElement("figure",{onClick:o.onClick,className:`image-container ${o.className}`},a?N.createElement("div",{className:"osc-image-header"},a):null,N.createElement("img",{role:"presentation",...o,alt:o.alt?o.alt:""}),r&&N.createElement("figcaption",{className:"osc-image-footer"},r))}N.forwardRef(({onValueChange:r,...a},o)=>{var f;const[s,c]=N.useState(null);return N.useEffect(()=>{s!==null&&r&&r(a.items[s])},[s,a.items,r]),N.createElement("div",{className:"osc-imageselect"},(f=a.items)==null?void 0:f.map((g,m)=>N.createElement("div",{key:m,className:`osc-imageselect-item ${s===m?"osc-imageselect-item-selected":""}`,onClick:()=>!a.disabled&&c(m)},N.createElement("input",{ref:o,...a,name:a.name,className:`osc-imageselect-radio ${a.className}`,type:"radio",checked:s===m,id:`${a.name}-${m}`,value:g.key}),N.createElement("label",{htmlFor:`${a.name}-${m}`},N.createElement(No,{src:a.images[m],className:"osc-imageselect-image"})),N.createElement("p",null,g.text))))});const d7=N.forwardRef((r,a)=>{const o=Math.random().toString(36).substring(7);return N.createElement(hu,{invalid:!!r.errors,type:"search"},r.label?N.createElement(wn,null,N.createElement(wi,{htmlFor:o},r.label)):null,N.createElement(wl,{ref:a,id:o,invalid:!!r.errors,name:"search",...r,type:"text"}),r.errors?N.createElement(fu,{className:"utrecht-form-field__description",id:`${o}-invalid-description`,invalid:!0},r.errors):null,r.info&&!r.errors?N.createElement(fu,{className:"utrecht-form-field__description",id:`${o}-invalid-description`},r.info):null)});function g7({label:r,onItemSelected:a,defaultOpen:o,options:s,id:c}){const[f,g]=N.useState(o||!1),m=N.useRef(null);return N.useEffect(()=>{function y(C){m.current&&!m.current.contains(C.target)&&g(!1)}return document.addEventListener("mousedown",y),()=>{document.removeEventListener("mousedown",y)}},[]),N.createElement("div",{className:"multi-select",ref:m},N.createElement(tr,{appearance:"default-button",onClick:()=>{g(!f)},"test-id":"multi-select-button","aria-labelledby":c,"aria-expanded":f,role:"combobox","aria-haspopup":"listbox"},r,N.createElement(ur,{icon:f?"ri-arrow-up-s-line":"ri-arrow-down-s-line"})),f&&N.createElement("section",{className:"multiselect-container",role:"listbox","aria-multiselectable":"true"},s.map((y,C)=>N.createElement("div",{role:"option","aria-selected":y.checked,onClick:()=>{const _=y.value,b=y.label;a(_,b)},key:`multi-select-item-${y.label}`},N.createElement(hu,{type:"checkbox"},N.createElement(wn,{className:"utrecht-form-field__label utrecht-form-field__label--checkbox"},N.createElement(Uf,{className:"utrecht-form-field__input",checked:y.checked}),N.createElement(wi,{type:"checkbox"},y.label)))))))}const nm=r=>{const{progress:a}=r;return N.createElement("div",{className:"progressbar"},N.createElement("progress",{className:"progressbar-tracker",value:a,max:"100"}))};N.forwardRef(({onValueChange:r,...a},o)=>{var g;const[s,c]=N.useState(a.initialvalue);N.useEffect(()=>{c(a.initialvalue)},[a.initialvalue]);const f=m=>{const y=m.target.value;c(y),r&&r(y)};return N.createElement("div",{className:`range-slider ${a.className}`},N.createElement("p",null,"Geef antwoord op een schaal van 1 tot 5, waarbij 1 = slecht en 5 = goed."),N.createElement("input",{ref:o,...a,onChange:f,value:s,title:a.title||"scale",type:"range",name:a.name}),N.createElement("div",{className:"range-slider-labels"},(g=a.labels)==null?void 0:g.map((m,y)=>N.createElement(N.Fragment,{key:y},m))))});const Bl=N.forwardRef(({onValueChange:r,...a},o)=>{const s=a.options??[],c=a.disableDefaultOption||!1;return N.createElement(jg,{ref:o,...a,className:`select ${a.className}`,onChange:a.onChange||(f=>{var g,m,y;return r&&r(f.target.value,((y=(m=(g=f.target)==null?void 0:g.selectedOptions[0])==null?void 0:m.dataset)==null?void 0:y.label)||"")})},a.children,!c&&N.createElement(Nl,{className:"select-item",value:""},"Selecteer optie"),s.map(f=>N.createElement(N.Fragment,{key:`select-item-${f.label}`},N.createElement(Nl,{className:"select-item",value:f.value,"data-label":f.label},f.label))))});function Qr({size:r=1}){const o=`spacer-${(isNaN(r)?"1":r.toString().startsWith(".")?r.toString().replace(".","0."):r.toString()).replace(".","-")}`;return N.createElement("div",{className:o})}function m7(r){const a=p7(r),o=at.forwardRef((s,c)=>{const{children:f,...g}=s,m=at.Children.toArray(f),y=m.find(y7);if(y){const C=y.props.children,_=m.map(b=>b===y?at.Children.count(C)>1?at.Children.only(null):at.isValidElement(C)?C.props.children:null:b);return K.jsx(a,{...g,ref:c,children:at.isValidElement(C)?at.cloneElement(C,void 0,_):null})}return K.jsx(a,{...g,ref:c,children:f})});return o.displayName=`${r}.Slot`,o}function p7(r){const a=at.forwardRef((o,s)=>{const{children:c,...f}=o;if(at.isValidElement(c)){const g=_7(c),m=C7(f,c.props);return c.type!==at.Fragment&&(m.ref=s?ca(s,g):g),at.cloneElement(c,m)}return at.Children.count(c)>1?at.Children.only(null):null});return a.displayName=`${r}.SlotClone`,a}var v7=Symbol("radix.slottable");function y7(r){return at.isValidElement(r)&&typeof r.type=="function"&&"__radixId"in r.type&&r.type.__radixId===v7}function C7(r,a){const o={...a};for(const s in a){const c=r[s],f=a[s];/^on[A-Z]/.test(s)?c&&f?o[s]=(...m)=>{const y=f(...m);return c(...m),y}:c&&(o[s]=c):s==="style"?o[s]={...c,...f}:s==="className"&&(o[s]=[c,f].filter(Boolean).join(" "))}return{...r,...o}}function _7(r){var s,c;let a=(s=Object.getOwnPropertyDescriptor(r.props,"ref"))==null?void 0:s.get,o=a&&"isReactWarning"in a&&a.isReactWarning;return o?r.ref:(a=(c=Object.getOwnPropertyDescriptor(r,"ref"))==null?void 0:c.get,o=a&&"isReactWarning"in a&&a.isReactWarning,o?r.props.ref:r.props.ref||r.ref)}var Ou="Dialog",[rm]=pu(Ou),[b7,$r]=rm(Ou),im=r=>{const{__scopeDialog:a,children:o,open:s,defaultOpen:c,onOpenChange:f,modal:g=!0}=r,m=at.useRef(null),y=at.useRef(null),[C,_]=Sl({prop:s,defaultProp:c??!1,onChange:f,caller:Ou});return K.jsx(b7,{scope:a,triggerRef:m,contentRef:y,contentId:fa(),titleId:fa(),descriptionId:fa(),open:C,onOpenChange:_,onOpenToggle:at.useCallback(()=>_(b=>!b),[_]),modal:g,children:o})};im.displayName=Ou;var sm="DialogTrigger",x7=at.forwardRef((r,a)=>{const{__scopeDialog:o,...s}=r,c=$r(sm,o),f=Oi(a,c.triggerRef);return K.jsx(lr.button,{type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.contentId,"data-state":ql(c.open),...s,ref:f,onClick:Kn(r.onClick,c.onOpenToggle)})});x7.displayName=sm;var zl="DialogPortal",[E7,om]=rm(zl,{forceMount:void 0}),am=r=>{const{__scopeDialog:a,forceMount:o,children:s,container:c}=r,f=$r(zl,a);return K.jsx(E7,{scope:a,forceMount:o,children:at.Children.map(s,g=>K.jsx(da,{present:o||f.open,children:K.jsx(R1,{asChild:!0,container:c,children:g})}))})};am.displayName=zl;var Nu="DialogOverlay",um=at.forwardRef((r,a)=>{const o=om(Nu,r.__scopeDialog),{forceMount:s=o.forceMount,...c}=r,f=$r(Nu,r.__scopeDialog);return f.modal?K.jsx(da,{present:s||f.open,children:K.jsx(O7,{...c,ref:a})}):null});um.displayName=Nu;var w7=m7("DialogOverlay.RemoveScroll"),O7=at.forwardRef((r,a)=>{const{__scopeDialog:o,...s}=r,c=$r(Nu,o);return K.jsx(em,{as:w7,allowPinchZoom:!0,shards:[c.contentRef],children:K.jsx(lr.div,{"data-state":ql(c.open),...s,ref:a,style:{pointerEvents:"auto",...s.style}})})}),Zs="DialogContent",lm=at.forwardRef((r,a)=>{const o=om(Zs,r.__scopeDialog),{forceMount:s=o.forceMount,...c}=r,f=$r(Zs,r.__scopeDialog);return K.jsx(da,{present:s||f.open,children:f.modal?K.jsx(N7,{...c,ref:a}):K.jsx(S7,{...c,ref:a})})});lm.displayName=Zs;var N7=at.forwardRef((r,a)=>{const o=$r(Zs,r.__scopeDialog),s=at.useRef(null),c=Oi(a,o.contentRef,s);return at.useEffect(()=>{const f=s.current;if(f)return Py(f)},[]),K.jsx(cm,{...r,ref:c,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Kn(r.onCloseAutoFocus,f=>{var g;f.preventDefault(),(g=o.triggerRef.current)==null||g.focus()}),onPointerDownOutside:Kn(r.onPointerDownOutside,f=>{const g=f.detail.originalEvent,m=g.button===0&&g.ctrlKey===!0;(g.button===2||m)&&f.preventDefault()}),onFocusOutside:Kn(r.onFocusOutside,f=>f.preventDefault())})}),S7=at.forwardRef((r,a)=>{const o=$r(Zs,r.__scopeDialog),s=at.useRef(!1),c=at.useRef(!1);return K.jsx(cm,{...r,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:f=>{var g,m;(g=r.onCloseAutoFocus)==null||g.call(r,f),f.defaultPrevented||(s.current||(m=o.triggerRef.current)==null||m.focus(),f.preventDefault()),s.current=!1,c.current=!1},onInteractOutside:f=>{var y,C;(y=r.onInteractOutside)==null||y.call(r,f),f.defaultPrevented||(s.current=!0,f.detail.originalEvent.type==="pointerdown"&&(c.current=!0));const g=f.target;((C=o.triggerRef.current)==null?void 0:C.contains(g))&&f.preventDefault(),f.detail.originalEvent.type==="focusin"&&c.current&&f.preventDefault()}})}),cm=at.forwardRef((r,a)=>{const{__scopeDialog:o,trapFocus:s,onOpenAutoFocus:c,onCloseAutoFocus:f,...g}=r,m=$r(Zs,o),y=at.useRef(null),C=Oi(a,y);return ey(),K.jsxs(K.Fragment,{children:[K.jsx(P1,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:c,onUnmountAutoFocus:f,children:K.jsx(O1,{role:"dialog",id:m.contentId,"aria-describedby":m.descriptionId,"aria-labelledby":m.titleId,"data-state":ql(m.open),...g,ref:C,onDismiss:()=>m.onOpenChange(!1)})}),K.jsxs(K.Fragment,{children:[K.jsx(P7,{titleId:m.titleId}),K.jsx(M7,{contentRef:y,descriptionId:m.descriptionId})]})]})}),Gl="DialogTitle",L7=at.forwardRef((r,a)=>{const{__scopeDialog:o,...s}=r,c=$r(Gl,o);return K.jsx(lr.h2,{id:c.titleId,...s,ref:a})});L7.displayName=Gl;var hm="DialogDescription",I7=at.forwardRef((r,a)=>{const{__scopeDialog:o,...s}=r,c=$r(hm,o);return K.jsx(lr.p,{id:c.descriptionId,...s,ref:a})});I7.displayName=hm;var fm="DialogClose",dm=at.forwardRef((r,a)=>{const{__scopeDialog:o,...s}=r,c=$r(fm,o);return K.jsx(lr.button,{type:"button",...s,ref:a,onClick:Kn(r.onClick,()=>c.onOpenChange(!1))})});dm.displayName=fm;function ql(r){return r?"open":"closed"}var gm="DialogTitleWarning",[W_,mm]=S5(gm,{contentName:Zs,titleName:Gl,docsSlug:"dialog"}),P7=({titleId:r})=>{const a=mm(gm),o=`\`${a.contentName}\` requires a \`${a.titleName}\` for the component to be accessible for screen reader users.

If you want to hide the \`${a.titleName}\`, you can wrap it with our VisuallyHidden component.

For more information, see https://radix-ui.com/primitives/docs/components/${a.docsSlug}`;return at.useEffect(()=>{r&&(document.getElementById(r)||console.error(o))},[o,r]),null},T7="DialogDescriptionWarning",M7=({contentRef:r,descriptionId:a})=>{const s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${mm(T7).contentName}}.`;return at.useEffect(()=>{var f;const c=(f=r.current)==null?void 0:f.getAttribute("aria-describedby");a&&c&&(document.getElementById(a)||console.warn(s))},[s,r,a]),null},A7=im,D7=am,R7=um,j7=lm,k7=dm;const F7=()=>{const r=document.getElementsByClassName("active-resource")[0];r&&setTimeout(()=>{r.focus(),r.classList.remove("active-resource")},100)},B7=({children:r,open:a,onOpenChange:o,className:s,...c})=>(N.useEffect(()=>{a||F7()},[a]),N.createElement(A7,{open:a,onOpenChange:o,...c},N.createElement(D7,null,N.createElement("div",{className:"openstad"},N.createElement(R7,{className:"osc-DialogOverlay"}),N.createElement(j7,{className:`osc osc-DialogContent ${s}`},N.createElement("div",null,N.createElement(k7,{asChild:!0},N.createElement(Hs,{className:"subtle-button",icon:"ri-close-line","aria-label":"Sluiten","test-id":"dialog-close-button"}))),r)))));function Vl({startIndex:r=0,items:a=[],itemRenderer:o,buttonText:s,beforeIndexChange:c=()=>{},setIndexInParent:f=()=>{},...g}){const[m,y]=N.useState(r);if(a.length===0)return null;N.useEffect(()=>{f&&f(()=>y)},[f]);const C=_=>{c&&c(),y(_)};return N.createElement("div",{...g,className:`osc ${g.className} osc-carousel width-100`},a.length>1&&N.createElement("div",{className:"carousel-button-container"},N.createElement("div",{className:"osc-carousel-navigation-button-wrapper osc-carousel-previous"},N.createElement(Hs,{className:"primary-action-button",icon:"ri-arrow-left-s-line",disabled:m===0,text:(s==null?void 0:s.previous)||"Vorige slide",iconOnly:!0,onClick:()=>C(m-1)})),N.createElement("div",{className:"osc-carousel-navigation-button-wrapper osc-carousel-next"},N.createElement(Hs,{className:"primary-action-button",icon:"ri-arrow-right-s-line",disabled:m===a.length-1,text:(s==null?void 0:s.next)||"Volgende slide",iconOnly:!0,onClick:()=>C(m+1)}))),N.createElement("div",{className:"carousel-items"},o(a.at(m))))}const z7=({page:r,totalPages:a,visiblePages:o=5,onPageChange:s})=>{const f=(()=>{const g=[];if(a<=o){for(let m=0;m<a;m++)g.push(m);return g}if(r<o-2){for(let m=0;m<o-2;m++)g.push(m);return g.push("..."),g.push(a-1),g}if(r>=a-o+1){g.push(0),g.push("...");for(let m=a-o;m<a;m++)g.push(m);return g}g.push(0),g.push("...");for(let m=r-1;m<=r+o-4;m++)g.push(m);return g.push("..."),g.push(a-1),g})();return N.createElement("nav",{className:"osc-paginator","aria-label":"Paginering"},N.createElement(Hs,{icon:"ri-arrow-left-s-line",className:"secondary round",onClick:()=>s(r-1),disabled:r===0,"aria-label":`Vorige pagina${r===0?" (Niet beschikbaar)":""}`,iconOnly:!0,"test-id":"previous-page-button"}),f.map((g,m)=>g==="..."?N.createElement("span",{key:`ellipsis-${m}`,className:"osc-paginator-ellipsis"},"..."):N.createElement(Hs,{key:`page-${g}`,className:"secondary round",onClick:()=>s(g),disabled:g===r,"test-id":`page-button-${g}`,"aria-label":`Pagina ${g+1}${g===r?" (Huidige pagina)":""}`,"aria-current":g===r?"page":void 0},g+1)),N.createElement(Hs,{icon:"ri-arrow-right-s-line",className:"secondary round",onClick:()=>s(r+1),disabled:r>=a-1,"aria-label":`Volgende pagina${r>=a-1?" (Niet beschikbaar)":""}`,iconOnly:!0,"test-id":"next-page-button"}))},Ul=({text:r,rounded:a,light:o})=>N.createElement("div",{className:`osc-pill ${a&&"osc-pill-rounded"} ${o&&"osc-pill-light"}`},N.createElement("p",null,r));var G7=Symbol.for("react.lazy"),Su=at[" use ".trim().toString()];function q7(r){return typeof r=="object"&&r!==null&&"then"in r}function pm(r){return r!=null&&typeof r=="object"&&"$$typeof"in r&&r.$$typeof===G7&&"_payload"in r&&q7(r._payload)}function V7(r){const a=U7(r),o=at.forwardRef((s,c)=>{let{children:f,...g}=s;pm(f)&&typeof Su=="function"&&(f=Su(f._payload));const m=at.Children.toArray(f),y=m.find(Z7);if(y){const C=y.props.children,_=m.map(b=>b===y?at.Children.count(C)>1?at.Children.only(null):at.isValidElement(C)?C.props.children:null:b);return K.jsx(a,{...g,ref:c,children:at.isValidElement(C)?at.cloneElement(C,void 0,_):null})}return K.jsx(a,{...g,ref:c,children:f})});return o.displayName=`${r}.Slot`,o}function U7(r){const a=at.forwardRef((o,s)=>{let{children:c,...f}=o;if(pm(c)&&typeof Su=="function"&&(c=Su(c._payload)),at.isValidElement(c)){const g=Y7(c),m=W7(f,c.props);return c.type!==at.Fragment&&(m.ref=s?ca(s,g):g),at.cloneElement(c,m)}return at.Children.count(c)>1?at.Children.only(null):null});return a.displayName=`${r}.SlotClone`,a}var H7=Symbol("radix.slottable");function Z7(r){return at.isValidElement(r)&&typeof r.type=="function"&&"__radixId"in r.type&&r.type.__radixId===H7}function W7(r,a){const o={...a};for(const s in a){const c=r[s],f=a[s];/^on[A-Z]/.test(s)?c&&f?o[s]=(...m)=>{const y=f(...m);return c(...m),y}:c&&(o[s]=c):s==="style"?o[s]={...c,...f}:s==="className"&&(o[s]=[c,f].filter(Boolean).join(" "))}return{...r,...o}}function Y7(r){var s,c;let a=(s=Object.getOwnPropertyDescriptor(r.props,"ref"))==null?void 0:s.get,o=a&&"isReactWarning"in a&&a.isReactWarning;return o?r.ref:(a=(c=Object.getOwnPropertyDescriptor(r,"ref"))==null?void 0:c.get,o=a&&"isReactWarning"in a&&a.isReactWarning,o?r.props.ref:r.props.ref||r.ref)}var X7=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],K7=X7.reduce((r,a)=>{const o=V7(`Primitive.${a}`),s=at.forwardRef((c,f)=>{const{asChild:g,...m}=c,y=g?o:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),K.jsx(y,{...m,ref:f})});return s.displayName=`Primitive.${a}`,{...r,[a]:s}},{}),J7="Separator",vm="horizontal",Q7=["horizontal","vertical"],ym=at.forwardRef((r,a)=>{const{decorative:o,orientation:s=vm,...c}=r,f=$7(s)?s:vm,m=o?{role:"none"}:{"aria-orientation":f==="vertical"?f:void 0,role:"separator"};return K.jsx(K7.div,{"data-orientation":f,...m,...c,ref:a})});ym.displayName=J7;function $7(r){return Q7.includes(r)}var Cm=ym;function t4(){for(var r=0,a,o,s="";r<arguments.length;)(a=arguments[r++])&&(o=_m(a))&&(s&&(s+=" "),s+=o);return s}function _m(r){if(typeof r=="string")return r;for(var a,o="",s=0;s<r.length;s++)r[s]&&(a=_m(r[s]))&&(o&&(o+=" "),o+=a);return o}var Hl="-";function e4(r){var a=r4(r),o=r.conflictingClassGroups,s=r.conflictingClassGroupModifiers,c=s===void 0?{}:s;function f(m){var y=m.split(Hl);return y[0]===""&&y.length!==1&&y.shift(),bm(y,a)||n4(m)}function g(m,y){var C=o[m]||[];return y&&c[m]?[].concat(C,c[m]):C}return{getClassGroupId:f,getConflictingClassGroupIds:g}}function bm(r,a){var g;if(r.length===0)return a.classGroupId;var o=r[0],s=a.nextPart.get(o),c=s?bm(r.slice(1),s):void 0;if(c)return c;if(a.validators.length!==0){var f=r.join(Hl);return(g=a.validators.find(function(m){var y=m.validator;return y(f)}))==null?void 0:g.classGroupId}}var xm=/^\[(.+)\]$/;function n4(r){if(xm.test(r)){var a=xm.exec(r)[1],o=a==null?void 0:a.substring(0,a.indexOf(":"));if(o)return"arbitrary.."+o}}function r4(r){var a=r.theme,o=r.prefix,s={nextPart:new Map,validators:[]},c=s4(Object.entries(r.classGroups),o);return c.forEach(function(f){var g=f[0],m=f[1];Zl(m,s,g,a)}),s}function Zl(r,a,o,s){r.forEach(function(c){if(typeof c=="string"){var f=c===""?a:Em(a,c);f.classGroupId=o;return}if(typeof c=="function"){if(i4(c)){Zl(c(s),a,o,s);return}a.validators.push({validator:c,classGroupId:o});return}Object.entries(c).forEach(function(g){var m=g[0],y=g[1];Zl(y,Em(a,m),o,s)})})}function Em(r,a){var o=r;return a.split(Hl).forEach(function(s){o.nextPart.has(s)||o.nextPart.set(s,{nextPart:new Map,validators:[]}),o=o.nextPart.get(s)}),o}function i4(r){return r.isThemeGetter}function s4(r,a){return a?r.map(function(o){var s=o[0],c=o[1],f=c.map(function(g){return typeof g=="string"?a+g:typeof g=="object"?Object.fromEntries(Object.entries(g).map(function(m){var y=m[0],C=m[1];return[a+y,C]})):g});return[s,f]}):r}function o4(r){if(r<1)return{get:function(){},set:function(){}};var a=0,o=new Map,s=new Map;function c(f,g){o.set(f,g),a++,a>r&&(a=0,s=o,o=new Map)}return{get:function(g){var m=o.get(g);if(m!==void 0)return m;if((m=s.get(g))!==void 0)return c(g,m),m},set:function(g,m){o.has(g)?o.set(g,m):c(g,m)}}}var wm="!";function a4(r){var a=r.separator||":",o=a.length===1,s=a[0],c=a.length;return function(g){for(var m=[],y=0,C=0,_,b=0;b<g.length;b++){var w=g[b];if(y===0){if(w===s&&(o||g.slice(b,b+c)===a)){m.push(g.slice(C,b)),C=b+c;continue}if(w==="/"){_=b;continue}}w==="["?y++:w==="]"&&y--}var S=m.length===0?g:g.substring(C),P=S.startsWith(wm),O=P?S.substring(1):S,q=_&&_>C?_-C:void 0;return{modifiers:m,hasImportantModifier:P,baseClassName:O,maybePostfixModifierPosition:q}}}function u4(r){if(r.length<=1)return r;var a=[],o=[];return r.forEach(function(s){var c=s[0]==="[";c?(a.push.apply(a,o.sort().concat([s])),o=[]):o.push(s)}),a.push.apply(a,o.sort()),a}function l4(r){return{cache:o4(r.cacheSize),splitModifiers:a4(r),...e4(r)}}var c4=/\s+/;function h4(r,a){var o=a.splitModifiers,s=a.getClassGroupId,c=a.getConflictingClassGroupIds,f=new Set;return r.trim().split(c4).map(function(g){var m=o(g),y=m.modifiers,C=m.hasImportantModifier,_=m.baseClassName,b=m.maybePostfixModifierPosition,w=s(b?_.substring(0,b):_),S=!!b;if(!w){if(!b)return{isTailwindClass:!1,originalClassName:g};if(w=s(_),!w)return{isTailwindClass:!1,originalClassName:g};S=!1}var P=u4(y).join(":"),O=C?P+wm:P;return{isTailwindClass:!0,modifierId:O,classGroupId:w,originalClassName:g,hasPostfixModifier:S}}).reverse().filter(function(g){if(!g.isTailwindClass)return!0;var m=g.modifierId,y=g.classGroupId,C=g.hasPostfixModifier,_=m+y;return f.has(_)?!1:(f.add(_),c(y,C).forEach(function(b){return f.add(m+b)}),!0)}).reverse().map(function(g){return g.originalClassName}).join(" ")}function f4(){for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];var s,c,f,g=m;function m(C){var _=a[0],b=a.slice(1),w=b.reduce(function(S,P){return P(S)},_());return s=l4(w),c=s.cache.get,f=s.cache.set,g=y,y(C)}function y(C){var _=c(C);if(_)return _;var b=h4(C,s);return f(C,b),b}return function(){return g(t4.apply(null,arguments))}}function gn(r){var a=function(s){return s[r]||[]};return a.isThemeGetter=!0,a}var Om=/^\[(?:([a-z-]+):)?(.+)\]$/i,d4=/^\d+\/\d+$/,g4=new Set(["px","full","screen"]),m4=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,p4=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,v4=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function ti(r){return Ws(r)||g4.has(r)||d4.test(r)||Wl(r)}function Wl(r){return Ys(r,"length",E4)}function y4(r){return Ys(r,"size",Nm)}function C4(r){return Ys(r,"position",Nm)}function _4(r){return Ys(r,"url",w4)}function Lu(r){return Ys(r,"number",Ws)}function Ws(r){return!Number.isNaN(Number(r))}function b4(r){return r.endsWith("%")&&Ws(r.slice(0,-1))}function ma(r){return Sm(r)||Ys(r,"number",Sm)}function je(r){return Om.test(r)}function pa(){return!0}function vs(r){return m4.test(r)}function x4(r){return Ys(r,"",O4)}function Ys(r,a,o){var s=Om.exec(r);return s?s[1]?s[1]===a:o(s[2]):!1}function E4(r){return p4.test(r)}function Nm(){return!1}function w4(r){return r.startsWith("url(")}function Sm(r){return Number.isInteger(Number(r))}function O4(r){return v4.test(r)}function N4(){var r=gn("colors"),a=gn("spacing"),o=gn("blur"),s=gn("brightness"),c=gn("borderColor"),f=gn("borderRadius"),g=gn("borderSpacing"),m=gn("borderWidth"),y=gn("contrast"),C=gn("grayscale"),_=gn("hueRotate"),b=gn("invert"),w=gn("gap"),S=gn("gradientColorStops"),P=gn("gradientColorStopPositions"),O=gn("inset"),q=gn("margin"),G=gn("opacity"),k=gn("padding"),A=gn("saturate"),R=gn("scale"),j=gn("sepia"),W=gn("skew"),F=gn("space"),H=gn("translate"),U=function(){return["auto","contain","none"]},it=function(){return["auto","hidden","clip","visible","scroll"]},Y=function(){return["auto",je,a]},M=function(){return[je,a]},ot=function(){return["",ti]},ct=function(){return["auto",Ws,je]},Ct=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},V=function(){return["solid","dashed","dotted","double","none"]},$=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},D=function(){return["start","end","center","between","around","evenly","stretch"]},rt=function(){return["","0",je]},J=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},et=function(){return[Ws,Lu]},st=function(){return[Ws,je]};return{cacheSize:500,theme:{colors:[pa],spacing:[ti],blur:["none","",vs,je],brightness:et(),borderColor:[r],borderRadius:["none","","full",vs,je],borderSpacing:M(),borderWidth:ot(),contrast:et(),grayscale:rt(),hueRotate:st(),invert:rt(),gap:M(),gradientColorStops:[r],gradientColorStopPositions:[b4,Wl],inset:Y(),margin:Y(),opacity:et(),padding:M(),saturate:et(),scale:et(),sepia:rt(),skew:st(),space:M(),translate:M()},classGroups:{aspect:[{aspect:["auto","square","video",je]}],container:["container"],columns:[{columns:[vs]}],"break-after":[{"break-after":J()}],"break-before":[{"break-before":J()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(Ct(),[je])}],overflow:[{overflow:it()}],"overflow-x":[{"overflow-x":it()}],"overflow-y":[{"overflow-y":it()}],overscroll:[{overscroll:U()}],"overscroll-x":[{"overscroll-x":U()}],"overscroll-y":[{"overscroll-y":U()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[O]}],"inset-x":[{"inset-x":[O]}],"inset-y":[{"inset-y":[O]}],start:[{start:[O]}],end:[{end:[O]}],top:[{top:[O]}],right:[{right:[O]}],bottom:[{bottom:[O]}],left:[{left:[O]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ma]}],basis:[{basis:Y()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",je]}],grow:[{grow:rt()}],shrink:[{shrink:rt()}],order:[{order:["first","last","none",ma]}],"grid-cols":[{"grid-cols":[pa]}],"col-start-end":[{col:["auto",{span:["full",ma]},je]}],"col-start":[{"col-start":ct()}],"col-end":[{"col-end":ct()}],"grid-rows":[{"grid-rows":[pa]}],"row-start-end":[{row:["auto",{span:[ma]},je]}],"row-start":[{"row-start":ct()}],"row-end":[{"row-end":ct()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",je]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",je]}],gap:[{gap:[w]}],"gap-x":[{"gap-x":[w]}],"gap-y":[{"gap-y":[w]}],"justify-content":[{justify:["normal"].concat(D())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(D(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(D(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[k]}],px:[{px:[k]}],py:[{py:[k]}],ps:[{ps:[k]}],pe:[{pe:[k]}],pt:[{pt:[k]}],pr:[{pr:[k]}],pb:[{pb:[k]}],pl:[{pl:[k]}],m:[{m:[q]}],mx:[{mx:[q]}],my:[{my:[q]}],ms:[{ms:[q]}],me:[{me:[q]}],mt:[{mt:[q]}],mr:[{mr:[q]}],mb:[{mb:[q]}],ml:[{ml:[q]}],"space-x":[{"space-x":[F]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[F]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",je,a]}],"min-w":[{"min-w":["min","max","fit",je,ti]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[vs]},vs,je]}],h:[{h:[je,a,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",je,ti]}],"max-h":[{"max-h":[je,a,"min","max","fit"]}],"font-size":[{text:["base",vs,Wl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Lu]}],"font-family":[{font:[pa]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",je]}],"line-clamp":[{"line-clamp":["none",Ws,Lu]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",je,ti]}],"list-image":[{"list-image":["none",je]}],"list-style-type":[{list:["none","disc","decimal",je]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[r]}],"placeholder-opacity":[{"placeholder-opacity":[G]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[r]}],"text-opacity":[{"text-opacity":[G]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(V(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",ti]}],"underline-offset":[{"underline-offset":["auto",je,ti]}],"text-decoration-color":[{decoration:[r]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",je]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",je]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[G]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(Ct(),[C4])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",y4]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},_4]}],"bg-color":[{bg:[r]}],"gradient-from-pos":[{from:[P]}],"gradient-via-pos":[{via:[P]}],"gradient-to-pos":[{to:[P]}],"gradient-from":[{from:[S]}],"gradient-via":[{via:[S]}],"gradient-to":[{to:[S]}],rounded:[{rounded:[f]}],"rounded-s":[{"rounded-s":[f]}],"rounded-e":[{"rounded-e":[f]}],"rounded-t":[{"rounded-t":[f]}],"rounded-r":[{"rounded-r":[f]}],"rounded-b":[{"rounded-b":[f]}],"rounded-l":[{"rounded-l":[f]}],"rounded-ss":[{"rounded-ss":[f]}],"rounded-se":[{"rounded-se":[f]}],"rounded-ee":[{"rounded-ee":[f]}],"rounded-es":[{"rounded-es":[f]}],"rounded-tl":[{"rounded-tl":[f]}],"rounded-tr":[{"rounded-tr":[f]}],"rounded-br":[{"rounded-br":[f]}],"rounded-bl":[{"rounded-bl":[f]}],"border-w":[{border:[m]}],"border-w-x":[{"border-x":[m]}],"border-w-y":[{"border-y":[m]}],"border-w-s":[{"border-s":[m]}],"border-w-e":[{"border-e":[m]}],"border-w-t":[{"border-t":[m]}],"border-w-r":[{"border-r":[m]}],"border-w-b":[{"border-b":[m]}],"border-w-l":[{"border-l":[m]}],"border-opacity":[{"border-opacity":[G]}],"border-style":[{border:[].concat(V(),["hidden"])}],"divide-x":[{"divide-x":[m]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[m]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[G]}],"divide-style":[{divide:V()}],"border-color":[{border:[c]}],"border-color-x":[{"border-x":[c]}],"border-color-y":[{"border-y":[c]}],"border-color-t":[{"border-t":[c]}],"border-color-r":[{"border-r":[c]}],"border-color-b":[{"border-b":[c]}],"border-color-l":[{"border-l":[c]}],"divide-color":[{divide:[c]}],"outline-style":[{outline:[""].concat(V())}],"outline-offset":[{"outline-offset":[je,ti]}],"outline-w":[{outline:[ti]}],"outline-color":[{outline:[r]}],"ring-w":[{ring:ot()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[r]}],"ring-opacity":[{"ring-opacity":[G]}],"ring-offset-w":[{"ring-offset":[ti]}],"ring-offset-color":[{"ring-offset":[r]}],shadow:[{shadow:["","inner","none",vs,x4]}],"shadow-color":[{shadow:[pa]}],opacity:[{opacity:[G]}],"mix-blend":[{"mix-blend":$()}],"bg-blend":[{"bg-blend":$()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[s]}],contrast:[{contrast:[y]}],"drop-shadow":[{"drop-shadow":["","none",vs,je]}],grayscale:[{grayscale:[C]}],"hue-rotate":[{"hue-rotate":[_]}],invert:[{invert:[b]}],saturate:[{saturate:[A]}],sepia:[{sepia:[j]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[y]}],"backdrop-grayscale":[{"backdrop-grayscale":[C]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[_]}],"backdrop-invert":[{"backdrop-invert":[b]}],"backdrop-opacity":[{"backdrop-opacity":[G]}],"backdrop-saturate":[{"backdrop-saturate":[A]}],"backdrop-sepia":[{"backdrop-sepia":[j]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[g]}],"border-spacing-x":[{"border-spacing-x":[g]}],"border-spacing-y":[{"border-spacing-y":[g]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",je]}],duration:[{duration:st()}],ease:[{ease:["linear","in","out","in-out",je]}],delay:[{delay:st()}],animate:[{animate:["none","spin","ping","pulse","bounce",je]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[R]}],"scale-x":[{"scale-x":[R]}],"scale-y":[{"scale-y":[R]}],rotate:[{rotate:[ma,je]}],"translate-x":[{"translate-x":[H]}],"translate-y":[{"translate-y":[H]}],"skew-x":[{"skew-x":[W]}],"skew-y":[{"skew-y":[W]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",je]}],accent:[{accent:["auto",r]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",je]}],"caret-color":[{caret:[r]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",je]}],fill:[{fill:[r,"none"]}],"stroke-w":[{stroke:[ti,Lu]}],stroke:[{stroke:[r,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}var Lm=f4(N4);function S4(...r){return Lm(wt(r))}const L4=at.forwardRef(({className:r,orientation:a="horizontal",decorative:o=!0,...s},c)=>at.createElement(Cm,{ref:c,decorative:o,orientation:a,className:S4("shrink-0 bg-border",a==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",r),...s}));L4.displayName=Cm.displayName;var Iu={exports:{}},Im;function I4(){return Im||(Im=1,(function(r,a){Object.defineProperty(a,"__esModule",{value:!0}),a.isPlainObject=a.clone=a.recursive=a.merge=a.main=void 0,r.exports=a=o,a.default=o;function o(){for(var C=[],_=0;_<arguments.length;_++)C[_]=arguments[_];return s.apply(void 0,C)}a.main=o,o.clone=f,o.isPlainObject=g,o.recursive=c;function s(){for(var C=[],_=0;_<arguments.length;_++)C[_]=arguments[_];return y(C[0]===!0,!1,C)}a.merge=s;function c(){for(var C=[],_=0;_<arguments.length;_++)C[_]=arguments[_];return y(C[0]===!0,!0,C)}a.recursive=c;function f(C){if(Array.isArray(C)){for(var _=[],b=0;b<C.length;++b)_.push(f(C[b]));return _}else if(g(C)){var _={};for(var b in C)_[b]=f(C[b]);return _}else return C}a.clone=f;function g(C){return C&&typeof C=="object"&&!Array.isArray(C)}a.isPlainObject=g;function m(C,_){if(!g(C))return _;for(var b in _)b==="__proto__"||b==="constructor"||b==="prototype"||(C[b]=g(C[b])&&g(_[b])?m(C[b],_[b]):_[b]);return C}function y(C,_,b){var w;(C||!g(w=b.shift()))&&(w={});for(var S=0;S<b.length;++S){var P=b[S];if(g(P)){for(var O in P)if(!(O==="__proto__"||O==="constructor"||O==="prototype")){var q=C?f(P[O]):P[O];w[O]=_?m(w[O],q):q}}}return w}})(Iu,Iu.exports)),Iu.exports}var P4=I4();const va=ru(P4);function Pm(r,a,o){let s;switch(o){case"create":if(Array.isArray(r))if(a.parentId){let c=r.findIndex(f=>f.id==a.parentId);c!=-1&&(s=[...r],s[c].replies=s[c].replies||[],s[c].replies.push(a))}else s=[...r],s.push(a);else s=va.recursive({},r,a);break;case"update":if(Array.isArray(r))if(a.parentId){let c=r.findIndex(f=>f.id==a.parentId);if(c!=-1){let f=r[c].replies.findIndex(g=>g.id==a.id);f!=-1&&(s=[...r],s[c].replies[f]=va.recursive({},s[c].replies[f],a))}}else{let c=r.findIndex(f=>f.id==a.id);c!=-1&&(s=[...r],s[c]=va.recursive({},s[c],a))}else s=va.recursive({},r,a);break;case"delete":if(Array.isArray(r))if(a.parentId){let c=r.findIndex(f=>f.id==a.parentId);if(c!=-1){let f=r[c].replies.findIndex(g=>g.id==a.id);f!=-1&&(s=[...r],s[c].replies.splice(f,1))}}else{let c=r.findIndex(f=>f.id==a.id);c!=-1&&(s=[...r],s.splice(c,1))}else s=void 0;break;case"submitLike":if(Array.isArray(r)){let c=r.findIndex(f=>f.id==a.id);c!=-1&&(s=[...r],s.splice(c,1))}else{let c={[a.opinion]:r[a.opinion]+1},f=r.userVote;f&&(c[f.opinion]=r[f.opinion]-1),s=va.recursive({},r,c)}break;default:return r}return s||r}var Pu={exports:{}},Yl={};/**
 * @license React
 * use-sync-external-store-shim.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Tm;function T4(){if(Tm)return Yl;Tm=1;var r=N;function a(b,w){return b===w&&(b!==0||1/b===1/w)||b!==b&&w!==w}var o=typeof Object.is=="function"?Object.is:a,s=r.useState,c=r.useEffect,f=r.useLayoutEffect,g=r.useDebugValue;function m(b,w){var S=w(),P=s({inst:{value:S,getSnapshot:w}}),O=P[0].inst,q=P[1];return f(function(){O.value=S,O.getSnapshot=w,y(O)&&q({inst:O})},[b,S,w]),c(function(){return y(O)&&q({inst:O}),b(function(){y(O)&&q({inst:O})})},[b]),g(S),S}function y(b){var w=b.getSnapshot;b=b.value;try{var S=w();return!o(b,S)}catch{return!0}}function C(b,w){return w()}var _=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?C:m;return Yl.useSyncExternalStore=r.useSyncExternalStore!==void 0?r.useSyncExternalStore:_,Yl}var Xl={};/**
 * @license React
 * use-sync-external-store-shim.development.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Mm;function M4(){return Mm||(Mm=1,process.env.NODE_ENV!=="production"&&(function(){function r(S,P){return S===P&&(S!==0||1/S===1/P)||S!==S&&P!==P}function a(S,P){_||c.startTransition===void 0||(_=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var O=P();if(!b){var q=P();f(O,q)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),b=!0)}q=g({inst:{value:O,getSnapshot:P}});var G=q[0].inst,k=q[1];return y(function(){G.value=O,G.getSnapshot=P,o(G)&&k({inst:G})},[S,O,P]),m(function(){return o(G)&&k({inst:G}),S(function(){o(G)&&k({inst:G})})},[S]),C(O),O}function o(S){var P=S.getSnapshot;S=S.value;try{var O=P();return!f(S,O)}catch{return!0}}function s(S,P){return P()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var c=N,f=typeof Object.is=="function"?Object.is:r,g=c.useState,m=c.useEffect,y=c.useLayoutEffect,C=c.useDebugValue,_=!1,b=!1,w=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?s:a;Xl.useSyncExternalStore=c.useSyncExternalStore!==void 0?c.useSyncExternalStore:w,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Xl}var Am;function A4(){return Am||(Am=1,process.env.NODE_ENV==="production"?Pu.exports=T4():Pu.exports=M4()),Pu.exports}var Dm=A4();const Rm=0,jm=1,km=2,Fm=3;var Bm=Object.prototype.hasOwnProperty;function Kl(r,a){var o,s;if(r===a)return!0;if(r&&a&&(o=r.constructor)===a.constructor){if(o===Date)return r.getTime()===a.getTime();if(o===RegExp)return r.toString()===a.toString();if(o===Array){if((s=r.length)===a.length)for(;s--&&Kl(r[s],a[s]););return s===-1}if(!o||typeof r=="object"){s=0;for(o in r)if(Bm.call(r,o)&&++s&&!Bm.call(a,o)||!(o in a)||!Kl(r[o],a[o]))return!1;return Object.keys(a).length===s}}return r!==r&&a!==a}const Zi=new WeakMap,Wi=()=>{},nr=Wi(),Jl=Object,Ve=r=>r===nr,Si=r=>typeof r=="function",ys=(r,a)=>({...r,...a}),zm=r=>Si(r.then),Ql={},Tu={},$l="undefined",ya=typeof window!=$l,tc=typeof document!=$l,D4=ya&&"Deno"in window,R4=()=>ya&&typeof window.requestAnimationFrame!=$l,Gm=(r,a)=>{const o=Zi.get(r);return[()=>!Ve(a)&&r.get(a)||Ql,s=>{if(!Ve(a)){const c=r.get(a);a in Tu||(Tu[a]=c),o[5](a,ys(c,s),c||Ql)}},o[6],()=>!Ve(a)&&a in Tu?Tu[a]:!Ve(a)&&r.get(a)||Ql]};let ec=!0;const j4=()=>ec,[nc,rc]=ya&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Wi,Wi],k4=()=>{const r=tc&&document.visibilityState;return Ve(r)||r!=="hidden"},F4=r=>(tc&&document.addEventListener("visibilitychange",r),nc("focus",r),()=>{tc&&document.removeEventListener("visibilitychange",r),rc("focus",r)}),B4=r=>{const a=()=>{ec=!0,r()},o=()=>{ec=!1};return nc("online",a),nc("offline",o),()=>{rc("online",a),rc("offline",o)}},z4={isOnline:j4,isVisible:k4},G4={initFocus:F4,initReconnect:B4},qm=!N.useId,So=!ya||D4,q4=r=>R4()?window.requestAnimationFrame(r):setTimeout(r,1),ic=So?N.useEffect:N.useLayoutEffect,sc=typeof navigator<"u"&&navigator.connection,Vm=!So&&sc&&(["slow-2g","2g"].includes(sc.effectiveType)||sc.saveData),Mu=new WeakMap,V4=r=>Jl.prototype.toString.call(r),oc=(r,a)=>r===`[object ${a}]`;let U4=0;const ac=r=>{const a=typeof r,o=V4(r),s=oc(o,"Date"),c=oc(o,"RegExp"),f=oc(o,"Object");let g,m;if(Jl(r)===r&&!s&&!c){if(g=Mu.get(r),g)return g;if(g=++U4+"~",Mu.set(r,g),Array.isArray(r)){for(g="@",m=0;m<r.length;m++)g+=ac(r[m])+",";Mu.set(r,g)}if(f){g="#";const y=Jl.keys(r).sort();for(;!Ve(m=y.pop());)Ve(r[m])||(g+=m+":"+ac(r[m])+",");Mu.set(r,g)}}else g=s?r.toJSON():a=="symbol"?r.toString():a=="string"?JSON.stringify(r):""+r;return g},uc=r=>{if(Si(r))try{r=r()}catch{r=""}const a=r;return r=typeof r=="string"?r:(Array.isArray(r)?r.length:r)?ac(r):"",[r,a]};let H4=0;const lc=()=>++H4;async function Um(...r){const[a,o,s,c]=r,f=ys({populateCache:!0,throwOnError:!0},typeof c=="boolean"?{revalidate:c}:c||{});let g=f.populateCache;const m=f.rollbackOnError;let y=f.optimisticData;const C=w=>typeof m=="function"?m(w):m!==!1,_=f.throwOnError;if(Si(o)){const w=o,S=[],P=a.keys();for(const O of P)!/^\$(inf|sub)\$/.test(O)&&w(a.get(O)._k)&&S.push(O);return Promise.all(S.map(b))}return b(o);async function b(w){const[S]=uc(w);if(!S)return;const[P,O]=Gm(a,S),[q,G,k,A]=Zi.get(a),R=()=>{const ct=q[S];return(Si(f.revalidate)?f.revalidate(P().data,w):f.revalidate!==!1)&&(delete k[S],delete A[S],ct&&ct[0])?ct[0](km).then(()=>P().data):P().data};if(r.length<3)return R();let j=s,W,F=!1;const H=lc();G[S]=[H,0];const U=!Ve(y),it=P(),Y=it.data,M=it._c,ot=Ve(M)?Y:M;if(U&&(y=Si(y)?y(ot,Y):y,O({data:y,_c:ot})),Si(j))try{j=j(ot)}catch(ct){W=ct,F=!0}if(j&&zm(j))if(j=await j.catch(ct=>{W=ct,F=!0}),H!==G[S][0]){if(F)throw W;return j}else F&&U&&C(W)&&(g=!0,O({data:ot,_c:nr}));if(g&&!F)if(Si(g)){const ct=g(j,ot);O({data:ct,error:nr,_c:nr})}else O({data:j,error:nr,_c:nr});if(G[S][1]=lc(),Promise.resolve(R()).then(()=>{O({_c:nr})}),F){if(_)throw W;return}return j}}const Hm=(r,a)=>{for(const o in r)r[o][0]&&r[o][0](a)},Z4=(r,a)=>{if(!Zi.has(r)){const o=ys(G4,a),s=Object.create(null),c=Um.bind(nr,r);let f=Wi;const g=Object.create(null),m=(_,b)=>{const w=g[_]||[];return g[_]=w,w.push(b),()=>w.splice(w.indexOf(b),1)},y=(_,b,w)=>{r.set(_,b);const S=g[_];if(S)for(const P of S)P(b,w)},C=()=>{if(!Zi.has(r)&&(Zi.set(r,[s,Object.create(null),Object.create(null),Object.create(null),c,y,m]),!So)){const _=o.initFocus(setTimeout.bind(nr,Hm.bind(nr,s,Rm))),b=o.initReconnect(setTimeout.bind(nr,Hm.bind(nr,s,jm)));f=()=>{_&&_(),b&&b(),Zi.delete(r)}}};return C(),[r,c,C,f]}return[r,Zi.get(r)[4]]},W4=(r,a,o,s,c)=>{const f=o.errorRetryCount,g=c.retryCount,m=~~((Math.random()+.5)*(1<<(g<8?g:8)))*o.errorRetryInterval;!Ve(f)&&g>f||setTimeout(s,m,c)},Y4=Kl,[Zm,X4]=Z4(new Map),K4=ys({onLoadingSlow:Wi,onSuccess:Wi,onError:Wi,onErrorRetry:W4,onDiscarded:Wi,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Vm?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Vm?5e3:3e3,compare:Y4,isPaused:()=>!1,cache:Zm,mutate:X4,fallback:{}},z4),J4=(r,a)=>{const o=ys(r,a);if(a){const{use:s,fallback:c}=r,{use:f,fallback:g}=a;s&&f&&(o.use=s.concat(f)),c&&g&&(o.fallback=ys(c,g))}return o},Q4=N.createContext({}),$4="$inf$",Wm=ya&&window.__SWR_DEVTOOLS_USE__,t9=Wm?window.__SWR_DEVTOOLS_USE__:[],e9=()=>{Wm&&(window.__SWR_DEVTOOLS_REACT__=N)},n9=r=>Si(r[1])?[r[0],r[1],r[2]||{}]:[r[0],null,(r[1]===null?r[2]:r[1])||{}],Ym=()=>{const r=N.useContext(Q4);return N.useMemo(()=>ys(K4,r),[r])},r9=r=>(a,o,s)=>r(a,o&&((...f)=>{const[g]=uc(a),[,,,m]=Zi.get(Zm);if(g.startsWith($4))return o(...f);const y=m[g];return Ve(y)?o(...f):(delete m[g],y)}),s),i9=t9.concat(r9),s9=r=>function(...o){const s=Ym(),[c,f,g]=n9(o),m=J4(s,g);let y=r;const{use:C}=m,_=(C||[]).concat(i9);for(let b=_.length;b--;)y=_[b](y);return y(c,f||m.fetcher||null,m)},o9=(r,a,o)=>{const s=a[r]||(a[r]=[]);return s.push(o),()=>{const c=s.indexOf(o);c>=0&&(s[c]=s[s.length-1],s.pop())}};e9();const cc=N.use||(r=>{switch(r.status){case"pending":throw r;case"fulfilled":return r.value;case"rejected":throw r.reason;default:throw r.status="pending",r.then(a=>{r.status="fulfilled",r.value=a},a=>{r.status="rejected",r.reason=a}),r}}),hc={dedupe:!0},Xm=Promise.resolve(nr),Km=s9((r,a,o)=>{const{cache:s,compare:c,suspense:f,fallbackData:g,revalidateOnMount:m,revalidateIfStale:y,refreshInterval:C,refreshWhenHidden:_,refreshWhenOffline:b,keepPreviousData:w,strictServerPrefetchWarning:S}=o,[P,O,q,G]=Zi.get(s),[k,A]=uc(r),R=N.useRef(!1),j=N.useRef(!1),W=N.useRef(k),F=N.useRef(a),H=N.useRef(o),U=()=>H.current,it=()=>U().isVisible()&&U().isOnline(),[Y,M,ot,ct]=Gm(s,k),Ct=N.useRef({}).current,V=Ve(g)?Ve(o.fallback)?nr:o.fallback[k]:g,$=(Ft,vt)=>{for(const gt in Ct){const Rt=gt;if(Rt==="data"){if(!c(Ft[Rt],vt[Rt])&&(!Ve(Ft[Rt])||!c(Nt,vt[Rt])))return!1}else if(vt[Rt]!==Ft[Rt])return!1}return!0},D=N.useMemo(()=>{const Ft=!k||!a?!1:Ve(m)?U().isPaused()||f?!1:y!==!1:m,vt=Qt=>{const Bt=ys(Qt);return delete Bt._k,Ft?{isValidating:!0,isLoading:!0,...Bt}:Bt},gt=Y(),Rt=ct(),Pt=vt(gt),Zt=gt===Rt?Pt:vt(Rt);let Vt=Pt;return[()=>{const Qt=vt(Y());return $(Qt,Vt)?(Vt.data=Qt.data,Vt.isLoading=Qt.isLoading,Vt.isValidating=Qt.isValidating,Vt.error=Qt.error,Vt):(Vt=Qt,Qt)},()=>Zt]},[s,k]),rt=Dm.useSyncExternalStore(N.useCallback(Ft=>ot(k,(vt,gt)=>{$(gt,vt)||Ft()}),[s,k]),D[0],D[1]),J=!R.current,et=P[k]&&P[k].length>0,st=rt.data,ut=Ve(st)?V&&zm(V)?cc(V):V:st,bt=rt.error,nt=N.useRef(ut),Nt=w?Ve(st)?Ve(nt.current)?ut:nt.current:st:ut,xt=k&&Ve(ut),Mt=!So&&Dm.useSyncExternalStore(()=>Wi,()=>!1,()=>!0);S&&Mt&&!f&&xt&&console.warn(`Missing pre-initiated data for serialized key "${k}" during server-side rendering. Data fethcing should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);const ce=et&&!Ve(bt)?!1:J&&!Ve(m)?m:U().isPaused()?!1:f?Ve(ut)?!1:y:Ve(ut)||y,ee=!!(k&&a&&J&&ce),We=Ve(rt.isValidating)?ee:rt.isValidating,kt=Ve(rt.isLoading)?ee:rt.isLoading,Ue=N.useCallback(async Ft=>{const vt=F.current;if(!k||!vt||j.current||U().isPaused())return!1;let gt,Rt,Pt=!0;const Zt=Ft||{},Vt=!q[k]||!Zt.dedupe,Qt=()=>qm?!j.current&&k===W.current&&R.current:k===W.current,Bt={isValidating:!1,isLoading:!1},de=()=>{M(Bt)},Jt=()=>{const he=q[k];he&&he[1]===Rt&&delete q[k]},Wt={isValidating:!0};Ve(Y().data)&&(Wt.isLoading=!0);try{if(Vt&&(M(Wt),o.loadingTimeout&&Ve(Y().data)&&setTimeout(()=>{Pt&&Qt()&&U().onLoadingSlow(k,o)},o.loadingTimeout),q[k]=[vt(A),lc()]),[gt,Rt]=q[k],gt=await gt,Vt&&setTimeout(Jt,o.dedupingInterval),!q[k]||q[k][1]!==Rt)return Vt&&Qt()&&U().onDiscarded(k),!1;Bt.error=nr;const he=O[k];if(!Ve(he)&&(Rt<=he[0]||Rt<=he[1]||he[1]===0))return de(),Vt&&Qt()&&U().onDiscarded(k),!1;const mt=Y().data;Bt.data=c(mt,gt)?mt:gt,Vt&&Qt()&&U().onSuccess(gt,k,o)}catch(he){Jt();const mt=U(),{shouldRetryOnError:De}=mt;mt.isPaused()||(Bt.error=he,Vt&&Qt()&&(mt.onError(he,k,mt),(De===!0||Si(De)&&De(he))&&(!U().revalidateOnFocus||!U().revalidateOnReconnect||it())&&mt.onErrorRetry(he,k,mt,en=>{const Gt=P[k];Gt&&Gt[0]&&Gt[0](Fm,en)},{retryCount:(Zt.retryCount||0)+1,dedupe:!0})))}return Pt=!1,de(),!0},[k,s]),ze=N.useCallback((...Ft)=>Um(s,W.current,...Ft),[]);if(ic(()=>{F.current=a,H.current=o,Ve(st)||(nt.current=st)}),ic(()=>{if(!k)return;const Ft=Ue.bind(nr,hc);let vt=0;U().revalidateOnFocus&&(vt=Date.now()+U().focusThrottleInterval);const Rt=o9(k,P,(Pt,Zt={})=>{if(Pt==Rm){const Vt=Date.now();U().revalidateOnFocus&&Vt>vt&&it()&&(vt=Vt+U().focusThrottleInterval,Ft())}else if(Pt==jm)U().revalidateOnReconnect&&it()&&Ft();else{if(Pt==km)return Ue();if(Pt==Fm)return Ue(Zt)}});return j.current=!1,W.current=k,R.current=!0,M({_k:A}),ce&&(q[k]||(Ve(ut)||So?Ft():q4(Ft))),()=>{j.current=!0,Rt()}},[k]),ic(()=>{let Ft;function vt(){const Rt=Si(C)?C(Y().data):C;Rt&&Ft!==-1&&(Ft=setTimeout(gt,Rt))}function gt(){!Y().error&&(_||U().isVisible())&&(b||U().isOnline())?Ue(hc).then(vt):vt()}return vt(),()=>{Ft&&(clearTimeout(Ft),Ft=-1)}},[C,_,b,k]),N.useDebugValue(Nt),f){if(!qm&&So&&xt)throw new Error("Fallback data is required when using Suspense in SSR.");xt&&(F.current=a,H.current=o,j.current=!1);const Ft=G[k],vt=!Ve(Ft)&&xt?ze(Ft):Xm;if(cc(vt),!Ve(bt)&&xt)throw bt;const gt=xt?Ue(hc):Xm;!Ve(Nt)&&xt&&(gt.status="fulfilled",gt.value=!0),cc(gt)}return{mutate:ze,get data(){return Ct.data=!0,Nt},get error(){return Ct.error=!0,bt},get isValidating(){return Ct.isValidating=!0,We},get isLoading(){return Ct.isLoading=!0,kt}}});async function a9(r="",a={}){let o=this,s;if(!a.suspense){a.headers=a.headers||{},a.headers["Content-Type"]=a.headers["Content-Type"]||"application/json",o.currentUserJWT&&(a.headers.Authorization="Bearer "+o.currentUserJWT);let c;if(c=await fetch(this.apiUrl+r,a),!c.ok){let f=await c.json(),g=new Error(f.error||f.message||c.statusText),m=new window.CustomEvent("osc-error",{detail:g});throw document.dispatchEvent(m),g}return s=await c.json(),s||{}}}const Au={fetch:async function({projectId:r,resourceId:a},o){let s=`/api/project/${r}/resource/${a}?includeUser=1&includeVoteCount=1&includeUserVote=1&includeTags=1&includeStatus=1`,c={"Content-Type":"application/json"};return!a||a==="undefined"?[]:this.fetch(s,{headers:c})},update:async function({projectId:r,resourceId:a},o){let s=`/api/project/${r}/resource/${a}?includeGlobalTags=true`,c={"Content-Type":"application/json"},f=await this.fetch(s,{headers:c,method:"put",body:JSON.stringify(o)}),g=new window.CustomEvent("osc-api-update-data",{detail:{type:"resource",resource:f,data:o}});return window.dispatchEvent(g),f},delete:async function({projectId:r,resourceId:a},o){let s=`/api/project/${r}/resource/${a}`;return await this.fetch(s,{method:"delete"}),{id:o.id}},submitLike:async function({projectId:r,resourceId:a},o){let s=`/api/project/${r}/vote`,c={"Content-Type":"application/json"},f=await this.fetch(s,{headers:c,method:"POST",body:JSON.stringify({resourceId:a,opinion:o.opinion})}),g=new window.CustomEvent("osc-resource-submit-like",{detail:{type:"resource",resourceId:a,data:o}});return window.dispatchEvent(g),f}},Lo={fetch:async function({projectId:r,resourceId:a,sentiment:o,onlyIncludeTagIds:s,search:c}){let f=`/api/project/${r}/resource/${a}/comment?sentiment=${o}&includeUser=1&includeUserVote=1&includeVoteCount=1&includeRepliesOnComments=1`;if(s=s||"",f+=`&onlyIncludeTagIds=${s}`,c&&(f+=`&search[text]=${encodeURIComponent(c)}`),!r||!a)throw new Error(`No ${r?"projectId":"resourceId"} given`);return this.fetch(f)},create:async function({projectId:r,resourceId:a},o){let s=`/api/project/${r}/resource/${a}/comment`,c="post";delete o.id;let f=JSON.stringify(o);return await this.fetch(s,{method:c,body:f})},update:async function({projectId:r,resourceId:a},o){let s=`/api/project/${r}/resource/${a}/comment/${o.id}`,c="put",f=JSON.stringify(o);return await this.fetch(s,{method:c,body:f})},delete:async function({projectId:r,resourceId:a},o){let s=`/api/project/${r}/resource/${a}/comment/${o.id}`;return await this.fetch(s,{method:"delete"}),{id:o.id}},submitLike:async function({projectId:r,resourceId:a},o){let s=`/api/project/${r}/resource/${a}/comment/${o.id}/vote/yes`,c="post";return JSON.stringify({}),await this.fetch(s,{method:c})},submitDislike:async function({projectId:r,resourceId:a},o){let s=`/api/project/${r}/resource/${a}/comment/${o.id}/vote/no`,c="post";return JSON.stringify({}),await this.fetch(s,{method:c})}},Du={fetch:async function({projectId:r,page:a,pageSize:o,search:s,tags:c,sort:f,statuses:g,projectIds:m,allowMultipleProjects:y},C){const _=new URLSearchParams,b=()=>{if(!localStorage.getItem("pseudoRandomSortSeed")){const P=()=>Math.floor(Math.random()*4294967295);localStorage.setItem("pseudoRandomSortSeed",P())}return localStorage.getItem("pseudoRandomSortSeed")};Array.isArray(c)&&c.length>0&&c.forEach(S=>_.append("tags",S)),Array.isArray(g)&&g.length>0&&g.forEach(S=>_.append("statuses",S)),s&&_.append("search[text]",s),f&&(Array.isArray(f)||(f=[f]),f.map(S=>_.append("sort",S)),f.includes("random")&&_.append("pseudoRandomSortSeed",b())),a>=0&&o?(_.append("page",a),_.append("pageSize",o)):o>=0&&(_.append("page",0),_.append("pageSize",o)),m&&m.length>0&&y&&m.forEach(S=>_.append("projectIds",S));let w=`/api/project/${r}/resource?includeUser=1&includeUserVote=1&includeVoteCount=1&includeTags=1&includeCommentsCount=1&${_.toString()}`;return this.fetch(w,C)},delete:async function({projectId:r,resourceId:a},o){let s=`/api/project/${r}/resource/${o.id}`;return await this.fetch(s,{method:"delete"}),{id:o.id}},create:async function({projectId:r,widgetId:a},o){delete o.id;let s=`/api/project/${r}/resource`,c="POST";a&&(o.widgetId=a);let f=JSON.stringify(o);return await this.fetch(s,{method:c,body:f})},submitLike:async function({projectId:r},a){if(!Array.isArray(a))throw new Error("Resources is geen array");if(a.some(f=>!1 in f||!1 in f))throw new Error("Ontbrekende velden resourceId of opinion");let o=`/api/project/${r}/vote`,s={"Content-Type":"application/json"};return await this.fetch(o,{headers:s,method:"POST",body:JSON.stringify(a)})}},Jm={fetch:async function({projectId:r}){return[]},create:async function({projectId:r},a){delete a.id;const o=`/api/project/${r}/choicesguide`,s="POST",c=JSON.stringify(a);return await this.fetch(o,{method:s,body:c})}},Ru={fetch:async function({projectId:r,type:a,onlyIncludeIds:o=[]}){const s=new URLSearchParams;o.length>0&&o.forEach(f=>s.append("tags",f));let c=`/api/project/${r}/tag?type=${a}&${s.toString()}&includeGlobalTags=true`;return this.fetch(c)},create:async function({projectId:r,type:a},o){let s=`/api/project/${r}/tag`,c="post";delete o.id;let f=JSON.stringify(o);return await this.fetch(s,{method:c,body:f})},update:async function({projectId:r,type:a},o){let s=`/api/project/${r}/tag/${o.id}`,c="put",f=JSON.stringify(o);return await this.fetch(s,{method:c,body:f})},delete:async function({projectId:r,type:a},o){let s=`/api/project/${r}/tag/${o.id}`;return await this.fetch(s,{method:"delete"}),{id:o.id}}},Ca={fetch:async function({projectId:r,userId:a}){let o=`/api/project/${r}/user/${a}`,s={"Content-Type":"application/json"};return a?this.fetch(o,{headers:s}):[]},fetchMe:async function({projectId:r}){let a=`/auth/project/${r}/me`,o={"Content-Type":"application/json"},c=await this.fetch(a,{headers:o});return c&&c.id&&(c={...c,jwt:self.currentUserJWT}),c},connectUser:async function({projectId:r,cmsUser:a}){let o=`/auth/project/${r}/connect-user?useAuth=oidc`,s={"Content-Type":"application/json"},c={access_token:a.access_token,iss:`${a.iss}`};return(await this.fetch(o,{headers:s,method:"POST",body:JSON.stringify(c)})).jwt},update:async function({projectId:r,user:a}){let o=`/api/project/${r}/user/${a.id}`,s={"Content-Type":"application/json"},c={postcode:a.postalCode,name:a.name,fullName:a.name,nickName:a.nickName,address:a.address,city:a.city};return await this.fetch(o,{headers:s,method:"PUT",body:JSON.stringify(c)})},logout:function({url:r}){r=r||`${this.apiUrl}/auth/project/${this.projectId}/logout?useAuth=oidc`,document.location.href=r}},u9={fetch:async function({projectId:r}){let a=`/api/project/${r}/area`;return this.fetch(a)}},l9={fetch:async function({projectId:r}){let a=`/api/project/${r}/datalayer`;return this.fetch(a)}},c9={fetch:async function({projectId:r,widgetId:a}){let o=`/api/project/${r}/widgets/${a}`;return this.fetch(o)}},h9={fetch:async function(){return this.fetch("/api/area")}},Qm={fetch:async function({projectId:r,type:a}){let o=`/api/project/${r}/vote`;return a&&(o+=`&type=${a}`),r?this.fetch(o):[]},submitVote:async function({projectId:r,type:a},o){console.log("SUBMIT VOTE");let s=`/api/project/${r}/vote`,c={"Content-Type":"application/json"},f=o.map(y=>({resourceId:y.id,opinion:"selected"})),g=await this.fetch(s,{headers:c,method:"POST",body:JSON.stringify(f)}),m=new window.CustomEvent("osc-submit-user-vote",{detail:{type:"userVote",votes:f}});return window.dispatchEvent(m),g}},$m={fetch:async function({projectId:r}){return[]},create:async function({projectId:r},a){delete a.id;let o=`/api/project/${r}/submission`,s="post",c=JSON.stringify(a);return await this.fetch(o,{method:s,body:c})}},f9={fetch:async function({projectId:r,sentiment:a}){let o=`/api/project/${r}/comment?sentiment=${a}`;return this.fetch(o)}},d9={fetch:async function({projectId:r,choiceGuideId:a}){let o=`/api/project/${r}/choicesguide/${a}/result`;return this.fetch(o)}},g9={fetch:async function({projectId:r,userId:a}){let o=`/api/project/${r}/user/${a}/activity?includeOtherProjects=1`,s={"Content-Type":"application/json"};return a?this.fetch(o,{headers:s}):[]}},m9={fetch:async function({projectId:r,widgetToFetchId:a}){let o=`/api/project/${r}/choicesguide/widgets/${a}/count`;return this.fetch(o)}},p9={fetch:async function({projectId:r,widgetToFetchId:a}){let o=`/api/project/${r}/submission/widgets/${a}/count`;return this.fetch(o)}},fc=typeof window<"u"?window:{};fc.OpenStadAPI=null;function v9(r={config:{}}){return fc.OpenStadAPI=fc.OpenStadAPI||new y9(r)}function y9(r={}){var o;let a=this;if(a.apiUrl=r.apiUrl||((o=r.api)==null?void 0:o.url)||null,a.projectId=r.projectId||0,a.fetch=a9.bind(a),a.choiceGuideResults={fetch:d9.fetch.bind(a)},a.choiceGuideResultCount={fetch:m9.fetch.bind(a)},a.enqueteResultCount={fetch:p9.fetch.bind(a)},a.comments={fetch:Lo.fetch.bind(a),create:Lo.create.bind(a),update:Lo.update.bind(a),delete:Lo.delete.bind(a),submitLike:Lo.submitLike.bind(a),submitDislike:Lo.submitDislike.bind(a)},a.commentsByProject={fetch:f9.fetch.bind(a)},a.resource={fetch:Au.fetch.bind(a),update:Au.update.bind(a),delete:Au.delete.bind(a),submitLike:Au.submitLike.bind(a)},a.resources={fetch:Du.fetch.bind(a),delete:Du.delete.bind(a),create:Du.create.bind(a),submitLike:Du.submitLike.bind(a)},a.choicesguide={fetch:Jm.fetch.bind(a),create:Jm.create.bind(a)},a.submissions={fetch:$m.fetch.bind(a),create:$m.create.bind(a)},a.tags={fetch:Ru.fetch.bind(a),create:Ru.create.bind(a),update:Ru.update.bind(a),delete:Ru.delete.bind(a)},a.area={fetch:u9.fetch.bind(a)},a.datalayer={fetch:l9.fetch.bind(a)},a.widget={fetch:c9.fetch.bind(a)},a.areas={fetch:h9.fetch.bind(a)},a.user={fetch:Ca.fetch.bind(a),fetchMe:Ca.fetchMe.bind(a),connectUser:Ca.connectUser.bind(a),update:Ca.update.bind(a),logout:Ca.logout.bind(a)},a.userVote={fetch:Qm.fetch.bind(a),submitVote:Qm.submitVote.bind(a)},a.userActivity={fetch:g9.fetch.bind(a)},r.logMethods)return a}function C9(r){var y,C;let a=this;const o=r.projectId,s=r.resourceId,{data:c,error:f,isLoading:g}=a.useSWR({projectId:o,resourceId:s},"resource.fetch");let m=c||{};return m.update=function(_){return a.mutate({projectId:o,resourceId:s},"resource.update",_,{action:"update"})},m.delete=function(){a.mutate({projectId:o,resourceId:s},"resource.delete",m,{action:"delete"})},m.submitLike=function(_){a.mutate({projectId:o,resourceId:s},"resource.submitLike",_,{action:"submitLike",revalidate:!0,populateCache:!1})},{data:m,error:f,isLoading:g,canEdit:((y=c==null?void 0:c.can)==null?void 0:y.edit)||!1,canDelete:((C=c==null?void 0:c.can)==null?void 0:C.delete)||!1}}function _9({projectId:r}){let a=this;const{data:o,error:s,isLoading:c}=a.useSWR({projectId:r},"choicesguide.fetch");let f=o||[];if(s){const m=new window.CustomEvent("osc-error",{detail:new Error(s)});document.dispatchEvent(m)}return{data:f,error:s,isLoading:c,create:function(m,y){return a.mutate({projectId:r},"choicesguide.create",{submittedData:m,projectId:r,widgetId:y},{action:"create"})}}}function b9({projectId:r,areaId:a}){let o=this;const{data:s,error:c,isLoading:f}=o.useSWR({projectId:r},"area.fetch");let g=s||[];if(c){const m=new window.CustomEvent("osc-error",{detail:new Error(c)});document.dispatchEvent(m)}return{data:g,error:c,isLoading:f}}function x9({projectId:r,datalayerId:a}){let o=this;const{data:s,error:c,isLoading:f}=o.useSWR({projectId:r},"datalayer.fetch");let g=s||[];if(c){const m=new window.CustomEvent("osc-error",{detail:new Error(c)});document.dispatchEvent(m)}return{data:g,error:c,isLoading:f}}function E9(){let r=this;const{data:a,error:o,isLoading:s}=r.useSWR({},"areas.fetch");let c=a||[];if(o){const f=new window.CustomEvent("osc-error",{detail:new Error(o)});document.dispatchEvent(f)}return{data:c,error:o,isLoading:s}}function w9(r){let a=this;const o=r.projectId,s=r.resourceId,c=r.sentiment||null,f=r.onlyIncludeTagIds||null,g=r.search||"";let m=[],y,C=!1;if(s&&s!=="0"){const{data:b,error:w,isLoading:S}=a.useSWR({projectId:o,resourceId:s,sentiment:c,onlyIncludeTagIds:f,search:g},"comments.fetch");m=b,y=w,C=S}let _=m||[];return _.create=function(b){return a.mutate({projectId:o,resourceId:s,sentiment:c},"comments.create",b,{action:"create"})},_.map(async b=>{var w;b.update=function(S){return a.mutate({projectId:o,resourceId:s,sentiment:c},"comments.update",S,{action:"update"})},b.delete=function(S){return a.mutate({projectId:o,resourceId:s,sentiment:c},"comments.delete",b,{action:"delete"})},b.submitLike=function(){return a.mutate({projectId:o,resourceId:s,sentiment:c},"comments.submitLike",b,{action:"update"})},b.submitDislike=function(){return a.mutate({projectId:o,resourceId:s,sentiment:c},"comments.submitDislike",b,{action:"update"})},(w=b.replies)==null||w.map(async S=>{S.update=function(P){return a.mutate({projectId:o,resourceId:s,sentiment:c},"comments.update",P,{action:"update"})},S.delete=function(P){return a.mutate({projectId:o,resourceId:s,sentiment:c},"comments.delete",S,{action:"delete"})},S.submitLike=function(){return a.mutate({projectId:o,resourceId:s,sentiment:c},"comments.submitLike",S,{action:"update"})},S.submitDislike=function(){return a.mutate({projectId:o,resourceId:s,sentiment:c},"comments.submitLike",S,{action:"update"})}})}),{data:_,error:y,isLoading:C}}function O9({projectId:r,page:a=0,pageSize:o=20,search:s="",tags:c=[],sort:f="random",statuses:g=[],projectIds:m=[],allowMultipleProjects:y=!1},C){let _=this;if(!r)return{data:{metadata:{page:0,pageSize:0,pageCount:1,totalCount:0},records:[]},error:"No projectId given",isLoading:!1};const{data:b,error:w,isLoading:S}=_.useSWR({projectId:r,page:a,pageSize:o,search:s,tags:c,sort:f,statuses:g,projectIds:m,allowMultipleProjects:y},"resources.fetch",C);let P=b||[];Array.isArray(P)&&(P={metadata:{page:0,pageSize:P.length,pageCount:1,totalCount:P.length},records:P});const O=function(G,k){return _.mutate({projectId:r},"resources.create",{submittedData:G,widgetId:k},{action:"create"})},q=function(G){return _.mutate({projectId:r},"resources.submitLike",G,{action:"update"})};return P.records&&(P.records.create=function(G){return _.mutate({projectId:r},"resources.create",G,{action:"create"})},P.records.forEach(async G=>{G.update=function(k){return _.mutate({projectId:r},"resources.update",k,{action:"update"})},G.delete=function(){return _.mutate({projectId:r},"resources.delete",G,{action:"delete"})}})),{data:P,error:w,isLoading:S,submitVotes:q,create:O}}function N9(r){let a=this;const o=r.projectId,s=r.type,c=r.onlyIncludeIds,{data:f,error:g,isLoading:m}=a.useSWR({projectId:o||a.projectId,type:s,onlyIncludeIds:c},"tags.fetch");let y=f||[];if(y.create=function(C){return a.mutate({projectId:o,type:s},"tags.create",C,{action:"create"})},y.map(async C=>{C.update=function(_){return a.mutate({projectId:o,type:s},"tags.update",_,{action:"update"})},C.delete=function(_){return a.mutate({projectId:o,type:s},"tags.delete",C,{action:"delete"})},C.submitLike=function(){return a.mutate({projectId:o,type:s},"tags.submitLike",C,{action:"update"})}}),g){let C=new window.CustomEvent("osc-error",{detail:new Error(g)});document.dispatchEvent(C)}return{data:y,error:g,isLoading:m}}class dc{constructor(a){this.projectId=a.projectId}getData(){const a=window.sessionStorage.getItem("openstad");let o={};try{a&&(o=JSON.parse(a))}catch{o={}}let s=o;return this.projectId&&(o[this.projectId]=o[this.projectId]||{},s=o[this.projectId]||{}),{data:o,target:s}}get(a){let{data:o,target:s}=this.getData(),c=s[a];try{c=JSON.parse(c)}catch{}return c}set(a,o){if(typeof a!="string")return;typeof o>"u"&&(o="");let{data:s,target:c}=this.getData();c[a]=o,window.sessionStorage.setItem("openstad",JSON.stringify(s))}remove(a){if(typeof a!="string")return;let{data:o,target:s}=this.getData();delete s[a],window.sessionStorage.setItem("openstad",JSON.stringify(o))}destroy(){window.sessionStorage.setItem("openstad",JSON.stringify({}))}}function S9(r){let a=this;r.projectId;const{data:o,error:s,isLoading:c}=Km({type:"current-user",projectId:a.projectId},f);async function f(){const g=new dc(r),m=new URLSearchParams(window.location.search);if(m.has("openstadlogout")){g.remove("cmsUser"),g.remove("openStadUser");let S=window.location.href;return S=S.replace(new RegExp("[?&]openstadlogout=true"),""),history.replaceState(null,"",S),a.currentUser=null,{}}if(a.currentUser&&a.currentUser.id)return a.currentUser;let y={};try{y=globalOpenStadUser||r.openStadUser||{}}catch{}if(y.id&&y.projectId==a.projectId)return y;let C;if(m.has("openstadlogintoken")){C=m.get("openstadlogintoken"),g.set("openStadUser",{jwt:C});let S=window.location.href;S=S.replace(new RegExp(`[?&]openstadlogintoken=${C}`),""),history.replaceState(null,"",S)}let _={};try{_=globalCmsUser||r.cmsUser||{}}catch{}let b=g.get("cmsUser")||{};b&&_&&b.access_token!=_.access_token&&(g.remove("cmsUser"),g.remove("openStadUser")),g.set("cmsUser",_);let w=g.get("openStadUser")||{};if(C=C||y.jwt||w.jwt,!C&&_&&_.access_token&&_.iss&&(C=await a.api.user.connectUser({projectId:a.projectId,cmsUser:_})),C){a.api.currentUserJWT=C,a.refresh();let S=await a.api.user.fetchMe({projectId:a.projectId});return g.set("openStadUser",{...S,jwt:C}),S}else return{}}return o&&(o.logout=function(g){new dc(r).destroy(),a.api.user.logout(g)}),{data:o,setUser:()=>console.log("setUser not (yet) implemented"),error:s,isLoading:c}}function L9(r){let a=this;r.projectId;const o=r.type,{data:s,error:c,isLoading:f}=a.useSWR({type:o,projectId:a.projectId},"userVote.fetch");let g=s||{};if(g.submitVote=function(m){return a.mutate({type:"user-vote",projectId:a.projectId},"userVote.submitVote",m,{action:"update"})},c){let m=new Error(m),y=new window.CustomEvent("osc-error",{detail:m});document.dispatchEvent(y)}return{data:g,error:c,isLoading:f}}function I9({projectId:r}){let a=this;const{data:o,error:s,isLoading:c}=a.useSWR({projectId:r},"submissions.fetch");let f=o||[];if(s){const m=new window.CustomEvent("osc-error",{detail:new Error(s)});document.dispatchEvent(m)}return{data:f,error:s,isLoading:c,create:function(m,y){return a.mutate({projectId:r},"submissions.create",{submittedData:m,widgetId:y},{action:"create"})}}}function P9(r){let a=this;const o=r.projectId,s=r.sentiment,{data:c,error:f,isLoading:g}=a.useSWR({projectId:o,sentiment:s},"commentsByProject.fetch");let m=c||[];if(f){let y=new Error(y),C=new window.CustomEvent("osc-error",{detail:y});document.dispatchEvent(C)}return{data:m,error:f,isLoading:g}}function T9({projectId:r,choiceGuideId:a}){let o=this;if(!a)return{data:[],error:"No choiceGuideId given",isLoading:!1};try{const{data:s,error:c,isLoading:f}=o.useSWR({projectId:r,choiceGuideId:a},"choiceGuideResults.fetch");if(c){let g=new Error(g),m=new window.CustomEvent("osc-error",{detail:g});document.dispatchEvent(m)}return{data:s||[],error:c,isLoading:f}}catch{return{data:[],error:"Er ging iets mis bij het ophalen van de resultaten, waarschijnlijk ontbreken er een aantal rechten",isLoading:!1}}}function M9({projectId:r,userId:a}){let o=this;const{data:s,error:c,isLoading:f}=o.useSWR({projectId:r,userId:a},"userActivity.fetch");let g=s||[];if(c){const m=new window.CustomEvent("osc-error",{detail:new Error(c)});document.dispatchEvent(m)}return{data:g,error:c,isLoading:f}}function A9({projectId:r,widgetId:a}){let o=this;const{data:s,error:c,isLoading:f}=o.useSWR({projectId:r,widgetId:a},"widget.fetch");let g=s||[];if(c){const m=new window.CustomEvent("osc-error",{detail:new Error(c)});document.dispatchEvent(m)}return{data:g,error:c,isLoading:f}}function D9({projectId:r,widgetToFetchId:a}){let o=this;if(!a)return{data:0,error:"No widgetId given",isLoading:!1};try{const{data:s,error:c,isLoading:f}=o.useSWR({projectId:r,widgetToFetchId:a},"choiceGuideResultCount.fetch");if(c){let g=new Error(c),m=new window.CustomEvent("osc-error",{detail:g});document.dispatchEvent(m)}return{data:(s==null?void 0:s.count)||0,error:c,isLoading:f}}catch{return{data:0,error:"Er ging iets mis bij het ophalen van de resultaten, waarschijnlijk ontbreken er een aantal rechten",isLoading:!1}}}function R9({projectId:r,widgetToFetchId:a}){let o=this;if(!a)return{data:0,error:"No widgetId given",isLoading:!1};try{const{data:s,error:c,isLoading:f}=o.useSWR({projectId:r,widgetToFetchId:a},"enqueteResultCount.fetch");if(c){let g=new Error(c),m=new window.CustomEvent("osc-error",{detail:g});document.dispatchEvent(m)}return{data:(s==null?void 0:s.count)||0,error:c,isLoading:f}}catch{return{data:0,error:"Er ging iets mis bij het ophalen van de resultaten, waarschijnlijk ontbreken er een aantal rechten",isLoading:!1}}}const ju=typeof window<"u"?window:{};ju.OpenStadSWR=ju.OpenStadSWR||{};function _a(r={}){let a=this;a.api=new v9(r),a.projectId=r.projectId,a.useResource=C9.bind(a),a.useChoicesguide=_9.bind(a),a.useComments=w9.bind(a),a.useResources=O9.bind(a),a.useArea=b9.bind(a),a.useDatalayer=x9.bind(a),a.useAreas=E9.bind(a),a.useTags=N9.bind(a),a.useCurrentUser=S9.bind(a),a.useUserVote=L9.bind(a),a.useSubmissions=I9.bind(a),a.useCommentsByProject=P9.bind(a),a.useChoiceGuideResults=T9.bind(a),a.useEnqueteResultCount=R9.bind(a),a.useChoiceGuideResultCount=D9.bind(a),a.useUserActivity=M9.bind(a),a.useWidget=A9.bind(a);const{data:o,error:s,isLoadingLcurrentUserIsLoading:c}=a.useCurrentUser({...r,projectId:a.projectId});a.currentUser=o,a.createKey=function(g,m){return{type:m.split(".")[0],...g}},a.useSWR=function(g,m,y={}){const C=m.split(".");let _=a.api;if(C.length>1)for(let w=0;w<C.length;w++){if(!_[C[w]])throw new Error(`uswSWF: fetcher ${m} not found`);_=_[C[w]]}else _=a.api[m];let b=a.createKey(g,m);return ju.OpenStadSWR[JSON.stringify(b,null,2)]=!0,Km(b,()=>_(g,{...y,keepPreviousData:!0}))};const{mutate:f}=Ym();a.mutate=async function(g,m,y,C){let _=m.split(".").reduce((S,P)=>S[P],a.api),b=a.createKey(g,m),w={optimisticData:S=>Pm(S,y,C.action),revalidate:!1,rollbackOnError:!0};return C.action!="fetch"&&C.revalidate!=!0&&(w.populateCache=(S,P)=>Pm(P,S,C.action)),y!=null&&y.parentId&&(w.revalidate=!0),await f(b,_(b,y,C),{...w,...C})},a.refresh=function(){f(g=>Object.keys(ju.OpenStadSWR).indexOf(JSON.stringify(g,null,2))!=-1,async g=>g,{revalidate:!0,rollbackOnError:!0})}}const j9=typeof window>"u"?N.useEffect:N.useLayoutEffect;function k9(r,a=!1){const o=a?j9:N.useEffect,s=N.useRef(r);return o(()=>{s.current=r}),s}var gc,tp;function F9(){if(tp)return gc;tp=1;var r="Expected a function",a=NaN,o="[object Symbol]",s=/^\s+|\s+$/g,c=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,g=/^0o[0-7]+$/i,m=parseInt,y=typeof nu=="object"&&nu&&nu.Object===Object&&nu,C=typeof self=="object"&&self&&self.Object===Object&&self,_=y||C||Function("return this")(),b=Object.prototype,w=b.toString,S=Math.max,P=Math.min,O=function(){return _.Date.now()};function q(j,W,F){var H,U,it,Y,M,ot,ct=0,Ct=!1,V=!1,$=!0;if(typeof j!="function")throw new TypeError(r);W=R(W)||0,G(F)&&(Ct=!!F.leading,V="maxWait"in F,it=V?S(R(F.maxWait)||0,W):it,$="trailing"in F?!!F.trailing:$);function D(xt){var Mt=H,ce=U;return H=U=void 0,ct=xt,Y=j.apply(ce,Mt),Y}function rt(xt){return ct=xt,M=setTimeout(st,W),Ct?D(xt):Y}function J(xt){var Mt=xt-ot,ce=xt-ct,ee=W-Mt;return V?P(ee,it-ce):ee}function et(xt){var Mt=xt-ot,ce=xt-ct;return ot===void 0||Mt>=W||Mt<0||V&&ce>=it}function st(){var xt=O();if(et(xt))return ut(xt);M=setTimeout(st,J(xt))}function ut(xt){return M=void 0,$&&H?D(xt):(H=U=void 0,Y)}function bt(){M!==void 0&&clearTimeout(M),ct=0,H=ot=U=M=void 0}function nt(){return M===void 0?Y:ut(O())}function Nt(){var xt=O(),Mt=et(xt);if(H=arguments,U=this,ot=xt,Mt){if(M===void 0)return rt(ot);if(V)return M=setTimeout(st,W),D(ot)}return M===void 0&&(M=setTimeout(st,W)),Y}return Nt.cancel=bt,Nt.flush=nt,Nt}function G(j){var W=typeof j;return!!j&&(W=="object"||W=="function")}function k(j){return!!j&&typeof j=="object"}function A(j){return typeof j=="symbol"||k(j)&&w.call(j)==o}function R(j){if(typeof j=="number")return j;if(A(j))return a;if(G(j)){var W=typeof j.valueOf=="function"?j.valueOf():j;j=G(W)?W+"":W}if(typeof j!="string")return j===0?j:+j;j=j.replace(s,"");var F=f.test(j);return F||g.test(j)?m(j.slice(2),F?2:8):c.test(j)?a:+j}return gc=q,gc}var B9=F9();const z9=ru(B9);function G9(r){N.useEffect(()=>r,[])}function q9(r,a,o){const s=N.useCallback(m=>z9(m,a,o),[a,o]),c=k9(r);function f(...m){var y;(y=c.current)===null||y===void 0||y.call(c,...m)}const g=N.useRef(s(f));return G9(()=>{var m;return(m=g.current)===null||m===void 0?void 0:m.cancel()}),g.current}const V9=({dataStore:r,tagType:a,onUpdateFilter:o,selected:s=[],onlyIncludeIds:c=[],preFilterTags:f=void 0,parentStopUsingDefaultValue:g=!1,...m})=>{if(!r||!r.useTags)return N.createElement("p",null,"Cannot render tagfilter, missing data source");const y={type:a,onlyIncludeIds:c};typeof(m==null?void 0:m.tagGroupProjectId)=="string"&&(m==null?void 0:m.tagGroupProjectId)==="0"&&(y.projectId=m.tagGroupProjectId);const{data:C}=r.useTags(y),[_,b]=N.useState(!1),[w,S]=N.useState([]);N.useEffect(()=>{g&&b(!0)});const P=Math.random().toString(36).substring(7);function O(G){return G&&G.length>=1?G.toLowerCase().replace(/[^a-z0-9\s]/g,"").replace(/\s+/g,"-"):P}N.useEffect(()=>{!_&&!g&&f&&f.length>0&&o&&f.forEach(G=>{const k=C.find(A=>A.id===G);k&&(o(k.id,k.name,!0),S(A=>A.includes(k.id)?A:[...A,k.id]))})},[f]);const q=_?s:Array.from(new Set([...s,...w]));return C.length>0&&N.createElement("div",{className:"form-element"},N.createElement(wi,{id:O(m.placeholder)},m.placeholder||"Selecteer item"),N.createElement(g7,{id:O(m.placeholder),label:m.placeholder||"",onItemSelected:(G,k)=>{b(!0),o&&o(G,k)},options:(C||[]).map(G=>({value:G.id,label:G.name,checked:q.includes(G.id)}))}))},U9=N.forwardRef(({onlyIncludeIds:r=[],dataStore:a,tagType:o,onUpdateFilter:s,preFilterTags:c=void 0,parentStopUsingDefaultValue:f=!1,...g},m)=>{var q,G;const y={type:o,onlyIncludeIds:r};typeof(g==null?void 0:g.tagGroupProjectId)=="string"&&(g==null?void 0:g.tagGroupProjectId)==="0"&&(y.projectId=g.tagGroupProjectId);const{data:C}=a.useTags(y),[_,b]=N.useState(void 0),[w,S]=N.useState(!1);if(N.useEffect(()=>{f&&S(!0)}),!a||!a.useTags)return N.createElement("p",null,"Cannot render tagfilter, missing data source");const P=Math.random().toString(36).substring(7);function O(k){return k&&k.length>=1?k.toLowerCase().replace(/[^a-z0-9\s]/g,"").replace(/\s+/g,"-"):P}return N.useEffect(()=>{!w&&c&&c.length>0&&C&&C.length&&s&&c.forEach(k=>{var R;const A=C.find(j=>j.id===k);if(A){const j=(R=A==null?void 0:A.id)==null?void 0:R.toString();_!==j&&(s(j,(A==null?void 0:A.name)||""),b(j))}})},[c]),C.length>0&&N.createElement("div",{className:"form-element"},N.createElement(wi,{htmlFor:O(g.placeholder)},g.placeholder||"Selecteer item"),N.createElement(Bl,{id:O(g.placeholder),ref:m,options:(C||[]).map(k=>({value:k.id,label:k.name})),title:g.title,onValueChange:(k,A)=>{S(!0),s&&s(k,A)},defaultValue:c&&c.length>0?(G=(q=C.find(k=>c.includes(k.id)))==null?void 0:q.id)==null?void 0:G.toString():void 0}))}),H9=[{label:"100 meter",value:"0.1"},{label:"250 meter",value:"0.25"},{label:"500 meter",value:"0.5"},{label:"1 km",value:"1"},{label:"2 km",value:"2"},{label:"3 km",value:"3"}];function Z9({onValueChange:r,locationDefault:a,...o}){const[s,c]=N.useState(""),[f,g]=N.useState([]),[m,y]=N.useState(!1),[C,_]=N.useState(null),[b,w]=N.useState("0.5"),[S,P]=N.useState(!1),O=N.useRef(null),[q,G]=N.useState(0),k=N.useRef(null);N.useEffect(()=>{!a&&s!==""&&(R(),w("0.5"))},[a]),N.useEffect(()=>{if(s.length<3){g([]);return}const j=new AbortController,W=setTimeout(()=>{y(!0),fetch(`${(o==null?void 0:o.zipCodeAutofillApiUrl)||""}${s}`,{signal:j.signal}).then(F=>F.json()).then(F=>{g(F.results||[]),P(!0)}).catch(F=>{F.name!=="AbortError"&&console.error("Fout bij ophalen suggesties:",F)}).finally(()=>y(!1))},300);return()=>{clearTimeout(W),j.abort()}},[s]);const A=async j=>{var W;P(!1);try{const U=(W=(await(await fetch(`${(o==null?void 0:o.zipCodeApiUrl)||""}${j.postcode}`)).json()).results)==null?void 0:W[0];U&&(_(U),c(`${U.postcode} ${U.straat}`))}catch(F){console.error("Fout bij ophalen postcode info:",F)}};N.useEffect(()=>{const j=W=>{O.current&&!O.current.contains(W.target)&&(C||c(""),P(!1),G(0))};return document.addEventListener("mousedown",j),document.addEventListener("touchstart",j),()=>{document.removeEventListener("mousedown",j),document.removeEventListener("touchstart",j)}},[C]);const R=()=>{c(""),g([]),_(null),P(!1),G(0),k.current&&k.current.focus()};return N.useEffect(()=>{if(C){const j={lat:C.latitude,lng:C.longitude,proximity:parseFloat(b)};r(j)}else r(void 0)},[C,b]),N.createElement(N.Fragment,null,N.createElement("div",{className:"form-element postcode-autofill",ref:O},N.createElement(wi,{htmlFor:"locationField"},"Selecteer postcode"),N.createElement("div",{className:"input-wrapper"},N.createElement("input",{type:"text",ref:k,value:s,onChange:j=>{c(j.target.value),_(null),P(!0)},disabled:!!C,className:"utrecht-textbox utrecht-textbox--html-input",id:"locationField",autoComplete:"off","aria-autocomplete":"list","aria-controls":"suggestion-list","aria-expanded":S,"aria-activedescendant":S&&f.length>0?`suggestion-${q}`:void 0,role:"combobox"}),C&&N.createElement("button",{className:"clear-button",onClick:R,type:"button","aria-label":"Wis selectie"},"✕")),m&&N.createElement("p",{className:"loading","aria-live":"polite"},"Laden..."),!m&&S&&f.length>0&&N.createElement("ul",{className:"suggestion-list",id:"suggestion-list",role:"listbox",onKeyDown:j=>{S&&f.length>0&&(j.key==="ArrowDown"?(G(W=>Math.min(W+1,f.length-1)),j.preventDefault()):j.key==="ArrowUp"?(G(W=>Math.max(W-1,0)),j.preventDefault()):j.key==="Enter"?(A(f[q]),j.preventDefault()):j.key===" "&&j.preventDefault())}},f.map((j,W)=>N.createElement("li",{key:W,onClick:()=>A(j),role:"option",id:`suggestion-${W}`,"aria-selected":q===W,tabIndex:-1},N.createElement("strong",null,j.postcode)," ",j.straat,", ",j.woonplaats)))),N.createElement("div",{className:"form-element"},N.createElement(wi,{htmlFor:"proximityField"},"Selecteer straal"),N.createElement(Bl,{onValueChange:j=>w(j),options:H9,id:"proximityField",value:b,disableDefaultOption:!0})))}function W9({dataStore:r,resources:a,sorting:o=[],tagGroups:s=[],tagsLimitation:c=[],onUpdateFilter:f,className:g="",showActiveTags:m=!1,preFilterTags:y=void 0,displayCollapsibleFilter:C=!1,autoApply:_=!1,...b}){const w={tags:[],search:{text:""},sort:b.defaultSorting||"createdAt_desc",page:0,pageSize:b.itemsPerPage||20,location:void 0},[S,P]=N.useState(),[O,q]=N.useState(w),[G,k]=N.useState({}),[A,R]=N.useState([]),[j,W]=N.useState([]),[F,H]=N.useState(!1),[U,it]=N.useState([]),[Y,M]=N.useState(w),[ot,ct]=N.useState(""),[Ct,V]=N.useState(b.defaultSorting||"createdAt_desc"),[$,D]=N.useState(void 0),[rt,J]=N.useState(!1),[et,st]=N.useState(!0),ut=N.useRef(null);N.useEffect(()=>{if(rt&&et&&st(!1),rt&&ut.current){const vt=ut.current.querySelector("input, select, textarea, button, a[href], [tabindex]:not([tabindex='-1'])");vt&&vt.focus()}},[rt,et]);const bt=q9(xt,300);function nt(vt){q(vt);const gt=(vt==null?void 0:vt.tags)||[];it(gt)}function Nt(vt,gt){P({...S,[vt]:gt})}function xt(vt){const gt={...O,search:{text:vt}};nt(gt),_&&ze(void 0,gt,j)}function Mt(vt){V(vt),nt({...O,sort:vt}),_&&ze(void 0,{...O,sort:vt},j)}function ce(vt){D(vt),nt({...O,location:vt}),_&&ze(void 0,{...O,location:vt},j)}const ee=()=>{const vt=new URL(window.location.href);if(U.length>0){const gt=U.join(",");vt.searchParams.set("tagIds",gt)}else vt.searchParams.delete("tagIds");window.history.replaceState(null,"",vt)},We=(vt,gt,Rt,Pt)=>{let Zt;k(Qt=>{const de=[...Qt[vt]||[]||[]];if(de.includes(gt)){if(!Pt){const Jt=de.indexOf(gt);de.splice(Jt,1)}}else de.push(gt);return Nt(vt,de),Zt={...Qt,[vt]:de},Zt});let Vt;if(R(Qt=>{const Bt=[...Qt||[]],de=Bt.findIndex(Jt=>Jt.id===gt);if(de!==-1)Pt||Bt.splice(de,1);else{const Jt=Rt||"";Bt.push({id:gt,label:Jt,type:vt})}return Pt&&W(Bt),Vt=Bt,Vt}),_){const Qt=Object.values(Zt||{}).flat().map(Number),Bt={...O,tags:Qt};ze(void 0,Bt,Vt)}},kt=(vt,gt,Rt)=>{let Zt=[...G[vt]||[]],Vt;if(gt==="")Zt=[],Vt=(A||[]).filter(Bt=>Bt.type!==vt),R(Vt);else{Zt=[gt];const Bt=(A||[]).filter(Jt=>Jt.type!==vt),de=Rt||"";Vt=[...Bt,{id:Number(gt),label:de,type:vt}],R(Vt)}const Qt={...G,[vt]:Zt};if(k(Qt),Nt(vt,Zt),_){const Bt=Object.values(Qt||{}).flat().map(Number),de={...O,tags:Bt};ze(void 0,de,Vt)}};function Ue(vt,gt){const Rt=A.filter(Vt=>!(Vt.type===vt&&Vt.id===gt));R(Rt);const Pt={...G,[vt]:Array.isArray(G[vt])?(G[vt]||[]).filter(Vt=>!(typeof Vt=="number"?Vt===gt:Number(Vt)===gt)):[]};k(Pt),Nt(vt,Pt[vt]);const Zt={...O,tags:Object.values(Pt).flat()};q(Zt),ze("",Zt,Rt)}N.useEffect(()=>{if(S){const vt=Object.values(S).flat(),gt={...O,tags:vt};nt(gt),_&&ze(void 0,gt,A)}},[S,_,A]);const ze=(vt,gt,Rt)=>{H(!0),vt&&vt.preventDefault&&vt.preventDefault();const Pt=gt||O;nt(Pt),f&&f(Pt),console.log("newActiveTagsDraft",A),console.log("updatedTags",Rt),W(Rt||A),ee()},Kt=["createdAt_desc","createdAt_asc","title_asc","title_desc","votes_desc","votes_asc"];o=o==null?void 0:o.sort((vt,gt)=>{const Rt=Kt.indexOf(vt.value),Pt=Kt.indexOf(gt.value);return Rt-Pt});const Ft=()=>N.createElement(N.Fragment,null,b.displayTagFilters&&s&&Array.isArray(s)&&s.length>0?N.createElement(N.Fragment,null,s.map((vt,gt)=>{const Rt=Array.isArray(c)?c:c&&c[vt.type]?c[vt.type]:[];return vt.multiple?N.createElement(V9,{key:`tag-select-${vt.type}`,selected:G[vt.type]||[],dataStore:r,tagType:vt.type,placeholder:vt.label,onlyIncludeIds:Rt,onUpdateFilter:(Pt,Zt,Vt)=>{We(vt.type,Pt,Zt||"",Vt||!1)},tagGroupProjectId:vt.projectId||"",preFilterTags:y,parentStopUsingDefaultValue:F}):N.createElement(U9,{key:`tag-select-${vt}`,...b,dataStore:r,tagType:vt.type,placeholder:vt.label,title:"Selecteer een item",onlyIncludeIds:Rt,onUpdateFilter:(Pt,Zt)=>kt(vt.type,Pt,Zt),tagGroupProjectId:vt.projectId||"",preFilterTags:y,parentStopUsingDefaultValue:F})})):null,b.displaySorting?N.createElement("div",{className:"form-element"},N.createElement(wi,{htmlFor:"sortField"},"Sorteer op"),N.createElement(Bl,{value:Ct,onValueChange:Mt,options:o,id:"sortField",defaultValue:b.defaultSorting||"createdAt_desc",disableDefaultOption:!0})):null,b.displayLocationFilter?N.createElement(Z9,{onValueChange:ce,locationDefault:O.location,...b}):null,N.createElement("div",{className:"button-group"},N.createElement(tr,{appearance:"secondary-action-button",onClick:()=>{const vt=document.querySelector("#stem-begroot-filter"),gt=vt==null?void 0:vt.querySelectorAll(":scope select"),Rt=vt==null?void 0:vt.querySelectorAll(":scope input");gt&&gt.forEach(Pt=>Pt.selectedIndex=0),Rt&&Rt.forEach(Pt=>Pt.value=""),H(!0),k({}),R([]),W([]),ct(""),xt(""),V(b.defaultSorting||"createdAt_desc"),D(void 0),nt(w),P({}),f&&f(w),ee(),ce(void 0),ze(void 0,w,[])},"test-id":"filter-reset-button"},b.resetText),!_&&N.createElement(tr,{type:"submit",appearance:"primary-action-button","test-id":"filter-apply-button"},b.applyText)));return b.displayTagFilters||b.displaySearch||b.displaySorting||b.displayLocationFilter?N.createElement("section",{id:"stem-begroot-filter"},N.createElement("form",{className:`osc-resources-filter ${g}`,onSubmit:_?void 0:ze},b.displaySearch?N.createElement("div",{className:"form-element"},N.createElement(wi,{htmlFor:"search"},"Zoeken"),N.createElement(d7,{value:ot,onChange:vt=>{ct(vt.target.value),bt(vt.target.value)},className:"osc-filter-search-bar",placeholder:b.searchPlaceholder,id:"search"})):null,b.displaySearch&&C?N.createElement("button",{type:"submit",className:"apply-filters-button"},N.createElement("span",{className:"filter-icon"}),N.createElement("span",{className:"sr-only"},"Filters toepassen")):null,C?N.createElement(N.Fragment,null,N.createElement(tr,{className:"toggle-filters-button",appearance:"primary-action-button",type:"button","aria-expanded":rt?"true":"false","aria-controls":"filters-container",onClick:vt=>{!rt&&et&&st(!1),J(!rt)}},N.createElement("span",{className:"filter-icon"}),N.createElement("span",{className:"sr-only"},"Filters uitklappen")),N.createElement("div",{id:"filters-container",className:`filters-container ${C?"--collapsable":""} ${et?"no-transition":""}`,"aria-hidden":rt?"false":"true",onClick:vt=>{J(!1)}},N.createElement("div",{className:"filters-wrapper",ref:ut,onClick:vt=>{vt.stopPropagation()}},N.createElement("button",{className:"close-filters-button",type:"button",onClick:vt=>{J(!1)}},N.createElement("span",{className:"close-icon"}),N.createElement("span",{className:"sr-only"},"Sluit filters")),N.createElement("div",{className:"filters-content"},Ft())))):Ft()),j.length>0&&m&&N.createElement("div",{className:"active-tags"},N.createElement("ul",null,j.map(vt=>N.createElement("li",{key:`${vt.type}-${vt.id}`,className:vt.type,role:"status"},vt.label,N.createElement(Hs,{onClick:()=>Ue(vt.type,vt.id),className:"subtle-button",icon:"ri-close-line",iconOnly:!0,text:"Filter verwijderen"}))))),Y&&N.createElement("div",{id:"filter-status","aria-live":"polite",className:"sr-only"},N.createElement(N.Fragment,null,N.createElement("p",null,"Huidige filterinstellingen:"),b.displaySearch&&N.createElement("p",null,"Zoekterm: ",Y.search.text||"geen"),b.displaySorting&&(()=>{var gt;const vt=((gt=o.find(Rt=>Rt.value===Y.sort))==null?void 0:gt.label)||Y.sort;return N.createElement("p",null,"Sorteer op: ",vt)})(),b.displayLocationFilter&&($&&$.lat&&$.lng?N.createElement("p",null,"Locatie filter: Breedtegraad ",$.lat,", Lengtegraad ",$.lng,$.proximity?`, Straal: ${$.proximity}m`:""):N.createElement("p",null,"Locatie filter: geen")),b.displayTagFilters&&N.createElement(N.Fragment,null,N.createElement("p",null,"Tags: ",Y.tags.length>0?"":"geen"),Y.tags.length>0&&N.createElement("ul",null,j.map(vt=>N.createElement("li",{key:`${vt.type}-${vt.id}`}," ",vt.label," "))))))):null}/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */const{entries:ep,setPrototypeOf:np,isFrozen:Y9,getPrototypeOf:X9,getOwnPropertyDescriptor:K9}=Object;let{freeze:cr,seal:Vr,create:mc}=Object,{apply:pc,construct:vc}=typeof Reflect<"u"&&Reflect;cr||(cr=function(a){return a}),Vr||(Vr=function(a){return a}),pc||(pc=function(a,o){for(var s=arguments.length,c=new Array(s>2?s-2:0),f=2;f<s;f++)c[f-2]=arguments[f];return a.apply(o,c)}),vc||(vc=function(a){for(var o=arguments.length,s=new Array(o>1?o-1:0),c=1;c<o;c++)s[c-1]=arguments[c];return new a(...s)});const ku=fr(Array.prototype.forEach),J9=fr(Array.prototype.lastIndexOf),rp=fr(Array.prototype.pop),ba=fr(Array.prototype.push),Q9=fr(Array.prototype.splice),Fu=fr(String.prototype.toLowerCase),yc=fr(String.prototype.toString),Cc=fr(String.prototype.match),xa=fr(String.prototype.replace),$9=fr(String.prototype.indexOf),t8=fr(String.prototype.trim),ei=fr(Object.prototype.hasOwnProperty),hr=fr(RegExp.prototype.test),Ea=e8(TypeError);function fr(r){return function(a){a instanceof RegExp&&(a.lastIndex=0);for(var o=arguments.length,s=new Array(o>1?o-1:0),c=1;c<o;c++)s[c-1]=arguments[c];return pc(r,a,s)}}function e8(r){return function(){for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return vc(r,o)}}function Pe(r,a){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Fu;np&&np(r,null);let s=a.length;for(;s--;){let c=a[s];if(typeof c=="string"){const f=o(c);f!==c&&(Y9(a)||(a[s]=f),c=f)}r[c]=!0}return r}function n8(r){for(let a=0;a<r.length;a++)ei(r,a)||(r[a]=null);return r}function Li(r){const a=mc(null);for(const[o,s]of ep(r))ei(r,o)&&(Array.isArray(s)?a[o]=n8(s):s&&typeof s=="object"&&s.constructor===Object?a[o]=Li(s):a[o]=s);return a}function wa(r,a){for(;r!==null;){const s=K9(r,a);if(s){if(s.get)return fr(s.get);if(typeof s.value=="function")return fr(s.value)}r=X9(r)}function o(){return null}return o}const ip=cr(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),_c=cr(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),bc=cr(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),r8=cr(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),xc=cr(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),i8=cr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),sp=cr(["#text"]),op=cr(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Ec=cr(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),ap=cr(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Bu=cr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),s8=Vr(/\{\{[\w\W]*|[\w\W]*\}\}/gm),o8=Vr(/<%[\w\W]*|[\w\W]*%>/gm),a8=Vr(/\$\{[\w\W]*/gm),u8=Vr(/^data-[\-\w.\u00B7-\uFFFF]+$/),l8=Vr(/^aria-[\-\w]+$/),up=Vr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),c8=Vr(/^(?:\w+script|data):/i),h8=Vr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),lp=Vr(/^html$/i),f8=Vr(/^[a-z][.\w]*(-[.\w]+)+$/i);var cp=Object.freeze({__proto__:null,ARIA_ATTR:l8,ATTR_WHITESPACE:h8,CUSTOM_ELEMENT:f8,DATA_ATTR:u8,DOCTYPE_NAME:lp,ERB_EXPR:o8,IS_ALLOWED_URI:up,IS_SCRIPT_OR_DATA:c8,MUSTACHE_EXPR:s8,TMPLIT_EXPR:a8});const Oa={element:1,text:3,progressingInstruction:7,comment:8,document:9},d8=function(){return typeof window>"u"?null:window},g8=function(a,o){if(typeof a!="object"||typeof a.createPolicy!="function")return null;let s=null;const c="data-tt-policy-suffix";o&&o.hasAttribute(c)&&(s=o.getAttribute(c));const f="dompurify"+(s?"#"+s:"");try{return a.createPolicy(f,{createHTML(g){return g},createScriptURL(g){return g}})}catch{return console.warn("TrustedTypes policy "+f+" could not be created."),null}},hp=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function fp(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:d8();const a=yt=>fp(yt);if(a.version="3.3.1",a.removed=[],!r||!r.document||r.document.nodeType!==Oa.document||!r.Element)return a.isSupported=!1,a;let{document:o}=r;const s=o,c=s.currentScript,{DocumentFragment:f,HTMLTemplateElement:g,Node:m,Element:y,NodeFilter:C,NamedNodeMap:_=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:b,DOMParser:w,trustedTypes:S}=r,P=y.prototype,O=wa(P,"cloneNode"),q=wa(P,"remove"),G=wa(P,"nextSibling"),k=wa(P,"childNodes"),A=wa(P,"parentNode");if(typeof g=="function"){const yt=o.createElement("template");yt.content&&yt.content.ownerDocument&&(o=yt.content.ownerDocument)}let R,j="";const{implementation:W,createNodeIterator:F,createDocumentFragment:H,getElementsByTagName:U}=o,{importNode:it}=s;let Y=hp();a.isSupported=typeof ep=="function"&&typeof A=="function"&&W&&W.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:M,ERB_EXPR:ot,TMPLIT_EXPR:ct,DATA_ATTR:Ct,ARIA_ATTR:V,IS_SCRIPT_OR_DATA:$,ATTR_WHITESPACE:D,CUSTOM_ELEMENT:rt}=cp;let{IS_ALLOWED_URI:J}=cp,et=null;const st=Pe({},[...ip,..._c,...bc,...xc,...sp]);let ut=null;const bt=Pe({},[...op,...Ec,...ap,...Bu]);let nt=Object.seal(mc(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Nt=null,xt=null;const Mt=Object.seal(mc(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ce=!0,ee=!0,We=!1,kt=!0,Ue=!1,ze=!0,Kt=!1,Ft=!1,vt=!1,gt=!1,Rt=!1,Pt=!1,Zt=!0,Vt=!1;const Qt="user-content-";let Bt=!0,de=!1,Jt={},Wt=null;const he=Pe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let mt=null;const De=Pe({},["audio","video","img","source","image","track"]);let en=null;const Gt=Pe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),He="http://www.w3.org/1998/Math/MathML",Fe="http://www.w3.org/2000/svg",ln="http://www.w3.org/1999/xhtml";let sn=ln,On=!1,In=null;const rr=Pe({},[He,Fe,ln],yc);let Ne=Pe({},["mi","mo","mn","ms","mtext"]),Zn=Pe({},["annotation-xml"]);const Ge=Pe({},["title","style","font","a","script"]);let ae=null;const Yt=["application/xhtml+xml","text/html"],jn="text/html";let ne=null,Ke=null;const _e=o.createElement("form"),cn=function(Q){return Q instanceof RegExp||Q instanceof Function},ke=function(){let Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ke&&Ke===Q)){if((!Q||typeof Q!="object")&&(Q={}),Q=Li(Q),ae=Yt.indexOf(Q.PARSER_MEDIA_TYPE)===-1?jn:Q.PARSER_MEDIA_TYPE,ne=ae==="application/xhtml+xml"?yc:Fu,et=ei(Q,"ALLOWED_TAGS")?Pe({},Q.ALLOWED_TAGS,ne):st,ut=ei(Q,"ALLOWED_ATTR")?Pe({},Q.ALLOWED_ATTR,ne):bt,In=ei(Q,"ALLOWED_NAMESPACES")?Pe({},Q.ALLOWED_NAMESPACES,yc):rr,en=ei(Q,"ADD_URI_SAFE_ATTR")?Pe(Li(Gt),Q.ADD_URI_SAFE_ATTR,ne):Gt,mt=ei(Q,"ADD_DATA_URI_TAGS")?Pe(Li(De),Q.ADD_DATA_URI_TAGS,ne):De,Wt=ei(Q,"FORBID_CONTENTS")?Pe({},Q.FORBID_CONTENTS,ne):he,Nt=ei(Q,"FORBID_TAGS")?Pe({},Q.FORBID_TAGS,ne):Li({}),xt=ei(Q,"FORBID_ATTR")?Pe({},Q.FORBID_ATTR,ne):Li({}),Jt=ei(Q,"USE_PROFILES")?Q.USE_PROFILES:!1,ce=Q.ALLOW_ARIA_ATTR!==!1,ee=Q.ALLOW_DATA_ATTR!==!1,We=Q.ALLOW_UNKNOWN_PROTOCOLS||!1,kt=Q.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ue=Q.SAFE_FOR_TEMPLATES||!1,ze=Q.SAFE_FOR_XML!==!1,Kt=Q.WHOLE_DOCUMENT||!1,gt=Q.RETURN_DOM||!1,Rt=Q.RETURN_DOM_FRAGMENT||!1,Pt=Q.RETURN_TRUSTED_TYPE||!1,vt=Q.FORCE_BODY||!1,Zt=Q.SANITIZE_DOM!==!1,Vt=Q.SANITIZE_NAMED_PROPS||!1,Bt=Q.KEEP_CONTENT!==!1,de=Q.IN_PLACE||!1,J=Q.ALLOWED_URI_REGEXP||up,sn=Q.NAMESPACE||ln,Ne=Q.MATHML_TEXT_INTEGRATION_POINTS||Ne,Zn=Q.HTML_INTEGRATION_POINTS||Zn,nt=Q.CUSTOM_ELEMENT_HANDLING||{},Q.CUSTOM_ELEMENT_HANDLING&&cn(Q.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(nt.tagNameCheck=Q.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Q.CUSTOM_ELEMENT_HANDLING&&cn(Q.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(nt.attributeNameCheck=Q.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Q.CUSTOM_ELEMENT_HANDLING&&typeof Q.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(nt.allowCustomizedBuiltInElements=Q.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ue&&(ee=!1),Rt&&(gt=!0),Jt&&(et=Pe({},sp),ut=[],Jt.html===!0&&(Pe(et,ip),Pe(ut,op)),Jt.svg===!0&&(Pe(et,_c),Pe(ut,Ec),Pe(ut,Bu)),Jt.svgFilters===!0&&(Pe(et,bc),Pe(ut,Ec),Pe(ut,Bu)),Jt.mathMl===!0&&(Pe(et,xc),Pe(ut,ap),Pe(ut,Bu))),Q.ADD_TAGS&&(typeof Q.ADD_TAGS=="function"?Mt.tagCheck=Q.ADD_TAGS:(et===st&&(et=Li(et)),Pe(et,Q.ADD_TAGS,ne))),Q.ADD_ATTR&&(typeof Q.ADD_ATTR=="function"?Mt.attributeCheck=Q.ADD_ATTR:(ut===bt&&(ut=Li(ut)),Pe(ut,Q.ADD_ATTR,ne))),Q.ADD_URI_SAFE_ATTR&&Pe(en,Q.ADD_URI_SAFE_ATTR,ne),Q.FORBID_CONTENTS&&(Wt===he&&(Wt=Li(Wt)),Pe(Wt,Q.FORBID_CONTENTS,ne)),Q.ADD_FORBID_CONTENTS&&(Wt===he&&(Wt=Li(Wt)),Pe(Wt,Q.ADD_FORBID_CONTENTS,ne)),Bt&&(et["#text"]=!0),Kt&&Pe(et,["html","head","body"]),et.table&&(Pe(et,["tbody"]),delete Nt.tbody),Q.TRUSTED_TYPES_POLICY){if(typeof Q.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ea('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Q.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ea('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');R=Q.TRUSTED_TYPES_POLICY,j=R.createHTML("")}else R===void 0&&(R=g8(S,c)),R!==null&&typeof j=="string"&&(j=R.createHTML(""));cr&&cr(Q),Ke=Q}},Je=Pe({},[..._c,...bc,...r8]),bn=Pe({},[...xc,...i8]),Tr=function(Q){let _t=A(Q);(!_t||!_t.tagName)&&(_t={namespaceURI:sn,tagName:"template"});const Dt=Fu(Q.tagName),$t=Fu(_t.tagName);return In[Q.namespaceURI]?Q.namespaceURI===Fe?_t.namespaceURI===ln?Dt==="svg":_t.namespaceURI===He?Dt==="svg"&&($t==="annotation-xml"||Ne[$t]):!!Je[Dt]:Q.namespaceURI===He?_t.namespaceURI===ln?Dt==="math":_t.namespaceURI===Fe?Dt==="math"&&Zn[$t]:!!bn[Dt]:Q.namespaceURI===ln?_t.namespaceURI===Fe&&!Zn[$t]||_t.namespaceURI===He&&!Ne[$t]?!1:!bn[Dt]&&(Ge[Dt]||!Je[Dt]):!!(ae==="application/xhtml+xml"&&In[Q.namespaceURI]):!1},$e=function(Q){ba(a.removed,{element:Q});try{A(Q).removeChild(Q)}catch{q(Q)}},Ut=function(Q,_t){try{ba(a.removed,{attribute:_t.getAttributeNode(Q),from:_t})}catch{ba(a.removed,{attribute:null,from:_t})}if(_t.removeAttribute(Q),Q==="is")if(gt||Rt)try{$e(_t)}catch{}else try{_t.setAttribute(Q,"")}catch{}},vr=function(Q){let _t=null,Dt=null;if(vt)Q="<remove></remove>"+Q;else{const Re=Cc(Q,/^[\r\n\t ]+/);Dt=Re&&Re[0]}ae==="application/xhtml+xml"&&sn===ln&&(Q='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Q+"</body></html>");const $t=R?R.createHTML(Q):Q;if(sn===ln)try{_t=new w().parseFromString($t,ae)}catch{}if(!_t||!_t.documentElement){_t=W.createDocument(sn,"template",null);try{_t.documentElement.innerHTML=On?j:$t}catch{}}const ve=_t.body||_t.documentElement;return Q&&Dt&&ve.insertBefore(o.createTextNode(Dt),ve.childNodes[0]||null),sn===ln?U.call(_t,Kt?"html":"body")[0]:Kt?_t.documentElement:ve},Z=function(Q){return F.call(Q.ownerDocument||Q,Q,C.SHOW_ELEMENT|C.SHOW_COMMENT|C.SHOW_TEXT|C.SHOW_PROCESSING_INSTRUCTION|C.SHOW_CDATA_SECTION,null)},pt=function(Q){return Q instanceof b&&(typeof Q.nodeName!="string"||typeof Q.textContent!="string"||typeof Q.removeChild!="function"||!(Q.attributes instanceof _)||typeof Q.removeAttribute!="function"||typeof Q.setAttribute!="function"||typeof Q.namespaceURI!="string"||typeof Q.insertBefore!="function"||typeof Q.hasChildNodes!="function")},Tt=function(Q){return typeof m=="function"&&Q instanceof m};function jt(yt,Q,_t){ku(yt,Dt=>{Dt.call(a,Q,_t,Ke)})}const fe=function(Q){let _t=null;if(jt(Y.beforeSanitizeElements,Q,null),pt(Q))return $e(Q),!0;const Dt=ne(Q.nodeName);if(jt(Y.uponSanitizeElement,Q,{tagName:Dt,allowedTags:et}),ze&&Q.hasChildNodes()&&!Tt(Q.firstElementChild)&&hr(/<[/\w!]/g,Q.innerHTML)&&hr(/<[/\w!]/g,Q.textContent)||Q.nodeType===Oa.progressingInstruction||ze&&Q.nodeType===Oa.comment&&hr(/<[/\w]/g,Q.data))return $e(Q),!0;if(!(Mt.tagCheck instanceof Function&&Mt.tagCheck(Dt))&&(!et[Dt]||Nt[Dt])){if(!Nt[Dt]&&ye(Dt)&&(nt.tagNameCheck instanceof RegExp&&hr(nt.tagNameCheck,Dt)||nt.tagNameCheck instanceof Function&&nt.tagNameCheck(Dt)))return!1;if(Bt&&!Wt[Dt]){const $t=A(Q)||Q.parentNode,ve=k(Q)||Q.childNodes;if(ve&&$t){const Re=ve.length;for(let hn=Re-1;hn>=0;--hn){const on=O(ve[hn],!0);on.__removalCount=(Q.__removalCount||0)+1,$t.insertBefore(on,G(Q))}}}return $e(Q),!0}return Q instanceof y&&!Tr(Q)||(Dt==="noscript"||Dt==="noembed"||Dt==="noframes")&&hr(/<\/no(script|embed|frames)/i,Q.innerHTML)?($e(Q),!0):(Ue&&Q.nodeType===Oa.text&&(_t=Q.textContent,ku([M,ot,ct],$t=>{_t=xa(_t,$t," ")}),Q.textContent!==_t&&(ba(a.removed,{element:Q.cloneNode()}),Q.textContent=_t)),jt(Y.afterSanitizeElements,Q,null),!1)},be=function(Q,_t,Dt){if(Zt&&(_t==="id"||_t==="name")&&(Dt in o||Dt in _e))return!1;if(!(ee&&!xt[_t]&&hr(Ct,_t))){if(!(ce&&hr(V,_t))){if(!(Mt.attributeCheck instanceof Function&&Mt.attributeCheck(_t,Q))){if(!ut[_t]||xt[_t]){if(!(ye(Q)&&(nt.tagNameCheck instanceof RegExp&&hr(nt.tagNameCheck,Q)||nt.tagNameCheck instanceof Function&&nt.tagNameCheck(Q))&&(nt.attributeNameCheck instanceof RegExp&&hr(nt.attributeNameCheck,_t)||nt.attributeNameCheck instanceof Function&&nt.attributeNameCheck(_t,Q))||_t==="is"&&nt.allowCustomizedBuiltInElements&&(nt.tagNameCheck instanceof RegExp&&hr(nt.tagNameCheck,Dt)||nt.tagNameCheck instanceof Function&&nt.tagNameCheck(Dt))))return!1}else if(!en[_t]){if(!hr(J,xa(Dt,D,""))){if(!((_t==="src"||_t==="xlink:href"||_t==="href")&&Q!=="script"&&$9(Dt,"data:")===0&&mt[Q])){if(!(We&&!hr($,xa(Dt,D,"")))){if(Dt)return!1}}}}}}}return!0},ye=function(Q){return Q!=="annotation-xml"&&Cc(Q,rt)},pe=function(Q){jt(Y.beforeSanitizeAttributes,Q,null);const{attributes:_t}=Q;if(!_t||pt(Q))return;const Dt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ut,forceKeepAttr:void 0};let $t=_t.length;for(;$t--;){const ve=_t[$t],{name:Re,namespaceURI:hn,value:on}=ve,ge=ne(Re),qn=on;let Xt=Re==="value"?qn:t8(qn);if(Dt.attrName=ge,Dt.attrValue=Xt,Dt.keepAttr=!0,Dt.forceKeepAttr=void 0,jt(Y.uponSanitizeAttribute,Q,Dt),Xt=Dt.attrValue,Vt&&(ge==="id"||ge==="name")&&(Ut(Re,Q),Xt=Qt+Xt),ze&&hr(/((--!?|])>)|<\/(style|title|textarea)/i,Xt)){Ut(Re,Q);continue}if(ge==="attributename"&&Cc(Xt,"href")){Ut(Re,Q);continue}if(Dt.forceKeepAttr)continue;if(!Dt.keepAttr){Ut(Re,Q);continue}if(!kt&&hr(/\/>/i,Xt)){Ut(Re,Q);continue}Ue&&ku([M,ot,ct],vn=>{Xt=xa(Xt,vn," ")});const Xi=ne(Q.nodeName);if(!be(Xi,ge,Xt)){Ut(Re,Q);continue}if(R&&typeof S=="object"&&typeof S.getAttributeType=="function"&&!hn)switch(S.getAttributeType(Xi,ge)){case"TrustedHTML":{Xt=R.createHTML(Xt);break}case"TrustedScriptURL":{Xt=R.createScriptURL(Xt);break}}if(Xt!==qn)try{hn?Q.setAttributeNS(hn,Re,Xt):Q.setAttribute(Re,Xt),pt(Q)?$e(Q):rp(a.removed)}catch{Ut(Re,Q)}}jt(Y.afterSanitizeAttributes,Q,null)},pn=function yt(Q){let _t=null;const Dt=Z(Q);for(jt(Y.beforeSanitizeShadowDOM,Q,null);_t=Dt.nextNode();)jt(Y.uponSanitizeShadowNode,_t,null),fe(_t),pe(_t),_t.content instanceof f&&yt(_t.content);jt(Y.afterSanitizeShadowDOM,Q,null)};return a.sanitize=function(yt){let Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_t=null,Dt=null,$t=null,ve=null;if(On=!yt,On&&(yt="<!-->"),typeof yt!="string"&&!Tt(yt))if(typeof yt.toString=="function"){if(yt=yt.toString(),typeof yt!="string")throw Ea("dirty is not a string, aborting")}else throw Ea("toString is not a function");if(!a.isSupported)return yt;if(Ft||ke(Q),a.removed=[],typeof yt=="string"&&(de=!1),de){if(yt.nodeName){const on=ne(yt.nodeName);if(!et[on]||Nt[on])throw Ea("root node is forbidden and cannot be sanitized in-place")}}else if(yt instanceof m)_t=vr("<!---->"),Dt=_t.ownerDocument.importNode(yt,!0),Dt.nodeType===Oa.element&&Dt.nodeName==="BODY"||Dt.nodeName==="HTML"?_t=Dt:_t.appendChild(Dt);else{if(!gt&&!Ue&&!Kt&&yt.indexOf("<")===-1)return R&&Pt?R.createHTML(yt):yt;if(_t=vr(yt),!_t)return gt?null:Pt?j:""}_t&&vt&&$e(_t.firstChild);const Re=Z(de?yt:_t);for(;$t=Re.nextNode();)fe($t),pe($t),$t.content instanceof f&&pn($t.content);if(de)return yt;if(gt){if(Rt)for(ve=H.call(_t.ownerDocument);_t.firstChild;)ve.appendChild(_t.firstChild);else ve=_t;return(ut.shadowroot||ut.shadowrootmode)&&(ve=it.call(s,ve,!0)),ve}let hn=Kt?_t.outerHTML:_t.innerHTML;return Kt&&et["!doctype"]&&_t.ownerDocument&&_t.ownerDocument.doctype&&_t.ownerDocument.doctype.name&&hr(lp,_t.ownerDocument.doctype.name)&&(hn="<!DOCTYPE "+_t.ownerDocument.doctype.name+`>
`+hn),Ue&&ku([M,ot,ct],on=>{hn=xa(hn,on," ")}),R&&Pt?R.createHTML(hn):hn},a.setConfig=function(){let yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ke(yt),Ft=!0},a.clearConfig=function(){Ke=null,Ft=!1},a.isValidAttribute=function(yt,Q,_t){Ke||ke({});const Dt=ne(yt),$t=ne(Q);return be(Dt,$t,_t)},a.addHook=function(yt,Q){typeof Q=="function"&&ba(Y[yt],Q)},a.removeHook=function(yt,Q){if(Q!==void 0){const _t=J9(Y[yt],Q);return _t===-1?void 0:Q9(Y[yt],_t,1)[0]}return rp(Y[yt])},a.removeHooks=function(yt){Y[yt]=[]},a.removeAllHooks=function(){Y=hp()},a}var m8=fp();function dp(r,a,o){let s="";if(r.nodeType===Node.TEXT_NODE){const c=r.nodeValue||"";o.value+c.length>a?(s+=c.substring(0,a-o.value)+"...",o.value=a):(s+=c,o.value+=c.length)}else if(r.nodeType===Node.ELEMENT_NODE){const c=r,f=c.nodeName.toLowerCase();s+=`<${f}`;for(let g=0;g<c.attributes.length;g++){const m=c.attributes[g];s+=` ${m.name}="${m.value}"`}s+=">";for(let g=0;g<c.childNodes.length&&!(o.value>=a);g++)s+=dp(c.childNodes[g],a,o);s+=`</${f}>`}return s}function Io(r,a){const o=document.createElement("div");o.innerHTML=r;let s={value:0},c="";for(let f=0;f<o.childNodes.length&&!(s.value>=a);f++)c+=dp(o.childNodes[f],a,s);return m8.sanitize(c)}function p8({resourceId:r,url:a,targetUrl:o}){if(r)return r;o||(o="?openstadResourceId=[id]");let s=o.replace(/([\\^$.|?*+()[\]{}])/g,"\\$1");s=s.replace(/\\\[id\\\]/,"(\\d+)");let c=a.match(s);if(c&&(r=parseInt(c[1])),!r){const f=new URL(a).pathname+new URL(a).search;if(s=o.replace(/([\\^$.|?*+()[\]{}])/g,"\\$1"),s=s.replace(/\\\[id\\\]/,"(\\d+)"),c=f.match(s),c&&(r=parseInt(c[1])),!r){const g=new URLSearchParams(window.location.search),m=g.get(o.replace(/[?&]\[id\]/,""));if(r=m?parseInt(m,10):void 0,!r&&o.includes("[id]")){const y=v8(o);let C;y&&g.has(y)&&(C=g.get(y)),r=C?parseInt(C,10):void 0}}}return r||void 0}function v8(r){const a=r.split("?")[1];if(!a)return null;const o=new URLSearchParams(a);let s=null;return o.forEach((c,f)=>{s===null&&c==="[id]"&&(s=f)}),s}const gp={superuser:["superuser","admin","editor","moderator","member","anonymous","all"],admin:["admin","editor","moderator","member","anonymous","all"],editor:["editor","moderator","member","anonymous","all"],moderator:["moderator","member","anonymous","all"],member:["member","anonymous","all"],anonymous:["anonymous","all"],all:["all"],owner:null};function mp(r,a,o){if(!r||!r.id||!r.role)return!1;a=a||"admin",Array.isArray(a)||(a=[a]);let s=r&&r.role,c=a.find(f=>{var g;return gp[s]&&((g=gp[s])==null?void 0:g.indexOf(f))!=-1});return a.includes("owner")&&o&&(c=c||r.id==o),c}function pp({title:r="",variant:a="large",hideCounters:o,yesLabel:s="Voor",noLabel:c="Tegen",displayDislike:f=!1,showProgressBar:g=!0,disabled:m=!1,...y}){var A,R,j,W,F;let C=String(p8({resourceId:parseInt(y.resourceId||""),url:document.location.href,targetUrl:y.resourceIdRelativePath}));const _=((A=y.resources)==null?void 0:A.minimumYesVotes)||50,b=new _a({projectId:y.projectId,api:y.api}),w=new dc({projectId:y.projectId}),{data:S}=b.useCurrentUser(y),{data:P}=b.useResource({projectId:y.projectId,resourceId:C}),[O,q]=N.useState(!1),G=[{type:"yes",label:s,icon:"ri-thumb-up-line"},{type:"no",label:c,icon:"ri-thumb-down-line"}];f||G.pop(),N.useEffect(()=>{let H=w.get("osc-resource-vote-pending");H&&H[P.id]&&S&&S.role&&(k(null,H[P.id]),w.remove("osc-resource-vote-pending"))},[P,S]);async function k(H,U){var Y,M,ot;if(H&&H.stopPropagation(),O||(q(!0),!y.votes.isActive))return;if(!mp(S,y.votes.requiredUserRole)){let ct=((Y=y.login)==null?void 0:Y.url)||"";if(y.votes.requiredUserRole=="anonymous"&&(ct=((ot=(M=y.login)==null?void 0:M.anonymous)==null?void 0:ot.url)||""),!ct){console.log("Config error: no login url defined");return}return w.set("osc-resource-vote-pending",{[P.id]:U}),document.location.href=ct}let it={};P.userVote&&(it[P.userVote.opinion]=-1),await P.submitLike({opinion:U}),q(!1)}return N.createElement("div",{className:"osc"},a!=="micro-score"?N.createElement("div",{className:`like-widget-container ${a}`},r?N.createElement(ua,{className:"like-widget-title"},r):null,N.createElement("div",{className:"like-option-container"},G.map((H,U)=>{var it;return N.createElement(tr,{appearance:"primary-action-button",key:`${H.type}-${U}`,onClick:Y=>k(Y,H.type),className:`like-option ${((it=P==null?void 0:P.userVote)==null?void 0:it.opinion)===H.type?"selected":""} ${o?"osc-no-counter":""}`,disabled:m},N.createElement("section",{className:"like-kind"},N.createElement("i",{className:H.icon}),a==="small"?null:H.label),o?null:N.createElement("section",{className:"like-counter"},P[H.type]&&P[H.type]<10?P[H.type].toString().padStart(2,"0"):P[H.type]||"0".padStart(2,"0")))})),(R=y==null?void 0:y.resources)!=null&&R.minimumYesVotes&&g?N.createElement("div",{className:"progressbar-container"},N.createElement(nm,{progress:P.yes/_*100}),N.createElement(wn,{className:"progressbar-counter"},P.yes||0," /",_)):null,N.createElement("div",null,((j=y==null?void 0:y.resources)==null?void 0:j.minimumYesVotes)&&g&&y.progressBarDescription&&N.createElement(Ol,null,y.progressBarDescription))):N.createElement("div",{className:`like-widget-container ${a}`},r?N.createElement(ua,{className:"like-widget-title"},r):null,N.createElement("div",{className:"like-option-container"},G.map((H,U)=>{var it;return N.createElement(N.Fragment,null,N.createElement(tr,{appearance:"primary-action-button",key:`${H.type}-${U}`,onClick:Y=>k(Y,H.type),className:`like-option ${((it=P==null?void 0:P.userVote)==null?void 0:it.opinion)===H.type?"selected":""} ${o?"osc-no-counter":""}`,disabled:m},N.createElement("section",{className:"like-kind"},N.createElement("i",{className:H.icon})," ",N.createElement("span",{className:"sr-only"},H.label))),!o&&U===0?N.createElement("section",{className:"like-counter"},N.createElement("span",{className:"sr-only"},"Score")," ",P.netPositiveVotes?P.netPositiveVotes:"0"):null)})),(W=y==null?void 0:y.resources)!=null&&W.minimumYesVotes&&g?N.createElement("div",{className:"progressbar-container"},N.createElement(nm,{progress:P.yes/_*100}),N.createElement(wn,{className:"progressbar-counter"},P.yes||0," /",_)):null,N.createElement("div",null,((F=y==null?void 0:y.resources)==null?void 0:F.minimumYesVotes)&&g&&y.progressBarDescription&&N.createElement(Ol,null,y.progressBarDescription))))}pp.loadWidget=ra;const y8=({resource:r,onRemoveClick:a,displayDocuments:o=!1,displayLikeButton:s=!1,displayDislike:c=!1,documentsTitle:f="",documentsDesc:g="",clickableImage:m=!1,displayTags:y=!0,displayBudget:C=!0,dialogTagGroups:_=void 0,currentUser:b,...w})=>{var R,j,W,F,H,U,it,Y,M,ot,ct,Ct,V;const S=_&&Array.isArray(_)&&Array.isArray(r==null?void 0:r.tags)?r==null?void 0:r.tags.filter($=>_.includes($.type)):r==null?void 0:r.tags,P=(r==null?void 0:r.userId)||null,O=mp(b,["moderator","owner"],P);let q="";if(Array.isArray(r==null?void 0:r.tags)){const D=r.tags.sort((rt,J)=>rt.name.localeCompare(J.name)).find(rt=>rt.defaultResourceImage);q=(D==null?void 0:D.defaultResourceImage)||""}const k=(Array.isArray(r.images)&&r.images.length>0?(j=(R=r.images)==null?void 0:R.at(0))==null?void 0:j.url:q)?"":"resource-has-no-images",A=($,D)=>{const rt=N.createElement(No,{src:$,className:"--aspectRatio-16-9"});return D?N.createElement("a",{href:$,target:"_blank",rel:"noreferrer"},rt):rt};return N.createElement(N.Fragment,null,N.createElement("div",{className:"osc-gridder-resource-detail"},N.createElement("section",{className:`osc-gridder-resource-detail-photo ${k}`},A(((F=(W=r.images)==null?void 0:W.at(0))==null?void 0:F.url)||q,m),N.createElement("div",{className:"osc-gridder-resource-detail-budget-theme-bar"},C&&N.createElement(N.Fragment,null,N.createElement(ua,null,"Budget"),N.createElement(wn,null,"€ ",r.budget>0?r.budget.toLocaleString("nl-NL"):0),N.createElement(Qr,{size:1})),y&&N.createElement(N.Fragment,null,N.createElement(ua,null,"Tags"),N.createElement(Qr,{size:.5}),N.createElement("div",{className:"pill-grid"},(H=S==null?void 0:S.filter($=>$.type!=="status"))==null?void 0:H.map($=>N.createElement(Ul,{text:$.name})))))),N.createElement("section",{className:"osc-gridder-resource-detail-texts-and-actions-container"},N.createElement("div",null,N.createElement("div",null,N.createElement(Md,{dangerouslySetInnerHTML:{__html:r.title}}),N.createElement(wn,{className:"strong",dangerouslySetInnerHTML:{__html:r.summary}}),N.createElement(wn,{dangerouslySetInnerHTML:{__html:r.description}}))),!!o&&!!r&&Array.isArray(r.documents)&&r.documents.length>0&&N.createElement(N.Fragment,null,N.createElement(Qr,{size:2}),N.createElement("div",{className:"document-download-container"},!!f&&N.createElement(ds,{level:2,appearance:"utrecht-heading-4"},f),!!g&&N.createElement(wn,null,g),N.createElement(Qr,{size:2}),N.createElement(zf,null,(U=r.documents)==null?void 0:U.map(($,D)=>N.createElement(au,{appearance:"primary-action-button",className:"osc counter-container",download:!0,href:$.url,key:D},N.createElement(ur,{icon:"ri-download-2-fill"}),$.name))))),N.createElement(Qr,{size:2}),N.createElement("div",{className:"osc-gridder-resource-detail-actions"},s&&N.createElement(pp,{...w,title:(it=w.likeWidget)==null?void 0:it.title,yesLabel:(Y=w.likeWidget)==null?void 0:Y.yesLabel,noLabel:(M=w.likeWidget)==null?void 0:M.noLabel,displayDislike:c,hideCounters:(ot=w.likeWidget)==null?void 0:ot.hideCounters,variant:(ct=w.likeWidget)==null?void 0:ct.variant,showProgressBar:(Ct=w.likeWidget)==null?void 0:Ct.showProgressBar,progressBarDescription:(V=w.likeWidget)==null?void 0:V.progressBarDescription,resourceId:r.id}),O&&N.createElement(tr,{appearance:"primary-action-button",onClick:()=>{confirm("Deze actie verwijderd de resource")&&a&&a(r)}},"Verwijder")))),N.createElement(Qr,{size:2}))};var Na={exports:{}};/* @preserve
 * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
 * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
 */var C8=Na.exports,vp;function yp(){return vp||(vp=1,(function(r,a){(function(o,s){s(a)})(C8,(function(o){var s="1.9.4";function c(u){var d,v,E,T;for(v=1,E=arguments.length;v<E;v++){T=arguments[v];for(d in T)u[d]=T[d]}return u}var f=Object.create||(function(){function u(){}return function(d){return u.prototype=d,new u}})();function g(u,d){var v=Array.prototype.slice;if(u.bind)return u.bind.apply(u,v.call(arguments,1));var E=v.call(arguments,2);return function(){return u.apply(d,E.length?E.concat(v.call(arguments)):arguments)}}var m=0;function y(u){return"_leaflet_id"in u||(u._leaflet_id=++m),u._leaflet_id}function C(u,d,v){var E,T,B,tt;return tt=function(){E=!1,T&&(B.apply(v,T),T=!1)},B=function(){E?T=arguments:(u.apply(v,arguments),setTimeout(tt,d),E=!0)},B}function _(u,d,v){var E=d[1],T=d[0],B=E-T;return u===E&&v?u:((u-T)%B+B)%B+T}function b(){return!1}function w(u,d){if(d===!1)return u;var v=Math.pow(10,d===void 0?6:d);return Math.round(u*v)/v}function S(u){return u.trim?u.trim():u.replace(/^\s+|\s+$/g,"")}function P(u){return S(u).split(/\s+/)}function O(u,d){Object.prototype.hasOwnProperty.call(u,"options")||(u.options=u.options?f(u.options):{});for(var v in d)u.options[v]=d[v];return u.options}function q(u,d,v){var E=[];for(var T in u)E.push(encodeURIComponent(v?T.toUpperCase():T)+"="+encodeURIComponent(u[T]));return(!d||d.indexOf("?")===-1?"?":"&")+E.join("&")}var G=/\{ *([\w_ -]+) *\}/g;function k(u,d){return u.replace(G,function(v,E){var T=d[E];if(T===void 0)throw new Error("No value provided for variable "+v);return typeof T=="function"&&(T=T(d)),T})}var A=Array.isArray||function(u){return Object.prototype.toString.call(u)==="[object Array]"};function R(u,d){for(var v=0;v<u.length;v++)if(u[v]===d)return v;return-1}var j="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function W(u){return window["webkit"+u]||window["moz"+u]||window["ms"+u]}var F=0;function H(u){var d=+new Date,v=Math.max(0,16-(d-F));return F=d+v,window.setTimeout(u,v)}var U=window.requestAnimationFrame||W("RequestAnimationFrame")||H,it=window.cancelAnimationFrame||W("CancelAnimationFrame")||W("CancelRequestAnimationFrame")||function(u){window.clearTimeout(u)};function Y(u,d,v){if(v&&U===H)u.call(d);else return U.call(window,g(u,d))}function M(u){u&&it.call(window,u)}var ot={__proto__:null,extend:c,create:f,bind:g,get lastId(){return m},stamp:y,throttle:C,wrapNum:_,falseFn:b,formatNum:w,trim:S,splitWords:P,setOptions:O,getParamString:q,template:k,isArray:A,indexOf:R,emptyImageUrl:j,requestFn:U,cancelFn:it,requestAnimFrame:Y,cancelAnimFrame:M};function ct(){}ct.extend=function(u){var d=function(){O(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},v=d.__super__=this.prototype,E=f(v);E.constructor=d,d.prototype=E;for(var T in this)Object.prototype.hasOwnProperty.call(this,T)&&T!=="prototype"&&T!=="__super__"&&(d[T]=this[T]);return u.statics&&c(d,u.statics),u.includes&&(Ct(u.includes),c.apply(null,[E].concat(u.includes))),c(E,u),delete E.statics,delete E.includes,E.options&&(E.options=v.options?f(v.options):{},c(E.options,u.options)),E._initHooks=[],E.callInitHooks=function(){if(!this._initHooksCalled){v.callInitHooks&&v.callInitHooks.call(this),this._initHooksCalled=!0;for(var B=0,tt=E._initHooks.length;B<tt;B++)E._initHooks[B].call(this)}},d},ct.include=function(u){var d=this.prototype.options;return c(this.prototype,u),u.options&&(this.prototype.options=d,this.mergeOptions(u.options)),this},ct.mergeOptions=function(u){return c(this.prototype.options,u),this},ct.addInitHook=function(u){var d=Array.prototype.slice.call(arguments,1),v=typeof u=="function"?u:function(){this[u].apply(this,d)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(v),this};function Ct(u){if(!(typeof L>"u"||!L||!L.Mixin)){u=A(u)?u:[u];for(var d=0;d<u.length;d++)u[d]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var V={on:function(u,d,v){if(typeof u=="object")for(var E in u)this._on(E,u[E],d);else{u=P(u);for(var T=0,B=u.length;T<B;T++)this._on(u[T],d,v)}return this},off:function(u,d,v){if(!arguments.length)delete this._events;else if(typeof u=="object")for(var E in u)this._off(E,u[E],d);else{u=P(u);for(var T=arguments.length===1,B=0,tt=u.length;B<tt;B++)T?this._off(u[B]):this._off(u[B],d,v)}return this},_on:function(u,d,v,E){if(typeof d!="function"){console.warn("wrong listener type: "+typeof d);return}if(this._listens(u,d,v)===!1){v===this&&(v=void 0);var T={fn:d,ctx:v};E&&(T.once=!0),this._events=this._events||{},this._events[u]=this._events[u]||[],this._events[u].push(T)}},_off:function(u,d,v){var E,T,B;if(this._events&&(E=this._events[u],!!E)){if(arguments.length===1){if(this._firingCount)for(T=0,B=E.length;T<B;T++)E[T].fn=b;delete this._events[u];return}if(typeof d!="function"){console.warn("wrong listener type: "+typeof d);return}var tt=this._listens(u,d,v);if(tt!==!1){var ht=E[tt];this._firingCount&&(ht.fn=b,this._events[u]=E=E.slice()),E.splice(tt,1)}}},fire:function(u,d,v){if(!this.listens(u,v))return this;var E=c({},d,{type:u,target:this,sourceTarget:d&&d.sourceTarget||this});if(this._events){var T=this._events[u];if(T){this._firingCount=this._firingCount+1||1;for(var B=0,tt=T.length;B<tt;B++){var ht=T[B],dt=ht.fn;ht.once&&this.off(u,dt,ht.ctx),dt.call(ht.ctx||this,E)}this._firingCount--}}return v&&this._propagateEvent(E),this},listens:function(u,d,v,E){typeof u!="string"&&console.warn('"string" type argument expected');var T=d;typeof d!="function"&&(E=!!d,T=void 0,v=void 0);var B=this._events&&this._events[u];if(B&&B.length&&this._listens(u,T,v)!==!1)return!0;if(E){for(var tt in this._eventParents)if(this._eventParents[tt].listens(u,d,v,E))return!0}return!1},_listens:function(u,d,v){if(!this._events)return!1;var E=this._events[u]||[];if(!d)return!!E.length;v===this&&(v=void 0);for(var T=0,B=E.length;T<B;T++)if(E[T].fn===d&&E[T].ctx===v)return T;return!1},once:function(u,d,v){if(typeof u=="object")for(var E in u)this._on(E,u[E],d,!0);else{u=P(u);for(var T=0,B=u.length;T<B;T++)this._on(u[T],d,v,!0)}return this},addEventParent:function(u){return this._eventParents=this._eventParents||{},this._eventParents[y(u)]=u,this},removeEventParent:function(u){return this._eventParents&&delete this._eventParents[y(u)],this},_propagateEvent:function(u){for(var d in this._eventParents)this._eventParents[d].fire(u.type,c({layer:u.target,propagatedFrom:u.target},u),!0)}};V.addEventListener=V.on,V.removeEventListener=V.clearAllEventListeners=V.off,V.addOneTimeEventListener=V.once,V.fireEvent=V.fire,V.hasEventListeners=V.listens;var $=ct.extend(V);function D(u,d,v){this.x=v?Math.round(u):u,this.y=v?Math.round(d):d}var rt=Math.trunc||function(u){return u>0?Math.floor(u):Math.ceil(u)};D.prototype={clone:function(){return new D(this.x,this.y)},add:function(u){return this.clone()._add(J(u))},_add:function(u){return this.x+=u.x,this.y+=u.y,this},subtract:function(u){return this.clone()._subtract(J(u))},_subtract:function(u){return this.x-=u.x,this.y-=u.y,this},divideBy:function(u){return this.clone()._divideBy(u)},_divideBy:function(u){return this.x/=u,this.y/=u,this},multiplyBy:function(u){return this.clone()._multiplyBy(u)},_multiplyBy:function(u){return this.x*=u,this.y*=u,this},scaleBy:function(u){return new D(this.x*u.x,this.y*u.y)},unscaleBy:function(u){return new D(this.x/u.x,this.y/u.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=rt(this.x),this.y=rt(this.y),this},distanceTo:function(u){u=J(u);var d=u.x-this.x,v=u.y-this.y;return Math.sqrt(d*d+v*v)},equals:function(u){return u=J(u),u.x===this.x&&u.y===this.y},contains:function(u){return u=J(u),Math.abs(u.x)<=Math.abs(this.x)&&Math.abs(u.y)<=Math.abs(this.y)},toString:function(){return"Point("+w(this.x)+", "+w(this.y)+")"}};function J(u,d,v){return u instanceof D?u:A(u)?new D(u[0],u[1]):u==null?u:typeof u=="object"&&"x"in u&&"y"in u?new D(u.x,u.y):new D(u,d,v)}function et(u,d){if(u)for(var v=d?[u,d]:u,E=0,T=v.length;E<T;E++)this.extend(v[E])}et.prototype={extend:function(u){var d,v;if(!u)return this;if(u instanceof D||typeof u[0]=="number"||"x"in u)d=v=J(u);else if(u=st(u),d=u.min,v=u.max,!d||!v)return this;return!this.min&&!this.max?(this.min=d.clone(),this.max=v.clone()):(this.min.x=Math.min(d.x,this.min.x),this.max.x=Math.max(v.x,this.max.x),this.min.y=Math.min(d.y,this.min.y),this.max.y=Math.max(v.y,this.max.y)),this},getCenter:function(u){return J((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,u)},getBottomLeft:function(){return J(this.min.x,this.max.y)},getTopRight:function(){return J(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(u){var d,v;return typeof u[0]=="number"||u instanceof D?u=J(u):u=st(u),u instanceof et?(d=u.min,v=u.max):d=v=u,d.x>=this.min.x&&v.x<=this.max.x&&d.y>=this.min.y&&v.y<=this.max.y},intersects:function(u){u=st(u);var d=this.min,v=this.max,E=u.min,T=u.max,B=T.x>=d.x&&E.x<=v.x,tt=T.y>=d.y&&E.y<=v.y;return B&&tt},overlaps:function(u){u=st(u);var d=this.min,v=this.max,E=u.min,T=u.max,B=T.x>d.x&&E.x<v.x,tt=T.y>d.y&&E.y<v.y;return B&&tt},isValid:function(){return!!(this.min&&this.max)},pad:function(u){var d=this.min,v=this.max,E=Math.abs(d.x-v.x)*u,T=Math.abs(d.y-v.y)*u;return st(J(d.x-E,d.y-T),J(v.x+E,v.y+T))},equals:function(u){return u?(u=st(u),this.min.equals(u.getTopLeft())&&this.max.equals(u.getBottomRight())):!1}};function st(u,d){return!u||u instanceof et?u:new et(u,d)}function ut(u,d){if(u)for(var v=d?[u,d]:u,E=0,T=v.length;E<T;E++)this.extend(v[E])}ut.prototype={extend:function(u){var d=this._southWest,v=this._northEast,E,T;if(u instanceof nt)E=u,T=u;else if(u instanceof ut){if(E=u._southWest,T=u._northEast,!E||!T)return this}else return u?this.extend(Nt(u)||bt(u)):this;return!d&&!v?(this._southWest=new nt(E.lat,E.lng),this._northEast=new nt(T.lat,T.lng)):(d.lat=Math.min(E.lat,d.lat),d.lng=Math.min(E.lng,d.lng),v.lat=Math.max(T.lat,v.lat),v.lng=Math.max(T.lng,v.lng)),this},pad:function(u){var d=this._southWest,v=this._northEast,E=Math.abs(d.lat-v.lat)*u,T=Math.abs(d.lng-v.lng)*u;return new ut(new nt(d.lat-E,d.lng-T),new nt(v.lat+E,v.lng+T))},getCenter:function(){return new nt((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new nt(this.getNorth(),this.getWest())},getSouthEast:function(){return new nt(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(u){typeof u[0]=="number"||u instanceof nt||"lat"in u?u=Nt(u):u=bt(u);var d=this._southWest,v=this._northEast,E,T;return u instanceof ut?(E=u.getSouthWest(),T=u.getNorthEast()):E=T=u,E.lat>=d.lat&&T.lat<=v.lat&&E.lng>=d.lng&&T.lng<=v.lng},intersects:function(u){u=bt(u);var d=this._southWest,v=this._northEast,E=u.getSouthWest(),T=u.getNorthEast(),B=T.lat>=d.lat&&E.lat<=v.lat,tt=T.lng>=d.lng&&E.lng<=v.lng;return B&&tt},overlaps:function(u){u=bt(u);var d=this._southWest,v=this._northEast,E=u.getSouthWest(),T=u.getNorthEast(),B=T.lat>d.lat&&E.lat<v.lat,tt=T.lng>d.lng&&E.lng<v.lng;return B&&tt},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(u,d){return u?(u=bt(u),this._southWest.equals(u.getSouthWest(),d)&&this._northEast.equals(u.getNorthEast(),d)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function bt(u,d){return u instanceof ut?u:new ut(u,d)}function nt(u,d,v){if(isNaN(u)||isNaN(d))throw new Error("Invalid LatLng object: ("+u+", "+d+")");this.lat=+u,this.lng=+d,v!==void 0&&(this.alt=+v)}nt.prototype={equals:function(u,d){if(!u)return!1;u=Nt(u);var v=Math.max(Math.abs(this.lat-u.lat),Math.abs(this.lng-u.lng));return v<=(d===void 0?1e-9:d)},toString:function(u){return"LatLng("+w(this.lat,u)+", "+w(this.lng,u)+")"},distanceTo:function(u){return Mt.distance(this,Nt(u))},wrap:function(){return Mt.wrapLatLng(this)},toBounds:function(u){var d=180*u/40075017,v=d/Math.cos(Math.PI/180*this.lat);return bt([this.lat-d,this.lng-v],[this.lat+d,this.lng+v])},clone:function(){return new nt(this.lat,this.lng,this.alt)}};function Nt(u,d,v){return u instanceof nt?u:A(u)&&typeof u[0]!="object"?u.length===3?new nt(u[0],u[1],u[2]):u.length===2?new nt(u[0],u[1]):null:u==null?u:typeof u=="object"&&"lat"in u?new nt(u.lat,"lng"in u?u.lng:u.lon,u.alt):d===void 0?null:new nt(u,d,v)}var xt={latLngToPoint:function(u,d){var v=this.projection.project(u),E=this.scale(d);return this.transformation._transform(v,E)},pointToLatLng:function(u,d){var v=this.scale(d),E=this.transformation.untransform(u,v);return this.projection.unproject(E)},project:function(u){return this.projection.project(u)},unproject:function(u){return this.projection.unproject(u)},scale:function(u){return 256*Math.pow(2,u)},zoom:function(u){return Math.log(u/256)/Math.LN2},getProjectedBounds:function(u){if(this.infinite)return null;var d=this.projection.bounds,v=this.scale(u),E=this.transformation.transform(d.min,v),T=this.transformation.transform(d.max,v);return new et(E,T)},infinite:!1,wrapLatLng:function(u){var d=this.wrapLng?_(u.lng,this.wrapLng,!0):u.lng,v=this.wrapLat?_(u.lat,this.wrapLat,!0):u.lat,E=u.alt;return new nt(v,d,E)},wrapLatLngBounds:function(u){var d=u.getCenter(),v=this.wrapLatLng(d),E=d.lat-v.lat,T=d.lng-v.lng;if(E===0&&T===0)return u;var B=u.getSouthWest(),tt=u.getNorthEast(),ht=new nt(B.lat-E,B.lng-T),dt=new nt(tt.lat-E,tt.lng-T);return new ut(ht,dt)}},Mt=c({},xt,{wrapLng:[-180,180],R:6371e3,distance:function(u,d){var v=Math.PI/180,E=u.lat*v,T=d.lat*v,B=Math.sin((d.lat-u.lat)*v/2),tt=Math.sin((d.lng-u.lng)*v/2),ht=B*B+Math.cos(E)*Math.cos(T)*tt*tt,dt=2*Math.atan2(Math.sqrt(ht),Math.sqrt(1-ht));return this.R*dt}}),ce=6378137,ee={R:ce,MAX_LATITUDE:85.0511287798,project:function(u){var d=Math.PI/180,v=this.MAX_LATITUDE,E=Math.max(Math.min(v,u.lat),-v),T=Math.sin(E*d);return new D(this.R*u.lng*d,this.R*Math.log((1+T)/(1-T))/2)},unproject:function(u){var d=180/Math.PI;return new nt((2*Math.atan(Math.exp(u.y/this.R))-Math.PI/2)*d,u.x*d/this.R)},bounds:(function(){var u=ce*Math.PI;return new et([-u,-u],[u,u])})()};function We(u,d,v,E){if(A(u)){this._a=u[0],this._b=u[1],this._c=u[2],this._d=u[3];return}this._a=u,this._b=d,this._c=v,this._d=E}We.prototype={transform:function(u,d){return this._transform(u.clone(),d)},_transform:function(u,d){return d=d||1,u.x=d*(this._a*u.x+this._b),u.y=d*(this._c*u.y+this._d),u},untransform:function(u,d){return d=d||1,new D((u.x/d-this._b)/this._a,(u.y/d-this._d)/this._c)}};function kt(u,d,v,E){return new We(u,d,v,E)}var Ue=c({},Mt,{code:"EPSG:3857",projection:ee,transformation:(function(){var u=.5/(Math.PI*ee.R);return kt(u,.5,-u,.5)})()}),ze=c({},Ue,{code:"EPSG:900913"});function Kt(u){return document.createElementNS("http://www.w3.org/2000/svg",u)}function Ft(u,d){var v="",E,T,B,tt,ht,dt;for(E=0,B=u.length;E<B;E++){for(ht=u[E],T=0,tt=ht.length;T<tt;T++)dt=ht[T],v+=(T?"L":"M")+dt.x+" "+dt.y;v+=d?Ut.svg?"z":"x":""}return v||"M0 0"}var vt=document.documentElement.style,gt="ActiveXObject"in window,Rt=gt&&!document.addEventListener,Pt="msLaunchUri"in navigator&&!("documentMode"in document),Zt=$e("webkit"),Vt=$e("android"),Qt=$e("android 2")||$e("android 3"),Bt=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),de=Vt&&$e("Google")&&Bt<537&&!("AudioNode"in window),Jt=!!window.opera,Wt=!Pt&&$e("chrome"),he=$e("gecko")&&!Zt&&!Jt&&!gt,mt=!Wt&&$e("safari"),De=$e("phantom"),en="OTransition"in vt,Gt=navigator.platform.indexOf("Win")===0,He=gt&&"transition"in vt,Fe="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!Qt,ln="MozPerspective"in vt,sn=!window.L_DISABLE_3D&&(He||Fe||ln)&&!en&&!De,On=typeof orientation<"u"||$e("mobile"),In=On&&Zt,rr=On&&Fe,Ne=!window.PointerEvent&&window.MSPointerEvent,Zn=!!(window.PointerEvent||Ne),Ge="ontouchstart"in window||!!window.TouchEvent,ae=!window.L_NO_TOUCH&&(Ge||Zn),Yt=On&&Jt,jn=On&&he,ne=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Ke=(function(){var u=!1;try{var d=Object.defineProperty({},"passive",{get:function(){u=!0}});window.addEventListener("testPassiveEventSupport",b,d),window.removeEventListener("testPassiveEventSupport",b,d)}catch{}return u})(),_e=(function(){return!!document.createElement("canvas").getContext})(),cn=!!(document.createElementNS&&Kt("svg").createSVGRect),ke=!!cn&&(function(){var u=document.createElement("div");return u.innerHTML="<svg/>",(u.firstChild&&u.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"})(),Je=!cn&&(function(){try{var u=document.createElement("div");u.innerHTML='<v:shape adj="1"/>';var d=u.firstChild;return d.style.behavior="url(#default#VML)",d&&typeof d.adj=="object"}catch{return!1}})(),bn=navigator.platform.indexOf("Mac")===0,Tr=navigator.platform.indexOf("Linux")===0;function $e(u){return navigator.userAgent.toLowerCase().indexOf(u)>=0}var Ut={ie:gt,ielt9:Rt,edge:Pt,webkit:Zt,android:Vt,android23:Qt,androidStock:de,opera:Jt,chrome:Wt,gecko:he,safari:mt,phantom:De,opera12:en,win:Gt,ie3d:He,webkit3d:Fe,gecko3d:ln,any3d:sn,mobile:On,mobileWebkit:In,mobileWebkit3d:rr,msPointer:Ne,pointer:Zn,touch:ae,touchNative:Ge,mobileOpera:Yt,mobileGecko:jn,retina:ne,passiveEvents:Ke,canvas:_e,svg:cn,vml:Je,inlineSvg:ke,mac:bn,linux:Tr},vr=Ut.msPointer?"MSPointerDown":"pointerdown",Z=Ut.msPointer?"MSPointerMove":"pointermove",pt=Ut.msPointer?"MSPointerUp":"pointerup",Tt=Ut.msPointer?"MSPointerCancel":"pointercancel",jt={touchstart:vr,touchmove:Z,touchend:pt,touchcancel:Tt},fe={touchstart:ve,touchmove:$t,touchend:$t,touchcancel:$t},be={},ye=!1;function pe(u,d,v){return d==="touchstart"&&Dt(),fe[d]?(v=fe[d].bind(this,v),u.addEventListener(jt[d],v,!1),v):(console.warn("wrong event specified:",d),b)}function pn(u,d,v){if(!jt[d]){console.warn("wrong event specified:",d);return}u.removeEventListener(jt[d],v,!1)}function yt(u){be[u.pointerId]=u}function Q(u){be[u.pointerId]&&(be[u.pointerId]=u)}function _t(u){delete be[u.pointerId]}function Dt(){ye||(document.addEventListener(vr,yt,!0),document.addEventListener(Z,Q,!0),document.addEventListener(pt,_t,!0),document.addEventListener(Tt,_t,!0),ye=!0)}function $t(u,d){if(d.pointerType!==(d.MSPOINTER_TYPE_MOUSE||"mouse")){d.touches=[];for(var v in be)d.touches.push(be[v]);d.changedTouches=[d],u(d)}}function ve(u,d){d.MSPOINTER_TYPE_TOUCH&&d.pointerType===d.MSPOINTER_TYPE_TOUCH&&Mn(d),$t(u,d)}function Re(u){var d={},v,E;for(E in u)v=u[E],d[E]=v&&v.bind?v.bind(u):v;return u=d,d.type="dblclick",d.detail=2,d.isTrusted=!1,d._simulated=!0,d}var hn=200;function on(u,d){u.addEventListener("dblclick",d);var v=0,E;function T(B){if(B.detail!==1){E=B.detail;return}if(!(B.pointerType==="mouse"||B.sourceCapabilities&&!B.sourceCapabilities.firesTouchEvents)){var tt=jo(B);if(!(tt.some(function(dt){return dt instanceof HTMLLabelElement&&dt.attributes.for})&&!tt.some(function(dt){return dt instanceof HTMLInputElement||dt instanceof HTMLSelectElement}))){var ht=Date.now();ht-v<=hn?(E++,E===2&&d(Re(B))):E=1,v=ht}}}return u.addEventListener("click",T),{dblclick:d,simDblclick:T}}function ge(u,d){u.removeEventListener("dblclick",d.dblclick),u.removeEventListener("click",d.simDblclick)}var qn=Tn(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Xt=Tn(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Xi=Xt==="webkitTransition"||Xt==="OTransition"?Xt+"End":"transitionend";function vn(u){return typeof u=="string"?document.getElementById(u):u}function Se(u,d){var v=u.style[d]||u.currentStyle&&u.currentStyle[d];if((!v||v==="auto")&&document.defaultView){var E=document.defaultView.getComputedStyle(u,null);v=E?E[d]:null}return v==="auto"?null:v}function ie(u,d,v){var E=document.createElement(u);return E.className=d||"",v&&v.appendChild(E),E}function Ye(u){var d=u.parentNode;d&&d.removeChild(u)}function Hr(u){for(;u.firstChild;)u.removeChild(u.firstChild)}function Ot(u){var d=u.parentNode;d&&d.lastChild!==u&&d.appendChild(u)}function re(u){var d=u.parentNode;d&&d.firstChild!==u&&d.insertBefore(u,d.firstChild)}function Te(u,d){if(u.classList!==void 0)return u.classList.contains(d);var v=ni(u);return v.length>0&&new RegExp("(^|\\s)"+d+"(\\s|$)").test(v)}function le(u,d){if(u.classList!==void 0)for(var v=P(d),E=0,T=v.length;E<T;E++)u.classList.add(v[E]);else if(!Te(u,d)){var B=ni(u);Pn(u,(B?B+" ":"")+d)}}function fn(u,d){u.classList!==void 0?u.classList.remove(d):Pn(u,S((" "+ni(u)+" ").replace(" "+d+" "," ")))}function Pn(u,d){u.className.baseVal===void 0?u.className=d:u.className.baseVal=d}function ni(u){return u.correspondingElement&&(u=u.correspondingElement),u.className.baseVal===void 0?u.className:u.className.baseVal}function xn(u,d){"opacity"in u.style?u.style.opacity=d:"filter"in u.style&&_s(u,d)}function _s(u,d){var v=!1,E="DXImageTransform.Microsoft.Alpha";try{v=u.filters.item(E)}catch{if(d===1)return}d=Math.round(d*100),v?(v.Enabled=d!==100,v.Opacity=d):u.style.filter+=" progid:"+E+"(opacity="+d+")"}function Tn(u){for(var d=document.documentElement.style,v=0;v<u.length;v++)if(u[v]in d)return u[v];return!1}function yr(u,d,v){var E=d||new D(0,0);u.style[qn]=(Ut.ie3d?"translate("+E.x+"px,"+E.y+"px)":"translate3d("+E.x+"px,"+E.y+"px,0)")+(v?" scale("+v+")":"")}function Me(u,d){u._leaflet_pos=d,Ut.any3d?yr(u,d):(u.style.left=d.x+"px",u.style.top=d.y+"px")}function Mr(u){return u._leaflet_pos||new D(0,0)}var kn,ri,bs;if("onselectstart"in document)kn=function(){me(window,"selectstart",Mn)},ri=function(){Ce(window,"selectstart",Mn)};else{var ii=Tn(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);kn=function(){if(ii){var u=document.documentElement.style;bs=u[ii],u[ii]="none"}},ri=function(){ii&&(document.documentElement.style[ii]=bs,bs=void 0)}}function si(){me(window,"dragstart",Mn)}function oi(){Ce(window,"dragstart",Mn)}var ai,Ki;function Ks(u){for(;u.tabIndex===-1;)u=u.parentNode;u.style&&(Ji(),ai=u,Ki=u.style.outlineStyle,u.style.outlineStyle="none",me(window,"keydown",Ji))}function Ji(){ai&&(ai.style.outlineStyle=Ki,ai=void 0,Ki=void 0,Ce(window,"keydown",Ji))}function Ar(u){do u=u.parentNode;while((!u.offsetWidth||!u.offsetHeight)&&u!==document.body);return u}function Js(u){var d=u.getBoundingClientRect();return{x:d.width/u.offsetWidth||1,y:d.height/u.offsetHeight||1,boundingClientRect:d}}var Pi={__proto__:null,TRANSFORM:qn,TRANSITION:Xt,TRANSITION_END:Xi,get:vn,getStyle:Se,create:ie,remove:Ye,empty:Hr,toFront:Ot,toBack:re,hasClass:Te,addClass:le,removeClass:fn,setClass:Pn,getClass:ni,setOpacity:xn,testProp:Tn,setTransform:yr,setPosition:Me,getPosition:Mr,get disableTextSelection(){return kn},get enableTextSelection(){return ri},disableImageDrag:si,enableImageDrag:oi,preventOutline:Ks,restoreOutline:Ji,getSizedParentNode:Ar,getScale:Js};function me(u,d,v,E){if(d&&typeof d=="object")for(var T in d)xs(u,T,d[T],v);else{d=P(d);for(var B=0,tt=d.length;B<tt;B++)xs(u,d[B],v,E)}return this}var nn="_leaflet_events";function Ce(u,d,v,E){if(arguments.length===1)rn(u),delete u[nn];else if(d&&typeof d=="object")for(var T in d)Ze(u,T,d[T],v);else if(d=P(d),arguments.length===2)rn(u,function(ht){return R(d,ht)!==-1});else for(var B=0,tt=d.length;B<tt;B++)Ze(u,d[B],v,E);return this}function rn(u,d){for(var v in u[nn]){var E=v.split(/\d/)[0];(!d||d(E))&&Ze(u,E,null,null,v)}}var Aa={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function xs(u,d,v,E){var T=d+y(v)+(E?"_"+y(E):"");if(u[nn]&&u[nn][T])return this;var B=function(ht){return v.call(E||u,ht||window.event)},tt=B;!Ut.touchNative&&Ut.pointer&&d.indexOf("touch")===0?B=pe(u,d,B):Ut.touch&&d==="dblclick"?B=on(u,B):"addEventListener"in u?d==="touchstart"||d==="touchmove"||d==="wheel"||d==="mousewheel"?u.addEventListener(Aa[d]||d,B,Ut.passiveEvents?{passive:!1}:!1):d==="mouseenter"||d==="mouseleave"?(B=function(ht){ht=ht||window.event,xe(u,ht)&&tt(ht)},u.addEventListener(Aa[d],B,!1)):u.addEventListener(d,tt,!1):u.attachEvent("on"+d,B),u[nn]=u[nn]||{},u[nn][T]=B}function Ze(u,d,v,E,T){T=T||d+y(v)+(E?"_"+y(E):"");var B=u[nn]&&u[nn][T];if(!B)return this;!Ut.touchNative&&Ut.pointer&&d.indexOf("touch")===0?pn(u,d,B):Ut.touch&&d==="dblclick"?ge(u,B):"removeEventListener"in u?u.removeEventListener(Aa[d]||d,B,!1):u.detachEvent("on"+d,B),u[nn][T]=null}function Dr(u){return u.stopPropagation?u.stopPropagation():u.originalEvent?u.originalEvent._stopped=!0:u.cancelBubble=!0,this}function Fn(u){return xs(u,"wheel",Dr),this}function Qi(u){return me(u,"mousedown touchstart dblclick contextmenu",Dr),u._leaflet_disable_click=!0,this}function Mn(u){return u.preventDefault?u.preventDefault():u.returnValue=!1,this}function Ti(u){return Mn(u),Dr(u),this}function jo(u){if(u.composedPath)return u.composedPath();for(var d=[],v=u.target;v;)d.push(v),v=v.parentNode;return d}function Cr(u,d){if(!d)return new D(u.clientX,u.clientY);var v=Js(d),E=v.boundingClientRect;return new D((u.clientX-E.left)/v.x-d.clientLeft,(u.clientY-E.top)/v.y-d.clientTop)}var Qs=Ut.linux&&Ut.chrome?window.devicePixelRatio:Ut.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function ko(u){return Ut.edge?u.wheelDeltaY/2:u.deltaY&&u.deltaMode===0?-u.deltaY/Qs:u.deltaY&&u.deltaMode===1?-u.deltaY*20:u.deltaY&&u.deltaMode===2?-u.deltaY*60:u.deltaX||u.deltaZ?0:u.wheelDelta?(u.wheelDeltaY||u.wheelDelta)/2:u.detail&&Math.abs(u.detail)<32765?-u.detail*20:u.detail?u.detail/-32765*60:0}function xe(u,d){var v=d.relatedTarget;if(!v)return!0;try{for(;v&&v!==u;)v=v.parentNode}catch{return!1}return v!==u}var _r={__proto__:null,on:me,off:Ce,stopPropagation:Dr,disableScrollPropagation:Fn,disableClickPropagation:Qi,preventDefault:Mn,stop:Ti,getPropagationPath:jo,getMousePosition:Cr,getWheelDelta:ko,isExternalTarget:xe,addListener:me,removeListener:Ce},Es=$.extend({run:function(u,d,v,E){this.stop(),this._el=u,this._inProgress=!0,this._duration=v||.25,this._easeOutPower=1/Math.max(E||.5,.2),this._startPos=Mr(u),this._offset=d.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=Y(this._animate,this),this._step()},_step:function(u){var d=+new Date-this._startTime,v=this._duration*1e3;d<v?this._runFrame(this._easeOut(d/v),u):(this._runFrame(1),this._complete())},_runFrame:function(u,d){var v=this._startPos.add(this._offset.multiplyBy(u));d&&v._round(),Me(this._el,v),this.fire("step")},_complete:function(){M(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(u){return 1-Math.pow(1-u,this._easeOutPower)}}),Le=$.extend({options:{crs:Ue,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(u,d){d=O(this,d),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(u),this._initLayout(),this._onResize=g(this._onResize,this),this._initEvents(),d.maxBounds&&this.setMaxBounds(d.maxBounds),d.zoom!==void 0&&(this._zoom=this._limitZoom(d.zoom)),d.center&&d.zoom!==void 0&&this.setView(Nt(d.center),d.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Xt&&Ut.any3d&&!Ut.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),me(this._proxy,Xi,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(u,d,v){if(d=d===void 0?this._zoom:this._limitZoom(d),u=this._limitCenter(Nt(u),d,this.options.maxBounds),v=v||{},this._stop(),this._loaded&&!v.reset&&v!==!0){v.animate!==void 0&&(v.zoom=c({animate:v.animate},v.zoom),v.pan=c({animate:v.animate,duration:v.duration},v.pan));var E=this._zoom!==d?this._tryAnimatedZoom&&this._tryAnimatedZoom(u,d,v.zoom):this._tryAnimatedPan(u,v.pan);if(E)return clearTimeout(this._sizeTimer),this}return this._resetView(u,d,v.pan&&v.pan.noMoveStart),this},setZoom:function(u,d){return this._loaded?this.setView(this.getCenter(),u,{zoom:d}):(this._zoom=u,this)},zoomIn:function(u,d){return u=u||(Ut.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+u,d)},zoomOut:function(u,d){return u=u||(Ut.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-u,d)},setZoomAround:function(u,d,v){var E=this.getZoomScale(d),T=this.getSize().divideBy(2),B=u instanceof D?u:this.latLngToContainerPoint(u),tt=B.subtract(T).multiplyBy(1-1/E),ht=this.containerPointToLatLng(T.add(tt));return this.setView(ht,d,{zoom:v})},_getBoundsCenterZoom:function(u,d){d=d||{},u=u.getBounds?u.getBounds():bt(u);var v=J(d.paddingTopLeft||d.padding||[0,0]),E=J(d.paddingBottomRight||d.padding||[0,0]),T=this.getBoundsZoom(u,!1,v.add(E));if(T=typeof d.maxZoom=="number"?Math.min(d.maxZoom,T):T,T===1/0)return{center:u.getCenter(),zoom:T};var B=E.subtract(v).divideBy(2),tt=this.project(u.getSouthWest(),T),ht=this.project(u.getNorthEast(),T),dt=this.unproject(tt.add(ht).divideBy(2).add(B),T);return{center:dt,zoom:T}},fitBounds:function(u,d){if(u=bt(u),!u.isValid())throw new Error("Bounds are not valid.");var v=this._getBoundsCenterZoom(u,d);return this.setView(v.center,v.zoom,d)},fitWorld:function(u){return this.fitBounds([[-90,-180],[90,180]],u)},panTo:function(u,d){return this.setView(u,this._zoom,{pan:d})},panBy:function(u,d){if(u=J(u).round(),d=d||{},!u.x&&!u.y)return this.fire("moveend");if(d.animate!==!0&&!this.getSize().contains(u))return this._resetView(this.unproject(this.project(this.getCenter()).add(u)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Es,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),d.noMoveStart||this.fire("movestart"),d.animate!==!1){le(this._mapPane,"leaflet-pan-anim");var v=this._getMapPanePos().subtract(u).round();this._panAnim.run(this._mapPane,v,d.duration||.25,d.easeLinearity)}else this._rawPanBy(u),this.fire("move").fire("moveend");return this},flyTo:function(u,d,v){if(v=v||{},v.animate===!1||!Ut.any3d)return this.setView(u,d,v);this._stop();var E=this.project(this.getCenter()),T=this.project(u),B=this.getSize(),tt=this._zoom;u=Nt(u),d=d===void 0?tt:d;var ht=Math.max(B.x,B.y),dt=ht*this.getZoomScale(tt,d),Lt=T.distanceTo(E)||1,zt=1.42,se=zt*zt;function Ee(dn){var ls=dn?-1:1,Uo=dn?dt:ht,ho=dt*dt-ht*ht+ls*se*se*Lt*Lt,Ho=2*Uo*se*Lt,cs=ho/Ho,Zo=Math.sqrt(cs*cs+1)-cs,Gi=Zo<1e-9?-18:Math.log(Zo);return Gi}function Ln(dn){return(Math.exp(dn)-Math.exp(-dn))/2}function En(dn){return(Math.exp(dn)+Math.exp(-dn))/2}function ar(dn){return Ln(dn)/En(dn)}var Gn=Ee(0);function _i(dn){return ht*(En(Gn)/En(Gn+zt*dn))}function Sr(dn){return ht*(En(Gn)*ar(Gn+zt*dn)-Ln(Gn))/se}function za(dn){return 1-Math.pow(1-dn,1.5)}var yn=Date.now(),Yn=(Ee(1)-Gn)/zt,Vo=v.duration?1e3*v.duration:1e3*Yn*.8;function co(){var dn=(Date.now()-yn)/Vo,ls=za(dn)*Yn;dn<=1?(this._flyToFrame=Y(co,this),this._move(this.unproject(E.add(T.subtract(E).multiplyBy(Sr(ls)/Lt)),tt),this.getScaleZoom(ht/_i(ls),tt),{flyTo:!0})):this._move(u,d)._moveEnd(!0)}return this._moveStart(!0,v.noMoveStart),co.call(this),this},flyToBounds:function(u,d){var v=this._getBoundsCenterZoom(u,d);return this.flyTo(v.center,v.zoom,d)},setMaxBounds:function(u){return u=bt(u),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),u.isValid()?(this.options.maxBounds=u,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(u){var d=this.options.minZoom;return this.options.minZoom=u,this._loaded&&d!==u&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(u):this},setMaxZoom:function(u){var d=this.options.maxZoom;return this.options.maxZoom=u,this._loaded&&d!==u&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(u):this},panInsideBounds:function(u,d){this._enforcingBounds=!0;var v=this.getCenter(),E=this._limitCenter(v,this._zoom,bt(u));return v.equals(E)||this.panTo(E,d),this._enforcingBounds=!1,this},panInside:function(u,d){d=d||{};var v=J(d.paddingTopLeft||d.padding||[0,0]),E=J(d.paddingBottomRight||d.padding||[0,0]),T=this.project(this.getCenter()),B=this.project(u),tt=this.getPixelBounds(),ht=st([tt.min.add(v),tt.max.subtract(E)]),dt=ht.getSize();if(!ht.contains(B)){this._enforcingBounds=!0;var Lt=B.subtract(ht.getCenter()),zt=ht.extend(B).getSize().subtract(dt);T.x+=Lt.x<0?-zt.x:zt.x,T.y+=Lt.y<0?-zt.y:zt.y,this.panTo(this.unproject(T),d),this._enforcingBounds=!1}return this},invalidateSize:function(u){if(!this._loaded)return this;u=c({animate:!1,pan:!0},u===!0?{animate:!0}:u);var d=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var v=this.getSize(),E=d.divideBy(2).round(),T=v.divideBy(2).round(),B=E.subtract(T);return!B.x&&!B.y?this:(u.animate&&u.pan?this.panBy(B):(u.pan&&this._rawPanBy(B),this.fire("move"),u.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(g(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:d,newSize:v}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(u){if(u=this._locateOptions=c({timeout:1e4,watch:!1},u),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var d=g(this._handleGeolocationResponse,this),v=g(this._handleGeolocationError,this);return u.watch?this._locationWatchId=navigator.geolocation.watchPosition(d,v,u):navigator.geolocation.getCurrentPosition(d,v,u),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(u){if(this._container._leaflet_id){var d=u.code,v=u.message||(d===1?"permission denied":d===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:d,message:"Geolocation error: "+v+"."})}},_handleGeolocationResponse:function(u){if(this._container._leaflet_id){var d=u.coords.latitude,v=u.coords.longitude,E=new nt(d,v),T=E.toBounds(u.coords.accuracy*2),B=this._locateOptions;if(B.setView){var tt=this.getBoundsZoom(T);this.setView(E,B.maxZoom?Math.min(tt,B.maxZoom):tt)}var ht={latlng:E,bounds:T,timestamp:u.timestamp};for(var dt in u.coords)typeof u.coords[dt]=="number"&&(ht[dt]=u.coords[dt]);this.fire("locationfound",ht)}},addHandler:function(u,d){if(!d)return this;var v=this[u]=new d(this);return this._handlers.push(v),this.options[u]&&v.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),Ye(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(M(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var u;for(u in this._layers)this._layers[u].remove();for(u in this._panes)Ye(this._panes[u]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(u,d){var v="leaflet-pane"+(u?" leaflet-"+u.replace("Pane","")+"-pane":""),E=ie("div",v,d||this._mapPane);return u&&(this._panes[u]=E),E},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var u=this.getPixelBounds(),d=this.unproject(u.getBottomLeft()),v=this.unproject(u.getTopRight());return new ut(d,v)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(u,d,v){u=bt(u),v=J(v||[0,0]);var E=this.getZoom()||0,T=this.getMinZoom(),B=this.getMaxZoom(),tt=u.getNorthWest(),ht=u.getSouthEast(),dt=this.getSize().subtract(v),Lt=st(this.project(ht,E),this.project(tt,E)).getSize(),zt=Ut.any3d?this.options.zoomSnap:1,se=dt.x/Lt.x,Ee=dt.y/Lt.y,Ln=d?Math.max(se,Ee):Math.min(se,Ee);return E=this.getScaleZoom(Ln,E),zt&&(E=Math.round(E/(zt/100))*(zt/100),E=d?Math.ceil(E/zt)*zt:Math.floor(E/zt)*zt),Math.max(T,Math.min(B,E))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new D(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(u,d){var v=this._getTopLeftPoint(u,d);return new et(v,v.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(u){return this.options.crs.getProjectedBounds(u===void 0?this.getZoom():u)},getPane:function(u){return typeof u=="string"?this._panes[u]:u},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(u,d){var v=this.options.crs;return d=d===void 0?this._zoom:d,v.scale(u)/v.scale(d)},getScaleZoom:function(u,d){var v=this.options.crs;d=d===void 0?this._zoom:d;var E=v.zoom(u*v.scale(d));return isNaN(E)?1/0:E},project:function(u,d){return d=d===void 0?this._zoom:d,this.options.crs.latLngToPoint(Nt(u),d)},unproject:function(u,d){return d=d===void 0?this._zoom:d,this.options.crs.pointToLatLng(J(u),d)},layerPointToLatLng:function(u){var d=J(u).add(this.getPixelOrigin());return this.unproject(d)},latLngToLayerPoint:function(u){var d=this.project(Nt(u))._round();return d._subtract(this.getPixelOrigin())},wrapLatLng:function(u){return this.options.crs.wrapLatLng(Nt(u))},wrapLatLngBounds:function(u){return this.options.crs.wrapLatLngBounds(bt(u))},distance:function(u,d){return this.options.crs.distance(Nt(u),Nt(d))},containerPointToLayerPoint:function(u){return J(u).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(u){return J(u).add(this._getMapPanePos())},containerPointToLatLng:function(u){var d=this.containerPointToLayerPoint(J(u));return this.layerPointToLatLng(d)},latLngToContainerPoint:function(u){return this.layerPointToContainerPoint(this.latLngToLayerPoint(Nt(u)))},mouseEventToContainerPoint:function(u){return Cr(u,this._container)},mouseEventToLayerPoint:function(u){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(u))},mouseEventToLatLng:function(u){return this.layerPointToLatLng(this.mouseEventToLayerPoint(u))},_initContainer:function(u){var d=this._container=vn(u);if(d){if(d._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");me(d,"scroll",this._onScroll,this),this._containerId=y(d)},_initLayout:function(){var u=this._container;this._fadeAnimated=this.options.fadeAnimation&&Ut.any3d,le(u,"leaflet-container"+(Ut.touch?" leaflet-touch":"")+(Ut.retina?" leaflet-retina":"")+(Ut.ielt9?" leaflet-oldie":"")+(Ut.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var d=Se(u,"position");d!=="absolute"&&d!=="relative"&&d!=="fixed"&&d!=="sticky"&&(u.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var u=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Me(this._mapPane,new D(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(le(u.markerPane,"leaflet-zoom-hide"),le(u.shadowPane,"leaflet-zoom-hide"))},_resetView:function(u,d,v){Me(this._mapPane,new D(0,0));var E=!this._loaded;this._loaded=!0,d=this._limitZoom(d),this.fire("viewprereset");var T=this._zoom!==d;this._moveStart(T,v)._move(u,d)._moveEnd(T),this.fire("viewreset"),E&&this.fire("load")},_moveStart:function(u,d){return u&&this.fire("zoomstart"),d||this.fire("movestart"),this},_move:function(u,d,v,E){d===void 0&&(d=this._zoom);var T=this._zoom!==d;return this._zoom=d,this._lastCenter=u,this._pixelOrigin=this._getNewPixelOrigin(u),E?v&&v.pinch&&this.fire("zoom",v):((T||v&&v.pinch)&&this.fire("zoom",v),this.fire("move",v)),this},_moveEnd:function(u){return u&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return M(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(u){Me(this._mapPane,this._getMapPanePos().subtract(u))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(u){this._targets={},this._targets[y(this._container)]=this;var d=u?Ce:me;d(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&d(window,"resize",this._onResize,this),Ut.any3d&&this.options.transform3DLimit&&(u?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){M(this._resizeRequest),this._resizeRequest=Y(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var u=this._getMapPanePos();Math.max(Math.abs(u.x),Math.abs(u.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(u,d){for(var v=[],E,T=d==="mouseout"||d==="mouseover",B=u.target||u.srcElement,tt=!1;B;){if(E=this._targets[y(B)],E&&(d==="click"||d==="preclick")&&this._draggableMoved(E)){tt=!0;break}if(E&&E.listens(d,!0)&&(T&&!xe(B,u)||(v.push(E),T))||B===this._container)break;B=B.parentNode}return!v.length&&!tt&&!T&&this.listens(d,!0)&&(v=[this]),v},_isClickDisabled:function(u){for(;u&&u!==this._container;){if(u._leaflet_disable_click)return!0;u=u.parentNode}},_handleDOMEvent:function(u){var d=u.target||u.srcElement;if(!(!this._loaded||d._leaflet_disable_events||u.type==="click"&&this._isClickDisabled(d))){var v=u.type;v==="mousedown"&&Ks(d),this._fireDOMEvent(u,v)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(u,d,v){if(u.type==="click"){var E=c({},u);E.type="preclick",this._fireDOMEvent(E,E.type,v)}var T=this._findEventTargets(u,d);if(v){for(var B=[],tt=0;tt<v.length;tt++)v[tt].listens(d,!0)&&B.push(v[tt]);T=B.concat(T)}if(T.length){d==="contextmenu"&&Mn(u);var ht=T[0],dt={originalEvent:u};if(u.type!=="keypress"&&u.type!=="keydown"&&u.type!=="keyup"){var Lt=ht.getLatLng&&(!ht._radius||ht._radius<=10);dt.containerPoint=Lt?this.latLngToContainerPoint(ht.getLatLng()):this.mouseEventToContainerPoint(u),dt.layerPoint=this.containerPointToLayerPoint(dt.containerPoint),dt.latlng=Lt?ht.getLatLng():this.layerPointToLatLng(dt.layerPoint)}for(tt=0;tt<T.length;tt++)if(T[tt].fire(d,dt,!0),dt.originalEvent._stopped||T[tt].options.bubblingMouseEvents===!1&&R(this._mouseEvents,d)!==-1)return}},_draggableMoved:function(u){return u=u.dragging&&u.dragging.enabled()?u:this,u.dragging&&u.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var u=0,d=this._handlers.length;u<d;u++)this._handlers[u].disable()},whenReady:function(u,d){return this._loaded?u.call(d||this,{target:this}):this.on("load",u,d),this},_getMapPanePos:function(){return Mr(this._mapPane)||new D(0,0)},_moved:function(){var u=this._getMapPanePos();return u&&!u.equals([0,0])},_getTopLeftPoint:function(u,d){var v=u&&d!==void 0?this._getNewPixelOrigin(u,d):this.getPixelOrigin();return v.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(u,d){var v=this.getSize()._divideBy(2);return this.project(u,d)._subtract(v)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(u,d,v){var E=this._getNewPixelOrigin(v,d);return this.project(u,d)._subtract(E)},_latLngBoundsToNewLayerBounds:function(u,d,v){var E=this._getNewPixelOrigin(v,d);return st([this.project(u.getSouthWest(),d)._subtract(E),this.project(u.getNorthWest(),d)._subtract(E),this.project(u.getSouthEast(),d)._subtract(E),this.project(u.getNorthEast(),d)._subtract(E)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(u){return this.latLngToLayerPoint(u).subtract(this._getCenterLayerPoint())},_limitCenter:function(u,d,v){if(!v)return u;var E=this.project(u,d),T=this.getSize().divideBy(2),B=new et(E.subtract(T),E.add(T)),tt=this._getBoundsOffset(B,v,d);return Math.abs(tt.x)<=1&&Math.abs(tt.y)<=1?u:this.unproject(E.add(tt),d)},_limitOffset:function(u,d){if(!d)return u;var v=this.getPixelBounds(),E=new et(v.min.add(u),v.max.add(u));return u.add(this._getBoundsOffset(E,d))},_getBoundsOffset:function(u,d,v){var E=st(this.project(d.getNorthEast(),v),this.project(d.getSouthWest(),v)),T=E.min.subtract(u.min),B=E.max.subtract(u.max),tt=this._rebound(T.x,-B.x),ht=this._rebound(T.y,-B.y);return new D(tt,ht)},_rebound:function(u,d){return u+d>0?Math.round(u-d)/2:Math.max(0,Math.ceil(u))-Math.max(0,Math.floor(d))},_limitZoom:function(u){var d=this.getMinZoom(),v=this.getMaxZoom(),E=Ut.any3d?this.options.zoomSnap:1;return E&&(u=Math.round(u/E)*E),Math.max(d,Math.min(v,u))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){fn(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(u,d){var v=this._getCenterOffset(u)._trunc();return(d&&d.animate)!==!0&&!this.getSize().contains(v)?!1:(this.panBy(v,d),!0)},_createAnimProxy:function(){var u=this._proxy=ie("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(u),this.on("zoomanim",function(d){var v=qn,E=this._proxy.style[v];yr(this._proxy,this.project(d.center,d.zoom),this.getZoomScale(d.zoom,1)),E===this._proxy.style[v]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Ye(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var u=this.getCenter(),d=this.getZoom();yr(this._proxy,this.project(u,d),this.getZoomScale(d,1))},_catchTransitionEnd:function(u){this._animatingZoom&&u.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(u,d,v){if(this._animatingZoom)return!0;if(v=v||{},!this._zoomAnimated||v.animate===!1||this._nothingToAnimate()||Math.abs(d-this._zoom)>this.options.zoomAnimationThreshold)return!1;var E=this.getZoomScale(d),T=this._getCenterOffset(u)._divideBy(1-1/E);return v.animate!==!0&&!this.getSize().contains(T)?!1:(Y(function(){this._moveStart(!0,v.noMoveStart||!1)._animateZoom(u,d,!0)},this),!0)},_animateZoom:function(u,d,v,E){this._mapPane&&(v&&(this._animatingZoom=!0,this._animateToCenter=u,this._animateToZoom=d,le(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:u,zoom:d,noUpdate:E}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(g(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&fn(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function Mi(u,d){return new Le(u,d)}var Jn=ct.extend({options:{position:"topright"},initialize:function(u){O(this,u)},getPosition:function(){return this.options.position},setPosition:function(u){var d=this._map;return d&&d.removeControl(this),this.options.position=u,d&&d.addControl(this),this},getContainer:function(){return this._container},addTo:function(u){this.remove(),this._map=u;var d=this._container=this.onAdd(u),v=this.getPosition(),E=u._controlCorners[v];return le(d,"leaflet-control"),v.indexOf("bottom")!==-1?E.insertBefore(d,E.firstChild):E.appendChild(d),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Ye(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(u){this._map&&u&&u.screenX>0&&u.screenY>0&&this._map.getContainer().focus()}}),An=function(u){return new Jn(u)};Le.include({addControl:function(u){return u.addTo(this),this},removeControl:function(u){return u.remove(),this},_initControlPos:function(){var u=this._controlCorners={},d="leaflet-",v=this._controlContainer=ie("div",d+"control-container",this._container);function E(T,B){var tt=d+T+" "+d+B;u[T+B]=ie("div",tt,v)}E("top","left"),E("top","right"),E("bottom","left"),E("bottom","right")},_clearControlPos:function(){for(var u in this._controlCorners)Ye(this._controlCorners[u]);Ye(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var ws=Jn.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(u,d,v,E){return v<E?-1:E<v?1:0}},initialize:function(u,d,v){O(this,v),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var E in u)this._addLayer(u[E],E);for(E in d)this._addLayer(d[E],E,!0)},onAdd:function(u){this._initLayout(),this._update(),this._map=u,u.on("zoomend",this._checkDisabledLayers,this);for(var d=0;d<this._layers.length;d++)this._layers[d].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(u){return Jn.prototype.addTo.call(this,u),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var u=0;u<this._layers.length;u++)this._layers[u].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(u,d){return this._addLayer(u,d),this._map?this._update():this},addOverlay:function(u,d){return this._addLayer(u,d,!0),this._map?this._update():this},removeLayer:function(u){u.off("add remove",this._onLayerChange,this);var d=this._getLayer(y(u));return d&&this._layers.splice(this._layers.indexOf(d),1),this._map?this._update():this},expand:function(){le(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var u=this._map.getSize().y-(this._container.offsetTop+50);return u<this._section.clientHeight?(le(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=u+"px"):fn(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return fn(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var u="leaflet-control-layers",d=this._container=ie("div",u),v=this.options.collapsed;d.setAttribute("aria-haspopup",!0),Qi(d),Fn(d);var E=this._section=ie("section",u+"-list");v&&(this._map.on("click",this.collapse,this),me(d,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var T=this._layersLink=ie("a",u+"-toggle",d);T.href="#",T.title="Layers",T.setAttribute("role","button"),me(T,{keydown:function(B){B.keyCode===13&&this._expandSafely()},click:function(B){Mn(B),this._expandSafely()}},this),v||this.expand(),this._baseLayersList=ie("div",u+"-base",E),this._separator=ie("div",u+"-separator",E),this._overlaysList=ie("div",u+"-overlays",E),d.appendChild(E)},_getLayer:function(u){for(var d=0;d<this._layers.length;d++)if(this._layers[d]&&y(this._layers[d].layer)===u)return this._layers[d]},_addLayer:function(u,d,v){this._map&&u.on("add remove",this._onLayerChange,this),this._layers.push({layer:u,name:d,overlay:v}),this.options.sortLayers&&this._layers.sort(g(function(E,T){return this.options.sortFunction(E.layer,T.layer,E.name,T.name)},this)),this.options.autoZIndex&&u.setZIndex&&(this._lastZIndex++,u.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Hr(this._baseLayersList),Hr(this._overlaysList),this._layerControlInputs=[];var u,d,v,E,T=0;for(v=0;v<this._layers.length;v++)E=this._layers[v],this._addItem(E),d=d||E.overlay,u=u||!E.overlay,T+=E.overlay?0:1;return this.options.hideSingleBase&&(u=u&&T>1,this._baseLayersList.style.display=u?"":"none"),this._separator.style.display=d&&u?"":"none",this},_onLayerChange:function(u){this._handlingClick||this._update();var d=this._getLayer(y(u.target)),v=d.overlay?u.type==="add"?"overlayadd":"overlayremove":u.type==="add"?"baselayerchange":null;v&&this._map.fire(v,d)},_createRadioElement:function(u,d){var v='<input type="radio" class="leaflet-control-layers-selector" name="'+u+'"'+(d?' checked="checked"':"")+"/>",E=document.createElement("div");return E.innerHTML=v,E.firstChild},_addItem:function(u){var d=document.createElement("label"),v=this._map.hasLayer(u.layer),E;u.overlay?(E=document.createElement("input"),E.type="checkbox",E.className="leaflet-control-layers-selector",E.defaultChecked=v):E=this._createRadioElement("leaflet-base-layers_"+y(this),v),this._layerControlInputs.push(E),E.layerId=y(u.layer),me(E,"click",this._onInputClick,this);var T=document.createElement("span");T.innerHTML=" "+u.name;var B=document.createElement("span");d.appendChild(B),B.appendChild(E),B.appendChild(T);var tt=u.overlay?this._overlaysList:this._baseLayersList;return tt.appendChild(d),this._checkDisabledLayers(),d},_onInputClick:function(){if(!this._preventClick){var u=this._layerControlInputs,d,v,E=[],T=[];this._handlingClick=!0;for(var B=u.length-1;B>=0;B--)d=u[B],v=this._getLayer(d.layerId).layer,d.checked?E.push(v):d.checked||T.push(v);for(B=0;B<T.length;B++)this._map.hasLayer(T[B])&&this._map.removeLayer(T[B]);for(B=0;B<E.length;B++)this._map.hasLayer(E[B])||this._map.addLayer(E[B]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var u=this._layerControlInputs,d,v,E=this._map.getZoom(),T=u.length-1;T>=0;T--)d=u[T],v=this._getLayer(d.layerId).layer,d.disabled=v.options.minZoom!==void 0&&E<v.options.minZoom||v.options.maxZoom!==void 0&&E>v.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var u=this._section;this._preventClick=!0,me(u,"click",Mn),this.expand();var d=this;setTimeout(function(){Ce(u,"click",Mn),d._preventClick=!1})}}),ui=function(u,d,v){return new ws(u,d,v)},$i=Jn.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(u){var d="leaflet-control-zoom",v=ie("div",d+" leaflet-bar"),E=this.options;return this._zoomInButton=this._createButton(E.zoomInText,E.zoomInTitle,d+"-in",v,this._zoomIn),this._zoomOutButton=this._createButton(E.zoomOutText,E.zoomOutTitle,d+"-out",v,this._zoomOut),this._updateDisabled(),u.on("zoomend zoomlevelschange",this._updateDisabled,this),v},onRemove:function(u){u.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(u){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(u.shiftKey?3:1))},_zoomOut:function(u){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(u.shiftKey?3:1))},_createButton:function(u,d,v,E,T){var B=ie("a",v,E);return B.innerHTML=u,B.href="#",B.title=d,B.setAttribute("role","button"),B.setAttribute("aria-label",d),Qi(B),me(B,"click",Ti),me(B,"click",T,this),me(B,"click",this._refocusOnMap,this),B},_updateDisabled:function(){var u=this._map,d="leaflet-disabled";fn(this._zoomInButton,d),fn(this._zoomOutButton,d),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||u._zoom===u.getMinZoom())&&(le(this._zoomOutButton,d),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||u._zoom===u.getMaxZoom())&&(le(this._zoomInButton,d),this._zoomInButton.setAttribute("aria-disabled","true"))}});Le.mergeOptions({zoomControl:!0}),Le.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new $i,this.addControl(this.zoomControl))});var ts=function(u){return new $i(u)},es=Jn.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(u){var d="leaflet-control-scale",v=ie("div",d),E=this.options;return this._addScales(E,d+"-line",v),u.on(E.updateWhenIdle?"moveend":"move",this._update,this),u.whenReady(this._update,this),v},onRemove:function(u){u.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(u,d,v){u.metric&&(this._mScale=ie("div",d,v)),u.imperial&&(this._iScale=ie("div",d,v))},_update:function(){var u=this._map,d=u.getSize().y/2,v=u.distance(u.containerPointToLatLng([0,d]),u.containerPointToLatLng([this.options.maxWidth,d]));this._updateScales(v)},_updateScales:function(u){this.options.metric&&u&&this._updateMetric(u),this.options.imperial&&u&&this._updateImperial(u)},_updateMetric:function(u){var d=this._getRoundNum(u),v=d<1e3?d+" m":d/1e3+" km";this._updateScale(this._mScale,v,d/u)},_updateImperial:function(u){var d=u*3.2808399,v,E,T;d>5280?(v=d/5280,E=this._getRoundNum(v),this._updateScale(this._iScale,E+" mi",E/v)):(T=this._getRoundNum(d),this._updateScale(this._iScale,T+" ft",T/d))},_updateScale:function(u,d,v){u.style.width=Math.round(this.options.maxWidth*v)+"px",u.innerHTML=d},_getRoundNum:function(u){var d=Math.pow(10,(Math.floor(u)+"").length-1),v=u/d;return v=v>=10?10:v>=5?5:v>=3?3:v>=2?2:1,d*v}}),St=function(u){return new es(u)},Qn='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',tn=Jn.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Ut.inlineSvg?Qn+" ":"")+"Leaflet</a>"},initialize:function(u){O(this,u),this._attributions={}},onAdd:function(u){u.attributionControl=this,this._container=ie("div","leaflet-control-attribution"),Qi(this._container);for(var d in u._layers)u._layers[d].getAttribution&&this.addAttribution(u._layers[d].getAttribution());return this._update(),u.on("layeradd",this._addAttribution,this),this._container},onRemove:function(u){u.off("layeradd",this._addAttribution,this)},_addAttribution:function(u){u.layer.getAttribution&&(this.addAttribution(u.layer.getAttribution()),u.layer.once("remove",function(){this.removeAttribution(u.layer.getAttribution())},this))},setPrefix:function(u){return this.options.prefix=u,this._update(),this},addAttribution:function(u){return u?(this._attributions[u]||(this._attributions[u]=0),this._attributions[u]++,this._update(),this):this},removeAttribution:function(u){return u?(this._attributions[u]&&(this._attributions[u]--,this._update()),this):this},_update:function(){if(this._map){var u=[];for(var d in this._attributions)this._attributions[d]&&u.push(d);var v=[];this.options.prefix&&v.push(this.options.prefix),u.length&&v.push(u.join(", ")),this._container.innerHTML=v.join(' <span aria-hidden="true">|</span> ')}}});Le.mergeOptions({attributionControl:!0}),Le.addInitHook(function(){this.options.attributionControl&&new tn().addTo(this)});var Os=function(u){return new tn(u)};Jn.Layers=ws,Jn.Zoom=$i,Jn.Scale=es,Jn.Attribution=tn,An.layers=ui,An.zoom=ts,An.scale=St,An.attribution=Os;var gr=ct.extend({initialize:function(u){this._map=u},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});gr.addTo=function(u,d){return u.addHandler(d,this),this};var $s={Events:V},li=Ut.touch?"touchstart mousedown":"mousedown",Vn=$.extend({options:{clickTolerance:3},initialize:function(u,d,v,E){O(this,E),this._element=u,this._dragStartTarget=d||u,this._preventOutline=v},enable:function(){this._enabled||(me(this._dragStartTarget,li,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Vn._dragging===this&&this.finishDrag(!0),Ce(this._dragStartTarget,li,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(u){if(this._enabled&&(this._moved=!1,!Te(this._element,"leaflet-zoom-anim"))){if(u.touches&&u.touches.length!==1){Vn._dragging===this&&this.finishDrag();return}if(!(Vn._dragging||u.shiftKey||u.which!==1&&u.button!==1&&!u.touches)&&(Vn._dragging=this,this._preventOutline&&Ks(this._element),si(),kn(),!this._moving)){this.fire("down");var d=u.touches?u.touches[0]:u,v=Ar(this._element);this._startPoint=new D(d.clientX,d.clientY),this._startPos=Mr(this._element),this._parentScale=Js(v);var E=u.type==="mousedown";me(document,E?"mousemove":"touchmove",this._onMove,this),me(document,E?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(u){if(this._enabled){if(u.touches&&u.touches.length>1){this._moved=!0;return}var d=u.touches&&u.touches.length===1?u.touches[0]:u,v=new D(d.clientX,d.clientY)._subtract(this._startPoint);!v.x&&!v.y||Math.abs(v.x)+Math.abs(v.y)<this.options.clickTolerance||(v.x/=this._parentScale.x,v.y/=this._parentScale.y,Mn(u),this._moved||(this.fire("dragstart"),this._moved=!0,le(document.body,"leaflet-dragging"),this._lastTarget=u.target||u.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),le(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(v),this._moving=!0,this._lastEvent=u,this._updatePosition())}},_updatePosition:function(){var u={originalEvent:this._lastEvent};this.fire("predrag",u),Me(this._element,this._newPos),this.fire("drag",u)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(u){fn(document.body,"leaflet-dragging"),this._lastTarget&&(fn(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Ce(document,"mousemove touchmove",this._onMove,this),Ce(document,"mouseup touchend touchcancel",this._onUp,this),oi(),ri();var d=this._moved&&this._moving;this._moving=!1,Vn._dragging=!1,d&&this.fire("dragend",{noInertia:u,distance:this._newPos.distanceTo(this._startPos)})}});function ns(u,d,v){var E,T=[1,4,2,8],B,tt,ht,dt,Lt,zt,se,Ee;for(B=0,zt=u.length;B<zt;B++)u[B]._code=fi(u[B],d);for(ht=0;ht<4;ht++){for(se=T[ht],E=[],B=0,zt=u.length,tt=zt-1;B<zt;tt=B++)dt=u[B],Lt=u[tt],dt._code&se?Lt._code&se||(Ee=hi(Lt,dt,se,d,v),Ee._code=fi(Ee,d),E.push(Ee)):(Lt._code&se&&(Ee=hi(Lt,dt,se,d,v),Ee._code=fi(Ee,d),E.push(Ee)),E.push(dt));u=E}return u}function br(u,d){var v,E,T,B,tt,ht,dt,Lt,zt;if(!u||u.length===0)throw new Error("latlngs not passed");Dn(u)||(console.warn("latlngs are not flat! Only the first ring will be used"),u=u[0]);var se=Nt([0,0]),Ee=bt(u),Ln=Ee.getNorthWest().distanceTo(Ee.getSouthWest())*Ee.getNorthEast().distanceTo(Ee.getNorthWest());Ln<1700&&(se=ci(u));var En=u.length,ar=[];for(v=0;v<En;v++){var Gn=Nt(u[v]);ar.push(d.project(Nt([Gn.lat-se.lat,Gn.lng-se.lng])))}for(ht=dt=Lt=0,v=0,E=En-1;v<En;E=v++)T=ar[v],B=ar[E],tt=T.y*B.x-B.y*T.x,dt+=(T.x+B.x)*tt,Lt+=(T.y+B.y)*tt,ht+=tt*3;ht===0?zt=ar[0]:zt=[dt/ht,Lt/ht];var _i=d.unproject(J(zt));return Nt([_i.lat+se.lat,_i.lng+se.lng])}function ci(u){for(var d=0,v=0,E=0,T=0;T<u.length;T++){var B=Nt(u[T]);d+=B.lat,v+=B.lng,E++}return Nt([d/E,v/E])}var rs={__proto__:null,clipPolygon:ns,polygonCenter:br,centroid:ci};function xr(u,d){if(!d||!u.length)return u.slice();var v=d*d;return u=ir(u,v),u=Ra(u,v),u}function to(u,d,v){return Math.sqrt(Di(u,d,v,!0))}function Da(u,d,v){return Di(u,d,v)}function Ra(u,d){var v=u.length,E=typeof Uint8Array<"u"?Uint8Array:Array,T=new E(v);T[0]=T[v-1]=1,Ns(u,T,d,0,v-1);var B,tt=[];for(B=0;B<v;B++)T[B]&&tt.push(u[B]);return tt}function Ns(u,d,v,E,T){var B=0,tt,ht,dt;for(ht=E+1;ht<=T-1;ht++)dt=Di(u[ht],u[E],u[T],!0),dt>B&&(tt=ht,B=dt);B>v&&(d[tt]=1,Ns(u,d,v,E,tt),Ns(u,d,v,tt,T))}function ir(u,d){for(var v=[u[0]],E=1,T=0,B=u.length;E<B;E++)Zr(u[E],u[T])>d&&(v.push(u[E]),T=E);return T<B-1&&v.push(u[B-1]),v}var Ai;function eo(u,d,v,E,T){var B=E?Ai:fi(u,v),tt=fi(d,v),ht,dt,Lt;for(Ai=tt;;){if(!(B|tt))return[u,d];if(B&tt)return!1;ht=B||tt,dt=hi(u,d,ht,v,T),Lt=fi(dt,v),ht===B?(u=dt,B=Lt):(d=dt,tt=Lt)}}function hi(u,d,v,E,T){var B=d.x-u.x,tt=d.y-u.y,ht=E.min,dt=E.max,Lt,zt;return v&8?(Lt=u.x+B*(dt.y-u.y)/tt,zt=dt.y):v&4?(Lt=u.x+B*(ht.y-u.y)/tt,zt=ht.y):v&2?(Lt=dt.x,zt=u.y+tt*(dt.x-u.x)/B):v&1&&(Lt=ht.x,zt=u.y+tt*(ht.x-u.x)/B),new D(Lt,zt,T)}function fi(u,d){var v=0;return u.x<d.min.x?v|=1:u.x>d.max.x&&(v|=2),u.y<d.min.y?v|=4:u.y>d.max.y&&(v|=8),v}function Zr(u,d){var v=d.x-u.x,E=d.y-u.y;return v*v+E*E}function Di(u,d,v,E){var T=d.x,B=d.y,tt=v.x-T,ht=v.y-B,dt=tt*tt+ht*ht,Lt;return dt>0&&(Lt=((u.x-T)*tt+(u.y-B)*ht)/dt,Lt>1?(T=v.x,B=v.y):Lt>0&&(T+=tt*Lt,B+=ht*Lt)),tt=u.x-T,ht=u.y-B,E?tt*tt+ht*ht:new D(T,B)}function Dn(u){return!A(u[0])||typeof u[0][0]!="object"&&typeof u[0][0]<"u"}function no(u){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Dn(u)}function Ri(u,d){var v,E,T,B,tt,ht,dt,Lt;if(!u||u.length===0)throw new Error("latlngs not passed");Dn(u)||(console.warn("latlngs are not flat! Only the first ring will be used"),u=u[0]);var zt=Nt([0,0]),se=bt(u),Ee=se.getNorthWest().distanceTo(se.getSouthWest())*se.getNorthEast().distanceTo(se.getNorthWest());Ee<1700&&(zt=ci(u));var Ln=u.length,En=[];for(v=0;v<Ln;v++){var ar=Nt(u[v]);En.push(d.project(Nt([ar.lat-zt.lat,ar.lng-zt.lng])))}for(v=0,E=0;v<Ln-1;v++)E+=En[v].distanceTo(En[v+1])/2;if(E===0)Lt=En[0];else for(v=0,B=0;v<Ln-1;v++)if(tt=En[v],ht=En[v+1],T=tt.distanceTo(ht),B+=T,B>E){dt=(B-E)/T,Lt=[ht.x-dt*(ht.x-tt.x),ht.y-dt*(ht.y-tt.y)];break}var Gn=d.unproject(J(Lt));return Nt([Gn.lat+zt.lat,Gn.lng+zt.lng])}var ja={__proto__:null,simplify:xr,pointToSegmentDistance:to,closestPointOnSegment:Da,clipSegment:eo,_getEdgeIntersection:hi,_getBitCode:fi,_sqClosestPointOnSegment:Di,isFlat:Dn,_flat:no,polylineCenter:Ri},Ss={project:function(u){return new D(u.lng,u.lat)},unproject:function(u){return new nt(u.y,u.x)},bounds:new et([-180,-90],[180,90])},Ls={R:6378137,R_MINOR:6356752314245179e-9,bounds:new et([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(u){var d=Math.PI/180,v=this.R,E=u.lat*d,T=this.R_MINOR/v,B=Math.sqrt(1-T*T),tt=B*Math.sin(E),ht=Math.tan(Math.PI/4-E/2)/Math.pow((1-tt)/(1+tt),B/2);return E=-v*Math.log(Math.max(ht,1e-10)),new D(u.lng*d*v,E)},unproject:function(u){for(var d=180/Math.PI,v=this.R,E=this.R_MINOR/v,T=Math.sqrt(1-E*E),B=Math.exp(-u.y/v),tt=Math.PI/2-2*Math.atan(B),ht=0,dt=.1,Lt;ht<15&&Math.abs(dt)>1e-7;ht++)Lt=T*Math.sin(tt),Lt=Math.pow((1-Lt)/(1+Lt),T/2),dt=Math.PI/2-2*Math.atan(B*Lt)-tt,tt+=dt;return new nt(tt*d,u.x*d/v)}},ka={__proto__:null,LonLat:Ss,Mercator:Ls,SphericalMercator:ee},Bn=c({},Mt,{code:"EPSG:3395",projection:Ls,transformation:(function(){var u=.5/(Math.PI*Ls.R);return kt(u,.5,-u,.5)})()}),ro=c({},Mt,{code:"EPSG:4326",projection:Ss,transformation:kt(1/180,1,-1/180,.5)}),io=c({},xt,{projection:Ss,transformation:kt(1,0,-1,0),scale:function(u){return Math.pow(2,u)},zoom:function(u){return Math.log(u)/Math.LN2},distance:function(u,d){var v=d.lng-u.lng,E=d.lat-u.lat;return Math.sqrt(v*v+E*E)},infinite:!0});xt.Earth=Mt,xt.EPSG3395=Bn,xt.EPSG3857=Ue,xt.EPSG900913=ze,xt.EPSG4326=ro,xt.Simple=io;var sr=$.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(u){return u.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(u){return u&&u.removeLayer(this),this},getPane:function(u){return this._map.getPane(u?this.options[u]||u:this.options.pane)},addInteractiveTarget:function(u){return this._map._targets[y(u)]=this,this},removeInteractiveTarget:function(u){return delete this._map._targets[y(u)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(u){var d=u.target;if(d.hasLayer(this)){if(this._map=d,this._zoomAnimated=d._zoomAnimated,this.getEvents){var v=this.getEvents();d.on(v,this),this.once("remove",function(){d.off(v,this)},this)}this.onAdd(d),this.fire("add"),d.fire("layeradd",{layer:this})}}});Le.include({addLayer:function(u){if(!u._layerAdd)throw new Error("The provided object is not a Layer.");var d=y(u);return this._layers[d]?this:(this._layers[d]=u,u._mapToAdd=this,u.beforeAdd&&u.beforeAdd(this),this.whenReady(u._layerAdd,u),this)},removeLayer:function(u){var d=y(u);return this._layers[d]?(this._loaded&&u.onRemove(this),delete this._layers[d],this._loaded&&(this.fire("layerremove",{layer:u}),u.fire("remove")),u._map=u._mapToAdd=null,this):this},hasLayer:function(u){return y(u)in this._layers},eachLayer:function(u,d){for(var v in this._layers)u.call(d,this._layers[v]);return this},_addLayers:function(u){u=u?A(u)?u:[u]:[];for(var d=0,v=u.length;d<v;d++)this.addLayer(u[d])},_addZoomLimit:function(u){(!isNaN(u.options.maxZoom)||!isNaN(u.options.minZoom))&&(this._zoomBoundLayers[y(u)]=u,this._updateZoomLevels())},_removeZoomLimit:function(u){var d=y(u);this._zoomBoundLayers[d]&&(delete this._zoomBoundLayers[d],this._updateZoomLevels())},_updateZoomLevels:function(){var u=1/0,d=-1/0,v=this._getZoomSpan();for(var E in this._zoomBoundLayers){var T=this._zoomBoundLayers[E].options;u=T.minZoom===void 0?u:Math.min(u,T.minZoom),d=T.maxZoom===void 0?d:Math.max(d,T.maxZoom)}this._layersMaxZoom=d===-1/0?void 0:d,this._layersMinZoom=u===1/0?void 0:u,v!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var di=sr.extend({initialize:function(u,d){O(this,d),this._layers={};var v,E;if(u)for(v=0,E=u.length;v<E;v++)this.addLayer(u[v])},addLayer:function(u){var d=this.getLayerId(u);return this._layers[d]=u,this._map&&this._map.addLayer(u),this},removeLayer:function(u){var d=u in this._layers?u:this.getLayerId(u);return this._map&&this._layers[d]&&this._map.removeLayer(this._layers[d]),delete this._layers[d],this},hasLayer:function(u){var d=typeof u=="number"?u:this.getLayerId(u);return d in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(u){var d=Array.prototype.slice.call(arguments,1),v,E;for(v in this._layers)E=this._layers[v],E[u]&&E[u].apply(E,d);return this},onAdd:function(u){this.eachLayer(u.addLayer,u)},onRemove:function(u){this.eachLayer(u.removeLayer,u)},eachLayer:function(u,d){for(var v in this._layers)u.call(d,this._layers[v]);return this},getLayer:function(u){return this._layers[u]},getLayers:function(){var u=[];return this.eachLayer(u.push,u),u},setZIndex:function(u){return this.invoke("setZIndex",u)},getLayerId:function(u){return y(u)}}),Fa=function(u,d){return new di(u,d)},Rr=di.extend({addLayer:function(u){return this.hasLayer(u)?this:(u.addEventParent(this),di.prototype.addLayer.call(this,u),this.fire("layeradd",{layer:u}))},removeLayer:function(u){return this.hasLayer(u)?(u in this._layers&&(u=this._layers[u]),u.removeEventParent(this),di.prototype.removeLayer.call(this,u),this.fire("layerremove",{layer:u})):this},setStyle:function(u){return this.invoke("setStyle",u)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var u=new ut;for(var d in this._layers){var v=this._layers[d];u.extend(v.getBounds?v.getBounds():v.getLatLng())}return u}}),so=function(u,d){return new Rr(u,d)},ji=ct.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(u){O(this,u)},createIcon:function(u){return this._createIcon("icon",u)},createShadow:function(u){return this._createIcon("shadow",u)},_createIcon:function(u,d){var v=this._getIconUrl(u);if(!v){if(u==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var E=this._createImg(v,d&&d.tagName==="IMG"?d:null);return this._setIconStyles(E,u),(this.options.crossOrigin||this.options.crossOrigin==="")&&(E.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),E},_setIconStyles:function(u,d){var v=this.options,E=v[d+"Size"];typeof E=="number"&&(E=[E,E]);var T=J(E),B=J(d==="shadow"&&v.shadowAnchor||v.iconAnchor||T&&T.divideBy(2,!0));u.className="leaflet-marker-"+d+" "+(v.className||""),B&&(u.style.marginLeft=-B.x+"px",u.style.marginTop=-B.y+"px"),T&&(u.style.width=T.x+"px",u.style.height=T.y+"px")},_createImg:function(u,d){return d=d||document.createElement("img"),d.src=u,d},_getIconUrl:function(u){return Ut.retina&&this.options[u+"RetinaUrl"]||this.options[u+"Url"]}});function Er(u){return new ji(u)}var Un=ji.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(u){return typeof Un.imagePath!="string"&&(Un.imagePath=this._detectIconPath()),(this.options.imagePath||Un.imagePath)+ji.prototype._getIconUrl.call(this,u)},_stripUrl:function(u){var d=function(v,E,T){var B=E.exec(v);return B&&B[T]};return u=d(u,/^url\((['"])?(.+)\1\)$/,2),u&&d(u,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var u=ie("div","leaflet-default-icon-path",document.body),d=Se(u,"background-image")||Se(u,"backgroundImage");if(document.body.removeChild(u),d=this._stripUrl(d),d)return d;var v=document.querySelector('link[href$="leaflet.css"]');return v?v.href.substring(0,v.href.length-11-1):""}}),Wn=gr.extend({initialize:function(u){this._marker=u},addHooks:function(){var u=this._marker._icon;this._draggable||(this._draggable=new Vn(u,u,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),le(u,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&fn(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(u){var d=this._marker,v=d._map,E=this._marker.options.autoPanSpeed,T=this._marker.options.autoPanPadding,B=Mr(d._icon),tt=v.getPixelBounds(),ht=v.getPixelOrigin(),dt=st(tt.min._subtract(ht).add(T),tt.max._subtract(ht).subtract(T));if(!dt.contains(B)){var Lt=J((Math.max(dt.max.x,B.x)-dt.max.x)/(tt.max.x-dt.max.x)-(Math.min(dt.min.x,B.x)-dt.min.x)/(tt.min.x-dt.min.x),(Math.max(dt.max.y,B.y)-dt.max.y)/(tt.max.y-dt.max.y)-(Math.min(dt.min.y,B.y)-dt.min.y)/(tt.min.y-dt.min.y)).multiplyBy(E);v.panBy(Lt,{animate:!1}),this._draggable._newPos._add(Lt),this._draggable._startPos._add(Lt),Me(d._icon,this._draggable._newPos),this._onDrag(u),this._panRequest=Y(this._adjustPan.bind(this,u))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(u){this._marker.options.autoPan&&(M(this._panRequest),this._panRequest=Y(this._adjustPan.bind(this,u)))},_onDrag:function(u){var d=this._marker,v=d._shadow,E=Mr(d._icon),T=d._map.layerPointToLatLng(E);v&&Me(v,E),d._latlng=T,u.latlng=T,u.oldLatLng=this._oldLatLng,d.fire("move",u).fire("drag",u)},_onDragEnd:function(u){M(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",u)}}),jr=sr.extend({options:{icon:new Un,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(u,d){O(this,d),this._latlng=Nt(u)},onAdd:function(u){this._zoomAnimated=this._zoomAnimated&&u.options.markerZoomAnimation,this._zoomAnimated&&u.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(u){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&u.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(u){var d=this._latlng;return this._latlng=Nt(u),this.update(),this.fire("move",{oldLatLng:d,latlng:this._latlng})},setZIndexOffset:function(u){return this.options.zIndexOffset=u,this.update()},getIcon:function(){return this.options.icon},setIcon:function(u){return this.options.icon=u,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var u=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(u)}return this},_initIcon:function(){var u=this.options,d="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),v=u.icon.createIcon(this._icon),E=!1;v!==this._icon&&(this._icon&&this._removeIcon(),E=!0,u.title&&(v.title=u.title),v.tagName==="IMG"&&(v.alt=u.alt||"")),le(v,d),u.keyboard&&(v.tabIndex="0",v.setAttribute("role","button")),this._icon=v,u.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&me(v,"focus",this._panOnFocus,this);var T=u.icon.createShadow(this._shadow),B=!1;T!==this._shadow&&(this._removeShadow(),B=!0),T&&(le(T,d),T.alt=""),this._shadow=T,u.opacity<1&&this._updateOpacity(),E&&this.getPane().appendChild(this._icon),this._initInteraction(),T&&B&&this.getPane(u.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Ce(this._icon,"focus",this._panOnFocus,this),Ye(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Ye(this._shadow),this._shadow=null},_setPos:function(u){this._icon&&Me(this._icon,u),this._shadow&&Me(this._shadow,u),this._zIndex=u.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(u){this._icon&&(this._icon.style.zIndex=this._zIndex+u)},_animateZoom:function(u){var d=this._map._latLngToNewLayerPoint(this._latlng,u.zoom,u.center).round();this._setPos(d)},_initInteraction:function(){if(this.options.interactive&&(le(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Wn)){var u=this.options.draggable;this.dragging&&(u=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Wn(this),u&&this.dragging.enable()}},setOpacity:function(u){return this.options.opacity=u,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var u=this.options.opacity;this._icon&&xn(this._icon,u),this._shadow&&xn(this._shadow,u)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var u=this._map;if(u){var d=this.options.icon.options,v=d.iconSize?J(d.iconSize):J(0,0),E=d.iconAnchor?J(d.iconAnchor):J(0,0);u.panInside(this._latlng,{paddingTopLeft:E,paddingBottomRight:v.subtract(E)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function ki(u,d){return new jr(u,d)}var kr=sr.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(u){this._renderer=u.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(u){return O(this,u),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&u&&Object.prototype.hasOwnProperty.call(u,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),Ht=kr.extend({options:{fill:!0,radius:10},initialize:function(u,d){O(this,d),this._latlng=Nt(u),this._radius=this.options.radius},setLatLng:function(u){var d=this._latlng;return this._latlng=Nt(u),this.redraw(),this.fire("move",{oldLatLng:d,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(u){return this.options.radius=this._radius=u,this.redraw()},getRadius:function(){return this._radius},setStyle:function(u){var d=u&&u.radius||this._radius;return kr.prototype.setStyle.call(this,u),this.setRadius(d),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var u=this._radius,d=this._radiusY||u,v=this._clickTolerance(),E=[u+v,d+v];this._pxBounds=new et(this._point.subtract(E),this._point.add(E))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(u){return u.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function mr(u,d){return new Ht(u,d)}var mn=Ht.extend({initialize:function(u,d,v){if(typeof d=="number"&&(d=c({},v,{radius:d})),O(this,d),this._latlng=Nt(u),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(u){return this._mRadius=u,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var u=[this._radius,this._radiusY||this._radius];return new ut(this._map.layerPointToLatLng(this._point.subtract(u)),this._map.layerPointToLatLng(this._point.add(u)))},setStyle:kr.prototype.setStyle,_project:function(){var u=this._latlng.lng,d=this._latlng.lat,v=this._map,E=v.options.crs;if(E.distance===Mt.distance){var T=Math.PI/180,B=this._mRadius/Mt.R/T,tt=v.project([d+B,u]),ht=v.project([d-B,u]),dt=tt.add(ht).divideBy(2),Lt=v.unproject(dt).lat,zt=Math.acos((Math.cos(B*T)-Math.sin(d*T)*Math.sin(Lt*T))/(Math.cos(d*T)*Math.cos(Lt*T)))/T;(isNaN(zt)||zt===0)&&(zt=B/Math.cos(Math.PI/180*d)),this._point=dt.subtract(v.getPixelOrigin()),this._radius=isNaN(zt)?0:dt.x-v.project([Lt,u-zt]).x,this._radiusY=dt.y-tt.y}else{var se=E.unproject(E.project(this._latlng).subtract([this._mRadius,0]));this._point=v.latLngToLayerPoint(this._latlng),this._radius=this._point.x-v.latLngToLayerPoint(se).x}this._updateBounds()}});function wr(u,d,v){return new mn(u,d,v)}var or=kr.extend({options:{smoothFactor:1,noClip:!1},initialize:function(u,d){O(this,d),this._setLatLngs(u)},getLatLngs:function(){return this._latlngs},setLatLngs:function(u){return this._setLatLngs(u),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(u){for(var d=1/0,v=null,E=Di,T,B,tt=0,ht=this._parts.length;tt<ht;tt++)for(var dt=this._parts[tt],Lt=1,zt=dt.length;Lt<zt;Lt++){T=dt[Lt-1],B=dt[Lt];var se=E(u,T,B,!0);se<d&&(d=se,v=E(u,T,B))}return v&&(v.distance=Math.sqrt(d)),v},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Ri(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(u,d){return d=d||this._defaultShape(),u=Nt(u),d.push(u),this._bounds.extend(u),this.redraw()},_setLatLngs:function(u){this._bounds=new ut,this._latlngs=this._convertLatLngs(u)},_defaultShape:function(){return Dn(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(u){for(var d=[],v=Dn(u),E=0,T=u.length;E<T;E++)v?(d[E]=Nt(u[E]),this._bounds.extend(d[E])):d[E]=this._convertLatLngs(u[E]);return d},_project:function(){var u=new et;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,u),this._bounds.isValid()&&u.isValid()&&(this._rawPxBounds=u,this._updateBounds())},_updateBounds:function(){var u=this._clickTolerance(),d=new D(u,u);this._rawPxBounds&&(this._pxBounds=new et([this._rawPxBounds.min.subtract(d),this._rawPxBounds.max.add(d)]))},_projectLatlngs:function(u,d,v){var E=u[0]instanceof nt,T=u.length,B,tt;if(E){for(tt=[],B=0;B<T;B++)tt[B]=this._map.latLngToLayerPoint(u[B]),v.extend(tt[B]);d.push(tt)}else for(B=0;B<T;B++)this._projectLatlngs(u[B],d,v)},_clipPoints:function(){var u=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(u))){if(this.options.noClip){this._parts=this._rings;return}var d=this._parts,v,E,T,B,tt,ht,dt;for(v=0,T=0,B=this._rings.length;v<B;v++)for(dt=this._rings[v],E=0,tt=dt.length;E<tt-1;E++)ht=eo(dt[E],dt[E+1],u,E,!0),ht&&(d[T]=d[T]||[],d[T].push(ht[0]),(ht[1]!==dt[E+1]||E===tt-2)&&(d[T].push(ht[1]),T++))}},_simplifyPoints:function(){for(var u=this._parts,d=this.options.smoothFactor,v=0,E=u.length;v<E;v++)u[v]=xr(u[v],d)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(u,d){var v,E,T,B,tt,ht,dt=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(u))return!1;for(v=0,B=this._parts.length;v<B;v++)for(ht=this._parts[v],E=0,tt=ht.length,T=tt-1;E<tt;T=E++)if(!(!d&&E===0)&&to(u,ht[T],ht[E])<=dt)return!0;return!1}});function Fo(u,d){return new or(u,d)}or._flat=no;var gi=or.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return br(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(u){var d=or.prototype._convertLatLngs.call(this,u),v=d.length;return v>=2&&d[0]instanceof nt&&d[0].equals(d[v-1])&&d.pop(),d},_setLatLngs:function(u){or.prototype._setLatLngs.call(this,u),Dn(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Dn(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var u=this._renderer._bounds,d=this.options.weight,v=new D(d,d);if(u=new et(u.min.subtract(v),u.max.add(v)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(u))){if(this.options.noClip){this._parts=this._rings;return}for(var E=0,T=this._rings.length,B;E<T;E++)B=ns(this._rings[E],u,!0),B.length&&this._parts.push(B)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(u){var d=!1,v,E,T,B,tt,ht,dt,Lt;if(!this._pxBounds||!this._pxBounds.contains(u))return!1;for(B=0,dt=this._parts.length;B<dt;B++)for(v=this._parts[B],tt=0,Lt=v.length,ht=Lt-1;tt<Lt;ht=tt++)E=v[tt],T=v[ht],E.y>u.y!=T.y>u.y&&u.x<(T.x-E.x)*(u.y-E.y)/(T.y-E.y)+E.x&&(d=!d);return d||or.prototype._containsPoint.call(this,u,!0)}});function ue(u,d){return new gi(u,d)}var we=Rr.extend({initialize:function(u,d){O(this,d),this._layers={},u&&this.addData(u)},addData:function(u){var d=A(u)?u:u.features,v,E,T;if(d){for(v=0,E=d.length;v<E;v++)T=d[v],(T.geometries||T.geometry||T.features||T.coordinates)&&this.addData(T);return this}var B=this.options;if(B.filter&&!B.filter(u))return this;var tt=Or(u,B);return tt?(tt.feature=is(u),tt.defaultOptions=tt.options,this.resetStyle(tt),B.onEachFeature&&B.onEachFeature(u,tt),this.addLayer(tt)):this},resetStyle:function(u){return u===void 0?this.eachLayer(this.resetStyle,this):(u.options=c({},u.defaultOptions),this._setLayerStyle(u,this.options.style),this)},setStyle:function(u){return this.eachLayer(function(d){this._setLayerStyle(d,u)},this)},_setLayerStyle:function(u,d){u.setStyle&&(typeof d=="function"&&(d=d(u.feature)),u.setStyle(d))}});function Or(u,d){var v=u.type==="Feature"?u.geometry:u,E=v?v.coordinates:null,T=[],B=d&&d.pointToLayer,tt=d&&d.coordsToLatLng||Wr,ht,dt,Lt,zt;if(!E&&!v)return null;switch(v.type){case"Point":return ht=tt(E),Rn(B,u,ht,d);case"MultiPoint":for(Lt=0,zt=E.length;Lt<zt;Lt++)ht=tt(E[Lt]),T.push(Rn(B,u,ht,d));return new Rr(T);case"LineString":case"MultiLineString":return dt=Fi(E,v.type==="LineString"?0:1,tt),new or(dt,d);case"Polygon":case"MultiPolygon":return dt=Fi(E,v.type==="Polygon"?1:2,tt),new gi(dt,d);case"GeometryCollection":for(Lt=0,zt=v.geometries.length;Lt<zt;Lt++){var se=Or({geometry:v.geometries[Lt],type:"Feature",properties:u.properties},d);se&&T.push(se)}return new Rr(T);case"FeatureCollection":for(Lt=0,zt=v.features.length;Lt<zt;Lt++){var Ee=Or(v.features[Lt],d);Ee&&T.push(Ee)}return new Rr(T);default:throw new Error("Invalid GeoJSON object.")}}function Rn(u,d,v,E){return u?u(d,v):new jr(v,E&&E.markersInheritOptions&&E)}function Wr(u){return new nt(u[1],u[0],u[2])}function Fi(u,d,v){for(var E=[],T=0,B=u.length,tt;T<B;T++)tt=d?Fi(u[T],d-1,v):(v||Wr)(u[T]),E.push(tt);return E}function Nr(u,d){return u=Nt(u),u.alt!==void 0?[w(u.lng,d),w(u.lat,d),w(u.alt,d)]:[w(u.lng,d),w(u.lat,d)]}function zn(u,d,v,E){for(var T=[],B=0,tt=u.length;B<tt;B++)T.push(d?zn(u[B],Dn(u[B])?0:d-1,v,E):Nr(u[B],E));return!d&&v&&T.length>0&&T.push(T[0].slice()),T}function Fr(u,d){return u.feature?c({},u.feature,{geometry:d}):is(d)}function is(u){return u.type==="Feature"||u.type==="FeatureCollection"?u:{type:"Feature",properties:{},geometry:u}}var Is={toGeoJSON:function(u){return Fr(this,{type:"Point",coordinates:Nr(this.getLatLng(),u)})}};jr.include(Is),mn.include(Is),Ht.include(Is),or.include({toGeoJSON:function(u){var d=!Dn(this._latlngs),v=zn(this._latlngs,d?1:0,!1,u);return Fr(this,{type:(d?"Multi":"")+"LineString",coordinates:v})}}),gi.include({toGeoJSON:function(u){var d=!Dn(this._latlngs),v=d&&!Dn(this._latlngs[0]),E=zn(this._latlngs,v?2:d?1:0,!0,u);return d||(E=[E]),Fr(this,{type:(v?"Multi":"")+"Polygon",coordinates:E})}}),di.include({toMultiPoint:function(u){var d=[];return this.eachLayer(function(v){d.push(v.toGeoJSON(u).geometry.coordinates)}),Fr(this,{type:"MultiPoint",coordinates:d})},toGeoJSON:function(u){var d=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(d==="MultiPoint")return this.toMultiPoint(u);var v=d==="GeometryCollection",E=[];return this.eachLayer(function(T){if(T.toGeoJSON){var B=T.toGeoJSON(u);if(v)E.push(B.geometry);else{var tt=is(B);tt.type==="FeatureCollection"?E.push.apply(E,tt.features):E.push(tt)}}}),v?Fr(this,{geometries:E,type:"GeometryCollection"}):{type:"FeatureCollection",features:E}}});function Ps(u,d){return new we(u,d)}var Br=Ps,Yr=sr.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(u,d,v){this._url=u,this._bounds=bt(d),O(this,v)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(le(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Ye(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(u){return this.options.opacity=u,this._image&&this._updateOpacity(),this},setStyle:function(u){return u.opacity&&this.setOpacity(u.opacity),this},bringToFront:function(){return this._map&&Ot(this._image),this},bringToBack:function(){return this._map&&re(this._image),this},setUrl:function(u){return this._url=u,this._image&&(this._image.src=u),this},setBounds:function(u){return this._bounds=bt(u),this._map&&this._reset(),this},getEvents:function(){var u={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(u.zoomanim=this._animateZoom),u},setZIndex:function(u){return this.options.zIndex=u,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var u=this._url.tagName==="IMG",d=this._image=u?this._url:ie("img");if(le(d,"leaflet-image-layer"),this._zoomAnimated&&le(d,"leaflet-zoom-animated"),this.options.className&&le(d,this.options.className),d.onselectstart=b,d.onmousemove=b,d.onload=g(this.fire,this,"load"),d.onerror=g(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(d.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),u){this._url=d.src;return}d.src=this._url,d.alt=this.options.alt},_animateZoom:function(u){var d=this._map.getZoomScale(u.zoom),v=this._map._latLngBoundsToNewLayerBounds(this._bounds,u.zoom,u.center).min;yr(this._image,v,d)},_reset:function(){var u=this._image,d=new et(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),v=d.getSize();Me(u,d.min),u.style.width=v.x+"px",u.style.height=v.y+"px"},_updateOpacity:function(){xn(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var u=this.options.errorOverlayUrl;u&&this._url!==u&&(this._url=u,this._image.src=u)},getCenter:function(){return this._bounds.getCenter()}}),$h=function(u,d,v){return new Yr(u,d,v)},Ts=Yr.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var u=this._url.tagName==="VIDEO",d=this._image=u?this._url:ie("video");if(le(d,"leaflet-image-layer"),this._zoomAnimated&&le(d,"leaflet-zoom-animated"),this.options.className&&le(d,this.options.className),d.onselectstart=b,d.onmousemove=b,d.onloadeddata=g(this.fire,this,"load"),u){for(var v=d.getElementsByTagName("source"),E=[],T=0;T<v.length;T++)E.push(v[T].src);this._url=v.length>0?E:[d.src];return}A(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(d.style,"objectFit")&&(d.style.objectFit="fill"),d.autoplay=!!this.options.autoplay,d.loop=!!this.options.loop,d.muted=!!this.options.muted,d.playsInline=!!this.options.playsInline;for(var B=0;B<this._url.length;B++){var tt=ie("source");tt.src=this._url[B],d.appendChild(tt)}}});function mi(u,d,v){return new Ts(u,d,v)}var pi=Yr.extend({_initImage:function(){var u=this._image=this._url;le(u,"leaflet-image-layer"),this._zoomAnimated&&le(u,"leaflet-zoom-animated"),this.options.className&&le(u,this.options.className),u.onselectstart=b,u.onmousemove=b}});function ss(u,d,v){return new pi(u,d,v)}var Hn=sr.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(u,d){u&&(u instanceof nt||A(u))?(this._latlng=Nt(u),O(this,d)):(O(this,u),this._source=d),this.options.content&&(this._content=this.options.content)},openOn:function(u){return u=arguments.length?u:this._source._map,u.hasLayer(this)||u.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(u){return this._map?this.close():(arguments.length?this._source=u:u=this._source,this._prepareOpen(),this.openOn(u._map)),this},onAdd:function(u){this._zoomAnimated=u._zoomAnimated,this._container||this._initLayout(),u._fadeAnimated&&xn(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),u._fadeAnimated&&xn(this._container,1),this.bringToFront(),this.options.interactive&&(le(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(u){u._fadeAnimated?(xn(this._container,0),this._removeTimeout=setTimeout(g(Ye,void 0,this._container),200)):Ye(this._container),this.options.interactive&&(fn(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(u){return this._latlng=Nt(u),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(u){return this._content=u,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var u={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(u.zoomanim=this._animateZoom),u},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&Ot(this._container),this},bringToBack:function(){return this._map&&re(this._container),this},_prepareOpen:function(u){var d=this._source;if(!d._map)return!1;if(d instanceof Rr){d=null;var v=this._source._layers;for(var E in v)if(v[E]._map){d=v[E];break}if(!d)return!1;this._source=d}if(!u)if(d.getCenter)u=d.getCenter();else if(d.getLatLng)u=d.getLatLng();else if(d.getBounds)u=d.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(u),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var u=this._contentNode,d=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof d=="string")u.innerHTML=d;else{for(;u.hasChildNodes();)u.removeChild(u.firstChild);u.appendChild(d)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var u=this._map.latLngToLayerPoint(this._latlng),d=J(this.options.offset),v=this._getAnchor();this._zoomAnimated?Me(this._container,u.add(v)):d=d.add(u).add(v);var E=this._containerBottom=-d.y,T=this._containerLeft=-Math.round(this._containerWidth/2)+d.x;this._container.style.bottom=E+"px",this._container.style.left=T+"px"}},_getAnchor:function(){return[0,0]}});Le.include({_initOverlay:function(u,d,v,E){var T=d;return T instanceof u||(T=new u(E).setContent(d)),v&&T.setLatLng(v),T}}),sr.include({_initOverlay:function(u,d,v,E){var T=v;return T instanceof u?(O(T,E),T._source=this):(T=d&&!E?d:new u(E,this),T.setContent(v)),T}});var Ms=Hn.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(u){return u=arguments.length?u:this._source._map,!u.hasLayer(this)&&u._popup&&u._popup.options.autoClose&&u.removeLayer(u._popup),u._popup=this,Hn.prototype.openOn.call(this,u)},onAdd:function(u){Hn.prototype.onAdd.call(this,u),u.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof kr||this._source.on("preclick",Dr))},onRemove:function(u){Hn.prototype.onRemove.call(this,u),u.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof kr||this._source.off("preclick",Dr))},getEvents:function(){var u=Hn.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(u.preclick=this.close),this.options.keepInView&&(u.moveend=this._adjustPan),u},_initLayout:function(){var u="leaflet-popup",d=this._container=ie("div",u+" "+(this.options.className||"")+" leaflet-zoom-animated"),v=this._wrapper=ie("div",u+"-content-wrapper",d);if(this._contentNode=ie("div",u+"-content",v),Qi(d),Fn(this._contentNode),me(d,"contextmenu",Dr),this._tipContainer=ie("div",u+"-tip-container",d),this._tip=ie("div",u+"-tip",this._tipContainer),this.options.closeButton){var E=this._closeButton=ie("a",u+"-close-button",d);E.setAttribute("role","button"),E.setAttribute("aria-label","Close popup"),E.href="#close",E.innerHTML='<span aria-hidden="true">&#215;</span>',me(E,"click",function(T){Mn(T),this.close()},this)}},_updateLayout:function(){var u=this._contentNode,d=u.style;d.width="",d.whiteSpace="nowrap";var v=u.offsetWidth;v=Math.min(v,this.options.maxWidth),v=Math.max(v,this.options.minWidth),d.width=v+1+"px",d.whiteSpace="",d.height="";var E=u.offsetHeight,T=this.options.maxHeight,B="leaflet-popup-scrolled";T&&E>T?(d.height=T+"px",le(u,B)):fn(u,B),this._containerWidth=this._container.offsetWidth},_animateZoom:function(u){var d=this._map._latLngToNewLayerPoint(this._latlng,u.zoom,u.center),v=this._getAnchor();Me(this._container,d.add(v))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var u=this._map,d=parseInt(Se(this._container,"marginBottom"),10)||0,v=this._container.offsetHeight+d,E=this._containerWidth,T=new D(this._containerLeft,-v-this._containerBottom);T._add(Mr(this._container));var B=u.layerPointToContainerPoint(T),tt=J(this.options.autoPanPadding),ht=J(this.options.autoPanPaddingTopLeft||tt),dt=J(this.options.autoPanPaddingBottomRight||tt),Lt=u.getSize(),zt=0,se=0;B.x+E+dt.x>Lt.x&&(zt=B.x+E-Lt.x+dt.x),B.x-zt-ht.x<0&&(zt=B.x-ht.x),B.y+v+dt.y>Lt.y&&(se=B.y+v-Lt.y+dt.y),B.y-se-ht.y<0&&(se=B.y-ht.y),(zt||se)&&(this.options.keepInView&&(this._autopanning=!0),u.fire("autopanstart").panBy([zt,se]))}},_getAnchor:function(){return J(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Ju=function(u,d){return new Ms(u,d)};Le.mergeOptions({closePopupOnClick:!0}),Le.include({openPopup:function(u,d,v){return this._initOverlay(Ms,u,d,v).openOn(this),this},closePopup:function(u){return u=arguments.length?u:this._popup,u&&u.close(),this}}),sr.include({bindPopup:function(u,d){return this._popup=this._initOverlay(Ms,this._popup,u,d),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(u){return this._popup&&(this instanceof Rr||(this._popup._source=this),this._popup._prepareOpen(u||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(u){return this._popup&&this._popup.setContent(u),this},getPopup:function(){return this._popup},_openPopup:function(u){if(!(!this._popup||!this._map)){Ti(u);var d=u.layer||u.target;if(this._popup._source===d&&!(d instanceof kr)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(u.latlng);return}this._popup._source=d,this.openPopup(u.latlng)}},_movePopup:function(u){this._popup.setLatLng(u.latlng)},_onKeyPress:function(u){u.originalEvent.keyCode===13&&this._openPopup(u)}});var oo=Hn.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(u){Hn.prototype.onAdd.call(this,u),this.setOpacity(this.options.opacity),u.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(u){Hn.prototype.onRemove.call(this,u),u.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var u=Hn.prototype.getEvents.call(this);return this.options.permanent||(u.preclick=this.close),u},_initLayout:function(){var u="leaflet-tooltip",d=u+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=ie("div",d),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+y(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(u){var d,v,E=this._map,T=this._container,B=E.latLngToContainerPoint(E.getCenter()),tt=E.layerPointToContainerPoint(u),ht=this.options.direction,dt=T.offsetWidth,Lt=T.offsetHeight,zt=J(this.options.offset),se=this._getAnchor();ht==="top"?(d=dt/2,v=Lt):ht==="bottom"?(d=dt/2,v=0):ht==="center"?(d=dt/2,v=Lt/2):ht==="right"?(d=0,v=Lt/2):ht==="left"?(d=dt,v=Lt/2):tt.x<B.x?(ht="right",d=0,v=Lt/2):(ht="left",d=dt+(zt.x+se.x)*2,v=Lt/2),u=u.subtract(J(d,v,!0)).add(zt).add(se),fn(T,"leaflet-tooltip-right"),fn(T,"leaflet-tooltip-left"),fn(T,"leaflet-tooltip-top"),fn(T,"leaflet-tooltip-bottom"),le(T,"leaflet-tooltip-"+ht),Me(T,u)},_updatePosition:function(){var u=this._map.latLngToLayerPoint(this._latlng);this._setPosition(u)},setOpacity:function(u){this.options.opacity=u,this._container&&xn(this._container,u)},_animateZoom:function(u){var d=this._map._latLngToNewLayerPoint(this._latlng,u.zoom,u.center);this._setPosition(d)},_getAnchor:function(){return J(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Qu=function(u,d){return new oo(u,d)};Le.include({openTooltip:function(u,d,v){return this._initOverlay(oo,u,d,v).openOn(this),this},closeTooltip:function(u){return u.close(),this}}),sr.include({bindTooltip:function(u,d){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(oo,this._tooltip,u,d),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(u){if(!(!u&&this._tooltipHandlersAdded)){var d=u?"off":"on",v={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?v.add=this._openTooltip:(v.mouseover=this._openTooltip,v.mouseout=this.closeTooltip,v.click=this._openTooltip,this._map?this._addFocusListeners():v.add=this._addFocusListeners),this._tooltip.options.sticky&&(v.mousemove=this._moveTooltip),this[d](v),this._tooltipHandlersAdded=!u}},openTooltip:function(u){return this._tooltip&&(this instanceof Rr||(this._tooltip._source=this),this._tooltip._prepareOpen(u)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(u){return this._tooltip&&this._tooltip.setContent(u),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(u){var d=typeof u.getElement=="function"&&u.getElement();d&&(me(d,"focus",function(){this._tooltip._source=u,this.openTooltip()},this),me(d,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(u){var d=typeof u.getElement=="function"&&u.getElement();d&&d.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(u){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var d=this;this._map.once("moveend",function(){d._openOnceFlag=!1,d._openTooltip(u)});return}this._tooltip._source=u.layer||u.target,this.openTooltip(this._tooltip.options.sticky?u.latlng:void 0)}},_moveTooltip:function(u){var d=u.latlng,v,E;this._tooltip.options.sticky&&u.originalEvent&&(v=this._map.mouseEventToContainerPoint(u.originalEvent),E=this._map.containerPointToLayerPoint(v),d=this._map.layerPointToLatLng(E)),this._tooltip.setLatLng(d)}});var As=ji.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(u){var d=u&&u.tagName==="DIV"?u:document.createElement("div"),v=this.options;if(v.html instanceof Element?(Hr(d),d.appendChild(v.html)):d.innerHTML=v.html!==!1?v.html:"",v.bgPos){var E=J(v.bgPos);d.style.backgroundPosition=-E.x+"px "+-E.y+"px"}return this._setIconStyles(d,"icon"),d},createShadow:function(){return null}});function $u(u){return new As(u)}ji.Default=Un;var vi=sr.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Ut.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(u){O(this,u)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(u){u._addZoomLimit(this)},onRemove:function(u){this._removeAllTiles(),Ye(this._container),u._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(Ot(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(re(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(u){return this.options.opacity=u,this._updateOpacity(),this},setZIndex:function(u){return this.options.zIndex=u,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var u=this._clampZoom(this._map.getZoom());u!==this._tileZoom&&(this._tileZoom=u,this._updateLevels()),this._update()}return this},getEvents:function(){var u={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=C(this._onMoveEnd,this.options.updateInterval,this)),u.move=this._onMove),this._zoomAnimated&&(u.zoomanim=this._animateZoom),u},createTile:function(){return document.createElement("div")},getTileSize:function(){var u=this.options.tileSize;return u instanceof D?u:new D(u,u)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(u){for(var d=this.getPane().children,v=-u(-1/0,1/0),E=0,T=d.length,B;E<T;E++)B=d[E].style.zIndex,d[E]!==this._container&&B&&(v=u(v,+B));isFinite(v)&&(this.options.zIndex=v+u(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Ut.ielt9){xn(this._container,this.options.opacity);var u=+new Date,d=!1,v=!1;for(var E in this._tiles){var T=this._tiles[E];if(!(!T.current||!T.loaded)){var B=Math.min(1,(u-T.loaded)/200);xn(T.el,B),B<1?d=!0:(T.active?v=!0:this._onOpaqueTile(T),T.active=!0)}}v&&!this._noPrune&&this._pruneTiles(),d&&(M(this._fadeFrame),this._fadeFrame=Y(this._updateOpacity,this))}},_onOpaqueTile:b,_initContainer:function(){this._container||(this._container=ie("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var u=this._tileZoom,d=this.options.maxZoom;if(u!==void 0){for(var v in this._levels)v=Number(v),this._levels[v].el.children.length||v===u?(this._levels[v].el.style.zIndex=d-Math.abs(u-v),this._onUpdateLevel(v)):(Ye(this._levels[v].el),this._removeTilesAtZoom(v),this._onRemoveLevel(v),delete this._levels[v]);var E=this._levels[u],T=this._map;return E||(E=this._levels[u]={},E.el=ie("div","leaflet-tile-container leaflet-zoom-animated",this._container),E.el.style.zIndex=d,E.origin=T.project(T.unproject(T.getPixelOrigin()),u).round(),E.zoom=u,this._setZoomTransform(E,T.getCenter(),T.getZoom()),b(E.el.offsetWidth),this._onCreateLevel(E)),this._level=E,E}},_onUpdateLevel:b,_onRemoveLevel:b,_onCreateLevel:b,_pruneTiles:function(){if(this._map){var u,d,v=this._map.getZoom();if(v>this.options.maxZoom||v<this.options.minZoom){this._removeAllTiles();return}for(u in this._tiles)d=this._tiles[u],d.retain=d.current;for(u in this._tiles)if(d=this._tiles[u],d.current&&!d.active){var E=d.coords;this._retainParent(E.x,E.y,E.z,E.z-5)||this._retainChildren(E.x,E.y,E.z,E.z+2)}for(u in this._tiles)this._tiles[u].retain||this._removeTile(u)}},_removeTilesAtZoom:function(u){for(var d in this._tiles)this._tiles[d].coords.z===u&&this._removeTile(d)},_removeAllTiles:function(){for(var u in this._tiles)this._removeTile(u)},_invalidateAll:function(){for(var u in this._levels)Ye(this._levels[u].el),this._onRemoveLevel(Number(u)),delete this._levels[u];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(u,d,v,E){var T=Math.floor(u/2),B=Math.floor(d/2),tt=v-1,ht=new D(+T,+B);ht.z=+tt;var dt=this._tileCoordsToKey(ht),Lt=this._tiles[dt];return Lt&&Lt.active?(Lt.retain=!0,!0):(Lt&&Lt.loaded&&(Lt.retain=!0),tt>E?this._retainParent(T,B,tt,E):!1)},_retainChildren:function(u,d,v,E){for(var T=2*u;T<2*u+2;T++)for(var B=2*d;B<2*d+2;B++){var tt=new D(T,B);tt.z=v+1;var ht=this._tileCoordsToKey(tt),dt=this._tiles[ht];if(dt&&dt.active){dt.retain=!0;continue}else dt&&dt.loaded&&(dt.retain=!0);v+1<E&&this._retainChildren(T,B,v+1,E)}},_resetView:function(u){var d=u&&(u.pinch||u.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),d,d)},_animateZoom:function(u){this._setView(u.center,u.zoom,!0,u.noUpdate)},_clampZoom:function(u){var d=this.options;return d.minNativeZoom!==void 0&&u<d.minNativeZoom?d.minNativeZoom:d.maxNativeZoom!==void 0&&d.maxNativeZoom<u?d.maxNativeZoom:u},_setView:function(u,d,v,E){var T=Math.round(d);this.options.maxZoom!==void 0&&T>this.options.maxZoom||this.options.minZoom!==void 0&&T<this.options.minZoom?T=void 0:T=this._clampZoom(T);var B=this.options.updateWhenZooming&&T!==this._tileZoom;(!E||B)&&(this._tileZoom=T,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),T!==void 0&&this._update(u),v||this._pruneTiles(),this._noPrune=!!v),this._setZoomTransforms(u,d)},_setZoomTransforms:function(u,d){for(var v in this._levels)this._setZoomTransform(this._levels[v],u,d)},_setZoomTransform:function(u,d,v){var E=this._map.getZoomScale(v,u.zoom),T=u.origin.multiplyBy(E).subtract(this._map._getNewPixelOrigin(d,v)).round();Ut.any3d?yr(u.el,T,E):Me(u.el,T)},_resetGrid:function(){var u=this._map,d=u.options.crs,v=this._tileSize=this.getTileSize(),E=this._tileZoom,T=this._map.getPixelWorldBounds(this._tileZoom);T&&(this._globalTileRange=this._pxBoundsToTileRange(T)),this._wrapX=d.wrapLng&&!this.options.noWrap&&[Math.floor(u.project([0,d.wrapLng[0]],E).x/v.x),Math.ceil(u.project([0,d.wrapLng[1]],E).x/v.y)],this._wrapY=d.wrapLat&&!this.options.noWrap&&[Math.floor(u.project([d.wrapLat[0],0],E).y/v.x),Math.ceil(u.project([d.wrapLat[1],0],E).y/v.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(u){var d=this._map,v=d._animatingZoom?Math.max(d._animateToZoom,d.getZoom()):d.getZoom(),E=d.getZoomScale(v,this._tileZoom),T=d.project(u,this._tileZoom).floor(),B=d.getSize().divideBy(E*2);return new et(T.subtract(B),T.add(B))},_update:function(u){var d=this._map;if(d){var v=this._clampZoom(d.getZoom());if(u===void 0&&(u=d.getCenter()),this._tileZoom!==void 0){var E=this._getTiledPixelBounds(u),T=this._pxBoundsToTileRange(E),B=T.getCenter(),tt=[],ht=this.options.keepBuffer,dt=new et(T.getBottomLeft().subtract([ht,-ht]),T.getTopRight().add([ht,-ht]));if(!(isFinite(T.min.x)&&isFinite(T.min.y)&&isFinite(T.max.x)&&isFinite(T.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var Lt in this._tiles){var zt=this._tiles[Lt].coords;(zt.z!==this._tileZoom||!dt.contains(new D(zt.x,zt.y)))&&(this._tiles[Lt].current=!1)}if(Math.abs(v-this._tileZoom)>1){this._setView(u,v);return}for(var se=T.min.y;se<=T.max.y;se++)for(var Ee=T.min.x;Ee<=T.max.x;Ee++){var Ln=new D(Ee,se);if(Ln.z=this._tileZoom,!!this._isValidTile(Ln)){var En=this._tiles[this._tileCoordsToKey(Ln)];En?En.current=!0:tt.push(Ln)}}if(tt.sort(function(Gn,_i){return Gn.distanceTo(B)-_i.distanceTo(B)}),tt.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var ar=document.createDocumentFragment();for(Ee=0;Ee<tt.length;Ee++)this._addTile(tt[Ee],ar);this._level.el.appendChild(ar)}}}},_isValidTile:function(u){var d=this._map.options.crs;if(!d.infinite){var v=this._globalTileRange;if(!d.wrapLng&&(u.x<v.min.x||u.x>v.max.x)||!d.wrapLat&&(u.y<v.min.y||u.y>v.max.y))return!1}if(!this.options.bounds)return!0;var E=this._tileCoordsToBounds(u);return bt(this.options.bounds).overlaps(E)},_keyToBounds:function(u){return this._tileCoordsToBounds(this._keyToTileCoords(u))},_tileCoordsToNwSe:function(u){var d=this._map,v=this.getTileSize(),E=u.scaleBy(v),T=E.add(v),B=d.unproject(E,u.z),tt=d.unproject(T,u.z);return[B,tt]},_tileCoordsToBounds:function(u){var d=this._tileCoordsToNwSe(u),v=new ut(d[0],d[1]);return this.options.noWrap||(v=this._map.wrapLatLngBounds(v)),v},_tileCoordsToKey:function(u){return u.x+":"+u.y+":"+u.z},_keyToTileCoords:function(u){var d=u.split(":"),v=new D(+d[0],+d[1]);return v.z=+d[2],v},_removeTile:function(u){var d=this._tiles[u];d&&(Ye(d.el),delete this._tiles[u],this.fire("tileunload",{tile:d.el,coords:this._keyToTileCoords(u)}))},_initTile:function(u){le(u,"leaflet-tile");var d=this.getTileSize();u.style.width=d.x+"px",u.style.height=d.y+"px",u.onselectstart=b,u.onmousemove=b,Ut.ielt9&&this.options.opacity<1&&xn(u,this.options.opacity)},_addTile:function(u,d){var v=this._getTilePos(u),E=this._tileCoordsToKey(u),T=this.createTile(this._wrapCoords(u),g(this._tileReady,this,u));this._initTile(T),this.createTile.length<2&&Y(g(this._tileReady,this,u,null,T)),Me(T,v),this._tiles[E]={el:T,coords:u,current:!0},d.appendChild(T),this.fire("tileloadstart",{tile:T,coords:u})},_tileReady:function(u,d,v){d&&this.fire("tileerror",{error:d,tile:v,coords:u});var E=this._tileCoordsToKey(u);v=this._tiles[E],v&&(v.loaded=+new Date,this._map._fadeAnimated?(xn(v.el,0),M(this._fadeFrame),this._fadeFrame=Y(this._updateOpacity,this)):(v.active=!0,this._pruneTiles()),d||(le(v.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:v.el,coords:u})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Ut.ielt9||!this._map._fadeAnimated?Y(this._pruneTiles,this):setTimeout(g(this._pruneTiles,this),250)))},_getTilePos:function(u){return u.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(u){var d=new D(this._wrapX?_(u.x,this._wrapX):u.x,this._wrapY?_(u.y,this._wrapY):u.y);return d.z=u.z,d},_pxBoundsToTileRange:function(u){var d=this.getTileSize();return new et(u.min.unscaleBy(d).floor(),u.max.unscaleBy(d).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var u in this._tiles)if(!this._tiles[u].loaded)return!1;return!0}});function ao(u){return new vi(u)}var yi=vi.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(u,d){this._url=u,d=O(this,d),d.detectRetina&&Ut.retina&&d.maxZoom>0?(d.tileSize=Math.floor(d.tileSize/2),d.zoomReverse?(d.zoomOffset--,d.minZoom=Math.min(d.maxZoom,d.minZoom+1)):(d.zoomOffset++,d.maxZoom=Math.max(d.minZoom,d.maxZoom-1)),d.minZoom=Math.max(0,d.minZoom)):d.zoomReverse?d.minZoom=Math.min(d.maxZoom,d.minZoom):d.maxZoom=Math.max(d.minZoom,d.maxZoom),typeof d.subdomains=="string"&&(d.subdomains=d.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(u,d){return this._url===u&&d===void 0&&(d=!0),this._url=u,d||this.redraw(),this},createTile:function(u,d){var v=document.createElement("img");return me(v,"load",g(this._tileOnLoad,this,d,v)),me(v,"error",g(this._tileOnError,this,d,v)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(v.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(v.referrerPolicy=this.options.referrerPolicy),v.alt="",v.src=this.getTileUrl(u),v},getTileUrl:function(u){var d={r:Ut.retina?"@2x":"",s:this._getSubdomain(u),x:u.x,y:u.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var v=this._globalTileRange.max.y-u.y;this.options.tms&&(d.y=v),d["-y"]=v}return k(this._url,c(d,this.options))},_tileOnLoad:function(u,d){Ut.ielt9?setTimeout(g(u,this,null,d),0):u(null,d)},_tileOnError:function(u,d,v){var E=this.options.errorTileUrl;E&&d.getAttribute("src")!==E&&(d.src=E),u(v,d)},_onTileRemove:function(u){u.tile.onload=null},_getZoomForUrl:function(){var u=this._tileZoom,d=this.options.maxZoom,v=this.options.zoomReverse,E=this.options.zoomOffset;return v&&(u=d-u),u+E},_getSubdomain:function(u){var d=Math.abs(u.x+u.y)%this.options.subdomains.length;return this.options.subdomains[d]},_abortLoading:function(){var u,d;for(u in this._tiles)if(this._tiles[u].coords.z!==this._tileZoom&&(d=this._tiles[u].el,d.onload=b,d.onerror=b,!d.complete)){d.src=j;var v=this._tiles[u].coords;Ye(d),delete this._tiles[u],this.fire("tileabort",{tile:d,coords:v})}},_removeTile:function(u){var d=this._tiles[u];if(d)return d.el.setAttribute("src",j),vi.prototype._removeTile.call(this,u)},_tileReady:function(u,d,v){if(!(!this._map||v&&v.getAttribute("src")===j))return vi.prototype._tileReady.call(this,u,d,v)}});function Oe(u,d){return new yi(u,d)}var Bo=yi.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(u,d){this._url=u;var v=c({},this.defaultWmsParams);for(var E in d)E in this.options||(v[E]=d[E]);d=O(this,d);var T=d.detectRetina&&Ut.retina?2:1,B=this.getTileSize();v.width=B.x*T,v.height=B.y*T,this.wmsParams=v},onAdd:function(u){this._crs=this.options.crs||u.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var d=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[d]=this._crs.code,yi.prototype.onAdd.call(this,u)},getTileUrl:function(u){var d=this._tileCoordsToNwSe(u),v=this._crs,E=st(v.project(d[0]),v.project(d[1])),T=E.min,B=E.max,tt=(this._wmsVersion>=1.3&&this._crs===ro?[T.y,T.x,B.y,B.x]:[T.x,T.y,B.x,B.y]).join(","),ht=yi.prototype.getTileUrl.call(this,u);return ht+q(this.wmsParams,ht,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+tt},setParams:function(u,d){return c(this.wmsParams,u),d||this.redraw(),this}});function zo(u,d){return new Bo(u,d)}yi.WMS=Bo,Oe.wms=zo;var zr=sr.extend({options:{padding:.1},initialize:function(u){O(this,u),y(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),le(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var u={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(u.zoomanim=this._onAnimZoom),u},_onAnimZoom:function(u){this._updateTransform(u.center,u.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(u,d){var v=this._map.getZoomScale(d,this._zoom),E=this._map.getSize().multiplyBy(.5+this.options.padding),T=this._map.project(this._center,d),B=E.multiplyBy(-v).add(T).subtract(this._map._getNewPixelOrigin(u,d));Ut.any3d?yr(this._container,B,v):Me(this._container,B)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var u in this._layers)this._layers[u]._reset()},_onZoomEnd:function(){for(var u in this._layers)this._layers[u]._project()},_updatePaths:function(){for(var u in this._layers)this._layers[u]._update()},_update:function(){var u=this.options.padding,d=this._map.getSize(),v=this._map.containerPointToLayerPoint(d.multiplyBy(-u)).round();this._bounds=new et(v,v.add(d.multiplyBy(1+u*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Nn=zr.extend({options:{tolerance:0},getEvents:function(){var u=zr.prototype.getEvents.call(this);return u.viewprereset=this._onViewPreReset,u},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){zr.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var u=this._container=document.createElement("canvas");me(u,"mousemove",this._onMouseMove,this),me(u,"click dblclick mousedown mouseup contextmenu",this._onClick,this),me(u,"mouseout",this._handleMouseOut,this),u._leaflet_disable_events=!0,this._ctx=u.getContext("2d")},_destroyContainer:function(){M(this._redrawRequest),delete this._ctx,Ye(this._container),Ce(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var u;this._redrawBounds=null;for(var d in this._layers)u=this._layers[d],u._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){zr.prototype._update.call(this);var u=this._bounds,d=this._container,v=u.getSize(),E=Ut.retina?2:1;Me(d,u.min),d.width=E*v.x,d.height=E*v.y,d.style.width=v.x+"px",d.style.height=v.y+"px",Ut.retina&&this._ctx.scale(2,2),this._ctx.translate(-u.min.x,-u.min.y),this.fire("update")}},_reset:function(){zr.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(u){this._updateDashArray(u),this._layers[y(u)]=u;var d=u._order={layer:u,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=d),this._drawLast=d,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(u){this._requestRedraw(u)},_removePath:function(u){var d=u._order,v=d.next,E=d.prev;v?v.prev=E:this._drawLast=E,E?E.next=v:this._drawFirst=v,delete u._order,delete this._layers[y(u)],this._requestRedraw(u)},_updatePath:function(u){this._extendRedrawBounds(u),u._project(),u._update(),this._requestRedraw(u)},_updateStyle:function(u){this._updateDashArray(u),this._requestRedraw(u)},_updateDashArray:function(u){if(typeof u.options.dashArray=="string"){var d=u.options.dashArray.split(/[, ]+/),v=[],E,T;for(T=0;T<d.length;T++){if(E=Number(d[T]),isNaN(E))return;v.push(E)}u.options._dashArray=v}else u.options._dashArray=u.options.dashArray},_requestRedraw:function(u){this._map&&(this._extendRedrawBounds(u),this._redrawRequest=this._redrawRequest||Y(this._redraw,this))},_extendRedrawBounds:function(u){if(u._pxBounds){var d=(u.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new et,this._redrawBounds.extend(u._pxBounds.min.subtract([d,d])),this._redrawBounds.extend(u._pxBounds.max.add([d,d]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var u=this._redrawBounds;if(u){var d=u.getSize();this._ctx.clearRect(u.min.x,u.min.y,d.x,d.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var u,d=this._redrawBounds;if(this._ctx.save(),d){var v=d.getSize();this._ctx.beginPath(),this._ctx.rect(d.min.x,d.min.y,v.x,v.y),this._ctx.clip()}this._drawing=!0;for(var E=this._drawFirst;E;E=E.next)u=E.layer,(!d||u._pxBounds&&u._pxBounds.intersects(d))&&u._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(u,d){if(this._drawing){var v,E,T,B,tt=u._parts,ht=tt.length,dt=this._ctx;if(ht){for(dt.beginPath(),v=0;v<ht;v++){for(E=0,T=tt[v].length;E<T;E++)B=tt[v][E],dt[E?"lineTo":"moveTo"](B.x,B.y);d&&dt.closePath()}this._fillStroke(dt,u)}}},_updateCircle:function(u){if(!(!this._drawing||u._empty())){var d=u._point,v=this._ctx,E=Math.max(Math.round(u._radius),1),T=(Math.max(Math.round(u._radiusY),1)||E)/E;T!==1&&(v.save(),v.scale(1,T)),v.beginPath(),v.arc(d.x,d.y/T,E,0,Math.PI*2,!1),T!==1&&v.restore(),this._fillStroke(v,u)}},_fillStroke:function(u,d){var v=d.options;v.fill&&(u.globalAlpha=v.fillOpacity,u.fillStyle=v.fillColor||v.color,u.fill(v.fillRule||"evenodd")),v.stroke&&v.weight!==0&&(u.setLineDash&&u.setLineDash(d.options&&d.options._dashArray||[]),u.globalAlpha=v.opacity,u.lineWidth=v.weight,u.strokeStyle=v.color,u.lineCap=v.lineCap,u.lineJoin=v.lineJoin,u.stroke())},_onClick:function(u){for(var d=this._map.mouseEventToLayerPoint(u),v,E,T=this._drawFirst;T;T=T.next)v=T.layer,v.options.interactive&&v._containsPoint(d)&&(!(u.type==="click"||u.type==="preclick")||!this._map._draggableMoved(v))&&(E=v);this._fireEvent(E?[E]:!1,u)},_onMouseMove:function(u){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var d=this._map.mouseEventToLayerPoint(u);this._handleMouseHover(u,d)}},_handleMouseOut:function(u){var d=this._hoveredLayer;d&&(fn(this._container,"leaflet-interactive"),this._fireEvent([d],u,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(u,d){if(!this._mouseHoverThrottled){for(var v,E,T=this._drawFirst;T;T=T.next)v=T.layer,v.options.interactive&&v._containsPoint(d)&&(E=v);E!==this._hoveredLayer&&(this._handleMouseOut(u),E&&(le(this._container,"leaflet-interactive"),this._fireEvent([E],u,"mouseover"),this._hoveredLayer=E)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,u),this._mouseHoverThrottled=!0,setTimeout(g(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(u,d,v){this._map._fireDOMEvent(d,v||d.type,u)},_bringToFront:function(u){var d=u._order;if(d){var v=d.next,E=d.prev;if(v)v.prev=E;else return;E?E.next=v:v&&(this._drawFirst=v),d.prev=this._drawLast,this._drawLast.next=d,d.next=null,this._drawLast=d,this._requestRedraw(u)}},_bringToBack:function(u){var d=u._order;if(d){var v=d.next,E=d.prev;if(E)E.next=v;else return;v?v.prev=E:E&&(this._drawLast=E),d.prev=null,d.next=this._drawFirst,this._drawFirst.prev=d,this._drawFirst=d,this._requestRedraw(u)}}});function Ds(u){return Ut.canvas?new Nn(u):null}var $n=(function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(u){return document.createElement("<lvml:"+u+' class="lvml">')}}catch{}return function(u){return document.createElement("<"+u+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}})(),uo={_initContainer:function(){this._container=ie("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(zr.prototype._update.call(this),this.fire("update"))},_initPath:function(u){var d=u._container=$n("shape");le(d,"leaflet-vml-shape "+(this.options.className||"")),d.coordsize="1 1",u._path=$n("path"),d.appendChild(u._path),this._updateStyle(u),this._layers[y(u)]=u},_addPath:function(u){var d=u._container;this._container.appendChild(d),u.options.interactive&&u.addInteractiveTarget(d)},_removePath:function(u){var d=u._container;Ye(d),u.removeInteractiveTarget(d),delete this._layers[y(u)]},_updateStyle:function(u){var d=u._stroke,v=u._fill,E=u.options,T=u._container;T.stroked=!!E.stroke,T.filled=!!E.fill,E.stroke?(d||(d=u._stroke=$n("stroke")),T.appendChild(d),d.weight=E.weight+"px",d.color=E.color,d.opacity=E.opacity,E.dashArray?d.dashStyle=A(E.dashArray)?E.dashArray.join(" "):E.dashArray.replace(/( *, *)/g," "):d.dashStyle="",d.endcap=E.lineCap.replace("butt","flat"),d.joinstyle=E.lineJoin):d&&(T.removeChild(d),u._stroke=null),E.fill?(v||(v=u._fill=$n("fill")),T.appendChild(v),v.color=E.fillColor||E.color,v.opacity=E.fillOpacity):v&&(T.removeChild(v),u._fill=null)},_updateCircle:function(u){var d=u._point.round(),v=Math.round(u._radius),E=Math.round(u._radiusY||v);this._setPath(u,u._empty()?"M0 0":"AL "+d.x+","+d.y+" "+v+","+E+" 0,"+65535*360)},_setPath:function(u,d){u._path.v=d},_bringToFront:function(u){Ot(u._container)},_bringToBack:function(u){re(u._container)}},os=Ut.vml?$n:Kt,Bi=zr.extend({_initContainer:function(){this._container=os("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=os("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Ye(this._container),Ce(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){zr.prototype._update.call(this);var u=this._bounds,d=u.getSize(),v=this._container;(!this._svgSize||!this._svgSize.equals(d))&&(this._svgSize=d,v.setAttribute("width",d.x),v.setAttribute("height",d.y)),Me(v,u.min),v.setAttribute("viewBox",[u.min.x,u.min.y,d.x,d.y].join(" ")),this.fire("update")}},_initPath:function(u){var d=u._path=os("path");u.options.className&&le(d,u.options.className),u.options.interactive&&le(d,"leaflet-interactive"),this._updateStyle(u),this._layers[y(u)]=u},_addPath:function(u){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(u._path),u.addInteractiveTarget(u._path)},_removePath:function(u){Ye(u._path),u.removeInteractiveTarget(u._path),delete this._layers[y(u)]},_updatePath:function(u){u._project(),u._update()},_updateStyle:function(u){var d=u._path,v=u.options;d&&(v.stroke?(d.setAttribute("stroke",v.color),d.setAttribute("stroke-opacity",v.opacity),d.setAttribute("stroke-width",v.weight),d.setAttribute("stroke-linecap",v.lineCap),d.setAttribute("stroke-linejoin",v.lineJoin),v.dashArray?d.setAttribute("stroke-dasharray",v.dashArray):d.removeAttribute("stroke-dasharray"),v.dashOffset?d.setAttribute("stroke-dashoffset",v.dashOffset):d.removeAttribute("stroke-dashoffset")):d.setAttribute("stroke","none"),v.fill?(d.setAttribute("fill",v.fillColor||v.color),d.setAttribute("fill-opacity",v.fillOpacity),d.setAttribute("fill-rule",v.fillRule||"evenodd")):d.setAttribute("fill","none"))},_updatePoly:function(u,d){this._setPath(u,Ft(u._parts,d))},_updateCircle:function(u){var d=u._point,v=Math.max(Math.round(u._radius),1),E=Math.max(Math.round(u._radiusY),1)||v,T="a"+v+","+E+" 0 1,0 ",B=u._empty()?"M0 0":"M"+(d.x-v)+","+d.y+T+v*2+",0 "+T+-v*2+",0 ";this._setPath(u,B)},_setPath:function(u,d){u._path.setAttribute("d",d)},_bringToFront:function(u){Ot(u._path)},_bringToBack:function(u){re(u._path)}});Ut.vml&&Bi.include(uo);function Go(u){return Ut.svg||Ut.vml?new Bi(u):null}Le.include({getRenderer:function(u){var d=u.options.renderer||this._getPaneRenderer(u.options.pane)||this.options.renderer||this._renderer;return d||(d=this._renderer=this._createRenderer()),this.hasLayer(d)||this.addLayer(d),d},_getPaneRenderer:function(u){if(u==="overlayPane"||u===void 0)return!1;var d=this._paneRenderers[u];return d===void 0&&(d=this._createRenderer({pane:u}),this._paneRenderers[u]=d),d},_createRenderer:function(u){return this.options.preferCanvas&&Ds(u)||Go(u)}});var Rs=gi.extend({initialize:function(u,d){gi.prototype.initialize.call(this,this._boundsToLatLngs(u),d)},setBounds:function(u){return this.setLatLngs(this._boundsToLatLngs(u))},_boundsToLatLngs:function(u){return u=bt(u),[u.getSouthWest(),u.getNorthWest(),u.getNorthEast(),u.getSouthEast()]}});function zi(u,d){return new Rs(u,d)}Bi.create=os,Bi.pointsToPath=Ft,we.geometryToLayer=Or,we.coordsToLatLng=Wr,we.coordsToLatLngs=Fi,we.latLngToCoords=Nr,we.latLngsToCoords=zn,we.getFeature=Fr,we.asFeature=is,Le.mergeOptions({boxZoom:!0});var js=gr.extend({initialize:function(u){this._map=u,this._container=u._container,this._pane=u._panes.overlayPane,this._resetStateTimeout=0,u.on("unload",this._destroy,this)},addHooks:function(){me(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Ce(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Ye(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(u){if(!u.shiftKey||u.which!==1&&u.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),kn(),si(),this._startPoint=this._map.mouseEventToContainerPoint(u),me(document,{contextmenu:Ti,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(u){this._moved||(this._moved=!0,this._box=ie("div","leaflet-zoom-box",this._container),le(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(u);var d=new et(this._point,this._startPoint),v=d.getSize();Me(this._box,d.min),this._box.style.width=v.x+"px",this._box.style.height=v.y+"px"},_finish:function(){this._moved&&(Ye(this._box),fn(this._container,"leaflet-crosshair")),ri(),oi(),Ce(document,{contextmenu:Ti,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(u){if(!(u.which!==1&&u.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(g(this._resetState,this),0);var d=new ut(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(d).fire("boxzoomend",{boxZoomBounds:d})}},_onKeyDown:function(u){u.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Le.addInitHook("addHandler","boxZoom",js),Le.mergeOptions({doubleClickZoom:!0});var as=gr.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(u){var d=this._map,v=d.getZoom(),E=d.options.zoomDelta,T=u.originalEvent.shiftKey?v-E:v+E;d.options.doubleClickZoom==="center"?d.setZoom(T):d.setZoomAround(u.containerPoint,T)}});Le.addInitHook("addHandler","doubleClickZoom",as),Le.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Ci=gr.extend({addHooks:function(){if(!this._draggable){var u=this._map;this._draggable=new Vn(u._mapPane,u._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),u.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),u.on("zoomend",this._onZoomEnd,this),u.whenReady(this._onZoomEnd,this))}le(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){fn(this._map._container,"leaflet-grab"),fn(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var u=this._map;if(u._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var d=bt(this._map.options.maxBounds);this._offsetLimit=st(this._map.latLngToContainerPoint(d.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(d.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;u.fire("movestart").fire("dragstart"),u.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(u){if(this._map.options.inertia){var d=this._lastTime=+new Date,v=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(v),this._times.push(d),this._prunePositions(d)}this._map.fire("move",u).fire("drag",u)},_prunePositions:function(u){for(;this._positions.length>1&&u-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var u=this._map.getSize().divideBy(2),d=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=d.subtract(u).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(u,d){return u-(u-d)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var u=this._draggable._newPos.subtract(this._draggable._startPos),d=this._offsetLimit;u.x<d.min.x&&(u.x=this._viscousLimit(u.x,d.min.x)),u.y<d.min.y&&(u.y=this._viscousLimit(u.y,d.min.y)),u.x>d.max.x&&(u.x=this._viscousLimit(u.x,d.max.x)),u.y>d.max.y&&(u.y=this._viscousLimit(u.y,d.max.y)),this._draggable._newPos=this._draggable._startPos.add(u)}},_onPreDragWrap:function(){var u=this._worldWidth,d=Math.round(u/2),v=this._initialWorldOffset,E=this._draggable._newPos.x,T=(E-d+v)%u+d-v,B=(E+d+v)%u-d-v,tt=Math.abs(T+v)<Math.abs(B+v)?T:B;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=tt},_onDragEnd:function(u){var d=this._map,v=d.options,E=!v.inertia||u.noInertia||this._times.length<2;if(d.fire("dragend",u),E)d.fire("moveend");else{this._prunePositions(+new Date);var T=this._lastPos.subtract(this._positions[0]),B=(this._lastTime-this._times[0])/1e3,tt=v.easeLinearity,ht=T.multiplyBy(tt/B),dt=ht.distanceTo([0,0]),Lt=Math.min(v.inertiaMaxSpeed,dt),zt=ht.multiplyBy(Lt/dt),se=Lt/(v.inertiaDeceleration*tt),Ee=zt.multiplyBy(-se/2).round();!Ee.x&&!Ee.y?d.fire("moveend"):(Ee=d._limitOffset(Ee,d.options.maxBounds),Y(function(){d.panBy(Ee,{duration:se,easeLinearity:tt,noMoveStart:!0,animate:!0})}))}}});Le.addInitHook("addHandler","dragging",Ci),Le.mergeOptions({keyboard:!0,keyboardPanDelta:80});var lo=gr.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(u){this._map=u,this._setPanDelta(u.options.keyboardPanDelta),this._setZoomDelta(u.options.zoomDelta)},addHooks:function(){var u=this._map._container;u.tabIndex<=0&&(u.tabIndex="0"),me(u,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Ce(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var u=document.body,d=document.documentElement,v=u.scrollTop||d.scrollTop,E=u.scrollLeft||d.scrollLeft;this._map._container.focus(),window.scrollTo(E,v)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(u){var d=this._panKeys={},v=this.keyCodes,E,T;for(E=0,T=v.left.length;E<T;E++)d[v.left[E]]=[-1*u,0];for(E=0,T=v.right.length;E<T;E++)d[v.right[E]]=[u,0];for(E=0,T=v.down.length;E<T;E++)d[v.down[E]]=[0,u];for(E=0,T=v.up.length;E<T;E++)d[v.up[E]]=[0,-1*u]},_setZoomDelta:function(u){var d=this._zoomKeys={},v=this.keyCodes,E,T;for(E=0,T=v.zoomIn.length;E<T;E++)d[v.zoomIn[E]]=u;for(E=0,T=v.zoomOut.length;E<T;E++)d[v.zoomOut[E]]=-u},_addHooks:function(){me(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Ce(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(u){if(!(u.altKey||u.ctrlKey||u.metaKey)){var d=u.keyCode,v=this._map,E;if(d in this._panKeys){if(!v._panAnim||!v._panAnim._inProgress)if(E=this._panKeys[d],u.shiftKey&&(E=J(E).multiplyBy(3)),v.options.maxBounds&&(E=v._limitOffset(J(E),v.options.maxBounds)),v.options.worldCopyJump){var T=v.wrapLatLng(v.unproject(v.project(v.getCenter()).add(E)));v.panTo(T)}else v.panBy(E)}else if(d in this._zoomKeys)v.setZoom(v.getZoom()+(u.shiftKey?3:1)*this._zoomKeys[d]);else if(d===27&&v._popup&&v._popup.options.closeOnEscapeKey)v.closePopup();else return;Ti(u)}}});Le.addInitHook("addHandler","keyboard",lo),Le.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var ks=gr.extend({addHooks:function(){me(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Ce(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(u){var d=ko(u),v=this._map.options.wheelDebounceTime;this._delta+=d,this._lastMousePos=this._map.mouseEventToContainerPoint(u),this._startTime||(this._startTime=+new Date);var E=Math.max(v-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(g(this._performZoom,this),E),Ti(u)},_performZoom:function(){var u=this._map,d=u.getZoom(),v=this._map.options.zoomSnap||0;u._stop();var E=this._delta/(this._map.options.wheelPxPerZoomLevel*4),T=4*Math.log(2/(1+Math.exp(-Math.abs(E))))/Math.LN2,B=v?Math.ceil(T/v)*v:T,tt=u._limitZoom(d+(this._delta>0?B:-B))-d;this._delta=0,this._startTime=null,tt&&(u.options.scrollWheelZoom==="center"?u.setZoom(d+tt):u.setZoomAround(this._lastMousePos,d+tt))}});Le.addInitHook("addHandler","scrollWheelZoom",ks);var Ba=600;Le.mergeOptions({tapHold:Ut.touchNative&&Ut.safari&&Ut.mobile,tapTolerance:15});var qo=gr.extend({addHooks:function(){me(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Ce(this._map._container,"touchstart",this._onDown,this)},_onDown:function(u){if(clearTimeout(this._holdTimeout),u.touches.length===1){var d=u.touches[0];this._startPos=this._newPos=new D(d.clientX,d.clientY),this._holdTimeout=setTimeout(g(function(){this._cancel(),this._isTapValid()&&(me(document,"touchend",Mn),me(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",d))},this),Ba),me(document,"touchend touchcancel contextmenu",this._cancel,this),me(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function u(){Ce(document,"touchend",Mn),Ce(document,"touchend touchcancel",u)},_cancel:function(){clearTimeout(this._holdTimeout),Ce(document,"touchend touchcancel contextmenu",this._cancel,this),Ce(document,"touchmove",this._onMove,this)},_onMove:function(u){var d=u.touches[0];this._newPos=new D(d.clientX,d.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(u,d){var v=new MouseEvent(u,{bubbles:!0,cancelable:!0,view:window,screenX:d.screenX,screenY:d.screenY,clientX:d.clientX,clientY:d.clientY});v._simulated=!0,d.target.dispatchEvent(v)}});Le.addInitHook("addHandler","tapHold",qo),Le.mergeOptions({touchZoom:Ut.touch,bounceAtZoomLimits:!0});var Sn=gr.extend({addHooks:function(){le(this._map._container,"leaflet-touch-zoom"),me(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){fn(this._map._container,"leaflet-touch-zoom"),Ce(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(u){var d=this._map;if(!(!u.touches||u.touches.length!==2||d._animatingZoom||this._zooming)){var v=d.mouseEventToContainerPoint(u.touches[0]),E=d.mouseEventToContainerPoint(u.touches[1]);this._centerPoint=d.getSize()._divideBy(2),this._startLatLng=d.containerPointToLatLng(this._centerPoint),d.options.touchZoom!=="center"&&(this._pinchStartLatLng=d.containerPointToLatLng(v.add(E)._divideBy(2))),this._startDist=v.distanceTo(E),this._startZoom=d.getZoom(),this._moved=!1,this._zooming=!0,d._stop(),me(document,"touchmove",this._onTouchMove,this),me(document,"touchend touchcancel",this._onTouchEnd,this),Mn(u)}},_onTouchMove:function(u){if(!(!u.touches||u.touches.length!==2||!this._zooming)){var d=this._map,v=d.mouseEventToContainerPoint(u.touches[0]),E=d.mouseEventToContainerPoint(u.touches[1]),T=v.distanceTo(E)/this._startDist;if(this._zoom=d.getScaleZoom(T,this._startZoom),!d.options.bounceAtZoomLimits&&(this._zoom<d.getMinZoom()&&T<1||this._zoom>d.getMaxZoom()&&T>1)&&(this._zoom=d._limitZoom(this._zoom)),d.options.touchZoom==="center"){if(this._center=this._startLatLng,T===1)return}else{var B=v._add(E)._divideBy(2)._subtract(this._centerPoint);if(T===1&&B.x===0&&B.y===0)return;this._center=d.unproject(d.project(this._pinchStartLatLng,this._zoom).subtract(B),this._zoom)}this._moved||(d._moveStart(!0,!1),this._moved=!0),M(this._animRequest);var tt=g(d._move,d,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=Y(tt,this,!0),Mn(u)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,M(this._animRequest),Ce(document,"touchmove",this._onTouchMove,this),Ce(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});Le.addInitHook("addHandler","touchZoom",Sn),Le.BoxZoom=js,Le.DoubleClickZoom=as,Le.Drag=Ci,Le.Keyboard=lo,Le.ScrollWheelZoom=ks,Le.TapHold=qo,Le.TouchZoom=Sn,o.Bounds=et,o.Browser=Ut,o.CRS=xt,o.Canvas=Nn,o.Circle=mn,o.CircleMarker=Ht,o.Class=ct,o.Control=Jn,o.DivIcon=As,o.DivOverlay=Hn,o.DomEvent=_r,o.DomUtil=Pi,o.Draggable=Vn,o.Evented=$,o.FeatureGroup=Rr,o.GeoJSON=we,o.GridLayer=vi,o.Handler=gr,o.Icon=ji,o.ImageOverlay=Yr,o.LatLng=nt,o.LatLngBounds=ut,o.Layer=sr,o.LayerGroup=di,o.LineUtil=ja,o.Map=Le,o.Marker=jr,o.Mixin=$s,o.Path=kr,o.Point=D,o.PolyUtil=rs,o.Polygon=gi,o.Polyline=or,o.Popup=Ms,o.PosAnimation=Es,o.Projection=ka,o.Rectangle=Rs,o.Renderer=zr,o.SVG=Bi,o.SVGOverlay=pi,o.TileLayer=yi,o.Tooltip=oo,o.Transformation=We,o.Util=ot,o.VideoOverlay=Ts,o.bind=g,o.bounds=st,o.canvas=Ds,o.circle=wr,o.circleMarker=mr,o.control=An,o.divIcon=$u,o.extend=c,o.featureGroup=so,o.geoJSON=Ps,o.geoJson=Br,o.gridLayer=ao,o.icon=Er,o.imageOverlay=$h,o.latLng=Nt,o.latLngBounds=bt,o.layerGroup=Fa,o.map=Mi,o.marker=ki,o.point=J,o.polygon=ue,o.polyline=Fo,o.popup=Ju,o.rectangle=zi,o.setOptions=O,o.stamp=y,o.svg=Go,o.svgOverlay=ss,o.tileLayer=Oe,o.tooltip=Qu,o.transformation=kt,o.version=s,o.videoOverlay=mi;var us=window.L;o.noConflict=function(){return window.L=us,this},window.L=o}))})(Na,Na.exports)),Na.exports}var un=yp();const Xs=ru(un);function zu(r){return Array.isArray(r)?r.map(a=>Cp(a)):Cp(r)}function Cp(r){var s,c,f,g,m,y,C,_,b,w,S,P;let a=0,o=0;return r._latlng?(a=r._latlng.lat||a,o=r._latlng.lng||o):r.lat&&r.lng?(a=r.lat,o=r.lng):r.location?(a=((s=r.location)==null?void 0:s.lat)||((f=(c=r.location)==null?void 0:c.coordinates)==null?void 0:f.at(0))||a,o=((g=r.location)==null?void 0:g.lng)||((y=(m=r.location)==null?void 0:m.coordinates)==null?void 0:y.at(1))||o):r.position&&(a=((C=r.position)==null?void 0:C.lat)||((b=(_=r.position)==null?void 0:_.coordinates)==null?void 0:b.at(0))||a,o=((w=r.position)==null?void 0:w.lng)||((P=(S=r.position)==null?void 0:S.coordinates)==null?void 0:P.at(1))||o),new un.LatLng(a,o)}function wc(r,a){const o=N.useRef(a);N.useEffect(function(){a!==o.current&&r.attributionControl!=null&&(o.current!=null&&r.attributionControl.removeAttribution(o.current),a!=null&&r.attributionControl.addAttribution(a)),o.current=a},[r,a])}function _p(r,a,o){a.center!==o.center&&r.setLatLng(a.center),a.radius!=null&&a.radius!==o.radius&&r.setRadius(a.radius)}const bp=1;function xp(r){return Object.freeze({__version:bp,map:r})}function Sa(r,a){return Object.freeze({...r,...a})}const Oc=N.createContext(null),Nc=Oc.Provider;function Po(){const r=N.useContext(Oc);if(r==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return r}function Sc(r){function a(o,s){const{instance:c,context:f}=r(o).current;return N.useImperativeHandle(s,()=>c),o.children==null?null:N.createElement(Nc,{value:f},o.children)}return N.forwardRef(a)}function Ep(r){function a(o,s){const[c,f]=N.useState(!1),{instance:g}=r(o,f).current;N.useImperativeHandle(s,()=>g),N.useEffect(function(){c&&g.update()},[g,c,o.children]);const m=g._contentNode;return m?eu.createPortal(o.children,m):null}return N.forwardRef(a)}function Lc(r){function a(o,s){const{instance:c}=r(o).current;return N.useImperativeHandle(s,()=>c),null}return N.forwardRef(a)}function wp(r){return function(o){const s=Po(),c=r(o,s),{instance:f}=c.current,g=N.useRef(o.position),{position:m}=o;return N.useEffect(function(){return f.addTo(s.map),function(){f.remove()}},[s.map,f]),N.useEffect(function(){m!=null&&m!==g.current&&(f.setPosition(m),g.current=m)},[f,m]),c}}function Gu(r,a){const o=N.useRef();N.useEffect(function(){return a!=null&&r.instance.on(a),o.current=a,function(){o.current!=null&&r.instance.off(o.current),o.current=null}},[r,a])}function La(r,a){const o=r.pane??a.pane;return o?{...r,pane:o}:r}function Op(r,a){return function(s,c){const f=Po(),g=r(La(s,f),f);return wc(f.map,s.attribution),Gu(g.current,s.eventHandlers),a(g.current,f,s,c),g}}function Np(r){return r.split(" ").filter(Boolean)}function Sp(r,a){Np(a).forEach(o=>{un.DomUtil.addClass(r,o)})}function Lp(r,a){Np(a).forEach(o=>{un.DomUtil.removeClass(r,o)})}function _8(r,a,o){r!=null&&o!==a&&(a!=null&&a.length>0&&Lp(r,a),o!=null&&o.length>0&&Sp(r,o))}function Yi(r,a,o){return Object.freeze({instance:r,context:a,container:o})}function To(r,a){return a==null?function(s,c){const f=N.useRef();return f.current||(f.current=r(s,c)),f}:function(s,c){const f=N.useRef();f.current||(f.current=r(s,c));const g=N.useRef(s),{instance:m}=f.current;return N.useEffect(function(){g.current!==s&&(a(m,s,g.current),g.current=s)},[m,s,c]),f}}function Ic(r,a){N.useEffect(function(){return(a.layerContainer??a.map).addLayer(r.instance),function(){var f;(f=a.layerContainer)==null||f.removeLayer(r.instance),a.map.removeLayer(r.instance)}},[a,r])}function Pc(r){return function(o){const s=Po(),c=r(La(o,s),s);return wc(s.map,o.attribution),Gu(c.current,o.eventHandlers),Ic(c.current,s),c}}function Ip(r,a){const o=N.useRef();N.useEffect(function(){if(a.pathOptions!==o.current){const c=a.pathOptions??{};r.instance.setStyle(c),o.current=c}},[r,a])}function Pp(r){return function(o){const s=Po(),c=r(La(o,s),s);return Gu(c.current,o.eventHandlers),Ic(c.current,s),Ip(c.current,o),c}}function b8(r){function a(c,f){return Yi(r(c),f)}const o=To(a),s=wp(o);return Lc(s)}function Tp(r,a){const o=To(r,a),s=Pc(o);return Sc(s)}function Tc(r,a){const o=To(r),s=Op(o,a);return Ep(s)}function qu(r,a){const o=To(r,a),s=Pp(o);return Sc(s)}function Mp(r,a){const o=To(r,a),s=Pc(o);return Lc(s)}function Ap(r,a,o){const{opacity:s,zIndex:c}=a;s!=null&&s!==o.opacity&&r.setOpacity(s),c!=null&&c!==o.zIndex&&r.setZIndex(c)}function x8(r,a,o){a.bounds instanceof un.LatLngBounds&&a.bounds!==o.bounds&&r.setBounds(a.bounds),a.opacity!=null&&a.opacity!==o.opacity&&r.setOpacity(a.opacity),a.zIndex!=null&&a.zIndex!==o.zIndex&&r.setZIndex(a.zIndex)}const E8=Object.freeze(Object.defineProperty({__proto__:null,CONTEXT_VERSION:bp,LeafletContext:Oc,LeafletProvider:Nc,addClassName:Sp,createContainerComponent:Sc,createControlComponent:b8,createControlHook:wp,createDivOverlayComponent:Ep,createDivOverlayHook:Op,createElementHook:To,createElementObject:Yi,createLayerComponent:Tp,createLayerHook:Pc,createLeafComponent:Lc,createLeafletContext:xp,createOverlayComponent:Tc,createPathComponent:qu,createPathHook:Pp,createTileLayerComponent:Mp,extendContext:Sa,removeClassName:Lp,updateCircle:_p,updateClassName:_8,updateGridLayer:Ap,updateMediaOverlay:x8,useAttribution:wc,useEventHandlers:Gu,useLayerLifecycle:Ic,useLeafletContext:Po,usePathOptions:Ip,withPane:La},Symbol.toStringTag,{value:"Module"}));function Mc(){return Mc=Object.assign||function(r){for(var a=1;a<arguments.length;a++){var o=arguments[a];for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(r[s]=o[s])}return r},Mc.apply(this,arguments)}function w8({bounds:r,boundsOptions:a,center:o,children:s,className:c,id:f,placeholder:g,style:m,whenReady:y,zoom:C,..._},b){const[w]=N.useState({className:c,id:f,style:m}),[S,P]=N.useState(null);N.useImperativeHandle(b,()=>(S==null?void 0:S.map)??null,[S]);const O=N.useCallback(G=>{if(G!==null&&S===null){const k=new un.Map(G,_);o!=null&&C!=null?k.setView(o,C):r!=null&&k.fitBounds(r,a),y!=null&&k.whenReady(y),P(xp(k))}},[]);N.useEffect(()=>()=>{S==null||S.map.remove()},[S]);const q=S?N.createElement(Nc,{value:S},s):g??null;return N.createElement("div",Mc({},w,{ref:O}),q)}const O8=N.forwardRef(w8);function Ac(){return Po().map}function N8(r){const a=Ac();return N.useEffect(function(){return a.on(r),function(){a.off(r)}},[a,r]),a}const S8=qu(function({center:a,children:o,...s},c){const f=new un.Circle(a,s);return Yi(f,Sa(c,{overlayContainer:f}))},_p),L8=Tp(function({position:a,...o},s){const c=new un.Marker(a,o);return Yi(c,Sa(s,{overlayContainer:c}))},function(a,o,s){o.position!==s.position&&a.setLatLng(o.position),o.icon!=null&&o.icon!==s.icon&&a.setIcon(o.icon),o.zIndexOffset!=null&&o.zIndexOffset!==s.zIndexOffset&&a.setZIndexOffset(o.zIndexOffset),o.opacity!=null&&o.opacity!==s.opacity&&a.setOpacity(o.opacity),a.dragging!=null&&o.draggable!==s.draggable&&(o.draggable===!0?a.dragging.enable():a.dragging.disable())}),Dp=qu(function({positions:a,...o},s){const c=new un.Polygon(a,o);return Yi(c,Sa(s,{overlayContainer:c}))},function(a,o,s){o.positions!==s.positions&&a.setLatLngs(o.positions)}),I8=qu(function({positions:a,...o},s){const c=new un.Polyline(a,o);return Yi(c,Sa(s,{overlayContainer:c}))},function(a,o,s){o.positions!==s.positions&&a.setLatLngs(o.positions)}),P8=Tc(function(a,o){const s=new un.Popup(a,o.overlayContainer);return Yi(s,o)},function(a,o,{position:s},c){N.useEffect(function(){const{instance:g}=a;function m(C){C.popup===g&&(g.update(),c(!0))}function y(C){C.popup===g&&c(!1)}return o.map.on({popupopen:m,popupclose:y}),o.overlayContainer==null?(s!=null&&g.setLatLng(s),g.openOn(o.map)):o.overlayContainer.bindPopup(g),function(){var _;o.map.off({popupopen:m,popupclose:y}),(_=o.overlayContainer)==null||_.unbindPopup(),o.map.removeLayer(g)}},[a,o,c,s])}),Ia=Mp(function({url:a,...o},s){const c=new un.TileLayer(a,La(o,s));return Yi(c,s)},function(a,o,s){Ap(a,o,s);const{url:c}=o;c!=null&&c!==s.url&&a.setUrl(c)}),T8=Tc(function(a,o){const s=new un.Tooltip(a,o.overlayContainer);return Yi(s,o)},function(a,o,{position:s},c){N.useEffect(function(){const g=o.overlayContainer;if(g==null)return;const{instance:m}=a,y=_=>{_.tooltip===m&&(s!=null&&m.setLatLng(s),m.update(),c(!0))},C=_=>{_.tooltip===m&&c(!1)};return g.on({tooltipopen:y,tooltipclose:C}),g.bindTooltip(m),function(){g.off({tooltipopen:y,tooltipclose:C}),g._map!=null&&g.unbindTooltip()}},[a,o,c,s])});var Ur={exports:{}},pr={},Rp;function Be(){if(Rp)return pr;Rp=1;function r(o,s){return{type:"Feature",properties:s||{},geometry:o}}pr.feature=r,pr.point=function(o,s){if(!Array.isArray(o))throw new Error("Coordinates must be an array");if(o.length<2)throw new Error("Coordinates must be at least 2 numbers long");return r({type:"Point",coordinates:o.slice()},s)},pr.polygon=function(o,s){if(!o)throw new Error("No coordinates passed");for(var c=0;c<o.length;c++){var f=o[c];if(f.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var g=0;g<f[f.length-1].length;g++)if(f[f.length-1][g]!==f[0][g])throw new Error("First and last Position are not equivalent.")}return r({type:"Polygon",coordinates:o},s)},pr.lineString=function(o,s){if(!o)throw new Error("No coordinates passed");return r({type:"LineString",coordinates:o},s)},pr.featureCollection=function(o){return{type:"FeatureCollection",features:o}},pr.multiLineString=function(o,s){if(!o)throw new Error("No coordinates passed");return r({type:"MultiLineString",coordinates:o},s)},pr.multiPoint=function(o,s){if(!o)throw new Error("No coordinates passed");return r({type:"MultiPoint",coordinates:o},s)},pr.multiPolygon=function(o,s){if(!o)throw new Error("No coordinates passed");return r({type:"MultiPolygon",coordinates:o},s)},pr.geometryCollection=function(o,s){return r({type:"GeometryCollection",geometries:o},s)};var a={miles:3960,nauticalmiles:3441.145,degrees:57.2957795,radians:1,inches:250905600,yards:6969600,meters:6373e3,metres:6373e3,kilometers:6373,kilometres:6373};return pr.radiansToDistance=function(o,s){var c=a[s||"kilometers"];if(c===void 0)throw new Error("Invalid unit");return o*c},pr.distanceToRadians=function(o,s){var c=a[s||"kilometers"];if(c===void 0)throw new Error("Invalid unit");return o/c},pr.distanceToDegrees=function(o,s){var c=a[s||"kilometers"];if(c===void 0)throw new Error("Invalid unit");return o/c*57.2958},pr}var Dc,jp;function Rc(){if(jp)return Dc;jp=1;var r=Be().polygon,a=Be().featureCollection;Dc=function(g,m){return a(f(g.features.map(function(y){var C={x:y.geometry.coordinates[0],y:y.geometry.coordinates[1]};return m&&(C.z=y.properties[m]),C})).map(function(y){return r([[[y.a.x,y.a.y],[y.b.x,y.b.y],[y.c.x,y.c.y],[y.a.x,y.a.y]]],{a:y.a.z,b:y.b.z,c:y.c.z})}))};function o(g,m,y){this.a=g,this.b=m,this.c=y;var C=m.x-g.x,_=m.y-g.y,b=y.x-g.x,w=y.y-g.y,S=C*(g.x+m.x)+_*(g.y+m.y),P=b*(g.x+y.x)+w*(g.y+y.y),O=2*(C*(y.y-m.y)-_*(y.x-m.x)),q,G,k,A;Math.abs(O)<1e-6?(q=Math.min(g.x,m.x,y.x),G=Math.min(g.y,m.y,y.y),k=(Math.max(g.x,m.x,y.x)-q)*.5,A=(Math.max(g.y,m.y,y.y)-G)*.5,this.x=q+k,this.y=G+A,this.r=k*k+A*A):(this.x=(w*S-_*P)/O,this.y=(C*P-b*S)/O,k=this.x-g.x,A=this.y-g.y,this.r=k*k+A*A)}function s(g,m){return m.x-g.x}function c(g){var m=g.length,y,C,_,b,w;t:for(;m;)for(C=g[--m],y=g[--m],_=m;_;)if(w=g[--_],b=g[--_],y===b&&C===w||y===w&&C===b){g.splice(m,2),g.splice(_,2),m-=2;continue t}}function f(g){if(g.length<3)return[];g.sort(s);for(var m=g.length-1,y=g[m].x,C=g[0].x,_=g[m].y,b=_;m--;)g[m].y<_&&(_=g[m].y),g[m].y>b&&(b=g[m].y);var w=C-y,S=b-_,P=w>S?w:S,O=(C+y)*.5,q=(b+_)*.5,G=[new o({x:O-20*P,y:q-P,__sentinel:!0},{x:O,y:q+20*P,__sentinel:!0},{x:O+20*P,y:q-P,__sentinel:!0})],k=[],A=[],R,j,W;for(m=g.length;m--;){for(A.length=0,R=G.length;R--;){if(w=g[m].x-G[R].x,w>0&&w*w>G[R].r){k.push(G[R]),G.splice(R,1);continue}S=g[m].y-G[R].y,!(w*w+S*S>G[R].r)&&(A.push(G[R].a,G[R].b,G[R].b,G[R].c,G[R].c,G[R].a),G.splice(R,1))}for(c(A),R=A.length;R;)W=A[--R],j=A[--R],G.push(new o(j,W,g[m]))}for(Array.prototype.push.apply(k,G),m=k.length;m--;)(k[m].a.__sentinel||k[m].b.__sentinel||k[m].c.__sentinel)&&k.splice(m,1);return k}return Dc}var Mo={},kp;function Vu(){if(kp)return Mo;kp=1;function r(c){if(Array.isArray(c)&&typeof c[0]=="number"&&typeof c[1]=="number")return c;if(c){if(c.type==="Feature"&&c.geometry&&c.geometry.type==="Point"&&Array.isArray(c.geometry.coordinates))return c.geometry.coordinates;if(c.type==="Point"&&Array.isArray(c.coordinates))return c.coordinates}throw new Error("A coordinate, feature, or point geometry is required")}function a(c,f,g){if(!f||!g)throw new Error("type and name required");if(!c||c.type!==f)throw new Error("Invalid input to "+g+": must be a "+f+", given "+c.type)}function o(c,f,g){if(!g)throw new Error(".featureOf() requires a name");if(!c||c.type!=="Feature"||!c.geometry)throw new Error("Invalid input to "+g+", Feature with geometry required");if(!c.geometry||c.geometry.type!==f)throw new Error("Invalid input to "+g+": must be a "+f+", given "+c.geometry.type)}function s(c,f,g){if(!g)throw new Error(".collectionOf() requires a name");if(!c||c.type!=="FeatureCollection")throw new Error("Invalid input to "+g+", FeatureCollection required");for(var m=0;m<c.features.length;m++){var y=c.features[m];if(!y||y.type!=="Feature"||!y.geometry)throw new Error("Invalid input to "+g+", Feature with geometry required");if(!y.geometry||y.geometry.type!==f)throw new Error("Invalid input to "+g+": must be a "+f+", given "+y.geometry.type)}}return Mo.geojsonType=a,Mo.collectionOf=s,Mo.featureOf=o,Mo.getCoord=r,Mo}var jc,Fp;function Ao(){if(Fp)return jc;Fp=1;var r=Vu();jc=function(s,c){var f=r.getCoord(s),g=c.geometry.coordinates;c.geometry.type==="Polygon"&&(g=[g]);for(var m=0,y=!1;m<g.length&&!y;m++)if(a(f,g[m][0])){for(var C=!1,_=1;_<g[m].length&&!C;)a(f,g[m][_])&&(C=!0),_++;C||(y=!0)}return y};function a(o,s){for(var c=!1,f=0,g=s.length-1;f<s.length;g=f++){var m=s[f][0],y=s[f][1],C=s[g][0],_=s[g][1],b=y>o[1]!=_>o[1]&&o[0]<(C-m)*(o[1]-y)/(_-y)+m;b&&(c=!c)}return c}return jc}var kc,Bp;function M8(){if(Bp)return kc;Bp=1;var r=Array.isArray||function(a){return Object.prototype.toString.call(a)==="[object Array]"};return kc=function(a,o){if(!r(a))throw new Error("Coordinates must be an array");if(a.length<2)throw new Error("Coordinates must be at least 2 numbers long");return{type:"Feature",geometry:{type:"Point",coordinates:a},properties:o||{}}},kc}var Fc,zp;function A8(){if(zp)return Fc;zp=1;var r=M8();return Fc=function(a,o){var s=a[0],c=a[1],f=a[2];a[3];for(var g=(f-s)/o,m={type:"FeatureCollection",features:[]},y=0;y<=o;y++)for(var C=0;C<=o;C++)m.features.push(r([y*g+s,C*g+c]));return m},Fc}var Cs={},Gp;function Do(){if(Gp)return Cs;Gp=1;function r(g,m,y){var C,_,b,w,S,P,O,q,G,k=0,A,R=g.type==="FeatureCollection",j=g.type==="Feature",W=R?g.features.length:1;for(C=0;C<W;C++)for(G=R?g.features[C].geometry:j?g.geometry:g,A=G.type==="GeometryCollection",O=A?G.geometries.length:1,w=0;w<O;w++)if(P=A?G.geometries[w]:G,q=P.coordinates,k=y&&(P.type==="Polygon"||P.type==="MultiPolygon")?1:0,P.type==="Point")m(q);else if(P.type==="LineString"||P.type==="MultiPoint")for(_=0;_<q.length;_++)m(q[_]);else if(P.type==="Polygon"||P.type==="MultiLineString")for(_=0;_<q.length;_++)for(b=0;b<q[_].length-k;b++)m(q[_][b]);else if(P.type==="MultiPolygon")for(_=0;_<q.length;_++)for(b=0;b<q[_].length;b++)for(S=0;S<q[_][b].length-k;S++)m(q[_][b][S]);else throw new Error("Unknown Geometry Type")}Cs.coordEach=r;function a(g,m,y,C){return r(g,function(_){y=m(y,_)},C),y}Cs.coordReduce=a;function o(g,m){var y;switch(g.type){case"FeatureCollection":for(y=0;y<g.features.length;y++)m(g.features[y].properties);break;case"Feature":m(g.properties);break}}Cs.propEach=o;function s(g,m,y){return o(g,function(C){y=m(y,C)}),y}Cs.propReduce=s;function c(g,m){if(g.type==="Feature")m(g);else if(g.type==="FeatureCollection")for(var y=0;y<g.features.length;y++)m(g.features[y])}Cs.featureEach=c;function f(g){var m=[];return r(g,function(y){m.push(y)}),m}return Cs.coordAll=f,Cs}var Bc,qp;function Uu(){if(qp)return Bc;qp=1;var r=Do().coordEach;return Bc=function(a){var o=[1/0,1/0,-1/0,-1/0];return r(a,function(s){o[0]>s[0]&&(o[0]=s[0]),o[1]>s[1]&&(o[1]=s[1]),o[2]<s[0]&&(o[2]=s[0]),o[3]<s[1]&&(o[3]=s[1])}),o},Bc}var zc,Vp;function Up(){return Vp||(Vp=1,zc=function(r,a){var o=r.geometry.coordinates[0],s=r.geometry.coordinates[1],c=a.geometry.coordinates[0][0][0],f=a.geometry.coordinates[0][0][1],g=a.properties.a,m=a.geometry.coordinates[0][1][0],y=a.geometry.coordinates[0][1][1],C=a.properties.b,_=a.geometry.coordinates[0][2][0],b=a.geometry.coordinates[0][2][1],w=a.properties.c,S=(w*(o-c)*(s-y)+g*(o-m)*(s-b)+C*(o-_)*(s-f)-C*(o-c)*(s-b)-w*(o-m)*(s-f)-g*(o-_)*(s-y))/((o-c)*(s-y)+(o-m)*(s-b)+(o-_)*(s-f)-(o-c)*(s-b)-(o-m)*(s-f)-(o-_)*(s-y));return S}),zc}var Gc,Hp;function Pr(){if(Hp)return Gc;Hp=1;var r=Vu().getCoord,a=Be().radiansToDistance;return Gc=function(o,s,c){var f=Math.PI/180,g=r(o),m=r(s),y=f*(m[1]-g[1]),C=f*(m[0]-g[0]),_=f*g[1],b=f*m[1],w=Math.pow(Math.sin(y/2),2)+Math.pow(Math.sin(C/2),2)*Math.cos(_)*Math.cos(b);return a(2*Math.atan2(Math.sqrt(w),Math.sqrt(1-w)),c)},Gc}var qc,Zp;function Wp(){if(Zp)return qc;Zp=1;var r=Pr();return qc=function(a){var o=r(a.slice(0,2),[a[2],a[1]],"miles"),s=r(a.slice(0,2),[a[0],a[3]],"miles");if(o>=s){var c=(a[1]+a[3])/2;return[a[0],c-(a[2]-a[0])/2,a[2],c+(a[2]-a[0])/2]}else{var f=(a[0]+a[2])/2;return[f-(a[3]-a[1])/2,a[1],f+(a[3]-a[1])/2,a[3]]}},qc}var Vc,Yp;function D8(){if(Yp)return Vc;Yp=1,Vc=c;var r=1e-10;function a(f,g){var m=f.x-g.x,y=f.y-g.y;return m*m+y*y<r}function o(f){for(var g=f.head;g;){var m=g.next;g.next=g.prev,g.prev=m,g=m}var m=f.head;f.head=f.tail,f.tail=m}function s(f){this.level=f,this.s=null,this.count=0}s.prototype.remove_seq=function(f){f.prev?f.prev.next=f.next:this.s=f.next,f.next&&(f.next.prev=f.prev),--this.count},s.prototype.addSegment=function(f,g){for(var m=this.s,y=null,C=null,_=!1,b=!1;m&&(y==null&&(a(f,m.head.p)?(y=m,_=!0):a(f,m.tail.p)&&(y=m)),C==null&&(a(g,m.head.p)?(C=m,b=!0):a(g,m.tail.p)&&(C=m)),!(C!=null&&y!=null));)m=m.next;var w=(y!=null?1:0)|(C!=null?2:0);switch(w){case 0:var S={p:f,prev:null},P={p:g,next:null};S.next=P,P.prev=S,y={head:S,tail:P,next:this.s,prev:null,closed:!1},this.s&&(this.s.prev=y),this.s=y,++this.count;break;case 1:var O={p:g};_?(O.next=y.head,O.prev=null,y.head.prev=O,y.head=O):(O.next=null,O.prev=y.tail,y.tail.next=O,y.tail=O);break;case 2:var O={p:f};b?(O.next=C.head,O.prev=null,C.head.prev=O,C.head=O):(O.next=null,O.prev=C.tail,C.tail.next=O,C.tail=O);break;case 3:if(y===C){var O={p:y.tail.p,next:y.head,prev:null};y.head.prev=O,y.head=O,y.closed=!0;break}switch((_?1:0)|(b?2:0)){case 0:o(y);case 1:C.tail.next=y.head,y.head.prev=C.tail,C.tail=y.tail,this.remove_seq(y);break;case 3:o(y);case 2:y.tail.next=C.head,C.head.prev=y.tail,y.tail=C.tail,this.remove_seq(C);break}}};function c(f){if(f)this.drawContour=f;else{var g=this;g.contours={},this.drawContour=function(m,y,C,_,b,w){var S=g.contours[w];S||(S=g.contours[w]=new s(b)),S.addSegment({x:m,y},{x:C,y:_})},this.contourList=function(){var m=[],y=g.contours;for(var C in y)for(var _=y[C].s,b=y[C].level;_;){var w=_.head,S=[];for(S.level=b,S.k=C;w&&w.p;)S.push(w.p),w=w.next;m.push(S),_=_.next}return m.sort(function(P,O){return P.k-O.k}),m}}this.h=new Array(5),this.sh=new Array(5),this.xh=new Array(5),this.yh=new Array(5)}return c.prototype.contour=function(f,g,m,y,C,_,b,w,S){var P=this.h,O=this.sh,q=this.xh,G=this.yh,k=this.drawContour;this.contours={};for(var A=function(bt,nt){return(P[nt]*q[bt]-P[bt]*q[nt])/(P[nt]-P[bt])},R=function(bt,nt){return(P[nt]*G[bt]-P[bt]*G[nt])/(P[nt]-P[bt])},j,W,F,H,U,it,Y=0,M=0,ot=0,ct=0,Ct=[0,1,1,0],V=[0,0,1,1],$=[[[0,0,8],[0,2,5],[7,6,9]],[[0,3,4],[1,3,1],[4,3,0]],[[9,6,7],[5,2,0],[8,0,0]]],D=C-1;D>=y;D--)for(var rt=g;rt<=m-1;rt++){var J,et;if(J=Math.min(f[rt][D],f[rt][D+1]),et=Math.min(f[rt+1][D],f[rt+1][D+1]),U=Math.min(J,et),J=Math.max(f[rt][D],f[rt][D+1]),et=Math.max(f[rt+1][D],f[rt+1][D+1]),it=Math.max(J,et),it>=S[0]&&U<=S[w-1]){for(var st=0;st<w;st++)if(S[st]>=U&&S[st]<=it){for(var ut=4;ut>=0;ut--)ut>0?(P[ut]=f[rt+Ct[ut-1]][D+V[ut-1]]-S[st],q[ut]=_[rt+Ct[ut-1]],G[ut]=b[D+V[ut-1]]):(P[0]=.25*(P[1]+P[2]+P[3]+P[4]),q[0]=.5*(_[rt]+_[rt+1]),G[0]=.5*(b[D]+b[D+1])),P[ut]>r?O[ut]=1:P[ut]<-r?O[ut]=-1:O[ut]=0;for(ut=1;ut<=4;ut++)if(j=ut,W=0,ut!=4?F=ut+1:F=1,H=$[O[j]+1][O[W]+1][O[F]+1],H!=0){switch(H){case 1:Y=q[j],ot=G[j],M=q[W],ct=G[W];break;case 2:Y=q[W],ot=G[W],M=q[F],ct=G[F];break;case 3:Y=q[F],ot=G[F],M=q[j],ct=G[j];break;case 4:Y=q[j],ot=G[j],M=A(W,F),ct=R(W,F);break;case 5:Y=q[W],ot=G[W],M=A(F,j),ct=R(F,j);break;case 6:Y=q[F],ot=G[F],M=A(j,W),ct=R(j,W);break;case 7:Y=A(j,W),ot=R(j,W),M=A(W,F),ct=R(W,F);break;case 8:Y=A(W,F),ot=R(W,F),M=A(F,j),ct=R(F,j);break;case 9:Y=A(F,j),ot=R(F,j),M=A(j,W),ct=R(j,W);break}k(Y,ot,M,ct,S[st],st)}}}}},Vc}var Uc,Xp;function R8(){if(Xp)return Uc;Xp=1;var r=Rc(),a=Ao(),o=A8(),s=Uu(),c=Up(),f=Be().featureCollection,g=Be().lineString,m=Wp(),y=D8();return Uc=function(C,_,b,w){for(var S=r(C,_),P=s(C),O=m(P),q=o(O,b),G=[],k=0;k<q.features.length;k++)for(var A=q.features[k],R=0;R<S.features.length;R++){var j=S.features[R];a(A,j)&&(A.properties={},A.properties[_]=c(A,j))}for(var W=Math.sqrt(q.features.length),F=0;F<W;F++){for(var H=q.features.slice(F*W,(F+1)*W),U=[],it=0;it<H.length;it++)H[it].properties?U.push(H[it].properties[_]):U.push(0);G.push(U)}for(var Y=(O[2]-O[0])/W,M=[],ot=[],ct=0;ct<W;ct++)M.push(ct*Y+O[0]),ot.push(ct*Y+O[1]);var Ct=new y;Ct.contour(G,0,b,0,b,M,ot,w.length,w);var V=Ct.contourList(),$=f([]);return V.forEach(function(D){if(D.length>2){var rt=[];D.forEach(function(et){rt.push([et.x,et.y])});var J=g(rt);J.properties={},J.properties[_]=D.level,$.features.push(J)}}),$},Uc}var Hc,Kp;function j8(){if(Kp)return Hc;Kp=1,Hc=r;function r(a){for(var o=0,s=0,c=1;c<a.length;++c)a[c][0]<a[o][0]&&(o=c),a[c][0]>a[s][0]&&(s=c);return o<s?[[o],[s]]:o>s?[[s],[o]]:[[o]]}return Hc}var Zc={exports:{}},Wc,Jp;function Qp(){if(Jp)return Wc;Jp=1,Wc=a;var r=+(Math.pow(2,27)+1);function a(o,s,c){var f=o*s,g=r*o,m=g-o,y=g-m,C=o-y,_=r*s,b=_-s,w=_-b,S=s-w,P=f-y*w,O=P-C*w,q=O-y*S,G=C*S-q;return c?(c[0]=G,c[1]=f,c):[G,f]}return Wc}var Yc,$p;function k8(){if($p)return Yc;$p=1,Yc=a;function r(o,s){var c=o+s,f=c-o,g=c-f,m=s-f,y=o-g,C=y+m;return C?[C,c]:[c]}function a(o,s){var c=o.length|0,f=s.length|0;if(c===1&&f===1)return r(o[0],s[0]);var g=c+f,m=new Array(g),y=0,C=0,_=0,b=Math.abs,w=o[C],S=b(w),P=s[_],O=b(P),q,G;S<O?(G=w,C+=1,C<c&&(w=o[C],S=b(w))):(G=P,_+=1,_<f&&(P=s[_],O=b(P))),C<c&&S<O||_>=f?(q=w,C+=1,C<c&&(w=o[C],S=b(w))):(q=P,_+=1,_<f&&(P=s[_],O=b(P)));for(var k=q+G,A=k-q,R=G-A,j=R,W=k,F,H,U,it,Y;C<c&&_<f;)S<O?(q=w,C+=1,C<c&&(w=o[C],S=b(w))):(q=P,_+=1,_<f&&(P=s[_],O=b(P))),G=j,k=q+G,A=k-q,R=G-A,R&&(m[y++]=R),F=W+k,H=F-W,U=F-H,it=k-H,Y=W-U,j=Y+it,W=F;for(;C<c;)q=w,G=j,k=q+G,A=k-q,R=G-A,R&&(m[y++]=R),F=W+k,H=F-W,U=F-H,it=k-H,Y=W-U,j=Y+it,W=F,C+=1,C<c&&(w=o[C]);for(;_<f;)q=P,G=j,k=q+G,A=k-q,R=G-A,R&&(m[y++]=R),F=W+k,H=F-W,U=F-H,it=k-H,Y=W-U,j=Y+it,W=F,_+=1,_<f&&(P=s[_]);return j&&(m[y++]=j),W&&(m[y++]=W),y||(m[y++]=0),m.length=y,m}return Yc}var Xc,t0;function F8(){if(t0)return Xc;t0=1,Xc=r;function r(a,o,s){var c=a+o,f=c-a,g=c-f,m=o-f,y=a-g;return s?(s[0]=y+m,s[1]=c,s):[y+m,c]}return Xc}var Kc,e0;function B8(){if(e0)return Kc;e0=1;var r=Qp(),a=F8();Kc=o;function o(s,c){var f=s.length;if(f===1){var g=r(s[0],c);return g[0]?g:[g[1]]}var m=new Array(2*f),y=[.1,.1],C=[.1,.1],_=0;r(s[0],c,y),y[0]&&(m[_++]=y[0]);for(var b=1;b<f;++b){r(s[b],c,C);var w=y[1];a(w,C[0],y),y[0]&&(m[_++]=y[0]);var S=C[1],P=y[1],O=S+P,q=O-S,G=P-q;y[1]=O,G&&(m[_++]=G)}return y[1]&&(m[_++]=y[1]),_===0&&(m[_++]=0),m.length=_,m}return Kc}var Jc,n0;function z8(){if(n0)return Jc;n0=1,Jc=a;function r(o,s){var c=o+s,f=c-o,g=c-f,m=s-f,y=o-g,C=y+m;return C?[C,c]:[c]}function a(o,s){var c=o.length|0,f=s.length|0;if(c===1&&f===1)return r(o[0],-s[0]);var g=c+f,m=new Array(g),y=0,C=0,_=0,b=Math.abs,w=o[C],S=b(w),P=-s[_],O=b(P),q,G;S<O?(G=w,C+=1,C<c&&(w=o[C],S=b(w))):(G=P,_+=1,_<f&&(P=-s[_],O=b(P))),C<c&&S<O||_>=f?(q=w,C+=1,C<c&&(w=o[C],S=b(w))):(q=P,_+=1,_<f&&(P=-s[_],O=b(P)));for(var k=q+G,A=k-q,R=G-A,j=R,W=k,F,H,U,it,Y;C<c&&_<f;)S<O?(q=w,C+=1,C<c&&(w=o[C],S=b(w))):(q=P,_+=1,_<f&&(P=-s[_],O=b(P))),G=j,k=q+G,A=k-q,R=G-A,R&&(m[y++]=R),F=W+k,H=F-W,U=F-H,it=k-H,Y=W-U,j=Y+it,W=F;for(;C<c;)q=w,G=j,k=q+G,A=k-q,R=G-A,R&&(m[y++]=R),F=W+k,H=F-W,U=F-H,it=k-H,Y=W-U,j=Y+it,W=F,C+=1,C<c&&(w=o[C]);for(;_<f;)q=P,G=j,k=q+G,A=k-q,R=G-A,R&&(m[y++]=R),F=W+k,H=F-W,U=F-H,it=k-H,Y=W-U,j=Y+it,W=F,_+=1,_<f&&(P=-s[_]);return j&&(m[y++]=j),W&&(m[y++]=W),y||(m[y++]=0),m.length=y,m}return Jc}var r0;function Qc(){return r0||(r0=1,(function(r){var a=Qp(),o=k8(),s=B8(),c=z8(),f=5,g=11102230246251565e-32,m=(3+16*g)*g,y=(7+56*g)*g;function C(A,R,j,W){return function(H,U,it){var Y=A(A(R(U[1],it[0]),R(-it[1],U[0])),A(R(H[1],U[0]),R(-U[1],H[0]))),M=A(R(H[1],it[0]),R(-it[1],H[0])),ot=W(Y,M);return ot[ot.length-1]}}function _(A,R,j,W){return function(H,U,it,Y){var M=A(A(j(A(R(it[1],Y[0]),R(-Y[1],it[0])),U[2]),A(j(A(R(U[1],Y[0]),R(-Y[1],U[0])),-it[2]),j(A(R(U[1],it[0]),R(-it[1],U[0])),Y[2]))),A(j(A(R(U[1],Y[0]),R(-Y[1],U[0])),H[2]),A(j(A(R(H[1],Y[0]),R(-Y[1],H[0])),-U[2]),j(A(R(H[1],U[0]),R(-U[1],H[0])),Y[2])))),ot=A(A(j(A(R(it[1],Y[0]),R(-Y[1],it[0])),H[2]),A(j(A(R(H[1],Y[0]),R(-Y[1],H[0])),-it[2]),j(A(R(H[1],it[0]),R(-it[1],H[0])),Y[2]))),A(j(A(R(U[1],it[0]),R(-it[1],U[0])),H[2]),A(j(A(R(H[1],it[0]),R(-it[1],H[0])),-U[2]),j(A(R(H[1],U[0]),R(-U[1],H[0])),it[2])))),ct=W(M,ot);return ct[ct.length-1]}}function b(A,R,j,W){return function(H,U,it,Y,M){var ot=A(A(A(j(A(j(A(R(Y[1],M[0]),R(-M[1],Y[0])),it[2]),A(j(A(R(it[1],M[0]),R(-M[1],it[0])),-Y[2]),j(A(R(it[1],Y[0]),R(-Y[1],it[0])),M[2]))),U[3]),A(j(A(j(A(R(Y[1],M[0]),R(-M[1],Y[0])),U[2]),A(j(A(R(U[1],M[0]),R(-M[1],U[0])),-Y[2]),j(A(R(U[1],Y[0]),R(-Y[1],U[0])),M[2]))),-it[3]),j(A(j(A(R(it[1],M[0]),R(-M[1],it[0])),U[2]),A(j(A(R(U[1],M[0]),R(-M[1],U[0])),-it[2]),j(A(R(U[1],it[0]),R(-it[1],U[0])),M[2]))),Y[3]))),A(j(A(j(A(R(it[1],Y[0]),R(-Y[1],it[0])),U[2]),A(j(A(R(U[1],Y[0]),R(-Y[1],U[0])),-it[2]),j(A(R(U[1],it[0]),R(-it[1],U[0])),Y[2]))),-M[3]),A(j(A(j(A(R(Y[1],M[0]),R(-M[1],Y[0])),U[2]),A(j(A(R(U[1],M[0]),R(-M[1],U[0])),-Y[2]),j(A(R(U[1],Y[0]),R(-Y[1],U[0])),M[2]))),H[3]),j(A(j(A(R(Y[1],M[0]),R(-M[1],Y[0])),H[2]),A(j(A(R(H[1],M[0]),R(-M[1],H[0])),-Y[2]),j(A(R(H[1],Y[0]),R(-Y[1],H[0])),M[2]))),-U[3])))),A(A(j(A(j(A(R(U[1],M[0]),R(-M[1],U[0])),H[2]),A(j(A(R(H[1],M[0]),R(-M[1],H[0])),-U[2]),j(A(R(H[1],U[0]),R(-U[1],H[0])),M[2]))),Y[3]),A(j(A(j(A(R(U[1],Y[0]),R(-Y[1],U[0])),H[2]),A(j(A(R(H[1],Y[0]),R(-Y[1],H[0])),-U[2]),j(A(R(H[1],U[0]),R(-U[1],H[0])),Y[2]))),-M[3]),j(A(j(A(R(it[1],Y[0]),R(-Y[1],it[0])),U[2]),A(j(A(R(U[1],Y[0]),R(-Y[1],U[0])),-it[2]),j(A(R(U[1],it[0]),R(-it[1],U[0])),Y[2]))),H[3]))),A(j(A(j(A(R(it[1],Y[0]),R(-Y[1],it[0])),H[2]),A(j(A(R(H[1],Y[0]),R(-Y[1],H[0])),-it[2]),j(A(R(H[1],it[0]),R(-it[1],H[0])),Y[2]))),-U[3]),A(j(A(j(A(R(U[1],Y[0]),R(-Y[1],U[0])),H[2]),A(j(A(R(H[1],Y[0]),R(-Y[1],H[0])),-U[2]),j(A(R(H[1],U[0]),R(-U[1],H[0])),Y[2]))),it[3]),j(A(j(A(R(U[1],it[0]),R(-it[1],U[0])),H[2]),A(j(A(R(H[1],it[0]),R(-it[1],H[0])),-U[2]),j(A(R(H[1],U[0]),R(-U[1],H[0])),it[2]))),-Y[3]))))),ct=A(A(A(j(A(j(A(R(Y[1],M[0]),R(-M[1],Y[0])),it[2]),A(j(A(R(it[1],M[0]),R(-M[1],it[0])),-Y[2]),j(A(R(it[1],Y[0]),R(-Y[1],it[0])),M[2]))),H[3]),j(A(j(A(R(Y[1],M[0]),R(-M[1],Y[0])),H[2]),A(j(A(R(H[1],M[0]),R(-M[1],H[0])),-Y[2]),j(A(R(H[1],Y[0]),R(-Y[1],H[0])),M[2]))),-it[3])),A(j(A(j(A(R(it[1],M[0]),R(-M[1],it[0])),H[2]),A(j(A(R(H[1],M[0]),R(-M[1],H[0])),-it[2]),j(A(R(H[1],it[0]),R(-it[1],H[0])),M[2]))),Y[3]),j(A(j(A(R(it[1],Y[0]),R(-Y[1],it[0])),H[2]),A(j(A(R(H[1],Y[0]),R(-Y[1],H[0])),-it[2]),j(A(R(H[1],it[0]),R(-it[1],H[0])),Y[2]))),-M[3]))),A(A(j(A(j(A(R(it[1],M[0]),R(-M[1],it[0])),U[2]),A(j(A(R(U[1],M[0]),R(-M[1],U[0])),-it[2]),j(A(R(U[1],it[0]),R(-it[1],U[0])),M[2]))),H[3]),j(A(j(A(R(it[1],M[0]),R(-M[1],it[0])),H[2]),A(j(A(R(H[1],M[0]),R(-M[1],H[0])),-it[2]),j(A(R(H[1],it[0]),R(-it[1],H[0])),M[2]))),-U[3])),A(j(A(j(A(R(U[1],M[0]),R(-M[1],U[0])),H[2]),A(j(A(R(H[1],M[0]),R(-M[1],H[0])),-U[2]),j(A(R(H[1],U[0]),R(-U[1],H[0])),M[2]))),it[3]),j(A(j(A(R(U[1],it[0]),R(-it[1],U[0])),H[2]),A(j(A(R(H[1],it[0]),R(-it[1],H[0])),-U[2]),j(A(R(H[1],U[0]),R(-U[1],H[0])),it[2]))),-M[3])))),Ct=W(ot,ct);return Ct[Ct.length-1]}}function w(A){var R=A===3?C:A===4?_:b;return R(o,a,s,c)}var S=w(3),P=w(4),O=[function(){return 0},function(){return 0},function(R,j){return j[0]-R[0]},function(R,j,W){var F=(R[1]-W[1])*(j[0]-W[0]),H=(R[0]-W[0])*(j[1]-W[1]),U=F-H,it;if(F>0){if(H<=0)return U;it=F+H}else if(F<0){if(H>=0)return U;it=-(F+H)}else return U;var Y=m*it;return U>=Y||U<=-Y?U:S(R,j,W)},function(R,j,W,F){var H=R[0]-F[0],U=j[0]-F[0],it=W[0]-F[0],Y=R[1]-F[1],M=j[1]-F[1],ot=W[1]-F[1],ct=R[2]-F[2],Ct=j[2]-F[2],V=W[2]-F[2],$=U*ot,D=it*M,rt=it*Y,J=H*ot,et=H*M,st=U*Y,ut=ct*($-D)+Ct*(rt-J)+V*(et-st),bt=(Math.abs($)+Math.abs(D))*Math.abs(ct)+(Math.abs(rt)+Math.abs(J))*Math.abs(Ct)+(Math.abs(et)+Math.abs(st))*Math.abs(V),nt=y*bt;return ut>nt||-ut>nt?ut:P(R,j,W,F)}];function q(A){var R=O[A.length];return R||(R=O[A.length]=w(A.length)),R.apply(void 0,A)}function G(A,R,j,W,F,H,U){return function(Y,M,ot,ct,Ct){switch(arguments.length){case 0:case 1:return 0;case 2:return W(Y,M);case 3:return F(Y,M,ot);case 4:return H(Y,M,ot,ct);case 5:return U(Y,M,ot,ct,Ct)}for(var V=new Array(arguments.length),$=0;$<arguments.length;++$)V[$]=arguments[$];return A(V)}}function k(){for(;O.length<=f;)O.push(w(O.length));r.exports=G.apply(void 0,[q].concat(O));for(var A=0;A<=f;++A)r.exports[A]=O[A]}k()})(Zc)),Zc.exports}var $c,i0;function G8(){if(i0)return $c;i0=1,$c=a;var r=Qc()[3];function a(o){var s=o.length;if(s<3){for(var b=new Array(s),c=0;c<s;++c)b[c]=c;return s===2&&o[0][0]===o[1][0]&&o[0][1]===o[1][1]?[0]:b}for(var f=new Array(s),c=0;c<s;++c)f[c]=c;f.sort(function(O,q){var G=o[O][0]-o[q][0];return G||o[O][1]-o[q][1]});for(var g=[f[0],f[1]],m=[f[0],f[1]],c=2;c<s;++c){for(var y=f[c],C=o[y],_=g.length;_>1&&r(o[g[_-2]],o[g[_-1]],C)<=0;)_-=1,g.pop();for(g.push(y),_=m.length;_>1&&r(o[m[_-2]],o[m[_-1]],C)>=0;)_-=1,m.pop();m.push(y)}for(var b=new Array(m.length+g.length-2),w=0,c=0,S=g.length;c<S;++c)b[w++]=g[c];for(var P=m.length-2;P>0;--P)b[w++]=m[P];return b}return $c}var th,s0;function q8(){if(s0)return th;s0=1,th=a;var r=G8();function a(o){var s=r(o),c=s.length;if(c<=2)return[];for(var f=new Array(c),g=s[c-1],m=0;m<c;++m){var y=s[m];f[m]=[g,y],g=y}return f}return th}var dr={},_n={},o0;function V8(){if(o0)return _n;o0=1;var r=32;_n.INT_BITS=r,_n.INT_MAX=2147483647,_n.INT_MIN=-1<<r-1,_n.sign=function(s){return(s>0)-(s<0)},_n.abs=function(s){var c=s>>r-1;return(s^c)-c},_n.min=function(s,c){return c^(s^c)&-(s<c)},_n.max=function(s,c){return s^(s^c)&-(s<c)},_n.isPow2=function(s){return!(s&s-1)&&!!s},_n.log2=function(s){var c,f;return c=(s>65535)<<4,s>>>=c,f=(s>255)<<3,s>>>=f,c|=f,f=(s>15)<<2,s>>>=f,c|=f,f=(s>3)<<1,s>>>=f,c|=f,c|s>>1},_n.log10=function(s){return s>=1e9?9:s>=1e8?8:s>=1e7?7:s>=1e6?6:s>=1e5?5:s>=1e4?4:s>=1e3?3:s>=100?2:s>=10?1:0},_n.popCount=function(s){return s=s-(s>>>1&1431655765),s=(s&858993459)+(s>>>2&858993459),(s+(s>>>4)&252645135)*16843009>>>24};function a(s){var c=32;return s&=-s,s&&c--,s&65535&&(c-=16),s&16711935&&(c-=8),s&252645135&&(c-=4),s&858993459&&(c-=2),s&1431655765&&(c-=1),c}_n.countTrailingZeros=a,_n.nextPow2=function(s){return s+=s===0,--s,s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s+1},_n.prevPow2=function(s){return s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s-(s>>>1)},_n.parity=function(s){return s^=s>>>16,s^=s>>>8,s^=s>>>4,s&=15,27030>>>s&1};var o=new Array(256);return(function(s){for(var c=0;c<256;++c){var f=c,g=c,m=7;for(f>>>=1;f;f>>>=1)g<<=1,g|=f&1,--m;s[c]=g<<m&255}})(o),_n.reverse=function(s){return o[s&255]<<24|o[s>>>8&255]<<16|o[s>>>16&255]<<8|o[s>>>24&255]},_n.interleave2=function(s,c){return s&=65535,s=(s|s<<8)&16711935,s=(s|s<<4)&252645135,s=(s|s<<2)&858993459,s=(s|s<<1)&1431655765,c&=65535,c=(c|c<<8)&16711935,c=(c|c<<4)&252645135,c=(c|c<<2)&858993459,c=(c|c<<1)&1431655765,s|c<<1},_n.deinterleave2=function(s,c){return s=s>>>c&1431655765,s=(s|s>>>1)&858993459,s=(s|s>>>2)&252645135,s=(s|s>>>4)&16711935,s=(s|s>>>16)&65535,s<<16>>16},_n.interleave3=function(s,c,f){return s&=1023,s=(s|s<<16)&4278190335,s=(s|s<<8)&251719695,s=(s|s<<4)&3272356035,s=(s|s<<2)&1227133513,c&=1023,c=(c|c<<16)&4278190335,c=(c|c<<8)&251719695,c=(c|c<<4)&3272356035,c=(c|c<<2)&1227133513,s|=c<<1,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,s|f<<2},_n.deinterleave3=function(s,c){return s=s>>>c&1227133513,s=(s|s>>>2)&3272356035,s=(s|s>>>4)&251719695,s=(s|s>>>8)&4278190335,s=(s|s>>>16)&1023,s<<22>>22},_n.nextCombination=function(s){var c=s|s-1;return c+1|(~c&-~c)-1>>>a(s)+1},_n}var eh,a0;function U8(){if(a0)return eh;a0=1,eh=r;function r(o){this.roots=new Array(o),this.ranks=new Array(o);for(var s=0;s<o;++s)this.roots[s]=s,this.ranks[s]=0}var a=r.prototype;return Object.defineProperty(a,"length",{get:function(){return this.roots.length}}),a.makeSet=function(){var o=this.roots.length;return this.roots.push(o),this.ranks.push(0),o},a.find=function(o){for(var s=o,c=this.roots;c[o]!==o;)o=c[o];for(;c[s]!==o;){var f=c[s];c[s]=o,s=f}return o},a.link=function(o,s){var c=this.find(o),f=this.find(s);if(c!==f){var g=this.ranks,m=this.roots,y=g[c],C=g[f];y<C?m[c]=f:C<y?m[f]=c:(m[f]=c,++g[c])}},eh}var u0;function H8(){if(u0)return dr;u0=1;var r=V8(),a=U8();function o(k){for(var A=0,R=Math.max,j=0,W=k.length;j<W;++j)A=R(A,k[j].length);return A-1}dr.dimension=o;function s(k){for(var A=-1,R=Math.max,j=0,W=k.length;j<W;++j)for(var F=k[j],H=0,U=F.length;H<U;++H)A=R(A,F[H]);return A+1}dr.countVertices=s;function c(k){for(var A=new Array(k.length),R=0,j=k.length;R<j;++R)A[R]=k[R].slice(0);return A}dr.cloneCells=c;function f(k,A){var R=k.length,j=k.length-A.length,W=Math.min;if(j)return j;switch(R){case 0:return 0;case 1:return k[0]-A[0];case 2:var Y=k[0]+k[1]-A[0]-A[1];return Y||W(k[0],k[1])-W(A[0],A[1]);case 3:var F=k[0]+k[1],H=A[0]+A[1];if(Y=F+k[2]-(H+A[2]),Y)return Y;var U=W(k[0],k[1]),it=W(A[0],A[1]),Y=W(U,k[2])-W(it,A[2]);return Y||W(U+k[2],F)-W(it+A[2],H);default:var M=k.slice(0);M.sort();var ot=A.slice(0);ot.sort();for(var ct=0;ct<R;++ct)if(j=M[ct]-ot[ct],j)return j;return 0}}dr.compareCells=f;function g(k,A){return f(k[0],A[0])}function m(k,A){if(A){for(var R=k.length,j=new Array(R),W=0;W<R;++W)j[W]=[k[W],A[W]];j.sort(g);for(var W=0;W<R;++W)k[W]=j[W][0],A[W]=j[W][1];return k}else return k.sort(f),k}dr.normalize=m;function y(k){if(k.length===0)return[];for(var A=1,R=k.length,j=1;j<R;++j){var W=k[j];if(f(W,k[j-1])){if(j===A){A++;continue}k[A++]=W}}return k.length=A,k}dr.unique=y;function C(k,A){for(var R=0,j=k.length-1,W=-1;R<=j;){var F=R+j>>1,H=f(k[F],A);H<=0?(H===0&&(W=F),R=F+1):H>0&&(j=F-1)}return W}dr.findCell=C;function _(k,A){for(var R=new Array(k.length),j=0,W=R.length;j<W;++j)R[j]=[];for(var F=[],j=0,H=A.length;j<H;++j)for(var U=A[j],it=U.length,Y=1,M=1<<it;Y<M;++Y){F.length=r.popCount(Y);for(var ot=0,ct=0;ct<it;++ct)Y&1<<ct&&(F[ot++]=U[ct]);var Ct=C(k,F);if(!(Ct<0))for(;R[Ct++].push(j),!(Ct>=k.length||f(k[Ct],F)!==0););}return R}dr.incidence=_;function b(k,A){if(!A)return _(y(S(k,0)),k);for(var R=new Array(A),j=0;j<A;++j)R[j]=[];for(var j=0,W=k.length;j<W;++j)for(var F=k[j],H=0,U=F.length;H<U;++H)R[F[H]].push(j);return R}dr.dual=b;function w(k){for(var A=[],R=0,j=k.length;R<j;++R)for(var W=k[R],F=W.length|0,H=1,U=1<<F;H<U;++H){for(var it=[],Y=0;Y<F;++Y)H>>>Y&1&&it.push(W[Y]);A.push(it)}return m(A)}dr.explode=w;function S(k,A){if(A<0)return[];for(var R=[],j=(1<<A+1)-1,W=0;W<k.length;++W)for(var F=k[W],H=j;H<1<<F.length;H=r.nextCombination(H)){for(var U=new Array(A+1),it=0,Y=0;Y<F.length;++Y)H&1<<Y&&(U[it++]=F[Y]);R.push(U)}return m(R)}dr.skeleton=S;function P(k){for(var A=[],R=0,j=k.length;R<j;++R)for(var W=k[R],F=0,H=W.length;F<H;++F){for(var U=new Array(W.length-1),it=0,Y=0;it<H;++it)it!==F&&(U[Y++]=W[it]);A.push(U)}return m(A)}dr.boundary=P;function O(k,A){for(var R=new a(A),j=0;j<k.length;++j)for(var W=k[j],F=0;F<W.length;++F)for(var H=F+1;H<W.length;++H)R.link(W[F],W[H]);for(var U=[],it=R.ranks,j=0;j<it.length;++j)it[j]=-1;for(var j=0;j<k.length;++j){var Y=R.find(k[j][0]);it[Y]<0?(it[Y]=U.length,U.push([k[j].slice(0)])):U[it[Y]].push(k[j].slice(0))}return U}function q(k){for(var A=y(m(S(k,0))),R=new a(A.length),j=0;j<k.length;++j)for(var W=k[j],F=0;F<W.length;++F)for(var H=C(A,[W[F]]),U=F+1;U<W.length;++U)R.link(H,C(A,[W[U]]));for(var it=[],Y=R.ranks,j=0;j<Y.length;++j)Y[j]=-1;for(var j=0;j<k.length;++j){var M=R.find(C(A,[k[j][0]]));Y[M]<0?(Y[M]=it.length,it.push([k[j].slice(0)])):it[Y[M]].push(k[j].slice(0))}return it}function G(k,A){return A?O(k,A):q(k)}return dr.connectedComponents=G,dr}var nh,l0;function Z8(){if(l0)return nh;l0=1,nh=C;var r=Qc(),a=H8().compareCells;function o(_,b,w){this.vertices=_,this.adjacent=b,this.boundary=w,this.lastVisited=-1}o.prototype.flip=function(){var _=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=_;var b=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=b};function s(_,b,w){this.vertices=_,this.cell=b,this.index=w}function c(_,b){return a(_.vertices,b.vertices)}function f(_){for(var b=["function orient(){var tuple=this.tuple;return test("],w=0;w<=_;++w)w>0&&b.push(","),b.push("tuple[",w,"]");b.push(")}return orient");var S=new Function("test",b.join("")),P=r[_+1];return P||(P=r),S(P)}var g=[];function m(_,b,w){this.dimension=_,this.vertices=b,this.simplices=w,this.interior=w.filter(function(O){return!O.boundary}),this.tuple=new Array(_+1);for(var S=0;S<=_;++S)this.tuple[S]=this.vertices[S];var P=g[_];P||(P=g[_]=f(_)),this.orient=P}var y=m.prototype;y.handleBoundaryDegeneracy=function(_,b){var w=this.dimension,S=this.vertices.length-1,P=this.tuple,O=this.vertices,q=[_];for(_.lastVisited=-S;q.length>0;){_=q.pop(),_.vertices;for(var G=_.adjacent,k=0;k<=w;++k){var A=G[k];if(!(!A.boundary||A.lastVisited<=-S)){for(var R=A.vertices,j=0;j<=w;++j){var W=R[j];W<0?P[j]=b:P[j]=O[W]}var F=this.orient();if(F>0)return A;A.lastVisited=-S,F===0&&q.push(A)}}}return null},y.walk=function(_,b){var w=this.vertices.length-1,S=this.dimension,P=this.vertices,O=this.tuple,q=b?this.interior.length*Math.random()|0:this.interior.length-1,G=this.interior[q];t:for(;!G.boundary;){for(var k=G.vertices,A=G.adjacent,R=0;R<=S;++R)O[R]=P[k[R]];G.lastVisited=w;for(var R=0;R<=S;++R){var j=A[R];if(!(j.lastVisited>=w)){var W=O[R];O[R]=_;var F=this.orient();if(O[R]=W,F<0){G=j;continue t}else j.boundary?j.lastVisited=-w:j.lastVisited=w}}return}return G},y.addPeaks=function(_,b){var w=this.vertices.length-1,S=this.dimension,P=this.vertices,O=this.tuple,q=this.interior,G=this.simplices,k=[b];b.lastVisited=w,b.vertices[b.vertices.indexOf(-1)]=w,b.boundary=!1,q.push(b);for(var A=[];k.length>0;){var b=k.pop(),R=b.vertices,j=b.adjacent,W=R.indexOf(w);if(!(W<0)){for(var F=0;F<=S;++F)if(F!==W){var H=j[F];if(!(!H.boundary||H.lastVisited>=w)){var U=H.vertices;if(H.lastVisited!==-w){for(var it=0,Y=0;Y<=S;++Y)U[Y]<0?(it=Y,O[Y]=_):O[Y]=P[U[Y]];var M=this.orient();if(M>0){U[it]=w,H.boundary=!1,q.push(H),k.push(H),H.lastVisited=w;continue}else H.lastVisited=-w}var ot=H.adjacent,ct=R.slice(),Ct=j.slice(),V=new o(ct,Ct,!0);G.push(V);var $=ot.indexOf(b);if(!($<0)){ot[$]=V,Ct[W]=H,ct[F]=-1,Ct[F]=b,j[F]=V,V.flip();for(var Y=0;Y<=S;++Y){var D=ct[Y];if(!(D<0||D===w)){for(var rt=new Array(S-1),J=0,et=0;et<=S;++et){var st=ct[et];st<0||et===Y||(rt[J++]=st)}A.push(new s(rt,V,Y))}}}}}}}A.sort(c);for(var F=0;F+1<A.length;F+=2){var ut=A[F],bt=A[F+1],nt=ut.index,Nt=bt.index;nt<0||Nt<0||(ut.cell.adjacent[ut.index]=bt.cell,bt.cell.adjacent[bt.index]=ut.cell)}},y.insert=function(_,b){var w=this.vertices;w.push(_);var S=this.walk(_,b);if(S){for(var P=this.dimension,O=this.tuple,q=0;q<=P;++q){var G=S.vertices[q];G<0?O[q]=_:O[q]=w[G]}var k=this.orient(O);k<0||k===0&&(S=this.handleBoundaryDegeneracy(S,_),!S)||this.addPeaks(_,S)}},y.boundary=function(){for(var _=this.dimension,b=[],w=this.simplices,S=w.length,P=0;P<S;++P){var O=w[P];if(O.boundary){for(var q=new Array(_),G=O.vertices,k=0,A=0,R=0;R<=_;++R)G[R]>=0?q[k++]=G[R]:A=R&1;if(A===(_&1)){var j=q[0];q[0]=q[1],q[1]=j}b.push(q)}}return b};function C(_,b){var w=_.length;if(w===0)throw new Error("Must have at least d+1 points");var S=_[0].length;if(w<=S)throw new Error("Must input at least d+1 points");var P=_.slice(0,S+1),O=r.apply(void 0,P);if(O===0)throw new Error("Input not in general position");for(var q=new Array(S+1),G=0;G<=S;++G)q[G]=G;O<0&&(q[0]=1,q[1]=0);for(var k=new o(q,new Array(S+1),!1),A=k.adjacent,R=new Array(S+2),G=0;G<=S;++G){for(var j=q.slice(),W=0;W<=S;++W)W===G&&(j[W]=-1);var F=j[0];j[0]=j[1],j[1]=F;var H=new o(j,new Array(S+1),!0);A[G]=H,R[G]=H}R[S+1]=k;for(var G=0;G<=S;++G)for(var j=A[G].vertices,U=A[G].adjacent,W=0;W<=S;++W){var it=j[W];if(it<0){U[W]=k;continue}for(var Y=0;Y<=S;++Y)A[Y].vertices.indexOf(it)<0&&(U[W]=A[Y])}for(var M=new m(S,P,R),ot=!!b,G=S+1;G<w;++G)M.insert(_[G],ot);return M.boundary()}return nh}var rh,c0;function W8(){if(c0)return rh;c0=1,rh=o;var r=Qc();function a(s,c){for(var f=new Array(c+1),g=0;g<s.length;++g)f[g]=s[g];for(var g=0;g<=s.length;++g){for(var m=s.length;m<=c;++m){for(var y=new Array(c),C=0;C<c;++C)y[C]=Math.pow(m+1-g,C);f[m]=y}var _=r.apply(void 0,f);if(_)return!0}return!1}function o(s){var c=s.length;if(c===0)return[];if(c===1)return[0];for(var f=s[0].length,g=[s[0]],m=[0],y=1;y<c;++y){if(g.push(s[y]),!a(g,f)){g.pop();continue}if(m.push(y),m.length===f+1)return m}return m}return rh}var ih,h0;function Y8(){if(h0)return ih;h0=1,ih=c;var r=Z8(),a=W8();function o(f,g){for(var m=f.length,y=new Array(m),C=0;C<g.length;++C)y[C]=f[g[C]];for(var _=g.length,C=0;C<m;++C)g.indexOf(C)<0&&(y[_++]=f[C]);return y}function s(f,g){for(var m=f.length,y=g.length,C=0;C<m;++C)for(var _=f[C],b=0;b<_.length;++b){var w=_[b];if(w<y)_[b]=g[w];else{w=w-y;for(var S=0;S<y;++S)w>=g[S]&&(w+=1);_[b]=w}}return f}function c(f,g){try{return r(f,!0)}catch{var m=a(f);if(m.length<=g)return[];var y=o(f,m),C=r(y,!0);return s(C,m)}}return ih}var sh,f0;function X8(){if(f0)return sh;f0=1;var r=j8(),a=q8(),o=Y8();sh=s;function s(c){var f=c.length;if(f===0)return[];if(f===1)return[[0]];var g=c[0].length;return g===0?[]:g===1?r(c):g===2?a(c):o(c,g)}return sh}var oh,d0;function K8(){if(d0)return oh;d0=1;var r=Do().coordEach,a=X8(),o=Be().polygon;return oh=function(s){var c=[];r(s,function(y){c.push(y)});var f=a(c);if(f.length>0){for(var g=[],m=0;m<f.length;m++)g.push(c[f[m][0]]);return g.push(c[f[f.length-1][1]]),o([g])}},oh}var ah,g0;function J8(){if(g0)return ah;g0=1;var r=Ao(),a=Be().featureCollection;return ah=function(o,s){for(var c=a([]),f=0;f<s.features.length;f++)for(var g=0;g<o.features.length;g++){var m=r(o.features[g],s.features[f]);m&&c.features.push(o.features[g])}return c},ah}var Pa={exports:{}},Q8=Pa.exports,m0;function Hu(){return m0||(m0=1,(function(r,a){(function(o,s){s(a)})(Q8,function(o){function s(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}function c(){}function f(){}function g(){}function m(){}function y(){}function C(){}function _(){}function b(t){this.message=t}function w(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t}function S(){if(arguments.length===0)b.call(this);else if(arguments.length===1){var t=arguments[0];b.call(this,t)}}function P(){}function O(){if(this.x=null,this.y=null,this.z=null,arguments.length===0)O.call(this,0,0);else if(arguments.length===1){var t=arguments[0];O.call(this,t.x,t.y,t.z)}else if(arguments.length===2){var e=arguments[0],n=arguments[1];O.call(this,e,n,O.NULL_ORDINATE)}else if(arguments.length===3){var l=arguments[0],h=arguments[1],p=arguments[2];this.x=l,this.y=h,this.z=p}}function q(){if(this.dimensionsToTest=2,arguments.length===0)q.call(this,2);else if(arguments.length===1){var t=arguments[0];if(t!==2&&t!==3)throw new f;this.dimensionsToTest=t}}function G(){}function k(){}function A(t){this.message=t||""}function R(){}function j(t){this.message=t||""}function W(t){this.message=t||""}function F(){this.array_=[],arguments[0]instanceof k&&this.addAll(arguments[0])}function H(){if(F.apply(this),arguments.length!==0){if(arguments.length===1){var t=arguments[0];this.ensureCapacity(t.length),this.add(t,!0)}else if(arguments.length===2){var e=arguments[0],n=arguments[1];this.ensureCapacity(e.length),this.add(e,n)}}}function U(){if(this.minx=null,this.maxx=null,this.miny=null,this.maxy=null,arguments.length===0)this.init();else if(arguments.length===1){if(arguments[0]instanceof O){var t=arguments[0];this.init(t.x,t.x,t.y,t.y)}else if(arguments[0]instanceof U){var e=arguments[0];this.init(e)}}else if(arguments.length===2){var n=arguments[0],l=arguments[1];this.init(n.x,l.x,n.y,l.y)}else if(arguments.length===4){var h=arguments[0],p=arguments[1],x=arguments[2],I=arguments[3];this.init(h,p,x,I)}}function it(){}function Y(){it.call(this,"Projective point not representable on the Cartesian plane.")}function M(){}function ot(t,e){return t.interfaces_&&t.interfaces_().indexOf(e)>-1}function ct(){}function Ct(t){this.str=t}function V(t){this.value=t}function $(){}function D(){if(this.hi=0,this.lo=0,arguments.length===0)this.init(0);else if(arguments.length===1){if(typeof arguments[0]=="number"){var t=arguments[0];this.init(t)}else if(arguments[0]instanceof D){var e=arguments[0];this.init(e)}else if(typeof arguments[0]=="string"){var n=arguments[0];D.call(this,D.parse(n))}}else if(arguments.length===2){var l=arguments[0],h=arguments[1];this.init(l,h)}}function rt(){}function J(){}function et(){}function st(){if(this.x=null,this.y=null,this.w=null,arguments.length===0)this.x=0,this.y=0,this.w=1;else if(arguments.length===1){var t=arguments[0];this.x=t.x,this.y=t.y,this.w=1}else if(arguments.length===2){if(typeof arguments[0]=="number"&&typeof arguments[1]=="number"){var e=arguments[0],n=arguments[1];this.x=e,this.y=n,this.w=1}else if(arguments[0]instanceof st&&arguments[1]instanceof st){var l=arguments[0],h=arguments[1];this.x=l.y*h.w-h.y*l.w,this.y=h.x*l.w-l.x*h.w,this.w=l.x*h.y-h.x*l.y}else if(arguments[0]instanceof O&&arguments[1]instanceof O){var p=arguments[0],x=arguments[1];this.x=p.y-x.y,this.y=x.x-p.x,this.w=p.x*x.y-x.x*p.y}}else if(arguments.length===3){var I=arguments[0],z=arguments[1],X=arguments[2];this.x=I,this.y=z,this.w=X}else if(arguments.length===4){var lt=arguments[0],ft=arguments[1],Et=arguments[2],qt=arguments[3],te=lt.y-ft.y,oe=ft.x-lt.x,Xe=lt.x*ft.y-ft.x*lt.y,Cn=Et.y-qt.y,Jr=qt.x-Et.x,vo=Et.x*qt.y-qt.x*Et.y;this.x=oe*vo-Jr*Xe,this.y=Cn*Xe-te*vo,this.w=te*Jr-Cn*oe}}function ut(){}function bt(){}function nt(){this.envelope=null,this.factory=null,this.SRID=null,this.userData=null;var t=arguments[0];this.factory=t,this.SRID=t.getSRID()}function Nt(){}function xt(){}function Mt(){}function ce(){}function ee(){}function We(){}function kt(){}function Ue(){}function ze(){}function Kt(){}function Ft(){}function vt(){}function gt(){this.array_=[],arguments[0]instanceof k&&this.addAll(arguments[0])}function Rt(t){return t==null?Vi:t.color}function Pt(t){return t==null?null:t.parent}function Zt(t,e){t!==null&&(t.color=e)}function Vt(t){return t==null?null:t.left}function Qt(t){return t==null?null:t.right}function Bt(){this.root_=null,this.size_=0}function de(){}function Jt(){}function Wt(){this.array_=[],arguments[0]instanceof k&&this.addAll(arguments[0])}function he(){}function mt(){}function De(){}function en(){}function Gt(){this.geometries=null;var t=arguments[0],e=arguments[1];if(nt.call(this,e),t===null&&(t=[]),nt.hasNullElements(t))throw new f;this.geometries=t}function He(){var t=arguments[0],e=arguments[1];Gt.call(this,t,e)}function Fe(){if(this.geom=null,this.geomFact=null,this.bnRule=null,this.endpointMap=null,arguments.length===1){var t=arguments[0];Fe.call(this,t,xt.MOD2_BOUNDARY_RULE)}else if(arguments.length===2){var e=arguments[0],n=arguments[1];this.geom=e,this.geomFact=e.getFactory(),this.bnRule=n}}function ln(){this.count=null}function sn(){}function On(){}function In(){}function rr(){}function Ne(){}function Zn(){}function Ge(){}function ae(){}function Yt(){this.points=null;var t=arguments[0],e=arguments[1];nt.call(this,e),this.init(t)}function jn(){}function ne(){this.coordinates=null;var t=arguments[0],e=arguments[1];nt.call(this,e),this.init(t)}function Ke(){}function _e(){this.shell=null,this.holes=null;var t=arguments[0],e=arguments[1],n=arguments[2];if(nt.call(this,n),t===null&&(t=this.getFactory().createLinearRing()),e===null&&(e=[]),nt.hasNullElements(e))throw new f;if(t.isEmpty()&&nt.hasNonEmptyElements(e))throw new f;this.shell=t,this.holes=e}function cn(){var t=arguments[0],e=arguments[1];Gt.call(this,t,e)}function ke(){if(arguments[0]instanceof O&&arguments[1]instanceof Xt){var t=arguments[0],e=arguments[1];ke.call(this,e.getCoordinateSequenceFactory().create(t),e)}else if(ot(arguments[0],J)&&arguments[1]instanceof Xt){var n=arguments[0],l=arguments[1];Yt.call(this,n,l),this.validateConstruction()}}function Je(){var t=arguments[0],e=arguments[1];Gt.call(this,t,e)}function bn(){if(this.factory=null,this.isUserDataCopied=!1,arguments.length!==0){if(arguments.length===1){var t=arguments[0];this.factory=t}}}function Tr(){}function $e(){}function Ut(){}function vr(){}function Z(){if(this.dimension=3,this.coordinates=null,arguments.length===1){if(arguments[0]instanceof Array){var t=arguments[0];Z.call(this,t,3)}else if(Number.isInteger(arguments[0])){var e=arguments[0];this.coordinates=new Array(e).fill(null);for(var n=0;e>n;n++)this.coordinates[n]=new O}else if(ot(arguments[0],J)){var l=arguments[0];if(l===null)return this.coordinates=new Array(0).fill(null),null;this.dimension=l.getDimension(),this.coordinates=new Array(l.size()).fill(null);for(var n=0;n<this.coordinates.length;n++)this.coordinates[n]=l.getCoordinateCopy(n)}}else if(arguments.length===2){if(arguments[0]instanceof Array&&Number.isInteger(arguments[1])){var h=arguments[0],p=arguments[1];this.coordinates=h,this.dimension=p,h===null&&(this.coordinates=new Array(0).fill(null))}else if(Number.isInteger(arguments[0])&&Number.isInteger(arguments[1])){var x=arguments[0],I=arguments[1];this.coordinates=new Array(x).fill(null),this.dimension=I;for(var n=0;x>n;n++)this.coordinates[n]=new O}}}function pt(){}function Tt(t,e){return t===e||t!==t&&e!==e}function jt(t,e){function n(l){return this&&this.constructor===n?(this._keys=[],this._values=[],this._itp=[],this.objectOnly=e,void(l&&fe.call(this,l))):new n(l)}return b_(t,"size",{get:Re}),t.constructor=n,n.prototype=t,n}function fe(t){this.add?t.forEach(this.add,this):t.forEach(function(e){this.set(e[0],e[1])},this)}function be(t){return this.has(t)&&(this._keys.splice(xi,1),this._values.splice(xi,1),this._itp.forEach(function(e){xi<e[0]&&e[0]--})),xi>-1}function ye(t){return this.has(t)?this._values[xi]:void 0}function pe(t,e){if(this.objectOnly&&e!==Object(e))throw new TypeError("Invalid value used as weak collection key");if(e!==e||e===0)for(xi=t.length;xi--&&!Tt(t[xi],e););else xi=t.indexOf(e);return xi>-1}function pn(t){return pe.call(this,this._keys,t)}function yt(t,e){return this.has(t)?this._values[xi]=e:this._values[this._keys.push(t)-1]=e,this}function Q(){(this._keys||0).length=this._values.length=0}function _t(){return ve(this._itp,this._keys)}function Dt(){return ve(this._itp,this._values)}function $t(){return ve(this._itp,this._keys,this._values)}function ve(t,e,n){var l=[0],h=!1;return t.push(l),{next:function(){var p,x=l[0];return!h&&x<e.length?(p=n?[e[x],n[x]]:e[x],l[0]++):(h=!0,t.splice(t.indexOf(l),1)),{done:h,value:p}}}}function Re(){return this._values.length}function hn(t,e){for(var n=this.entries();;){var l=n.next();if(l.done)break;t.call(e,l.value[1],l.value[0],this)}}function on(){this.map_=new E_}function ge(){if(this.modelType=null,this.scale=null,arguments.length===0)this.modelType=ge.FLOATING;else if(arguments.length===1){if(arguments[0]instanceof qn){var t=arguments[0];this.modelType=t,t===ge.FIXED&&this.setScale(1)}else if(typeof arguments[0]=="number"){var e=arguments[0];this.modelType=ge.FIXED,this.setScale(e)}else if(arguments[0]instanceof ge){var n=arguments[0];this.modelType=n.modelType,this.scale=n.scale}}}function qn(){this.name=null;var t=arguments[0];this.name=t,qn.nameToTypeMap.put(t,this)}function Xt(){if(this.precisionModel=null,this.coordinateSequenceFactory=null,this.SRID=null,arguments.length===0)Xt.call(this,new ge,0);else if(arguments.length===1){if(ot(arguments[0],ut)){var t=arguments[0];Xt.call(this,new ge,0,t)}else if(arguments[0]instanceof ge){var e=arguments[0];Xt.call(this,e,0,Xt.getDefaultCoordinateSequenceFactory())}}else if(arguments.length===2){var n=arguments[0],l=arguments[1];Xt.call(this,n,l,Xt.getDefaultCoordinateSequenceFactory())}else if(arguments.length===3){var h=arguments[0],p=arguments[1],x=arguments[2];this.precisionModel=h,this.coordinateSequenceFactory=x,this.SRID=p}}function Xi(t){this.geometryFactory=t||new Xt}function vn(t){this.parser=new Xi(t)}function Se(){this.result=null,this.inputLines=Array(2).fill().map(function(){return Array(2)}),this.intPt=new Array(2).fill(null),this.intLineIndex=null,this._isProper=null,this.pa=null,this.pb=null,this.precisionModel=null,this.intPt[0]=new O,this.intPt[1]=new O,this.pa=this.intPt[0],this.pb=this.intPt[1],this.result=0}function ie(){Se.apply(this)}function Ye(){}function Hr(){this.p=null,this.crossingCount=0,this.isPointOnSegment=!1;var t=arguments[0];this.p=t}function Ot(){}function re(){if(this.p0=null,this.p1=null,arguments.length===0)re.call(this,new O,new O);else if(arguments.length===1){var t=arguments[0];re.call(this,t.p0,t.p1)}else if(arguments.length===2){var e=arguments[0],n=arguments[1];this.p0=e,this.p1=n}else if(arguments.length===4){var l=arguments[0],h=arguments[1],p=arguments[2],x=arguments[3];re.call(this,new O(l,h),new O(p,x))}}function Te(){if(this.matrix=null,arguments.length===0)this.matrix=Array(3).fill().map(function(){return Array(3)}),this.setAll(mt.FALSE);else if(arguments.length===1){if(typeof arguments[0]=="string"){var t=arguments[0];Te.call(this),this.set(t)}else if(arguments[0]instanceof Te){var e=arguments[0];Te.call(this),this.matrix[M.INTERIOR][M.INTERIOR]=e.matrix[M.INTERIOR][M.INTERIOR],this.matrix[M.INTERIOR][M.BOUNDARY]=e.matrix[M.INTERIOR][M.BOUNDARY],this.matrix[M.INTERIOR][M.EXTERIOR]=e.matrix[M.INTERIOR][M.EXTERIOR],this.matrix[M.BOUNDARY][M.INTERIOR]=e.matrix[M.BOUNDARY][M.INTERIOR],this.matrix[M.BOUNDARY][M.BOUNDARY]=e.matrix[M.BOUNDARY][M.BOUNDARY],this.matrix[M.BOUNDARY][M.EXTERIOR]=e.matrix[M.BOUNDARY][M.EXTERIOR],this.matrix[M.EXTERIOR][M.INTERIOR]=e.matrix[M.EXTERIOR][M.INTERIOR],this.matrix[M.EXTERIOR][M.BOUNDARY]=e.matrix[M.EXTERIOR][M.BOUNDARY],this.matrix[M.EXTERIOR][M.EXTERIOR]=e.matrix[M.EXTERIOR][M.EXTERIOR]}}}function le(){this.areaBasePt=null,this.triangleCent3=new O,this.areasum2=0,this.cg3=new O,this.lineCentSum=new O,this.totalLength=0,this.ptCount=0,this.ptCentSum=new O;var t=arguments[0];this.areaBasePt=null,this.add(t)}function fn(t){this.message=t||""}function Pn(){this.array_=[]}function ni(){this.treeSet=new Wt,this.list=new F}function xn(){if(this.geomFactory=null,this.inputPts=null,arguments.length===1){var t=arguments[0];xn.call(this,xn.extractCoordinates(t),t.getFactory())}else if(arguments.length===2){var e=arguments[0],n=arguments[1];this.inputPts=ni.filterCoordinates(e),this.geomFactory=n}}function _s(){this.origin=null;var t=arguments[0];this.origin=t}function Tn(){this.inputGeom=null,this.factory=null,this.pruneEmptyGeometry=!0,this.preserveGeometryCollectionType=!0,this.preserveCollections=!1,this.preserveType=!1}function yr(){if(this.snapTolerance=0,this.srcPts=null,this.seg=new re,this.allowSnappingToSourceVertices=!1,this._isClosed=!1,arguments[0]instanceof Yt&&typeof arguments[1]=="number"){var t=arguments[0],e=arguments[1];yr.call(this,t.getCoordinates(),e)}else if(arguments[0]instanceof Array&&typeof arguments[1]=="number"){var n=arguments[0],l=arguments[1];this.srcPts=n,this._isClosed=yr.isClosed(n),this.snapTolerance=l}}function Me(){this.srcGeom=null;var t=arguments[0];this.srcGeom=t}function Mr(){if(Tn.apply(this),this.snapTolerance=null,this.snapPts=null,this.isSelfSnap=!1,arguments.length===2){var t=arguments[0],e=arguments[1];this.snapTolerance=t,this.snapPts=e}else if(arguments.length===3){var n=arguments[0],l=arguments[1],h=arguments[2];this.snapTolerance=n,this.snapPts=l,this.isSelfSnap=h}}function kn(){this.isFirst=!0,this.commonMantissaBitsCount=53,this.commonBits=0,this.commonSignExp=null}function ri(){this.commonCoord=null,this.ccFilter=new bs}function bs(){this.commonBitsX=new kn,this.commonBitsY=new kn}function ii(){this.trans=null;var t=arguments[0];this.trans=t}function si(){this.parent=null,this.atStart=null,this.max=null,this.index=null,this.subcollectionIterator=null;var t=arguments[0];this.parent=t,this.atStart=!0,this.index=0,this.max=t.getNumGeometries()}function oi(){if(this.boundaryRule=xt.OGC_SFS_BOUNDARY_RULE,this.isIn=null,this.numBoundaries=null,arguments.length!==0){if(arguments.length===1){var t=arguments[0];if(t===null)throw new f;this.boundaryRule=t}}}function ai(){}function Ki(){}function Ks(){this.pts=null,this.data=null;var t=arguments[0],e=arguments[1];this.pts=t,this.data=e}function Ji(){}function Ar(){this.bounds=null,this.item=null;var t=arguments[0],e=arguments[1];this.bounds=t,this.item=e}function Js(){this._size=null,this.items=null,this._size=0,this.items=new F,this.items.add(null)}function Pi(){}function me(){}function nn(){if(this.childBoundables=new F,this.bounds=null,this.level=null,arguments.length!==0){if(arguments.length===1){var t=arguments[0];this.level=t}}}function Ce(){this.boundable1=null,this.boundable2=null,this._distance=null,this.itemDistance=null;var t=arguments[0],e=arguments[1],n=arguments[2];this.boundable1=t,this.boundable2=e,this.itemDistance=n,this._distance=this.distance()}function rn(){if(this.root=null,this.built=!1,this.itemBoundables=new F,this.nodeCapacity=null,arguments.length===0)rn.call(this,rn.DEFAULT_NODE_CAPACITY);else if(arguments.length===1){var t=arguments[0];P.isTrue(t>1,"Node capacity must be greater than 1"),this.nodeCapacity=t}}function Aa(){}function xs(){}function Ze(){if(arguments.length===0)Ze.call(this,Ze.DEFAULT_NODE_CAPACITY);else if(arguments.length===1){var t=arguments[0];rn.call(this,t)}}function Dr(){var t=arguments[0];nn.call(this,t)}function Fn(){}function Qi(){this.segString=null,this.coord=null,this.segmentIndex=null,this.segmentOctant=null,this._isInterior=null;var t=arguments[0],e=arguments[1],n=arguments[2],l=arguments[3];this.segString=t,this.coord=new O(e),this.segmentIndex=n,this.segmentOctant=l,this._isInterior=!e.equals2D(t.getCoordinate(n))}function Mn(){this.nodeMap=new Bt,this.edge=null;var t=arguments[0];this.edge=t}function Ti(){this.nodeList=null,this.edge=null,this.nodeIt=null,this.currNode=null,this.nextNode=null,this.currSegIndex=0;var t=arguments[0];this.nodeList=t,this.edge=t.getEdge(),this.nodeIt=t.iterator(),this.readNextNode()}function jo(){}function Cr(){this.nodeList=new Mn(this),this.pts=null,this.data=null;var t=arguments[0],e=arguments[1];this.pts=t,this.data=e}function Qs(){this.tempEnv1=new U,this.tempEnv2=new U,this.overlapSeg1=new re,this.overlapSeg2=new re}function ko(){this.pts=null,this.start=null,this.end=null,this.env=null,this.context=null,this.id=null;var t=arguments[0],e=arguments[1],n=arguments[2],l=arguments[3];this.pts=t,this.start=e,this.end=n,this.context=l}function xe(){}function _r(){}function Es(){}function Le(){if(this.segInt=null,arguments.length!==0){if(arguments.length===1){var t=arguments[0];this.setSegmentIntersector(t)}}}function Mi(){if(this.monoChains=new F,this.index=new Ze,this.idCounter=0,this.nodedSegStrings=null,this.nOverlaps=0,arguments.length!==0){if(arguments.length===1){var t=arguments[0];Le.call(this,t)}}}function Jn(){Qs.apply(this),this.si=null;var t=arguments[0];this.si=t}function An(){if(this.pt=null,arguments.length===1){var t=arguments[0];b.call(this,t)}else if(arguments.length===2){var e=arguments[0],n=arguments[1];b.call(this,An.msgWithCoord(e,n)),this.pt=new O(n)}}function ws(){}function ui(){this.findAllIntersections=!1,this.isCheckEndSegmentsOnly=!1,this.li=null,this.interiorIntersection=null,this.intSegments=null,this.intersections=new F,this.intersectionCount=0,this.keepIntersections=!0;var t=arguments[0];this.li=t,this.interiorIntersection=null}function $i(){this.li=new ie,this.segStrings=null,this.findAllIntersections=!1,this.segInt=null,this._isValid=!0;var t=arguments[0];this.segStrings=t}function ts(){this.nv=null;var t=arguments[0];this.nv=new $i(ts.toSegmentStrings(t))}function es(){this.mapOp=null;var t=arguments[0];this.mapOp=t}function St(){}function Qn(){if(this.location=null,arguments.length===1){if(arguments[0]instanceof Array){var t=arguments[0];this.init(t.length)}else if(Number.isInteger(arguments[0])){var e=arguments[0];this.init(1),this.location[St.ON]=e}else if(arguments[0]instanceof Qn){var n=arguments[0];if(this.init(n.location.length),n!==null)for(var l=0;l<this.location.length;l++)this.location[l]=n.location[l]}}else if(arguments.length===3){var h=arguments[0],p=arguments[1],x=arguments[2];this.init(3),this.location[St.ON]=h,this.location[St.LEFT]=p,this.location[St.RIGHT]=x}}function tn(){if(this.elt=new Array(2).fill(null),arguments.length===1){if(Number.isInteger(arguments[0])){var t=arguments[0];this.elt[0]=new Qn(t),this.elt[1]=new Qn(t)}else if(arguments[0]instanceof tn){var e=arguments[0];this.elt[0]=new Qn(e.elt[0]),this.elt[1]=new Qn(e.elt[1])}}else if(arguments.length===2){var n=arguments[0],l=arguments[1];this.elt[0]=new Qn(M.NONE),this.elt[1]=new Qn(M.NONE),this.elt[n].setLocation(l)}else if(arguments.length===3){var h=arguments[0],p=arguments[1],x=arguments[2];this.elt[0]=new Qn(h,p,x),this.elt[1]=new Qn(h,p,x)}else if(arguments.length===4){var I=arguments[0],z=arguments[1],X=arguments[2],lt=arguments[3];this.elt[0]=new Qn(M.NONE,M.NONE,M.NONE),this.elt[1]=new Qn(M.NONE,M.NONE,M.NONE),this.elt[I].setLocations(z,X,lt)}}function Os(){this.startDe=null,this.maxNodeDegree=-1,this.edges=new F,this.pts=new F,this.label=new tn(M.NONE),this.ring=null,this._isHole=null,this.shell=null,this.holes=new F,this.geometryFactory=null;var t=arguments[0],e=arguments[1];this.geometryFactory=e,this.computePoints(t),this.computeRing()}function gr(){var t=arguments[0],e=arguments[1];Os.call(this,t,e)}function $s(){var t=arguments[0],e=arguments[1];Os.call(this,t,e)}function li(){if(this.label=null,this._isInResult=!1,this._isCovered=!1,this._isCoveredSet=!1,this._isVisited=!1,arguments.length!==0){if(arguments.length===1){var t=arguments[0];this.label=t}}}function Vn(){li.apply(this),this.coord=null,this.edges=null;var t=arguments[0],e=arguments[1];this.coord=t,this.edges=e,this.label=new tn(0,M.NONE)}function ns(){this.nodeMap=new Bt,this.nodeFact=null;var t=arguments[0];this.nodeFact=t}function br(){if(this.edge=null,this.label=null,this.node=null,this.p0=null,this.p1=null,this.dx=null,this.dy=null,this.quadrant=null,arguments.length===1){var t=arguments[0];this.edge=t}else if(arguments.length===3){var e=arguments[0],n=arguments[1],l=arguments[2];br.call(this,e,n,l,null)}else if(arguments.length===4){var h=arguments[0],p=arguments[1],x=arguments[2],I=arguments[3];br.call(this,h),this.init(p,x),this.label=I}}function ci(){this._isForward=null,this._isInResult=!1,this._isVisited=!1,this.sym=null,this.next=null,this.nextMin=null,this.edgeRing=null,this.minEdgeRing=null,this.depth=[0,-999,-999];var t=arguments[0],e=arguments[1];if(br.call(this,t),this._isForward=e,e)this.init(t.getCoordinate(0),t.getCoordinate(1));else{var n=t.getNumPoints()-1;this.init(t.getCoordinate(n),t.getCoordinate(n-1))}this.computeDirectedLabel()}function rs(){}function xr(){if(this.edges=new F,this.nodes=null,this.edgeEndList=new F,arguments.length===0)this.nodes=new ns(new rs);else if(arguments.length===1){var t=arguments[0];this.nodes=new ns(t)}}function to(){this.geometryFactory=null,this.shellList=new F;var t=arguments[0];this.geometryFactory=t}function Da(){this.op=null,this.geometryFactory=null,this.ptLocator=null,this.lineEdgesList=new F,this.resultLineList=new F;var t=arguments[0],e=arguments[1],n=arguments[2];this.op=t,this.geometryFactory=e,this.ptLocator=n}function Ra(){this.op=null,this.geometryFactory=null,this.resultPointList=new F;var t=arguments[0],e=arguments[1];this.op=t,this.geometryFactory=e}function Ns(){}function ir(){this.geom=null;var t=arguments[0];this.geom=t}function Ai(){this.edgeMap=new Bt,this.edgeList=null,this.ptInAreaLocation=[M.NONE,M.NONE]}function eo(){Ai.apply(this),this.resultAreaEdgeList=null,this.label=null,this.SCANNING_FOR_INCOMING=1,this.LINKING_TO_OUTGOING=2}function hi(){rs.apply(this)}function fi(){this.mce=null,this.chainIndex=null;var t=arguments[0],e=arguments[1];this.mce=t,this.chainIndex=e}function Zr(){if(this.label=null,this.xValue=null,this.eventType=null,this.insertEvent=null,this.deleteEventIndex=null,this.obj=null,arguments.length===2){var t=arguments[0],e=arguments[1];this.eventType=Zr.DELETE,this.xValue=t,this.insertEvent=e}else if(arguments.length===3){var n=arguments[0],l=arguments[1],h=arguments[2];this.eventType=Zr.INSERT,this.label=n,this.xValue=l,this.obj=h}}function Di(){}function Dn(){this._hasIntersection=!1,this.hasProper=!1,this.hasProperInterior=!1,this.properIntersectionPoint=null,this.li=null,this.includeProper=null,this.recordIsolated=null,this.isSelfIntersection=null,this.numIntersections=0,this.numTests=0,this.bdyNodes=null,this._isDone=!1,this.isDoneWhenProperInt=!1;var t=arguments[0],e=arguments[1],n=arguments[2];this.li=t,this.includeProper=e,this.recordIsolated=n}function no(){Di.apply(this),this.events=new F,this.nOverlaps=null}function Ri(){this.min=g.POSITIVE_INFINITY,this.max=g.NEGATIVE_INFINITY}function ja(){}function Ss(){Ri.apply(this),this.item=null;var t=arguments[0],e=arguments[1],n=arguments[2];this.min=t,this.max=e,this.item=n}function Ls(){Ri.apply(this),this.node1=null,this.node2=null;var t=arguments[0],e=arguments[1];this.node1=t,this.node2=e,this.buildExtent(this.node1,this.node2)}function ka(){this.leaves=new F,this.root=null,this.level=0}function Bn(){if(this.lines=null,this.isForcedToLineString=!1,arguments.length===1){var t=arguments[0];this.lines=t}else if(arguments.length===2){var e=arguments[0],n=arguments[1];this.lines=e,this.isForcedToLineString=n}}function ro(){this.items=new F}function io(){this.index=null;var t=arguments[0];if(!ot(t,Ke))throw new f;this.index=new di(t)}function sr(){this.counter=null;var t=arguments[0];this.counter=t}function di(){this.index=new ka;var t=arguments[0];this.init(t)}function Fa(){this.coord=null,this.segmentIndex=null,this.dist=null;var t=arguments[0],e=arguments[1],n=arguments[2];this.coord=new O(t),this.segmentIndex=e,this.dist=n}function Rr(){this.nodeMap=new Bt,this.edge=null;var t=arguments[0];this.edge=t}function so(){}function ji(){this.e=null,this.pts=null,this.startIndex=null,this.env1=new U,this.env2=new U;var t=arguments[0];this.e=t,this.pts=t.getCoordinates();var e=new so;this.startIndex=e.getChainStartIndices(this.pts)}function Er(){this.depth=Array(2).fill().map(function(){return Array(3)});for(var t=0;2>t;t++)for(var e=0;3>e;e++)this.depth[t][e]=Er.NULL_VALUE}function Un(){if(li.apply(this),this.pts=null,this.env=null,this.eiList=new Rr(this),this.name=null,this.mce=null,this._isIsolated=!0,this.depth=new Er,this.depthDelta=0,arguments.length===1){var t=arguments[0];Un.call(this,t,null)}else if(arguments.length===2){var e=arguments[0],n=arguments[1];this.pts=e,this.label=n}}function Wn(){if(xr.apply(this),this.parentGeom=null,this.lineEdgeMap=new on,this.boundaryNodeRule=null,this.useBoundaryDeterminationRule=!0,this.argIndex=null,this.boundaryNodes=null,this._hasTooFewPoints=!1,this.invalidPoint=null,this.areaPtLocator=null,this.ptLocator=new oi,arguments.length===2){var t=arguments[0],e=arguments[1];Wn.call(this,t,e,xt.OGC_SFS_BOUNDARY_RULE)}else if(arguments.length===3){var n=arguments[0],l=arguments[1],h=arguments[2];this.argIndex=n,this.parentGeom=l,this.boundaryNodeRule=h,l!==null&&this.add(l)}}function jr(){if(this.li=new ie,this.resultPrecisionModel=null,this.arg=null,arguments.length===1){var t=arguments[0];this.setComputationPrecision(t.getPrecisionModel()),this.arg=new Array(1).fill(null),this.arg[0]=new Wn(0,t)}else if(arguments.length===2){var e=arguments[0],n=arguments[1];jr.call(this,e,n,xt.OGC_SFS_BOUNDARY_RULE)}else if(arguments.length===3){var l=arguments[0],h=arguments[1],p=arguments[2];l.getPrecisionModel().compareTo(h.getPrecisionModel())>=0?this.setComputationPrecision(l.getPrecisionModel()):this.setComputationPrecision(h.getPrecisionModel()),this.arg=new Array(2).fill(null),this.arg[0]=new Wn(0,l,p),this.arg[1]=new Wn(1,h,p)}}function ki(){this.pts=null,this._orientation=null;var t=arguments[0];this.pts=t,this._orientation=ki.orientation(t)}function kr(){this.edges=new F,this.ocaMap=new Bt}function Ht(){this.ptLocator=new oi,this.geomFact=null,this.resultGeom=null,this.graph=null,this.edgeList=new kr,this.resultPolyList=new F,this.resultLineList=new F,this.resultPointList=new F;var t=arguments[0],e=arguments[1];jr.call(this,t,e),this.graph=new xr(new hi),this.geomFact=t.getFactory()}function mr(){this.geom=new Array(2).fill(null),this.snapTolerance=null,this.cbr=null;var t=arguments[0],e=arguments[1];this.geom[0]=t,this.geom[1]=e,this.computeSnapTolerance()}function mn(){this.geom=new Array(2).fill(null);var t=arguments[0],e=arguments[1];this.geom[0]=t,this.geom[1]=e}function wr(){this.factory=null,this.interiorPoint=null,this.maxWidth=0;var t=arguments[0];this.factory=t.getFactory(),this.add(t)}function or(){this.poly=null,this.centreY=null,this.hiY=g.MAX_VALUE,this.loY=-g.MAX_VALUE;var t=arguments[0];this.poly=t,this.hiY=t.getEnvelopeInternal().getMaxY(),this.loY=t.getEnvelopeInternal().getMinY(),this.centreY=wr.avg(this.loY,this.hiY)}function Fo(){this.centroid=null,this.minDistance=g.MAX_VALUE,this.interiorPoint=null;var t=arguments[0];this.centroid=t.getCentroid().getCoordinate(),this.addInterior(t),this.interiorPoint===null&&this.addEndpoints(t)}function gi(){this.centroid=null,this.minDistance=g.MAX_VALUE,this.interiorPoint=null;var t=arguments[0];this.centroid=t.getCentroid().getCoordinate(),this.add(t)}function ue(){}function we(){this.p0=null,this.p1=null,this.p2=null;var t=arguments[0],e=arguments[1],n=arguments[2];this.p0=t,this.p1=e,this.p2=n}function Or(){this.input=null,this.extremalPts=null,this.centre=null,this.radius=0;var t=arguments[0];this.input=t}function Rn(){if(this.inputGeom=null,this.isConvex=null,this.convexHullPts=null,this.minBaseSeg=new re,this.minWidthPt=null,this.minPtIndex=null,this.minWidth=0,arguments.length===1){var t=arguments[0];Rn.call(this,t,!1)}else if(arguments.length===2){var e=arguments[0],n=arguments[1];this.inputGeom=e,this.isConvex=n}}function Wr(){this.inputGeom=null,this.distanceTolerance=null;var t=arguments[0];this.inputGeom=t}function Fi(){Tn.apply(this),this.distanceTolerance=null;var t=arguments[0];this.distanceTolerance=t}function Nr(){this._orig=null,this._sym=null,this._next=null;var t=arguments[0];this._orig=t}function zn(){this._isMarked=!1;var t=arguments[0];Nr.call(this,t)}function Fr(){this.vertexMap=new on}function is(){this._isStart=!1;var t=arguments[0];zn.call(this,t)}function Is(){Fr.apply(this)}function Ps(){this.result=null,this.factory=null,this.graph=null,this.lines=new F,this.nodeEdgeStack=new Pn,this.ringStartEdge=null,this.graph=new Is}function Br(){this.items=new F,this.subnode=new Array(4).fill(null)}function Yr(){}function $h(t,e){var n,l,h,p,x={32:{d:127,c:128,b:0,a:0},64:{d:32752,c:0,b:0,a:0}},I={32:8,64:11}[t];if(p||(n=0>e||0>1/e,isFinite(e)||(p=x[t],n&&(p.d+=1<<t/4-1),l=Math.pow(2,I)-1,h=0)),!p){for(l={32:127,64:1023}[t],h=Math.abs(e);h>=2;)l++,h/=2;for(;1>h&&l>0;)l--,h*=2;0>=l&&(h/=2)}return l}function Ts(){this.pt=new O,this.level=0,this.env=null;var t=arguments[0];this.computeKey(t)}function mi(){Br.apply(this),this.env=null,this.centrex=null,this.centrey=null,this.level=null;var t=arguments[0],e=arguments[1];this.env=t,this.level=e,this.centrex=(t.getMinX()+t.getMaxX())/2,this.centrey=(t.getMinY()+t.getMaxY())/2}function pi(){}function ss(){Br.apply(this)}function Hn(){this.root=null,this.minExtent=1,this.root=new ss}function Ms(t){this.geometryFactory=t||new Xt}function Ju(t){this.geometryFactory=t||new Xt,this.precisionModel=this.geometryFactory.getPrecisionModel(),this.parser=new Ms(this.geometryFactory)}function oo(){this.parser=new Ms(this.geometryFactory)}function Qu(t){this.geometryFactory=t||new Xt,this.precisionModel=this.geometryFactory.getPrecisionModel(),this.parser=new Xi(this.geometryFactory)}function As(t){return[t.x,t.y]}function $u(t){this.geometryFactory=t||new Xt}function vi(){if(this.noder=null,this.scaleFactor=null,this.offsetX=null,this.offsetY=null,this.isScaled=!1,arguments.length===2){var t=arguments[0],e=arguments[1];vi.call(this,t,e,0,0)}else if(arguments.length===4){var n=arguments[0],l=arguments[1];this.noder=n,this.scaleFactor=l,this.isScaled=!this.isIntegerPrecision()}}function ao(){if(this.inputGeom=null,this.isClosedEndpointsInInterior=!0,this.nonSimpleLocation=null,arguments.length===1){var t=arguments[0];this.inputGeom=t}else if(arguments.length===2){var e=arguments[0],n=arguments[1];this.inputGeom=e,this.isClosedEndpointsInInterior=!n.isInBoundary(2)}}function yi(){this.pt=null,this.isClosed=null,this.degree=null;var t=arguments[0];this.pt=t,this.isClosed=!1,this.degree=0}function Oe(){if(this.quadrantSegments=Oe.DEFAULT_QUADRANT_SEGMENTS,this.endCapStyle=Oe.CAP_ROUND,this.joinStyle=Oe.JOIN_ROUND,this.mitreLimit=Oe.DEFAULT_MITRE_LIMIT,this._isSingleSided=!1,this.simplifyFactor=Oe.DEFAULT_SIMPLIFY_FACTOR,arguments.length!==0){if(arguments.length===1){var t=arguments[0];this.setQuadrantSegments(t)}else if(arguments.length===2){var e=arguments[0],n=arguments[1];this.setQuadrantSegments(e),this.setEndCapStyle(n)}else if(arguments.length===4){var l=arguments[0],h=arguments[1],p=arguments[2],x=arguments[3];this.setQuadrantSegments(l),this.setEndCapStyle(h),this.setJoinStyle(p),this.setMitreLimit(x)}}}function Bo(){this.minIndex=-1,this.minCoord=null,this.minDe=null,this.orientedDe=null}function zo(){this.array_=[]}function zr(){this.finder=null,this.dirEdgeList=new F,this.nodes=new F,this.rightMostCoord=null,this.env=null,this.finder=new Bo}function Nn(){this.inputLine=null,this.distanceTol=null,this.isDeleted=null,this.angleOrientation=Ot.COUNTERCLOCKWISE;var t=arguments[0];this.inputLine=t}function Ds(){this.ptList=null,this.precisionModel=null,this.minimimVertexDistance=0,this.ptList=new F}function $n(){this.maxCurveSegmentError=0,this.filletAngleQuantum=null,this.closingSegLengthFactor=1,this.segList=null,this.distance=0,this.precisionModel=null,this.bufParams=null,this.li=null,this.s0=null,this.s1=null,this.s2=null,this.seg0=new re,this.seg1=new re,this.offset0=new re,this.offset1=new re,this.side=0,this._hasNarrowConcaveAngle=!1;var t=arguments[0],e=arguments[1],n=arguments[2];this.precisionModel=t,this.bufParams=e,this.li=new ie,this.filletAngleQuantum=Math.PI/2/e.getQuadrantSegments(),e.getQuadrantSegments()>=8&&e.getJoinStyle()===Oe.JOIN_ROUND&&(this.closingSegLengthFactor=$n.MAX_CLOSING_SEG_LEN_FACTOR),this.init(n)}function uo(){this.distance=0,this.precisionModel=null,this.bufParams=null;var t=arguments[0],e=arguments[1];this.precisionModel=t,this.bufParams=e}function os(){this.subgraphs=null,this.seg=new re,this.cga=new Ot;var t=arguments[0];this.subgraphs=t}function Bi(){this.upwardSeg=null,this.leftDepth=null;var t=arguments[0],e=arguments[1];this.upwardSeg=new re(t),this.leftDepth=e}function Go(){this.inputGeom=null,this.distance=null,this.curveBuilder=null,this.curveList=new F;var t=arguments[0],e=arguments[1],n=arguments[2];this.inputGeom=t,this.distance=e,this.curveBuilder=n}function Rs(){this._hasIntersection=!1,this.hasProper=!1,this.hasProperInterior=!1,this.hasInterior=!1,this.properIntersectionPoint=null,this.li=null,this.isSelfIntersection=null,this.numIntersections=0,this.numInteriorIntersections=0,this.numProperIntersections=0,this.numTests=0;var t=arguments[0];this.li=t}function zi(){this.bufParams=null,this.workingPrecisionModel=null,this.workingNoder=null,this.geomFact=null,this.graph=null,this.edgeList=new kr;var t=arguments[0];this.bufParams=t}function js(){this.li=new ie,this.segStrings=null;var t=arguments[0];this.segStrings=t}function as(){this.li=null,this.pt=null,this.originalPt=null,this.ptScaled=null,this.p0Scaled=null,this.p1Scaled=null,this.scaleFactor=null,this.minx=null,this.maxx=null,this.miny=null,this.maxy=null,this.corner=new Array(4).fill(null),this.safeEnv=null;var t=arguments[0],e=arguments[1],n=arguments[2];if(this.originalPt=t,this.pt=t,this.scaleFactor=e,this.li=n,0>=e)throw new f;e!==1&&(this.pt=new O(this.scale(t.x),this.scale(t.y)),this.p0Scaled=new O,this.p1Scaled=new O),this.initCorners(this.pt)}function Ci(){this.tempEnv1=new U,this.selectedSegment=new re}function lo(){this.index=null;var t=arguments[0];this.index=t}function ks(){Ci.apply(this),this.hotPixel=null,this.parentEdge=null,this.hotPixelVertexIndex=null,this._isNodeAdded=!1;var t=arguments[0],e=arguments[1],n=arguments[2];this.hotPixel=t,this.parentEdge=e,this.hotPixelVertexIndex=n}function Ba(){this.li=null,this.interiorIntersections=null;var t=arguments[0];this.li=t,this.interiorIntersections=new F}function qo(){this.pm=null,this.li=null,this.scaleFactor=null,this.noder=null,this.pointSnapper=null,this.nodedSegStrings=null;var t=arguments[0];this.pm=t,this.li=new ie,this.li.setPrecisionModel(t),this.scaleFactor=t.getScale()}function Sn(){if(this.argGeom=null,this.distance=null,this.bufParams=new Oe,this.resultGeometry=null,this.saveException=null,arguments.length===1){var t=arguments[0];this.argGeom=t}else if(arguments.length===2){var e=arguments[0],n=arguments[1];this.argGeom=e,this.bufParams=n}}function us(){this.comps=null;var t=arguments[0];this.comps=t}function u(){if(this.component=null,this.segIndex=null,this.pt=null,arguments.length===2){var t=arguments[0],e=arguments[1];u.call(this,t,u.INSIDE_AREA,e)}else if(arguments.length===3){var n=arguments[0],l=arguments[1],h=arguments[2];this.component=n,this.segIndex=l,this.pt=h}}function d(){this.pts=null;var t=arguments[0];this.pts=t}function v(){this.locations=null;var t=arguments[0];this.locations=t}function E(){if(this.geom=null,this.terminateDistance=0,this.ptLocator=new oi,this.minDistanceLocation=null,this.minDistance=g.MAX_VALUE,arguments.length===2){var t=arguments[0],e=arguments[1];E.call(this,t,e,0)}else if(arguments.length===3){var n=arguments[0],l=arguments[1],h=arguments[2];this.geom=new Array(2).fill(null),this.geom[0]=n,this.geom[1]=l,this.terminateDistance=h}}function T(){this.factory=null,this.directedEdges=new F,this.coordinates=null;var t=arguments[0];this.factory=t}function B(){this._isMarked=!1,this._isVisited=!1,this.data=null}function tt(){B.apply(this),this.parentEdge=null,this.from=null,this.to=null,this.p0=null,this.p1=null,this.sym=null,this.edgeDirection=null,this.quadrant=null,this.angle=null;var t=arguments[0],e=arguments[1],n=arguments[2],l=arguments[3];this.from=t,this.to=e,this.edgeDirection=l,this.p0=t.getCoordinate(),this.p1=n;var h=this.p1.x-this.p0.x,p=this.p1.y-this.p0.y;this.quadrant=xe.quadrant(h,p),this.angle=Math.atan2(p,h)}function ht(){var t=arguments[0],e=arguments[1],n=arguments[2],l=arguments[3];tt.call(this,t,e,n,l)}function dt(){if(B.apply(this),this.dirEdge=null,arguments.length!==0){if(arguments.length===2){var t=arguments[0],e=arguments[1];this.setDirectedEdges(t,e)}}}function Lt(){this.outEdges=new F,this.sorted=!1}function zt(){if(B.apply(this),this.pt=null,this.deStar=null,arguments.length===1){var t=arguments[0];zt.call(this,t,new Lt)}else if(arguments.length===2){var e=arguments[0],n=arguments[1];this.pt=e,this.deStar=n}}function se(){dt.apply(this),this.line=null;var t=arguments[0];this.line=t}function Ee(){this.nodeMap=new Bt}function Ln(){this.edges=new gt,this.dirEdges=new gt,this.nodeMap=new Ee}function En(){Ln.apply(this)}function ar(){this.graph=new En,this.mergedLineStrings=null,this.factory=null,this.edgeStrings=null}function Gn(){this.edgeRing=null,this.next=null,this.label=-1;var t=arguments[0],e=arguments[1],n=arguments[2],l=arguments[3];tt.call(this,t,e,n,l)}function _i(){dt.apply(this),this.line=null;var t=arguments[0];this.line=t}function Sr(){this.factory=null,this.deList=new F,this.lowestEdge=null,this.ring=null,this.ringPts=null,this.holes=null,this.shell=null,this._isHole=null,this._isProcessed=!1,this._isIncludedSet=!1,this._isIncluded=!1;var t=arguments[0];this.factory=t}function za(){}function yn(){Ln.apply(this),this.factory=null;var t=arguments[0];this.factory=t}function Yn(){if(this.lineStringAdder=new Vo(this),this.graph=null,this.dangles=new F,this.cutEdges=new F,this.invalidRingLines=new F,this.holeList=null,this.shellList=null,this.polyList=null,this.isCheckingRingsValid=!0,this.extractOnlyPolygonal=null,this.geomFactory=null,arguments.length===0)Yn.call(this,!1);else if(arguments.length===1){var t=arguments[0];this.extractOnlyPolygonal=t}}function Vo(){this.p=null;var t=arguments[0];this.p=t}function co(){}function dn(){if(this.edgeEnds=new F,arguments.length===1){var t=arguments[0];dn.call(this,null,t)}else if(arguments.length===2){var e=arguments[1];br.call(this,e.getEdge(),e.getCoordinate(),e.getDirectedCoordinate(),new tn(e.getLabel())),this.insert(e)}}function ls(){Ai.apply(this)}function Uo(){var t=arguments[0],e=arguments[1];Vn.call(this,t,e)}function ho(){rs.apply(this)}function Ho(){this.li=new ie,this.ptLocator=new oi,this.arg=null,this.nodes=new ns(new ho),this.im=null,this.isolatedEdges=new F,this.invalidPoint=null;var t=arguments[0];this.arg=t}function cs(){this.rectEnv=null;var t=arguments[0];this.rectEnv=t.getEnvelopeInternal()}function Zo(){this.li=new ie,this.rectEnv=null,this.diagUp0=null,this.diagUp1=null,this.diagDown0=null,this.diagDown1=null;var t=arguments[0];this.rectEnv=t,this.diagUp0=new O(t.getMinX(),t.getMinY()),this.diagUp1=new O(t.getMaxX(),t.getMaxY()),this.diagDown0=new O(t.getMinX(),t.getMaxY()),this.diagDown1=new O(t.getMaxX(),t.getMinY())}function Gi(){this._isDone=!1}function Wo(){this.rectangle=null,this.rectEnv=null;var t=arguments[0];this.rectangle=t,this.rectEnv=t.getEnvelopeInternal()}function tl(){Gi.apply(this),this.rectEnv=null,this._intersects=!1;var t=arguments[0];this.rectEnv=t}function el(){Gi.apply(this),this.rectSeq=null,this.rectEnv=null,this._containsPoint=!1;var t=arguments[0];this.rectSeq=t.getExteriorRing().getCoordinateSequence(),this.rectEnv=t.getEnvelopeInternal()}function nl(){Gi.apply(this),this.rectEnv=null,this.rectIntersector=null,this.hasIntersection=!1,this.p0=new O,this.p1=new O;var t=arguments[0];this.rectEnv=t.getEnvelopeInternal(),this.rectIntersector=new Zo(this.rectEnv)}function Ae(){if(this._relate=null,arguments.length===2){var t=arguments[0],e=arguments[1];jr.call(this,t,e),this._relate=new Ho(this.arg)}else if(arguments.length===3){var n=arguments[0],l=arguments[1],h=arguments[2];jr.call(this,n,l,h),this._relate=new Ho(this.arg)}}function Lr(){this.geomFactory=null,this.skipEmpty=!1,this.inputGeoms=null;var t=arguments[0];this.geomFactory=Lr.extractFactory(t),this.inputGeoms=t}function Ga(){this.pointGeom=null,this.otherGeom=null,this.geomFact=null;var t=arguments[0],e=arguments[1];this.pointGeom=t,this.otherGeom=e,this.geomFact=e.getFactory()}function Fs(){this.sortIndex=-1,this.comps=null;var t=arguments[0],e=arguments[1];this.sortIndex=t,this.comps=e}function Gr(){this.inputPolys=null,this.geomFactory=null;var t=arguments[0];this.inputPolys=t,this.inputPolys===null&&(this.inputPolys=new F)}function Bs(){if(this.polygons=new F,this.lines=new F,this.points=new F,this.geomFact=null,arguments.length===1){if(ot(arguments[0],k)){var t=arguments[0];this.extract(t)}else if(arguments[0]instanceof nt){var e=arguments[0];this.extract(e)}}else if(arguments.length===2){var n=arguments[0],l=arguments[1];this.geomFact=l,this.extract(n)}}function qa(){this.geometryFactory=new Xt,this.geomGraph=null,this.disconnectedRingcoord=null;var t=arguments[0];this.geomGraph=t}function bi(){this.items=new F,this.subnode=[null,null]}function qi(){if(this.min=null,this.max=null,arguments.length===0)this.min=0,this.max=0;else if(arguments.length===1){var t=arguments[0];this.init(t.min,t.max)}else if(arguments.length===2){var e=arguments[0],n=arguments[1];this.init(e,n)}}function Va(){this.pt=0,this.level=0,this.interval=null;var t=arguments[0];this.computeKey(t)}function hs(){bi.apply(this),this.interval=null,this.centre=null,this.level=null;var t=arguments[0],e=arguments[1];this.interval=t,this.level=e,this.centre=(t.getMin()+t.getMax())/2}function Yo(){bi.apply(this)}function Xo(){this.root=null,this.minExtent=1,this.root=new Yo}function tf(){}function rl(){this.ring=null,this.tree=null,this.crossings=0,this.interval=new qi;var t=arguments[0];this.ring=t,this.buildIndex()}function Ua(){Ci.apply(this),this.mcp=null,this.p=null;var t=arguments[0],e=arguments[1];this.mcp=t,this.p=e}function ef(){this.nodes=new ns(new ho)}function nf(){this.li=new ie,this.geomGraph=null,this.nodeGraph=new ef,this.invalidPoint=null;var t=arguments[0];this.geomGraph=t}function rf(){this.graph=null,this.rings=new F,this.totalEnv=new U,this.index=null,this.nestedPt=null;var t=arguments[0];this.graph=t}function Ie(){if(this.errorType=null,this.pt=null,arguments.length===1){var t=arguments[0];Ie.call(this,t,null)}else if(arguments.length===2){var e=arguments[0],n=arguments[1];this.errorType=e,n!==null&&(this.pt=n.copy())}}function qr(){this.parentGeometry=null,this.isSelfTouchingRingFormingHoleValid=!1,this.validErr=null;var t=arguments[0];this.parentGeometry=t}function il(){bn.CoordinateOperation.apply(this),this.targetPM=null,this.removeCollapsed=!0;var t=arguments[0],e=arguments[1];this.targetPM=t,this.removeCollapsed=e}function fo(){this.targetPM=null,this.removeCollapsed=!0,this.changePrecisionModel=!1,this.isPointwise=!1;var t=arguments[0];this.targetPM=t}function Ha(){this.pts=null,this.usePt=null,this.distanceTolerance=null,this.seg=new re;var t=arguments[0];this.pts=t}function Ko(){this.inputGeom=null,this.distanceTolerance=null,this.isEnsureValidTopology=!0;var t=arguments[0];this.inputGeom=t}function Za(){Tn.apply(this),this.isEnsureValidTopology=!0,this.distanceTolerance=null;var t=arguments[0],e=arguments[1];this.isEnsureValidTopology=t,this.distanceTolerance=e}function Wa(){if(this.parent=null,this.index=null,arguments.length===2){var t=arguments[0],e=arguments[1];Wa.call(this,t,e,null,-1)}else if(arguments.length===4){var n=arguments[0],l=arguments[1],h=arguments[2],p=arguments[3];re.call(this,n,l),this.parent=h,this.index=p}}function fs(){if(this.parentLine=null,this.segs=null,this.resultSegs=new F,this.minimumSize=null,arguments.length===1){var t=arguments[0];fs.call(this,t,2)}else if(arguments.length===2){var e=arguments[0],n=arguments[1];this.parentLine=e,this.minimumSize=n,this.init()}}function Jo(){this.index=new Hn}function sf(){this.querySeg=null,this.items=new F;var t=arguments[0];this.querySeg=t}function Ya(){this.li=new ie,this.inputIndex=new Jo,this.outputIndex=new Jo,this.line=null,this.linePts=null,this.distanceTolerance=0;var t=arguments[0],e=arguments[1];this.inputIndex=t,this.outputIndex=e}function of(){this.inputIndex=new Jo,this.outputIndex=new Jo,this.distanceTolerance=0}function go(){this.inputGeom=null,this.lineSimplifier=new of,this.linestringMap=null;var t=arguments[0];this.inputGeom=t}function Xa(){Tn.apply(this),this.linestringMap=null;var t=arguments[0];this.linestringMap=t}function sl(){this.tps=null;var t=arguments[0];this.tps=t}function Qo(){this.seg=null,this.segLen=null,this.splitPt=null,this.minimumLen=0;var t=arguments[0];this.seg=t,this.segLen=t.getLength()}function af(){}function Ka(){}function Qe(){}function qe(){if(this.p=null,arguments.length===1){var t=arguments[0];this.p=new O(t)}else if(arguments.length===2){var e=arguments[0],n=arguments[1];this.p=new O(e,n)}else if(arguments.length===3){var l=arguments[0],h=arguments[1],p=arguments[2];this.p=new O(l,h,p)}}function zs(){this._isOnConstraint=null,this.constraint=null;var t=arguments[0];qe.call(this,t)}function an(){this._rot=null,this.vertex=null,this.next=null,this.data=null}function Ja(){this.subdiv=null,this.isUsingTolerance=!1;var t=arguments[0];this.subdiv=t,this.isUsingTolerance=t.getTolerance()>0}function uf(){}function al(){this.subdiv=null,this.lastEdge=null;var t=arguments[0];this.subdiv=t,this.init()}function $o(){if(this.seg=null,arguments.length===1){if(typeof arguments[0]=="string"){var t=arguments[0];b.call(this,t)}else if(arguments[0]instanceof re){var e=arguments[0];b.call(this,"Locate failed to converge (at edge: "+e+").  Possible causes include invalid Subdivision topology or very close sites"),this.seg=new re(e)}}else if(arguments.length===2){var n=arguments[0],l=arguments[1];b.call(this,$o.msgWithSpatial(n,l)),this.seg=new re(l)}}function ta(){}function Ir(){this.visitedKey=0,this.quadEdges=new F,this.startingEdge=null,this.tolerance=null,this.edgeCoincidenceTolerance=null,this.frameVertex=new Array(3).fill(null),this.frameEnv=null,this.locator=null,this.seg=new re,this.triEdges=new Array(3).fill(null);var t=arguments[0],e=arguments[1];this.tolerance=e,this.edgeCoincidenceTolerance=e/Ir.EDGE_COINCIDENCE_TOL_FACTOR,this.createFrame(t),this.startingEdge=this.initSubdiv(),this.locator=new al(this)}function ul(){}function ll(){this.triList=new F}function cl(){this.triList=new F}function hl(){this.coordList=new H,this.triCoords=new F}function mo(){if(this.ls=null,this.data=null,arguments.length===2){var t=arguments[0],e=arguments[1];this.ls=new re(t,e)}else if(arguments.length===3){var n=arguments[0],l=arguments[1],h=arguments[2];this.ls=new re(n,l),this.data=h}else if(arguments.length===6){var p=arguments[0],x=arguments[1],I=arguments[2],z=arguments[3],X=arguments[4],lt=arguments[5];mo.call(this,new O(p,x,I),new O(z,X,lt))}else if(arguments.length===7){var ft=arguments[0],Et=arguments[1],qt=arguments[2],te=arguments[3],oe=arguments[4],Xe=arguments[5],Cn=arguments[6];mo.call(this,new O(ft,Et,qt),new O(te,oe,Xe),Cn)}}function Qa(){}function fl(){if(this.p=null,this.data=null,this.left=null,this.right=null,this.count=null,arguments.length===2){var t=arguments[0],e=arguments[1];this.p=new O(t),this.left=null,this.right=null,this.count=1,this.data=e}else if(arguments.length===3){var n=arguments[0],l=arguments[1],h=arguments[2];this.p=new O(n,l),this.left=null,this.right=null,this.count=1,this.data=h}}function po(){if(this.root=null,this.numberOfNodes=null,this.tolerance=null,arguments.length===0)po.call(this,0);else if(arguments.length===1){var t=arguments[0];this.tolerance=t}}function dl(){this.tolerance=null,this.matchNode=null,this.matchDist=0,this.p=null;var t=arguments[0],e=arguments[1];this.p=t,this.tolerance=e}function Gs(){this.initialVertices=null,this.segVertices=null,this.segments=new F,this.subdiv=null,this.incDel=null,this.convexHull=null,this.splitFinder=new Ka,this.kdt=null,this.vertexFactory=null,this.computeAreaEnv=null,this.splitPt=null,this.tolerance=null;var t=arguments[0],e=arguments[1];this.initialVertices=new F(t),this.tolerance=e,this.kdt=new po(e)}function Xn(){this.siteCoords=null,this.tolerance=0,this.subdiv=null}function ea(){this.siteCoords=null,this.constraintLines=null,this.tolerance=0,this.subdiv=null,this.constraintVertexMap=new Bt}function $a(){this.siteCoords=null,this.tolerance=0,this.subdiv=null,this.clipEnv=null,this.diagramEnv=null}function gl(){}Array.prototype.fill||(Array.prototype.fill=function(t){for(var e=Object(this),n=parseInt(e.length,10),l=arguments[1],h=parseInt(l,10)||0,p=0>h?Math.max(n+h,0):Math.min(h,n),x=arguments[2],I=x===void 0?n:parseInt(x,10)||0,z=0>I?Math.max(n+I,0):Math.min(I,n);z>p;p++)e[p]=t;return e}),Number.isFinite=Number.isFinite||function(t){return typeof t=="number"&&isFinite(t)},Number.isInteger=Number.isInteger||function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t},Number.parseFloat=Number.parseFloat||parseFloat,Number.isNaN=Number.isNaN||function(t){return t!==t},Math.trunc=Math.trunc||function(t){return 0>t?Math.ceil(t):Math.floor(t)},s(c.prototype,{interfaces_:function(){return[]},getClass:function(){return c}}),c.equalsWithTolerance=function(t,e,n){return Math.abs(t-e)<=n},g.isNaN=function(t){return Number.isNaN(t)},g.doubleToLongBits=function(t){return t},g.longBitsToDouble=function(t){return t},g.isInfinite=function(t){return!Number.isFinite(t)},g.MAX_VALUE=Number.MAX_VALUE,w(S,b),s(S.prototype,{interfaces_:function(){return[]},getClass:function(){return S}}),s(P.prototype,{interfaces_:function(){return[]},getClass:function(){return P}}),P.shouldNeverReachHere=function(){if(arguments.length===0)P.shouldNeverReachHere(null);else if(arguments.length===1){var t=arguments[0];throw new S("Should never reach here"+(t!==null?": "+t:""))}},P.isTrue=function(){if(arguments.length===1){var t=arguments[0];P.isTrue(t,null)}else if(arguments.length===2){var e=arguments[0],n=arguments[1];if(!e)throw n===null?new S:new S(n)}},P.equals=function(){if(arguments.length===2){var t=arguments[0],e=arguments[1];P.equals(t,e,null)}else if(arguments.length===3){var n=arguments[0],l=arguments[1],h=arguments[2];if(!l.equals(n))throw new S("Expected "+n+" but encountered "+l+(h!==null?": "+h:""))}},s(O.prototype,{setOrdinate:function(t,e){switch(t){case O.X:this.x=e;break;case O.Y:this.y=e;break;case O.Z:this.z=e;break;default:throw new f}},equals2D:function(){if(arguments.length===1){var t=arguments[0];return this.x!==t.x?!1:this.y===t.y}if(arguments.length===2){var e=arguments[0],n=arguments[1];return c.equalsWithTolerance(this.x,e.x,n)?!!c.equalsWithTolerance(this.y,e.y,n):!1}},getOrdinate:function(t){switch(t){case O.X:return this.x;case O.Y:return this.y;case O.Z:return this.z}throw new f},equals3D:function(t){return this.x===t.x&&this.y===t.y&&(this.z===t.z||g.isNaN(this.z)&&g.isNaN(t.z))},equals:function(t){return t instanceof O?this.equals2D(t):!1},equalInZ:function(t,e){return c.equalsWithTolerance(this.z,t.z,e)},compareTo:function(t){var e=t;return this.x<e.x?-1:this.x>e.x?1:this.y<e.y?-1:this.y>e.y?1:0},clone:function(){try{var t=null;return t}catch(e){if(e instanceof CloneNotSupportedException)return P.shouldNeverReachHere("this shouldn't happen because this class is Cloneable"),null;throw e}finally{}},copy:function(){return new O(this)},toString:function(){return"("+this.x+", "+this.y+", "+this.z+")"},distance3D:function(t){var e=this.x-t.x,n=this.y-t.y,l=this.z-t.z;return Math.sqrt(e*e+n*n+l*l)},distance:function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},hashCode:function(){var t=17;return t=37*t+O.hashCode(this.x),t=37*t+O.hashCode(this.y)},setCoordinate:function(t){this.x=t.x,this.y=t.y,this.z=t.z},interfaces_:function(){return[m,y,_]},getClass:function(){return O}}),O.hashCode=function(){if(arguments.length===1){var t=arguments[0],e=g.doubleToLongBits(t);return Math.trunc(e^e>>>32)}},s(q.prototype,{compare:function(t,e){var n=t,l=e,h=q.compare(n.x,l.x);if(h!==0)return h;var p=q.compare(n.y,l.y);if(p!==0)return p;if(this.dimensionsToTest<=2)return 0;var x=q.compare(n.z,l.z);return x},interfaces_:function(){return[C]},getClass:function(){return q}}),q.compare=function(t,e){return e>t?-1:t>e?1:g.isNaN(t)?g.isNaN(e)?0:-1:g.isNaN(e)?1:0},O.DimensionalComparator=q,O.serialVersionUID=6683108902428367e3,O.NULL_ORDINATE=g.NaN,O.X=0,O.Y=1,O.Z=2,G.prototype.hasNext=function(){},G.prototype.next=function(){},G.prototype.remove=function(){},k.prototype.add=function(){},k.prototype.addAll=function(){},k.prototype.isEmpty=function(){},k.prototype.iterator=function(){},k.prototype.size=function(){},k.prototype.toArray=function(){},k.prototype.remove=function(){},A.prototype=new Error,A.prototype.name="IndexOutOfBoundsException",R.prototype=Object.create(k.prototype),R.prototype.constructor=R,R.prototype.get=function(){},R.prototype.set=function(){},R.prototype.isEmpty=function(){},j.prototype=new Error,j.prototype.name="NoSuchElementException",W.prototype=new Error,W.prototype.name="OperationNotSupported",F.prototype=Object.create(R.prototype),F.prototype.constructor=F,F.prototype.ensureCapacity=function(){},F.prototype.interfaces_=function(){return[R,k]},F.prototype.add=function(t){return this.array_.push(t),!0},F.prototype.clear=function(){this.array_=[]},F.prototype.addAll=function(t){for(var e=t.iterator();e.hasNext();)this.add(e.next());return!0},F.prototype.set=function(t,e){var n=this.array_[t];return this.array_[t]=e,n},F.prototype.iterator=function(){return new tu(this)},F.prototype.get=function(t){if(0>t||t>=this.size())throw new A;return this.array_[t]},F.prototype.isEmpty=function(){return this.array_.length===0},F.prototype.size=function(){return this.array_.length},F.prototype.toArray=function(){for(var t=[],e=0,n=this.array_.length;n>e;e++)t.push(this.array_[e]);return t},F.prototype.remove=function(t){for(var e=!1,n=0,l=this.array_.length;l>n;n++)if(this.array_[n]===t){this.array_.splice(n,1),e=!0;break}return e};var tu=function(t){this.arrayList_=t,this.position_=0};tu.prototype.next=function(){if(this.position_===this.arrayList_.size())throw new j;return this.arrayList_.get(this.position_++)},tu.prototype.hasNext=function(){return this.position_<this.arrayList_.size()},tu.prototype.set=function(t){return this.arrayList_.set(this.position_-1,t)},tu.prototype.remove=function(){throw new W},w(H,F),s(H.prototype,{getCoordinate:function(t){return this.get(t)},addAll:function(){if(arguments.length===2){for(var t=arguments[0],e=arguments[1],n=!1,l=t.iterator();l.hasNext();)this.add(l.next(),e),n=!0;return n}return F.prototype.addAll.apply(this,arguments)},clone:function(){for(var e=F.prototype.clone.call(this),n=0;n<this.size();n++)e.add(n,this.get(n).copy());return e},toCoordinateArray:function(){return this.toArray(H.coordArrayType)},add:function(){if(arguments.length===1){var t=arguments[0];F.prototype.add.call(this,t)}else if(arguments.length===2){if(arguments[0]instanceof Array&&typeof arguments[1]=="boolean"){var e=arguments[0],n=arguments[1];return this.add(e,n,!0),!0}if(arguments[0]instanceof O&&typeof arguments[1]=="boolean"){var l=arguments[0],h=arguments[1];if(!h&&this.size()>=1){var p=this.get(this.size()-1);if(p.equals2D(l))return null}F.prototype.add.call(this,l)}else if(arguments[0]instanceof Object&&typeof arguments[1]=="boolean"){var x=arguments[0],I=arguments[1];return this.add(x,I),!0}}else if(arguments.length===3){if(typeof arguments[2]=="boolean"&&arguments[0]instanceof Array&&typeof arguments[1]=="boolean"){var z=arguments[0],X=arguments[1],lt=arguments[2];if(lt)for(var ft=0;ft<z.length;ft++)this.add(z[ft],X);else for(var ft=z.length-1;ft>=0;ft--)this.add(z[ft],X);return!0}if(typeof arguments[2]=="boolean"&&Number.isInteger(arguments[0])&&arguments[1]instanceof O){var Et=arguments[0],qt=arguments[1],te=arguments[2];if(!te){var oe=this.size();if(oe>0){if(Et>0){var Xe=this.get(Et-1);if(Xe.equals2D(qt))return null}if(oe>Et){var Cn=this.get(Et);if(Cn.equals2D(qt))return null}}}F.prototype.add.call(this,Et,qt)}}else if(arguments.length===4){var Jr=arguments[0],vo=arguments[1],vl=arguments[2],yl=arguments[3],Cl=1;vl>yl&&(Cl=-1);for(var ft=vl;ft!==yl;ft+=Cl)this.add(Jr[ft],vo);return!0}},closeRing:function(){this.size()>0&&this.add(new O(this.get(0)),!1)},interfaces_:function(){return[]},getClass:function(){return H}}),H.coordArrayType=new Array(0).fill(null),s(U.prototype,{getArea:function(){return this.getWidth()*this.getHeight()},equals:function(t){if(!(t instanceof U))return!1;var e=t;return this.isNull()?e.isNull():this.maxx===e.getMaxX()&&this.maxy===e.getMaxY()&&this.minx===e.getMinX()&&this.miny===e.getMinY()},intersection:function(t){if(this.isNull()||t.isNull()||!this.intersects(t))return new U;var e=this.minx>t.minx?this.minx:t.minx,n=this.miny>t.miny?this.miny:t.miny,l=this.maxx<t.maxx?this.maxx:t.maxx,h=this.maxy<t.maxy?this.maxy:t.maxy;return new U(e,l,n,h)},isNull:function(){return this.maxx<this.minx},getMaxX:function(){return this.maxx},covers:function(){if(arguments.length===1){if(arguments[0]instanceof O){var t=arguments[0];return this.covers(t.x,t.y)}if(arguments[0]instanceof U){var e=arguments[0];return this.isNull()||e.isNull()?!1:e.getMinX()>=this.minx&&e.getMaxX()<=this.maxx&&e.getMinY()>=this.miny&&e.getMaxY()<=this.maxy}}else if(arguments.length===2){var n=arguments[0],l=arguments[1];return this.isNull()?!1:n>=this.minx&&n<=this.maxx&&l>=this.miny&&l<=this.maxy}},intersects:function(){if(arguments.length===1){if(arguments[0]instanceof U){var t=arguments[0];return this.isNull()||t.isNull()?!1:!(t.minx>this.maxx||t.maxx<this.minx||t.miny>this.maxy||t.maxy<this.miny)}if(arguments[0]instanceof O){var e=arguments[0];return this.intersects(e.x,e.y)}}else if(arguments.length===2){var n=arguments[0],l=arguments[1];return this.isNull()?!1:!(n>this.maxx||n<this.minx||l>this.maxy||l<this.miny)}},getMinY:function(){return this.miny},getMinX:function(){return this.minx},expandToInclude:function(){if(arguments.length===1){if(arguments[0]instanceof O){var t=arguments[0];this.expandToInclude(t.x,t.y)}else if(arguments[0]instanceof U){var e=arguments[0];if(e.isNull())return null;this.isNull()?(this.minx=e.getMinX(),this.maxx=e.getMaxX(),this.miny=e.getMinY(),this.maxy=e.getMaxY()):(e.minx<this.minx&&(this.minx=e.minx),e.maxx>this.maxx&&(this.maxx=e.maxx),e.miny<this.miny&&(this.miny=e.miny),e.maxy>this.maxy&&(this.maxy=e.maxy))}}else if(arguments.length===2){var n=arguments[0],l=arguments[1];this.isNull()?(this.minx=n,this.maxx=n,this.miny=l,this.maxy=l):(n<this.minx&&(this.minx=n),n>this.maxx&&(this.maxx=n),l<this.miny&&(this.miny=l),l>this.maxy&&(this.maxy=l))}},minExtent:function(){if(this.isNull())return 0;var t=this.getWidth(),e=this.getHeight();return e>t?t:e},getWidth:function(){return this.isNull()?0:this.maxx-this.minx},compareTo:function(t){var e=t;return this.isNull()?e.isNull()?0:-1:e.isNull()?1:this.minx<e.minx?-1:this.minx>e.minx?1:this.miny<e.miny?-1:this.miny>e.miny?1:this.maxx<e.maxx?-1:this.maxx>e.maxx?1:this.maxy<e.maxy?-1:this.maxy>e.maxy?1:0},translate:function(t,e){return this.isNull()?null:void this.init(this.getMinX()+t,this.getMaxX()+t,this.getMinY()+e,this.getMaxY()+e)},toString:function(){return"Env["+this.minx+" : "+this.maxx+", "+this.miny+" : "+this.maxy+"]"},setToNull:function(){this.minx=0,this.maxx=-1,this.miny=0,this.maxy=-1},getHeight:function(){return this.isNull()?0:this.maxy-this.miny},maxExtent:function(){if(this.isNull())return 0;var t=this.getWidth(),e=this.getHeight();return t>e?t:e},expandBy:function(){if(arguments.length===1){var t=arguments[0];this.expandBy(t,t)}else if(arguments.length===2){var e=arguments[0],n=arguments[1];if(this.isNull())return null;this.minx-=e,this.maxx+=e,this.miny-=n,this.maxy+=n,(this.minx>this.maxx||this.miny>this.maxy)&&this.setToNull()}},contains:function(){if(arguments.length===1){if(arguments[0]instanceof U){var t=arguments[0];return this.covers(t)}if(arguments[0]instanceof O){var e=arguments[0];return this.covers(e)}}else if(arguments.length===2){var n=arguments[0],l=arguments[1];return this.covers(n,l)}},centre:function(){return this.isNull()?null:new O((this.getMinX()+this.getMaxX())/2,(this.getMinY()+this.getMaxY())/2)},init:function(){if(arguments.length===0)this.setToNull();else if(arguments.length===1){if(arguments[0]instanceof O){var t=arguments[0];this.init(t.x,t.x,t.y,t.y)}else if(arguments[0]instanceof U){var e=arguments[0];this.minx=e.minx,this.maxx=e.maxx,this.miny=e.miny,this.maxy=e.maxy}}else if(arguments.length===2){var n=arguments[0],l=arguments[1];this.init(n.x,l.x,n.y,l.y)}else if(arguments.length===4){var h=arguments[0],p=arguments[1],x=arguments[2],I=arguments[3];p>h?(this.minx=h,this.maxx=p):(this.minx=p,this.maxx=h),I>x?(this.miny=x,this.maxy=I):(this.miny=I,this.maxy=x)}},getMaxY:function(){return this.maxy},distance:function(t){if(this.intersects(t))return 0;var e=0;this.maxx<t.minx?e=t.minx-this.maxx:this.minx>t.maxx&&(e=this.minx-t.maxx);var n=0;return this.maxy<t.miny?n=t.miny-this.maxy:this.miny>t.maxy&&(n=this.miny-t.maxy),e===0?n:n===0?e:Math.sqrt(e*e+n*n)},hashCode:function(){var t=17;return t=37*t+O.hashCode(this.minx),t=37*t+O.hashCode(this.maxx),t=37*t+O.hashCode(this.miny),t=37*t+O.hashCode(this.maxy)},interfaces_:function(){return[m,_]},getClass:function(){return U}}),U.intersects=function(){if(arguments.length===3){var t=arguments[0],e=arguments[1],n=arguments[2];return n.x>=(t.x<e.x?t.x:e.x)&&n.x<=(t.x>e.x?t.x:e.x)&&n.y>=(t.y<e.y?t.y:e.y)&&n.y<=(t.y>e.y?t.y:e.y)}if(arguments.length===4){var l=arguments[0],h=arguments[1],p=arguments[2],x=arguments[3],I=Math.min(p.x,x.x),z=Math.max(p.x,x.x),X=Math.min(l.x,h.x),lt=Math.max(l.x,h.x);return X>z||I>lt?!1:(I=Math.min(p.y,x.y),z=Math.max(p.y,x.y),X=Math.min(l.y,h.y),lt=Math.max(l.y,h.y),X>z?!1:!(I>lt))}},U.serialVersionUID=5873921885273102e3,w(Y,it),s(Y.prototype,{interfaces_:function(){return[]},getClass:function(){return Y}}),s(M.prototype,{interfaces_:function(){return[]},getClass:function(){return M}}),M.toLocationSymbol=function(t){switch(t){case M.EXTERIOR:return"e";case M.BOUNDARY:return"b";case M.INTERIOR:return"i";case M.NONE:return"-"}throw new f},M.INTERIOR=0,M.BOUNDARY=1,M.EXTERIOR=2,M.NONE=-1,s(ct.prototype,{interfaces_:function(){return[]},getClass:function(){return ct}}),ct.log10=function(t){var e=Math.log(t);return g.isInfinite(e)||g.isNaN(e)?e:e/ct.LOG_10},ct.min=function(t,e,n,l){var h=t;return h>e&&(h=e),h>n&&(h=n),h>l&&(h=l),h},ct.clamp=function(){if(typeof arguments[2]=="number"&&typeof arguments[0]=="number"&&typeof arguments[1]=="number"){var t=arguments[0],e=arguments[1],n=arguments[2];return e>t?e:t>n?n:t}if(Number.isInteger(arguments[2])&&Number.isInteger(arguments[0])&&Number.isInteger(arguments[1])){var l=arguments[0],h=arguments[1],p=arguments[2];return h>l?h:l>p?p:l}},ct.wrap=function(t,e){return 0>t?e- -t%e:t%e},ct.max=function(){if(arguments.length===3){var t=arguments[0],e=arguments[1],n=arguments[2],l=t;return e>l&&(l=e),n>l&&(l=n),l}if(arguments.length===4){var h=arguments[0],p=arguments[1],x=arguments[2],I=arguments[3],l=h;return p>l&&(l=p),x>l&&(l=x),I>l&&(l=I),l}},ct.average=function(t,e){return(t+e)/2},ct.LOG_10=Math.log(10),Ct.prototype.append=function(t){this.str+=t},Ct.prototype.setCharAt=function(t,e){return this.str.substr(0,t)+e+this.str.substr(t+1)},Ct.prototype.toString=function(t){return this.str},V.prototype.intValue=function(){return this.value},V.prototype.compareTo=function(t){return this.value<t?-1:this.value>t?1:0},V.isNaN=function(t){return Number.isNaN(t)},$.isWhitespace=function(t){return 32>=t&&t>=0||t==127},$.toUpperCase=function(t){return t.toUpperCase()},s(D.prototype,{le:function(t){return this.hi<t.hi||this.hi===t.hi&&this.lo<=t.lo},extractSignificantDigits:function(t,e){var n=this.abs(),l=D.magnitude(n.hi),h=D.TEN.pow(l);n=n.divide(h),n.gt(D.TEN)?(n=n.divide(D.TEN),l+=1):n.lt(D.ONE)&&(n=n.multiply(D.TEN),l-=1);for(var p=l+1,x=new Ct,I=D.MAX_PRINT_DIGITS-1,z=0;I>=z;z++){t&&z===p&&x.append(".");var X=Math.trunc(n.hi);if(0>X)break;var lt=!1,ft=0;X>9?(lt=!0,ft="9"):ft="0"+X,x.append(ft),n=n.subtract(D.valueOf(X)).multiply(D.TEN),lt&&n.selfAdd(D.TEN);var Et=!0,qt=D.magnitude(n.hi);if(0>qt&&Math.abs(qt)>=I-z&&(Et=!1),!Et)break}return e[0]=l,x.toString()},sqr:function(){return this.multiply(this)},doubleValue:function(){return this.hi+this.lo},subtract:function(){if(arguments[0]instanceof D){var t=arguments[0];return this.add(t.negate())}if(typeof arguments[0]=="number"){var e=arguments[0];return this.add(-e)}},equals:function(){if(arguments.length===1){var t=arguments[0];return this.hi===t.hi&&this.lo===t.lo}},isZero:function(){return this.hi===0&&this.lo===0},selfSubtract:function(){if(arguments[0]instanceof D){var t=arguments[0];return this.isNaN()?this:this.selfAdd(-t.hi,-t.lo)}if(typeof arguments[0]=="number"){var e=arguments[0];return this.isNaN()?this:this.selfAdd(-e,0)}},getSpecialNumberString:function(){return this.isZero()?"0.0":this.isNaN()?"NaN ":null},min:function(t){return this.le(t)?this:t},selfDivide:function(){if(arguments.length===1){if(arguments[0]instanceof D){var t=arguments[0];return this.selfDivide(t.hi,t.lo)}if(typeof arguments[0]=="number"){var e=arguments[0];return this.selfDivide(e,0)}}else if(arguments.length===2){var n=arguments[0],l=arguments[1],h=null,p=null,x=null,I=null,z=null,X=null,lt=null,ft=null;return z=this.hi/n,X=D.SPLIT*z,h=X-z,ft=D.SPLIT*n,h=X-h,p=z-h,x=ft-n,lt=z*n,x=ft-x,I=n-x,ft=h*x-lt+h*I+p*x+p*I,X=(this.hi-lt-ft+this.lo-z*l)/n,ft=z+X,this.hi=ft,this.lo=z-ft+X,this}},dump:function(){return"DD<"+this.hi+", "+this.lo+">"},divide:function(){if(arguments[0]instanceof D){var t=arguments[0],e=null,n=null,l=null,h=null,p=null,x=null,I=null,z=null;p=this.hi/t.hi,x=D.SPLIT*p,e=x-p,z=D.SPLIT*t.hi,e=x-e,n=p-e,l=z-t.hi,I=p*t.hi,l=z-l,h=t.hi-l,z=e*l-I+e*h+n*l+n*h,x=(this.hi-I-z+this.lo-p*t.lo)/t.hi,z=p+x;var X=z,lt=p-z+x;return new D(X,lt)}if(typeof arguments[0]=="number"){var ft=arguments[0];return g.isNaN(ft)?D.createNaN():D.copy(this).selfDivide(ft,0)}},ge:function(t){return this.hi>t.hi||this.hi===t.hi&&this.lo>=t.lo},pow:function(t){if(t===0)return D.valueOf(1);var e=new D(this),n=D.valueOf(1),l=Math.abs(t);if(l>1)for(;l>0;)l%2===1&&n.selfMultiply(e),l/=2,l>0&&(e=e.sqr());else n=e;return 0>t?n.reciprocal():n},ceil:function(){if(this.isNaN())return D.NaN;var t=Math.ceil(this.hi),e=0;return t===this.hi&&(e=Math.ceil(this.lo)),new D(t,e)},compareTo:function(t){var e=t;return this.hi<e.hi?-1:this.hi>e.hi?1:this.lo<e.lo?-1:this.lo>e.lo?1:0},rint:function(){if(this.isNaN())return this;var t=this.add(.5);return t.floor()},setValue:function(){if(arguments[0]instanceof D){var t=arguments[0];return this.init(t),this}if(typeof arguments[0]=="number"){var e=arguments[0];return this.init(e),this}},max:function(t){return this.ge(t)?this:t},sqrt:function(){if(this.isZero())return D.valueOf(0);if(this.isNegative())return D.NaN;var t=1/Math.sqrt(this.hi),e=this.hi*t,n=D.valueOf(e),l=this.subtract(n.sqr()),h=l.hi*(.5*t);return n.add(h)},selfAdd:function(){if(arguments.length===1){if(arguments[0]instanceof D){var t=arguments[0];return this.selfAdd(t.hi,t.lo)}if(typeof arguments[0]=="number"){var e=arguments[0],n=null,l=null,h=null,p=null,x=null,I=null;return h=this.hi+e,x=h-this.hi,p=h-x,p=e-x+(this.hi-p),I=p+this.lo,n=h+I,l=I+(h-n),this.hi=n+l,this.lo=l+(n-this.hi),this}}else if(arguments.length===2){var z=arguments[0],X=arguments[1],n=null,l=null,lt=null,ft=null,h=null,p=null,x=null,I=null;h=this.hi+z,lt=this.lo+X,x=h-this.hi,I=lt-this.lo,p=h-x,ft=lt-I,p=z-x+(this.hi-p),ft=X-I+(this.lo-ft),x=p+lt,n=h+x,l=x+(h-n),x=ft+l;var Et=n+x,qt=x+(n-Et);return this.hi=Et,this.lo=qt,this}},selfMultiply:function(){if(arguments.length===1){if(arguments[0]instanceof D){var t=arguments[0];return this.selfMultiply(t.hi,t.lo)}if(typeof arguments[0]=="number"){var e=arguments[0];return this.selfMultiply(e,0)}}else if(arguments.length===2){var n=arguments[0],l=arguments[1],h=null,p=null,x=null,I=null,z=null,X=null;z=D.SPLIT*this.hi,h=z-this.hi,X=D.SPLIT*n,h=z-h,p=this.hi-h,x=X-n,z=this.hi*n,x=X-x,I=n-x,X=h*x-z+h*I+p*x+p*I+(this.hi*l+this.lo*n);var lt=z+X;h=z-lt;var ft=X+h;return this.hi=lt,this.lo=ft,this}},selfSqr:function(){return this.selfMultiply(this)},floor:function(){if(this.isNaN())return D.NaN;var t=Math.floor(this.hi),e=0;return t===this.hi&&(e=Math.floor(this.lo)),new D(t,e)},negate:function(){return this.isNaN()?this:new D(-this.hi,-this.lo)},clone:function(){try{return null}catch(t){if(t instanceof CloneNotSupportedException)return null;throw t}finally{}},multiply:function(){if(arguments[0]instanceof D){var t=arguments[0];return t.isNaN()?D.createNaN():D.copy(this).selfMultiply(t)}if(typeof arguments[0]=="number"){var e=arguments[0];return g.isNaN(e)?D.createNaN():D.copy(this).selfMultiply(e,0)}},isNaN:function(){return g.isNaN(this.hi)},intValue:function(){return Math.trunc(this.hi)},toString:function(){var t=D.magnitude(this.hi);return t>=-3&&20>=t?this.toStandardNotation():this.toSciNotation()},toStandardNotation:function(){var t=this.getSpecialNumberString();if(t!==null)return t;var e=new Array(1).fill(null),n=this.extractSignificantDigits(!0,e),l=e[0]+1,h=n;if(n.charAt(0)===".")h="0"+n;else if(0>l)h="0."+D.stringOfChar("0",-l)+n;else if(n.indexOf(".")===-1){var p=l-n.length,x=D.stringOfChar("0",p);h=n+x+".0"}return this.isNegative()?"-"+h:h},reciprocal:function(){var t=null,e=null,n=null,l=null,h=null,p=null,x=null,I=null;h=1/this.hi,p=D.SPLIT*h,t=p-h,I=D.SPLIT*this.hi,t=p-t,e=h-t,n=I-this.hi,x=h*this.hi,n=I-n,l=this.hi-n,I=t*n-x+t*l+e*n+e*l,p=(1-x-I-h*this.lo)/this.hi;var z=h+p,X=h-z+p;return new D(z,X)},toSciNotation:function(){if(this.isZero())return D.SCI_NOT_ZERO;var t=this.getSpecialNumberString();if(t!==null)return t;var e=new Array(1).fill(null),n=this.extractSignificantDigits(!1,e),l=D.SCI_NOT_EXPONENT_CHAR+e[0];if(n.charAt(0)==="0")throw new IllegalStateException("Found leading zero: "+n);var h="";n.length>1&&(h=n.substring(1));var p=n.charAt(0)+"."+h;return this.isNegative()?"-"+p+l:p+l},abs:function(){return this.isNaN()?D.NaN:this.isNegative()?this.negate():new D(this)},isPositive:function(){return this.hi>0||this.hi===0&&this.lo>0},lt:function(t){return this.hi<t.hi||this.hi===t.hi&&this.lo<t.lo},add:function(){if(arguments[0]instanceof D){var t=arguments[0];return D.copy(this).selfAdd(t)}if(typeof arguments[0]=="number"){var e=arguments[0];return D.copy(this).selfAdd(e)}},init:function(){if(arguments.length===1){if(typeof arguments[0]=="number"){var t=arguments[0];this.hi=t,this.lo=0}else if(arguments[0]instanceof D){var e=arguments[0];this.hi=e.hi,this.lo=e.lo}}else if(arguments.length===2){var n=arguments[0],l=arguments[1];this.hi=n,this.lo=l}},gt:function(t){return this.hi>t.hi||this.hi===t.hi&&this.lo>t.lo},isNegative:function(){return this.hi<0||this.hi===0&&this.lo<0},trunc:function(){return this.isNaN()?D.NaN:this.isPositive()?this.floor():this.ceil()},signum:function(){return this.hi>0?1:this.hi<0?-1:this.lo>0?1:this.lo<0?-1:0},interfaces_:function(){return[_,m,y]},getClass:function(){return D}}),D.sqr=function(t){return D.valueOf(t).selfMultiply(t)},D.valueOf=function(){if(typeof arguments[0]=="string"){var t=arguments[0];return D.parse(t)}if(typeof arguments[0]=="number"){var e=arguments[0];return new D(e)}},D.sqrt=function(t){return D.valueOf(t).sqrt()},D.parse=function(t){for(var e=0,n=t.length;$.isWhitespace(t.charAt(e));)e++;var l=!1;if(n>e){var h=t.charAt(e);h!=="-"&&h!=="+"||(e++,h==="-"&&(l=!0))}for(var p=new D,x=0,I=0,z=0;!(e>=n);){var X=t.charAt(e);if(e++,$.isDigit(X)){var lt=X-"0";p.selfMultiply(D.TEN),p.selfAdd(lt),x++}else{if(X!=="."){if(X==="e"||X==="E"){var ft=t.substring(e);try{z=V.parseInt(ft)}catch(oe){throw oe instanceof NumberFormatException?new NumberFormatException("Invalid exponent "+ft+" in string "+t):oe}finally{}break}throw new NumberFormatException("Unexpected character '"+X+"' at position "+e+" in string "+t)}I=x}}var Et=p,qt=x-I-z;if(qt===0)Et=p;else if(qt>0){var te=D.TEN.pow(qt);Et=p.divide(te)}else if(0>qt){var te=D.TEN.pow(-qt);Et=p.multiply(te)}return l?Et.negate():Et},D.createNaN=function(){return new D(g.NaN,g.NaN)},D.copy=function(t){return new D(t)},D.magnitude=function(t){var e=Math.abs(t),n=Math.log(e)/Math.log(10),l=Math.trunc(Math.floor(n)),h=Math.pow(10,l);return e>=10*h&&(l+=1),l},D.stringOfChar=function(t,e){for(var n=new Ct,l=0;e>l;l++)n.append(t);return n.toString()},D.PI=new D(3.141592653589793,12246467991473532e-32),D.TWO_PI=new D(6.283185307179586,24492935982947064e-32),D.PI_2=new D(1.5707963267948966,6123233995736766e-32),D.E=new D(2.718281828459045,14456468917292502e-32),D.NaN=new D(g.NaN,g.NaN),D.EPS=123259516440783e-46,D.SPLIT=134217729,D.MAX_PRINT_DIGITS=32,D.TEN=D.valueOf(10),D.ONE=D.valueOf(1),D.SCI_NOT_EXPONENT_CHAR="E",D.SCI_NOT_ZERO="0.0E0",s(rt.prototype,{interfaces_:function(){return[]},getClass:function(){return rt}}),rt.orientationIndex=function(t,e,n){var l=rt.orientationIndexFilter(t,e,n);if(1>=l)return l;var h=D.valueOf(e.x).selfAdd(-t.x),p=D.valueOf(e.y).selfAdd(-t.y),x=D.valueOf(n.x).selfAdd(-e.x),I=D.valueOf(n.y).selfAdd(-e.y);return h.selfMultiply(I).selfSubtract(p.selfMultiply(x)).signum()},rt.signOfDet2x2=function(t,e,n,l){var h=t.multiply(l).selfSubtract(e.multiply(n));return h.signum()},rt.intersection=function(t,e,n,l){var h=D.valueOf(l.y).selfSubtract(n.y).selfMultiply(D.valueOf(e.x).selfSubtract(t.x)),p=D.valueOf(l.x).selfSubtract(n.x).selfMultiply(D.valueOf(e.y).selfSubtract(t.y)),x=h.subtract(p),I=D.valueOf(l.x).selfSubtract(n.x).selfMultiply(D.valueOf(t.y).selfSubtract(n.y)),z=D.valueOf(l.y).selfSubtract(n.y).selfMultiply(D.valueOf(t.x).selfSubtract(n.x)),X=I.subtract(z),lt=X.selfDivide(x).doubleValue(),ft=D.valueOf(t.x).selfAdd(D.valueOf(e.x).selfSubtract(t.x).selfMultiply(lt)).doubleValue(),Et=D.valueOf(e.x).selfSubtract(t.x).selfMultiply(D.valueOf(t.y).selfSubtract(n.y)),qt=D.valueOf(e.y).selfSubtract(t.y).selfMultiply(D.valueOf(t.x).selfSubtract(n.x)),te=Et.subtract(qt),oe=te.selfDivide(x).doubleValue(),Xe=D.valueOf(n.y).selfAdd(D.valueOf(l.y).selfSubtract(n.y).selfMultiply(oe)).doubleValue();return new O(ft,Xe)},rt.orientationIndexFilter=function(t,e,n){var l=null,h=(t.x-n.x)*(e.y-n.y),p=(t.y-n.y)*(e.x-n.x),x=h-p;if(h>0){if(0>=p)return rt.signum(x);l=h+p}else{if(!(0>h)||p>=0)return rt.signum(x);l=-h-p}var I=rt.DP_SAFE_EPSILON*l;return x>=I||-x>=I?rt.signum(x):2},rt.signum=function(t){return t>0?1:0>t?-1:0},rt.DP_SAFE_EPSILON=1e-15,s(J.prototype,{setOrdinate:function(t,e,n){},size:function(){},getOrdinate:function(t,e){},getCoordinate:function(){},getCoordinateCopy:function(t){},getDimension:function(){},getX:function(t){},clone:function(){},expandEnvelope:function(t){},copy:function(){},getY:function(t){},toCoordinateArray:function(){},interfaces_:function(){return[y]},getClass:function(){return J}}),J.X=0,J.Y=1,J.Z=2,J.M=3,et.arraycopy=function(t,e,n,l,h){for(var p=0,x=e;e+h>x;x++)n[l+p]=t[x],p++},et.getProperty=function(t){return{"line.separator":`
`}[t]},s(st.prototype,{getY:function(){var t=this.y/this.w;if(g.isNaN(t)||g.isInfinite(t))throw new Y;return t},getX:function(){var t=this.x/this.w;if(g.isNaN(t)||g.isInfinite(t))throw new Y;return t},getCoordinate:function(){var t=new O;return t.x=this.getX(),t.y=this.getY(),t},interfaces_:function(){return[]},getClass:function(){return st}}),st.intersection=function(t,e,n,l){var h=t.y-e.y,p=e.x-t.x,x=t.x*e.y-e.x*t.y,I=n.y-l.y,z=l.x-n.x,X=n.x*l.y-l.x*n.y,lt=p*X-z*x,ft=I*x-h*X,Et=h*z-I*p,qt=lt/Et,te=ft/Et;if(g.isNaN(qt)||g.isInfinite(qt)||g.isNaN(te)||g.isInfinite(te))throw new Y;return new O(qt,te)},s(ut.prototype,{create:function(){arguments.length===1&&(arguments[0]instanceof Array||ot(arguments[0],J))},interfaces_:function(){return[]},getClass:function(){return ut}}),s(bt.prototype,{filter:function(t){},interfaces_:function(){return[]},getClass:function(){return bt}}),s(nt.prototype,{isGeometryCollection:function(){return this.getSortIndex()===nt.SORTINDEX_GEOMETRYCOLLECTION},getFactory:function(){return this.factory},getGeometryN:function(t){return this},getArea:function(){return 0},isRectangle:function(){return!1},equals:function(){if(arguments.length===1){if(arguments[0]instanceof nt){var t=arguments[0];return t===null?!1:this.equalsTopo(t)}if(arguments[0]instanceof Object){var e=arguments[0];if(!(e instanceof nt))return!1;var n=e;return this.equalsExact(n)}}},equalsExact:function(t){return this===t||this.equalsExact(t,0)},geometryChanged:function(){this.apply(nt.geometryChangedFilter)},geometryChangedAction:function(){this.envelope=null},equalsNorm:function(t){return t===null?!1:this.norm().equalsExact(t.norm())},getLength:function(){return 0},getNumGeometries:function(){return 1},compareTo:function(){if(arguments.length===1){var t=arguments[0],e=t;return this.getSortIndex()!==e.getSortIndex()?this.getSortIndex()-e.getSortIndex():this.isEmpty()&&e.isEmpty()?0:this.isEmpty()?-1:e.isEmpty()?1:this.compareToSameClass(t)}if(arguments.length===2){var n=arguments[0],l=arguments[1],e=n;return this.getSortIndex()!==e.getSortIndex()?this.getSortIndex()-e.getSortIndex():this.isEmpty()&&e.isEmpty()?0:this.isEmpty()?-1:e.isEmpty()?1:this.compareToSameClass(n,l)}},getUserData:function(){return this.userData},getSRID:function(){return this.SRID},getEnvelope:function(){return this.getFactory().toGeometry(this.getEnvelopeInternal())},checkNotGeometryCollection:function(t){if(t.getSortIndex()===nt.SORTINDEX_GEOMETRYCOLLECTION)throw new f},equal:function(t,e,n){return n===0?t.equals(e):t.distance(e)<=n},norm:function(){var t=this.copy();return t.normalize(),t},getPrecisionModel:function(){return this.factory.getPrecisionModel()},getEnvelopeInternal:function(){return this.envelope===null&&(this.envelope=this.computeEnvelopeInternal()),new U(this.envelope)},setSRID:function(t){this.SRID=t},setUserData:function(t){this.userData=t},compare:function(t,e){for(var n=t.iterator(),l=e.iterator();n.hasNext()&&l.hasNext();){var h=n.next(),p=l.next(),x=h.compareTo(p);if(x!==0)return x}return n.hasNext()?1:l.hasNext()?-1:0},hashCode:function(){return this.getEnvelopeInternal().hashCode()},isGeometryCollectionOrDerived:function(){return this.getSortIndex()===nt.SORTINDEX_GEOMETRYCOLLECTION||this.getSortIndex()===nt.SORTINDEX_MULTIPOINT||this.getSortIndex()===nt.SORTINDEX_MULTILINESTRING||this.getSortIndex()===nt.SORTINDEX_MULTIPOLYGON},interfaces_:function(){return[y,m,_]},getClass:function(){return nt}}),nt.hasNonEmptyElements=function(t){for(var e=0;e<t.length;e++)if(!t[e].isEmpty())return!0;return!1},nt.hasNullElements=function(t){for(var e=0;e<t.length;e++)if(t[e]===null)return!0;return!1},nt.serialVersionUID=8763622679187377e3,nt.SORTINDEX_POINT=0,nt.SORTINDEX_MULTIPOINT=1,nt.SORTINDEX_LINESTRING=2,nt.SORTINDEX_LINEARRING=3,nt.SORTINDEX_MULTILINESTRING=4,nt.SORTINDEX_POLYGON=5,nt.SORTINDEX_MULTIPOLYGON=6,nt.SORTINDEX_GEOMETRYCOLLECTION=7,nt.geometryChangedFilter={interfaces_:function(){return[bt]},filter:function(t){t.geometryChangedAction()}},s(Nt.prototype,{filter:function(t){},interfaces_:function(){return[]},getClass:function(){return Nt}}),s(xt.prototype,{isInBoundary:function(t){},interfaces_:function(){return[]},getClass:function(){return xt}}),s(Mt.prototype,{isInBoundary:function(t){return t%2===1},interfaces_:function(){return[xt]},getClass:function(){return Mt}}),s(ce.prototype,{isInBoundary:function(t){return t>0},interfaces_:function(){return[xt]},getClass:function(){return ce}}),s(ee.prototype,{isInBoundary:function(t){return t>1},interfaces_:function(){return[xt]},getClass:function(){return ee}}),s(We.prototype,{isInBoundary:function(t){return t===1},interfaces_:function(){return[xt]},getClass:function(){return We}}),xt.Mod2BoundaryNodeRule=Mt,xt.EndPointBoundaryNodeRule=ce,xt.MultiValentEndPointBoundaryNodeRule=ee,xt.MonoValentEndPointBoundaryNodeRule=We,xt.MOD2_BOUNDARY_RULE=new Mt,xt.ENDPOINT_BOUNDARY_RULE=new ce,xt.MULTIVALENT_ENDPOINT_BOUNDARY_RULE=new ee,xt.MONOVALENT_ENDPOINT_BOUNDARY_RULE=new We,xt.OGC_SFS_BOUNDARY_RULE=xt.MOD2_BOUNDARY_RULE,s(kt.prototype,{interfaces_:function(){return[]},getClass:function(){return kt}}),kt.isRing=function(t){return t.length<4?!1:!!t[0].equals2D(t[t.length-1])},kt.ptNotInList=function(t,e){for(var n=0;n<t.length;n++){var l=t[n];if(kt.indexOf(l,e)<0)return l}return null},kt.scroll=function(t,e){var n=kt.indexOf(e,t);if(0>n)return null;var l=new Array(t.length).fill(null);et.arraycopy(t,n,l,0,t.length-n),et.arraycopy(t,0,l,t.length-n,n),et.arraycopy(l,0,t,0,t.length)},kt.equals=function(){if(arguments.length===2){var t=arguments[0],e=arguments[1];if(t===e)return!0;if(t===null||e===null||t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!t[n].equals(e[n]))return!1;return!0}if(arguments.length===3){var l=arguments[0],h=arguments[1],p=arguments[2];if(l===h)return!0;if(l===null||h===null||l.length!==h.length)return!1;for(var n=0;n<l.length;n++)if(p.compare(l[n],h[n])!==0)return!1;return!0}},kt.intersection=function(t,e){for(var n=new H,l=0;l<t.length;l++)e.intersects(t[l])&&n.add(t[l],!0);return n.toCoordinateArray()},kt.hasRepeatedPoints=function(t){for(var e=1;e<t.length;e++)if(t[e-1].equals(t[e]))return!0;return!1},kt.removeRepeatedPoints=function(t){if(!kt.hasRepeatedPoints(t))return t;var e=new H(t,!1);return e.toCoordinateArray()},kt.reverse=function(t){for(var e=t.length-1,n=Math.trunc(e/2),l=0;n>=l;l++){var h=t[l];t[l]=t[e-l],t[e-l]=h}},kt.removeNull=function(t){for(var e=0,n=0;n<t.length;n++)t[n]!==null&&e++;var l=new Array(e).fill(null);if(e===0)return l;for(var h=0,n=0;n<t.length;n++)t[n]!==null&&(l[h++]=t[n]);return l},kt.copyDeep=function(){if(arguments.length===1){for(var t=arguments[0],e=new Array(t.length).fill(null),n=0;n<t.length;n++)e[n]=new O(t[n]);return e}if(arguments.length===5)for(var l=arguments[0],h=arguments[1],p=arguments[2],x=arguments[3],I=arguments[4],n=0;I>n;n++)p[x+n]=new O(l[h+n])},kt.isEqualReversed=function(t,e){for(var n=0;n<t.length;n++){var l=t[n],h=e[t.length-n-1];if(l.compareTo(h)!==0)return!1}return!0},kt.envelope=function(t){for(var e=new U,n=0;n<t.length;n++)e.expandToInclude(t[n]);return e},kt.toCoordinateArray=function(t){return t.toArray(kt.coordArrayType)},kt.atLeastNCoordinatesOrNothing=function(t,e){return e.length>=t?e:[]},kt.indexOf=function(t,e){for(var n=0;n<e.length;n++)if(t.equals(e[n]))return n;return-1},kt.increasingDirection=function(t){for(var e=0;e<Math.trunc(t.length/2);e++){var n=t.length-1-e,l=t[e].compareTo(t[n]);if(l!==0)return l}return 1},kt.compare=function(t,e){for(var n=0;n<t.length&&n<e.length;){var l=t[n].compareTo(e[n]);if(l!==0)return l;n++}return n<e.length?-1:n<t.length?1:0},kt.minCoordinate=function(t){for(var e=null,n=0;n<t.length;n++)(e===null||e.compareTo(t[n])>0)&&(e=t[n]);return e},kt.extract=function(t,e,n){e=ct.clamp(e,0,t.length),n=ct.clamp(n,-1,t.length);var l=n-e+1;0>n&&(l=0),e>=t.length&&(l=0),e>n&&(l=0);var h=new Array(l).fill(null);if(l===0)return h;for(var p=0,x=e;n>=x;x++)h[p++]=t[x];return h},s(Ue.prototype,{compare:function(t,e){var n=t,l=e;return kt.compare(n,l)},interfaces_:function(){return[C]},getClass:function(){return Ue}}),s(ze.prototype,{compare:function(t,e){var n=t,l=e;if(n.length<l.length)return-1;if(n.length>l.length)return 1;if(n.length===0)return 0;var h=kt.compare(n,l),p=kt.isEqualReversed(n,l);return p?0:h},OLDcompare:function(t,e){var n=t,l=e;if(n.length<l.length)return-1;if(n.length>l.length)return 1;if(n.length===0)return 0;for(var h=kt.increasingDirection(n),p=kt.increasingDirection(l),x=h>0?0:n.length-1,I=p>0?0:n.length-1,z=0;z<n.length;z++){var X=n[x].compareTo(l[I]);if(X!==0)return X;x+=h,I+=p}return 0},interfaces_:function(){return[C]},getClass:function(){return ze}}),kt.ForwardComparator=Ue,kt.BidirectionalComparator=ze,kt.coordArrayType=new Array(0).fill(null),Kt.prototype.get=function(){},Kt.prototype.put=function(){},Kt.prototype.size=function(){},Kt.prototype.values=function(){},Kt.prototype.entrySet=function(){},Ft.prototype=new Kt,vt.prototype=new k,vt.prototype.contains=function(){},gt.prototype=new vt,gt.prototype.contains=function(t){for(var e=0,n=this.array_.length;n>e;e++){var l=this.array_[e];if(l===t)return!0}return!1},gt.prototype.add=function(t){return this.contains(t)?!1:(this.array_.push(t),!0)},gt.prototype.addAll=function(t){for(var e=t.iterator();e.hasNext();)this.add(e.next());return!0},gt.prototype.remove=function(t){throw new javascript.util.OperationNotSupported},gt.prototype.size=function(){return this.array_.length},gt.prototype.isEmpty=function(){return this.array_.length===0},gt.prototype.toArray=function(){for(var t=[],e=0,n=this.array_.length;n>e;e++)t.push(this.array_[e]);return t},gt.prototype.iterator=function(){return new ml(this)};var ml=function(t){this.hashSet_=t,this.position_=0};ml.prototype.next=function(){if(this.position_===this.hashSet_.size())throw new j;return this.hashSet_.array_[this.position_++]},ml.prototype.hasNext=function(){return this.position_<this.hashSet_.size()},ml.prototype.remove=function(){throw new W};var Vi=0,qs=1;Bt.prototype=new Ft,Bt.prototype.get=function(t){for(var e=this.root_;e!==null;){var n=t.compareTo(e.key);if(0>n)e=e.left;else{if(!(n>0))return e.value;e=e.right}}return null},Bt.prototype.put=function(t,e){if(this.root_===null)return this.root_={key:t,value:e,left:null,right:null,parent:null,color:Vi,getValue:function(){return this.value},getKey:function(){return this.key}},this.size_=1,null;var n,l,h=this.root_;do if(n=h,l=t.compareTo(h.key),0>l)h=h.left;else{if(!(l>0)){var p=h.value;return h.value=e,p}h=h.right}while(h!==null);var x={key:t,left:null,right:null,value:e,parent:n,color:Vi,getValue:function(){return this.value},getKey:function(){return this.key}};return 0>l?n.left=x:n.right=x,this.fixAfterInsertion(x),this.size_++,null},Bt.prototype.fixAfterInsertion=function(t){for(t.color=qs;t!=null&&t!=this.root_&&t.parent.color==qs;)if(Pt(t)==Vt(Pt(Pt(t)))){var e=Qt(Pt(Pt(t)));Rt(e)==qs?(Zt(Pt(t),Vi),Zt(e,Vi),Zt(Pt(Pt(t)),qs),t=Pt(Pt(t))):(t==Qt(Pt(t))&&(t=Pt(t),this.rotateLeft(t)),Zt(Pt(t),Vi),Zt(Pt(Pt(t)),qs),this.rotateRight(Pt(Pt(t))))}else{var e=Vt(Pt(Pt(t)));Rt(e)==qs?(Zt(Pt(t),Vi),Zt(e,Vi),Zt(Pt(Pt(t)),qs),t=Pt(Pt(t))):(t==Vt(Pt(t))&&(t=Pt(t),this.rotateRight(t)),Zt(Pt(t),Vi),Zt(Pt(Pt(t)),qs),this.rotateLeft(Pt(Pt(t))))}this.root_.color=Vi},Bt.prototype.values=function(){var t=new F,e=this.getFirstEntry();if(e!==null)for(t.add(e.value);(e=Bt.successor(e))!==null;)t.add(e.value);return t},Bt.prototype.entrySet=function(){var t=new gt,e=this.getFirstEntry();if(e!==null)for(t.add(e);(e=Bt.successor(e))!==null;)t.add(e);return t},Bt.prototype.rotateLeft=function(t){if(t!=null){var e=t.right;t.right=e.left,e.left!=null&&(e.left.parent=t),e.parent=t.parent,t.parent==null?this.root_=e:t.parent.left==t?t.parent.left=e:t.parent.right=e,e.left=t,t.parent=e}},Bt.prototype.rotateRight=function(t){if(t!=null){var e=t.left;t.left=e.right,e.right!=null&&(e.right.parent=t),e.parent=t.parent,t.parent==null?this.root_=e:t.parent.right==t?t.parent.right=e:t.parent.left=e,e.right=t,t.parent=e}},Bt.prototype.getFirstEntry=function(){var t=this.root_;if(t!=null)for(;t.left!=null;)t=t.left;return t},Bt.successor=function(t){if(t===null)return null;if(t.right!==null){for(var e=t.right;e.left!==null;)e=e.left;return e}for(var e=t.parent,n=t;e!==null&&n===e.right;)n=e,e=e.parent;return e},Bt.prototype.size=function(){return this.size_},s(de.prototype,{interfaces_:function(){return[]},getClass:function(){return de}}),Jt.prototype=new vt,Wt.prototype=new Jt,Wt.prototype.contains=function(t){for(var e=0,n=this.array_.length;n>e;e++){var l=this.array_[e];if(l.compareTo(t)===0)return!0}return!1},Wt.prototype.add=function(t){if(this.contains(t))return!1;for(var e=0,n=this.array_.length;n>e;e++){var l=this.array_[e];if(l.compareTo(t)===1)return this.array_.splice(e,0,t),!0}return this.array_.push(t),!0},Wt.prototype.addAll=function(t){for(var e=t.iterator();e.hasNext();)this.add(e.next());return!0},Wt.prototype.remove=function(t){throw new W},Wt.prototype.size=function(){return this.array_.length},Wt.prototype.isEmpty=function(){return this.array_.length===0},Wt.prototype.toArray=function(){for(var t=[],e=0,n=this.array_.length;n>e;e++)t.push(this.array_[e]);return t},Wt.prototype.iterator=function(){return new pl(this)};var pl=function(t){this.treeSet_=t,this.position_=0};pl.prototype.next=function(){if(this.position_===this.treeSet_.size())throw new j;return this.treeSet_.array_[this.position_++]},pl.prototype.hasNext=function(){return this.position_<this.treeSet_.size()},pl.prototype.remove=function(){throw new W},he.sort=function(){var t,e,n,l,h=arguments[0];if(arguments.length===1)return l=function(x,I){return x.compareTo(I)},void h.sort(l);if(arguments.length===2)n=arguments[1],l=function(x,I){return n.compare(x,I)},h.sort(l);else{if(arguments.length===3){e=h.slice(arguments[1],arguments[2]),e.sort();var p=h.slice(0,arguments[1]).concat(e,h.slice(arguments[2],h.length));for(h.splice(0,h.length),t=0;t<p.length;t++)h.push(p[t]);return}if(arguments.length===4){for(e=h.slice(arguments[1],arguments[2]),n=arguments[3],l=function(x,I){return n.compare(x,I)},e.sort(l),p=h.slice(0,arguments[1]).concat(e,h.slice(arguments[2],h.length)),h.splice(0,h.length),t=0;t<p.length;t++)h.push(p[t]);return}}},he.asList=function(t){for(var e=new F,n=0,l=t.length;l>n;n++)e.add(t[n]);return e},s(mt.prototype,{interfaces_:function(){return[]},getClass:function(){return mt}}),mt.toDimensionSymbol=function(t){switch(t){case mt.FALSE:return mt.SYM_FALSE;case mt.TRUE:return mt.SYM_TRUE;case mt.DONTCARE:return mt.SYM_DONTCARE;case mt.P:return mt.SYM_P;case mt.L:return mt.SYM_L;case mt.A:return mt.SYM_A}throw new f},mt.toDimensionValue=function(t){switch($.toUpperCase(t)){case mt.SYM_FALSE:return mt.FALSE;case mt.SYM_TRUE:return mt.TRUE;case mt.SYM_DONTCARE:return mt.DONTCARE;case mt.SYM_P:return mt.P;case mt.SYM_L:return mt.L;case mt.SYM_A:return mt.A}throw new f},mt.P=0,mt.L=1,mt.A=2,mt.FALSE=-1,mt.TRUE=-2,mt.DONTCARE=-3,mt.SYM_FALSE="F",mt.SYM_TRUE="T",mt.SYM_DONTCARE="*",mt.SYM_P="0",mt.SYM_L="1",mt.SYM_A="2",s(De.prototype,{filter:function(t){},interfaces_:function(){return[]},getClass:function(){return De}}),s(en.prototype,{filter:function(t,e){},isDone:function(){},isGeometryChanged:function(){},interfaces_:function(){return[]},getClass:function(){return en}}),w(Gt,nt),s(Gt.prototype,{computeEnvelopeInternal:function(){for(var t=new U,e=0;e<this.geometries.length;e++)t.expandToInclude(this.geometries[e].getEnvelopeInternal());return t},getGeometryN:function(t){return this.geometries[t]},getSortIndex:function(){return nt.SORTINDEX_GEOMETRYCOLLECTION},getCoordinates:function(){for(var t=new Array(this.getNumPoints()).fill(null),e=-1,n=0;n<this.geometries.length;n++)for(var l=this.geometries[n].getCoordinates(),h=0;h<l.length;h++)e++,t[e]=l[h];return t},getArea:function(){for(var t=0,e=0;e<this.geometries.length;e++)t+=this.geometries[e].getArea();return t},equalsExact:function(){if(arguments.length===2){var t=arguments[0],e=arguments[1];if(!this.isEquivalentClass(t))return!1;var n=t;if(this.geometries.length!==n.geometries.length)return!1;for(var l=0;l<this.geometries.length;l++)if(!this.geometries[l].equalsExact(n.geometries[l],e))return!1;return!0}return nt.prototype.equalsExact.apply(this,arguments)},normalize:function(){for(var t=0;t<this.geometries.length;t++)this.geometries[t].normalize();he.sort(this.geometries)},getCoordinate:function(){return this.isEmpty()?null:this.geometries[0].getCoordinate()},getBoundaryDimension:function(){for(var t=mt.FALSE,e=0;e<this.geometries.length;e++)t=Math.max(t,this.geometries[e].getBoundaryDimension());return t},getDimension:function(){for(var t=mt.FALSE,e=0;e<this.geometries.length;e++)t=Math.max(t,this.geometries[e].getDimension());return t},getLength:function(){for(var t=0,e=0;e<this.geometries.length;e++)t+=this.geometries[e].getLength();return t},getNumPoints:function(){for(var t=0,e=0;e<this.geometries.length;e++)t+=this.geometries[e].getNumPoints();return t},getNumGeometries:function(){return this.geometries.length},reverse:function(){for(var t=this.geometries.length,e=new Array(t).fill(null),n=0;n<this.geometries.length;n++)e[n]=this.geometries[n].reverse();return this.getFactory().createGeometryCollection(e)},compareToSameClass:function(){if(arguments.length===1){var t=arguments[0],e=new Wt(he.asList(this.geometries)),n=new Wt(he.asList(t.geometries));return this.compare(e,n)}if(arguments.length===2){for(var l=arguments[0],h=arguments[1],p=l,x=this.getNumGeometries(),I=p.getNumGeometries(),z=0;x>z&&I>z;){var X=this.getGeometryN(z),lt=p.getGeometryN(z),ft=X.compareToSameClass(lt,h);if(ft!==0)return ft;z++}return x>z?1:I>z?-1:0}},apply:function(){if(ot(arguments[0],Nt))for(var t=arguments[0],e=0;e<this.geometries.length;e++)this.geometries[e].apply(t);else if(ot(arguments[0],en)){var n=arguments[0];if(this.geometries.length===0)return null;for(var e=0;e<this.geometries.length&&(this.geometries[e].apply(n),!n.isDone());e++);n.isGeometryChanged()&&this.geometryChanged()}else if(ot(arguments[0],De)){var l=arguments[0];l.filter(this);for(var e=0;e<this.geometries.length;e++)this.geometries[e].apply(l)}else if(ot(arguments[0],bt)){var h=arguments[0];h.filter(this);for(var e=0;e<this.geometries.length;e++)this.geometries[e].apply(h)}},getBoundary:function(){return this.checkNotGeometryCollection(this),P.shouldNeverReachHere(),null},clone:function(){var t=nt.prototype.clone.call(this);t.geometries=new Array(this.geometries.length).fill(null);for(var e=0;e<this.geometries.length;e++)t.geometries[e]=this.geometries[e].clone();return t},getGeometryType:function(){return"GeometryCollection"},copy:function(){for(var t=new Array(this.geometries.length).fill(null),e=0;e<t.length;e++)t[e]=this.geometries[e].copy();return new Gt(t,this.factory)},isEmpty:function(){for(var t=0;t<this.geometries.length;t++)if(!this.geometries[t].isEmpty())return!1;return!0},interfaces_:function(){return[]},getClass:function(){return Gt}}),Gt.serialVersionUID=-5694727726395021e3,w(He,Gt),s(He.prototype,{getSortIndex:function(){return nt.SORTINDEX_MULTILINESTRING},equalsExact:function(){if(arguments.length===2){var t=arguments[0],e=arguments[1];return this.isEquivalentClass(t)?Gt.prototype.equalsExact.call(this,t,e):!1}return Gt.prototype.equalsExact.apply(this,arguments)},getBoundaryDimension:function(){return this.isClosed()?mt.FALSE:0},isClosed:function(){if(this.isEmpty())return!1;for(var t=0;t<this.geometries.length;t++)if(!this.geometries[t].isClosed())return!1;return!0},getDimension:function(){return 1},reverse:function(){for(var t=this.geometries.length,e=new Array(t).fill(null),n=0;n<this.geometries.length;n++)e[t-1-n]=this.geometries[n].reverse();return this.getFactory().createMultiLineString(e)},getBoundary:function(){return new Fe(this).getBoundary()},getGeometryType:function(){return"MultiLineString"},copy:function(){for(var t=new Array(this.geometries.length).fill(null),e=0;e<t.length;e++)t[e]=this.geometries[e].copy();return new He(t,this.factory)},interfaces_:function(){return[de]},getClass:function(){return He}}),He.serialVersionUID=8166665132445434e3,s(Fe.prototype,{boundaryMultiLineString:function(t){if(this.geom.isEmpty())return this.getEmptyMultiPoint();var e=this.computeBoundaryCoordinates(t);return e.length===1?this.geomFact.createPoint(e[0]):this.geomFact.createMultiPointFromCoords(e)},getBoundary:function(){return this.geom instanceof Yt?this.boundaryLineString(this.geom):this.geom instanceof He?this.boundaryMultiLineString(this.geom):this.geom.getBoundary()},boundaryLineString:function(t){if(this.geom.isEmpty())return this.getEmptyMultiPoint();if(t.isClosed()){var e=this.bnRule.isInBoundary(2);return e?t.getStartPoint():this.geomFact.createMultiPoint()}return this.geomFact.createMultiPoint([t.getStartPoint(),t.getEndPoint()])},getEmptyMultiPoint:function(){return this.geomFact.createMultiPoint()},computeBoundaryCoordinates:function(t){var e=new F;this.endpointMap=new Bt;for(var n=0;n<t.getNumGeometries();n++){var l=t.getGeometryN(n);l.getNumPoints()!==0&&(this.addEndpoint(l.getCoordinateN(0)),this.addEndpoint(l.getCoordinateN(l.getNumPoints()-1)))}for(var h=this.endpointMap.entrySet().iterator();h.hasNext();){var p=h.next(),x=p.getValue(),I=x.count;this.bnRule.isInBoundary(I)&&e.add(p.getKey())}return kt.toCoordinateArray(e)},addEndpoint:function(t){var e=this.endpointMap.get(t);e===null&&(e=new ln,this.endpointMap.put(t,e)),e.count++},interfaces_:function(){return[]},getClass:function(){return Fe}}),Fe.getBoundary=function(){if(arguments.length===1){var t=arguments[0],e=new Fe(t);return e.getBoundary()}if(arguments.length===2){var n=arguments[0],l=arguments[1],e=new Fe(n,l);return e.getBoundary()}},s(ln.prototype,{interfaces_:function(){return[]},getClass:function(){return ln}}),s(Ge.prototype,{interfaces_:function(){return[]},getClass:function(){return Ge}}),Ge.chars=function(t,e){for(var n=new Array(e).fill(null),l=0;e>l;l++)n[l]=t;return new String(n)},Ge.getStackTrace=function(){if(arguments.length===1){var t=arguments[0],e=new rr,n=new sn;return t.printStackTrace(n),e.toString()}if(arguments.length===2){for(var l=arguments[0],h=arguments[1],p="",x=new On(Ge.getStackTrace(l)),I=new Zn,z=0;h>z;z++)try{p+=I.readLine()+Ge.NEWLINE}catch(X){if(!(X instanceof Ne))throw X;P.shouldNeverReachHere()}finally{}return p}},Ge.split=function(t,e){for(var n=e.length,l=new F,h=""+t,p=h.indexOf(e);p>=0;){var x=h.substring(0,p);l.add(x),h=h.substring(p+n),p=h.indexOf(e)}h.length>0&&l.add(h);for(var I=new Array(l.size()).fill(null),z=0;z<I.length;z++)I[z]=l.get(z);return I},Ge.toString=function(){if(arguments.length===1){var t=arguments[0];return Ge.SIMPLE_ORDINATE_FORMAT.format(t)}},Ge.spaces=function(t){return Ge.chars(" ",t)},Ge.NEWLINE=et.getProperty("line.separator"),Ge.SIMPLE_ORDINATE_FORMAT=new In,s(ae.prototype,{interfaces_:function(){return[]},getClass:function(){return ae}}),ae.copyCoord=function(t,e,n,l){for(var h=Math.min(t.getDimension(),n.getDimension()),p=0;h>p;p++)n.setOrdinate(l,p,t.getOrdinate(e,p))},ae.isRing=function(t){var e=t.size();return e===0?!0:3>=e?!1:t.getOrdinate(0,J.X)===t.getOrdinate(e-1,J.X)&&t.getOrdinate(0,J.Y)===t.getOrdinate(e-1,J.Y)},ae.isEqual=function(t,e){var n=t.size(),l=e.size();if(n!==l)return!1;for(var h=Math.min(t.getDimension(),e.getDimension()),p=0;n>p;p++)for(var x=0;h>x;x++){var I=t.getOrdinate(p,x),z=e.getOrdinate(p,x);if(!(t.getOrdinate(p,x)===e.getOrdinate(p,x)||g.isNaN(I)&&g.isNaN(z)))return!1}return!0},ae.extend=function(t,e,n){var l=t.create(n,e.getDimension()),h=e.size();if(ae.copy(e,0,l,0,h),h>0)for(var p=h;n>p;p++)ae.copy(e,h-1,l,p,1);return l},ae.reverse=function(t){for(var e=t.size()-1,n=Math.trunc(e/2),l=0;n>=l;l++)ae.swap(t,l,e-l)},ae.swap=function(t,e,n){if(e===n)return null;for(var l=0;l<t.getDimension();l++){var h=t.getOrdinate(e,l);t.setOrdinate(e,l,t.getOrdinate(n,l)),t.setOrdinate(n,l,h)}},ae.copy=function(t,e,n,l,h){for(var p=0;h>p;p++)ae.copyCoord(t,e+p,n,l+p)},ae.toString=function(){if(arguments.length===1){var t=arguments[0],e=t.size();if(e===0)return"()";var n=t.getDimension(),l=new Ct;l.append("(");for(var h=0;e>h;h++){h>0&&l.append(" ");for(var p=0;n>p;p++)p>0&&l.append(","),l.append(Ge.toString(t.getOrdinate(h,p)))}return l.append(")"),l.toString()}},ae.ensureValidRing=function(t,e){var n=e.size();if(n===0)return e;if(3>=n)return ae.createClosedRing(t,e,4);var l=e.getOrdinate(0,J.X)===e.getOrdinate(n-1,J.X)&&e.getOrdinate(0,J.Y)===e.getOrdinate(n-1,J.Y);return l?e:ae.createClosedRing(t,e,n+1)},ae.createClosedRing=function(t,e,n){var l=t.create(n,e.getDimension()),h=e.size();ae.copy(e,0,l,0,h);for(var p=h;n>p;p++)ae.copy(e,0,l,p,1);return l},w(Yt,nt),s(Yt.prototype,{computeEnvelopeInternal:function(){return this.isEmpty()?new U:this.points.expandEnvelope(new U)},isRing:function(){return this.isClosed()&&this.isSimple()},getSortIndex:function(){return nt.SORTINDEX_LINESTRING},getCoordinates:function(){return this.points.toCoordinateArray()},equalsExact:function(){if(arguments.length===2){var t=arguments[0],e=arguments[1];if(!this.isEquivalentClass(t))return!1;var n=t;if(this.points.size()!==n.points.size())return!1;for(var l=0;l<this.points.size();l++)if(!this.equal(this.points.getCoordinate(l),n.points.getCoordinate(l),e))return!1;return!0}return nt.prototype.equalsExact.apply(this,arguments)},normalize:function(){for(var t=0;t<Math.trunc(this.points.size()/2);t++){var e=this.points.size()-1-t;if(!this.points.getCoordinate(t).equals(this.points.getCoordinate(e)))return this.points.getCoordinate(t).compareTo(this.points.getCoordinate(e))>0&&ae.reverse(this.points),null}},getCoordinate:function(){return this.isEmpty()?null:this.points.getCoordinate(0)},getBoundaryDimension:function(){return this.isClosed()?mt.FALSE:0},isClosed:function(){return this.isEmpty()?!1:this.getCoordinateN(0).equals2D(this.getCoordinateN(this.getNumPoints()-1))},getEndPoint:function(){return this.isEmpty()?null:this.getPointN(this.getNumPoints()-1)},getDimension:function(){return 1},getLength:function(){return Ot.computeLength(this.points)},getNumPoints:function(){return this.points.size()},reverse:function(){var t=this.points.copy();ae.reverse(t);var e=this.getFactory().createLineString(t);return e},compareToSameClass:function(){if(arguments.length===1){for(var t=arguments[0],e=t,n=0,l=0;n<this.points.size()&&l<e.points.size();){var h=this.points.getCoordinate(n).compareTo(e.points.getCoordinate(l));if(h!==0)return h;n++,l++}return n<this.points.size()?1:l<e.points.size()?-1:0}if(arguments.length===2){var p=arguments[0],x=arguments[1],e=p;return x.compare(this.points,e.points)}},apply:function(){if(ot(arguments[0],Nt))for(var t=arguments[0],e=0;e<this.points.size();e++)t.filter(this.points.getCoordinate(e));else if(ot(arguments[0],en)){var n=arguments[0];if(this.points.size()===0)return null;for(var e=0;e<this.points.size()&&(n.filter(this.points,e),!n.isDone());e++);n.isGeometryChanged()&&this.geometryChanged()}else if(ot(arguments[0],De)){var l=arguments[0];l.filter(this)}else if(ot(arguments[0],bt)){var h=arguments[0];h.filter(this)}},getBoundary:function(){return new Fe(this).getBoundary()},isEquivalentClass:function(t){return t instanceof Yt},clone:function(){var t=nt.prototype.clone.call(this);return t.points=this.points.clone(),t},getCoordinateN:function(t){return this.points.getCoordinate(t)},getGeometryType:function(){return"LineString"},copy:function(){return new Yt(this.points.copy(),this.factory)},getCoordinateSequence:function(){return this.points},isEmpty:function(){return this.points.size()===0},init:function(t){if(t===null&&(t=this.getFactory().getCoordinateSequenceFactory().create([])),t.size()===1)throw new f("Invalid number of points in LineString (found "+t.size()+" - must be 0 or >= 2)");this.points=t},isCoordinate:function(t){for(var e=0;e<this.points.size();e++)if(this.points.getCoordinate(e).equals(t))return!0;return!1},getStartPoint:function(){return this.isEmpty()?null:this.getPointN(0)},getPointN:function(t){return this.getFactory().createPoint(this.points.getCoordinate(t))},interfaces_:function(){return[de]},getClass:function(){return Yt}}),Yt.serialVersionUID=0x2b2b51ba435c8e00,s(jn.prototype,{interfaces_:function(){return[]},getClass:function(){return jn}}),w(ne,nt),s(ne.prototype,{computeEnvelopeInternal:function(){if(this.isEmpty())return new U;var t=new U;return t.expandToInclude(this.coordinates.getX(0),this.coordinates.getY(0)),t},getSortIndex:function(){return nt.SORTINDEX_POINT},getCoordinates:function(){return this.isEmpty()?[]:[this.getCoordinate()]},equalsExact:function(){if(arguments.length===2){var t=arguments[0],e=arguments[1];return this.isEquivalentClass(t)?this.isEmpty()&&t.isEmpty()?!0:this.isEmpty()!==t.isEmpty()?!1:this.equal(t.getCoordinate(),this.getCoordinate(),e):!1}return nt.prototype.equalsExact.apply(this,arguments)},normalize:function(){},getCoordinate:function(){return this.coordinates.size()!==0?this.coordinates.getCoordinate(0):null},getBoundaryDimension:function(){return mt.FALSE},getDimension:function(){return 0},getNumPoints:function(){return this.isEmpty()?0:1},reverse:function(){return this.copy()},getX:function(){if(this.getCoordinate()===null)throw new IllegalStateException("getX called on empty Point");return this.getCoordinate().x},compareToSameClass:function(){if(arguments.length===1){var t=arguments[0],e=t;return this.getCoordinate().compareTo(e.getCoordinate())}if(arguments.length===2){var n=arguments[0],l=arguments[1],e=n;return l.compare(this.coordinates,e.coordinates)}},apply:function(){if(ot(arguments[0],Nt)){var t=arguments[0];if(this.isEmpty())return null;t.filter(this.getCoordinate())}else if(ot(arguments[0],en)){var e=arguments[0];if(this.isEmpty())return null;e.filter(this.coordinates,0),e.isGeometryChanged()&&this.geometryChanged()}else if(ot(arguments[0],De)){var n=arguments[0];n.filter(this)}else if(ot(arguments[0],bt)){var l=arguments[0];l.filter(this)}},getBoundary:function(){return this.getFactory().createGeometryCollection(null)},clone:function(){var t=nt.prototype.clone.call(this);return t.coordinates=this.coordinates.clone(),t},getGeometryType:function(){return"Point"},copy:function(){return new ne(this.coordinates.copy(),this.factory)},getCoordinateSequence:function(){return this.coordinates},getY:function(){if(this.getCoordinate()===null)throw new IllegalStateException("getY called on empty Point");return this.getCoordinate().y},isEmpty:function(){return this.coordinates.size()===0},init:function(t){t===null&&(t=this.getFactory().getCoordinateSequenceFactory().create([])),P.isTrue(t.size()<=1),this.coordinates=t},isSimple:function(){return!0},interfaces_:function(){return[jn]},getClass:function(){return ne}}),ne.serialVersionUID=4902022702746615e3,s(Ke.prototype,{interfaces_:function(){return[]},getClass:function(){return Ke}}),w(_e,nt),s(_e.prototype,{computeEnvelopeInternal:function(){return this.shell.getEnvelopeInternal()},getSortIndex:function(){return nt.SORTINDEX_POLYGON},getCoordinates:function(){if(this.isEmpty())return[];for(var t=new Array(this.getNumPoints()).fill(null),e=-1,n=this.shell.getCoordinates(),l=0;l<n.length;l++)e++,t[e]=n[l];for(var h=0;h<this.holes.length;h++)for(var p=this.holes[h].getCoordinates(),x=0;x<p.length;x++)e++,t[e]=p[x];return t},getArea:function(){var t=0;t+=Math.abs(Ot.signedArea(this.shell.getCoordinateSequence()));for(var e=0;e<this.holes.length;e++)t-=Math.abs(Ot.signedArea(this.holes[e].getCoordinateSequence()));return t},isRectangle:function(){if(this.getNumInteriorRing()!==0||this.shell===null||this.shell.getNumPoints()!==5)return!1;for(var t=this.shell.getCoordinateSequence(),e=this.getEnvelopeInternal(),n=0;5>n;n++){var l=t.getX(n);if(l!==e.getMinX()&&l!==e.getMaxX())return!1;var h=t.getY(n);if(h!==e.getMinY()&&h!==e.getMaxY())return!1}for(var p=t.getX(0),x=t.getY(0),n=1;4>=n;n++){var l=t.getX(n),h=t.getY(n),I=l!==p,z=h!==x;if(I===z)return!1;p=l,x=h}return!0},equalsExact:function(){if(arguments.length===2){var t=arguments[0],e=arguments[1];if(!this.isEquivalentClass(t))return!1;var n=t,l=this.shell,h=n.shell;if(!l.equalsExact(h,e)||this.holes.length!==n.holes.length)return!1;for(var p=0;p<this.holes.length;p++)if(!this.holes[p].equalsExact(n.holes[p],e))return!1;return!0}return nt.prototype.equalsExact.apply(this,arguments)},normalize:function(){if(arguments.length===0){this.normalize(this.shell,!0);for(var t=0;t<this.holes.length;t++)this.normalize(this.holes[t],!1);he.sort(this.holes)}else if(arguments.length===2){var e=arguments[0],n=arguments[1];if(e.isEmpty())return null;var l=new Array(e.getCoordinates().length-1).fill(null);et.arraycopy(e.getCoordinates(),0,l,0,l.length);var h=kt.minCoordinate(e.getCoordinates());kt.scroll(l,h),et.arraycopy(l,0,e.getCoordinates(),0,l.length),e.getCoordinates()[l.length]=l[0],Ot.isCCW(e.getCoordinates())===n&&kt.reverse(e.getCoordinates())}},getCoordinate:function(){return this.shell.getCoordinate()},getNumInteriorRing:function(){return this.holes.length},getBoundaryDimension:function(){return 1},getDimension:function(){return 2},getLength:function(){var t=0;t+=this.shell.getLength();for(var e=0;e<this.holes.length;e++)t+=this.holes[e].getLength();return t},getNumPoints:function(){for(var t=this.shell.getNumPoints(),e=0;e<this.holes.length;e++)t+=this.holes[e].getNumPoints();return t},reverse:function(){var t=this.copy();t.shell=this.shell.copy().reverse(),t.holes=new Array(this.holes.length).fill(null);for(var e=0;e<this.holes.length;e++)t.holes[e]=this.holes[e].copy().reverse();return t},convexHull:function(){return this.getExteriorRing().convexHull()},compareToSameClass:function(){if(arguments.length===1){var t=arguments[0],e=this.shell,n=t.shell;return e.compareToSameClass(n)}if(arguments.length===2){var l=arguments[0],h=arguments[1],p=l,e=this.shell,n=p.shell,x=e.compareToSameClass(n,h);if(x!==0)return x;for(var I=this.getNumInteriorRing(),z=p.getNumInteriorRing(),X=0;I>X&&z>X;){var lt=this.getInteriorRingN(X),ft=p.getInteriorRingN(X),Et=lt.compareToSameClass(ft,h);if(Et!==0)return Et;X++}return I>X?1:z>X?-1:0}},apply:function(){if(ot(arguments[0],Nt)){var t=arguments[0];this.shell.apply(t);for(var e=0;e<this.holes.length;e++)this.holes[e].apply(t)}else if(ot(arguments[0],en)){var n=arguments[0];if(this.shell.apply(n),!n.isDone())for(var e=0;e<this.holes.length&&(this.holes[e].apply(n),!n.isDone());e++);n.isGeometryChanged()&&this.geometryChanged()}else if(ot(arguments[0],De)){var l=arguments[0];l.filter(this)}else if(ot(arguments[0],bt)){var h=arguments[0];h.filter(this),this.shell.apply(h);for(var e=0;e<this.holes.length;e++)this.holes[e].apply(h)}},getBoundary:function(){if(this.isEmpty())return this.getFactory().createMultiLineString();var t=new Array(this.holes.length+1).fill(null);t[0]=this.shell;for(var e=0;e<this.holes.length;e++)t[e+1]=this.holes[e];return t.length<=1?this.getFactory().createLinearRing(t[0].getCoordinateSequence()):this.getFactory().createMultiLineString(t)},clone:function(){var t=nt.prototype.clone.call(this);t.shell=this.shell.clone(),t.holes=new Array(this.holes.length).fill(null);for(var e=0;e<this.holes.length;e++)t.holes[e]=this.holes[e].clone();return t},getGeometryType:function(){return"Polygon"},copy:function(){for(var t=this.shell.copy(),e=new Array(this.holes.length).fill(null),n=0;n<e.length;n++)e[n]=this.holes[n].copy();return new _e(t,e,this.factory)},getExteriorRing:function(){return this.shell},isEmpty:function(){return this.shell.isEmpty()},getInteriorRingN:function(t){return this.holes[t]},interfaces_:function(){return[Ke]},getClass:function(){return _e}}),_e.serialVersionUID=-0x307ffefd8dc97200,w(cn,Gt),s(cn.prototype,{getSortIndex:function(){return nt.SORTINDEX_MULTIPOINT},isValid:function(){return!0},equalsExact:function(){if(arguments.length===2){var t=arguments[0],e=arguments[1];return this.isEquivalentClass(t)?Gt.prototype.equalsExact.call(this,t,e):!1}return Gt.prototype.equalsExact.apply(this,arguments)},getCoordinate:function(){if(arguments.length===1){var t=arguments[0];return this.geometries[t].getCoordinate()}return Gt.prototype.getCoordinate.apply(this,arguments)},getBoundaryDimension:function(){return mt.FALSE},getDimension:function(){return 0},getBoundary:function(){return this.getFactory().createGeometryCollection(null)},getGeometryType:function(){return"MultiPoint"},copy:function(){for(var t=new Array(this.geometries.length).fill(null),e=0;e<t.length;e++)t[e]=this.geometries[e].copy();return new cn(t,this.factory)},interfaces_:function(){return[jn]},getClass:function(){return cn}}),cn.serialVersionUID=-8048474874175356e3,w(ke,Yt),s(ke.prototype,{getSortIndex:function(){return nt.SORTINDEX_LINEARRING},getBoundaryDimension:function(){return mt.FALSE},isClosed:function(){return this.isEmpty()?!0:Yt.prototype.isClosed.call(this)},reverse:function(){var t=this.points.copy();ae.reverse(t);var e=this.getFactory().createLinearRing(t);return e},validateConstruction:function(){if(!this.isEmpty()&&!Yt.prototype.isClosed.call(this))throw new f;if(this.getCoordinateSequence().size()>=1&&this.getCoordinateSequence().size()<ke.MINIMUM_VALID_SIZE)throw new f("Invalid number of points in LinearRing (found "+this.getCoordinateSequence().size()+" - must be 0 or >= 4)")},getGeometryType:function(){return"LinearRing"},copy:function(){return new ke(this.points.copy(),this.factory)},interfaces_:function(){return[]},getClass:function(){return ke}}),ke.MINIMUM_VALID_SIZE=4,ke.serialVersionUID=-0x3b229e262367a600,w(Je,Gt),s(Je.prototype,{getSortIndex:function(){return nt.SORTINDEX_MULTIPOLYGON},equalsExact:function(){if(arguments.length===2){var t=arguments[0],e=arguments[1];return this.isEquivalentClass(t)?Gt.prototype.equalsExact.call(this,t,e):!1}return Gt.prototype.equalsExact.apply(this,arguments)},getBoundaryDimension:function(){return 1},getDimension:function(){return 2},reverse:function(){for(var t=this.geometries.length,e=new Array(t).fill(null),n=0;n<this.geometries.length;n++)e[n]=this.geometries[n].reverse();return this.getFactory().createMultiPolygon(e)},getBoundary:function(){if(this.isEmpty())return this.getFactory().createMultiLineString();for(var t=new F,e=0;e<this.geometries.length;e++)for(var n=this.geometries[e],l=n.getBoundary(),h=0;h<l.getNumGeometries();h++)t.add(l.getGeometryN(h));var p=new Array(t.size()).fill(null);return this.getFactory().createMultiLineString(t.toArray(p))},getGeometryType:function(){return"MultiPolygon"},copy:function(){for(var t=new Array(this.geometries.length).fill(null),e=0;e<t.length;e++)t[e]=this.geometries[e].copy();return new Je(t,this.factory)},interfaces_:function(){return[Ke]},getClass:function(){return Je}}),Je.serialVersionUID=-0x7a5aa1369171980,s(bn.prototype,{setCopyUserData:function(t){this.isUserDataCopied=t},edit:function(t,e){if(t===null)return null;var n=this.editInternal(t,e);return this.isUserDataCopied&&n.setUserData(t.getUserData()),n},editInternal:function(t,e){return this.factory===null&&(this.factory=t.getFactory()),t instanceof Gt?this.editGeometryCollection(t,e):t instanceof _e?this.editPolygon(t,e):t instanceof ne?e.edit(t,this.factory):t instanceof Yt?e.edit(t,this.factory):(P.shouldNeverReachHere("Unsupported Geometry class: "+t.getClass().getName()),null)},editGeometryCollection:function(t,e){for(var n=e.edit(t,this.factory),l=new F,h=0;h<n.getNumGeometries();h++){var p=this.edit(n.getGeometryN(h),e);p===null||p.isEmpty()||l.add(p)}return n.getClass()===cn?this.factory.createMultiPoint(l.toArray([])):n.getClass()===He?this.factory.createMultiLineString(l.toArray([])):n.getClass()===Je?this.factory.createMultiPolygon(l.toArray([])):this.factory.createGeometryCollection(l.toArray([]))},editPolygon:function(t,e){var n=e.edit(t,this.factory);if(n===null&&(n=this.factory.createPolygon(null)),n.isEmpty())return n;var l=this.edit(n.getExteriorRing(),e);if(l===null||l.isEmpty())return this.factory.createPolygon();for(var h=new F,p=0;p<n.getNumInteriorRing();p++){var x=this.edit(n.getInteriorRingN(p),e);x===null||x.isEmpty()||h.add(x)}return this.factory.createPolygon(l,h.toArray([]))},interfaces_:function(){return[]},getClass:function(){return bn}}),bn.GeometryEditorOperation=Tr,s($e.prototype,{edit:function(t,e){return t},interfaces_:function(){return[Tr]},getClass:function(){return $e}}),s(Ut.prototype,{edit:function(t,e){if(t instanceof ke)return e.createLinearRing(this.editCoordinates(t.getCoordinates(),t));if(t instanceof Yt)return e.createLineString(this.editCoordinates(t.getCoordinates(),t));if(t instanceof ne){var n=this.editCoordinates(t.getCoordinates(),t);return n.length>0?e.createPoint(n[0]):e.createPoint()}return t},interfaces_:function(){return[Tr]},getClass:function(){return Ut}}),s(vr.prototype,{edit:function(t,e){return t instanceof ke?e.createLinearRing(this.edit(t.getCoordinateSequence(),t)):t instanceof Yt?e.createLineString(this.edit(t.getCoordinateSequence(),t)):t instanceof ne?e.createPoint(this.edit(t.getCoordinateSequence(),t)):t},interfaces_:function(){return[Tr]},getClass:function(){return vr}}),bn.NoOpGeometryOperation=$e,bn.CoordinateOperation=Ut,bn.CoordinateSequenceOperation=vr,s(Z.prototype,{setOrdinate:function(t,e,n){switch(e){case J.X:this.coordinates[t].x=n;break;case J.Y:this.coordinates[t].y=n;break;case J.Z:this.coordinates[t].z=n;break;default:throw new f}},size:function(){return this.coordinates.length},getOrdinate:function(t,e){switch(e){case J.X:return this.coordinates[t].x;case J.Y:return this.coordinates[t].y;case J.Z:return this.coordinates[t].z}return g.NaN},getCoordinate:function(){if(arguments.length===1){var t=arguments[0];return this.coordinates[t]}if(arguments.length===2){var e=arguments[0],n=arguments[1];n.x=this.coordinates[e].x,n.y=this.coordinates[e].y,n.z=this.coordinates[e].z}},getCoordinateCopy:function(t){return new O(this.coordinates[t])},getDimension:function(){return this.dimension},getX:function(t){return this.coordinates[t].x},clone:function(){for(var t=new Array(this.size()).fill(null),e=0;e<this.coordinates.length;e++)t[e]=this.coordinates[e].clone();return new Z(t,this.dimension)},expandEnvelope:function(t){for(var e=0;e<this.coordinates.length;e++)t.expandToInclude(this.coordinates[e]);return t},copy:function(){for(var t=new Array(this.size()).fill(null),e=0;e<this.coordinates.length;e++)t[e]=this.coordinates[e].copy();return new Z(t,this.dimension)},toString:function(){if(this.coordinates.length>0){var t=new Ct(17*this.coordinates.length);t.append("("),t.append(this.coordinates[0]);for(var e=1;e<this.coordinates.length;e++)t.append(", "),t.append(this.coordinates[e]);return t.append(")"),t.toString()}return"()"},getY:function(t){return this.coordinates[t].y},toCoordinateArray:function(){return this.coordinates},interfaces_:function(){return[J,_]},getClass:function(){return Z}}),Z.serialVersionUID=-0xcb44a778db18e00,s(pt.prototype,{readResolve:function(){return pt.instance()},create:function(){if(arguments.length===1){if(arguments[0]instanceof Array){var t=arguments[0];return new Z(t)}if(ot(arguments[0],J)){var e=arguments[0];return new Z(e)}}else if(arguments.length===2){var n=arguments[0],l=arguments[1];return l>3&&(l=3),2>l?new Z(n):new Z(n,l)}},interfaces_:function(){return[ut,_]},getClass:function(){return pt}}),pt.instance=function(){return pt.instanceObject},pt.serialVersionUID=-0x38e49fa6cf6f2e00,pt.instanceObject=new pt;var xi,b_=Object.defineProperty,x_=jt({delete:be,has:pn,get:ye,set:yt,keys:_t,values:Dt,entries:$t,forEach:hn,clear:Q}),E_=typeof Map<"u"&&Map.prototype.values?Map:x_;on.prototype=new Kt,on.prototype.get=function(t){return this.map_.get(t)||null},on.prototype.put=function(t,e){return this.map_.set(t,e),e},on.prototype.values=function(){for(var t=new F,e=this.map_.values(),n=e.next();!n.done;)t.add(n.value),n=e.next();return t},on.prototype.entrySet=function(){var t=new gt;return this.map_.entries().forEach(function(e){return t.add(e)}),t},on.prototype.size=function(){return this.map_.size()},s(ge.prototype,{equals:function(t){if(!(t instanceof ge))return!1;var e=t;return this.modelType===e.modelType&&this.scale===e.scale},compareTo:function(t){var e=t,n=this.getMaximumSignificantDigits(),l=e.getMaximumSignificantDigits();return new V(n).compareTo(new V(l))},getScale:function(){return this.scale},isFloating:function(){return this.modelType===ge.FLOATING||this.modelType===ge.FLOATING_SINGLE},getType:function(){return this.modelType},toString:function(){var t="UNKNOWN";return this.modelType===ge.FLOATING?t="Floating":this.modelType===ge.FLOATING_SINGLE?t="Floating-Single":this.modelType===ge.FIXED&&(t="Fixed (Scale="+this.getScale()+")"),t},makePrecise:function(){if(typeof arguments[0]=="number"){var t=arguments[0];if(g.isNaN(t))return t;if(this.modelType===ge.FLOATING_SINGLE){var e=t;return e}return this.modelType===ge.FIXED?Math.round(t*this.scale)/this.scale:t}if(arguments[0]instanceof O){var n=arguments[0];if(this.modelType===ge.FLOATING)return null;n.x=this.makePrecise(n.x),n.y=this.makePrecise(n.y)}},getMaximumSignificantDigits:function(){var t=16;return this.modelType===ge.FLOATING?t=16:this.modelType===ge.FLOATING_SINGLE?t=6:this.modelType===ge.FIXED&&(t=1+Math.trunc(Math.ceil(Math.log(this.getScale())/Math.log(10)))),t},setScale:function(t){this.scale=Math.abs(t)},interfaces_:function(){return[_,m]},getClass:function(){return ge}}),ge.mostPrecise=function(t,e){return t.compareTo(e)>=0?t:e},s(qn.prototype,{readResolve:function(){return qn.nameToTypeMap.get(this.name)},toString:function(){return this.name},interfaces_:function(){return[_]},getClass:function(){return qn}}),qn.serialVersionUID=-552860263173159e4,qn.nameToTypeMap=new on,ge.Type=qn,ge.serialVersionUID=7777263578777804e3,ge.FIXED=new qn("FIXED"),ge.FLOATING=new qn("FLOATING"),ge.FLOATING_SINGLE=new qn("FLOATING SINGLE"),ge.maximumPreciseValue=9007199254740992,s(Xt.prototype,{toGeometry:function(t){return t.isNull()?this.createPoint(null):t.getMinX()===t.getMaxX()&&t.getMinY()===t.getMaxY()?this.createPoint(new O(t.getMinX(),t.getMinY())):t.getMinX()===t.getMaxX()||t.getMinY()===t.getMaxY()?this.createLineString([new O(t.getMinX(),t.getMinY()),new O(t.getMaxX(),t.getMaxY())]):this.createPolygon(this.createLinearRing([new O(t.getMinX(),t.getMinY()),new O(t.getMinX(),t.getMaxY()),new O(t.getMaxX(),t.getMaxY()),new O(t.getMaxX(),t.getMinY()),new O(t.getMinX(),t.getMinY())]),null)},createLineString:function(){if(arguments.length===0)return this.createLineString(this.getCoordinateSequenceFactory().create([]));if(arguments.length===1){if(arguments[0]instanceof Array){var t=arguments[0];return this.createLineString(t!==null?this.getCoordinateSequenceFactory().create(t):null)}if(ot(arguments[0],J)){var e=arguments[0];return new Yt(e,this)}}},createMultiLineString:function(){if(arguments.length===0)return new He(null,this);if(arguments.length===1){var t=arguments[0];return new He(t,this)}},buildGeometry:function(t){for(var e=null,n=!1,l=!1,h=t.iterator();h.hasNext();){var p=h.next(),x=p.getClass();e===null&&(e=x),x!==e&&(n=!0),p.isGeometryCollectionOrDerived()&&(l=!0)}if(e===null)return this.createGeometryCollection();if(n||l)return this.createGeometryCollection(Xt.toGeometryArray(t));var I=t.iterator().next(),z=t.size()>1;if(z){if(I instanceof _e)return this.createMultiPolygon(Xt.toPolygonArray(t));if(I instanceof Yt)return this.createMultiLineString(Xt.toLineStringArray(t));if(I instanceof ne)return this.createMultiPoint(Xt.toPointArray(t));P.shouldNeverReachHere("Unhandled class: "+I.getClass().getName())}return I},createMultiPointFromCoords:function(t){return this.createMultiPoint(t!==null?this.getCoordinateSequenceFactory().create(t):null)},createPoint:function(){if(arguments.length===0)return this.createPoint(this.getCoordinateSequenceFactory().create([]));if(arguments.length===1){if(arguments[0]instanceof O){var t=arguments[0];return this.createPoint(t!==null?this.getCoordinateSequenceFactory().create([t]):null)}if(ot(arguments[0],J)){var e=arguments[0];return new ne(e,this)}}},getCoordinateSequenceFactory:function(){return this.coordinateSequenceFactory},createPolygon:function(){if(arguments.length===0)return new _e(null,null,this);if(arguments.length===1){if(ot(arguments[0],J)){var t=arguments[0];return this.createPolygon(this.createLinearRing(t))}if(arguments[0]instanceof Array){var e=arguments[0];return this.createPolygon(this.createLinearRing(e))}if(arguments[0]instanceof ke){var n=arguments[0];return this.createPolygon(n,null)}}else if(arguments.length===2){var l=arguments[0],h=arguments[1];return new _e(l,h,this)}},getSRID:function(){return this.SRID},createGeometryCollection:function(){if(arguments.length===0)return new Gt(null,this);if(arguments.length===1){var t=arguments[0];return new Gt(t,this)}},createGeometry:function(t){var e=new bn(this);return e.edit(t,{edit:function(){if(arguments.length===2){var n=arguments[0];return this.coordinateSequenceFactory.create(n)}}})},getPrecisionModel:function(){return this.precisionModel},createLinearRing:function(){if(arguments.length===0)return this.createLinearRing(this.getCoordinateSequenceFactory().create([]));if(arguments.length===1){if(arguments[0]instanceof Array){var t=arguments[0];return this.createLinearRing(t!==null?this.getCoordinateSequenceFactory().create(t):null)}if(ot(arguments[0],J)){var e=arguments[0];return new ke(e,this)}}},createMultiPolygon:function(){if(arguments.length===0)return new Je(null,this);if(arguments.length===1){var t=arguments[0];return new Je(t,this)}},createMultiPoint:function(){if(arguments.length===0)return new cn(null,this);if(arguments.length===1){if(arguments[0]instanceof Array){var t=arguments[0];return new cn(t,this)}if(arguments[0]instanceof Array){var e=arguments[0];return this.createMultiPoint(e!==null?this.getCoordinateSequenceFactory().create(e):null)}if(ot(arguments[0],J)){var n=arguments[0];if(n===null)return this.createMultiPoint(new Array(0).fill(null));for(var l=new Array(n.size()).fill(null),h=0;h<n.size();h++){var p=this.getCoordinateSequenceFactory().create(1,n.getDimension());ae.copy(n,h,p,0,1),l[h]=this.createPoint(p)}return this.createMultiPoint(l)}}},interfaces_:function(){return[_]},getClass:function(){return Xt}}),Xt.toMultiPolygonArray=function(t){var e=new Array(t.size()).fill(null);return t.toArray(e)},Xt.toGeometryArray=function(t){if(t===null)return null;var e=new Array(t.size()).fill(null);return t.toArray(e)},Xt.getDefaultCoordinateSequenceFactory=function(){return pt.instance()},Xt.toMultiLineStringArray=function(t){var e=new Array(t.size()).fill(null);return t.toArray(e)},Xt.toLineStringArray=function(t){var e=new Array(t.size()).fill(null);return t.toArray(e)},Xt.toMultiPointArray=function(t){var e=new Array(t.size()).fill(null);return t.toArray(e)},Xt.toLinearRingArray=function(t){var e=new Array(t.size()).fill(null);return t.toArray(e)},Xt.toPointArray=function(t){var e=new Array(t.size()).fill(null);return t.toArray(e)},Xt.toPolygonArray=function(t){var e=new Array(t.size()).fill(null);return t.toArray(e)},Xt.createPointFromInternalCoord=function(t,e){return e.getPrecisionModel().makePrecise(t),e.getFactory().createPoint(t)},Xt.serialVersionUID=-6820524753094096e3;var Xr={typeStr:/^\s*(\w+)\s*\(\s*(.*)\s*\)\s*$/,emptyTypeStr:/^\s*(\w+)\s*EMPTY\s*$/,spaces:/\s+/,parenComma:/\)\s*,\s*\(/,doubleParenComma:/\)\s*\)\s*,\s*\(\s*\(/,trimParens:/^\s*\(?(.*?)\)?\s*$/};s(Xi.prototype,{read:function(t){var e,n,l;t=t.replace(/[\n\r]/g," ");var h=Xr.typeStr.exec(t);if(t.search("EMPTY")!==-1&&(h=Xr.emptyTypeStr.exec(t),h[2]=void 0),h&&(n=h[1].toLowerCase(),l=h[2],na[n]&&(e=na[n].apply(this,[l]))),e===void 0)throw new Error("Could not parse WKT "+t);return e},write:function(t){return this.extractGeometry(t)},extractGeometry:function(t){var e=t.getGeometryType().toLowerCase();if(!Ui[e])return null;var n=e.toUpperCase();return t.isEmpty()?n+" EMPTY":n+"("+Ui[e].apply(this,[t])+")"}});var Ui={coordinate:function(t){return t.x+" "+t.y},point:function(t){return Ui.coordinate.call(this,t.coordinates.coordinates[0])},multipoint:function(t){for(var e=[],n=0,l=t.geometries.length;l>n;++n)e.push("("+Ui.point.apply(this,[t.geometries[n]])+")");return e.join(",")},linestring:function(t){for(var e=[],n=0,l=t.points.coordinates.length;l>n;++n)e.push(Ui.coordinate.apply(this,[t.points.coordinates[n]]));return e.join(",")},linearring:function(t){for(var e=[],n=0,l=t.points.coordinates.length;l>n;++n)e.push(Ui.coordinate.apply(this,[t.points.coordinates[n]]));return e.join(",")},multilinestring:function(t){for(var e=[],n=0,l=t.geometries.length;l>n;++n)e.push("("+Ui.linestring.apply(this,[t.geometries[n]])+")");return e.join(",")},polygon:function(t){var e=[];e.push("("+Ui.linestring.apply(this,[t.shell])+")");for(var n=0,l=t.holes.length;l>n;++n)e.push("("+Ui.linestring.apply(this,[t.holes[n]])+")");return e.join(",")},multipolygon:function(t){for(var e=[],n=0,l=t.geometries.length;l>n;++n)e.push("("+Ui.polygon.apply(this,[t.geometries[n]])+")");return e.join(",")},geometrycollection:function(t){for(var e=[],n=0,l=t.geometries.length;l>n;++n)e.push(this.extractGeometry(t.geometries[n]));return e.join(",")}},na={point:function(t){if(t===void 0)return this.geometryFactory.createPoint();var e=t.trim().split(Xr.spaces);return this.geometryFactory.createPoint(new O(Number.parseFloat(e[0]),Number.parseFloat(e[1])))},multipoint:function(t){if(t===void 0)return this.geometryFactory.createMultiPoint();for(var e,n=t.trim().split(","),l=[],h=0,p=n.length;p>h;++h)e=n[h].replace(Xr.trimParens,"$1"),l.push(na.point.apply(this,[e]));return this.geometryFactory.createMultiPoint(l)},linestring:function(t){if(t===void 0)return this.geometryFactory.createLineString();for(var e,n=t.trim().split(","),l=[],h=0,p=n.length;p>h;++h)e=n[h].trim().split(Xr.spaces),l.push(new O(Number.parseFloat(e[0]),Number.parseFloat(e[1])));return this.geometryFactory.createLineString(l)},linearring:function(t){if(t===void 0)return this.geometryFactory.createLinearRing();for(var e,n=t.trim().split(","),l=[],h=0,p=n.length;p>h;++h)e=n[h].trim().split(Xr.spaces),l.push(new O(Number.parseFloat(e[0]),Number.parseFloat(e[1])));return this.geometryFactory.createLinearRing(l)},multilinestring:function(t){if(t===void 0)return this.geometryFactory.createMultiLineString();for(var e,n=t.trim().split(Xr.parenComma),l=[],h=0,p=n.length;p>h;++h)e=n[h].replace(Xr.trimParens,"$1"),l.push(na.linestring.apply(this,[e]));return this.geometryFactory.createMultiLineString(l)},polygon:function(t){if(t===void 0)return this.geometryFactory.createPolygon();for(var e,n,l,h,p=t.trim().split(Xr.parenComma),x=[],I=0,z=p.length;z>I;++I)e=p[I].replace(Xr.trimParens,"$1"),n=na.linestring.apply(this,[e]),l=this.geometryFactory.createLinearRing(n.points),I===0?h=l:x.push(l);return this.geometryFactory.createPolygon(h,x)},multipolygon:function(t){if(t===void 0)return this.geometryFactory.createMultiPolygon();for(var e,n=t.trim().split(Xr.doubleParenComma),l=[],h=0,p=n.length;p>h;++h)e=n[h].replace(Xr.trimParens,"$1"),l.push(na.polygon.apply(this,[e]));return this.geometryFactory.createMultiPolygon(l)},geometrycollection:function(t){if(t===void 0)return this.geometryFactory.createGeometryCollection();t=t.replace(/,\s*([A-Za-z])/g,"|$1");for(var e=t.trim().split("|"),n=[],l=0,h=e.length;h>l;++l)n.push(this.read(e[l]));return this.geometryFactory.createGeometryCollection(n)}};s(vn.prototype,{write:function(t){return this.parser.write(t)}}),s(vn,{toLineString:function(t,e){if(arguments.length!==2)throw new Error("Not implemented");return"LINESTRING ( "+t.x+" "+t.y+", "+e.x+" "+e.y+" )"}}),s(Se.prototype,{getIndexAlongSegment:function(t,e){return this.computeIntLineIndex(),this.intLineIndex[t][e]},getTopologySummary:function(){var t=new Ct;return this.isEndPoint()&&t.append(" endpoint"),this._isProper&&t.append(" proper"),this.isCollinear()&&t.append(" collinear"),t.toString()},computeIntersection:function(t,e,n,l){this.inputLines[0][0]=t,this.inputLines[0][1]=e,this.inputLines[1][0]=n,this.inputLines[1][1]=l,this.result=this.computeIntersect(t,e,n,l)},getIntersectionNum:function(){return this.result},computeIntLineIndex:function(){if(arguments.length===0)this.intLineIndex===null&&(this.intLineIndex=Array(2).fill().map(function(){return Array(2)}),this.computeIntLineIndex(0),this.computeIntLineIndex(1));else if(arguments.length===1){var t=arguments[0],e=this.getEdgeDistance(t,0),n=this.getEdgeDistance(t,1);e>n?(this.intLineIndex[t][0]=0,this.intLineIndex[t][1]=1):(this.intLineIndex[t][0]=1,this.intLineIndex[t][1]=0)}},isProper:function(){return this.hasIntersection()&&this._isProper},setPrecisionModel:function(t){this.precisionModel=t},isInteriorIntersection:function(){if(arguments.length===0)return this.isInteriorIntersection(0)?!0:!!this.isInteriorIntersection(1);if(arguments.length===1){for(var t=arguments[0],e=0;e<this.result;e++)if(!this.intPt[e].equals2D(this.inputLines[t][0])&&!this.intPt[e].equals2D(this.inputLines[t][1]))return!0;return!1}},getIntersection:function(t){return this.intPt[t]},isEndPoint:function(){return this.hasIntersection()&&!this._isProper},hasIntersection:function(){return this.result!==Se.NO_INTERSECTION},getEdgeDistance:function(t,e){var n=Se.computeEdgeDistance(this.intPt[e],this.inputLines[t][0],this.inputLines[t][1]);return n},isCollinear:function(){return this.result===Se.COLLINEAR_INTERSECTION},toString:function(){return vn.toLineString(this.inputLines[0][0],this.inputLines[0][1])+" - "+vn.toLineString(this.inputLines[1][0],this.inputLines[1][1])+this.getTopologySummary()},getEndpoint:function(t,e){return this.inputLines[t][e]},isIntersection:function(t){for(var e=0;e<this.result;e++)if(this.intPt[e].equals2D(t))return!0;return!1},getIntersectionAlongSegment:function(t,e){return this.computeIntLineIndex(),this.intPt[this.intLineIndex[t][e]]},interfaces_:function(){return[]},getClass:function(){return Se}}),Se.computeEdgeDistance=function(t,e,n){var l=Math.abs(n.x-e.x),h=Math.abs(n.y-e.y),p=-1;if(t.equals(e))p=0;else if(t.equals(n))p=l>h?l:h;else{var x=Math.abs(t.x-e.x),I=Math.abs(t.y-e.y);p=l>h?x:I,p!==0||t.equals(e)||(p=Math.max(x,I))}return P.isTrue(!(p===0&&!t.equals(e)),"Bad distance calculation"),p},Se.nonRobustComputeEdgeDistance=function(t,e,n){var l=t.x-e.x,h=t.y-e.y,p=Math.sqrt(l*l+h*h);return P.isTrue(!(p===0&&!t.equals(e)),"Invalid distance calculation"),p},Se.DONT_INTERSECT=0,Se.DO_INTERSECT=1,Se.COLLINEAR=2,Se.NO_INTERSECTION=0,Se.POINT_INTERSECTION=1,Se.COLLINEAR_INTERSECTION=2,w(ie,Se),s(ie.prototype,{isInSegmentEnvelopes:function(t){var e=new U(this.inputLines[0][0],this.inputLines[0][1]),n=new U(this.inputLines[1][0],this.inputLines[1][1]);return e.contains(t)&&n.contains(t)},computeIntersection:function(){if(arguments.length!==3)return Se.prototype.computeIntersection.apply(this,arguments);var t=arguments[0],e=arguments[1],n=arguments[2];return this._isProper=!1,U.intersects(e,n,t)&&Ot.orientationIndex(e,n,t)===0&&Ot.orientationIndex(n,e,t)===0?(this._isProper=!0,(t.equals(e)||t.equals(n))&&(this._isProper=!1),this.result=Se.POINT_INTERSECTION,null):void(this.result=Se.NO_INTERSECTION)},normalizeToMinimum:function(t,e,n,l,h){h.x=this.smallestInAbsValue(t.x,e.x,n.x,l.x),h.y=this.smallestInAbsValue(t.y,e.y,n.y,l.y),t.x-=h.x,t.y-=h.y,e.x-=h.x,e.y-=h.y,n.x-=h.x,n.y-=h.y,l.x-=h.x,l.y-=h.y},safeHCoordinateIntersection:function(t,e,n,l){var h=null;try{h=st.intersection(t,e,n,l)}catch(p){if(!(p instanceof Y))throw p;h=ie.nearestEndpoint(t,e,n,l)}finally{}return h},intersection:function(t,e,n,l){var h=this.intersectionWithNormalization(t,e,n,l);return this.isInSegmentEnvelopes(h)||(h=new O(ie.nearestEndpoint(t,e,n,l))),this.precisionModel!==null&&this.precisionModel.makePrecise(h),h},smallestInAbsValue:function(t,e,n,l){var h=t,p=Math.abs(h);return Math.abs(e)<p&&(h=e,p=Math.abs(e)),Math.abs(n)<p&&(h=n,p=Math.abs(n)),Math.abs(l)<p&&(h=l),h},checkDD:function(t,e,n,l,h){var p=rt.intersection(t,e,n,l),x=this.isInSegmentEnvelopes(p);et.out.println("DD in env = "+x+"  --------------------- "+p),h.distance(p)>1e-4&&et.out.println("Distance = "+h.distance(p))},intersectionWithNormalization:function(t,e,n,l){var h=new O(t),p=new O(e),x=new O(n),I=new O(l),z=new O;this.normalizeToEnvCentre(h,p,x,I,z);var X=this.safeHCoordinateIntersection(h,p,x,I);return X.x+=z.x,X.y+=z.y,X},computeCollinearIntersection:function(t,e,n,l){var h=U.intersects(t,e,n),p=U.intersects(t,e,l),x=U.intersects(n,l,t),I=U.intersects(n,l,e);return h&&p?(this.intPt[0]=n,this.intPt[1]=l,Se.COLLINEAR_INTERSECTION):x&&I?(this.intPt[0]=t,this.intPt[1]=e,Se.COLLINEAR_INTERSECTION):h&&x?(this.intPt[0]=n,this.intPt[1]=t,!n.equals(t)||p||I?Se.COLLINEAR_INTERSECTION:Se.POINT_INTERSECTION):h&&I?(this.intPt[0]=n,this.intPt[1]=e,!n.equals(e)||p||x?Se.COLLINEAR_INTERSECTION:Se.POINT_INTERSECTION):p&&x?(this.intPt[0]=l,this.intPt[1]=t,!l.equals(t)||h||I?Se.COLLINEAR_INTERSECTION:Se.POINT_INTERSECTION):p&&I?(this.intPt[0]=l,this.intPt[1]=e,!l.equals(e)||h||x?Se.COLLINEAR_INTERSECTION:Se.POINT_INTERSECTION):Se.NO_INTERSECTION},normalizeToEnvCentre:function(t,e,n,l,h){var p=t.x<e.x?t.x:e.x,x=t.y<e.y?t.y:e.y,I=t.x>e.x?t.x:e.x,z=t.y>e.y?t.y:e.y,X=n.x<l.x?n.x:l.x,lt=n.y<l.y?n.y:l.y,ft=n.x>l.x?n.x:l.x,Et=n.y>l.y?n.y:l.y,qt=p>X?p:X,te=ft>I?I:ft,oe=x>lt?x:lt,Xe=Et>z?z:Et,Cn=(qt+te)/2,Jr=(oe+Xe)/2;h.x=Cn,h.y=Jr,t.x-=h.x,t.y-=h.y,e.x-=h.x,e.y-=h.y,n.x-=h.x,n.y-=h.y,l.x-=h.x,l.y-=h.y},computeIntersect:function(t,e,n,l){if(this._isProper=!1,!U.intersects(t,e,n,l))return Se.NO_INTERSECTION;var h=Ot.orientationIndex(t,e,n),p=Ot.orientationIndex(t,e,l);if(h>0&&p>0||0>h&&0>p)return Se.NO_INTERSECTION;var x=Ot.orientationIndex(n,l,t),I=Ot.orientationIndex(n,l,e);if(x>0&&I>0||0>x&&0>I)return Se.NO_INTERSECTION;var z=h===0&&p===0&&x===0&&I===0;return z?this.computeCollinearIntersection(t,e,n,l):(h===0||p===0||x===0||I===0?(this._isProper=!1,t.equals2D(n)||t.equals2D(l)?this.intPt[0]=t:e.equals2D(n)||e.equals2D(l)?this.intPt[0]=e:h===0?this.intPt[0]=new O(n):p===0?this.intPt[0]=new O(l):x===0?this.intPt[0]=new O(t):I===0&&(this.intPt[0]=new O(e))):(this._isProper=!0,this.intPt[0]=this.intersection(t,e,n,l)),Se.POINT_INTERSECTION)},interfaces_:function(){return[]},getClass:function(){return ie}}),ie.nearestEndpoint=function(t,e,n,l){var h=t,p=Ot.distancePointLine(t,n,l),x=Ot.distancePointLine(e,n,l);return p>x&&(p=x,h=e),x=Ot.distancePointLine(n,t,e),p>x&&(p=x,h=n),x=Ot.distancePointLine(l,t,e),p>x&&(p=x,h=l),h},s(Ye.prototype,{interfaces_:function(){return[]},getClass:function(){return Ye}}),Ye.orientationIndex=function(t,e,n){var l=e.x-t.x,h=e.y-t.y,p=n.x-e.x,x=n.y-e.y;return Ye.signOfDet2x2(l,h,p,x)},Ye.signOfDet2x2=function(t,e,n,l){var h=null,p=null,x=null;if(h=1,t===0||l===0)return e===0||n===0?0:e>0?n>0?-h:h:n>0?h:-h;if(e===0||n===0)return l>0?t>0?h:-h:t>0?-h:h;if(e>0?l>0?l>=e||(h=-h,p=t,t=n,n=p,p=e,e=l,l=p):-l>=e?(h=-h,n=-n,l=-l):(p=t,t=-n,n=p,p=e,e=-l,l=p):l>0?l>=-e?(h=-h,t=-t,e=-e):(p=-t,t=n,n=p,p=-e,e=l,l=p):e>=l?(t=-t,e=-e,n=-n,l=-l):(h=-h,p=-t,t=-n,n=p,p=-e,e=-l,l=p),t>0){if(!(n>0)||!(n>=t))return h}else{if(n>0||!(t>=n))return-h;h=-h,t=-t,n=-n}for(;;){if(x=Math.floor(n/t),n-=x*t,l-=x*e,0>l)return-h;if(l>e)return h;if(t>n+n){if(l+l>e)return h}else{if(e>l+l)return-h;n=t-n,l=e-l,h=-h}if(l===0)return n===0?0:-h;if(n===0||(x=Math.floor(t/n),t-=x*n,e-=x*l,0>e))return h;if(e>l)return-h;if(n>t+t){if(e+e>l)return-h}else{if(l>e+e)return h;t=n-t,e=l-e,h=-h}if(e===0)return t===0?0:h;if(t===0)return-h}},s(Hr.prototype,{countSegment:function(t,e){if(t.x<this.p.x&&e.x<this.p.x)return null;if(this.p.x===e.x&&this.p.y===e.y)return this.isPointOnSegment=!0,null;if(t.y===this.p.y&&e.y===this.p.y){var n=t.x,l=e.x;return n>l&&(n=e.x,l=t.x),this.p.x>=n&&this.p.x<=l&&(this.isPointOnSegment=!0),null}if(t.y>this.p.y&&e.y<=this.p.y||e.y>this.p.y&&t.y<=this.p.y){var h=t.x-this.p.x,p=t.y-this.p.y,x=e.x-this.p.x,I=e.y-this.p.y,z=Ye.signOfDet2x2(h,p,x,I);if(z===0)return this.isPointOnSegment=!0,null;p>I&&(z=-z),z>0&&this.crossingCount++}},isPointInPolygon:function(){return this.getLocation()!==M.EXTERIOR},getLocation:function(){return this.isPointOnSegment?M.BOUNDARY:this.crossingCount%2===1?M.INTERIOR:M.EXTERIOR},isOnSegment:function(){return this.isPointOnSegment},interfaces_:function(){return[]},getClass:function(){return Hr}}),Hr.locatePointInRing=function(){if(arguments[0]instanceof O&&ot(arguments[1],J)){for(var t=arguments[0],e=arguments[1],n=new Hr(t),l=new O,h=new O,p=1;p<e.size();p++)if(e.getCoordinate(p,l),e.getCoordinate(p-1,h),n.countSegment(l,h),n.isOnSegment())return n.getLocation();return n.getLocation()}if(arguments[0]instanceof O&&arguments[1]instanceof Array){for(var x=arguments[0],I=arguments[1],n=new Hr(x),p=1;p<I.length;p++){var l=I[p],h=I[p-1];if(n.countSegment(l,h),n.isOnSegment())return n.getLocation()}return n.getLocation()}},s(Ot.prototype,{interfaces_:function(){return[]},getClass:function(){return Ot}}),Ot.orientationIndex=function(t,e,n){return rt.orientationIndex(t,e,n)},Ot.signedArea=function(){if(arguments[0]instanceof Array){var t=arguments[0];if(t.length<3)return 0;for(var e=0,n=t[0].x,l=1;l<t.length-1;l++){var h=t[l].x-n,p=t[l+1].y,x=t[l-1].y;e+=h*(x-p)}return e/2}if(ot(arguments[0],J)){var I=arguments[0],z=I.size();if(3>z)return 0;var X=new O,lt=new O,ft=new O;I.getCoordinate(0,lt),I.getCoordinate(1,ft);var n=lt.x;ft.x-=n;for(var e=0,l=1;z-1>l;l++)X.y=lt.y,lt.x=ft.x,lt.y=ft.y,I.getCoordinate(l+1,ft),ft.x-=n,e+=lt.x*(X.y-ft.y);return e/2}},Ot.distanceLineLine=function(t,e,n,l){if(t.equals(e))return Ot.distancePointLine(t,n,l);if(n.equals(l))return Ot.distancePointLine(l,t,e);var h=!1;if(U.intersects(t,e,n,l)){var p=(e.x-t.x)*(l.y-n.y)-(e.y-t.y)*(l.x-n.x);if(p===0)h=!0;else{var x=(t.y-n.y)*(l.x-n.x)-(t.x-n.x)*(l.y-n.y),I=(t.y-n.y)*(e.x-t.x)-(t.x-n.x)*(e.y-t.y),z=I/p,X=x/p;(0>X||X>1||0>z||z>1)&&(h=!0)}}else h=!0;return h?ct.min(Ot.distancePointLine(t,n,l),Ot.distancePointLine(e,n,l),Ot.distancePointLine(n,t,e),Ot.distancePointLine(l,t,e)):0},Ot.isPointInRing=function(t,e){return Ot.locatePointInRing(t,e)!==M.EXTERIOR},Ot.computeLength=function(t){var e=t.size();if(1>=e)return 0;var n=0,l=new O;t.getCoordinate(0,l);for(var h=l.x,p=l.y,x=1;e>x;x++){t.getCoordinate(x,l);var I=l.x,z=l.y,X=I-h,lt=z-p;n+=Math.sqrt(X*X+lt*lt),h=I,p=z}return n},Ot.isCCW=function(t){var e=t.length-1;if(3>e)throw new f;for(var n=t[0],l=0,h=1;e>=h;h++){var p=t[h];p.y>n.y&&(n=p,l=h)}var x=l;do x-=1,0>x&&(x=e);while(t[x].equals2D(n)&&x!==l);var I=l;do I=(I+1)%e;while(t[I].equals2D(n)&&I!==l);var z=t[x],X=t[I];if(z.equals2D(n)||X.equals2D(n)||z.equals2D(X))return!1;var lt=Ot.computeOrientation(z,n,X);return lt===0?z.x>X.x:lt>0},Ot.locatePointInRing=function(t,e){return Hr.locatePointInRing(t,e)},Ot.distancePointLinePerpendicular=function(t,e,n){var l=(n.x-e.x)*(n.x-e.x)+(n.y-e.y)*(n.y-e.y),h=((e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y))/l;return Math.abs(h)*Math.sqrt(l)},Ot.computeOrientation=function(t,e,n){return Ot.orientationIndex(t,e,n)},Ot.distancePointLine=function(){if(arguments.length===2){var t=arguments[0],e=arguments[1];if(e.length===0)throw new f;for(var n=t.distance(e[0]),l=0;l<e.length-1;l++){var h=Ot.distancePointLine(t,e[l],e[l+1]);n>h&&(n=h)}return n}if(arguments.length===3){var p=arguments[0],x=arguments[1],I=arguments[2];if(x.x===I.x&&x.y===I.y)return p.distance(x);var z=(I.x-x.x)*(I.x-x.x)+(I.y-x.y)*(I.y-x.y),X=((p.x-x.x)*(I.x-x.x)+(p.y-x.y)*(I.y-x.y))/z;if(0>=X)return p.distance(x);if(X>=1)return p.distance(I);var lt=((x.y-p.y)*(I.x-x.x)-(x.x-p.x)*(I.y-x.y))/z;return Math.abs(lt)*Math.sqrt(z)}},Ot.isOnLine=function(t,e){for(var n=new ie,l=1;l<e.length;l++){var h=e[l-1],p=e[l];if(n.computeIntersection(t,h,p),n.hasIntersection())return!0}return!1},Ot.CLOCKWISE=-1,Ot.RIGHT=Ot.CLOCKWISE,Ot.COUNTERCLOCKWISE=1,Ot.LEFT=Ot.COUNTERCLOCKWISE,Ot.COLLINEAR=0,Ot.STRAIGHT=Ot.COLLINEAR,s(re.prototype,{minX:function(){return Math.min(this.p0.x,this.p1.x)},orientationIndex:function(){if(arguments[0]instanceof re){var t=arguments[0],e=Ot.orientationIndex(this.p0,this.p1,t.p0),n=Ot.orientationIndex(this.p0,this.p1,t.p1);return e>=0&&n>=0||0>=e&&0>=n?Math.max(e,n):0}if(arguments[0]instanceof O){var l=arguments[0];return Ot.orientationIndex(this.p0,this.p1,l)}},toGeometry:function(t){return t.createLineString([this.p0,this.p1])},isVertical:function(){return this.p0.x===this.p1.x},equals:function(t){if(!(t instanceof re))return!1;var e=t;return this.p0.equals(e.p0)&&this.p1.equals(e.p1)},intersection:function(t){var e=new ie;return e.computeIntersection(this.p0,this.p1,t.p0,t.p1),e.hasIntersection()?e.getIntersection(0):null},project:function(){if(arguments[0]instanceof O){var t=arguments[0];if(t.equals(this.p0)||t.equals(this.p1))return new O(t);var e=this.projectionFactor(t),n=new O;return n.x=this.p0.x+e*(this.p1.x-this.p0.x),n.y=this.p0.y+e*(this.p1.y-this.p0.y),n}if(arguments[0]instanceof re){var l=arguments[0],h=this.projectionFactor(l.p0),p=this.projectionFactor(l.p1);if(h>=1&&p>=1||0>=h&&0>=p)return null;var x=this.project(l.p0);0>h&&(x=this.p0),h>1&&(x=this.p1);var I=this.project(l.p1);return 0>p&&(I=this.p0),p>1&&(I=this.p1),new re(x,I)}},normalize:function(){this.p1.compareTo(this.p0)<0&&this.reverse()},angle:function(){return Math.atan2(this.p1.y-this.p0.y,this.p1.x-this.p0.x)},getCoordinate:function(t){return t===0?this.p0:this.p1},distancePerpendicular:function(t){return Ot.distancePointLinePerpendicular(t,this.p0,this.p1)},minY:function(){return Math.min(this.p0.y,this.p1.y)},midPoint:function(){return re.midPoint(this.p0,this.p1)},projectionFactor:function(t){if(t.equals(this.p0))return 0;if(t.equals(this.p1))return 1;var e=this.p1.x-this.p0.x,n=this.p1.y-this.p0.y,l=e*e+n*n;if(0>=l)return g.NaN;var h=((t.x-this.p0.x)*e+(t.y-this.p0.y)*n)/l;return h},closestPoints:function(t){var e=this.intersection(t);if(e!==null)return[e,e];var n=new Array(2).fill(null),l=g.MAX_VALUE,h=null,p=this.closestPoint(t.p0);l=p.distance(t.p0),n[0]=p,n[1]=t.p0;var x=this.closestPoint(t.p1);h=x.distance(t.p1),l>h&&(l=h,n[0]=x,n[1]=t.p1);var I=t.closestPoint(this.p0);h=I.distance(this.p0),l>h&&(l=h,n[0]=this.p0,n[1]=I);var z=t.closestPoint(this.p1);return h=z.distance(this.p1),l>h&&(l=h,n[0]=this.p1,n[1]=z),n},closestPoint:function(t){var e=this.projectionFactor(t);if(e>0&&1>e)return this.project(t);var n=this.p0.distance(t),l=this.p1.distance(t);return l>n?this.p0:this.p1},maxX:function(){return Math.max(this.p0.x,this.p1.x)},getLength:function(){return this.p0.distance(this.p1)},compareTo:function(t){var e=t,n=this.p0.compareTo(e.p0);return n!==0?n:this.p1.compareTo(e.p1)},reverse:function(){var t=this.p0;this.p0=this.p1,this.p1=t},equalsTopo:function(t){return this.p0.equals(t.p0)&&this.p1.equals(t.p1)||this.p0.equals(t.p1)&&this.p1.equals(t.p0)},lineIntersection:function(t){try{var e=st.intersection(this.p0,this.p1,t.p0,t.p1);return e}catch(n){if(!(n instanceof Y))throw n}finally{}return null},maxY:function(){return Math.max(this.p0.y,this.p1.y)},pointAlongOffset:function(t,e){var n=this.p0.x+t*(this.p1.x-this.p0.x),l=this.p0.y+t*(this.p1.y-this.p0.y),h=this.p1.x-this.p0.x,p=this.p1.y-this.p0.y,x=Math.sqrt(h*h+p*p),I=0,z=0;if(e!==0){if(0>=x)throw new IllegalStateException("Cannot compute offset from zero-length line segment");I=e*h/x,z=e*p/x}var X=n-z,lt=l+I,ft=new O(X,lt);return ft},setCoordinates:function(){if(arguments.length===1){var t=arguments[0];this.setCoordinates(t.p0,t.p1)}else if(arguments.length===2){var e=arguments[0],n=arguments[1];this.p0.x=e.x,this.p0.y=e.y,this.p1.x=n.x,this.p1.y=n.y}},segmentFraction:function(t){var e=this.projectionFactor(t);return 0>e?e=0:(e>1||g.isNaN(e))&&(e=1),e},toString:function(){return"LINESTRING( "+this.p0.x+" "+this.p0.y+", "+this.p1.x+" "+this.p1.y+")"},isHorizontal:function(){return this.p0.y===this.p1.y},distance:function(){if(arguments[0]instanceof re){var t=arguments[0];return Ot.distanceLineLine(this.p0,this.p1,t.p0,t.p1)}if(arguments[0]instanceof O){var e=arguments[0];return Ot.distancePointLine(e,this.p0,this.p1)}},pointAlong:function(t){var e=new O;return e.x=this.p0.x+t*(this.p1.x-this.p0.x),e.y=this.p0.y+t*(this.p1.y-this.p0.y),e},hashCode:function(){var t=java.lang.Double.doubleToLongBits(this.p0.x);t^=31*java.lang.Double.doubleToLongBits(this.p0.y);var e=Math.trunc(t)^Math.trunc(t>>32),n=java.lang.Double.doubleToLongBits(this.p1.x);n^=31*java.lang.Double.doubleToLongBits(this.p1.y);var l=Math.trunc(n)^Math.trunc(n>>32);return e^l},interfaces_:function(){return[m,_]},getClass:function(){return re}}),re.midPoint=function(t,e){return new O((t.x+e.x)/2,(t.y+e.y)/2)},re.serialVersionUID=0x2d2172135f411c00,s(Te.prototype,{isIntersects:function(){return!this.isDisjoint()},isCovers:function(){var t=Te.isTrue(this.matrix[M.INTERIOR][M.INTERIOR])||Te.isTrue(this.matrix[M.INTERIOR][M.BOUNDARY])||Te.isTrue(this.matrix[M.BOUNDARY][M.INTERIOR])||Te.isTrue(this.matrix[M.BOUNDARY][M.BOUNDARY]);return t&&this.matrix[M.EXTERIOR][M.INTERIOR]===mt.FALSE&&this.matrix[M.EXTERIOR][M.BOUNDARY]===mt.FALSE},isCoveredBy:function(){var t=Te.isTrue(this.matrix[M.INTERIOR][M.INTERIOR])||Te.isTrue(this.matrix[M.INTERIOR][M.BOUNDARY])||Te.isTrue(this.matrix[M.BOUNDARY][M.INTERIOR])||Te.isTrue(this.matrix[M.BOUNDARY][M.BOUNDARY]);return t&&this.matrix[M.INTERIOR][M.EXTERIOR]===mt.FALSE&&this.matrix[M.BOUNDARY][M.EXTERIOR]===mt.FALSE},set:function(){if(arguments.length===1)for(var t=arguments[0],e=0;e<t.length;e++){var n=Math.trunc(e/3),l=e%3;this.matrix[n][l]=mt.toDimensionValue(t.charAt(e))}else if(arguments.length===3){var h=arguments[0],p=arguments[1],x=arguments[2];this.matrix[h][p]=x}},isContains:function(){return Te.isTrue(this.matrix[M.INTERIOR][M.INTERIOR])&&this.matrix[M.EXTERIOR][M.INTERIOR]===mt.FALSE&&this.matrix[M.EXTERIOR][M.BOUNDARY]===mt.FALSE},setAtLeast:function(){if(arguments.length===1)for(var t=arguments[0],e=0;e<t.length;e++){var n=Math.trunc(e/3),l=e%3;this.setAtLeast(n,l,mt.toDimensionValue(t.charAt(e)))}else if(arguments.length===3){var h=arguments[0],p=arguments[1],x=arguments[2];this.matrix[h][p]<x&&(this.matrix[h][p]=x)}},setAtLeastIfValid:function(t,e,n){t>=0&&e>=0&&this.setAtLeast(t,e,n)},isWithin:function(){return Te.isTrue(this.matrix[M.INTERIOR][M.INTERIOR])&&this.matrix[M.INTERIOR][M.EXTERIOR]===mt.FALSE&&this.matrix[M.BOUNDARY][M.EXTERIOR]===mt.FALSE},isTouches:function(t,e){return t>e?this.isTouches(e,t):t===mt.A&&e===mt.A||t===mt.L&&e===mt.L||t===mt.L&&e===mt.A||t===mt.P&&e===mt.A||t===mt.P&&e===mt.L?this.matrix[M.INTERIOR][M.INTERIOR]===mt.FALSE&&(Te.isTrue(this.matrix[M.INTERIOR][M.BOUNDARY])||Te.isTrue(this.matrix[M.BOUNDARY][M.INTERIOR])||Te.isTrue(this.matrix[M.BOUNDARY][M.BOUNDARY])):!1},isOverlaps:function(t,e){return t===mt.P&&e===mt.P||t===mt.A&&e===mt.A?Te.isTrue(this.matrix[M.INTERIOR][M.INTERIOR])&&Te.isTrue(this.matrix[M.INTERIOR][M.EXTERIOR])&&Te.isTrue(this.matrix[M.EXTERIOR][M.INTERIOR]):t===mt.L&&e===mt.L?this.matrix[M.INTERIOR][M.INTERIOR]===1&&Te.isTrue(this.matrix[M.INTERIOR][M.EXTERIOR])&&Te.isTrue(this.matrix[M.EXTERIOR][M.INTERIOR]):!1},isEquals:function(t,e){return t!==e?!1:Te.isTrue(this.matrix[M.INTERIOR][M.INTERIOR])&&this.matrix[M.INTERIOR][M.EXTERIOR]===mt.FALSE&&this.matrix[M.BOUNDARY][M.EXTERIOR]===mt.FALSE&&this.matrix[M.EXTERIOR][M.INTERIOR]===mt.FALSE&&this.matrix[M.EXTERIOR][M.BOUNDARY]===mt.FALSE},toString:function(){for(var t=new Ct("123456789"),e=0;3>e;e++)for(var n=0;3>n;n++)t.setCharAt(3*e+n,mt.toDimensionSymbol(this.matrix[e][n]));return t.toString()},setAll:function(t){for(var e=0;3>e;e++)for(var n=0;3>n;n++)this.matrix[e][n]=t},get:function(t,e){return this.matrix[t][e]},transpose:function(){var t=this.matrix[1][0];return this.matrix[1][0]=this.matrix[0][1],this.matrix[0][1]=t,t=this.matrix[2][0],this.matrix[2][0]=this.matrix[0][2],this.matrix[0][2]=t,t=this.matrix[2][1],this.matrix[2][1]=this.matrix[1][2],this.matrix[1][2]=t,this},matches:function(t){if(t.length!==9)throw new f;for(var e=0;3>e;e++)for(var n=0;3>n;n++)if(!Te.matches(this.matrix[e][n],t.charAt(3*e+n)))return!1;return!0},add:function(t){for(var e=0;3>e;e++)for(var n=0;3>n;n++)this.setAtLeast(e,n,t.get(e,n))},isDisjoint:function(){return this.matrix[M.INTERIOR][M.INTERIOR]===mt.FALSE&&this.matrix[M.INTERIOR][M.BOUNDARY]===mt.FALSE&&this.matrix[M.BOUNDARY][M.INTERIOR]===mt.FALSE&&this.matrix[M.BOUNDARY][M.BOUNDARY]===mt.FALSE},isCrosses:function(t,e){return t===mt.P&&e===mt.L||t===mt.P&&e===mt.A||t===mt.L&&e===mt.A?Te.isTrue(this.matrix[M.INTERIOR][M.INTERIOR])&&Te.isTrue(this.matrix[M.INTERIOR][M.EXTERIOR]):t===mt.L&&e===mt.P||t===mt.A&&e===mt.P||t===mt.A&&e===mt.L?Te.isTrue(this.matrix[M.INTERIOR][M.INTERIOR])&&Te.isTrue(this.matrix[M.EXTERIOR][M.INTERIOR]):t===mt.L&&e===mt.L?this.matrix[M.INTERIOR][M.INTERIOR]===0:!1},interfaces_:function(){return[y]},getClass:function(){return Te}}),Te.matches=function(){if(Number.isInteger(arguments[0])&&typeof arguments[1]=="string"){var t=arguments[0],e=arguments[1];return e===mt.SYM_DONTCARE||e===mt.SYM_TRUE&&(t>=0||t===mt.TRUE)||e===mt.SYM_FALSE&&t===mt.FALSE||e===mt.SYM_P&&t===mt.P||e===mt.SYM_L&&t===mt.L?!0:e===mt.SYM_A&&t===mt.A}if(typeof arguments[0]=="string"&&typeof arguments[1]=="string"){var n=arguments[0],l=arguments[1],h=new Te(n);return h.matches(l)}},Te.isTrue=function(t){return t>=0||t===mt.TRUE};var w_=Object.freeze({Coordinate:O,CoordinateList:H,Envelope:U,LineSegment:re,GeometryFactory:Xt,Geometry:nt,Point:ne,LineString:Yt,LinearRing:ke,Polygon:_e,GeometryCollection:Gt,MultiPoint:cn,MultiLineString:He,MultiPolygon:Je,Dimension:mt,IntersectionMatrix:Te});s(le.prototype,{addPoint:function(t){this.ptCount+=1,this.ptCentSum.x+=t.x,this.ptCentSum.y+=t.y},setBasePoint:function(t){this.areaBasePt===null&&(this.areaBasePt=t)},addLineSegments:function(t){for(var e=0,n=0;n<t.length-1;n++){var l=t[n].distance(t[n+1]);if(l!==0){e+=l;var h=(t[n].x+t[n+1].x)/2;this.lineCentSum.x+=l*h;var p=(t[n].y+t[n+1].y)/2;this.lineCentSum.y+=l*p}}this.totalLength+=e,e===0&&t.length>0&&this.addPoint(t[0])},addHole:function(t){for(var e=Ot.isCCW(t),n=0;n<t.length-1;n++)this.addTriangle(this.areaBasePt,t[n],t[n+1],e);this.addLineSegments(t)},getCentroid:function(){var t=new O;if(Math.abs(this.areasum2)>0)t.x=this.cg3.x/3/this.areasum2,t.y=this.cg3.y/3/this.areasum2;else if(this.totalLength>0)t.x=this.lineCentSum.x/this.totalLength,t.y=this.lineCentSum.y/this.totalLength;else{if(!(this.ptCount>0))return null;t.x=this.ptCentSum.x/this.ptCount,t.y=this.ptCentSum.y/this.ptCount}return t},addShell:function(t){t.length>0&&this.setBasePoint(t[0]);for(var e=!Ot.isCCW(t),n=0;n<t.length-1;n++)this.addTriangle(this.areaBasePt,t[n],t[n+1],e);this.addLineSegments(t)},addTriangle:function(t,e,n,l){var h=l?1:-1;le.centroid3(t,e,n,this.triangleCent3);var p=le.area2(t,e,n);this.cg3.x+=h*p*this.triangleCent3.x,this.cg3.y+=h*p*this.triangleCent3.y,this.areasum2+=h*p},add:function(){if(arguments[0]instanceof _e){var t=arguments[0];this.addShell(t.getExteriorRing().getCoordinates());for(var e=0;e<t.getNumInteriorRing();e++)this.addHole(t.getInteriorRingN(e).getCoordinates())}else if(arguments[0]instanceof nt){var n=arguments[0];if(n.isEmpty())return null;if(n instanceof ne)this.addPoint(n.getCoordinate());else if(n instanceof Yt)this.addLineSegments(n.getCoordinates());else if(n instanceof _e){var l=n;this.add(l)}else if(n instanceof Gt)for(var h=n,e=0;e<h.getNumGeometries();e++)this.add(h.getGeometryN(e))}},interfaces_:function(){return[]},getClass:function(){return le}}),le.area2=function(t,e,n){return(e.x-t.x)*(n.y-t.y)-(n.x-t.x)*(e.y-t.y)},le.centroid3=function(t,e,n,l){return l.x=t.x+e.x+n.x,l.y=t.y+e.y+n.y,null},le.getCentroid=function(t){var e=new le(t);return e.getCentroid()},fn.prototype=new Error,fn.prototype.name="EmptyStackException",Pn.prototype=new R,Pn.prototype.add=function(t){return this.array_.push(t),!0},Pn.prototype.get=function(t){if(0>t||t>=this.size())throw new IndexOutOfBoundsException;return this.array_[t]},Pn.prototype.push=function(t){return this.array_.push(t),t},Pn.prototype.pop=function(t){if(this.array_.length===0)throw new fn;return this.array_.pop()},Pn.prototype.peek=function(){if(this.array_.length===0)throw new fn;return this.array_[this.array_.length-1]},Pn.prototype.empty=function(){return this.array_.length===0},Pn.prototype.isEmpty=function(){return this.empty()},Pn.prototype.search=function(t){return this.array_.indexOf(t)},Pn.prototype.size=function(){return this.array_.length},Pn.prototype.toArray=function(){for(var t=[],e=0,n=this.array_.length;n>e;e++)t.push(this.array_[e]);return t},s(ni.prototype,{filter:function(t){this.treeSet.contains(t)||(this.list.add(t),this.treeSet.add(t))},getCoordinates:function(){var t=new Array(this.list.size()).fill(null);return this.list.toArray(t)},interfaces_:function(){return[Nt]},getClass:function(){return ni}}),ni.filterCoordinates=function(t){for(var e=new ni,n=0;n<t.length;n++)e.filter(t[n]);return e.getCoordinates()},s(xn.prototype,{preSort:function(t){for(var e=null,n=1;n<t.length;n++)(t[n].y<t[0].y||t[n].y===t[0].y&&t[n].x<t[0].x)&&(e=t[0],t[0]=t[n],t[n]=e);return he.sort(t,1,t.length,new _s(t[0])),t},computeOctRing:function(t){var e=this.computeOctPts(t),n=new H;return n.add(e,!1),n.size()<3?null:(n.closeRing(),n.toCoordinateArray())},lineOrPolygon:function(t){if(t=this.cleanRing(t),t.length===3)return this.geomFactory.createLineString([t[0],t[1]]);var e=this.geomFactory.createLinearRing(t);return this.geomFactory.createPolygon(e,null)},cleanRing:function(t){P.equals(t[0],t[t.length-1]);for(var e=new F,n=null,l=0;l<=t.length-2;l++){var h=t[l],p=t[l+1];h.equals(p)||n!==null&&this.isBetween(n,h,p)||(e.add(h),n=h)}e.add(t[t.length-1]);var x=new Array(e.size()).fill(null);return e.toArray(x)},isBetween:function(t,e,n){return Ot.computeOrientation(t,e,n)!==0?!1:t.x!==n.x&&(t.x<=e.x&&e.x<=n.x||n.x<=e.x&&e.x<=t.x)||t.y!==n.y&&(t.y<=e.y&&e.y<=n.y||n.y<=e.y&&e.y<=t.y)},reduce:function(t){var e=this.computeOctRing(t);if(e===null)return t;for(var n=new Wt,l=0;l<e.length;l++)n.add(e[l]);for(var l=0;l<t.length;l++)Ot.isPointInRing(t[l],e)||n.add(t[l]);var h=kt.toCoordinateArray(n);return h.length<3?this.padArray3(h):h},getConvexHull:function(){if(this.inputPts.length===0)return this.geomFactory.createGeometryCollection(null);if(this.inputPts.length===1)return this.geomFactory.createPoint(this.inputPts[0]);if(this.inputPts.length===2)return this.geomFactory.createLineString(this.inputPts);var t=this.inputPts;this.inputPts.length>50&&(t=this.reduce(this.inputPts));var e=this.preSort(t),n=this.grahamScan(e),l=this.toCoordinateArray(n);return this.lineOrPolygon(l)},padArray3:function(t){for(var e=new Array(3).fill(null),n=0;n<e.length;n++)n<t.length?e[n]=t[n]:e[n]=t[0];return e},computeOctPts:function(t){for(var e=new Array(8).fill(null),n=0;n<e.length;n++)e[n]=t[0];for(var l=1;l<t.length;l++)t[l].x<e[0].x&&(e[0]=t[l]),t[l].x-t[l].y<e[1].x-e[1].y&&(e[1]=t[l]),t[l].y>e[2].y&&(e[2]=t[l]),t[l].x+t[l].y>e[3].x+e[3].y&&(e[3]=t[l]),t[l].x>e[4].x&&(e[4]=t[l]),t[l].x-t[l].y>e[5].x-e[5].y&&(e[5]=t[l]),t[l].y<e[6].y&&(e[6]=t[l]),t[l].x+t[l].y<e[7].x+e[7].y&&(e[7]=t[l]);return e},toCoordinateArray:function(t){for(var e=new Array(t.size()).fill(null),n=0;n<t.size();n++){var l=t.get(n);e[n]=l}return e},grahamScan:function(t){var e=null,n=new Pn;e=n.push(t[0]),e=n.push(t[1]),e=n.push(t[2]);for(var l=3;l<t.length;l++){for(e=n.pop();!n.empty()&&Ot.computeOrientation(n.peek(),e,t[l])>0;)e=n.pop();e=n.push(e),e=n.push(t[l])}return e=n.push(t[0]),n},interfaces_:function(){return[]},getClass:function(){return xn}}),xn.extractCoordinates=function(t){var e=new ni;return t.apply(e),e.getCoordinates()},s(_s.prototype,{compare:function(t,e){var n=t,l=e;return _s.polarCompare(this.origin,n,l)},interfaces_:function(){return[C]},getClass:function(){return _s}}),_s.polarCompare=function(t,e,n){var l=e.x-t.x,h=e.y-t.y,p=n.x-t.x,x=n.y-t.y,I=Ot.computeOrientation(t,e,n);if(I===Ot.COUNTERCLOCKWISE)return 1;if(I===Ot.CLOCKWISE)return-1;var z=l*l+h*h,X=p*p+x*x;return X>z?-1:z>X?1:0},xn.RadialComparator=_s,s(Tn.prototype,{transformPoint:function(t,e){return this.factory.createPoint(this.transformCoordinates(t.getCoordinateSequence(),t))},transformPolygon:function(t,e){var n=!0,l=this.transformLinearRing(t.getExteriorRing(),t);l!==null&&l instanceof ke&&!l.isEmpty()||(n=!1);for(var h=new F,p=0;p<t.getNumInteriorRing();p++){var x=this.transformLinearRing(t.getInteriorRingN(p),t);x===null||x.isEmpty()||(x instanceof ke||(n=!1),h.add(x))}if(n)return this.factory.createPolygon(l,h.toArray([]));var I=new F;return l!==null&&I.add(l),I.addAll(h),this.factory.buildGeometry(I)},createCoordinateSequence:function(t){return this.factory.getCoordinateSequenceFactory().create(t)},getInputGeometry:function(){return this.inputGeom},transformMultiLineString:function(t,e){for(var n=new F,l=0;l<t.getNumGeometries();l++){var h=this.transformLineString(t.getGeometryN(l),t);h!==null&&(h.isEmpty()||n.add(h))}return this.factory.buildGeometry(n)},transformCoordinates:function(t,e){return this.copy(t)},transformLineString:function(t,e){return this.factory.createLineString(this.transformCoordinates(t.getCoordinateSequence(),t))},transformMultiPoint:function(t,e){for(var n=new F,l=0;l<t.getNumGeometries();l++){var h=this.transformPoint(t.getGeometryN(l),t);h!==null&&(h.isEmpty()||n.add(h))}return this.factory.buildGeometry(n)},transformMultiPolygon:function(t,e){for(var n=new F,l=0;l<t.getNumGeometries();l++){var h=this.transformPolygon(t.getGeometryN(l),t);h!==null&&(h.isEmpty()||n.add(h))}return this.factory.buildGeometry(n)},copy:function(t){return t.copy()},transformGeometryCollection:function(t,e){for(var n=new F,l=0;l<t.getNumGeometries();l++){var h=this.transform(t.getGeometryN(l));h!==null&&(this.pruneEmptyGeometry&&h.isEmpty()||n.add(h))}return this.preserveGeometryCollectionType?this.factory.createGeometryCollection(Xt.toGeometryArray(n)):this.factory.buildGeometry(n)},transform:function(t){if(this.inputGeom=t,this.factory=t.getFactory(),t instanceof ne)return this.transformPoint(t,null);if(t instanceof cn)return this.transformMultiPoint(t,null);if(t instanceof ke)return this.transformLinearRing(t,null);if(t instanceof Yt)return this.transformLineString(t,null);if(t instanceof He)return this.transformMultiLineString(t,null);if(t instanceof _e)return this.transformPolygon(t,null);if(t instanceof Je)return this.transformMultiPolygon(t,null);if(t instanceof Gt)return this.transformGeometryCollection(t,null);throw new f("Unknown Geometry subtype: "+t.getClass().getName())},transformLinearRing:function(t,e){var n=this.transformCoordinates(t.getCoordinateSequence(),t);if(n===null)return this.factory.createLinearRing(null);var l=n.size();return l>0&&4>l&&!this.preserveType?this.factory.createLineString(n):this.factory.createLinearRing(n)},interfaces_:function(){return[]},getClass:function(){return Tn}}),s(yr.prototype,{snapVertices:function(t,e){for(var n=this._isClosed?t.size()-1:t.size(),l=0;n>l;l++){var h=t.get(l),p=this.findSnapForVertex(h,e);p!==null&&(t.set(l,new O(p)),l===0&&this._isClosed&&t.set(t.size()-1,new O(p)))}},findSnapForVertex:function(t,e){for(var n=0;n<e.length;n++){if(t.equals2D(e[n]))return null;if(t.distance(e[n])<this.snapTolerance)return e[n]}return null},snapTo:function(t){var e=new H(this.srcPts);this.snapVertices(e,t),this.snapSegments(e,t);var n=e.toCoordinateArray();return n},snapSegments:function(t,e){if(e.length===0)return null;var n=e.length;e[0].equals2D(e[e.length-1])&&(n=e.length-1);for(var l=0;n>l;l++){var h=e[l],p=this.findSegmentIndexToSnap(h,t);p>=0&&t.add(p+1,new O(h),!1)}},findSegmentIndexToSnap:function(t,e){for(var n=g.MAX_VALUE,l=-1,h=0;h<e.size()-1;h++){if(this.seg.p0=e.get(h),this.seg.p1=e.get(h+1),this.seg.p0.equals2D(t)||this.seg.p1.equals2D(t)){if(this.allowSnappingToSourceVertices)continue;return-1}var p=this.seg.distance(t);p<this.snapTolerance&&n>p&&(n=p,l=h)}return l},setAllowSnappingToSourceVertices:function(t){this.allowSnappingToSourceVertices=t},interfaces_:function(){return[]},getClass:function(){return yr}}),yr.isClosed=function(t){return t.length<=1?!1:t[0].equals2D(t[t.length-1])},s(Me.prototype,{snapTo:function(t,e){var n=this.extractTargetCoordinates(t),l=new Mr(e,n);return l.transform(this.srcGeom)},snapToSelf:function(t,e){var n=this.extractTargetCoordinates(this.srcGeom),l=new Mr(t,n,!0),h=l.transform(this.srcGeom),p=h;return e&&ot(p,Ke)&&(p=h.buffer(0)),p},computeSnapTolerance:function(t){var e=this.computeMinimumSegmentLength(t),n=e/10;return n},extractTargetCoordinates:function(t){for(var e=new Wt,n=t.getCoordinates(),l=0;l<n.length;l++)e.add(n[l]);return e.toArray(new Array(0).fill(null))},computeMinimumSegmentLength:function(t){for(var e=g.MAX_VALUE,n=0;n<t.length-1;n++){var l=t[n].distance(t[n+1]);e>l&&(e=l)}return e},interfaces_:function(){return[]},getClass:function(){return Me}}),Me.snap=function(t,e,n){var l=new Array(2).fill(null),h=new Me(t);l[0]=h.snapTo(e,n);var p=new Me(e);return l[1]=p.snapTo(l[0],n),l},Me.computeOverlaySnapTolerance=function(){if(arguments.length===1){var t=arguments[0],e=Me.computeSizeBasedSnapTolerance(t),n=t.getPrecisionModel();if(n.getType()===ge.FIXED){var l=1/n.getScale()*2/1.415;l>e&&(e=l)}return e}if(arguments.length===2){var h=arguments[0],p=arguments[1];return Math.min(Me.computeOverlaySnapTolerance(h),Me.computeOverlaySnapTolerance(p))}},Me.computeSizeBasedSnapTolerance=function(t){var e=t.getEnvelopeInternal(),n=Math.min(e.getHeight(),e.getWidth()),l=n*Me.SNAP_PRECISION_FACTOR;return l},Me.snapToSelf=function(t,e,n){var l=new Me(t);return l.snapToSelf(e,n)},Me.SNAP_PRECISION_FACTOR=1e-9,w(Mr,Tn),s(Mr.prototype,{snapLine:function(t,e){var n=new yr(t,this.snapTolerance);return n.setAllowSnappingToSourceVertices(this.isSelfSnap),n.snapTo(e)},transformCoordinates:function(t,e){var n=t.toCoordinateArray(),l=this.snapLine(n,this.snapPts);return this.factory.getCoordinateSequenceFactory().create(l)},interfaces_:function(){return[]},getClass:function(){return Mr}}),s(kn.prototype,{getCommon:function(){return g.longBitsToDouble(this.commonBits)},add:function(t){var e=g.doubleToLongBits(t);if(this.isFirst)return this.commonBits=e,this.commonSignExp=kn.signExpBits(this.commonBits),this.isFirst=!1,null;var n=kn.signExpBits(e);return n!==this.commonSignExp?(this.commonBits=0,null):(this.commonMantissaBitsCount=kn.numCommonMostSigMantissaBits(this.commonBits,e),void(this.commonBits=kn.zeroLowerBits(this.commonBits,64-(12+this.commonMantissaBitsCount))))},toString:function(){if(arguments.length===1){var t=arguments[0],e=g.longBitsToDouble(t),n=Long.toBinaryString(t),l="0000000000000000000000000000000000000000000000000000000000000000"+n,h=l.substring(l.length-64),p=h.substring(0,1)+"  "+h.substring(1,12)+"(exp) "+h.substring(12)+" [ "+e+" ]";return p}},interfaces_:function(){return[]},getClass:function(){return kn}}),kn.getBit=function(t,e){var n=1<<e;return(t&n)!==0?1:0},kn.signExpBits=function(t){return t>>52},kn.zeroLowerBits=function(t,e){var n=(1<<e)-1,l=~n,h=t&l;return h},kn.numCommonMostSigMantissaBits=function(t,e){for(var n=0,l=52;l>=0;l--){if(kn.getBit(t,l)!==kn.getBit(e,l))return n;n++}return 52},s(ri.prototype,{addCommonBits:function(t){var e=new ii(this.commonCoord);t.apply(e),t.geometryChanged()},removeCommonBits:function(t){if(this.commonCoord.x===0&&this.commonCoord.y===0)return t;var e=new O(this.commonCoord);e.x=-e.x,e.y=-e.y;var n=new ii(e);return t.apply(n),t.geometryChanged(),t},getCommonCoordinate:function(){return this.commonCoord},add:function(t){t.apply(this.ccFilter),this.commonCoord=this.ccFilter.getCommonCoordinate()},interfaces_:function(){return[]},getClass:function(){return ri}}),s(bs.prototype,{filter:function(t){this.commonBitsX.add(t.x),this.commonBitsY.add(t.y)},getCommonCoordinate:function(){return new O(this.commonBitsX.getCommon(),this.commonBitsY.getCommon())},interfaces_:function(){return[Nt]},getClass:function(){return bs}}),s(ii.prototype,{filter:function(t,e){var n=t.getOrdinate(e,0)+this.trans.x,l=t.getOrdinate(e,1)+this.trans.y;t.setOrdinate(e,0,n),t.setOrdinate(e,1,l)},isDone:function(){return!1},isGeometryChanged:function(){return!0},interfaces_:function(){return[en]},getClass:function(){return ii}}),ri.CommonCoordinateFilter=bs,ri.Translater=ii,s(si.prototype,{next:function(){if(this.atStart)return this.atStart=!1,si.isAtomic(this.parent)&&this.index++,this.parent;if(this.subcollectionIterator!==null){if(this.subcollectionIterator.hasNext())return this.subcollectionIterator.next();this.subcollectionIterator=null}if(this.index>=this.max)throw new j;var t=this.parent.getGeometryN(this.index++);return t instanceof Gt?(this.subcollectionIterator=new si(t),this.subcollectionIterator.next()):t},remove:function(){throw new UnsupportedOperationException(this.getClass().getName())},hasNext:function(){if(this.atStart)return!0;if(this.subcollectionIterator!==null){if(this.subcollectionIterator.hasNext())return!0;this.subcollectionIterator=null}return!(this.index>=this.max)},interfaces_:function(){return[G]},getClass:function(){return si}}),si.isAtomic=function(t){return!(t instanceof Gt)},s(oi.prototype,{locateInternal:function(){if(arguments[0]instanceof O&&arguments[1]instanceof _e){var t=arguments[0],e=arguments[1];if(e.isEmpty())return M.EXTERIOR;var n=e.getExteriorRing(),l=this.locateInPolygonRing(t,n);if(l===M.EXTERIOR)return M.EXTERIOR;if(l===M.BOUNDARY)return M.BOUNDARY;for(var h=0;h<e.getNumInteriorRing();h++){var p=e.getInteriorRingN(h),x=this.locateInPolygonRing(t,p);if(x===M.INTERIOR)return M.EXTERIOR;if(x===M.BOUNDARY)return M.BOUNDARY}return M.INTERIOR}if(arguments[0]instanceof O&&arguments[1]instanceof Yt){var I=arguments[0],z=arguments[1];if(!z.getEnvelopeInternal().intersects(I))return M.EXTERIOR;var X=z.getCoordinates();return z.isClosed()||!I.equals(X[0])&&!I.equals(X[X.length-1])?Ot.isOnLine(I,X)?M.INTERIOR:M.EXTERIOR:M.BOUNDARY}if(arguments[0]instanceof O&&arguments[1]instanceof ne){var lt=arguments[0],ft=arguments[1],Et=ft.getCoordinate();return Et.equals2D(lt)?M.INTERIOR:M.EXTERIOR}},locateInPolygonRing:function(t,e){return e.getEnvelopeInternal().intersects(t)?Ot.locatePointInRing(t,e.getCoordinates()):M.EXTERIOR},intersects:function(t,e){return this.locate(t,e)!==M.EXTERIOR},updateLocationInfo:function(t){t===M.INTERIOR&&(this.isIn=!0),t===M.BOUNDARY&&this.numBoundaries++},computeLocation:function(t,e){if(e instanceof ne&&this.updateLocationInfo(this.locateInternal(t,e)),e instanceof Yt)this.updateLocationInfo(this.locateInternal(t,e));else if(e instanceof _e)this.updateLocationInfo(this.locateInternal(t,e));else if(e instanceof He)for(var n=e,l=0;l<n.getNumGeometries();l++){var h=n.getGeometryN(l);this.updateLocationInfo(this.locateInternal(t,h))}else if(e instanceof Je)for(var p=e,l=0;l<p.getNumGeometries();l++){var x=p.getGeometryN(l);this.updateLocationInfo(this.locateInternal(t,x))}else if(e instanceof Gt)for(var I=new si(e);I.hasNext();){var z=I.next();z!==e&&this.computeLocation(t,z)}},locate:function(t,e){return e.isEmpty()?M.EXTERIOR:e instanceof Yt?this.locateInternal(t,e):e instanceof _e?this.locateInternal(t,e):(this.isIn=!1,this.numBoundaries=0,this.computeLocation(t,e),this.boundaryRule.isInBoundary(this.numBoundaries)?M.BOUNDARY:this.numBoundaries>0||this.isIn?M.INTERIOR:M.EXTERIOR)},interfaces_:function(){return[]},getClass:function(){return oi}}),s(ai.prototype,{interfaces_:function(){return[]},getClass:function(){return ai}}),ai.octant=function(){if(typeof arguments[0]=="number"&&typeof arguments[1]=="number"){var t=arguments[0],e=arguments[1];if(t===0&&e===0)throw new f;var n=Math.abs(t),l=Math.abs(e);return t>=0?e>=0?n>=l?0:1:n>=l?7:6:e>=0?n>=l?3:2:n>=l?4:5}if(arguments[0]instanceof O&&arguments[1]instanceof O){var h=arguments[0],p=arguments[1],x=p.x-h.x,I=p.y-h.y;if(x===0&&I===0)throw new f;return ai.octant(x,I)}},s(Ki.prototype,{getCoordinates:function(){},size:function(){},getCoordinate:function(t){},isClosed:function(){},setData:function(t){},getData:function(){},interfaces_:function(){return[]},getClass:function(){return Ki}}),s(Ks.prototype,{getCoordinates:function(){return this.pts},size:function(){return this.pts.length},getCoordinate:function(t){return this.pts[t]},isClosed:function(){return this.pts[0].equals(this.pts[this.pts.length-1])},getSegmentOctant:function(t){return t===this.pts.length-1?-1:ai.octant(this.getCoordinate(t),this.getCoordinate(t+1))},setData:function(t){this.data=t},getData:function(){return this.data},toString:function(){return vn.toLineString(new Z(this.pts))},interfaces_:function(){return[Ki]},getClass:function(){return Ks}}),s(Ji.prototype,{getBounds:function(){},interfaces_:function(){return[]},getClass:function(){return Ji}}),s(Ar.prototype,{getItem:function(){return this.item},getBounds:function(){return this.bounds},interfaces_:function(){return[Ji,_]},getClass:function(){return Ar}}),s(Js.prototype,{poll:function(){if(this.isEmpty())return null;var t=this.items.get(1);return this.items.set(1,this.items.get(this._size)),this._size-=1,this.reorder(1),t},size:function(){return this._size},reorder:function(t){for(var e=null,n=this.items.get(t);2*t<=this._size&&(e=2*t,e!==this._size&&this.items.get(e+1).compareTo(this.items.get(e))<0&&e++,this.items.get(e).compareTo(n)<0);t=e)this.items.set(t,this.items.get(e));this.items.set(t,n)},clear:function(){this._size=0,this.items.clear()},isEmpty:function(){return this._size===0},add:function(t){this.items.add(null),this._size+=1;var e=this._size;for(this.items.set(0,t);t.compareTo(this.items.get(Math.trunc(e/2)))<0;e/=2)this.items.set(e,this.items.get(Math.trunc(e/2)));this.items.set(e,t)},interfaces_:function(){return[]},getClass:function(){return Js}}),s(Pi.prototype,{visitItem:function(t){},interfaces_:function(){return[]},getClass:function(){return Pi}}),s(me.prototype,{insert:function(t,e){},remove:function(t,e){},query:function(){},interfaces_:function(){return[]},getClass:function(){return me}}),s(nn.prototype,{getLevel:function(){return this.level},size:function(){return this.childBoundables.size()},getChildBoundables:function(){return this.childBoundables},addChildBoundable:function(t){P.isTrue(this.bounds===null),this.childBoundables.add(t)},isEmpty:function(){return this.childBoundables.isEmpty()},getBounds:function(){return this.bounds===null&&(this.bounds=this.computeBounds()),this.bounds},interfaces_:function(){return[Ji,_]},getClass:function(){return nn}}),nn.serialVersionUID=6493722185909574e3;var Ei={reverseOrder:function(){return{compare:function(t,e){return e.compareTo(t)}}},min:function(t){return Ei.sort(t),t.get(0)},sort:function(t,e){var n=t.toArray();e?he.sort(n,e):he.sort(n);for(var l=t.iterator(),h=0,p=n.length;p>h;h++)l.next(),l.set(n[h])},singletonList:function(t){var e=new F;return e.add(t),e}};s(Ce.prototype,{expandToQueue:function(t,e){var n=Ce.isComposite(this.boundable1),l=Ce.isComposite(this.boundable2);if(n&&l)return Ce.area(this.boundable1)>Ce.area(this.boundable2)?(this.expand(this.boundable1,this.boundable2,t,e),null):(this.expand(this.boundable2,this.boundable1,t,e),null);if(n)return this.expand(this.boundable1,this.boundable2,t,e),null;if(l)return this.expand(this.boundable2,this.boundable1,t,e),null;throw new f},isLeaves:function(){return!(Ce.isComposite(this.boundable1)||Ce.isComposite(this.boundable2))},compareTo:function(t){var e=t;return this._distance<e._distance?-1:this._distance>e._distance?1:0},expand:function(t,e,n,l){for(var h=t.getChildBoundables(),p=h.iterator();p.hasNext();){var x=p.next(),I=new Ce(x,e,this.itemDistance);I.getDistance()<l&&n.add(I)}},getBoundable:function(t){return t===0?this.boundable1:this.boundable2},getDistance:function(){return this._distance},distance:function(){return this.isLeaves()?this.itemDistance.distance(this.boundable1,this.boundable2):this.boundable1.getBounds().distance(this.boundable2.getBounds())},interfaces_:function(){return[m]},getClass:function(){return Ce}}),Ce.area=function(t){return t.getBounds().getArea()},Ce.isComposite=function(t){return t instanceof nn},s(rn.prototype,{getNodeCapacity:function(){return this.nodeCapacity},lastNode:function(t){return t.get(t.size()-1)},size:function(){if(arguments.length===0)return this.isEmpty()?0:(this.build(),this.size(this.root));if(arguments.length===1){for(var e=arguments[0],n=0,l=e.getChildBoundables().iterator();l.hasNext();){var h=l.next();h instanceof nn?n+=this.size(h):h instanceof Ar&&(n+=1)}return n}},removeItem:function(t,e){for(var n=null,l=t.getChildBoundables().iterator();l.hasNext();){var h=l.next();h instanceof Ar&&h.getItem()===e&&(n=h)}return n!==null?(t.getChildBoundables().remove(n),!0):!1},itemsTree:function(){if(arguments.length===0){this.build();var t=this.itemsTree(this.root);return t===null?new F:t}if(arguments.length===1){for(var e=arguments[0],n=new F,l=e.getChildBoundables().iterator();l.hasNext();){var h=l.next();if(h instanceof nn){var p=this.itemsTree(h);p!==null&&n.add(p)}else h instanceof Ar?n.add(h.getItem()):P.shouldNeverReachHere()}return n.size()<=0?null:n}},insert:function(t,e){P.isTrue(!this.built,"Cannot insert items into an STR packed R-tree after it has been built."),this.itemBoundables.add(new Ar(t,e))},boundablesAtLevel:function(){if(arguments.length===1){var t=arguments[0],e=new F;return this.boundablesAtLevel(t,this.root,e),e}if(arguments.length===3){var n=arguments[0],l=arguments[1],h=arguments[2];if(P.isTrue(n>-2),l.getLevel()===n)return h.add(l),null;for(var p=l.getChildBoundables().iterator();p.hasNext();){var x=p.next();x instanceof nn?this.boundablesAtLevel(n,x,h):(P.isTrue(x instanceof Ar),n===-1&&h.add(x))}return null}},query:function(){if(arguments.length===1){var t=arguments[0];this.build();var e=new F;return this.isEmpty()||this.getIntersectsOp().intersects(this.root.getBounds(),t)&&this.query(t,this.root,e),e}if(arguments.length===2){var n=arguments[0],l=arguments[1];if(this.build(),this.isEmpty())return null;this.getIntersectsOp().intersects(this.root.getBounds(),n)&&this.query(n,this.root,l)}else if(arguments.length===3){if(ot(arguments[2],Pi)&&arguments[0]instanceof Object&&arguments[1]instanceof nn)for(var h=arguments[0],p=arguments[1],x=arguments[2],I=p.getChildBoundables(),z=0;z<I.size();z++){var X=I.get(z);this.getIntersectsOp().intersects(X.getBounds(),h)&&(X instanceof nn?this.query(h,X,x):X instanceof Ar?x.visitItem(X.getItem()):P.shouldNeverReachHere())}else if(ot(arguments[2],R)&&arguments[0]instanceof Object&&arguments[1]instanceof nn)for(var lt=arguments[0],ft=arguments[1],Et=arguments[2],I=ft.getChildBoundables(),z=0;z<I.size();z++){var X=I.get(z);this.getIntersectsOp().intersects(X.getBounds(),lt)&&(X instanceof nn?this.query(lt,X,Et):X instanceof Ar?Et.add(X.getItem()):P.shouldNeverReachHere())}}},build:function(){return this.built?null:(this.root=this.itemBoundables.isEmpty()?this.createNode(0):this.createHigherLevels(this.itemBoundables,-1),this.itemBoundables=null,void(this.built=!0))},getRoot:function(){return this.build(),this.root},remove:function(){if(arguments.length===2){var t=arguments[0],e=arguments[1];return this.build(),this.getIntersectsOp().intersects(this.root.getBounds(),t)?this.remove(t,this.root,e):!1}if(arguments.length===3){var n=arguments[0],l=arguments[1],h=arguments[2],p=this.removeItem(l,h);if(p)return!0;for(var x=null,I=l.getChildBoundables().iterator();I.hasNext();){var z=I.next();if(this.getIntersectsOp().intersects(z.getBounds(),n)&&z instanceof nn&&(p=this.remove(n,z,h))){x=z;break}}return x!==null&&x.getChildBoundables().isEmpty()&&l.getChildBoundables().remove(x),p}},createHigherLevels:function(t,e){P.isTrue(!t.isEmpty());var n=this.createParentBoundables(t,e+1);return n.size()===1?n.get(0):this.createHigherLevels(n,e+1)},depth:function(){if(arguments.length===0)return this.isEmpty()?0:(this.build(),this.depth(this.root));if(arguments.length===1){for(var t=arguments[0],e=0,n=t.getChildBoundables().iterator();n.hasNext();){var l=n.next();if(l instanceof nn){var h=this.depth(l);h>e&&(e=h)}}return e+1}},createParentBoundables:function(t,e){P.isTrue(!t.isEmpty());var n=new F;n.add(this.createNode(e));var l=new F(t);Ei.sort(l,this.getComparator());for(var h=l.iterator();h.hasNext();){var p=h.next();this.lastNode(n).getChildBoundables().size()===this.getNodeCapacity()&&n.add(this.createNode(e)),this.lastNode(n).addChildBoundable(p)}return n},isEmpty:function(){return this.built?this.root.isEmpty():this.itemBoundables.isEmpty()},interfaces_:function(){return[_]},getClass:function(){return rn}}),rn.compareDoubles=function(t,e){return t>e?1:e>t?-1:0},rn.IntersectsOp=Aa,rn.serialVersionUID=-3886435814360241e3,rn.DEFAULT_NODE_CAPACITY=10,s(xs.prototype,{distance:function(t,e){},interfaces_:function(){return[]},getClass:function(){return xs}}),w(Ze,rn),s(Ze.prototype,{createParentBoundablesFromVerticalSlices:function(t,e){P.isTrue(t.length>0);for(var n=new F,l=0;l<t.length;l++)n.addAll(this.createParentBoundablesFromVerticalSlice(t[l],e));return n},createNode:function(t){return new Dr(t)},size:function(){return arguments.length===0?rn.prototype.size.call(this):rn.prototype.size.apply(this,arguments)},insert:function(){if(arguments.length!==2)return rn.prototype.insert.apply(this,arguments);var t=arguments[0],e=arguments[1];return t.isNull()?null:void rn.prototype.insert.call(this,t,e)},getIntersectsOp:function(){return Ze.intersectsOp},verticalSlices:function(t,e){for(var n=Math.trunc(Math.ceil(t.size()/e)),l=new Array(e).fill(null),h=t.iterator(),p=0;e>p;p++){l[p]=new F;for(var x=0;h.hasNext()&&n>x;){var I=h.next();l[p].add(I),x++}}return l},query:function(){if(arguments.length===1){var t=arguments[0];return rn.prototype.query.call(this,t)}if(arguments.length===2){var e=arguments[0],n=arguments[1];rn.prototype.query.call(this,e,n)}else if(arguments.length===3){if(ot(arguments[2],Pi)&&arguments[0]instanceof Object&&arguments[1]instanceof nn){var l=arguments[0],h=arguments[1],p=arguments[2];rn.prototype.query.call(this,l,h,p)}else if(ot(arguments[2],R)&&arguments[0]instanceof Object&&arguments[1]instanceof nn){var x=arguments[0],I=arguments[1],z=arguments[2];rn.prototype.query.call(this,x,I,z)}}},getComparator:function(){return Ze.yComparator},createParentBoundablesFromVerticalSlice:function(t,e){return rn.prototype.createParentBoundables.call(this,t,e)},remove:function(){if(arguments.length===2){var t=arguments[0],e=arguments[1];return rn.prototype.remove.call(this,t,e)}return rn.prototype.remove.apply(this,arguments)},depth:function(){return arguments.length===0?rn.prototype.depth.call(this):rn.prototype.depth.apply(this,arguments)},createParentBoundables:function(t,e){P.isTrue(!t.isEmpty());var n=Math.trunc(Math.ceil(t.size()/this.getNodeCapacity())),l=new F(t);Ei.sort(l,Ze.xComparator);var h=this.verticalSlices(l,Math.trunc(Math.ceil(Math.sqrt(n))));return this.createParentBoundablesFromVerticalSlices(h,e)},nearestNeighbour:function(){if(arguments.length===1){if(ot(arguments[0],xs)){var t=arguments[0],e=new Ce(this.getRoot(),this.getRoot(),t);return this.nearestNeighbour(e)}if(arguments[0]instanceof Ce){var n=arguments[0];return this.nearestNeighbour(n,g.POSITIVE_INFINITY)}}else if(arguments.length===2){if(arguments[0]instanceof Ze&&ot(arguments[1],xs)){var l=arguments[0],h=arguments[1],e=new Ce(this.getRoot(),l.getRoot(),h);return this.nearestNeighbour(e)}if(arguments[0]instanceof Ce&&typeof arguments[1]=="number"){var p=arguments[0],x=arguments[1],I=x,z=null,X=new Js;for(X.add(p);!X.isEmpty()&&I>0;){var lt=X.poll(),ft=lt.getDistance();if(ft>=I)break;lt.isLeaves()?(I=ft,z=lt):lt.expandToQueue(X,I)}return[z.getBoundable(0).getItem(),z.getBoundable(1).getItem()]}}else if(arguments.length===3){var Et=arguments[0],qt=arguments[1],te=arguments[2],oe=new Ar(Et,qt),e=new Ce(this.getRoot(),oe,te);return this.nearestNeighbour(e)[0]}},interfaces_:function(){return[me,_]},getClass:function(){return Ze}}),Ze.centreX=function(t){return Ze.avg(t.getMinX(),t.getMaxX())},Ze.avg=function(t,e){return(t+e)/2},Ze.centreY=function(t){return Ze.avg(t.getMinY(),t.getMaxY())},w(Dr,nn),s(Dr.prototype,{computeBounds:function(){for(var t=null,e=this.getChildBoundables().iterator();e.hasNext();){var n=e.next();t===null?t=new U(n.getBounds()):t.expandToInclude(n.getBounds())}return t},interfaces_:function(){return[]},getClass:function(){return Dr}}),Ze.STRtreeNode=Dr,Ze.serialVersionUID=0x39920f7d5f261e0,Ze.xComparator={interfaces_:function(){return[C]},compare:function(t,e){return rn.compareDoubles(Ze.centreX(t.getBounds()),Ze.centreX(e.getBounds()))}},Ze.yComparator={interfaces_:function(){return[C]},compare:function(t,e){return rn.compareDoubles(Ze.centreY(t.getBounds()),Ze.centreY(e.getBounds()))}},Ze.intersectsOp={interfaces_:function(){return[IntersectsOp]},intersects:function(t,e){return t.intersects(e)}},Ze.DEFAULT_NODE_CAPACITY=10,s(Fn.prototype,{interfaces_:function(){return[]},getClass:function(){return Fn}}),Fn.relativeSign=function(t,e){return e>t?-1:t>e?1:0},Fn.compare=function(t,e,n){if(e.equals2D(n))return 0;var l=Fn.relativeSign(e.x,n.x),h=Fn.relativeSign(e.y,n.y);switch(t){case 0:return Fn.compareValue(l,h);case 1:return Fn.compareValue(h,l);case 2:return Fn.compareValue(h,-l);case 3:return Fn.compareValue(-l,h);case 4:return Fn.compareValue(-l,-h);case 5:return Fn.compareValue(-h,-l);case 6:return Fn.compareValue(-h,l);case 7:return Fn.compareValue(l,-h)}return P.shouldNeverReachHere("invalid octant value"),0},Fn.compareValue=function(t,e){return 0>t?-1:t>0?1:0>e?-1:e>0?1:0},s(Qi.prototype,{getCoordinate:function(){return this.coord},print:function(t){t.print(this.coord),t.print(" seg # = "+this.segmentIndex)},compareTo:function(t){var e=t;return this.segmentIndex<e.segmentIndex?-1:this.segmentIndex>e.segmentIndex?1:this.coord.equals2D(e.coord)?0:Fn.compare(this.segmentOctant,this.coord,e.coord)},isEndPoint:function(t){return this.segmentIndex!==0||this._isInterior?this.segmentIndex===t:!0},isInterior:function(){return this._isInterior},interfaces_:function(){return[m]},getClass:function(){return Qi}}),s(Mn.prototype,{getSplitCoordinates:function(){var t=new H;this.addEndpoints();for(var e=this.iterator(),n=e.next();e.hasNext();){var l=e.next();this.addEdgeCoordinates(n,l,t),n=l}return t.toCoordinateArray()},addCollapsedNodes:function(){var t=new F;this.findCollapsesFromInsertedNodes(t),this.findCollapsesFromExistingVertices(t);for(var e=t.iterator();e.hasNext();){var n=e.next().intValue();this.add(this.edge.getCoordinate(n),n)}},print:function(t){t.println("Intersections:");for(var e=this.iterator();e.hasNext();){var n=e.next();n.print(t)}},findCollapsesFromExistingVertices:function(t){for(var e=0;e<this.edge.size()-2;e++){var n=this.edge.getCoordinate(e),l=(this.edge.getCoordinate(e+1),this.edge.getCoordinate(e+2));n.equals2D(l)&&t.add(new V(e+1))}},addEdgeCoordinates:function(t,e,n){e.segmentIndex-t.segmentIndex+2;var l=this.edge.getCoordinate(e.segmentIndex),h=e.isInterior()||!e.coord.equals2D(l);n.add(new O(t.coord),!1);for(var p=t.segmentIndex+1;p<=e.segmentIndex;p++)n.add(this.edge.getCoordinate(p));h&&n.add(new O(e.coord))},iterator:function(){return this.nodeMap.values().iterator()},addSplitEdges:function(t){this.addEndpoints(),this.addCollapsedNodes();for(var e=this.iterator(),n=e.next();e.hasNext();){var l=e.next(),h=this.createSplitEdge(n,l);t.add(h),n=l}},findCollapseIndex:function(t,e,n){if(!t.coord.equals2D(e.coord))return!1;var l=e.segmentIndex-t.segmentIndex;return e.isInterior()||l--,l===1?(n[0]=t.segmentIndex+1,!0):!1},findCollapsesFromInsertedNodes:function(t){for(var e=new Array(1).fill(null),n=this.iterator(),l=n.next();n.hasNext();){var h=n.next(),p=this.findCollapseIndex(l,h,e);p&&t.add(new V(e[0])),l=h}},getEdge:function(){return this.edge},addEndpoints:function(){var t=this.edge.size()-1;this.add(this.edge.getCoordinate(0),0),this.add(this.edge.getCoordinate(t),t)},createSplitEdge:function(t,e){var n=e.segmentIndex-t.segmentIndex+2,l=this.edge.getCoordinate(e.segmentIndex),h=e.isInterior()||!e.coord.equals2D(l);h||n--;var p=new Array(n).fill(null),x=0;p[x++]=new O(t.coord);for(var I=t.segmentIndex+1;I<=e.segmentIndex;I++)p[x++]=this.edge.getCoordinate(I);return h&&(p[x]=new O(e.coord)),new Cr(p,this.edge.getData())},add:function(t,e){var n=new Qi(this.edge,t,e,this.edge.getSegmentOctant(e)),l=this.nodeMap.get(n);return l!==null?(P.isTrue(l.coord.equals2D(t),"Found equal nodes with different coordinates"),l):(this.nodeMap.put(n,n),n)},checkSplitEdgesCorrectness:function(t){var e=this.edge.getCoordinates(),n=t.get(0),l=n.getCoordinate(0);if(!l.equals2D(e[0]))throw new b("bad split edge start point at "+l);var h=t.get(t.size()-1),p=h.getCoordinates(),x=p[p.length-1];if(!x.equals2D(e[e.length-1]))throw new b("bad split edge end point at "+x)},interfaces_:function(){return[]},getClass:function(){return Mn}}),s(Ti.prototype,{next:function(){return this.currNode===null?(this.currNode=this.nextNode,this.currSegIndex=this.currNode.segmentIndex,this.readNextNode(),this.currNode):this.nextNode===null?null:this.nextNode.segmentIndex===this.currNode.segmentIndex?(this.currNode=this.nextNode,this.currSegIndex=this.currNode.segmentIndex,this.readNextNode(),this.currNode):(this.nextNode.segmentIndex>this.currNode.segmentIndex,null)},remove:function(){throw new UnsupportedOperationException(this.getClass().getName())},hasNext:function(){return this.nextNode!==null},readNextNode:function(){this.nodeIt.hasNext()?this.nextNode=this.nodeIt.next():this.nextNode=null},interfaces_:function(){return[G]},getClass:function(){return Ti}}),s(jo.prototype,{addIntersection:function(t,e){},interfaces_:function(){return[Ki]},getClass:function(){return jo}}),s(Cr.prototype,{getCoordinates:function(){return this.pts},size:function(){return this.pts.length},getCoordinate:function(t){return this.pts[t]},isClosed:function(){return this.pts[0].equals(this.pts[this.pts.length-1])},getSegmentOctant:function(t){return t===this.pts.length-1?-1:this.safeOctant(this.getCoordinate(t),this.getCoordinate(t+1))},setData:function(t){this.data=t},safeOctant:function(t,e){return t.equals2D(e)?0:ai.octant(t,e)},getData:function(){return this.data},addIntersection:function(){if(arguments.length===2){var t=arguments[0],e=arguments[1];this.addIntersectionNode(t,e)}else if(arguments.length===4){var n=arguments[0],l=arguments[1],h=arguments[3],p=new O(n.getIntersection(h));this.addIntersection(p,l)}},toString:function(){return vn.toLineString(new Z(this.pts))},getNodeList:function(){return this.nodeList},addIntersectionNode:function(t,e){var n=e,l=n+1;if(l<this.pts.length){var h=this.pts[l];t.equals2D(h)&&(n=l)}var p=this.nodeList.add(t,n);return p},addIntersections:function(t,e,n){for(var l=0;l<t.getIntersectionNum();l++)this.addIntersection(t,e,n,l)},interfaces_:function(){return[jo]},getClass:function(){return Cr}}),Cr.getNodedSubstrings=function(){if(arguments.length===1){var t=arguments[0],e=new F;return Cr.getNodedSubstrings(t,e),e}if(arguments.length===2)for(var n=arguments[0],l=arguments[1],h=n.iterator();h.hasNext();){var p=h.next();p.getNodeList().addSplitEdges(l)}},s(Qs.prototype,{overlap:function(){if(arguments.length!==2){if(arguments.length===4){var t=arguments[0],e=arguments[1],n=arguments[2],l=arguments[3];t.getLineSegment(e,this.overlapSeg1),n.getLineSegment(l,this.overlapSeg2),this.overlap(this.overlapSeg1,this.overlapSeg2)}}},interfaces_:function(){return[]},getClass:function(){return Qs}}),s(ko.prototype,{getLineSegment:function(t,e){e.p0=this.pts[t],e.p1=this.pts[t+1]},computeSelect:function(t,e,n,l){var h=this.pts[e],p=this.pts[n];if(l.tempEnv1.init(h,p),n-e===1)return l.select(this,e),null;if(!t.intersects(l.tempEnv1))return null;var x=Math.trunc((e+n)/2);x>e&&this.computeSelect(t,e,x,l),n>x&&this.computeSelect(t,x,n,l)},getCoordinates:function(){for(var t=new Array(this.end-this.start+1).fill(null),e=0,n=this.start;n<=this.end;n++)t[e++]=this.pts[n];return t},computeOverlaps:function(t,e){this.computeOverlapsInternal(this.start,this.end,t,t.start,t.end,e)},setId:function(t){this.id=t},select:function(t,e){this.computeSelect(t,this.start,this.end,e)},getEnvelope:function(){if(this.env===null){var t=this.pts[this.start],e=this.pts[this.end];this.env=new U(t,e)}return this.env},getEndIndex:function(){return this.end},getStartIndex:function(){return this.start},getContext:function(){return this.context},getId:function(){return this.id},computeOverlapsInternal:function(t,e,n,l,h,p){var x=this.pts[t],I=this.pts[e],z=n.pts[l],X=n.pts[h];if(e-t===1&&h-l===1)return p.overlap(this,t,n,l),null;if(p.tempEnv1.init(x,I),p.tempEnv2.init(z,X),!p.tempEnv1.intersects(p.tempEnv2))return null;var lt=Math.trunc((t+e)/2),ft=Math.trunc((l+h)/2);lt>t&&(ft>l&&this.computeOverlapsInternal(t,lt,n,l,ft,p),h>ft&&this.computeOverlapsInternal(t,lt,n,ft,h,p)),e>lt&&(ft>l&&this.computeOverlapsInternal(lt,e,n,l,ft,p),h>ft&&this.computeOverlapsInternal(lt,e,n,ft,h,p))},interfaces_:function(){return[]},getClass:function(){return ko}}),s(xe.prototype,{interfaces_:function(){return[]},getClass:function(){return xe}}),xe.isNorthern=function(t){return t===xe.NE||t===xe.NW},xe.isOpposite=function(t,e){if(t===e)return!1;var n=(t-e+4)%4;return n===2},xe.commonHalfPlane=function(t,e){if(t===e)return t;var n=(t-e+4)%4;if(n===2)return-1;var l=e>t?t:e,h=t>e?t:e;return l===0&&h===3?3:l},xe.isInHalfPlane=function(t,e){return e===xe.SE?t===xe.SE||t===xe.SW:t===e||t===e+1},xe.quadrant=function(){if(typeof arguments[0]=="number"&&typeof arguments[1]=="number"){var t=arguments[0],e=arguments[1];if(t===0&&e===0)throw new f;return t>=0?e>=0?xe.NE:xe.SE:e>=0?xe.NW:xe.SW}if(arguments[0]instanceof O&&arguments[1]instanceof O){var n=arguments[0],l=arguments[1];if(l.x===n.x&&l.y===n.y)throw new f;return l.x>=n.x?l.y>=n.y?xe.NE:xe.SE:l.y>=n.y?xe.NW:xe.SW}},xe.NE=0,xe.NW=1,xe.SW=2,xe.SE=3,s(_r.prototype,{interfaces_:function(){return[]},getClass:function(){return _r}}),_r.getChainStartIndices=function(t){var e=0,n=new F;n.add(new V(e));do{var l=_r.findChainEnd(t,e);n.add(new V(l)),e=l}while(e<t.length-1);var h=_r.toIntArray(n);return h},_r.findChainEnd=function(t,e){for(var n=e;n<t.length-1&&t[n].equals2D(t[n+1]);)n++;if(n>=t.length-1)return t.length-1;for(var l=xe.quadrant(t[n],t[n+1]),h=e+1;h<t.length;){if(!t[h-1].equals2D(t[h])){var p=xe.quadrant(t[h-1],t[h]);if(p!==l)break}h++}return h-1},_r.getChains=function(){if(arguments.length===1){var t=arguments[0];return _r.getChains(t,null)}if(arguments.length===2){for(var e=arguments[0],n=arguments[1],l=new F,h=_r.getChainStartIndices(e),p=0;p<h.length-1;p++){var x=new ko(e,h[p],h[p+1],n);l.add(x)}return l}},_r.toIntArray=function(t){for(var e=new Array(t.size()).fill(null),n=0;n<e.length;n++)e[n]=t.get(n).intValue();return e},s(Es.prototype,{computeNodes:function(t){},getNodedSubstrings:function(){},interfaces_:function(){return[]},getClass:function(){return Es}}),s(Le.prototype,{setSegmentIntersector:function(t){this.segInt=t},interfaces_:function(){return[Es]},getClass:function(){return Le}}),w(Mi,Le),s(Mi.prototype,{getMonotoneChains:function(){return this.monoChains},getNodedSubstrings:function(){return Cr.getNodedSubstrings(this.nodedSegStrings)},getIndex:function(){return this.index},add:function(t){for(var e=_r.getChains(t.getCoordinates(),t),n=e.iterator();n.hasNext();){var l=n.next();l.setId(this.idCounter++),this.index.insert(l.getEnvelope(),l),this.monoChains.add(l)}},computeNodes:function(t){this.nodedSegStrings=t;for(var e=t.iterator();e.hasNext();)this.add(e.next());this.intersectChains()},intersectChains:function(){for(var t=new Jn(this.segInt),e=this.monoChains.iterator();e.hasNext();)for(var n=e.next(),l=this.index.query(n.getEnvelope()),h=l.iterator();h.hasNext();){var p=h.next();if(p.getId()>n.getId()&&(n.computeOverlaps(p,t),this.nOverlaps++),this.segInt.isDone())return null}},interfaces_:function(){return[]},getClass:function(){return Mi}}),w(Jn,Qs),s(Jn.prototype,{overlap:function(){if(arguments.length!==4)return Qs.prototype.overlap.apply(this,arguments);var t=arguments[0],e=arguments[1],n=arguments[2],l=arguments[3],h=t.getContext(),p=n.getContext();this.si.processIntersections(h,e,p,l)},interfaces_:function(){return[]},getClass:function(){return Jn}}),Mi.SegmentOverlapAction=Jn,w(An,b),s(An.prototype,{getCoordinate:function(){return this.pt},interfaces_:function(){return[]},getClass:function(){return An}}),An.msgWithCoord=function(t,e){return e!==null?t+" [ "+e+" ]":t},s(ws.prototype,{processIntersections:function(t,e,n,l){},isDone:function(){},interfaces_:function(){return[]},getClass:function(){return ws}}),s(ui.prototype,{getInteriorIntersection:function(){return this.interiorIntersection},setCheckEndSegmentsOnly:function(t){this.isCheckEndSegmentsOnly=t},getIntersectionSegments:function(){return this.intSegments},count:function(){return this.intersectionCount},getIntersections:function(){return this.intersections},setFindAllIntersections:function(t){this.findAllIntersections=t},setKeepIntersections:function(t){this.keepIntersections=t},processIntersections:function(t,e,n,l){if(!this.findAllIntersections&&this.hasIntersection()||t===n&&e===l)return null;if(this.isCheckEndSegmentsOnly){var h=this.isEndSegment(t,e)||this.isEndSegment(n,l);if(!h)return null}var p=t.getCoordinates()[e],x=t.getCoordinates()[e+1],I=n.getCoordinates()[l],z=n.getCoordinates()[l+1];this.li.computeIntersection(p,x,I,z),this.li.hasIntersection()&&this.li.isInteriorIntersection()&&(this.intSegments=new Array(4).fill(null),this.intSegments[0]=p,this.intSegments[1]=x,this.intSegments[2]=I,this.intSegments[3]=z,this.interiorIntersection=this.li.getIntersection(0),this.keepIntersections&&this.intersections.add(this.interiorIntersection),this.intersectionCount++)},isEndSegment:function(t,e){return e===0?!0:e>=t.size()-2},hasIntersection:function(){return this.interiorIntersection!==null},isDone:function(){return this.findAllIntersections?!1:this.interiorIntersection!==null},interfaces_:function(){return[ws]},getClass:function(){return ui}}),ui.createAllIntersectionsFinder=function(t){var e=new ui(t);return e.setFindAllIntersections(!0),e},ui.createAnyIntersectionFinder=function(t){return new ui(t)},ui.createIntersectionCounter=function(t){var e=new ui(t);return e.setFindAllIntersections(!0),e.setKeepIntersections(!1),e},s($i.prototype,{execute:function(){return this.segInt!==null?null:void this.checkInteriorIntersections()},getIntersections:function(){return this.segInt.getIntersections()},isValid:function(){return this.execute(),this._isValid},setFindAllIntersections:function(t){this.findAllIntersections=t},checkInteriorIntersections:function(){this._isValid=!0,this.segInt=new ui(this.li),this.segInt.setFindAllIntersections(this.findAllIntersections);var t=new Mi;return t.setSegmentIntersector(this.segInt),t.computeNodes(this.segStrings),this.segInt.hasIntersection()?(this._isValid=!1,null):void 0},checkValid:function(){if(this.execute(),!this._isValid)throw new An(this.getErrorMessage(),this.segInt.getInteriorIntersection())},getErrorMessage:function(){if(this._isValid)return"no intersections found";var t=this.segInt.getIntersectionSegments();return"found non-noded intersection between "+vn.toLineString(t[0],t[1])+" and "+vn.toLineString(t[2],t[3])},interfaces_:function(){return[]},getClass:function(){return $i}}),$i.computeIntersections=function(t){var e=new $i(t);return e.setFindAllIntersections(!0),e.isValid(),e.getIntersections()},s(ts.prototype,{checkValid:function(){this.nv.checkValid()},interfaces_:function(){return[]},getClass:function(){return ts}}),ts.toSegmentStrings=function(t){for(var e=new F,n=t.iterator();n.hasNext();){var l=n.next();e.add(new Ks(l.getCoordinates(),l))}return e},ts.checkValid=function(t){var e=new ts(t);e.checkValid()},s(es.prototype,{map:function(t){for(var e=new F,n=0;n<t.getNumGeometries();n++){var l=this.mapOp.map(t.getGeometryN(n));l.isEmpty()||e.add(l)}return t.getFactory().createGeometryCollection(Xt.toGeometryArray(e))},interfaces_:function(){return[]},getClass:function(){return es}}),es.map=function(t,e){var n=new es(e);return n.map(t)},s(St.prototype,{interfaces_:function(){return[]},getClass:function(){return St}}),St.opposite=function(t){return t===St.LEFT?St.RIGHT:t===St.RIGHT?St.LEFT:t},St.ON=0,St.LEFT=1,St.RIGHT=2,s(Qn.prototype,{setAllLocations:function(t){for(var e=0;e<this.location.length;e++)this.location[e]=t},isNull:function(){for(var t=0;t<this.location.length;t++)if(this.location[t]!==M.NONE)return!1;return!0},setAllLocationsIfNull:function(t){for(var e=0;e<this.location.length;e++)this.location[e]===M.NONE&&(this.location[e]=t)},isLine:function(){return this.location.length===1},merge:function(t){if(t.location.length>this.location.length){var e=new Array(3).fill(null);e[St.ON]=this.location[St.ON],e[St.LEFT]=M.NONE,e[St.RIGHT]=M.NONE,this.location=e}for(var n=0;n<this.location.length;n++)this.location[n]===M.NONE&&n<t.location.length&&(this.location[n]=t.location[n])},getLocations:function(){return this.location},flip:function(){if(this.location.length<=1)return null;var t=this.location[St.LEFT];this.location[St.LEFT]=this.location[St.RIGHT],this.location[St.RIGHT]=t},toString:function(){var t=new Ct;return this.location.length>1&&t.append(M.toLocationSymbol(this.location[St.LEFT])),t.append(M.toLocationSymbol(this.location[St.ON])),this.location.length>1&&t.append(M.toLocationSymbol(this.location[St.RIGHT])),t.toString()},setLocations:function(t,e,n){this.location[St.ON]=t,this.location[St.LEFT]=e,this.location[St.RIGHT]=n},get:function(t){return t<this.location.length?this.location[t]:M.NONE},isArea:function(){return this.location.length>1},isAnyNull:function(){for(var t=0;t<this.location.length;t++)if(this.location[t]===M.NONE)return!0;return!1},setLocation:function(){if(arguments.length===1){var t=arguments[0];this.setLocation(St.ON,t)}else if(arguments.length===2){var e=arguments[0],n=arguments[1];this.location[e]=n}},init:function(t){this.location=new Array(t).fill(null),this.setAllLocations(M.NONE)},isEqualOnSide:function(t,e){return this.location[e]===t.location[e]},allPositionsEqual:function(t){for(var e=0;e<this.location.length;e++)if(this.location[e]!==t)return!1;return!0},interfaces_:function(){return[]},getClass:function(){return Qn}}),s(tn.prototype,{getGeometryCount:function(){var t=0;return this.elt[0].isNull()||t++,this.elt[1].isNull()||t++,t},setAllLocations:function(t,e){this.elt[t].setAllLocations(e)},isNull:function(t){return this.elt[t].isNull()},setAllLocationsIfNull:function(){if(arguments.length===1){var t=arguments[0];this.setAllLocationsIfNull(0,t),this.setAllLocationsIfNull(1,t)}else if(arguments.length===2){var e=arguments[0],n=arguments[1];this.elt[e].setAllLocationsIfNull(n)}},isLine:function(t){return this.elt[t].isLine()},merge:function(t){for(var e=0;2>e;e++)this.elt[e]===null&&t.elt[e]!==null?this.elt[e]=new Qn(t.elt[e]):this.elt[e].merge(t.elt[e])},flip:function(){this.elt[0].flip(),this.elt[1].flip()},getLocation:function(){if(arguments.length===1){var t=arguments[0];return this.elt[t].get(St.ON)}if(arguments.length===2){var e=arguments[0],n=arguments[1];return this.elt[e].get(n)}},toString:function(){var t=new Ct;return this.elt[0]!==null&&(t.append("A:"),t.append(this.elt[0].toString())),this.elt[1]!==null&&(t.append(" B:"),t.append(this.elt[1].toString())),t.toString()},isArea:function(){if(arguments.length===0)return this.elt[0].isArea()||this.elt[1].isArea();if(arguments.length===1){var t=arguments[0];return this.elt[t].isArea()}},isAnyNull:function(t){return this.elt[t].isAnyNull()},setLocation:function(){if(arguments.length===2){var t=arguments[0],e=arguments[1];this.elt[t].setLocation(St.ON,e)}else if(arguments.length===3){var n=arguments[0],l=arguments[1],h=arguments[2];this.elt[n].setLocation(l,h)}},isEqualOnSide:function(t,e){return this.elt[0].isEqualOnSide(t.elt[0],e)&&this.elt[1].isEqualOnSide(t.elt[1],e)},allPositionsEqual:function(t,e){return this.elt[t].allPositionsEqual(e)},toLine:function(t){this.elt[t].isArea()&&(this.elt[t]=new Qn(this.elt[t].location[0]))},interfaces_:function(){return[]},getClass:function(){return tn}}),tn.toLineLabel=function(t){for(var e=new tn(M.NONE),n=0;2>n;n++)e.setLocation(n,t.getLocation(n));return e},s(Os.prototype,{computeRing:function(){if(this.ring!==null)return null;for(var t=new Array(this.pts.size()).fill(null),e=0;e<this.pts.size();e++)t[e]=this.pts.get(e);this.ring=this.geometryFactory.createLinearRing(t),this._isHole=Ot.isCCW(this.ring.getCoordinates())},isIsolated:function(){return this.label.getGeometryCount()===1},computePoints:function(t){this.startDe=t;var e=t,n=!0;do{if(e===null)throw new An("Found null DirectedEdge");if(e.getEdgeRing()===this)throw new An("Directed Edge visited twice during ring-building at "+e.getCoordinate());this.edges.add(e);var l=e.getLabel();P.isTrue(l.isArea()),this.mergeLabel(l),this.addPoints(e.getEdge(),e.isForward(),n),n=!1,this.setEdgeRing(e,this),e=this.getNext(e)}while(e!==this.startDe)},getLinearRing:function(){return this.ring},getCoordinate:function(t){return this.pts.get(t)},computeMaxNodeDegree:function(){this.maxNodeDegree=0;var t=this.startDe;do{var e=t.getNode(),n=e.getEdges().getOutgoingDegree(this);n>this.maxNodeDegree&&(this.maxNodeDegree=n),t=this.getNext(t)}while(t!==this.startDe);this.maxNodeDegree*=2},addPoints:function(t,e,n){var l=t.getCoordinates();if(e){var h=1;n&&(h=0);for(var p=h;p<l.length;p++)this.pts.add(l[p])}else{var h=l.length-2;n&&(h=l.length-1);for(var p=h;p>=0;p--)this.pts.add(l[p])}},isHole:function(){return this._isHole},setInResult:function(){var t=this.startDe;do t.getEdge().setInResult(!0),t=t.getNext();while(t!==this.startDe)},containsPoint:function(t){var e=this.getLinearRing(),n=e.getEnvelopeInternal();if(!n.contains(t)||!Ot.isPointInRing(t,e.getCoordinates()))return!1;for(var l=this.holes.iterator();l.hasNext();){var h=l.next();if(h.containsPoint(t))return!1}return!0},addHole:function(t){this.holes.add(t)},isShell:function(){return this.shell===null},getLabel:function(){return this.label},getEdges:function(){return this.edges},getMaxNodeDegree:function(){return this.maxNodeDegree<0&&this.computeMaxNodeDegree(),this.maxNodeDegree},getShell:function(){return this.shell},mergeLabel:function(){if(arguments.length===1){var t=arguments[0];this.mergeLabel(t,0),this.mergeLabel(t,1)}else if(arguments.length===2){var e=arguments[0],n=arguments[1],l=e.getLocation(n,St.RIGHT);if(l===M.NONE)return null;if(this.label.getLocation(n)===M.NONE)return this.label.setLocation(n,l),null}},setShell:function(t){this.shell=t,t!==null&&t.addHole(this)},toPolygon:function(t){for(var e=new Array(this.holes.size()).fill(null),n=0;n<this.holes.size();n++)e[n]=this.holes.get(n).getLinearRing();var l=t.createPolygon(this.getLinearRing(),e);return l},interfaces_:function(){return[]},getClass:function(){return Os}}),w(gr,Os),s(gr.prototype,{setEdgeRing:function(t,e){t.setMinEdgeRing(e)},getNext:function(t){return t.getNextMin()},interfaces_:function(){return[]},getClass:function(){return gr}}),w($s,Os),s($s.prototype,{buildMinimalRings:function(){var t=new F,e=this.startDe;do{if(e.getMinEdgeRing()===null){var n=new gr(e,this.geometryFactory);t.add(n)}e=e.getNext()}while(e!==this.startDe);return t},setEdgeRing:function(t,e){t.setEdgeRing(e)},linkDirectedEdgesForMinimalEdgeRings:function(){var t=this.startDe;do{var e=t.getNode();e.getEdges().linkMinimalDirectedEdges(this),t=t.getNext()}while(t!==this.startDe)},getNext:function(t){return t.getNext()},interfaces_:function(){return[]},getClass:function(){return $s}}),s(li.prototype,{setVisited:function(t){this._isVisited=t},setInResult:function(t){this._isInResult=t},isCovered:function(){return this._isCovered},isCoveredSet:function(){return this._isCoveredSet},setLabel:function(t){this.label=t},getLabel:function(){return this.label},setCovered:function(t){this._isCovered=t,this._isCoveredSet=!0},updateIM:function(t){P.isTrue(this.label.getGeometryCount()>=2,"found partial label"),this.computeIM(t)},isInResult:function(){return this._isInResult},isVisited:function(){return this._isVisited},interfaces_:function(){return[]},getClass:function(){return li}}),w(Vn,li),s(Vn.prototype,{isIncidentEdgeInResult:function(){for(var t=this.getEdges().getEdges().iterator();t.hasNext();){var e=t.next();if(e.getEdge().isInResult())return!0}return!1},isIsolated:function(){return this.label.getGeometryCount()===1},getCoordinate:function(){return this.coord},print:function(t){t.println("node "+this.coord+" lbl: "+this.label)},computeIM:function(t){},computeMergedLocation:function(t,e){var n=M.NONE;if(n=this.label.getLocation(e),!t.isNull(e)){var l=t.getLocation(e);n!==M.BOUNDARY&&(n=l)}return n},setLabel:function(){if(arguments.length!==2)return li.prototype.setLabel.apply(this,arguments);var t=arguments[0],e=arguments[1];this.label===null?this.label=new tn(t,e):this.label.setLocation(t,e)},getEdges:function(){return this.edges},mergeLabel:function(){if(arguments[0]instanceof Vn){var t=arguments[0];this.mergeLabel(t.label)}else if(arguments[0]instanceof tn)for(var e=arguments[0],n=0;2>n;n++){var l=this.computeMergedLocation(e,n),h=this.label.getLocation(n);h===M.NONE&&this.label.setLocation(n,l)}},add:function(t){this.edges.insert(t),t.setNode(this)},setLabelBoundary:function(t){if(this.label===null)return null;var e=M.NONE;this.label!==null&&(e=this.label.getLocation(t));var n=null;switch(e){case M.BOUNDARY:n=M.INTERIOR;break;case M.INTERIOR:n=M.BOUNDARY;break;default:n=M.BOUNDARY}this.label.setLocation(t,n)},interfaces_:function(){return[]},getClass:function(){return Vn}}),s(ns.prototype,{find:function(t){return this.nodeMap.get(t)},addNode:function(){if(arguments[0]instanceof O){var t=arguments[0],e=this.nodeMap.get(t);return e===null&&(e=this.nodeFact.createNode(t),this.nodeMap.put(t,e)),e}if(arguments[0]instanceof Vn){var n=arguments[0],e=this.nodeMap.get(n.getCoordinate());return e===null?(this.nodeMap.put(n.getCoordinate(),n),n):(e.mergeLabel(n),e)}},print:function(t){for(var e=this.iterator();e.hasNext();){var n=e.next();n.print(t)}},iterator:function(){return this.nodeMap.values().iterator()},values:function(){return this.nodeMap.values()},getBoundaryNodes:function(t){for(var e=new F,n=this.iterator();n.hasNext();){var l=n.next();l.getLabel().getLocation(t)===M.BOUNDARY&&e.add(l)}return e},add:function(t){var e=t.getCoordinate(),n=this.addNode(e);n.add(t)},interfaces_:function(){return[]},getClass:function(){return ns}}),s(br.prototype,{compareDirection:function(t){return this.dx===t.dx&&this.dy===t.dy?0:this.quadrant>t.quadrant?1:this.quadrant<t.quadrant?-1:Ot.computeOrientation(t.p0,t.p1,this.p1)},getDy:function(){return this.dy},getCoordinate:function(){return this.p0},setNode:function(t){this.node=t},print:function(t){var e=Math.atan2(this.dy,this.dx),n=this.getClass().getName(),l=n.lastIndexOf("."),h=n.substring(l+1);t.print("  "+h+": "+this.p0+" - "+this.p1+" "+this.quadrant+":"+e+"   "+this.label)},compareTo:function(t){var e=t;return this.compareDirection(e)},getDirectedCoordinate:function(){return this.p1},getDx:function(){return this.dx},getLabel:function(){return this.label},getEdge:function(){return this.edge},getQuadrant:function(){return this.quadrant},getNode:function(){return this.node},toString:function(){var t=Math.atan2(this.dy,this.dx),e=this.getClass().getName(),n=e.lastIndexOf("."),l=e.substring(n+1);return"  "+l+": "+this.p0+" - "+this.p1+" "+this.quadrant+":"+t+"   "+this.label},computeLabel:function(t){},init:function(t,e){this.p0=t,this.p1=e,this.dx=e.x-t.x,this.dy=e.y-t.y,this.quadrant=xe.quadrant(this.dx,this.dy),P.isTrue(!(this.dx===0&&this.dy===0),"EdgeEnd with identical endpoints found")},interfaces_:function(){return[m]},getClass:function(){return br}}),w(ci,br),s(ci.prototype,{getNextMin:function(){return this.nextMin},getDepth:function(t){return this.depth[t]},setVisited:function(t){this._isVisited=t},computeDirectedLabel:function(){this.label=new tn(this.edge.getLabel()),this._isForward||this.label.flip()},getNext:function(){return this.next},setDepth:function(t,e){if(this.depth[t]!==-999&&this.depth[t]!==e)throw new An("assigned depths do not match",this.getCoordinate());this.depth[t]=e},isInteriorAreaEdge:function(){for(var e=!0,n=0;2>n;n++)this.label.isArea(n)&&this.label.getLocation(n,St.LEFT)===M.INTERIOR&&this.label.getLocation(n,St.RIGHT)===M.INTERIOR||(e=!1);return e},setNextMin:function(t){this.nextMin=t},print:function(t){br.prototype.print.call(this,t),t.print(" "+this.depth[St.LEFT]+"/"+this.depth[St.RIGHT]),t.print(" ("+this.getDepthDelta()+")"),this._isInResult&&t.print(" inResult")},setMinEdgeRing:function(t){this.minEdgeRing=t},isLineEdge:function(){var t=this.label.isLine(0)||this.label.isLine(1),e=!this.label.isArea(0)||this.label.allPositionsEqual(0,M.EXTERIOR),n=!this.label.isArea(1)||this.label.allPositionsEqual(1,M.EXTERIOR);return t&&e&&n},setEdgeRing:function(t){this.edgeRing=t},getMinEdgeRing:function(){return this.minEdgeRing},getDepthDelta:function(){var t=this.edge.getDepthDelta();return this._isForward||(t=-t),t},setInResult:function(t){this._isInResult=t},getSym:function(){return this.sym},isForward:function(){return this._isForward},getEdge:function(){return this.edge},printEdge:function(t){this.print(t),t.print(" "),this._isForward?this.edge.print(t):this.edge.printReverse(t)},setSym:function(t){this.sym=t},setVisitedEdge:function(t){this.setVisited(t),this.sym.setVisited(t)},setEdgeDepths:function(t,e){var n=this.getEdge().getDepthDelta();this._isForward||(n=-n);var l=1;t===St.LEFT&&(l=-1);var h=St.opposite(t),p=n*l,x=e+p;this.setDepth(t,e),this.setDepth(h,x)},getEdgeRing:function(){return this.edgeRing},isInResult:function(){return this._isInResult},setNext:function(t){this.next=t},isVisited:function(){return this._isVisited},interfaces_:function(){return[]},getClass:function(){return ci}}),ci.depthFactor=function(t,e){return t===M.EXTERIOR&&e===M.INTERIOR?1:t===M.INTERIOR&&e===M.EXTERIOR?-1:0},s(rs.prototype,{createNode:function(t){return new Vn(t,null)},interfaces_:function(){return[]},getClass:function(){return rs}}),s(xr.prototype,{printEdges:function(t){t.println("Edges:");for(var e=0;e<this.edges.size();e++){t.println("edge "+e+":");var n=this.edges.get(e);n.print(t),n.eiList.print(t)}},find:function(t){return this.nodes.find(t)},addNode:function(){if(arguments[0]instanceof Vn){var t=arguments[0];return this.nodes.addNode(t)}if(arguments[0]instanceof O){var e=arguments[0];return this.nodes.addNode(e)}},getNodeIterator:function(){return this.nodes.iterator()},linkResultDirectedEdges:function(){for(var t=this.nodes.iterator();t.hasNext();){var e=t.next();e.getEdges().linkResultDirectedEdges()}},debugPrintln:function(t){et.out.println(t)},isBoundaryNode:function(t,e){var n=this.nodes.find(e);if(n===null)return!1;var l=n.getLabel();return l!==null&&l.getLocation(t)===M.BOUNDARY},linkAllDirectedEdges:function(){for(var t=this.nodes.iterator();t.hasNext();){var e=t.next();e.getEdges().linkAllDirectedEdges()}},matchInSameDirection:function(t,e,n,l){return t.equals(n)?Ot.computeOrientation(t,e,l)===Ot.COLLINEAR&&xe.quadrant(t,e)===xe.quadrant(n,l):!1},getEdgeEnds:function(){return this.edgeEndList},debugPrint:function(t){et.out.print(t)},getEdgeIterator:function(){return this.edges.iterator()},findEdgeInSameDirection:function(t,e){for(var n=0;n<this.edges.size();n++){var l=this.edges.get(n),h=l.getCoordinates();if(this.matchInSameDirection(t,e,h[0],h[1])||this.matchInSameDirection(t,e,h[h.length-1],h[h.length-2]))return l}return null},insertEdge:function(t){this.edges.add(t)},findEdgeEnd:function(t){for(var e=this.getEdgeEnds().iterator();e.hasNext();){var n=e.next();if(n.getEdge()===t)return n}return null},addEdges:function(t){for(var e=t.iterator();e.hasNext();){var n=e.next();this.edges.add(n);var l=new ci(n,!0),h=new ci(n,!1);l.setSym(h),h.setSym(l),this.add(l),this.add(h)}},add:function(t){this.nodes.add(t),this.edgeEndList.add(t)},getNodes:function(){return this.nodes.values()},findEdge:function(t,e){for(var n=0;n<this.edges.size();n++){var l=this.edges.get(n),h=l.getCoordinates();if(t.equals(h[0])&&e.equals(h[1]))return l}return null},interfaces_:function(){return[]},getClass:function(){return xr}}),xr.linkResultDirectedEdges=function(t){for(var e=t.iterator();e.hasNext();){var n=e.next();n.getEdges().linkResultDirectedEdges()}},s(to.prototype,{sortShellsAndHoles:function(t,e,n){for(var l=t.iterator();l.hasNext();){var h=l.next();h.isHole()?n.add(h):e.add(h)}},computePolygons:function(t){for(var e=new F,n=t.iterator();n.hasNext();){var l=n.next(),h=l.toPolygon(this.geometryFactory);e.add(h)}return e},placeFreeHoles:function(t,e){for(var n=e.iterator();n.hasNext();){var l=n.next();if(l.getShell()===null){var h=this.findEdgeRingContaining(l,t);if(h===null)throw new An("unable to assign hole to a shell",l.getCoordinate(0));l.setShell(h)}}},buildMinimalEdgeRings:function(t,e,n){for(var l=new F,h=t.iterator();h.hasNext();){var p=h.next();if(p.getMaxNodeDegree()>2){p.linkDirectedEdgesForMinimalEdgeRings();var x=p.buildMinimalRings(),I=this.findShell(x);I!==null?(this.placePolygonHoles(I,x),e.add(I)):n.addAll(x)}else l.add(p)}return l},containsPoint:function(t){for(var e=this.shellList.iterator();e.hasNext();){var n=e.next();if(n.containsPoint(t))return!0}return!1},buildMaximalEdgeRings:function(t){for(var e=new F,n=t.iterator();n.hasNext();){var l=n.next();if(l.isInResult()&&l.getLabel().isArea()&&l.getEdgeRing()===null){var h=new $s(l,this.geometryFactory);e.add(h),h.setInResult()}}return e},placePolygonHoles:function(t,e){for(var n=e.iterator();n.hasNext();){var l=n.next();l.isHole()&&l.setShell(t)}},getPolygons:function(){var t=this.computePolygons(this.shellList);return t},findEdgeRingContaining:function(t,e){for(var n=t.getLinearRing(),l=n.getEnvelopeInternal(),h=n.getCoordinateN(0),p=null,x=null,I=e.iterator();I.hasNext();){var z=I.next(),X=z.getLinearRing(),lt=X.getEnvelopeInternal();p!==null&&(x=p.getLinearRing().getEnvelopeInternal());var ft=!1;lt.contains(l)&&Ot.isPointInRing(h,X.getCoordinates())&&(ft=!0),ft&&(p===null||x.contains(lt))&&(p=z)}return p},findShell:function(t){for(var e=0,n=null,l=t.iterator();l.hasNext();){var h=l.next();h.isHole()||(n=h,e++)}return P.isTrue(1>=e,"found two shells in MinimalEdgeRing list"),n},add:function(){if(arguments.length===1){var t=arguments[0];this.add(t.getEdgeEnds(),t.getNodes())}else if(arguments.length===2){var e=arguments[0],n=arguments[1];xr.linkResultDirectedEdges(n);var l=this.buildMaximalEdgeRings(e),h=new F,p=this.buildMinimalEdgeRings(l,this.shellList,h);this.sortShellsAndHoles(p,this.shellList,h),this.placeFreeHoles(this.shellList,h)}},interfaces_:function(){return[]},getClass:function(){return to}}),s(Da.prototype,{collectLines:function(t){for(var e=this.op.getGraph().getEdgeEnds().iterator();e.hasNext();){var n=e.next();this.collectLineEdge(n,t,this.lineEdgesList),this.collectBoundaryTouchEdge(n,t,this.lineEdgesList)}},labelIsolatedLine:function(t,e){var n=this.ptLocator.locate(t.getCoordinate(),this.op.getArgGeometry(e));t.getLabel().setLocation(e,n)},build:function(t){return this.findCoveredLineEdges(),this.collectLines(t),this.buildLines(t),this.resultLineList},collectLineEdge:function(t,e,n){var l=t.getLabel(),h=t.getEdge();t.isLineEdge()&&(t.isVisited()||!Ht.isResultOfOp(l,e)||h.isCovered()||(n.add(h),t.setVisitedEdge(!0)))},findCoveredLineEdges:function(){for(var t=this.op.getGraph().getNodes().iterator();t.hasNext();){var e=t.next();e.getEdges().findCoveredLineEdges()}for(var n=this.op.getGraph().getEdgeEnds().iterator();n.hasNext();){var l=n.next(),h=l.getEdge();if(l.isLineEdge()&&!h.isCoveredSet()){var p=this.op.isCoveredByA(l.getCoordinate());h.setCovered(p)}}},labelIsolatedLines:function(t){for(var e=t.iterator();e.hasNext();){var n=e.next(),l=n.getLabel();n.isIsolated()&&(l.isNull(0)?this.labelIsolatedLine(n,0):this.labelIsolatedLine(n,1))}},buildLines:function(t){for(var e=this.lineEdgesList.iterator();e.hasNext();){var n=e.next(),l=(n.getLabel(),this.geometryFactory.createLineString(n.getCoordinates()));this.resultLineList.add(l),n.setInResult(!0)}},collectBoundaryTouchEdge:function(t,e,n){var l=t.getLabel();return t.isLineEdge()||t.isVisited()||t.isInteriorAreaEdge()||t.getEdge().isInResult()?null:(P.isTrue(!(t.isInResult()||t.getSym().isInResult())||!t.getEdge().isInResult()),void(Ht.isResultOfOp(l,e)&&e===Ht.INTERSECTION&&(n.add(t.getEdge()),t.setVisitedEdge(!0))))},interfaces_:function(){return[]},getClass:function(){return Da}}),s(Ra.prototype,{filterCoveredNodeToPoint:function(t){var e=t.getCoordinate();if(!this.op.isCoveredByLA(e)){var n=this.geometryFactory.createPoint(e);this.resultPointList.add(n)}},extractNonCoveredResultNodes:function(t){for(var e=this.op.getGraph().getNodes().iterator();e.hasNext();){var n=e.next();if(!(n.isInResult()||n.isIncidentEdgeInResult()||n.getEdges().getDegree()!==0&&t!==Ht.INTERSECTION)){var l=n.getLabel();Ht.isResultOfOp(l,t)&&this.filterCoveredNodeToPoint(n)}}},build:function(t){return this.extractNonCoveredResultNodes(t),this.resultPointList},interfaces_:function(){return[]},getClass:function(){return Ra}}),s(Ns.prototype,{locate:function(t){},interfaces_:function(){return[]},getClass:function(){return Ns}}),s(ir.prototype,{locate:function(t){return ir.locate(t,this.geom)},interfaces_:function(){return[Ns]},getClass:function(){return ir}}),ir.isPointInRing=function(t,e){return e.getEnvelopeInternal().intersects(t)?Ot.isPointInRing(t,e.getCoordinates()):!1},ir.containsPointInPolygon=function(t,e){if(e.isEmpty())return!1;var n=e.getExteriorRing();if(!ir.isPointInRing(t,n))return!1;for(var l=0;l<e.getNumInteriorRing();l++){var h=e.getInteriorRingN(l);if(ir.isPointInRing(t,h))return!1}return!0},ir.containsPoint=function(t,e){if(e instanceof _e)return ir.containsPointInPolygon(t,e);if(e instanceof Gt)for(var n=new si(e);n.hasNext();){var l=n.next();if(l!==e&&ir.containsPoint(t,l))return!0}return!1},ir.locate=function(t,e){return e.isEmpty()?M.EXTERIOR:ir.containsPoint(t,e)?M.INTERIOR:M.EXTERIOR},s(Ai.prototype,{getNextCW:function(t){this.getEdges();var e=this.edgeList.indexOf(t),n=e-1;return e===0&&(n=this.edgeList.size()-1),this.edgeList.get(n)},propagateSideLabels:function(t){for(var e=M.NONE,n=this.iterator();n.hasNext();){var l=n.next(),h=l.getLabel();h.isArea(t)&&h.getLocation(t,St.LEFT)!==M.NONE&&(e=h.getLocation(t,St.LEFT))}if(e===M.NONE)return null;for(var p=e,n=this.iterator();n.hasNext();){var l=n.next(),h=l.getLabel();if(h.getLocation(t,St.ON)===M.NONE&&h.setLocation(t,St.ON,p),h.isArea(t)){var x=h.getLocation(t,St.LEFT),I=h.getLocation(t,St.RIGHT);if(I!==M.NONE){if(I!==p)throw new An("side location conflict",l.getCoordinate());x===M.NONE&&P.shouldNeverReachHere("found single null side (at "+l.getCoordinate()+")"),p=x}else P.isTrue(h.getLocation(t,St.LEFT)===M.NONE,"found single null side"),h.setLocation(t,St.RIGHT,p),h.setLocation(t,St.LEFT,p)}}},getCoordinate:function(){var t=this.iterator();if(!t.hasNext())return null;var e=t.next();return e.getCoordinate()},print:function(t){et.out.println("EdgeEndStar:   "+this.getCoordinate());for(var e=this.iterator();e.hasNext();){var n=e.next();n.print(t)}},isAreaLabelsConsistent:function(t){return this.computeEdgeEndLabels(t.getBoundaryNodeRule()),this.checkAreaLabelsConsistent(0)},checkAreaLabelsConsistent:function(t){var e=this.getEdges();if(e.size()<=0)return!0;var n=e.size()-1,l=e.get(n).getLabel(),h=l.getLocation(t,St.LEFT);P.isTrue(h!==M.NONE,"Found unlabelled area edge");for(var p=h,x=this.iterator();x.hasNext();){var I=x.next(),z=I.getLabel();P.isTrue(z.isArea(t),"Found non-area edge");var X=z.getLocation(t,St.LEFT),lt=z.getLocation(t,St.RIGHT);if(X===lt||lt!==p)return!1;p=X}return!0},findIndex:function(t){this.iterator();for(var e=0;e<this.edgeList.size();e++){var n=this.edgeList.get(e);if(n===t)return e}return-1},iterator:function(){return this.getEdges().iterator()},getEdges:function(){return this.edgeList===null&&(this.edgeList=new F(this.edgeMap.values())),this.edgeList},getLocation:function(t,e,n){return this.ptInAreaLocation[t]===M.NONE&&(this.ptInAreaLocation[t]=ir.locate(e,n[t].getGeometry())),this.ptInAreaLocation[t]},toString:function(){var t=new Ct;t.append("EdgeEndStar:   "+this.getCoordinate()),t.append(`
`);for(var e=this.iterator();e.hasNext();){var n=e.next();t.append(n),t.append(`
`)}return t.toString()},computeEdgeEndLabels:function(t){for(var e=this.iterator();e.hasNext();){var n=e.next();n.computeLabel(t)}},computeLabelling:function(t){this.computeEdgeEndLabels(t[0].getBoundaryNodeRule()),this.propagateSideLabels(0),this.propagateSideLabels(1);for(var e=[!1,!1],n=this.iterator();n.hasNext();)for(var l=n.next(),h=l.getLabel(),p=0;2>p;p++)h.isLine(p)&&h.getLocation(p)===M.BOUNDARY&&(e[p]=!0);for(var n=this.iterator();n.hasNext();)for(var l=n.next(),h=l.getLabel(),p=0;2>p;p++)if(h.isAnyNull(p)){var x=M.NONE;if(e[p])x=M.EXTERIOR;else{var I=l.getCoordinate();x=this.getLocation(p,I,t)}h.setAllLocationsIfNull(p,x)}},getDegree:function(){return this.edgeMap.size()},insertEdgeEnd:function(t,e){this.edgeMap.put(t,e),this.edgeList=null},interfaces_:function(){return[]},getClass:function(){return Ai}}),w(eo,Ai),s(eo.prototype,{linkResultDirectedEdges:function(){this.getResultAreaEdges();for(var t=null,e=null,n=this.SCANNING_FOR_INCOMING,l=0;l<this.resultAreaEdgeList.size();l++){var h=this.resultAreaEdgeList.get(l),p=h.getSym();if(h.getLabel().isArea())switch(t===null&&h.isInResult()&&(t=h),n){case this.SCANNING_FOR_INCOMING:if(!p.isInResult())continue;e=p,n=this.LINKING_TO_OUTGOING;break;case this.LINKING_TO_OUTGOING:if(!h.isInResult())continue;e.setNext(h),n=this.SCANNING_FOR_INCOMING}}if(n===this.LINKING_TO_OUTGOING){if(t===null)throw new An("no outgoing dirEdge found",this.getCoordinate());P.isTrue(t.isInResult(),"unable to link last incoming dirEdge"),e.setNext(t)}},insert:function(t){var e=t;this.insertEdgeEnd(e,e)},getRightmostEdge:function(){var t=this.getEdges(),e=t.size();if(1>e)return null;var n=t.get(0);if(e===1)return n;var l=t.get(e-1),h=n.getQuadrant(),p=l.getQuadrant();return xe.isNorthern(h)&&xe.isNorthern(p)?n:!xe.isNorthern(h)&&!xe.isNorthern(p)?l:n.getDy()!==0?n:l.getDy()!==0?l:(P.shouldNeverReachHere("found two horizontal edges incident on node"),null)},print:function(t){et.out.println("DirectedEdgeStar: "+this.getCoordinate());for(var e=this.iterator();e.hasNext();){var n=e.next();t.print("out "),n.print(t),t.println(),t.print("in "),n.getSym().print(t),t.println()}},getResultAreaEdges:function(){if(this.resultAreaEdgeList!==null)return this.resultAreaEdgeList;this.resultAreaEdgeList=new F;for(var t=this.iterator();t.hasNext();){var e=t.next();(e.isInResult()||e.getSym().isInResult())&&this.resultAreaEdgeList.add(e)}return this.resultAreaEdgeList},updateLabelling:function(t){for(var e=this.iterator();e.hasNext();){var n=e.next(),l=n.getLabel();l.setAllLocationsIfNull(0,t.getLocation(0)),l.setAllLocationsIfNull(1,t.getLocation(1))}},linkAllDirectedEdges:function(){this.getEdges();for(var t=null,e=null,n=this.edgeList.size()-1;n>=0;n--){var l=this.edgeList.get(n),h=l.getSym();e===null&&(e=h),t!==null&&h.setNext(t),t=l}e.setNext(t)},computeDepths:function(){if(arguments.length===1){var t=arguments[0],e=this.findIndex(t),n=(t.getLabel(),t.getDepth(St.LEFT)),l=t.getDepth(St.RIGHT),h=this.computeDepths(e+1,this.edgeList.size(),n),p=this.computeDepths(0,e,h);if(p!==l)throw new An("depth mismatch at "+t.getCoordinate())}else if(arguments.length===3){for(var x=arguments[0],I=arguments[1],z=arguments[2],X=z,lt=x;I>lt;lt++){var ft=this.edgeList.get(lt);ft.getLabel(),ft.setEdgeDepths(St.RIGHT,X),X=ft.getDepth(St.LEFT)}return X}},mergeSymLabels:function(){for(var t=this.iterator();t.hasNext();){var e=t.next(),n=e.getLabel();n.merge(e.getSym().getLabel())}},linkMinimalDirectedEdges:function(t){for(var e=null,n=null,l=this.SCANNING_FOR_INCOMING,h=this.resultAreaEdgeList.size()-1;h>=0;h--){var p=this.resultAreaEdgeList.get(h),x=p.getSym();switch(e===null&&p.getEdgeRing()===t&&(e=p),l){case this.SCANNING_FOR_INCOMING:if(x.getEdgeRing()!==t)continue;n=x,l=this.LINKING_TO_OUTGOING;break;case this.LINKING_TO_OUTGOING:if(p.getEdgeRing()!==t)continue;n.setNextMin(p),l=this.SCANNING_FOR_INCOMING}}l===this.LINKING_TO_OUTGOING&&(P.isTrue(e!==null,"found null for first outgoing dirEdge"),P.isTrue(e.getEdgeRing()===t,"unable to link last incoming dirEdge"),n.setNextMin(e))},getOutgoingDegree:function(){if(arguments.length===0){for(var t=0,e=this.iterator();e.hasNext();){var n=e.next();n.isInResult()&&t++}return t}if(arguments.length===1){for(var l=arguments[0],t=0,e=this.iterator();e.hasNext();){var n=e.next();n.getEdgeRing()===l&&t++}return t}},getLabel:function(){return this.label},findCoveredLineEdges:function(){for(var t=M.NONE,e=this.iterator();e.hasNext();){var n=e.next(),l=n.getSym();if(!n.isLineEdge()){if(n.isInResult()){t=M.INTERIOR;break}if(l.isInResult()){t=M.EXTERIOR;break}}}if(t===M.NONE)return null;for(var h=t,e=this.iterator();e.hasNext();){var n=e.next(),l=n.getSym();n.isLineEdge()?n.getEdge().setCovered(h===M.INTERIOR):(n.isInResult()&&(h=M.EXTERIOR),l.isInResult()&&(h=M.INTERIOR))}},computeLabelling:function(t){Ai.prototype.computeLabelling.call(this,t),this.label=new tn(M.NONE);for(var e=this.iterator();e.hasNext();)for(var n=e.next(),l=n.getEdge(),h=l.getLabel(),p=0;2>p;p++){var x=h.getLocation(p);x!==M.INTERIOR&&x!==M.BOUNDARY||this.label.setLocation(p,M.INTERIOR)}},interfaces_:function(){return[]},getClass:function(){return eo}}),w(hi,rs),s(hi.prototype,{createNode:function(t){return new Vn(t,new eo)},interfaces_:function(){return[]},getClass:function(){return hi}}),s(fi.prototype,{computeIntersections:function(t,e){this.mce.computeIntersectsForChain(this.chainIndex,t.mce,t.chainIndex,e)},interfaces_:function(){return[]},getClass:function(){return fi}}),s(Zr.prototype,{isDelete:function(){return this.eventType===Zr.DELETE},setDeleteEventIndex:function(t){this.deleteEventIndex=t},getObject:function(){return this.obj},compareTo:function(t){var e=t;return this.xValue<e.xValue?-1:this.xValue>e.xValue?1:this.eventType<e.eventType?-1:this.eventType>e.eventType?1:0},getInsertEvent:function(){return this.insertEvent},isInsert:function(){return this.eventType===Zr.INSERT},isSameLabel:function(t){return this.label===null?!1:this.label===t.label},getDeleteEventIndex:function(){return this.deleteEventIndex},interfaces_:function(){return[m]},getClass:function(){return Zr}}),Zr.INSERT=1,Zr.DELETE=2,s(Di.prototype,{interfaces_:function(){return[]},getClass:function(){return Di}}),s(Dn.prototype,{isTrivialIntersection:function(t,e,n,l){if(t===n&&this.li.getIntersectionNum()===1){if(Dn.isAdjacentSegments(e,l))return!0;if(t.isClosed()){var h=t.getNumPoints()-1;if(e===0&&l===h||l===0&&e===h)return!0}}return!1},getProperIntersectionPoint:function(){return this.properIntersectionPoint},setIsDoneIfProperInt:function(t){this.isDoneWhenProperInt=t},hasProperInteriorIntersection:function(){return this.hasProperInterior},isBoundaryPointInternal:function(t,e){for(var n=e.iterator();n.hasNext();){var l=n.next(),h=l.getCoordinate();if(t.isIntersection(h))return!0}return!1},hasProperIntersection:function(){return this.hasProper},hasIntersection:function(){return this._hasIntersection},isDone:function(){return this._isDone},isBoundaryPoint:function(t,e){return e===null?!1:this.isBoundaryPointInternal(t,e[0])?!0:!!this.isBoundaryPointInternal(t,e[1])},setBoundaryNodes:function(t,e){this.bdyNodes=new Array(2).fill(null),this.bdyNodes[0]=t,this.bdyNodes[1]=e},addIntersections:function(t,e,n,l){if(t===n&&e===l)return null;this.numTests++;var h=t.getCoordinates()[e],p=t.getCoordinates()[e+1],x=n.getCoordinates()[l],I=n.getCoordinates()[l+1];this.li.computeIntersection(h,p,x,I),this.li.hasIntersection()&&(this.recordIsolated&&(t.setIsolated(!1),n.setIsolated(!1)),this.numIntersections++,this.isTrivialIntersection(t,e,n,l)||(this._hasIntersection=!0,!this.includeProper&&this.li.isProper()||(t.addIntersections(this.li,e,0),n.addIntersections(this.li,l,1)),this.li.isProper()&&(this.properIntersectionPoint=this.li.getIntersection(0).copy(),this.hasProper=!0,this.isDoneWhenProperInt&&(this._isDone=!0),this.isBoundaryPoint(this.li,this.bdyNodes)||(this.hasProperInterior=!0))))},interfaces_:function(){return[]},getClass:function(){return Dn}}),Dn.isAdjacentSegments=function(t,e){return Math.abs(t-e)===1},w(no,Di),s(no.prototype,{prepareEvents:function(){Ei.sort(this.events);for(var t=0;t<this.events.size();t++){var e=this.events.get(t);e.isDelete()&&e.getInsertEvent().setDeleteEventIndex(t)}},computeIntersections:function(){if(arguments.length===1){var t=arguments[0];this.nOverlaps=0,this.prepareEvents();for(var e=0;e<this.events.size();e++){var n=this.events.get(e);if(n.isInsert()&&this.processOverlaps(e,n.getDeleteEventIndex(),n,t),t.isDone())break}}else if(arguments.length===3){if(arguments[2]instanceof Dn&&ot(arguments[0],R)&&ot(arguments[1],R)){var l=arguments[0],h=arguments[1],p=arguments[2];this.addEdges(l,l),this.addEdges(h,h),this.computeIntersections(p)}else if(typeof arguments[2]=="boolean"&&ot(arguments[0],R)&&arguments[1]instanceof Dn){var x=arguments[0],I=arguments[1],z=arguments[2];z?this.addEdges(x,null):this.addEdges(x),this.computeIntersections(I)}}},addEdge:function(t,e){for(var n=t.getMonotoneChainEdge(),l=n.getStartIndexes(),h=0;h<l.length-1;h++){var p=new fi(n,h),x=new Zr(e,n.getMinX(h),p);this.events.add(x),this.events.add(new Zr(n.getMaxX(h),x))}},processOverlaps:function(t,e,n,l){for(var h=n.getObject(),p=t;e>p;p++){var x=this.events.get(p);if(x.isInsert()){var I=x.getObject();n.isSameLabel(x)||(h.computeIntersections(I,l),this.nOverlaps++)}}},addEdges:function(){if(arguments.length===1)for(var t=arguments[0],e=t.iterator();e.hasNext();){var n=e.next();this.addEdge(n,n)}else if(arguments.length===2)for(var l=arguments[0],h=arguments[1],e=l.iterator();e.hasNext();){var n=e.next();this.addEdge(n,h)}},interfaces_:function(){return[]},getClass:function(){return no}}),s(Ri.prototype,{getMin:function(){return this.min},intersects:function(t,e){return!(this.min>e||this.max<t)},getMax:function(){return this.max},toString:function(){return vn.toLineString(new O(this.min,0),new O(this.max,0))},interfaces_:function(){return[]},getClass:function(){return Ri}}),s(ja.prototype,{compare:function(t,e){var n=t,l=e,h=(n.min+n.max)/2,p=(l.min+l.max)/2;return p>h?-1:h>p?1:0},interfaces_:function(){return[C]},getClass:function(){return ja}}),Ri.NodeComparator=ja,w(Ss,Ri),s(Ss.prototype,{query:function(t,e,n){return this.intersects(t,e)?void n.visitItem(this.item):null},interfaces_:function(){return[]},getClass:function(){return Ss}}),w(Ls,Ri),s(Ls.prototype,{buildExtent:function(t,e){this.min=Math.min(t.min,e.min),this.max=Math.max(t.max,e.max)},query:function(t,e,n){return this.intersects(t,e)?(this.node1!==null&&this.node1.query(t,e,n),void(this.node2!==null&&this.node2.query(t,e,n))):null},interfaces_:function(){return[]},getClass:function(){return Ls}}),s(ka.prototype,{buildTree:function(){Ei.sort(this.leaves,new IntervalRTreeNode.NodeComparator);for(var t=this.leaves,e=null,n=new F;;){if(this.buildLevel(t,n),n.size()===1)return n.get(0);e=t,t=n,n=e}},insert:function(t,e,n){if(this.root!==null)throw new IllegalStateException("Index cannot be added to once it has been queried");this.leaves.add(new Ss(t,e,n))},query:function(t,e,n){this.init(),this.root.query(t,e,n)},buildRoot:function(){return this.root!==null?null:void(this.root=this.buildTree())},printNode:function(t){et.out.println(vn.toLineString(new O(t.min,this.level),new O(t.max,this.level)))},init:function(){return this.root!==null?null:void this.buildRoot()},buildLevel:function(t,e){this.level++,e.clear();for(var n=0;n<t.size();n+=2){var l=t.get(n),h=n+1<t.size()?t.get(n):null;if(h===null)e.add(l);else{var p=new Ls(t.get(n),t.get(n+1));e.add(p)}}},interfaces_:function(){return[]},getClass:function(){return ka}}),s(Bn.prototype,{filter:function(t){if(this.isForcedToLineString&&t instanceof ke){var e=t.getFactory().createLineString(t.getCoordinateSequence());return this.lines.add(e),null}t instanceof Yt&&this.lines.add(t)},setForceToLineString:function(t){this.isForcedToLineString=t},interfaces_:function(){return[bt]},getClass:function(){return Bn}}),Bn.getGeometry=function(){if(arguments.length===1){var t=arguments[0];return t.getFactory().buildGeometry(Bn.getLines(t))}if(arguments.length===2){var e=arguments[0],n=arguments[1];return e.getFactory().buildGeometry(Bn.getLines(e,n))}},Bn.getLines=function(){if(arguments.length===1){var t=arguments[0];return Bn.getLines(t,!1)}if(arguments.length===2){if(ot(arguments[0],k)&&ot(arguments[1],k)){for(var e=arguments[0],n=arguments[1],l=e.iterator();l.hasNext();){var h=l.next();Bn.getLines(h,n)}return n}if(arguments[0]instanceof nt&&typeof arguments[1]=="boolean"){var p=arguments[0],x=arguments[1],I=new F;return p.apply(new Bn(I,x)),I}if(arguments[0]instanceof nt&&ot(arguments[1],k)){var z=arguments[0],X=arguments[1];return z instanceof Yt?X.add(z):z.apply(new Bn(X)),X}}else if(arguments.length===3){if(typeof arguments[2]=="boolean"&&ot(arguments[0],k)&&ot(arguments[1],k)){for(var lt=arguments[0],ft=arguments[1],Et=arguments[2],l=lt.iterator();l.hasNext();){var h=l.next();Bn.getLines(h,ft,Et)}return ft}if(typeof arguments[2]=="boolean"&&arguments[0]instanceof nt&&ot(arguments[1],k)){var qt=arguments[0],te=arguments[1],oe=arguments[2];return qt.apply(new Bn(te,oe)),te}}},s(ro.prototype,{visitItem:function(t){this.items.add(t)},getItems:function(){return this.items},interfaces_:function(){return[Pi]},getClass:function(){return ro}}),s(io.prototype,{locate:function(t){var e=new Hr(t),n=new sr(e);return this.index.query(t.y,t.y,n),e.getLocation()},interfaces_:function(){return[Ns]},getClass:function(){return io}}),s(sr.prototype,{visitItem:function(t){var e=t;this.counter.countSegment(e.getCoordinate(0),e.getCoordinate(1))},interfaces_:function(){return[Pi]},getClass:function(){return sr}}),s(di.prototype,{init:function(t){for(var e=Bn.getLines(t),n=e.iterator();n.hasNext();){var l=n.next(),h=l.getCoordinates();this.addLine(h)}},addLine:function(t){for(var e=1;e<t.length;e++){var n=new re(t[e-1],t[e]),l=Math.min(n.p0.y,n.p1.y),h=Math.max(n.p0.y,n.p1.y);this.index.insert(l,h,n)}},query:function(){if(arguments.length===2){var t=arguments[0],e=arguments[1],n=new ro;return this.index.query(t,e,n),n.getItems()}if(arguments.length===3){var l=arguments[0],h=arguments[1],p=arguments[2];this.index.query(l,h,p)}},interfaces_:function(){return[]},getClass:function(){return di}}),io.SegmentVisitor=sr,io.IntervalIndexedGeometry=di,s(Fa.prototype,{getSegmentIndex:function(){return this.segmentIndex},getCoordinate:function(){return this.coord},print:function(t){t.print(this.coord),t.print(" seg # = "+this.segmentIndex),t.println(" dist = "+this.dist)},compareTo:function(t){var e=t;return this.compare(e.segmentIndex,e.dist)},isEndPoint:function(t){return this.segmentIndex===0&&this.dist===0?!0:this.segmentIndex===t},toString:function(){return this.coord+" seg # = "+this.segmentIndex+" dist = "+this.dist},getDistance:function(){return this.dist},compare:function(t,e){return this.segmentIndex<t?-1:this.segmentIndex>t?1:this.dist<e?-1:this.dist>e?1:0},interfaces_:function(){return[m]},getClass:function(){return Fa}}),s(Rr.prototype,{print:function(t){t.println("Intersections:");for(var e=this.iterator();e.hasNext();){var n=e.next();n.print(t)}},iterator:function(){return this.nodeMap.values().iterator()},addSplitEdges:function(t){this.addEndpoints();for(var e=this.iterator(),n=e.next();e.hasNext();){var l=e.next(),h=this.createSplitEdge(n,l);t.add(h),n=l}},addEndpoints:function(){var t=this.edge.pts.length-1;this.add(this.edge.pts[0],0,0),this.add(this.edge.pts[t],t,0)},createSplitEdge:function(t,e){var n=e.segmentIndex-t.segmentIndex+2,l=this.edge.pts[e.segmentIndex],h=e.dist>0||!e.coord.equals2D(l);h||n--;var p=new Array(n).fill(null),x=0;p[x++]=new O(t.coord);for(var I=t.segmentIndex+1;I<=e.segmentIndex;I++)p[x++]=this.edge.pts[I];return h&&(p[x]=e.coord),new Un(p,new tn(this.edge.label))},add:function(t,e,n){var l=new Fa(t,e,n),h=this.nodeMap.get(l);return h!==null?h:(this.nodeMap.put(l,l),l)},isIntersection:function(t){for(var e=this.iterator();e.hasNext();){var n=e.next();if(n.coord.equals(t))return!0}return!1},interfaces_:function(){return[]},getClass:function(){return Rr}}),s(so.prototype,{getChainStartIndices:function(t){var e=0,n=new F;n.add(new V(e));do{var l=this.findChainEnd(t,e);n.add(new V(l)),e=l}while(e<t.length-1);var h=so.toIntArray(n);return h},findChainEnd:function(t,e){for(var n=xe.quadrant(t[e],t[e+1]),l=e+1;l<t.length;){var h=xe.quadrant(t[l-1],t[l]);if(h!==n)break;l++}return l-1},interfaces_:function(){return[]},getClass:function(){return so}}),so.toIntArray=function(t){for(var e=new Array(t.size()).fill(null),n=0;n<e.length;n++)e[n]=t.get(n).intValue();return e},s(ji.prototype,{getCoordinates:function(){return this.pts},getMaxX:function(t){var e=this.pts[this.startIndex[t]].x,n=this.pts[this.startIndex[t+1]].x;return e>n?e:n},getMinX:function(t){var e=this.pts[this.startIndex[t]].x,n=this.pts[this.startIndex[t+1]].x;return n>e?e:n},computeIntersectsForChain:function(){if(arguments.length===4){var t=arguments[0],e=arguments[1],n=arguments[2],l=arguments[3];this.computeIntersectsForChain(this.startIndex[t],this.startIndex[t+1],e,e.startIndex[n],e.startIndex[n+1],l)}else if(arguments.length===6){var h=arguments[0],p=arguments[1],x=arguments[2],I=arguments[3],z=arguments[4],X=arguments[5],lt=this.pts[h],ft=this.pts[p],Et=x.pts[I],qt=x.pts[z];if(p-h===1&&z-I===1)return X.addIntersections(this.e,h,x.e,I),null;if(this.env1.init(lt,ft),this.env2.init(Et,qt),!this.env1.intersects(this.env2))return null;var te=Math.trunc((h+p)/2),oe=Math.trunc((I+z)/2);te>h&&(oe>I&&this.computeIntersectsForChain(h,te,x,I,oe,X),z>oe&&this.computeIntersectsForChain(h,te,x,oe,z,X)),p>te&&(oe>I&&this.computeIntersectsForChain(te,p,x,I,oe,X),z>oe&&this.computeIntersectsForChain(te,p,x,oe,z,X))}},getStartIndexes:function(){return this.startIndex},computeIntersects:function(t,e){for(var n=0;n<this.startIndex.length-1;n++)for(var l=0;l<t.startIndex.length-1;l++)this.computeIntersectsForChain(n,t,l,e)},interfaces_:function(){return[]},getClass:function(){return ji}}),s(Er.prototype,{getDepth:function(t,e){return this.depth[t][e]},setDepth:function(t,e,n){this.depth[t][e]=n},isNull:function(){if(arguments.length===0){for(var t=0;2>t;t++)for(var e=0;3>e;e++)if(this.depth[t][e]!==Er.NULL_VALUE)return!1;return!0}if(arguments.length===1){var n=arguments[0];return this.depth[n][1]===Er.NULL_VALUE}if(arguments.length===2){var l=arguments[0],h=arguments[1];return this.depth[l][h]===Er.NULL_VALUE}},normalize:function(){for(var t=0;2>t;t++)if(!this.isNull(t)){var e=this.depth[t][1];this.depth[t][2]<e&&(e=this.depth[t][2]),0>e&&(e=0);for(var n=1;3>n;n++){var l=0;this.depth[t][n]>e&&(l=1),this.depth[t][n]=l}}},getDelta:function(t){return this.depth[t][St.RIGHT]-this.depth[t][St.LEFT]},getLocation:function(t,e){return this.depth[t][e]<=0?M.EXTERIOR:M.INTERIOR},toString:function(){return"A: "+this.depth[0][1]+","+this.depth[0][2]+" B: "+this.depth[1][1]+","+this.depth[1][2]},add:function(){if(arguments.length===1)for(var t=arguments[0],e=0;2>e;e++)for(var n=1;3>n;n++){var l=t.getLocation(e,n);l!==M.EXTERIOR&&l!==M.INTERIOR||(this.isNull(e,n)?this.depth[e][n]=Er.depthAtLocation(l):this.depth[e][n]+=Er.depthAtLocation(l))}else if(arguments.length===3){var h=arguments[0],p=arguments[1],x=arguments[2];x===M.INTERIOR&&this.depth[h][p]++}},interfaces_:function(){return[]},getClass:function(){return Er}}),Er.depthAtLocation=function(t){return t===M.EXTERIOR?0:t===M.INTERIOR?1:Er.NULL_VALUE},Er.NULL_VALUE=-1,w(Un,li),s(Un.prototype,{getDepth:function(){return this.depth},getCollapsedEdge:function(){var t=new Array(2).fill(null);t[0]=this.pts[0],t[1]=this.pts[1];var e=new Un(t,tn.toLineLabel(this.label));return e},isIsolated:function(){return this._isIsolated},getCoordinates:function(){return this.pts},setIsolated:function(t){this._isIsolated=t},setName:function(t){this.name=t},equals:function(t){if(!(t instanceof Un))return!1;var e=t;if(this.pts.length!==e.pts.length)return!1;for(var n=!0,l=!0,h=this.pts.length,p=0;p<this.pts.length;p++)if(this.pts[p].equals2D(e.pts[p])||(n=!1),this.pts[p].equals2D(e.pts[--h])||(l=!1),!n&&!l)return!1;return!0},getCoordinate:function(){if(arguments.length===0)return this.pts.length>0?this.pts[0]:null;if(arguments.length===1){var t=arguments[0];return this.pts[t]}},print:function(t){t.print("edge "+this.name+": "),t.print("LINESTRING (");for(var e=0;e<this.pts.length;e++)e>0&&t.print(","),t.print(this.pts[e].x+" "+this.pts[e].y);t.print(")  "+this.label+" "+this.depthDelta)},computeIM:function(t){Un.updateIM(this.label,t)},isCollapsed:function(){return this.label.isArea()?this.pts.length!==3?!1:!!this.pts[0].equals(this.pts[2]):!1},isClosed:function(){return this.pts[0].equals(this.pts[this.pts.length-1])},getMaximumSegmentIndex:function(){return this.pts.length-1},getDepthDelta:function(){return this.depthDelta},getNumPoints:function(){return this.pts.length},printReverse:function(t){t.print("edge "+this.name+": ");for(var e=this.pts.length-1;e>=0;e--)t.print(this.pts[e]+" ");t.println("")},getMonotoneChainEdge:function(){return this.mce===null&&(this.mce=new ji(this)),this.mce},getEnvelope:function(){if(this.env===null){this.env=new U;for(var t=0;t<this.pts.length;t++)this.env.expandToInclude(this.pts[t])}return this.env},addIntersection:function(t,e,n,l){var h=new O(t.getIntersection(l)),p=e,x=t.getEdgeDistance(n,l),I=p+1;if(I<this.pts.length){var z=this.pts[I];h.equals2D(z)&&(p=I,x=0)}this.eiList.add(h,p,x)},toString:function(){var t=new Ct;t.append("edge "+this.name+": "),t.append("LINESTRING (");for(var e=0;e<this.pts.length;e++)e>0&&t.append(","),t.append(this.pts[e].x+" "+this.pts[e].y);return t.append(")  "+this.label+" "+this.depthDelta),t.toString()},isPointwiseEqual:function(t){if(this.pts.length!==t.pts.length)return!1;for(var e=0;e<this.pts.length;e++)if(!this.pts[e].equals2D(t.pts[e]))return!1;return!0},setDepthDelta:function(t){this.depthDelta=t},getEdgeIntersectionList:function(){return this.eiList},addIntersections:function(t,e,n){for(var l=0;l<t.getIntersectionNum();l++)this.addIntersection(t,e,n,l)},interfaces_:function(){return[]},getClass:function(){return Un}}),Un.updateIM=function(){if(arguments.length!==2)return li.prototype.updateIM.apply(this,arguments);var t=arguments[0],e=arguments[1];e.setAtLeastIfValid(t.getLocation(0,St.ON),t.getLocation(1,St.ON),1),t.isArea()&&(e.setAtLeastIfValid(t.getLocation(0,St.LEFT),t.getLocation(1,St.LEFT),2),e.setAtLeastIfValid(t.getLocation(0,St.RIGHT),t.getLocation(1,St.RIGHT),2))},w(Wn,xr),s(Wn.prototype,{insertBoundaryPoint:function(t,e){var n=this.nodes.addNode(e),l=n.getLabel(),h=1,p=M.NONE;p=l.getLocation(t,St.ON),p===M.BOUNDARY&&h++;var x=Wn.determineBoundary(this.boundaryNodeRule,h);l.setLocation(t,x)},computeSelfNodes:function(){if(arguments.length===2){var t=arguments[0],e=arguments[1];return this.computeSelfNodes(t,e,!1)}if(arguments.length===3){var n=arguments[0],l=arguments[1],h=arguments[2],p=new Dn(n,!0,!1);p.setIsDoneIfProperInt(h);var x=this.createEdgeSetIntersector(),I=this.parentGeom instanceof ke||this.parentGeom instanceof _e||this.parentGeom instanceof Je,z=l||!I;return x.computeIntersections(this.edges,p,z),this.addSelfIntersectionNodes(this.argIndex),p}},computeSplitEdges:function(t){for(var e=this.edges.iterator();e.hasNext();){var n=e.next();n.eiList.addSplitEdges(t)}},computeEdgeIntersections:function(t,e,n){var l=new Dn(e,n,!0);l.setBoundaryNodes(this.getBoundaryNodes(),t.getBoundaryNodes());var h=this.createEdgeSetIntersector();return h.computeIntersections(this.edges,t.edges,l),l},getGeometry:function(){return this.parentGeom},getBoundaryNodeRule:function(){return this.boundaryNodeRule},hasTooFewPoints:function(){return this._hasTooFewPoints},addPoint:function(){if(arguments[0]instanceof ne){var t=arguments[0],e=t.getCoordinate();this.insertPoint(this.argIndex,e,M.INTERIOR)}else if(arguments[0]instanceof O){var n=arguments[0];this.insertPoint(this.argIndex,n,M.INTERIOR)}},addPolygon:function(t){this.addPolygonRing(t.getExteriorRing(),M.EXTERIOR,M.INTERIOR);for(var e=0;e<t.getNumInteriorRing();e++){var n=t.getInteriorRingN(e);this.addPolygonRing(n,M.INTERIOR,M.EXTERIOR)}},addEdge:function(t){this.insertEdge(t);var e=t.getCoordinates();this.insertPoint(this.argIndex,e[0],M.BOUNDARY),this.insertPoint(this.argIndex,e[e.length-1],M.BOUNDARY)},addLineString:function(t){var e=kt.removeRepeatedPoints(t.getCoordinates());if(e.length<2)return this._hasTooFewPoints=!0,this.invalidPoint=e[0],null;var n=new Un(e,new tn(this.argIndex,M.INTERIOR));this.lineEdgeMap.put(t,n),this.insertEdge(n),P.isTrue(e.length>=2,"found LineString with single point"),this.insertBoundaryPoint(this.argIndex,e[0]),this.insertBoundaryPoint(this.argIndex,e[e.length-1])},getInvalidPoint:function(){return this.invalidPoint},getBoundaryPoints:function(){for(var t=this.getBoundaryNodes(),e=new Array(t.size()).fill(null),n=0,l=t.iterator();l.hasNext();){var h=l.next();e[n++]=h.getCoordinate().copy()}return e},getBoundaryNodes:function(){return this.boundaryNodes===null&&(this.boundaryNodes=this.nodes.getBoundaryNodes(this.argIndex)),this.boundaryNodes},addSelfIntersectionNode:function(t,e,n){return this.isBoundaryNode(t,e)?null:void(n===M.BOUNDARY&&this.useBoundaryDeterminationRule?this.insertBoundaryPoint(t,e):this.insertPoint(t,e,n))},addPolygonRing:function(t,e,n){if(t.isEmpty())return null;var l=kt.removeRepeatedPoints(t.getCoordinates());if(l.length<4)return this._hasTooFewPoints=!0,this.invalidPoint=l[0],null;var h=e,p=n;Ot.isCCW(l)&&(h=n,p=e);var x=new Un(l,new tn(this.argIndex,M.BOUNDARY,h,p));this.lineEdgeMap.put(t,x),this.insertEdge(x),this.insertPoint(this.argIndex,l[0],M.BOUNDARY)},insertPoint:function(t,e,n){var l=this.nodes.addNode(e),h=l.getLabel();h===null?l.label=new tn(t,n):h.setLocation(t,n)},createEdgeSetIntersector:function(){return new no},addSelfIntersectionNodes:function(t){for(var e=this.edges.iterator();e.hasNext();)for(var n=e.next(),l=n.getLabel().getLocation(t),h=n.eiList.iterator();h.hasNext();){var p=h.next();this.addSelfIntersectionNode(t,p.coord,l)}},add:function(){if(arguments.length!==1)return xr.prototype.add.apply(this,arguments);var t=arguments[0];if(t.isEmpty())return null;if(t instanceof Je&&(this.useBoundaryDeterminationRule=!1),t instanceof _e)this.addPolygon(t);else if(t instanceof Yt)this.addLineString(t);else if(t instanceof ne)this.addPoint(t);else if(t instanceof cn)this.addCollection(t);else if(t instanceof He)this.addCollection(t);else if(t instanceof Je)this.addCollection(t);else{if(!(t instanceof Gt))throw new UnsupportedOperationException(t.getClass().getName());this.addCollection(t)}},addCollection:function(t){for(var e=0;e<t.getNumGeometries();e++){var n=t.getGeometryN(e);this.add(n)}},locate:function(t){return ot(this.parentGeom,Ke)&&this.parentGeom.getNumGeometries()>50?(this.areaPtLocator===null&&(this.areaPtLocator=new io(this.parentGeom)),this.areaPtLocator.locate(t)):this.ptLocator.locate(t,this.parentGeom)},findEdge:function(){if(arguments.length===1){var t=arguments[0];return this.lineEdgeMap.get(t)}return xr.prototype.findEdge.apply(this,arguments)},interfaces_:function(){return[]},getClass:function(){return Wn}}),Wn.determineBoundary=function(t,e){return t.isInBoundary(e)?M.BOUNDARY:M.INTERIOR},s(jr.prototype,{getArgGeometry:function(t){return this.arg[t].getGeometry()},setComputationPrecision:function(t){this.resultPrecisionModel=t,this.li.setPrecisionModel(this.resultPrecisionModel)},interfaces_:function(){return[]},getClass:function(){return jr}}),s(ki.prototype,{compareTo:function(t){var e=t,n=ki.compareOriented(this.pts,this._orientation,e.pts,e._orientation);return n},interfaces_:function(){return[m]},getClass:function(){return ki}}),ki.orientation=function(t){return kt.increasingDirection(t)===1},ki.compareOriented=function(t,e,n,l){for(var h=e?1:-1,p=l?1:-1,x=e?t.length:-1,I=l?n.length:-1,z=e?0:t.length-1,X=l?0:n.length-1;;){var lt=t[z].compareTo(n[X]);if(lt!==0)return lt;z+=h,X+=p;var ft=z===x,Et=X===I;if(ft&&!Et)return-1;if(!ft&&Et)return 1;if(ft&&Et)return 0}},s(kr.prototype,{print:function(t){t.print("MULTILINESTRING ( ");for(var e=0;e<this.edges.size();e++){var n=this.edges.get(e);e>0&&t.print(","),t.print("(");for(var l=n.getCoordinates(),h=0;h<l.length;h++)h>0&&t.print(","),t.print(l[h].x+" "+l[h].y);t.println(")")}t.print(")  ")},addAll:function(t){for(var e=t.iterator();e.hasNext();)this.add(e.next())},findEdgeIndex:function(t){for(var e=0;e<this.edges.size();e++)if(this.edges.get(e).equals(t))return e;return-1},iterator:function(){return this.edges.iterator()},getEdges:function(){return this.edges},get:function(t){return this.edges.get(t)},findEqualEdge:function(t){var e=new ki(t.getCoordinates()),n=this.ocaMap.get(e);return n},add:function(t){this.edges.add(t);var e=new ki(t.getCoordinates());this.ocaMap.put(e,t)},interfaces_:function(){return[]},getClass:function(){return kr}}),w(Ht,jr),s(Ht.prototype,{insertUniqueEdge:function(t){var e=this.edgeList.findEqualEdge(t);if(e!==null){var n=e.getLabel(),l=t.getLabel();e.isPointwiseEqual(t)||(l=new tn(t.getLabel()),l.flip());var h=e.getDepth();h.isNull()&&h.add(n),h.add(l),n.merge(l)}else this.edgeList.add(t)},getGraph:function(){return this.graph},cancelDuplicateResultEdges:function(){for(var t=this.graph.getEdgeEnds().iterator();t.hasNext();){var e=t.next(),n=e.getSym();e.isInResult()&&n.isInResult()&&(e.setInResult(!1),n.setInResult(!1))}},isCoveredByLA:function(t){return this.isCovered(t,this.resultLineList)?!0:!!this.isCovered(t,this.resultPolyList)},computeGeometry:function(t,e,n,l){var h=new F;return h.addAll(t),h.addAll(e),h.addAll(n),h.isEmpty()?Ht.createEmptyResult(l,this.arg[0].getGeometry(),this.arg[1].getGeometry(),this.geomFact):this.geomFact.buildGeometry(h)},mergeSymLabels:function(){for(var t=this.graph.getNodes().iterator();t.hasNext();){var e=t.next();e.getEdges().mergeSymLabels()}},isCovered:function(t,e){for(var n=e.iterator();n.hasNext();){var l=n.next(),h=this.ptLocator.locate(t,l);if(h!==M.EXTERIOR)return!0}return!1},replaceCollapsedEdges:function(){for(var t=new F,e=this.edgeList.iterator();e.hasNext();){var n=e.next();n.isCollapsed()&&(e.remove(),t.add(n.getCollapsedEdge()))}this.edgeList.addAll(t)},updateNodeLabelling:function(){for(var t=this.graph.getNodes().iterator();t.hasNext();){var e=t.next(),n=e.getEdges().getLabel();e.getLabel().merge(n)}},getResultGeometry:function(t){return this.computeOverlay(t),this.resultGeom},insertUniqueEdges:function(t){for(var e=t.iterator();e.hasNext();){var n=e.next();this.insertUniqueEdge(n)}},computeOverlay:function(t){this.copyPoints(0),this.copyPoints(1),this.arg[0].computeSelfNodes(this.li,!1),this.arg[1].computeSelfNodes(this.li,!1),this.arg[0].computeEdgeIntersections(this.arg[1],this.li,!0);var e=new F;this.arg[0].computeSplitEdges(e),this.arg[1].computeSplitEdges(e),this.insertUniqueEdges(e),this.computeLabelsFromDepths(),this.replaceCollapsedEdges(),ts.checkValid(this.edgeList.getEdges()),this.graph.addEdges(this.edgeList.getEdges()),this.computeLabelling(),this.labelIncompleteNodes(),this.findResultAreaEdges(t),this.cancelDuplicateResultEdges();var n=new to(this.geomFact);n.add(this.graph),this.resultPolyList=n.getPolygons();var l=new Da(this,this.geomFact,this.ptLocator);this.resultLineList=l.build(t);var h=new Ra(this,this.geomFact,this.ptLocator);this.resultPointList=h.build(t),this.resultGeom=this.computeGeometry(this.resultPointList,this.resultLineList,this.resultPolyList,t)},labelIncompleteNode:function(t,e){var n=this.ptLocator.locate(t.getCoordinate(),this.arg[e].getGeometry());t.getLabel().setLocation(e,n)},copyPoints:function(t){for(var e=this.arg[t].getNodeIterator();e.hasNext();){var n=e.next(),l=this.graph.addNode(n.getCoordinate());l.setLabel(t,n.getLabel().getLocation(t))}},findResultAreaEdges:function(t){for(var e=this.graph.getEdgeEnds().iterator();e.hasNext();){var n=e.next(),l=n.getLabel();l.isArea()&&!n.isInteriorAreaEdge()&&Ht.isResultOfOp(l.getLocation(0,St.RIGHT),l.getLocation(1,St.RIGHT),t)&&n.setInResult(!0)}},computeLabelsFromDepths:function(){for(var t=this.edgeList.iterator();t.hasNext();){var e=t.next(),n=e.getLabel(),l=e.getDepth();if(!l.isNull()){l.normalize();for(var h=0;2>h;h++)n.isNull(h)||!n.isArea()||l.isNull(h)||(l.getDelta(h)===0?n.toLine(h):(P.isTrue(!l.isNull(h,St.LEFT),"depth of LEFT side has not been initialized"),n.setLocation(h,St.LEFT,l.getLocation(h,St.LEFT)),P.isTrue(!l.isNull(h,St.RIGHT),"depth of RIGHT side has not been initialized"),n.setLocation(h,St.RIGHT,l.getLocation(h,St.RIGHT))))}}},computeLabelling:function(){for(var t=this.graph.getNodes().iterator();t.hasNext();){var e=t.next();e.getEdges().computeLabelling(this.arg)}this.mergeSymLabels(),this.updateNodeLabelling()},labelIncompleteNodes:function(){for(var t=0,e=this.graph.getNodes().iterator();e.hasNext();){var n=e.next(),l=n.getLabel();n.isIsolated()&&(t++,l.isNull(0)?this.labelIncompleteNode(n,0):this.labelIncompleteNode(n,1)),n.getEdges().updateLabelling(l)}},isCoveredByA:function(t){return!!this.isCovered(t,this.resultPolyList)},interfaces_:function(){return[]},getClass:function(){return Ht}}),Ht.overlayOp=function(t,e,n){var l=new Ht(t,e),h=l.getResultGeometry(n);return h},Ht.intersection=function(t,e){if(t.isEmpty()||e.isEmpty())return Ht.createEmptyResult(Ht.INTERSECTION,t,e,t.getFactory());if(t.isGeometryCollection()){var n=e;return es.map(t,{interfaces_:function(){return[MapOp]},map:function(l){return l.intersection(n)}})}return t.checkNotGeometryCollection(t),t.checkNotGeometryCollection(e),mn.overlayOp(t,e,Ht.INTERSECTION)},Ht.symDifference=function(t,e){if(t.isEmpty()||e.isEmpty()){if(t.isEmpty()&&e.isEmpty())return Ht.createEmptyResult(Ht.SYMDIFFERENCE,t,e,t.getFactory());if(t.isEmpty())return e.copy();if(e.isEmpty())return t.copy()}return t.checkNotGeometryCollection(t),t.checkNotGeometryCollection(e),mn.overlayOp(t,e,Ht.SYMDIFFERENCE)},Ht.resultDimension=function(t,e,n){var l=e.getDimension(),h=n.getDimension(),p=-1;switch(t){case Ht.INTERSECTION:p=Math.min(l,h);break;case Ht.UNION:p=Math.max(l,h);break;case Ht.DIFFERENCE:p=l;break;case Ht.SYMDIFFERENCE:p=Math.max(l,h)}return p},Ht.createEmptyResult=function(t,e,n,l){var h=null;switch(Ht.resultDimension(t,e,n)){case-1:h=l.createGeometryCollection(new Array(0).fill(null));break;case 0:h=l.createPoint();break;case 1:h=l.createLineString();break;case 2:h=l.createPolygon()}return h},Ht.difference=function(t,e){return t.isEmpty()?Ht.createEmptyResult(Ht.DIFFERENCE,t,e,t.getFactory()):e.isEmpty()?t.copy():(t.checkNotGeometryCollection(t),t.checkNotGeometryCollection(e),mn.overlayOp(t,e,Ht.DIFFERENCE))},Ht.isResultOfOp=function(){if(arguments.length===2){var t=arguments[0],e=arguments[1],n=t.getLocation(0),l=t.getLocation(1);return Ht.isResultOfOp(n,l,e)}if(arguments.length===3){var h=arguments[0],p=arguments[1],x=arguments[2];switch(h===M.BOUNDARY&&(h=M.INTERIOR),p===M.BOUNDARY&&(p=M.INTERIOR),x){case Ht.INTERSECTION:return h===M.INTERIOR&&p===M.INTERIOR;case Ht.UNION:return h===M.INTERIOR||p===M.INTERIOR;case Ht.DIFFERENCE:return h===M.INTERIOR&&p!==M.INTERIOR;case Ht.SYMDIFFERENCE:return h===M.INTERIOR&&p!==M.INTERIOR||h!==M.INTERIOR&&p===M.INTERIOR}return!1}},Ht.INTERSECTION=1,Ht.UNION=2,Ht.DIFFERENCE=3,Ht.SYMDIFFERENCE=4,s(mr.prototype,{selfSnap:function(t){var e=new Me(t),n=e.snapTo(t,this.snapTolerance);return n},removeCommonBits:function(t){this.cbr=new ri,this.cbr.add(t[0]),this.cbr.add(t[1]);var e=new Array(2).fill(null);return e[0]=this.cbr.removeCommonBits(t[0].copy()),e[1]=this.cbr.removeCommonBits(t[1].copy()),e},prepareResult:function(t){return this.cbr.addCommonBits(t),t},getResultGeometry:function(t){var e=this.snap(this.geom),n=Ht.overlayOp(e[0],e[1],t);return this.prepareResult(n)},checkValid:function(t){t.isValid()||et.out.println("Snapped geometry is invalid")},computeSnapTolerance:function(){this.snapTolerance=Me.computeOverlaySnapTolerance(this.geom[0],this.geom[1])},snap:function(t){var e=this.removeCommonBits(t),n=Me.snap(e[0],e[1],this.snapTolerance);return n},interfaces_:function(){return[]},getClass:function(){return mr}}),mr.overlayOp=function(t,e,n){var l=new mr(t,e);return l.getResultGeometry(n)},mr.union=function(t,e){return mr.overlayOp(t,e,Ht.UNION)},mr.intersection=function(t,e){return mr.overlayOp(t,e,Ht.INTERSECTION)},mr.symDifference=function(t,e){return mr.overlayOp(t,e,Ht.SYMDIFFERENCE)},mr.difference=function(t,e){return mr.overlayOp(t,e,Ht.DIFFERENCE)},s(mn.prototype,{getResultGeometry:function(t){var e=null,n=!1,l=null;try{e=Ht.overlayOp(this.geom[0],this.geom[1],t);var h=!0;h&&(n=!0)}catch(p){if(!(p instanceof b))throw p;l=p}finally{}if(!n)try{e=mr.overlayOp(this.geom[0],this.geom[1],t)}catch(p){throw p instanceof b?l:p}finally{}return e},interfaces_:function(){return[]},getClass:function(){return mn}}),mn.overlayOp=function(t,e,n){var l=new mn(t,e);return l.getResultGeometry(n)},mn.union=function(t,e){return mn.overlayOp(t,e,Ht.UNION)},mn.intersection=function(t,e){return mn.overlayOp(t,e,Ht.INTERSECTION)},mn.symDifference=function(t,e){return mn.overlayOp(t,e,Ht.SYMDIFFERENCE)},mn.difference=function(t,e){return mn.overlayOp(t,e,Ht.DIFFERENCE)},s(wr.prototype,{addPolygon:function(t){if(t.isEmpty())return null;var e=null,n=0,l=this.horizontalBisector(t);if(l.getLength()===0)n=0,e=l.getCoordinate();else{var h=mn.overlayOp(l,t,Ht.INTERSECTION),p=this.widestGeometry(h);n=p.getEnvelopeInternal().getWidth(),e=wr.centre(p.getEnvelopeInternal())}(this.interiorPoint===null||n>this.maxWidth)&&(this.interiorPoint=e,this.maxWidth=n)},getInteriorPoint:function(){return this.interiorPoint},widestGeometry:function(){if(arguments[0]instanceof Gt){var e=arguments[0];if(e.isEmpty())return e;for(var n=e.getGeometryN(0),l=1;l<e.getNumGeometries();l++)e.getGeometryN(l).getEnvelopeInternal().getWidth()>n.getEnvelopeInternal().getWidth()&&(n=e.getGeometryN(l));return n}if(arguments[0]instanceof nt){var h=arguments[0];return h instanceof Gt?this.widestGeometry(h):h}},horizontalBisector:function(t){var e=t.getEnvelopeInternal(),n=or.getBisectorY(t);return this.factory.createLineString([new O(e.getMinX(),n),new O(e.getMaxX(),n)])},add:function(t){if(t instanceof _e)this.addPolygon(t);else if(t instanceof Gt)for(var e=t,n=0;n<e.getNumGeometries();n++)this.add(e.getGeometryN(n))},interfaces_:function(){return[]},getClass:function(){return wr}}),wr.centre=function(t){return new O(wr.avg(t.getMinX(),t.getMaxX()),wr.avg(t.getMinY(),t.getMaxY()))},wr.avg=function(t,e){return(t+e)/2},s(or.prototype,{updateInterval:function(t){t<=this.centreY?t>this.loY&&(this.loY=t):t>this.centreY&&t<this.hiY&&(this.hiY=t)},getBisectorY:function(){this.process(this.poly.getExteriorRing());for(var t=0;t<this.poly.getNumInteriorRing();t++)this.process(this.poly.getInteriorRingN(t));var e=wr.avg(this.hiY,this.loY);return e},process:function(t){for(var e=t.getCoordinateSequence(),n=0;n<e.size();n++){var l=e.getY(n);this.updateInterval(l)}},interfaces_:function(){return[]},getClass:function(){return or}}),or.getBisectorY=function(t){var e=new or(t);return e.getBisectorY()},wr.SafeBisectorFinder=or,s(Fo.prototype,{addEndpoints:function(){if(arguments[0]instanceof nt){var t=arguments[0];if(t instanceof Yt)this.addEndpoints(t.getCoordinates());else if(t instanceof Gt)for(var e=t,n=0;n<e.getNumGeometries();n++)this.addEndpoints(e.getGeometryN(n))}else if(arguments[0]instanceof Array){var l=arguments[0];this.add(l[0]),this.add(l[l.length-1])}},getInteriorPoint:function(){return this.interiorPoint},addInterior:function(){if(arguments[0]instanceof nt){var t=arguments[0];if(t instanceof Yt)this.addInterior(t.getCoordinates());else if(t instanceof Gt)for(var e=t,n=0;n<e.getNumGeometries();n++)this.addInterior(e.getGeometryN(n))}else if(arguments[0]instanceof Array)for(var l=arguments[0],n=1;n<l.length-1;n++)this.add(l[n])},add:function(t){var e=t.distance(this.centroid);e<this.minDistance&&(this.interiorPoint=new O(t),this.minDistance=e)},interfaces_:function(){return[]},getClass:function(){return Fo}}),s(gi.prototype,{getInteriorPoint:function(){return this.interiorPoint},add:function(){if(arguments[0]instanceof nt){var t=arguments[0];if(t instanceof ne)this.add(t.getCoordinate());else if(t instanceof Gt)for(var e=t,n=0;n<e.getNumGeometries();n++)this.add(e.getGeometryN(n))}else if(arguments[0]instanceof O){var l=arguments[0],h=l.distance(this.centroid);h<this.minDistance&&(this.interiorPoint=new O(l),this.minDistance=h)}},interfaces_:function(){return[]},getClass:function(){return gi}}),s(ue.prototype,{interfaces_:function(){return[]},getClass:function(){return ue}}),ue.toDegrees=function(t){return 180*t/Math.PI},ue.normalize=function(t){for(;t>Math.PI;)t-=ue.PI_TIMES_2;for(;t<=-Math.PI;)t+=ue.PI_TIMES_2;return t},ue.angle=function(){if(arguments.length===1){var t=arguments[0];return Math.atan2(t.y,t.x)}if(arguments.length===2){var e=arguments[0],n=arguments[1],l=n.x-e.x,h=n.y-e.y;return Math.atan2(h,l)}},ue.isAcute=function(t,e,n){var l=t.x-e.x,h=t.y-e.y,p=n.x-e.x,x=n.y-e.y,I=l*p+h*x;return I>0},ue.isObtuse=function(t,e,n){var l=t.x-e.x,h=t.y-e.y,p=n.x-e.x,x=n.y-e.y,I=l*p+h*x;return 0>I},ue.interiorAngle=function(t,e,n){var l=ue.angle(e,t),h=ue.angle(e,n);return Math.abs(h-l)},ue.normalizePositive=function(t){if(0>t){for(;0>t;)t+=ue.PI_TIMES_2;t>=ue.PI_TIMES_2&&(t=0)}else{for(;t>=ue.PI_TIMES_2;)t-=ue.PI_TIMES_2;0>t&&(t=0)}return t},ue.angleBetween=function(t,e,n){var l=ue.angle(e,t),h=ue.angle(e,n);return ue.diff(l,h)},ue.diff=function(t,e){var n=null;return n=e>t?e-t:t-e,n>Math.PI&&(n=2*Math.PI-n),n},ue.toRadians=function(t){return t*Math.PI/180},ue.getTurn=function(t,e){var n=Math.sin(e-t);return n>0?ue.COUNTERCLOCKWISE:0>n?ue.CLOCKWISE:ue.NONE},ue.angleBetweenOriented=function(t,e,n){var l=ue.angle(e,t),h=ue.angle(e,n),p=h-l;return p<=-Math.PI?p+ue.PI_TIMES_2:p>Math.PI?p-ue.PI_TIMES_2:p},ue.PI_TIMES_2=2*Math.PI,ue.PI_OVER_2=Math.PI/2,ue.PI_OVER_4=Math.PI/4,ue.COUNTERCLOCKWISE=Ot.COUNTERCLOCKWISE,ue.CLOCKWISE=Ot.CLOCKWISE,ue.NONE=Ot.COLLINEAR,s(we.prototype,{area:function(){return we.area(this.p0,this.p1,this.p2)},signedArea:function(){return we.signedArea(this.p0,this.p1,this.p2)},interpolateZ:function(t){if(t===null)throw new f;return we.interpolateZ(t,this.p0,this.p1,this.p2)},longestSideLength:function(){return we.longestSideLength(this.p0,this.p1,this.p2)},isAcute:function(){return we.isAcute(this.p0,this.p1,this.p2)},circumcentre:function(){return we.circumcentre(this.p0,this.p1,this.p2)},area3D:function(){return we.area3D(this.p0,this.p1,this.p2)},centroid:function(){return we.centroid(this.p0,this.p1,this.p2)},inCentre:function(){return we.inCentre(this.p0,this.p1,this.p2)},interfaces_:function(){return[]},getClass:function(){return we}}),we.area=function(t,e,n){return Math.abs(((n.x-t.x)*(e.y-t.y)-(e.x-t.x)*(n.y-t.y))/2)},we.signedArea=function(t,e,n){return((n.x-t.x)*(e.y-t.y)-(e.x-t.x)*(n.y-t.y))/2},we.det=function(t,e,n,l){return t*l-e*n},we.interpolateZ=function(t,e,n,l){var h=e.x,p=e.y,x=n.x-h,I=l.x-h,z=n.y-p,X=l.y-p,lt=x*X-I*z,ft=t.x-h,Et=t.y-p,qt=(X*ft-I*Et)/lt,te=(-z*ft+x*Et)/lt,oe=e.z+qt*(n.z-e.z)+te*(l.z-e.z);return oe},we.longestSideLength=function(t,e,n){var l=t.distance(e),h=e.distance(n),p=n.distance(t),x=l;return h>x&&(x=h),p>x&&(x=p),x},we.isAcute=function(t,e,n){return ue.isAcute(t,e,n)&&ue.isAcute(e,n,t)?!!ue.isAcute(n,t,e):!1},we.circumcentre=function(t,e,n){var l=n.x,h=n.y,p=t.x-l,x=t.y-h,I=e.x-l,z=e.y-h,X=2*we.det(p,x,I,z),lt=we.det(x,p*p+x*x,z,I*I+z*z),ft=we.det(p,p*p+x*x,I,I*I+z*z),Et=l-lt/X,qt=h+ft/X;return new O(Et,qt)},we.perpendicularBisector=function(t,e){var n=e.x-t.x,l=e.y-t.y,h=new st(t.x+n/2,t.y+l/2,1),p=new st(t.x-l+n/2,t.y+n+l/2,1);return new st(h,p)},we.angleBisector=function(t,e,n){var l=e.distance(t),h=e.distance(n),p=l/(l+h),x=n.x-t.x,I=n.y-t.y,z=new O(t.x+p*x,t.y+p*I);return z},we.area3D=function(t,e,n){var l=e.x-t.x,h=e.y-t.y,p=e.z-t.z,x=n.x-t.x,I=n.y-t.y,z=n.z-t.z,X=h*z-p*I,lt=p*x-l*z,ft=l*I-h*x,Et=X*X+lt*lt+ft*ft,qt=Math.sqrt(Et)/2;return qt},we.centroid=function(t,e,n){var l=(t.x+e.x+n.x)/3,h=(t.y+e.y+n.y)/3;return new O(l,h)},we.inCentre=function(t,e,n){var l=e.distance(n),h=t.distance(n),p=t.distance(e),x=l+h+p,I=(l*t.x+h*e.x+p*n.x)/x,z=(l*t.y+h*e.y+p*n.y)/x;return new O(I,z)},s(Or.prototype,{getRadius:function(){return this.compute(),this.radius},getDiameter:function(){switch(this.compute(),this.extremalPts.length){case 0:return this.input.getFactory().createLineString();case 1:return this.input.getFactory().createPoint(this.centre)}var t=this.extremalPts[0],e=this.extremalPts[1];return this.input.getFactory().createLineString([t,e])},getExtremalPoints:function(){return this.compute(),this.extremalPts},computeCirclePoints:function(){if(this.input.isEmpty())return this.extremalPts=new Array(0).fill(null),null;if(this.input.getNumPoints()===1){var n=this.input.getCoordinates();return this.extremalPts=[new O(n[0])],null}var t=this.input.convexHull(),e=t.getCoordinates(),n=e;if(e[0].equals2D(e[e.length-1])&&(n=new Array(e.length-1).fill(null),kt.copyDeep(e,0,n,0,e.length-1)),n.length<=2)return this.extremalPts=kt.copyDeep(n),null;for(var l=Or.lowestPoint(n),h=Or.pointWitMinAngleWithX(n,l),p=0;p<n.length;p++){var x=Or.pointWithMinAngleWithSegment(n,l,h);if(ue.isObtuse(l,x,h))return this.extremalPts=[new O(l),new O(h)],null;if(ue.isObtuse(x,l,h))l=x;else{if(!ue.isObtuse(x,h,l))return this.extremalPts=[new O(l),new O(h),new O(x)],null;h=x}}P.shouldNeverReachHere("Logic failure in Minimum Bounding Circle algorithm!")},compute:function(){return this.extremalPts!==null?null:(this.computeCirclePoints(),this.computeCentre(),void(this.centre!==null&&(this.radius=this.centre.distance(this.extremalPts[0]))))},getFarthestPoints:function(){switch(this.compute(),this.extremalPts.length){case 0:return this.input.getFactory().createLineString();case 1:return this.input.getFactory().createPoint(this.centre)}var t=this.extremalPts[0],e=this.extremalPts[this.extremalPts.length-1];return this.input.getFactory().createLineString([t,e])},getCircle:function(){if(this.compute(),this.centre===null)return this.input.getFactory().createPolygon();var t=this.input.getFactory().createPoint(this.centre);return this.radius===0?t:t.buffer(this.radius)},getCentre:function(){return this.compute(),this.centre},computeCentre:function(){switch(this.extremalPts.length){case 0:this.centre=null;break;case 1:this.centre=this.extremalPts[0];break;case 2:this.centre=new O((this.extremalPts[0].x+this.extremalPts[1].x)/2,(this.extremalPts[0].y+this.extremalPts[1].y)/2);break;case 3:this.centre=we.circumcentre(this.extremalPts[0],this.extremalPts[1],this.extremalPts[2])}},interfaces_:function(){return[]},getClass:function(){return Or}}),Or.pointWitMinAngleWithX=function(t,e){for(var n=g.MAX_VALUE,l=null,h=0;h<t.length;h++){var p=t[h];if(p!==e){var x=p.x-e.x,I=p.y-e.y;0>I&&(I=-I);var z=Math.sqrt(x*x+I*I),X=I/z;n>X&&(n=X,l=p)}}return l},Or.lowestPoint=function(t){for(var e=t[0],n=1;n<t.length;n++)t[n].y<e.y&&(e=t[n]);return e},Or.pointWithMinAngleWithSegment=function(t,e,n){for(var l=g.MAX_VALUE,h=null,p=0;p<t.length;p++){var x=t[p];if(x!==e&&x!==n){var I=ue.angleBetween(e,x,n);l>I&&(l=I,h=x)}}return h},s(Rn.prototype,{getWidthCoordinate:function(){return this.computeMinimumDiameter(),this.minWidthPt},getSupportingSegment:function(){return this.computeMinimumDiameter(),this.inputGeom.getFactory().createLineString([this.minBaseSeg.p0,this.minBaseSeg.p1])},getDiameter:function(){if(this.computeMinimumDiameter(),this.minWidthPt===null)return this.inputGeom.getFactory().createLineString(null);var t=this.minBaseSeg.project(this.minWidthPt);return this.inputGeom.getFactory().createLineString([t,this.minWidthPt])},computeWidthConvex:function(t){t instanceof _e?this.convexHullPts=t.getExteriorRing().getCoordinates():this.convexHullPts=t.getCoordinates(),this.convexHullPts.length===0?(this.minWidth=0,this.minWidthPt=null,this.minBaseSeg=null):this.convexHullPts.length===1?(this.minWidth=0,this.minWidthPt=this.convexHullPts[0],this.minBaseSeg.p0=this.convexHullPts[0],this.minBaseSeg.p1=this.convexHullPts[0]):this.convexHullPts.length===2||this.convexHullPts.length===3?(this.minWidth=0,this.minWidthPt=this.convexHullPts[0],this.minBaseSeg.p0=this.convexHullPts[0],this.minBaseSeg.p1=this.convexHullPts[1]):this.computeConvexRingMinDiameter(this.convexHullPts)},computeConvexRingMinDiameter:function(t){this.minWidth=g.MAX_VALUE;for(var e=1,n=new re,l=0;l<t.length-1;l++)n.p0=t[l],n.p1=t[l+1],e=this.findMaxPerpDistance(t,n,e)},computeMinimumDiameter:function(){if(this.minWidthPt!==null)return null;if(this.isConvex)this.computeWidthConvex(this.inputGeom);else{var t=new xn(this.inputGeom).getConvexHull();this.computeWidthConvex(t)}},getLength:function(){return this.computeMinimumDiameter(),this.minWidth},findMaxPerpDistance:function(t,e,n){for(var l=e.distancePerpendicular(t[n]),h=l,p=n,x=p;h>=l;)l=h,p=x,x=Rn.nextIndex(t,p),h=e.distancePerpendicular(t[x]);return l<this.minWidth&&(this.minPtIndex=p,this.minWidth=l,this.minWidthPt=t[this.minPtIndex],this.minBaseSeg=new re(e)),p},getMinimumRectangle:function(){if(this.computeMinimumDiameter(),this.minWidth===0)return this.minBaseSeg.p0.equals2D(this.minBaseSeg.p1)?this.inputGeom.getFactory().createPoint(this.minBaseSeg.p0):this.minBaseSeg.toGeometry(this.inputGeom.getFactory());for(var t=this.minBaseSeg.p1.x-this.minBaseSeg.p0.x,e=this.minBaseSeg.p1.y-this.minBaseSeg.p0.y,n=g.MAX_VALUE,l=-g.MAX_VALUE,h=g.MAX_VALUE,p=-g.MAX_VALUE,x=0;x<this.convexHullPts.length;x++){var I=Rn.computeC(t,e,this.convexHullPts[x]);I>l&&(l=I),n>I&&(n=I);var z=Rn.computeC(-e,t,this.convexHullPts[x]);z>p&&(p=z),h>z&&(h=z)}var X=Rn.computeSegmentForLine(-t,-e,p),lt=Rn.computeSegmentForLine(-t,-e,h),ft=Rn.computeSegmentForLine(-e,t,l),Et=Rn.computeSegmentForLine(-e,t,n),qt=ft.lineIntersection(X),te=Et.lineIntersection(X),oe=Et.lineIntersection(lt),Xe=ft.lineIntersection(lt),Cn=this.inputGeom.getFactory().createLinearRing([qt,te,oe,Xe,qt]);return this.inputGeom.getFactory().createPolygon(Cn,null)},interfaces_:function(){return[]},getClass:function(){return Rn}}),Rn.nextIndex=function(t,e){return e++,e>=t.length&&(e=0),e},Rn.computeC=function(t,e,n){return t*n.y-e*n.x},Rn.getMinimumDiameter=function(t){return new Rn(t).getDiameter()},Rn.getMinimumRectangle=function(t){return new Rn(t).getMinimumRectangle()},Rn.computeSegmentForLine=function(t,e,n){var l=null,h=null;return Math.abs(e)>Math.abs(t)?(l=new O(0,n/e),h=new O(1,n/e-t/e)):(l=new O(n/t,0),h=new O(n/t-e/t,1)),new re(l,h)};var O_=Object.freeze({Centroid:le,CGAlgorithms:Ot,ConvexHull:xn,InteriorPointArea:wr,InteriorPointLine:Fo,InteriorPointPoint:gi,RobustLineIntersector:ie,MinimumBoundingCircle:Or,MinimumDiameter:Rn});s(Wr.prototype,{getResultGeometry:function(){return new Fi(this.distanceTolerance).transform(this.inputGeom)},setDistanceTolerance:function(t){if(0>=t)throw new f;this.distanceTolerance=t},interfaces_:function(){return[]},getClass:function(){return Wr}}),Wr.densifyPoints=function(t,e,n){for(var l=new re,h=new H,p=0;p<t.length-1;p++){l.p0=t[p],l.p1=t[p+1],h.add(l.p0,!1);var x=l.getLength(),I=Math.trunc(x/e)+1;if(I>1)for(var z=x/I,X=1;I>X;X++){var lt=X*z/x,ft=l.pointAlong(lt);n.makePrecise(ft),h.add(ft,!1)}}return h.add(t[t.length-1],!1),h.toCoordinateArray()},Wr.densify=function(t,e){var n=new Wr(t);return n.setDistanceTolerance(e),n.getResultGeometry()},w(Fi,Tn),s(Fi.prototype,{transformMultiPolygon:function(t,e){var n=Tn.prototype.transformMultiPolygon.call(this,t,e);return this.createValidArea(n)},transformPolygon:function(t,e){var n=Tn.prototype.transformPolygon.call(this,t,e);return e instanceof Je?n:this.createValidArea(n)},transformCoordinates:function(t,e){var n=t.toCoordinateArray(),l=Wr.densifyPoints(n,this.distanceTolerance,e.getPrecisionModel());return e instanceof Yt&&l.length===1&&(l=new Array(0).fill(null)),this.factory.getCoordinateSequenceFactory().create(l)},createValidArea:function(t){return t.buffer(0)},interfaces_:function(){return[]},getClass:function(){return Fi}}),Wr.DensifyTransformer=Fi;var N_=Object.freeze({Densifier:Wr});s(Nr.prototype,{find:function(t){var e=this;do{if(e===null)return null;if(e.dest().equals2D(t))return e;e=e.oNext()}while(e!==this);return null},dest:function(){return this._sym._orig},oNext:function(){return this._sym._next},insert:function(t){if(this.oNext()===this)return this.insertAfter(t),null;var e=this.compareTo(t),n=this;do{var l=n.oNext(),h=l.compareTo(t);if(h!==e||l===this)return n.insertAfter(t),null;n=l}while(n!==this);P.shouldNeverReachHere()},insertAfter:function(t){P.equals(this._orig,t.orig());var e=this.oNext();this._sym.setNext(t),t.sym().setNext(e)},degree:function(){var e=0,n=this;do e++,n=n.oNext();while(n!==this);return e},equals:function(){if(arguments.length===2){var t=arguments[0],e=arguments[1];return this._orig.equals2D(t)&&this._sym._orig.equals(e)}},deltaY:function(){return this._sym._orig.y-this._orig.y},sym:function(){return this._sym},prev:function(){return this._sym.next()._sym},compareAngularDirection:function(t){var e=this.deltaX(),n=this.deltaY(),l=t.deltaX(),h=t.deltaY();if(e===l&&n===h)return 0;var p=xe.quadrant(e,n),x=xe.quadrant(l,h);return p>x?1:x>p?-1:Ot.computeOrientation(t._orig,t.dest(),this.dest())},prevNode:function(){for(var t=this;t.degree()===2;)if(t=t.prev(),t===this)return null;return t},compareTo:function(t){var e=t,n=this.compareAngularDirection(e);return n},next:function(){return this._next},setSym:function(t){this._sym=t},orig:function(){return this._orig},toString:function(){return"HE("+this._orig.x+" "+this._orig.y+", "+this._sym._orig.x+" "+this._sym._orig.y+")"},setNext:function(t){this._next=t},init:function(t){this.setSym(t),t.setSym(this),this.setNext(t),t.setNext(this)},deltaX:function(){return this._sym._orig.x-this._orig.x},interfaces_:function(){return[]},getClass:function(){return Nr}}),Nr.init=function(t,e){if(t._sym!==null||e._sym!==null||t._next!==null||e._next!==null)throw new IllegalStateException("Edges are already initialized");return t.init(e),t},Nr.create=function(t,e){var n=new Nr(t),l=new Nr(e);return n.init(l),n},w(zn,Nr),s(zn.prototype,{mark:function(){this._isMarked=!0},setMark:function(t){this._isMarked=t},isMarked:function(){return this._isMarked},interfaces_:function(){return[]},getClass:function(){return zn}}),zn.setMarkBoth=function(t,e){t.setMark(e),t.sym().setMark(e)},zn.isMarked=function(t){return t.isMarked()},zn.setMark=function(t,e){t.setMark(e)},zn.markBoth=function(t){t.mark(),t.sym().mark()},zn.mark=function(t){t.mark()},s(Fr.prototype,{insert:function(t,e,n){var l=this.create(t,e);n!==null?n.insert(l):this.vertexMap.put(t,l);var h=this.vertexMap.get(e);return h!==null?h.insert(l.sym()):this.vertexMap.put(e,l.sym()),l},create:function(t,e){var n=this.createEdge(t),l=this.createEdge(e);return Nr.init(n,l),n},createEdge:function(t){return new Nr(t)},addEdge:function(t,e){if(!Fr.isValidEdge(t,e))return null;var n=this.vertexMap.get(t),l=null;if(n!==null&&(l=n.find(e)),l!==null)return l;var h=this.insert(t,e,n);return h},getVertexEdges:function(){return this.vertexMap.values()},findEdge:function(t,e){var n=this.vertexMap.get(t);return n===null?null:n.find(e)},interfaces_:function(){return[]},getClass:function(){return Fr}}),Fr.isValidEdge=function(t,e){var n=e.compareTo(t);return n!==0},w(is,zn),s(is.prototype,{setStart:function(){this._isStart=!0},isStart:function(){return this._isStart},interfaces_:function(){return[]},getClass:function(){return is}}),w(Is,Fr),s(Is.prototype,{createEdge:function(t){return new is(t)},interfaces_:function(){return[]},getClass:function(){return Is}}),s(Ps.prototype,{addLine:function(t){this.lines.add(this.factory.createLineString(t.toCoordinateArray()))},updateRingStartEdge:function(t){return t.isStart()||(t=t.sym(),t.isStart())?this.ringStartEdge===null?(this.ringStartEdge=t,null):void(t.orig().compareTo(this.ringStartEdge.orig())<0&&(this.ringStartEdge=t)):null},getResult:function(){return this.result===null&&this.computeResult(),this.result},process:function(t){var e=t.prevNode();e===null&&(e=t),this.stackEdges(e),this.buildLines()},buildRing:function(t){var e=new H,n=t;for(e.add(n.orig().copy(),!1);n.sym().degree()===2;){var l=n.next();if(l===t)break;e.add(l.orig().copy(),!1),n=l}e.add(n.dest().copy(),!1),this.addLine(e)},buildLine:function(t){var e=new H,n=t;for(this.ringStartEdge=null,zn.markBoth(n),e.add(n.orig().copy(),!1);n.sym().degree()===2;){this.updateRingStartEdge(n);var l=n.next();if(l===t)return this.buildRing(this.ringStartEdge),null;e.add(l.orig().copy(),!1),n=l,zn.markBoth(n)}e.add(n.dest().copy(),!1),this.stackEdges(n.sym()),this.addLine(e)},stackEdges:function(t){var e=t;do zn.isMarked(e)||this.nodeEdgeStack.add(e),e=e.oNext();while(e!==t)},computeResult:function(){for(var t=this.graph.getVertexEdges(),e=t.iterator();e.hasNext();){var n=e.next();zn.isMarked(n)||this.process(n)}this.result=this.factory.buildGeometry(this.lines)},buildLines:function(){for(;!this.nodeEdgeStack.empty();){var t=this.nodeEdgeStack.pop();zn.isMarked(t)||this.buildLine(t)}},add:function(){if(arguments[0]instanceof nt){var t=arguments[0];t.apply({interfaces_:function(){return[bt]},filter:function(z){z instanceof Yt&&this.add(z)}})}else if(ot(arguments[0],k))for(var e=arguments[0],n=e.iterator();n.hasNext();){var l=n.next();this.add(l)}else if(arguments[0]instanceof Yt){var h=arguments[0];this.factory===null&&(this.factory=h.getFactory());for(var p=h.getCoordinateSequence(),x=!1,n=1;n<p.size();n++){var I=this.graph.addEdge(p.getCoordinate(n-1),p.getCoordinate(n));I!==null&&(x||(I.setStart(),x=!0))}}},interfaces_:function(){return[]},getClass:function(){return Ps}}),Ps.dissolve=function(t){var e=new Ps;return e.add(t),e.getResult()};var S_=Object.freeze({LineDissolver:Ps});s(Br.prototype,{hasChildren:function(){for(var t=0;4>t;t++)if(this.subnode[t]!==null)return!0;return!1},isPrunable:function(){return!(this.hasChildren()||this.hasItems())},addAllItems:function(t){t.addAll(this.items);for(var e=0;4>e;e++)this.subnode[e]!==null&&this.subnode[e].addAllItems(t);return t},getNodeCount:function(){for(var t=0,e=0;4>e;e++)this.subnode[e]!==null&&(t+=this.subnode[e].size());return t+1},size:function(){for(var t=0,e=0;4>e;e++)this.subnode[e]!==null&&(t+=this.subnode[e].size());return t+this.items.size()},addAllItemsFromOverlapping:function(t,e){if(!this.isSearchMatch(t))return null;e.addAll(this.items);for(var n=0;4>n;n++)this.subnode[n]!==null&&this.subnode[n].addAllItemsFromOverlapping(t,e)},visitItems:function(t,e){for(var n=this.items.iterator();n.hasNext();)e.visitItem(n.next())},hasItems:function(){return!this.items.isEmpty()},remove:function(t,e){if(!this.isSearchMatch(t))return!1;for(var n=!1,l=0;4>l;l++)if(this.subnode[l]!==null&&(n=this.subnode[l].remove(t,e))){this.subnode[l].isPrunable()&&(this.subnode[l]=null);break}return n||(n=this.items.remove(e))},visit:function(t,e){if(!this.isSearchMatch(t))return null;this.visitItems(t,e);for(var n=0;4>n;n++)this.subnode[n]!==null&&this.subnode[n].visit(t,e)},getItems:function(){return this.items},depth:function(){for(var t=0,e=0;4>e;e++)if(this.subnode[e]!==null){var n=this.subnode[e].depth();n>t&&(t=n)}return t+1},isEmpty:function(){var e=!0;this.items.isEmpty()||(e=!1);for(var n=0;4>n;n++)this.subnode[n]!==null&&(this.subnode[n].isEmpty()||(e=!1));return e},add:function(t){this.items.add(t)},interfaces_:function(){return[_]},getClass:function(){return Br}}),Br.getSubnodeIndex=function(t,e,n){var l=-1;return t.getMinX()>=e&&(t.getMinY()>=n&&(l=3),t.getMaxY()<=n&&(l=1)),t.getMaxX()<=e&&(t.getMinY()>=n&&(l=2),t.getMaxY()<=n&&(l=0)),l},Yr.exponent=function(t){return $h(64,t)-1023},Yr.powerOf2=function(t){return Math.pow(2,t)},s(Ts.prototype,{getLevel:function(){return this.level},computeKey:function(){if(arguments.length===1){var t=arguments[0];for(this.level=Ts.computeQuadLevel(t),this.env=new U,this.computeKey(this.level,t);!this.env.contains(t);)this.level+=1,this.computeKey(this.level,t)}else if(arguments.length===2){var e=arguments[0],n=arguments[1],l=Yr.powerOf2(e);this.pt.x=Math.floor(n.getMinX()/l)*l,this.pt.y=Math.floor(n.getMinY()/l)*l,this.env.init(this.pt.x,this.pt.x+l,this.pt.y,this.pt.y+l)}},getEnvelope:function(){return this.env},getCentre:function(){return new O((this.env.getMinX()+this.env.getMaxX())/2,(this.env.getMinY()+this.env.getMaxY())/2)},getPoint:function(){return this.pt},interfaces_:function(){return[]},getClass:function(){return Ts}}),Ts.computeQuadLevel=function(t){var e=t.getWidth(),n=t.getHeight(),l=e>n?e:n,h=Yr.exponent(l)+1;return h},w(mi,Br),s(mi.prototype,{find:function(t){var e=Br.getSubnodeIndex(t,this.centrex,this.centrey);if(e===-1)return this;if(this.subnode[e]!==null){var n=this.subnode[e];return n.find(t)}return this},isSearchMatch:function(t){return this.env.intersects(t)},getSubnode:function(t){return this.subnode[t]===null&&(this.subnode[t]=this.createSubnode(t)),this.subnode[t]},getEnvelope:function(){return this.env},getNode:function(t){var e=Br.getSubnodeIndex(t,this.centrex,this.centrey);if(e!==-1){var n=this.getSubnode(e);return n.getNode(t)}return this},createSubnode:function(t){var e=0,n=0,l=0,h=0;switch(t){case 0:e=this.env.getMinX(),n=this.centrex,l=this.env.getMinY(),h=this.centrey;break;case 1:e=this.centrex,n=this.env.getMaxX(),l=this.env.getMinY(),h=this.centrey;break;case 2:e=this.env.getMinX(),n=this.centrex,l=this.centrey,h=this.env.getMaxY();break;case 3:e=this.centrex,n=this.env.getMaxX(),l=this.centrey,h=this.env.getMaxY()}var p=new U(e,n,l,h),x=new mi(p,this.level-1);return x},insertNode:function(t){P.isTrue(this.env===null||this.env.contains(t.env));var e=Br.getSubnodeIndex(t.env,this.centrex,this.centrey);if(t.level===this.level-1)this.subnode[e]=t;else{var n=this.createSubnode(e);n.insertNode(t),this.subnode[e]=n}},interfaces_:function(){return[]},getClass:function(){return mi}}),mi.createNode=function(t){var e=new Ts(t),n=new mi(e.getEnvelope(),e.getLevel());return n},mi.createExpanded=function(t,e){var n=new U(e);t!==null&&n.expandToInclude(t.env);var l=mi.createNode(n);return t!==null&&l.insertNode(t),l},s(pi.prototype,{interfaces_:function(){return[]},getClass:function(){return pi}}),pi.isZeroWidth=function(t,e){var n=e-t;if(n===0)return!0;var l=Math.max(Math.abs(t),Math.abs(e)),h=n/l,p=Yr.exponent(h);return p<=pi.MIN_BINARY_EXPONENT},pi.MIN_BINARY_EXPONENT=-50,w(ss,Br),s(ss.prototype,{insert:function(t,e){var n=Br.getSubnodeIndex(t,ss.origin.x,ss.origin.y);if(n===-1)return this.add(e),null;var l=this.subnode[n];if(l===null||!l.getEnvelope().contains(t)){var h=mi.createExpanded(l,t);this.subnode[n]=h}this.insertContained(this.subnode[n],t,e)},isSearchMatch:function(t){return!0},insertContained:function(t,e,n){P.isTrue(t.getEnvelope().contains(e));var l=pi.isZeroWidth(e.getMinX(),e.getMaxX()),h=pi.isZeroWidth(e.getMinY(),e.getMaxY()),p=null;p=l||h?t.find(e):t.getNode(e),p.add(n)},interfaces_:function(){return[]},getClass:function(){return ss}}),ss.origin=new O(0,0),s(Hn.prototype,{size:function(){return this.root!==null?this.root.size():0},insert:function(t,e){this.collectStats(t);var n=Hn.ensureExtent(t,this.minExtent);this.root.insert(n,e)},query:function(){if(arguments.length===1){var t=arguments[0],e=new ro;return this.query(t,e),e.getItems()}if(arguments.length===2){var n=arguments[0],l=arguments[1];this.root.visit(n,l)}},queryAll:function(){var t=new F;return this.root.addAllItems(t),t},remove:function(t,e){var n=Hn.ensureExtent(t,this.minExtent);return this.root.remove(n,e)},collectStats:function(t){var e=t.getWidth();e<this.minExtent&&e>0&&(this.minExtent=e);var n=t.getHeight();n<this.minExtent&&n>0&&(this.minExtent=n)},depth:function(){return this.root!==null?this.root.depth():0},isEmpty:function(){return this.root===null},interfaces_:function(){return[me,_]},getClass:function(){return Hn}}),Hn.ensureExtent=function(t,e){var n=t.getMinX(),l=t.getMaxX(),h=t.getMinY(),p=t.getMaxY();return n!==l&&h!==p?t:(n===l&&(n-=e/2,l=n+e/2),h===p&&(h-=e/2,p=h+e/2),new U(n,l,h,p))},Hn.serialVersionUID=-7461163625812743e3;var L_=Object.freeze({Quadtree:Hn}),I_=Object.freeze({STRtree:Ze}),P_=Object.freeze({quadtree:L_,strtree:I_}),T_=["Point","MultiPoint","LineString","MultiLineString","Polygon","MultiPolygon"];s(Ms.prototype,{read:function(t){var e=void 0;e=typeof t=="string"?JSON.parse(t):t;var n=e.type;if(!Kr[n])throw new Error("Unknown GeoJSON type: "+e.type);return T_.indexOf(n)!==-1?Kr[n].apply(this,[e.coordinates]):n==="GeometryCollection"?Kr[n].apply(this,[e.geometries]):Kr[n].apply(this,[e])},write:function(t){var e=t.getGeometryType();if(!Hi[e])throw new Error("Geometry is not supported");return Hi[e].apply(this,[t])}});var Kr={Feature:function(t){var e={};for(var n in t)e[n]=t[n];if(t.geometry){var l=t.geometry.type;if(!Kr[l])throw new Error("Unknown GeoJSON type: "+t.type);e.geometry=this.read(t.geometry)}return t.bbox&&(e.bbox=Kr.bbox.apply(this,[t.bbox])),e},FeatureCollection:function(t){var e={};if(t.features){e.features=[];for(var n=0;n<t.features.length;++n)e.features.push(this.read(t.features[n]))}return t.bbox&&(e.bbox=this.parse.bbox.apply(this,[t.bbox])),e},coordinates:function(e){for(var n=[],l=0;l<e.length;++l){var h=e[l];n.push(new O(h[0],h[1]))}return n},bbox:function(t){return this.geometryFactory.createLinearRing([new O(t[0],t[1]),new O(t[2],t[1]),new O(t[2],t[3]),new O(t[0],t[3]),new O(t[0],t[1])])},Point:function(t){var e=new O(t[0],t[1]);return this.geometryFactory.createPoint(e)},MultiPoint:function(t){for(var e=[],n=0;n<t.length;++n)e.push(Kr.Point.apply(this,[t[n]]));return this.geometryFactory.createMultiPoint(e)},LineString:function(t){var e=Kr.coordinates.apply(this,[t]);return this.geometryFactory.createLineString(e)},MultiLineString:function(t){for(var e=[],n=0;n<t.length;++n)e.push(Kr.LineString.apply(this,[t[n]]));return this.geometryFactory.createMultiLineString(e)},Polygon:function(t){for(var e=Kr.coordinates.apply(this,[t[0]]),n=this.geometryFactory.createLinearRing(e),l=[],h=1;h<t.length;++h){var p=t[h],x=Kr.coordinates.apply(this,[p]),I=this.geometryFactory.createLinearRing(x);l.push(I)}return this.geometryFactory.createPolygon(n,l)},MultiPolygon:function(t){for(var e=[],n=0;n<t.length;++n){var l=t[n];e.push(Kr.Polygon.apply(this,[l]))}return this.geometryFactory.createMultiPolygon(e)},GeometryCollection:function(t){for(var e=[],n=0;n<t.length;++n){var l=t[n];e.push(this.read(l))}return this.geometryFactory.createGeometryCollection(e)}},Hi={coordinate:function(t){return[t.x,t.y]},Point:function(t){var e=Hi.coordinate.apply(this,[t.getCoordinate()]);return{type:"Point",coordinates:e}},MultiPoint:function(t){for(var e=[],n=0;n<t.geometries.length;++n){var l=t.geometries[n],h=Hi.Point.apply(this,[l]);e.push(h.coordinates)}return{type:"MultiPoint",coordinates:e}},LineString:function(t){for(var e=[],n=t.getCoordinates(),l=0;l<n.length;++l){var h=n[l];e.push(Hi.coordinate.apply(this,[h]))}return{type:"LineString",coordinates:e}},MultiLineString:function(t){for(var e=[],n=0;n<t.geometries.length;++n){var l=t.geometries[n],h=Hi.LineString.apply(this,[l]);e.push(h.coordinates)}return{type:"MultiLineString",coordinates:e}},Polygon:function(t){var e=[],n=Hi.LineString.apply(this,[t.shell]);e.push(n.coordinates);for(var l=0;l<t.holes.length;++l){var h=t.holes[l],p=Hi.LineString.apply(this,[h]);e.push(p.coordinates)}return{type:"Polygon",coordinates:e}},MultiPolygon:function(t){for(var e=[],n=0;n<t.geometries.length;++n){var l=t.geometries[n],h=Hi.Polygon.apply(this,[l]);e.push(h.coordinates)}return{type:"MultiPolygon",coordinates:e}},GeometryCollection:function(t){for(var e=[],n=0;n<t.geometries.length;++n){var l=t.geometries[n],h=l.getGeometryType();e.push(Hi[h].apply(this,[l]))}return{type:"GeometryCollection",geometries:e}}};s(Ju.prototype,{read:function(t){var e=this.parser.read(t);return this.precisionModel.getType()===ge.FIXED&&this.reducePrecision(e),e},reducePrecision:function(t){var e,n;if(t.coordinate)this.precisionModel.makePrecise(t.coordinate);else if(t.points)for(e=0,n=t.points.length;n>e;e++)this.precisionModel.makePrecise(t.points[e]);else if(t.geometries)for(e=0,n=t.geometries.length;n>e;e++)this.reducePrecision(t.geometries[e])}}),s(oo.prototype,{write:function(t){return this.parser.write(t)}}),s(Qu.prototype,{read:function(t){var e=this.parser.read(t);return this.precisionModel.getType()===ge.FIXED&&this.reducePrecision(e),e},reducePrecision:function(t){if(t.coordinate)this.precisionModel.makePrecise(t.coordinate);else if(t.points)for(var e=0,n=t.points.coordinates.length;n>e;e++)this.precisionModel.makePrecise(t.points.coordinates[e]);else if(t.geometries)for(var l=0,h=t.geometries.length;h>l;l++)this.reducePrecision(t.geometries[l])}}),s($u.prototype,{read:function(t){return t instanceof ol.geom.Point?this.convertFromPoint(t):t instanceof ol.geom.LineString?this.convertFromLineString(t):t instanceof ol.geom.LinearRing?this.convertFromLinearRing(t):t instanceof ol.geom.Polygon?this.convertFromPolygon(t):t instanceof ol.geom.MultiPoint?this.convertFromMultiPoint(t):t instanceof ol.geom.MultiLineString?this.convertFromMultiLineString(t):t instanceof ol.geom.MultiPolygon?this.convertFromMultiPolygon(t):t instanceof ol.geom.GeometryCollection?this.convertFromCollection(t):void 0},convertFromPoint:function(t){var e=t.getCoordinates();return this.geometryFactory.createPoint(new O(e[0],e[1]))},convertFromLineString:function(t){return this.geometryFactory.createLineString(t.getCoordinates().map(function(e){return new O(e[0],e[1])}))},convertFromLinearRing:function(t){return this.geometryFactory.createLinearRing(t.getCoordinates().map(function(e){return new O(e[0],e[1])}))},convertFromPolygon:function(t){for(var e=t.getLinearRings(),n=null,l=[],h=0;h<e.length;h++){var p=this.convertFromLinearRing(e[h]);h===0?n=p:l.push(p)}return this.geometryFactory.createPolygon(n,l)},convertFromMultiPoint:function(t){var e=t.getPoints().map(function(n){return this.convertFromPoint(n)},this);return this.geometryFactory.createMultiPoint(e)},convertFromMultiLineString:function(t){var e=t.getLineStrings().map(function(n){return this.convertFromLineString(n)},this);return this.geometryFactory.createMultiLineString(e)},convertFromMultiPolygon:function(t){var e=t.getPolygons().map(function(n){return this.convertFromPolygon(n)},this);return this.geometryFactory.createMultiPolygon(e)},convertFromCollection:function(t){var e=t.getGeometries().map(function(n){return this.read(n)},this);return this.geometryFactory.createGeometryCollection(e)},write:function(t){return t.getGeometryType()==="Point"?this.convertToPoint(t.getCoordinate()):t.getGeometryType()==="LineString"?this.convertToLineString(t):t.getGeometryType()==="LinearRing"?this.convertToLinearRing(t):t.getGeometryType()==="Polygon"?this.convertToPolygon(t):t.getGeometryType()==="MultiPoint"?this.convertToMultiPoint(t):t.getGeometryType()==="MultiLineString"?this.convertToMultiLineString(t):t.getGeometryType()==="MultiPolygon"?this.convertToMultiPolygon(t):t.getGeometryType()==="GeometryCollection"?this.convertToCollection(t):void 0},convertToPoint:function(t){return new ol.geom.Point([t.x,t.y])},convertToLineString:function(t){var e=t.points.coordinates.map(As);return new ol.geom.LineString(e)},convertToLinearRing:function(t){var e=t.points.coordinates.map(As);return new ol.geom.LinearRing(e)},convertToPolygon:function(t){for(var e=[t.shell.points.coordinates.map(As)],n=0;n<t.holes.length;n++)e.push(t.holes[n].points.coordinates.map(As));return new ol.geom.Polygon(e)},convertToMultiPoint:function(t){return new ol.geom.MultiPoint(t.getCoordinates().map(As))},convertToMultiLineString:function(t){for(var e=[],n=0;n<t.geometries.length;n++)e.push(this.convertToLineString(t.geometries[n]).getCoordinates());return new ol.geom.MultiLineString(e)},convertToMultiPolygon:function(t){for(var e=[],n=0;n<t.geometries.length;n++)e.push(this.convertToPolygon(t.geometries[n]).getCoordinates());return new ol.geom.MultiPolygon(e)},convertToCollection:function(t){for(var e=[],n=0;n<t.geometries.length;n++){var l=t.geometries[n];e.push(this.write(l))}return new ol.geom.GeometryCollection(e)}});var M_=Object.freeze({GeoJSONReader:Ju,GeoJSONWriter:oo,OL3Parser:$u,WKTReader:Qu,WKTWriter:vn});s(vi.prototype,{rescale:function(){if(ot(arguments[0],k))for(var t=arguments[0],e=t.iterator();e.hasNext();){var n=e.next();this.rescale(n.getCoordinates())}else if(arguments[0]instanceof Array){var l=arguments[0];l.length===2&&(new O(l[0]),new O(l[1]));for(var e=0;e<l.length;e++)l[e].x=l[e].x/this.scaleFactor+this.offsetX,l[e].y=l[e].y/this.scaleFactor+this.offsetY;l.length===2&&l[0].equals2D(l[1])&&et.out.println(l)}},scale:function(){if(ot(arguments[0],k)){for(var t=arguments[0],e=new F,n=t.iterator();n.hasNext();){var l=n.next();e.add(new Cr(this.scale(l.getCoordinates()),l.getData()))}return e}if(arguments[0]instanceof Array){for(var h=arguments[0],p=new Array(h.length).fill(null),n=0;n<h.length;n++)p[n]=new O(Math.round((h[n].x-this.offsetX)*this.scaleFactor),Math.round((h[n].y-this.offsetY)*this.scaleFactor),h[n].z);var x=kt.removeRepeatedPoints(p);return x}},isIntegerPrecision:function(){return this.scaleFactor===1},getNodedSubstrings:function(){var t=this.noder.getNodedSubstrings();return this.isScaled&&this.rescale(t),t},computeNodes:function(t){var e=t;this.isScaled&&(e=this.scale(t)),this.noder.computeNodes(e)},interfaces_:function(){return[Es]},getClass:function(){return vi}});var A_=Object.freeze({MCIndexNoder:Mi,ScaledNoder:vi,SegmentString:Ki});s(ao.prototype,{isSimpleMultiPoint:function(t){if(t.isEmpty())return!0;for(var e=new Wt,n=0;n<t.getNumGeometries();n++){var l=t.getGeometryN(n),h=l.getCoordinate();if(e.contains(h))return this.nonSimpleLocation=h,!1;e.add(h)}return!0},isSimplePolygonal:function(t){for(var e=Bn.getLines(t),n=e.iterator();n.hasNext();){var l=n.next();if(!this.isSimpleLinearGeometry(l))return!1}return!0},hasClosedEndpointIntersection:function(t){for(var e=new Bt,n=t.getEdgeIterator();n.hasNext();){var l=n.next(),h=(l.getMaximumSegmentIndex(),l.isClosed()),p=l.getCoordinate(0);this.addEndpoint(e,p,h);var x=l.getCoordinate(l.getNumPoints()-1);this.addEndpoint(e,x,h)}for(var n=e.values().iterator();n.hasNext();){var I=n.next();if(I.isClosed&&I.degree!==2)return this.nonSimpleLocation=I.getCoordinate(),!0}return!1},getNonSimpleLocation:function(){return this.nonSimpleLocation},isSimpleLinearGeometry:function(t){if(t.isEmpty())return!0;var e=new Wn(0,t),n=new ie,l=e.computeSelfNodes(n,!0);return l.hasIntersection()?l.hasProperIntersection()?(this.nonSimpleLocation=l.getProperIntersectionPoint(),!1):this.hasNonEndpointIntersection(e)?!1:!this.isClosedEndpointsInInterior||!this.hasClosedEndpointIntersection(e):!0},hasNonEndpointIntersection:function(t){for(var e=t.getEdgeIterator();e.hasNext();)for(var n=e.next(),l=n.getMaximumSegmentIndex(),h=n.getEdgeIntersectionList().iterator();h.hasNext();){var p=h.next();if(!p.isEndPoint(l))return this.nonSimpleLocation=p.getCoordinate(),!0}return!1},addEndpoint:function(t,e,n){var l=t.get(e);l===null&&(l=new yi(e),t.put(e,l)),l.addEndpoint(n)},computeSimple:function(t){return this.nonSimpleLocation=null,t.isEmpty()?!0:t instanceof Yt?this.isSimpleLinearGeometry(t):t instanceof He?this.isSimpleLinearGeometry(t):t instanceof cn?this.isSimpleMultiPoint(t):ot(t,Ke)?this.isSimplePolygonal(t):t instanceof Gt?this.isSimpleGeometryCollection(t):!0},isSimple:function(){return this.nonSimpleLocation=null,this.computeSimple(this.inputGeom)},isSimpleGeometryCollection:function(t){for(var e=0;e<t.getNumGeometries();e++){var n=t.getGeometryN(e);if(!this.computeSimple(n))return!1}return!0},interfaces_:function(){return[]},getClass:function(){return ao}}),s(yi.prototype,{addEndpoint:function(t){this.degree++,this.isClosed|=t},getCoordinate:function(){return this.pt},interfaces_:function(){return[]},getClass:function(){return yi}}),ao.EndpointInfo=yi,s(Oe.prototype,{getEndCapStyle:function(){return this.endCapStyle},isSingleSided:function(){return this._isSingleSided},setQuadrantSegments:function(t){this.quadrantSegments=t,this.quadrantSegments===0&&(this.joinStyle=Oe.JOIN_BEVEL),this.quadrantSegments<0&&(this.joinStyle=Oe.JOIN_MITRE,this.mitreLimit=Math.abs(this.quadrantSegments)),0>=t&&(this.quadrantSegments=1),this.joinStyle!==Oe.JOIN_ROUND&&(this.quadrantSegments=Oe.DEFAULT_QUADRANT_SEGMENTS)},getJoinStyle:function(){return this.joinStyle},setJoinStyle:function(t){this.joinStyle=t},setSimplifyFactor:function(t){this.simplifyFactor=0>t?0:t},getSimplifyFactor:function(){return this.simplifyFactor},getQuadrantSegments:function(){return this.quadrantSegments},setEndCapStyle:function(t){this.endCapStyle=t},getMitreLimit:function(){return this.mitreLimit},setMitreLimit:function(t){this.mitreLimit=t},setSingleSided:function(t){this._isSingleSided=t},interfaces_:function(){return[]},getClass:function(){return Oe}}),Oe.bufferDistanceError=function(t){var e=Math.PI/2/t;return 1-Math.cos(e/2)},Oe.CAP_ROUND=1,Oe.CAP_FLAT=2,Oe.CAP_SQUARE=3,Oe.JOIN_ROUND=1,Oe.JOIN_MITRE=2,Oe.JOIN_BEVEL=3,Oe.DEFAULT_QUADRANT_SEGMENTS=8,Oe.DEFAULT_MITRE_LIMIT=5,Oe.DEFAULT_SIMPLIFY_FACTOR=.01,s(Bo.prototype,{getCoordinate:function(){return this.minCoord},getRightmostSide:function(t,e){var n=this.getRightmostSideOfSegment(t,e);return 0>n&&(n=this.getRightmostSideOfSegment(t,e-1)),0>n&&(this.minCoord=null,this.checkForRightmostCoordinate(t)),n},findRightmostEdgeAtVertex:function(){var t=this.minDe.getEdge().getCoordinates();P.isTrue(this.minIndex>0&&this.minIndex<t.length,"rightmost point expected to be interior vertex of edge");var e=t[this.minIndex-1],n=t[this.minIndex+1],l=Ot.computeOrientation(this.minCoord,n,e),h=!1;(e.y<this.minCoord.y&&n.y<this.minCoord.y&&l===Ot.COUNTERCLOCKWISE||e.y>this.minCoord.y&&n.y>this.minCoord.y&&l===Ot.CLOCKWISE)&&(h=!0),h&&(this.minIndex=this.minIndex-1)},getRightmostSideOfSegment:function(t,e){var n=t.getEdge(),l=n.getCoordinates();if(0>e||e+1>=l.length||l[e].y===l[e+1].y)return-1;var h=St.LEFT;return l[e].y<l[e+1].y&&(h=St.RIGHT),h},getEdge:function(){return this.orientedDe},checkForRightmostCoordinate:function(t){for(var e=t.getEdge().getCoordinates(),n=0;n<e.length-1;n++)(this.minCoord===null||e[n].x>this.minCoord.x)&&(this.minDe=t,this.minIndex=n,this.minCoord=e[n])},findRightmostEdgeAtNode:function(){var t=this.minDe.getNode(),e=t.getEdges();this.minDe=e.getRightmostEdge(),this.minDe.isForward()||(this.minDe=this.minDe.getSym(),this.minIndex=this.minDe.getEdge().getCoordinates().length-1)},findEdge:function(t){for(var e=t.iterator();e.hasNext();){var n=e.next();n.isForward()&&this.checkForRightmostCoordinate(n)}P.isTrue(this.minIndex!==0||this.minCoord.equals(this.minDe.getCoordinate()),"inconsistency in rightmost processing"),this.minIndex===0?this.findRightmostEdgeAtNode():this.findRightmostEdgeAtVertex(),this.orientedDe=this.minDe;var l=this.getRightmostSide(this.minDe,this.minIndex);l===St.LEFT&&(this.orientedDe=this.minDe.getSym())},interfaces_:function(){return[]},getClass:function(){return Bo}}),zo.prototype.addLast=function(t){this.array_.push(t)},zo.prototype.removeFirst=function(){return this.array_.shift()},zo.prototype.isEmpty=function(){return this.array_.length===0},s(zr.prototype,{clearVisitedEdges:function(){for(var t=this.dirEdgeList.iterator();t.hasNext();){var e=t.next();e.setVisited(!1)}},getRightmostCoordinate:function(){return this.rightMostCoord},computeNodeDepth:function(t){for(var e=null,n=t.getEdges().iterator();n.hasNext();){var l=n.next();if(l.isVisited()||l.getSym().isVisited()){e=l;break}}if(e===null)throw new An("unable to find edge to compute depths at "+t.getCoordinate());t.getEdges().computeDepths(e);for(var n=t.getEdges().iterator();n.hasNext();){var l=n.next();l.setVisited(!0),this.copySymDepths(l)}},computeDepth:function(t){this.clearVisitedEdges();var e=this.finder.getEdge();e.getNode(),e.getLabel(),e.setEdgeDepths(St.RIGHT,t),this.copySymDepths(e),this.computeDepths(e)},create:function(t){this.addReachable(t),this.finder.findEdge(this.dirEdgeList),this.rightMostCoord=this.finder.getCoordinate()},findResultEdges:function(){for(var t=this.dirEdgeList.iterator();t.hasNext();){var e=t.next();e.getDepth(St.RIGHT)>=1&&e.getDepth(St.LEFT)<=0&&!e.isInteriorAreaEdge()&&e.setInResult(!0)}},computeDepths:function(t){var e=new gt,n=new zo,l=t.getNode();for(n.addLast(l),e.add(l),t.setVisited(!0);!n.isEmpty();){var h=n.removeFirst();e.add(h),this.computeNodeDepth(h);for(var p=h.getEdges().iterator();p.hasNext();){var x=p.next(),I=x.getSym();if(!I.isVisited()){var z=I.getNode();e.contains(z)||(n.addLast(z),e.add(z))}}}},compareTo:function(t){var e=t;return this.rightMostCoord.x<e.rightMostCoord.x?-1:this.rightMostCoord.x>e.rightMostCoord.x?1:0},getEnvelope:function(){if(this.env===null){for(var t=new U,e=this.dirEdgeList.iterator();e.hasNext();)for(var n=e.next(),l=n.getEdge().getCoordinates(),h=0;h<l.length-1;h++)t.expandToInclude(l[h]);this.env=t}return this.env},addReachable:function(t){var e=new Pn;for(e.add(t);!e.empty();){var n=e.pop();this.add(n,e)}},copySymDepths:function(t){var e=t.getSym();e.setDepth(St.LEFT,t.getDepth(St.RIGHT)),e.setDepth(St.RIGHT,t.getDepth(St.LEFT))},add:function(t,e){t.setVisited(!0),this.nodes.add(t);for(var n=t.getEdges().iterator();n.hasNext();){var l=n.next();this.dirEdgeList.add(l);var h=l.getSym(),p=h.getNode();p.isVisited()||e.push(p)}},getNodes:function(){return this.nodes},getDirectedEdges:function(){return this.dirEdgeList},interfaces_:function(){return[m]},getClass:function(){return zr}}),s(Nn.prototype,{isDeletable:function(t,e,n,l){var h=this.inputLine[t],p=this.inputLine[e],x=this.inputLine[n];return this.isConcave(h,p,x)&&this.isShallow(h,p,x,l)?this.isShallowSampled(h,p,t,n,l):!1},deleteShallowConcavities:function(){for(var t=1,e=(this.inputLine.length-1,this.findNextNonDeletedIndex(t)),n=this.findNextNonDeletedIndex(e),l=!1;n<this.inputLine.length;){var h=!1;this.isDeletable(t,e,n,this.distanceTol)&&(this.isDeleted[e]=Nn.DELETE,h=!0,l=!0),t=h?n:e,e=this.findNextNonDeletedIndex(t),n=this.findNextNonDeletedIndex(e)}return l},isShallowConcavity:function(t,e,n,l){var h=Ot.computeOrientation(t,e,n),p=h===this.angleOrientation;if(!p)return!1;var x=Ot.distancePointLine(e,t,n);return l>x},isShallowSampled:function(t,e,n,l,h){var p=Math.trunc((l-n)/Nn.NUM_PTS_TO_CHECK);0>=p&&(p=1);for(var x=n;l>x;x+=p)if(!this.isShallow(t,e,this.inputLine[x],h))return!1;return!0},isConcave:function(e,n,l){var h=Ot.computeOrientation(e,n,l),p=h===this.angleOrientation;return p},simplify:function(t){this.distanceTol=Math.abs(t),0>t&&(this.angleOrientation=Ot.CLOCKWISE),this.isDeleted=new Array(this.inputLine.length).fill(null);var e=!1;do e=this.deleteShallowConcavities();while(e);return this.collapseLine()},findNextNonDeletedIndex:function(t){for(var e=t+1;e<this.inputLine.length&&this.isDeleted[e]===Nn.DELETE;)e++;return e},isShallow:function(t,e,n,l){var h=Ot.distancePointLine(e,t,n);return l>h},collapseLine:function(){for(var t=new H,e=0;e<this.inputLine.length;e++)this.isDeleted[e]!==Nn.DELETE&&t.add(this.inputLine[e]);return t.toCoordinateArray()},interfaces_:function(){return[]},getClass:function(){return Nn}}),Nn.simplify=function(t,e){var n=new Nn(t);return n.simplify(e)},Nn.INIT=0,Nn.DELETE=1,Nn.KEEP=1,Nn.NUM_PTS_TO_CHECK=10,s(Ds.prototype,{getCoordinates:function(){var t=this.ptList.toArray(Ds.COORDINATE_ARRAY_TYPE);return t},setPrecisionModel:function(t){this.precisionModel=t},addPt:function(t){var e=new O(t);return this.precisionModel.makePrecise(e),this.isRedundant(e)?null:void this.ptList.add(e)},reverse:function(){},addPts:function(t,e){if(e)for(var n=0;n<t.length;n++)this.addPt(t[n]);else for(var n=t.length-1;n>=0;n--)this.addPt(t[n])},isRedundant:function(t){if(this.ptList.size()<1)return!1;var e=this.ptList.get(this.ptList.size()-1),n=t.distance(e);return n<this.minimimVertexDistance},toString:function(){var t=new Xt,e=t.createLineString(this.getCoordinates());return e.toString()},closeRing:function(){if(this.ptList.size()<1)return null;var t=new O(this.ptList.get(0)),e=this.ptList.get(this.ptList.size()-1);return this.ptList.size()>=2&&this.ptList.get(this.ptList.size()-2),t.equals(e)?null:void this.ptList.add(t)},setMinimumVertexDistance:function(t){this.minimimVertexDistance=t},interfaces_:function(){return[]},getClass:function(){return Ds}}),Ds.COORDINATE_ARRAY_TYPE=new Array(0).fill(null),s($n.prototype,{addNextSegment:function(t,e){if(this.s0=this.s1,this.s1=this.s2,this.s2=t,this.seg0.setCoordinates(this.s0,this.s1),this.computeOffsetSegment(this.seg0,this.side,this.distance,this.offset0),this.seg1.setCoordinates(this.s1,this.s2),this.computeOffsetSegment(this.seg1,this.side,this.distance,this.offset1),this.s1.equals(this.s2))return null;var n=Ot.computeOrientation(this.s0,this.s1,this.s2),l=n===Ot.CLOCKWISE&&this.side===St.LEFT||n===Ot.COUNTERCLOCKWISE&&this.side===St.RIGHT;n===0?this.addCollinear(e):l?this.addOutsideTurn(n,e):this.addInsideTurn(n,e)},addLineEndCap:function(t,e){var n=new re(t,e),l=new re;this.computeOffsetSegment(n,St.LEFT,this.distance,l);var h=new re;this.computeOffsetSegment(n,St.RIGHT,this.distance,h);var p=e.x-t.x,x=e.y-t.y,I=Math.atan2(x,p);switch(this.bufParams.getEndCapStyle()){case Oe.CAP_ROUND:this.segList.addPt(l.p1),this.addFilletArc(e,I+Math.PI/2,I-Math.PI/2,Ot.CLOCKWISE,this.distance),this.segList.addPt(h.p1);break;case Oe.CAP_FLAT:this.segList.addPt(l.p1),this.segList.addPt(h.p1);break;case Oe.CAP_SQUARE:var z=new O;z.x=Math.abs(this.distance)*Math.cos(I),z.y=Math.abs(this.distance)*Math.sin(I);var X=new O(l.p1.x+z.x,l.p1.y+z.y),lt=new O(h.p1.x+z.x,h.p1.y+z.y);this.segList.addPt(X),this.segList.addPt(lt)}},getCoordinates:function(){var t=this.segList.getCoordinates();return t},addMitreJoin:function(t,e,n,l){var h=!0,p=null;try{p=st.intersection(e.p0,e.p1,n.p0,n.p1);var x=0>=l?1:p.distance(t)/Math.abs(l);x>this.bufParams.getMitreLimit()&&(h=!1)}catch(I){if(!(I instanceof Y))throw I;p=new O(0,0),h=!1}finally{}h?this.segList.addPt(p):this.addLimitedMitreJoin(e,n,l,this.bufParams.getMitreLimit())},addFilletCorner:function(t,e,n,l,h){var p=e.x-t.x,x=e.y-t.y,I=Math.atan2(x,p),z=n.x-t.x,X=n.y-t.y,lt=Math.atan2(X,z);l===Ot.CLOCKWISE?lt>=I&&(I+=2*Math.PI):I>=lt&&(I-=2*Math.PI),this.segList.addPt(e),this.addFilletArc(t,I,lt,l,h),this.segList.addPt(n)},addOutsideTurn:function(t,e){return this.offset0.p1.distance(this.offset1.p0)<this.distance*$n.OFFSET_SEGMENT_SEPARATION_FACTOR?(this.segList.addPt(this.offset0.p1),null):void(this.bufParams.getJoinStyle()===Oe.JOIN_MITRE?this.addMitreJoin(this.s1,this.offset0,this.offset1,this.distance):this.bufParams.getJoinStyle()===Oe.JOIN_BEVEL?this.addBevelJoin(this.offset0,this.offset1):(e&&this.segList.addPt(this.offset0.p1),this.addFilletCorner(this.s1,this.offset0.p1,this.offset1.p0,t,this.distance),this.segList.addPt(this.offset1.p0)))},createSquare:function(t){this.segList.addPt(new O(t.x+this.distance,t.y+this.distance)),this.segList.addPt(new O(t.x+this.distance,t.y-this.distance)),this.segList.addPt(new O(t.x-this.distance,t.y-this.distance)),this.segList.addPt(new O(t.x-this.distance,t.y+this.distance)),this.segList.closeRing()},addSegments:function(t,e){this.segList.addPts(t,e)},addFirstSegment:function(){this.segList.addPt(this.offset1.p0)},addLastSegment:function(){this.segList.addPt(this.offset1.p1)},initSideSegments:function(t,e,n){this.s1=t,this.s2=e,this.side=n,this.seg1.setCoordinates(t,e),this.computeOffsetSegment(this.seg1,n,this.distance,this.offset1)},addLimitedMitreJoin:function(t,e,n,l){var h=this.seg0.p1,p=ue.angle(h,this.seg0.p0),x=(ue.angle(h,this.seg1.p1),ue.angleBetweenOriented(this.seg0.p0,h,this.seg1.p1)),I=x/2,z=ue.normalize(p+I),X=ue.normalize(z+Math.PI),lt=l*n,ft=lt*Math.abs(Math.sin(I)),Et=n-ft,qt=h.x+lt*Math.cos(X),te=h.y+lt*Math.sin(X),oe=new O(qt,te),Xe=new re(h,oe),Cn=Xe.pointAlongOffset(1,Et),Jr=Xe.pointAlongOffset(1,-Et);this.side===St.LEFT?(this.segList.addPt(Cn),this.segList.addPt(Jr)):(this.segList.addPt(Jr),this.segList.addPt(Cn))},computeOffsetSegment:function(t,e,n,l){var h=e===St.LEFT?1:-1,p=t.p1.x-t.p0.x,x=t.p1.y-t.p0.y,I=Math.sqrt(p*p+x*x),z=h*n*p/I,X=h*n*x/I;l.p0.x=t.p0.x-X,l.p0.y=t.p0.y+z,l.p1.x=t.p1.x-X,l.p1.y=t.p1.y+z},addFilletArc:function(t,e,n,l,h){var p=l===Ot.CLOCKWISE?-1:1,x=Math.abs(e-n),I=Math.trunc(x/this.filletAngleQuantum+.5);if(1>I)return null;var z=null,X=null;z=0,X=x/I;for(var lt=z,ft=new O;x>lt;){var Et=e+p*lt;ft.x=t.x+h*Math.cos(Et),ft.y=t.y+h*Math.sin(Et),this.segList.addPt(ft),lt+=X}},addInsideTurn:function(t,e){if(this.li.computeIntersection(this.offset0.p0,this.offset0.p1,this.offset1.p0,this.offset1.p1),this.li.hasIntersection())this.segList.addPt(this.li.getIntersection(0));else if(this._hasNarrowConcaveAngle=!0,this.offset0.p1.distance(this.offset1.p0)<this.distance*$n.INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR)this.segList.addPt(this.offset0.p1);else{if(this.segList.addPt(this.offset0.p1),this.closingSegLengthFactor>0){var n=new O((this.closingSegLengthFactor*this.offset0.p1.x+this.s1.x)/(this.closingSegLengthFactor+1),(this.closingSegLengthFactor*this.offset0.p1.y+this.s1.y)/(this.closingSegLengthFactor+1));this.segList.addPt(n);var l=new O((this.closingSegLengthFactor*this.offset1.p0.x+this.s1.x)/(this.closingSegLengthFactor+1),(this.closingSegLengthFactor*this.offset1.p0.y+this.s1.y)/(this.closingSegLengthFactor+1));this.segList.addPt(l)}else this.segList.addPt(this.s1);this.segList.addPt(this.offset1.p0)}},createCircle:function(t){var e=new O(t.x+this.distance,t.y);this.segList.addPt(e),this.addFilletArc(t,0,2*Math.PI,-1,this.distance),this.segList.closeRing()},addBevelJoin:function(t,e){this.segList.addPt(t.p1),this.segList.addPt(e.p0)},init:function(t){this.distance=t,this.maxCurveSegmentError=t*(1-Math.cos(this.filletAngleQuantum/2)),this.segList=new Ds,this.segList.setPrecisionModel(this.precisionModel),this.segList.setMinimumVertexDistance(t*$n.CURVE_VERTEX_SNAP_DISTANCE_FACTOR)},addCollinear:function(t){this.li.computeIntersection(this.s0,this.s1,this.s1,this.s2);var e=this.li.getIntersectionNum();e>=2&&(this.bufParams.getJoinStyle()===Oe.JOIN_BEVEL||this.bufParams.getJoinStyle()===Oe.JOIN_MITRE?(t&&this.segList.addPt(this.offset0.p1),this.segList.addPt(this.offset1.p0)):this.addFilletCorner(this.s1,this.offset0.p1,this.offset1.p0,Ot.CLOCKWISE,this.distance))},closeRing:function(){this.segList.closeRing()},hasNarrowConcaveAngle:function(){return this._hasNarrowConcaveAngle},interfaces_:function(){return[]},getClass:function(){return $n}}),$n.OFFSET_SEGMENT_SEPARATION_FACTOR=.001,$n.INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR=.001,$n.CURVE_VERTEX_SNAP_DISTANCE_FACTOR=1e-6,$n.MAX_CLOSING_SEG_LEN_FACTOR=80,s(uo.prototype,{getOffsetCurve:function(t,e){if(this.distance=e,e===0)return null;var n=0>e,l=Math.abs(e),h=this.getSegGen(l);t.length<=1?this.computePointCurve(t[0],h):this.computeOffsetCurve(t,n,h);var p=h.getCoordinates();return n&&kt.reverse(p),p},computeSingleSidedBufferCurve:function(t,e,n){var l=this.simplifyTolerance(this.distance);if(e){n.addSegments(t,!0);var h=Nn.simplify(t,-l),p=h.length-1;n.initSideSegments(h[p],h[p-1],St.LEFT),n.addFirstSegment();for(var x=p-2;x>=0;x--)n.addNextSegment(h[x],!0)}else{n.addSegments(t,!1);var I=Nn.simplify(t,l),z=I.length-1;n.initSideSegments(I[0],I[1],St.LEFT),n.addFirstSegment();for(var x=2;z>=x;x++)n.addNextSegment(I[x],!0)}n.addLastSegment(),n.closeRing()},computeRingBufferCurve:function(t,e,n){var l=this.simplifyTolerance(this.distance);e===St.RIGHT&&(l=-l);var h=Nn.simplify(t,l),p=h.length-1;n.initSideSegments(h[p-1],h[0],e);for(var x=1;p>=x;x++){var I=x!==1;n.addNextSegment(h[x],I)}n.closeRing()},computeLineBufferCurve:function(t,e){var n=this.simplifyTolerance(this.distance),l=Nn.simplify(t,n),h=l.length-1;e.initSideSegments(l[0],l[1],St.LEFT);for(var p=2;h>=p;p++)e.addNextSegment(l[p],!0);e.addLastSegment(),e.addLineEndCap(l[h-1],l[h]);var x=Nn.simplify(t,-n),I=x.length-1;e.initSideSegments(x[I],x[I-1],St.LEFT);for(var p=I-2;p>=0;p--)e.addNextSegment(x[p],!0);e.addLastSegment(),e.addLineEndCap(x[1],x[0]),e.closeRing()},computePointCurve:function(t,e){switch(this.bufParams.getEndCapStyle()){case Oe.CAP_ROUND:e.createCircle(t);break;case Oe.CAP_SQUARE:e.createSquare(t)}},getLineCurve:function(t,e){if(this.distance=e,0>e&&!this.bufParams.isSingleSided()||e===0)return null;var n=Math.abs(e),l=this.getSegGen(n);if(t.length<=1)this.computePointCurve(t[0],l);else if(this.bufParams.isSingleSided()){var h=0>e;this.computeSingleSidedBufferCurve(t,h,l)}else this.computeLineBufferCurve(t,l);var p=l.getCoordinates();return p},getBufferParameters:function(){return this.bufParams},simplifyTolerance:function(t){return t*this.bufParams.getSimplifyFactor()},getRingCurve:function(t,e,n){if(this.distance=n,t.length<=2)return this.getLineCurve(t,n);if(n===0)return uo.copyCoordinates(t);var l=this.getSegGen(n);return this.computeRingBufferCurve(t,e,l),l.getCoordinates()},computeOffsetCurve:function(t,e,n){var l=this.simplifyTolerance(this.distance);if(e){var h=Nn.simplify(t,-l),p=h.length-1;n.initSideSegments(h[p],h[p-1],St.LEFT),n.addFirstSegment();for(var x=p-2;x>=0;x--)n.addNextSegment(h[x],!0)}else{var I=Nn.simplify(t,l),z=I.length-1;n.initSideSegments(I[0],I[1],St.LEFT),n.addFirstSegment();for(var x=2;z>=x;x++)n.addNextSegment(I[x],!0)}n.addLastSegment()},getSegGen:function(t){return new $n(this.precisionModel,this.bufParams,t)},interfaces_:function(){return[]},getClass:function(){return uo}}),uo.copyCoordinates=function(t){for(var e=new Array(t.length).fill(null),n=0;n<e.length;n++)e[n]=new O(t[n]);return e},s(os.prototype,{findStabbedSegments:function(){if(arguments.length===1){for(var t=arguments[0],e=new F,n=this.subgraphs.iterator();n.hasNext();){var l=n.next(),h=l.getEnvelope();t.y<h.getMinY()||t.y>h.getMaxY()||this.findStabbedSegments(t,l.getDirectedEdges(),e)}return e}if(arguments.length===3){if(ot(arguments[2],R)&&arguments[0]instanceof O&&arguments[1]instanceof ci)for(var p=arguments[0],x=arguments[1],I=arguments[2],z=x.getEdge().getCoordinates(),n=0;n<z.length-1;n++){this.seg.p0=z[n],this.seg.p1=z[n+1],this.seg.p0.y>this.seg.p1.y&&this.seg.reverse();var X=Math.max(this.seg.p0.x,this.seg.p1.x);if(!(X<p.x||this.seg.isHorizontal()||p.y<this.seg.p0.y||p.y>this.seg.p1.y||Ot.computeOrientation(this.seg.p0,this.seg.p1,p)===Ot.RIGHT)){var lt=x.getDepth(St.LEFT);this.seg.p0.equals(z[n])||(lt=x.getDepth(St.RIGHT));var ft=new Bi(this.seg,lt);I.add(ft)}}else if(ot(arguments[2],R)&&arguments[0]instanceof O&&ot(arguments[1],R))for(var Et=arguments[0],qt=arguments[1],te=arguments[2],n=qt.iterator();n.hasNext();){var oe=n.next();oe.isForward()&&this.findStabbedSegments(Et,oe,te)}}},getDepth:function(t){var e=this.findStabbedSegments(t);if(e.size()===0)return 0;var n=Ei.min(e);return n.leftDepth},interfaces_:function(){return[]},getClass:function(){return os}}),s(Bi.prototype,{compareTo:function(t){var e=t;if(this.upwardSeg.minX()>=e.upwardSeg.maxX())return 1;if(this.upwardSeg.maxX()<=e.upwardSeg.minX())return-1;var n=this.upwardSeg.orientationIndex(e.upwardSeg);return n!==0?n:(n=-1*e.upwardSeg.orientationIndex(this.upwardSeg),n!==0?n:this.upwardSeg.compareTo(e.upwardSeg))},compareX:function(t,e){var n=t.p0.compareTo(e.p0);return n!==0?n:t.p1.compareTo(e.p1)},toString:function(){return this.upwardSeg.toString()},interfaces_:function(){return[m]},getClass:function(){return Bi}}),os.DepthSegment=Bi,s(Go.prototype,{addPoint:function(t){if(this.distance<=0)return null;var e=t.getCoordinates(),n=this.curveBuilder.getLineCurve(e,this.distance);this.addCurve(n,M.EXTERIOR,M.INTERIOR)},addPolygon:function(t){var e=this.distance,n=St.LEFT;this.distance<0&&(e=-this.distance,n=St.RIGHT);var l=t.getExteriorRing(),h=kt.removeRepeatedPoints(l.getCoordinates());if(this.distance<0&&this.isErodedCompletely(l,this.distance)||this.distance<=0&&h.length<3)return null;this.addPolygonRing(h,e,n,M.EXTERIOR,M.INTERIOR);for(var p=0;p<t.getNumInteriorRing();p++){var x=t.getInteriorRingN(p),I=kt.removeRepeatedPoints(x.getCoordinates());this.distance>0&&this.isErodedCompletely(x,-this.distance)||this.addPolygonRing(I,e,St.opposite(n),M.INTERIOR,M.EXTERIOR)}},isTriangleErodedCompletely:function(t,e){var n=new we(t[0],t[1],t[2]),l=n.inCentre(),h=Ot.distancePointLine(l,n.p0,n.p1);return h<Math.abs(e)},addLineString:function(t){if(this.distance<=0&&!this.curveBuilder.getBufferParameters().isSingleSided())return null;var e=kt.removeRepeatedPoints(t.getCoordinates()),n=this.curveBuilder.getLineCurve(e,this.distance);this.addCurve(n,M.EXTERIOR,M.INTERIOR)},addCurve:function(t,e,n){if(t===null||t.length<2)return null;var l=new Cr(t,new tn(0,M.BOUNDARY,e,n));this.curveList.add(l)},getCurves:function(){return this.add(this.inputGeom),this.curveList},addPolygonRing:function(t,e,n,l,h){if(e===0&&t.length<ke.MINIMUM_VALID_SIZE)return null;var p=l,x=h;t.length>=ke.MINIMUM_VALID_SIZE&&Ot.isCCW(t)&&(p=h,x=l,n=St.opposite(n));var I=this.curveBuilder.getRingCurve(t,n,e);this.addCurve(I,p,x)},add:function(t){if(t.isEmpty())return null;if(t instanceof _e)this.addPolygon(t);else if(t instanceof Yt)this.addLineString(t);else if(t instanceof ne)this.addPoint(t);else if(t instanceof cn)this.addCollection(t);else if(t instanceof He)this.addCollection(t);else if(t instanceof Je)this.addCollection(t);else{if(!(t instanceof Gt))throw new UnsupportedOperationException(t.getClass().getName());this.addCollection(t)}},isErodedCompletely:function(t,e){var n=t.getCoordinates();if(n.length<4)return 0>e;if(n.length===4)return this.isTriangleErodedCompletely(n,e);var l=t.getEnvelopeInternal(),h=Math.min(l.getHeight(),l.getWidth());return 0>e&&2*Math.abs(e)>h},addCollection:function(t){for(var e=0;e<t.getNumGeometries();e++){var n=t.getGeometryN(e);this.add(n)}},interfaces_:function(){return[]},getClass:function(){return Go}}),s(Rs.prototype,{isTrivialIntersection:function(t,e,n,l){if(t===n&&this.li.getIntersectionNum()===1){if(Rs.isAdjacentSegments(e,l))return!0;if(t.isClosed()){var h=t.size()-1;if(e===0&&l===h||l===0&&e===h)return!0}}return!1},getProperIntersectionPoint:function(){return this.properIntersectionPoint},hasProperInteriorIntersection:function(){return this.hasProperInterior},getLineIntersector:function(){return this.li},hasProperIntersection:function(){return this.hasProper},processIntersections:function(t,e,n,l){if(t===n&&e===l)return null;this.numTests++;var h=t.getCoordinates()[e],p=t.getCoordinates()[e+1],x=n.getCoordinates()[l],I=n.getCoordinates()[l+1];this.li.computeIntersection(h,p,x,I),this.li.hasIntersection()&&(this.numIntersections++,this.li.isInteriorIntersection()&&(this.numInteriorIntersections++,this.hasInterior=!0),this.isTrivialIntersection(t,e,n,l)||(this._hasIntersection=!0,t.addIntersections(this.li,e,0),n.addIntersections(this.li,l,1),this.li.isProper()&&(this.numProperIntersections++,this.hasProper=!0,this.hasProperInterior=!0)))},hasIntersection:function(){return this._hasIntersection},isDone:function(){return!1},hasInteriorIntersection:function(){return this.hasInterior},interfaces_:function(){return[ws]},getClass:function(){return Rs}}),Rs.isAdjacentSegments=function(t,e){return Math.abs(t-e)===1},s(zi.prototype,{setWorkingPrecisionModel:function(t){this.workingPrecisionModel=t},insertUniqueEdge:function(t){var e=this.edgeList.findEqualEdge(t);if(e!==null){var n=e.getLabel(),l=t.getLabel();e.isPointwiseEqual(t)||(l=new tn(t.getLabel()),l.flip()),n.merge(l);var h=zi.depthDelta(l),p=e.getDepthDelta(),x=p+h;e.setDepthDelta(x)}else this.edgeList.add(t),t.setDepthDelta(zi.depthDelta(t.getLabel()))},buildSubgraphs:function(t,e){for(var n=new F,l=t.iterator();l.hasNext();){var h=l.next(),p=h.getRightmostCoordinate(),x=new os(n),I=x.getDepth(p);h.computeDepth(I),h.findResultEdges(),n.add(h),e.add(h.getDirectedEdges(),h.getNodes())}},createSubgraphs:function(t){for(var e=new F,n=t.getNodes().iterator();n.hasNext();){var l=n.next();if(!l.isVisited()){var h=new zr;h.create(l),e.add(h)}}return Ei.sort(e,Ei.reverseOrder()),e},createEmptyResultGeometry:function(){var t=this.geomFact.createPolygon();return t},getNoder:function(t){if(this.workingNoder!==null)return this.workingNoder;var e=new Mi,n=new ie;return n.setPrecisionModel(t),e.setSegmentIntersector(new Rs(n)),e},buffer:function(t,e){var n=this.workingPrecisionModel;n===null&&(n=t.getPrecisionModel()),this.geomFact=t.getFactory();var l=new uo(n,this.bufParams),h=new Go(t,e,l),p=h.getCurves();if(p.size()<=0)return this.createEmptyResultGeometry();this.computeNodedEdges(p,n),this.graph=new xr(new hi),this.graph.addEdges(this.edgeList.getEdges());var x=this.createSubgraphs(this.graph),I=new to(this.geomFact);this.buildSubgraphs(x,I);var z=I.getPolygons();if(z.size()<=0)return this.createEmptyResultGeometry();var X=this.geomFact.buildGeometry(z);return X},computeNodedEdges:function(t,e){var n=this.getNoder(e);n.computeNodes(t);for(var l=n.getNodedSubstrings(),h=l.iterator();h.hasNext();){var p=h.next(),x=p.getCoordinates();if(x.length!==2||!x[0].equals2D(x[1])){var I=p.getData(),z=new Un(p.getCoordinates(),new tn(I));this.insertUniqueEdge(z)}}},setNoder:function(t){this.workingNoder=t},interfaces_:function(){return[]},getClass:function(){return zi}}),zi.depthDelta=function(t){var e=t.getLocation(0,St.LEFT),n=t.getLocation(0,St.RIGHT);return e===M.INTERIOR&&n===M.EXTERIOR?1:e===M.EXTERIOR&&n===M.INTERIOR?-1:0},zi.convertSegStrings=function(t){for(var e=new Xt,n=new F;t.hasNext();){var l=t.next(),h=e.createLineString(l.getCoordinates());n.add(h)}return e.buildGeometry(n)},s(js.prototype,{checkEndPtVertexIntersections:function(){if(arguments.length===0)for(var t=this.segStrings.iterator();t.hasNext();){var e=t.next(),n=e.getCoordinates();this.checkEndPtVertexIntersections(n[0],this.segStrings),this.checkEndPtVertexIntersections(n[n.length-1],this.segStrings)}else if(arguments.length===2){for(var l=arguments[0],h=arguments[1],t=h.iterator();t.hasNext();)for(var e=t.next(),n=e.getCoordinates(),p=1;p<n.length-1;p++)if(n[p].equals(l))throw new b("found endpt/interior pt intersection at index "+p+" :pt "+l)}},checkInteriorIntersections:function(){if(arguments.length===0)for(var t=this.segStrings.iterator();t.hasNext();)for(var e=t.next(),n=this.segStrings.iterator();n.hasNext();){var l=n.next();this.checkInteriorIntersections(e,l)}else if(arguments.length===2)for(var h=arguments[0],p=arguments[1],x=h.getCoordinates(),I=p.getCoordinates(),z=0;z<x.length-1;z++)for(var X=0;X<I.length-1;X++)this.checkInteriorIntersections(h,z,p,X);else if(arguments.length===4){var lt=arguments[0],ft=arguments[1],Et=arguments[2],qt=arguments[3];if(lt===Et&&ft===qt)return null;var te=lt.getCoordinates()[ft],oe=lt.getCoordinates()[ft+1],Xe=Et.getCoordinates()[qt],Cn=Et.getCoordinates()[qt+1];if(this.li.computeIntersection(te,oe,Xe,Cn),this.li.hasIntersection()&&(this.li.isProper()||this.hasInteriorIntersection(this.li,te,oe)||this.hasInteriorIntersection(this.li,Xe,Cn)))throw new b("found non-noded intersection at "+te+"-"+oe+" and "+Xe+"-"+Cn)}},checkValid:function(){this.checkEndPtVertexIntersections(),this.checkInteriorIntersections(),this.checkCollapses()},checkCollapses:function(){if(arguments.length===0)for(var t=this.segStrings.iterator();t.hasNext();){var e=t.next();this.checkCollapses(e)}else if(arguments.length===1)for(var n=arguments[0],l=n.getCoordinates(),t=0;t<l.length-2;t++)this.checkCollapse(l[t],l[t+1],l[t+2])},hasInteriorIntersection:function(t,e,n){for(var l=0;l<t.getIntersectionNum();l++){var h=t.getIntersection(l);if(!h.equals(e)&&!h.equals(n))return!0}return!1},checkCollapse:function(t,e,n){if(t.equals(n))throw new b("found non-noded collapse at "+js.fact.createLineString([t,e,n]))},interfaces_:function(){return[]},getClass:function(){return js}}),js.fact=new Xt,s(as.prototype,{intersectsScaled:function(t,e){var n=Math.min(t.x,e.x),l=Math.max(t.x,e.x),h=Math.min(t.y,e.y),p=Math.max(t.y,e.y),x=this.maxx<n||this.minx>l||this.maxy<h||this.miny>p;if(x)return!1;var I=this.intersectsToleranceSquare(t,e);return P.isTrue(!(x&&I),"Found bad envelope test"),I},initCorners:function(t){var e=.5;this.minx=t.x-e,this.maxx=t.x+e,this.miny=t.y-e,this.maxy=t.y+e,this.corner[0]=new O(this.maxx,this.maxy),this.corner[1]=new O(this.minx,this.maxy),this.corner[2]=new O(this.minx,this.miny),this.corner[3]=new O(this.maxx,this.miny)},intersects:function(t,e){return this.scaleFactor===1?this.intersectsScaled(t,e):(this.copyScaled(t,this.p0Scaled),this.copyScaled(e,this.p1Scaled),this.intersectsScaled(this.p0Scaled,this.p1Scaled))},scale:function(t){return Math.round(t*this.scaleFactor)},getCoordinate:function(){return this.originalPt},copyScaled:function(t,e){e.x=this.scale(t.x),e.y=this.scale(t.y)},getSafeEnvelope:function(){if(this.safeEnv===null){var t=as.SAFE_ENV_EXPANSION_FACTOR/this.scaleFactor;this.safeEnv=new U(this.originalPt.x-t,this.originalPt.x+t,this.originalPt.y-t,this.originalPt.y+t)}return this.safeEnv},intersectsPixelClosure:function(t,e){return this.li.computeIntersection(t,e,this.corner[0],this.corner[1]),this.li.hasIntersection()?!0:(this.li.computeIntersection(t,e,this.corner[1],this.corner[2]),this.li.hasIntersection()?!0:(this.li.computeIntersection(t,e,this.corner[2],this.corner[3]),this.li.hasIntersection()?!0:(this.li.computeIntersection(t,e,this.corner[3],this.corner[0]),!!this.li.hasIntersection())))},intersectsToleranceSquare:function(t,e){var n=!1,l=!1;return this.li.computeIntersection(t,e,this.corner[0],this.corner[1]),this.li.isProper()?!0:(this.li.computeIntersection(t,e,this.corner[1],this.corner[2]),this.li.isProper()?!0:(this.li.hasIntersection()&&(n=!0),this.li.computeIntersection(t,e,this.corner[2],this.corner[3]),this.li.isProper()?!0:(this.li.hasIntersection()&&(l=!0),this.li.computeIntersection(t,e,this.corner[3],this.corner[0]),this.li.isProper()||n&&l||t.equals(this.pt)?!0:!!e.equals(this.pt))))},addSnappedNode:function(t,e){var n=t.getCoordinate(e),l=t.getCoordinate(e+1);return this.intersects(n,l)?(t.addIntersection(this.getCoordinate(),e),!0):!1},interfaces_:function(){return[]},getClass:function(){return as}}),as.SAFE_ENV_EXPANSION_FACTOR=.75,s(Ci.prototype,{select:function(){if(arguments.length!==1){if(arguments.length===2){var t=arguments[0],e=arguments[1];t.getLineSegment(e,this.selectedSegment),this.select(this.selectedSegment)}}},interfaces_:function(){return[]},getClass:function(){return Ci}}),s(lo.prototype,{snap:function(){if(arguments.length===1){var t=arguments[0];return this.snap(t,null,-1)}if(arguments.length===3){var e=arguments[0],n=arguments[1],l=arguments[2],h=e.getSafeEnvelope(),p=new ks(e,n,l);return this.index.query(h,{interfaces_:function(){return[Pi]},visitItem:function(x){var I=x;I.select(h,p)}}),p.isNodeAdded()}},interfaces_:function(){return[]},getClass:function(){return lo}}),w(ks,Ci),s(ks.prototype,{isNodeAdded:function(){return this._isNodeAdded},select:function(){if(arguments.length!==2)return Ci.prototype.select.apply(this,arguments);var t=arguments[0],e=arguments[1],n=t.getContext();return this.parentEdge!==null&&n===this.parentEdge&&e===this.hotPixelVertexIndex?null:void(this._isNodeAdded=this.hotPixel.addSnappedNode(n,e))},interfaces_:function(){return[]},getClass:function(){return ks}}),lo.HotPixelSnapAction=ks,s(Ba.prototype,{processIntersections:function(t,e,n,l){if(t===n&&e===l)return null;var h=t.getCoordinates()[e],p=t.getCoordinates()[e+1],x=n.getCoordinates()[l],I=n.getCoordinates()[l+1];if(this.li.computeIntersection(h,p,x,I),this.li.hasIntersection()&&this.li.isInteriorIntersection()){for(var z=0;z<this.li.getIntersectionNum();z++)this.interiorIntersections.add(this.li.getIntersection(z));t.addIntersections(this.li,e,0),n.addIntersections(this.li,l,1)}},isDone:function(){return!1},getInteriorIntersections:function(){return this.interiorIntersections},interfaces_:function(){return[ws]},getClass:function(){return Ba}}),s(qo.prototype,{checkCorrectness:function(t){var e=Cr.getNodedSubstrings(t),n=new js(e);try{n.checkValid()}catch(l){if(!(l instanceof it))throw l;l.printStackTrace()}finally{}},getNodedSubstrings:function(){return Cr.getNodedSubstrings(this.nodedSegStrings)},snapRound:function(t,e){var n=this.findInteriorIntersections(t,e);this.computeIntersectionSnaps(n),this.computeVertexSnaps(t)},findInteriorIntersections:function(t,e){var n=new Ba(e);return this.noder.setSegmentIntersector(n),this.noder.computeNodes(t),n.getInteriorIntersections()},computeVertexSnaps:function(){if(ot(arguments[0],k))for(var t=arguments[0],e=t.iterator();e.hasNext();){var n=e.next();this.computeVertexSnaps(n)}else if(arguments[0]instanceof Cr)for(var l=arguments[0],h=l.getCoordinates(),p=0;p<h.length;p++){var x=new as(h[p],this.scaleFactor,this.li),I=this.pointSnapper.snap(x,l,p);I&&l.addIntersection(h[p],p)}},computeNodes:function(t){this.nodedSegStrings=t,this.noder=new Mi,this.pointSnapper=new lo(this.noder.getIndex()),this.snapRound(t,this.li)},computeIntersectionSnaps:function(t){for(var e=t.iterator();e.hasNext();){var n=e.next(),l=new as(n,this.scaleFactor,this.li);this.pointSnapper.snap(l)}},interfaces_:function(){return[Es]},getClass:function(){return qo}}),s(Sn.prototype,{bufferFixedPrecision:function(t){var e=new vi(new qo(new ge(1)),t.getScale()),n=new zi(this.bufParams);n.setWorkingPrecisionModel(t),n.setNoder(e),this.resultGeometry=n.buffer(this.argGeom,this.distance)},bufferReducedPrecision:function(){if(arguments.length===0){for(var t=Sn.MAX_PRECISION_DIGITS;t>=0;t--){try{this.bufferReducedPrecision(t)}catch(h){if(!(h instanceof An))throw h;this.saveException=h}finally{}if(this.resultGeometry!==null)return null}throw this.saveException}if(arguments.length===1){var e=arguments[0],n=Sn.precisionScaleFactor(this.argGeom,this.distance,e),l=new ge(n);this.bufferFixedPrecision(l)}},computeGeometry:function(){if(this.bufferOriginalPrecision(),this.resultGeometry!==null)return null;var t=this.argGeom.getFactory().getPrecisionModel();t.getType()===ge.FIXED?this.bufferFixedPrecision(t):this.bufferReducedPrecision()},setQuadrantSegments:function(t){this.bufParams.setQuadrantSegments(t)},bufferOriginalPrecision:function(){try{var t=new zi(this.bufParams);this.resultGeometry=t.buffer(this.argGeom,this.distance)}catch(e){if(!(e instanceof b))throw e;this.saveException=e}finally{}},getResultGeometry:function(t){return this.distance=t,this.computeGeometry(),this.resultGeometry},setEndCapStyle:function(t){this.bufParams.setEndCapStyle(t)},interfaces_:function(){return[]},getClass:function(){return Sn}}),Sn.bufferOp=function(){if(arguments.length===2){var t=arguments[0],e=arguments[1],n=new Sn(t),l=n.getResultGeometry(e);return l}if(arguments.length===3){if(Number.isInteger(arguments[2])&&arguments[0]instanceof nt&&typeof arguments[1]=="number"){var h=arguments[0],p=arguments[1],x=arguments[2],I=new Sn(h);I.setQuadrantSegments(x);var l=I.getResultGeometry(p);return l}if(arguments[2]instanceof Oe&&arguments[0]instanceof nt&&typeof arguments[1]=="number"){var z=arguments[0],X=arguments[1],lt=arguments[2],I=new Sn(z,lt),l=I.getResultGeometry(X);return l}}else if(arguments.length===4){var ft=arguments[0],Et=arguments[1],qt=arguments[2],te=arguments[3],I=new Sn(ft);I.setQuadrantSegments(qt),I.setEndCapStyle(te);var l=I.getResultGeometry(Et);return l}},Sn.precisionScaleFactor=function(t,e,n){var l=t.getEnvelopeInternal(),h=ct.max(Math.abs(l.getMaxX()),Math.abs(l.getMaxY()),Math.abs(l.getMinX()),Math.abs(l.getMinY())),p=e>0?e:0,x=h+2*p,I=Math.trunc(Math.log(x)/Math.log(10)+1),z=n-I,X=Math.pow(10,z);return X},Sn.CAP_ROUND=Oe.CAP_ROUND,Sn.CAP_BUTT=Oe.CAP_FLAT,Sn.CAP_FLAT=Oe.CAP_FLAT,Sn.CAP_SQUARE=Oe.CAP_SQUARE,Sn.MAX_PRECISION_DIGITS=12;var D_=Object.freeze({BufferOp:Sn,BufferParameters:Oe});s(us.prototype,{filter:function(t){t instanceof _e&&this.comps.add(t)},interfaces_:function(){return[De]},getClass:function(){return us}}),us.getPolygons=function(){if(arguments.length===1){var t=arguments[0];return us.getPolygons(t,new F)}if(arguments.length===2){var e=arguments[0],n=arguments[1];return e instanceof _e?n.add(e):e instanceof Gt&&e.apply(new us(n)),n}},s(u.prototype,{isInsideArea:function(){return this.segIndex===u.INSIDE_AREA},getCoordinate:function(){return this.pt},getGeometryComponent:function(){return this.component},getSegmentIndex:function(){return this.segIndex},interfaces_:function(){return[]},getClass:function(){return u}}),u.INSIDE_AREA=-1,s(d.prototype,{filter:function(t){t instanceof ne&&this.pts.add(t)},interfaces_:function(){return[De]},getClass:function(){return d}}),d.getPoints=function(){if(arguments.length===1){var t=arguments[0];return t instanceof ne?Ei.singletonList(t):d.getPoints(t,new F)}if(arguments.length===2){var e=arguments[0],n=arguments[1];return e instanceof ne?n.add(e):e instanceof Gt&&e.apply(new d(n)),n}},s(v.prototype,{filter:function(t){(t instanceof ne||t instanceof Yt||t instanceof _e)&&this.locations.add(new u(t,0,t.getCoordinate()))},interfaces_:function(){return[De]},getClass:function(){return v}}),v.getLocations=function(t){var e=new F;return t.apply(new v(e)),e},s(E.prototype,{computeContainmentDistance:function(){if(arguments.length===0){var t=new Array(2).fill(null);if(this.computeContainmentDistance(0,t),this.minDistance<=this.terminateDistance)return null;this.computeContainmentDistance(1,t)}else if(arguments.length===2){var e=arguments[0],n=arguments[1],l=1-e,h=us.getPolygons(this.geom[e]);if(h.size()>0){var p=v.getLocations(this.geom[l]);if(this.computeContainmentDistance(p,h,n),this.minDistance<=this.terminateDistance)return this.minDistanceLocation[l]=n[0],this.minDistanceLocation[e]=n[1],null}}else if(arguments.length===3){if(arguments[2]instanceof Array&&ot(arguments[0],R)&&ot(arguments[1],R)){for(var x=arguments[0],I=arguments[1],z=arguments[2],X=0;X<x.size();X++)for(var lt=x.get(X),ft=0;ft<I.size();ft++)if(this.computeContainmentDistance(lt,I.get(ft),z),this.minDistance<=this.terminateDistance)return null}else if(arguments[2]instanceof Array&&arguments[0]instanceof u&&arguments[1]instanceof _e){var Et=arguments[0],qt=arguments[1],te=arguments[2],oe=Et.getCoordinate();if(M.EXTERIOR!==this.ptLocator.locate(oe,qt))return this.minDistance=0,te[0]=Et,te[1]=new u(qt,oe),null}}},computeMinDistanceLinesPoints:function(t,e,n){for(var l=0;l<t.size();l++)for(var h=t.get(l),p=0;p<e.size();p++){var x=e.get(p);if(this.computeMinDistance(h,x,n),this.minDistance<=this.terminateDistance)return null}},computeFacetDistance:function(){var t=new Array(2).fill(null),e=Bn.getLines(this.geom[0]),n=Bn.getLines(this.geom[1]),l=d.getPoints(this.geom[0]),h=d.getPoints(this.geom[1]);return this.computeMinDistanceLines(e,n,t),this.updateMinDistance(t,!1),this.minDistance<=this.terminateDistance?null:(t[0]=null,t[1]=null,this.computeMinDistanceLinesPoints(e,h,t),this.updateMinDistance(t,!1),this.minDistance<=this.terminateDistance?null:(t[0]=null,t[1]=null,this.computeMinDistanceLinesPoints(n,l,t),this.updateMinDistance(t,!0),this.minDistance<=this.terminateDistance?null:(t[0]=null,t[1]=null,this.computeMinDistancePoints(l,h,t),void this.updateMinDistance(t,!1))))},nearestLocations:function(){return this.computeMinDistance(),this.minDistanceLocation},updateMinDistance:function(t,e){return t[0]===null?null:void(e?(this.minDistanceLocation[0]=t[1],this.minDistanceLocation[1]=t[0]):(this.minDistanceLocation[0]=t[0],this.minDistanceLocation[1]=t[1]))},nearestPoints:function(){this.computeMinDistance();var t=[this.minDistanceLocation[0].getCoordinate(),this.minDistanceLocation[1].getCoordinate()];return t},computeMinDistance:function(){if(arguments.length===0){if(this.minDistanceLocation!==null||(this.minDistanceLocation=new Array(2).fill(null),this.computeContainmentDistance(),this.minDistance<=this.terminateDistance))return null;this.computeFacetDistance()}else if(arguments.length===3){if(arguments[2]instanceof Array&&arguments[0]instanceof Yt&&arguments[1]instanceof ne){var t=arguments[0],e=arguments[1],n=arguments[2];if(t.getEnvelopeInternal().distance(e.getEnvelopeInternal())>this.minDistance)return null;for(var l=t.getCoordinates(),h=e.getCoordinate(),p=0;p<l.length-1;p++){var x=Ot.distancePointLine(h,l[p],l[p+1]);if(x<this.minDistance){this.minDistance=x;var I=new re(l[p],l[p+1]),z=I.closestPoint(h);n[0]=new u(t,p,z),n[1]=new u(e,0,h)}if(this.minDistance<=this.terminateDistance)return null}}else if(arguments[2]instanceof Array&&arguments[0]instanceof Yt&&arguments[1]instanceof Yt){var X=arguments[0],lt=arguments[1],ft=arguments[2];if(X.getEnvelopeInternal().distance(lt.getEnvelopeInternal())>this.minDistance)return null;for(var l=X.getCoordinates(),Et=lt.getCoordinates(),p=0;p<l.length-1;p++)for(var qt=0;qt<Et.length-1;qt++){var x=Ot.distanceLineLine(l[p],l[p+1],Et[qt],Et[qt+1]);if(x<this.minDistance){this.minDistance=x;var te=new re(l[p],l[p+1]),oe=new re(Et[qt],Et[qt+1]),Xe=te.closestPoints(oe);ft[0]=new u(X,p,Xe[0]),ft[1]=new u(lt,qt,Xe[1])}if(this.minDistance<=this.terminateDistance)return null}}}},computeMinDistancePoints:function(t,e,n){for(var l=0;l<t.size();l++)for(var h=t.get(l),p=0;p<e.size();p++){var x=e.get(p),I=h.getCoordinate().distance(x.getCoordinate());if(I<this.minDistance&&(this.minDistance=I,n[0]=new u(h,0,h.getCoordinate()),n[1]=new u(x,0,x.getCoordinate())),this.minDistance<=this.terminateDistance)return null}},distance:function(){if(this.geom[0]===null||this.geom[1]===null)throw new f;return this.geom[0].isEmpty()||this.geom[1].isEmpty()?0:(this.computeMinDistance(),this.minDistance)},computeMinDistanceLines:function(t,e,n){for(var l=0;l<t.size();l++)for(var h=t.get(l),p=0;p<e.size();p++){var x=e.get(p);if(this.computeMinDistance(h,x,n),this.minDistance<=this.terminateDistance)return null}},interfaces_:function(){return[]},getClass:function(){return E}}),E.distance=function(t,e){var n=new E(t,e);return n.distance()},E.isWithinDistance=function(t,e,n){var l=new E(t,e,n);return l.distance()<=n},E.nearestPoints=function(t,e){var n=new E(t,e);return n.nearestPoints()};var R_=Object.freeze({DistanceOp:E});s(T.prototype,{getCoordinates:function(){if(this.coordinates===null){for(var t=0,e=0,n=new H,l=this.directedEdges.iterator();l.hasNext();){var h=l.next();h.getEdgeDirection()?t++:e++,n.add(h.getEdge().getLine().getCoordinates(),!1,h.getEdgeDirection())}this.coordinates=n.toCoordinateArray(),e>t&&kt.reverse(this.coordinates)}return this.coordinates},toLineString:function(){return this.factory.createLineString(this.getCoordinates())},add:function(t){this.directedEdges.add(t)},interfaces_:function(){return[]},getClass:function(){return T}}),s(B.prototype,{setVisited:function(t){this._isVisited=t},isMarked:function(){return this._isMarked},setData:function(t){this.data=t},getData:function(){return this.data},setMarked:function(t){this._isMarked=t},getContext:function(){return this.data},isVisited:function(){return this._isVisited},setContext:function(t){this.data=t},interfaces_:function(){return[]},getClass:function(){return B}}),B.getComponentWithVisitedState=function(t,e){for(;t.hasNext();){var n=t.next();if(n.isVisited()===e)return n}return null},B.setVisited=function(t,e){for(;t.hasNext();){var n=t.next();n.setVisited(e)}},B.setMarked=function(t,e){for(;t.hasNext();){var n=t.next();n.setMarked(e)}},w(tt,B),s(tt.prototype,{isRemoved:function(){return this.parentEdge===null},compareDirection:function(t){return this.quadrant>t.quadrant?1:this.quadrant<t.quadrant?-1:Ot.computeOrientation(t.p0,t.p1,this.p1)},getCoordinate:function(){return this.from.getCoordinate()},print:function(t){var e=this.getClass().getName(),n=e.lastIndexOf("."),l=e.substring(n+1);t.print("  "+l+": "+this.p0+" - "+this.p1+" "+this.quadrant+":"+this.angle)},getDirectionPt:function(){return this.p1},getAngle:function(){return this.angle},compareTo:function(t){var e=t;return this.compareDirection(e)},getFromNode:function(){return this.from},getSym:function(){return this.sym},setEdge:function(t){this.parentEdge=t},remove:function(){this.sym=null,this.parentEdge=null},getEdge:function(){return this.parentEdge},getQuadrant:function(){return this.quadrant},setSym:function(t){this.sym=t},getToNode:function(){return this.to},getEdgeDirection:function(){return this.edgeDirection},interfaces_:function(){return[m]},getClass:function(){return tt}}),tt.toEdges=function(t){for(var e=new F,n=t.iterator();n.hasNext();)e.add(n.next().parentEdge);return e},w(ht,tt),s(ht.prototype,{getNext:function(){return this.getToNode().getDegree()!==2?null:this.getToNode().getOutEdges().getEdges().get(0)===this.getSym()?this.getToNode().getOutEdges().getEdges().get(1):(P.isTrue(this.getToNode().getOutEdges().getEdges().get(1)===this.getSym()),this.getToNode().getOutEdges().getEdges().get(0))},interfaces_:function(){return[]},getClass:function(){return ht}}),w(dt,B),s(dt.prototype,{isRemoved:function(){return this.dirEdge===null},setDirectedEdges:function(t,e){this.dirEdge=[t,e],t.setEdge(this),e.setEdge(this),t.setSym(e),e.setSym(t),t.getFromNode().addOutEdge(t),e.getFromNode().addOutEdge(e)},getDirEdge:function(){if(Number.isInteger(arguments[0])){var t=arguments[0];return this.dirEdge[t]}if(arguments[0]instanceof zt){var e=arguments[0];return this.dirEdge[0].getFromNode()===e?this.dirEdge[0]:this.dirEdge[1].getFromNode()===e?this.dirEdge[1]:null}},remove:function(){this.dirEdge=null},getOppositeNode:function(t){return this.dirEdge[0].getFromNode()===t?this.dirEdge[0].getToNode():this.dirEdge[1].getFromNode()===t?this.dirEdge[1].getToNode():null},interfaces_:function(){return[]},getClass:function(){return dt}}),s(Lt.prototype,{getNextEdge:function(t){var e=this.getIndex(t);return this.outEdges.get(this.getIndex(e+1))},getCoordinate:function(){var t=this.iterator();if(!t.hasNext())return null;var e=t.next();return e.getCoordinate()},iterator:function(){return this.sortEdges(),this.outEdges.iterator()},sortEdges:function(){this.sorted||(Ei.sort(this.outEdges),this.sorted=!0)},remove:function(t){this.outEdges.remove(t)},getEdges:function(){return this.sortEdges(),this.outEdges},getNextCWEdge:function(t){var e=this.getIndex(t);return this.outEdges.get(this.getIndex(e-1))},getIndex:function(){if(arguments[0]instanceof dt){var t=arguments[0];this.sortEdges();for(var e=0;e<this.outEdges.size();e++){var n=this.outEdges.get(e);if(n.getEdge()===t)return e}return-1}if(arguments[0]instanceof tt){var l=arguments[0];this.sortEdges();for(var e=0;e<this.outEdges.size();e++){var n=this.outEdges.get(e);if(n===l)return e}return-1}if(Number.isInteger(arguments[0])){var h=arguments[0],p=h%this.outEdges.size();return 0>p&&(p+=this.outEdges.size()),p}},add:function(t){this.outEdges.add(t),this.sorted=!1},getDegree:function(){return this.outEdges.size()},interfaces_:function(){return[]},getClass:function(){return Lt}}),w(zt,B),s(zt.prototype,{isRemoved:function(){return this.pt===null},addOutEdge:function(t){this.deStar.add(t)},getCoordinate:function(){return this.pt},getOutEdges:function(){return this.deStar},remove:function(){if(arguments.length===0)this.pt=null;else if(arguments.length===1){var t=arguments[0];this.deStar.remove(t)}},getIndex:function(t){return this.deStar.getIndex(t)},getDegree:function(){return this.deStar.getDegree()},interfaces_:function(){return[]},getClass:function(){return zt}}),zt.getEdgesBetween=function(t,e){var n=tt.toEdges(t.getOutEdges().getEdges()),l=new gt(n),h=tt.toEdges(e.getOutEdges().getEdges());return l.retainAll(h),l},w(se,dt),s(se.prototype,{getLine:function(){return this.line},interfaces_:function(){return[]},getClass:function(){return se}}),s(Ee.prototype,{find:function(t){return this.nodeMap.get(t)},iterator:function(){return this.nodeMap.values().iterator()},remove:function(t){return this.nodeMap.remove(t)},values:function(){return this.nodeMap.values()},add:function(t){return this.nodeMap.put(t.getCoordinate(),t),t},interfaces_:function(){return[]},getClass:function(){return Ee}}),s(Ln.prototype,{findNodesOfDegree:function(t){for(var e=new F,n=this.nodeIterator();n.hasNext();){var l=n.next();l.getDegree()===t&&e.add(l)}return e},dirEdgeIterator:function(){return this.dirEdges.iterator()},edgeIterator:function(){return this.edges.iterator()},remove:function(){if(arguments[0]instanceof dt){var t=arguments[0];this.remove(t.getDirEdge(0)),this.remove(t.getDirEdge(1)),this.edges.remove(t),t.remove()}else if(arguments[0]instanceof tt){var e=arguments[0],n=e.getSym();n!==null&&n.setSym(null),e.getFromNode().remove(e),e.remove(),this.dirEdges.remove(e)}else if(arguments[0]instanceof zt){for(var l=arguments[0],h=l.getOutEdges().getEdges(),p=h.iterator();p.hasNext();){var x=p.next(),n=x.getSym();n!==null&&this.remove(n),this.dirEdges.remove(x);var I=x.getEdge();I!==null&&this.edges.remove(I)}this.nodeMap.remove(l.getCoordinate()),l.remove()}},findNode:function(t){return this.nodeMap.find(t)},getEdges:function(){return this.edges},nodeIterator:function(){return this.nodeMap.iterator()},contains:function(){if(arguments[0]instanceof dt){var t=arguments[0];return this.edges.contains(t)}if(arguments[0]instanceof tt){var e=arguments[0];return this.dirEdges.contains(e)}},add:function(){if(arguments[0]instanceof zt){var t=arguments[0];this.nodeMap.add(t)}else if(arguments[0]instanceof dt){var e=arguments[0];this.edges.add(e),this.add(e.getDirEdge(0)),this.add(e.getDirEdge(1))}else if(arguments[0]instanceof tt){var n=arguments[0];this.dirEdges.add(n)}},getNodes:function(){return this.nodeMap.values()},interfaces_:function(){return[]},getClass:function(){return Ln}}),w(En,Ln),s(En.prototype,{addEdge:function(t){if(t.isEmpty())return null;var e=kt.removeRepeatedPoints(t.getCoordinates());if(e.length<=1)return null;var n=e[0],l=e[e.length-1],h=this.getNode(n),p=this.getNode(l),x=new ht(h,p,e[1],!0),I=new ht(p,h,e[e.length-2],!1),z=new se(t);z.setDirectedEdges(x,I),this.add(z)},getNode:function(t){var e=this.findNode(t);return e===null&&(e=new zt(t),this.add(e)),e},interfaces_:function(){return[]},getClass:function(){return En}}),s(ar.prototype,{buildEdgeStringsForUnprocessedNodes:function(){for(var t=this.graph.getNodes().iterator();t.hasNext();){var e=t.next();e.isMarked()||(P.isTrue(e.getDegree()===2),this.buildEdgeStringsStartingAt(e),e.setMarked(!0))}},buildEdgeStringsForNonDegree2Nodes:function(){for(var t=this.graph.getNodes().iterator();t.hasNext();){var e=t.next();e.getDegree()!==2&&(this.buildEdgeStringsStartingAt(e),e.setMarked(!0))}},buildEdgeStringsForObviousStartNodes:function(){this.buildEdgeStringsForNonDegree2Nodes()},getMergedLineStrings:function(){return this.merge(),this.mergedLineStrings},buildEdgeStringsStartingAt:function(t){for(var e=t.getOutEdges().iterator();e.hasNext();){var n=e.next();n.getEdge().isMarked()||this.edgeStrings.add(this.buildEdgeStringStartingWith(n))}},merge:function(){if(this.mergedLineStrings!==null)return null;B.setMarked(this.graph.nodeIterator(),!1),B.setMarked(this.graph.edgeIterator(),!1),this.edgeStrings=new F,this.buildEdgeStringsForObviousStartNodes(),this.buildEdgeStringsForIsolatedLoops(),this.mergedLineStrings=new F;for(var t=this.edgeStrings.iterator();t.hasNext();){var e=t.next();this.mergedLineStrings.add(e.toLineString())}},buildEdgeStringStartingWith:function(t){var e=new T(this.factory),n=t;do e.add(n),n.getEdge().setMarked(!0),n=n.getNext();while(n!==null&&n!==t);return e},add:function(){if(arguments[0]instanceof nt){var t=arguments[0];t.apply({interfaces_:function(){return[bt]},filter:function(p){p instanceof Yt&&this.add(p)}})}else if(ot(arguments[0],k)){var e=arguments[0];this.mergedLineStrings=null;for(var n=e.iterator();n.hasNext();){var l=n.next();this.add(l)}}else if(arguments[0]instanceof Yt){var h=arguments[0];this.factory===null&&(this.factory=h.getFactory()),this.graph.addEdge(h)}},buildEdgeStringsForIsolatedLoops:function(){this.buildEdgeStringsForUnprocessedNodes()},interfaces_:function(){return[]},getClass:function(){return ar}});var j_=Object.freeze({LineMerger:ar}),k_=Object.freeze({OverlayOp:Ht});w(Gn,tt),s(Gn.prototype,{getNext:function(){return this.next},isInRing:function(){return this.edgeRing!==null},setRing:function(t){this.edgeRing=t},setLabel:function(t){this.label=t},getLabel:function(){return this.label},setNext:function(t){this.next=t},getRing:function(){return this.edgeRing},interfaces_:function(){return[]},getClass:function(){return Gn}}),w(_i,dt),s(_i.prototype,{getLine:function(){return this.line},interfaces_:function(){return[]},getClass:function(){return _i}}),s(Sr.prototype,{isIncluded:function(){return this._isIncluded},getCoordinates:function(){if(this.ringPts===null){for(var t=new H,e=this.deList.iterator();e.hasNext();){var n=e.next(),l=n.getEdge();Sr.addEdge(l.getLine().getCoordinates(),n.getEdgeDirection(),t)}this.ringPts=t.toCoordinateArray()}return this.ringPts},isIncludedSet:function(){return this._isIncludedSet},isValid:function(){return this.getCoordinates(),this.ringPts.length<=3?!1:(this.getRing(),this.ring.isValid())},build:function(t){var e=t;do this.add(e),e.setRing(this),e=e.getNext(),P.isTrue(e!==null,"found null DE in ring"),P.isTrue(e===t||!e.isInRing(),"found DE already in ring");while(e!==t)},isOuterHole:function(){return this._isHole?!this.hasShell():!1},getPolygon:function(){var t=null;if(this.holes!==null){t=new Array(this.holes.size()).fill(null);for(var e=0;e<this.holes.size();e++)t[e]=this.holes.get(e)}var n=this.factory.createPolygon(this.ring,t);return n},isHole:function(){return this._isHole},isProcessed:function(){return this._isProcessed},addHole:function(){if(arguments[0]instanceof ke){var t=arguments[0];this.holes===null&&(this.holes=new F),this.holes.add(t)}else if(arguments[0]instanceof Sr){var e=arguments[0];e.setShell(this);var n=e.getRing();this.holes===null&&(this.holes=new F),this.holes.add(n)}},setIncluded:function(t){this._isIncluded=t,this._isIncludedSet=!0},getOuterHole:function(){if(this.isHole())return null;for(var t=0;t<this.deList.size();t++){var e=this.deList.get(t),n=e.getSym().getRing();if(n.isOuterHole())return n}return null},computeHole:function(){var t=this.getRing();this._isHole=Ot.isCCW(t.getCoordinates())},hasShell:function(){return this.shell!==null},isOuterShell:function(){return this.getOuterHole()!==null},getLineString:function(){return this.getCoordinates(),this.factory.createLineString(this.ringPts)},toString:function(){return vn.toLineString(new Z(this.getCoordinates()))},getShell:function(){return this.isHole()?this.shell:this},add:function(t){this.deList.add(t)},getRing:function(){if(this.ring!==null)return this.ring;this.getCoordinates(),this.ringPts.length<3&&et.out.println(this.ringPts);try{this.ring=this.factory.createLinearRing(this.ringPts)}catch(t){if(!(t instanceof it))throw t;et.out.println(this.ringPts)}finally{}return this.ring},updateIncluded:function(){if(this.isHole())return null;for(var t=0;t<this.deList.size();t++){var e=this.deList.get(t),n=e.getSym().getRing().getShell();if(n!==null&&n.isIncludedSet())return this.setIncluded(!n.isIncluded()),null}},setShell:function(t){this.shell=t},setProcessed:function(t){this._isProcessed=t},interfaces_:function(){return[]},getClass:function(){return Sr}}),Sr.findDirEdgesInRing=function(t){var e=t,n=new F;do n.add(e),e=e.getNext(),P.isTrue(e!==null,"found null DE in ring"),P.isTrue(e===t||!e.isInRing(),"found DE already in ring");while(e!==t);return n},Sr.addEdge=function(t,e,n){if(e)for(var l=0;l<t.length;l++)n.add(t[l],!1);else for(var l=t.length-1;l>=0;l--)n.add(t[l],!1)},Sr.findEdgeRingContaining=function(t,e){for(var n=t.getRing(),l=n.getEnvelopeInternal(),h=n.getCoordinateN(0),p=null,x=null,I=e.iterator();I.hasNext();){var z=I.next(),X=z.getRing(),lt=X.getEnvelopeInternal();if(!lt.equals(l)&&lt.contains(l)){h=kt.ptNotInList(n.getCoordinates(),X.getCoordinates());var ft=!1;Ot.isPointInRing(h,X.getCoordinates())&&(ft=!0),ft&&(p===null||x.contains(lt))&&(p=z,x=p.getRing().getEnvelopeInternal())}}return p},s(za.prototype,{compare:function(t,e){var n=t,l=e;return n.getRing().getEnvelope().compareTo(l.getRing().getEnvelope())},interfaces_:function(){return[C]},getClass:function(){return za}}),Sr.EnvelopeComparator=za,w(yn,Ln),s(yn.prototype,{findEdgeRing:function(t){var e=new Sr(this.factory);return e.build(t),e},computeDepthParity:function(){if(arguments.length===0)for(;;){var t=null;if(t===null)return null;this.computeDepthParity(t)}},computeNextCWEdges:function(){for(var t=this.nodeIterator();t.hasNext();){var e=t.next();yn.computeNextCWEdges(e)}},addEdge:function(t){if(t.isEmpty())return null;var e=kt.removeRepeatedPoints(t.getCoordinates());if(e.length<2)return null;var n=e[0],l=e[e.length-1],h=this.getNode(n),p=this.getNode(l),x=new Gn(h,p,e[1],!0),I=new Gn(p,h,e[e.length-2],!1),z=new _i(t);z.setDirectedEdges(x,I),this.add(z)},deleteCutEdges:function(){this.computeNextCWEdges(),yn.findLabeledEdgeRings(this.dirEdges);for(var t=new F,e=this.dirEdges.iterator();e.hasNext();){var n=e.next();if(!n.isMarked()){var l=n.getSym();if(n.getLabel()===l.getLabel()){n.setMarked(!0),l.setMarked(!0);var h=n.getEdge();t.add(h.getLine())}}}return t},getEdgeRings:function(){this.computeNextCWEdges(),yn.label(this.dirEdges,-1);var t=yn.findLabeledEdgeRings(this.dirEdges);this.convertMaximalToMinimalEdgeRings(t);for(var e=new F,n=this.dirEdges.iterator();n.hasNext();){var l=n.next();if(!l.isMarked()&&!l.isInRing()){var h=this.findEdgeRing(l);e.add(h)}}return e},getNode:function(t){var e=this.findNode(t);return e===null&&(e=new zt(t),this.add(e)),e},convertMaximalToMinimalEdgeRings:function(t){for(var e=t.iterator();e.hasNext();){var n=e.next(),l=n.getLabel(),h=yn.findIntersectionNodes(n,l);if(h!==null)for(var p=h.iterator();p.hasNext();){var x=p.next();yn.computeNextCCWEdges(x,l)}}},deleteDangles:function(){for(var t=this.findNodesOfDegree(1),e=new gt,n=new Pn,l=t.iterator();l.hasNext();)n.push(l.next());for(;!n.isEmpty();){var h=n.pop();yn.deleteAllEdges(h);for(var p=h.getOutEdges().getEdges(),l=p.iterator();l.hasNext();){var x=l.next();x.setMarked(!0);var I=x.getSym();I!==null&&I.setMarked(!0);var z=x.getEdge();e.add(z.getLine());var X=x.getToNode();yn.getDegreeNonDeleted(X)===1&&n.push(X)}}return e},interfaces_:function(){return[]},getClass:function(){return yn}}),yn.findLabeledEdgeRings=function(t){for(var e=new F,n=1,l=t.iterator();l.hasNext();){var h=l.next();if(!(h.isMarked()||h.getLabel()>=0)){e.add(h);var p=Sr.findDirEdgesInRing(h);yn.label(p,n),n++}}return e},yn.getDegreeNonDeleted=function(t){for(var e=t.getOutEdges().getEdges(),n=0,l=e.iterator();l.hasNext();){var h=l.next();h.isMarked()||n++}return n},yn.deleteAllEdges=function(t){for(var e=t.getOutEdges().getEdges(),n=e.iterator();n.hasNext();){var l=n.next();l.setMarked(!0);var h=l.getSym();h!==null&&h.setMarked(!0)}},yn.label=function(t,e){for(var n=t.iterator();n.hasNext();){var l=n.next();l.setLabel(e)}},yn.computeNextCWEdges=function(t){for(var e=t.getOutEdges(),n=null,l=null,h=e.getEdges().iterator();h.hasNext();){var p=h.next();if(!p.isMarked()){if(n===null&&(n=p),l!==null){var x=l.getSym();x.setNext(p)}l=p}}if(l!==null){var x=l.getSym();x.setNext(n)}},yn.computeNextCCWEdges=function(t,e){for(var n=t.getOutEdges(),l=null,h=null,p=n.getEdges(),x=p.size()-1;x>=0;x--){var I=p.get(x),z=I.getSym(),X=null;I.getLabel()===e&&(X=I);var lt=null;z.getLabel()===e&&(lt=z),X===null&&lt===null||(lt!==null&&(h=lt),X!==null&&(h!==null&&(h.setNext(X),h=null),l===null&&(l=X)))}h!==null&&(P.isTrue(l!==null),h.setNext(l))},yn.getDegree=function(t,e){for(var n=t.getOutEdges().getEdges(),l=0,h=n.iterator();h.hasNext();){var p=h.next();p.getLabel()===e&&l++}return l},yn.findIntersectionNodes=function(t,e){var n=t,l=null;do{var h=n.getFromNode();yn.getDegree(h,e)>1&&(l===null&&(l=new F),l.add(h)),n=n.getNext(),P.isTrue(n!==null,"found null DE in ring"),P.isTrue(n===t||!n.isInRing(),"found DE already in ring")}while(n!==t);return l},s(Yn.prototype,{getGeometry:function(){return this.geomFactory===null&&(this.geomFactory=new Xt),this.polygonize(),this.extractOnlyPolygonal?this.geomFactory.buildGeometry(this.polyList):this.geomFactory.createGeometryCollection(Xt.toGeometryArray(this.polyList))},getInvalidRingLines:function(){return this.polygonize(),this.invalidRingLines},findValidRings:function(t,e,n){for(var l=t.iterator();l.hasNext();){var h=l.next();h.isValid()?e.add(h):n.add(h.getLineString())}},polygonize:function(){if(this.polyList!==null||(this.polyList=new F,this.graph===null))return null;this.dangles=this.graph.deleteDangles(),this.cutEdges=this.graph.deleteCutEdges();var t=this.graph.getEdgeRings(),e=new F;this.invalidRingLines=new F,this.isCheckingRingsValid?this.findValidRings(t,e,this.invalidRingLines):e=t,this.findShellsAndHoles(e),Yn.assignHolesToShells(this.holeList,this.shellList),Ei.sort(this.shellList,new Sr.EnvelopeComparator);var n=!0;this.extractOnlyPolygonal&&(Yn.findDisjointShells(this.shellList),n=!1),this.polyList=Yn.extractPolygons(this.shellList,n)},getDangles:function(){return this.polygonize(),this.dangles},getCutEdges:function(){return this.polygonize(),this.cutEdges},getPolygons:function(){return this.polygonize(),this.polyList},add:function(){if(ot(arguments[0],k))for(var t=arguments[0],e=t.iterator();e.hasNext();){var n=e.next();this.add(n)}else if(arguments[0]instanceof Yt){var l=arguments[0];this.geomFactory=l.getFactory(),this.graph===null&&(this.graph=new yn(this.geomFactory)),this.graph.addEdge(l)}else if(arguments[0]instanceof nt){var h=arguments[0];h.apply(this.lineStringAdder)}},setCheckRingsValid:function(t){this.isCheckingRingsValid=t},findShellsAndHoles:function(t){this.holeList=new F,this.shellList=new F;for(var e=t.iterator();e.hasNext();){var n=e.next();n.computeHole(),n.isHole()?this.holeList.add(n):this.shellList.add(n)}},interfaces_:function(){return[]},getClass:function(){return Yn}}),Yn.findOuterShells=function(t){for(var e=t.iterator();e.hasNext();){var n=e.next(),l=n.getOuterHole();l===null||l.isProcessed()||(n.setIncluded(!0),l.setProcessed(!0))}},Yn.extractPolygons=function(t,e){for(var n=new F,l=t.iterator();l.hasNext();){var h=l.next();(e||h.isIncluded())&&n.add(h.getPolygon())}return n},Yn.assignHolesToShells=function(t,e){for(var n=t.iterator();n.hasNext();){var l=n.next();Yn.assignHoleToShell(l,e)}},Yn.assignHoleToShell=function(t,e){var n=Sr.findEdgeRingContaining(t,e);n!==null&&n.addHole(t)},Yn.findDisjointShells=function(t){Yn.findOuterShells(t);var e=null;do{e=!1;for(var n=t.iterator();n.hasNext();){var l=n.next();l.isIncludedSet()||(l.updateIncluded(),l.isIncludedSet()||(e=!0))}}while(e)},s(Vo.prototype,{filter:function(t){t instanceof Yt&&this.p.add(t)},interfaces_:function(){return[bt]},getClass:function(){return Vo}}),Yn.LineStringAdder=Vo;var F_=Object.freeze({Polygonizer:Yn});s(co.prototype,{createEdgeEndForNext:function(t,e,n,l){var h=n.segmentIndex+1;if(h>=t.getNumPoints()&&l===null)return null;var p=t.getCoordinate(h);l!==null&&l.segmentIndex===n.segmentIndex&&(p=l.coord);var x=new br(t,n.coord,p,new tn(t.getLabel()));e.add(x)},createEdgeEndForPrev:function(t,e,n,l){var h=n.segmentIndex;if(n.dist===0){if(h===0)return null;h--}var p=t.getCoordinate(h);l!==null&&l.segmentIndex>=h&&(p=l.coord);var x=new tn(t.getLabel());x.flip();var I=new br(t,n.coord,p,x);e.add(I)},computeEdgeEnds:function(){if(arguments.length===1){for(var t=arguments[0],e=new F,n=t;n.hasNext();){var l=n.next();this.computeEdgeEnds(l,e)}return e}if(arguments.length===2){var h=arguments[0],p=arguments[1],x=h.getEdgeIntersectionList();x.addEndpoints();var I=x.iterator(),z=null,X=null;if(!I.hasNext())return null;var lt=I.next();do z=X,X=lt,lt=null,I.hasNext()&&(lt=I.next()),X!==null&&(this.createEdgeEndForPrev(h,p,X,z),this.createEdgeEndForNext(h,p,X,lt));while(X!==null)}},interfaces_:function(){return[]},getClass:function(){return co}}),w(dn,br),s(dn.prototype,{insert:function(t){this.edgeEnds.add(t)},print:function(t){t.println("EdgeEndBundle--> Label: "+this.label);for(var e=this.iterator();e.hasNext();){var n=e.next();n.print(t),t.println()}},iterator:function(){return this.edgeEnds.iterator()},getEdgeEnds:function(){return this.edgeEnds},computeLabelOn:function(t,e){for(var n=0,l=!1,h=this.iterator();h.hasNext();){var p=h.next(),x=p.getLabel().getLocation(t);x===M.BOUNDARY&&n++,x===M.INTERIOR&&(l=!0)}var x=M.NONE;l&&(x=M.INTERIOR),n>0&&(x=Wn.determineBoundary(e,n)),this.label.setLocation(t,x)},computeLabelSide:function(t,e){for(var n=this.iterator();n.hasNext();){var l=n.next();if(l.getLabel().isArea()){var h=l.getLabel().getLocation(t,e);if(h===M.INTERIOR)return this.label.setLocation(t,e,M.INTERIOR),null;h===M.EXTERIOR&&this.label.setLocation(t,e,M.EXTERIOR)}}},getLabel:function(){return this.label},computeLabelSides:function(t){this.computeLabelSide(t,St.LEFT),this.computeLabelSide(t,St.RIGHT)},updateIM:function(t){Un.updateIM(this.label,t)},computeLabel:function(t){for(var e=!1,n=this.iterator();n.hasNext();){var l=n.next();l.getLabel().isArea()&&(e=!0)}e?this.label=new tn(M.NONE,M.NONE,M.NONE):this.label=new tn(M.NONE);for(var h=0;2>h;h++)this.computeLabelOn(h,t),e&&this.computeLabelSides(h)},interfaces_:function(){return[]},getClass:function(){return dn}}),w(ls,Ai),s(ls.prototype,{updateIM:function(t){for(var e=this.iterator();e.hasNext();){var n=e.next();n.updateIM(t)}},insert:function(t){var e=this.edgeMap.get(t);e===null?(e=new dn(t),this.insertEdgeEnd(t,e)):e.insert(t)},interfaces_:function(){return[]},getClass:function(){return ls}}),w(Uo,Vn),s(Uo.prototype,{updateIMFromEdges:function(t){this.edges.updateIM(t)},computeIM:function(t){t.setAtLeastIfValid(this.label.getLocation(0),this.label.getLocation(1),0)},interfaces_:function(){return[]},getClass:function(){return Uo}}),w(ho,rs),s(ho.prototype,{createNode:function(t){return new Uo(t,new ls)},interfaces_:function(){return[]},getClass:function(){return ho}}),s(Ho.prototype,{insertEdgeEnds:function(t){for(var e=t.iterator();e.hasNext();){var n=e.next();this.nodes.add(n)}},computeProperIntersectionIM:function(t,e){var n=this.arg[0].getGeometry().getDimension(),l=this.arg[1].getGeometry().getDimension(),h=t.hasProperIntersection(),p=t.hasProperInteriorIntersection();n===2&&l===2?h&&e.setAtLeast("212101212"):n===2&&l===1?(h&&e.setAtLeast("FFF0FFFF2"),p&&e.setAtLeast("1FFFFF1FF")):n===1&&l===2?(h&&e.setAtLeast("F0FFFFFF2"),p&&e.setAtLeast("1F1FFFFFF")):n===1&&l===1&&p&&e.setAtLeast("0FFFFFFFF")},labelIsolatedEdges:function(t,e){for(var n=this.arg[t].getEdgeIterator();n.hasNext();){var l=n.next();l.isIsolated()&&(this.labelIsolatedEdge(l,e,this.arg[e].getGeometry()),this.isolatedEdges.add(l))}},labelIsolatedEdge:function(t,e,n){if(n.getDimension()>0){var l=this.ptLocator.locate(t.getCoordinate(),n);t.getLabel().setAllLocations(e,l)}else t.getLabel().setAllLocations(e,M.EXTERIOR)},computeIM:function(){var t=new Te;if(t.set(M.EXTERIOR,M.EXTERIOR,2),!this.arg[0].getGeometry().getEnvelopeInternal().intersects(this.arg[1].getGeometry().getEnvelopeInternal()))return this.computeDisjointIM(t),t;this.arg[0].computeSelfNodes(this.li,!1),this.arg[1].computeSelfNodes(this.li,!1);var e=this.arg[0].computeEdgeIntersections(this.arg[1],this.li,!1);this.computeIntersectionNodes(0),this.computeIntersectionNodes(1),this.copyNodesAndLabels(0),this.copyNodesAndLabels(1),this.labelIsolatedNodes(),this.computeProperIntersectionIM(e,t);var n=new co,l=n.computeEdgeEnds(this.arg[0].getEdgeIterator());this.insertEdgeEnds(l);var h=n.computeEdgeEnds(this.arg[1].getEdgeIterator());return this.insertEdgeEnds(h),this.labelNodeEdges(),this.labelIsolatedEdges(0,1),this.labelIsolatedEdges(1,0),this.updateIM(t),t},labelNodeEdges:function(){for(var t=this.nodes.iterator();t.hasNext();){var e=t.next();e.getEdges().computeLabelling(this.arg)}},copyNodesAndLabels:function(t){for(var e=this.arg[t].getNodeIterator();e.hasNext();){var n=e.next(),l=this.nodes.addNode(n.getCoordinate());l.setLabel(t,n.getLabel().getLocation(t))}},labelIntersectionNodes:function(t){for(var e=this.arg[t].getEdgeIterator();e.hasNext();)for(var n=e.next(),l=n.getLabel().getLocation(t),h=n.getEdgeIntersectionList().iterator();h.hasNext();){var p=h.next(),x=this.nodes.find(p.coord);x.getLabel().isNull(t)&&(l===M.BOUNDARY?x.setLabelBoundary(t):x.setLabel(t,M.INTERIOR))}},labelIsolatedNode:function(t,e){var n=this.ptLocator.locate(t.getCoordinate(),this.arg[e].getGeometry());t.getLabel().setAllLocations(e,n)},computeIntersectionNodes:function(t){for(var e=this.arg[t].getEdgeIterator();e.hasNext();)for(var n=e.next(),l=n.getLabel().getLocation(t),h=n.getEdgeIntersectionList().iterator();h.hasNext();){var p=h.next(),x=this.nodes.addNode(p.coord);l===M.BOUNDARY?x.setLabelBoundary(t):x.getLabel().isNull(t)&&x.setLabel(t,M.INTERIOR)}},labelIsolatedNodes:function(){for(var t=this.nodes.iterator();t.hasNext();){var e=t.next(),n=e.getLabel();P.isTrue(n.getGeometryCount()>0,"node with empty label found"),e.isIsolated()&&(n.isNull(0)?this.labelIsolatedNode(e,0):this.labelIsolatedNode(e,1))}},updateIM:function(t){for(var e=this.isolatedEdges.iterator();e.hasNext();){var n=e.next();n.updateIM(t)}for(var l=this.nodes.iterator();l.hasNext();){var h=l.next();h.updateIM(t),h.updateIMFromEdges(t)}},computeDisjointIM:function(t){var e=this.arg[0].getGeometry();e.isEmpty()||(t.set(M.INTERIOR,M.EXTERIOR,e.getDimension()),t.set(M.BOUNDARY,M.EXTERIOR,e.getBoundaryDimension()));var n=this.arg[1].getGeometry();n.isEmpty()||(t.set(M.EXTERIOR,M.INTERIOR,n.getDimension()),t.set(M.EXTERIOR,M.BOUNDARY,n.getBoundaryDimension()))},interfaces_:function(){return[]},getClass:function(){return Ho}}),s(cs.prototype,{isContainedInBoundary:function(t){if(t instanceof _e)return!1;if(t instanceof ne)return this.isPointContainedInBoundary(t);if(t instanceof Yt)return this.isLineStringContainedInBoundary(t);for(var e=0;e<t.getNumGeometries();e++){var n=t.getGeometryN(e);if(!this.isContainedInBoundary(n))return!1}return!0},isLineSegmentContainedInBoundary:function(t,e){if(t.equals(e))return this.isPointContainedInBoundary(t);if(t.x===e.x){if(t.x===this.rectEnv.getMinX()||t.x===this.rectEnv.getMaxX())return!0}else if(t.y===e.y&&(t.y===this.rectEnv.getMinY()||t.y===this.rectEnv.getMaxY()))return!0;return!1},isLineStringContainedInBoundary:function(t){for(var e=t.getCoordinateSequence(),n=new O,l=new O,h=0;h<e.size()-1;h++)if(e.getCoordinate(h,n),e.getCoordinate(h+1,l),!this.isLineSegmentContainedInBoundary(n,l))return!1;return!0},isPointContainedInBoundary:function(){if(arguments[0]instanceof ne){var t=arguments[0];return this.isPointContainedInBoundary(t.getCoordinate())}if(arguments[0]instanceof O){var e=arguments[0];return e.x===this.rectEnv.getMinX()||e.x===this.rectEnv.getMaxX()||e.y===this.rectEnv.getMinY()||e.y===this.rectEnv.getMaxY()}},contains:function(t){return this.rectEnv.contains(t.getEnvelopeInternal())?!this.isContainedInBoundary(t):!1},interfaces_:function(){return[]},getClass:function(){return cs}}),cs.contains=function(t,e){var n=new cs(t);return n.contains(e)},s(Zo.prototype,{intersects:function(t,e){var n=new U(t,e);if(!this.rectEnv.intersects(n))return!1;if(this.rectEnv.intersects(t)||this.rectEnv.intersects(e))return!0;if(t.compareTo(e)>0){var l=t;t=e,e=l}var h=!1;return e.y>t.y&&(h=!0),h?this.li.computeIntersection(t,e,this.diagDown0,this.diagDown1):this.li.computeIntersection(t,e,this.diagUp0,this.diagUp1),!!this.li.hasIntersection()},interfaces_:function(){return[]},getClass:function(){return Zo}}),s(Gi.prototype,{applyTo:function(t){for(var e=0;e<t.getNumGeometries()&&!this._isDone;e++){var n=t.getGeometryN(e);if(n instanceof Gt)this.applyTo(n);else if(this.visit(n),this.isDone())return this._isDone=!0,null}},interfaces_:function(){return[]},getClass:function(){return Gi}}),s(Wo.prototype,{intersects:function(t){if(!this.rectEnv.intersects(t.getEnvelopeInternal()))return!1;var e=new tl(this.rectEnv);if(e.applyTo(t),e.intersects())return!0;var n=new el(this.rectangle);if(n.applyTo(t),n.containsPoint())return!0;var l=new nl(this.rectangle);return l.applyTo(t),!!l.intersects()},interfaces_:function(){return[]},getClass:function(){return Wo}}),Wo.intersects=function(t,e){var n=new Wo(t);return n.intersects(e)},w(tl,Gi),s(tl.prototype,{isDone:function(){return this._intersects===!0},visit:function(t){var e=t.getEnvelopeInternal();return this.rectEnv.intersects(e)?this.rectEnv.contains(e)?(this._intersects=!0,null):e.getMinX()>=this.rectEnv.getMinX()&&e.getMaxX()<=this.rectEnv.getMaxX()?(this._intersects=!0,null):e.getMinY()>=this.rectEnv.getMinY()&&e.getMaxY()<=this.rectEnv.getMaxY()?(this._intersects=!0,null):void 0:null},intersects:function(){return this._intersects},interfaces_:function(){return[]},getClass:function(){return tl}}),w(el,Gi),s(el.prototype,{isDone:function(){return this._containsPoint===!0},visit:function(t){if(!(t instanceof _e))return null;var e=t.getEnvelopeInternal();if(!this.rectEnv.intersects(e))return null;for(var n=new O,l=0;4>l;l++)if(this.rectSeq.getCoordinate(l,n),e.contains(n)&&ir.containsPointInPolygon(n,t))return this._containsPoint=!0,null},containsPoint:function(){return this._containsPoint},interfaces_:function(){return[]},getClass:function(){return el}}),w(nl,Gi),s(nl.prototype,{intersects:function(){return this.hasIntersection},isDone:function(){return this.hasIntersection===!0},visit:function(t){var e=t.getEnvelopeInternal();if(!this.rectEnv.intersects(e))return null;var n=Bn.getLines(t);this.checkIntersectionWithLineStrings(n)},checkIntersectionWithLineStrings:function(t){for(var e=t.iterator();e.hasNext();){var n=e.next();if(this.checkIntersectionWithSegments(n),this.hasIntersection)return null}},checkIntersectionWithSegments:function(t){for(var e=t.getCoordinateSequence(),n=1;n<e.size();n++)if(e.getCoordinate(n-1,this.p0),e.getCoordinate(n,this.p1),this.rectIntersector.intersects(this.p0,this.p1))return this.hasIntersection=!0,null},interfaces_:function(){return[]},getClass:function(){return nl}}),w(Ae,jr),s(Ae.prototype,{getIntersectionMatrix:function(){return this._relate.computeIM()},interfaces_:function(){return[]},getClass:function(){return Ae}}),Ae.covers=function(t,e){return t.getEnvelopeInternal().covers(e.getEnvelopeInternal())?t.isRectangle()?!0:Ae.relate(t,e).isCovers():!1},Ae.intersects=function(t,e){return t.getEnvelopeInternal().intersects(e.getEnvelopeInternal())?t.isRectangle()?Wo.intersects(t,e):e.isRectangle()?Wo.intersects(e,t):Ae.relate(t,e).isIntersects():!1},Ae.touches=function(t,e){return t.getEnvelopeInternal().intersects(e.getEnvelopeInternal())?Ae.relate(t,e).isTouches(t.getDimension(),e.getDimension()):!1},Ae.within=function(t,e){return e.contains(t)},Ae.coveredBy=function(t,e){return Ae.covers(e,t)},Ae.relate=function(){if(arguments.length===2){var t=arguments[0],e=arguments[1],n=new Ae(t,e),l=n.getIntersectionMatrix();return l}if(arguments.length===3){if(typeof arguments[2]=="string"&&arguments[0]instanceof nt&&arguments[1]instanceof nt){var h=arguments[0],p=arguments[1],x=arguments[2];return Ae.relateWithCheck(h,p).matches(x)}if(ot(arguments[2],xt)&&arguments[0]instanceof nt&&arguments[1]instanceof nt){var I=arguments[0],z=arguments[1],X=arguments[2],n=new Ae(I,z,X),l=n.getIntersectionMatrix();return l}}},Ae.overlaps=function(t,e){return t.getEnvelopeInternal().intersects(e.getEnvelopeInternal())?Ae.relate(t,e).isOverlaps(t.getDimension(),e.getDimension()):!1},Ae.disjoint=function(t,e){return!t.intersects(e)},Ae.relateWithCheck=function(t,e){return t.checkNotGeometryCollection(t),t.checkNotGeometryCollection(e),Ae.relate(t,e)},Ae.crosses=function(t,e){return t.getEnvelopeInternal().intersects(e.getEnvelopeInternal())?Ae.relate(t,e).isCrosses(t.getDimension(),e.getDimension()):!1},Ae.contains=function(t,e){return t.getEnvelopeInternal().contains(e.getEnvelopeInternal())?t.isRectangle()?cs.contains(t,e):Ae.relate(t,e).isContains():!1};var B_=Object.freeze({RelateOp:Ae});s(Lr.prototype,{extractElements:function(t,e){if(t===null)return null;for(var n=0;n<t.getNumGeometries();n++){var l=t.getGeometryN(n);this.skipEmpty&&l.isEmpty()||e.add(l)}},combine:function(){for(var t=new F,e=this.inputGeoms.iterator();e.hasNext();){var n=e.next();this.extractElements(n,t)}return t.size()===0?this.geomFactory!==null?this.geomFactory.createGeometryCollection(null):null:this.geomFactory.buildGeometry(t)},interfaces_:function(){return[]},getClass:function(){return Lr}}),Lr.combine=function(){if(arguments.length===1){var t=arguments[0],e=new Lr(t);return e.combine()}if(arguments.length===2){var n=arguments[0],l=arguments[1],e=new Lr(Lr.createList(n,l));return e.combine()}if(arguments.length===3){var h=arguments[0],p=arguments[1],x=arguments[2],e=new Lr(Lr.createList(h,p,x));return e.combine()}},Lr.extractFactory=function(t){return t.isEmpty()?null:t.iterator().next().getFactory()},Lr.createList=function(){if(arguments.length===2){var t=arguments[0],e=arguments[1],n=new F;return n.add(t),n.add(e),n}if(arguments.length===3){var l=arguments[0],h=arguments[1],p=arguments[2],n=new F;return n.add(l),n.add(h),n.add(p),n}},s(Ga.prototype,{union:function(){for(var t=new oi,e=new Wt,n=0;n<this.pointGeom.getNumGeometries();n++){var l=this.pointGeom.getGeometryN(n),h=l.getCoordinate(),p=t.locate(h,this.otherGeom);p===M.EXTERIOR&&e.add(h)}if(e.size()===0)return this.otherGeom;var x=null,I=kt.toCoordinateArray(e);return x=I.length===1?this.geomFact.createPoint(I[0]):this.geomFact.createMultiPointFromCoords(I),Lr.combine(x,this.otherGeom)},interfaces_:function(){return[]},getClass:function(){return Ga}}),Ga.union=function(t,e){var n=new Ga(t,e);return n.union()},s(Fs.prototype,{filter:function(t){this.sortIndex!==-1&&t.getSortIndex()!==this.sortIndex||this.comps.add(t)},interfaces_:function(){return[De]},getClass:function(){return Fs}}),Fs.extract=function(){if(arguments.length===2){var t=arguments[0],e=arguments[1];return Fs.extract(t,e,new F)}if(arguments.length===3){var n=arguments[0],l=arguments[1],h=arguments[2];return n.getSortIndex()===l?h.add(n):n instanceof Gt&&n.apply(new Fs(l,h)),h}},s(Gr.prototype,{reduceToGeometries:function(t){for(var e=new F,n=t.iterator();n.hasNext();){var l=n.next(),h=null;ot(l,R)?h=this.unionTree(l):l instanceof nt&&(h=l),e.add(h)}return e},extractByEnvelope:function(t,e,n){for(var l=new F,h=0;h<e.getNumGeometries();h++){var p=e.getGeometryN(h);p.getEnvelopeInternal().intersects(t)?l.add(p):n.add(p)}return this.geomFactory.buildGeometry(l)},unionOptimized:function(t,e){var n=t.getEnvelopeInternal(),l=e.getEnvelopeInternal();if(!n.intersects(l)){var h=Lr.combine(t,e);return h}if(t.getNumGeometries()<=1&&e.getNumGeometries()<=1)return this.unionActual(t,e);var p=n.intersection(l);return this.unionUsingEnvelopeIntersection(t,e,p)},union:function(){if(this.inputPolys===null)throw new IllegalStateException("union() method cannot be called twice");if(this.inputPolys.isEmpty())return null;this.geomFactory=this.inputPolys.iterator().next().getFactory();for(var t=new Ze(Gr.STRTREE_NODE_CAPACITY),e=this.inputPolys.iterator();e.hasNext();){var n=e.next();t.insert(n.getEnvelopeInternal(),n)}this.inputPolys=null;var l=t.itemsTree(),h=this.unionTree(l);return h},binaryUnion:function(){if(arguments.length===1){var t=arguments[0];return this.binaryUnion(t,0,t.size())}if(arguments.length===3){var e=arguments[0],n=arguments[1],l=arguments[2];if(1>=l-n){var p=Gr.getGeometry(e,n);return this.unionSafe(p,null)}if(l-n===2)return this.unionSafe(Gr.getGeometry(e,n),Gr.getGeometry(e,n+1));var h=Math.trunc((l+n)/2),p=this.binaryUnion(e,n,h),x=this.binaryUnion(e,h,l);return this.unionSafe(p,x)}},repeatedUnion:function(t){for(var e=null,n=t.iterator();n.hasNext();){var l=n.next();e=e===null?l.copy():e.union(l)}return e},unionSafe:function(t,e){return t===null&&e===null?null:t===null?e.copy():e===null?t.copy():this.unionOptimized(t,e)},unionActual:function(t,e){return Gr.restrictToPolygons(t.union(e))},unionTree:function(t){var e=this.reduceToGeometries(t),n=this.binaryUnion(e);return n},unionUsingEnvelopeIntersection:function(t,e,n){var l=new F,h=this.extractByEnvelope(n,t,l),p=this.extractByEnvelope(n,e,l),x=this.unionActual(h,p);l.add(x);var I=Lr.combine(l);return I},bufferUnion:function(){if(arguments.length===1){var t=arguments[0],e=t.get(0).getFactory(),n=e.buildGeometry(t),l=n.buffer(0);return l}if(arguments.length===2){var h=arguments[0],p=arguments[1],e=h.getFactory(),n=e.createGeometryCollection([h,p]),l=n.buffer(0);return l}},interfaces_:function(){return[]},getClass:function(){return Gr}}),Gr.restrictToPolygons=function(t){if(ot(t,Ke))return t;var e=us.getPolygons(t);return e.size()===1?e.get(0):t.getFactory().createMultiPolygon(Xt.toPolygonArray(e))},Gr.getGeometry=function(t,e){return e>=t.size()?null:t.get(e)},Gr.union=function(t){var e=new Gr(t);return e.union()},Gr.STRTREE_NODE_CAPACITY=4,s(Bs.prototype,{unionNoOpt:function(t){var e=this.geomFact.createPoint();return mn.overlayOp(t,e,Ht.UNION)},unionWithNull:function(t,e){return t===null&&e===null?null:e===null?t:t===null?e:t.union(e)},extract:function(){if(ot(arguments[0],k))for(var t=arguments[0],e=t.iterator();e.hasNext();){var n=e.next();this.extract(n)}else if(arguments[0]instanceof nt){var l=arguments[0];this.geomFact===null&&(this.geomFact=l.getFactory()),Fs.extract(l,nt.SORTINDEX_POLYGON,this.polygons),Fs.extract(l,nt.SORTINDEX_LINESTRING,this.lines),Fs.extract(l,nt.SORTINDEX_POINT,this.points)}},union:function(){if(this.geomFact===null)return null;var e=null;if(this.points.size()>0){var n=this.geomFact.buildGeometry(this.points);e=this.unionNoOpt(n)}var l=null;if(this.lines.size()>0){var h=this.geomFact.buildGeometry(this.lines);l=this.unionNoOpt(h)}var p=null;this.polygons.size()>0&&(p=Gr.union(this.polygons));var x=this.unionWithNull(l,p),I=null;return I=e===null?x:x===null?e:Ga.union(e,x),I===null?this.geomFact.createGeometryCollection():I},interfaces_:function(){return[]},getClass:function(){return Bs}}),Bs.union=function(){if(arguments.length===1){if(ot(arguments[0],k)){var t=arguments[0],e=new Bs(t);return e.union()}if(arguments[0]instanceof nt){var n=arguments[0],e=new Bs(n);return e.union()}}else if(arguments.length===2){var l=arguments[0],h=arguments[1],e=new Bs(l,h);return e.union()}};var z_=Object.freeze({UnaryUnionOp:Bs});s(qa.prototype,{visitInteriorRing:function(t,e){var n=t.getCoordinates(),l=n[0],h=qa.findDifferentPoint(n,l),p=e.findEdgeInSameDirection(l,h),x=e.findEdgeEnd(p),I=null;x.getLabel().getLocation(0,St.RIGHT)===M.INTERIOR?I=x:x.getSym().getLabel().getLocation(0,St.RIGHT)===M.INTERIOR&&(I=x.getSym()),P.isTrue(I!==null,"unable to find dirEdge with Interior on RHS"),this.visitLinkedDirectedEdges(I)},visitShellInteriors:function(t,e){if(t instanceof _e){var n=t;this.visitInteriorRing(n.getExteriorRing(),e)}if(t instanceof Je)for(var l=t,h=0;h<l.getNumGeometries();h++){var n=l.getGeometryN(h);this.visitInteriorRing(n.getExteriorRing(),e)}},getCoordinate:function(){return this.disconnectedRingcoord},setInteriorEdgesInResult:function(t){for(var e=t.getEdgeEnds().iterator();e.hasNext();){var n=e.next();n.getLabel().getLocation(0,St.RIGHT)===M.INTERIOR&&n.setInResult(!0)}},visitLinkedDirectedEdges:function(t){var e=t,n=t;do P.isTrue(n!==null,"found null Directed Edge"),n.setVisited(!0),n=n.getNext();while(n!==e)},buildEdgeRings:function(t){for(var e=new F,n=t.iterator();n.hasNext();){var l=n.next();if(l.isInResult()&&l.getEdgeRing()===null){var h=new $s(l,this.geometryFactory);h.linkDirectedEdgesForMinimalEdgeRings();var p=h.buildMinimalRings();e.addAll(p)}}return e},hasUnvisitedShellEdge:function(t){for(var e=0;e<t.size();e++){var n=t.get(e);if(!n.isHole()){var l=n.getEdges(),h=l.get(0);if(h.getLabel().getLocation(0,St.RIGHT)===M.INTERIOR){for(var p=0;p<l.size();p++)if(h=l.get(p),!h.isVisited())return this.disconnectedRingcoord=h.getCoordinate(),!0}}}return!1},isInteriorsConnected:function(){var t=new F;this.geomGraph.computeSplitEdges(t);var e=new xr(new hi);e.addEdges(t),this.setInteriorEdgesInResult(e),e.linkResultDirectedEdges();var n=this.buildEdgeRings(e.getEdgeEnds());return this.visitShellInteriors(this.geomGraph.getGeometry(),e),!this.hasUnvisitedShellEdge(n)},interfaces_:function(){return[]},getClass:function(){return qa}}),qa.findDifferentPoint=function(t,e){for(var n=0;n<t.length;n++)if(!t[n].equals(e))return t[n];return null},s(bi.prototype,{hasChildren:function(){for(var t=0;2>t;t++)if(this.subnode[t]!==null)return!0;return!1},isPrunable:function(){return!(this.hasChildren()||this.hasItems())},addAllItems:function(t){t.addAll(this.items);for(var e=0;2>e;e++)this.subnode[e]!==null&&this.subnode[e].addAllItems(t);return t},size:function(){for(var t=0,e=0;2>e;e++)this.subnode[e]!==null&&(t+=this.subnode[e].size());return t+this.items.size()},addAllItemsFromOverlapping:function(t,e){return t===null||this.isSearchMatch(t)?(e.addAll(this.items),this.subnode[0]!==null&&this.subnode[0].addAllItemsFromOverlapping(t,e),void(this.subnode[1]!==null&&this.subnode[1].addAllItemsFromOverlapping(t,e))):null},hasItems:function(){return!this.items.isEmpty()},remove:function(t,e){if(!this.isSearchMatch(t))return!1;for(var n=!1,l=0;2>l;l++)if(this.subnode[l]!==null&&(n=this.subnode[l].remove(t,e))){this.subnode[l].isPrunable()&&(this.subnode[l]=null);break}return n||(n=this.items.remove(e))},getItems:function(){return this.items},depth:function(){for(var t=0,e=0;2>e;e++)if(this.subnode[e]!==null){var n=this.subnode[e].depth();n>t&&(t=n)}return t+1},nodeSize:function(){for(var t=0,e=0;2>e;e++)this.subnode[e]!==null&&(t+=this.subnode[e].nodeSize());return t+1},add:function(t){this.items.add(t)},interfaces_:function(){return[]},getClass:function(){return bi}}),bi.getSubnodeIndex=function(t,e){var n=-1;return t.min>=e&&(n=1),t.max<=e&&(n=0),n},s(qi.prototype,{expandToInclude:function(t){t.max>this.max&&(this.max=t.max),t.min<this.min&&(this.min=t.min)},getWidth:function(){return this.max-this.min},overlaps:function(){if(arguments.length===1){var t=arguments[0];return this.overlaps(t.min,t.max)}if(arguments.length===2){var e=arguments[0],n=arguments[1];return!(this.min>n||this.max<e)}},getMin:function(){return this.min},toString:function(){return"["+this.min+", "+this.max+"]"},contains:function(){if(arguments.length===1){if(arguments[0]instanceof qi){var t=arguments[0];return this.contains(t.min,t.max)}if(typeof arguments[0]=="number"){var e=arguments[0];return e>=this.min&&e<=this.max}}else if(arguments.length===2){var n=arguments[0],l=arguments[1];return n>=this.min&&l<=this.max}},init:function(t,e){this.min=t,this.max=e,t>e&&(this.min=e,this.max=t)},getMax:function(){return this.max},interfaces_:function(){return[]},getClass:function(){return qi}}),s(Va.prototype,{getInterval:function(){return this.interval},getLevel:function(){return this.level},computeKey:function(t){for(this.level=Va.computeLevel(t),this.interval=new qi,this.computeInterval(this.level,t);!this.interval.contains(t);)this.level+=1,this.computeInterval(this.level,t)},computeInterval:function(t,e){var n=Yr.powerOf2(t);this.pt=Math.floor(e.getMin()/n)*n,this.interval.init(this.pt,this.pt+n)},getPoint:function(){return this.pt},interfaces_:function(){return[]},getClass:function(){return Va}}),Va.computeLevel=function(t){var e=t.getWidth(),n=Yr.exponent(e)+1;return n},w(hs,bi),s(hs.prototype,{getInterval:function(){return this.interval},find:function(t){var e=bi.getSubnodeIndex(t,this.centre);if(e===-1)return this;if(this.subnode[e]!==null){var n=this.subnode[e];return n.find(t)}return this},insert:function(t){P.isTrue(this.interval===null||this.interval.contains(t.interval));var e=bi.getSubnodeIndex(t.interval,this.centre);if(t.level===this.level-1)this.subnode[e]=t;else{var n=this.createSubnode(e);n.insert(t),this.subnode[e]=n}},isSearchMatch:function(t){return t.overlaps(this.interval)},getSubnode:function(t){return this.subnode[t]===null&&(this.subnode[t]=this.createSubnode(t)),this.subnode[t]},getNode:function(t){var e=bi.getSubnodeIndex(t,this.centre);if(e!==-1){var n=this.getSubnode(e);return n.getNode(t)}return this},createSubnode:function(t){var e=0,n=0;switch(t){case 0:e=this.interval.getMin(),n=this.centre;break;case 1:e=this.centre,n=this.interval.getMax()}var l=new qi(e,n),h=new hs(l,this.level-1);return h},interfaces_:function(){return[]},getClass:function(){return hs}}),hs.createNode=function(t){var e=new Va(t),n=new hs(e.getInterval(),e.getLevel());return n},hs.createExpanded=function(t,e){var n=new qi(e);t!==null&&n.expandToInclude(t.interval);var l=hs.createNode(n);return t!==null&&l.insert(t),l},w(Yo,bi),s(Yo.prototype,{insert:function(t,e){var n=bi.getSubnodeIndex(t,Yo.origin);if(n===-1)return this.add(e),null;var l=this.subnode[n];if(l===null||!l.getInterval().contains(t)){var h=hs.createExpanded(l,t);this.subnode[n]=h}this.insertContained(this.subnode[n],t,e)},isSearchMatch:function(t){return!0},insertContained:function(t,e,n){P.isTrue(t.getInterval().contains(e));var l=pi.isZeroWidth(e.getMin(),e.getMax()),h=null;h=l?t.find(e):t.getNode(e),h.add(n)},interfaces_:function(){return[]},getClass:function(){return Yo}}),Yo.origin=0,s(Xo.prototype,{size:function(){return this.root!==null?this.root.size():0},insert:function(t,e){this.collectStats(t);var n=Xo.ensureExtent(t,this.minExtent);this.root.insert(n,e)},query:function(){if(arguments.length===1){if(typeof arguments[0]=="number"){var t=arguments[0];return this.query(new qi(t,t))}if(arguments[0]instanceof qi){var e=arguments[0],n=new F;return this.query(e,n),n}}else if(arguments.length===2){var l=arguments[0],h=arguments[1];this.root.addAllItemsFromOverlapping(l,h)}},iterator:function(){var t=new F;return this.root.addAllItems(t),t.iterator()},remove:function(t,e){var n=Xo.ensureExtent(t,this.minExtent);return this.root.remove(n,e)},collectStats:function(t){var e=t.getWidth();e<this.minExtent&&e>0&&(this.minExtent=e)},depth:function(){return this.root!==null?this.root.depth():0},nodeSize:function(){return this.root!==null?this.root.nodeSize():0},interfaces_:function(){return[]},getClass:function(){return Xo}}),Xo.ensureExtent=function(t,e){var n=t.getMin(),l=t.getMax();return n!==l?t:(n===l&&(n-=e/2,l=n+e/2),new qi(n,l))},s(tf.prototype,{isInside:function(t){},interfaces_:function(){return[]},getClass:function(){return tf}}),s(rl.prototype,{testLineSegment:function(t,e){var n=null,l=null,h=null,p=null,x=null,I=e.p0,z=e.p1;l=I.x-t.x,h=I.y-t.y,p=z.x-t.x,x=z.y-t.y,(h>0&&0>=x||x>0&&0>=h)&&(n=Ye.signOfDet2x2(l,h,p,x)/(x-h),n>0&&this.crossings++)},buildIndex:function(){this.tree=new Xo;for(var t=kt.removeRepeatedPoints(this.ring.getCoordinates()),e=_r.getChains(t),n=0;n<e.size();n++){var l=e.get(n),h=l.getEnvelope();this.interval.min=h.getMinY(),this.interval.max=h.getMaxY(),this.tree.insert(this.interval,l)}},testMonotoneChain:function(t,e,n){n.select(t,e)},isInside:function(t){this.crossings=0;var e=new U(g.NEGATIVE_INFINITY,g.POSITIVE_INFINITY,t.y,t.y);this.interval.min=t.y,this.interval.max=t.y;for(var n=this.tree.query(this.interval),l=new Ua(this,t),h=n.iterator();h.hasNext();){var p=h.next();this.testMonotoneChain(e,l,p)}return this.crossings%2===1},interfaces_:function(){return[tf]},getClass:function(){return rl}}),w(Ua,Ci),s(Ua.prototype,{select:function(){if(arguments.length!==1)return Ci.prototype.select.apply(this,arguments);var t=arguments[0];this.mcp.testLineSegment(this.p,t)},interfaces_:function(){return[]},getClass:function(){return Ua}}),rl.MCSelecter=Ua,s(ef.prototype,{insertEdgeEnds:function(t){for(var e=t.iterator();e.hasNext();){var n=e.next();this.nodes.add(n)}},getNodeIterator:function(){return this.nodes.iterator()},copyNodesAndLabels:function(t,e){for(var n=t.getNodeIterator();n.hasNext();){var l=n.next(),h=this.nodes.addNode(l.getCoordinate());h.setLabel(e,l.getLabel().getLocation(e))}},build:function(t){this.computeIntersectionNodes(t,0),this.copyNodesAndLabels(t,0);var e=new co,n=e.computeEdgeEnds(t.getEdgeIterator());this.insertEdgeEnds(n)},computeIntersectionNodes:function(t,e){for(var n=t.getEdgeIterator();n.hasNext();)for(var l=n.next(),h=l.getLabel().getLocation(e),p=l.getEdgeIntersectionList().iterator();p.hasNext();){var x=p.next(),I=this.nodes.addNode(x.coord);h===M.BOUNDARY?I.setLabelBoundary(e):I.getLabel().isNull(e)&&I.setLabel(e,M.INTERIOR)}},interfaces_:function(){return[]},getClass:function(){return ef}}),s(nf.prototype,{isNodeEdgeAreaLabelsConsistent:function(){for(var t=this.nodeGraph.getNodeIterator();t.hasNext();){var e=t.next();if(!e.getEdges().isAreaLabelsConsistent(this.geomGraph))return this.invalidPoint=e.getCoordinate().copy(),!1}return!0},getInvalidPoint:function(){return this.invalidPoint},hasDuplicateRings:function(){for(var t=this.nodeGraph.getNodeIterator();t.hasNext();)for(var e=t.next(),n=e.getEdges().iterator();n.hasNext();){var l=n.next();if(l.getEdgeEnds().size()>1)return this.invalidPoint=l.getEdge().getCoordinate(0),!0}return!1},isNodeConsistentArea:function(){var t=this.geomGraph.computeSelfNodes(this.li,!0,!0);return t.hasProperIntersection()?(this.invalidPoint=t.getProperIntersectionPoint(),!1):(this.nodeGraph.build(this.geomGraph),this.isNodeEdgeAreaLabelsConsistent())},interfaces_:function(){return[]},getClass:function(){return nf}}),s(rf.prototype,{buildIndex:function(){this.index=new Ze;for(var t=0;t<this.rings.size();t++){var e=this.rings.get(t),n=e.getEnvelopeInternal();this.index.insert(n,e)}},getNestedPoint:function(){return this.nestedPt},isNonNested:function(){this.buildIndex();for(var t=0;t<this.rings.size();t++)for(var e=this.rings.get(t),n=e.getCoordinates(),l=this.index.query(e.getEnvelopeInternal()),h=0;h<l.size();h++){var p=l.get(h),x=p.getCoordinates();if(e!==p&&e.getEnvelopeInternal().intersects(p.getEnvelopeInternal())){var I=qr.findPtNotNode(n,p,this.graph);if(I!==null){var z=Ot.isPointInRing(I,x);if(z)return this.nestedPt=I,!1}}}return!0},add:function(t){this.rings.add(t),this.totalEnv.expandToInclude(t.getEnvelopeInternal())},interfaces_:function(){return[]},getClass:function(){return rf}}),s(Ie.prototype,{getErrorType:function(){return this.errorType},getMessage:function(){return Ie.errMsg[this.errorType]},getCoordinate:function(){return this.pt},toString:function(){var t="";return this.pt!==null&&(t=" at or near point "+this.pt),this.getMessage()+t},interfaces_:function(){return[]},getClass:function(){return Ie}}),Ie.ERROR=0,Ie.REPEATED_POINT=1,Ie.HOLE_OUTSIDE_SHELL=2,Ie.NESTED_HOLES=3,Ie.DISCONNECTED_INTERIOR=4,Ie.SELF_INTERSECTION=5,Ie.RING_SELF_INTERSECTION=6,Ie.NESTED_SHELLS=7,Ie.DUPLICATE_RINGS=8,Ie.TOO_FEW_POINTS=9,Ie.INVALID_COORDINATE=10,Ie.RING_NOT_CLOSED=11,Ie.errMsg=["Topology Validation Error","Repeated Point","Hole lies outside shell","Holes are nested","Interior is disconnected","Self-intersection","Ring Self-intersection","Nested shells","Duplicate Rings","Too few distinct points in geometry component","Invalid Coordinate","Ring is not closed"],s(qr.prototype,{checkInvalidCoordinates:function(){if(arguments[0]instanceof Array){for(var t=arguments[0],e=0;e<t.length;e++)if(!qr.isValid(t[e]))return this.validErr=new Ie(Ie.INVALID_COORDINATE,t[e]),null}else if(arguments[0]instanceof _e){var n=arguments[0];if(this.checkInvalidCoordinates(n.getExteriorRing().getCoordinates()),this.validErr!==null)return null;for(var e=0;e<n.getNumInteriorRing();e++)if(this.checkInvalidCoordinates(n.getInteriorRingN(e).getCoordinates()),this.validErr!==null)return null}},checkHolesNotNested:function(t,e){for(var n=new rf(e),l=0;l<t.getNumInteriorRing();l++){var h=t.getInteriorRingN(l);n.add(h)}var p=n.isNonNested();p||(this.validErr=new Ie(Ie.NESTED_HOLES,n.getNestedPoint()))},checkConsistentArea:function(t){var e=new nf(t),n=e.isNodeConsistentArea();return n?void(e.hasDuplicateRings()&&(this.validErr=new Ie(Ie.DUPLICATE_RINGS,e.getInvalidPoint()))):(this.validErr=new Ie(Ie.SELF_INTERSECTION,e.getInvalidPoint()),null)},isValid:function(){return this.checkValid(this.parentGeometry),this.validErr===null},checkShellInsideHole:function(t,e,n){var l=t.getCoordinates(),h=e.getCoordinates(),p=qr.findPtNotNode(l,e,n);if(p!==null){var x=Ot.isPointInRing(p,h);if(!x)return p}var I=qr.findPtNotNode(h,t,n);if(I!==null){var z=Ot.isPointInRing(I,l);return z?I:null}return P.shouldNeverReachHere("points in shell and hole appear to be equal"),null},checkNoSelfIntersectingRings:function(t){for(var e=t.getEdgeIterator();e.hasNext();){var n=e.next();if(this.checkNoSelfIntersectingRing(n.getEdgeIntersectionList()),this.validErr!==null)return null}},checkConnectedInteriors:function(t){var e=new qa(t);e.isInteriorsConnected()||(this.validErr=new Ie(Ie.DISCONNECTED_INTERIOR,e.getCoordinate()))},checkNoSelfIntersectingRing:function(t){for(var e=new Wt,n=!0,l=t.iterator();l.hasNext();){var h=l.next();if(n)n=!1;else{if(e.contains(h.coord))return this.validErr=new Ie(Ie.RING_SELF_INTERSECTION,h.coord),null;e.add(h.coord)}}},checkHolesInShell:function(t,e){for(var n=t.getExteriorRing(),l=new rl(n),h=0;h<t.getNumInteriorRing();h++){var p=t.getInteriorRingN(h),x=qr.findPtNotNode(p.getCoordinates(),n,e);if(x===null)return null;var I=!l.isInside(x);if(I)return this.validErr=new Ie(Ie.HOLE_OUTSIDE_SHELL,x),null}},checkTooFewPoints:function(t){return t.hasTooFewPoints()?(this.validErr=new Ie(Ie.TOO_FEW_POINTS,t.getInvalidPoint()),null):void 0},getValidationError:function(){return this.checkValid(this.parentGeometry),this.validErr},checkValid:function(){if(arguments[0]instanceof ne){var t=arguments[0];this.checkInvalidCoordinates(t.getCoordinates())}else if(arguments[0]instanceof cn){var e=arguments[0];this.checkInvalidCoordinates(e.getCoordinates())}else if(arguments[0]instanceof ke){var n=arguments[0];if(this.checkInvalidCoordinates(n.getCoordinates()),this.validErr!==null||(this.checkClosedRing(n),this.validErr!==null))return null;var l=new Wn(0,n);if(this.checkTooFewPoints(l),this.validErr!==null)return null;var h=new ie;l.computeSelfNodes(h,!0,!0),this.checkNoSelfIntersectingRings(l)}else if(arguments[0]instanceof Yt){var p=arguments[0];if(this.checkInvalidCoordinates(p.getCoordinates()),this.validErr!==null)return null;var l=new Wn(0,p);this.checkTooFewPoints(l)}else if(arguments[0]instanceof _e){var x=arguments[0];if(this.checkInvalidCoordinates(x),this.validErr!==null||(this.checkClosedRings(x),this.validErr!==null))return null;var l=new Wn(0,x);if(this.checkTooFewPoints(l),this.validErr!==null||(this.checkConsistentArea(l),this.validErr!==null)||!this.isSelfTouchingRingFormingHoleValid&&(this.checkNoSelfIntersectingRings(l),this.validErr!==null)||(this.checkHolesInShell(x,l),this.validErr!==null)||(this.checkHolesNotNested(x,l),this.validErr!==null))return null;this.checkConnectedInteriors(l)}else if(arguments[0]instanceof Je){for(var I=arguments[0],z=0;z<I.getNumGeometries();z++){var X=I.getGeometryN(z);if(this.checkInvalidCoordinates(X),this.validErr!==null||(this.checkClosedRings(X),this.validErr!==null))return null}var l=new Wn(0,I);if(this.checkTooFewPoints(l),this.validErr!==null||(this.checkConsistentArea(l),this.validErr!==null)||!this.isSelfTouchingRingFormingHoleValid&&(this.checkNoSelfIntersectingRings(l),this.validErr!==null))return null;for(var z=0;z<I.getNumGeometries();z++){var X=I.getGeometryN(z);if(this.checkHolesInShell(X,l),this.validErr!==null)return null}for(var z=0;z<I.getNumGeometries();z++){var X=I.getGeometryN(z);if(this.checkHolesNotNested(X,l),this.validErr!==null)return null}if(this.checkShellsNotNested(I,l),this.validErr!==null)return null;this.checkConnectedInteriors(l)}else if(arguments[0]instanceof Gt)for(var lt=arguments[0],z=0;z<lt.getNumGeometries();z++){var ft=lt.getGeometryN(z);if(this.checkValid(ft),this.validErr!==null)return null}else if(arguments[0]instanceof nt){var Et=arguments[0];if(this.validErr=null,Et.isEmpty())return null;if(Et instanceof ne)this.checkValid(Et);else if(Et instanceof cn)this.checkValid(Et);else if(Et instanceof ke)this.checkValid(Et);else if(Et instanceof Yt)this.checkValid(Et);else if(Et instanceof _e)this.checkValid(Et);else if(Et instanceof Je)this.checkValid(Et);else{if(!(Et instanceof Gt))throw new UnsupportedOperationException(Et.getClass().getName());this.checkValid(Et)}}},setSelfTouchingRingFormingHoleValid:function(t){this.isSelfTouchingRingFormingHoleValid=t},checkShellNotNested:function(t,e,n){var l=t.getCoordinates(),h=e.getExteriorRing(),p=h.getCoordinates(),x=qr.findPtNotNode(l,h,n);if(x===null)return null;var I=Ot.isPointInRing(x,p);if(!I)return null;if(e.getNumInteriorRing()<=0)return this.validErr=new Ie(Ie.NESTED_SHELLS,x),null;for(var z=null,X=0;X<e.getNumInteriorRing();X++){var lt=e.getInteriorRingN(X);if(z=this.checkShellInsideHole(t,lt,n),z===null)return null}this.validErr=new Ie(Ie.NESTED_SHELLS,z)},checkClosedRings:function(t){if(this.checkClosedRing(t.getExteriorRing()),this.validErr!==null)return null;for(var e=0;e<t.getNumInteriorRing();e++)if(this.checkClosedRing(t.getInteriorRingN(e)),this.validErr!==null)return null},checkClosedRing:function(t){if(!t.isClosed()){var e=null;t.getNumPoints()>=1&&(e=t.getCoordinateN(0)),this.validErr=new Ie(Ie.RING_NOT_CLOSED,e)}},checkShellsNotNested:function(t,e){for(var n=0;n<t.getNumGeometries();n++)for(var l=t.getGeometryN(n),h=l.getExteriorRing(),p=0;p<t.getNumGeometries();p++)if(n!==p){var x=t.getGeometryN(p);if(this.checkShellNotNested(h,x,e),this.validErr!==null)return null}},interfaces_:function(){return[]},getClass:function(){return qr}}),qr.findPtNotNode=function(t,e,n){for(var l=n.findEdge(e),h=l.getEdgeIntersectionList(),p=0;p<t.length;p++){var x=t[p];if(!h.isIntersection(x))return x}return null},qr.isValid=function(){if(arguments[0]instanceof nt){var t=arguments[0],e=new qr(t);return e.isValid()}if(arguments[0]instanceof O){var n=arguments[0];return g.isNaN(n.x)||g.isInfinite(n.x)||g.isNaN(n.y)?!1:!g.isInfinite(n.y)}};var G_=Object.freeze({IsValidOp:qr}),q_=Object.freeze({BoundaryOp:Fe,IsSimpleOp:ao,buffer:D_,distance:R_,linemerge:j_,overlay:k_,polygonize:F_,relate:B_,union:z_,valid:G_});w(il,bn.CoordinateOperation),s(il.prototype,{editCoordinates:function(t,e){if(t.length===0)return null;for(var n=new Array(t.length).fill(null),l=0;l<t.length;l++){var h=new O(t[l]);this.targetPM.makePrecise(h),n[l]=h}var p=new H(n,!1),x=p.toCoordinateArray(),I=0;e instanceof Yt&&(I=2),e instanceof ke&&(I=4);var z=n;return this.removeCollapsed&&(z=null),x.length<I?z:x},interfaces_:function(){return[]},getClass:function(){return il}}),s(fo.prototype,{fixPolygonalTopology:function(t){var e=t;this.changePrecisionModel||(e=this.changePM(t,this.targetPM));var n=e.buffer(0),l=n;return this.changePrecisionModel||(l=t.getFactory().createGeometry(n)),l},reducePointwise:function(t){var e=null;if(this.changePrecisionModel){var n=this.createFactory(t.getFactory(),this.targetPM);e=new bn(n)}else e=new bn;var l=this.removeCollapsed;t.getDimension()>=2&&(l=!0);var h=e.edit(t,new il(this.targetPM,l));return h},changePM:function(t,e){var n=this.createEditor(t.getFactory(),e);return n.edit(t,new bn.NoOpGeometryOperation)},setRemoveCollapsedComponents:function(t){this.removeCollapsed=t},createFactory:function(t,e){var n=new Xt(e,t.getSRID(),t.getCoordinateSequenceFactory());return n},setChangePrecisionModel:function(t){this.changePrecisionModel=t},reduce:function(t){var e=this.reducePointwise(t);return this.isPointwise?e:ot(e,Ke)?e.isValid()?e:this.fixPolygonalTopology(e):e},setPointwise:function(t){this.isPointwise=t},createEditor:function(t,e){if(t.getPrecisionModel()===e)return new bn;var n=this.createFactory(t,e),l=new bn(n);return l},interfaces_:function(){return[]},getClass:function(){return fo}}),fo.reduce=function(t,e){var n=new fo(e);return n.reduce(t)},fo.reducePointwise=function(t,e){var n=new fo(e);return n.setPointwise(!0),n.reduce(t)};var V_=Object.freeze({GeometryPrecisionReducer:fo});s(Ha.prototype,{simplifySection:function(t,e){if(t+1===e)return null;this.seg.p0=this.pts[t],this.seg.p1=this.pts[e];for(var n=-1,l=t,h=t+1;e>h;h++){var p=this.seg.distance(this.pts[h]);p>n&&(n=p,l=h)}if(n<=this.distanceTolerance)for(var h=t+1;e>h;h++)this.usePt[h]=!1;else this.simplifySection(t,l),this.simplifySection(l,e)},setDistanceTolerance:function(t){this.distanceTolerance=t},simplify:function(){this.usePt=new Array(this.pts.length).fill(null);for(var t=0;t<this.pts.length;t++)this.usePt[t]=!0;this.simplifySection(0,this.pts.length-1);for(var e=new H,t=0;t<this.pts.length;t++)this.usePt[t]&&e.add(new O(this.pts[t]));return e.toCoordinateArray()},interfaces_:function(){return[]},getClass:function(){return Ha}}),Ha.simplify=function(t,e){var n=new Ha(t);return n.setDistanceTolerance(e),n.simplify()},s(Ko.prototype,{setEnsureValid:function(t){this.isEnsureValidTopology=t},getResultGeometry:function(){return this.inputGeom.isEmpty()?this.inputGeom.copy():new Za(this.isEnsureValidTopology,this.distanceTolerance).transform(this.inputGeom)},setDistanceTolerance:function(t){if(0>t)throw new f;this.distanceTolerance=t},interfaces_:function(){return[]},getClass:function(){return Ko}}),Ko.simplify=function(t,e){var n=new Ko(t);return n.setDistanceTolerance(e),n.getResultGeometry()},w(Za,Tn),s(Za.prototype,{transformPolygon:function(t,e){if(t.isEmpty())return null;var n=Tn.prototype.transformPolygon.call(this,t,e);return e instanceof Je?n:this.createValidArea(n)},createValidArea:function(t){return this.isEnsureValidTopology?t.buffer(0):t},transformCoordinates:function(t,e){var n=t.toCoordinateArray(),l=null;return l=n.length===0?new Array(0).fill(null):Ha.simplify(n,this.distanceTolerance),this.factory.getCoordinateSequenceFactory().create(l)},transformMultiPolygon:function(t,e){var n=Tn.prototype.transformMultiPolygon.call(this,t,e);return this.createValidArea(n)},transformLinearRing:function(t,e){var n=e instanceof _e,l=Tn.prototype.transformLinearRing.call(this,t,e);return!n||l instanceof ke?l:null},interfaces_:function(){return[]},getClass:function(){return Za}}),Ko.DPTransformer=Za,w(Wa,re),s(Wa.prototype,{getIndex:function(){return this.index},getParent:function(){return this.parent},interfaces_:function(){return[]},getClass:function(){return Wa}}),s(fs.prototype,{addToResult:function(t){this.resultSegs.add(t)},asLineString:function(){return this.parentLine.getFactory().createLineString(fs.extractCoordinates(this.resultSegs))},getResultSize:function(){var t=this.resultSegs.size();return t===0?0:t+1},getParent:function(){return this.parentLine},getSegment:function(t){return this.segs[t]},getParentCoordinates:function(){return this.parentLine.getCoordinates()},getMinimumSize:function(){return this.minimumSize},asLinearRing:function(){return this.parentLine.getFactory().createLinearRing(fs.extractCoordinates(this.resultSegs))},getSegments:function(){return this.segs},init:function(){var t=this.parentLine.getCoordinates();this.segs=new Array(t.length-1).fill(null);for(var e=0;e<t.length-1;e++){var n=new Wa(t[e],t[e+1],this.parentLine,e);this.segs[e]=n}},getResultCoordinates:function(){return fs.extractCoordinates(this.resultSegs)},interfaces_:function(){return[]},getClass:function(){return fs}}),fs.extractCoordinates=function(t){for(var e=new Array(t.size()+1).fill(null),n=null,l=0;l<t.size();l++)n=t.get(l),e[l]=n.p0;return e[e.length-1]=n.p1,e},s(Jo.prototype,{remove:function(t){this.index.remove(new U(t.p0,t.p1),t)},add:function(){if(arguments[0]instanceof fs)for(var t=arguments[0],e=t.getSegments(),n=0;n<e.length;n++){var l=e[n];this.add(l)}else if(arguments[0]instanceof re){var h=arguments[0];this.index.insert(new U(h.p0,h.p1),h)}},query:function(t){var e=new U(t.p0,t.p1),n=new sf(t);this.index.query(e,n);var l=n.getItems();return l},interfaces_:function(){return[]},getClass:function(){return Jo}}),s(sf.prototype,{visitItem:function(t){var e=t;U.intersects(e.p0,e.p1,this.querySeg.p0,this.querySeg.p1)&&this.items.add(t)},getItems:function(){return this.items},interfaces_:function(){return[Pi]},getClass:function(){return sf}}),s(Ya.prototype,{flatten:function(t,e){var n=this.linePts[t],l=this.linePts[e],h=new re(n,l);return this.remove(this.line,t,e),this.outputIndex.add(h),h},hasBadIntersection:function(t,e,n){return this.hasBadOutputIntersection(n)?!0:!!this.hasBadInputIntersection(t,e,n)},setDistanceTolerance:function(t){this.distanceTolerance=t},simplifySection:function(t,e,n){n+=1;var l=new Array(2).fill(null);if(t+1===e){var h=this.line.getSegment(t);return this.line.addToResult(h),null}var p=!0;if(this.line.getResultSize()<this.line.getMinimumSize()){var x=n+1;x<this.line.getMinimumSize()&&(p=!1)}var I=new Array(1).fill(null),z=this.findFurthestPoint(this.linePts,t,e,I);I[0]>this.distanceTolerance&&(p=!1);var X=new re;if(X.p0=this.linePts[t],X.p1=this.linePts[e],l[0]=t,l[1]=e,this.hasBadIntersection(this.line,l,X)&&(p=!1),p){var h=this.flatten(t,e);return this.line.addToResult(h),null}this.simplifySection(t,z,n),this.simplifySection(z,e,n)},hasBadOutputIntersection:function(t){for(var e=this.outputIndex.query(t),n=e.iterator();n.hasNext();){var l=n.next();if(this.hasInteriorIntersection(l,t))return!0}return!1},findFurthestPoint:function(t,e,n,l){var h=new re;h.p0=t[e],h.p1=t[n];for(var p=-1,x=e,I=e+1;n>I;I++){var z=t[I],X=h.distance(z);X>p&&(p=X,x=I)}return l[0]=p,x},simplify:function(t){this.line=t,this.linePts=t.getParentCoordinates(),this.simplifySection(0,this.linePts.length-1,0)},remove:function(t,e,n){for(var l=e;n>l;l++){var h=t.getSegment(l);this.inputIndex.remove(h)}},hasInteriorIntersection:function(t,e){return this.li.computeIntersection(t.p0,t.p1,e.p0,e.p1),this.li.isInteriorIntersection()},hasBadInputIntersection:function(t,e,n){for(var l=this.inputIndex.query(n),h=l.iterator();h.hasNext();){var p=h.next();if(this.hasInteriorIntersection(p,n)){if(Ya.isInLineSection(t,e,p))continue;return!0}}return!1},interfaces_:function(){return[]},getClass:function(){return Ya}}),Ya.isInLineSection=function(t,e,n){if(n.getParent()!==t.getParent())return!1;var l=n.getIndex();return l>=e[0]&&l<e[1]},s(of.prototype,{setDistanceTolerance:function(t){this.distanceTolerance=t},simplify:function(t){for(var e=t.iterator();e.hasNext();)this.inputIndex.add(e.next());for(var e=t.iterator();e.hasNext();){var n=new Ya(this.inputIndex,this.outputIndex);n.setDistanceTolerance(this.distanceTolerance),n.simplify(e.next())}},interfaces_:function(){return[]},getClass:function(){return of}}),s(go.prototype,{getResultGeometry:function(){if(this.inputGeom.isEmpty())return this.inputGeom.copy();this.linestringMap=new on,this.inputGeom.apply(new sl(this)),this.lineSimplifier.simplify(this.linestringMap.values());var t=new Xa(this.linestringMap).transform(this.inputGeom);return t},setDistanceTolerance:function(t){if(0>t)throw new f;this.lineSimplifier.setDistanceTolerance(t)},interfaces_:function(){return[]},getClass:function(){return go}}),go.simplify=function(t,e){var n=new go(t);return n.setDistanceTolerance(e),n.getResultGeometry()},w(Xa,Tn),s(Xa.prototype,{transformCoordinates:function(t,e){if(t.size()===0)return null;if(e instanceof Yt){var n=this.linestringMap.get(e);return this.createCoordinateSequence(n.getResultCoordinates())}return Tn.prototype.transformCoordinates.call(this,t,e)},interfaces_:function(){return[]},getClass:function(){return Xa}}),s(sl.prototype,{filter:function(t){if(t instanceof Yt){var e=t;if(e.isEmpty())return null;var n=e.isClosed()?4:2,l=new fs(e,n);this.tps.linestringMap.put(e,l)}},interfaces_:function(){return[bt]},getClass:function(){return sl}}),go.LineStringTransformer=Xa,go.LineStringMapBuilderFilter=sl;var U_=Object.freeze({DouglasPeuckerSimplifier:Ko,TopologyPreservingSimplifier:go});s(Qo.prototype,{splitAt:function(){if(arguments.length===1){var t=arguments[0],e=this.minimumLen/this.segLen;if(t.distance(this.seg.p0)<this.minimumLen)return this.splitPt=this.seg.pointAlong(e),null;if(t.distance(this.seg.p1)<this.minimumLen)return this.splitPt=Qo.pointAlongReverse(this.seg,e),null;this.splitPt=t}else if(arguments.length===2){var n=arguments[0],l=arguments[1],h=this.getConstrainedLength(n),p=h/this.segLen;l.equals2D(this.seg.p0)?this.splitPt=this.seg.pointAlong(p):this.splitPt=Qo.pointAlongReverse(this.seg,p)}},setMinimumLength:function(t){this.minimumLen=t},getConstrainedLength:function(t){return t<this.minimumLen?this.minimumLen:t},getSplitPoint:function(){return this.splitPt},interfaces_:function(){return[]},getClass:function(){return Qo}}),Qo.pointAlongReverse=function(t,e){var n=new O;return n.x=t.p1.x-e*(t.p1.x-t.p0.x),n.y=t.p1.y-e*(t.p1.y-t.p0.y),n},s(af.prototype,{findSplitPoint:function(t,e){},interfaces_:function(){return[]},getClass:function(){return af}}),s(Ka.prototype,{findSplitPoint:function(t,e){var n=t.getLineSegment(),l=n.getLength(),h=l/2,p=new Qo(n),x=Ka.projectedSplitPoint(t,e),I=2*x.distance(e)*.8,z=I;return z>h&&(z=h),p.setMinimumLength(z),p.splitAt(x),p.getSplitPoint()},interfaces_:function(){return[af]},getClass:function(){return Ka}}),Ka.projectedSplitPoint=function(t,e){var n=t.getLineSegment(),l=n.project(e);return l},s(Qe.prototype,{interfaces_:function(){return[]},getClass:function(){return Qe}}),Qe.triArea=function(t,e,n){return(e.x-t.x)*(n.y-t.y)-(e.y-t.y)*(n.x-t.x)},Qe.isInCircleDDNormalized=function(t,e,n,l){var h=D.valueOf(t.x).selfSubtract(l.x),p=D.valueOf(t.y).selfSubtract(l.y),x=D.valueOf(e.x).selfSubtract(l.x),I=D.valueOf(e.y).selfSubtract(l.y),z=D.valueOf(n.x).selfSubtract(l.x),X=D.valueOf(n.y).selfSubtract(l.y),lt=h.multiply(I).selfSubtract(x.multiply(p)),ft=x.multiply(X).selfSubtract(z.multiply(I)),Et=z.multiply(p).selfSubtract(h.multiply(X)),qt=h.multiply(h).selfAdd(p.multiply(p)),te=x.multiply(x).selfAdd(I.multiply(I)),oe=z.multiply(z).selfAdd(X.multiply(X)),Xe=qt.selfMultiply(ft).selfAdd(te.selfMultiply(Et)).selfAdd(oe.selfMultiply(lt)),Cn=Xe.doubleValue()>0;return Cn},Qe.checkRobustInCircle=function(t,e,n,l){var h=Qe.isInCircleNonRobust(t,e,n,l),p=Qe.isInCircleDDSlow(t,e,n,l),x=Qe.isInCircleCC(t,e,n,l),I=we.circumcentre(t,e,n);et.out.println("p radius diff a = "+Math.abs(l.distance(I)-t.distance(I))/t.distance(I)),h===p&&h===x||(et.out.println("inCircle robustness failure (double result = "+h+", DD result = "+p+", CC result = "+x+")"),et.out.println(vn.toLineString(new Z([t,e,n,l]))),et.out.println("Circumcentre = "+vn.toPoint(I)+" radius = "+t.distance(I)),et.out.println("p radius diff a = "+Math.abs(l.distance(I)/t.distance(I)-1)),et.out.println("p radius diff b = "+Math.abs(l.distance(I)/e.distance(I)-1)),et.out.println("p radius diff c = "+Math.abs(l.distance(I)/n.distance(I)-1)),et.out.println())},Qe.isInCircleDDFast=function(t,e,n,l){var h=D.sqr(t.x).selfAdd(D.sqr(t.y)).selfMultiply(Qe.triAreaDDFast(e,n,l)),p=D.sqr(e.x).selfAdd(D.sqr(e.y)).selfMultiply(Qe.triAreaDDFast(t,n,l)),x=D.sqr(n.x).selfAdd(D.sqr(n.y)).selfMultiply(Qe.triAreaDDFast(t,e,l)),I=D.sqr(l.x).selfAdd(D.sqr(l.y)).selfMultiply(Qe.triAreaDDFast(t,e,n)),z=h.selfSubtract(p).selfAdd(x).selfSubtract(I),X=z.doubleValue()>0;return X},Qe.isInCircleCC=function(t,e,n,l){var h=we.circumcentre(t,e,n),p=t.distance(h),x=l.distance(h)-p;return 0>=x},Qe.isInCircleNormalized=function(t,e,n,l){var h=t.x-l.x,p=t.y-l.y,x=e.x-l.x,I=e.y-l.y,z=n.x-l.x,X=n.y-l.y,lt=h*I-x*p,ft=x*X-z*I,Et=z*p-h*X,qt=h*h+p*p,te=x*x+I*I,oe=z*z+X*X,Xe=qt*ft+te*Et+oe*lt;return Xe>0},Qe.isInCircleDDSlow=function(t,e,n,l){var h=D.valueOf(l.x),p=D.valueOf(l.y),x=D.valueOf(t.x),I=D.valueOf(t.y),z=D.valueOf(e.x),X=D.valueOf(e.y),lt=D.valueOf(n.x),ft=D.valueOf(n.y),Et=x.multiply(x).add(I.multiply(I)).multiply(Qe.triAreaDDSlow(z,X,lt,ft,h,p)),qt=z.multiply(z).add(X.multiply(X)).multiply(Qe.triAreaDDSlow(x,I,lt,ft,h,p)),te=lt.multiply(lt).add(ft.multiply(ft)).multiply(Qe.triAreaDDSlow(x,I,z,X,h,p)),oe=h.multiply(h).add(p.multiply(p)).multiply(Qe.triAreaDDSlow(x,I,z,X,lt,ft)),Xe=Et.subtract(qt).add(te).subtract(oe),Cn=Xe.doubleValue()>0;return Cn},Qe.isInCircleNonRobust=function(t,e,n,l){var h=(t.x*t.x+t.y*t.y)*Qe.triArea(e,n,l)-(e.x*e.x+e.y*e.y)*Qe.triArea(t,n,l)+(n.x*n.x+n.y*n.y)*Qe.triArea(t,e,l)-(l.x*l.x+l.y*l.y)*Qe.triArea(t,e,n)>0;return h},Qe.isInCircleRobust=function(t,e,n,l){return Qe.isInCircleNormalized(t,e,n,l)},Qe.triAreaDDSlow=function(t,e,n,l,h,p){return n.subtract(t).multiply(p.subtract(e)).subtract(l.subtract(e).multiply(h.subtract(t)))},Qe.triAreaDDFast=function(t,e,n){var l=D.valueOf(e.x).selfSubtract(t.x).selfMultiply(D.valueOf(n.y).selfSubtract(t.y)),h=D.valueOf(e.y).selfSubtract(t.y).selfMultiply(D.valueOf(n.x).selfSubtract(t.x));return l.selfSubtract(h)},s(qe.prototype,{circleCenter:function(t,e){var n=new qe(this.getX(),this.getY()),l=this.bisector(n,t),h=this.bisector(t,e),p=new st(l,h),x=null;try{x=new qe(p.getX(),p.getY())}catch(I){if(!(I instanceof Y))throw I;et.err.println("a: "+n+"  b: "+t+"  c: "+e),et.err.println(I)}finally{}return x},dot:function(t){return this.p.x*t.getX()+this.p.y*t.getY()},magn:function(){return Math.sqrt(this.p.x*this.p.x+this.p.y*this.p.y)},getZ:function(){return this.p.z},bisector:function(t,e){var n=e.getX()-t.getX(),l=e.getY()-t.getY(),h=new st(t.getX()+n/2,t.getY()+l/2,1),p=new st(t.getX()-l+n/2,t.getY()+n+l/2,1);return new st(h,p)},equals:function(){if(arguments.length===1){var t=arguments[0];return this.p.x===t.getX()&&this.p.y===t.getY()}if(arguments.length===2){var e=arguments[0],n=arguments[1];return this.p.distance(e.getCoordinate())<n}},getCoordinate:function(){return this.p},isInCircle:function(t,e,n){return Qe.isInCircleRobust(t.p,e.p,n.p,this.p)},interpolateZValue:function(t,e,n){var l=t.getX(),h=t.getY(),p=e.getX()-l,x=n.getX()-l,I=e.getY()-h,z=n.getY()-h,X=p*z-x*I,lt=this.getX()-l,ft=this.getY()-h,Et=(z*lt-x*ft)/X,qt=(-I*lt+p*ft)/X,te=t.getZ()+Et*(e.getZ()-t.getZ())+qt*(n.getZ()-t.getZ());return te},midPoint:function(t){var e=(this.p.x+t.getX())/2,n=(this.p.y+t.getY())/2,l=(this.p.z+t.getZ())/2;return new qe(e,n,l)},rightOf:function(t){return this.isCCW(t.dest(),t.orig())},isCCW:function(t,e){return(t.p.x-this.p.x)*(e.p.y-this.p.y)-(t.p.y-this.p.y)*(e.p.x-this.p.x)>0},getX:function(){return this.p.x},crossProduct:function(t){return this.p.x*t.getY()-this.p.y*t.getX()},setZ:function(t){this.p.z=t},times:function(t){return new qe(t*this.p.x,t*this.p.y)},cross:function(){return new qe(this.p.y,-this.p.x)},leftOf:function(t){return this.isCCW(t.orig(),t.dest())},toString:function(){return"POINT ("+this.p.x+" "+this.p.y+")"},sub:function(t){return new qe(this.p.x-t.getX(),this.p.y-t.getY())},getY:function(){return this.p.y},classify:function(t,e){var n=this,l=e.sub(t),h=n.sub(t),p=l.crossProduct(h);return p>0?qe.LEFT:0>p?qe.RIGHT:l.getX()*h.getX()<0||l.getY()*h.getY()<0?qe.BEHIND:l.magn()<h.magn()?qe.BEYOND:t.equals(n)?qe.ORIGIN:e.equals(n)?qe.DESTINATION:qe.BETWEEN},sum:function(t){return new qe(this.p.x+t.getX(),this.p.y+t.getY())},distance:function(t,e){return Math.sqrt(Math.pow(e.getX()-t.getX(),2)+Math.pow(e.getY()-t.getY(),2))},circumRadiusRatio:function(t,e){var n=this.circleCenter(t,e),l=this.distance(n,t),h=this.distance(this,t),p=this.distance(t,e);return h>p&&(h=p),p=this.distance(e,this),h>p&&(h=p),l/h},interfaces_:function(){return[]},getClass:function(){return qe}}),qe.interpolateZ=function(){if(arguments.length===3){var t=arguments[0],e=arguments[1],n=arguments[2],l=e.distance(n),h=t.distance(e),p=n.z-e.z,x=e.z+p*(h/l);return x}if(arguments.length===4){var I=arguments[0],z=arguments[1],X=arguments[2],lt=arguments[3],ft=z.x,Et=z.y,qt=X.x-ft,te=lt.x-ft,oe=X.y-Et,Xe=lt.y-Et,Cn=qt*Xe-te*oe,Jr=I.x-ft,vo=I.y-Et,vl=(Xe*Jr-te*vo)/Cn,yl=(-oe*Jr+qt*vo)/Cn,Cl=z.z+vl*(X.z-z.z)+yl*(lt.z-z.z);return Cl}},qe.LEFT=0,qe.RIGHT=1,qe.BEYOND=2,qe.BEHIND=3,qe.BETWEEN=4,qe.ORIGIN=5,qe.DESTINATION=6,w(zs,qe),s(zs.prototype,{getConstraint:function(){return this.constraint},setOnConstraint:function(t){this._isOnConstraint=t},merge:function(t){t._isOnConstraint&&(this._isOnConstraint=!0,this.constraint=t.constraint)},isOnConstraint:function(){return this._isOnConstraint},setConstraint:function(t){this._isOnConstraint=!0,this.constraint=t},interfaces_:function(){return[]},getClass:function(){return zs}}),s(an.prototype,{equalsNonOriented:function(t){return this.equalsOriented(t)?!0:!!this.equalsOriented(t.sym())},toLineSegment:function(){return new re(this.vertex.getCoordinate(),this.dest().getCoordinate())},dest:function(){return this.sym().orig()},oNext:function(){return this.next},equalsOriented:function(t){return!(!this.orig().getCoordinate().equals2D(t.orig().getCoordinate())||!this.dest().getCoordinate().equals2D(t.dest().getCoordinate()))},dNext:function(){return this.sym().oNext().sym()},lPrev:function(){return this.next.sym()},rPrev:function(){return this.sym().oNext()},rot:function(){return this._rot},oPrev:function(){return this._rot.next._rot},sym:function(){return this._rot._rot},setOrig:function(t){this.vertex=t},lNext:function(){return this.invRot().oNext().rot()},getLength:function(){return this.orig().getCoordinate().distance(this.dest().getCoordinate())},invRot:function(){return this._rot.sym()},setDest:function(t){this.sym().setOrig(t)},setData:function(t){this.data=t},getData:function(){return this.data},delete:function(){this._rot=null},orig:function(){return this.vertex},rNext:function(){return this._rot.next.invRot()},toString:function(){var t=this.vertex.getCoordinate(),e=this.dest().getCoordinate();return vn.toLineString(t,e)},isLive:function(){return this._rot!==null},getPrimary:function(){return this.orig().getCoordinate().compareTo(this.dest().getCoordinate())<=0?this:this.sym()},dPrev:function(){return this.invRot().oNext().invRot()},setNext:function(t){this.next=t},interfaces_:function(){return[]},getClass:function(){return an}}),an.makeEdge=function(t,e){var n=new an,l=new an,h=new an,p=new an;n._rot=l,l._rot=h,h._rot=p,p._rot=n,n.setNext(n),l.setNext(p),h.setNext(h),p.setNext(l);var x=n;return x.setOrig(t),x.setDest(e),x},an.swap=function(t){var e=t.oPrev(),n=t.sym().oPrev();an.splice(t,e),an.splice(t.sym(),n),an.splice(t,e.lNext()),an.splice(t.sym(),n.lNext()),t.setOrig(e.dest()),t.setDest(n.dest())},an.splice=function(t,e){var n=t.oNext().rot(),l=e.oNext().rot(),h=e.oNext(),p=t.oNext(),x=l.oNext(),I=n.oNext();t.setNext(h),e.setNext(p),n.setNext(x),l.setNext(I)},an.connect=function(t,e){var n=an.makeEdge(t.dest(),e.orig());return an.splice(n,t.lNext()),an.splice(n.sym(),e),n},s(Ja.prototype,{insertSite:function(t){var e=this.subdiv.locate(t);if(this.subdiv.isVertexOfEdge(e,t))return e;this.subdiv.isOnEdge(e,t.getCoordinate())&&(e=e.oPrev(),this.subdiv.delete(e.oNext()));var n=this.subdiv.makeEdge(e.orig(),t);an.splice(n,e);var l=n;do n=this.subdiv.connect(e,n.sym()),e=n.oPrev();while(e.lNext()!==l);for(;;){var h=e.oPrev();if(h.dest().rightOf(e)&&t.isInCircle(e.orig(),h.dest(),e.dest()))an.swap(e),e=e.oPrev();else{if(e.oNext()===l)return n;e=e.oNext().lPrev()}}},insertSites:function(t){for(var e=t.iterator();e.hasNext();){var n=e.next();this.insertSite(n)}},interfaces_:function(){return[]},getClass:function(){return Ja}}),s(uf.prototype,{locate:function(t){},interfaces_:function(){return[]},getClass:function(){return uf}}),s(al.prototype,{init:function(){this.lastEdge=this.findEdge()},locate:function(t){this.lastEdge.isLive()||this.init();var e=this.subdiv.locateFromEdge(t,this.lastEdge);return this.lastEdge=e,e},findEdge:function(){var t=this.subdiv.getEdges();return t.iterator().next()},interfaces_:function(){return[uf]},getClass:function(){return al}}),w($o,b),s($o.prototype,{getSegment:function(){return this.seg},interfaces_:function(){return[]},getClass:function(){return $o}}),$o.msgWithSpatial=function(t,e){return e!==null?t+" [ "+e+" ]":t},s(ta.prototype,{visit:function(t){},interfaces_:function(){return[]},getClass:function(){return ta}}),s(Ir.prototype,{getTriangleVertices:function(t){var e=new cl;return this.visitTriangles(e,t),e.getTriangleVertices()},isFrameVertex:function(t){return t.equals(this.frameVertex[0])||t.equals(this.frameVertex[1])?!0:!!t.equals(this.frameVertex[2])},isVertexOfEdge:function(t,e){return!(!e.equals(t.orig(),this.tolerance)&&!e.equals(t.dest(),this.tolerance))},connect:function(t,e){var n=an.connect(t,e);return this.quadEdges.add(n),n},getVoronoiCellPolygon:function(t,e){var n=new F,l=t;do{var h=t.rot().orig().getCoordinate();n.add(h),t=t.oPrev()}while(t!==l);var p=new H;p.addAll(n,!1),p.closeRing(),p.size()<4&&(et.out.println(p),p.add(p.get(p.size()-1),!0));var x=p.toCoordinateArray(),I=e.createPolygon(e.createLinearRing(x),null),z=l.orig();return I.setUserData(z.getCoordinate()),I},setLocator:function(t){this.locator=t},initSubdiv:function(){var t=this.makeEdge(this.frameVertex[0],this.frameVertex[1]),e=this.makeEdge(this.frameVertex[1],this.frameVertex[2]);an.splice(t.sym(),e);var n=this.makeEdge(this.frameVertex[2],this.frameVertex[0]);return an.splice(e.sym(),n),an.splice(n.sym(),t),t},isFrameBorderEdge:function(t){var e=new Array(3).fill(null);Ir.getTriangleEdges(t,e);var n=new Array(3).fill(null);Ir.getTriangleEdges(t.sym(),n);var l=t.lNext().dest();if(this.isFrameVertex(l))return!0;var h=t.sym().lNext().dest();return!!this.isFrameVertex(h)},makeEdge:function(t,e){var n=an.makeEdge(t,e);return this.quadEdges.add(n),n},visitTriangles:function(t,e){this.visitedKey++;var n=new Pn;n.push(this.startingEdge);for(var l=new gt;!n.empty();){var h=n.pop();if(!l.contains(h)){var p=this.fetchTriangleToVisit(h,n,e,l);p!==null&&t.visit(p)}}},isFrameEdge:function(t){return!(!this.isFrameVertex(t.orig())&&!this.isFrameVertex(t.dest()))},isOnEdge:function(t,e){this.seg.setCoordinates(t.orig().getCoordinate(),t.dest().getCoordinate());var n=this.seg.distance(e);return n<this.edgeCoincidenceTolerance},getEnvelope:function(){return new U(this.frameEnv)},createFrame:function(t){var e=t.getWidth(),n=t.getHeight(),l=0;l=e>n?10*e:10*n,this.frameVertex[0]=new qe((t.getMaxX()+t.getMinX())/2,t.getMaxY()+l),this.frameVertex[1]=new qe(t.getMinX()-l,t.getMinY()-l),this.frameVertex[2]=new qe(t.getMaxX()+l,t.getMinY()-l),this.frameEnv=new U(this.frameVertex[0].getCoordinate(),this.frameVertex[1].getCoordinate()),this.frameEnv.expandToInclude(this.frameVertex[2].getCoordinate())},getTriangleCoordinates:function(t){var e=new hl;return this.visitTriangles(e,t),e.getTriangles()},getVertices:function(t){for(var e=new gt,n=this.quadEdges.iterator();n.hasNext();){var l=n.next(),h=l.orig();!t&&this.isFrameVertex(h)||e.add(h);var p=l.dest();!t&&this.isFrameVertex(p)||e.add(p)}return e},fetchTriangleToVisit:function(t,e,n,l){var h=t,p=0,x=!1;do{this.triEdges[p]=h,this.isFrameEdge(h)&&(x=!0);var I=h.sym();l.contains(I)||e.push(I),l.add(h),p++,h=h.lNext()}while(h!==t);return x&&!n?null:this.triEdges},getEdges:function(){if(arguments.length===0)return this.quadEdges;if(arguments.length===1){for(var t=arguments[0],e=this.getPrimaryEdges(!1),n=new Array(e.size()).fill(null),l=0,h=e.iterator();h.hasNext();){var p=h.next();n[l++]=t.createLineString([p.orig().getCoordinate(),p.dest().getCoordinate()])}return t.createMultiLineString(n)}},getVertexUniqueEdges:function(t){for(var e=new F,n=new gt,l=this.quadEdges.iterator();l.hasNext();){var h=l.next(),p=h.orig();n.contains(p)||(n.add(p),!t&&this.isFrameVertex(p)||e.add(h));var x=h.sym(),I=x.orig();n.contains(I)||(n.add(I),!t&&this.isFrameVertex(I)||e.add(x))}return e},getTriangleEdges:function(t){var e=new ll;return this.visitTriangles(e,t),e.getTriangleEdges()},getPrimaryEdges:function(t){this.visitedKey++;var e=new F,n=new Pn;n.push(this.startingEdge);for(var l=new gt;!n.empty();){var h=n.pop();if(!l.contains(h)){var p=h.getPrimary();!t&&this.isFrameEdge(p)||e.add(p),n.push(h.oNext()),n.push(h.sym().oNext()),l.add(h),l.add(h.sym())}}return e},delete:function(t){an.splice(t,t.oPrev()),an.splice(t.sym(),t.sym().oPrev());var e=t.sym(),n=t.rot(),l=t.rot().sym();this.quadEdges.remove(t),this.quadEdges.remove(e),this.quadEdges.remove(n),this.quadEdges.remove(l),t.delete(),e.delete(),n.delete(),l.delete()},locateFromEdge:function(t,e){for(var n=0,l=this.quadEdges.size(),h=e;;){if(n++,n>l)throw new $o(h.toLineSegment());if(t.equals(h.orig())||t.equals(h.dest()))break;if(t.rightOf(h))h=h.sym();else if(t.rightOf(h.oNext())){if(t.rightOf(h.dPrev()))break;h=h.dPrev()}else h=h.oNext()}return h},getTolerance:function(){return this.tolerance},getVoronoiCellPolygons:function(t){this.visitTriangles(new ul,!0);for(var e=new F,n=this.getVertexUniqueEdges(!1),l=n.iterator();l.hasNext();){var h=l.next();e.add(this.getVoronoiCellPolygon(h,t))}return e},getVoronoiDiagram:function(t){var e=this.getVoronoiCellPolygons(t);return t.createGeometryCollection(Xt.toGeometryArray(e))},getTriangles:function(t){for(var e=this.getTriangleCoordinates(!1),n=new Array(e.size()).fill(null),l=0,h=e.iterator();h.hasNext();){var p=h.next();n[l++]=t.createPolygon(t.createLinearRing(p),null)}return t.createGeometryCollection(n)},insertSite:function(t){var e=this.locate(t);if(t.equals(e.orig(),this.tolerance)||t.equals(e.dest(),this.tolerance))return e;var n=this.makeEdge(e.orig(),t);an.splice(n,e);var l=n;do n=this.connect(e,n.sym()),e=n.oPrev();while(e.lNext()!==l);return l},locate:function(){if(arguments.length===1){if(arguments[0]instanceof qe){var t=arguments[0];return this.locator.locate(t)}if(arguments[0]instanceof O){var e=arguments[0];return this.locator.locate(new qe(e))}}else if(arguments.length===2){var n=arguments[0],l=arguments[1],h=this.locator.locate(new qe(n));if(h===null)return null;var p=h;h.dest().getCoordinate().equals2D(n)&&(p=h.sym());var x=p;do{if(x.dest().getCoordinate().equals2D(l))return x;x=x.oNext()}while(x!==p);return null}},interfaces_:function(){return[]},getClass:function(){return Ir}}),Ir.getTriangleEdges=function(t,e){if(e[0]=t,e[1]=e[0].lNext(),e[2]=e[1].lNext(),e[2].lNext()!==e[0])throw new f},s(ul.prototype,{visit:function(t){for(var e=t[0].orig().getCoordinate(),n=t[1].orig().getCoordinate(),l=t[2].orig().getCoordinate(),h=we.circumcentre(e,n,l),p=new qe(h),x=0;3>x;x++)t[x].rot().setOrig(p)},interfaces_:function(){return[ta]},getClass:function(){return ul}}),s(ll.prototype,{getTriangleEdges:function(){return this.triList},visit:function(t){this.triList.add(t.clone())},interfaces_:function(){return[ta]},getClass:function(){return ll}}),s(cl.prototype,{visit:function(t){this.triList.add([t[0].orig(),t[1].orig(),t[2].orig()])},getTriangleVertices:function(){return this.triList},interfaces_:function(){return[ta]},getClass:function(){return cl}}),s(hl.prototype,{checkTriangleSize:function(t){t.length>=2?vn.toLineString(t[0],t[1]):t.length>=1&&vn.toPoint(t[0])},visit:function(t){this.coordList.clear();for(var e=0;3>e;e++){var n=t[e].orig();this.coordList.add(n.getCoordinate())}if(this.coordList.size()>0){this.coordList.closeRing();var l=this.coordList.toCoordinateArray();if(l.length!==4)return null;this.triCoords.add(l)}},getTriangles:function(){return this.triCoords},interfaces_:function(){return[ta]},getClass:function(){return hl}}),Ir.TriangleCircumcentreVisitor=ul,Ir.TriangleEdgesListVisitor=ll,Ir.TriangleVertexListVisitor=cl,Ir.TriangleCoordinatesVisitor=hl,Ir.EDGE_COINCIDENCE_TOL_FACTOR=1e3,s(mo.prototype,{getLineSegment:function(){return this.ls},getEndZ:function(){var t=this.ls.getCoordinate(1);return t.z},getStartZ:function(){var t=this.ls.getCoordinate(0);return t.z},intersection:function(t){return this.ls.intersection(t.getLineSegment())},getStart:function(){return this.ls.getCoordinate(0)},getEnd:function(){return this.ls.getCoordinate(1)},getEndY:function(){var t=this.ls.getCoordinate(1);return t.y},getStartX:function(){var t=this.ls.getCoordinate(0);return t.x},equalsTopo:function(t){return this.ls.equalsTopo(t.getLineSegment())},getStartY:function(){var t=this.ls.getCoordinate(0);return t.y},setData:function(t){this.data=t},getData:function(){return this.data},getEndX:function(){var t=this.ls.getCoordinate(1);return t.x},toString:function(){return this.ls.toString()},interfaces_:function(){return[]},getClass:function(){return mo}}),s(Qa.prototype,{visit:function(t){},interfaces_:function(){return[]},getClass:function(){return Qa}}),s(fl.prototype,{isRepeated:function(){return this.count>1},getRight:function(){return this.right},getCoordinate:function(){return this.p},setLeft:function(t){this.left=t},getX:function(){return this.p.x},getData:function(){return this.data},getCount:function(){return this.count},getLeft:function(){return this.left},getY:function(){return this.p.y},increment:function(){this.count=this.count+1},setRight:function(t){this.right=t},interfaces_:function(){return[]},getClass:function(){return fl}}),s(po.prototype,{insert:function(){if(arguments.length===1){var t=arguments[0];return this.insert(t,null)}if(arguments.length===2){var e=arguments[0],n=arguments[1];if(this.root===null)return this.root=new fl(e,n),this.root;if(this.tolerance>0){var l=this.findBestMatchNode(e);if(l!==null)return l.increment(),l}return this.insertExact(e,n)}},query:function(){var t=arguments,e=this;if(arguments.length===1){var n=arguments[0],l=new F;return this.query(n,l),l}if(arguments.length===2){if(arguments[0]instanceof U&&ot(arguments[1],R))(function(){var x=t[0],I=t[1];e.queryNode(e.root,x,!0,{interfaces_:function(){return[Qa]},visit:function(z){I.add(z)}})})();else if(arguments[0]instanceof U&&ot(arguments[1],Qa)){var h=arguments[0],p=arguments[1];this.queryNode(this.root,h,!0,p)}}},queryNode:function(t,e,n,l){if(t===null)return null;var h=null,p=null,x=null;n?(h=e.getMinX(),p=e.getMaxX(),x=t.getX()):(h=e.getMinY(),p=e.getMaxY(),x=t.getY());var I=x>h,z=p>=x;I&&this.queryNode(t.getLeft(),e,!n,l),e.contains(t.getCoordinate())&&l.visit(t),z&&this.queryNode(t.getRight(),e,!n,l)},findBestMatchNode:function(t){var e=new dl(t,this.tolerance);return this.query(e.queryEnvelope(),e),e.getNode()},isEmpty:function(){return this.root===null},insertExact:function(t,e){for(var n=this.root,l=this.root,h=!0,p=!0;n!==null;){if(n!==null){var x=t.distance(n.getCoordinate())<=this.tolerance;if(x)return n.increment(),n}p=h?t.x<n.getX():t.y<n.getY(),l=n,n=p?n.getLeft():n.getRight(),h=!h}this.numberOfNodes=this.numberOfNodes+1;var I=new fl(t,e);return p?l.setLeft(I):l.setRight(I),I},interfaces_:function(){return[]},getClass:function(){return po}}),po.toCoordinates=function(){if(arguments.length===1){var t=arguments[0];return po.toCoordinates(t,!1)}if(arguments.length===2){for(var e=arguments[0],n=arguments[1],l=new H,h=e.iterator();h.hasNext();)for(var p=h.next(),x=n?p.getCount():1,I=0;x>I;I++)l.add(p.getCoordinate(),!0);return l.toCoordinateArray()}},s(dl.prototype,{visit:function(t){var e=this.p.distance(t.getCoordinate()),n=e<=this.tolerance;if(!n)return null;var l=!1;(this.matchNode===null||e<this.matchDist||this.matchNode!==null&&e===this.matchDist&&t.getCoordinate().compareTo(this.matchNode.getCoordinate())<1)&&(l=!0),l&&(this.matchNode=t,this.matchDist=e)},queryEnvelope:function(){var t=new U(this.p);return t.expandBy(this.tolerance),t},getNode:function(){return this.matchNode},interfaces_:function(){return[Qa]},getClass:function(){return dl}}),po.BestMatchVisitor=dl,s(Gs.prototype,{getInitialVertices:function(){return this.initialVertices},getKDT:function(){return this.kdt},enforceConstraints:function(){this.addConstraintVertices();var t=0,e=0;do e=this.enforceGabriel(this.segments),t++;while(e>0&&t<Gs.MAX_SPLIT_ITER)},insertSites:function(t){for(var e=t.iterator();e.hasNext();){var n=e.next();this.insertSite(n)}},getVertexFactory:function(){return this.vertexFactory},getPointArray:function(){for(var t=new Array(this.initialVertices.size()+this.segVertices.size()).fill(null),e=0,n=this.initialVertices.iterator();n.hasNext();){var l=n.next();t[e++]=l.getCoordinate()}for(var h=this.segVertices.iterator();h.hasNext();){var l=h.next();t[e++]=l.getCoordinate()}return t},setConstraints:function(t,e){this.segments=t,this.segVertices=e},computeConvexHull:function(){var t=new Xt,e=this.getPointArray(),n=new xn(e,t);this.convexHull=n.getConvexHull()},addConstraintVertices:function(){this.computeConvexHull(),this.insertSites(this.segVertices)},findNonGabrielPoint:function(t){var e=t.getStart(),n=t.getEnd(),l=new O((e.x+n.x)/2,(e.y+n.y)/2),h=e.distance(l),p=new U(l);p.expandBy(h);for(var x=this.kdt.query(p),I=null,z=g.MAX_VALUE,X=x.iterator();X.hasNext();){var lt=X.next(),ft=lt.getCoordinate();if(!ft.equals2D(e)&&!ft.equals2D(n)){var Et=l.distance(ft);if(h>Et){var qt=Et;(I===null||z>qt)&&(I=ft,z=qt)}}}return I},getConstraintSegments:function(){return this.segments},setSplitPointFinder:function(t){this.splitFinder=t},getConvexHull:function(){return this.convexHull},getTolerance:function(){return this.tolerance},enforceGabriel:function(t){for(var e=new F,n=0,l=new F,h=t.iterator();h.hasNext();){var p=h.next(),x=this.findNonGabrielPoint(p);if(x!==null){this.splitPt=this.splitFinder.findSplitPoint(p,x);var I=this.createVertex(this.splitPt,p),z=(this.insertSite(I),new mo(p.getStartX(),p.getStartY(),p.getStartZ(),I.getX(),I.getY(),I.getZ(),p.getData())),X=new mo(I.getX(),I.getY(),I.getZ(),p.getEndX(),p.getEndY(),p.getEndZ(),p.getData());e.add(z),e.add(X),l.add(p),n+=1}}return t.removeAll(l),t.addAll(e),n},createVertex:function(){if(arguments.length===1){var t=arguments[0],e=null;return e=this.vertexFactory!==null?this.vertexFactory.createVertex(t,null):new zs(t)}if(arguments.length===2){var n=arguments[0],l=arguments[1],e=null;return e=this.vertexFactory!==null?this.vertexFactory.createVertex(n,l):new zs(n),e.setOnConstraint(!0),e}},getSubdivision:function(){return this.subdiv},computeBoundingBox:function(){var t=Gs.computeVertexEnvelope(this.initialVertices),e=Gs.computeVertexEnvelope(this.segVertices),n=new U(t);n.expandToInclude(e);var l=.2*n.getWidth(),h=.2*n.getHeight(),p=Math.max(l,h);this.computeAreaEnv=new U(n),this.computeAreaEnv.expandBy(p)},setVertexFactory:function(t){this.vertexFactory=t},formInitialDelaunay:function(){this.computeBoundingBox(),this.subdiv=new Ir(this.computeAreaEnv,this.tolerance),this.subdiv.setLocator(new al(this.subdiv)),this.incDel=new Ja(this.subdiv),this.insertSites(this.initialVertices)},insertSite:function(){if(arguments[0]instanceof zs){var t=arguments[0],e=this.kdt.insert(t.getCoordinate(),t);if(e.isRepeated()){var n=e.getData();return n.merge(t),n}return this.incDel.insertSite(t),t}if(arguments[0]instanceof O){var l=arguments[0];this.insertSite(this.createVertex(l))}},interfaces_:function(){return[]},getClass:function(){return Gs}}),Gs.computeVertexEnvelope=function(t){for(var e=new U,n=t.iterator();n.hasNext();){var l=n.next();e.expandToInclude(l.getCoordinate())}return e},Gs.MAX_SPLIT_ITER=99,s(Xn.prototype,{create:function(){if(this.subdiv!==null)return null;var t=Xn.envelope(this.siteCoords),e=Xn.toVertices(this.siteCoords);this.subdiv=new Ir(t,this.tolerance);var n=new Ja(this.subdiv);n.insertSites(e)},setTolerance:function(t){this.tolerance=t},setSites:function(){if(arguments[0]instanceof nt){var t=arguments[0];this.siteCoords=Xn.extractUniqueCoordinates(t)}else if(ot(arguments[0],k)){var e=arguments[0];this.siteCoords=Xn.unique(kt.toCoordinateArray(e))}},getEdges:function(t){return this.create(),this.subdiv.getEdges(t)},getSubdivision:function(){return this.create(),this.subdiv},getTriangles:function(t){return this.create(),this.subdiv.getTriangles(t)},interfaces_:function(){return[]},getClass:function(){return Xn}}),Xn.extractUniqueCoordinates=function(t){if(t===null)return new H;var e=t.getCoordinates();return Xn.unique(e)},Xn.envelope=function(t){for(var e=new U,n=t.iterator();n.hasNext();){var l=n.next();e.expandToInclude(l)}return e},Xn.unique=function(t){var e=kt.copyDeep(t);he.sort(e);var n=new H(e,!1);return n},Xn.toVertices=function(t){for(var e=new F,n=t.iterator();n.hasNext();){var l=n.next();e.add(new qe(l))}return e},s(ea.prototype,{createSiteVertices:function(t){for(var e=new F,n=t.iterator();n.hasNext();){var l=n.next();this.constraintVertexMap.containsKey(l)||e.add(new zs(l))}return e},create:function(){if(this.subdiv!==null)return null;var t=Xn.envelope(this.siteCoords),e=new F;this.constraintLines!==null&&(t.expandToInclude(this.constraintLines.getEnvelopeInternal()),this.createVertices(this.constraintLines),e=ea.createConstraintSegments(this.constraintLines));var n=this.createSiteVertices(this.siteCoords),l=new Gs(n,this.tolerance);l.setConstraints(e,new F(this.constraintVertexMap.values())),l.formInitialDelaunay(),l.enforceConstraints(),this.subdiv=l.getSubdivision()},setTolerance:function(t){this.tolerance=t},setConstraints:function(t){this.constraintLines=t},setSites:function(t){this.siteCoords=Xn.extractUniqueCoordinates(t)},getEdges:function(t){return this.create(),this.subdiv.getEdges(t)},getSubdivision:function(){return this.create(),this.subdiv},getTriangles:function(t){return this.create(),this.subdiv.getTriangles(t)},createVertices:function(t){for(var e=t.getCoordinates(),n=0;n<e.length;n++){var l=new zs(e[n]);this.constraintVertexMap.put(e[n],l)}},interfaces_:function(){return[]},getClass:function(){return ea}}),ea.createConstraintSegments=function(){if(arguments.length===1){for(var t=arguments[0],e=Bn.getLines(t),n=new F,l=e.iterator();l.hasNext();){var h=l.next();ea.createConstraintSegments(h,n)}return n}if(arguments.length===2)for(var p=arguments[0],x=arguments[1],I=p.getCoordinates(),l=1;l<I.length;l++)x.add(new mo(I[l-1],I[l]))},s($a.prototype,{create:function(){if(this.subdiv!==null)return null;var t=Xn.envelope(this.siteCoords);this.diagramEnv=t;var e=Math.max(this.diagramEnv.getWidth(),this.diagramEnv.getHeight());this.diagramEnv.expandBy(e),this.clipEnv!==null&&this.diagramEnv.expandToInclude(this.clipEnv);var n=Xn.toVertices(this.siteCoords);this.subdiv=new Ir(t,this.tolerance);var l=new Ja(this.subdiv);l.insertSites(n)},getDiagram:function(t){this.create();var e=this.subdiv.getVoronoiDiagram(t);return $a.clipGeometryCollection(e,this.diagramEnv)},setTolerance:function(t){this.tolerance=t},setSites:function(){if(arguments[0]instanceof nt){var t=arguments[0];this.siteCoords=Xn.extractUniqueCoordinates(t)}else if(ot(arguments[0],k)){var e=arguments[0];this.siteCoords=Xn.unique(kt.toCoordinateArray(e))}},setClipEnvelope:function(t){this.clipEnv=t},getSubdivision:function(){return this.create(),this.subdiv},interfaces_:function(){return[]},getClass:function(){return $a}}),$a.clipGeometryCollection=function(t,e){for(var n=t.getFactory().toGeometry(e),l=new F,h=0;h<t.getNumGeometries();h++){var p=t.getGeometryN(h),x=null;e.contains(p.getEnvelopeInternal())?x=p:e.intersects(p.getEnvelopeInternal())&&(x=n.intersection(p),x.setUserData(p.getUserData())),x===null||x.isEmpty()||l.add(x)}return t.getFactory().createGeometryCollection(Xt.toGeometryArray(l))};var H_=Object.freeze({ConformingDelaunayTriangulationBuilder:ea,DelaunayTriangulationBuilder:Xn,VoronoiDiagramBuilder:$a});s(gl.prototype,{interfaces_:function(){return[]},getClass:function(){return gl}}),gl.union=function(t,e){if(t.isEmpty()||e.isEmpty()){if(t.isEmpty()&&e.isEmpty())return Ht.createEmptyResult(Ht.UNION,t,e,t.getFactory());if(t.isEmpty())return e.copy();if(e.isEmpty())return t.copy()}return t.checkNotGeometryCollection(t),t.checkNotGeometryCollection(e),mn.overlayOp(t,e,Ht.UNION)},s(nt.prototype,{equalsTopo:function(t){return this.getEnvelopeInternal().equals(t.getEnvelopeInternal())?Ae.relate(this,t).isEquals(this.getDimension(),t.getDimension()):!1},union:function(){if(arguments.length===0)return Bs.union(this);if(arguments.length===1){var t=arguments[0];return gl.union(this,t)}},isValid:function(){return qr.isValid(this)},intersection:function(t){if(this.isEmpty()||t.isEmpty())return Ht.createEmptyResult(Ht.INTERSECTION,this,t,this.factory);if(this.isGeometryCollection()){var e=t;return es.map(this,{interfaces_:function(){return[MapOp]},map:function(n){return n.intersection(e)}})}return this.checkNotGeometryCollection(this),this.checkNotGeometryCollection(t),mn.overlayOp(this,t,Ht.INTERSECTION)},covers:function(t){return Ae.covers(this,t)},coveredBy:function(t){return Ae.coveredBy(this,t)},touches:function(t){return Ae.touches(this,t)},intersects:function(t){return Ae.intersects(this,t)},within:function(t){return Ae.within(this,t)},overlaps:function(t){return Ae.overlaps(this,t)},disjoint:function(t){return Ae.disjoint(this,t)},crosses:function(t){return Ae.crosses(this,t)},buffer:function(){if(arguments.length===1){var t=arguments[0];return Sn.bufferOp(this,t)}if(arguments.length===2){var e=arguments[0],n=arguments[1];return Sn.bufferOp(this,e,n)}if(arguments.length===3){var l=arguments[0],h=arguments[1],p=arguments[2];return Sn.bufferOp(this,l,h,p)}},convexHull:function(){return new xn(this).getConvexHull()},relate:function(){for(var t=arguments.length,e=Array(t),n=0;t>n;n++)e[n]=arguments[n];return Ae.relate.apply(Ae,[this].concat(e))},getCentroid:function(){if(this.isEmpty())return this.factory.createPoint();var t=le.getCentroid(this);return this.createPointFromInternalCoord(t,this)},getInteriorPoint:function(){if(this.isEmpty())return this.factory.createPoint();var t=null,e=this.getDimension();if(e===0){var n=new gi(this);t=n.getInteriorPoint()}else if(e===1){var n=new Fo(this);t=n.getInteriorPoint()}else{var n=new wr(this);t=n.getInteriorPoint()}return this.createPointFromInternalCoord(t,this)},symDifference:function(t){if(this.isEmpty()||t.isEmpty()){if(this.isEmpty()&&t.isEmpty())return Ht.createEmptyResult(Ht.SYMDIFFERENCE,this,t,this.factory);if(this.isEmpty())return t.copy();if(t.isEmpty())return this.copy()}return this.checkNotGeometryCollection(this),this.checkNotGeometryCollection(t),mn.overlayOp(this,t,Ht.SYMDIFFERENCE)},createPointFromInternalCoord:function(t,e){return e.getPrecisionModel().makePrecise(t),e.getFactory().createPoint(t)},toText:function(){var t=new vn;return t.write(this)},toString:function(){this.toText()},contains:function(t){return Ae.contains(this,t)},difference:function(t){return this.isEmpty()?Ht.createEmptyResult(Ht.DIFFERENCE,this,t,this.factory):t.isEmpty()?this.copy():(this.checkNotGeometryCollection(this),this.checkNotGeometryCollection(t),mn.overlayOp(this,t,Ht.DIFFERENCE))},isSimple:function(){var t=new ao(this);return t.isSimple()},isWithinDistance:function(t,e){var n=this.getEnvelopeInternal().distance(t.getEnvelopeInternal());return n>e?!1:E.isWithinDistance(this,t,e)},distance:function(t){return E.distance(this,t)},isEquivalentClass:function(t){return this.getClass()===t.getClass()}});var Z_="1.1.2 (248dab8)";o.version=Z_,o.algorithm=O_,o.densify=N_,o.dissolve=S_,o.geom=w_,o.index=P_,o.io=M_,o.noding=A_,o.operation=q_,o.precision=V_,o.simplify=U_,o.triangulate=H_})})(Pa,Pa.exports)),Pa.exports}var uh,p0;function v0(){if(p0)return uh;p0=1;var r=Hu();return uh=function(a,o){var s=new r.io.GeoJSONReader,c=s.read(JSON.stringify(a.geometry)),f=s.read(JSON.stringify(o.geometry)),g=c.union(f),m=new r.io.GeoJSONWriter;return g=m.write(g),{type:"Feature",geometry:g,properties:a.properties}},uh}var lh,y0;function $8(){if(y0)return lh;y0=1;var r=Rc(),a=v0(),o=Pr();function s(f,g,m){if(typeof g!="number")throw new Error("maxEdge parameter is required");if(typeof m!="string")throw new Error("units parameter is required");var y=r(f),C=y.features.filter(_);y.features=C;function _(b){var w=b.geometry.coordinates[0][0],S=b.geometry.coordinates[0][1],P=b.geometry.coordinates[0][2],O=o(w,S,m),q=o(S,P,m),G=o(w,P,m);return O<=g&&q<=g&&G<=g}return c(y)}function c(f){for(var g=JSON.parse(JSON.stringify(f.features[0])),m=f.features,y=0,C=m.length;y<C;y++){var _=m[y];_.geometry&&(g=a(g,_))}return g}return lh=s,lh}var ch,C0;function tC(){if(C0)return ch;C0=1;var r=Hu();return ch=function(a,o){var s=JSON.parse(JSON.stringify(a)),c=JSON.parse(JSON.stringify(o));s.type!=="Feature"&&(s={type:"Feature",properties:{},geometry:s}),c.type!=="Feature"&&(c={type:"Feature",properties:{},geometry:c});var f=new r.io.GeoJSONReader,g=f.read(JSON.stringify(s.geometry)),m=f.read(JSON.stringify(c.geometry)),y=g.difference(m);if(!y.isEmpty()){var C=new r.io.GeoJSONWriter,_=C.write(y);return s.geometry=y,{type:"Feature",properties:s.properties,geometry:_}}},ch}var hh,_0;function eC(){if(_0)return hh;_0=1;var r=Ao();return hh=function(o,s,c,f){return o.features.forEach(function(g){var m=s.features.filter(function(y){return r(y,g)}).map(function(y){return y.properties[c]});g.properties||(g.properties={}),g.properties[f]=m}),o},hh}var fh,b0;function nC(){if(b0)return fh;b0=1;var r=Do().coordEach;return fh=function(o){return o=JSON.parse(JSON.stringify(o)),r(o,function(s){s.reverse()}),o},fh}var dh={exports:{}},x0;function rC(){return x0||(x0=1,(function(r){(function(){function a(m,y){var C=m.x-y.x,_=m.y-y.y;return C*C+_*_}function o(m,y,C){var _=y.x,b=y.y,w=C.x-_,S=C.y-b;if(w!==0||S!==0){var P=((m.x-_)*w+(m.y-b)*S)/(w*w+S*S);P>1?(_=C.x,b=C.y):P>0&&(_+=w*P,b+=S*P)}return w=m.x-_,S=m.y-b,w*w+S*S}function s(m,y){for(var C=m[0],_=[C],b,w=1,S=m.length;w<S;w++)b=m[w],a(b,C)>y&&(_.push(b),C=b);return C!==b&&_.push(b),_}function c(m,y,C,_,b){for(var w=_,S,P=y+1;P<C;P++){var O=o(m[P],m[y],m[C]);O>w&&(S=P,w=O)}w>_&&(S-y>1&&c(m,y,S,_,b),b.push(m[S]),C-S>1&&c(m,S,C,_,b))}function f(m,y){var C=m.length-1,_=[m[0]];return c(m,0,C,y,_),_.push(m[C]),_}function g(m,y,C){if(m.length<=2)return m;var _=y!==void 0?y*y:1;return m=C?m:s(m,_),m=f(m,_),m}r.exports=g,r.exports.default=g})()})(dh)),dh.exports}var gh,E0;function iC(){if(E0)return gh;E0=1;var r=rC(),a=["LineString","MultiLineString","Polygon","MultiPolygon"];gh=function(m,y,C){return m.type==="Feature"?c(o(m,y,C),m.properties):m.type==="FeatureCollection"?{type:"FeatureCollection",features:m.features.map(function(_){var b=o(_,y,C);return a.indexOf(b.type)>-1?c(b,_.properties):b})}:m.type==="GeometryCollection"?{type:"GeometryCollection",geometries:m.geometries.map(function(_){return a.indexOf(_.type)>-1?o({type:"Feature",geometry:_},y,C):_})}:m};function o(m,y,C){return m.geometry.type==="LineString"?{type:"LineString",coordinates:f(m.geometry.coordinates,y,C)}:m.geometry.type==="MultiLineString"?{type:"MultiLineString",coordinates:m.geometry.coordinates.map(function(_){return f(_,y,C)})}:m.geometry.type==="Polygon"?{type:"Polygon",coordinates:g(m.geometry.coordinates,y,C)}:m.geometry.type==="MultiPolygon"?{type:"MultiPolygon",coordinates:m.geometry.coordinates.map(function(_){return g(_,y,C)})}:m}function s(m){return m.length<3?!1:!(m.length===3&&m[2][0]===m[0][0]&&m[2][1]===m[0][1])}function c(m,y){return{type:"Feature",geometry:m,properties:y}}function f(m,y,C){return r(m.map(function(_){return{x:_[0],y:_[1]}}),y,C).map(function(_){return[_.x,_.y]})}function g(m,y,C){return m.map(function(_){var b=_.map(function(S){return{x:S[0],y:S[1]}});if(b.length<4)throw new Error("Invalid polygon");for(var w=r(b,y,C).map(function(S){return[S.x,S.y]});!s(w);)y-=y*.01,w=r(b,y,C).map(function(S){return[S.x,S.y]});return(w[w.length-1][0]!==w[0][0]||w[w.length-1][1]!==w[0][1])&&w.push(w[0]),w})}return gh}var mh,w0;function sC(){if(w0)return mh;w0=1;var r=function(a){this.points=a.points||[],this.duration=a.duration||1e4,this.sharpness=a.sharpness||.85,this.centers=[],this.controls=[],this.stepLength=a.stepLength||60,this.length=this.points.length,this.delay=0;for(var o=0;o<this.length;o++)this.points[o].z=this.points[o].z||0;for(var o=0;o<this.length-1;o++){var s=this.points[o],c=this.points[o+1];this.centers.push({x:(s.x+c.x)/2,y:(s.y+c.y)/2,z:(s.z+c.z)/2})}this.controls.push([this.points[0],this.points[0]]);for(var o=0;o<this.centers.length-1;o++){var s=this.centers[o],c=this.centers[o+1],f=this.points[o+1].x-(this.centers[o].x+this.centers[o+1].x)/2,g=this.points[o+1].y-(this.centers[o].y+this.centers[o+1].y)/2,m=this.points[o+1].z-(this.centers[o].y+this.centers[o+1].z)/2;this.controls.push([{x:(1-this.sharpness)*this.points[o+1].x+this.sharpness*(this.centers[o].x+f),y:(1-this.sharpness)*this.points[o+1].y+this.sharpness*(this.centers[o].y+g),z:(1-this.sharpness)*this.points[o+1].z+this.sharpness*(this.centers[o].z+m)},{x:(1-this.sharpness)*this.points[o+1].x+this.sharpness*(this.centers[o+1].x+f),y:(1-this.sharpness)*this.points[o+1].y+this.sharpness*(this.centers[o+1].y+g),z:(1-this.sharpness)*this.points[o+1].z+this.sharpness*(this.centers[o+1].z+m)}])}return this.controls.push([this.points[this.length-1],this.points[this.length-1]]),this.steps=this.cacheSteps(this.stepLength),this};return r.prototype.cacheSteps=function(a){var o=[],s=this.pos(0);o.push(0);for(var c=0;c<this.duration;c+=10){var f=this.pos(c),g=Math.sqrt((f.x-s.x)*(f.x-s.x)+(f.y-s.y)*(f.y-s.y)+(f.z-s.z)*(f.z-s.z));g>a&&(o.push(c),s=f)}return o},r.prototype.vector=function(a){var o=this.pos(a+10),s=this.pos(a-10);return{angle:180*Math.atan2(o.y-s.y,o.x-s.x)/3.14,speed:Math.sqrt((s.x-o.x)*(s.x-o.x)+(s.y-o.y)*(s.y-o.y)+(s.z-o.z)*(s.z-o.z))}},r.prototype.pos=function(a){function o(m,y,C,_,b){var w=function(O){var q=O*O,G=q*O;return[G,3*q*(1-O),3*O*(1-O)*(1-O),(1-O)*(1-O)*(1-O)]},S=w(m),P={x:b.x*S[0]+_.x*S[1]+C.x*S[2]+y.x*S[3],y:b.y*S[0]+_.y*S[1]+C.y*S[2]+y.y*S[3],z:b.z*S[0]+_.z*S[1]+C.z*S[2]+y.z*S[3]};return P}var s=a-this.delay;s<0&&(s=0),s>this.duration&&(s=this.duration-1);var c=s/this.duration;if(c>=1)return this.points[this.length-1];var f=Math.floor((this.points.length-1)*c),g=(this.length-1)*c-f;return o(g,this.points[f],this.controls[f][1],this.controls[f+1][0],this.points[f+1])},mh=r,mh}var ph,O0;function oC(){if(O0)return ph;O0=1;var r=Be().lineString,a=sC();return ph=function(o,s,c){var f=r([]);f.properties=o.properties;for(var g=new a({points:o.geometry.coordinates.map(function(C){return{x:C[0],y:C[1]}}),duration:s,sharpness:c}),m=0;m<g.duration;m+=10){var y=g.pos(m);Math.floor(m/100)%2===0&&f.geometry.coordinates.push([y.x,y.y])}return f},ph}var vh,N0;function aC(){if(N0)return vh;N0=1;var r=Ao();return vh=function(a,o,s,c){return a=JSON.parse(JSON.stringify(a)),o=JSON.parse(JSON.stringify(o)),a.features.forEach(function(f){f.properties||(f.properties={}),o.features.forEach(function(g){if(f.properties[c]===void 0){var m=r(f,g);m&&(f.properties[c]=g.properties[s])}})}),a},vh}var yh,S0;function uC(){if(S0)return yh;S0=1;var r=Be().featureCollection;yh=function(o,s){var c=r(a(o.features,s));return c};function a(o,s){for(var c=o.slice(0),f=o.length,g=f-s,m,y;f-- >g;)y=Math.floor((f+1)*Math.random()),m=c[y],c[y]=c[f],c[f]=m;return c.slice(g)}return yh}var Ch,L0;function I0(){if(L0)return Ch;L0=1;var r=Be().polygon;return Ch=function(a){var o=[a[0],a[1]],s=[a[0],a[3]],c=[a[2],a[3]],f=[a[2],a[1]];return r([[o,f,c,s,o]])},Ch}var _h,P0;function lC(){if(P0)return _h;P0=1;var r=Uu(),a=I0();return _h=function(o){return a(r(o))},_h}var bh,T0;function Zu(){if(T0)return bh;T0=1;var r=Vu().getCoord;return bh=function(a,o){var s=Math.PI/180,c=180/Math.PI,f=r(a),g=r(o),m=s*f[0],y=s*g[0],C=s*f[1],_=s*g[1],b=Math.sin(y-m)*Math.cos(_),w=Math.cos(C)*Math.sin(_)-Math.sin(C)*Math.cos(_)*Math.cos(y-m),S=c*Math.atan2(b,w);return S},bh}var xh,M0;function Wu(){if(M0)return xh;M0=1;var r=Vu().getCoord,a=Be(),o=a.point,s=a.distanceToRadians;return xh=function(c,f,g,m){var y=Math.PI/180,C=180/Math.PI,_=r(c),b=y*_[0],w=y*_[1],S=y*g,P=s(f,m),O=Math.asin(Math.sin(w)*Math.cos(P)+Math.cos(w)*Math.sin(P)*Math.cos(S)),q=b+Math.atan2(Math.sin(S)*Math.sin(P)*Math.cos(w),Math.cos(P)-Math.sin(w)*Math.sin(O));return o([C*q,C*O])},xh}var Eh,A0;function cC(){if(A0)return Eh;A0=1;var r=Zu(),a=Wu(),o=Pr();return Eh=function(s,c){var f=o(s,c,"miles"),g=r(s,c),m=a(s,f/2,g,"miles");return m},Eh}var wh,D0;function hC(){if(D0)return wh;D0=1,wh=a;var r={Point:"geometry",MultiPoint:"geometry",LineString:"geometry",MultiLineString:"geometry",Polygon:"geometry",MultiPolygon:"geometry",GeometryCollection:"geometry",Feature:"feature",FeatureCollection:"featurecollection"};function a(o){if(!o||!o.type)return null;var s=r[o.type];if(!s)return null;if(s==="geometry")return{type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:o}]};if(s==="feature")return{type:"FeatureCollection",features:[o]};if(s==="featurecollection")return o}return wh}var Oh,R0;function fC(){if(R0)return Oh;R0=1;var r=Be(),a=r.featureCollection,o=Hu(),s=hC();Oh=function(f,g,m){var y=r.distanceToDegrees(g,m),C=s(f),_=s(a(C.features.map(function(b){return c(b,y)})));if(_.features.length>1)return _;if(_.features.length===1)return _.features[0]};function c(f,g){var m=new o.io.GeoJSONReader,y=m.read(f.geometry),C=y.buffer(g),_=new o.io.GeoJSONWriter;return C=_.write(C),{type:"Feature",geometry:C,properties:{}}}return Oh}var Nh,j0;function k0(){if(j0)return Nh;j0=1;var r=Uu(),a=Be().point;return Nh=function(o){var s=r(o),c=(s[0]+s[2])/2,f=(s[1]+s[3])/2;return a([c,f])},Nh}var Sh,F0;function dC(){if(F0)return Sh;F0=1;var r=Do().coordEach,a=Be().point;return Sh=function(o){var s=0,c=0,f=0;return r(o,function(g){s+=g[0],c+=g[1],f++},!0),a([s/f,c/f])},Sh}var Lh,B0;function gC(){if(B0)return Lh;B0=1;var r=Do();return Lh=function(a){var o={MultiPoint:{coordinates:[],properties:[]},MultiLineString:{coordinates:[],properties:[]},MultiPolygon:{coordinates:[],properties:[]}},s=Object.keys(o).reduce(function(f,g){return f[g.replace("Multi","")]=g,f},{});function c(f,g,m){m?o[g].coordinates=o[g].coordinates.concat(f.geometry.coordinates):o[g].coordinates.push(f.geometry.coordinates),o[g].properties.push(f.properties)}return r.featureEach(a,function(f){f.geometry&&(o[f.geometry.type]?c(f,f.geometry.type,!0):s[f.geometry.type]&&c(f,s[f.geometry.type],!1))}),{type:"FeatureCollection",features:Object.keys(o).filter(function(f){return o[f].coordinates.length}).sort().map(function(f){return{type:"Feature",properties:{collectedProperties:o[f].properties},geometry:{type:f,coordinates:o[f].coordinates}}})}},Lh}var Ih,z0;function G0(){if(z0)return Ih;z0=1;var r=Be().featureCollection,a=Do().coordEach,o=Be().point;return Ih=function(s){var c=[];return a(s,function(f){c.push(o(f))}),r(c)},Ih}var Yu={exports:{}},q0;function mC(){if(q0)return Yu.exports;q0=1,Yu.exports=r,Yu.exports.default=r;function r(V,$,D){D=D||2;var rt=$&&$.length,J=rt?$[0]*D:V.length,et=a(V,0,J,D,!0),st=[];if(!et||et.next===et.prev)return st;var ut,bt,nt,Nt,xt,Mt,ce;if(rt&&(et=y(V,$,et,D)),V.length>80*D){ut=nt=V[0],bt=Nt=V[1];for(var ee=D;ee<J;ee+=D)xt=V[ee],Mt=V[ee+1],xt<ut&&(ut=xt),Mt<bt&&(bt=Mt),xt>nt&&(nt=xt),Mt>Nt&&(Nt=Mt);ce=Math.max(nt-ut,Nt-bt),ce=ce!==0?32767/ce:0}return s(et,st,D,ut,bt,ce,0),st}function a(V,$,D,rt,J){var et,st;if(J===Ct(V,$,D,rt)>0)for(et=$;et<D;et+=rt)st=M(et,V[et],V[et+1],st);else for(et=D-rt;et>=$;et-=rt)st=M(et,V[et],V[et+1],st);return st&&R(st,st.next)&&(ot(st),st=st.next),st}function o(V,$){if(!V)return V;$||($=V);var D=V,rt;do if(rt=!1,!D.steiner&&(R(D,D.next)||A(D.prev,D,D.next)===0)){if(ot(D),D=$=D.prev,D===D.next)break;rt=!0}else D=D.next;while(rt||D!==$);return $}function s(V,$,D,rt,J,et,st){if(V){!st&&et&&S(V,rt,J,et);for(var ut=V,bt,nt;V.prev!==V.next;){if(bt=V.prev,nt=V.next,et?f(V,rt,J,et):c(V)){$.push(bt.i/D|0),$.push(V.i/D|0),$.push(nt.i/D|0),ot(V),V=nt.next,ut=nt.next;continue}if(V=nt,V===ut){st?st===1?(V=g(o(V),$,D),s(V,$,D,rt,J,et,2)):st===2&&m(V,$,D,rt,J,et):s(o(V),$,D,rt,J,et,1);break}}}}function c(V){var $=V.prev,D=V,rt=V.next;if(A($,D,rt)>=0)return!1;for(var J=$.x,et=D.x,st=rt.x,ut=$.y,bt=D.y,nt=rt.y,Nt=J<et?J<st?J:st:et<st?et:st,xt=ut<bt?ut<nt?ut:nt:bt<nt?bt:nt,Mt=J>et?J>st?J:st:et>st?et:st,ce=ut>bt?ut>nt?ut:nt:bt>nt?bt:nt,ee=rt.next;ee!==$;){if(ee.x>=Nt&&ee.x<=Mt&&ee.y>=xt&&ee.y<=ce&&G(J,ut,et,bt,st,nt,ee.x,ee.y)&&A(ee.prev,ee,ee.next)>=0)return!1;ee=ee.next}return!0}function f(V,$,D,rt){var J=V.prev,et=V,st=V.next;if(A(J,et,st)>=0)return!1;for(var ut=J.x,bt=et.x,nt=st.x,Nt=J.y,xt=et.y,Mt=st.y,ce=ut<bt?ut<nt?ut:nt:bt<nt?bt:nt,ee=Nt<xt?Nt<Mt?Nt:Mt:xt<Mt?xt:Mt,We=ut>bt?ut>nt?ut:nt:bt>nt?bt:nt,kt=Nt>xt?Nt>Mt?Nt:Mt:xt>Mt?xt:Mt,Ue=O(ce,ee,$,D,rt),ze=O(We,kt,$,D,rt),Kt=V.prevZ,Ft=V.nextZ;Kt&&Kt.z>=Ue&&Ft&&Ft.z<=ze;){if(Kt.x>=ce&&Kt.x<=We&&Kt.y>=ee&&Kt.y<=kt&&Kt!==J&&Kt!==st&&G(ut,Nt,bt,xt,nt,Mt,Kt.x,Kt.y)&&A(Kt.prev,Kt,Kt.next)>=0||(Kt=Kt.prevZ,Ft.x>=ce&&Ft.x<=We&&Ft.y>=ee&&Ft.y<=kt&&Ft!==J&&Ft!==st&&G(ut,Nt,bt,xt,nt,Mt,Ft.x,Ft.y)&&A(Ft.prev,Ft,Ft.next)>=0))return!1;Ft=Ft.nextZ}for(;Kt&&Kt.z>=Ue;){if(Kt.x>=ce&&Kt.x<=We&&Kt.y>=ee&&Kt.y<=kt&&Kt!==J&&Kt!==st&&G(ut,Nt,bt,xt,nt,Mt,Kt.x,Kt.y)&&A(Kt.prev,Kt,Kt.next)>=0)return!1;Kt=Kt.prevZ}for(;Ft&&Ft.z<=ze;){if(Ft.x>=ce&&Ft.x<=We&&Ft.y>=ee&&Ft.y<=kt&&Ft!==J&&Ft!==st&&G(ut,Nt,bt,xt,nt,Mt,Ft.x,Ft.y)&&A(Ft.prev,Ft,Ft.next)>=0)return!1;Ft=Ft.nextZ}return!0}function g(V,$,D){var rt=V;do{var J=rt.prev,et=rt.next.next;!R(J,et)&&j(J,rt,rt.next,et)&&U(J,et)&&U(et,J)&&($.push(J.i/D|0),$.push(rt.i/D|0),$.push(et.i/D|0),ot(rt),ot(rt.next),rt=V=et),rt=rt.next}while(rt!==V);return o(rt)}function m(V,$,D,rt,J,et){var st=V;do{for(var ut=st.next.next;ut!==st.prev;){if(st.i!==ut.i&&k(st,ut)){var bt=Y(st,ut);st=o(st,st.next),bt=o(bt,bt.next),s(st,$,D,rt,J,et,0),s(bt,$,D,rt,J,et,0);return}ut=ut.next}st=st.next}while(st!==V)}function y(V,$,D,rt){var J=[],et,st,ut,bt,nt;for(et=0,st=$.length;et<st;et++)ut=$[et]*rt,bt=et<st-1?$[et+1]*rt:V.length,nt=a(V,ut,bt,rt,!1),nt===nt.next&&(nt.steiner=!0),J.push(q(nt));for(J.sort(C),et=0;et<J.length;et++)D=_(J[et],D);return D}function C(V,$){return V.x-$.x}function _(V,$){var D=b(V,$);if(!D)return $;var rt=Y(D,V);return o(rt,rt.next),o(D,D.next)}function b(V,$){var D=$,rt=V.x,J=V.y,et=-1/0,st;do{if(J<=D.y&&J>=D.next.y&&D.next.y!==D.y){var ut=D.x+(J-D.y)*(D.next.x-D.x)/(D.next.y-D.y);if(ut<=rt&&ut>et&&(et=ut,st=D.x<D.next.x?D:D.next,ut===rt))return st}D=D.next}while(D!==$);if(!st)return null;var bt=st,nt=st.x,Nt=st.y,xt=1/0,Mt;D=st;do rt>=D.x&&D.x>=nt&&rt!==D.x&&G(J<Nt?rt:et,J,nt,Nt,J<Nt?et:rt,J,D.x,D.y)&&(Mt=Math.abs(J-D.y)/(rt-D.x),U(D,V)&&(Mt<xt||Mt===xt&&(D.x>st.x||D.x===st.x&&w(st,D)))&&(st=D,xt=Mt)),D=D.next;while(D!==bt);return st}function w(V,$){return A(V.prev,V,$.prev)<0&&A($.next,V,V.next)<0}function S(V,$,D,rt){var J=V;do J.z===0&&(J.z=O(J.x,J.y,$,D,rt)),J.prevZ=J.prev,J.nextZ=J.next,J=J.next;while(J!==V);J.prevZ.nextZ=null,J.prevZ=null,P(J)}function P(V){var $,D,rt,J,et,st,ut,bt,nt=1;do{for(D=V,V=null,et=null,st=0;D;){for(st++,rt=D,ut=0,$=0;$<nt&&(ut++,rt=rt.nextZ,!!rt);$++);for(bt=nt;ut>0||bt>0&&rt;)ut!==0&&(bt===0||!rt||D.z<=rt.z)?(J=D,D=D.nextZ,ut--):(J=rt,rt=rt.nextZ,bt--),et?et.nextZ=J:V=J,J.prevZ=et,et=J;D=rt}et.nextZ=null,nt*=2}while(st>1);return V}function O(V,$,D,rt,J){return V=(V-D)*J|0,$=($-rt)*J|0,V=(V|V<<8)&16711935,V=(V|V<<4)&252645135,V=(V|V<<2)&858993459,V=(V|V<<1)&1431655765,$=($|$<<8)&16711935,$=($|$<<4)&252645135,$=($|$<<2)&858993459,$=($|$<<1)&1431655765,V|$<<1}function q(V){var $=V,D=V;do($.x<D.x||$.x===D.x&&$.y<D.y)&&(D=$),$=$.next;while($!==V);return D}function G(V,$,D,rt,J,et,st,ut){return(J-st)*($-ut)>=(V-st)*(et-ut)&&(V-st)*(rt-ut)>=(D-st)*($-ut)&&(D-st)*(et-ut)>=(J-st)*(rt-ut)}function k(V,$){return V.next.i!==$.i&&V.prev.i!==$.i&&!H(V,$)&&(U(V,$)&&U($,V)&&it(V,$)&&(A(V.prev,V,$.prev)||A(V,$.prev,$))||R(V,$)&&A(V.prev,V,V.next)>0&&A($.prev,$,$.next)>0)}function A(V,$,D){return($.y-V.y)*(D.x-$.x)-($.x-V.x)*(D.y-$.y)}function R(V,$){return V.x===$.x&&V.y===$.y}function j(V,$,D,rt){var J=F(A(V,$,D)),et=F(A(V,$,rt)),st=F(A(D,rt,V)),ut=F(A(D,rt,$));return!!(J!==et&&st!==ut||J===0&&W(V,D,$)||et===0&&W(V,rt,$)||st===0&&W(D,V,rt)||ut===0&&W(D,$,rt))}function W(V,$,D){return $.x<=Math.max(V.x,D.x)&&$.x>=Math.min(V.x,D.x)&&$.y<=Math.max(V.y,D.y)&&$.y>=Math.min(V.y,D.y)}function F(V){return V>0?1:V<0?-1:0}function H(V,$){var D=V;do{if(D.i!==V.i&&D.next.i!==V.i&&D.i!==$.i&&D.next.i!==$.i&&j(D,D.next,V,$))return!0;D=D.next}while(D!==V);return!1}function U(V,$){return A(V.prev,V,V.next)<0?A(V,$,V.next)>=0&&A(V,V.prev,$)>=0:A(V,$,V.prev)<0||A(V,V.next,$)<0}function it(V,$){var D=V,rt=!1,J=(V.x+$.x)/2,et=(V.y+$.y)/2;do D.y>et!=D.next.y>et&&D.next.y!==D.y&&J<(D.next.x-D.x)*(et-D.y)/(D.next.y-D.y)+D.x&&(rt=!rt),D=D.next;while(D!==V);return rt}function Y(V,$){var D=new ct(V.i,V.x,V.y),rt=new ct($.i,$.x,$.y),J=V.next,et=$.prev;return V.next=$,$.prev=V,D.next=J,J.prev=D,rt.next=D,D.prev=rt,et.next=rt,rt.prev=et,rt}function M(V,$,D,rt){var J=new ct(V,$,D);return rt?(J.next=rt.next,J.prev=rt,rt.next.prev=J,rt.next=J):(J.prev=J,J.next=J),J}function ot(V){V.next.prev=V.prev,V.prev.next=V.next,V.prevZ&&(V.prevZ.nextZ=V.nextZ),V.nextZ&&(V.nextZ.prevZ=V.prevZ)}function ct(V,$,D){this.i=V,this.x=$,this.y=D,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}r.deviation=function(V,$,D,rt){var J=$&&$.length,et=J?$[0]*D:V.length,st=Math.abs(Ct(V,0,et,D));if(J)for(var ut=0,bt=$.length;ut<bt;ut++){var nt=$[ut]*D,Nt=ut<bt-1?$[ut+1]*D:V.length;st-=Math.abs(Ct(V,nt,Nt,D))}var xt=0;for(ut=0;ut<rt.length;ut+=3){var Mt=rt[ut]*D,ce=rt[ut+1]*D,ee=rt[ut+2]*D;xt+=Math.abs((V[Mt]-V[ee])*(V[ce+1]-V[Mt+1])-(V[Mt]-V[ce])*(V[ee+1]-V[Mt+1]))}return st===0&&xt===0?0:Math.abs((xt-st)/st)};function Ct(V,$,D,rt){for(var J=0,et=$,st=D-rt;et<D;et+=rt)J+=(V[st]-V[et])*(V[et+1]+V[st+1]),st=et;return J}return r.flatten=function(V){for(var $=V[0][0].length,D={vertices:[],holes:[],dimensions:$},rt=0,J=0;J<V.length;J++){for(var et=0;et<V[J].length;et++)for(var st=0;st<$;st++)D.vertices.push(V[J][et][st]);J>0&&(rt+=V[J-1].length,D.holes.push(rt))}return D},Yu.exports}var Ph,V0;function pC(){if(V0)return Ph;V0=1;var r=Be().polygon,a=mC();Ph=function(c){if(!c.geometry||c.geometry.type!=="Polygon"&&c.geometry.type!=="MultiPolygon")throw new Error("input must be a Polygon or MultiPolygon");var f={type:"FeatureCollection",features:[]};return c.geometry.type==="Polygon"?f.features=o(c.geometry.coordinates):c.geometry.coordinates.forEach(function(g){f.features=f.features.concat(o(g))}),f};function o(c){var f=s(c),g=2,m=a(f.vertices,f.holes,g),y=[],C=[];m.forEach(function(w,S){var P=m[S];C.push([f.vertices[P*g],f.vertices[P*g+1]])});for(var _=0;_<C.length;_+=3){var b=C.slice(_,_+3);b.push(C[_]),y.push(r([b]))}return y}function s(c){for(var f=c[0][0].length,g={vertices:[],holes:[],dimensions:f},m=0,y=0;y<c.length;y++){for(var C=0;C<c[y].length;C++)for(var _=0;_<f;_++)g.vertices.push(c[y][C][_]);y>0&&(m+=c[y-1].length,g.holes.push(m))}return g}return Ph}var Th,U0;function vC(){if(U0)return Th;U0=1;var r=Hu();return Th=function(o,s){var c,f;o.type==="Feature"?c=o.geometry:c=o,s.type==="Feature"?f=s.geometry:f=s;var g=new r.io.GeoJSONReader,m=g.read(JSON.stringify(c)),y=g.read(JSON.stringify(f)),C=m.intersection(y);if(!C.isEmpty()){var _=new r.io.GeoJSONWriter,b=_.write(C);return{type:"Feature",properties:{},geometry:b}}},Th}var Mh,H0;function yC(){if(H0)return Mh;H0=1;var r=Pr();return Mh=function(a,o){for(var s,c=1/0,f=0;f<o.features.length;f++){var g=r(a,o.features[f],"miles");g<c&&(s=o.features[f],c=g)}return s},Mh}var Ro={exports:{}},Z0;function CC(){if(Z0)return Ro.exports;Z0=1,Ro.exports=function(){throw new Error("call .point() or .polygon() instead")};function r(_){return _?g(_):[s(),c()]}Ro.exports.position=r,Ro.exports.point=function(_,b){var w=[];for(i=0;i<_;i++)w.push(y(b?f(r(b)):f()));return C(w)},Ro.exports.polygon=function(_,b,w,S){typeof b!="number"&&(b=10),typeof w!="number"&&(w=10);var P=[];for(i=0;i<_;i++){var O=[],q=Array.apply(null,new Array(b+1)).map(Math.random);q.forEach(G),q.forEach(k),O[O.length-1]=O[0],O=O.map(a(r(S))),P.push(y(m([O])))}function G(A,R,j){j[R]=R>0?A+j[R-1]:A}function k(A,R){A=A*2*Math.PI/q[q.length-1];var j=Math.random();O.push([j*w*Math.sin(A),j*w*Math.cos(A)])}return C(P)};function a(_){return function(b,w){return[b[0]+_[0],b[1]+_[1]]}}function o(){return Math.random()-.5}function s(){return o()*360}function c(){return o()*180}function f(_){return{type:"Point",coordinates:_||[s(),c()]}}function g(_){return[Math.random()*(_[2]-_[0])+_[0],Math.random()*(_[3]-_[1])+_[1]]}function m(_){return{type:"Polygon",coordinates:_}}function y(_){return{type:"Feature",geometry:_,properties:{}}}function C(_){return{type:"FeatureCollection",features:_}}return Ro.exports}var Ah,W0;function _C(){if(W0)return Ah;W0=1;var r=CC();return Ah=function(a,o,s){switch(s=s||{},o=o||1,a){case"point":case"points":case void 0:return r.point(o,s.bbox);case"polygon":case"polygons":return r.polygon(o,s.num_vertices,s.max_radial_length,s.bbox);default:throw new Error("Unknown type given: valid options are points and polygons")}},Ah}var Dh,Y0;function bC(){if(Y0)return Dh;Y0=1;var r=Be().point;Dh=function(o){var s,c={type:"FeatureCollection",features:[]};return o.type==="Feature"?s=o.geometry:s=o,s.coordinates.forEach(function(f){s.coordinates.forEach(function(g){for(var m=0;m<f.length-1;m++)for(var y=0;y<g.length-1;y++)if(!(f===g&&(Math.abs(m-y)===1||Math.abs(m-y)===f.length-2))){var C=a(f[m][0],f[m][1],f[m+1][0],f[m+1][1],g[y][0],g[y][1],g[y+1][0],g[y+1][1]);C&&c.features.push(r([C[0],C[1]]))}})}),c};function a(o,s,c,f,g,m,y,C){var _,b,w,S,P,O={x:null,y:null,onLine1:!1,onLine2:!1};return _=(C-m)*(c-o)-(y-g)*(f-s),_===0?O.x!==null&&O.y!==null?O:!1:(b=s-m,w=o-g,S=(y-g)*b-(C-m)*w,P=(c-o)*b-(f-s)*w,b=S/_,w=P/_,O.x=o+b*(c-o),O.y=s+b*(f-s),b>=0&&b<=1&&(O.onLine1=!0),w>=0&&w<=1&&(O.onLine2=!0),O.onLine1&&O.onLine2?[O.x,O.y]:!1)}return Dh}var Rh,X0;function xC(){if(X0)return Rh;X0=1;var r=Be().featureCollection,a=k0(),o=Pr(),s=Ao(),c=G0();function f(m){m.type!=="FeatureCollection"&&(m.type!=="Feature"&&(m={type:"Feature",geometry:m,properties:{}}),m=r([m]));for(var y=a(m),C=!1,_=0;!C&&_<m.features.length;){var b=m.features[_].geometry,w,S,P,O,q,G,k,A=!1;if(b.type==="Point")y.geometry.coordinates[0]===b.coordinates[0]&&y.geometry.coordinates[1]===b.coordinates[1]&&(C=!0);else if(b.type==="MultiPoint"){var R=!1;for(k=0;!R&&k<b.coordinates.length;)y.geometry.coordinates[0]===b.coordinates[k][0]&&y.geometry.coordinates[1]===b.coordinates[k][1]&&(C=!0,R=!0),k++}else if(b.type==="LineString")for(k=0;!A&&k<b.coordinates.length-1;)w=y.geometry.coordinates[0],S=y.geometry.coordinates[1],P=b.coordinates[k][0],O=b.coordinates[k][1],q=b.coordinates[k+1][0],G=b.coordinates[k+1][1],g(w,S,P,O,q,G)&&(A=!0,C=!0),k++;else if(b.type==="MultiLineString")for(var j=0;j<b.coordinates.length;){A=!1,k=0;for(var W=b.coordinates[j];!A&&k<W.length-1;)w=y.geometry.coordinates[0],S=y.geometry.coordinates[1],P=W[k][0],O=W[k][1],q=W[k+1][0],G=W[k+1][1],g(w,S,P,O,q,G)&&(A=!0,C=!0),k++;j++}else if(b.type==="Polygon"||b.type==="MultiPolygon"){var F={type:"Feature",geometry:b,properties:{}};s(y,F)&&(C=!0)}_++}if(C)return y;var H=r([]);for(_=0;_<m.features.length;_++)H.features=H.features.concat(c(m.features[_]).features);var U,it=1/0;for(_=0;_<H.features.length;_++){var Y=o(y,H.features[_],"miles");Y<it&&(it=Y,U=H.features[_])}return U}function g(m,y,C,_,b,w){var S=Math.sqrt((b-C)*(b-C)+(w-_)*(w-_)),P=Math.sqrt((m-C)*(m-C)+(y-_)*(y-_)),O=Math.sqrt((b-m)*(b-m)+(w-y)*(w-y));if(S===P+O)return!0}return Rh=f,Rh}var Xu={},Ta={},K0;function EC(){return K0||(K0=1,Ta.RADIUS=6378137,Ta.FLATTENING=.0033528106647474805,Ta.POLAR_RADIUS=63567523142e-4),Ta}var J0;function wC(){if(J0)return Xu;J0=1;var r=EC();Xu.geometry=a,Xu.ring=s;function a(f){var g=0,m;switch(f.type){case"Polygon":return o(f.coordinates);case"MultiPolygon":for(m=0;m<f.coordinates.length;m++)g+=o(f.coordinates[m]);return g;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0;case"GeometryCollection":for(m=0;m<f.geometries.length;m++)g+=a(f.geometries[m]);return g}}function o(f){var g=0;if(f&&f.length>0){g+=Math.abs(s(f[0]));for(var m=1;m<f.length;m++)g-=Math.abs(s(f[m]))}return g}function s(f){var g,m,y,C,_,b,w=0,S=f.length;if(S>2){for(i=0;i<S;i++)i===S-2?(C=S-2,_=S-1,b=0):i===S-1?(C=S-1,_=0,b=1):(C=i,_=i+1,b=i+2),g=f[C],m=f[_],y=f[b],w+=(c(y[0])-c(g[0]))*Math.sin(c(m[1]));w=w*r.RADIUS*r.RADIUS/2}return w}function c(f){return f*Math.PI/180}return Xu}var jh,Q0;function OC(){if(Q0)return jh;Q0=1;var r=wC().geometry;function a(o){if(o.type==="FeatureCollection"){for(var s=0,c=0;s<o.features.length;s++)o.features[s].geometry&&(c+=r(o.features[s].geometry));return c}else return o.type==="Feature"?r(o.geometry):r(o)}return jh=a,jh}var kh,$0;function NC(){if($0)return kh;$0=1;var r=Pr(),a=Be().point,o=Zu(),s=Wu();return kh=function(c,f,g){var m;if(c.type==="Feature")m=c.geometry.coordinates;else if(c.type==="LineString")m=c.coordinates;else throw new Error("input must be a LineString Feature or Geometry");for(var y=0,C=0;C<m.length&&!(f>=y&&C===m.length-1);C++)if(y>=f){var _=f-y;if(_){var b=o(m[C],m[C-1])-180,w=s(m[C],_,b,g);return w}else return a(m[C])}else y+=r(m[C],m[C+1],g);return a(m[m.length-1])},kh}var Fh,tv;function SC(){if(tv)return Fh;tv=1;var r=Pr(),a=Be().point;Fh=function s(c,f){if(c.type==="FeatureCollection")return c.features.reduce(function(_,b){return _+s(b,f)},0);var g=c.type==="Feature"?c.geometry:c,m,y;if(g.type==="LineString")return o(g.coordinates,f);if(g.type==="Polygon"||g.type==="MultiLineString"){for(m=0,y=0;y<g.coordinates.length;y++)m+=o(g.coordinates[y],f);return m}else if(c.type==="MultiPolygon"){for(m=0,y=0;y<g.coordinates.length;y++)for(var C=0;C<g.coordinates[y].length;C++)m+=o(g.coordinates[y][C],f);return m}else throw new Error("input must be a LineString, MultiLineString, Polygon, or MultiPolygon Feature or Geometry (or a FeatureCollection containing only those types)")};function o(s,c){for(var f=0,g=a(s[0]),m=a(s[0]),y,C=1;C<s.length;C++)m.geometry.coordinates=s[C],f+=r(g,m,c),y=g,g=m,m=y;return f}return Fh}var Bh,ev;function nv(){if(ev)return Bh;ev=1;var r=Pr(),a=Be().point,o=Zu(),s=Wu();Bh=function(g,m){var y;if(g.type==="Feature")y=g.geometry.coordinates;else if(g.type==="LineString")y=g.coordinates;else throw new Error("input must be a LineString Feature or Geometry");return c(m,y)};function c(g,m){for(var y="miles",C=a([1/0,1/0],{dist:1/0}),_=0;_<m.length-1;_++){var b=a(m[_]),w=a(m[_+1]);b.properties.dist=r(g,b,y),w.properties.dist=r(g,w,y);var S=Math.max(b.properties.dist,w.properties.dist),P=o(b,w),O=s(g,S,P+90,y),q=s(g,S,P-90,y),G=f(O.geometry.coordinates[0],O.geometry.coordinates[1],q.geometry.coordinates[0],q.geometry.coordinates[1],b.geometry.coordinates[0],b.geometry.coordinates[1],w.geometry.coordinates[0],w.geometry.coordinates[1]),k;G&&(k=a(G),k.properties.dist=r(g,k,y)),b.properties.dist<C.properties.dist&&(C=b,C.properties.index=_),w.properties.dist<C.properties.dist&&(C=w,C.properties.index=_),k&&k.properties.dist<C.properties.dist&&(C=k,C.properties.index=_)}return C}function f(g,m,y,C,_,b,w,S){var P,O,q,G,k,A={x:null,y:null,onLine1:!1,onLine2:!1};return P=(S-b)*(y-g)-(w-_)*(C-m),P===0?A.x!==null&&A.y!==null?A:!1:(O=m-b,q=g-_,G=(w-_)*O-(S-b)*q,k=(y-g)*O-(C-m)*q,O=G/P,q=k/P,A.x=g+O*(y-g),A.y=m+O*(C-m),O>0&&O<1&&(A.onLine1=!0),q>0&&q<1&&(A.onLine2=!0),A.onLine1&&A.onLine2?[A.x,A.y]:!1)}return Bh}var zh,rv;function LC(){if(rv)return zh;rv=1;var r=Be().lineString,a=nv();return zh=function(s,c,f){var g;if(f.type==="Feature")g=f.geometry.coordinates;else if(f.type==="LineString")g=f.coordinates;else throw new Error("input must be a LineString Feature or Geometry");var m=a(f,s),y=a(f,c),C;m.properties.index<=y.properties.index?C=[m,y]:C=[y,m];for(var _=r([C[0].geometry.coordinates],{}),b=C[0].properties.index+1;b<C[1].properties.index+1;b++)_.geometry.coordinates.push(g[b]);return _.geometry.coordinates.push(C[1].geometry.coordinates),_},zh}var Gh,iv;function IC(){if(iv)return Gh;iv=1;var r=Be().point,a=Be().featureCollection,o=Pr();return Gh=function(c,f,g){for(var m=a([]),y=f/o(r([c[0],c[1]]),r([c[2],c[1]]),g),C=y*(c[2]-c[0]),_=f/o(r([c[0],c[1]]),r([c[0],c[3]]),g),b=_*(c[3]-c[1]),w=c[0];w<=c[2];){for(var S=c[1];S<=c[3];)m.features.push(r([w,S])),S+=b;w+=C}return m},Gh}var qh,sv;function PC(){if(sv)return qh;sv=1;var r=Be().featureCollection,a=Be().point,o=Be().polygon,s=Pr();return qh=function(f,g,m){for(var y=r([]),C=g/s(a([f[0],f[1]]),a([f[2],f[1]]),m),_=C*(f[2]-f[0]),b=g/s(a([f[0],f[1]]),a([f[0],f[3]]),m),w=b*(f[3]-f[1]),S=f[0];S<=f[2];){for(var P=f[1];P<=f[3];){var O=o([[[S,P],[S,P+w],[S+_,P+w],[S+_,P],[S,P]]]);y.features.push(O),P+=w}S+=_}return y},qh}var Vh,ov;function TC(){if(ov)return Vh;ov=1;var r=Be().featureCollection,a=Be().polygon,o=Pr();return Vh=function(s,c,f){for(var g=r([]),m=c/o([s[0],s[1]],[s[2],s[1]],f),y=m*(s[2]-s[0]),C=c/o([s[0],s[1]],[s[0],s[3]],f),_=C*(s[3]-s[1]),b=0,w=s[0];w<=s[2];){for(var S=0,P=s[1];P<=s[3];)b%2===0&&S%2===0?g.features.push(a([[[w,P],[w,P+_],[w+y,P],[w,P]]]),a([[[w,P+_],[w+y,P+_],[w+y,P],[w,P+_]]])):b%2===0&&S%2===1?g.features.push(a([[[w,P],[w+y,P+_],[w+y,P],[w,P]]]),a([[[w,P],[w,P+_],[w+y,P+_],[w,P]]])):S%2===0&&b%2===1?g.features.push(a([[[w,P],[w,P+_],[w+y,P+_],[w,P]]]),a([[[w,P],[w+y,P+_],[w+y,P],[w,P]]])):S%2===1&&b%2===1&&g.features.push(a([[[w,P],[w,P+_],[w+y,P],[w,P]]]),a([[[w,P+_],[w+y,P+_],[w+y,P],[w,P+_]]])),P+=_,S++;b++,w+=y}return g},Vh}var Uh,av;function MC(){if(av)return Uh;av=1;for(var r=Be().point,a=Be().polygon,o=Pr(),s=Be().featureCollection,c=[],f=[],g=0;g<6;g++){var m=2*Math.PI/6*g;c.push(Math.cos(m)),f.push(Math.sin(m))}Uh=function(b,w,S,P){var O=w/o(r([b[0],b[1]]),r([b[2],b[1]]),S),q=O*(b[2]-b[0]),G=w/o(r([b[0],b[1]]),r([b[0],b[3]]),S),k=G*(b[3]-b[1]),A=q/2,R=A*2,j=Math.sqrt(3)/2*k,W=b[2]-b[0],F=b[3]-b[1],H=3/4*R,U=j,it=W/(R-A/2),Y=Math.ceil(it);Math.round(it)===Y&&Y++;var M=(Y*H-A/2-W)/2-A/2,ot=Math.ceil(F/j),ct=(F-ot*j)/2,Ct=ot*j-F>j/2;Ct&&(ct-=j/4);for(var V=s([]),$=0;$<Y;$++)for(var D=0;D<=ot;D++){var rt=$%2===1;if(!(D===0&&rt)&&!(D===0&&Ct)){var J=$*H+b[0]-M,et=D*U+b[1]+ct;rt&&(et-=j/2),P?V.features.push.apply(V.features,C([J,et],q/2,k/2)):V.features.push(y([J,et],q/2,k/2))}}return V};function y(_,b,w){for(var S=[],P=0;P<6;P++){var O=_[0]+b*c[P],q=_[1]+w*f[P];S.push([O,q])}return S.push(S[0]),a([S])}function C(_,b,w){for(var S=[],P=0;P<6;P++){var O=[];O.push(_),O.push([_[0]+b*c[P],_[1]+w*f[P]]),O.push([_[0]+b*c[(P+1)%6],_[1]+w*f[(P+1)%6]]),O.push(_),S.push(a([O]))}return S}return Uh}var uv;function AC(){if(uv)return Ur.exports;uv=1,Ur.exports={isolines:R8(),convex:K8(),within:J8(),concave:$8(),difference:tC(),collect:eC(),flip:nC(),simplify:iC(),bezier:oC(),tag:aC(),sample:uC(),envelope:lC(),square:Wp(),midpoint:cC(),buffer:fC(),center:k0(),centroid:dC(),combine:gC(),distance:Pr(),explode:G0(),bbox:Uu(),tesselate:pC(),bboxPolygon:I0(),inside:Ao(),intersect:vC(),nearest:yC(),planepoint:Up(),random:_C(),tin:Rc(),union:v0(),bearing:Zu(),destination:Wu(),kinks:bC(),pointOnSurface:xC(),area:OC(),along:NC(),lineDistance:SC(),lineSlice:LC(),pointOnLine:nv(),pointGrid:IC(),squareGrid:PC(),triangleGrid:TC(),hexGrid:MC()};var r=Be();return Ur.exports.point=r.point,Ur.exports.polygon=r.polygon,Ur.exports.lineString=r.lineString,Ur.exports.multiPoint=r.multiPoint,Ur.exports.multiPolygon=r.multiPolygon,Ur.exports.multiLineString=r.multiLineString,Ur.exports.feature=r.feature,Ur.exports.featureCollection=r.featureCollection,Ur.exports.geometryCollection=r.geometryCollection,Ur.exports}var Hh=AC();function DC(r){const a=[[-180,-90],[180,-90],[180,90],[-180,90],[-180,-90]],o=Hh.polygon([a]);let s=[a];return r.forEach(c=>{var m,y,C;const f=Hh.polygon([c.map(({lat:_,lng:b})=>[b,_])]),g=Hh.difference(o,f)||o;(m=g==null?void 0:g.geometry)!=null&&m.coordinates&&((y=g==null?void 0:g.geometry)==null?void 0:y.coordinates.length)>1&&s.push((C=g==null?void 0:g.geometry)==null?void 0:C.coordinates[1])}),s}function RC(r,a){if(!a)return!1;if(!r)return!0;if(Array.isArray(r[0])){for(let o of r)if(lv(Array.isArray(o)?o:[o],a))return!0;return!1}else return lv(r,a)}function lv(r,a){let o=a.lat,s=a.lng,c=!1;for(let f=0,g=r.length-1;f<r.length;g=f++){let m=r[f].lat,y=r[f].lng,C=r[g].lat,_=r[g].lng;y>s!=_>s&&o<(C-m)*(s-y)/(_-y)+m&&(c=!c)}return c}function jC({area:r=[],areas:a,areaPolygonStyle:o={color:"#d00",fillColor:"#000",fillOpacity:.15},interactionType:s="default",...c}){const f=new _a({}),{data:g}=f.useArea({projectId:c.projectId}),[m,y]=N.useState([]);N.useEffect(()=>{if(r&&r.length>0){let w=[];Array.isArray(r[0])?w=r.map(P=>P.map(({lat:O,lng:q})=>({lat:O,lng:q}))):w=[r.map(({lat:P,lng:O})=>new un.LatLng(P,O))];const S=DC(w);y(S)}},[r]);const C=[],_=a==null?void 0:a.map(w=>w.id),b=g.filter(w=>_==null?void 0:_.includes(w.id));return b&&(b.forEach(w=>{C.push({title:w.name,polygon:w.polygon})}),a.forEach(w=>{const S=C.find(P=>P.title===w.name);S&&(S.url=w.url)})),N.createElement(N.Fragment,null,C.length>0?C.map((w,S)=>N.createElement(N.Fragment,null,N.createElement(Dp,{key:S,...c,pathOptions:o,positions:w.polygon,eventHandlers:s!=="direct"?{mouseover:P=>{P.target.setStyle({fillOpacity:.05})},mouseout:P=>{P.target.setStyle(o)}}:{click:()=>{w.url&&window.open(w.url,"_self")}}},w.title&&s!=="direct"?N.createElement(N.Fragment,null,N.createElement(P8,{className:"leaflet-popup"},w.title&&N.createElement("h3",{className:"utrecht-heading-3"},w.title),w.url&&N.createElement("a",{className:"pop-up-link",href:w.url},"Lees verder"))):N.createElement(T8,{permanent:!0,direction:"center"},N.createElement("span",{onClick:()=>{w.url&&window.open(w.url,"_self")}},w.title))))):m&&N.createElement(Dp,{...c,positions:m.map(w=>w==null?void 0:w.map(([S,P])=>[P,S])),pathOptions:o}))}function cv(r){window.oscMap||(window.oscMap={}),window.oscMap[r]||(window.oscMap[r]={map:null});let a=window.oscMap[r];function o(s){a.map||(window.oscMap[r].map=s)}return[a.map,o]}function kC({mapId:r}){const a=Ac();let[,o]=cv(r);return o(a),null}function hv(r,a,o){return r&&(r.className||(r.className=""),r.className.match(new RegExp(" ?"+a+"(?: |$)"))||(r.className=o&&o.before?a+" "+r.className:r.className+" "+a)),r}function FC(r,a){return r&&r.className&&(r.className=r.className.replace(new RegExp(" ?"+a+"(?: |$)"),"")),r}function BC({icon:r=void 0,iconCreateFunction:a=void 0,defaultIcon:o=void 0}){let s;if(!r){if(a&&typeof a=="string"){const c=globalThis[a];typeof c=="function"?a=c:(a=void 0,console.warn(`Function ${a} is not defined on globalThis.`))}a&&typeof a=="function"&&(r=a())}if(r||(r=o),r){let c=r.options||r;try{c=JSON.parse(c)}catch{}!c.iconSize&&c.width&&c.height&&(c.iconSize=[c.width,c.height]),!c.iconAnchor&&c.anchor&&(c.iconAnchor=c.anchor),c.iconUrl?s=new un.Icon(c):c.html&&(s=un.divIcon(c))}if(!s){let c=(r==null?void 0:r.title)||"Locatie pin",f=(r==null?void 0:r.color)||"#555588",g=`<?xml version="1.0" encoding="UTF-8"?><svg width="29" height="40" viewBox="0 0 39 50" fill="none" xmlns="http://www.w3.org/2000/svg"> <title>${c}</title><path d="M19.1038 0C29.6577 0 38.2075 8.46671 38.2075 18.9181C38.2075 33.1786 21.7544 47.7273 21.0432 48.3035L19.1038 50L17.1643 48.3035C16.4532 47.7273 0 33.1786 0 18.9181C0 8.46831 8.54983 0 19.1038 0ZM32.3245 18.9181C32.3083 11.6837 26.4091 5.84187 19.1038 5.82586C11.7984 5.84187 5.89922 11.6837 5.88306 18.9181C5.88306 27.3367 14.1581 37.2439 19.0876 42.1095C23.1767 38.1242 32.3245 27.993 32.3245 18.9181Z" fill="${f}"></path><path d="M19.104 5.82568C26.4093 5.84169 32.3086 11.6836 32.3247 18.9179C32.3247 27.9928 23.1769 38.124 19.0879 42.1093C14.1584 37.2437 5.8833 27.3366 5.8833 18.9179C5.89946 11.6836 11.7987 5.84169 19.104 5.82568ZM25.5689 18.9179C25.5689 15.3807 22.6759 12.5158 19.104 12.5158C15.5322 12.5158 12.6391 15.3807 12.6391 18.9179C12.6391 22.455 15.5322 25.3199 19.104 25.3199C22.6759 25.3199 25.5689 22.455 25.5689 18.9179Z" fill="white"></path><path d="M19.1038 25.3202C22.6743 25.3202 25.5687 22.4539 25.5687 18.9182C25.5687 15.3824 22.6743 12.5161 19.1038 12.5161C15.5333 12.5161 12.6389 15.3824 12.6389 18.9182C12.6389 22.4539 15.5333 25.3202 19.1038 25.3202Z" fill="${f}"></path></svg>`;s=un.divIcon({html:g,className:r==null?void 0:r.className,iconSize:[34,45],iconAnchor:[17,45]})}return s}function fv({lat:r=void 0,lng:a=void 0,isFaded:o=!1,isVisible:s=!0,icon:c=void 0,iconCreateFunction:f=void 0,defaultIcon:g=void 0,href:m=void 0,onClick:y=void 0,onMouseDown:C=void 0,onMouseUp:_=void 0,onDragStart:b=void 0,onDragEnd:w=void 0,...S}){const P=Ac();if(c){try{c=JSON.parse(c)}catch{}hv(c,"osc-map-marker",{before:!0}),o?hv(c,"osc-map-marker-faded"):FC(c,"osc-map-marker-faded")}c=BC({icon:c,iconCreateFunction:f,defaultIcon:g});let O={};for(let G of["click","mouseDown","mouseUp","dragStart","dragEnd"]){let k="on"+G.charAt(0).toUpperCase()+G.slice(1);G=G.toLowerCase();let A=S[k]||[];Array.isArray(A)||(A=[A]),k==="onClick"&&m&&A.push(()=>{document.location.href=m}),A.length&&(O[G]=R=>{A.forEach(j=>{let W=new CustomEvent("osc-map-marker-click",{detail:R});if(window.dispatchEvent(W),typeof j=="string"){const F=globalThis[j];typeof F=="function"?F(R,P):console.warn(`Function "${j}" is not defined on globalThis.`)}else j(R,P)})})}let q=O.dragstart||O.dragend;return s&&typeof r=="number"&&typeof a=="number"?N.createElement(L8,{...S,draggable:!!q,eventHandlers:O,icon:c,position:[r,a]}):null}var Ii={};const zC=iu(E8);var Ma={exports:{}},GC=Ma.exports,dv;function qC(){return dv||(dv=1,(function(r,a){(function(o,s){s(a)})(GC,function(o){var s=L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,clusterPane:L.Marker.prototype.options.pane,spiderfyOnEveryZoom:!1,spiderfyOnMaxZoom:!0,showCoverageOnHover:!0,zoomToBoundsOnClick:!0,singleMarkerMode:!1,disableClusteringAtZoom:null,removeOutsideVisibleBounds:!0,animate:!0,animateAddingMarkers:!1,spiderfyShapePositions:null,spiderfyDistanceMultiplier:1,spiderLegPolylineOptions:{weight:1.5,color:"#222",opacity:.5},chunkedLoading:!1,chunkInterval:200,chunkDelay:50,chunkProgress:null,polygonOptions:{}},initialize:function(f){L.Util.setOptions(this,f),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),this._featureGroup=L.featureGroup(),this._featureGroup.addEventParent(this),this._nonPointGroup=L.featureGroup(),this._nonPointGroup.addEventParent(this),this._inZoomAnimation=0,this._needsClustering=[],this._needsRemoving=[],this._currentShownBounds=null,this._queue=[],this._childMarkerEventHandlers={dragstart:this._childMarkerDragStart,move:this._childMarkerMoved,dragend:this._childMarkerDragEnd};var g=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,g?this._withAnimation:this._noAnimation),this._markerCluster=g?L.MarkerCluster:L.MarkerClusterNonAnimated},addLayer:function(f){if(f instanceof L.LayerGroup)return this.addLayers([f]);if(!f.getLatLng)return this._nonPointGroup.addLayer(f),this.fire("layeradd",{layer:f}),this;if(!this._map)return this._needsClustering.push(f),this.fire("layeradd",{layer:f}),this;if(this.hasLayer(f))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(f,this._maxZoom),this.fire("layeradd",{layer:f}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var g=f,m=this._zoom;if(f.__parent)for(;g.__parent._zoom>=m;)g=g.__parent;return this._currentShownBounds.contains(g.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(f,g):this._animationAddLayerNonAnimated(f,g)),this},removeLayer:function(f){return f instanceof L.LayerGroup?this.removeLayers([f]):f.getLatLng?this._map?f.__parent?(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(f)),this._removeLayer(f,!0),this.fire("layerremove",{layer:f}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),f.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(f)&&(this._featureGroup.removeLayer(f),f.clusterShow&&f.clusterShow()),this):this:(!this._arraySplice(this._needsClustering,f)&&this.hasLayer(f)&&this._needsRemoving.push({layer:f,latlng:f._latlng}),this.fire("layerremove",{layer:f}),this):(this._nonPointGroup.removeLayer(f),this.fire("layerremove",{layer:f}),this)},addLayers:function(f,g){if(!L.Util.isArray(f))return this.addLayer(f);var m=this._featureGroup,y=this._nonPointGroup,C=this.options.chunkedLoading,_=this.options.chunkInterval,b=this.options.chunkProgress,w=f.length,S=0,P=!0,O;if(this._map){var q=new Date().getTime(),G=L.bind(function(){var A=new Date().getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();S<w;S++){if(C&&S%200===0){var R=new Date().getTime()-A;if(R>_)break}if(O=f[S],O instanceof L.LayerGroup){P&&(f=f.slice(),P=!1),this._extractNonGroupLayers(O,f),w=f.length;continue}if(!O.getLatLng){y.addLayer(O),g||this.fire("layeradd",{layer:O});continue}if(!this.hasLayer(O)&&(this._addLayer(O,this._maxZoom),g||this.fire("layeradd",{layer:O}),O.__parent&&O.__parent.getChildCount()===2)){var j=O.__parent.getAllChildMarkers(),W=j[0]===O?j[1]:j[0];m.removeLayer(W)}}b&&b(S,w,new Date().getTime()-q),S===w?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(G,this.options.chunkDelay)},this);G()}else for(var k=this._needsClustering;S<w;S++){if(O=f[S],O instanceof L.LayerGroup){P&&(f=f.slice(),P=!1),this._extractNonGroupLayers(O,f),w=f.length;continue}if(!O.getLatLng){y.addLayer(O);continue}this.hasLayer(O)||k.push(O)}return this},removeLayers:function(f){var g,m,y=f.length,C=this._featureGroup,_=this._nonPointGroup,b=!0;if(!this._map){for(g=0;g<y;g++){if(m=f[g],m instanceof L.LayerGroup){b&&(f=f.slice(),b=!1),this._extractNonGroupLayers(m,f),y=f.length;continue}this._arraySplice(this._needsClustering,m),_.removeLayer(m),this.hasLayer(m)&&this._needsRemoving.push({layer:m,latlng:m._latlng}),this.fire("layerremove",{layer:m})}return this}if(this._unspiderfy){this._unspiderfy();var w=f.slice(),S=y;for(g=0;g<S;g++){if(m=w[g],m instanceof L.LayerGroup){this._extractNonGroupLayers(m,w),S=w.length;continue}this._unspiderfyLayer(m)}}for(g=0;g<y;g++){if(m=f[g],m instanceof L.LayerGroup){b&&(f=f.slice(),b=!1),this._extractNonGroupLayers(m,f),y=f.length;continue}if(!m.__parent){_.removeLayer(m),this.fire("layerremove",{layer:m});continue}this._removeLayer(m,!0,!0),this.fire("layerremove",{layer:m}),C.hasLayer(m)&&(C.removeLayer(m),m.clusterShow&&m.clusterShow())}return this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds),this},clearLayers:function(){return this._map||(this._needsClustering=[],this._needsRemoving=[],delete this._gridClusters,delete this._gridUnclustered),this._noanimationUnspiderfy&&this._noanimationUnspiderfy(),this._featureGroup.clearLayers(),this._nonPointGroup.clearLayers(),this.eachLayer(function(f){f.off(this._childMarkerEventHandlers,this),delete f.__parent},this),this._map&&this._generateInitialClusters(),this},getBounds:function(){var f=new L.LatLngBounds;this._topClusterLevel&&f.extend(this._topClusterLevel._bounds);for(var g=this._needsClustering.length-1;g>=0;g--)f.extend(this._needsClustering[g].getLatLng());return f.extend(this._nonPointGroup.getBounds()),f},eachLayer:function(f,g){var m=this._needsClustering.slice(),y=this._needsRemoving,C,_,b;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(m),_=m.length-1;_>=0;_--){for(C=!0,b=y.length-1;b>=0;b--)if(y[b].layer===m[_]){C=!1;break}C&&f.call(g,m[_])}this._nonPointGroup.eachLayer(f,g)},getLayers:function(){var f=[];return this.eachLayer(function(g){f.push(g)}),f},getLayer:function(f){var g=null;return f=parseInt(f,10),this.eachLayer(function(m){L.stamp(m)===f&&(g=m)}),g},hasLayer:function(f){if(!f)return!1;var g,m=this._needsClustering;for(g=m.length-1;g>=0;g--)if(m[g]===f)return!0;for(m=this._needsRemoving,g=m.length-1;g>=0;g--)if(m[g].layer===f)return!1;return!!(f.__parent&&f.__parent._group===this)||this._nonPointGroup.hasLayer(f)},zoomToShowLayer:function(f,g){var m=this._map;typeof g!="function"&&(g=function(){});var y=function(){(m.hasLayer(f)||m.hasLayer(f.__parent))&&!this._inZoomAnimation&&(this._map.off("moveend",y,this),this.off("animationend",y,this),m.hasLayer(f)?g():f.__parent._icon&&(this.once("spiderfied",g,this),f.__parent.spiderfy()))};f._icon&&this._map.getBounds().contains(f.getLatLng())?g():f.__parent._zoom<Math.round(this._map._zoom)?(this._map.on("moveend",y,this),this._map.panTo(f.getLatLng())):(this._map.on("moveend",y,this),this.on("animationend",y,this),f.__parent.zoomToBounds())},onAdd:function(f){this._map=f;var g,m,y;if(!isFinite(this._map.getMaxZoom()))throw"Map has no maxZoom specified";for(this._featureGroup.addTo(f),this._nonPointGroup.addTo(f),this._gridClusters||this._generateInitialClusters(),this._maxLat=f.options.crs.projection.MAX_LATITUDE,g=0,m=this._needsRemoving.length;g<m;g++)y=this._needsRemoving[g],y.newlatlng=y.layer._latlng,y.layer._latlng=y.latlng;for(g=0,m=this._needsRemoving.length;g<m;g++)y=this._needsRemoving[g],this._removeLayer(y.layer,!0),y.layer._latlng=y.newlatlng;this._needsRemoving=[],this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds(),this._map.on("zoomend",this._zoomEnd,this),this._map.on("moveend",this._moveEnd,this),this._spiderfierOnAdd&&this._spiderfierOnAdd(),this._bindEvents(),m=this._needsClustering,this._needsClustering=[],this.addLayers(m,!0)},onRemove:function(f){f.off("zoomend",this._zoomEnd,this),f.off("moveend",this._moveEnd,this),this._unbindEvents(),this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim",""),this._spiderfierOnRemove&&this._spiderfierOnRemove(),delete this._maxLat,this._hideCoverage(),this._featureGroup.remove(),this._nonPointGroup.remove(),this._featureGroup.clearLayers(),this._map=null},getVisibleParent:function(f){for(var g=f;g&&!g._icon;)g=g.__parent;return g||null},_arraySplice:function(f,g){for(var m=f.length-1;m>=0;m--)if(f[m]===g)return f.splice(m,1),!0},_removeFromGridUnclustered:function(f,g){for(var m=this._map,y=this._gridUnclustered,C=Math.floor(this._map.getMinZoom());g>=C&&y[g].removeObject(f,m.project(f.getLatLng(),g));g--);},_childMarkerDragStart:function(f){f.target.__dragStart=f.target._latlng},_childMarkerMoved:function(f){if(!this._ignoreMove&&!f.target.__dragStart){var g=f.target._popup&&f.target._popup.isOpen();this._moveChild(f.target,f.oldLatLng,f.latlng),g&&f.target.openPopup()}},_moveChild:function(f,g,m){f._latlng=g,this.removeLayer(f),f._latlng=m,this.addLayer(f)},_childMarkerDragEnd:function(f){var g=f.target.__dragStart;delete f.target.__dragStart,g&&this._moveChild(f.target,g,f.target._latlng)},_removeLayer:function(f,g,m){var y=this._gridClusters,C=this._gridUnclustered,_=this._featureGroup,b=this._map,w=Math.floor(this._map.getMinZoom());g&&this._removeFromGridUnclustered(f,this._maxZoom);var S=f.__parent,P=S._markers,O;for(this._arraySplice(P,f);S&&(S._childCount--,S._boundsNeedUpdate=!0,!(S._zoom<w));)g&&S._childCount<=1?(O=S._markers[0]===f?S._markers[1]:S._markers[0],y[S._zoom].removeObject(S,b.project(S._cLatLng,S._zoom)),C[S._zoom].addObject(O,b.project(O.getLatLng(),S._zoom)),this._arraySplice(S.__parent._childClusters,S),S.__parent._markers.push(O),O.__parent=S.__parent,S._icon&&(_.removeLayer(S),m||_.addLayer(O))):S._iconNeedsUpdate=!0,S=S.__parent;delete f.__parent},_isOrIsParent:function(f,g){for(;g;){if(f===g)return!0;g=g.parentNode}return!1},fire:function(f,g,m){if(g&&g.layer instanceof L.MarkerCluster){if(g.originalEvent&&this._isOrIsParent(g.layer._icon,g.originalEvent.relatedTarget))return;f="cluster"+f}L.FeatureGroup.prototype.fire.call(this,f,g,m)},listens:function(f,g){return L.FeatureGroup.prototype.listens.call(this,f,g)||L.FeatureGroup.prototype.listens.call(this,"cluster"+f,g)},_defaultIconCreateFunction:function(f){var g=f.getChildCount(),m=" marker-cluster-";return g<10?m+="small":g<100?m+="medium":m+="large",new L.DivIcon({html:"<div><span>"+g+"</span></div>",className:"marker-cluster"+m,iconSize:new L.Point(40,40)})},_bindEvents:function(){var f=this._map,g=this.options.spiderfyOnMaxZoom,m=this.options.showCoverageOnHover,y=this.options.zoomToBoundsOnClick,C=this.options.spiderfyOnEveryZoom;(g||y||C)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),m&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),f.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(f){var g=f.layer,m=g;if(!(f.type==="clusterkeypress"&&f.originalEvent&&f.originalEvent.keyCode!==13)){for(;m._childClusters.length===1;)m=m._childClusters[0];m._zoom===this._maxZoom&&m._childCount===g._childCount&&this.options.spiderfyOnMaxZoom?g.spiderfy():this.options.zoomToBoundsOnClick&&g.zoomToBounds(),this.options.spiderfyOnEveryZoom&&g.spiderfy(),f.originalEvent&&f.originalEvent.keyCode===13&&this._map._container.focus()}},_showCoverage:function(f){var g=this._map;this._inZoomAnimation||(this._shownPolygon&&g.removeLayer(this._shownPolygon),f.layer.getChildCount()>2&&f.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(f.layer.getConvexHull(),this.options.polygonOptions),g.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var f=this.options.spiderfyOnMaxZoom,g=this.options.showCoverageOnHover,m=this.options.zoomToBoundsOnClick,y=this.options.spiderfyOnEveryZoom,C=this._map;(f||m||y)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),g&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),C.off("zoomend",this._hideCoverage,this))},_zoomEnd:function(){this._map&&(this._mergeSplitClusters(),this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds())},_moveEnd:function(){if(!this._inZoomAnimation){var f=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,f),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),f),this._currentShownBounds=f}},_generateInitialClusters:function(){var f=Math.ceil(this._map.getMaxZoom()),g=Math.floor(this._map.getMinZoom()),m=this.options.maxClusterRadius,y=m;typeof m!="function"&&(y=function(){return m}),this.options.disableClusteringAtZoom!==null&&(f=this.options.disableClusteringAtZoom-1),this._maxZoom=f,this._gridClusters={},this._gridUnclustered={};for(var C=f;C>=g;C--)this._gridClusters[C]=new L.DistanceGrid(y(C)),this._gridUnclustered[C]=new L.DistanceGrid(y(C));this._topClusterLevel=new this._markerCluster(this,g-1)},_addLayer:function(f,g){var m=this._gridClusters,y=this._gridUnclustered,C=Math.floor(this._map.getMinZoom()),_,b;for(this.options.singleMarkerMode&&this._overrideMarkerIcon(f),f.on(this._childMarkerEventHandlers,this);g>=C;g--){_=this._map.project(f.getLatLng(),g);var w=m[g].getNearObject(_);if(w){w._addChild(f),f.__parent=w;return}if(w=y[g].getNearObject(_),w){var S=w.__parent;S&&this._removeLayer(w,!1);var P=new this._markerCluster(this,g,w,f);m[g].addObject(P,this._map.project(P._cLatLng,g)),w.__parent=P,f.__parent=P;var O=P;for(b=g-1;b>S._zoom;b--)O=new this._markerCluster(this,b,O),m[b].addObject(O,this._map.project(w.getLatLng(),b));S._addChild(O),this._removeFromGridUnclustered(w,g);return}y[g].addObject(f,_)}this._topClusterLevel._addChild(f),f.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer(function(f){f instanceof L.MarkerCluster&&f._iconNeedsUpdate&&f._updateIcon()})},_enqueue:function(f){this._queue.push(f),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var f=0;f<this._queue.length;f++)this._queue[f].call(this);this._queue.length=0,clearTimeout(this._queueTimeout),this._queueTimeout=null},_mergeSplitClusters:function(){var f=Math.round(this._map._zoom);this._processQueue(),this._zoom<f&&this._currentShownBounds.intersects(this._getExpandedVisibleBounds())?(this._animationStart(),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,this._getExpandedVisibleBounds()),this._animationZoomIn(this._zoom,f)):this._zoom>f?(this._animationStart(),this._animationZoomOut(this._zoom,f)):this._moveEnd()},_getExpandedVisibleBounds:function(){if(this.options.removeOutsideVisibleBounds){if(L.Browser.mobile)return this._checkBoundsMaxLat(this._map.getBounds())}else return this._mapBoundsInfinite;return this._checkBoundsMaxLat(this._map.getBounds().pad(1))},_checkBoundsMaxLat:function(f){var g=this._maxLat;return g!==void 0&&(f.getNorth()>=g&&(f._northEast.lat=1/0),f.getSouth()<=-g&&(f._southWest.lat=-1/0)),f},_animationAddLayerNonAnimated:function(f,g){if(g===f)this._featureGroup.addLayer(f);else if(g._childCount===2){g._addToMap();var m=g.getAllChildMarkers();this._featureGroup.removeLayer(m[0]),this._featureGroup.removeLayer(m[1])}else g._updateIcon()},_extractNonGroupLayers:function(f,g){var m=f.getLayers(),y=0,C;for(g=g||[];y<m.length;y++){if(C=m[y],C instanceof L.LayerGroup){this._extractNonGroupLayers(C,g);continue}g.push(C)}return g},_overrideMarkerIcon:function(f){var g=f.options.icon=this.options.iconCreateFunction({getChildCount:function(){return 1},getAllChildMarkers:function(){return[f]}});return g}});L.MarkerClusterGroup.include({_mapBoundsInfinite:new L.LatLngBounds(new L.LatLng(-1/0,-1/0),new L.LatLng(1/0,1/0))}),L.MarkerClusterGroup.include({_noAnimation:{_animationStart:function(){},_animationZoomIn:function(f,g){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),f),this._topClusterLevel._recursivelyAddChildrenToMap(null,g,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationZoomOut:function(f,g){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),f),this._topClusterLevel._recursivelyAddChildrenToMap(null,g,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationAddLayer:function(f,g){this._animationAddLayerNonAnimated(f,g)}},_withAnimation:{_animationStart:function(){this._map._mapPane.className+=" leaflet-cluster-anim",this._inZoomAnimation++},_animationZoomIn:function(f,g){var m=this._getExpandedVisibleBounds(),y=this._featureGroup,C=Math.floor(this._map.getMinZoom()),_;this._ignoreMove=!0,this._topClusterLevel._recursively(m,f,C,function(b){var w=b._latlng,S=b._markers,P;for(m.contains(w)||(w=null),b._isSingleParent()&&f+1===g?(y.removeLayer(b),b._recursivelyAddChildrenToMap(null,g,m)):(b.clusterHide(),b._recursivelyAddChildrenToMap(w,g,m)),_=S.length-1;_>=0;_--)P=S[_],m.contains(P._latlng)||y.removeLayer(P)}),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(m,g),y.eachLayer(function(b){!(b instanceof L.MarkerCluster)&&b._icon&&b.clusterShow()}),this._topClusterLevel._recursively(m,f,g,function(b){b._recursivelyRestoreChildPositions(g)}),this._ignoreMove=!1,this._enqueue(function(){this._topClusterLevel._recursively(m,f,C,function(b){y.removeLayer(b),b.clusterShow()}),this._animationEnd()})},_animationZoomOut:function(f,g){this._animationZoomOutSingle(this._topClusterLevel,f-1,g),this._topClusterLevel._recursivelyAddChildrenToMap(null,g,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),f,this._getExpandedVisibleBounds())},_animationAddLayer:function(f,g){var m=this,y=this._featureGroup;y.addLayer(f),g!==f&&(g._childCount>2?(g._updateIcon(),this._forceLayout(),this._animationStart(),f._setPos(this._map.latLngToLayerPoint(g.getLatLng())),f.clusterHide(),this._enqueue(function(){y.removeLayer(f),f.clusterShow(),m._animationEnd()})):(this._forceLayout(),m._animationStart(),m._animationZoomOutSingle(g,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(f,g,m){var y=this._getExpandedVisibleBounds(),C=Math.floor(this._map.getMinZoom());f._recursivelyAnimateChildrenInAndAddSelfToMap(y,C,g+1,m);var _=this;this._forceLayout(),f._recursivelyBecomeVisible(y,m),this._enqueue(function(){if(f._childCount===1){var b=f._markers[0];this._ignoreMove=!0,b.setLatLng(b.getLatLng()),this._ignoreMove=!1,b.clusterShow&&b.clusterShow()}else f._recursively(y,m,C,function(w){w._recursivelyRemoveChildrenFromMap(y,C,g+1)});_._animationEnd()})},_animationEnd:function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")),this._inZoomAnimation--,this.fire("animationend")},_forceLayout:function(){L.Util.falseFn(document.body.offsetWidth)}}),L.markerClusterGroup=function(f){return new L.MarkerClusterGroup(f)};var c=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(f,g,m,y){L.Marker.prototype.initialize.call(this,m?m._cLatLng||m.getLatLng():new L.LatLng(0,0),{icon:this,pane:f.options.clusterPane}),this._group=f,this._zoom=g,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,m&&this._addChild(m),y&&this._addChild(y)},getAllChildMarkers:function(f,g){f=f||[];for(var m=this._childClusters.length-1;m>=0;m--)this._childClusters[m].getAllChildMarkers(f,g);for(var y=this._markers.length-1;y>=0;y--)g&&this._markers[y].__dragStart||f.push(this._markers[y]);return f},getChildCount:function(){return this._childCount},zoomToBounds:function(f){for(var g=this._childClusters.slice(),m=this._group._map,y=m.getBoundsZoom(this._bounds),C=this._zoom+1,_=m.getZoom(),b;g.length>0&&y>C;){C++;var w=[];for(b=0;b<g.length;b++)w=w.concat(g[b]._childClusters);g=w}y>C?this._group._map.setView(this._latlng,C):y<=_?this._group._map.setView(this._latlng,_+1):this._group._map.fitBounds(this._bounds,f)},getBounds:function(){var f=new L.LatLngBounds;return f.extend(this._bounds),f},_updateIcon:function(){this._iconNeedsUpdate=!0,this._icon&&this.setIcon(this)},createIcon:function(){return this._iconNeedsUpdate&&(this._iconObj=this._group.options.iconCreateFunction(this),this._iconNeedsUpdate=!1),this._iconObj.createIcon()},createShadow:function(){return this._iconObj.createShadow()},_addChild:function(f,g){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(f),f instanceof L.MarkerCluster?(g||(this._childClusters.push(f),f.__parent=this),this._childCount+=f._childCount):(g||this._markers.push(f),this._childCount++),this.__parent&&this.__parent._addChild(f,!0)},_setClusterCenter:function(f){this._cLatLng||(this._cLatLng=f._cLatLng||f._latlng)},_resetBounds:function(){var f=this._bounds;f._southWest&&(f._southWest.lat=1/0,f._southWest.lng=1/0),f._northEast&&(f._northEast.lat=-1/0,f._northEast.lng=-1/0)},_recalculateBounds:function(){var f=this._markers,g=this._childClusters,m=0,y=0,C=this._childCount,_,b,w,S;if(C!==0){for(this._resetBounds(),_=0;_<f.length;_++)w=f[_]._latlng,this._bounds.extend(w),m+=w.lat,y+=w.lng;for(_=0;_<g.length;_++)b=g[_],b._boundsNeedUpdate&&b._recalculateBounds(),this._bounds.extend(b._bounds),w=b._wLatLng,S=b._childCount,m+=w.lat*S,y+=w.lng*S;this._latlng=this._wLatLng=new L.LatLng(m/C,y/C),this._boundsNeedUpdate=!1}},_addToMap:function(f){f&&(this._backupLatlng=this._latlng,this.setLatLng(f)),this._group._featureGroup.addLayer(this)},_recursivelyAnimateChildrenIn:function(f,g,m){this._recursively(f,this._group._map.getMinZoom(),m-1,function(y){var C=y._markers,_,b;for(_=C.length-1;_>=0;_--)b=C[_],b._icon&&(b._setPos(g),b.clusterHide())},function(y){var C=y._childClusters,_,b;for(_=C.length-1;_>=0;_--)b=C[_],b._icon&&(b._setPos(g),b.clusterHide())})},_recursivelyAnimateChildrenInAndAddSelfToMap:function(f,g,m,y){this._recursively(f,y,g,function(C){C._recursivelyAnimateChildrenIn(f,C._group._map.latLngToLayerPoint(C.getLatLng()).round(),m),C._isSingleParent()&&m-1===y?(C.clusterShow(),C._recursivelyRemoveChildrenFromMap(f,g,m)):C.clusterHide(),C._addToMap()})},_recursivelyBecomeVisible:function(f,g){this._recursively(f,this._group._map.getMinZoom(),g,null,function(m){m.clusterShow()})},_recursivelyAddChildrenToMap:function(f,g,m){this._recursively(m,this._group._map.getMinZoom()-1,g,function(y){if(g!==y._zoom)for(var C=y._markers.length-1;C>=0;C--){var _=y._markers[C];m.contains(_._latlng)&&(f&&(_._backupLatlng=_.getLatLng(),_.setLatLng(f),_.clusterHide&&_.clusterHide()),y._group._featureGroup.addLayer(_))}},function(y){y._addToMap(f)})},_recursivelyRestoreChildPositions:function(f){for(var g=this._markers.length-1;g>=0;g--){var m=this._markers[g];m._backupLatlng&&(m.setLatLng(m._backupLatlng),delete m._backupLatlng)}if(f-1===this._zoom)for(var y=this._childClusters.length-1;y>=0;y--)this._childClusters[y]._restorePosition();else for(var C=this._childClusters.length-1;C>=0;C--)this._childClusters[C]._recursivelyRestoreChildPositions(f)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(f,g,m,y){var C,_;this._recursively(f,g-1,m-1,function(b){for(_=b._markers.length-1;_>=0;_--)C=b._markers[_],(!y||!y.contains(C._latlng))&&(b._group._featureGroup.removeLayer(C),C.clusterShow&&C.clusterShow())},function(b){for(_=b._childClusters.length-1;_>=0;_--)C=b._childClusters[_],(!y||!y.contains(C._latlng))&&(b._group._featureGroup.removeLayer(C),C.clusterShow&&C.clusterShow())})},_recursively:function(f,g,m,y,C){var _=this._childClusters,b=this._zoom,w,S;if(g<=b&&(y&&y(this),C&&b===m&&C(this)),b<g||b<m)for(w=_.length-1;w>=0;w--)S=_[w],S._boundsNeedUpdate&&S._recalculateBounds(),f.intersects(S._bounds)&&S._recursively(f,g,m,y,C)},_isSingleParent:function(){return this._childClusters.length>0&&this._childClusters[0]._childCount===this._childCount}});L.Marker.include({clusterHide:function(){var f=this.options.opacity;return this.setOpacity(0),this.options.opacity=f,this},clusterShow:function(){return this.setOpacity(this.options.opacity)}}),L.DistanceGrid=function(f){this._cellSize=f,this._sqCellSize=f*f,this._grid={},this._objectPoint={}},L.DistanceGrid.prototype={addObject:function(f,g){var m=this._getCoord(g.x),y=this._getCoord(g.y),C=this._grid,_=C[y]=C[y]||{},b=_[m]=_[m]||[],w=L.Util.stamp(f);this._objectPoint[w]=g,b.push(f)},updateObject:function(f,g){this.removeObject(f),this.addObject(f,g)},removeObject:function(f,g){var m=this._getCoord(g.x),y=this._getCoord(g.y),C=this._grid,_=C[y]=C[y]||{},b=_[m]=_[m]||[],w,S;for(delete this._objectPoint[L.Util.stamp(f)],w=0,S=b.length;w<S;w++)if(b[w]===f)return b.splice(w,1),S===1&&delete _[m],!0},eachObject:function(f,g){var m,y,C,_,b,w,S,P=this._grid;for(m in P){b=P[m];for(y in b)for(w=b[y],C=0,_=w.length;C<_;C++)S=f.call(g,w[C]),S&&(C--,_--)}},getNearObject:function(f){var g=this._getCoord(f.x),m=this._getCoord(f.y),y,C,_,b,w,S,P,O,q=this._objectPoint,G=this._sqCellSize,k=null;for(y=m-1;y<=m+1;y++)if(b=this._grid[y],b){for(C=g-1;C<=g+1;C++)if(w=b[C],w)for(_=0,S=w.length;_<S;_++)P=w[_],O=this._sqDist(q[L.Util.stamp(P)],f),(O<G||O<=G&&k===null)&&(G=O,k=P)}return k},_getCoord:function(f){var g=Math.floor(f/this._cellSize);return isFinite(g)?g:f},_sqDist:function(f,g){var m=g.x-f.x,y=g.y-f.y;return m*m+y*y}},(function(){L.QuickHull={getDistant:function(f,g){var m=g[1].lat-g[0].lat,y=g[0].lng-g[1].lng;return y*(f.lat-g[0].lat)+m*(f.lng-g[0].lng)},findMostDistantPointFromBaseLine:function(f,g){var m=0,y=null,C=[],_,b,w;for(_=g.length-1;_>=0;_--){if(b=g[_],w=this.getDistant(b,f),w>0)C.push(b);else continue;w>m&&(m=w,y=b)}return{maxPoint:y,newPoints:C}},buildConvexHull:function(f,g){var m=[],y=this.findMostDistantPointFromBaseLine(f,g);return y.maxPoint?(m=m.concat(this.buildConvexHull([f[0],y.maxPoint],y.newPoints)),m=m.concat(this.buildConvexHull([y.maxPoint,f[1]],y.newPoints)),m):[f[0]]},getConvexHull:function(f){var g=!1,m=!1,y=!1,C=!1,_=null,b=null,w=null,S=null,P=null,O=null,q;for(q=f.length-1;q>=0;q--){var G=f[q];(g===!1||G.lat>g)&&(_=G,g=G.lat),(m===!1||G.lat<m)&&(b=G,m=G.lat),(y===!1||G.lng>y)&&(w=G,y=G.lng),(C===!1||G.lng<C)&&(S=G,C=G.lng)}m!==g?(O=b,P=_):(O=S,P=w);var k=[].concat(this.buildConvexHull([O,P],f),this.buildConvexHull([P,O],f));return k}}})(),L.MarkerCluster.include({getConvexHull:function(){var f=this.getAllChildMarkers(),g=[],m,y;for(y=f.length-1;y>=0;y--)m=f[y].getLatLng(),g.push(m);return L.QuickHull.getConvexHull(g)}}),L.MarkerCluster.include({_2PI:Math.PI*2,_circleFootSeparation:25,_circleStartAngle:0,_spiralFootSeparation:28,_spiralLengthStart:11,_spiralLengthFactor:5,_circleSpiralSwitchover:9,spiderfy:function(){if(!(this._group._spiderfied===this||this._group._inZoomAnimation)){var f=this.getAllChildMarkers(null,!0),g=this._group,m=g._map,y=m.latLngToLayerPoint(this._latlng),C;this._group._unspiderfy(),this._group._spiderfied=this,this._group.options.spiderfyShapePositions?C=this._group.options.spiderfyShapePositions(f.length,y):f.length>=this._circleSpiralSwitchover?C=this._generatePointsSpiral(f.length,y):(y.y+=10,C=this._generatePointsCircle(f.length,y)),this._animationSpiderfy(f,C)}},unspiderfy:function(f){this._group._inZoomAnimation||(this._animationUnspiderfy(f),this._group._spiderfied=null)},_generatePointsCircle:function(f,g){var m=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+f),y=m/this._2PI,C=this._2PI/f,_=[],b,w;for(y=Math.max(y,35),_.length=f,b=0;b<f;b++)w=this._circleStartAngle+b*C,_[b]=new L.Point(g.x+y*Math.cos(w),g.y+y*Math.sin(w))._round();return _},_generatePointsSpiral:function(f,g){var m=this._group.options.spiderfyDistanceMultiplier,y=m*this._spiralLengthStart,C=m*this._spiralFootSeparation,_=m*this._spiralLengthFactor*this._2PI,b=0,w=[],S;for(w.length=f,S=f;S>=0;S--)S<f&&(w[S]=new L.Point(g.x+y*Math.cos(b),g.y+y*Math.sin(b))._round()),b+=C/y+S*5e-4,y+=_/b;return w},_noanimationUnspiderfy:function(){var f=this._group,g=f._map,m=f._featureGroup,y=this.getAllChildMarkers(null,!0),C,_;for(f._ignoreMove=!0,this.setOpacity(1),_=y.length-1;_>=0;_--)C=y[_],m.removeLayer(C),C._preSpiderfyLatlng&&(C.setLatLng(C._preSpiderfyLatlng),delete C._preSpiderfyLatlng),C.setZIndexOffset&&C.setZIndexOffset(0),C._spiderLeg&&(g.removeLayer(C._spiderLeg),delete C._spiderLeg);f.fire("unspiderfied",{cluster:this,markers:y}),f._ignoreMove=!1,f._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(f,g){var m=this._group,y=m._map,C=m._featureGroup,_=this._group.options.spiderLegPolylineOptions,b,w,S,P;for(m._ignoreMove=!0,b=0;b<f.length;b++)P=y.layerPointToLatLng(g[b]),w=f[b],S=new L.Polyline([this._latlng,P],_),y.addLayer(S),w._spiderLeg=S,w._preSpiderfyLatlng=w._latlng,w.setLatLng(P),w.setZIndexOffset&&w.setZIndexOffset(1e6),C.addLayer(w);this.setOpacity(.3),m._ignoreMove=!1,m.fire("spiderfied",{cluster:this,markers:f})},_animationUnspiderfy:function(){this._noanimationUnspiderfy()}}),L.MarkerCluster.include({_animationSpiderfy:function(f,g){var m=this,y=this._group,C=y._map,_=y._featureGroup,b=this._latlng,w=C.latLngToLayerPoint(b),S=L.Path.SVG,P=L.extend({},this._group.options.spiderLegPolylineOptions),O=P.opacity,q,G,k,A,R,j;for(O===void 0&&(O=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),S?(P.opacity=0,P.className=(P.className||"")+" leaflet-cluster-spider-leg"):P.opacity=O,y._ignoreMove=!0,q=0;q<f.length;q++)G=f[q],j=C.layerPointToLatLng(g[q]),k=new L.Polyline([b,j],P),C.addLayer(k),G._spiderLeg=k,S&&(A=k._path,R=A.getTotalLength()+.1,A.style.strokeDasharray=R,A.style.strokeDashoffset=R),G.setZIndexOffset&&G.setZIndexOffset(1e6),G.clusterHide&&G.clusterHide(),_.addLayer(G),G._setPos&&G._setPos(w);for(y._forceLayout(),y._animationStart(),q=f.length-1;q>=0;q--)j=C.layerPointToLatLng(g[q]),G=f[q],G._preSpiderfyLatlng=G._latlng,G.setLatLng(j),G.clusterShow&&G.clusterShow(),S&&(k=G._spiderLeg,A=k._path,A.style.strokeDashoffset=0,k.setStyle({opacity:O}));this.setOpacity(.3),y._ignoreMove=!1,setTimeout(function(){y._animationEnd(),y.fire("spiderfied",{cluster:m,markers:f})},200)},_animationUnspiderfy:function(f){var g=this,m=this._group,y=m._map,C=m._featureGroup,_=f?y._latLngToNewLayerPoint(this._latlng,f.zoom,f.center):y.latLngToLayerPoint(this._latlng),b=this.getAllChildMarkers(null,!0),w=L.Path.SVG,S,P,O,q,G,k;for(m._ignoreMove=!0,m._animationStart(),this.setOpacity(1),P=b.length-1;P>=0;P--)S=b[P],S._preSpiderfyLatlng&&(S.closePopup(),S.setLatLng(S._preSpiderfyLatlng),delete S._preSpiderfyLatlng,k=!0,S._setPos&&(S._setPos(_),k=!1),S.clusterHide&&(S.clusterHide(),k=!1),k&&C.removeLayer(S),w&&(O=S._spiderLeg,q=O._path,G=q.getTotalLength()+.1,q.style.strokeDashoffset=G,O.setStyle({opacity:0})));m._ignoreMove=!1,setTimeout(function(){var A=0;for(P=b.length-1;P>=0;P--)S=b[P],S._spiderLeg&&A++;for(P=b.length-1;P>=0;P--)S=b[P],S._spiderLeg&&(S.clusterShow&&S.clusterShow(),S.setZIndexOffset&&S.setZIndexOffset(0),A>1&&C.removeLayer(S),y.removeLayer(S._spiderLeg),delete S._spiderLeg);m._animationEnd(),m.fire("unspiderfied",{cluster:g,markers:b})},200)}}),L.MarkerClusterGroup.include({_spiderfied:null,unspiderfy:function(){this._unspiderfy.apply(this,arguments)},_spiderfierOnAdd:function(){this._map.on("click",this._unspiderfyWrapper,this),this._map.options.zoomAnimation&&this._map.on("zoomstart",this._unspiderfyZoomStart,this),this._map.on("zoomend",this._noanimationUnspiderfy,this),L.Browser.touch||this._map.getRenderer(this)},_spiderfierOnRemove:function(){this._map.off("click",this._unspiderfyWrapper,this),this._map.off("zoomstart",this._unspiderfyZoomStart,this),this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._map.off("zoomend",this._noanimationUnspiderfy,this),this._noanimationUnspiderfy()},_unspiderfyZoomStart:function(){this._map&&this._map.on("zoomanim",this._unspiderfyZoomAnim,this)},_unspiderfyZoomAnim:function(f){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(f))},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(f){this._spiderfied&&this._spiderfied.unspiderfy(f)},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},_unspiderfyLayer:function(f){f._spiderLeg&&(this._featureGroup.removeLayer(f),f.clusterShow&&f.clusterShow(),f.setZIndexOffset&&f.setZIndexOffset(0),this._map.removeLayer(f._spiderLeg),delete f._spiderLeg)}}),L.MarkerClusterGroup.include({refreshClusters:function(f){return f?f instanceof L.MarkerClusterGroup?f=f._topClusterLevel.getAllChildMarkers():f instanceof L.LayerGroup?f=f._layers:f instanceof L.MarkerCluster?f=f.getAllChildMarkers():f instanceof L.Marker&&(f=[f]):f=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(f),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(f),this},_flagParentsIconsNeedUpdate:function(f){var g,m;for(g in f)for(m=f[g].__parent;m;)m._iconNeedsUpdate=!0,m=m.__parent},_refreshSingleMarkerModeMarkers:function(f){var g,m;for(g in f)m=f[g],this.hasLayer(m)&&m.setIcon(this._overrideMarkerIcon(m))}}),L.Marker.include({refreshIconOptions:function(f,g){var m=this.options.icon;return L.setOptions(m,f),this.setIcon(m),g&&this.__parent&&this.__parent._group.refreshClusters(this),this}}),o.MarkerClusterGroup=s,o.MarkerCluster=c,Object.defineProperty(o,"__esModule",{value:!0})})})(Ma,Ma.exports)),Ma.exports}const VC=iu(Object.freeze(Object.defineProperty({__proto__:null,default:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAABSCAMAAAAhFXfZAAAC91BMVEVMaXEzeak2f7I4g7g3g7cua5gzeKg8hJo3grY4g7c3grU0gLI2frE0daAubJc2gbQwd6QzeKk2gLMtd5sxdKIua5g1frA2f7IydaM0e6w2fq41fK01eqo3grgubJgta5cxdKI1f7AydaQydaMxc6EubJgvbJkwcZ4ubZkwcJwubZgubJcydqUydKIxapgubJctbJcubZcubJcvbJYubJcvbZkubJctbJctbZcubJg2f7AubJcrbZcubJcubJcua5g3grY0fq8ubJcubJdEkdEwhsw6i88vhswuhcsuhMtBjMgthMsrg8srgss6is8qgcs8i9A9iMYtg8spgcoogMo7hcMngMonf8olfso4gr8kfck5iM8jfMk4iM8he8k1fro7itAgesk2hs8eecgzfLcofssdeMg0hc4cd8g2hcsxeLQbdsgZdcgxeLImfcszhM0vda4xgckzhM4xg84wf8Yxgs4udKsvfcQucqhUndROmdM1fK0wcZ8vb5w0eqpQm9MzeKhXoNVcpdYydKNWn9VZotVKltJFjsIwcJ1Rms9OlslLmtH///8+kc9epdYzd6dbo9VHkMM2f7FHmNBClM8ydqVcpNY9hro3gLM9hLczealQmcw3fa46f7A8gLMxc6I3eagyc6FIldJMl9JSnNRSntNNl9JPnNJFi75UnM9ZodVKksg8kM45jc09e6ZHltFBk883gbRBh7pDk9EwcaBzn784g7dKkcY2i81Om9M7j85Llc81is09g7Q4grY/j9A0eqxKmdFFltBEjcXf6fFImdBCiLxJl9FGlNFBi78yiMxVndEvbpo6js74+vx+psPP3+o/ks5HkcpGmNCjwdZCkNDM3ehYoNJEls+lxNkxh8xHks0+jdC1zd5Lg6r+/v/H2ufz9/o3jM3t8/edvdM/k89Th61OiLBSjbZklbaTt9BfptdjmL1AicBHj8hGk9FAgK1dkLNTjLRekrdClc/k7fM0icy0y9tgp9c4jc2NtM9Dlc8zicxeXZn3AAAAQ3RSTlMAHDdTb4yPA+LtnEQmC4L2EmHqB7XA0d0sr478x4/Yd5i1zOfyPkf1sLVq4Nh3FvjxopQ2/STNuFzUwFIwxKaejILpIBEV9wAABhVJREFUeF6s1NdyFEcYBeBeoQIhRAkLlRDGrhIgY3BJL8CVeKzuyXFzzjkn5ZxzzuScg3PO8cKzu70JkO0LfxdTU//pM9vTu7Xgf6KqOVTb9X7toRrVEfBf1HTVjZccrT/2by1VV928Yty9ZbVuucdz90frG8DBjl9pVApbOstvmMuvVgaNXSfAAd6pGxpy6yxf5ph43pS/4f3uoaGm2rdu72S9xzOvMymkZFq/ptDrk90mhW7e4zl7HLzhxGWPR20xmSxJ/VqldG5m9XhaVOA1DadsNh3Pu5L2N6QtPO/32JpqQBVVk20oy/Pi2s23WEvyfHbe1thadVQttvm7Llf65gGmXK67XtupyoM7HQhmXdLS8oGWJNeOJ3C5fG5XCEJnkez3/oFdsvgJ4l2ANZwhrJKk/7OSXa+3Vw2WJMlKnGkobouYk6T0TyX30klOUnTD9HJ5qpckL3EW/w4XF3Xd0FGywXUrstrclVsqz5Pd/sXFYyDnPdrLcQODmGOK47IZb4CmibmMn+MYRzFZ5jg33ZL/EJrWcszHmANy3ARBK/IXtciJy8VsitPSdE3uuHxzougojcUdr8/32atnz/ev3f/K5wtpxUTpcaI45zusVDpYtZi+jg0oU9b3x74h7+n9ABvYEZeKaVq0sh0AtLKsFtqNBdeT0MrSzwwlq9+x6xAO4tgOtSzbCjrNQQiNvQUbUEubvzBUeGw26yDCsRHCoLkTHDa7IdOLIThs/gHvChszh2CimE8peRs47cxANI0lYNB5y1DljpOF0IhzBDPOZnDOqYYbeGKECbPzWnXludPphw5c2YBq5zlwXphIbO4VDCZ0gnPfUO1TwZoYwAs2ExPCedAu9DAjfQUjzITQb3jNj0KG2Sgt6BHaQUdYzWz+XmBktOHwanXjaSTcwwziBcuMOtwBmqPrTOxFQR/DRKKPqyur0aiW6cULYsx6tBm0jXpR/AUWR6HRq9WVW6MRhIq5jLyjbaCTDCijyYJNpCajdyobP/eTw0iexBAKkJ3gA5KcQb2zBXsIBckn+xVv8jkZSaEFHE+jFEleAEfayRU0MouNoBmB/L50Ai/HSLIHxcrpCvnhSQAuakKp2C/YbCylJjXRVy/z3+Kv/RrNcCo+WUzlVEhzKffnTQnxeN9fWF88fiNCUdSTsaufaChKWInHeysygfpIqagoakW+vV20J8uyl6TyNKEZWV4oRSPyCkWpgOLSbkCObT8o2r6tlG58HQquf6O0v50tB7JM7F4EORd2dx/K0w/KHsVkLPaoYrwgP/y7krr3SSMA4zj+OBgmjYkxcdIJQyQRKgg2viX9Hddi9UBb29LrKR7CVVEEEXWojUkXNyfTNDE14W9gbHJNuhjDettN3ZvbOvdOqCD3Jp/9l+/wJE+9PkYGjx/fqkys3S2rMozM/o2106rfMUINo6hVqz+eu/hd1c4xTg0TAfy5kV+4UG6+IthHTU9woWmxuKNbTfuCSfovBCxq7EtHqvYL4Sm6F8GVxsSXHMQ07TOi1DKtZxjWaaIyi4CXWjxPccUw8WVbMYY5wxC1mzEyXMJWkllpRloi+Kkoq69sxBTlElF6aAxYUbjXNlhlDZilDnM4U5SlN5biRsRHnbx3mbeWjEh4mEyiuJDl5XcWVmX5GvNkFgLWZM5qwsop4/AWfLhU1cR7k1VVvcYCWRkOI6Xy5gmnphCYIkvzuNYzHzosq2oNk2RtSs8khfUOfHIDgR6ysYBaMpl4uEgk2U/oJTs9AaTSwma7dT69geAE2ZpEjUsn2ieJNHeKfrI3EcAGJ2ZaNgVuC8EBctCLc57P5u5led6IOBkIYkuQMrmmjChs4VkfOerHqSBkPzZlhe06RslZ3zMjk2sscqKwY0RcjKK+LWbzd7KiHhkncs/siFJ+V5eXxD34B8nVuJEpGJNmxN2gH3vSvp7J70tF+D1Ej8qUJD1TkErAND2GZwTFg/LubvmgiBG3SOvdlsqFQrkEzJCL1rstlnVFROixZoDDSuXQFHESwVGlcuQcMb/b42NgjLowh5MTDFE3vNB5qStRIErdCQEh6pLPR92anSUb/wAIhldAaDMpGgAAAABJRU5ErkJggg=="},Symbol.toStringTag,{value:"Module"}))),UC=iu(Object.freeze(Object.defineProperty({__proto__:null,default:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII="},Symbol.toStringTag,{value:"Module"}))),HC=iu(Object.freeze(Object.defineProperty({__proto__:null,default:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC"},Symbol.toStringTag,{value:"Module"})));var gv;function ZC(){if(gv)return Ii;gv=1;var r=Ii&&Ii.__assign||function(){return r=Object.assign||function(C){for(var _,b=1,w=arguments.length;b<w;b++){_=arguments[b];for(var S in _)Object.prototype.hasOwnProperty.call(_,S)&&(C[S]=_[S])}return C},r.apply(this,arguments)},a=Ii&&Ii.__rest||function(C,_){var b={};for(var w in C)Object.prototype.hasOwnProperty.call(C,w)&&_.indexOf(w)<0&&(b[w]=C[w]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var S=0,w=Object.getOwnPropertySymbols(C);S<w.length;S++)_.indexOf(w[S])<0&&Object.prototype.propertyIsEnumerable.call(C,w[S])&&(b[w[S]]=C[w[S]]);return b},o=Ii&&Ii.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(Ii,"__esModule",{value:!0});var s=zC,c=o(yp());qC(),delete c.default.Icon.Default.prototype._getIconUrl,c.default.Icon.Default.mergeOptions({iconRetinaUrl:VC.default,iconUrl:UC.default,shadowUrl:HC.default});function f(C){var _={},b={};C.children;var w=a(C,["children"]);return Object.entries(w).forEach(function(S){var P,O,q=S[0],G=S[1];q.startsWith("on")?b=r(r({},b),(P={},P[q]=G,P)):_=r(r({},_),(O={},O[q]=G,O))}),{clusterProps:_,clusterEvents:b}}function g(C,_){var b=f(C),w=b.clusterProps,S=b.clusterEvents,P=new c.default.MarkerClusterGroup(w);return Object.entries(S).forEach(function(O){var q=O[0],G=O[1],k="cluster".concat(q.substring(2).toLowerCase());P.on(k,G)}),(0,s.createElementObject)(P,(0,s.extendContext)(_,{layerContainer:P}))}var m=function(C,_,b){},y=(0,s.createPathComponent)(g,m);return Ii.default=y,Ii}var WC=ZC();const YC=ru(WC);function XC(r,a={categorizeByField:"nocategorization",categories:{}}){let o=r.getAllChildMarkers(),s={},c=o.length,f=!0;o.forEach(_=>{let b=_.options;if(!b)return console.log("Marker not found:",_);let w=KC(b,a.categorizeByField),S;typeof w=="string"&&a.categories.hasOwnProperty(w)?S=a.categories[w].color:S="#164995",s[S]||(s[S]=0),s[S]++,b&&"isFaded"in b&&(b!=null&&b.isFaded)||(f=!1)});let g='<svg viewBox="0 0 36 36"><circle cx="18" cy="18" r="14" fill="white"/>',m=0;Object.keys(s).forEach(_=>{let b=_,w=100*s[_]/c,S=m/100*360;g+=`    <path
      d="M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831"
      fill="none"
      transform="rotate(${S}, 18, 18)"
      stroke="${b}"
      stroke-width="4"
      stroke-dasharray="${w}, 100"
    />`,m=m+w});let y=r.getChildCount();g+='<text x="18" y="21" text-anchor="middle" class="openstad-component-ideas-on-map-icon openstad-component-ideas-on-map-icon-text">'+y+"</text>",g+="</svg>";let C="osc-map-marker-cluster";return f&&(C+=" osc-map-marker-cluster-faded"),un.divIcon({html:g,className:C,iconSize:un.point(36,36),iconAnchor:[18,18]})}function KC(r,a){if(!r.data)return"nocategoryfound";const o=r.data[a];return typeof o=="string"?o:"nocategoryfound"}function JC({maxClusterRadius:r=40,showCoverageOnHover:a=!1,iconCreateFunction:o=XC,categorize:s=void 0,markers:c=[],...f}){let g=N.useRef(s);N.useEffect(()=>{g.current=s});let m=N.useCallback(function(y){if(o&&typeof o=="string"){const C=globalThis[o];if(typeof C=="function")o=C;else return console.warn(`Function ${o} does not exist in the global scope.`),null}return typeof o!="function"?(console.warn("iconCreateFunction is not a valid function."),null):o(y,g.current)},[c]);return React.createElement(YC,{...f,iconCreateFunction:m,maxClusterRadius:r,showCoverageOnHover:a},c==null?void 0:c.map(y=>React.createElement(fv,{...y,key:`marker-${y.markerId}`})))}function QC({tilesVariant:r="default",tiles:a=null,minZoom:o=0,maxZoom:s=25,customUrl:c="",...f}){const[g,m]=N.useState(r),[y,C]=N.useState(!0);if(N.useEffect(()=>{if(r==="nlmaps"){const _="https://service.pdok.nl/brt/achtergrondkaart/wmts/v2_0/standaard/EPSG:3857/10/550/340.png";(async()=>{try{const w=new AbortController,S=setTimeout(()=>w.abort(),3e3),P=await fetch(_,{method:"HEAD",signal:w.signal});clearTimeout(S),P.ok||m("openstreetmaps"),C(!1)}catch{m("openstreetmaps"),C(!1)}})()}else C(!1)},[r]),y)return null;switch(g){case"amaps":return N.createElement(Ia,{...f,attribution:"amsterdam.nl",maxZoom:typeof s<"u"?s:21,minZoom:typeof o<"u"?o:11,subdomains:"1234",url:"https://t{s}.data.amsterdam.nl/topo_wm/{z}/{x}/{y}.png"});case"openstreetmaps":return N.createElement(Ia,{...f,attribution:"<a href='https://www.openstreetmap.org/copyright'>© OpenStreetMap contributors</a>",maxZoom:typeof s<"u"?s:19,minZoom:typeof o<"u"?o:0,subdomains:"abc",url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"});case"n3s":return N.createElement(Ia,{...f,attribution:"",maxZoom:typeof s<"u"?s:19,minZoom:typeof o<"u"?o:0,subdomains:"abcd",url:"https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png"});case"custom":return N.createElement(Ia,{...f,attribution:a&&a.attribution||"",maxZoom:typeof s<"u"?s:19,minZoom:typeof o<"u"?o:0,subdomains:a&&a.subdomains||"",url:c||"https://service.pdok.nl/brt/achtergrondkaart/wmts/v2_0/standaard/EPSG:3857/{z}/{x}/{y}.png"});default:case"nlmaps":return N.createElement(Ia,{...f,attribution:"Kaartgegevens © <a href='kadaster.nl'>Kadaster</a>",bounds:[[50.5,3.25],[54,7.6]],maxZoom:typeof s<"u"?s:19,minZoom:typeof o<"u"?o:6,subdomains:"",url:"https://service.pdok.nl/brt/achtergrondkaart/wmts/v2_0/standaard/EPSG:3857/{z}/{x}/{y}.png"})}}L.LRMapInteraction=L.Class.extend({options:{isTouch:!1,messageString:"",blockInteractiveElementsClass:"lr-map-disable-elements",overlayMessageClass:"lr-map-interaction-overlay lr-map-visually-hidden"},initialize:function(r,a){L.setOptions(this,a),this._map=r,this._mapContainerEl=this._map.getContainer(),this._overlayMessage=this._createOverlayMessage(),this._hideOverlayMessageTimeout=null,this._listenersAdded=!1,this._interactiveElementsBlocked=!1,this._isTouch=this.options.isTouch,this.options.messageString=this.options.messageString||"Use two fingers to move and zoom the map.",this._isTouch&&(this._map.dragging.disable(),this._handleTouchEvents())},_createOverlayMessage:function(){const r=document.createElement("div");return r.className=this.options.overlayMessageClass,this._mapContainerEl.appendChild(r),r},showOverlayMessage:function(){this._clearOverlayMessageTimeout(),this._isMessageVisible||(this._overlayMessage.innerHTML=this.options.messageString,this._overlayMessage.classList.remove("lr-map-visually-hidden"),this._isMessageVisible=!0),this.hideOverlayMessage()},hideOverlayMessage:function(r){this._clearOverlayMessageTimeout(),r?this._hideOverlayMessage():this._hideOverlayMessageTimeout=setTimeout(this._hideOverlayMessage.bind(this),1e3)},_hideOverlayMessage:function(r){this._isMessageVisible&&(r?(this._clearOverlayMessageTimeout(),this._overlayMessage.classList.add("lr-map-visually-hidden"),this._isMessageVisible=!1):this._hideOverlayMessageTimeout=setTimeout(()=>{this._clearOverlayMessageTimeout(),this._overlayMessage.classList.add("lr-map-visually-hidden"),this._isMessageVisible=!1},500))},_clearOverlayMessageTimeout:function(){this._hideOverlayMessageTimeout&&(clearTimeout(this._hideOverlayMessageTimeout),this._hideOverlayMessageTimeout=null)},_blockInteractiveElements:function(r){this._mapContainerEl.classList.toggle(this.options.blockInteractiveElementsClass,r),this._interactiveElementsBlocked=r},_handleTouchEvents:function(){if(this._listenersAdded)return;this._listenersAdded=!0;let r=null,a=0,o=0;const s=10;this._handleTouchStart=c=>{c.touches.length===1?(r="single",a=c.touches[0].clientX,o=c.touches[0].clientY,this._map.dragging.disable()):c.touches.length===2&&(r="multi",c.preventDefault(),this._map.dragging.enable(),this.hideOverlayMessage(!0))},this._handleTouchMove=c=>{if(c.touches.length===1&&r==="single"){const f=Math.abs(c.touches[0].clientX-a),g=Math.abs(c.touches[0].clientY-o);(f>s||g>s)&&(this.showOverlayMessage(),this._map.dragging.disable())}else c.touches.length===2&&(c.preventDefault(),this._map.dragging.enable(),this.hideOverlayMessage(!0))},this._handleTouchEnd=c=>{const f=this._map._popup;let g=!1;if(f){const m=f.getElement();if(m){const y=m.getBoundingClientRect(),C=c.changedTouches[0].clientX,_=c.changedTouches[0].clientY;g=C>=y.left&&C<=y.right&&_>=y.top&&_<=y.bottom}}if(!g&&r==="single"&&c.target===this._mapContainerEl){const m=Math.abs(c.changedTouches[0].clientX-a),y=Math.abs(c.changedTouches[0].clientY-o);m<=s&&y<=s&&this._map.eachLayer(C=>{C instanceof L.Marker&&C.getPopup&&C.getPopup().isOpen()&&C.closePopup()})}this._map.dragging.disable(),r=null,this.hideOverlayMessage()},this._mapContainerEl.addEventListener("touchstart",this._handleTouchStart),this._mapContainerEl.addEventListener("touchmove",this._handleTouchMove,{passive:!1}),this._mapContainerEl.addEventListener("touchend",this._handleTouchEnd)},destroy:function(){this._isTouch&&this._mapContainerEl&&(this._mapContainerEl.removeEventListener("touchstart",this._handleTouchStart),this._mapContainerEl.removeEventListener("touchmove",this._handleTouchMove),this._mapContainerEl.removeEventListener("touchend",this._handleTouchEnd)),this._overlayMessage&&this._mapContainerEl.removeChild(this._overlayMessage),this._clearOverlayMessageTimeout()}}),L.mapInteraction=function(r,a){return new L.LRMapInteraction(r,a)};function mv(r,a){return r>0&&r<3e5&&a>3e5&&a<62e4}function $C(r){const a={stroke:"rgb(85, 85, 85)","stroke-width":2,"stroke-opacity":1},o={};r.forEach(y=>{var P;if(((P=y.geometry)==null?void 0:P.type)!=="LineString")return;const C=y.properties||{},_=C.stroke||a.stroke,b=C["stroke-width"]||a["stroke-width"],w=C["stroke-opacity"]??a["stroke-opacity"],S=`${_}-${b}-${w}`;o[S]||(o[S]={count:0,width:b,color:_,opacity:w}),o[S].count++});const s=Object.values(o).reduce((y,C)=>y+C.width*C.count,0);let c=0;const f=13,g=13,m=[`<svg xmlns="http://www.w3.org/2000/svg" width="${g}" height="${f}" viewBox="0 0 ${g} ${f}">`];return Object.values(o).forEach(y=>{const C=y.width*y.count/s*g;m.push(`
      <rect 
        x="${c}" 
        y="0" 
        width="${C}" 
        height="${f}" 
        fill="${y.color}" 
        opacity="${y.opacity}" 
      />
    `),c+=C}),m.push("</svg>"),`data:image/svg+xml;base64,${btoa(m.join(""))}`}const pv=(r,a)=>{r<1e3&&(r*=1e3),a<1e3&&(a*=1e3);const o=155e3,s=463e3,c=52.156160556,f=5.387638889,g=3236.0331637,m=5261.3028966,y=-32.5915821,C=105.9780241,_=-.2472814,b=2.4576469,w=-.8501341,S=-.8192156,P=-.0655238,O=-.0560092,q=-.0171137,G=.0560089,k=.0052771,A=-.0025614,R=-3859e-7,j=.001277,W=3314e-7,F=2574e-7,H=371e-7,U=-973e-7,it=143e-7,Y=293e-7,M=-9e-6,ot=291e-7,ct=(r-o)*Math.pow(10,-5),Ct=(a-s)*Math.pow(10,-5);let V=g*Ct+y*Math.pow(ct,2)+_*Math.pow(Ct,2)+w*Math.pow(ct,2)*Ct+P*Math.pow(Ct,3);V+=k*Math.pow(ct,4)+q*Math.pow(ct,2)*Math.pow(Ct,2)+H*Math.pow(Ct,4)+W*Math.pow(ct,4)*Ct,V+=R*Math.pow(ct,2)*Math.pow(Ct,3)+it*Math.pow(ct,4)*Math.pow(Ct,2)+M*Math.pow(ct,2)*Math.pow(Ct,4);const $=c+V/3600;let D=m*ct+C*ct*Ct+S*Math.pow(ct,3)+b*ct*Math.pow(Ct,2)+O*Math.pow(ct,3)*Ct;D+=G*ct*Math.pow(Ct,3)+F*Math.pow(ct,5)+A*Math.pow(ct,3)*Math.pow(Ct,2)+j*ct*Math.pow(Ct,4),D+=Y*Math.pow(ct,5)*Ct+U*Math.pow(ct,3)*Math.pow(Ct,3)+ot*ct*Math.pow(Ct,5);const rt=f+D/3600,J=$+(-96.862-11.714*($-52)-.125*(rt-5))/1e5,et=rt+(-37.902+.329*($-52)-14.667*(rt-5))/1e5;return{lat:J,lon:et}},vv=({iconCreateFunction:r=void 0,defaultIcon:a=void 0,area:o=void 0,areaPolygonStyle:s=void 0,markers:c=[],autoZoomAndCenter:f=void 0,zoom:g=7,scrollWheelZoom:m=!0,center:y={lat:52.37104644463586,lng:4.900402911007405},tilesVariant:C="nlmaps",tiles:_=void 0,minZoom:b=7,maxZoom:w=20,categorize:S=void 0,clustering:P={isActive:!0},onClick:O=void 0,onMarkerClick:q=void 0,width:G="100%",height:k=void 0,customPolygon:A=[],locationProx:R=void 0,dataLayerSettings:j={datalayer:[],enableOnOffSwitching:!1},zoomAfterInit:W=!0,...F})=>{var Ft,vt;const[H,U]=N.useState(!1),it=new _a({projectId:F.projectId,api:F.api,config:{api:F.api}}),{data:Y}=it.useDatalayer({projectId:F.projectId});let M=[];const{datalayer:ot,enableOnOffSwitching:ct}=j,Ct=ot||[],V=ct||!1;Ct&&Array.isArray(Ct)&&Array.isArray(Y)&&Y.length>0&&Ct.forEach((gt,Rt)=>{const Pt=Y.find(Zt=>Zt.id===gt.id);if(Pt){const Zt=`layer-${Rt}`;M.push({layer:Pt.layer,icon:Pt.icon,name:gt.name,activeOnInit:typeof(gt==null?void 0:gt.activeOnInit)=="boolean"?gt.activeOnInit:!0,id:Zt})}});const[$,D]=N.useState({});N.useEffect(()=>{if(M.length>0&&Object.keys($).length===0){const gt=M.reduce((Rt,Pt)=>(Rt[Pt.id]=Pt.activeOnInit,Rt),{});D(gt)}},[M]);const rt=gt=>{D(Rt=>({...Rt,[gt]:!Rt[gt]}))},J=M.filter(gt=>$[gt.id]),et=y.lat&&y.lng?{lat:y.lat,lng:y.lng}:{lat:52.37104644463586,lng:4.900402911007405};C=((Ft=F==null?void 0:F.map)==null?void 0:Ft.tilesVariant)||C||"nlmaps";const st=C==="custom"?(vt=F==null?void 0:F.map)==null?void 0:vt.customUrl:void 0;P={isActive:!1};let[ut,bt]=N.useState(c),[nt,Nt]=N.useState([]),[xt]=N.useState(`${parseInt(Math.random()*1e8)}`),[Mt]=cv(xt);const ce=N.useCallback((gt,Rt,Pt)=>{if(Rt==="area"){let Zt=[];if(gt&&Array.isArray(gt)&&gt.forEach(Qt=>{let Bt=[];Qt&&Array.isArray(Qt)&&Qt.forEach(de=>{zu(de),de.lat&&Bt.push(de)}),Bt.length>0&&Zt.push(Bt)}),Zt.length==0){Mt.panTo(new un.LatLng(et.lat,et.lng));return}if(Zt.length==1&&Zt[0].length==1&&Zt[0][0].lat&&Zt[0][0].lng){Mt.panTo(new un.LatLng(Zt[0][0].lat,Zt[0][0].lng));return}let Vt=un.latLngBounds([]);Zt.forEach(Qt=>{let Bt=un.latLngBounds(Qt.map(de=>new un.LatLng(de.lat||et.lat,de.lng||et.lng)));Vt.extend(Bt)}),Mt.fitBounds(Vt)}else if(Rt==="markers"){const Zt=(ut==null?void 0:ut.filter(Vt=>Vt.lat&&Vt.lng))||[];if(Zt.length==0){Pt<2&&ee("area",{bounceDepth:Pt+1});return}Mt.fitBounds(un.latLngBounds(Zt))}},[y,Mt,ut]);N.useEffect(()=>{const gt=new CustomEvent("osc-map-is-ready",{detail:{id:xt}});window.dispatchEvent(gt)},[xt]);const ee=N.useCallback((gt="",Rt={})=>{const Pt=Rt.bounceDepth??0,Zt=gt||f;if(Zt==="area"){if(o!=null&&o.length){const Vt=Array.isArray(o[0])?o:[o];ce(Vt,"area",Pt);return}if(!(o!=null&&o.length)&&(J!=null&&J.length)){const Vt=J.reduce((Qt,Bt)=>{var Jt;return(((Jt=Bt==null?void 0:Bt.layer)==null?void 0:Jt.features)??[]).forEach(Wt=>{var he,mt;if(((he=Wt==null?void 0:Wt.geometry)==null?void 0:he.type)==="LineString"&&Array.isArray(Wt.geometry.coordinates))Wt.geometry.coordinates.forEach(De=>{Qt.push({lat:De[1],lng:De[0]})});else if(((mt=Wt==null?void 0:Wt.geometry)==null?void 0:mt.type)==="Point"&&Array.isArray(Wt.geometry.coordinates)){const De=Wt.geometry.coordinates;Qt.push({lat:De[1],lng:De[0]})}}),Qt},[]);if(Vt.length>0){const Qt=un.latLngBounds(Vt.map(Bt=>[Bt.lat,Bt.lng]));Mt.fitBounds(Qt)}return}}else(Zt==="markers"&&(ut!=null&&ut.length)||H)&&ce([],"markers",Pt)},[f,o,ce,Mt,J,ut]);N.useEffect(()=>{!Mt||!f||!W&&H||ee()},[H,Mt,o,y,f,M,ut,ce]),N.useEffect(()=>{window.setTimeout(()=>{U(!0)},500)},[]),N.useEffect(()=>{if(J.length===0&&(nt.length>0&&Nt([]),c.length===0&&ut.length===0))return;const gt=()=>{const Qt=[...c],Bt=[];return J.length>0&&J.forEach(Jt=>{var mt,De,en;const Wt=(De=(mt=Jt==null?void 0:Jt.layer)==null?void 0:mt.result)==null?void 0:De.records,he=(en=Jt==null?void 0:Jt.layer)==null?void 0:en.features;Wt!=null&&Wt.length&&Wt.forEach(Gt=>{var In,rr;const{lat:He,lon:Fe,titel:ln,inhoud:sn}=Gt,On=Fe||Gt.long;if(He&&On){const Ne=(rr=(In=Jt==null?void 0:Jt.icon)==null?void 0:In[0])==null?void 0:rr.url;Ne&&Qt.push({lat:He,lng:On,title:ln,description:sn,markerId:`record-${He}-${On}-${ln||"marker"}`,isVisible:!0,isClustered:!1,icon:Xs.icon({iconUrl:Ne,iconSize:[30,40],iconAnchor:[15,40],className:"custom-image-icon"})})}}),he!=null&&he.length&&he.forEach(Gt=>{var Fe,ln,sn,On,In,rr,Ne,Zn;if(!Gt.geometry)return;const He=(Fe=Gt.geometry)==null?void 0:Fe.type;if(He==="LineString"){const ae=(((ln=Gt.geometry)==null?void 0:ln.coordinates)||[]).map(([Yt,jn])=>{if(mv(Yt,jn)){const ne=pv(Yt,jn);return[ne.lat,ne.lon]}return[jn,Yt]});Bt.push({positions:ae,style:{color:((sn=Gt==null?void 0:Gt.properties)==null?void 0:sn.stroke)||"rgb(85, 85, 85)",weight:((On=Gt==null?void 0:Gt.properties)==null?void 0:On["stroke-width"])||2,opacity:((In=Gt==null?void 0:Gt.properties)==null?void 0:In["stroke-opacity"])??1}})}else if(He==="Point"){const Ge=(rr=Gt.geometry)==null?void 0:rr.coordinates;let ae=Ge==null?void 0:Ge[1],Yt=Ge==null?void 0:Ge[0];const{Objectnaam:jn,Locatieaanduiding:ne}=Gt.properties;if(mv(Yt,ae)){const Ke=pv(Yt,ae);ae=Ke.lat,Yt=Ke.lon}if(ae&&Yt){const Ke=(Zn=(Ne=Jt==null?void 0:Jt.icon)==null?void 0:Ne[0])==null?void 0:Zn.url;Ke&&Qt.push({lat:ae,lng:Yt,title:jn,description:ne,markerId:`feature-${ae}-${Yt}-${jn||"marker"}`,isVisible:!0,isClustered:!1,icon:Xs.icon({iconUrl:Ke,iconSize:[30,40],iconAnchor:[15,40],className:"custom-image-icon"})})}}})}),{markers:Qt.map(Jt=>{var he,mt;zu(Jt);const Wt={...Jt,markerId:Jt.markerId||`marker-${Jt.lat}-${Jt.lng}`,iconCreateFunction:Jt.iconCreateFunction||r,onClick:Jt.onClick?[...Jt.onClick,q]:[q],isVisible:!0,isClustered:P!=null&&P.isActive&&!Jt.doNotCluster?!1:void 0};if(S!=null&&S.categorizeByField&&((he=Wt.data)!=null&&he[S.categorizeByField])){const De=Wt.data[S.categorizeByField],en=(mt=S.categories)==null?void 0:mt[De];if(en&&!Wt.icon){const Gt=en.icon||(en.color?{...a,color:en.color}:void 0);Gt&&(Wt.icon=Gt)}}return!Wt.icon&&a&&(Wt.icon=Wt.color?{...a,color:Wt.color}:a),Wt}),polyLines:Bt}},{markers:Rt,polyLines:Pt}=gt();(Rt.length!==ut.length||Rt.some((Qt,Bt)=>{var de,Jt;return Qt.lat!==((de=ut[Bt])==null?void 0:de.lat)||Qt.lng!==((Jt=ut[Bt])==null?void 0:Jt.lng)}))&&bt(Rt),(Pt.length!==nt.length||Pt.some((Qt,Bt)=>{var de,Jt,Wt,he;return Qt.positions.length!==((de=nt[Bt])==null?void 0:de.positions.length)||Qt.style.color!==((Jt=nt[Bt])==null?void 0:Jt.style.color)||Qt.style.weight!==((Wt=nt[Bt])==null?void 0:Wt.style.weight)||Qt.style.opacity!==((he=nt[Bt])==null?void 0:he.style.opacity)}))&&Nt(Pt)},[c,J,r,a,S,P,q]);let We=[];const kt={...F,tilesVariant:C,customUrl:st,tiles:_,minZoom:b,maxZoom:w};N.useEffect(()=>{document.documentElement.style.setProperty("--basemap-map-width",G);const gt=k?k.match(/\d+(px|%|vh|vw|em|rem|ex|ch|vmin|vmax|cm|mm|in|pt|pc)$/)?k:`${k}px`:"auto";document.documentElement.style.setProperty("--basemap-map-height",gt),document.documentElement.style.setProperty("--basemap-map-aspect-ratio",k?"unset":"16 / 9")},[G,k]);const[Ue,ze]=N.useState(!1);N.useEffect(()=>{"ontouchstart"in window&&ze(!0)},[]);const Kt=N.useRef(null);return N.useEffect(()=>{const gt=Kt.current;let Rt;return gt&&Xs&&Xs.mapInteraction&&(Rt=Xs.mapInteraction(gt,{isTouch:Ue})),()=>{Rt&&Rt.destroy&&Rt.destroy()}},[Kt.current,Ue]),N.createElement(N.Fragment,null,M.length>0&&N.createElement("ul",{className:"legend osc-map-legend"},M.map(gt=>{var Rt,Pt;return N.createElement("li",{key:gt.id,className:"legend-item"},N.createElement("label",{className:"legend-label"},V&&N.createElement("input",{type:"checkbox",checked:!!$[gt.id],onChange:()=>rt(gt.id)}),N.createElement("div",{className:"legend-info"},gt.icon&&gt.icon[0]&&gt.icon[0].url?N.createElement("img",{src:gt.icon[0].url,alt:"Layer icon",className:"legend-icon"}):(Pt=(Rt=gt.layer)==null?void 0:Rt.features)!=null&&Pt.some(Zt=>{var Vt;return((Vt=Zt==null?void 0:Zt.geometry)==null?void 0:Vt.type)==="LineString"})?N.createElement("img",{src:$C(gt.layer.features),alt:"Layer line preview",className:"legend-icon legend-icon--line"}):null,N.createElement("span",null,gt.name||"Naamloze laag"))))})),N.createElement("div",{className:"map-container osc-map"},N.createElement(O8,{ref:Kt,center:[et.lat,et.lng],className:"osc-base-map-widget-container",id:`osc-base-map-${xt}`,scrollWheelZoom:m,zoom:g},N.createElement(kC,{mapId:xt}),N.createElement(QC,{...kt}),o&&o.length?N.createElement(jC,{area:o,areas:A,areaPolygonStyle:s,...F}):null,nt&&nt.length>0&&nt.map((gt,Rt)=>N.createElement(I8,{key:`polyline-${Rt}`,positions:gt.positions,pathOptions:gt.style})),!!ut&&ut.length>0&&ut.map(gt=>{if(gt.isClustered)We.push(gt);else if(gt.lat&&gt.lng)return N.createElement(fv,{...F,...gt,key:`marker-${gt.markerId||gt.lat+gt.lng}`})}),We.length>0&&N.createElement(JC,{...F,...P,categorize:S,markers:We}),N.createElement(t_,{area:o,onClick:(gt,Rt)=>O&&O({...gt,isInArea:gt.isInArea},Rt),onMarkerClick:q}),R&&R.lat&&R.lng&&N.createElement(S8,{center:[parseFloat(R.lat),parseFloat(R.lng)],radius:(R.proximity||1)*1e3,pathOptions:{color:"#0077ff",fillColor:"#0077ff",fillOpacity:.1,weight:2,dashArray:"4 4"}}))))};function t_({area:r=[],onClick:a=void 0,onMarkerClick:o=void 0}){const s=N8({load:()=>{console.log("ONLOAD")},click:c=>{if(c.originalEvent.target.closest(".leaflet-marker-icon")&&o){let _=new CustomEvent("osc-marker-click",{detail:c});window.dispatchEvent(_),o(c,s);return}const m=r.map(zu);let y=!(r&&r.length)||RC(m,c.latlng),C=new CustomEvent("osc-map-click",{detail:{...c,isInArea:y}});if(window.dispatchEvent(C),a){if(typeof a=="string"){const _=globalThis[a];if(typeof _=="function")a=_;else{console.warn(`Function ${a} is not defined on globalThis.`);return}}a({...c,isInArea:y},s)}}});return null}vv.loadWidget=ra;const Zh=({categorize:r=void 0,markerHref:a=void 0,countButton:o=void 0,ctaButton:s=void 0,locationProx:c=void 0,givenResources:f,selectedProjects:g=[],...m})=>{var Y,M,ot,ct,Ct,V,$;const y=new _a({projectId:m.projectId,api:m.api,config:{api:m.api}});Array.isArray(f)||(f=void 0);const{data:C}=y.useResources({projectId:m.projectId,pageSize:99999},{suspense:!!f}),_=f||(C==null?void 0:C.records)||[];let b=r==null?void 0:r.categorizeByField,w={};const S=Array.isArray(g)&&g.length>0?"0":m.projectId;if(b){const{data:D}=y.useTags({projectId:S,type:b});Array.isArray(D)&&D.length&&(w={},D.forEach(rt=>{w[rt.name]={color:rt.backgroundColor||"#558",icon:rt.mapIcon}}))}let P=_.map(D=>{var nt,Nt;let rt={location:D!=null&&D.location?{...D.location}:void 0};const J=zu(rt);if(rt.lat=J.lat,rt.lng=J.lng,Array.isArray(g)&&g.length>0){const xt=(nt=g.find(Mt=>Mt.id===D.projectId))==null?void 0:nt.detailPageLink;xt&&(a=xt)}if(rt.lat&&rt.lng&&a&&(rt.href=a.replace(/\[id\]/,D.id)),rt.lat&&rt.lng&&b&&w){let xt=(Nt=D.tags)==null?void 0:Nt.find(Mt=>Mt.type==b);xt&&(rt.data={[b]:xt.name})}const et=D.statuses?D.statuses.filter(xt=>xt.seqnr!==void 0&&xt.seqnr!==null).sort((xt,Mt)=>xt.seqnr-Mt.seqnr)[0]||D.statuses[0]:!1;let st=et&&et.mapIcon?et.mapIcon:"";const ut=D.tags?D.tags.filter(xt=>xt.seqnr!==void 0&&xt.seqnr!==null).sort((xt,Mt)=>xt.seqnr-Mt.seqnr)[0]||D.tags[0]:!1;st=ut&&ut.mapIcon?ut.mapIcon:st;const bt=ut&&ut.documentMapIconColor?ut.documentMapIconColor:"";return rt.icon={title:D.title??"Locatie pin"},bt&&(rt.icon.color=bt),st&&(rt.icon=Xs.icon({iconUrl:st,iconSize:[30,40],iconAnchor:[15,40],className:"custom-image-icon"})),rt})||[];const O=g.map(D=>{const rt={lat:D.projectLat?parseFloat(D.projectLat):void 0,lng:D.projectLng?parseFloat(D.projectLng):void 0,href:D.overviewUrl||"",title:D.overviewTitle||D.name||"",icon:D.overviewMarkerIcon?Xs.icon({iconUrl:D.overviewMarkerIcon,iconSize:[30,40],iconAnchor:[15,40],className:"custom-image-icon"}):void 0};return rt.lat&&rt.lng?rt:null}).filter(D=>D!==null);P=P.concat(O),f&&(C.metadata.totalCount=f.length);let q=N.createElement(N.Fragment,null);o!=null&&o.show&&(q=N.createElement("div",{className:"utrecht-button utrecht-button--secondary-action osc-resource-overview-map-button osc-first-button"},N.createElement("section",{className:"resource-counter"},(Y=C==null?void 0:C.metadata)==null?void 0:Y.totalCount),N.createElement("section",{className:"resource-label"},o.label||"plannen")));let G=N.createElement(N.Fragment,null);s!=null&&s.show&&(G=N.createElement(au,{appearance:"primary-action-button",href:s.href,className:`osc-resource-overview-map-button ${q?"osc-second-button":"osc-first-button"}`},N.createElement("section",{className:"resource-label"},s.label)));const{data:k}=y.useArea({projectId:m.projectId});let A=((M=m==null?void 0:m.map)==null?void 0:M.areaId)||!1;const R=A&&Array.isArray(k)&&k.length>0?(k.find(D=>D.id.toString()===A)||{}).polygon:[];function j(D){if(!D||D.length===0)return;const rt=Array.isArray(D[0])?D.flat():D;let J=1/0,et=-1/0,st=1/0,ut=-1/0;rt.forEach(Nt=>{Nt.lng<J&&(J=Nt.lng),Nt.lng>et&&(et=Nt.lng),Nt.lat<st&&(st=Nt.lat),Nt.lat>ut&&(ut=Nt.lat)});const bt=(st+ut)/2,nt=(J+et)/2;return{lat:bt,lng:nt}}const[W,F]=N.useState(void 0);N.useEffect(()=>{R&&F(j(R))},[R,k]);const H={minZoom:(ot=m==null?void 0:m.map)!=null&&ot.minZoom?parseInt(m.map.minZoom):7,maxZoom:(ct=m==null?void 0:m.map)!=null&&ct.maxZoom?parseInt(m.map.maxZoom):20},U=()=>{const D=document.querySelectorAll(".leaflet-control-zoom-in")[0];D&&D.focus()};m!=null&&m.map&&typeof(m==null?void 0:m.map)=="object"&&(m.map={...m.map,tilesVariant:(m==null?void 0:m.tilesVariant)||((Ct=m==null?void 0:m.map)==null?void 0:Ct.tilesVariant)||"nlmaps",customUrl:(m==null?void 0:m.customUrl)||((V=m==null?void 0:m.map)==null?void 0:V.customUrl)||""});const it=m!=null&&m.datalayer?{datalayer:(m==null?void 0:m.datalayer)||[],enableOnOffSwitching:(m==null?void 0:m.enableOnOffSwitching)||!1}:(m==null?void 0:m.resourceOverviewMapWidget)||{};return R&&W||!Number(A)?N.createElement("div",{className:"map-container--buttons"},N.createElement(tr,{appearance:"primary-action-button",className:"skip-link",onClick:U},"Sla kaart over"),N.createElement(vv,{...m,...H,area:R,autoZoomAndCenter:(($=m==null?void 0:m.map)==null?void 0:$.autoZoomAndCenter)||"area",categorize:{categories:w,categorizeByField:b},center:W,markers:P,locationProx:c,dataLayerSettings:it}),N.createElement("div",{className:"map-buttons"},G,q)):null};Zh.loadWidget=ra;function e_(r){return r==null?"":JSON.stringify(r,null,2)}function n_(r){if(typeof r!="string")return"";try{const a=JSON.parse(r);if(Array.isArray(a))return a.join(", ")}catch{}return r}function r_(r){return typeof r!="string"||r.length===0?"":r.charAt(0).toUpperCase()+r.slice(1)}function i_(r,a){return typeof r!="string"||typeof a!="number"?"":r.length>a?r.slice(0,a)+"...":r}function s_(r){return typeof r!="string"?"":r.toLowerCase()}function o_(r){return typeof r!="string"?"":r.toUpperCase()}function a_(r,a,o){return typeof r!="string"||typeof a!="string"||typeof o!="string"?"":r.split(a).join(o)}function u_(r){return Array.isArray(r.tags)?r.tags.map(a=>a.label||a.name).join(", "):""}function l_(r,a){var o;return Array.isArray(r.tags)?(o=r==null?void 0:r.tags)==null?void 0:o.filter(s=>s.type===a).map(s=>s.label||s.name).join(", "):""}function c_(r){return Array.isArray(r.statuses)?r.statuses.map(a=>a.label||a.name).join(", "):""}function h_(r,a){if(typeof r!="string"||typeof a!="string")return"";try{const o=new Date(r),s=["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],c={DD:String(o.getDate()).padStart(2,"0"),D:String(o.getDate()),MMMM:s[o.getMonth()],MM:String(o.getMonth()+1).padStart(2,"0"),M:String(o.getMonth()+1),YYYY:String(o.getFullYear()),YY:String(o.getFullYear()).slice(-2),hh:String(o.getHours()).padStart(2,"0"),mm:String(o.getMinutes()).padStart(2,"0"),ss:String(o.getSeconds()).padStart(2,"0")};return a.replace(/DD|D|MMMM|MM|M|YYYY|YY|hh|mm|ss/g,f=>c[f]||"")}catch{return r}}const Wh={dump:e_,cleanArray:n_,capitalize:r_,truncate:i_,lowercase:s_,uppercase:o_,replace:a_,tags:u_,status:c_,tagGroup:l_,formatDate:h_};function Yh(r,a){let o="";const s=r.split(".");return o=a[s[0]],s.length>1&&(s.shift(),s.forEach(c=>{o&&o[c]?o=o[c]:o=""})),o}const f_=(r,a,o,s=!1)=>(()=>{if(r.rawInput&&!s){let f=r.rawInput;const g={projectId:r.projectId,resource:a,user:a.user,startDateHumanized:a.startDateHumanized,status:a.statuses,tags:a.tags,title:a.title,summary:a.summary,description:a.description,images:a.images,budget:a.budget,extraData:a.extraData,location:a.location,modBreak:a.modBreak,modBreakDateHumanized:a.modBreakDateHumanized,progress:a.progress,createDateHumanized:a.createDateHumanized,publishDateHumanized:a.publishDateHumanized,publishDate:a.publishDate},m=/\{%\s*if\s*([^}]*)\s*%\}([\s\S]*?)\{%\s*endif\s*%\}/g,y=Array.from(r.rawInput.matchAll(m));if(y&&y.length)for(const _ of y){const b=_[1].trim(),w=_[2].trim().split("{% else %}");let S=!1;if(b.indexOf("=")>-1){const P=b.split("="),O=P[0].trim(),q=P[1].trim(),G=Yh(O,g);(G===q||`'${G}'`===q||`"${G}"`===q)&&(S=!0)}else S=!!Yh(b,g);if(S)f=f.replaceAll(_[0],w[0]);else{const P=w[1]??"";f=f.replaceAll(_[0],P)}}const C=d_(f);if(C&&C.length)for(const _ of C){let b="";const w=_.trim().split("|"),S=w[0].trim(),P=w.slice(1).map(O=>O.trim());if(b=Yh(S,g),b&&P&&P.length)for(const O of P){const q=O.split("("),G=q[0];let k=[];q.length>1&&(k=q[1].replace(")","").split(",").map(A=>A.trim().replaceAll("'","").replaceAll('"',""))),Wh[G]&&(k.length?b=Wh[G](b,...k):b=Wh[G](b))}f=f.replaceAll(`{{${_}}}`,b)}return f}return""})();function d_(r){const a=[];let o=0;for(;o<r.length;){const s=r.indexOf("{{",o);if(s===-1)break;const c=r.indexOf("}}",s);if(c===-1)break;const f=r.slice(s+2,c);a.push(f),o=c+2}return a}var Ku="Tabs",[g_]=pu(Ku,[k1]),yv=k1(),[m_,Xh]=g_(Ku),Cv=at.forwardRef((r,a)=>{const{__scopeTabs:o,value:s,onValueChange:c,defaultValue:f,orientation:g="horizontal",dir:m,activationMode:y="automatic",...C}=r,_=x1(m),[b,w]=Sl({prop:s,onChange:c,defaultProp:f??"",caller:Ku});return K.jsx(m_,{scope:o,baseId:fa(),value:b,onValueChange:w,orientation:g,dir:_,activationMode:y,children:K.jsx(lr.div,{dir:_,"data-orientation":g,...C,ref:a})})});Cv.displayName=Ku;var _v="TabsList",bv=at.forwardRef((r,a)=>{const{__scopeTabs:o,loop:s=!0,...c}=r,f=Xh(_v,o),g=yv(o);return K.jsx(Oy,{asChild:!0,...g,orientation:f.orientation,dir:f.dir,loop:s,children:K.jsx(lr.div,{role:"tablist","aria-orientation":f.orientation,...c,ref:a})})});bv.displayName=_v;var xv="TabsTrigger",Ev=at.forwardRef((r,a)=>{const{__scopeTabs:o,value:s,disabled:c=!1,...f}=r,g=Xh(xv,o),m=yv(o),y=Nv(g.baseId,s),C=Sv(g.baseId,s),_=s===g.value;return K.jsx(Ny,{asChild:!0,...m,focusable:!c,active:_,children:K.jsx(lr.button,{type:"button",role:"tab","aria-selected":_,"aria-controls":C,"data-state":_?"active":"inactive","data-disabled":c?"":void 0,disabled:c,id:y,...f,ref:a,onMouseDown:Kn(r.onMouseDown,b=>{!c&&b.button===0&&b.ctrlKey===!1?g.onValueChange(s):b.preventDefault()}),onKeyDown:Kn(r.onKeyDown,b=>{[" ","Enter"].includes(b.key)&&g.onValueChange(s)}),onFocus:Kn(r.onFocus,()=>{const b=g.activationMode!=="manual";!_&&!c&&b&&g.onValueChange(s)})})})});Ev.displayName=xv;var wv="TabsContent",Ov=at.forwardRef((r,a)=>{const{__scopeTabs:o,value:s,forceMount:c,children:f,...g}=r,m=Xh(wv,o),y=Nv(m.baseId,s),C=Sv(m.baseId,s),_=s===m.value,b=at.useRef(_);return at.useEffect(()=>{const w=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(w)},[]),K.jsx(da,{present:c||_,children:({present:w})=>K.jsx(lr.div,{"data-state":_?"active":"inactive","data-orientation":m.orientation,role:"tabpanel","aria-labelledby":y,hidden:!w,id:C,tabIndex:0,...g,ref:a,style:{...r.style,animationDuration:b.current?"0s":void 0},children:w&&f})})});Ov.displayName=wv;function Nv(r,a){return`${r}-trigger-${a}`}function Sv(r,a){return`${r}-content-${a}`}var p_=Cv,Lv=bv,Iv=Ev,Pv=Ov;function Kh(...r){return Lm(wt(r))}const v_=p_,Tv=at.forwardRef(({className:r,...a},o)=>at.createElement(Lv,{ref:o,className:Kh("inline-flex h-10 items-center justify-start p-1 text-muted-foreground border-b-2 overflow-hidden",r),...a}));Tv.displayName=Lv.displayName;const Jh=at.forwardRef(({className:r,...a},o)=>at.createElement(Iv,{ref:o,className:Kh("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground",r),...a}));Jh.displayName=Iv.displayName;const Qh=at.forwardRef(({className:r,...a},o)=>at.createElement(Pv,{ref:o,className:Kh("ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",r),...a}));Qh.displayName=Pv.displayName;function y_(r,a){if(!r||!a)return 0;const o=parseFloat(r.lat),s=parseFloat(r.lng),c=parseFloat(a.lat),f=parseFloat(a.lng),g=O=>O*Math.PI/180;var m=6371,y=g(c-o),C=g(f-s),_=g(o),b=g(c),w=Math.sin(y/2)*Math.sin(y/2)+Math.sin(C/2)*Math.sin(C/2)*Math.cos(_)*Math.cos(b),S=2*Math.atan2(Math.sqrt(w),Math.sqrt(1-w)),P=m*S;return P}const C_=(r,a,o,s,c,f,g,m)=>N.createElement(N.Fragment,null,c&&N.createElement(Zh,{...r,...r.resourceOverviewMapWidget,givenResources:a,selectedProjects:f,locationProx:g}),s&&N.createElement("section",{className:"osc-resource-overview-title-container"},N.createElement(ds,{level:Number(m)||4,appearance:"utrecht-heading-4"},o))),__=(r,a,o)=>{var k,A,R,j,W,F,H,U,it,Y,M;if(a.displayType==="raw"){if(!a.rawInput)return N.createElement(wn,null,"Template is nog niet ingesteld");try{let ot=f_(a,r,"",!1);return ot=ot.replace(/&amp;amp;/g,"&"),N.createElement("div",{dangerouslySetInnerHTML:{__html:ot}})}catch(ot){console.error("De template kon niet worden geparsed: ",ot)}return N.createElement(wn,null,"Er is een fout in de template")}let s="";if(Array.isArray(r==null?void 0:r.tags)){const ct=r.tags.sort((Ct,V)=>Ct.name.localeCompare(V.name)).find(Ct=>Ct.defaultResourceImage);s=(ct==null?void 0:ct.defaultResourceImage)||""}const c=()=>{let ot=document.location,ct=a==null?void 0:a.itemLink;if(a.selectedProjects&&a.selectedProjects.length>0){const V=a.selectedProjects.find($=>$.id===r.projectId);r!=null&&r.id&&V?ct=V.detailPageLink:!(r!=null&&r.id)&&(V!=null&&V.overviewUrl)&&(ct=V.overviewUrl)}let Ct=ct==null?void 0:ct.replace("[id]",r.id);return Ct!=null&&Ct.startsWith("http")||(Ct!=null&&Ct.startsWith("/")||(Ct=`${ot.pathname}${ot.pathname.endsWith("/")?"":"/"}${Ct}`),Ct=`${ot.protocol}//${ot.host}${Ct}`),Ct},f=Array.isArray(r.images)&&r.images.length>0?r.images:[{url:s}],g=Array.isArray(f)&&f.length>0&&f[0].url!==""?"":"resource-has-no-images",m=r.statuses?r.statuses.filter(ot=>ot.seqnr!==void 0&&ot.seqnr!==null).sort((ot,ct)=>ot.seqnr-ct.seqnr)[0]||r.statuses[0]:!1,y=m&&m.color?`color-${m.color}`:"",C=m&&m.backgroundColor?`bgColor-${m.backgroundColor}`:"",_=`${y} ${C}`.trim(),b=a.selectedProjects&&a.selectedProjects.length>1?(k=a.selectedProjects.find(ot=>ot.id===r.projectId))==null?void 0:k.label:"",w=r!=null&&r.id?"":"project-card",S=a.overviewTagGroups||[],P=a.displayOverviewTagGroups||[],O=S&&Array.isArray(S)&&Array.isArray(r==null?void 0:r.tags)?r==null?void 0:r.tags.filter(ot=>S.includes(ot.type)):(r==null?void 0:r.tags)||[],q=r!=null&&r.tags?r.tags.filter(ot=>ot.seqnr!==void 0&&ot.seqnr!==null).sort((ot,ct)=>ot.seqnr-ct.seqnr)[0]||r.tags[0]:!1,G=q&&q.mapIcon?q.mapIcon:!1;return N.createElement(N.Fragment,null,a.displayType==="cardrow"?N.createElement("div",{className:`resource-card--link ${g} ${w}`,"data-projectid":r.projectId||""},N.createElement("div",null,N.createElement(Qr,{size:1}),a.displayTitle?N.createElement(ds,{level:Number(a.headingLevel)||4,appearance:"utrecht-heading-4"},N.createElement("a",{href:c(),className:"resource-card--link_trigger",dangerouslySetInnerHTML:{__html:Io(r.title,a.titleMaxLength||20)}})):null,P&&O.length>0&&N.createElement(N.Fragment,null,N.createElement(Qr,{size:.5}),N.createElement("div",{className:"pill-grid"},(A=O==null?void 0:O.filter(ot=>ot.type!=="status"))==null?void 0:A.map(ot=>N.createElement(Ul,{text:ot.name})))),a.displaySummary?N.createElement(wn,{dangerouslySetInnerHTML:{__html:Io(r.summary,a.summaryMaxLength||20)}}):null,a.displayDescription?N.createElement(wn,{className:"osc-resource-overview-content-item-description",dangerouslySetInnerHTML:{__html:Io(r.description,a.descriptionMaxLength||30)}}):null),N.createElement("div",{className:"osc-resource-overview-content-item-footer"},((R=a.likeWidget)==null?void 0:R.variant)!="micro-score"&&a.displayVote&&N.createElement(N.Fragment,null,N.createElement(ur,{icon:"ri-thumb-up-line",variant:"big",text:r.yes,description:"Stemmen voor"}),((j=a.likeWidget)==null?void 0:j.displayDislike)&&N.createElement(ur,{icon:"ri-thumb-down-line",variant:"big",text:r.no,description:"Stemmen tegen"})),((W=a.likeWidget)==null?void 0:W.variant)=="micro-score"&&a.displayVote&&N.createElement("div",{className:"micro-score-container"},N.createElement(ur,{icon:"ri-thumb-up-line",variant:"big",description:"Stemmen voor"}),N.createElement(wn,{className:"votes-score"},r.netPositiveVotes),((F=a.likeWidget)==null?void 0:F.displayDislike)&&N.createElement(ur,{icon:"ri-thumb-down-line",variant:"big",description:"Stemmen tegen"})),a.displayArguments?N.createElement(ur,{icon:"ri-message-line",variant:"big",text:r.commentCount,description:"Aantal reacties"}):null),N.createElement(Vl,{items:f,buttonText:{next:"Volgende afbeelding",previous:"Vorige afbeelding"},className:"osc-carousel-container",itemRenderer:ot=>{var ct;return N.createElement(No,{src:ot.url,imageFooter:a.displayStatusLabel&&N.createElement("div",{className:`${g} ${_}`},N.createElement(wn,{className:"osc-resource-overview-content-item-status"},b?N.createElement("span",{className:"status-label"},b):(ct=r.statuses)==null?void 0:ct.map(Ct=>N.createElement("span",{className:"status-label",key:Ct.label},Ct.label))))})}}),a.displayTagIcon&&q&&G&&N.createElement("div",{className:"resource-card--link_tagicon"},N.createElement(No,{src:G,alt:q.name?`Icoon voor ${q.name}`:"Tag icoon"}))):N.createElement("div",{className:`resource-card--link ${g} ${w}`,"data-projectid":r.projectId||""},N.createElement("div",null,N.createElement(Qr,{size:1}),a.displayTitle?N.createElement(ds,{level:Number(a.headingLevel)||4,appearance:"utrecht-heading-4"},N.createElement("button",{className:"resource-card--link_trigger",onClick:()=>o&&o(),dangerouslySetInnerHTML:{__html:Io(r.title,a.titleMaxLength||20)}})):null,P&&O.length>0&&N.createElement(N.Fragment,null,N.createElement(Qr,{size:.5}),N.createElement("div",{className:"pill-grid"},(H=O==null?void 0:O.filter(ot=>ot.type!=="status"))==null?void 0:H.map(ot=>N.createElement(Ul,{text:ot.name})))),a.displaySummary?N.createElement(wn,{dangerouslySetInnerHTML:{__html:Io(r.summary,a.summaryMaxLength||20)}}):null,a.displayDescription?N.createElement(wn,{className:"osc-resource-overview-content-item-description",dangerouslySetInnerHTML:{__html:Io(r.description,a.descriptionMaxLength||30)}}):null),N.createElement("div",{className:"osc-resource-overview-content-item-footer"},((U=a.likeWidget)==null?void 0:U.variant)!="micro-score"&&a.displayVote&&N.createElement(N.Fragment,null,N.createElement(ur,{icon:"ri-thumb-up-line",variant:"big",text:r.yes}),((it=a.likeWidget)==null?void 0:it.displayDislike)&&N.createElement(ur,{icon:"ri-thumb-down-line",variant:"big",text:r.no})),((Y=a.likeWidget)==null?void 0:Y.variant)=="micro-score"&&a.displayVote&&N.createElement(N.Fragment,null,N.createElement(ur,{icon:"ri-thumb-up-line",variant:"big"}),N.createElement(wn,{className:"votes-score"},r.netPositiveVotes),((M=a.likeWidget)==null?void 0:M.displayDislike)&&N.createElement(ur,{icon:"ri-thumb-down-line",variant:"big"})),a.displayArguments?N.createElement(ur,{icon:"ri-message-line",variant:"big",text:r.commentCount}):null),N.createElement(Vl,{items:f,buttonText:{next:"Volgende afbeelding",previous:"Vorige afbeelding"},className:"osc-carousel-container",itemRenderer:ot=>{var ct;return N.createElement(No,{src:ot.url,imageFooter:a.displayStatusLabel&&N.createElement("div",{className:`${g} ${_}`},N.createElement(wn,{className:"osc-resource-overview-content-item-status"},b?N.createElement("span",{className:"status-label"},b):(ct=r.statuses)==null?void 0:ct.map(Ct=>N.createElement("span",{className:"status-label"},Ct.label))))})}}),a.displayTagIcon&&q&&G&&N.createElement("div",{className:"resource-card--link_tagicon"},N.createElement(No,{src:G,alt:q.name?`Icoon voor ${q.name}`:"Tag icoon"}))))};function Mv({renderItem:r=__,allowFiltering:a=!0,displayType:o="cardrow",displayBanner:s=!1,displayMap:c=!1,bannerText:f="Plannen",renderHeader:g=C_,itemsPerPage:m=20,textResults:y="Dit zijn de zoekresultaten voor [search]",onlyIncludeTagIds:C="",onlyIncludeStatusIds:_="",displayDocuments:b=!1,showActiveTags:w=!1,displayLikeButton:S=!1,displayDislike:P=!1,clickableImage:O=!1,displayBudget:q=!0,documentsTitle:G="",documentsDesc:k="",displayVariant:A="",onFilteredResourcesChange:R,onLocationChange:j,selectedProjects:W=[],includeOrExcludeTagIds:F="include",includeOrExcludeStatusIds:H="include",includeProjectsInOverview:U=!1,excludeResourcesInOverview:it=!1,displayAsTabs:Y=!1,listTabTitle:M="Lijst",mapTabTitle:ot="Kaart",filterBehavior:ct="or",displayTags:Ct=!0,displayOverviewTagGroups:V=!1,overviewTagGroups:$=[],dialogTagGroups:D=void 0,filterBehaviorInclude:rt="or",onlyShowTheseTagIds:J="",displayCollapsibleFilter:et=!1,...st}){var vr;const ut=new _a({projectId:st.projectId,api:st.api}),bt=Z=>Z.trim().split(",").filter(pt=>pt&&!isNaN(+pt.trim())).map(pt=>Number.parseInt(pt)),nt=bt(_),Nt=bt(C),xt=bt(J),{data:Mt}=ut.useTags({projectId:st.projectId,type:""}),ce=N.useMemo(()=>{const Z={};return xt.forEach(pt=>{const Tt=Mt.find(jt=>jt.id===pt);if(Tt){const jt=Tt.type;Z[jt]||(Z[jt]=[]),Z[jt].push(pt)}}),Z},[Mt]),ee=new URLSearchParams(window.location.search),We=ee.get("tagIds"),kt=ee.get("statusIds"),Ue=We?bt(We):void 0,ze=kt?bt(kt):void 0,[Kt,Ft]=N.useState(!1),vt=ze&&ze.length>0?ze:nt||[];N.useEffect(()=>{const Z=F==="include"?Nt:[];Zt(F==="exclude"?Nt:[]),Rt(Z),Wt(Ue||[])},[C,We]);const[gt,Rt]=N.useState([]),[Pt,Zt]=N.useState([]),[Vt,Qt]=N.useState(""),[Bt,de]=N.useState(vt),[Jt,Wt]=N.useState([]),[he,mt]=N.useState(0),[De,en]=N.useState(0),[Gt,He]=N.useState(m||10),[Fe,ln]=N.useState(st.defaultSorting||void 0),[sn,On]=N.useState(void 0),[In,rr]=N.useState([]),[Ne,Zn]=N.useState([]),Ge=(W==null?void 0:W.filter(Z=>!(Z!=null&&Z.excludeResourcesInOverview)).map(Z=>Z.id))||[],ae=N.useMemo(()=>{const Z={};return Mt.forEach(pt=>{const Tt=pt.type;Z[Tt]||(Z[Tt]=[]);const jt=typeof pt.id=="string"?parseInt(pt.id,10):pt.id;Z[Tt].push(jt)}),Z},[Mt]),{data:Yt,isLoading:jn}=ut.useResources({pageSize:999999,...st,search:Vt,tags:[],sort:void 0,projectIds:Ge||[],allowMultipleProjects:W&&W.length>1}),[ne,Ke]=N.useState(0);N.useEffect(()=>{Yt&&!(W.length>0&&Ge.length===0)&&rr(Yt.records||[])},[Yt,Gt]),N.useEffect(()=>{var be,ye,pe,pn;const Z=[];W&&W.length>0&&W.forEach(yt=>{if(yt.includeProjectsInOverview===!1)return;const _t=(yt!=null&&yt.tags?yt.tags.split(",").map($t=>$t.trim()):[]).map($t=>{const ve=Mt.find(Re=>Re.id===parseInt($t));return ve||null}).filter($t=>$t!==null),Dt={title:(yt==null?void 0:yt.overviewTitle)||"",summary:(yt==null?void 0:yt.overviewSummary)||"",description:(yt==null?void 0:yt.overviewDescription)||"",images:[{url:(yt==null?void 0:yt.overviewImage)||""}],overviewUrl:(yt==null?void 0:yt.overviewUrl)||"",projectId:yt.id,createdAt:(yt==null?void 0:yt.createdAt)||"",tags:_t,uniqueId:`project-${yt.id}`};if(Vt){const $t=Vt.toLowerCase();if(!Dt.title.toLowerCase().includes($t)&&!Dt.summary.toLowerCase().includes($t)&&!Dt.description.toLowerCase().includes($t))return}Z.push(Dt)});const Tt=[...Z==null?void 0:Z.filter((yt,Q,_t)=>yt.uniqueId?Q===_t.findIndex(Dt=>Dt.uniqueId===yt.uniqueId):!0),...In],jt=Jt==null?void 0:Jt.map(yt=>parseInt(yt,10)),fe=(pn=(pe=(ye=(be=Tt==null?void 0:Tt.filter(yt=>{var _t,Dt;return((_t=yt.tags)==null?void 0:_t.some($t=>Pt.includes($t.id)))?!1:gt.length>0?rt==="and"?Object.keys(ae).filter(ve=>gt.some(Re=>ae[ve].includes(Re))).every(ve=>{var on;const Re=ae[ve],hn=gt.filter(ge=>Re.includes(ge));return(on=yt.tags)==null?void 0:on.some(ge=>hn.includes(ge.id))}):(Dt=yt.tags)==null?void 0:Dt.some($t=>gt.includes($t.id)):!0}))==null?void 0:be.filter(yt=>{var Q;return jt.length>0?ct==="and"?Object.keys(ae).filter(Dt=>jt.some($t=>ae[Dt].includes($t))).every(Dt=>{var Re;const $t=ae[Dt],ve=jt.filter(hn=>$t.includes(hn));return(Re=yt.tags)==null?void 0:Re.some(hn=>ve.includes(hn.id))}):(Q=yt.tags)==null?void 0:Q.some(_t=>jt.includes(_t.id)):!0}))==null?void 0:ye.filter(yt=>{var Dt,$t;if(!sn)return!0;if(!((Dt=yt==null?void 0:yt.location)!=null&&Dt.lat)||!(($t=yt==null?void 0:yt.location)!=null&&$t.lng))return!1;const Q={lat:yt.location.lat.toString(),lng:yt.location.lng.toString()};return y_(sn,Q)<=((sn==null?void 0:sn.proximity)||999)}))==null?void 0:pe.filter(yt=>{var _t;if(!(nt!=null&&nt.length))return!0;const Q=(_t=yt.statuses)==null?void 0:_t.some(Dt=>nt.includes(Dt.id));return H==="include"===Q}))==null?void 0:pn.sort((yt,Q)=>Fe==="createdAt_desc"?new Date(Q.createdAt).getTime()-new Date(yt.createdAt).getTime():Fe==="createdAt_asc"?new Date(yt.createdAt).getTime()-new Date(Q.createdAt).getTime():Fe==="title"?yt.title.localeCompare(Q.title):Fe==="votes_desc"?Q.yes-yt.yes:Fe==="votes_asc"||Fe==="ranking"?yt.yes-Q.yes:Fe==="random"?Math.random()-.5:Fe==="score"?(Q.score||0)-(yt.score||0):0);Zn(fe)},[In,Jt,Bt,Vt,Fe,Mt,Pt,gt,sn,ae]),N.useEffect(()=>{if(Ne){const Z=Ne||[],pt=Math.ceil((Z==null?void 0:Z.length)/Gt);pt!==De&&en(pt),mt(0),R&&R(Z),j&&j(sn)}},[JSON.stringify(Ne)]);const{data:_e}=ut.useCurrentUser({...st}),cn=N.useCallback((Z,pt)=>{if(o==="cardrow"){let Tt=st.itemLink;if(W.length>0){const jt=W.find(fe=>fe.id===Z.projectId);Z!=null&&Z.id&&jt?Tt=jt.detailPageLink:!(Z!=null&&Z.id)&&(jt!=null&&jt.overviewUrl)&&(Tt=jt.overviewUrl)}if(!Tt)console.error("Link to child resource is not set");else{let jt=document.location,fe=Tt.replace("[id]",Z.id);fe.startsWith("http")||(fe.startsWith("/")||(fe=`${jt.pathname}${jt.pathname.endsWith("/")?"":"/"}${fe}`),fe=`${jt.protocol}//${jt.host}${fe}`),document.location.href=fe}}o==="cardgrid"&&(Ke(pt),Ft(!0))},[o,st.itemLink]),ke=a&&(st.displaySearch||st.displaySorting||st.displayTagFilters||st.displayLocationFilter),Je=Z=>Z?` --${Z}`:" ",Tr=N.useRef(Math.random().toString(36).replace("0.","container_")).current,$e=Z=>{setTimeout(()=>{const pt=document.getElementById(Z);pt&&pt.scrollIntoView({block:"start",behavior:"auto"})},200)},Ut=N.createElement("section",{className:"osc-resource-overview-resource-collection",id:Tr},(Ne==null?void 0:Ne.length)===0?jn?N.createElement(wn,{className:"osc-loading-results-text"},"Laden..."):N.createElement(wn,{className:"osc-no-results-text"},Vt?`Er zijn geen resultaten gevonden voor "${Vt}".`:"Geen resultaten gevonden."):(vr=Ne==null?void 0:Ne.slice(he*Gt,(he+1)*Gt))==null?void 0:vr.map((Z,pt)=>N.createElement(N.Fragment,{key:`resource-item-${(Z==null?void 0:Z.id)||(Z==null?void 0:Z.uniqueId)}`},r(Z,{...st,displayType:o,selectedProjects:W,displayOverviewTagGroups:V,overviewTagGroups:$},()=>{cn(Z,pt)}))));return N.createElement(N.Fragment,null,N.createElement(B7,{open:Kt,onOpenChange:Ft,children:N.createElement(Vl,{startIndex:ne,items:Ne&&(Ne==null?void 0:Ne.length)>0?Ne:[],buttonText:{next:"Volgende afbeelding",previous:"Vorige afbeelding"},itemRenderer:Z=>N.createElement(y8,{resource:Z,currentUser:_e,displayDocuments:b,documentsTitle:G,documentsDesc:k,displayTags:Ct,dialogTagGroups:D,displayBudget:q,displayLikeButton:S,displayDislike:P,clickableImage:O,onRemoveClick:pt=>{try{pt.delete(pt.id).then(()=>Ft(!1)).catch(Tt=>{console.error(Tt)})}catch(Tt){console.error(Tt)}},...st})})}),N.createElement("div",{className:`osc ${Je(A)}`},s||c?g(st,Ne||[],f,s,c&&!Y,W,sn,st.headingLevel||"4"):null,N.createElement("section",{className:`osc-resource-overview-content ${ke?"":"full"}`},st.displaySearchText?N.createElement("div",{className:"osc-resourceoverview-search-container col-span-full"},st.textActiveSearch&&Vt&&N.createElement(wn,{className:"osc-searchtext",role:"status"},st.textActiveSearch.replace("[search]",Vt).replace("[zoekterm]",Vt))):null,ke&&ut?N.createElement(W9,{...st,className:"osc-flex-columned",tagsLimitation:ce,dataStore:ut,sorting:st.sorting||[],displaySorting:st.displaySorting||!1,defaultSorting:st.defaultSorting||"",displayTagFilters:st.displayTagFilters||!1,displaySearch:st.displaySearch||!1,displayLocationFilter:st.displayLocationFilter||!1,searchPlaceholder:st.searchPlaceholder||"Zoeken",resetText:st.resetText||"Reset",applyText:st.applyText||"Toepassen",tagGroups:st.tagGroups||[],itemsPerPage:m,resources:In,showActiveTags:w,onUpdateFilter:Z=>{Wt(Z.tags.length>0?Z.tags:[]),["createdAt_desc","createdAt_asc","title","votes_desc","votes_asc","ranking","random","score"].includes(Z.sort)&&ln(Z.sort),Qt(Z.search.text),On(Z.location)},preFilterTags:Ue,displayCollapsibleFilter:et,autoApply:(st==null?void 0:st.autoApply)||!1}):null,Y?N.createElement("div",{className:"osc-resource-overview-tabs-container"},N.createElement(Tv,null,N.createElement(Jh,{value:"list"},N.createElement(ur,{icon:"ri-list-unordered"}),M),N.createElement(Jh,{value:"map"},N.createElement(ur,{icon:"ri-map-pin-line"}),ot)),N.createElement(Qh,{value:"list"},Ut),N.createElement(Qh,{value:"map"},g(st,Ne||[],f,!1,!0,W,sn,st.headingLevel||"4"))):Ut),st.displayPagination&&N.createElement(N.Fragment,null,N.createElement(Qr,{size:4}),N.createElement("div",{className:"osc-resource-overview-paginator col-span-full"},N.createElement(z7,{page:he||0,totalPages:De||1,onPageChange:Z=>{mt(Z),$e(Tr)}})))))}function Av(r){const{displayAsTabs:a}=r;return a?N.createElement(v_,{defaultValue:"list"},N.createElement(Mv,{...r,...r.likeWidget})):N.createElement(Mv,{...r,...r.likeWidget})}Av.loadWidget=ra;const Dv=r=>{const[a,o]=N.useState([]),[s,c]=N.useState(void 0);return N.createElement("div",{className:"map-wrapper"},N.createElement("div",{className:"resourceOverviewWithMap-container"},N.createElement("div",{className:"detail-container"},N.createElement(Av,{...r,onFilteredResourcesChange:o,onLocationChange:c,displayMap:!1})),N.createElement(Zh,{...r,...r.resourceOverviewMapWidget,givenResources:a.length>0?a:void 0,locationProx:s})))};return Dv.loadWidget=ra,_l.ResourceOverviewWithMap=Dv,Object.defineProperty(_l,Symbol.toStringTag,{value:"Module"}),_l})({},React,ReactDOM);

            OpenstadHeadlessResourceOverviewWithMap.ResourceOverviewWithMap.loadWidget(randomComponentId, config);
          }
          
          
  function triggerEvent(event) {
    document.dispatchEvent(new CustomEvent(event));
  }
  
  function openStadReactDomLoadedEventHasFired() {
    window.OpenStadReactDomLoadedEventHasFired = true;
  }
  
  document.addEventListener('OpenStadReactDomLoaded', openStadReactDomLoadedEventHasFired);
  
  function checkReactDom() {
    if (!hasReactDom && !window.OpenStadReactDOMLoaded) {
      if (window.OpenStadReactDOMIsLoading) {
        document.addEventListener('OpenStadReactDomLoaded', renderWidget);
        return;
      }
      
      if (typeof React === 'undefined') {
        document.addEventListener('OpenStadReactDomLoaded', renderWidget);
        return;
      }
      
      window.OpenStadReactDOMIsLoading = true;
    
      let reactVersion = React.version;
      
      // Get same version of react-dom as react, ensuring we have a xx.x.x format
      if (!/18.d{1,2}.d{1,2}/.test(reactVersion) === false) {
        throw new Error('React version 18 is required');
      }
      
      const reactDomUrl = 'https://unpkg.com/react-dom@18.3.1/umd/react-dom.production.min.js'.replace('{VERSION}', reactVersion);
      
      const script = document.createElement('script');
      script.src = reactDomUrl;
      script.onload = function() {
        if (typeof window.createRoot === 'undefined' && typeof ReactDOM !== 'undefined' && typeof ReactDOM.createRoot !== 'undefined') {
          window.createRoot = ReactDOM.createRoot;
        }
        document.addEventListener('OpenStadReactDomLoaded', renderWidget);
        triggerEvent('OpenStadReactDomLoaded');
      }
      document.body.appendChild(script);
      window.OpenStadReactDOMLoaded = true;
    } else if (
        typeof ReactDOM !== 'undefined' &&
        ReactDOM.version.substr(0, 2) !== '18'
    ) {
      throw new Error('ReactDOM version 18 is required');
    } else {
      window.OpenStadReactDOMLoaded = true;
      
      if (typeof window.OpenStadReactDomLoadedEventHasFired === 'undefined' || !window.OpenStadReactDomLoadedEventHasFired) {
        document.addEventListener('OpenStadReactDomLoaded', renderWidget);
      } else {
        renderWidget();
      }
    }
  }

  const hasReact = typeof React !== 'undefined';
  const hasReactWithScheduler = hasReact && typeof React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED !== 'undefined' && typeof React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler !== 'undefined' && typeof React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_scheduleCallback !== 'undefined';
  const hasReactDom = typeof ReactDOM !== 'undefined';
  

  if ( hasReact && hasReactWithScheduler && hasReactDom ) {
    renderWidget();
  } else if (!hasReact && !window.OpenStadReactLoaded) {
    const script = document.createElement('script');
    script.src = 'https://unpkg.com/react@18.3.1/umd/react.production.min.js';
    script.onload = (e) => {
      checkReactDom();
    }
    
    document.body.appendChild(script);
    window.OpenStadReactLoaded = true;
  } else if (hasReact && React.version.substr(0, 2) < '18') {
    throw new Error('React version 18 is required');
  } else if (hasReact && !hasReactWithScheduler && !window.OpenStadReactLoaded) {
    
    const script = document.createElement('script');
    script.src = 'https://unpkg.com/react@18.3.1/umd/react.production.min.js';
    script.onload = (e) => {
      checkReactDom();
    }
    
    document.body.appendChild(script);
    window.OpenStadReactLoaded = true;
  } else {
    if (typeof window.OpenStadReactDomLoadedEventHasFired === 'undefined' || !window.OpenStadReactDomLoadedEventHasFired) {
      // React has been loaded by a previous component on the page, render the widget when ReactDOM is loaded
      checkReactDom();
    } else {
      renderWidget();
    }
  }

          currentScript.remove();
      } catch(e) {
        console.error("Could not place widget", e);
      }
    })();
    